@dbos-inc/dbos-sdk 1.12.13-preview.g7a8a447e44 → 1.13.5-preview
Sign up to get free protection for your applications and to get access to all the features.
- package/dbos-config.schema.json +2 -1
- 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/context.d.ts +2 -0
- package/dist/src/context.d.ts.map +1 -1
- package/dist/src/context.js +3 -2
- package/dist/src/context.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 +149 -58
- package/dist/src/dbos-executor.js.map +1 -1
- package/dist/src/dbos-runtime/config.d.ts +0 -1
- package/dist/src/dbos-runtime/config.d.ts.map +1 -1
- package/dist/src/dbos-runtime/config.js +2 -4
- package/dist/src/dbos-runtime/config.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 +80 -23
- 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 +22 -15
- package/dist/src/httpServer/handler.d.ts.map +1 -1
- package/dist/src/httpServer/handler.js +44 -35
- package/dist/src/httpServer/handler.js.map +1 -1
- package/dist/src/httpServer/handlerTypes.d.ts +4 -1
- package/dist/src/httpServer/handlerTypes.d.ts.map +1 -1
- package/dist/src/httpServer/handlerTypes.js +3 -0
- package/dist/src/httpServer/handlerTypes.js.map +1 -1
- package/dist/src/httpServer/server.d.ts.map +1 -1
- package/dist/src/httpServer/server.js +36 -12
- 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 +4 -0
- package/dist/src/system_database.d.ts.map +1 -1
- package/dist/src/system_database.js +102 -34
- package/dist/src/system_database.js.map +1 -1
- package/dist/src/telemetry/logs.d.ts.map +1 -1
- package/dist/src/telemetry/logs.js +13 -10
- package/dist/src/telemetry/logs.js.map +1 -1
- package/dist/src/telemetry/traces.d.ts +1 -0
- package/dist/src/telemetry/traces.d.ts.map +1 -1
- package/dist/src/telemetry/traces.js +5 -2
- package/dist/src/telemetry/traces.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/utils.d.ts +6 -12
- package/dist/src/utils.d.ts.map +1 -1
- package/dist/src/utils.js +30 -13
- package/dist/src/utils.js.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 +78 -26
- 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
- package/dist/src/dbos-runtime/applicationVersion.d.ts +0 -3
- package/dist/src/dbos-runtime/applicationVersion.d.ts.map +0 -1
- package/dist/src/dbos-runtime/applicationVersion.js +0 -13
- package/dist/src/dbos-runtime/applicationVersion.js.map +0 -1
package/dist/src/decorators.js
CHANGED
@@ -23,7 +23,7 @@ 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.Communicator = exports.Transaction = exports.Workflow = exports.RequiredRole = exports.DefaultArgOptional = exports.DefaultArgRequired = exports.DefaultRequiredRole = exports.ArgVarchar = exports.ArgDate = exports.ArgName = exports.LogMask = exports.SkipLogging = exports.ArgOptional = exports.ArgRequired = exports.getOrCreateClassRegistration = exports.registerAndWrapFunction = exports.getOrCreateMethodArgsRegistration = exports.getRegisteredOperations = exports.ClassRegistration = exports.MethodRegistration = exports.MethodParameter = exports.ArgRequiredOptions = exports.LogMasks = exports.DBOSDataType = void 0;
|
26
|
+
exports.DBOSDeploy = exports.DBOSInitializer = exports.OrmEntities = exports.Communicator = 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.getOrCreateClassRegistration = 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;
|
27
27
|
require("reflect-metadata");
|
28
28
|
const crypto = __importStar(require("crypto"));
|
29
29
|
const error_1 = require("./error");
|
@@ -87,8 +87,6 @@ class DBOSDataType {
|
|
87
87
|
}
|
88
88
|
exports.DBOSDataType = DBOSDataType;
|
89
89
|
const paramMetadataKey = Symbol.for("dbos:parameter");
|
90
|
-
const methodMetadataKey = Symbol.for("dbos:method");
|
91
|
-
const classMetadataKey = Symbol.for("dbos:class");
|
92
90
|
/* Arguments parsing heuristic:
|
93
91
|
* - Convert the function to a string
|
94
92
|
* - Minify the function
|
@@ -135,12 +133,15 @@ exports.MethodParameter = MethodParameter;
|
|
135
133
|
class MethodRegistration {
|
136
134
|
defaults;
|
137
135
|
name = "";
|
136
|
+
className = "";
|
138
137
|
requiredRole = undefined;
|
139
138
|
args = [];
|
140
|
-
constructor(origFunc) {
|
139
|
+
constructor(origFunc, isInstance) {
|
141
140
|
this.origFunction = origFunc;
|
141
|
+
this.isInstance = isInstance;
|
142
142
|
}
|
143
143
|
needInitialized = true;
|
144
|
+
isInstance;
|
144
145
|
origFunction;
|
145
146
|
registeredFunction;
|
146
147
|
workflowConfig;
|
@@ -158,6 +159,13 @@ class MethodRegistration {
|
|
158
159
|
}
|
159
160
|
}
|
160
161
|
exports.MethodRegistration = MethodRegistration;
|
162
|
+
class ConfiguredInstance {
|
163
|
+
name;
|
164
|
+
constructor(name) {
|
165
|
+
this.name = name;
|
166
|
+
}
|
167
|
+
}
|
168
|
+
exports.ConfiguredInstance = ConfiguredInstance;
|
161
169
|
class ClassRegistration {
|
162
170
|
name = "";
|
163
171
|
requiredRole;
|
@@ -165,36 +173,75 @@ class ClassRegistration {
|
|
165
173
|
needsInitialized = true;
|
166
174
|
// eslint-disable-next-line @typescript-eslint/ban-types
|
167
175
|
ormEntities = [];
|
176
|
+
registeredOperations = new Map();
|
177
|
+
configuredInstances = new Map();
|
168
178
|
ctor;
|
169
179
|
constructor(ctor) {
|
170
180
|
this.ctor = ctor;
|
171
181
|
}
|
172
182
|
}
|
173
183
|
exports.ClassRegistration = ClassRegistration;
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
184
|
+
// This is a bit ugly, if we got the class / instance it would help avoid this auxiliary structure
|
185
|
+
const methodToRegistration = new Map();
|
186
|
+
function getRegisteredMethodClassName(func) {
|
187
|
+
let rv = "";
|
188
|
+
if (methodToRegistration.has(func)) {
|
189
|
+
rv = methodToRegistration.get(func).className;
|
190
|
+
}
|
191
|
+
return rv;
|
192
|
+
}
|
193
|
+
exports.getRegisteredMethodClassName = getRegisteredMethodClassName;
|
194
|
+
function getRegisteredMethodName(func) {
|
195
|
+
let rv = "";
|
196
|
+
if (methodToRegistration.has(func)) {
|
197
|
+
rv = methodToRegistration.get(func).name;
|
198
|
+
}
|
199
|
+
return rv;
|
200
|
+
}
|
201
|
+
exports.getRegisteredMethodName = getRegisteredMethodName;
|
180
202
|
function getRegisteredOperations(target) {
|
181
203
|
const registeredOperations = [];
|
182
|
-
|
183
|
-
const
|
184
|
-
|
185
|
-
|
204
|
+
if (typeof target === 'function') { // Constructor case
|
205
|
+
const classReg = classesByName.get(target.name);
|
206
|
+
classReg?.registeredOperations?.forEach((m) => registeredOperations.push(m));
|
207
|
+
}
|
208
|
+
else {
|
209
|
+
let current = target;
|
210
|
+
while (current) {
|
211
|
+
const cname = current.constructor.name;
|
212
|
+
if (classesByName.has(cname)) {
|
213
|
+
registeredOperations.push(...getRegisteredOperations(current.constructor));
|
214
|
+
}
|
215
|
+
current = Object.getPrototypeOf(current);
|
186
216
|
}
|
187
217
|
}
|
188
218
|
return registeredOperations;
|
189
219
|
}
|
190
220
|
exports.getRegisteredOperations = getRegisteredOperations;
|
221
|
+
function getConfiguredInstance(clsname, cfgname) {
|
222
|
+
const classReg = classesByName.get(clsname);
|
223
|
+
if (!classReg)
|
224
|
+
return null;
|
225
|
+
return classReg.configuredInstances.get(cfgname) ?? null;
|
226
|
+
}
|
227
|
+
exports.getConfiguredInstance = getConfiguredInstance;
|
228
|
+
////////////////////////////////////////////////////////////////////////////////
|
229
|
+
// DECORATOR REGISTRATION
|
230
|
+
// These manage registration objects, creating them at decorator evaluation time
|
231
|
+
// and making wrapped methods available for function registration at runtime
|
232
|
+
// initialization time.
|
233
|
+
////////////////////////////////////////////////////////////////////////////////
|
191
234
|
function getOrCreateMethodArgsRegistration(target, propertyKey) {
|
192
|
-
let
|
235
|
+
let regtarget = target;
|
236
|
+
if (typeof regtarget !== 'function') {
|
237
|
+
regtarget = regtarget.constructor;
|
238
|
+
}
|
239
|
+
let mParameters = Reflect.getOwnMetadata(paramMetadataKey, regtarget, propertyKey) || [];
|
193
240
|
if (!mParameters.length) {
|
194
241
|
// eslint-disable-next-line @typescript-eslint/ban-types
|
195
242
|
const designParamTypes = Reflect.getMetadata("design:paramtypes", target, propertyKey);
|
196
243
|
mParameters = designParamTypes.map((value, index) => new MethodParameter(index, value));
|
197
|
-
Reflect.defineMetadata(paramMetadataKey, mParameters,
|
244
|
+
Reflect.defineMetadata(paramMetadataKey, mParameters, regtarget, propertyKey);
|
198
245
|
}
|
199
246
|
return mParameters;
|
200
247
|
}
|
@@ -205,9 +252,28 @@ function generateSaltedHash(data, salt) {
|
|
205
252
|
return hash.digest("hex");
|
206
253
|
}
|
207
254
|
function getOrCreateMethodRegistration(target, propertyKey, descriptor) {
|
208
|
-
|
255
|
+
let regtarget;
|
256
|
+
let isInstance = false;
|
257
|
+
if (typeof target === 'function') {
|
258
|
+
// Static method case
|
259
|
+
regtarget = target;
|
260
|
+
}
|
261
|
+
else {
|
262
|
+
// Instance method case
|
263
|
+
regtarget = target.constructor;
|
264
|
+
isInstance = true;
|
265
|
+
}
|
266
|
+
const classReg = getOrCreateClassRegistration(regtarget);
|
267
|
+
const fname = propertyKey.toString();
|
268
|
+
if (!classReg.registeredOperations.has(fname)) {
|
269
|
+
classReg.registeredOperations.set(fname, new MethodRegistration(descriptor.value, isInstance));
|
270
|
+
}
|
271
|
+
const methReg = classReg.registeredOperations.get(fname);
|
209
272
|
if (methReg.needInitialized) {
|
210
|
-
methReg.
|
273
|
+
methReg.needInitialized = false;
|
274
|
+
methReg.name = fname;
|
275
|
+
methReg.className = classReg.name;
|
276
|
+
methReg.defaults = classReg;
|
211
277
|
methReg.args = getOrCreateMethodArgsRegistration(target, propertyKey);
|
212
278
|
const argNames = getArgNames(descriptor.value);
|
213
279
|
methReg.args.forEach((e) => {
|
@@ -221,7 +287,6 @@ function getOrCreateMethodRegistration(target, propertyKey, descriptor) {
|
|
221
287
|
// TODO else warn/log something
|
222
288
|
}
|
223
289
|
});
|
224
|
-
Reflect.defineMetadata(methodMetadataKey, methReg, target, propertyKey);
|
225
290
|
const wrappedMethod = async function (...rawArgs) {
|
226
291
|
let opCtx = undefined;
|
227
292
|
// Validate the user authentication and populate the role field
|
@@ -281,7 +346,8 @@ function getOrCreateMethodRegistration(target, propertyKey, descriptor) {
|
|
281
346
|
});
|
282
347
|
descriptor.value = wrappedMethod;
|
283
348
|
methReg.registeredFunction = wrappedMethod;
|
284
|
-
methReg.
|
349
|
+
methodToRegistration.set(methReg.registeredFunction, methReg);
|
350
|
+
methodToRegistration.set(methReg.origFunction, methReg);
|
285
351
|
}
|
286
352
|
return methReg;
|
287
353
|
}
|
@@ -293,15 +359,16 @@ function registerAndWrapFunction(target, propertyKey, descriptor) {
|
|
293
359
|
return { descriptor, registration };
|
294
360
|
}
|
295
361
|
exports.registerAndWrapFunction = registerAndWrapFunction;
|
362
|
+
const classesByName = new Map();
|
296
363
|
function getOrCreateClassRegistration(ctor) {
|
297
|
-
const
|
364
|
+
const name = ctor.name;
|
365
|
+
if (!classesByName.has(name)) {
|
366
|
+
classesByName.set(name, new ClassRegistration(ctor));
|
367
|
+
}
|
368
|
+
const clsReg = classesByName.get(name);
|
298
369
|
if (clsReg.needsInitialized) {
|
299
|
-
clsReg.name =
|
300
|
-
|
301
|
-
const ops = getRegisteredOperations(ctor);
|
302
|
-
ops.forEach((op) => {
|
303
|
-
op.defaults = clsReg;
|
304
|
-
});
|
370
|
+
clsReg.name = name;
|
371
|
+
clsReg.needsInitialized = false;
|
305
372
|
}
|
306
373
|
return clsReg;
|
307
374
|
}
|
@@ -380,6 +447,16 @@ function DefaultArgOptional(ctor) {
|
|
380
447
|
clsreg.defaultArgRequired = ArgRequiredOptions.OPTIONAL;
|
381
448
|
}
|
382
449
|
exports.DefaultArgOptional = DefaultArgOptional;
|
450
|
+
function configureInstance(cls, name, ...args) {
|
451
|
+
const inst = new cls(name, ...args);
|
452
|
+
const creg = getOrCreateClassRegistration(cls);
|
453
|
+
if (creg.configuredInstances.has(name)) {
|
454
|
+
throw new error_1.DBOSError(`Registration: Class ${cls.name} configuration ${name} is not unique`);
|
455
|
+
}
|
456
|
+
creg.configuredInstances.set(name, inst);
|
457
|
+
return inst;
|
458
|
+
}
|
459
|
+
exports.configureInstance = configureInstance;
|
383
460
|
///////////////////////
|
384
461
|
/* METHOD DECORATORS */
|
385
462
|
///////////////////////
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"decorators.js","sourceRoot":"","sources":["../../src/decorators.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4BAA0B;AAE1B,+CAAiC;AAKjC,mCAAiD;AACjD,uDAAuD;AAOvD,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;I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;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"}
|
@@ -1,22 +1,32 @@
|
|
1
|
-
import {
|
1
|
+
import { MethodParameter, MethodRegistrationBase, ConfiguredInstance } from "../decorators";
|
2
2
|
import { DBOSExecutor } from "../dbos-executor";
|
3
3
|
import { DBOSContext, DBOSContextImpl } from "../context";
|
4
4
|
import Koa from "koa";
|
5
|
-
import { TailParameters, WorkflowHandle, WorkflowContext, WFInvokeFuncs } from "../workflow";
|
5
|
+
import { TailParameters, WorkflowHandle, WorkflowContext, WFInvokeFuncs, WFInvokeFuncsInst } from "../workflow";
|
6
6
|
import { W3CTraceContextPropagator } from "@opentelemetry/core";
|
7
7
|
import { APITypes, ArgSources } from "./handlerTypes";
|
8
|
-
type WFFunc = (ctxt: WorkflowContext, ...args: any[]) => Promise<
|
8
|
+
type WFFunc = (ctxt: WorkflowContext, ...args: any[]) => Promise<unknown>;
|
9
9
|
export type InvokeFuncs<T> = WFInvokeFuncs<T> & AsyncHandlerWfFuncs<T>;
|
10
|
-
export type
|
10
|
+
export type InvokeFuncsInst<T> = WFInvokeFuncsInst<T>;
|
11
|
+
export type AsyncHandlerWfFuncs<T> = T extends ConfiguredInstance ? never : {
|
11
12
|
[P in keyof T as T[P] extends WFFunc ? P : never]: T[P] extends WFFunc ? (...args: TailParameters<T[P]>) => Promise<WorkflowHandle<Awaited<ReturnType<T[P]>>>> : never;
|
12
13
|
};
|
13
|
-
export type SyncHandlerWfFuncs<T> = {
|
14
|
+
export type SyncHandlerWfFuncs<T> = T extends ConfiguredInstance ? never : {
|
14
15
|
[P in keyof T as T[P] extends WFFunc ? P : never]: T[P] extends WFFunc ? (...args: TailParameters<T[P]>) => Promise<Awaited<ReturnType<T[P]>>> : never;
|
15
16
|
};
|
17
|
+
export type AsyncHandlerWfFuncInst<T> = T extends ConfiguredInstance ? {
|
18
|
+
[P in keyof T as T[P] extends WFFunc ? P : never]: T[P] extends WFFunc ? (...args: TailParameters<T[P]>) => Promise<WorkflowHandle<Awaited<ReturnType<T[P]>>>> : never;
|
19
|
+
} : never;
|
20
|
+
export type SyncHandlerWfFuncsInst<T> = T extends ConfiguredInstance ? {
|
21
|
+
[P in keyof T as T[P] extends WFFunc ? P : never]: T[P] extends WFFunc ? (...args: TailParameters<T[P]>) => Promise<Awaited<ReturnType<T[P]>>> : never;
|
22
|
+
} : never;
|
16
23
|
export interface HandlerContext extends DBOSContext {
|
17
24
|
readonly koaContext: Koa.Context;
|
25
|
+
invoke<T extends ConfiguredInstance>(targetCfg: T, workflowUUID?: string): InvokeFuncsInst<T>;
|
18
26
|
invoke<T extends object>(targetClass: T, workflowUUID?: string): InvokeFuncs<T>;
|
27
|
+
invokeWorkflow<T extends ConfiguredInstance>(targetCfg: T, workflowUUID?: string): SyncHandlerWfFuncsInst<T>;
|
19
28
|
invokeWorkflow<T extends object>(targetClass: T, workflowUUID?: string): SyncHandlerWfFuncs<T>;
|
29
|
+
startWorkflow<T extends ConfiguredInstance>(targetCfg: T, workflowUUID?: string): AsyncHandlerWfFuncInst<T>;
|
20
30
|
startWorkflow<T extends object>(targetClass: T, workflowUUID?: string): AsyncHandlerWfFuncs<T>;
|
21
31
|
retrieveWorkflow<R>(workflowUUID: string): WorkflowHandle<R>;
|
22
32
|
send<T>(destinationUUID: string, message: T, topic?: string, idempotencyKey?: string): Promise<void>;
|
@@ -35,28 +45,25 @@ export declare class HandlerContextImpl extends DBOSContextImpl implements Handl
|
|
35
45
|
* Generate a proxy object for the provided class that wraps direct calls (i.e. OpClass.someMethod(param))
|
36
46
|
* to use WorkflowContext.Transaction(OpClass.someMethod, param);
|
37
47
|
*/
|
38
|
-
mainInvoke<T extends object>(object: T, workflowUUID: string | undefined, asyncWf: boolean): InvokeFuncs<T>;
|
39
|
-
invoke<T extends object>(object: T, workflowUUID?: string): InvokeFuncs<T>;
|
40
|
-
startWorkflow<T extends object>(object: T, workflowUUID?: string): AsyncHandlerWfFuncs<T>;
|
41
|
-
invokeWorkflow<T extends object>(object: T, workflowUUID?: string): SyncHandlerWfFuncs<T>;
|
48
|
+
mainInvoke<T extends object>(object: T, workflowUUID: string | undefined, asyncWf: boolean, configuredInstance: ConfiguredInstance | null): InvokeFuncs<T>;
|
49
|
+
invoke<T extends object>(object: T | ConfiguredInstance, workflowUUID?: string): InvokeFuncs<T> | InvokeFuncsInst<T>;
|
50
|
+
startWorkflow<T extends object>(object: T | ConfiguredInstance, workflowUUID?: string): AsyncHandlerWfFuncs<T> | AsyncHandlerWfFuncInst<T>;
|
51
|
+
invokeWorkflow<T extends object>(object: T | ConfiguredInstance, workflowUUID?: string): SyncHandlerWfFuncs<T> | SyncHandlerWfFuncsInst<T>;
|
42
52
|
}
|
43
53
|
export interface HandlerRegistrationBase extends MethodRegistrationBase {
|
44
54
|
apiType: APITypes;
|
45
55
|
apiURL: string;
|
46
56
|
args: HandlerParameter[];
|
47
57
|
}
|
48
|
-
export declare class HandlerRegistration<This, Args extends unknown[], Return> extends MethodRegistration<This, Args, Return> {
|
49
|
-
apiType: APITypes;
|
50
|
-
apiURL: string;
|
51
|
-
args: HandlerParameter[];
|
52
|
-
constructor(origFunc: (this: This, ...args: Args) => Promise<Return>);
|
53
|
-
}
|
54
58
|
export declare class HandlerParameter extends MethodParameter {
|
55
59
|
argSource: ArgSources;
|
56
60
|
constructor(idx: number, at: Function);
|
57
61
|
}
|
58
62
|
export declare function GetApi(url: string): <This, Ctx extends DBOSContext, Args extends unknown[], Return>(target: object, propertyKey: string, inDescriptor: TypedPropertyDescriptor<(this: This, ctx: Ctx, ...args: Args) => Promise<Return>>) => TypedPropertyDescriptor<(this: This, ctx: Ctx, ...args: Args) => Promise<Return>>;
|
59
63
|
export declare function PostApi(url: string): <This, Ctx extends DBOSContext, Args extends unknown[], Return>(target: object, propertyKey: string, inDescriptor: TypedPropertyDescriptor<(this: This, ctx: Ctx, ...args: Args) => Promise<Return>>) => TypedPropertyDescriptor<(this: This, ctx: Ctx, ...args: Args) => Promise<Return>>;
|
64
|
+
export declare function PutApi(url: string): <This, Ctx extends DBOSContext, Args extends unknown[], Return>(target: object, propertyKey: string, inDescriptor: TypedPropertyDescriptor<(this: This, ctx: Ctx, ...args: Args) => Promise<Return>>) => TypedPropertyDescriptor<(this: This, ctx: Ctx, ...args: Args) => Promise<Return>>;
|
65
|
+
export declare function PatchApi(url: string): <This, Ctx extends DBOSContext, Args extends unknown[], Return>(target: object, propertyKey: string, inDescriptor: TypedPropertyDescriptor<(this: This, ctx: Ctx, ...args: Args) => Promise<Return>>) => TypedPropertyDescriptor<(this: This, ctx: Ctx, ...args: Args) => Promise<Return>>;
|
66
|
+
export declare function DeleteApi(url: string): <This, Ctx extends DBOSContext, Args extends unknown[], Return>(target: object, propertyKey: string, inDescriptor: TypedPropertyDescriptor<(this: This, ctx: Ctx, ...args: Args) => Promise<Return>>) => TypedPropertyDescriptor<(this: This, ctx: Ctx, ...args: Args) => Promise<Return>>;
|
60
67
|
export declare function ArgSource(source: ArgSources): (target: object, propertyKey: string | symbol, parameterIndex: number) => void;
|
61
68
|
export {};
|
62
69
|
//# sourceMappingURL=handler.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"handler.d.ts","sourceRoot":"","sources":["../../../src/httpServer/handler.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"handler.d.ts","sourceRoot":"","sources":["../../../src/httpServer/handler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAA8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AAC,EAAE,MAAM,GAAG,kBAAkB,CAAC,CAAC,CAAC,GAAG,sBAAsB,CAAC,CAAC,CAAC;CAyB3I;AAED,MAAM,WAAW,uBAAwB,SAAQ,sBAAsB;IACrE,OAAO,EAAE,QAAQ,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,gBAAgB,EAAE,CAAC;CAC1B;AAED,qBAAa,gBAAiB,SAAQ,eAAe;IACnD,SAAS,EAAE,UAAU,CAAsB;gBAG/B,GAAG,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ;CAGtC;AAqBD,wBAAgB,MAAM,CAAC,GAAG,EAAE,MAAM,8RAEjC;AAED,wBAAgB,OAAO,CAAC,GAAG,EAAE,MAAM,8RAElC;AAED,wBAAgB,MAAM,CAAC,GAAG,EAAE,MAAM,8RAEjC;AAED,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM,8RAEnC;AAED,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,8RAEpC;AAMD,wBAAgB,SAAS,CAAC,MAAM,EAAE,UAAU,YACjB,MAAM,eAAe,MAAM,GAAG,MAAM,kBAAkB,MAAM,UAMtF"}
|
@@ -1,7 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.ArgSource = exports.
|
4
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
3
|
+
exports.ArgSource = exports.DeleteApi = exports.PatchApi = exports.PutApi = exports.PostApi = exports.GetApi = exports.HandlerParameter = exports.HandlerContextImpl = exports.RequestIDHeader = void 0;
|
5
4
|
const decorators_1 = require("../decorators");
|
6
5
|
const dbos_executor_1 = require("../dbos-executor");
|
7
6
|
const context_1 = require("../context");
|
@@ -82,28 +81,22 @@ class HandlerContextImpl extends context_1.DBOSContextImpl {
|
|
82
81
|
* Generate a proxy object for the provided class that wraps direct calls (i.e. OpClass.someMethod(param))
|
83
82
|
* to use WorkflowContext.Transaction(OpClass.someMethod, param);
|
84
83
|
*/
|
85
|
-
mainInvoke(object, workflowUUID, asyncWf) {
|
84
|
+
mainInvoke(object, workflowUUID, asyncWf, configuredInstance) {
|
86
85
|
const ops = (0, decorators_1.getRegisteredOperations)(object);
|
87
86
|
const proxy = {};
|
88
|
-
const params = { workflowUUID: workflowUUID, parentCtx: this };
|
87
|
+
const params = { workflowUUID: workflowUUID, parentCtx: this, configuredInstance };
|
89
88
|
for (const op of ops) {
|
90
89
|
if (asyncWf) {
|
91
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
92
90
|
proxy[op.name] = op.txnConfig
|
93
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
94
91
|
? (...args) => this.#transaction(op.registeredFunction, params, ...args)
|
95
92
|
: op.workflowConfig
|
96
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
97
93
|
? (...args) => this.#workflow(op.registeredFunction, params, ...args)
|
98
94
|
: op.commConfig
|
99
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
100
95
|
? (...args) => this.#external(op.registeredFunction, params, ...args)
|
101
96
|
: undefined;
|
102
97
|
}
|
103
98
|
else {
|
104
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
105
99
|
proxy[op.name] = op.workflowConfig
|
106
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
107
100
|
? (...args) => this.#workflow(op.registeredFunction, params, ...args).then((handle) => handle.getResult())
|
108
101
|
: undefined;
|
109
102
|
}
|
@@ -111,13 +104,31 @@ class HandlerContextImpl extends context_1.DBOSContextImpl {
|
|
111
104
|
return proxy;
|
112
105
|
}
|
113
106
|
invoke(object, workflowUUID) {
|
114
|
-
|
107
|
+
if (typeof object === 'function') {
|
108
|
+
return this.mainInvoke(object, workflowUUID, true, null);
|
109
|
+
}
|
110
|
+
else {
|
111
|
+
const targetInst = object;
|
112
|
+
return this.mainInvoke(targetInst, workflowUUID, true, targetInst);
|
113
|
+
}
|
115
114
|
}
|
116
115
|
startWorkflow(object, workflowUUID) {
|
117
|
-
|
116
|
+
if (typeof object === 'function') {
|
117
|
+
return this.mainInvoke(object, workflowUUID, true, null);
|
118
|
+
}
|
119
|
+
else {
|
120
|
+
const targetInst = object;
|
121
|
+
return this.mainInvoke(targetInst, workflowUUID, true, targetInst);
|
122
|
+
}
|
118
123
|
}
|
119
124
|
invokeWorkflow(object, workflowUUID) {
|
120
|
-
|
125
|
+
if (typeof object === 'function') {
|
126
|
+
return this.mainInvoke(object, workflowUUID, false, null);
|
127
|
+
}
|
128
|
+
else {
|
129
|
+
const targetInst = object;
|
130
|
+
return this.mainInvoke(targetInst, workflowUUID, false, targetInst);
|
131
|
+
}
|
121
132
|
}
|
122
133
|
//////////////////////
|
123
134
|
/* PRIVATE METHODS */
|
@@ -133,15 +144,6 @@ class HandlerContextImpl extends context_1.DBOSContextImpl {
|
|
133
144
|
}
|
134
145
|
}
|
135
146
|
exports.HandlerContextImpl = HandlerContextImpl;
|
136
|
-
class HandlerRegistration extends decorators_1.MethodRegistration {
|
137
|
-
apiType = handlerTypes_1.APITypes.GET;
|
138
|
-
apiURL = "";
|
139
|
-
args = [];
|
140
|
-
constructor(origFunc) {
|
141
|
-
super(origFunc);
|
142
|
-
}
|
143
|
-
}
|
144
|
-
exports.HandlerRegistration = HandlerRegistration;
|
145
147
|
class HandlerParameter extends decorators_1.MethodParameter {
|
146
148
|
argSource = handlerTypes_1.ArgSources.DEFAULT;
|
147
149
|
// eslint-disable-next-line @typescript-eslint/ban-types
|
@@ -153,28 +155,35 @@ exports.HandlerParameter = HandlerParameter;
|
|
153
155
|
/////////////////////////
|
154
156
|
/* ENDPOINT DECORATORS */
|
155
157
|
/////////////////////////
|
156
|
-
function
|
157
|
-
function apidec(target, propertyKey, inDescriptor) {
|
158
|
+
function generateApiDec(verb, url) {
|
159
|
+
return function apidec(target, propertyKey, inDescriptor) {
|
158
160
|
const { descriptor, registration } = (0, decorators_1.registerAndWrapFunction)(target, propertyKey, inDescriptor);
|
159
161
|
const handlerRegistration = registration;
|
160
162
|
handlerRegistration.apiURL = url;
|
161
|
-
handlerRegistration.apiType =
|
163
|
+
handlerRegistration.apiType = verb;
|
162
164
|
return descriptor;
|
163
|
-
}
|
164
|
-
|
165
|
+
};
|
166
|
+
}
|
167
|
+
function GetApi(url) {
|
168
|
+
return generateApiDec(handlerTypes_1.APITypes.GET, url);
|
165
169
|
}
|
166
170
|
exports.GetApi = GetApi;
|
167
171
|
function PostApi(url) {
|
168
|
-
|
169
|
-
const { descriptor, registration } = (0, decorators_1.registerAndWrapFunction)(target, propertyKey, inDescriptor);
|
170
|
-
const handlerRegistration = registration;
|
171
|
-
handlerRegistration.apiURL = url;
|
172
|
-
handlerRegistration.apiType = handlerTypes_1.APITypes.POST;
|
173
|
-
return descriptor;
|
174
|
-
}
|
175
|
-
return apidec;
|
172
|
+
return generateApiDec(handlerTypes_1.APITypes.POST, url);
|
176
173
|
}
|
177
174
|
exports.PostApi = PostApi;
|
175
|
+
function PutApi(url) {
|
176
|
+
return generateApiDec(handlerTypes_1.APITypes.PUT, url);
|
177
|
+
}
|
178
|
+
exports.PutApi = PutApi;
|
179
|
+
function PatchApi(url) {
|
180
|
+
return generateApiDec(handlerTypes_1.APITypes.PATCH, url);
|
181
|
+
}
|
182
|
+
exports.PatchApi = PatchApi;
|
183
|
+
function DeleteApi(url) {
|
184
|
+
return generateApiDec(handlerTypes_1.APITypes.DELETE, url);
|
185
|
+
}
|
186
|
+
exports.DeleteApi = DeleteApi;
|
178
187
|
///////////////////////////////////
|
179
188
|
/* ENDPOINT PARAMETER DECORATORS */
|
180
189
|
///////////////////////////////////
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"handler.js","sourceRoot":"","sources":["../../../src/httpServer/handler.ts"],"names":[],"mappings":";;;AAAA,
|
1
|
+
{"version":3,"file":"handler.js","sourceRoot":"","sources":["../../../src/httpServer/handler.ts"],"names":[],"mappings":";;;AAAA,8CAAiL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,QAAQ,GAAG,kBAAkB,CAAC,cAAc,CAAqB,CAAC;QACxE,QAAQ,CAAC,SAAS,GAAG,MAAM,CAAC;IAC9B,CAAC,CAAC;AACJ,CAAC;AAPD,8BAOC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"handlerTypes.d.ts","sourceRoot":"","sources":["../../../src/httpServer/handlerTypes.ts"],"names":[],"mappings":"AAKA,oBAAY,QAAQ;IAClB,GAAG,QAAQ;IACX,IAAI,SAAS;
|
1
|
+
{"version":3,"file":"handlerTypes.d.ts","sourceRoot":"","sources":["../../../src/httpServer/handlerTypes.ts"],"names":[],"mappings":"AAKA,oBAAY,QAAQ;IAClB,GAAG,QAAQ;IACX,IAAI,SAAS;IACb,GAAG,QAAQ;IACX,KAAK,UAAU;IACf,MAAM,WAAW;CAClB;AACD,oBAAY,UAAU;IACpB,OAAO,YAAY;IACnB,IAAI,SAAS;IACb,KAAK,UAAU;IACf,GAAG,QAAQ;CACZ"}
|
@@ -8,6 +8,9 @@ var APITypes;
|
|
8
8
|
(function (APITypes) {
|
9
9
|
APITypes["GET"] = "GET";
|
10
10
|
APITypes["POST"] = "POST";
|
11
|
+
APITypes["PUT"] = "PUT";
|
12
|
+
APITypes["PATCH"] = "PATCH";
|
13
|
+
APITypes["DELETE"] = "DELETE";
|
11
14
|
})(APITypes || (exports.APITypes = APITypes = {}));
|
12
15
|
var ArgSources;
|
13
16
|
(function (ArgSources) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"handlerTypes.js","sourceRoot":"","sources":["../../../src/httpServer/handlerTypes.ts"],"names":[],"mappings":";AACA,0BAA0B;AAC1B,0BAA0B;AAC1B,0BAA0B;;;AAE1B,IAAY,
|
1
|
+
{"version":3,"file":"handlerTypes.js","sourceRoot":"","sources":["../../../src/httpServer/handlerTypes.ts"],"names":[],"mappings":";AACA,0BAA0B;AAC1B,0BAA0B;AAC1B,0BAA0B;;;AAE1B,IAAY,QAMX;AAND,WAAY,QAAQ;IAClB,uBAAW,CAAA;IACX,yBAAa,CAAA;IACb,uBAAW,CAAA;IACX,2BAAe,CAAA;IACf,6BAAiB,CAAA;AACnB,CAAC,EANW,QAAQ,wBAAR,QAAQ,QAMnB;AACD,IAAY,UAKX;AALD,WAAY,UAAU;IACpB,iCAAmB,CAAA;IACnB,2BAAa,CAAA;IACb,6BAAe,CAAA;IACf,yBAAW,CAAA;AACb,CAAC,EALW,UAAU,0BAAV,UAAU,QAKrB"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../../src/httpServer/server.ts"],"names":[],"mappings":";;;AAAA,OAAO,GAAgB,MAAM,KAAK,CAAC;AACnC,OAAO,MAAM,MAAM,aAAa,CAAC;AAiBjC,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,YAAY,IAAI,MAAM,EAAE,MAAM,mBAAmB,CAAC;
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../../src/httpServer/server.ts"],"names":[],"mappings":";;;AAAA,OAAO,GAAgB,MAAM,KAAK,CAAC;AACnC,OAAO,MAAM,MAAM,aAAa,CAAC;AAiBjC,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,YAAY,IAAI,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAQ3D,eAAO,MAAM,kBAAkB,yBAAyB,CAAC;AACzD,eAAO,MAAM,mBAAmB,4BAA4B,CAAA;AAC5D,eAAO,MAAM,SAAS,kBAAkB,CAAA;AACxC,eAAO,MAAM,OAAO,eAAe,CAAA;AAEnC,qBAAa,cAAc;IAYb,QAAQ,CAAC,QAAQ,EAAE,YAAY;IAX3C,QAAQ,CAAC,GAAG,EAAE,GAAG,CAAC;IAClB,QAAQ,CAAC,QAAQ,EAAE,GAAG,CAAC;IACvB,QAAQ,CAAC,iBAAiB,EAAE,MAAM,CAAC;IACnC,QAAQ,CAAC,WAAW,E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