n8n
Version:
n8n Workflow Automation Tool
49 lines (48 loc) • 1.39 kB
TypeScript
import type { PushMessage, WorkerStatus } from '@n8n/api-types';
import type { IWorkflowBase } from 'n8n-workflow';
export type PubSubEventMap = PubSubCommandMap & PubSubWorkerResponseMap;
export type PubSubCommandMap = {
'reload-license': never;
'restart-event-bus': never;
'reload-external-secrets-providers': never;
'community-package-install': {
packageName: string;
packageVersion: string;
};
'community-package-update': {
packageName: string;
packageVersion: string;
};
'community-package-uninstall': {
packageName: string;
};
'get-worker-id': never;
'get-worker-status': never;
'add-webhooks-triggers-and-pollers': {
workflowId: string;
};
'remove-triggers-and-pollers': {
workflowId: string;
};
'display-workflow-activation': {
workflowId: string;
};
'display-workflow-deactivation': {
workflowId: string;
};
'display-workflow-activation-error': {
workflowId: string;
errorMessage: string;
};
'relay-execution-lifecycle-event': PushMessage & {
pushRef: string;
};
'clear-test-webhooks': {
webhookKey: string;
workflowEntity: IWorkflowBase;
pushRef: string;
};
};
export type PubSubWorkerResponseMap = {
'response-to-get-worker-status': WorkerStatus;
};