@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":"decorators.js","sourceRoot":"","sources":["../../src/decorators.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4BAA0B;AAE1B,+CAAiC;AAKjC,mCAA4D;AAC5D,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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AAM,MAAM,GAAG,4BAA4B,CAAC,IAAI,CAAC,CAAC;QAClD,MAAM,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"}
@@ -1,32 +1,22 @@
1
- import { MethodParameter, MethodRegistrationBase, ConfiguredInstance } from "../decorators";
1
+ import { MethodRegistration, MethodParameter, MethodRegistrationBase } 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, WFInvokeFuncsInst } from "../workflow";
5
+ import { TailParameters, WorkflowHandle, WorkflowContext, WFInvokeFuncs } from "../workflow";
6
6
  import { W3CTraceContextPropagator } from "@opentelemetry/core";
7
7
  import { APITypes, ArgSources } from "./handlerTypes";
8
- type WFFunc = (ctxt: WorkflowContext, ...args: any[]) => Promise<unknown>;
8
+ type WFFunc = (ctxt: WorkflowContext, ...args: any[]) => Promise<any>;
9
9
  export type InvokeFuncs<T> = WFInvokeFuncs<T> & AsyncHandlerWfFuncs<T>;
10
- export type InvokeFuncsInst<T> = WFInvokeFuncsInst<T>;
11
- export type AsyncHandlerWfFuncs<T> = T extends ConfiguredInstance ? never : {
10
+ export type AsyncHandlerWfFuncs<T> = {
12
11
  [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;
13
12
  };
14
- export type SyncHandlerWfFuncs<T> = T extends ConfiguredInstance ? never : {
13
+ export type SyncHandlerWfFuncs<T> = {
15
14
  [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;
16
15
  };
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;
23
16
  export interface HandlerContext extends DBOSContext {
24
17
  readonly koaContext: Koa.Context;
25
- invoke<T extends ConfiguredInstance>(targetCfg: T, workflowUUID?: string): InvokeFuncsInst<T>;
26
18
  invoke<T extends object>(targetClass: T, workflowUUID?: string): InvokeFuncs<T>;
27
- invokeWorkflow<T extends ConfiguredInstance>(targetCfg: T, workflowUUID?: string): SyncHandlerWfFuncsInst<T>;
28
19
  invokeWorkflow<T extends object>(targetClass: T, workflowUUID?: string): SyncHandlerWfFuncs<T>;
29
- startWorkflow<T extends ConfiguredInstance>(targetCfg: T, workflowUUID?: string): AsyncHandlerWfFuncInst<T>;
30
20
  startWorkflow<T extends object>(targetClass: T, workflowUUID?: string): AsyncHandlerWfFuncs<T>;
31
21
  retrieveWorkflow<R>(workflowUUID: string): WorkflowHandle<R>;
32
22
  send<T>(destinationUUID: string, message: T, topic?: string, idempotencyKey?: string): Promise<void>;
@@ -45,25 +35,28 @@ export declare class HandlerContextImpl extends DBOSContextImpl implements Handl
45
35
  * Generate a proxy object for the provided class that wraps direct calls (i.e. OpClass.someMethod(param))
46
36
  * to use WorkflowContext.Transaction(OpClass.someMethod, param);
47
37
  */
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>;
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>;
52
42
  }
53
43
  export interface HandlerRegistrationBase extends MethodRegistrationBase {
54
44
  apiType: APITypes;
55
45
  apiURL: string;
56
46
  args: HandlerParameter[];
57
47
  }
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
+ }
58
54
  export declare class HandlerParameter extends MethodParameter {
59
55
  argSource: ArgSources;
60
56
  constructor(idx: number, at: Function);
61
57
  }
62
58
  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>>;
63
59
  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>>;
67
60
  export declare function ArgSource(source: ArgSources): (target: object, propertyKey: string | symbol, parameterIndex: number) => void;
68
61
  export {};
69
62
  //# sourceMappingURL=handler.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"handler.d.ts","sourceRoot":"","sources":["../../../src/httpServer/handler.ts"],"names":[],"mappings":"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CAGtC;AAMD,wBAAgB,MAAM,CAAC,GAAG,EAAE,MAAM,2EAEtB,MAAM,eACD,MAAM,gBACL,wBAAwB,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,EAAE,IAAI,KAAK,QAAQ,MAAM,CAAC,CAAC,uFAUlG;AAED,wBAAgB,OAAO,CAAC,GAAG,EAAE,MAAM,2EAEvB,MAAM,eACD,MAAM,gBACL,wBAAwB,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,EAAE,IAAI,KAAK,QAAQ,MAAM,CAAC,CAAC,uFAUlG;AAMD,wBAAgB,SAAS,CAAC,MAAM,EAAE,UAAU,YACjB,MAAM,eAAe,MAAM,GAAG,MAAM,kBAAkB,MAAM,UAMtF"}
@@ -1,6 +1,7 @@
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 = exports.RequestIDHeader = void 0;
3
+ exports.ArgSource = exports.PostApi = exports.GetApi = exports.HandlerParameter = exports.HandlerRegistration = exports.HandlerContextImpl = exports.RequestIDHeader = void 0;
4
+ /* eslint-disable @typescript-eslint/no-explicit-any */
4
5
  const decorators_1 = require("../decorators");
5
6
  const dbos_executor_1 = require("../dbos-executor");
6
7
  const context_1 = require("../context");
@@ -81,22 +82,28 @@ class HandlerContextImpl extends context_1.DBOSContextImpl {
81
82
  * Generate a proxy object for the provided class that wraps direct calls (i.e. OpClass.someMethod(param))
82
83
  * to use WorkflowContext.Transaction(OpClass.someMethod, param);
83
84
  */
84
- mainInvoke(object, workflowUUID, asyncWf, configuredInstance) {
85
+ mainInvoke(object, workflowUUID, asyncWf) {
85
86
  const ops = (0, decorators_1.getRegisteredOperations)(object);
86
87
  const proxy = {};
87
- const params = { workflowUUID: workflowUUID, parentCtx: this, configuredInstance };
88
+ const params = { workflowUUID: workflowUUID, parentCtx: this };
88
89
  for (const op of ops) {
89
90
  if (asyncWf) {
91
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
90
92
  proxy[op.name] = op.txnConfig
93
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
91
94
  ? (...args) => this.#transaction(op.registeredFunction, params, ...args)
92
95
  : op.workflowConfig
96
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
93
97
  ? (...args) => this.#workflow(op.registeredFunction, params, ...args)
94
98
  : op.commConfig
99
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
95
100
  ? (...args) => this.#external(op.registeredFunction, params, ...args)
96
101
  : undefined;
97
102
  }
98
103
  else {
104
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
99
105
  proxy[op.name] = op.workflowConfig
106
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
100
107
  ? (...args) => this.#workflow(op.registeredFunction, params, ...args).then((handle) => handle.getResult())
101
108
  : undefined;
102
109
  }
@@ -104,31 +111,13 @@ class HandlerContextImpl extends context_1.DBOSContextImpl {
104
111
  return proxy;
105
112
  }
106
113
  invoke(object, workflowUUID) {
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
- }
114
+ return this.mainInvoke(object, workflowUUID, true);
114
115
  }
115
116
  startWorkflow(object, workflowUUID) {
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
- }
117
+ return this.mainInvoke(object, workflowUUID, true);
123
118
  }
124
119
  invokeWorkflow(object, workflowUUID) {
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
- }
120
+ return this.mainInvoke(object, workflowUUID, false);
132
121
  }
133
122
  //////////////////////
134
123
  /* PRIVATE METHODS */
@@ -144,6 +133,15 @@ class HandlerContextImpl extends context_1.DBOSContextImpl {
144
133
  }
145
134
  }
146
135
  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;
147
145
  class HandlerParameter extends decorators_1.MethodParameter {
148
146
  argSource = handlerTypes_1.ArgSources.DEFAULT;
149
147
  // eslint-disable-next-line @typescript-eslint/ban-types
@@ -155,35 +153,28 @@ exports.HandlerParameter = HandlerParameter;
155
153
  /////////////////////////
156
154
  /* ENDPOINT DECORATORS */
157
155
  /////////////////////////
158
- function generateApiDec(verb, url) {
159
- return function apidec(target, propertyKey, inDescriptor) {
156
+ function GetApi(url) {
157
+ function apidec(target, propertyKey, inDescriptor) {
160
158
  const { descriptor, registration } = (0, decorators_1.registerAndWrapFunction)(target, propertyKey, inDescriptor);
161
159
  const handlerRegistration = registration;
162
160
  handlerRegistration.apiURL = url;
163
- handlerRegistration.apiType = verb;
161
+ handlerRegistration.apiType = handlerTypes_1.APITypes.GET;
164
162
  return descriptor;
165
- };
166
- }
167
- function GetApi(url) {
168
- return generateApiDec(handlerTypes_1.APITypes.GET, url);
163
+ }
164
+ return apidec;
169
165
  }
170
166
  exports.GetApi = GetApi;
171
167
  function PostApi(url) {
172
- return generateApiDec(handlerTypes_1.APITypes.POST, url);
168
+ function apidec(target, propertyKey, inDescriptor) {
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;
173
176
  }
174
177
  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;
187
178
  ///////////////////////////////////
188
179
  /* ENDPOINT PARAMETER DECORATORS */
189
180
  ///////////////////////////////////
@@ -1 +1 @@
1
- {"version":3,"file":"handler.js","sourceRoot":"","sources":["../../../src/httpServer/handler.ts"],"names":[],"mappings":";;;AAAA,8CAAiL;AACjL,oDAA+D;AAC/D,wCAA0D;AAI1D,8CAAgE;AAChE,4CAA+E;AAE/E,+BAAoC;AAEpC,iDAAsD;AAiDzC,QAAA,eAAe,GAAG,cAAc,CAAC;AAC9C,SAAS,sBAAsB,CAAC,GAAgB;IAC9C,MAAM,KAAK,GAAG,GAAG,CAAC,GAAG,CAAC,uBAAe,CAAC,CAAC;IACvC,IAAI,KAAK,EAAE,CAAC;QACV,OAAO,KAAK,CAAC;IACf,CAAC;IACD,MAAM,KAAK,GAAG,IAAA,SAAM,GAAE,CAAC;IACvB,GAAG,CAAC,GAAG,CAAC,uBAAe,EAAE,KAAK,CAAC,CAAC;IAChC,OAAO,KAAK,CAAC;AACf,CAAC;AAED,MAAa,kBAAmB,SAAQ,yBAAe;IAIR;IAHpC,SAAS,CAAe;IACxB,yBAAyB,CAA4B;IAE9D,YAAY,QAAsB,EAAW,UAAuB;QAClE,sCAAsC;QACtC,MAAM,SAAS,GAAG,sBAAsB,CAAC,UAAU,CAAC,CAAC;QAErD,0DAA0D;QAC1D,MAAM,UAAU,GAAG,IAAI,gCAAyB,EAAE,CAAC;QACnD,MAAM,oBAAoB,GAAG,WAAK,CAAC,cAAc,CAC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EnC,SAAgB,SAAS,CAAC,MAAkB;IAC1C,OAAO,UAAU,MAAc,EAAE,WAA4B,EAAE,cAAsB;QACnF,MAAM,kBAAkB,GAAG,IAAA,8CAAiC,EAAC,MAAM,EAAE,WAAW,CAAC,CAAC;QAElF,MAAM,QAAQ,GAAG,kBAAkB,CAAC,cAAc,CAAqB,CAAC;QACxE,QAAQ,CAAC,SAAS,GAAG,MAAM,CAAC;IAC9B,CAAC,CAAC;AACJ,CAAC;AAPD,8BAOC"}
@@ -1,9 +1,6 @@
1
1
  export declare enum APITypes {
2
2
  GET = "GET",
3
- POST = "POST",
4
- PUT = "PUT",
5
- PATCH = "PATCH",
6
- DELETE = "DELETE"
3
+ POST = "POST"
7
4
  }
8
5
  export declare enum ArgSources {
9
6
  DEFAULT = "DEFAULT",
@@ -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;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"}
1
+ {"version":3,"file":"handlerTypes.d.ts","sourceRoot":"","sources":["../../../src/httpServer/handlerTypes.ts"],"names":[],"mappings":"AAKA,oBAAY,QAAQ;IAClB,GAAG,QAAQ;IACX,IAAI,SAAS;CACd;AACD,oBAAY,UAAU;IACpB,OAAO,YAAY;IACnB,IAAI,SAAS;IACb,KAAK,UAAU;IACf,GAAG,QAAQ;CACZ"}
@@ -8,9 +8,6 @@ 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";
14
11
  })(APITypes || (exports.APITypes = APITypes = {}));
15
12
  var ArgSources;
16
13
  (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,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
+ {"version":3,"file":"handlerTypes.js","sourceRoot":"","sources":["../../../src/httpServer/handlerTypes.ts"],"names":[],"mappings":";AACA,0BAA0B;AAC1B,0BAA0B;AAC1B,0BAA0B;;;AAE1B,IAAY,QAGX;AAHD,WAAY,QAAQ;IAClB,uBAAW,CAAA;IACX,yBAAa,CAAA;AACf,CAAC,EAHW,QAAQ,wBAAR,QAAQ,QAGnB;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;AAQ3D,eAAO,MA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MAAM,mBAAmB,CAAC;AAO3D,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,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IAExB;;;;OAIG;gBACkB,QAAQ,EAAE,YAAY;IAkB3C;;;OAGG;IACG,MAAM,CAAC,IAAI,EAAE,MAAM;;;;IAoCrB,qBAAqB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAkBpE;;OAEG;IACD,MAAM,CAAC,sBAAsB,CAAC,QAAQ,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM;IAUtE;;;OAGG;IACH,MAAM,CAAC,wBAAwB,CAAC,QAAQ,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM;IAkBtE;;;OAGG;IACH,MAAM,CAAC,oBAAoB,CAAC,QAAQ,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM;IAalE;;OAEG;IACH,MAAM,CAAC,0BAA0B,CAAC,QAAQ,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM;CA6LzE"}
@@ -37,7 +37,6 @@ const error_1 = require("../error");
37
37
  const api_1 = require("@opentelemetry/api");
38
38
  const net = __importStar(require("net"));
39
39
  const perf_hooks_1 = require("perf_hooks");
40
- const utils_1 = require("../utils");
41
40
  exports.WorkflowUUIDHeader = "dbos-idempotency-key";
42
41
  exports.WorkflowRecoveryUrl = "/dbos-workflow-recovery";
43
42
  exports.HealthUrl = "/dbos-healthz";
@@ -179,10 +178,6 @@ class DBOSHttpServer {
179
178
  dbosExec.registeredOperations.forEach((registeredOperation) => {
180
179
  const ro = registeredOperation;
181
180
  if (ro.apiURL) {
182
- if (ro.isInstance) {
183
- dbosExec.logger.warn(`Operation ${ro.className}/${ro.name} is registered with an endpoint (${ro.apiURL}) but cannot be invoked.`);
184
- return;
185
- }
186
181
  const defaults = ro.defaults;
187
182
  // Check if we need to apply a custom CORS
188
183
  if (defaults.koaCors) {
@@ -251,15 +246,13 @@ class DBOSHttpServer {
251
246
  return; // Do not parse the context.
252
247
  }
253
248
  let foundArg = undefined;
254
- const isQueryMethod = ro.apiType === handlerTypes_1.APITypes.GET || ro.apiType === handlerTypes_1.APITypes.DELETE;
255
- const isBodyMethod = ro.apiType === handlerTypes_1.APITypes.POST || ro.apiType === handlerTypes_1.APITypes.PUT || ro.apiType === handlerTypes_1.APITypes.PATCH;
256
- if ((isQueryMethod && marg.argSource === handlerTypes_1.ArgSources.DEFAULT) || marg.argSource === handlerTypes_1.ArgSources.QUERY) {
249
+ if ((ro.apiType === handlerTypes_1.APITypes.GET && marg.argSource === handlerTypes_1.ArgSources.DEFAULT) || marg.argSource === handlerTypes_1.ArgSources.QUERY) {
257
250
  foundArg = koaCtxt.request.query[marg.name];
258
251
  if (foundArg) {
259
252
  args.push(foundArg);
260
253
  }
261
254
  }
262
- else if ((isBodyMethod && marg.argSource === handlerTypes_1.ArgSources.DEFAULT) || marg.argSource === handlerTypes_1.ArgSources.BODY) {
255
+ else if ((ro.apiType === handlerTypes_1.APITypes.POST && marg.argSource === handlerTypes_1.ArgSources.DEFAULT) || marg.argSource === handlerTypes_1.ArgSources.BODY) {
263
256
  if (!koaCtxt.request.body) {
264
257
  throw new error_1.DBOSDataValidationError(`Argument ${marg.name} requires a method body.`);
265
258
  }
@@ -285,8 +278,7 @@ class DBOSHttpServer {
285
278
  // - If a client-side error is thrown, we return 400.
286
279
  // - If an error contains a `status` field, we return the specified status code.
287
280
  // - Otherwise, we return 500.
288
- // configuredInstance is currently null; we don't allow configured handlers now.
289
- const wfParams = { parentCtx: oc, workflowUUID: headerWorkflowUUID, configuredInstance: null };
281
+ const wfParams = { parentCtx: oc, workflowUUID: headerWorkflowUUID };
290
282
  if (ro.txnConfig) {
291
283
  koaCtxt.body = await dbosExec.transaction(ro.registeredFunction, wfParams, ...args);
292
284
  }
@@ -347,29 +339,13 @@ class DBOSHttpServer {
347
339
  }
348
340
  };
349
341
  // Actually register the endpoint.
350
- switch (ro.apiType) {
351
- case handlerTypes_1.APITypes.GET:
352
- router.get(ro.apiURL, wrappedHandler);
353
- dbosExec.logger.debug(`DBOS Server Registered GET ${ro.apiURL}`);
354
- break;
355
- case handlerTypes_1.APITypes.POST:
356
- router.post(ro.apiURL, wrappedHandler);
357
- dbosExec.logger.debug(`DBOS Server Registered POST ${ro.apiURL}`);
358
- break;
359
- case handlerTypes_1.APITypes.PUT:
360
- router.put(ro.apiURL, wrappedHandler);
361
- dbosExec.logger.debug(`DBOS Server Registered PUT ${ro.apiURL}`);
362
- break;
363
- case handlerTypes_1.APITypes.PATCH:
364
- router.patch(ro.apiURL, wrappedHandler);
365
- dbosExec.logger.debug(`DBOS Server Registered PATCH ${ro.apiURL}`);
366
- break;
367
- case handlerTypes_1.APITypes.DELETE:
368
- router.delete(ro.apiURL, wrappedHandler);
369
- dbosExec.logger.debug(`DBOS Server Registered DELETE ${ro.apiURL}`);
370
- break;
371
- default:
372
- (0, utils_1.exhaustiveCheckGuard)(ro.apiType);
342
+ if (ro.apiType === handlerTypes_1.APITypes.GET) {
343
+ router.get(ro.apiURL, wrappedHandler);
344
+ dbosExec.logger.debug(`DBOS Server Registered GET ${ro.apiURL}`);
345
+ }
346
+ else if (ro.apiType === handlerTypes_1.APITypes.POST) {
347
+ router.post(ro.apiURL, wrappedHandler);
348
+ dbosExec.logger.debug(`DBOS Server Registered POST ${ro.apiURL}`);
373
349
  }
374
350
  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AAC;wBACjC,qCAAqC;wBACrC,OAAO,CAAC,GAAG,CAAC,yBAAe,EAAE,EAAE,CAAC,OAAO,CAAC,SAAmB,CAAC,CAAC;wBAC7D,MAAM,OAAO,EAAE,CAAC;oBAClB,CAAC;gBACH,CAAC,CAAC;gBAEF,kCAAkC;gBAClC,IAAI,EAAE,CAAC,OAAO,KAAK,uBAAQ,CAAC,GAAG,EAAE,CAAC;oBAChC,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;oBACtC,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,8BAA8B,EAAE,CAAC,MAAM,EAAE,CAAC,CAAC;gBACnE,CAAC;qBAAM,IAAI,EAAE,CAAC,OAAO,KAAK,uBAAQ,CAAC,IAAI,EAAE,CAAC;oBACxC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;oBACvC,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,+BAA+B,EAAE,CAAC,MAAM,EAAE,CAAC,CAAC;gBACpE,CAAC;YACH,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC;CACF;AA5UD,wCA4UC"}
@@ -5,9 +5,9 @@ export { WorkflowContext, WorkflowConfig, WorkflowHandle, StatusString, } from '
5
5
  export { CommunicatorContext, CommunicatorConfig, } from './communicator';
6
6
  export * as Error from './error';
7
7
  export { DBOSResponseError } from './error';
8
- export { LogMasks, ArgRequired, ArgOptional, SkipLogging, LogMask, ArgName, ArgDate, ArgVarchar, DefaultRequiredRole, DefaultArgRequired, DefaultArgOptional, OrmEntities, ConfiguredInstance, configureInstance, Transaction, Workflow, Communicator, RequiredRole, DBOSInitializer, DBOSDeploy, } from "./decorators";
8
+ export { LogMasks, ArgRequired, ArgOptional, SkipLogging, LogMask, ArgName, ArgDate, ArgVarchar, DefaultRequiredRole, DefaultArgRequired, DefaultArgOptional, OrmEntities, Transaction, Workflow, Communicator, RequiredRole, DBOSInitializer, DBOSDeploy, } from "./decorators";
9
9
  export { ArgSources, } from "./httpServer/handlerTypes";
10
- export { HandlerContext, ArgSource, GetApi, PostApi, PatchApi, PutApi, DeleteApi } from "./httpServer/handler";
10
+ export { HandlerContext, ArgSource, GetApi, PostApi, } from "./httpServer/handler";
11
11
  export { DBOSHttpAuthMiddleware, DBOSHttpAuthReturn, MiddlewareContext, Authentication, KoaBodyParser, KoaCors, KoaMiddleware, OpenApiSecurityScheme } from "./httpServer/middleware";
12
12
  export { Kafka, KafkaConsume, } from "./kafka/kafka";
13
13
  export { SchedulerMode, SchedulerConfig, Scheduled, } from "./scheduler/scheduler";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,cAAc,GACf,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EACL,WAAW,EACX,WAAW,GACZ,MAAM,WAAW,CAAC;AAEnB,OAAO,EACL,kBAAkB,EAClB,iBAAiB,GAClB,MAAM,eAAe,CAAC;AAEvB,OAAO,EACL,eAAe,EACf,cAAc,EACd,cAAc,EACd,YAAY,GACb,MAAM,YAAY,CAAC;AAEpB,OAAO,EACL,mBAAmB,EACnB,kBAAkB,GACnB,MAAM,gBAAgB,CAAC;AAExB,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AAEjC,OAAO,EACL,iBAAiB,EAClB,MAAM,SAAS,CAAC;AAEjB,OAAO,EACL,QAAQ,EAGR,WAAW,EACX,WAAW,EACX,WAAW,EACX,OAAO,EACP,OAAO,EACP,OAAO,EACP,UAAU,EAGV,mBAAmB,EACnB,kBAAkB,EAClB,kBAAkB,EAElB,WAAW,EAGX,kBAAkB,EAClB,iBAAiB,EAGjB,WAAW,EACX,QAAQ,EACR,YAAY,EACZ,YAAY,EACZ,eAAe,EACf,UAAU,GACX,MAAM,cAAc,CAAC;AAEtB,OAAO,EACL,UAAU,GACX,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EACL,cAAc,EAGd,SAAS,EAGT,MAAM,EACN,OAAO,EACP,QAAQ,EACR,MAAM,EACN,SAAS,EACV,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EACL,sBAAsB,EACtB,kBAAkB,EAClB,iBAAiB,EAGjB,cAAc,EACd,aAAa,EACb,OAAO,EACP,aAAa,EAGb,qBAAqB,EACtB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EACL,KAAK,EACL,YAAY,GACb,MAAM,eAAe,CAAC;AAEvB,OAAO,EACL,aAAa,EACb,eAAe,EACf,SAAS,GACV,MAAM,uBAAuB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,cAAc,GACf,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EACL,WAAW,EACX,WAAW,GACZ,MAAM,WAAW,CAAC;AAEnB,OAAO,EACL,kBAAkB,EAClB,iBAAiB,GAClB,MAAM,eAAe,CAAC;AAEvB,OAAO,EACL,eAAe,EACf,cAAc,EACd,cAAc,EACd,YAAY,GACb,MAAM,YAAY,CAAC;AAEpB,OAAO,EACL,mBAAmB,EACnB,kBAAkB,GACnB,MAAM,gBAAgB,CAAC;AAExB,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AAEjC,OAAO,EACL,iBAAiB,EAClB,MAAM,SAAS,CAAC;AAEjB,OAAO,EACL,QAAQ,EAGR,WAAW,EACX,WAAW,EACX,WAAW,EACX,OAAO,EACP,OAAO,EACP,OAAO,EACP,UAAU,EAGV,mBAAmB,EACnB,kBAAkB,EAClB,kBAAkB,EAElB,WAAW,EAGX,WAAW,EACX,QAAQ,EACR,YAAY,EACZ,YAAY,EACZ,eAAe,EACf,UAAU,GACX,MAAM,cAAc,CAAC;AAEtB,OAAO,EACL,UAAU,GACX,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EACL,cAAc,EAGd,SAAS,EAGT,MAAM,EACN,OAAO,GACR,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EACL,sBAAsB,EACtB,kBAAkB,EAClB,iBAAiB,EAGjB,cAAc,EACd,aAAa,EACb,OAAO,EACP,aAAa,EAGb,qBAAqB,EACtB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EACL,KAAK,EACL,YAAY,GACb,MAAM,eAAe,CAAC;AAEvB,OAAO,EACL,aAAa,EACb,eAAe,EACf,SAAS,GACV,MAAM,uBAAuB,CAAC"}
package/dist/src/index.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.Scheduled = exports.SchedulerConfig = exports.SchedulerMode = exports.KafkaConsume = exports.Kafka = exports.OpenApiSecurityScheme = exports.KoaMiddleware = exports.KoaCors = exports.KoaBodyParser = exports.Authentication = exports.DeleteApi = exports.PutApi = exports.PatchApi = exports.PostApi = exports.GetApi = exports.ArgSource = exports.ArgSources = exports.DBOSDeploy = exports.DBOSInitializer = exports.RequiredRole = exports.Communicator = exports.Workflow = exports.Transaction = exports.configureInstance = exports.ConfiguredInstance = exports.OrmEntities = exports.DefaultArgOptional = exports.DefaultArgRequired = exports.DefaultRequiredRole = exports.ArgVarchar = exports.ArgDate = exports.ArgName = exports.LogMask = exports.SkipLogging = exports.ArgOptional = exports.ArgRequired = exports.LogMasks = exports.DBOSResponseError = exports.Error = exports.StatusString = exports.InitContext = exports.createTestingRuntime = void 0;
26
+ exports.Scheduled = exports.SchedulerConfig = exports.SchedulerMode = exports.KafkaConsume = exports.Kafka = exports.OpenApiSecurityScheme = exports.KoaMiddleware = exports.KoaCors = exports.KoaBodyParser = exports.Authentication = exports.PostApi = exports.GetApi = exports.ArgSource = exports.ArgSources = exports.DBOSDeploy = exports.DBOSInitializer = exports.RequiredRole = exports.Communicator = exports.Workflow = exports.Transaction = exports.OrmEntities = exports.DefaultArgOptional = exports.DefaultArgRequired = exports.DefaultRequiredRole = exports.ArgVarchar = exports.ArgDate = exports.ArgName = exports.LogMask = exports.SkipLogging = exports.ArgOptional = exports.ArgRequired = exports.LogMasks = exports.DBOSResponseError = exports.Error = exports.StatusString = exports.InitContext = exports.createTestingRuntime = void 0;
27
27
  var testing_runtime_1 = require("./testing/testing_runtime");
28
28
  Object.defineProperty(exports, "createTestingRuntime", { enumerable: true, get: function () { return testing_runtime_1.createTestingRuntime; } });
29
29
  var context_1 = require("./context");
@@ -49,9 +49,6 @@ Object.defineProperty(exports, "DefaultArgRequired", { enumerable: true, get: fu
49
49
  Object.defineProperty(exports, "DefaultArgOptional", { enumerable: true, get: function () { return decorators_1.DefaultArgOptional; } });
50
50
  // Typeorm Class Decorators
51
51
  Object.defineProperty(exports, "OrmEntities", { enumerable: true, get: function () { return decorators_1.OrmEntities; } });
52
- // Class Instances
53
- Object.defineProperty(exports, "ConfiguredInstance", { enumerable: true, get: function () { return decorators_1.ConfiguredInstance; } });
54
- Object.defineProperty(exports, "configureInstance", { enumerable: true, get: function () { return decorators_1.configureInstance; } });
55
52
  // Method Decorators
56
53
  Object.defineProperty(exports, "Transaction", { enumerable: true, get: function () { return decorators_1.Transaction; } });
57
54
  Object.defineProperty(exports, "Workflow", { enumerable: true, get: function () { return decorators_1.Workflow; } });
@@ -67,9 +64,6 @@ Object.defineProperty(exports, "ArgSource", { enumerable: true, get: function ()
67
64
  // Endpoint Decorators
68
65
  Object.defineProperty(exports, "GetApi", { enumerable: true, get: function () { return handler_1.GetApi; } });
69
66
  Object.defineProperty(exports, "PostApi", { enumerable: true, get: function () { return handler_1.PostApi; } });
70
- Object.defineProperty(exports, "PatchApi", { enumerable: true, get: function () { return handler_1.PatchApi; } });
71
- Object.defineProperty(exports, "PutApi", { enumerable: true, get: function () { return handler_1.PutApi; } });
72
- Object.defineProperty(exports, "DeleteApi", { enumerable: true, get: function () { return handler_1.DeleteApi; } });
73
67
  var middleware_1 = require("./httpServer/middleware");
74
68
  // Middleware Decorators
75
69
  Object.defineProperty(exports, "Authentication", { enumerable: true, get: function () { return middleware_1.Authentication; } });
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6DAGmC;AAFjC,uHAAA,oBAAoB,OAAA;AAItB,qCAGmB;AADjB,sGAAA,WAAW,OAAA;AAQb,uCAKoB;AADlB,wGAAA,YAAY,OAAA;AAQd,iDAAiC;AAEjC,iCAEiB;AADf,0GAAA,iBAAiB,OAAA;AAGnB,2CA8BsB;AA7BpB,sGAAA,QAAQ,OAAA;AAER,uBAAuB;AACvB,yGAAA,WAAW,OAAA;AACX,yGAAA,WAAW,OAAA;AACX,yGAAA,WAAW,OAAA;AACX,qGAAA,OAAO,OAAA;AACP,qGAAA,OAAO,OAAA;AACP,qGAAA,OAAO,OAAA;AACP,wGAAA,UAAU,OAAA;AAEV,mBAAmB;AACnB,iHAAA,mBAAmB,OAAA;AACnB,gHAAA,kBAAkB,OAAA;AAClB,gHAAA,kBAAkB,OAAA;AAClB,2BAA2B;AAC3B,yGAAA,WAAW,OAAA;AAEX,kBAAkB;AAClB,gHAAA,kBAAkB,OAAA;AAClB,+GAAA,iBAAiB,OAAA;AAEjB,oBAAoB;AACpB,yGAAA,WAAW,OAAA;AACX,sGAAA,QAAQ,OAAA;AACR,0GAAA,YAAY,OAAA;AACZ,0GAAA,YAAY,OAAA;AACZ,6GAAA,eAAe,OAAA;AACf,wGAAA,UAAU,OAAA;AAGZ,0DAEmC;AADjC,0GAAA,UAAU,OAAA;AAGZ,gDAY8B;AAT5B,gCAAgC;AAChC,oGAAA,SAAS,OAAA;AAET,sBAAsB;AACtB,iGAAA,MAAM,OAAA;AACN,kGAAA,OAAO,OAAA;AACP,mGAAA,QAAQ,OAAA;AACR,iGAAA,MAAM,OAAA;AACN,oGAAA,SAAS,OAAA;AAGX,sDAaiC;AAR/B,wBAAwB;AACxB,4GAAA,cA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