@dbos-inc/dbos-sdk 1.12.11 → 1.12.13-preview.g7a8a447e44

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. package/dist/schemas/system_db_schema.d.ts +0 -2
  2. package/dist/schemas/system_db_schema.d.ts.map +1 -1
  3. package/dist/src/communicator.d.ts +1 -1
  4. package/dist/src/communicator.d.ts.map +1 -1
  5. package/dist/src/communicator.js.map +1 -1
  6. package/dist/src/dbos-executor.d.ts +11 -27
  7. package/dist/src/dbos-executor.d.ts.map +1 -1
  8. package/dist/src/dbos-executor.js +46 -139
  9. package/dist/src/dbos-executor.js.map +1 -1
  10. package/dist/src/debugger/debug_workflow.d.ts +5 -14
  11. package/dist/src/debugger/debug_workflow.d.ts.map +1 -1
  12. package/dist/src/debugger/debug_workflow.js +18 -74
  13. package/dist/src/debugger/debug_workflow.js.map +1 -1
  14. package/dist/src/decorators.d.ts +2 -19
  15. package/dist/src/decorators.d.ts.map +1 -1
  16. package/dist/src/decorators.js +27 -104
  17. package/dist/src/decorators.js.map +1 -1
  18. package/dist/src/httpServer/handler.d.ts +15 -22
  19. package/dist/src/httpServer/handler.d.ts.map +1 -1
  20. package/dist/src/httpServer/handler.js +35 -44
  21. package/dist/src/httpServer/handler.js.map +1 -1
  22. package/dist/src/httpServer/handlerTypes.d.ts +1 -4
  23. package/dist/src/httpServer/handlerTypes.d.ts.map +1 -1
  24. package/dist/src/httpServer/handlerTypes.js +0 -3
  25. package/dist/src/httpServer/handlerTypes.js.map +1 -1
  26. package/dist/src/httpServer/server.d.ts.map +1 -1
  27. package/dist/src/httpServer/server.js +10 -34
  28. package/dist/src/httpServer/server.js.map +1 -1
  29. package/dist/src/index.d.ts +2 -2
  30. package/dist/src/index.d.ts.map +1 -1
  31. package/dist/src/index.js +1 -7
  32. package/dist/src/index.js.map +1 -1
  33. package/dist/src/kafka/kafka.d.ts +3 -2
  34. package/dist/src/kafka/kafka.d.ts.map +1 -1
  35. package/dist/src/kafka/kafka.js +13 -2
  36. package/dist/src/kafka/kafka.js.map +1 -1
  37. package/dist/src/scheduler/scheduler.d.ts +8 -4
  38. package/dist/src/scheduler/scheduler.d.ts.map +1 -1
  39. package/dist/src/scheduler/scheduler.js +9 -2
  40. package/dist/src/scheduler/scheduler.js.map +1 -1
  41. package/dist/src/system_database.d.ts +0 -2
  42. package/dist/src/system_database.d.ts.map +1 -1
  43. package/dist/src/system_database.js +4 -61
  44. package/dist/src/system_database.js.map +1 -1
  45. package/dist/src/testing/testing_runtime.d.ts +5 -9
  46. package/dist/src/testing/testing_runtime.d.ts.map +1 -1
  47. package/dist/src/testing/testing_runtime.js +12 -24
  48. package/dist/src/testing/testing_runtime.js.map +1 -1
  49. package/dist/src/transaction.d.ts +1 -1
  50. package/dist/src/transaction.d.ts.map +1 -1
  51. package/dist/src/utils.d.ts +0 -1
  52. package/dist/src/utils.d.ts.map +1 -1
  53. package/dist/src/utils.js +1 -5
  54. package/dist/src/utils.js.map +1 -1
  55. package/dist/src/workflow.d.ts +10 -46
  56. package/dist/src/workflow.d.ts.map +1 -1
  57. package/dist/src/workflow.js +20 -72
  58. package/dist/src/workflow.js.map +1 -1
  59. package/dist/tsconfig.build.tsbuildinfo +1 -1
  60. package/package.json +2 -2
  61. package/migrations/20240517000000_status_class_config.js +0 -18
