@venturialstd/workflow 0.1.56 → 0.1.58
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.
- package/dist/modules/events/actions/send-event.action.d.ts.map +1 -1
- package/dist/modules/events/actions/send-event.action.js +0 -13
- package/dist/modules/events/actions/send-event.action.js.map +1 -1
- package/dist/modules/events/services/send-event.service.d.ts.map +1 -1
- package/dist/modules/events/services/send-event.service.js +14 -50
- package/dist/modules/events/services/send-event.service.js.map +1 -1
- package/dist/modules/toolbox/actions/generate-uuid.action.d.ts +3 -0
- package/dist/modules/toolbox/actions/generate-uuid.action.d.ts.map +1 -0
- package/dist/modules/toolbox/actions/generate-uuid.action.js +23 -0
- package/dist/modules/toolbox/actions/generate-uuid.action.js.map +1 -0
- package/dist/modules/toolbox/actions/index.d.ts +1 -0
- package/dist/modules/toolbox/actions/index.d.ts.map +1 -1
- package/dist/modules/toolbox/actions/index.js +1 -0
- package/dist/modules/toolbox/actions/index.js.map +1 -1
- package/dist/modules/toolbox/services/generate-uuid.service.d.ts +6 -0
- package/dist/modules/toolbox/services/generate-uuid.service.d.ts.map +1 -0
- package/dist/modules/toolbox/services/generate-uuid.service.js +29 -0
- package/dist/modules/toolbox/services/generate-uuid.service.js.map +1 -0
- package/dist/modules/toolbox/services/index.d.ts +1 -0
- package/dist/modules/toolbox/services/index.d.ts.map +1 -1
- package/dist/modules/toolbox/services/index.js +1 -0
- package/dist/modules/toolbox/services/index.js.map +1 -1
- package/dist/modules/toolbox/toolbox-nest.module.d.ts.map +1 -1
- package/dist/modules/toolbox/toolbox-nest.module.js +2 -2
- package/dist/modules/toolbox/toolbox-nest.module.js.map +1 -1
- package/dist/modules/toolbox/toolbox.module.d.ts.map +1 -1
- package/dist/modules/toolbox/toolbox.module.js +2 -2
- package/dist/modules/toolbox/toolbox.module.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"send-event.action.d.ts","sourceRoot":"","sources":["../../../../src/modules/events/actions/send-event.action.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,qBAAqB,EACtB,MAAM,aAAa,CAAC;AAGrB,eAAO,MAAM,eAAe,EAAE,
|
|
1
|
+
{"version":3,"file":"send-event.action.d.ts","sourceRoot":"","sources":["../../../../src/modules/events/actions/send-event.action.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,qBAAqB,EACtB,MAAM,aAAa,CAAC;AAGrB,eAAO,MAAM,eAAe,EAAE,qBAsF7B,CAAC"}
|
|
@@ -32,19 +32,6 @@ exports.sendEventAction = {
|
|
|
32
32
|
},
|
|
33
33
|
placeholder: '{"key": "value"}',
|
|
34
34
|
},
|
|
35
|
-
{
|
|
36
|
-
id: 'timeout',
|
|
37
|
-
name: 'Timeout',
|
|
38
|
-
description: 'Timeout in milliseconds to wait for event response (default: 30000)',
|
|
39
|
-
type: types_1.FIELD_TYPE.NUMBER,
|
|
40
|
-
validation: {
|
|
41
|
-
required: false,
|
|
42
|
-
min: 1000,
|
|
43
|
-
max: 300000,
|
|
44
|
-
},
|
|
45
|
-
placeholder: '30000',
|
|
46
|
-
defaultValue: 30000,
|
|
47
|
-
},
|
|
48
35
|
],
|
|
49
36
|
outputs: [
|
|
50
37
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"send-event.action.js","sourceRoot":"","sources":["../../../../src/modules/events/actions/send-event.action.ts"],"names":[],"mappings":";;;AAAA,uCAKqB;AACrB,uEAAkE;AAErD,QAAA,eAAe,GAA0B;IACpD,GAAG,EAAE,YAAY;IACjB,IAAI,EAAE,YAAY;IAClB,WAAW,EAAE,6DAA6D;IAC1E,QAAQ,EAAE,qBAAa,CAAC,MAAM;IAC9B,IAAI,EAAE,IAAI;IACV,YAAY,EAAE,qCAAsE;IACpF,MAAM,EAAE;QACN;YACE,EAAE,EAAE,WAAW;YACf,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,+BAA+B;YAC5C,IAAI,EAAE,kBAAU,CAAC,MAAM;YACvB,UAAU,EAAE;gBACV,QAAQ,EAAE,IAAI;gBACd,SAAS,EAAE,CAAC;aACb;YACD,WAAW,EAAE,yBAAyB;SACvC;QACD;YACE,EAAE,EAAE,WAAW;YACf,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,iDAAiD;YAC9D,IAAI,EAAE,kBAAU,CAAC,IAAI;YACrB,UAAU,EAAE;gBACV,QAAQ,EAAE,KAAK;aAChB;YACD,WAAW,EAAE,kBAAkB;SAChC;
|
|
1
|
+
{"version":3,"file":"send-event.action.js","sourceRoot":"","sources":["../../../../src/modules/events/actions/send-event.action.ts"],"names":[],"mappings":";;;AAAA,uCAKqB;AACrB,uEAAkE;AAErD,QAAA,eAAe,GAA0B;IACpD,GAAG,EAAE,YAAY;IACjB,IAAI,EAAE,YAAY;IAClB,WAAW,EAAE,6DAA6D;IAC1E,QAAQ,EAAE,qBAAa,CAAC,MAAM;IAC9B,IAAI,EAAE,IAAI;IACV,YAAY,EAAE,qCAAsE;IACpF,MAAM,EAAE;QACN;YACE,EAAE,EAAE,WAAW;YACf,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,+BAA+B;YAC5C,IAAI,EAAE,kBAAU,CAAC,MAAM;YACvB,UAAU,EAAE;gBACV,QAAQ,EAAE,IAAI;gBACd,SAAS,EAAE,CAAC;aACb;YACD,WAAW,EAAE,yBAAyB;SACvC;QACD;YACE,EAAE,EAAE,WAAW;YACf,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,iDAAiD;YAC9D,IAAI,EAAE,kBAAU,CAAC,IAAI;YACrB,UAAU,EAAE;gBACV,QAAQ,EAAE,KAAK;aAChB;YACD,WAAW,EAAE,kBAAkB;SAChC;KACF;IACD,OAAO,EAAE;QACP;YACE,EAAE,EAAE,WAAW;YACf,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,wCAAwC;YACrD,IAAI,EAAE,kBAAU,CAAC,MAAM;SACxB;QACD;YACE,EAAE,EAAE,SAAS;YACb,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,4CAA4C;YACzD,IAAI,EAAE,kBAAU,CAAC,OAAO;SACzB;QACD;YACE,EAAE,EAAE,WAAW;YACf,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,sCAAsC;YACnD,IAAI,EAAE,kBAAU,CAAC,IAAI;SACtB;QACD;YACE,EAAE,EAAE,YAAY;YAChB,IAAI,EAAE,aAAa;YACnB,WAAW,EAAE,8BAA8B;YAC3C,IAAI,EAAE,kBAAU,CAAC,MAAM;SACxB;QACD;YACE,EAAE,EAAE,aAAa;YACjB,IAAI,EAAE,cAAc;YACpB,WAAW,EAAE,+BAA+B;YAC5C,IAAI,EAAE,kBAAU,CAAC,MAAM;SACxB;QACD;YACE,EAAE,EAAE,WAAW;YACf,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,6BAA6B;YAC1C,IAAI,EAAE,kBAAU,CAAC,MAAM;SACxB;QACD;YACE,EAAE,EAAE,eAAe;YACnB,IAAI,EAAE,gBAAgB;YACtB,WAAW,EAAE,sCAAsC;YACnD,IAAI,EAAE,kBAAU,CAAC,MAAM;SACxB;QACD;YACE,EAAE,EAAE,UAAU;YACd,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,mCAAmC;YAChD,IAAI,EAAE,kBAAU,CAAC,IAAI;SACtB;QACD;YACE,EAAE,EAAE,OAAO;YACX,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,wCAAwC;YACrD,IAAI,EAAE,kBAAU,CAAC,MAAM;SACxB;KACF;CACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"send-event.service.d.ts","sourceRoot":"","sources":["../../../../src/modules/events/services/send-event.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAGtD,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAE5E,qBACa,gBAAiB,YAAW,sBAAsB;IACjD,OAAO,CAAC,QAAQ,CAAC,YAAY;gBAAZ,YAAY,EAAE,aAAa;IAElD,OAAO,CACX,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC/B,OAAO,EAAE,qBAAqB,GAC7B,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"send-event.service.d.ts","sourceRoot":"","sources":["../../../../src/modules/events/services/send-event.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAGtD,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAE5E,qBACa,gBAAiB,YAAW,sBAAsB;IACjD,OAAO,CAAC,QAAQ,CAAC,YAAY;gBAAZ,YAAY,EAAE,aAAa;IAElD,OAAO,CACX,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC/B,OAAO,EAAE,qBAAqB,GAC7B,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAiFpC"}
|
|
@@ -25,16 +25,13 @@ let SendEventService = class SendEventService {
|
|
|
25
25
|
? JSON.parse(inputs.eventData)
|
|
26
26
|
: inputs.eventData
|
|
27
27
|
: {};
|
|
28
|
-
const timeout = inputs.timeout ? Number(inputs.timeout) : 30000;
|
|
29
28
|
if (!eventName) {
|
|
30
29
|
throw new Error('Event name is required');
|
|
31
30
|
}
|
|
32
31
|
const correlationId = (0, uuid_1.v4)();
|
|
33
|
-
const responseEventName = `${eventName}.response.${correlationId}`;
|
|
34
32
|
const eventPayload = {
|
|
35
33
|
eventName,
|
|
36
34
|
correlationId,
|
|
37
|
-
responseEventName,
|
|
38
35
|
eventData,
|
|
39
36
|
workflowContext: {
|
|
40
37
|
workflowId: context.workflowId,
|
|
@@ -46,59 +43,26 @@ let SendEventService = class SendEventService {
|
|
|
46
43
|
},
|
|
47
44
|
timestamp: new Date().toISOString(),
|
|
48
45
|
};
|
|
49
|
-
const responsePromise = new Promise((resolve, reject) => {
|
|
50
|
-
let resolved = false;
|
|
51
|
-
const responseListener = (response) => {
|
|
52
|
-
if (!resolved) {
|
|
53
|
-
resolved = true;
|
|
54
|
-
this.eventEmitter.removeListener(responseEventName, responseListener);
|
|
55
|
-
this.eventEmitter.removeListener(`${responseEventName}.error`, errorListener);
|
|
56
|
-
clearTimeout(timeoutId);
|
|
57
|
-
resolve(response);
|
|
58
|
-
}
|
|
59
|
-
};
|
|
60
|
-
const errorListener = (error) => {
|
|
61
|
-
if (!resolved) {
|
|
62
|
-
resolved = true;
|
|
63
|
-
this.eventEmitter.removeListener(responseEventName, responseListener);
|
|
64
|
-
this.eventEmitter.removeListener(`${responseEventName}.error`, errorListener);
|
|
65
|
-
clearTimeout(timeoutId);
|
|
66
|
-
if (typeof error === 'string') {
|
|
67
|
-
reject(new Error(error));
|
|
68
|
-
}
|
|
69
|
-
else if (error instanceof Error) {
|
|
70
|
-
reject(error);
|
|
71
|
-
}
|
|
72
|
-
else {
|
|
73
|
-
reject(new Error(JSON.stringify(error)));
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
};
|
|
77
|
-
this.eventEmitter.once(responseEventName, responseListener);
|
|
78
|
-
this.eventEmitter.once(`${responseEventName}.error`, errorListener);
|
|
79
|
-
const timeoutId = setTimeout(() => {
|
|
80
|
-
if (!resolved) {
|
|
81
|
-
resolved = true;
|
|
82
|
-
this.eventEmitter.removeListener(responseEventName, responseListener);
|
|
83
|
-
this.eventEmitter.removeListener(`${responseEventName}.error`, errorListener);
|
|
84
|
-
reject(new Error(`Event response timeout after ${timeout}ms`));
|
|
85
|
-
}
|
|
86
|
-
}, timeout);
|
|
87
|
-
});
|
|
88
46
|
try {
|
|
89
|
-
await this.eventEmitter.emitAsync(eventName, eventPayload);
|
|
47
|
+
const listenerResults = await this.eventEmitter.emitAsync(eventName, eventPayload);
|
|
90
48
|
let response;
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
49
|
+
if (Array.isArray(listenerResults) && listenerResults.length > 0) {
|
|
50
|
+
const firstResult = listenerResults[0];
|
|
51
|
+
if (firstResult && typeof firstResult === 'object') {
|
|
52
|
+
response = firstResult;
|
|
53
|
+
}
|
|
54
|
+
else {
|
|
55
|
+
response = {
|
|
56
|
+
success: true,
|
|
57
|
+
message: 'Event handler completed but returned unexpected format',
|
|
58
|
+
result: firstResult,
|
|
59
|
+
};
|
|
60
|
+
}
|
|
96
61
|
}
|
|
97
|
-
|
|
62
|
+
else {
|
|
98
63
|
response = {
|
|
99
64
|
success: true,
|
|
100
65
|
message: 'Event emitted successfully, but no response was received from handlers',
|
|
101
|
-
timeout: error instanceof Error ? error.message : String(error),
|
|
102
66
|
};
|
|
103
67
|
}
|
|
104
68
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"send-event.service.js","sourceRoot":"","sources":["../../../../src/modules/events/services/send-event.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,yDAAsD;AACtD,+BAAoC;AAK7B,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IACE;IAA7B,YAA6B,YAA2B;QAA3B,iBAAY,GAAZ,YAAY,CAAe;IAAG,CAAC;IAE5D,KAAK,CAAC,OAAO,CACX,MAA+B,EAC/B,OAA8B;QAE9B,MAAM,SAAS,GAAG,MAAM,CAAC,SAAmB,CAAC;QAC7C,MAAM,SAAS,GAAG,MAAM,CAAC,SAAS;YAChC,CAAC,CAAC,OAAO,MAAM,CAAC,SAAS,KAAK,QAAQ;gBACpC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC;gBAC9B,CAAC,CAAE,MAAM,CAAC,SAAqC;YACjD,CAAC,CAAC,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"send-event.service.js","sourceRoot":"","sources":["../../../../src/modules/events/services/send-event.service.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 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generate-uuid.action.d.ts","sourceRoot":"","sources":["../../../../src/modules/toolbox/actions/generate-uuid.action.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,qBAAqB,EACtB,MAAM,aAAa,CAAC;AAGrB,eAAO,MAAM,kBAAkB,EAAE,qBAgBhC,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.generateUuidAction = void 0;
|
|
4
|
+
const types_1 = require("../../types");
|
|
5
|
+
const generate_uuid_service_1 = require("../services/generate-uuid.service");
|
|
6
|
+
exports.generateUuidAction = {
|
|
7
|
+
key: 'generate-uuid',
|
|
8
|
+
name: 'Generate UUID',
|
|
9
|
+
description: 'Generate a unique UUID (v4)',
|
|
10
|
+
category: types_1.NODE_CATEGORY.ACTION,
|
|
11
|
+
icon: '🆔',
|
|
12
|
+
serviceClass: generate_uuid_service_1.GenerateUuidService,
|
|
13
|
+
inputs: [],
|
|
14
|
+
outputs: [
|
|
15
|
+
{
|
|
16
|
+
id: 'uuid',
|
|
17
|
+
name: 'UUID',
|
|
18
|
+
description: 'The generated UUID (v4)',
|
|
19
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
20
|
+
},
|
|
21
|
+
],
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=generate-uuid.action.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generate-uuid.action.js","sourceRoot":"","sources":["../../../../src/modules/toolbox/actions/generate-uuid.action.ts"],"names":[],"mappings":";;;AAAA,uCAKqB;AACrB,6EAAwE;AAE3D,QAAA,kBAAkB,GAA0B;IACvD,GAAG,EAAE,eAAe;IACpB,IAAI,EAAE,eAAe;IACrB,WAAW,EAAE,6BAA6B;IAC1C,QAAQ,EAAE,qBAAa,CAAC,MAAM;IAC9B,IAAI,EAAE,IAAI;IACV,YAAY,EAAE,2CAAyE;IACvF,MAAM,EAAE,EAAE;IACV,OAAO,EAAE;QACP;YACE,EAAE,EAAE,MAAM;YACV,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,yBAAyB;YACtC,IAAI,EAAE,kBAAU,CAAC,MAAM;SACxB;KACF;CACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/toolbox/actions/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,4BAA4B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/toolbox/actions/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC"}
|
|
@@ -15,5 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./generate-shortcode.action"), exports);
|
|
18
|
+
__exportStar(require("./generate-uuid.action"), exports);
|
|
18
19
|
__exportStar(require("./resolve-shortcode.action"), exports);
|
|
19
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/toolbox/actions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8DAA4C;AAC5C,6DAA2C"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/toolbox/actions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8DAA4C;AAC5C,yDAAuC;AACvC,6DAA2C"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IWorkflowActionService, WorkflowActionContext } from '../../types';
|
|
2
|
+
export declare class GenerateUuidService implements IWorkflowActionService {
|
|
3
|
+
constructor();
|
|
4
|
+
perform(_inputs: Record<string, unknown>, _context: WorkflowActionContext): Promise<Record<string, unknown>>;
|
|
5
|
+
}
|
|
6
|
+
//# sourceMappingURL=generate-uuid.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generate-uuid.service.d.ts","sourceRoot":"","sources":["../../../../src/modules/toolbox/services/generate-uuid.service.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAE5E,qBACa,mBAAoB,YAAW,sBAAsB;;IAG1D,OAAO,CACX,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAChC,QAAQ,EAAE,qBAAqB,GAC9B,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAOpC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.GenerateUuidService = void 0;
|
|
13
|
+
const common_1 = require("@nestjs/common");
|
|
14
|
+
const uuid_1 = require("uuid");
|
|
15
|
+
let GenerateUuidService = class GenerateUuidService {
|
|
16
|
+
constructor() { }
|
|
17
|
+
async perform(_inputs, _context) {
|
|
18
|
+
const uuid = (0, uuid_1.v4)();
|
|
19
|
+
return {
|
|
20
|
+
uuid,
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
exports.GenerateUuidService = GenerateUuidService;
|
|
25
|
+
exports.GenerateUuidService = GenerateUuidService = __decorate([
|
|
26
|
+
(0, common_1.Injectable)(),
|
|
27
|
+
__metadata("design:paramtypes", [])
|
|
28
|
+
], GenerateUuidService);
|
|
29
|
+
//# sourceMappingURL=generate-uuid.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generate-uuid.service.js","sourceRoot":"","sources":["../../../../src/modules/toolbox/services/generate-uuid.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,+BAAoC;AAK7B,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;IAC9B,gBAAe,CAAC;IAEhB,KAAK,CAAC,OAAO,CACX,OAAgC,EAChC,QAA+B;QAE/B,MAAM,IAAI,GAAG,IAAA,SAAM,GAAE,CAAC;QAEtB,OAAO;YACL,IAAI;SACL,CAAC;IACJ,CAAC;CACF,CAAA;AAbY,kDAAmB;8BAAnB,mBAAmB;IAD/B,IAAA,mBAAU,GAAE;;GACA,mBAAmB,CAa/B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/toolbox/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAC;AAC7C,cAAc,6BAA6B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/toolbox/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC"}
|
|
@@ -15,5 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./generate-shortcode.service"), exports);
|
|
18
|
+
__exportStar(require("./generate-uuid.service"), exports);
|
|
18
19
|
__exportStar(require("./resolve-shortcode.service"), exports);
|
|
19
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/toolbox/services/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+DAA6C;AAC7C,8DAA4C"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/toolbox/services/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+DAA6C;AAC7C,0DAAwC;AACxC,8DAA4C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolbox-nest.module.d.ts","sourceRoot":"","sources":["../../../src/modules/toolbox/toolbox-nest.module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"toolbox-nest.module.d.ts","sourceRoot":"","sources":["../../../src/modules/toolbox/toolbox-nest.module.ts"],"names":[],"mappings":"AASA,qBAKa,iBAAiB;CAAG"}
|
|
@@ -16,8 +16,8 @@ exports.ToolboxNestModule = ToolboxNestModule;
|
|
|
16
16
|
exports.ToolboxNestModule = ToolboxNestModule = __decorate([
|
|
17
17
|
(0, common_1.Module)({
|
|
18
18
|
imports: [toolbox_1.ToolboxModule],
|
|
19
|
-
providers: [services_1.GenerateShortcodeService, services_1.ResolveShortcodeService],
|
|
20
|
-
exports: [services_1.GenerateShortcodeService, services_1.ResolveShortcodeService],
|
|
19
|
+
providers: [services_1.GenerateShortcodeService, services_1.GenerateUuidService, services_1.ResolveShortcodeService],
|
|
20
|
+
exports: [services_1.GenerateShortcodeService, services_1.GenerateUuidService, services_1.ResolveShortcodeService],
|
|
21
21
|
})
|
|
22
22
|
], ToolboxNestModule);
|
|
23
23
|
//# sourceMappingURL=toolbox-nest.module.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolbox-nest.module.js","sourceRoot":"","sources":["../../../src/modules/toolbox/toolbox-nest.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,mDAAsD;AAEtD,
|
|
1
|
+
{"version":3,"file":"toolbox-nest.module.js","sourceRoot":"","sources":["../../../src/modules/toolbox/toolbox-nest.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,mDAAsD;AAEtD,yCAIoB;AAOb,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;CAAG,CAAA;AAApB,8CAAiB;4BAAjB,iBAAiB;IAL7B,IAAA,eAAM,EAAC;QACN,OAAO,EAAE,CAAC,uBAAa,CAAC;QACxB,SAAS,EAAE,CAAC,mCAAwB,EAAE,8BAAmB,EAAE,kCAAuB,CAAC;QACnF,OAAO,EAAE,CAAC,mCAAwB,EAAE,8BAAmB,EAAE,kCAAuB,CAAC;KAClF,CAAC;GACW,iBAAiB,CAAG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolbox.module.d.ts","sourceRoot":"","sources":["../../../src/modules/toolbox/toolbox.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"toolbox.module.d.ts","sourceRoot":"","sources":["../../../src/modules/toolbox/toolbox.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AAOpD,eAAO,MAAM,aAAa,EAAE,wBAQ3B,CAAC"}
|
|
@@ -5,10 +5,10 @@ const actions_1 = require("./actions");
|
|
|
5
5
|
exports.toolboxModule = {
|
|
6
6
|
key: 'toolbox',
|
|
7
7
|
name: 'Toolbox',
|
|
8
|
-
description: 'Generate and resolve shortcodes
|
|
8
|
+
description: 'Generate and resolve shortcodes, UUIDs, and other utility functions',
|
|
9
9
|
icon: '🔧',
|
|
10
10
|
version: '1.0.0',
|
|
11
|
-
actions: [actions_1.generateShortcodeAction, actions_1.resolveShortcodeAction],
|
|
11
|
+
actions: [actions_1.generateShortcodeAction, actions_1.generateUuidAction, actions_1.resolveShortcodeAction],
|
|
12
12
|
triggers: [],
|
|
13
13
|
};
|
|
14
14
|
//# sourceMappingURL=toolbox.module.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolbox.module.js","sourceRoot":"","sources":["../../../src/modules/toolbox/toolbox.module.ts"],"names":[],"mappings":";;;AACA,
|
|
1
|
+
{"version":3,"file":"toolbox.module.js","sourceRoot":"","sources":["../../../src/modules/toolbox/toolbox.module.ts"],"names":[],"mappings":";;;AACA,uCAImB;AAEN,QAAA,aAAa,GAA6B;IACrD,GAAG,EAAE,SAAS;IACd,IAAI,EAAE,SAAS;IACf,WAAW,EAAE,qEAAqE;IAClF,IAAI,EAAE,IAAI;IACV,OAAO,EAAE,OAAO;IAChB,OAAO,EAAE,CAAC,iCAAuB,EAAE,4BAAkB,EAAE,gCAAsB,CAAC;IAC9E,QAAQ,EAAE,EAAE;CACb,CAAC"}
|