@dbos-inc/dbos-sdk 1.12.6-preview → 1.12.8-preview
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/schemas/system_db_schema.d.ts +2 -0
- package/dist/schemas/system_db_schema.d.ts.map +1 -1
- package/dist/src/communicator.d.ts +1 -1
- package/dist/src/communicator.d.ts.map +1 -1
- package/dist/src/communicator.js.map +1 -1
- package/dist/src/dbos-executor.d.ts +27 -11
- package/dist/src/dbos-executor.d.ts.map +1 -1
- package/dist/src/dbos-executor.js +147 -47
- package/dist/src/dbos-executor.js.map +1 -1
- package/dist/src/debugger/debug_workflow.d.ts +14 -5
- package/dist/src/debugger/debug_workflow.d.ts.map +1 -1
- package/dist/src/debugger/debug_workflow.js +74 -18
- package/dist/src/debugger/debug_workflow.js.map +1 -1
- package/dist/src/decorators.d.ts +19 -2
- package/dist/src/decorators.d.ts.map +1 -1
- package/dist/src/decorators.js +104 -27
- package/dist/src/decorators.js.map +1 -1
- package/dist/src/httpServer/handler.d.ts +19 -15
- package/dist/src/httpServer/handler.d.ts.map +1 -1
- package/dist/src/httpServer/handler.js +24 -22
- package/dist/src/httpServer/handler.js.map +1 -1
- package/dist/src/httpServer/server.d.ts.map +1 -1
- package/dist/src/httpServer/server.js +6 -1
- package/dist/src/httpServer/server.js.map +1 -1
- package/dist/src/index.d.ts +1 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +4 -1
- package/dist/src/index.js.map +1 -1
- package/dist/src/kafka/kafka.d.ts +2 -3
- package/dist/src/kafka/kafka.d.ts.map +1 -1
- package/dist/src/kafka/kafka.js +2 -13
- package/dist/src/kafka/kafka.js.map +1 -1
- package/dist/src/scheduler/scheduler.d.ts +4 -8
- package/dist/src/scheduler/scheduler.d.ts.map +1 -1
- package/dist/src/scheduler/scheduler.js +2 -9
- package/dist/src/scheduler/scheduler.js.map +1 -1
- package/dist/src/system_database.d.ts +2 -0
- package/dist/src/system_database.d.ts.map +1 -1
- package/dist/src/system_database.js +61 -4
- package/dist/src/system_database.js.map +1 -1
- package/dist/src/testing/testing_runtime.d.ts +9 -5
- package/dist/src/testing/testing_runtime.d.ts.map +1 -1
- package/dist/src/testing/testing_runtime.js +24 -12
- package/dist/src/testing/testing_runtime.js.map +1 -1
- package/dist/src/transaction.d.ts +1 -1
- package/dist/src/transaction.d.ts.map +1 -1
- package/dist/src/workflow.d.ts +46 -10
- package/dist/src/workflow.d.ts.map +1 -1
- package/dist/src/workflow.js +72 -20
- package/dist/src/workflow.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/migrations/20240517000000_status_class_config.js +18 -0
- package/package.json +2 -2
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"scheduler.js","sourceRoot":"","sources":["../../../src/scheduler/scheduler.ts"],"names":[],"mappings":";;;AAEA,
|
1
|
+
{"version":3,"file":"scheduler.js","sourceRoot":"","sources":["../../../src/scheduler/scheduler.ts"],"names":[],"mappings":";;;AAEA,8CAAgF;AAChF,uCAAwC;AAGxC,IAAI;AACJ,gBAAgB;AAChB,IAAI;AAEJ,IAAY,aAGX;AAHD,WAAY,aAAa;IACrB,kEAAiD,CAAA;IACjD,sFAAqE,CAAA;AACzE,CAAC,EAHW,aAAa,6BAAb,aAAa,QAGxB;AAED,MAAa,eAAe;IACxB,OAAO,GAAW,WAAW,CAAC,CAAC,eAAe;IAC9C,IAAI,GAAoB,aAAa,CAAC,sBAAsB,CAAC;CAChE;AAHD,0CAGC;AAcD,SAAgB,SAAS,CAAC,eAAgC;IACtD,SAAS,QAAQ,CACb,MAAc,EACd,WAAmB,EACnB,YAAwG;QAExG,MAAM,EAAE,UAAU,EAAE,YAAY,EAAE,GAAG,IAAA,oCAAuB,EAAC,MAAM,EAAE,WAAW,EAAE,YAAY,CAAC,CAAC;QAChG,MAAM,iBAAiB,GAAG,YAAoD,CAAC;QAC/E,iBAAiB,CAAC,eAAe,GAAG,eAAe,CAAC;QAEpD,OAAO,UAAU,CAAC;IACtB,CAAC;IACD,OAAO,QAAQ,CAAC;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G,IAAI,CAAC;IA+BjH,iBAAiB,CAAC,CAAC,EAAE,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC;IAkB5D;;;OAGG;IACG,sBAAsB;IAmBtB,oBAAoB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;IAYzD,oBAAoB,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;CAWjF"}
|
@@ -83,7 +83,34 @@ class PostgresSystemDatabase {
|
|
83
83
|
}
|
84
84
|
}
|
85
85
|
async initWorkflowStatus(initStatus, args) {
|
86
|
-
await this.pool.query(`INSERT INTO ${dbos_executor_1.DBOSExecutor.systemDBSchemaName}.workflow_status (
|
86
|
+
await this.pool.query(`INSERT INTO ${dbos_executor_1.DBOSExecutor.systemDBSchemaName}.workflow_status (
|
87
|
+
workflow_uuid,
|
88
|
+
status,
|
89
|
+
name,
|
90
|
+
class_name,
|
91
|
+
config_name,
|
92
|
+
authenticated_user,
|
93
|
+
assumed_role,
|
94
|
+
authenticated_roles,
|
95
|
+
request,
|
96
|
+
output,
|
97
|
+
executor_id,
|
98
|
+
created_at
|
99
|
+
) VALUES($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12)
|
100
|
+
ON CONFLICT (workflow_uuid) DO NOTHING`, [
|
101
|
+
initStatus.workflowUUID,
|
102
|
+
initStatus.status,
|
103
|
+
initStatus.name,
|
104
|
+
initStatus.className,
|
105
|
+
initStatus.configName,
|
106
|
+
initStatus.authenticatedUser,
|
107
|
+
initStatus.assumedRole,
|
108
|
+
JSON.stringify(initStatus.authenticatedRoles),
|
109
|
+
JSON.stringify(initStatus.request),
|
110
|
+
null,
|
111
|
+
initStatus.executorID,
|
112
|
+
initStatus.createdAt,
|
113
|
+
]);
|
87
114
|
const { rows } = await this.pool.query(`INSERT INTO ${dbos_executor_1.DBOSExecutor.systemDBSchemaName}.workflow_inputs (workflow_uuid, inputs) VALUES($1, $2) ON CONFLICT (workflow_uuid) DO UPDATE SET workflow_uuid = excluded.workflow_uuid RETURNING inputs`, [initStatus.workflowUUID, JSON.stringify(args, utils_1.DBOSReplacer)]);
|
88
115
|
return JSON.parse(rows[0].inputs, utils_1.DBOSReviver);
|
89
116
|
}
|
@@ -143,8 +170,36 @@ class PostgresSystemDatabase {
|
|
143
170
|
return;
|
144
171
|
}
|
145
172
|
async recordWorkflowError(workflowUUID, status) {
|
146
|
-
await this.pool.query(`INSERT INTO ${dbos_executor_1.DBOSExecutor.systemDBSchemaName}.workflow_status (
|
147
|
-
|
173
|
+
await this.pool.query(`INSERT INTO ${dbos_executor_1.DBOSExecutor.systemDBSchemaName}.workflow_status (
|
174
|
+
workflow_uuid,
|
175
|
+
status,
|
176
|
+
name,
|
177
|
+
class_name,
|
178
|
+
config_name,
|
179
|
+
authenticated_user,
|
180
|
+
assumed_role,
|
181
|
+
authenticated_roles,
|
182
|
+
request,
|
183
|
+
error,
|
184
|
+
executor_id,
|
185
|
+
created_at,
|
186
|
+
updated_at
|
187
|
+
) VALUES($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13)
|
188
|
+
ON CONFLICT (workflow_uuid)
|
189
|
+
DO UPDATE SET status=EXCLUDED.status, error=EXCLUDED.error, updated_at=EXCLUDED.updated_at;`, [
|
190
|
+
workflowUUID,
|
191
|
+
workflow_1.StatusString.ERROR,
|
192
|
+
status.name,
|
193
|
+
status.className,
|
194
|
+
status.configName,
|
195
|
+
status.authenticatedUser,
|
196
|
+
status.assumedRole,
|
197
|
+
JSON.stringify(status.authenticatedRoles),
|
198
|
+
JSON.stringify(status.request),
|
199
|
+
status.error, status.executorID,
|
200
|
+
status.createdAt,
|
201
|
+
Date.now()
|
202
|
+
]);
|
148
203
|
}
|
149
204
|
async getPendingWorkflows(executorID) {
|
150
205
|
const { rows } = await this.pool.query(`SELECT workflow_uuid FROM ${dbos_executor_1.DBOSExecutor.systemDBSchemaName}.workflow_status WHERE status=$1 AND executor_id=$2`, [workflow_1.StatusString.PENDING, executorID]);
|
@@ -444,12 +499,14 @@ class PostgresSystemDatabase {
|
|
444
499
|
return JSON.parse(rows[0].output);
|
445
500
|
}
|
446
501
|
}
|
447
|
-
const { rows } = await this.pool.query(`SELECT status, name, authenticated_user, assumed_role, authenticated_roles, request FROM ${dbos_executor_1.DBOSExecutor.systemDBSchemaName}.workflow_status WHERE workflow_uuid=$1`, [workflowUUID]);
|
502
|
+
const { rows } = await this.pool.query(`SELECT status, name, class_name, config_name, authenticated_user, assumed_role, authenticated_roles, request FROM ${dbos_executor_1.DBOSExecutor.systemDBSchemaName}.workflow_status WHERE workflow_uuid=$1`, [workflowUUID]);
|
448
503
|
let value = null;
|
449
504
|
if (rows.length > 0) {
|
450
505
|
value = {
|
451
506
|
status: rows[0].status,
|
452
507
|
workflowName: rows[0].name,
|
508
|
+
workflowClassName: rows[0].class_name || "",
|
509
|
+
workflowConfigName: rows[0].config_name || "",
|
453
510
|
authenticatedUser: rows[0].authenticated_user,
|
454
511
|
assumedRole: rows[0].assumed_role,
|
455
512
|
authenticatedRoles: JSON.parse(rows[0].authenticated_roles),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"system_database.js","sourceRoot":"","sources":["../../src/system_database.ts"],"names":[],"mappings":";AAAA,uDAAuD;;;;;;AAEvD,qDAAmE;AACnE,mDAAmE;AACnE,2BAAuF;AACvF,mCAAmH;AACnH,yCAA0D;AAE1D,mCAA8E;AAG9E,gDAAwB;AACxB,gDAAwB;AAwDjB,KAAK,UAAU,qBAAqB,CAAC,gBAA4B;IACtE,MAAM,mBAAmB,GAAG,cAAI,CAAC,IAAI,CAAC,IAAA,uBAAe,EAAC,SAAS,CAAC,EAAE,YAAY,CAAC,CAAC;IAChF,MAAM,UAAU,GAAG;QACjB,MAAM,EAAE,IAAI;QACZ,UAAU,EAAE,gBAAgB;QAC5B,UAAU,EAAE;YACR,SAAS,EAA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AC,mBAAmB,CAAC,EAAE,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC;IACvD,CAAC;IAED,eAAe;IACf,KAAK,CAAC,oBAAoB,CAAC,GAAW;QACpC,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,KAAK,CAAkB;;aAE1C,4BAAY,CAAC,kBAAkB;;KAEvC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;QAEV,IAAI,CAAC,GAAG,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,aAAa,IAAI,IAAI,CAAC;QAC3C,IAAI,CAAC,KAAI,IAAI;YAAE,CAAC,GAAG,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QACpC,OAAO,CAAC,CAAC;IACX,CAAC;IAED,KAAK,CAAC,oBAAoB,CAAC,GAAW,EAAE,OAAe;QACrD,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,KAAK,CAAkB;oBACnC,4BAAY,CAAC,kBAAkB;;;;;KAK9C,EAAE,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC;QAEnB,OAAO,QAAQ,CAAC,GAAG,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,aAAa,EAAE,CAAC,CAAC;IAClD,CAAC;;AAvlBH,wDAwlBC"}
|
@@ -3,7 +3,8 @@
|
|
3
3
|
/// <reference types="node/http" />
|
4
4
|
import { IncomingMessage } from "http";
|
5
5
|
import { HTTPRequest } from "../context";
|
6
|
-
import {
|
6
|
+
import { ConfiguredInstance } from "../decorators";
|
7
|
+
import { AsyncHandlerWfFuncs, AsyncHandlerWfFuncInst, InvokeFuncs, InvokeFuncsInst, SyncHandlerWfFuncs, SyncHandlerWfFuncsInst } from "../httpServer/handler";
|
7
8
|
import { DBOSExecutor, DBOSConfig } from "../dbos-executor";
|
8
9
|
import { WorkflowHandle } from "../workflow";
|
9
10
|
import { Http2ServerRequest, Http2ServerResponse } from "http2";
|
@@ -19,8 +20,11 @@ export interface WorkflowInvokeParams {
|
|
19
20
|
readonly request?: HTTPRequest;
|
20
21
|
}
|
21
22
|
export interface TestingRuntime {
|
23
|
+
invoke<T extends ConfiguredInstance>(targetInst: T, workflowUUID?: string, params?: WorkflowInvokeParams): InvokeFuncsInst<T>;
|
22
24
|
invoke<T extends object>(targetClass: T, workflowUUID?: string, params?: WorkflowInvokeParams): InvokeFuncs<T>;
|
25
|
+
invokeWorkflow<T extends ConfiguredInstance>(targetCfg: T, workflowUUID?: string, params?: WorkflowInvokeParams): SyncHandlerWfFuncsInst<T>;
|
23
26
|
invokeWorkflow<T extends object>(targetClass: T, workflowUUID?: string, params?: WorkflowInvokeParams): SyncHandlerWfFuncs<T>;
|
27
|
+
startWorkflow<T extends ConfiguredInstance>(targetCfg: T, workflowUUID?: string, params?: WorkflowInvokeParams): AsyncHandlerWfFuncInst<T>;
|
24
28
|
startWorkflow<T extends object>(targetClass: T, workflowUUID?: string, params?: WorkflowInvokeParams): AsyncHandlerWfFuncs<T>;
|
25
29
|
retrieveWorkflow<R>(workflowUUID: string): WorkflowHandle<R>;
|
26
30
|
send<T>(destinationUUID: string, message: T, topic?: string, idempotencyKey?: string): Promise<void>;
|
@@ -63,10 +67,10 @@ export declare class TestingRuntimeImpl implements TestingRuntime {
|
|
63
67
|
* Generate a proxy object for the provided class that wraps direct calls (i.e. OpClass.someMethod(param))
|
64
68
|
* to invoke workflows, transactions, and communicators;
|
65
69
|
*/
|
66
|
-
mainInvoke<T extends object>(object: T, workflowUUID: string | undefined, params: WorkflowInvokeParams | undefined, asyncWf: boolean): InvokeFuncs<T>;
|
67
|
-
invoke<T extends object>(object: T, workflowUUID?: string, params?: WorkflowInvokeParams): InvokeFuncs<T>;
|
68
|
-
startWorkflow<T extends object>(object: T, workflowUUID?: string, params?: WorkflowInvokeParams): AsyncHandlerWfFuncs<T>;
|
69
|
-
invokeWorkflow<T extends object>(object: T, workflowUUID?: string, params?: WorkflowInvokeParams): SyncHandlerWfFuncs<T>;
|
70
|
+
mainInvoke<T extends object>(object: T, workflowUUID: string | undefined, params: WorkflowInvokeParams | undefined, asyncWf: boolean, clsinst: ConfiguredInstance | null): InvokeFuncs<T>;
|
71
|
+
invoke<T extends object>(object: T | ConfiguredInstance, workflowUUID?: string, params?: WorkflowInvokeParams): InvokeFuncs<T> | InvokeFuncsInst<T>;
|
72
|
+
startWorkflow<T extends object>(object: T, workflowUUID?: string, params?: WorkflowInvokeParams): AsyncHandlerWfFuncs<T> | AsyncHandlerWfFuncInst<T>;
|
73
|
+
invokeWorkflow<T extends object>(object: T | ConfiguredInstance, workflowUUID?: string, params?: WorkflowInvokeParams): SyncHandlerWfFuncs<T> | SyncHandlerWfFuncsInst<T>;
|
70
74
|
/**
|
71
75
|
* Return a request handler callback for node's native http/http2 server, which includes all registered HTTP endpoints.
|
72
76
|
*/
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"testing_runtime.d.ts","sourceRoot":"","sources":["../../../src/testing/testing_runtime.ts"],"names":[],"mappings":";;;AACA,OAAO,EAAE,eAAe,EAAE,MAAM,MAAM,CAAC;AAEvC,OAAO,EAAE,WAAW,EAAmB,MAAM,YAAY,CAAC;
|
1
|
+
{"version":3,"file":"testing_runtime.d.ts","sourceRoot":"","sources":["../../../src/testing/testing_runtime.ts"],"names":[],"mappings":";;;AACA,OAAO,EAAE,eAAe,EAAE,MAAM,MAAM,CAAC;AAEvC,OAAO,EAAE,WAAW,EAAmB,MAAM,YAAY,CAAC;AAC1D,OAAO,EAAE,kBAAkB,EAA2B,MAAM,eAAe,CAAC;AAE5E,OAAO,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,WAAW,EAAE,eAAe,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAE9J,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAG5D,OAAO,EAAY,cAAc,EAAkB,MAAM,aAAa,CAAC;AACvE,OAAO,EAAE,kBAA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))
|
94
94
|
* to invoke workflows, transactions, and communicators;
|
95
95
|
*/
|
96
|
-
mainInvoke(object, workflowUUID, params, asyncWf) {
|
96
|
+
mainInvoke(object, workflowUUID, params, asyncWf, clsinst) {
|
97
97
|
const dbosExec = this.getDBOSExec();
|
98
|
-
const ops = (0, decorators_1.getRegisteredOperations)(object);
|
98
|
+
const ops = (0, decorators_1.getRegisteredOperations)(clsinst ? clsinst : object);
|
99
99
|
const proxy = {};
|
100
100
|
// Creates a context to pass in necessary info.
|
101
101
|
const span = dbosExec.tracer.startSpan("test");
|
@@ -103,25 +103,19 @@ class TestingRuntimeImpl {
|
|
103
103
|
oc.authenticatedUser = params?.authenticatedUser ?? "";
|
104
104
|
oc.request = params?.request ?? {};
|
105
105
|
oc.authenticatedRoles = params?.authenticatedRoles ?? [];
|
106
|
-
const wfParams = { workflowUUID: workflowUUID, parentCtx: oc };
|
106
|
+
const wfParams = { workflowUUID: workflowUUID, parentCtx: oc, configuredInstance: clsinst };
|
107
107
|
for (const op of ops) {
|
108
108
|
if (asyncWf) {
|
109
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
110
109
|
proxy[op.name] = op.txnConfig
|
111
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
112
110
|
? (...args) => dbosExec.transaction(op.registeredFunction, wfParams, ...args)
|
113
111
|
: op.workflowConfig
|
114
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
115
112
|
? (...args) => dbosExec.workflow(op.registeredFunction, wfParams, ...args)
|
116
113
|
: op.commConfig
|
117
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
118
114
|
? (...args) => dbosExec.external(op.registeredFunction, wfParams, ...args)
|
119
115
|
: undefined;
|
120
116
|
}
|
121
117
|
else {
|
122
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
123
118
|
proxy[op.name] = op.workflowConfig
|
124
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
125
119
|
? (...args) => dbosExec.workflow(op.registeredFunction, wfParams, ...args).then((handle) => handle.getResult())
|
126
120
|
: undefined;
|
127
121
|
}
|
@@ -129,13 +123,31 @@ class TestingRuntimeImpl {
|
|
129
123
|
return proxy;
|
130
124
|
}
|
131
125
|
invoke(object, workflowUUID, params) {
|
132
|
-
|
126
|
+
if (typeof object === 'function') {
|
127
|
+
return this.mainInvoke(object, workflowUUID, params, true, null);
|
128
|
+
}
|
129
|
+
else {
|
130
|
+
const targetInst = object;
|
131
|
+
return this.mainInvoke(targetInst.constructor, workflowUUID, params, true, targetInst);
|
132
|
+
}
|
133
133
|
}
|
134
134
|
startWorkflow(object, workflowUUID, params) {
|
135
|
-
|
135
|
+
if (typeof object === 'function') {
|
136
|
+
return this.mainInvoke(object, workflowUUID, params, true, null);
|
137
|
+
}
|
138
|
+
else {
|
139
|
+
const targetInst = object;
|
140
|
+
return this.mainInvoke(targetInst.constructor, workflowUUID, params, true, targetInst);
|
141
|
+
}
|
136
142
|
}
|
137
143
|
invokeWorkflow(object, workflowUUID, params) {
|
138
|
-
|
144
|
+
if (typeof object === 'function') {
|
145
|
+
return this.mainInvoke(object, workflowUUID, params, false, null);
|
146
|
+
}
|
147
|
+
else {
|
148
|
+
const targetInst = object;
|
149
|
+
return this.mainInvoke(targetInst.constructor, workflowUUID, params, false, targetInst);
|
150
|
+
}
|
139
151
|
}
|
140
152
|
/**
|
141
153
|
* Return a request handler callback for node's native http/http2 server, which includes all registered HTTP endpoints.
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"testing_runtime.js","sourceRoot":"","sources":["../../../src/testing/testing_runtime.ts"],"names":[],"mappings":";;;AAGA,wCAA0D;AAC1D,
|
1
|
+
{"version":3,"file":"testing_runtime.js","sourceRoot":"","sources":["../../../src/testing/testing_runtime.ts"],"names":[],"mappings":";;;AAGA,wCAA0D;AAC1D,8CAA4E;AAC5E,oCAA6D;AAE7D,iDAAsD;AACtD,oDAA4D;AAC5D,mDAA6E;A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W;QACT,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;YAClB,MAAM,IAAI,iBAAS,CAAC,qEAAqE,CAAC,CAAC;QAC7F,CAAC;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC;IAC/B,CAAC;CACF;AAlLD,gDAkLC"}
|
@@ -5,7 +5,7 @@ import { DBOSContext, DBOSContextImpl } from "./context";
|
|
5
5
|
import { ValuesOf } from "./utils";
|
6
6
|
import { GlobalLogger as Logger } from "./telemetry/logs";
|
7
7
|
import { WorkflowContextDebug } from "./debugger/debug_workflow";
|
8
|
-
export type Transaction<T extends
|
8
|
+
export type Transaction<T extends unknown[], R> = (ctxt: TransactionContext<any>, ...args: T) => Promise<R>;
|
9
9
|
export interface TransactionConfig {
|
10
10
|
isolationLevel?: IsolationLevel;
|
11
11
|
readOnly?: boolean;
|
@@ -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,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAGjE,MAAM,MAAM,WAAW,CAAC,CAAC,SAAS,
|
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,mBAA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CAKxB"}
|
package/dist/src/workflow.d.ts
CHANGED
@@ -4,22 +4,30 @@ import { Communicator, 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
|
-
|
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>;
|
8
10
|
export type TailParameters<T extends (arg: any, args: any[]) => any> = T extends (arg: any, ...args: infer P) => any ? P : never;
|
9
11
|
type TxFunc = (ctxt: TransactionContext<any>, ...args: any[]) => Promise<any>;
|
10
12
|
type CommFunc = (ctxt: CommunicatorContext, ...args: any[]) => Promise<any>;
|
11
|
-
export type WFInvokeFuncs<T> = {
|
13
|
+
export type WFInvokeFuncs<T> = T extends ConfiguredInstance ? never : {
|
12
14
|
[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;
|
13
15
|
};
|
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;
|
14
19
|
export interface WorkflowParams {
|
15
20
|
workflowUUID?: string;
|
16
21
|
parentCtx?: DBOSContextImpl;
|
22
|
+
configuredInstance?: ConfiguredInstance | null;
|
17
23
|
}
|
18
24
|
export interface WorkflowConfig {
|
19
25
|
}
|
20
26
|
export interface WorkflowStatus {
|
21
27
|
readonly status: string;
|
22
28
|
readonly workflowName: string;
|
29
|
+
readonly workflowClassName: string;
|
30
|
+
readonly workflowConfigName: string;
|
23
31
|
readonly authenticatedUser: string;
|
24
32
|
readonly assumedRole: string;
|
25
33
|
readonly authenticatedRoles: string[];
|
@@ -38,11 +46,32 @@ export declare const StatusString: {
|
|
38
46
|
readonly SUCCESS: "SUCCESS";
|
39
47
|
readonly ERROR: "ERROR";
|
40
48
|
};
|
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;
|
41
62
|
export interface WorkflowContext extends DBOSContext {
|
63
|
+
invoke<T extends ConfiguredInstance>(targetCfg: T): InvokeFuncsInst<T>;
|
42
64
|
invoke<T extends object>(targetClass: T): WFInvokeFuncs<T>;
|
65
|
+
/** @deprecated See startWorkflow */
|
43
66
|
startChildWorkflow<T extends any[], R>(wf: Workflow<T, R>, ...args: T): Promise<WorkflowHandle<R>>;
|
44
|
-
|
45
|
-
|
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>;
|
46
75
|
send<T>(destinationUUID: string, message: T, topic?: string): Promise<void>;
|
47
76
|
recv<T>(topic?: string, timeoutSeconds?: number): Promise<T | null>;
|
48
77
|
setEvent<T>(key: string, value: T): Promise<void>;
|
@@ -94,22 +123,29 @@ export declare class WorkflowContextImpl extends DBOSContextImpl implements Work
|
|
94
123
|
* We pass in itself as a parent context and assign the child workflow with a deterministic UUID "this.workflowUUID-functionID".
|
95
124
|
* We also pass in its own workflowUUID and function ID so the invoked handle is deterministic.
|
96
125
|
*/
|
97
|
-
startChildWorkflow<T extends
|
98
|
-
invokeChildWorkflow<T extends
|
99
|
-
|
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>>;
|
100
136
|
/**
|
101
137
|
* Execute a transactional function.
|
102
138
|
* The transaction is guaranteed to execute exactly once, even if the workflow is retried with the same UUID.
|
103
139
|
* If the transaction encounters a Postgres serialization error, retry it.
|
104
140
|
* If it encounters any other error, throw it.
|
105
141
|
*/
|
106
|
-
transaction<T extends
|
142
|
+
transaction<T extends unknown[], R>(txn: Transaction<T, R>, clsinst: ConfiguredInstance | null, ...args: T): Promise<R>;
|
107
143
|
/**
|
108
144
|
* Execute a communicator function.
|
109
145
|
* If it encounters any error, retry according to its configured retry policy until the maximum number of attempts is reached, then throw an DBOSError.
|
110
146
|
* The communicator may execute many times, but once it is complete, it will not re-execute.
|
111
147
|
*/
|
112
|
-
external<T extends
|
148
|
+
external<T extends unknown[], R>(commFn: Communicator<T, R>, clsInst: ConfiguredInstance | null, ...args: T): Promise<R>;
|
113
149
|
/**
|
114
150
|
* Send a message to a workflow identified by a UUID.
|
115
151
|
* The message can optionally be tagged with a topic.
|
@@ -130,7 +166,7 @@ export declare class WorkflowContextImpl extends DBOSContextImpl implements Work
|
|
130
166
|
* Generate a proxy object for the provided class that wraps direct calls (i.e. OpClass.someMethod(param))
|
131
167
|
* to use WorkflowContext.Transaction(OpClass.someMethod, param);
|
132
168
|
*/
|
133
|
-
invoke<T extends object>(object: T): WFInvokeFuncs<T>;
|
169
|
+
invoke<T extends object>(object: T | ConfiguredInstance): WFInvokeFuncs<T> | InvokeFuncsInst<T>;
|
134
170
|
/**
|
135
171
|
* Wait for a workflow to emit an event, then return its value.
|
136
172
|
*/
|
@@ -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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