@@ -1 +1 @@
1
- {"version":3,"file":"transaction.d.ts","sourceRoot":"","sources":["../../src/transaction.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,IAAI,EAAE,MAAM,+BAA+B,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,OAAO,EAAE,YAAY,IAAI,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,EAAE,oB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EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,OAAO,EAAE,YAAY,IAAI,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAGjE,MAAM,MAAM,WAAW,CAAC,CAAC,SAAS,GAAG,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,kBAAkB,CAAC,GAAG,CAAC,EAAE,GAAG,IAAI,EAAE,CAAC,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC;AAExG,MAAM,WAAW,iBAAiB;IAChC,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,cAAc;;;;;CAKjB,CAAC;AACX,MAAM,MAAM,cAAc,GAAG,QAAQ,CAAC,OAAO,cAAc,CAAC,CAAC;AAE7D,MAAM,WAAW,kBAAkB,CAAC,CAAC,SAAS,kBAAkB,CAAE,SAAQ,WAAW;IACnF,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC;CACpB;AAED,qBAAa,sBAAsB,CAAC,CAAC,SAAS,kBAAkB,CAAE,SAAQ,eAAgB,YAAW,kBAAkB,CAAC,CAAC,CAAC;IAEtH,QAAQ,CAAC,UAAU,EAAE,gBAAgB;IACrC,QAAQ,CAAC,MAAM,EAAE,CAAC;IAIlB,QAAQ,CAAC,UAAU,EAAE,MAAM;gBALlB,UAAU,EAAE,gBAAgB,EAC5B,MAAM,EAAE,CAAC,EAClB,eAAe,EAAE,mBAAmB,GAAG,oBAAoB,EAC3D,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,EACL,UAAU,EAAE,MAAM,EAC3B,aAAa,EAAE,MAAM;CAKxB"}
@@ -16,5 +16,4 @@ export declare function findPackageRoot(start: string | string[]): string;
16
16
  */
17
17
  export declare function DBOSReplacer(_key: string, value: unknown): unknown;
18
18
  export declare function DBOSReviver(_key: string, value: unknown): unknown;
19
- export declare function exhaustiveCheckGuard(_: never): never;
20
19
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":";AASA,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,GAAE,cAAuB,GAAG,MAAM,CAYpF;AAED,eAAO,MAAM,OAAO,OAAQ,MAAM,qBAA0C,CAAC;AAE7E,MAAM,MAAM,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AAGrC,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,MAAM,CAoBhE;AAED;;;;;;;;;;GAUG;AAEH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,WAExD;AAOD,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,OAAO,CAMjE;AAED,wBAAgB,oBAAoB,CAAC,CAAC,EAAE,KAAK,GAAG,KAAK,CAEpD"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":";AASA,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,GAAE,cAAuB,GAAG,MAAM,CAYpF;AAED,eAAO,MAAM,OAAO,OAAQ,MAAM,qBAA0C,CAAC;AAE7E,MAAM,MAAM,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AAGrC,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,MAAM,CAoBhE;AAED;;;;;;;;;;GAUG;AAEH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,WAExD;AAOD,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,OAAO,CAMjE"}
package/dist/src/utils.js CHANGED
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.exhaustiveCheckGuard = exports.DBOSReviver = exports.DBOSReplacer = exports.findPackageRoot = exports.sleepms = exports.readFileSync = void 0;
6
+ exports.DBOSReviver = exports.DBOSReplacer = exports.findPackageRoot = exports.sleepms = exports.readFileSync = void 0;
7
7
  const fs_1 = __importDefault(require("fs"));
8
8
  const path_1 = __importDefault(require("path"));
