@dbos-inc/dbos-sdk 1.28.7-preview.gdb2d0f0508 → 1.29.83-preview.g0c5a5d6c8e
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/src/context.d.ts +36 -0
- package/dist/src/context.d.ts.map +1 -1
- package/dist/src/context.js +104 -1
- package/dist/src/context.js.map +1 -1
- package/dist/src/data_validation.d.ts.map +1 -1
- package/dist/src/data_validation.js +6 -2
- package/dist/src/data_validation.js.map +1 -1
- package/dist/src/dbos-executor.d.ts +36 -20
- package/dist/src/dbos-executor.d.ts.map +1 -1
- package/dist/src/dbos-executor.js +309 -21
- package/dist/src/dbos-executor.js.map +1 -1
- package/dist/src/dbos-runtime/runtime.d.ts +3 -8
- package/dist/src/dbos-runtime/runtime.d.ts.map +1 -1
- package/dist/src/dbos-runtime/runtime.js +7 -11
- package/dist/src/dbos-runtime/runtime.js.map +1 -1
- package/dist/src/dbos.d.ts +109 -0
- package/dist/src/dbos.d.ts.map +1 -0
- package/dist/src/dbos.js +551 -0
- package/dist/src/dbos.js.map +1 -0
- package/dist/src/debugger/debug_workflow.d.ts.map +1 -1
- package/dist/src/debugger/debug_workflow.js +5 -1
- package/dist/src/debugger/debug_workflow.js.map +1 -1
- package/dist/src/decorators.d.ts +11 -2
- package/dist/src/decorators.d.ts.map +1 -1
- package/dist/src/decorators.js +30 -8
- package/dist/src/decorators.js.map +1 -1
- package/dist/src/error.d.ts +6 -0
- package/dist/src/error.d.ts.map +1 -1
- package/dist/src/error.js +20 -2
- package/dist/src/error.js.map +1 -1
- package/dist/src/eventreceiver.d.ts +6 -2
- package/dist/src/eventreceiver.d.ts.map +1 -1
- package/dist/src/httpServer/handler.d.ts +0 -1
- package/dist/src/httpServer/handler.d.ts.map +1 -1
- package/dist/src/httpServer/handler.js +5 -13
- package/dist/src/httpServer/handler.js.map +1 -1
- package/dist/src/httpServer/middleware.d.ts +13 -2
- package/dist/src/httpServer/middleware.d.ts.map +1 -1
- package/dist/src/httpServer/middleware.js +101 -1
- package/dist/src/httpServer/middleware.js.map +1 -1
- package/dist/src/httpServer/server.d.ts +3 -2
- package/dist/src/httpServer/server.d.ts.map +1 -1
- package/dist/src/httpServer/server.js +40 -30
- package/dist/src/httpServer/server.js.map +1 -1
- package/dist/src/index.d.ts +2 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +3 -3
- package/dist/src/index.js.map +1 -1
- package/dist/src/procedure.d.ts +1 -0
- package/dist/src/procedure.d.ts.map +1 -1
- package/dist/src/procedure.js.map +1 -1
- package/dist/src/scheduler/scheduler.d.ts.map +1 -1
- package/dist/src/scheduler/scheduler.js +3 -1
- package/dist/src/scheduler/scheduler.js.map +1 -1
- package/dist/src/system_database.d.ts.map +1 -1
- package/dist/src/system_database.js.map +1 -1
- package/dist/src/telemetry/logs.d.ts +11 -5
- package/dist/src/telemetry/logs.d.ts.map +1 -1
- package/dist/src/telemetry/logs.js +8 -11
- package/dist/src/telemetry/logs.js.map +1 -1
- package/dist/src/testing/testing_runtime.d.ts.map +1 -1
- package/dist/src/testing/testing_runtime.js +10 -4
- package/dist/src/testing/testing_runtime.js.map +1 -1
- package/dist/src/user_database.d.ts +1 -1
- package/dist/src/user_database.d.ts.map +1 -1
- package/dist/src/wfqueue.d.ts.map +1 -1
- package/dist/src/wfqueue.js +17 -2
- package/dist/src/wfqueue.js.map +1 -1
- package/dist/src/workflow.d.ts +7 -6
- package/dist/src/workflow.d.ts.map +1 -1
- package/dist/src/workflow.js +10 -187
- package/dist/src/workflow.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +5 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"debug_workflow.js","sourceRoot":"","sources":["../../../src/debugger/debug_workflow.ts"],"names":[],"mappings":";;;;;;AAAA,uDAAuD;AACvD,oDAAmF;AAEnF,gDAAqF;AAErF,oCAA6C;AAC7C,qDAAmD;AAInD,wCAA6C;AAC7C,8CAA4E;AAG5E,oCAAoC;AACpC,4CAA2E;AAE3E,8DAAiC;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,IAAI,CAAC,OAAO,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC;IAChC,CAAC;CACF;AArYD,oDAqYC;AAED;;GAEG;AACH,MAAM,oBAAoB;IACH;IAAyC;IAA+B;IAA6B;IAA1H,YAAqB,cAA8B,EAAW,YAAoB,EAAW,UAAkB,EAAW,gBAAwB;QAA7H,mBAAc,GAAd,cAAc,CAAgB;QAAW,iBAAY,GAAZ,YAAY,CAAQ;QAAW,eAAU,GAAV,UAAU,CAAQ;QAAW,qBAAgB,GAAhB,gBAAgB,CAAQ;IAAI,CAAC;IAEvJ,eAAe;QACb,OAAO,IAAI,CAAC,YAAY,CAAC;IAC3B,CAAC;IAED,KAAK,CAAC,SAAS;QACb,4BAA4B;QAC5B,MAAM,KAAK,GAAqC,MAAM,IAAI,CAAC,cAAc,CAAC,oBAAoB,CAAwB,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,gBAAgB,CAAC,CAAC;QAC9J,IAAI,KAAK,KAAK,wBAAQ,EAAE,CAAC;YACvB,MAAM,IAAI,yBAAiB,CAAC,uEAAuE,CAAC,CAAC;QACvG,CAAC;QACD,OAAO,KAA8B,CAAC;IACxC,CAAC;IAED,KAAK,CAAC,SAAS;QACb,OAAO,MAAM,IAAI,CAAC,cAAc,CAAC,iBAAiB,CAAI,IAAI,CAAC,YAAY,CAAC,CAAC;IAC3E,CAAC;IAED,KAAK,CAAC,iBAAiB;QACrB,OAAO,MAAM,IAAI,CAAC,cAAc,CAAC,iBAAiB,CAAI,IAAI,CAAC,YAAY,CAAM,CAAC;IAChF,CAAC;CACF"}
|
package/dist/src/decorators.d.ts
CHANGED
@@ -60,21 +60,25 @@ export interface MethodRegistrationBase {
|
|
60
60
|
procConfig?: TransactionConfig;
|
61
61
|
isInstance: boolean;
|
62
62
|
eventReceiverInfo: Map<DBOSEventReceiver, unknown>;
|
63
|
+
wrappedFunction: Function | undefined;
|
63
64
|
registeredFunction: Function | undefined;
|
64
65
|
origFunction: Function;
|
66
|
+
readonly passContext: boolean;
|
65
67
|
invoke(pthis: unknown, args: unknown[]): unknown;
|
66
68
|
}
|
67
69
|
export declare class MethodRegistration<This, Args extends unknown[], Return> implements MethodRegistrationBase {
|
70
|
+
readonly passContext: boolean;
|
68
71
|
defaults?: RegistrationDefaults | undefined;
|
69
72
|
name: string;
|
70
73
|
className: string;
|
71
74
|
requiredRole: string[] | undefined;
|
72
75
|
args: MethodParameter[];
|
73
|
-
constructor(origFunc: (this: This, ...args: Args) => Promise<Return>, isInstance: boolean);
|
76
|
+
constructor(origFunc: (this: This, ...args: Args) => Promise<Return>, isInstance: boolean, passContext: boolean);
|
74
77
|
needInitialized: boolean;
|
75
78
|
isInstance: boolean;
|
76
79
|
origFunction: (this: This, ...args: Args) => Promise<Return>;
|
77
80
|
registeredFunction: ((this: This, ...args: Args) => Promise<Return>) | undefined;
|
81
|
+
wrappedFunction: ((this: This, ...args: Args) => Promise<Return>) | undefined;
|
78
82
|
workflowConfig?: WorkflowConfig;
|
79
83
|
txnConfig?: TransactionConfig;
|
80
84
|
commConfig?: StepConfig;
|
@@ -107,6 +111,7 @@ export declare class ClassRegistration<CT extends {
|
|
107
111
|
}
|
108
112
|
export declare function getRegisteredMethodClassName(func: unknown): string;
|
109
113
|
export declare function getRegisteredMethodName(func: unknown): string;
|
114
|
+
export declare function registerFunctionWrapper(func: unknown, reg: MethodRegistration<unknown, unknown[], unknown>): void;
|
110
115
|
export declare function getRegisteredOperations(target: object): ReadonlyArray<MethodRegistrationBase>;
|
111
116
|
export declare function getConfiguredInstance(clsname: string, cfgname: string): ConfiguredInstance | null;
|
112
117
|
export declare function getOrCreateMethodArgsRegistration(target: object, propertyKey: string | symbol): MethodParameter[];
|
@@ -114,6 +119,10 @@ export declare function registerAndWrapFunction<This, Args extends unknown[], Re
|
|
114
119
|
descriptor: TypedPropertyDescriptor<(this: This, ...args: Args) => Promise<Return>>;
|
115
120
|
registration: MethodRegistration<This, Args, Return>;
|
116
121
|
};
|
122
|
+
export declare function registerAndWrapContextFreeFunction<This, Args extends unknown[], Return>(target: object, propertyKey: string, descriptor: TypedPropertyDescriptor<(this: This, ...args: Args) => Promise<Return>>): {
|
123
|
+
descriptor: TypedPropertyDescriptor<(this: This, ...args: Args) => Promise<Return>>;
|
124
|
+
registration: MethodRegistration<This, Args, Return>;
|
125
|
+
};
|
117
126
|
type AnyConstructor = new (...args: unknown[]) => object;
|
118
127
|
export declare function getAllRegisteredClasses(): AnyConstructor[];
|
119
128
|
export declare function getOrCreateClassRegistration<CT extends {
|
@@ -134,7 +143,7 @@ export declare function LogMask(mask: LogMasks): (target: object, propertyKey: s
|
|
134
143
|
export declare function ArgName(name: string): (target: object, propertyKey: string | symbol, parameterIndex: number) => void;
|
135
144
|
export declare function ArgDate(): (target: object, propertyKey: string | symbol, parameterIndex: number) => void;
|
136
145
|
export declare function ArgVarchar(length: number): (target: object, propertyKey: string | symbol, parameterIndex: number) => void;
|
137
|
-
export declare function DefaultRequiredRole(anyOf: string[]): <T extends new (...args:
|
146
|
+
export declare function DefaultRequiredRole(anyOf: string[]): <T extends new (...args: any[]) => object>(ctor: T) => void;
|
138
147
|
export declare function DefaultArgRequired<T extends {
|
139
148
|
new (...args: unknown[]): object;
|
140
149
|
}>(ctor: T): void;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"decorators.d.ts","sourceRoot":"","sources":["../../src/decorators.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAG1B,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACtE,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7D,OAAO,EAAE,WAAW,
|
1
|
+
{"version":3,"file":"decorators.d.ts","sourceRoot":"","sources":["../../src/decorators.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAG1B,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACtE,OAAO,E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AAG,EAAE,MAAM,GAAG,MAAM,CAAA;CAAO,4BAErC,OAAO,EAAE,KAAI,MAAM,QAAU,CAAC,UAMzE;AAED,wBAAgB,eAAe,mDAEnB,MAAM,eACD,MAAM,gBACL,wBAAwB,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,IAAI,KAAK,QAAQ,MAAM,CAAC,CAAC,+FAO1G;AAGD,wBAAgB,UAAU,mDAEd,MAAM,eACD,MAAM,gBACL,wBAAwB,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,IAAI,KAAK,QAAQ,MAAM,CAAC,CAAC,+FAO1G"}
|
package/dist/src/decorators.js
CHANGED
@@ -23,9 +23,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
23
23
|
return result;
|
24
24
|
};
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
26
|
-
exports.DBOSDeploy = exports.DBOSInitializer = exports.OrmEntities = exports.Step = exports.StoredProcedure = exports.Transaction = exports.Workflow = exports.RequiredRole = exports.configureInstance = exports.DefaultArgOptional = exports.DefaultArgRequired = exports.DefaultRequiredRole = exports.ArgVarchar = exports.ArgDate = exports.ArgName = exports.LogMask = exports.SkipLogging = exports.ArgOptional = exports.ArgRequired = exports.associateMethodWithEventReceiver = exports.associateClassWithEventReceiver = exports.getOrCreateClassRegistration = exports.getAllRegisteredClasses = exports.registerAndWrapFunction = exports.getOrCreateMethodArgsRegistration = exports.getConfiguredInstance = exports.getRegisteredOperations = exports.getRegisteredMethodName = exports.getRegisteredMethodClassName = exports.ClassRegistration = exports.ConfiguredInstance = exports.MethodRegistration = exports.MethodParameter = exports.ArgRequiredOptions = exports.LogMasks = exports.DBOSDataType = void 0;
|
26
|
+
exports.DBOSDeploy = exports.DBOSInitializer = exports.OrmEntities = exports.Step = exports.StoredProcedure = exports.Transaction = exports.Workflow = exports.RequiredRole = exports.configureInstance = exports.DefaultArgOptional = exports.DefaultArgRequired = exports.DefaultRequiredRole = exports.ArgVarchar = exports.ArgDate = exports.ArgName = exports.LogMask = exports.SkipLogging = exports.ArgOptional = exports.ArgRequired = exports.associateMethodWithEventReceiver = exports.associateClassWithEventReceiver = exports.getOrCreateClassRegistration = exports.getAllRegisteredClasses = exports.registerAndWrapContextFreeFunction = exports.registerAndWrapFunction = exports.getOrCreateMethodArgsRegistration = exports.getConfiguredInstance = exports.getRegisteredOperations = exports.registerFunctionWrapper = exports.getRegisteredMethodName = exports.getRegisteredMethodClassName = exports.ClassRegistration = exports.ConfiguredInstance = exports.MethodRegistration = exports.MethodParameter = exports.ArgRequiredOptions = exports.LogMasks = exports.DBOSDataType = void 0;
|
27
27
|
require("reflect-metadata");
|
28
28
|
const crypto = __importStar(require("crypto"));
|
29
|
+
const context_1 = require("./context");
|
29
30
|
const error_1 = require("./error");
|
30
31
|
const data_validation_1 = require("./data_validation");
|
31
32
|
class DBOSDataType {
|
@@ -131,12 +132,14 @@ class MethodParameter {
|
|
131
132
|
}
|
132
133
|
exports.MethodParameter = MethodParameter;
|
133
134
|
class MethodRegistration {
|
135
|
+
passContext;
|
134
136
|
defaults;
|
135
137
|
name = "";
|
136
138
|
className = "";
|
137
139
|
requiredRole = undefined;
|
138
140
|
args = [];
|
139
|
-
constructor(origFunc, isInstance) {
|
141
|
+
constructor(origFunc, isInstance, passContext) {
|
142
|
+
this.passContext = passContext;
|
140
143
|
this.origFunction = origFunc;
|
141
144
|
this.isInstance = isInstance;
|
142
145
|
}
|
@@ -144,6 +147,7 @@ class MethodRegistration {
|
|
144
147
|
isInstance;
|
145
148
|
origFunction;
|
146
149
|
registeredFunction;
|
150
|
+
wrappedFunction = undefined;
|
147
151
|
workflowConfig;
|
148
152
|
txnConfig;
|
149
153
|
commConfig;
|
@@ -202,6 +206,10 @@ function getRegisteredMethodName(func) {
|
|
202
206
|
return rv;
|
203
207
|
}
|
204
208
|
exports.getRegisteredMethodName = getRegisteredMethodName;
|
209
|
+
function registerFunctionWrapper(func, reg) {
|
210
|
+
methodToRegistration.set(func, reg);
|
211
|
+
}
|
212
|
+
exports.registerFunctionWrapper = registerFunctionWrapper;
|
205
213
|
function getRegisteredOperations(target) {
|
206
214
|
const registeredOperations = [];
|
207
215
|
if (typeof target === 'function') { // Constructor case
|
@@ -254,7 +262,7 @@ function generateSaltedHash(data, salt) {
|
|
254
262
|
hash.update(data + salt);
|
255
263
|
return hash.digest("hex");
|
256
264
|
}
|
257
|
-
function getOrCreateMethodRegistration(target, propertyKey, descriptor) {
|
265
|
+
function getOrCreateMethodRegistration(target, propertyKey, descriptor, passContext) {
|
258
266
|
let regtarget;
|
259
267
|
let isInstance = false;
|
260
268
|
if (typeof target === 'function') {
|
@@ -269,7 +277,7 @@ function getOrCreateMethodRegistration(target, propertyKey, descriptor) {
|
|
269
277
|
const classReg = getOrCreateClassRegistration(regtarget);
|
270
278
|
const fname = propertyKey.toString();
|
271
279
|
if (!classReg.registeredOperations.has(fname)) {
|
272
|
-
classReg.registeredOperations.set(fname, new MethodRegistration(descriptor.value, isInstance));
|
280
|
+
classReg.registeredOperations.set(fname, new MethodRegistration(descriptor.value, isInstance, passContext));
|
273
281
|
}
|
274
282
|
const methReg = classReg.registeredOperations.get(fname);
|
275
283
|
if (methReg.needInitialized) {
|
@@ -284,7 +292,7 @@ function getOrCreateMethodRegistration(target, propertyKey, descriptor) {
|
|
284
292
|
if (e.index < argNames.length) {
|
285
293
|
e.name = argNames[e.index];
|
286
294
|
}
|
287
|
-
if (e.index === 0) { // The first argument is always the context.
|
295
|
+
if (e.index === 0 && passContext) { // The first argument is always the context.
|
288
296
|
e.logMask = LogMasks.SKIP;
|
289
297
|
}
|
290
298
|
// TODO else warn/log something
|
@@ -292,10 +300,15 @@ function getOrCreateMethodRegistration(target, propertyKey, descriptor) {
|
|
292
300
|
});
|
293
301
|
const wrappedMethod = async function (...rawArgs) {
|
294
302
|
let opCtx = undefined;
|
303
|
+
if (passContext) {
|
304
|
+
opCtx = rawArgs[0];
|
305
|
+
}
|
306
|
+
else {
|
307
|
+
opCtx = (0, context_1.getCurrentDBOSContext)();
|
308
|
+
}
|
295
309
|
// Validate the user authentication and populate the role field
|
296
310
|
const requiredRoles = methReg.getRequiredRoles();
|
297
311
|
if (requiredRoles.length > 0) {
|
298
|
-
opCtx = rawArgs[0];
|
299
312
|
opCtx.span.setAttribute("requiredRoles", requiredRoles);
|
300
313
|
const curRoles = opCtx.authenticatedRoles;
|
301
314
|
let authorized = false;
|
@@ -318,7 +331,7 @@ function getOrCreateMethodRegistration(target, propertyKey, descriptor) {
|
|
318
331
|
validatedArgs.forEach((argValue, idx) => {
|
319
332
|
let isCtx = false;
|
320
333
|
// TODO: we assume the first argument is always a context, need a more robust way to test it.
|
321
|
-
if (idx === 0) {
|
334
|
+
if (idx === 0 && passContext) {
|
322
335
|
// Context -- I suppose we could just instanceof
|
323
336
|
opCtx = validatedArgs[0];
|
324
337
|
isCtx = true;
|
@@ -358,10 +371,18 @@ function registerAndWrapFunction(target, propertyKey, descriptor) {
|
|
358
371
|
if (!descriptor.value) {
|
359
372
|
throw Error("Use of decorator when original method is undefined");
|
360
373
|
}
|
361
|
-
const registration = getOrCreateMethodRegistration(target, propertyKey, descriptor);
|
374
|
+
const registration = getOrCreateMethodRegistration(target, propertyKey, descriptor, true);
|
362
375
|
return { descriptor, registration };
|
363
376
|
}
|
364
377
|
exports.registerAndWrapFunction = registerAndWrapFunction;
|
378
|
+
function registerAndWrapContextFreeFunction(target, propertyKey, descriptor) {
|
379
|
+
if (!descriptor.value) {
|
380
|
+
throw Error("Use of decorator when original method is undefined");
|
381
|
+
}
|
382
|
+
const registration = getOrCreateMethodRegistration(target, propertyKey, descriptor, false);
|
383
|
+
return { descriptor, registration };
|
384
|
+
}
|
385
|
+
exports.registerAndWrapContextFreeFunction = registerAndWrapContextFreeFunction;
|
365
386
|
const classesByName = new Map();
|
366
387
|
function getAllRegisteredClasses() {
|
367
388
|
const ctors = [];
|
@@ -457,6 +478,7 @@ exports.ArgVarchar = ArgVarchar;
|
|
457
478
|
/* CLASS DECORATORS */
|
458
479
|
///////////////////////
|
459
480
|
function DefaultRequiredRole(anyOf) {
|
481
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
460
482
|
function clsdec(ctor) {
|
461
483
|
const clsreg = getOrCreateClassRegistration(ctor);
|
462
484
|
clsreg.requiredRole = anyOf;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"decorators.js","sourceRoot":"","sources":["../../src/decorators.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4BAA0B;AAE1B,+CAAiC;AAKjC,mCAA4D;AAC5D,uDAAuD;AASvD,MAAa,YAAY;IACvB,QAAQ,GAAkB,MAAM,CAAC;IACjC,MAAM,GAAW,CAAC,CAAC,CAAC;IACpB,SAAS,GAAW,CAAC,CAAC,CAAC;IACvB,KAAK,GAAW,CAAC,CAAC,CAAC;IAEnB,yBAAyB;IACzB,MAAM,CAAC,OAAO,CAAC,MAAc;QAC3B,MAAM,EAAE,GAAG,IAAI,YAAY,EAAE,CAAC;QAC9B,EAAE,CAAC,QAAQ,GAAG,SAAS,CAAC;QACxB,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC;QACnB,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,gFAAgF;IAChF,MAAM,CAAC,OAAO,CAAC,SAAiB,EAAE,KAAa;QAC7C,MAAM,EAAE,GAAG,IAAI,YAAY,EAAE,CAAC;QAC9B,EAAE,CAAC,QAAQ,GAAG,SAAS,CAAC;QACxB,EAAE,CAAC,SAAS,GAAG,SAAS,CAAC;QACzB,EAAE,CAAC,KAAK,GAAG,KAAK,CAAC;QAEjB,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,sCAAsC;IACtC,wDAAwD;IACxD,MAAM,CAAC,OAAO,CAAC,GAAa;QAC1B,MAAM,EAAE,GAAG,IAAI,YAAY,EAAE,CAAC;QAE9B,IAAI,GA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CAAC,WAAW,GAAG,QAAQ,CAAC;IACjC,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC;AARD,kCAQC;AAED,SAAgB,eAAe;IAC7B,SAAS,SAAS,CAChB,MAAc,EACd,WAAmB,EACnB,YAAuG;QAEvG,MAAM,EAAE,UAAU,EAAE,YAAY,EAAE,GAAG,uBAAuB,CAAC,MAAM,EAAE,WAAW,EAAE,YAAY,CAAC,CAAC;QAChG,YAAY,CAAC,IAAI,GAAG,IAAI,CAAC;QACzB,OAAO,UAAU,CAAC;IACpB,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC;AAXD,0CAWC;AAED,6BAA6B;AAC7B,SAAgB,UAAU;IACxB,SAAS,SAAS,CAChB,MAAc,EACd,WAAmB,EACnB,YAAuG;QAEvG,MAAM,EAAE,UAAU,EAAE,YAAY,EAAE,GAAG,uBAAuB,CAAC,MAAM,EAAE,WAAW,EAAE,YAAY,CAAC,CAAC;QAChG,YAAY,CAAC,IAAI,GAAG,IAAI,CAAC;QACzB,OAAO,UAAU,CAAC;IACpB,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC;AAXD,gCAWC"}
|
package/dist/src/error.d.ts
CHANGED
@@ -53,4 +53,10 @@ export declare class DBOSDeadLetterQueueError extends DBOSError {
|
|
53
53
|
export declare class DBOSFailedSqlTransactionError extends DBOSError {
|
54
54
|
constructor(workflowUUID: string, txnName: string);
|
55
55
|
}
|
56
|
+
export declare class DBOSExecutorNotInitializedError extends DBOSError {
|
57
|
+
constructor();
|
58
|
+
}
|
59
|
+
export declare class DBOSInvalidWorkflowTransitionError extends DBOSError {
|
60
|
+
constructor();
|
61
|
+
}
|
56
62
|
//# sourceMappingURL=error.d.ts.map
|
package/dist/src/error.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../../src/error.ts"],"names":[],"mappings":"AAqDA,wBAAgB,aAAa,CAAC,aAAa,EAAE,MAAM,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AAE,UAAU,EAAE,MAAM;CAGxE;AAGD,qBAAa,iBAAkB,SAAQ,SAAS;gBAClC,GAAG,EAAE,MAAM;CAGxB;AAGD,qBAAa,4BAA6B,SAAQ,SAAS;gBAC7C,GAAG,EAAE,MAAM;CAGxB;AAGD,qBAAa,2BAA4B,SAAQ,SAAS;gBAC5C,GAAG,EAAE,MAAM;CAGxB;AAGD,qBAAa,wBAAyB,SAAQ,SAAS;gBACzC,YAAY,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM;CAGrD;AAGD,qBAAa,6BAA8B,SAAQ,SAAS;gBAC9C,YAAY,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM;CAGlD;AAGD,qBAAa,+BAAgC,SAAQ,SAAS;;CAI7D;AAGD,qBAAa,kCAAmC,SAAQ,SAAS;;CAIhE"}
|
package/dist/src/error.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.DBOSFailedSqlTransactionError = exports.DBOSDeadLetterQueueError = exports.DBOSFailLoadOperationsError = exports.DBOSNonExistentWorkflowError = exports.DBOSDebuggerError = exports.DBOSConfigKeyTypeError = exports.DBOSUndefinedDecoratorInputError = exports.DBOSNotAuthorizedError = exports.DBOSResponseError = exports.DBOSDataValidationError = exports.DBOSPostgresExporterError = exports.DBOSNotRegisteredError = exports.DBOSWorkflowConflictUUIDError = exports.DBOSTopicPermissionDeniedError = exports.DBOSInitializationError = exports.DBOSWorkflowPermissionDeniedError = exports.DBOSError = exports.isClientError = void 0;
|
3
|
+
exports.DBOSInvalidWorkflowTransitionError = exports.DBOSExecutorNotInitializedError = exports.DBOSFailedSqlTransactionError = exports.DBOSDeadLetterQueueError = exports.DBOSFailLoadOperationsError = exports.DBOSNonExistentWorkflowError = exports.DBOSDebuggerError = exports.DBOSConfigKeyTypeError = exports.DBOSUndefinedDecoratorInputError = exports.DBOSNotAuthorizedError = exports.DBOSResponseError = exports.DBOSDataValidationError = exports.DBOSPostgresExporterError = exports.DBOSNotRegisteredError = exports.DBOSWorkflowConflictUUIDError = exports.DBOSTopicPermissionDeniedError = exports.DBOSInitializationError = exports.DBOSWorkflowPermissionDeniedError = exports.DBOSError = exports.isClientError = void 0;
|
4
4
|
const pg_1 = require("pg");
|
5
5
|
function formatPgDatabaseError(err) {
|
6
6
|
let msg = "";
|
@@ -53,7 +53,11 @@ function formatPgDatabaseError(err) {
|
|
53
53
|
}
|
54
54
|
// Return if the error is caused by client request or by server internal.
|
55
55
|
function isClientError(dbosErrorCode) {
|
56
|
-
return (dbosErrorCode === DataValidationError
|
56
|
+
return (dbosErrorCode === DataValidationError ||
|
57
|
+
dbosErrorCode === WorkflowPermissionDeniedError ||
|
58
|
+
dbosErrorCode === TopicPermissionDeniedError ||
|
59
|
+
dbosErrorCode === ConflictingUUIDError ||
|
60
|
+
dbosErrorCode === NotRegisteredError);
|
57
61
|
}
|
58
62
|
exports.isClientError = isClientError;
|
59
63
|
class DBOSError extends Error {
|
@@ -189,4 +193,18 @@ class DBOSFailedSqlTransactionError extends DBOSError {
|
|
189
193
|
}
|
190
194
|
}
|
191
195
|
exports.DBOSFailedSqlTransactionError = DBOSFailedSqlTransactionError;
|
196
|
+
const ExecutorNotInitializedError = 20;
|
197
|
+
class DBOSExecutorNotInitializedError extends DBOSError {
|
198
|
+
constructor() {
|
199
|
+
super("DBOS not initialized", ExecutorNotInitializedError);
|
200
|
+
}
|
201
|
+
}
|
202
|
+
exports.DBOSExecutorNotInitializedError = DBOSExecutorNotInitializedError;
|
203
|
+
const InvalidWorkflowTransition = 21;
|
204
|
+
class DBOSInvalidWorkflowTransitionError extends DBOSError {
|
205
|
+
constructor() {
|
206
|
+
super("Invalid workflow state", InvalidWorkflowTransition);
|
207
|
+
}
|
208
|
+
}
|
209
|
+
exports.DBOSInvalidWorkflowTransitionError = DBOSInvalidWorkflowTransitionError;
|
192
210
|
//# sourceMappingURL=error.js.map
|
package/dist/src/error.js.map
C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,KAAK,CAAC,sBAAsB,EAAE,2BAA2B,CAAC,CAAC;IAC7D,CAAC;CACF;AAJD,0EAIC;AAED,MAAM,yBAAyB,GAAG,EAAE,CAAC;AACrC,MAAa,kCAAmC,SAAQ,SAAS;IAC/D;QACE,KAAK,CAAC,wBAAwB,EAAE,yBAAyB,CAAC,CAAC;IAC7D,CAAC;CACF;AAJD,gFAIC"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { Tracer } from './telemetry/traces';
|
2
2
|
import { GlobalLogger as Logger } from './telemetry/logs';
|
3
|
-
import { WorkflowFunction, WorkflowHandle, WorkflowParams } from './workflow';
|
3
|
+
import { GetWorkflowQueueInput, GetWorkflowQueueOutput, GetWorkflowsInput, GetWorkflowsOutput, WorkflowFunction, WorkflowHandle, WorkflowParams, WorkflowStatus } from './workflow';
|
4
4
|
import { TransactionFunction } from './transaction';
|
5
5
|
import { MethodRegistrationBase } from './decorators';
|
6
6
|
import { StepFunction } from './step';
|
@@ -25,8 +25,12 @@ export interface DBOSExecutorContext {
|
|
25
25
|
workflow<T extends unknown[], R>(wf: WorkflowFunction<T, R>, params: WorkflowParams, ...args: T): Promise<WorkflowHandle<R>>;
|
26
26
|
external<T extends unknown[], R>(stepFn: StepFunction<T, R>, params: WorkflowParams, ...args: T): Promise<R>;
|
27
27
|
send<T>(destinationUUID: string, message: T, topic?: string, idempotencyKey?: string): Promise<void>;
|
28
|
-
getEvent<T>(workflowUUID: string, key: string, timeoutSeconds
|
28
|
+
getEvent<T>(workflowUUID: string, key: string, timeoutSeconds?: number): Promise<T | null>;
|
29
29
|
retrieveWorkflow<R>(workflowUUID: string): WorkflowHandle<R>;
|
30
|
+
flushWorkflowBuffers(): Promise<void>;
|
31
|
+
getWorkflowStatus(workflowID: string): Promise<WorkflowStatus | null>;
|
32
|
+
getWorkflows(input: GetWorkflowsInput): Promise<GetWorkflowsOutput>;
|
33
|
+
getWorkflowQueue(input: GetWorkflowQueueInput): Promise<GetWorkflowQueueOutput>;
|
30
34
|
getEventDispatchState(service: string, workflowFnName: string, key: string): Promise<DBOSEventReceiverState | undefined>;
|
31
35
|
upsertEventDispatchState(state: DBOSEventReceiverState): Promise<DBOSEventReceiverState>;
|
32
36
|
queryUserDB(sql: string, params?: unknown[]): Promise<unknown[]>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"eventreceiver.d.ts","sourceRoot":"","sources":["../../src/eventreceiver.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EAAE,YAAY,IAAI,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;
|
1
|
+
{"version":3,"file":"eventreceiver.d.ts","sourceRoot":"","sources":["../../src/eventreceiver.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EAAE,YAAY,IAAI,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,cAAc,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACpL,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,IAAI,CAAC;AAElC,MAAM,MAAM,cAAc,GAAG,YAAY,CAAC;AAC1C,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,EAAE,cAAc,KAAK,IAAI,CAAC;AACjE,MAAM,WAAW,sBAAsB;IACrC,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CACxB;AAED,MAAM,WAAW,6BAA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AED,MAAM,WAAW,sBAAsB;IAErC,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,EAAE,MAAM,CAAC;IACvB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,sBAAsB;IAErC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
|
@@ -34,7 +34,6 @@ export interface HandlerContext extends DBOSContext {
|
|
34
34
|
getEvent<T>(workflowUUID: string, key: string, timeoutSeconds?: number): Promise<T | null>;
|
35
35
|
getWorkflows(input: GetWorkflowsInput): Promise<GetWorkflowsOutput>;
|
36
36
|
}
|
37
|
-
export declare const RequestIDHeader = "x-request-id";
|
38
37
|
export declare class HandlerContextImpl extends DBOSContextImpl implements HandlerContext {
|
39
38
|
#private;
|
40
39
|
readonly koaContext: Koa.Context;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"handler.d.ts","sourceRoot":"","sources":["../../../src/httpServer/handler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAA8D,sBAAsB,EAA2B,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACjL,OAAO,EAAE,YAAY,EAAiB,MAAM,kBAAkB,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC1D,OAAO,GAAG,MAAM,KAAK,CAAC;AACtB,OAAO,EAAY,cAAc,EAAE,cAAc,EAAkB,eAAe,EAAE,aAAa,EAAE,iBAAiB,EAAE,iB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AM,UAMtF"}
|
@@ -1,30 +1,22 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.ArgSource = exports.DeleteApi = exports.PatchApi = exports.PutApi = exports.PostApi = exports.GetApi = exports.HandlerParameter = exports.HandlerContextImpl =
|
3
|
+
exports.ArgSource = exports.DeleteApi = exports.PatchApi = exports.PutApi = exports.PostApi = exports.GetApi = exports.HandlerParameter = exports.HandlerContextImpl = void 0;
|
4
4
|
const decorators_1 = require("../decorators");
|
5
5
|
const dbos_executor_1 = require("../dbos-executor");
|
6
6
|
const context_1 = require("../context");
|
7
7
|
const core_1 = require("@opentelemetry/core");
|
8
8
|
const api_1 = require("@opentelemetry/api");
|
9
|
-
const uuid_1 = require("uuid");
|
10
9
|
const handlerTypes_1 = require("./handlerTypes");
|
11
|
-
|
12
|
-
|
13
|
-
const reqID = ctx.get(exports.RequestIDHeader);
|
14
|
-
if (reqID) {
|
15
|
-
return reqID;
|
16
|
-
}
|
17
|
-
const newID = (0, uuid_1.v4)();
|
18
|
-
ctx.set(exports.RequestIDHeader, newID);
|
19
|
-
return newID;
|
20
|
-
}
|
10
|
+
const middleware_1 = require("./middleware");
|
11
|
+
// TODO: this should be refactored to not take a koaContext in.
|
21
12
|
class HandlerContextImpl extends context_1.DBOSContextImpl {
|
22
13
|
koaContext;
|
23
14
|
#dbosExec;
|
24
15
|
W3CTraceContextPropagator;
|
25
16
|
constructor(dbosExec, koaContext) {
|
26
17
|
// Retrieve or generate the request ID
|
27
|
-
const requestID = getOrGenerateRequestID(koaContext);
|
18
|
+
const requestID = (0, middleware_1.getOrGenerateRequestID)(koaContext.request.headers);
|
19
|
+
koaContext.set(middleware_1.RequestIDHeader, requestID);
|
28
20
|
// If present, retrieve the trace context from the request
|
29
21
|
const httpTracer = new core_1.W3CTraceContextPropagator();
|
30
22
|
const extractedSpanContext = api_1.trace.getSpanContext(httpTracer.extract(api_1.ROOT_CONTEXT, koaContext.request.headers, api_1.defaultTextMapGetter));
|