@trii/types 2.10.474 → 2.10.475

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 (40) hide show
  1. package/dist/Conversations/Flows/Flow.d.ts +129 -55
  2. package/dist/Conversations/Flows/Flow.js +8 -19
  3. package/dist/Conversations/Flows/FlowInfo.d.ts +9 -0
  4. package/dist/Conversations/Flows/FlowInfo.js +2 -0
  5. package/dist/Conversations/Flows/Nodes/NodeAIChatBot.d.ts +2 -18
  6. package/dist/Conversations/Flows/Nodes/NodeAIChatBot.js +47 -0
  7. package/dist/Conversations/Flows/Nodes/NodeApi.d.ts +1 -22
  8. package/dist/Conversations/Flows/Nodes/NodeConditional.d.ts +1 -29
  9. package/dist/Conversations/Flows/Nodes/NodeConditional.js +1 -3
  10. package/dist/Conversations/Flows/Nodes/NodeContactSearch.d.ts +1 -10
  11. package/dist/Conversations/Flows/Nodes/NodeContactUpdate.d.ts +1 -14
  12. package/dist/Conversations/Flows/Nodes/NodeContactUpdate.js +1 -2
  13. package/dist/Conversations/Flows/Nodes/NodeConversationAssignTo.d.ts +1 -9
  14. package/dist/Conversations/Flows/Nodes/NodeConversationFinalize.d.ts +1 -7
  15. package/dist/Conversations/Flows/Nodes/NodeConversationUpdate.d.ts +1 -17
  16. package/dist/Conversations/Flows/Nodes/NodeConversationUpdate.js +2 -3
  17. package/dist/Conversations/Flows/Nodes/NodeFillForm.d.ts +1 -14
  18. package/dist/Conversations/Flows/Nodes/NodeFillTicket.d.ts +1 -24
  19. package/dist/Conversations/Flows/Nodes/NodeFillTicket.js +1 -2
  20. package/dist/Conversations/Flows/Nodes/NodeMsgText.d.ts +1 -49
  21. package/dist/Conversations/Flows/Nodes/NodeMsgText.js +3 -8
  22. package/dist/Conversations/Flows/Nodes/NodeMsgWaitResponse.d.ts +1 -20
  23. package/dist/Conversations/Flows/Nodes/NodeMsgWaitResponse.js +1 -2
  24. package/dist/Conversations/Flows/Nodes/NodeRedirect.d.ts +1 -10
  25. package/dist/Conversations/Flows/Nodes/NodeSendEmail.d.ts +1 -11
  26. package/dist/Conversations/Flows/Nodes/NodeSqlQuery.d.ts +0 -11
  27. package/dist/Conversations/Flows/Nodes/NodeStart.d.ts +2 -35
  28. package/dist/Conversations/Flows/Nodes/NodeStart.js +130 -213
  29. package/dist/Conversations/Flows/Nodes/NodeTimeScheduleControl.d.ts +1 -8
  30. package/dist/Conversations/Flows/Nodes/NodeTimeTimer.d.ts +1 -11
  31. package/dist/Conversations/Flows/Nodes/NodeTimeWaitUntil.d.ts +1 -8
  32. package/dist/Conversations/Flows/Nodes/NodeToolCalculator.d.ts +1 -7
  33. package/dist/Conversations/Flows/Nodes/NodeToolContacts.d.ts +1 -10
  34. package/dist/Conversations/Flows/Nodes/NodeToolFunction.d.ts +1 -8
  35. package/dist/Conversations/Flows/Nodes/NodeToolGoogleCalendar.d.ts +1 -19
  36. package/dist/Conversations/Flows/Nodes/NodeToolGoogleMaps.d.ts +1 -13
  37. package/dist/Conversations/Flows/Nodes/NodeToolKnowledge.d.ts +1 -12
  38. package/dist/Conversations/Flows/Nodes/NodeToolMapsCheckPolygon.d.ts +1 -14
  39. package/dist/Conversations/Flows/Nodes/NodeToolMcpClient.d.ts +1 -8
  40. package/package.json +1 -1