9
9
  /*
@@ -70,8 +70,4 @@ function DBOSReviver(_key, value) {
70
70
  return value;
71
71
  }
72
72
  exports.DBOSReviver = DBOSReviver;
73
- function exhaustiveCheckGuard(_) {
74
- throw new Error('Exaustive matching is not applied');
75
- }
76
- exports.exhaustiveCheckGuard = exhaustiveCheckGuard;
77
73
  //# sourceMappingURL=utils.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":";;;;;;AAAA,4CAAoB;AACpB,gDAAwB;AAExB;;;;;IAKI;AACJ,SAAgB,YAAY,CAAC,IAAY,EAAE,WAA2B,MAAM;IAC1E,wBAAwB;IACxB,YAAE,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,KAAmC,EAAE,KAAe,EAAE,EAAE;QACrE,IAAI,KAAK,EAAE,CAAC;YACV,MAAM,IAAI,KAAK,CAAC,eAAe,IAAI,KAAK,KAAK,CAAC,IAAI,KAAK,KAAK,CAAC,KAAK,EAAE,CAAC,CAAC;QACxE,CAAC;aAAM,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,EAAE,CAAC;YAC3B,MAAM,IAAI,KAAK,CAAC,eAAe,IAAI,gBAAgB,CAAC,CAAC;QACvD,CAAC;IACH,CAAC,C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icator, CommunicatorContext } from "./communicator";
4
4
  import { SystemDatabase } from "./system_database";
5
5
  import { UserDatabaseClient } from "./user_database";
6
6
  import { HTTPRequest, DBOSContext, DBOSContextImpl } from './context';
7
- import { ConfiguredInstance } from "./decorators";
8
- import { InvokeFuncsInst } from "./httpServer/handler";
9
- export type Workflow<T extends unknown[], R> = (ctxt: WorkflowContext, ...args: T) => Promise<R>;
7
+ export type Workflow<T extends any[], R> = (ctxt: WorkflowContext, ...args: T) => Promise<R>;
10
8
  export type TailParameters<T extends (arg: any, args: any[]) => any> = T extends (arg: any, ...args: infer P) => any ? P : never;
11
9
  type TxFunc = (ctxt: TransactionContext<any>, ...args: any[]) => Promise<any>;
12
10
  type CommFunc = (ctxt: CommunicatorContext, ...args: any[]) => Promise<any>;
13
- export type WFInvokeFuncs<T> = T extends ConfiguredInstance ? never : {
11
+ export type WFInvokeFuncs<T> = {
14
12
  [P in keyof T as T[P] extends TxFunc | CommFunc ? P : never]: T[P] extends TxFunc | CommFunc ? (...args: TailParameters<T[P]>) => ReturnType<T[P]> : never;
15
13
  };
16
- export type WFInvokeFuncsInst<T> = T extends ConfiguredInstance ? {
17
- [P in keyof T as T[P] extends TxFunc | CommFunc ? P : never]: T[P] extends TxFunc | CommFunc ? (...args: TailParameters<T[P]>) => ReturnType<T[P]> : never;
18
- } : never;
19
14
  export interface WorkflowParams {
20
15
  workflowUUID?: string;
21
16
  parentCtx?: DBOSContextImpl;
22
- configuredInstance?: ConfiguredInstance | null;
23
17
  }
24
18
  export interface WorkflowConfig {
25
19
  }
26
20
  export interface WorkflowStatus {
27
21
  readonly status: string;
28
22
  readonly workflowName: string;
29
- readonly workflowClassName: string;
30
- readonly workflowConfigName: string;
31
23
  readonly authenticatedUser: string;
32
24
  readonly assumedRole: string;
33
25
  readonly authenticatedRoles: string[];
@@ -46,32 +38,11 @@ export declare const StatusString: {
46
38
  readonly SUCCESS: "SUCCESS";
47
39
  readonly ERROR: "ERROR";
48
40
  };
49
- type WFFunc = (ctxt: WorkflowContext, ...args: any[]) => Promise<unknown>;
50
- export type WfInvokeWfs<T> = {
51
- [P in keyof T]: T[P] extends WFFunc ? (...args: TailParameters<T[P]>) => ReturnType<T[P]> : never;
52
- };
53
- export type WfInvokeWfsAsync<T> = {
54
- [P in keyof T]: T[P] extends WFFunc ? (...args: TailParameters<T[P]>) => Promise<WorkflowHandle<Awaited<ReturnType<T[P]>>>> : never;
55
- };
56
- export type WfInvokeWfsInst<T> = T extends ConfiguredInstance ? {
57
- [P in keyof T]: T[P] extends WFFunc ? (...args: TailParameters<T[P]>) => ReturnType<T[P]> : never;
58
- } : never;
59
- export type WfInvokeWfsInstAsync<T> = T extends ConfiguredInstance ? {
60
- [P in keyof T]: T[P] extends WFFunc ? (...args: TailParameters<T[P]>) => Promise<WorkflowHandle<Awaited<ReturnType<T[P]>>>> : never;
61
- } : never;
62
41
  export interface WorkflowContext extends DBOSContext {
63
- invoke<T extends ConfiguredInstance>(targetCfg: T): InvokeFuncsInst<T>;
64
42
  invoke<T extends object>(targetClass: T): WFInvokeFuncs<T>;
65
- /** @deprecated See startWorkflow */
66
43
  startChildWorkflow<T extends any[], R>(wf: Workflow<T, R>, ...args: T): Promise<WorkflowHandle<R>>;
