@quanticjs/workflow-quanticflow 4.3.0 → 4.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import type { QuanticFlowWorkflowModuleOptions } from './QuanticFlowWorkflowModule';
1
+ import type { QuanticFlowWorkflowModuleOptions } from './options';
2
2
  export declare class KeycloakTokenService {
3
3
  private readonly options;
4
4
  private readonly logger;
@@ -15,7 +15,7 @@ var KeycloakTokenService_1;
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.KeycloakTokenService = void 0;
17
17
  const common_1 = require("@nestjs/common");
18
- const QuanticFlowWorkflowModule_1 = require("./QuanticFlowWorkflowModule");
18
+ const options_1 = require("./options");
19
19
  let KeycloakTokenService = KeycloakTokenService_1 = class KeycloakTokenService {
20
20
  options;
21
21
  logger = new common_1.Logger(KeycloakTokenService_1.name);
@@ -57,6 +57,6 @@ let KeycloakTokenService = KeycloakTokenService_1 = class KeycloakTokenService {
57
57
  exports.KeycloakTokenService = KeycloakTokenService;
58
58
  exports.KeycloakTokenService = KeycloakTokenService = KeycloakTokenService_1 = __decorate([
59
59
  (0, common_1.Injectable)(),
60
- __param(0, (0, common_1.Inject)(QuanticFlowWorkflowModule_1.QUANTICFLOW_OPTIONS)),
60
+ __param(0, (0, common_1.Inject)(options_1.QUANTICFLOW_OPTIONS)),
61
61
  __metadata("design:paramtypes", [Object])
62
62
  ], KeycloakTokenService);
@@ -1,32 +1,9 @@
1
1
  import { DynamicModule, OnModuleInit } from '@nestjs/common';
2
2
  import { HttpService } from '@nestjs/axios';
3
- import { ServiceTaskHandler } from './ServiceTaskHandlerRegistry';
4
3
  import { KeycloakTokenService } from './KeycloakTokenService';
5
- export declare const QUANTICFLOW_OPTIONS: unique symbol;
6
- export interface ServiceTaskHandlingOptions {
7
- mode: 'callback' | 'event' | 'both';
8
- callbackSecret?: string;
9
- streamKey?: string;
10
- consumerGroup?: string;
11
- consumerName?: string;
12
- }
13
- export interface QuanticFlowAuthOptions {
14
- keycloakUrl: string;
15
- keycloakInternalUrl?: string;
16
- realm: string;
17
- clientId: string;
18
- clientSecret: string;
19
- }
20
- export interface QuanticFlowWorkflowModuleOptions {
21
- url: string;
22
- requestTimeout?: number;
23
- auth?: QuanticFlowAuthOptions;
24
- serviceTaskHandling?: ServiceTaskHandlingOptions;
25
- handlers?: Array<{
26
- name: string;
27
- useClass: new (...args: unknown[]) => ServiceTaskHandler;
28
- }>;
29
- }
4
+ import { QUANTICFLOW_OPTIONS, type QuanticFlowWorkflowModuleOptions } from './options';
5
+ export { QUANTICFLOW_OPTIONS };
6
+ export type { QuanticFlowWorkflowModuleOptions, QuanticFlowAuthOptions, ServiceTaskHandlingOptions, } from './options';
30
7
  export declare class QuanticFlowWorkflowModule implements OnModuleInit {
31
8
  private readonly options;
32
9
  private readonly httpService;
@@ -23,7 +23,8 @@ const QuanticFlowCallbackController_1 = require("./QuanticFlowCallbackController
23
23
  const ServiceTaskEventConsumer_1 = require("./ServiceTaskEventConsumer");
24
24
  const ServiceTaskHandlerRegistry_1 = require("./ServiceTaskHandlerRegistry");
25
25
  const KeycloakTokenService_1 = require("./KeycloakTokenService");
26
- exports.QUANTICFLOW_OPTIONS = Symbol('QUANTICFLOW_OPTIONS');
26
+ const options_1 = require("./options");
27
+ Object.defineProperty(exports, "QUANTICFLOW_OPTIONS", { enumerable: true, get: function () { return options_1.QUANTICFLOW_OPTIONS; } });
27
28
  let QuanticFlowWorkflowModule = QuanticFlowWorkflowModule_1 = class QuanticFlowWorkflowModule {
28
29
  options;
29
30
  httpService;
@@ -50,7 +51,7 @@ let QuanticFlowWorkflowModule = QuanticFlowWorkflowModule_1 = class QuanticFlowW
50
51
  const enableEvents = mode === 'event' || mode === 'both';
51
52
  const providers = [
52
53
  {
53
- provide: exports.QUANTICFLOW_OPTIONS,
54
+ provide: options_1.QUANTICFLOW_OPTIONS,
54
55
  useValue: options,
55
56
  },
56
57
  KeycloakTokenService_1.KeycloakTokenService,
@@ -106,7 +107,7 @@ exports.QuanticFlowWorkflowModule = QuanticFlowWorkflowModule;
106
107
  exports.QuanticFlowWorkflowModule = QuanticFlowWorkflowModule = QuanticFlowWorkflowModule_1 = __decorate([
107
108
  (0, common_1.Global)(),
108
109
  (0, common_1.Module)({}),
109
- __param(0, (0, common_1.Inject)(exports.QUANTICFLOW_OPTIONS)),
110
+ __param(0, (0, common_1.Inject)(options_1.QUANTICFLOW_OPTIONS)),
110
111
  __metadata("design:paramtypes", [Object, axios_1.HttpService,
111
112
  KeycloakTokenService_1.KeycloakTokenService])
112
113
  ], QuanticFlowWorkflowModule);
@@ -0,0 +1,26 @@
1
+ import { ServiceTaskHandler } from './ServiceTaskHandlerRegistry';
2
+ export declare const QUANTICFLOW_OPTIONS: unique symbol;
3
+ export interface ServiceTaskHandlingOptions {
4
+ mode: 'callback' | 'event' | 'both';
5
+ callbackSecret?: string;
6
+ streamKey?: string;
7
+ consumerGroup?: string;
8
+ consumerName?: string;
9
+ }
10
+ export interface QuanticFlowAuthOptions {
11
+ keycloakUrl: string;
12
+ keycloakInternalUrl?: string;
13
+ realm: string;
14
+ clientId: string;
15
+ clientSecret: string;
16
+ }
17
+ export interface QuanticFlowWorkflowModuleOptions {
18
+ url: string;
19
+ requestTimeout?: number;
20
+ auth?: QuanticFlowAuthOptions;
21
+ serviceTaskHandling?: ServiceTaskHandlingOptions;
22
+ handlers?: Array<{
23
+ name: string;
24
+ useClass: new (...args: unknown[]) => ServiceTaskHandler;
25
+ }>;
26
+ }
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.QUANTICFLOW_OPTIONS = void 0;
4
+ exports.QUANTICFLOW_OPTIONS = Symbol('QUANTICFLOW_OPTIONS');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quanticjs/workflow-quanticflow",
3
- "version": "4.3.0",
3
+ "version": "4.3.2",
4
4
  "description": "QuanticFlow workflow engine adapter for @quanticjs/workflow — supports callback and event-driven service task execution",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -23,8 +23,8 @@
23
23
  "license": "MIT",
24
24
  "dependencies": {
25
25
  "@nestjs/axios": "^4.0.0",
26
- "@quanticjs/core": "^4.3.0",
27
- "@quanticjs/events": "^4.3.0",
26
+ "@quanticjs/core": "^4.3.2",
27
+ "@quanticjs/events": "^4.3.2",
28
28
  "axios": "^1.6.0"
29
29
  },
30
30
  "peerDependencies": {