@venturialstd/workflow 0.1.162 → 0.1.164

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 (160) hide show
  1. package/dist/dtos/create-workflow-canvas-element.dto.d.ts +13 -0
  2. package/dist/dtos/create-workflow-canvas-element.dto.d.ts.map +1 -0
  3. package/dist/dtos/create-workflow-canvas-element.dto.js +61 -0
  4. package/dist/dtos/create-workflow-canvas-element.dto.js.map +1 -0
  5. package/dist/dtos/index.d.ts +1 -0
  6. package/dist/dtos/index.d.ts.map +1 -1
  7. package/dist/dtos/index.js +1 -0
  8. package/dist/dtos/index.js.map +1 -1
  9. package/dist/entities/workflow-canvas-element.entity.d.ts +21 -0
  10. package/dist/entities/workflow-canvas-element.entity.d.ts.map +1 -0
  11. package/dist/entities/workflow-canvas-element.entity.js +100 -0
  12. package/dist/entities/workflow-canvas-element.entity.js.map +1 -0
  13. package/dist/index.d.ts +3 -0
  14. package/dist/index.d.ts.map +1 -1
  15. package/dist/index.js +3 -0
  16. package/dist/index.js.map +1 -1
  17. package/dist/modules/chatbot/actions/ask-question.action.d.ts +3 -0
  18. package/dist/modules/chatbot/actions/ask-question.action.d.ts.map +1 -0
  19. package/dist/modules/chatbot/actions/ask-question.action.js +42 -0
  20. package/dist/modules/chatbot/actions/ask-question.action.js.map +1 -0
  21. package/dist/modules/chatbot/actions/index.d.ts +4 -0
  22. package/dist/modules/chatbot/actions/index.d.ts.map +1 -0
  23. package/dist/modules/chatbot/actions/index.js +20 -0
  24. package/dist/modules/chatbot/actions/index.js.map +1 -0
  25. package/dist/modules/chatbot/actions/send-buttons.action.d.ts +3 -0
  26. package/dist/modules/chatbot/actions/send-buttons.action.d.ts.map +1 -0
  27. package/dist/modules/chatbot/actions/send-buttons.action.js +67 -0
  28. package/dist/modules/chatbot/actions/send-buttons.action.js.map +1 -0
  29. package/dist/modules/chatbot/actions/send-message.action.d.ts +3 -0
  30. package/dist/modules/chatbot/actions/send-message.action.d.ts.map +1 -0
  31. package/dist/modules/chatbot/actions/send-message.action.js +52 -0
  32. package/dist/modules/chatbot/actions/send-message.action.js.map +1 -0
  33. package/dist/modules/chatbot/chatbot-nest.module.d.ts +3 -0
  34. package/dist/modules/chatbot/chatbot-nest.module.d.ts.map +1 -0
  35. package/dist/modules/chatbot/chatbot-nest.module.js +21 -0
  36. package/dist/modules/chatbot/chatbot-nest.module.js.map +1 -0
  37. package/dist/modules/chatbot/chatbot.module.d.ts +3 -0
  38. package/dist/modules/chatbot/chatbot.module.d.ts.map +1 -0
  39. package/dist/modules/chatbot/chatbot.module.js +17 -0
  40. package/dist/modules/chatbot/chatbot.module.js.map +1 -0
  41. package/dist/modules/chatbot/credentials.d.ts +3 -0
  42. package/dist/modules/chatbot/credentials.d.ts.map +1 -0
  43. package/dist/modules/chatbot/credentials.js +5 -0
  44. package/dist/modules/chatbot/credentials.js.map +1 -0
  45. package/dist/modules/chatbot/services/ask-question.service.d.ts +5 -0
  46. package/dist/modules/chatbot/services/ask-question.service.d.ts.map +1 -0
  47. package/dist/modules/chatbot/services/ask-question.service.js +25 -0
  48. package/dist/modules/chatbot/services/ask-question.service.js.map +1 -0
  49. package/dist/modules/chatbot/services/index.d.ts +5 -0
  50. package/dist/modules/chatbot/services/index.d.ts.map +1 -0
  51. package/dist/modules/chatbot/services/index.js +21 -0
  52. package/dist/modules/chatbot/services/index.js.map +1 -0
  53. package/dist/modules/chatbot/services/send-buttons.service.d.ts +5 -0
  54. package/dist/modules/chatbot/services/send-buttons.service.d.ts.map +1 -0
  55. package/dist/modules/chatbot/services/send-buttons.service.js +25 -0
  56. package/dist/modules/chatbot/services/send-buttons.service.js.map +1 -0
  57. package/dist/modules/chatbot/services/send-message.service.d.ts +5 -0
  58. package/dist/modules/chatbot/services/send-message.service.d.ts.map +1 -0
  59. package/dist/modules/chatbot/services/send-message.service.js +27 -0
  60. package/dist/modules/chatbot/services/send-message.service.js.map +1 -0
  61. package/dist/modules/chatbot/services/user-responded.service.d.ts +5 -0
  62. package/dist/modules/chatbot/services/user-responded.service.d.ts.map +1 -0
  63. package/dist/modules/chatbot/services/user-responded.service.js +25 -0
  64. package/dist/modules/chatbot/services/user-responded.service.js.map +1 -0
  65. package/dist/modules/chatbot/triggers/index.d.ts +2 -0
  66. package/dist/modules/chatbot/triggers/index.d.ts.map +1 -0
  67. package/dist/modules/chatbot/triggers/index.js +18 -0
  68. package/dist/modules/chatbot/triggers/index.js.map +1 -0
  69. package/dist/modules/chatbot/triggers/user-responded.trigger.d.ts +3 -0
  70. package/dist/modules/chatbot/triggers/user-responded.trigger.d.ts.map +1 -0
  71. package/dist/modules/chatbot/triggers/user-responded.trigger.js +45 -0
  72. package/dist/modules/chatbot/triggers/user-responded.trigger.js.map +1 -0
  73. package/dist/modules/chatgpt/actions/chat-completion.action.d.ts.map +1 -1
  74. package/dist/modules/chatgpt/actions/chat-completion.action.js +27 -109
  75. package/dist/modules/chatgpt/actions/chat-completion.action.js.map +1 -1
  76. package/dist/modules/chatgpt/actions/chat-purpose.action.d.ts +3 -0
  77. package/dist/modules/chatgpt/actions/chat-purpose.action.d.ts.map +1 -0
  78. package/dist/modules/chatgpt/actions/chat-purpose.action.js +229 -0
  79. package/dist/modules/chatgpt/actions/chat-purpose.action.js.map +1 -0
  80. package/dist/modules/chatgpt/actions/create-embedding.action.d.ts.map +1 -1
  81. package/dist/modules/chatgpt/actions/create-embedding.action.js +10 -16
  82. package/dist/modules/chatgpt/actions/create-embedding.action.js.map +1 -1
  83. package/dist/modules/chatgpt/actions/generate-image.action.d.ts.map +1 -1
  84. package/dist/modules/chatgpt/actions/generate-image.action.js +19 -35
  85. package/dist/modules/chatgpt/actions/generate-image.action.js.map +1 -1
  86. package/dist/modules/chatgpt/actions/index.d.ts +1 -0
  87. package/dist/modules/chatgpt/actions/index.d.ts.map +1 -1
  88. package/dist/modules/chatgpt/actions/index.js +1 -0
  89. package/dist/modules/chatgpt/actions/index.js.map +1 -1
  90. package/dist/modules/chatgpt/actions/speech-to-text.action.d.ts.map +1 -1
  91. package/dist/modules/chatgpt/actions/speech-to-text.action.js +18 -31
  92. package/dist/modules/chatgpt/actions/speech-to-text.action.js.map +1 -1
  93. package/dist/modules/chatgpt/actions/text-to-speech.action.d.ts.map +1 -1
  94. package/dist/modules/chatgpt/actions/text-to-speech.action.js +15 -32
  95. package/dist/modules/chatgpt/actions/text-to-speech.action.js.map +1 -1
  96. package/dist/modules/chatgpt/auth/chatgpt-auth.service.d.ts +3 -0
  97. package/dist/modules/chatgpt/auth/chatgpt-auth.service.d.ts.map +1 -1
  98. package/dist/modules/chatgpt/auth/chatgpt-auth.service.js +33 -36
  99. package/dist/modules/chatgpt/auth/chatgpt-auth.service.js.map +1 -1
  100. package/dist/modules/chatgpt/auth/index.d.ts +2 -0
  101. package/dist/modules/chatgpt/auth/index.d.ts.map +1 -0
  102. package/dist/modules/chatgpt/auth/index.js +6 -0
  103. package/dist/modules/chatgpt/auth/index.js.map +1 -0
  104. package/dist/modules/chatgpt/chatgpt-nest.module.d.ts.map +1 -1
  105. package/dist/modules/chatgpt/chatgpt-nest.module.js +9 -6
  106. package/dist/modules/chatgpt/chatgpt-nest.module.js.map +1 -1
  107. package/dist/modules/chatgpt/chatgpt.module.d.ts.map +1 -1
  108. package/dist/modules/chatgpt/chatgpt.module.js +3 -2
  109. package/dist/modules/chatgpt/chatgpt.module.js.map +1 -1
  110. package/dist/modules/chatgpt/services/chat-completion.service.d.ts +2 -4
  111. package/dist/modules/chatgpt/services/chat-completion.service.d.ts.map +1 -1
  112. package/dist/modules/chatgpt/services/chat-completion.service.js +21 -100
  113. package/dist/modules/chatgpt/services/chat-completion.service.js.map +1 -1
  114. package/dist/modules/chatgpt/services/chat-purpose.service.d.ts +24 -0
  115. package/dist/modules/chatgpt/services/chat-purpose.service.d.ts.map +1 -0
  116. package/dist/modules/chatgpt/services/chat-purpose.service.js +396 -0
  117. package/dist/modules/chatgpt/services/chat-purpose.service.js.map +1 -0
  118. package/dist/modules/chatgpt/services/index.d.ts +1 -0
  119. package/dist/modules/chatgpt/services/index.d.ts.map +1 -1
  120. package/dist/modules/chatgpt/services/index.js +1 -0
  121. package/dist/modules/chatgpt/services/index.js.map +1 -1
  122. package/dist/modules/chatgpt/types/purpose-memory.types.d.ts +38 -0
  123. package/dist/modules/chatgpt/types/purpose-memory.types.d.ts.map +1 -0
  124. package/dist/modules/chatgpt/types/purpose-memory.types.js +28 -0
  125. package/dist/modules/chatgpt/types/purpose-memory.types.js.map +1 -0
  126. package/dist/modules/chatgpt/utils/purpose-cache-key.util.d.ts +5 -0
  127. package/dist/modules/chatgpt/utils/purpose-cache-key.util.d.ts.map +1 -0
  128. package/dist/modules/chatgpt/utils/purpose-cache-key.util.js +15 -0
  129. package/dist/modules/chatgpt/utils/purpose-cache-key.util.js.map +1 -0
  130. package/dist/modules/chatgpt/utils/purpose-schema.validator.d.ts +2 -0
  131. package/dist/modules/chatgpt/utils/purpose-schema.validator.d.ts.map +1 -0
  132. package/dist/modules/chatgpt/utils/purpose-schema.validator.js +34 -0
  133. package/dist/modules/chatgpt/utils/purpose-schema.validator.js.map +1 -0
  134. package/dist/modules/chatgpt/utils/token-estimate.util.d.ts +7 -0
  135. package/dist/modules/chatgpt/utils/token-estimate.util.d.ts.map +1 -0
  136. package/dist/modules/chatgpt/utils/token-estimate.util.js +20 -0
  137. package/dist/modules/chatgpt/utils/token-estimate.util.js.map +1 -0
  138. package/dist/modules/index.d.ts +1 -0
  139. package/dist/modules/index.d.ts.map +1 -1
  140. package/dist/modules/index.js +5 -1
  141. package/dist/modules/index.js.map +1 -1
  142. package/dist/services/workflow-canvas-element.service.d.ts +15 -0
  143. package/dist/services/workflow-canvas-element.service.d.ts.map +1 -0
  144. package/dist/services/workflow-canvas-element.service.js +67 -0
  145. package/dist/services/workflow-canvas-element.service.js.map +1 -0
  146. package/dist/services/workflow-sse.service.d.ts +4 -1
  147. package/dist/services/workflow-sse.service.d.ts.map +1 -1
  148. package/dist/services/workflow-sse.service.js +8 -0
  149. package/dist/services/workflow-sse.service.js.map +1 -1
  150. package/dist/workflow-core.module.d.ts.map +1 -1
  151. package/dist/workflow-core.module.js +5 -0
  152. package/dist/workflow-core.module.js.map +1 -1
  153. package/dist/workflow.module.d.ts.map +1 -1
  154. package/dist/workflow.module.js +3 -0
  155. package/dist/workflow.module.js.map +1 -1
  156. package/package.json +119 -118
  157. package/dist/modules/chatgpt/constants/chatgpt-completion.constants.d.ts +0 -4
  158. package/dist/modules/chatgpt/constants/chatgpt-completion.constants.d.ts.map +0 -1
  159. package/dist/modules/chatgpt/constants/chatgpt-completion.constants.js +0 -32
  160. package/dist/modules/chatgpt/constants/chatgpt-completion.constants.js.map +0 -1