67
- /** @deprecated See invokeWorkflow */
68
- invokeChildWorkflow<T extends unknown[], R>(wf: Workflow<T, R>, ...args: T): Promise<R>;
69
- /** @deprecated calls startWorkflow */
70
- childWorkflow<T extends unknown[], R>(wf: Workflow<T, R>, ...args: T): Promise<WorkflowHandle<R>>;
71
- invokeWorkflow<T extends ConfiguredInstance>(targetClass: T): WfInvokeWfsInst<T>;
72
- invokeWorkflow<T extends object>(targetClass: T): WfInvokeWfs<T>;
73
- startWorkflow<T extends ConfiguredInstance>(targetClass: T): WfInvokeWfsInstAsync<T>;
74
- startWorkflow<T extends object>(targetClass: T): WfInvokeWfsAsync<T>;
44
+ invokeChildWorkflow<T extends any[], R>(wf: Workflow<T, R>, ...args: T): Promise<R>;
45
+ childWorkflow<T extends any[], R>(wf: Workflow<T, R>, ...args: T): Promise<WorkflowHandle<R>>;
75
46
  send<T>(destinationUUID: string, message: T, topic?: string): Promise<void>;
76
47
  recv<T>(topic?: string, timeoutSeconds?: number): Promise<T | null>;
77
48
  setEvent<T>(key: string, value: T): Promise<void>;
@@ -123,29 +94,22 @@ export declare class WorkflowContextImpl extends DBOSContextImpl implements Work
123
94
  * We pass in itself as a parent context and assign the child workflow with a deterministic UUID "this.workflowUUID-functionID".
124
95
  * We also pass in its own workflowUUID and function ID so the invoked handle is deterministic.
125
96
  */
126
- startChildWorkflow<T extends unknown[], R>(wf: Workflow<T, R>, ...args: T): Promise<WorkflowHandle<R>>;
127
- invokeChildWorkflow<T extends unknown[], R>(wf: Workflow<T, R>, ...args: T): Promise<R>;
128
- /**
129
- * Generate a proxy object for the provided class that wraps direct calls (i.e. OpClass.someMethod(param))
130
- * to use WorkflowContext.Transaction(OpClass.someMethod, param);
131
- */
132
- proxyInvokeWF<T extends object>(object: T, workflowUUID: string | undefined, asyncWf: boolean, configuredInstance: ConfiguredInstance | null): WfInvokeWfsAsync<T>;
133
- startWorkflow<T extends object>(target: T, workflowUUID?: string): WfInvokeWfsAsync<T>;
134
- invokeWorkflow<T extends object>(target: T, workflowUUID?: string): WfInvokeWfs<T>;
135
- childWorkflow<T extends unknown[], R>(wf: Workflow<T, R>, ...args: T): Promise<WorkflowHandle<R>>;
97
+ startChildWorkflow<T extends any[], R>(wf: Workflow<T, R>, ...args: T): Promise<WorkflowHandle<R>>;
98
+ invokeChildWorkflow<T extends any[], R>(wf: Workflow<T, R>, ...args: T): Promise<R>;
99
+ childWorkflow<T extends any[], R>(wf: Workflow<T, R>, ...args: T): Promise<WorkflowHandle<R>>;
136
100
  /**
137
101
  * Execute a transactional function.
138
102
  * The transaction is guaranteed to execute exactly once, even if the workflow is retried with the same UUID.
139
103
  * If the transaction encounters a Postgres serialization error, retry it.
140
104
  * If it encounters any other error, throw it.
141
105
  */
142
- transaction<T extends unknown[], R>(txn: Transaction<T, R>, clsinst: ConfiguredInstance | null, ...args: T): Promise<R>;
106
+ transaction<T extends any[], R>(txn: Transaction<T, R>, ...args: T): Promise<R>;
143
107
  /**
144
108
  * Execute a communicator function.
145
109
  * If it encounters any error, retry according to its configured retry policy until the maximum number of attempts is reached, then throw an DBOSError.
146
110
  * The communicator may execute many times, but once it is complete, it will not re-execute.
147
111
  */
