merge: add scheduleNotePost queue to dashboard (!994)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/994 Approved-by: Hazelnoot <acomputerdog@gmail.com> Approved-by: Marie <github@yuugi.dev>
This commit is contained in:
@@ -52,6 +52,7 @@ export const QUEUE_TYPES = [
|
|||||||
'objectStorage',
|
'objectStorage',
|
||||||
'userWebhookDeliver',
|
'userWebhookDeliver',
|
||||||
'systemWebhookDeliver',
|
'systemWebhookDeliver',
|
||||||
|
'scheduleNotePost',
|
||||||
] as const;
|
] as const;
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
@@ -783,6 +784,7 @@ export class QueueService {
|
|||||||
case 'objectStorage': return this.objectStorageQueue;
|
case 'objectStorage': return this.objectStorageQueue;
|
||||||
case 'userWebhookDeliver': return this.userWebhookDeliverQueue;
|
case 'userWebhookDeliver': return this.userWebhookDeliverQueue;
|
||||||
case 'systemWebhookDeliver': return this.systemWebhookDeliverQueue;
|
case 'systemWebhookDeliver': return this.systemWebhookDeliverQueue;
|
||||||
|
case 'scheduleNotePost': return this.ScheduleNotePostQueue;
|
||||||
default: throw new Error(`Unrecognized queue type: ${type}`);
|
default: throw new Error(`Unrecognized queue type: ${type}`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -203,6 +203,7 @@ const QUEUE_TYPES = [
|
|||||||
'objectStorage',
|
'objectStorage',
|
||||||
'userWebhookDeliver',
|
'userWebhookDeliver',
|
||||||
'systemWebhookDeliver',
|
'systemWebhookDeliver',
|
||||||
|
'scheduleNotePost',
|
||||||
] as const;
|
] as const;
|
||||||
|
|
||||||
const tab: Ref<typeof QUEUE_TYPES[number] | '-'> = ref('-');
|
const tab: Ref<typeof QUEUE_TYPES[number] | '-'> = ref('-');
|
||||||
|
|||||||
@@ -9440,7 +9440,7 @@ export type operations = {
|
|||||||
content: {
|
content: {
|
||||||
'application/json': {
|
'application/json': {
|
||||||
/** @enum {string} */
|
/** @enum {string} */
|
||||||
queue: 'system' | 'endedPollNotification' | 'deliver' | 'inbox' | 'db' | 'relationship' | 'objectStorage' | 'userWebhookDeliver' | 'systemWebhookDeliver';
|
queue: 'system' | 'endedPollNotification' | 'deliver' | 'inbox' | 'db' | 'relationship' | 'objectStorage' | 'userWebhookDeliver' | 'systemWebhookDeliver' | 'scheduleNotePost';
|
||||||
/** @enum {string} */
|
/** @enum {string} */
|
||||||
state: '*' | 'completed' | 'wait' | 'active' | 'paused' | 'prioritized' | 'delayed' | 'failed';
|
state: '*' | 'completed' | 'wait' | 'active' | 'paused' | 'prioritized' | 'delayed' | 'failed';
|
||||||
};
|
};
|
||||||
@@ -9586,7 +9586,7 @@ export type operations = {
|
|||||||
content: {
|
content: {
|
||||||
'application/json': {
|
'application/json': {
|
||||||
/** @enum {string} */
|
/** @enum {string} */
|
||||||
queue: 'system' | 'endedPollNotification' | 'deliver' | 'inbox' | 'db' | 'relationship' | 'objectStorage' | 'userWebhookDeliver' | 'systemWebhookDeliver';
|
queue: 'system' | 'endedPollNotification' | 'deliver' | 'inbox' | 'db' | 'relationship' | 'objectStorage' | 'userWebhookDeliver' | 'systemWebhookDeliver' | 'scheduleNotePost';
|
||||||
state: ('active' | 'paused' | 'wait' | 'delayed' | 'completed' | 'failed')[];
|
state: ('active' | 'paused' | 'wait' | 'delayed' | 'completed' | 'failed')[];
|
||||||
search?: string;
|
search?: string;
|
||||||
};
|
};
|
||||||
@@ -9640,7 +9640,7 @@ export type operations = {
|
|||||||
content: {
|
content: {
|
||||||
'application/json': {
|
'application/json': {
|
||||||
/** @enum {string} */
|
/** @enum {string} */
|
||||||
queue: 'system' | 'endedPollNotification' | 'deliver' | 'inbox' | 'db' | 'relationship' | 'objectStorage' | 'userWebhookDeliver' | 'systemWebhookDeliver';
|
queue: 'system' | 'endedPollNotification' | 'deliver' | 'inbox' | 'db' | 'relationship' | 'objectStorage' | 'userWebhookDeliver' | 'systemWebhookDeliver' | 'scheduleNotePost';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@@ -9692,7 +9692,7 @@ export type operations = {
|
|||||||
content: {
|
content: {
|
||||||
'application/json': {
|
'application/json': {
|
||||||
/** @enum {string} */
|
/** @enum {string} */
|
||||||
queue: 'system' | 'endedPollNotification' | 'deliver' | 'inbox' | 'db' | 'relationship' | 'objectStorage' | 'userWebhookDeliver' | 'systemWebhookDeliver';
|
queue: 'system' | 'endedPollNotification' | 'deliver' | 'inbox' | 'db' | 'relationship' | 'objectStorage' | 'userWebhookDeliver' | 'systemWebhookDeliver' | 'scheduleNotePost';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@@ -9788,7 +9788,7 @@ export type operations = {
|
|||||||
content: {
|
content: {
|
||||||
'application/json': {
|
'application/json': {
|
||||||
/** @enum {string} */
|
/** @enum {string} */
|
||||||
queue: 'system' | 'endedPollNotification' | 'deliver' | 'inbox' | 'db' | 'relationship' | 'objectStorage' | 'userWebhookDeliver' | 'systemWebhookDeliver';
|
queue: 'system' | 'endedPollNotification' | 'deliver' | 'inbox' | 'db' | 'relationship' | 'objectStorage' | 'userWebhookDeliver' | 'systemWebhookDeliver' | 'scheduleNotePost';
|
||||||
jobId: string;
|
jobId: string;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@@ -9841,7 +9841,7 @@ export type operations = {
|
|||||||
content: {
|
content: {
|
||||||
'application/json': {
|
'application/json': {
|
||||||
/** @enum {string} */
|
/** @enum {string} */
|
||||||
queue: 'system' | 'endedPollNotification' | 'deliver' | 'inbox' | 'db' | 'relationship' | 'objectStorage' | 'userWebhookDeliver' | 'systemWebhookDeliver';
|
queue: 'system' | 'endedPollNotification' | 'deliver' | 'inbox' | 'db' | 'relationship' | 'objectStorage' | 'userWebhookDeliver' | 'systemWebhookDeliver' | 'scheduleNotePost';
|
||||||
jobId: string;
|
jobId: string;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@@ -9894,7 +9894,7 @@ export type operations = {
|
|||||||
content: {
|
content: {
|
||||||
'application/json': {
|
'application/json': {
|
||||||
/** @enum {string} */
|
/** @enum {string} */
|
||||||
queue: 'system' | 'endedPollNotification' | 'deliver' | 'inbox' | 'db' | 'relationship' | 'objectStorage' | 'userWebhookDeliver' | 'systemWebhookDeliver';
|
queue: 'system' | 'endedPollNotification' | 'deliver' | 'inbox' | 'db' | 'relationship' | 'objectStorage' | 'userWebhookDeliver' | 'systemWebhookDeliver' | 'scheduleNotePost';
|
||||||
jobId: string;
|
jobId: string;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user