@@ -0,0 +1,13 @@
1
+ export declare class CreateWorkflowCanvasElementDto {
2
+ workflowId: string;
3
+ elementId: string;
4
+ type: string;
5
+ position: {
6
+ x: number;
7
+ y: number;
8
+ };
9
+ size?: Record<string, number> | null;
10
+ style?: Record<string, unknown> | null;
11
+ data?: Record<string, unknown> | null;
12
+ }
13
+ //# sourceMappingURL=create-workflow-canvas-element.dto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-workflow-canvas-element.dto.d.ts","sourceRoot":"","sources":["../../src/dtos/create-workflow-canvas-element.dto.ts"],"names":[],"mappings":"AAEA,qBAAa,8BAA8B;IAGzC,UAAU,EAAE,MAAM,CAAC;IAKnB,SAAS,EAAE,MAAM,CAAC;IAKlB,IAAI,EAAE,MAAM,CAAC;IAIb,QAAQ,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAInC,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CAAC;IAIrC,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IAIvC,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;CACvC"}
@@ -0,0 +1,61 @@
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.CreateWorkflowCanvasElementDto = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ class CreateWorkflowCanvasElementDto {
15
+ workflowId;
16
+ elementId;
17
+ type;
18
+ position;
19
+ size;
20
+ style;
21
+ data;
22
+ }
23
+ exports.CreateWorkflowCanvasElementDto = CreateWorkflowCanvasElementDto;
24
+ __decorate([
25
+ (0, class_validator_1.IsString)(),
26
+ (0, class_validator_1.IsNotEmpty)(),
27
+ __metadata("design:type", String)
28
+ ], CreateWorkflowCanvasElementDto.prototype, "workflowId", void 0);
29
+ __decorate([
30
+ (0, class_validator_1.IsString)(),
31
+ (0, class_validator_1.IsNotEmpty)(),
32
+ (0, class_validator_1.MaxLength)(255),
33
+ __metadata("design:type", String)
34
+ ], CreateWorkflowCanvasElementDto.prototype, "elementId", void 0);
35
+ __decorate([
36
+ (0, class_validator_1.IsString)(),
37
+ (0, class_validator_1.IsNotEmpty)(),
38
+ (0, class_validator_1.MaxLength)(64),
39
+ __metadata("design:type", String)
40
+ ], CreateWorkflowCanvasElementDto.prototype, "type", void 0);
41
+ __decorate([
42
+ (0, class_validator_1.IsNotEmpty)(),
43
+ (0, class_validator_1.IsObject)(),
44
+ __metadata("design:type", Object)
45
+ ], CreateWorkflowCanvasElementDto.prototype, "position", void 0);
46
+ __decorate([
47
+ (0, class_validator_1.IsOptional)(),
48
+ (0, class_validator_1.IsObject)(),
49
+ __metadata("design:type", Object)
50
+ ], CreateWorkflowCanvasElementDto.prototype, "size", void 0);
51
+ __decorate([
52
+ (0, class_validator_1.IsOptional)(),
53
+ (0, class_validator_1.IsObject)(),
54
+ __metadata("design:type", Object)
55
+ ], CreateWorkflowCanvasElementDto.prototype, "style", void 0);
56
+ __decorate([
57
+ (0, class_validator_1.IsOptional)(),
58
+ (0, class_validator_1.IsObject)(),
59
+ __metadata("design:type", Object)
60
+ ], CreateWorkflowCanvasElementDto.prototype, "data", void 0);
61
+ //# sourceMappingURL=create-workflow-canvas-element.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-workflow-canvas-element.dto.js","sourceRoot":"","sources":["../../src/dtos/create-workflow-canvas-element.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAwF;AAExF,MAAa,8BAA8B;IAGzC,UAAU,CAAS;IAKnB,SAAS,CAAS;IAKlB,IAAI,CAAS;IAIb,QAAQ,CAA2B;IAInC,IAAI,CAAiC;IAIrC,KAAK,CAAkC;IAIvC,IAAI,CAAkC;CACvC;AA9BD,wEA8BC;AA3BC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;kEACM;AAKnB;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,EAAC,GAAG,CAAC;;iEACG;AAKlB;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,EAAC,EAAE,CAAC;;4DACD;AAIb;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;gEACwB;AAInC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;4DAC0B;AAIrC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;6DAC4B;AAIvC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;4DAC2B"}
@@ -7,6 +7,7 @@ export * from './create-workflow-job.dto';
7
7
  export * from './update-workflow-job.dto';
