@venturialstd/workflow 0.1.165 → 0.1.168

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.
Files changed (54) hide show
  1. package/README.md +238 -238
  2. package/dist/dtos/create-workflow-canvas-element.dto.d.ts +13 -0
  3. package/dist/dtos/create-workflow-canvas-element.dto.d.ts.map +1 -0
  4. package/dist/dtos/create-workflow-canvas-element.dto.js +61 -0
  5. package/dist/dtos/create-workflow-canvas-element.dto.js.map +1 -0
  6. package/dist/dtos/index.d.ts +1 -0
  7. package/dist/dtos/index.d.ts.map +1 -1
  8. package/dist/dtos/index.js +1 -0
  9. package/dist/dtos/index.js.map +1 -1
  10. package/dist/entities/workflow-canvas-element.entity.d.ts +21 -0
  11. package/dist/entities/workflow-canvas-element.entity.d.ts.map +1 -0
  12. package/dist/entities/workflow-canvas-element.entity.js +100 -0
  13. package/dist/entities/workflow-canvas-element.entity.js.map +1 -0
  14. package/dist/index.d.ts +2 -0
  15. package/dist/index.d.ts.map +1 -1
  16. package/dist/index.js +2 -0
  17. package/dist/index.js.map +1 -1
  18. package/dist/modules/chatgpt/types/purpose-memory.types.js +15 -15
  19. package/dist/modules/conditional/actions/index.d.ts +1 -0
  20. package/dist/modules/conditional/actions/index.d.ts.map +1 -1
  21. package/dist/modules/conditional/actions/index.js +1 -0
  22. package/dist/modules/conditional/actions/index.js.map +1 -1
  23. package/dist/modules/conditional/actions/merge.action.d.ts +3 -0
  24. package/dist/modules/conditional/actions/merge.action.d.ts.map +1 -0
  25. package/dist/modules/conditional/actions/merge.action.js +75 -0
  26. package/dist/modules/conditional/actions/merge.action.js.map +1 -0
  27. package/dist/modules/conditional/conditional-nest.module.d.ts.map +1 -1
  28. package/dist/modules/conditional/conditional-nest.module.js +8 -1
  29. package/dist/modules/conditional/conditional-nest.module.js.map +1 -1
  30. package/dist/modules/conditional/conditional.module.js +1 -1
  31. package/dist/modules/conditional/conditional.module.js.map +1 -1
  32. package/dist/modules/conditional/services/index.d.ts +1 -0
  33. package/dist/modules/conditional/services/index.d.ts.map +1 -1
  34. package/dist/modules/conditional/services/index.js +1 -0
  35. package/dist/modules/conditional/services/index.js.map +1 -1
  36. package/dist/modules/conditional/services/merge.service.d.ts +15 -0
  37. package/dist/modules/conditional/services/merge.service.d.ts.map +1 -0
  38. package/dist/modules/conditional/services/merge.service.js +110 -0
  39. package/dist/modules/conditional/services/merge.service.js.map +1 -0
  40. package/dist/services/workflow-canvas-element.service.d.ts +15 -0
  41. package/dist/services/workflow-canvas-element.service.d.ts.map +1 -0
  42. package/dist/services/workflow-canvas-element.service.js +67 -0
  43. package/dist/services/workflow-canvas-element.service.js.map +1 -0
  44. package/dist/services/workflow-execution.service.d.ts.map +1 -1
  45. package/dist/services/workflow-execution.service.js +12 -0
  46. package/dist/services/workflow-execution.service.js.map +1 -1
  47. package/dist/services/workflow-sse.service.d.ts +4 -1
  48. package/dist/services/workflow-sse.service.d.ts.map +1 -1
  49. package/dist/services/workflow-sse.service.js +8 -0
  50. package/dist/services/workflow-sse.service.js.map +1 -1
  51. package/dist/workflow-core.module.d.ts.map +1 -1
  52. package/dist/workflow-core.module.js +5 -0
  53. package/dist/workflow-core.module.js.map +1 -1
  54. package/package.json +1 -1