@@ -1,41 +1,29 @@
1
- import { NodeAIChatBot, NodeToolGoogleCalendar, NodeToolKnowledge } from "./Nodes";
2
- import { NodeApi } from "./Nodes/NodeApi";
3
- import { NodeConditional } from "./Nodes/NodeConditional";
4
- import { NodeContactSearch } from "./Nodes/NodeContactSearch";
5
- import { NodeContactUpdate } from "./Nodes/NodeContactUpdate";
6
- import { NodeConversationAssignTo } from "./Nodes/NodeConversationAssignTo";
7
- import { NodeConversationFinalize } from "./Nodes/NodeConversationFinalize";
8
- import { NodeConversationUpdate } from "./Nodes/NodeConversationUpdate";
9
- import { NodeFillForm } from "./Nodes/NodeFillForm";
10
- import { NodeFillTicket } from "./Nodes/NodeFillTicket";
11
- import { NodeToolGoogleMaps } from "./Nodes/NodeToolGoogleMaps";
12
- import { NodeMsgText } from "./Nodes/NodeMsgText";
13
- import { NodeMsgWaitResponse } from "./Nodes/NodeMsgWaitResponse";
14
- import { NodeRedirect } from "./Nodes/NodeRedirect";
15
- import { NodeSendEmail } from "./Nodes/NodeSendEmail";
16
- import { NodeSqlQuery } from "./Nodes/NodeSqlQuery";
17
- import { NodeStart } from "./Nodes/NodeStart";
18
- import { NodeTimeScheduleControl } from "./Nodes/NodeTimeScheduleControl";
19
- import { NodeTimeTimer } from "./Nodes/NodeTimeTimer";
20
- import { NodeTimeWaitUntil } from "./Nodes/NodeTimeWaitUntil";
21
- import { NodeToolCalculator } from "./Nodes/NodeToolCalculator";
22
- import { NodeToolMapsCheckPolygon } from "./Nodes/NodeToolMapsCheckPolygon";
23
- import { NodeToolMcpClient } from "./Nodes/NodeToolMcpClient";
24
- import { NodeToolFunction } from "./Nodes/NodeToolFunction";
25
1
  export interface IFlow {
26
2
  id?: string | null;
27
3
  spaceId?: string | null;
28
4
  name?: string | null;
29
5
  description?: string | null;
30
6
  enabled: boolean | false;
31
- nodes?: Node[] | null;
32
- edges?: Edge[] | null;
7
+ nodes?: IReactFlowNode[] | null;
8
+ edges?: IReactFlowEdge[] | null;
9
+ viewport: {
10
+ x: number;
11
+ y: number;
12
+ zoom: number;
13
+ };
33
14
  createdAt?: string | null;
34
15
  updatedAt?: string | null;
35
16
  deletedAt?: string | null;
36
17
  }