8
8
  export * from './create-workflow-module.dto';
9
9
  export * from './create-workflow-module-credential.dto';
10
+ export * from './create-workflow-canvas-element.dto';
10
11
  export * from './create-workflow-node.dto';
11
12
  export * from './create-workflow-node-execution.dto';
12
13
  export * from './create-workflow-session.dto';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/dtos/index.ts"],"names":[],"mappings":"AAAA,cAAc,qCAAqC,CAAC;AACpD,cAAc,kCAAkC,CAAC;AACjD,cAAc,uBAAuB,CAAC;AACtC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,iCAAiC,CAAC;AAChD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yCAAyC,CAAC;AACxD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sCAAsC,CAAC;AACrD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,+BAA+B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/dtos/index.ts"],"names":[],"mappings":"AAAA,cAAc,qCAAqC,CAAC;AACpD,cAAc,kCAAkC,CAAC;AACjD,cAAc,uBAAuB,CAAC;AACtC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,iCAAiC,CAAC;AAChD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yCAAyC,CAAC;AACxD,cAAc,sCAAsC,CAAC;AACrD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sCAAsC,CAAC;AACrD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,+BAA+B,CAAC"}
@@ -23,6 +23,7 @@ __exportStar(require("./create-workflow-job.dto"), exports);
23
23
  __exportStar(require("./update-workflow-job.dto"), exports);
