@taico/events 0.2.13 → 0.2.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -23,6 +23,7 @@ export declare const ExecutionWireEvents: {
23
23
  readonly WORKER_HEARTBEAT_POST: "worker.heartbeat.post";
24
24
  readonly WORKER_HARNESSES_REPORT_REQUESTED: "worker.harnesses.report.requested";
25
25
  readonly TASK_EXECUTION_QUEUED: "task.execution.queued";
26
+ readonly EXECUTION_INTERRUPT_REQUEST: "execution.interrupt.request";
26
27
  };
27
28
  export type ExecutionWireEventName = (typeof ExecutionWireEvents)[keyof typeof ExecutionWireEvents];
28
29
  /**
@@ -111,10 +112,18 @@ export interface TaskExecutionQueuedWireEvent {
111
112
  taskId: string;
112
113
  occurredAt: string;
113
114
  }
115
+ /**
116
+ * Execution interrupt request event
117
+ * Emitted when a user requests to interrupt/cancel an active execution
118
+ */
119
+ export interface ExecutionInterruptRequestWireEvent {
120
+ executionId: string;
121
+ requestedAt: string;
122
+ }
114
123
  /**
115
124
  * Union type of all execution wire events
116
125
  */
117
- export type ExecutionWireEvent = ExecutionCreatedWireEvent | ExecutionUpdatedWireEvent | ExecutionDeletedWireEvent | ExecutionActivityWireEvent | TaskExecutionQueuedWireEvent;
126
+ export type ExecutionWireEvent = ExecutionCreatedWireEvent | ExecutionUpdatedWireEvent | ExecutionDeletedWireEvent | ExecutionActivityWireEvent | TaskExecutionQueuedWireEvent | ExecutionInterruptRequestWireEvent;
118
127
  /**
119
128
  * Type guards for event identification
120
129
  */
@@ -22,6 +22,7 @@ export const ExecutionWireEvents = {
22
22
  WORKER_HEARTBEAT_POST: 'worker.heartbeat.post',
23
23
  WORKER_HARNESSES_REPORT_REQUESTED: 'worker.harnesses.report.requested',
24
24
  TASK_EXECUTION_QUEUED: 'task.execution.queued',
25
+ EXECUTION_INTERRUPT_REQUEST: 'execution.interrupt.request',
25
26
  };
26
27
  /**
27
28
  * Type guards for event identification
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taico/events",
3
- "version": "0.2.13",
3
+ "version": "0.2.15",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "license": "MIT",
@@ -20,6 +20,7 @@
20
20
  },
21
21
  "scripts": {
22
22
  "build": "tsc -p tsconfig.build.json",
23
+ "build:prod": "npm run build",
23
24
  "pack": "npm run build && npm pack",
24
25
  "release": "npm run build && npm publish --access public"
25
26
  },