@dbos-inc/dbos-sdk 1.9.5-preview → 1.9.10-preview.g0dc217a304
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/src/decorators.d.ts +0 -2
- package/dist/src/decorators.d.ts.map +1 -1
- package/dist/src/decorators.js +1 -11
- package/dist/src/decorators.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 +1 -2
- package/dist/src/index.js.map +1 -1
- package/dist/src/kafka/kafka.d.ts +3 -2
- package/dist/src/kafka/kafka.d.ts.map +1 -1
- package/dist/src/kafka/kafka.js +29 -8
- package/dist/src/kafka/kafka.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/src/decorators.d.ts
CHANGED
@@ -62,7 +62,6 @@ export declare class MethodRegistration<This, Args extends unknown[], Return> im
|
|
62
62
|
requiredRole: string[] | undefined;
|
63
63
|
args: MethodParameter[];
|
64
64
|
constructor(origFunc: (this: This, ...args: Args) => Promise<Return>);
|
65
|
-
debug: boolean;
|
66
65
|
needInitialized: boolean;
|
67
66
|
origFunction: (this: This, ...args: Args) => Promise<Return>;
|
68
67
|
registeredFunction: ((this: This, ...args: Args) => Promise<Return>) | undefined;
|
@@ -107,7 +106,6 @@ export declare function DefaultArgRequired<T extends {
|
|
107
106
|
export declare function DefaultArgOptional<T extends {
|
108
107
|
new (...args: unknown[]): object;
|
109
108
|
}>(ctor: T): void;
|
110
|
-
export declare function Debug(): <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>>;
|
111
109
|
export declare function RequiredRole(anyOf: 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>>;
|
112
110
|
export declare function Workflow(config?: WorkflowConfig): <This, Args extends unknown[], Return>(target: object, propertyKey: string, inDescriptor: TypedPropertyDescriptor<(this: This, ctx: WorkflowContext, ...args: Args) => Promise<Return>>) => TypedPropertyDescriptor<(this: This, ctx: WorkflowContext, ...args: Args) => Promise<Return>>;
|
113
111
|
export declare function Transaction(config?: TransactionConfig): <This, Args extends unknown[], Return>(target: object, propertyKey: string, inDescriptor: TypedPropertyDescriptor<(this: This, ctx: TransactionContext<any>, ...args: Args) => Promise<Return>>) => TypedPropertyDescriptor<(this: This, ctx: TransactionContext<any>, ...args: Args) => Promise<Return>>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"decorators.d.ts","sourceRoot":"","sources":["../../src/decorators.ts"],"names":[],"mappings":"AAEA,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,EAAmB,WAAW,EAAE,MAAM,WAAW,CAAC;AACtE,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAIzE;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,GAAG,WAAW,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,CAAC;AAE9H,qBAAa,YAAY;IACvB,QAAQ,EAAE,aAAa,CAAU;IACjC,MAAM,EAAE,MAAM,CAAM;IACpB,SAAS,EAAE,MAAM,CAAM;IACvB,KAAK,EAAE,MAAM,CAAM;IAEnB,yBAAyB;IACzB,MAAM,CAAC,OAAO,CAAC,MAAM,EAAE,MAAM;IAO7B,gFAAgF;IAChF,MAAM,CAAC,OAAO,CAAC,SAAS,EAAE,MA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,EAAE,4BACP,OAAO,EAAE,KAAI,MAAM,mBAM9D;AAED,wBAAgB,kBAAkB,CAAC,CAAC,SAAS;IAAE,KAAK,GAAG,IAAI,EAAE,OAAO,EAAE,GAAI,MAAM,CAAA;CAAE,EAAE,IAAI,EAAE,CAAC,QAI1F;AAED,wBAAgB,kBAAkB,CAAC,CAAC,SAAS;IAAE,KAAK,GAAG,IAAI,EAAE,OAAO,EAAE,GAAI,MAAM,CAAA;CAAE,EAAE,IAAI,EAAE,CAAC,QAI1F;AAOD,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,2EAEhC,MAAM,eACD,MAAM,wLAStB;AAED,wBAAgB,QAAQ,CAAC,MAAM,GAAE,cAAiB,kDAEtC,MAAM,eACD,MAAM,0DACqC,eAAe,uIAO1E;AAED,wBAAgB,WAAW,CAAC,MAAM,GAAE,iBAAoB,kDAE5C,MAAM,eACD,MAAM,0DAEqC,mBAAmB,GAAG,CAAC,+IAOlF;AAED,wBAAgB,YAAY,CAAC,MAAM,GAAE,kBAAqB,kDAE9C,MAAM,eACD,MAAM,0DACqC,mBAAmB,2IAQ9E;AAGD,wBAAgB,WAAW,CAAC,QAAQ,EAAE,QAAQ,EAAE,4BAEJ,OAAO,EAAE,KAAI,MAAM,mBAM9D;AAED,wBAAgB,eAAe,mDAEnB,MAAM,eACD,MAAM,0DAEqC,WAAW,mIAOtE;AAGD,wBAAgB,UAAU,mDAEd,MAAM,eACD,MAAM,0DAEqC,WAAW,mIAOtE"}
|
package/dist/src/decorators.js
CHANGED
@@ -24,7 +24,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
24
24
|
return result;
|
25
25
|
};
|
26
26
|
Object.defineProperty(exports, "__esModule", { value: true });
|
27
|
-
exports.DBOSDeploy = exports.DBOSInitializer = exports.OrmEntities = exports.Communicator = exports.Transaction = exports.Workflow = exports.RequiredRole = exports.
|
27
|
+
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;
|
28
28
|
require("reflect-metadata");
|
29
29
|
const crypto = __importStar(require("crypto"));
|
30
30
|
const error_1 = require("./error");
|
@@ -141,7 +141,6 @@ class MethodRegistration {
|
|
141
141
|
constructor(origFunc) {
|
142
142
|
this.origFunction = origFunc;
|
143
143
|
}
|
144
|
-
debug = false;
|
145
144
|
needInitialized = true;
|
146
145
|
origFunction;
|
147
146
|
registeredFunction;
|
@@ -385,15 +384,6 @@ exports.DefaultArgOptional = DefaultArgOptional;
|
|
385
384
|
///////////////////////
|
386
385
|
/* METHOD DECORATORS */
|
387
386
|
///////////////////////
|
388
|
-
function Debug() {
|
389
|
-
function logdec(target, propertyKey, inDescriptor) {
|
390
|
-
const { descriptor, registration } = registerAndWrapFunction(target, propertyKey, inDescriptor);
|
391
|
-
registration.debug = true;
|
392
|
-
return descriptor;
|
393
|
-
}
|
394
|
-
return logdec;
|
395
|
-
}
|
396
|
-
exports.Debug = Debug;
|
397
387
|
function RequiredRole(anyOf) {
|
398
388
|
function apidec(target, propertyKey, inDescriptor) {
|
399
389
|
const { descriptor, registration } = registerAndWrapFunction(target, propertyKey, inDescriptor);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"decorators.js","sourceRoot":"","sources":["../../src/decorators.ts"],"names":[],"mappings":";AAAA,6DAA6D;;;;;;;;;;;;;;;;;;;;;;;;;;AAE7D,4BAA0B;AAE1B,+CAAiC;AAKjC,mCAAiD;AACjD,uDAAuD;AAOvD,MAAa,YAAY;IACv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usString, } from '
|
|
5
5
|
export { CommunicatorContext, CommunicatorConfig, } from './communicator';
|
6
6
|
export * as Error from './error';
|
7
7
|
export { DBOSResponseError } from './error';
|
8
|
-
export { LogMasks,
|
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
10
|
export { HandlerContext, ArgSource, GetApi, PostApi, } from "./httpServer/handler";
|
11
11
|
export { DBOSHttpAuthMiddleware, DBOSHttpAuthReturn, MiddlewareContext, Authentication, KoaBodyParser, KoaCors, KoaMiddleware, OpenApiSecurityScheme } from "./httpServer/middleware";
|
package/dist/src/index.d.ts.map
CHANGED
@@ -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,
|
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.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.
|
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");
|
@@ -35,7 +35,6 @@ var error_1 = require("./error");
|
|
35
35
|
Object.defineProperty(exports, "DBOSResponseError", { enumerable: true, get: function () { return error_1.DBOSResponseError; } });
|
36
36
|
var decorators_1 = require("./decorators");
|
37
37
|
Object.defineProperty(exports, "LogMasks", { enumerable: true, get: function () { return decorators_1.LogMasks; } });
|
38
|
-
Object.defineProperty(exports, "Debug", { enumerable: true, get: function () { return decorators_1.Debug; } });
|
39
38
|
// Parameter Decorators
|
40
39
|
Object.defineProperty(exports, "ArgRequired", { enumerable: true, get: function () { return decorators_1.ArgRequired; } });
|
41
40
|
Object.defineProperty(exports, "ArgOptional", { enumerable: true, get: function () { return decorators_1.ArgOptional; } });
|
package/dist/src/index.js.map
CHANGED
@@ -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,
|
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,2CA0BsB;AAzBpB,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,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,gDAS8B;AAN5B,gCAAgC;AAChC,oGAAA,SAAS,OAAA;AAET,sBAAsB;AACtB,iGAAA,MAAM,OAAA;AACN,kGAAA,OAAO,OAAA;AAGT,sDAaiC;AAR/B,wBAAwB;AACxB,4GAAA,cAAc,OAAA;AACd,2GAAA,aAAa,OAAA;AACb,qGAAA,OAAO,OAAA;AACP,2GAAA,aAAa,OAAA;AAEb,qBAAqB;AACrB,mHAAA,qBAAqB,OAAA;AAGvB,uCAGuB;AAFrB,8FAAA,KAAK,OAAA;AACL,qGAAA,YAAY,OAAA;AAGd,mDAI+B;AAH7B,0GAAA,aAAa,OAAA;AACb,4GAAA,eAAe,OAAA;AACf,sGAAA,SAAS,OAAA"}
|
@@ -4,11 +4,11 @@ import { ClassRegistration, MethodRegistration, RegistrationDefaults } from "../
|
|
4
4
|
import { DBOSExecutor } from "../dbos-executor";
|
5
5
|
type KafkaArgs = [string, number, KafkaMessage];
|
6
6
|
export declare class KafkaRegistration<This, Args extends unknown[], Return> extends MethodRegistration<This, Args, Return> {
|
7
|
-
|
7
|
+
kafkaTopics?: string | RegExp | Array<string | RegExp>;
|
8
8
|
consumerConfig?: ConsumerConfig;
|
9
9
|
constructor(origFunc: (this: This, ...args: Args) => Promise<Return>);
|
10
10
|
}
|
11
|
-
export declare function KafkaConsume(
|
11
|
+
export declare function KafkaConsume(topics: string | RegExp | Array<string | RegExp>, consumerConfig?: ConsumerConfig): <This, Ctx extends DBOSContext, Return>(target: object, propertyKey: string, inDescriptor: TypedPropertyDescriptor<(this: This, ctx: Ctx, args_0: string, args_1: number, args_2: KafkaMessage) => Promise<Return>>) => TypedPropertyDescriptor<(this: This, ctx: Ctx, args_1: string, args_2: number, args_3: KafkaMessage) => Promise<Return>>;
|
12
12
|
export interface KafkaDefaults extends RegistrationDefaults {
|
13
13
|
kafkaConfig?: KafkaConfig;
|
14
14
|
}
|
@@ -25,6 +25,7 @@ export declare class DBOSKafka {
|
|
25
25
|
constructor(dbosExec: DBOSExecutor);
|
26
26
|
initKafka(): Promise<void>;
|
27
27
|
destroyKafka(): Promise<void>;
|
28
|
+
safeGroupName(topics: Array<string | RegExp>): string;
|
28
29
|
logRegisteredKafkaEndpoints(): void;
|
29
30
|
}
|
30
31
|
export {};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"kafka.d.ts","sourceRoot":"","sources":["../../../src/kafka/kafka.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,QAAQ,EAAE,cAAc,EAAE,WAAW,EAAE,YAAY,EAAwB,MAAM,SAAS,CAAC;AACtH,OAAO,EAAE,WAAW,EAAE,MAAM,IAAI,CAAC;AACjC,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,oBAAoB,EAAyD,MAAM,eAAe,CAAC;AACnJ,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAMhD,KAAK,SAAS,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,YAAY,CAAC,CAAA;AAM/C,qBAAa,iBAAiB,CAAC,IAAI,EAAE,IAAI,SAAS,OAAO,EAAE,EAAE,MAAM,CAAE,SAAQ,kBAAkB,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,CAAC;IACjH,
|
1
|
+
{"version":3,"file":"kafka.d.ts","sourceRoot":"","sources":["../../../src/kafka/kafka.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,QAAQ,EAAE,cAAc,EAAE,WAAW,EAAE,YAAY,EAAwB,MAAM,SAAS,CAAC;AACtH,OAAO,EAAE,WAAW,EAAE,MAAM,IAAI,CAAC;AACjC,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,oBAAoB,EAAyD,MAAM,eAAe,CAAC;AACnJ,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAMhD,KAAK,SAAS,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,YAAY,CAAC,C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,18 @@ const utils_1 = require("../utils");
|
|
9
9
|
/* Kafka Method Decorators */
|
10
10
|
/////////////////////////////
|
11
11
|
class KafkaRegistration extends decorators_1.MethodRegistration {
|
12
|
-
|
12
|
+
kafkaTopics;
|
13
13
|
consumerConfig;
|
14
14
|
constructor(origFunc) {
|
15
15
|
super(origFunc);
|
16
16
|
}
|
17
17
|
}
|
18
18
|
exports.KafkaRegistration = KafkaRegistration;
|
19
|
-
function KafkaConsume(
|
19
|
+
function KafkaConsume(topics, consumerConfig) {
|
20
20
|
function kafkadec(target, propertyKey, inDescriptor) {
|
21
21
|
const { descriptor, registration } = (0, decorators_1.registerAndWrapFunction)(target, propertyKey, inDescriptor);
|
22
22
|
const kafkaRegistration = registration;
|
23
|
-
kafkaRegistration.
|
23
|
+
kafkaRegistration.kafkaTopics = topics;
|
24
24
|
kafkaRegistration.consumerConfig = consumerConfig;
|
25
25
|
return descriptor;
|
26
26
|
}
|
@@ -54,7 +54,7 @@ class DBOSKafka {
|
|
54
54
|
async initKafka() {
|
55
55
|
for (const registeredOperation of this.dbosExec.registeredOperations) {
|
56
56
|
const ro = registeredOperation;
|
57
|
-
if (ro.
|
57
|
+
if (ro.kafkaTopics) {
|
58
58
|
const defaults = ro.defaults;
|
59
59
|
if (!ro.txnConfig && !ro.workflowConfig) {
|
60
60
|
throw new error_1.DBOSError(`Error registering method ${defaults.name}.${ro.name}: A Kafka decorator can only be assigned to a transaction or workflow!`);
|
@@ -62,8 +62,15 @@ class DBOSKafka {
|
|
62
62
|
if (!defaults.kafkaConfig) {
|
63
63
|
throw new error_1.DBOSError(`Error registering method ${defaults.name}.${ro.name}: Kafka configuration not found. Does class ${defaults.name} have an @Kafka decorator?`);
|
64
64
|
}
|
65
|
+
const topics = [];
|
66
|
+
if (Array.isArray(ro.kafkaTopics)) {
|
67
|
+
topics.push(...ro.kafkaTopics);
|
68
|
+
}
|
69
|
+
else if (ro.kafkaTopics) {
|
70
|
+
topics.push(ro.kafkaTopics);
|
71
|
+
}
|
65
72
|
const kafka = new kafkajs_1.Kafka(defaults.kafkaConfig);
|
66
|
-
const consumerConfig = ro.consumerConfig ?? { groupId:
|
73
|
+
const consumerConfig = ro.consumerConfig ?? { groupId: `${this.safeGroupName(topics)}` };
|
67
74
|
const consumer = kafka.consumer(consumerConfig);
|
68
75
|
await consumer.connect();
|
69
76
|
// A temporary workaround for https://github.com/tulios/kafkajs/pull/1558 until it gets fixed
|
@@ -74,7 +81,7 @@ class DBOSKafka {
|
|
74
81
|
const multiplier = defaults.kafkaConfig.retry ? defaults.kafkaConfig.retry.multiplier ?? 2 : 2;
|
75
82
|
for (let i = 0; i < maxRetries; i++) {
|
76
83
|
try {
|
77
|
-
await consumer.subscribe({
|
84
|
+
await consumer.subscribe({ topics: topics, fromBeginning: true });
|
78
85
|
break;
|
79
86
|
}
|
80
87
|
catch (error) {
|
@@ -116,14 +123,28 @@ class DBOSKafka {
|
|
116
123
|
await consumer.disconnect();
|
117
124
|
}
|
118
125
|
}
|
126
|
+
safeGroupName(topics) {
|
127
|
+
const safeGroupIdPart = topics
|
128
|
+
.map(r => r.toString())
|
129
|
+
.map(r => r.replaceAll(/[^a-zA-Z0-9\\-]/g, ''))
|
130
|
+
.join('-');
|
131
|
+
return `dbos-kafka-group-${safeGroupIdPart}`.slice(0, 255);
|
132
|
+
}
|
119
133
|
logRegisteredKafkaEndpoints() {
|
120
134
|
const logger = this.dbosExec.logger;
|
121
135
|
logger.info("Kafka endpoints supported:");
|
122
136
|
this.dbosExec.registeredOperations.forEach((registeredOperation) => {
|
123
137
|
const ro = registeredOperation;
|
124
|
-
if (ro.
|
138
|
+
if (ro.kafkaTopics) {
|
125
139
|
const defaults = ro.defaults;
|
126
|
-
|
140
|
+
if (Array.isArray(ro.kafkaTopics)) {
|
141
|
+
ro.kafkaTopics.forEach(kafkaTopic => {
|
142
|
+
logger.info(` ${kafkaTopic} -> ${defaults.name}.${ro.name}`);
|
143
|
+
});
|
144
|
+
}
|
145
|
+
else {
|
146
|
+
logger.info(` ${ro.kafkaTopics} -> ${defaults.name}.${ro.name}`);
|
147
|
+
}
|
127
148
|
}
|
128
149
|
});
|
129
150
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"kafka.js","sourceRoot":"","sources":["../../../src/kafka/kafka.ts"],"names":[],"mappings":";;;AAAA,qCAAsH;AAEtH,8CAAmJ;AAInJ,oCAAqC;AACrC,oCAAiC;AAIjC,6BAA6B;AAC7B,6BAA6B;AAC7B,6BAA6B;AAE7B,MAAa,iBAAwD,SAAQ,+BAAsC;IACjH,
|
1
|
+
{"version":3,"file":"kafka.js","sourceRoot":"","sources":["../../../src/kafka/kafka.ts"],"names":[],"mappings":";;;AAAA,qCAAsH;AAEtH,8CAAmJ;AAInJ,oCAAqC;AACrC,oCAAiC;AAIjC,6BAA6B;AAC7B,6BAA6B;AAC7B,6BAA6B;AAE7B,MAAa,iBAAwD,SAAQ,+BAAsC;IACjH,WAAW,CAA4C;IACvD,cAAc,CAAkB;IAEhC,YAAY,QAAwD;QAClE,KAAK,CAAC,QAAQ,CAAC,CAAC;IAClB,CAAC;CACF;AAPD,8CAOC;AAED,SAAgB,YAAY,CAAC,MAAgD,EAAE,cAA+B;IAC5G,SAAS,QAAQ,CACf,MAAc,EACd,WAAmB,EACnB,YAAoG;QAEpG,MAAM,EAAE,UAAU,EAAE,YAAY,EAAE,GAAG,IAAA,oCAAuB,EAAC,MAAM,EAAE,WAAW,EAAE,YAAY,CAAC,CAAC;QAChG,MAAM,iBAAiB,GAAG,YAAqE,CAAC;QAChG,iBAAiB,CAAC,WAAW,GAAG,MAAM,CAAC;QACvC,iBAAiB,CAAC,cAAc,GAAG,cAAc,CAAC;QAElD,OAAO,UAAU,CAAC;IACpB,CAAC;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC;AAdD,oCAcC;AAUD,MAAa,sBAAuE,SAAQ,8BAAqB;IAC/G,WAAW,CAAe;IAE1B,YAAY,IAAQ;QAClB,KAAK,CAAC,IAAI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