24
24
  __exportStar(require("./create-workflow-module.dto"), exports);
25
25
  __exportStar(require("./create-workflow-module-credential.dto"), exports);
26
+ __exportStar(require("./create-workflow-canvas-element.dto"), exports);
26
27
  __exportStar(require("./create-workflow-node.dto"), exports);
27
28
  __exportStar(require("./create-workflow-node-execution.dto"), exports);
28
29
  __exportStar(require("./create-workflow-session.dto"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sEAAoD;AACpD,mEAAiD;AACjD,wDAAsC;AACtC,6DAA2C;AAC3C,kEAAgD;AAChD,4DAA0C;AAC1C,4DAA0C;AAC1C,+DAA6C;AAC7C,0EAAwD;AACxD,6DAA2C;AAC3C,uEAAqD;AACrD,gEAA8C;AAC9C,gEAA8C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sEAAoD;AACpD,mEAAiD;AACjD,wDAAsC;AACtC,6DAA2C;AAC3C,kEAAgD;AAChD,4DAA0C;AAC1C,4DAA0C;AAC1C,+DAA6C;AAC7C,0EAAwD;AACxD,uEAAqD;AACrD,6DAA2C;AAC3C,uEAAqD;AACrD,gEAA8C;AAC9C,gEAA8C"}
@@ -0,0 +1,21 @@
1
+ import { Workflow } from './workflow.entity';
2
+ export type WorkflowCanvasElementPosition = {
3
+ x: number;
4
+ y: number;
5
+ };
6
+ export type WorkflowCanvasElementSize = Record<string, number>;
7
+ export type WorkflowCanvasElementStyle = Record<string, unknown>;
8
+ export declare class WorkflowCanvasElement {
9
+ id: string;
10
+ workflowId: string;
11
+ workflow: Workflow;
12
+ elementId: string;
13
+ type: string;
14
+ position: WorkflowCanvasElementPosition;
15
+ size?: WorkflowCanvasElementSize | null;
16
+ style?: WorkflowCanvasElementStyle | null;
17
+ data?: Record<string, unknown> | null;
18
+ createdAt: Date;
19
+ updatedAt: Date;
20
+ }
21
+ //# sourceMappingURL=workflow-canvas-element.entity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflow-canvas-element.entity.d.ts","sourceRoot":"","sources":["../../src/entities/workflow-canvas-element.entity.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAG7C,MAAM,MAAM,6BAA6B,GAAG;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAGrE,MAAM,MAAM,yBAAyB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAG/D,MAAM,MAAM,0BAA0B,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAEjE,qBACa,qBAAqB;IAEhC,EAAE,EAAE,MAAM,CAAC;IAKX,UAAU,EAAE,MAAM,CAAC;IAGnB,QAAQ,EAAE,QAAQ,CAAC;IAMnB,SAAS,EAAE,MAAM,CAAC;IAMlB,IAAI,EAAE,MAAM,CAAC;IAIb,QAAQ,EAAE,6BAA6B,CAAC;IAKxC,IAAI,CAAC,EAAE,yBAAyB,GAAG,IAAI,CAAC;IAKxC,KAAK,CAAC,EAAE,0BAA0B,GAAG,IAAI,CAAC;IAM1C,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IAQtC,SAAS,EAAE,IAAI,CAAC;IAQhB,SAAS,EAAE,IAAI,CAAC;CACjB"}
@@ -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,CAAS;IAGnB,QAAQ,CAAW;IAMnB,SAAS,CAAS;IAMlB,IAAI,CAAS;IAIb,QAAQ,CAAgC;IAKxC,IAAI,CAAoC;IAKxC,KAAK,CAAqC;IAM1C,IAAI,CAAkC;IAQtC,SAAS,CAAO;IAQhB,SAAS,CAAO;CACjB,CAAA;AA3DY,sDAAqB;AAEhC;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;iDACpB;AAKX;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,gBAAM,GAAE;;yDACU;AAGnB;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,0BAAQ,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;8BACzC,0BAAQ;uDAAC;AAMnB;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,gBAAM,GAAE;;wDACS;AAMlB;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;mDAC3B;AAIb;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;;uDACc;AAKxC;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACF;AAKxC;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDACA;AAM1C;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,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';
@@ -31,6 +33,7 @@ export * from './modules';
31
33
  export * from './modules/ai/ai-nest.module';
32
34
  export * from './modules/schedule/schedule-nest.module';
33
35
  export * from './modules/jobs/jobs-nest.module';
36
+ export * from './modules/chatbot/chatbot-nest.module';
34
37
  export * from './modules/conditional/conditional-nest.module';
35
38
  export * from './modules/twilio/twilio-nest.module';
36
39
  export * from './modules/webhook/webhook-nest.module';
@@ -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,CAAC;AAC3F,cAAc,8CAA8C,CAAC;AAC7D,cAAc,iCAAiC,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,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,+CAA+C,CAAC;AAC9D,cAAc,qCAAqC,CAAC;AACpD,cAAc,uCAAuC,CAAC;AACtD,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC"}
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,2CAA2C,CAAC;AAC1D,cAAc,iCAAiC,CAAC;AAChD,cAAc,sCAAsC,CAAC;AACrD,cAAc,gCAAgC,CAAC;AAC/C,OAAO,EAAE,cAAc,IAAI,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAC3F,cAAc,8CAA8C,CAAC;AAC7D,cAAc,iCAAiC,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);
@@ -49,6 +51,7 @@ __exportStar(require("./modules"), exports);
49
51
  __exportStar(require("./modules/ai/ai-nest.module"), exports);
50
52
  __exportStar(require("./modules/schedule/schedule-nest.module"), exports);
51
53
  __exportStar(require("./modules/jobs/jobs-nest.module"), exports);
54
+ __exportStar(require("./modules/chatbot/chatbot-nest.module"), exports);
52
55
  __exportStar(require("./modules/conditional/conditional-nest.module"), exports);
53
56
  __exportStar(require("./modules/twilio/twilio-nest.module"), exports);
54
57
  __exportStar(require("./modules/webhook/webhook-nest.module"), 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,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"}
@@ -0,0 +1,3 @@
1
+ import { WorkflowActionTrigger } from '../../types';
2
+ export declare const askQuestionAction: WorkflowActionTrigger;
3
+ //# sourceMappingURL=ask-question.action.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ask-question.action.d.ts","sourceRoot":"","sources":["../../../../src/modules/chatbot/actions/ask-question.action.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6B,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAG/E,eAAO,MAAM,iBAAiB,EAAE,qBAmC/B,CAAC"}
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.askQuestionAction = void 0;
4
+ const types_1 = require("../../types");
5
+ const ask_question_service_1 = require("../services/ask-question.service");
6
+ exports.askQuestionAction = {
7
+ key: 'ask-question',
8
+ name: 'Ask Question',
9
+ description: 'Send a message and wait for user response',
10
+ category: types_1.NODE_CATEGORY.ACTION,
11
+ icon: '❓',
12
+ serviceClass: ask_question_service_1.AskQuestionService,
13
+ inputs: [
14
+ {
15
+ id: 'message',
16
+ name: 'Question',
17
+ description: 'The question to ask the user',
18
+ type: types_1.FIELD_TYPE.STRING,
19
+ validation: {
20
+ required: true,
21
+ minLength: 1,
22
+ maxLength: 5000,
23
+ },
24
+ placeholder: 'What would you like to do?',
25
+ },
26
+ ],
27
+ outputs: [
28
+ {
29
+ id: 'userResponse',
30
+ name: 'User Response',
31
+ description: 'The response received from the user',
32
+ type: types_1.FIELD_TYPE.STRING,
33
+ },
34
+ {
35
+ id: 'responseTime',
36
+ name: 'Response Time',
37
+ description: 'Time taken for user to respond (ms)',
38
+ type: types_1.FIELD_TYPE.NUMBER,
39
+ },
40
+ ],
41
+ };
42
+ //# sourceMappingURL=ask-question.action.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ask-question.action.js","sourceRoot":"","sources":["../../../../src/modules/chatbot/actions/ask-question.action.ts"],"names":[],"mappings":";;;AAAA,uCAA+E;AAC/E,2EAAsE;AAEzD,QAAA,iBAAiB,GAA0B;IACtD,GAAG,EAAE,cAAc;IACnB,IAAI,EAAE,cAAc;IACpB,WAAW,EAAE,2CAA2C;IACxD,QAAQ,EAAE,qBAAa,CAAC,MAAM;IAC9B,IAAI,EAAE,GAAG;IACT,YAAY,EAAE,yCAAkB;IAChC,MAAM,EAAE;QACN;YACE,EAAE,EAAE,SAAS;YACb,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,8BAA8B;YAC3C,IAAI,EAAE,kBAAU,CAAC,MAAM;YACvB,UAAU,EAAE;gBACV,QAAQ,EAAE,IAAI;gBACd,SAAS,EAAE,CAAC;gBACZ,SAAS,EAAE,IAAI;aAChB;YACD,WAAW,EAAE,4BAA4B;SAC1C;KACF;IACD,OAAO,EAAE;QACP;YACE,EAAE,EAAE,cAAc;YAClB,IAAI,EAAE,eAAe;YACrB,WAAW,EAAE,qCAAqC;YAClD,IAAI,EAAE,kBAAU,CAAC,MAAM;SACxB;QACD;YACE,EAAE,EAAE,cAAc;YAClB,IAAI,EAAE,eAAe;YACrB,WAAW,EAAE,qCAAqC;YAClD,IAAI,EAAE,kBAAU,CAAC,MAAM;SACxB;KACF;CACF,CAAC"}
@@ -0,0 +1,4 @@
1
+ export * from './ask-question.action';
2
+ export * from './send-buttons.action';
3
+ export * from './send-message.action';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/chatbot/actions/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC"}
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./ask-question.action"), exports);
18
+ __exportStar(require("./send-buttons.action"), exports);
19
+ __exportStar(require("./send-message.action"), exports);
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/chatbot/actions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC;AACtC,wDAAsC;AACtC,wDAAsC"}
@@ -0,0 +1,3 @@
1
+ import { WorkflowActionTrigger } from '../../types';
2
+ export declare const sendButtonsAction: WorkflowActionTrigger;
3
+ //# sourceMappingURL=send-buttons.action.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"send-buttons.action.d.ts","sourceRoot":"","sources":["../../../../src/modules/chatbot/actions/send-buttons.action.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6B,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAG/E,eAAO,MAAM,iBAAiB,EAAE,qBA4D/B,CAAC"}
@@ -0,0 +1,67 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.sendButtonsAction = void 0;
4
+ const types_1 = require("../../types");
5
+ const send_buttons_service_1 = require("../services/send-buttons.service");
6
+ exports.sendButtonsAction = {
7
+ key: 'send-buttons',
8
+ name: 'Send with Buttons',
9
+ description: 'Send a message with interactive buttons',
10
+ category: types_1.NODE_CATEGORY.ACTION,
11
+ icon: '🔘',
12
+ serviceClass: send_buttons_service_1.SendButtonsService,
13
+ inputs: [
14
+ {
15
+ id: 'message',
16
+ name: 'Message',
17
+ description: 'The message text to send',
18
+ type: types_1.FIELD_TYPE.STRING,
19
+ validation: {
20
+ required: true,
21
+ minLength: 1,
22
+ maxLength: 5000,
23
+ },
24
+ placeholder: 'Please choose an option:',
25
+ },
26
+ {
27
+ id: 'buttons',
28
+ name: 'Buttons',
29
+ description: 'Array of button options',
30
+ type: types_1.FIELD_TYPE.ARRAY,
31
+ validation: {
32
+ required: true,
33
+ min: 1,
34
+ max: 10,
35
+ },
36
+ },
37
+ {
38
+ id: 'buttonLabel',
39
+ name: 'Button Label',
40
+ description: 'Label for each button',
41
+ type: types_1.FIELD_TYPE.STRING,
42
+ dependsOn: ['buttons'],
43
+ },
44
+ {
45
+ id: 'buttonValue',
46
+ name: 'Button Value',
47
+ description: 'Value returned when button is clicked',
48
+ type: types_1.FIELD_TYPE.STRING,
49
+ dependsOn: ['buttons'],
50
+ },
51
+ ],
52
+ outputs: [
53
+ {
54
+ id: 'selectedButton',
55
+ name: 'Selected Button',
56
+ description: 'The button value that was selected',
57
+ type: types_1.FIELD_TYPE.STRING,
58
+ },
59
+ {
60
+ id: 'selectedButtonLabel',
61
+ name: 'Selected Button Label',
62
+ description: 'The label of the selected button',
63
+ type: types_1.FIELD_TYPE.STRING,
64
+ },
65
+ ],
66
+ };
67
+ //# sourceMappingURL=send-buttons.action.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"send-buttons.action.js","sourceRoot":"","sources":["../../../../src/modules/chatbot/actions/send-buttons.action.ts"],"names":[],"mappings":";;;AAAA,uCAA+E;AAC/E,2EAAsE;AAEzD,QAAA,iBAAiB,GAA0B;IACtD,GAAG,EAAE,cAAc;IACnB,IAAI,EAAE,mBAAmB;IACzB,WAAW,EAAE,yCAAyC;IACtD,QAAQ,EAAE,qBAAa,CAAC,MAAM;IAC9B,IAAI,EAAE,IAAI;IACV,YAAY,EAAE,yCAAkB;IAChC,MAAM,EAAE;QACN;YACE,EAAE,EAAE,SAAS;YACb,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,0BAA0B;YACvC,IAAI,EAAE,kBAAU,CAAC,MAAM;YACvB,UAAU,EAAE;gBACV,QAAQ,EAAE,IAAI;gBACd,SAAS,EAAE,CAAC;gBACZ,SAAS,EAAE,IAAI;aAChB;YACD,WAAW,EAAE,0BAA0B;SACxC;QACD;YACE,EAAE,EAAE,SAAS;YACb,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,yBAAyB;YACtC,IAAI,EAAE,kBAAU,CAAC,KAAK;YACtB,UAAU,EAAE;gBACV,QAAQ,EAAE,IAAI;gBACd,GAAG,EAAE,CAAC;gBACN,GAAG,EAAE,EAAE;aACR;SACF;QACD;YACE,EAAE,EAAE,aAAa;YACjB,IAAI,EAAE,cAAc;YACpB,WAAW,EAAE,uBAAuB;YACpC,IAAI,EAAE,kBAAU,CAAC,MAAM;YACvB,SAAS,EAAE,CAAC,SAAS,CAAC;SACvB;QACD;YACE,EAAE,EAAE,aAAa;YACjB,IAAI,EAAE,cAAc;YACpB,WAAW,EAAE,uCAAuC;YACpD,IAAI,EAAE,kBAAU,CAAC,MAAM;YACvB,SAAS,EAAE,CAAC,SAAS,CAAC;SACvB;KACF;IACD,OAAO,EAAE;QACP;YACE,EAAE,EAAE,gBAAgB;YACpB,IAAI,EAAE,iBAAiB;YACvB,WAAW,EAAE,oCAAoC;YACjD,IAAI,EAAE,kBAAU,CAAC,MAAM;SACxB;QACD;YACE,EAAE,EAAE,qBAAqB;YACzB,IAAI,EAAE,uBAAuB;YAC7B,WAAW,EAAE,kCAAkC;YAC/C,IAAI,EAAE,kBAAU,CAAC,MAAM;SACxB;KACF;CACF,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { WorkflowActionTrigger } from '../../types';
2
+ export declare const sendMessageAction: WorkflowActionTrigger;
3
+ //# sourceMappingURL=send-message.action.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"send-message.action.d.ts","sourceRoot":"","sources":["../../../../src/modules/chatbot/actions/send-message.action.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6B,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAG/E,eAAO,MAAM,iBAAiB,EAAE,qBA6C/B,CAAC"}
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.sendMessageAction = void 0;
4
+ const types_1 = require("../../types");
5
+ const send_message_service_1 = require("../services/send-message.service");
6
+ exports.sendMessageAction = {
7
+ key: 'send-message',
8
+ name: 'Send Message',
9
+ description: 'Send a simple message to the user',
10
+ category: types_1.NODE_CATEGORY.ACTION,
11
+ icon: '📤',
12
+ serviceClass: send_message_service_1.SendMessageService,
13
+ inputs: [
14
+ {
15
+ id: 'message',
16
+ name: 'Message',
17
+ description: 'The message text to send',
18
+ type: types_1.FIELD_TYPE.STRING,
19
+ validation: {
20
+ required: true,
21
+ minLength: 1,
22
+ maxLength: 5000,
23
+ },
24
+ placeholder: 'Enter your message...',
25
+ },
26
+ {
27
+ id: 'waitForResponse',
28
+ name: 'Wait for Response',
29
+ description: 'Whether to wait for user response after sending',
30
+ type: types_1.FIELD_TYPE.BOOLEAN,
31
+ validation: {
32
+ required: false,
33
+ },
34
+ defaultValue: false,
35
+ },
36
+ ],
37
+ outputs: [
38
+ {
39
+ id: 'messageId',
40
+ name: 'Message ID',
41
+ description: 'Unique identifier for the sent message',
42
+ type: types_1.FIELD_TYPE.STRING,
43
+ },
44
+ {
45
+ id: 'sentAt',
46
+ name: 'Sent At',
47
+ description: 'Timestamp when message was sent',
48
+ type: types_1.FIELD_TYPE.DATE,
49
+ },
50
+ ],
51
+ };
52
+ //# sourceMappingURL=send-message.action.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"send-message.action.js","sourceRoot":"","sources":["../../../../src/modules/chatbot/actions/send-message.action.ts"],"names":[],"mappings":";;;AAAA,uCAA+E;AAC/E,2EAAsE;AAEzD,QAAA,iBAAiB,GAA0B;IACtD,GAAG,EAAE,cAAc;IACnB,IAAI,EAAE,cAAc;IACpB,WAAW,EAAE,mCAAmC;IAChD,QAAQ,EAAE,qBAAa,CAAC,MAAM;IAC9B,IAAI,EAAE,IAAI;IACV,YAAY,EAAE,yCAAkB;IAChC,MAAM,EAAE;QACN;YACE,EAAE,EAAE,SAAS;YACb,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,0BAA0B;YACvC,IAAI,EAAE,kBAAU,CAAC,MAAM;YACvB,UAAU,EAAE;gBACV,QAAQ,EAAE,IAAI;gBACd,SAAS,EAAE,CAAC;gBACZ,SAAS,EAAE,IAAI;aAChB;YACD,WAAW,EAAE,uBAAuB;SACrC;QACD;YACE,EAAE,EAAE,iBAAiB;YACrB,IAAI,EAAE,mBAAmB;YACzB,WAAW,EAAE,iDAAiD;YAC9D,IAAI,EAAE,kBAAU,CAAC,OAAO;YACxB,UAAU,EAAE;gBACV,QAAQ,EAAE,KAAK;aAChB;YACD,YAAY,EAAE,KAAK;SACpB;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,QAAQ;YACZ,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,iCAAiC;YAC9C,IAAI,EAAE,kBAAU,CAAC,IAAI;SACtB;KACF;CACF,CAAC"}
@@ -0,0 +1,3 @@
1
+ export declare class ChatbotNestModule {
2
+ }
3
+ //# sourceMappingURL=chatbot-nest.module.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chatbot-nest.module.d.ts","sourceRoot":"","sources":["../../../src/modules/chatbot/chatbot-nest.module.ts"],"names":[],"mappings":"AASA,qBAIa,iBAAiB;CAAG"}
@@ -0,0 +1,21 @@
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.ChatbotNestModule = void 0;
10
+ const common_1 = require("@nestjs/common");
11
+ const services_1 = require("./services");
12
+ let ChatbotNestModule = class ChatbotNestModule {
13
+ };
14
+ exports.ChatbotNestModule = ChatbotNestModule;
15
+ exports.ChatbotNestModule = ChatbotNestModule = __decorate([
16
+ (0, common_1.Module)({
17
+ providers: [services_1.SendMessageService, services_1.AskQuestionService, services_1.SendButtonsService, services_1.UserRespondedService],
18
+ exports: [services_1.SendMessageService, services_1.AskQuestionService, services_1.SendButtonsService, services_1.UserRespondedService],
19
+ })
20
+ ], ChatbotNestModule);
21
+ //# sourceMappingURL=chatbot-nest.module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chatbot-nest.module.js","sourceRoot":"","sources":["../../../src/modules/chatbot/chatbot-nest.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AAExC,yCAKoB;AAMb,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;CAAG,CAAA;AAApB,8CAAiB;4BAAjB,iBAAiB;IAJ7B,IAAA,eAAM,EAAC;QACN,SAAS,EAAE,CAAC,6BAAkB,EAAE,6BAAkB,EAAE,6BAAkB,EAAE,+BAAoB,CAAC;QAC7F,OAAO,EAAE,CAAC,6BAAkB,EAAE,6BAAkB,EAAE,6BAAkB,EAAE,+BAAoB,CAAC;KAC5F,CAAC;GACW,iBAAiB,CAAG"}
@@ -0,0 +1,3 @@
1
+ import { WorkflowModuleDefinition } from '../types';
2
+ export declare const chatbotModule: WorkflowModuleDefinition;
3
+ //# sourceMappingURL=chatbot.module.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chatbot.module.d.ts","sourceRoot":"","sources":["../../../src/modules/chatbot/chatbot.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AAKpD,eAAO,MAAM,aAAa,EAAE,wBAS3B,CAAC"}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.chatbotModule = void 0;
4
+ const actions_1 = require("./actions");
5
+ const credentials_1 = require("./credentials");
6
+ const triggers_1 = require("./triggers");
7
+ exports.chatbotModule = {
8
+ key: 'chatbot',
9
+ name: 'Chatbot',
10
+ description: 'Interact with users through messages',
11
+ icon: '💬',
12
+ version: '1.0.0',
13
+ credentialFields: credentials_1.chatbotCredentials,
14
+ actions: [actions_1.sendMessageAction, actions_1.askQuestionAction, actions_1.sendButtonsAction],
15
+ triggers: [triggers_1.userRespondedTrigger],
16
+ };
17
+ //# sourceMappingURL=chatbot.module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chatbot.module.js","sourceRoot":"","sources":["../../../src/modules/chatbot/chatbot.module.ts"],"names":[],"mappings":";;;AACA,uCAAoF;AACpF,+CAAmD;AACnD,yCAAkD;AAErC,QAAA,aAAa,GAA6B;IACrD,GAAG,EAAE,SAAS;IACd,IAAI,EAAE,SAAS;IACf,WAAW,EAAE,sCAAsC;IACnD,IAAI,EAAE,IAAI;IACV,OAAO,EAAE,OAAO;IAChB,gBAAgB,EAAE,gCAAkB;IACpC,OAAO,EAAE,CAAC,2BAAiB,EAAE,2BAAiB,EAAE,2BAAiB,CAAC;IAClE,QAAQ,EAAE,CAAC,+BAAoB,CAAC;CACjC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { CredentialFieldDefinition } from '../types';
2
+ export declare const chatbotCredentials: CredentialFieldDefinition[];
3
+ //# sourceMappingURL=credentials.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"credentials.d.ts","sourceRoot":"","sources":["../../../src/modules/chatbot/credentials.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,UAAU,CAAC;AAErD,eAAO,MAAM,kBAAkB,EAAE,yBAAyB,EAGzD,CAAC"}