37
18
  export declare enum NodeType {
19
+ NULL = 0,
38
20
  START = 11,
21
+ START_CONVERSATION_OPENED = 12,
22
+ START_CONVERSATION_CLOSED = 13,
23
+ START_CONTACT_TAG_UPDATED = 14,
24
+ START_CONTACT_FIELD_UPDATED = 15,
25
+ START_CONTACT_FIELD_DATES = 16,
26
+ START_CONTACT_EVENT_DATE = 17,
39
27
  MSG_TEXT = 21,
40
28
  MSG_WAIT_RESPONSE = 22,
41
29
  SQL_QUERY = 31,
@@ -63,48 +51,134 @@ export declare enum NodeType {
63
51
  TOOL_GOOGLE_CALENDAR = 251,
64
52
  TOOL_GOOGLE_MAPS = 252
65
53
  }
66
- export declare class NodePosition {
67
- x: number;
68
- y: number;
69
- }
70
- export type Node = NodeStart | NodeMsgText | NodeMsgWaitResponse | NodeSqlQuery | NodeApi | NodeSendEmail | NodeFillForm | NodeFillTicket | NodeContactSearch | NodeContactUpdate | NodeConversationAssignTo | NodeConversationUpdate | NodeConversationFinalize | NodeTimeScheduleControl | NodeTimeTimer | NodeTimeWaitUntil | NodeConditional | NodeRedirect | NodeAIChatBot | NodeToolGoogleMaps | NodeToolGoogleCalendar | NodeToolCalculator | NodeToolMapsCheckPolygon | NodeToolMcpClient | NodeToolKnowledge | NodeToolFunction;
71
54
  export type NodeCategory = 'trigger' | 'action' | 'tool' | 'agent';
72
- export interface NodeBase {
55
+ export interface IReactFlowNode {
73
56
  id: string;
74
- name: string;
75
57
  type: NodeType;
76
- handles: string[];
77
- category: NodeCategory;
78
- enableStatics: boolean | false;
79
- description: string | '';
80
- position: NodePosition;
81
- positionAbsolute?: NodePosition | null;
82
- width?: number | null;
83
- height?: number | null;
84
- selected?: boolean | null;
85
- dragging?: boolean | null;
58
+ data: INode;
59
+ position: {
60
+ x: number;
61
+ y: number;
62
+ };
63
+ positionAbsolute: {
64
+ x: number;
65
+ y: number;
66
+ };
67
+ z: number;
68
+ handleBounds: {
69
+ source: any;
70
+ target: any;
71
+ };
72
+ width: number;
73
+ height: number;
74
+ selected: boolean;
75
+ dragging: boolean;
86
76
  }
87
- export declare class Edge {
77
+ export interface IReactFlowEdge {
88
78
  id: string | null;
79
+ type: string;
89
80
  source: string | null;
90
81
  sourceHandle?: string | null;
91
82
  target: string | null;
92
83
  targetHandle?: string | null;
93
- data?: EdgeData | null;
94
- markerEnd?: EdgeMarkerEnd | null;
84
+ data: {
85
+ label: string | '';
86
+ };
95
87
  }
96
- export declare class EdgeData {
97
- label: string | '';
98
- }
99
- export declare class EdgeMarkerEnd {
100
- type?: string | '';
101
- }
102
- export declare class FlowInfo {
88
+ export interface INode {
103
89
  id: string;
90
+ type: NodeType;
91
+ category: NodeCategory;
92
+ description: string | '';
93
+ tags?: string[];
94
+ version: number;
95
+ icon: string;
96
+ color?: string;
97
+ badge?: string;
98
+ hideOutput?: boolean;
99
+ hideInput?: boolean;
100
+ author?: string;
101
+ documentation?: string;
102
+ handlesIn: INodeHandle[];
103
+ handlesOut: INodeHandle[];
104
104
  name: string;
105
- nodes: NodeInfo[];
105
+ nameKey?: string;
106
+ enableStatics?: boolean | false;
107
+ properties: INodeProperty[];
108
+ values?: ICommonObject;
106
109
  }
107
- export declare class NodeInfo {
110
+ export interface INodeHandle {
108
111
  id: string;
109
112
  name: string;
113
+ nameKey?: string;
114
+ type: 'source' | 'target';
115
+ position: 'left' | 'right' | 'top' | 'bottom';
116
+ }
117
+ export interface INodeProperty {
118
+ /**
119
+ * Identificador/nombre único de la propiedad
120
+ */
121
+ id: string;
122
+ /**
123
+ * Etiqueta que se muestra en la UI
124
+ */
125
+ label: string;
126
+ /**
127
+ * Clave para utilizar en diccionario de traducciones
128
+ */
129
+ labelKey?: string;
130
+ /**
131
+ * Tipo de parámetro, puede ser un tipo predefinido o un tipo personalizado
132
+ * Ejemplo: 'string', 'number', 'boolean', 'asyncOptions', etc.
133
+ */
134
+ type: NodeParamsType | string;
135
+ /**
136
+ * Valor por defecto del parámetro.
137
+ * Puede ser un valor simple, un objeto o un array de objetos.
138
+ */
139
+ default?: CommonType | ICommonObject | ICommonObject[];
140
+ description?: string;
141
+ warning?: string;
142
+ placeholder?: string;
143
+ options?: Array<INodeOptionsValue>;
144
+ datagrid?: Array<ICommonObject>;
145
+ credentialNames?: Array<string>;
146
+ optional?: boolean;
147
+ step?: number;
148
+ rows?: number;
149
+ list?: boolean;
150
+ additionalParams?: boolean;
151
+ hidden?: boolean;
152
+ acceptVariable?: boolean;
153
+ acceptNodeOutputAsVariable?: boolean;
154
+ fileType?: string;
155
+ loadMethod?: string;
156
+ loadConfig?: boolean;
157
+ hideCodeExecute?: boolean;
158
+ codeExample?: string;
159
+ hint?: Record<string, string>;
160
+ tabIdentifier?: string;
161
+ tabs?: Array<INodeProperty>;
162
+ refresh?: boolean;
163
+ freeSolo?: boolean;
164
+ loadPreviousNodes?: boolean;
165
+ array?: Array<INodeProperty>;
166
+ show?: INodeDisplay;
167
+ hide?: INodeDisplay;
168
+ generateDocStoreDescription?: boolean;
169
+ generateInstruction?: boolean;
170
+ }
171
+ export type NodeParamsType = 'asyncOptions' | 'asyncMultiOptions' | 'options' | 'multiOptions' | 'datagrid' | 'string' | 'number' | 'boolean' | 'password' | 'json' | 'code' | 'date' | 'file' | 'folder' | 'tabs';
172
+ export type CommonType = string | number | boolean | undefined | null;
173
+ export interface ICommonObject {
174
+ [key: string]: any | CommonType | ICommonObject | CommonType[] | ICommonObject[];
175
+ }
176
+ export interface INodeDisplay {
177
+ [key: string]: string[] | string | boolean | number | ICommonObject;
178
+ }
179
+ export interface INodeOptionsValue {
180
+ label: string;
181
+ id: string;
182
+ description?: string;
183
+ imageSrc?: string;
110
184
  }
@@ -1,9 +1,16 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.NodeInfo = exports.FlowInfo = exports.EdgeMarkerEnd = exports.EdgeData = exports.Edge = exports.NodePosition = exports.NodeType = void 0;
3
+ exports.NodeType = void 0;
4
4
  var NodeType;
5
5
  (function (NodeType) {
6
+ NodeType[NodeType["NULL"] = 0] = "NULL";
6
7
  NodeType[NodeType["START"] = 11] = "START";
8
+ NodeType[NodeType["START_CONVERSATION_OPENED"] = 12] = "START_CONVERSATION_OPENED";
9
+ NodeType[NodeType["START_CONVERSATION_CLOSED"] = 13] = "START_CONVERSATION_CLOSED";
10
+ NodeType[NodeType["START_CONTACT_TAG_UPDATED"] = 14] = "START_CONTACT_TAG_UPDATED";
11
+ NodeType[NodeType["START_CONTACT_FIELD_UPDATED"] = 15] = "START_CONTACT_FIELD_UPDATED";
12
+ NodeType[NodeType["START_CONTACT_FIELD_DATES"] = 16] = "START_CONTACT_FIELD_DATES";
13
+ NodeType[NodeType["START_CONTACT_EVENT_DATE"] = 17] = "START_CONTACT_EVENT_DATE";
7
14
  NodeType[NodeType["MSG_TEXT"] = 21] = "MSG_TEXT";
8
15
  NodeType[NodeType["MSG_WAIT_RESPONSE"] = 22] = "MSG_WAIT_RESPONSE";
9
16
  NodeType[NodeType["SQL_QUERY"] = 31] = "SQL_QUERY";
@@ -31,21 +38,3 @@ var NodeType;
31
38
  NodeType[NodeType["TOOL_GOOGLE_CALENDAR"] = 251] = "TOOL_GOOGLE_CALENDAR";
32
39
  NodeType[NodeType["TOOL_GOOGLE_MAPS"] = 252] = "TOOL_GOOGLE_MAPS";
33
40
  })(NodeType || (exports.NodeType = NodeType = {}));
34
- class NodePosition {
35
- }
36
- exports.NodePosition = NodePosition;
37
- class Edge {
38
- }
39
- exports.Edge = Edge;
40
- class EdgeData {
41
- }
42
- exports.EdgeData = EdgeData;
43
- class EdgeMarkerEnd {
44
- }
45
- exports.EdgeMarkerEnd = EdgeMarkerEnd;
46
- class FlowInfo {
47
- }
48
- exports.FlowInfo = FlowInfo;
49
- class NodeInfo {
50
- }
51
- exports.NodeInfo = NodeInfo;
@@ -0,0 +1,9 @@
1
+ export interface FlowInfo {
2
+ id: string;
3
+ name: string;
4
+ nodes: NodeInfo[];
5
+ }
6
+ export interface NodeInfo {
7
+ id: string;
8
+ name: string;
9
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,18 +1,2 @@
1
- import { NodeBase, NodeType } from "../Flow";
2
- export interface NodeAIChatBot extends NodeBase {
3
- type: NodeType.AI_CHATBOT;
4
- handles: ['onNext', 'tools', 'transitions', 'onError'];
5
- category: 'agent';
6
- description: "Node for AI Chat Bot operations, such as sending messages or managing conversations with an AI model.";
7
- prompt?: string | "";
8
- globalNode: boolean | false;
9
- globalNodeCondition: string | "";
10
- llmProvider: string | "";
11
- llmModel?: string | "";
12
- credentialId?: string | "";
13
- llmTemperature?: number | 0.7;
14
- llmMaxTokens?: number | 1000;
15
- llmTopP?: number | 1;
16
- retryCount?: number | 3;
17
- retryDelay?: number | 1000;
18
- }
1
+ import { INode } from "../Flow";
2
+ export declare const defaultNodeNodeAIChatBot: INode;
@@ -1,2 +1,49 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.defaultNodeNodeAIChatBot = void 0;
4
+ const Flow_1 = require("../Flow");
5
+ exports.defaultNodeNodeAIChatBot = {
6
+ id: "AIChatBot-{uid}",
7
+ type: Flow_1.NodeType.AI_CHATBOT,
8
+ category: 'trigger',
9
+ description: "Triggered when a new conversation is created",
10
+ tags: [],
11
+ version: 1,
12
+ handlesIn: [
13
+ {
14
+ type: 'target',
15
+ position: 'left',
16
+ id: "1",
17
+ name: "IN"
18
+ }
19
+ ],
20
+ handlesOut: [
21
+ {
22
+ id: "onOk-{node.id}",
23
+ type: 'source',
24
+ position: 'right',
25
+ name: "Ok",
26
+ nameKey: 'NODE_START_OK'
27
+ },
28
+ {
29
+ id: "onError",
30
+ type: 'source',
31
+ position: 'right',
32
+ name: "Error",
33
+ nameKey: 'NODE_START_ERROR'
34
+ }
35
+ ],
36
+ name: "START BY NEW CONVERSATION",
37
+ nameKey: 'NODE_START_NAME',
38
+ enableStatics: false,
39
+ // onlyOnePerContact: boolean;
40
+ // onlyOnePerContactAddress: boolean;
41
+ properties: [],
42
+ color: '#00bcd4', // Cyan color for the start node
43
+ icon: '',
44
+ badge: undefined,
45
+ hideInput: true,
46
+ hideOutput: false,
47
+ author: '',
48
+ documentation: '',
49
+ };
@@ -1,22 +1 @@
1
- import { AuthApiKey } from '../../../Common/API/AuthApiKey';
2
- import { AuthBasic } from '../../../Common/API/AuthBasic';
3
- import { AuthBearer } from '../../../Common/API/AuthBearer';
4
- import { AuthType } from '../../../Common/API/AuthType';
5
- import { Method } from '../../../Common/API/Method';
6
- import { NodeBase, NodeType } from "../Flow";
7
- export interface NodeApi extends NodeBase {
8
- type: NodeType.API;
9
- handles: ['onOk', 'onError'];
10
- category: 'action';
11
- description: "Node for making API calls, allowing for dynamic interactions with external services.";
12
- apiUrl?: string | null;
13
- apiMethod?: Method | null;
14
- apiAuthType?: AuthType | null;
15
- apiAuthBasic?: AuthBasic | null;
16
- apiAuthApiKey?: AuthApiKey | null;
17
- apiAuthBearer?: AuthBearer | null;
18
- apiBody?: string | null;
19
- apiContentType?: string | null;
20
- variables?: string | null;
21
- saveAs?: string | null;
22
- }
1
+ export {};
@@ -1,29 +1 @@
1
- import { NodeType, NodeBase } from "../Flow";
2
- export interface NodeConditional extends NodeBase {
3
- type: NodeType.CONDITIONAL;
4
- handles: ['onOk', 'onError', 'onCondition-{id}'];
5
- category: 'action';
6
- description: "Node for conditional operations, allowing for dynamic decision-making based on conditions.";
7
- conditions: NodeConditionalCondition[];
8
- }
9
- export declare class NodeConditionalCondition {
10
- id: string;
11
- source: string;
12
- operator: NodeConditionalOperator;
13
- valueList: string[];
14
- outputValue: string;
15
- conditionName: string;
16
- }
17
- export declare enum NodeConditionalOperator {
18
- NULL = 0,
19
- LESS_THAN = 1,
20
- LESS_THAN_EQUAL = 2,
21
- EQUAL = 3,
22
- GREATER_THAN_EQUAL = 4,
23
- GREATER_THAN = 5,
24
- START_WITH = 6,
25
- END_WITH = 7,
26
- CONTAINS = 8,
27
- NOT_CONTAINS = 9,
28
- ANY_VALUE = 10
29
- }
1
+ export {};
@@ -1,9 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.NodeConditionalOperator = exports.NodeConditionalCondition = void 0;
4
3
  class NodeConditionalCondition {
5
4
  }
6
- exports.NodeConditionalCondition = NodeConditionalCondition;
7
5
  var NodeConditionalOperator;
8
6
  (function (NodeConditionalOperator) {
9
7
  NodeConditionalOperator[NodeConditionalOperator["NULL"] = 0] = "NULL";
@@ -17,4 +15,4 @@ var NodeConditionalOperator;
17
15
  NodeConditionalOperator[NodeConditionalOperator["CONTAINS"] = 8] = "CONTAINS";
18
16
  NodeConditionalOperator[NodeConditionalOperator["NOT_CONTAINS"] = 9] = "NOT_CONTAINS";
19
17
  NodeConditionalOperator[NodeConditionalOperator["ANY_VALUE"] = 10] = "ANY_VALUE";
20
- })(NodeConditionalOperator || (exports.NodeConditionalOperator = NodeConditionalOperator = {}));
18
+ })(NodeConditionalOperator || (NodeConditionalOperator = {}));
@@ -1,10 +1 @@
1
- import { NodeBase, NodeType } from "../Flow";
2
- export interface NodeContactSearch extends NodeBase {
3
- type: NodeType.CONTACT_SEARCH;
4
- handles: ['onOk', 'onError'];
5
- category: 'action';
6
- description: "Node for searching contacts in the system, allowing for dynamic retrieval of contact information based on specified criteria.";
7
- contactFieldId: string | '';
8
- valueToSearch: string | '';
9
- saveAs: string | '';
10
- }
1
+ export {};
@@ -1,14 +1 @@
1
- import { NodeBase, NodeType } from "../Flow";
2
- export interface NodeContactUpdate extends NodeBase {
3
- type: NodeType.CONTACT_UPDATE;
4
- handles: ['onOk', 'onError'];
5
- category: 'action';
6
- description: "Node for updating contact information, allowing the flow to modify specific fields of a contact.";
7
- contactFieldId: string | '';
8
- action: NodeContactUpdateAction;
9
- valueToSave: string | '';
10
- }
11
- export declare enum NodeContactUpdateAction {
12
- REPLACE = 0,
13
- ADD = 1
14
- }
1
+ export {};
@@ -1,8 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.NodeContactUpdateAction = void 0;
4
3
  var NodeContactUpdateAction;
5
4
  (function (NodeContactUpdateAction) {
6
5
  NodeContactUpdateAction[NodeContactUpdateAction["REPLACE"] = 0] = "REPLACE";
7
6
  NodeContactUpdateAction[NodeContactUpdateAction["ADD"] = 1] = "ADD";
8
- })(NodeContactUpdateAction || (exports.NodeContactUpdateAction = NodeContactUpdateAction = {}));
7
+ })(NodeContactUpdateAction || (NodeContactUpdateAction = {}));
@@ -1,9 +1 @@
1
- import { NodeBase, NodeType } from "../Flow";
2
- export interface NodeConversationAssignTo extends NodeBase {
3
- type: NodeType.CONVERSATION_ASSIGN_TO;
4
- handles: ['onOk'];
5
- category: 'action';
6
- description: "Node for assigning the conversation to a specific user or group, allowing for targeted management of conversations within the system.";
7
- userId?: string | "";
8
- groupId?: string | "";
9
- }
1
+ export {};
@@ -1,7 +1 @@
1
- import { NodeBase, NodeType } from "../Flow";
2
- export interface NodeConversationFinalize extends NodeBase {
3
- type: NodeType.CONVERSATION_FINALIZE;
4
- handles: [];
5
- category: 'action';
6
- description: "Node for finalizing the conversation, marking it as complete and potentially triggering cleanup or follow-up actions.";
7
- }
1
+ export {};
@@ -1,17 +1 @@
1
- import { NodeBase, NodeType } from "../Flow";
2
- export interface NodeConversationUpdate extends NodeBase {
3
- type: NodeType.CONVERSATION_UPDATE;
4
- handles: ['onNext'];
5
- category: 'action';
6
- description: "Node for updating conversation details, such as tags or metadata, to manage and organize conversations effectively.";
7
- fieldId: NodeContactUpdateConverFields;
8
- action: NodeConversationUpdateAction;
9
- valueToSave: string | '';
10
- }
11
- export declare enum NodeContactUpdateConverFields {
12
- TAG = 0
13
- }
14
- export declare enum NodeConversationUpdateAction {
15
- REPLACE = 0,
16
- ADD = 1
17
- }
1
+ export {};
@@ -1,12 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.NodeConversationUpdateAction = exports.NodeContactUpdateConverFields = void 0;
4
3
  var NodeContactUpdateConverFields;
5
4
  (function (NodeContactUpdateConverFields) {
6
5
  NodeContactUpdateConverFields[NodeContactUpdateConverFields["TAG"] = 0] = "TAG";
7
- })(NodeContactUpdateConverFields || (exports.NodeContactUpdateConverFields = NodeContactUpdateConverFields = {}));
6
+ })(NodeContactUpdateConverFields || (NodeContactUpdateConverFields = {}));
8
7
  var NodeConversationUpdateAction;