148
- external<T extends unknown[], R>(commFn: Communicator<T, R>, clsInst: ConfiguredInstance | null, ...args: T): Promise<R>;
112
+ external<T extends any[], R>(commFn: Communicator<T, R>, ...args: T): Promise<R>;
149
113
  /**
150
114
  * Send a message to a workflow identified by a UUID.
151
115
  * The message can optionally be tagged with a topic.
@@ -166,7 +130,7 @@ export declare class WorkflowContextImpl extends DBOSContextImpl implements Work
166
130
  * Generate a proxy object for the provided class that wraps direct calls (i.e. OpClass.someMethod(param))
167
131
  * to use WorkflowContext.Transaction(OpClass.someMethod, param);
168
132
  */
169
- invoke<T extends object>(object: T | ConfiguredInstance): WFInvokeFuncs<T> | InvokeFuncsInst<T>;
133
+ invoke<T extends object>(object: T): WFInvokeFuncs<T>;
170
134
  /**
171
135
  * Wait for a workflow to emit an event, then return its value.
172
136
  */
@@ -1 +1 @@
1
- {"version":3,"file":"workflow.d.ts","sourceRoot":"","sources":["../../src/workflow.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAqC,MAAM,iBAAiB,CAAC;AAElF,OAAO,EAAkB,WAAW,EAAE,kBAAkB,EAA0B,MAAM,eAAe,CAAC;AACxG,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAA2B,MAAM,gBAAgB,CAAC;AAI5F,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAGrD,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AACtE,OAAO,EAAE,kBAAkB,EAA2B,MAAM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AAI,CAAC;IAI3C,SAAS,IAAI,OAAO,CAAC,CAAC,CAAC;CAG9B"}
@@ -180,47 +180,7 @@ class WorkflowContextImpl extends context_1.DBOSContextImpl {
180
180
  async invokeChildWorkflow(wf, ...args) {
181
181
  return this.startChildWorkflow(wf, ...args).then((handle) => handle.getResult());
182
182
  }
183
- /**
184
- * Generate a proxy object for the provided class that wraps direct calls (i.e. OpClass.someMethod(param))
185
- * to use WorkflowContext.Transaction(OpClass.someMethod, param);
186
- */
187
- proxyInvokeWF(object, workflowUUID, asyncWf, configuredInstance) {
188
- const ops = (0, decorators_1.getRegisteredOperations)(object);
189
- const proxy = {};
190
- const funcId = this.functionIDGetIncrement();
191
- const childUUID = workflowUUID || (this.workflowUUID + "-" + funcId);
192
- const params = { workflowUUID: childUUID, parentCtx: this, configuredInstance };
193
- for (const op of ops) {
194
- if (asyncWf) {
195
- proxy[op.name] = op.workflowConfig
196
- ? (...args) => this.#dbosExec.internalWorkflow(op.registeredFunction, params, this.workflowUUID, funcId, ...args)
197
- : undefined;
198
- }
199
- else {
200
- proxy[op.name] = op.workflowConfig
201
- ? (...args) => this.#dbosExec.internalWorkflow(op.registeredFunction, params, this.workflowUUID, funcId, ...args)
202
- .then((handle) => handle.getResult())
203
- : undefined;
204
- }
205
- }
206
- return proxy;
207
- }
208
- startWorkflow(target, workflowUUID) {
209
- if (typeof target === 'function') {
210
- return this.proxyInvokeWF(target, workflowUUID, true, null);
211
- }
212
- else {
213
- return this.proxyInvokeWF(target, workflowUUID, true, target);
214
- }
215
- }
216
- invokeWorkflow(target, workflowUUID) {
217
- if (typeof target === 'function') {
218
- return this.proxyInvokeWF(target, workflowUUID, false, null);
219
- }
220
- else {
221
- return this.proxyInvokeWF(target, workflowUUID, false, target);
222
- }
223
- }
183
+ // Deprecated
224
184
  async childWorkflow(wf, ...args) {
225
185
  return this.startChildWorkflow(wf, ...args);
226
186
  }
@@ -230,8 +190,8 @@ class WorkflowContextImpl extends context_1.DBOSContextImpl {
230
190
  * If the transaction encounters a Postgres serialization error, retry it.
231
191
  * If it encounters any other error, throw it.
232
192
  */
233
- async transaction(txn, clsinst, ...args) {
234
- const txnInfo = this.#dbosExec.getTransactionInfo(txn);
193
+ async transaction(txn, ...args) {
194
+ const txnInfo = this.#dbosExec.transactionInfoMap.get(txn.name);
235
195
  if (txnInfo === undefined) {
236
196
  throw new error_1.DBOSNotRegisteredError(txn.name);
237
197
  }
@@ -276,7 +236,7 @@ class WorkflowContextImpl extends context_1.DBOSContextImpl {
276
236
  await this.flushResultBuffer(client);
277
237
  }
278
238
  // Execute the user's transaction.
279
- const result = await txn.call(clsinst, tCtxt, ...args);
239
+ const result = await txn(tCtxt, ...args);
280
240
  // Record the execution, commit, and return.
281
241
  if (readOnly) {
282
242
  // Buffer the output of read-only transactions instead of synchronously writing it.
@@ -329,8 +289,8 @@ class WorkflowContextImpl extends context_1.DBOSContextImpl {
329
289
  * If it encounters any error, retry according to its configured retry policy until the maximum number of attempts is reached, then throw an DBOSError.
330
290
  * The communicator may execute many times, but once it is complete, it will not re-execute.
331
291
  */
332
- async external(commFn, clsInst, ...args) {
333
- const commInfo = this.#dbosExec.getCommunicatorInfo(commFn);
292
+ async external(commFn, ...args) {
293
+ const commInfo = this.#dbosExec.communicatorInfoMap.get(commFn.name);
334
294
  if (commInfo === undefined) {
335
295
  throw new error_1.DBOSNotRegisteredError(commFn.name);
336
296
  }
@@ -373,7 +333,7 @@ class WorkflowContextImpl extends context_1.DBOSContextImpl {
373
333
  }
374
334
  while (result === dbos_executor_1.dbosNull && numAttempts++ < ctxt.maxAttempts) {
375
335
  try {
376
- result = await commFn.call(clsInst, ctxt, ...args);
336
+ result = await commFn(ctxt, ...args);
377
337
  }
378
338
  catch (error) {
379
339
  this.logger.error(error);
@@ -390,7 +350,7 @@ class WorkflowContextImpl extends context_1.DBOSContextImpl {
390
350
  }
391
351
  else {
392
352
  try {
393
- result = await commFn.call(clsInst, ctxt, ...args);
353
+ result = await commFn(ctxt, ...args);
394
354
  }
395
355
  catch (error) {
396
356
  err = error;
@@ -455,31 +415,19 @@ class WorkflowContextImpl extends context_1.DBOSContextImpl {
455
415
  * to use WorkflowContext.Transaction(OpClass.someMethod, param);
456
416
  */
457
417
  invoke(object) {
458
- if (typeof object === 'function') {
459
- const ops = (0, decorators_1.getRegisteredOperations)(object);
460
- const proxy = {};
461
- for (const op of ops) {
462
- proxy[op.name] = op.txnConfig
463
- ? (...args) => this.transaction(op.registeredFunction, null, ...args)
464
- : op.commConfig
465
- ? (...args) => this.external(op.registeredFunction, null, ...args)
466
- : undefined;
467
- }
468
- return proxy;
469
- }
470
- else {
471
- const targetInst = object;
472
- const ops = (0, decorators_1.getRegisteredOperations)(targetInst);
473
- const proxy = {};
474
- for (const op of ops) {
475
- proxy[op.name] = op.txnConfig
476
- ? (...args) => this.transaction(op.registeredFunction, targetInst, ...args)
477
- : op.commConfig
478
- ? (...args) => this.external(op.registeredFunction, targetInst, ...args)
479
- : undefined;
480
- }
481
- return proxy;
418
+ const ops = (0, decorators_1.getRegisteredOperations)(object);
419
+ const proxy = {};
420
+ for (const op of ops) {
421
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
422
+ proxy[op.name] = op.txnConfig
423
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
424
+ ? (...args) => this.transaction(op.registeredFunction, ...args)
425
+ : op.commConfig
426
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
427
+ ? (...args) => this.external(op.registeredFunction, ...args)
428
+ : undefined;
482
429
  }
430
+ return proxy;
483
431
  }
484
432
  /**
485
433
  * Wait for a workflow to emit an event, then return its value.
@@ -1 +1 @@
1
- {"version":3,"file":"workflow.js","sourceRoot":"","sources":["../../src/workflow.ts"],"names":[],"mappings":";;;AAAA,uDAAuD;AACvD,mDAAkF;AAElF,+CAAwG;AACxG,iDAA4F;AAC5F,mCAA2F;AAC3F,qDAAmE;AACnE,mCAAkC;AAGlC,4CAAoD;AAEpD,uCAAsE;AACtE,6C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