@@ -0,0 +1,100 @@
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.WorkflowCanvasElement = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const typeorm_1 = require("typeorm");
15
+ const workflow_entity_1 = require("./workflow.entity");
16
+ let WorkflowCanvasElement = class WorkflowCanvasElement {
17
+ id;
18
+ workflowId;
19
+ workflow;
20
+ elementId;
21
+ type;
22
+ position;
23
+ size;
24
+ style;
25
+ data;
26
+ createdAt;
27
+ updatedAt;
28
+ };
29
+ exports.WorkflowCanvasElement = WorkflowCanvasElement;
30
+ __decorate([
31
+ (0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
32
+ __metadata("design:type", String)
33
+ ], WorkflowCanvasElement.prototype, "id", void 0);
34
+ __decorate([
35
+ (0, class_validator_1.IsString)(),
36
+ (0, class_validator_1.IsNotEmpty)(),
37
+ (0, typeorm_1.Column)(),
38
+ __metadata("design:type", String)
39
+ ], WorkflowCanvasElement.prototype, "workflowId", void 0);
40
+ __decorate([
41
+ (0, typeorm_1.ManyToOne)(() => workflow_entity_1.Workflow, { onDelete: 'CASCADE' }),
42
+ __metadata("design:type", workflow_entity_1.Workflow)
43
+ ], WorkflowCanvasElement.prototype, "workflow", void 0);
44
+ __decorate([
45
+ (0, class_validator_1.IsString)(),
46
+ (0, class_validator_1.IsNotEmpty)(),
47
+ (0, typeorm_1.Column)(),
48
+ __metadata("design:type", String)
49
+ ], WorkflowCanvasElement.prototype, "elementId", void 0);
50
+ __decorate([
51
+ (0, class_validator_1.IsString)(),
52
+ (0, class_validator_1.IsNotEmpty)(),
53
+ (0, typeorm_1.Column)({ type: 'varchar', length: 64 }),
54
+ __metadata("design:type", String)
55
+ ], WorkflowCanvasElement.prototype, "type", void 0);
56
+ __decorate([
57
+ (0, class_validator_1.IsObject)(),
58
+ (0, typeorm_1.Column)({ type: 'jsonb' }),
59
+ __metadata("design:type", Object)
60
+ ], WorkflowCanvasElement.prototype, "position", void 0);
61
+ __decorate([
62
+ (0, class_validator_1.IsObject)(),
63
+ (0, class_validator_1.IsOptional)(),
64
+ (0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
65
+ __metadata("design:type", Object)
66
+ ], WorkflowCanvasElement.prototype, "size", void 0);
67
+ __decorate([
68
+ (0, class_validator_1.IsObject)(),
69
+ (0, class_validator_1.IsOptional)(),
70
+ (0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
71
+ __metadata("design:type", Object)
72
+ ], WorkflowCanvasElement.prototype, "style", void 0);
73
+ __decorate([
74
+ (0, class_validator_1.IsObject)(),
75
+ (0, class_validator_1.IsOptional)(),
76
+ (0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
77
+ __metadata("design:type", Object)
78
+ ], WorkflowCanvasElement.prototype, "data", void 0);
79
+ __decorate([
80
+ (0, typeorm_1.CreateDateColumn)({
81
+ name: 'createdAt',
82
+ nullable: false,
83
+ type: 'timestamptz',
84
+ default: () => 'CURRENT_TIMESTAMP',
85
+ }),
86
+ __metadata("design:type", Date)
87
+ ], WorkflowCanvasElement.prototype, "createdAt", void 0);
88
+ __decorate([
89
+ (0, typeorm_1.UpdateDateColumn)({
90
+ name: 'updatedAt',
91
+ nullable: false,
92
+ type: 'timestamptz',
93
+ default: () => 'CURRENT_TIMESTAMP',
94
+ }),
95
+ __metadata("design:type", Date)
96
+ ], WorkflowCanvasElement.prototype, "updatedAt", void 0);
97
+ exports.WorkflowCanvasElement = WorkflowCanvasElement = __decorate([
98
+ (0, typeorm_1.Entity)('workflow_canvas_element')
99
+ ], WorkflowCanvasElement);
100
+ //# sourceMappingURL=workflow-canvas-element.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflow-canvas-element.entity.js","sourceRoot":"","sources":["../../src/entities/workflow-canvas-element.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA6E;AAC7E,qCAOiB;AAEjB,uDAA6C;AAYtC,IAAM,qBAAqB,GAA3B,MAAM,qBAAqB;IAEhC,EAAE,CAAS;IAKX,UAAU,C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AAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACJ;AAQtC;IANC,IAAA,0BAAgB,EAAC;QAChB,IAAI,EAAE,WAAW;QACjB,QAAQ,EAAE,KAAK;QACf,IAAI,EAAE,aAAa;QACnB,OAAO,EAAE,GAAG,EAAE,CAAC,mBAAmB;KACnC,CAAC;8BACS,IAAI;wDAAC;AAQhB;IANC,IAAA,0BAAgB,EAAC;QAChB,IAAI,EAAE,WAAW;QACjB,QAAQ,EAAE,KAAK;QACf,IAAI,EAAE,aAAa;QACnB,OAAO,EAAE,GAAG,EAAE,CAAC,mBAAmB;KACnC,CAAC;8BACS,IAAI;wDAAC;gCA1DL,qBAAqB;IADjC,IAAA,gBAAM,EAAC,yBAAyB,CAAC;GACrB,qBAAqB,CA2DjC"}
package/dist/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  export * from './constants/workflow.constant';
2
2
  export * from './dtos';
3
3
  export * from './entities/workflow.entity';
4
+ export * from './entities/workflow-canvas-element.entity';
4
5
  export * from './entities/workflow-edge.entity';
5
6
  export * from './entities/workflow-execution.entity';
6
7
  export * from './entities/workflow-job.entity';
@@ -16,6 +17,7 @@ export * from './controllers/workflow-node.controller';
16
17
  export * from './controllers/workflow-node-execution.controller';
17
18
  export * from './services/workflow-bulk-credential.service';
18
19
  export * from './services/workflow.service';
20
+ export * from './services/workflow-canvas-element.service';
19
21
  export * from './services/workflow-edge.service';
20
22
  export * from './services/workflow-execution.service';
21
23
  export * from './services/workflow-module.service';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,+BAA+B,CAAC;AAG9C,cAAc,QAAQ,CAAC;AAGvB,cAAc,4BAA4B,CAAC;AAC3C,cAAc,iCAAiC,CAAC;AAChD,cAAc,sCAAsC,CAAC;AACrD,cAAc,gCAAgC,CAAC;AAC/C,OAAO,EAAE,cAAc,IAAI,oBAAoB,EAAE,MAAM,mCAAmC,CAA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CAAC;AAChD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,oCAAoC,CAAC;AACnD,cAAc,iCAAiC,CAAC;AAChD,cAAc,oCAAoC,CAAC;AAGnD,cAAc,qDAAqD,CAAC;AACpE,cAAc,wCAAwC,CAAC;AACvD,cAAc,kDAAkD,CAAC;AAGjE,cAAc,6CAA6C,CAAC;AAC5D,cAAc,6BAA6B,CAAC;AAC5C,cAAc,4CAA4C,CAAC;AAC3D,cAAc,kCAAkC,CAAC;AACjD,cAAc,uCAAuC,CAAC;AACtD,cAAc,oCAAoC,CAAC;AACnD,cAAc,+CAA+C,CAAC;AAC9D,cAAc,kCAAkC,CAAC;AACjD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,qCAAqC,CAAC;AACpD,cAAc,yCAAyC,CAAC;AACxD,cAAc,kCAAkC,CAAC;AACjD,cAAc,qCAAqC,CAAC;AAGpD,cAAc,YAAY,CAAC;AAG3B,cAAc,WAAW,CAAC;AAG1B,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yCAAyC,CAAC;AACxD,cAAc,iCAAiC,CAAC;AAChD,cAAc,uCAAuC,CAAC;AACtD,cAAc,+CAA+C,CAAC;AAC9D,cAAc,qCAAqC,CAAC;AACpD,cAAc,uCAAuC,CAAC;AACtD,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC"}
package/dist/index.js CHANGED
@@ -18,6 +18,7 @@ exports.WorkflowModuleEntity = void 0;
18
18
  __exportStar(require("./constants/workflow.constant"), exports);
19
19
  __exportStar(require("./dtos"), exports);
20
20
  __exportStar(require("./entities/workflow.entity"), exports);
21
+ __exportStar(require("./entities/workflow-canvas-element.entity"), exports);
21
22
  __exportStar(require("./entities/workflow-edge.entity"), exports);
22
23
  __exportStar(require("./entities/workflow-execution.entity"), exports);
23
24
  __exportStar(require("./entities/workflow-job.entity"), exports);
@@ -34,6 +35,7 @@ __exportStar(require("./controllers/workflow-node.controller"), exports);
34
35
  __exportStar(require("./controllers/workflow-node-execution.controller"), exports);
35
36
  __exportStar(require("./services/workflow-bulk-credential.service"), exports);
36
37
  __exportStar(require("./services/workflow.service"), exports);
38
+ __exportStar(require("./services/workflow-canvas-element.service"), exports);
37
39
  __exportStar(require("./services/workflow-edge.service"), exports);
38
40
  __exportStar(require("./services/workflow-execution.service"), exports);
39
41
  __exportStar(require("./services/workflow-module.service"), exports);
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACA,gEAA8C;AAG9C,yCAAuB;AAGvB,6DAA2C;AAC3C,kEAAgD;AAChD,uEAAqD;AACrD,iEAA+C;AAC/C,4EAA2F;AAAlF,8HAAA,cAAc,OAAwB;AAC/C,+EAA6D;AAC7D,kEAAgD;AAChD,4EAA0D;AAC1D,qEAAmD;AACnD,kEAAgD;AAChD,qEAAmD;AAGnD,sFAAoE;AACpE,yEAAuD;AACvD,mFAAiE;AAGjE,8EAA4D;AAC5D,8DAA4C;AAC5C,mEAAiD;AACjD,wEAAsD;AACtD,qEAAmD;AACnD,gFAA8D;AAC9D,mEAAiD;AACjD,6EAA2D;AAC3D,sEAAoD;AACpD,0EAAwD;AACxD,mEAAiD;AACjD,sEAAoD;AAGpD,6CAA2B;AAG3B,4CAA0B;AAG1B,8DAA4C;AAC5C,0EAAwD;AACxD,kEAAgD;AAChD,wEAAsD;AACtD,gFAA8D;AAC9D,sEAAoD;AACpD,wEAAsD;AACtD,oDAAkC;AAClC,yDAAuC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACA,gEAA8C;AAG9C,yCAAuB;AAGvB,6DAA2C;AAC3C,4EAA0D;AAC1D,kEAAgD;AAChD,uEAAqD;AACrD,iEAA+C;AAC/C,4EAA2F;AAAlF,8HAAA,cAAc,OAAwB;AAC/C,+EAA6D;AAC7D,kEAAgD;AAChD,4EAA0D;AAC1D,qEAAmD;AACnD,kEAAgD;AAChD,qEAAmD;AAGnD,sFAAoE;AACpE,yEAAuD;AACvD,mFAAiE;AAGjE,8EAA4D;AAC5D,8DAA4C;AAC5C,6EAA2D;AAC3D,mEAAiD;AACjD,wEAAsD;AACtD,qEAAmD;AACnD,gFAA8D;AAC9D,mEAAiD;AACjD,6EAA2D;AAC3D,sEAAoD;AACpD,0EAAwD;AACxD,mEAAiD;AACjD,sEAAoD;AAGpD,6CAA2B;AAG3B,4CAA0B;AAG1B,8DAA4C;AAC5C,0EAAwD;AACxD,kEAAgD;AAChD,wEAAsD;AACtD,gFAA8D;AAC9D,sEAAoD;AACpD,wEAAsD;AACtD,oDAAkC;AAClC,yDAAuC"}
@@ -9,20 +9,20 @@ exports.PURPOSE_STATUS = {
9
9
  exports.DEFAULT_MAX_MEMORY_MESSAGES = 30;
10
10
  exports.DEFAULT_MAX_CONTEXT_TOKENS = 6000;
11
11
  exports.DEFAULT_SUMMARIZATION_TRIGGER_MESSAGE_COUNT = 14;
12
- exports.PURPOSE_RESPONSE_SCHEMA_INSTRUCTION = `
13
- You must respond with a valid JSON object only, no other text. Use this exact structure (strict contract):
14
- {
15
- "messages": [{"role": "assistant", "content": "your reply to the user here"}],
16
- "result": {
17
- "status": "IN_PROGRESS" | "COMPLETED" | "FAILED",
18
- "output": {}
19
- }
20
- }
21
- - "messages": MUST be a non-empty array. Include at least one assistant message with "role": "assistant" and "content": your reply (non-empty string).
22
- - "result.output": MUST always be an object. Use {} for IN_PROGRESS or FAILED; use the full collected data object for COMPLETED.
23
- - status IN_PROGRESS: continue the conversation; output can be {} or partial collected data.
24
- - status COMPLETED: you have all required data; set "output" to the complete collected data object matching the expected schema.
25
- - status FAILED: abort; "output" can be {} or {"reason": "..."}.
26
- - When status is COMPLETED, "output" must match the expected output schema provided in the system prompt.
12
+ exports.PURPOSE_RESPONSE_SCHEMA_INSTRUCTION = `
13
+ You must respond with a valid JSON object only, no other text. Use this exact structure (strict contract):
14
+ {
15
+ "messages": [{"role": "assistant", "content": "your reply to the user here"}],
16
+ "result": {
17
+ "status": "IN_PROGRESS" | "COMPLETED" | "FAILED",
18
+ "output": {}
19
+ }
20
+ }
21
+ - "messages": MUST be a non-empty array. Include at least one assistant message with "role": "assistant" and "content": your reply (non-empty string).
22
+ - "result.output": MUST always be an object. Use {} for IN_PROGRESS or FAILED; use the full collected data object for COMPLETED.
23
+ - status IN_PROGRESS: continue the conversation; output can be {} or partial collected data.
24
+ - status COMPLETED: you have all required data; set "output" to the complete collected data object matching the expected schema.
25
+ - status FAILED: abort; "output" can be {} or {"reason": "..."}.
26
+ - When status is COMPLETED, "output" must match the expected output schema provided in the system prompt.
27
27
  `.trim();
28
28
  //# sourceMappingURL=purpose-memory.types.js.map
@@ -1,3 +1,4 @@
1
1
  export * from './evaluate-condition.action';
2
2
  export * from './map-value.action';
3
+ export * from './merge.action';
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/conditional/actions/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/conditional/actions/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC"}
@@ -16,4 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./evaluate-condition.action"), exports);
18
18
  __exportStar(require("./map-value.action"), exports);
19
+ __exportStar(require("./merge.action"), exports);
19
20
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/conditional/actions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8DAA4C;AAC5C,qDAAmC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/conditional/actions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8DAA4C;AAC5C,qDAAmC;AACnC,iDAA+B"}
@@ -0,0 +1,3 @@
1
+ import { WorkflowActionTrigger } from '../../types';
2
+ export declare const mergeAction: WorkflowActionTrigger;
3
+ //# sourceMappingURL=merge.action.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"merge.action.d.ts","sourceRoot":"","sources":["../../../../src/modules/conditional/actions/merge.action.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6B,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAa/E,eAAO,MAAM,WAAW,EAAE,qBA8DzB,CAAC"}
@@ -0,0 +1,75 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.mergeAction = void 0;
4
+ const types_1 = require("../../types");
5
+ const merge_service_1 = require("../services/merge.service");
6
+ const NUM_MERGE_INPUTS = 5;
7
+ const inputPorts = Array.from({ length: NUM_MERGE_INPUTS }, (_, i) => ({
8
+ id: `INPUT${i + 1}`,
9
+ name: `Input ${i + 1}`,
10
+ description: `Data from connection ${i + 1}. Used in fallback order for each output property.`,
11
+ type: types_1.FIELD_TYPE.OBJECT,
12
+ validation: { required: false },
13
+ }));
14
+ exports.mergeAction = {
15
+ key: 'merge',
16
+ name: 'Merge',
17
+ description: 'Merge data from multiple inputs into a single output. For each output property, uses a fallback order (e.g. INPUT1 then INPUT2) when a value is missing.',
18
+ category: types_1.NODE_CATEGORY.ACTION,
19
+ icon: '🔀',
20
+ serviceClass: merge_service_1.MergeService,
21
+ inputs: [
22
+ ...inputPorts,
23
+ {
24
+ id: 'mergeConfig',
25
+ name: 'Merge configuration',
26
+ description: 'Property mappings and fallback order per output property. When all inputs lack a value, behavior is controlled by "When all missing".',
27
+ type: types_1.FIELD_TYPE.OBJECT,
28
+ validation: { required: false },
29
+ defaultValue: {
30
+ propertyMappings: [],
31
+ whenAllMissing: 'null',
32
+ },
33
+ metadata: {
34
+ schema: {
35
+ propertyMappings: {
36
+ type: 'array',
37
+ label: 'Property mappings',
38
+ itemSchema: {
39
+ outputProperty: { type: 'string', label: 'Output property' },
40
+ fallbackOrder: {
41
+ type: 'array',
42
+ label: 'Fallback order',
43
+ itemSchema: { type: 'string' },
44
+ description: 'e.g. ["INPUT1", "INPUT2", "INPUT3"]',
45
+ },
46
+ defaultValue: {
47
+ type: 'string',
48
+ label: 'Default (when all missing)',
49
+ optional: true,
50
+ },
51
+ },
52
+ },
53
+ whenAllMissing: {
54
+ type: 'select',
55
+ label: 'When all inputs lack value',
56
+ options: [
57
+ { label: 'Set to null', value: 'null' },
58
+ { label: 'Omit property', value: 'omit' },
59
+ { label: 'Use default', value: 'default' },
60
+ ],
61
+ },
62
+ },
63
+ },
64
+ },
65
+ ],
66
+ outputs: [
67
+ {
68
+ id: 'merged',
69
+ name: 'Merged',
70
+ description: 'Single object with merged data according to fallback rules',
71
+ type: types_1.FIELD_TYPE.OBJECT,
72
+ },
73
+ ],
74
+ };
75
+ //# sourceMappingURL=merge.action.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"merge.action.js","sourceRoot":"","sources":["../../../../src/modules/conditional/actions/merge.action.ts"],"names":[],"mappings":";;;AAAA,uCAA+E;AAC/E,6DAAyD;AAEzD,MAAM,gBAAgB,GAAG,CAAC,CAAC;AAE3B,MAAM,UAAU,GAAG,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,gBAAgB,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACrE,EAAE,EAAE,QAAQ,CAAC,GAAG,CAAC,EAAE;IACnB,IAAI,EAAE,SAAS,CAAC,GAAG,CAAC,EAAE;IACtB,WAAW,EAAE,wBAAwB,CAAC,GAAG,CAAC,oDAAoD;IAC9F,IAAI,EAAE,kBAAU,CAAC,MAAe;IAChC,UAAU,EAA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EAAE,aAAa,EAAE,KAAK,EAAE,SAAS,EAAE;yBAC3C;qBACF;iBACF;aACF;SACF;KACF;IACD,OAAO,EAAE;QACP;YACE,EAAE,EAAE,QAAQ;YACZ,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,4DAA4D;YACzE,IAAI,EAAE,kBAAU,CAAC,MAAM;SACxB;KACF;CACF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"conditional-nest.module.d.ts","sourceRoot":"","sources":["../../../src/modules/conditional/conditional-nest.module.ts"],"names":[],"mappings":"AASA,qBASa,qBAAqB;CAAG"}
1
+ {"version":3,"file":"conditional-nest.module.d.ts","sourceRoot":"","sources":["../../../src/modules/conditional/conditional-nest.module.ts"],"names":[],"mappings":"AAUA,qBAgBa,qBAAqB;CAAG"}
@@ -19,8 +19,15 @@ exports.ConditionalNestModule = ConditionalNestModule = __decorate([
19
19
  services_1.ConditionMetService,
20
20
  services_1.ConditionNotMetService,
21
21
  services_1.MapValueService,
22
+ services_1.MergeService,
23
+ ],
24
+ exports: [
25
+ services_1.EvaluateConditionService,
26
+ services_1.ConditionMetService,
27
+ services_1.ConditionNotMetService,
28
+ services_1.MapValueService,
29
+ services_1.MergeService,
22
30
  ],
23
- exports: [services_1.EvaluateConditionService, services_1.ConditionMetService, services_1.ConditionNotMetService, services_1.MapValueService],
24
31
  })
25
32
  ], ConditionalNestModule);
26
33
  //# sourceMappingURL=conditional-nest.module.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"conditional-nest.module.js","sourceRoot":"","sources":["../../../src/modules/conditional/conditional-nest.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AAExC,yCAKoB;AAWb,IAAM,qBAAqB,GAA3B,MAAM,qBAAqB;CAAG,CAAA;AAAxB,sDAAqB;gCAArB,qBAAqB;IATjC,IAAA,eAAM,EAAC;QACN,SAAS,EAAE;YACT,mCAAwB;YACxB,8BAAmB;YACnB,iCAAsB;YACtB,0BAAe;SAChB;QACD,OAAO,EAAE,CAAC,mCAAwB,EAAE,8BAAmB,EAAE,iCAAsB,EAAE,0BAAe,CAAC;KAClG,CAAC;GACW,qBAAqB,CAAG"}
1
+ {"version":3,"file":"conditional-nest.module.js","sourceRoot":"","sources":["../../../src/modules/conditional/conditional-nest.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AAExC,yCAMoB;AAkBb,IAAM,qBAAqB,GAA3B,MAAM,qBAAqB;CAAG,CAAA;AAAxB,sDAAqB;gCAArB,qBAAqB;IAhBjC,IAAA,eAAM,EAAC;QACN,SAAS,EAAE;YACT,mCAAwB;YACxB,8BAAmB;YACnB,iCAAsB;YACtB,0BAAe;YACf,uBAAY;SACb;QACD,OAAO,EAAE;YACP,mCAAwB;YACxB,8BAAmB;YACnB,iCAAsB;YACtB,0BAAe;YACf,uBAAY;SACb;KACF,CAAC;GACW,qBAAqB,CAAG"}
@@ -11,7 +11,7 @@ exports.conditionalModule = {
11
11
  icon: '🔀',
12
12
  version: '1.0.0',
13
13
  credentialFields: credentials_1.conditionalCredentials,
14
- actions: [actions_1.evaluateConditionAction, actions_1.mapValueAction],
14
+ actions: [actions_1.evaluateConditionAction, actions_1.mapValueAction, actions_1.mergeAction],
15
15
  triggers: [triggers_1.conditionMetTrigger, triggers_1.conditionNotMetTrigger],
16
16
  };
17
17
  //# sourceMappingURL=conditional.module.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"conditional.module.js","sourceRoot":"","sources":["../../../src/modules/conditional/conditional.module.ts"],"names":[],"mappings":";;;AACA,uCAAoE;AACpE,+CAAuD;AACvD,yCAAyE;AAE5D,QAAA,iBAAiB,GAA6B;IACzD,GAAG,EAAE,aAAa;IAClB,IAAI,EAAE,aAAa;IACnB,WAAW,EAAE,qCAAqC;IAClD,IAAI,EAAE,IAAI;IACV,OAAO,EAAE,OAAO;IAChB,gBAAgB,EAAE,oCAAsB;IACxC,OAAO,EAAE,CAAC,iCAAuB,EAAE,wBAAc,CAAC;IAClD,QAAQ,EAAE,CAAC,8BAAmB,EAAE,iCAAsB,CAAC;CACxD,CAAC"}
1
+ {"version":3,"file":"conditional.module.js","sourceRoot":"","sources":["../../../src/modules/conditional/conditional.module.ts"],"names":[],"mappings":";;;AACA,uCAAiF;AACjF,+CAAuD;AACvD,yCAAyE;AAE5D,QAAA,iBAAiB,GAA6B;IACzD,GAAG,EAAE,aAAa;IAClB,IAAI,EAAE,aAAa;IACnB,WAAW,EAAE,qCAAqC;IAClD,IAAI,EAAE,IAAI;IACV,OAAO,EAAE,OAAO;IAChB,gBAAgB,EAAE,oCAAsB;IACxC,OAAO,EAAE,CAAC,iCAAuB,EAAE,wBAAc,EAAE,qBAAW,CAAC;IAC/D,QAAQ,EAAE,CAAC,8BAAmB,EAAE,iCAAsB,CAAC;CACxD,CAAC"}
@@ -2,4 +2,5 @@ export * from './condition-met.service';
2
2
  export * from './condition-not-met.service';
3
3
  export * from './evaluate-condition.service';
4
4
  export * from './map-value.service';
5
+ export * from './merge.service';
5
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/conditional/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qBAAqB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/conditional/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC"}
@@ -18,4 +18,5 @@ __exportStar(require("./condition-met.service"), exports);
18
18
  __exportStar(require("./condition-not-met.service"), exports);
19
19
  __exportStar(require("./evaluate-condition.service"), exports);
20
20
  __exportStar(require("./map-value.service"), exports);
21
+ __exportStar(require("./merge.service"), exports);
21
22
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/conditional/services/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,8DAA4C;AAC5C,+DAA6C;AAC7C,sDAAoC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/conditional/services/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,8DAA4C;AAC5C,+DAA6C;AAC7C,sDAAoC;AACpC,kDAAgC"}
@@ -0,0 +1,15 @@
1
+ import { IWorkflowActionService, WorkflowActionContext } from '../../types';
2
+ export type WhenAllMissingBehavior = 'null' | 'omit' | 'default';
3
+ export interface MergePropertyMapping {
4
+ outputProperty: string;
5
+ fallbackOrder: string[];
6
+ defaultValue?: unknown;
7
+ }
8
+ export interface MergeNodeConfig {
9
+ propertyMappings: MergePropertyMapping[];
10
+ whenAllMissing?: WhenAllMissingBehavior;
11
+ }
12
+ export declare class MergeService implements IWorkflowActionService {
13
+ perform(inputs: Record<string, unknown>, _context: WorkflowActionContext): Record<string, unknown>;
14
+ }
15
+ //# sourceMappingURL=merge.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"merge.service.d.ts","sourceRoot":"","sources":["../../../../src/modules/conditional/services/merge.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAQ5E,MAAM,MAAM,sBAAsB,GAAG,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;AAKjE,MAAM,WAAW,oBAAoB;IAEnC,cAAc,EAAE,MAAM,CAAC;IAEvB,aAAa,EAAE,MAAM,EAAE,CAAC;IAExB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAKD,MAAM,WAAW,eAAe;IAE9B,gBAAgB,EAAE,oBAAoB,EAAE,CAAC;IAEzC,cAAc,CAAC,EAAE,sBAAsB,CAAC;CACzC;AAiCD,qBACa,YAAa,YAAW,sBAAsB;IACzD,OAAO,CACL,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC/B,QAAQ,EAAE,qBAAqB,GAC9B,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CA4E3B"}
@@ -0,0 +1,110 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.MergeService = void 0;
10
+ const common_1 = require("@nestjs/common");
11
+ const MAX_INPUT_PORTS = 10;
12
+ const INPUT_PREFIX = 'INPUT';
13
+ function isEmptyValue(value) {
14
+ if (value === null || value === undefined)
15
+ return true;
16
+ if (typeof value === 'string' && value.trim() === '')
17
+ return true;
18
+ return false;
19
+ }
20
+ function getByPath(obj, path) {
21
+ const parts = path.split('.');
22
+ let current = obj;
23
+ for (const part of parts) {
24
+ if (current != null && typeof current === 'object' && part in current) {
25
+ current = current[part];
26
+ }
27
+ else {
28
+ return undefined;
29
+ }
30
+ }
31
+ return current;
32
+ }
33
+ let MergeService = class MergeService {
34
+ perform(inputs, _context) {
35
+ const config = inputs.mergeConfig || {
36
+ propertyMappings: [],
37
+ whenAllMissing: 'null',
38
+ };
39
+ const whenAllMissing = config.whenAllMissing === 'omit' || config.whenAllMissing === 'default'
40
+ ? config.whenAllMissing
41
+ : 'null';
42
+ const inputPayloads = {};
43
+ for (let i = 1; i <= MAX_INPUT_PORTS; i++) {
44
+ const key = `${INPUT_PREFIX}${i}`;
45
+ const val = inputs[key];
46
+ if (val != null && typeof val === 'object' && !Array.isArray(val)) {
47
+ inputPayloads[key] = val;
48
+ }
49
+ }
50
+ const merged = {};
51
+ const mappings = config.propertyMappings || [];
52
+ if (mappings.length === 0) {
53
+ const allKeys = new Set();
54
+ for (const payload of Object.values(inputPayloads)) {
55
+ Object.keys(payload).forEach((k) => allKeys.add(k));
56
+ }
57
+ const defaultOrder = Object.keys(inputPayloads).sort();
58
+ for (const key of allKeys) {
59
+ let value = undefined;
60
+ for (const inputId of defaultOrder) {
61
+ const v = inputPayloads[inputId][key];
62
+ if (!isEmptyValue(v)) {
63
+ value = v;
64
+ break;
65
+ }
66
+ }
67
+ if (value !== undefined) {
68
+ merged[key] = value;
69
+ }
70
+ else if (whenAllMissing === 'null') {
71
+ merged[key] = null;
72
+ }
73
+ }
74
+ return { merged };
75
+ }
76
+ for (const mapping of mappings) {
77
+ const { outputProperty, fallbackOrder, defaultValue } = mapping;
78
+ let value = undefined;
79
+ for (const inputId of fallbackOrder || []) {
80
+ const payload = inputPayloads[inputId];
81
+ if (!payload)
82
+ continue;
83
+ const v = outputProperty.includes('.')
84
+ ? getByPath(payload, outputProperty)
85
+ : payload[outputProperty];
86
+ if (!isEmptyValue(v)) {
87
+ value = v;
88
+ break;
89
+ }
90
+ }
91
+ if (value !== undefined) {
92
+ merged[outputProperty] = value;
93
+ }
94
+ else {
95
+ if (whenAllMissing === 'null') {
96
+ merged[outputProperty] = null;
97
+ }
98
+ else if (whenAllMissing === 'default' && defaultValue !== undefined) {
99
+ merged[outputProperty] = defaultValue;
100
+ }
101
+ }
102
+ }
103
+ return { merged };
104
+ }
105
+ };
106
+ exports.MergeService = MergeService;
107
+ exports.MergeService = MergeService = __decorate([
108
+ (0, common_1.Injectable)()
109
+ ], MergeService);
110
+ //# sourceMappingURL=merge.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"merge.service.js","sourceRoot":"","sources":["../../../../src/modules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H,CAAC;QACH,CAAC;QAED,OAAO,EAAE,MAAM,EAAE,CAAC;IACpB,CAAC;CACF,CAAA;AAhFY,oCAAY;uBAAZ,YAAY;IADxB,IAAA,mBAAU,GAAE;GACA,YAAY,CAgFxB"}
@@ -0,0 +1,15 @@
1
+ import { CrudRequest } from '@dataui/crud';
2
+ import { TypeOrmCrudService } from '@dataui/crud-typeorm';
3
+ import { Repository } from 'typeorm';
4
+ import { WorkflowCanvasElement } from '../entities/workflow-canvas-element.entity';
5
+ import { WorkflowSSEService } from './workflow-sse.service';
6
+ export declare class WorkflowCanvasElementService extends TypeOrmCrudService<WorkflowCanvasElement> {
7
+ readonly repo: Repository<WorkflowCanvasElement>;
8
+ private readonly sseService;
9
+ constructor(repo: Repository<WorkflowCanvasElement>, sseService: WorkflowSSEService);
10
+ createOne(req: CrudRequest, dto: Partial<WorkflowCanvasElement>): Promise<WorkflowCanvasElement>;
11
+ updateOne(req: CrudRequest, dto: Partial<WorkflowCanvasElement>): Promise<WorkflowCanvasElement>;
12
+ deleteOne(req: CrudRequest): Promise<void | WorkflowCanvasElement>;
13
+ getElementsByWorkflowId(workflowId: string): Promise<WorkflowCanvasElement[]>;
14
+ }
15
+ //# sourceMappingURL=workflow-canvas-element.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflow-canvas-element.service.d.ts","sourceRoot":"","sources":["../../src/services/workflow-canvas-element.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAG1D,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAErC,OAAO,EAAE,qBAAqB,EAAE,MAAM,4CAA4C,CAAC;AACnF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAE5D,qBACa,4BAA6B,SAAQ,kBAAkB,CAAC,qBAAqB,CAAC;aAGvE,IAAI,EAAE,UAAU,CAAC,qBAAqB,CAAC;IACvD,OAAO,CAAC,QAAQ,CAAC,UAAU;gBADX,IAAI,EAAE,UAAU,CAAC,qBAAqB,CAAC,EACtC,UAAU,EAAE,kBAAkB;IAK3C,SAAS,CAAC,GAAG,EAAE,WAAW,EAAE,GAAG,EAAE,OAAO,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,qBAAqB,CAAC;IAQhG,SAAS,CAAC,GAAG,EAAE,WAAW,EAAE,GAAG,EAAE,OAAO,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,qBAAqB,CAAC;IAQhG,SAAS,CAAC,GAAG,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,GAAG,qBAAqB,CAAC;IAUlE,uBAAuB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,qBAAqB,EAAE,CAAC;CAMpF"}
@@ -0,0 +1,67 @@
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
+ var __param = (this && this.__param) || function (paramIndex, decorator) {
12
+ return function (target, key) { decorator(target, key, paramIndex); }
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.WorkflowCanvasElementService = void 0;
16
+ const crud_typeorm_1 = require("@dataui/crud-typeorm");
17
+ const common_1 = require("@nestjs/common");
18
+ const typeorm_1 = require("@nestjs/typeorm");
19
+ const typeorm_2 = require("typeorm");
20
+ const workflow_canvas_element_entity_1 = require("../entities/workflow-canvas-element.entity");
21
+ const workflow_sse_service_1 = require("./workflow-sse.service");
22
+ let WorkflowCanvasElementService = class WorkflowCanvasElementService extends crud_typeorm_1.TypeOrmCrudService {
23
+ repo;
24
+ sseService;
25
+ constructor(repo, sseService) {
26
+ super(repo);
27
+ this.repo = repo;
28
+ this.sseService = sseService;
29
+ }
30
+ async createOne(req, dto) {
31
+ const result = await super.createOne(req, dto);
32
+ if (result?.workflowId) {
33
+ this.sseService.emitEditorCanvasElementsUpdated(result.workflowId);
34
+ }
35
+ return result;
36
+ }
37
+ async updateOne(req, dto) {
38
+ const result = await super.updateOne(req, dto);
39
+ if (result?.workflowId) {
40
+ this.sseService.emitEditorCanvasElementsUpdated(result.workflowId);
41
+ }
42
+ return result;
43
+ }
44
+ async deleteOne(req) {
45
+ const found = await this.getOneOrFail(req, false);
46
+ const workflowId = found.workflowId;
47
+ const result = await super.deleteOne(req);
48
+ if (workflowId) {
49
+ this.sseService.emitEditorCanvasElementsUpdated(workflowId);
50
+ }
51
+ return result;
52
+ }
53
+ async getElementsByWorkflowId(workflowId) {
54
+ return this.repo.find({
55
+ where: { workflowId },
56
+ order: { createdAt: 'ASC' },
57
+ });
58
+ }
59
+ };
60
+ exports.WorkflowCanvasElementService = WorkflowCanvasElementService;
61
+ exports.WorkflowCanvasElementService = WorkflowCanvasElementService = __decorate([
62
+ (0, common_1.Injectable)(),
63
+ __param(0, (0, typeorm_1.InjectRepository)(workflow_canvas_element_entity_1.WorkflowCanvasElement)),
64
+ __metadata("design:paramtypes", [typeorm_2.Repository,
65
+ workflow_sse_service_1.WorkflowSSEService])
66
+ ], WorkflowCanvasElementService);
67
+ //# sourceMappingURL=workflow-canvas-element.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflow-canvas-element.service.js","sourceRoot":"","sources":["../../src/services/workflow-canvas-element.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,uD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