9
8
  (function (NodeConversationUpdateAction) {
10
9
  NodeConversationUpdateAction[NodeConversationUpdateAction["REPLACE"] = 0] = "REPLACE";
11
10
  NodeConversationUpdateAction[NodeConversationUpdateAction["ADD"] = 1] = "ADD";
12
- })(NodeConversationUpdateAction || (exports.NodeConversationUpdateAction = NodeConversationUpdateAction = {}));
11
+ })(NodeConversationUpdateAction || (NodeConversationUpdateAction = {}));
@@ -1,14 +1 @@
1
- import { NodeBase, NodeType } from "../Flow";
2
- export interface NodeFillForm extends NodeBase {
3
- type: NodeType.FILL_FORM;
4
- handles: ['onNext'];
5
- category: 'action';
6
- description: "Node for filling out forms, allowing the flow to collect structured data from users or systems.";
7
- formId?: string | "";
8
- responses: FillFormKeyValue[];
9
- }
10
- export interface FillFormKeyValue {
11
- questionId: string | "";
12
- question: string | "";
13
- responseValue: string | "";
14
- }
1
+ export {};
@@ -1,24 +1 @@
1
- import { NodeBase, NodeType } from "../Flow";
2
- export interface NodeFillTicket extends NodeBase {
3
- type: NodeType.FILL_TICKET;
4
- handles: ['onOk', 'onError'];
5
- category: 'action';
6
- description: "Node for filling out a ticket, allowing the flow to create or update tickets with specified details.";
7
- ticketContactSearchValue: string | '';
8
- ticketContactSearchFieldId: string | '';
9
- ticketContactName: string | '';
10
- ticketGroupId: string;
11
- ticketStatusId: string;
12
- ticketCategoryId: string;
13
- ticketPriority: NodeFillTicketPriority;
14
- ticketSendEmailToContact: boolean;
15
- ticketDescription: string;
16
- ticketAssociateMessages: boolean;
17
- saveAs: string | '';
18
- }
19
- export declare enum NodeFillTicketPriority {
20
- LOW = 100,
21
- NORMAL = 200,
22
- HIGH = 300,
23
- CRITICAL = 400
24
- }
1
+ export {};
@@ -1,10 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.NodeFillTicketPriority = void 0;
4
3
  var NodeFillTicketPriority;
5
4
  (function (NodeFillTicketPriority) {
6
5
  NodeFillTicketPriority[NodeFillTicketPriority["LOW"] = 100] = "LOW";
7
6
  NodeFillTicketPriority[NodeFillTicketPriority["NORMAL"] = 200] = "NORMAL";
8
7
  NodeFillTicketPriority[NodeFillTicketPriority["HIGH"] = 300] = "HIGH";
9
8
  NodeFillTicketPriority[NodeFillTicketPriority["CRITICAL"] = 400] = "CRITICAL";
10
- })(NodeFillTicketPriority || (exports.NodeFillTicketPriority = NodeFillTicketPriority = {}));
9
+ })(NodeFillTicketPriority || (NodeFillTicketPriority = {}));
@@ -1,49 +1 @@
1
- import { NodeBase, NodeType } from "../Flow";
2
- export interface NodeMsgText extends NodeBase {
3
- type: NodeType.MSG_TEXT;
4
- handles: ['onNext'];
5
- category: 'action';
6
- description: "Node for sending text messages, images, videos, or files to a channel. It supports both manual message creation and template-based messages.";
7
- channelId: string;
8
- mode: NodeMsgTextMode;
9
- message: NodeMsgTextMessage | null;
10
- template: NodeMsgTextTemplate | null;
11
- }
12
- export declare class NodeMsgTextTemplate {
13
- id: string | null;
14
- headerVars?: templateVariable[] | null;
15
- bodyVars?: templateVariable[] | null;
16
- buttonVars?: templateVariable[] | null;
17
- }
18
- export declare class templateVariable {
19
- var?: number;
20
- value: string;
21
- btn?: number;
22
- }
23
- export declare class NodeMsgTextMessage {
24
- type: NodeMsgTextMessageType;
25
- text?: string;
26
- caption?: string;
27
- filename?: string;
28
- fileUrl?: string;
29
- buttons?: NodeMsgTextMessageButton[];
30
- }
31
- export declare class NodeMsgTextMessageButton {
32
- id: string;
33
- title: string | '';
34
- type: NodeMsgTextMessageButtonType;
35
- }
36
- export declare enum NodeMsgTextMessageType {
37
- TEXT = 1,
38
- IMAGE = 2,
39
- VIDEO = 3,
40
- FILE = 4
41
- }
42
- export declare enum NodeMsgTextMessageButtonType {
43
- REPLY = 1,
44
- URL = 2
45
- }
46
- export declare enum NodeMsgTextMode {
47
- MANUAL = 1,
48
- TEMPLATE = 2
49
- }
1
+ export {};
@@ -1,32 +1,27 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.NodeMsgTextMode = exports.NodeMsgTextMessageButtonType = exports.NodeMsgTextMessageType = exports.NodeMsgTextMessageButton = exports.NodeMsgTextMessage = exports.templateVariable = exports.NodeMsgTextTemplate = void 0;
4
3
  class NodeMsgTextTemplate {
5
4
  }
6
- exports.NodeMsgTextTemplate = NodeMsgTextTemplate;
7
5
  class templateVariable {
8
6
  }
9
- exports.templateVariable = templateVariable;
10
7
  class NodeMsgTextMessage {
11
8
  }
12
- exports.NodeMsgTextMessage = NodeMsgTextMessage;
13
9
  class NodeMsgTextMessageButton {
14
10
  }
15
- exports.NodeMsgTextMessageButton = NodeMsgTextMessageButton;
16
11
  var NodeMsgTextMessageType;
17
12
  (function (NodeMsgTextMessageType) {
18
13
  NodeMsgTextMessageType[NodeMsgTextMessageType["TEXT"] = 1] = "TEXT";
19
14
  NodeMsgTextMessageType[NodeMsgTextMessageType["IMAGE"] = 2] = "IMAGE";
20
15
  NodeMsgTextMessageType[NodeMsgTextMessageType["VIDEO"] = 3] = "VIDEO";
21
16
  NodeMsgTextMessageType[NodeMsgTextMessageType["FILE"] = 4] = "FILE";
22
- })(NodeMsgTextMessageType || (exports.NodeMsgTextMessageType = NodeMsgTextMessageType = {}));
17
+ })(NodeMsgTextMessageType || (NodeMsgTextMessageType = {}));
23
18
  var NodeMsgTextMessageButtonType;
24
19
  (function (NodeMsgTextMessageButtonType) {
25
20
  NodeMsgTextMessageButtonType[NodeMsgTextMessageButtonType["REPLY"] = 1] = "REPLY";
26
21
  NodeMsgTextMessageButtonType[NodeMsgTextMessageButtonType["URL"] = 2] = "URL";
27
- })(NodeMsgTextMessageButtonType || (exports.NodeMsgTextMessageButtonType = NodeMsgTextMessageButtonType = {}));
22
+ })(NodeMsgTextMessageButtonType || (NodeMsgTextMessageButtonType = {}));
28
23
  var NodeMsgTextMode;
29
24
  (function (NodeMsgTextMode) {
30
25
  NodeMsgTextMode[NodeMsgTextMode["MANUAL"] = 1] = "MANUAL";
31
26
  NodeMsgTextMode[NodeMsgTextMode["TEMPLATE"] = 2] = "TEMPLATE";
32
- })(NodeMsgTextMode || (exports.NodeMsgTextMode = NodeMsgTextMode = {}));
27
+ })(NodeMsgTextMode || (NodeMsgTextMode = {}));