@trii/types 2.10.480 → 2.10.482

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 (56) hide show
  1. package/dist/Conversations/Flows/Definitions.d.ts +1 -0
  2. package/dist/Conversations/Flows/Definitions.js +120 -16
  3. package/dist/Conversations/Flows/Flow.d.ts +9 -1
  4. package/dist/Conversations/Flows/Flow.js +4 -0
  5. package/dist/Conversations/Flows/Nodes/NodeAIChatBot.js +124 -15
  6. package/dist/Conversations/Flows/Nodes/NodeApi.d.ts +2 -1
  7. package/dist/Conversations/Flows/Nodes/NodeApi.js +175 -0
  8. package/dist/Conversations/Flows/Nodes/NodeConditional.d.ts +2 -1
  9. package/dist/Conversations/Flows/Nodes/NodeConditional.js +94 -16
  10. package/dist/Conversations/Flows/Nodes/NodeContactSearch.d.ts +2 -1
  11. package/dist/Conversations/Flows/Nodes/NodeContactSearch.js +62 -0
  12. package/dist/Conversations/Flows/Nodes/NodeContactUpdate.d.ts +2 -1
  13. package/dist/Conversations/Flows/Nodes/NodeContactUpdate.js +62 -5
  14. package/dist/Conversations/Flows/Nodes/NodeConversationAssignTo.d.ts +2 -1
  15. package/dist/Conversations/Flows/Nodes/NodeConversationAssignTo.js +59 -0
  16. package/dist/Conversations/Flows/Nodes/NodeConversationFinalize.d.ts +2 -1
  17. package/dist/Conversations/Flows/Nodes/NodeConversationFinalize.js +40 -0
  18. package/dist/Conversations/Flows/Nodes/NodeConversationUpdate.d.ts +2 -1
  19. package/dist/Conversations/Flows/Nodes/NodeConversationUpdate.js +71 -9
  20. package/dist/Conversations/Flows/Nodes/NodeFillForm.d.ts +2 -1
  21. package/dist/Conversations/Flows/Nodes/NodeFillForm.js +63 -0
  22. package/dist/Conversations/Flows/Nodes/NodeMsgReply.d.ts +3 -0
  23. package/dist/Conversations/Flows/Nodes/NodeMsgReply.js +123 -0
  24. package/dist/Conversations/Flows/Nodes/NodeMsgSend.d.ts +3 -0
  25. package/dist/Conversations/Flows/Nodes/NodeMsgSend.js +165 -0
  26. package/dist/Conversations/Flows/Nodes/NodeMsgWaitResponse.d.ts +2 -1
  27. package/dist/Conversations/Flows/Nodes/NodeMsgWaitResponse.js +116 -0
  28. package/dist/Conversations/Flows/Nodes/NodeRedirect.d.ts +2 -1
  29. package/dist/Conversations/Flows/Nodes/NodeRedirect.js +60 -0
  30. package/dist/Conversations/Flows/Nodes/NodeSendEmail.d.ts +2 -1
  31. package/dist/Conversations/Flows/Nodes/NodeSendEmail.js +78 -0
  32. package/dist/Conversations/Flows/Nodes/NodeSqlQuery.d.ts +2 -5
  33. package/dist/Conversations/Flows/Nodes/NodeSqlQuery.js +72 -7
  34. package/dist/Conversations/Flows/Nodes/NodeTimeScheduleControl.d.ts +2 -1
  35. package/dist/Conversations/Flows/Nodes/NodeTimeScheduleControl.js +57 -0
  36. package/dist/Conversations/Flows/Nodes/NodeTimeTimer.d.ts +2 -1
  37. package/dist/Conversations/Flows/Nodes/NodeTimeTimer.js +73 -0
  38. package/dist/Conversations/Flows/Nodes/NodeTimeWaitUntil.d.ts +2 -1
  39. package/dist/Conversations/Flows/Nodes/NodeTimeWaitUntil.js +48 -0
  40. package/dist/Conversations/Flows/Nodes/NodeToolCalculator.d.ts +2 -1
  41. package/dist/Conversations/Flows/Nodes/NodeToolCalculator.js +32 -0
  42. package/dist/Conversations/Flows/Nodes/NodeToolContacts.d.ts +2 -1
  43. package/dist/Conversations/Flows/Nodes/NodeToolContacts.js +54 -0
  44. package/dist/Conversations/Flows/Nodes/NodeToolFunction.d.ts +2 -1
  45. package/dist/Conversations/Flows/Nodes/NodeToolFunction.js +40 -0
  46. package/dist/Conversations/Flows/Nodes/NodeToolGoogleCalendar.d.ts +2 -1
  47. package/dist/Conversations/Flows/Nodes/NodeToolGoogleCalendar.js +82 -0
  48. package/dist/Conversations/Flows/Nodes/NodeToolKnowledge.d.ts +2 -1
  49. package/dist/Conversations/Flows/Nodes/NodeToolKnowledge.js +47 -0
  50. package/dist/Conversations/Flows/Nodes/NodeToolMapsCheckPolygon.d.ts +2 -1
  51. package/dist/Conversations/Flows/Nodes/NodeToolMapsCheckPolygon.js +54 -0
  52. package/dist/Conversations/Flows/Nodes/NodeToolMcpClient.d.ts +2 -1
  53. package/dist/Conversations/Flows/Nodes/NodeToolMcpClient.js +40 -0
  54. package/dist/Conversations/Flows/Nodes/index.d.ts +2 -3
  55. package/dist/Conversations/Flows/Nodes/index.js +2 -3
  56. package/package.json +1 -1
@@ -8,6 +8,7 @@ export declare const triggerNodeTypeList: INodeCategory[];
8
8
  export declare const actionNodeTypeList: INodeCategory[];
9
9
  export declare const toolNodeTypeList: INodeCategory[];
10
10
  export declare const agentNodeTypeList: INodeCategory[];
11
+ export declare const messageNodeTypeList: INodeCategory[];
11
12
  export interface ICategory {
12
13
  name: string;
13
14
  nodes: INodeCategory[];
@@ -1,7 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CategoryList = exports.agentNodeTypeList = exports.toolNodeTypeList = exports.actionNodeTypeList = exports.triggerNodeTypeList = void 0;
3
+ exports.CategoryList = exports.messageNodeTypeList = exports.agentNodeTypeList = exports.toolNodeTypeList = exports.actionNodeTypeList = exports.triggerNodeTypeList = void 0;
4
+ const Nodes_1 = require("./Nodes");
4
5
  const NodeStart_1 = require("./Nodes/NodeStart");
6
+ const NodeToolContacts_1 = require("./Nodes/NodeToolContacts");
7
+ const NodeToolFunction_1 = require("./Nodes/NodeToolFunction");
5
8
  exports.triggerNodeTypeList = [
6
9
  {
7
10
  id: 'StartNewConversation',
@@ -18,46 +21,143 @@ exports.actionNodeTypeList = [
18
21
  {
19
22
  id: 'Api',
20
23
  name: 'API Call',
21
- definition: NodeStart_1.defaultNodeStartNewConversation
24
+ definition: Nodes_1.defaultNodeApi
22
25
  },
23
26
  {
24
27
  id: 'Conditional',
25
28
  name: 'Conditional',
26
- definition: NodeStart_1.defaultNodeStartNewConversation
29
+ definition: Nodes_1.defaultNodeConditional
30
+ },
31
+ {
32
+ id: 'ContactSearch',
33
+ name: 'Contact Search',
34
+ definition: Nodes_1.defaultNodeContactSearch
35
+ },
36
+ {
37
+ id: 'ContactUpdate',
38
+ name: 'Contact Update',
39
+ definition: Nodes_1.defaultNodeContactUpdate
40
+ },
41
+ {
42
+ id: 'ConversationAssignTo',
43
+ name: 'Conversation Assign To',
44
+ definition: Nodes_1.defaultNodeConversationAssignTo
45
+ },
46
+ {
47
+ id: 'ConversationFinalize',
48
+ name: 'Conversation Finalize',
49
+ definition: Nodes_1.defaultNodeConversationFinalize
50
+ },
51
+ {
52
+ id: 'ConversationUpdate',
53
+ name: 'Conversation Update',
54
+ definition: Nodes_1.defaultNodeConversationUpdate
55
+ },
56
+ {
57
+ id: 'FillForm',
58
+ name: 'Fill Form',
59
+ definition: Nodes_1.defaultNodeFillForm
27
60
  },
28
61
  {
29
62
  id: 'Redirect',
30
63
  name: 'Redirect',
31
- definition: NodeStart_1.defaultNodeStartNewConversation
64
+ definition: Nodes_1.defaultNodeRedirect
32
65
  },
33
66
  {
34
- id: 'Function',
35
- name: 'Function',
36
- definition: NodeStart_1.defaultNodeStartNewConversation
67
+ id: 'SqlQuery',
68
+ name: 'SQL Query',
69
+ definition: Nodes_1.defaultNodeSqlQuery
37
70
  },
38
71
  {
39
- id: 'Message',
40
- name: 'Message',
41
- definition: NodeStart_1.defaultNodeStartNewConversation
72
+ id: 'TimeScheduleControl',
73
+ name: 'Time Schedule Control',
74
+ definition: Nodes_1.defaultNodeTimeScheduleControl
42
75
  },
43
76
  {
44
- id: 'Wait',
45
- name: 'Wait',
46
- definition: NodeStart_1.defaultNodeStartNewConversation
77
+ id: 'TimeTimer',
78
+ name: 'Timer',
79
+ definition: Nodes_1.defaultNodeTimeTimer
80
+ },
81
+ {
82
+ id: 'WaitUntil',
83
+ name: 'Wait Until',
84
+ definition: Nodes_1.defaultNodeTimeWaitUntil
47
85
  }
48
86
  ];
49
87
  exports.toolNodeTypeList = [
50
88
  {
51
89
  id: 'Calculator',
52
- name: 'Tool',
53
- definition: NodeStart_1.defaultNodeStartNewConversation
90
+ name: 'Calculator',
91
+ definition: Nodes_1.defaultNodeToolCalculator
92
+ },
93
+ {
94
+ id: 'Contacts',
95
+ name: 'Contacts',
96
+ definition: NodeToolContacts_1.defaultNodeToolTriiContacts
97
+ },
98
+ {
99
+ id: 'Function',
100
+ name: 'Function',
101
+ definition: NodeToolFunction_1.defaultNodeToolFunction
102
+ },
103
+ {
104
+ id: 'GoogleCalendar',
105
+ name: 'Google Calendar',
106
+ definition: Nodes_1.defaultNodeToolGoogleCalendar
107
+ },
108
+ {
109
+ id: 'Knowledge',
110
+ name: 'Knowledge Base',
111
+ definition: Nodes_1.defaultNodeToolKnowledge
112
+ },
113
+ {
114
+ id: 'MapsCheckPolygon',
115
+ name: 'Maps Check Polygon',
116
+ definition: Nodes_1.defaultNodeToolMapsCheckPolygon
117
+ },
118
+ {
119
+ id: 'McpClient',
120
+ name: 'MCP Client',
121
+ definition: Nodes_1.defaultNodeToolMcpClient
54
122
  }
55
123
  ];
56
124
  exports.agentNodeTypeList = [
57
125
  {
58
126
  id: 'AIChatBot',
59
127
  name: 'AI Chat Bot',
60
- definition: NodeStart_1.defaultNodeStartNewConversation
128
+ definition: Nodes_1.defaultNodeNodeAIChatBot
129
+ }
130
+ ];
131
+ exports.messageNodeTypeList = [
132
+ {
133
+ id: 'MsgReply',
134
+ name: 'Reply',
135
+ definition: Nodes_1.defaultNodeMsgTextReply
136
+ },
137
+ {
138
+ id: 'MsgTemplateReply',
139
+ name: 'Reply w/Template',
140
+ definition: Nodes_1.defaultNodeMsgTemplateReply
141
+ },
142
+ {
143
+ id: 'MsgTemplate',
144
+ name: 'Send Template',
145
+ definition: Nodes_1.defaultNodeMsgTemplate
146
+ },
147
+ {
148
+ id: 'MsgText',
149
+ name: 'Send Text',
150
+ definition: Nodes_1.defaultNodeMsgText
151
+ },
152
+ {
153
+ id: 'MsgWaitResponse',
154
+ name: 'Wait Response',
155
+ definition: Nodes_1.defaultNodeMsgWaitResponse
156
+ },
157
+ {
158
+ id: 'MsgSendEmail',
159
+ name: 'Send Email',
160
+ definition: Nodes_1.defaultNodeSendEmail
61
161
  }
62
162
  ];
63
163
  exports.CategoryList = [
@@ -76,5 +176,9 @@ exports.CategoryList = [
76
176
  {
77
177
  name: 'Agents',
78
178
  nodes: exports.agentNodeTypeList
179
+ },
180
+ {
181
+ name: 'Messages',
182
+ nodes: exports.messageNodeTypeList
79
183
  }
80
184
  ];
@@ -24,8 +24,11 @@ export declare enum NodeType {
24
24
  START_CONTACT_FIELD_UPDATED = 15,
25
25
  START_CONTACT_FIELD_DATES = 16,
26
26
  START_CONTACT_EVENT_DATE = 17,
27
+ MSG_TEMPLATE = 20,
27
28
  MSG_TEXT = 21,
28
29
  MSG_WAIT_RESPONSE = 22,
30
+ MSG_TEMPLATE_REPLY = 23,
31
+ MSG_TEXT_REPLY = 24,
29
32
  SQL_QUERY = 31,
30
33
  API = 32,
31
34
  SEND_EMAIL = 33,
@@ -48,10 +51,11 @@ export declare enum NodeType {
48
51
  TOOL_MCP_CLIENT = 204,
49
52
  TOOL_KNOWLEDGE = 205,
50
53
  TOOL_FUNCTION = 206,
54
+ TOOL_CALCULATOR = 207,
51
55
  TOOL_GOOGLE_CALENDAR = 251,
52
56
  TOOL_GOOGLE_MAPS = 252
53
57
  }
54
- export type NodeCategory = 'trigger' | 'action' | 'tool' | 'agent';
58
+ export type NodeCategory = 'trigger' | 'action' | 'tool' | 'agent' | 'message';
55
59
  export interface IReactFlowNode {
56
60
  id: string;
57
61
  type: NodeType;
@@ -113,6 +117,10 @@ export interface INodeHandle {
113
117
  nameKey?: string;
114
118
  type: 'source' | 'target';
115
119
  position: 'left' | 'right' | 'top' | 'bottom';
120
+ /**
121
+ * Si permite múltiples conexiones
122
+ */
123
+ multiple?: boolean;
116
124
  }
117
125
  export interface INodeProperty {
118
126
  /**
@@ -11,8 +11,11 @@ var NodeType;
11
11
  NodeType[NodeType["START_CONTACT_FIELD_UPDATED"] = 15] = "START_CONTACT_FIELD_UPDATED";
12
12
  NodeType[NodeType["START_CONTACT_FIELD_DATES"] = 16] = "START_CONTACT_FIELD_DATES";
13
13
  NodeType[NodeType["START_CONTACT_EVENT_DATE"] = 17] = "START_CONTACT_EVENT_DATE";
14
+ NodeType[NodeType["MSG_TEMPLATE"] = 20] = "MSG_TEMPLATE";
14
15
  NodeType[NodeType["MSG_TEXT"] = 21] = "MSG_TEXT";
15
16
  NodeType[NodeType["MSG_WAIT_RESPONSE"] = 22] = "MSG_WAIT_RESPONSE";
17
+ NodeType[NodeType["MSG_TEMPLATE_REPLY"] = 23] = "MSG_TEMPLATE_REPLY";
18
+ NodeType[NodeType["MSG_TEXT_REPLY"] = 24] = "MSG_TEXT_REPLY";
16
19
  NodeType[NodeType["SQL_QUERY"] = 31] = "SQL_QUERY";
17
20
  NodeType[NodeType["API"] = 32] = "API";
18
21
  NodeType[NodeType["SEND_EMAIL"] = 33] = "SEND_EMAIL";
@@ -35,6 +38,7 @@ var NodeType;
35
38
  NodeType[NodeType["TOOL_MCP_CLIENT"] = 204] = "TOOL_MCP_CLIENT";
36
39
  NodeType[NodeType["TOOL_KNOWLEDGE"] = 205] = "TOOL_KNOWLEDGE";
37
40
  NodeType[NodeType["TOOL_FUNCTION"] = 206] = "TOOL_FUNCTION";
41
+ NodeType[NodeType["TOOL_CALCULATOR"] = 207] = "TOOL_CALCULATOR";
38
42
  NodeType[NodeType["TOOL_GOOGLE_CALENDAR"] = 251] = "TOOL_GOOGLE_CALENDAR";
39
43
  NodeType[NodeType["TOOL_GOOGLE_MAPS"] = 252] = "TOOL_GOOGLE_MAPS";
40
44
  })(NodeType || (exports.NodeType = NodeType = {}));
@@ -3,42 +3,151 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.defaultNodeNodeAIChatBot = void 0;
4
4
  const Flow_1 = require("../Flow");
5
5
  exports.defaultNodeNodeAIChatBot = {
6
- id: "AIChatBot-{uid}",
6
+ id: "NodeNodeAIChatBot-{uid}",
7
7
  type: Flow_1.NodeType.AI_CHATBOT,
8
- category: 'trigger',
9
- description: "Triggered when a new conversation is created",
8
+ category: 'agent',
9
+ description: "Node for AI Chat Bot operations, such as sending messages or managing conversations with an AI model.",
10
10
  tags: [],
11
11
  version: 1,
12
12
  handlesIn: [
13
13
  {
14
+ id: "onStart-{node.id}",
14
15
  type: 'target',
15
16
  position: 'left',
16
- id: "1",
17
- name: "IN"
17
+ name: "IN",
18
+ nameKey: 'NODE_AICHATBOT_IN'
18
19
  }
19
20
  ],
20
21
  handlesOut: [
21
22
  {
22
- id: "onOk-{node.id}",
23
+ id: "aiTools-{node.id}",
23
24
  type: 'source',
24
25
  position: 'right',
25
- name: "Ok",
26
- nameKey: 'NODE_START_OK'
26
+ name: "Tools",
27
+ nameKey: 'NODE_AICHATBOT_TOOLS',
28
+ multiple: true
27
29
  },
28
30
  {
29
- id: "onError",
31
+ id: "aiTransitions-{node.id}",
32
+ type: 'source',
33
+ position: 'right',
34
+ name: "Transitions",
35
+ nameKey: 'NODE_AICHATBOT_TRANSITIONS',
36
+ multiple: true
37
+ },
38
+ {
39
+ id: "aiError-{node.id}",
30
40
  type: 'source',
31
41
  position: 'right',
32
42
  name: "Error",
33
- nameKey: 'NODE_START_ERROR'
43
+ nameKey: 'NODE_AICHATBOT_ERROR'
34
44
  }
35
45
  ],
36
- name: "START BY NEW CONVERSATION",
37
- nameKey: 'NODE_START_NAME',
46
+ name: "AI Agent",
47
+ nameKey: 'NODE_AICHATBOT_NAME',
38
48
  enableStatics: false,
39
- // onlyOnePerContact: boolean;
40
- // onlyOnePerContactAddress: boolean;
41
- properties: [],
49
+ properties: [
50
+ {
51
+ type: 'string',
52
+ id: 'prompt',
53
+ label: 'Prompt',
54
+ labelKey: 'NODE_AICHATBOT_PROMPT',
55
+ optional: false,
56
+ default: '',
57
+ placeholder: 'Enter the prompt for the AI model',
58
+ rows: 3
59
+ },
60
+ {
61
+ type: 'string',
62
+ id: 'llmProvider',
63
+ label: 'LLM Provider',
64
+ labelKey: 'NODE_AICHATBOT_LLM_PROVIDER',
65
+ optional: false,
66
+ },
67
+ {
68
+ type: 'string',
69
+ id: 'llmModel',
70
+ label: 'LLM Model',
71
+ labelKey: 'NODE_AICHATBOT_LLM_MODEL',
72
+ optional: true,
73
+ },
74
+ {
75
+ type: 'string',
76
+ id: 'credentialId',
77
+ label: 'Credential ID',
78
+ labelKey: 'NODE_AICHATBOT_CREDENTIAL_ID',
79
+ optional: true,
80
+ default: '',
81
+ placeholder: 'API Key for authentication',
82
+ },
83
+ {
84
+ type: 'number',
85
+ id: 'llmTemperature',
86
+ label: 'LLM Temperature',
87
+ labelKey: 'NODE_AICHATBOT_LLM_TEMPERATURE',
88
+ optional: true,
89
+ default: 0.7,
90
+ },
91
+ {
92
+ type: 'number',
93
+ id: 'llmMaxTokens',
94
+ label: 'LLM Max Tokens',
95
+ labelKey: 'NODE_AICHATBOT_LLM_MAX_TOKENS',
96
+ optional: true,
97
+ default: 1000,
98
+ },
99
+ {
100
+ type: 'number',
101
+ id: 'llmTopP',
102
+ label: 'LLM Top P',
103
+ labelKey: 'NODE_AICHATBOT_LLM_TOP_P',
104
+ optional: true,
105
+ default: 1,
106
+ },
107
+ {
108
+ type: 'number',
109
+ id: 'retryCount',
110
+ label: 'Retry Count',
111
+ labelKey: 'NODE_AICHATBOT_RETRY_COUNT',
112
+ optional: true,
113
+ default: 3,
114
+ },
115
+ {
116
+ type: 'number',
117
+ id: 'retryDelay',
118
+ label: 'Retry Delay (ms)',
119
+ labelKey: 'NODE_AICHATBOT_RETRY_DELAY_MS',
120
+ optional: true,
121
+ default: 1000,
122
+ },
123
+ {
124
+ type: 'tabs',
125
+ id: 'globalNodeTab',
126
+ label: 'Global Node Settings',
127
+ labelKey: 'NODE_AICHATBOT_GLOBAL_NODE_TAB',
128
+ optional: true,
129
+ tabs: [
130
+ {
131
+ type: 'boolean',
132
+ id: 'globalNode',
133
+ label: 'Global Node',
134
+ labelKey: 'NODE_AICHATBOT_GLOBAL_NODE',
135
+ optional: true,
136
+ default: false,
137
+ },
138
+ {
139
+ type: 'string',
140
+ id: 'globalNodeCondition',
141
+ label: 'Global Node Condition',
142
+ labelKey: 'NODE_AICHATBOT_GLOBAL_NODE_CONDITION',
143
+ optional: true,
144
+ default: '',
145
+ placeholder: 'Condition for global node execution'
146
+ }
147
+ ]
148
+ }
149
+ ],
150
+ values: undefined,
42
151
  color: '#00bcd4', // Cyan color for the start node
43
152
  icon: '',
44
153
  badge: undefined,
@@ -1 +1,2 @@
1
- export {};
1
+ import { INode } from "../Flow";
2
+ export declare const defaultNodeApi: INode;
@@ -1,2 +1,177 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.defaultNodeApi = void 0;
4
+ const Flow_1 = require("../Flow");
5
+ exports.defaultNodeApi = {
6
+ id: "NodeApi-{uid}",
7
+ type: Flow_1.NodeType.API,
8
+ category: 'action',
9
+ description: "Node for making API calls, allowing for dynamic interactions with external services.",
10
+ tags: [],
11
+ version: 1,
12
+ handlesIn: [
13
+ {
14
+ id: "onStart-{node.id}",
15
+ type: 'target',
16
+ position: 'left',
17
+ name: "IN",
18
+ nameKey: 'NODE_API_IN'
19
+ }
20
+ ],
21
+ handlesOut: [
22
+ {
23
+ id: "onNext-{node.id}",
24
+ type: 'source',
25
+ position: 'right',
26
+ name: "Next",
27
+ nameKey: 'NODE_API_NEXT'
28
+ }
29
+ ],
30
+ name: "API Node",
31
+ nameKey: 'NODE_API_NAME',
32
+ enableStatics: false,
33
+ properties: [
34
+ {
35
+ type: 'string',
36
+ id: 'url',
37
+ label: 'URL',
38
+ labelKey: 'NODE_API_URL',
39
+ optional: false,
40
+ default: '',
41
+ placeholder: 'Enter the URL for the API endpoint'
42
+ },
43
+ {
44
+ type: 'options',
45
+ id: 'method',
46
+ label: 'Method',
47
+ labelKey: 'NODE_API_METHOD',
48
+ optional: false,
49
+ default: 'GET',
50
+ options: [
51
+ { id: 'GET', label: 'GET' },
52
+ { id: 'POST', label: 'POST' },
53
+ { id: 'PUT', label: 'PUT' },
54
+ { id: 'DELETE', label: 'DELETE' },
55
+ { id: 'PATCH', label: 'PATCH' },
56
+ { id: 'HEAD', label: 'HEAD' },
57
+ { id: 'OPTIONS', label: 'OPTIONS' }
58
+ ]
59
+ },
60
+ {
61
+ type: 'options',
62
+ id: 'authType',
63
+ label: 'Authentication Type',
64
+ labelKey: 'NODE_API_AUTH_TYPE',
65
+ optional: true,
66
+ default: 'NONE',
67
+ options: [
68
+ { id: 'NONE', label: 'None' },
69
+ { id: 'BASIC', label: 'Basic Auth' },
70
+ { id: 'API_KEY', label: 'API Key' },
71
+ { id: 'BEARER', label: 'Bearer Token' }
72
+ ]
73
+ },
74
+ {
75
+ type: 'array',
76
+ id: 'authBasic',
77
+ label: 'Basic Authentication',
78
+ labelKey: 'NODE_API_AUTH_BASIC',
79
+ show: {
80
+ authType: 'BASIC'
81
+ },
82
+ optional: true,
83
+ array: [
84
+ {
85
+ type: 'string',
86
+ id: 'username',
87
+ label: 'Username',
88
+ labelKey: 'NODE_API_AUTH_BASIC_USERNAME',
89
+ default: '',
90
+ optional: false
91
+ },
92
+ {
93
+ type: 'string',
94
+ id: 'password',
95
+ label: 'Password',
96
+ labelKey: 'NODE_API_AUTH_BASIC_PASSWORD',
97
+ default: '',
98
+ optional: false
99
+ }
100
+ ],
101
+ },
102
+ {
103
+ type: 'array',
104
+ id: 'authApiKey',
105
+ label: 'API Key Authentication',
106
+ labelKey: 'NODE_API_AUTH_API_KEY',
107
+ show: {
108
+ authType: 'API_KEY'
109
+ },
110
+ optional: true,
111
+ array: [
112
+ {
113
+ type: 'string',
114
+ id: 'headerKey',
115
+ label: 'API Header Key',
116
+ labelKey: 'NODE_API_AUTH_API_KEY_NAME'
117
+ },
118
+ {
119
+ type: 'string',
120
+ id: 'key',
121
+ label: 'API Key',
122
+ labelKey: 'NODE_API_AUTH_API_KEY_KEY'
123
+ }
124
+ ]
125
+ },
126
+ {
127
+ type: 'array',
128
+ id: 'authBearer',
129
+ label: 'Bearer Token Authentication',
130
+ show: {
131
+ authType: 'BEARER'
132
+ },
133
+ labelKey: 'NODE_API_AUTH_BEARER_TOKEN',
134
+ optional: true,
135
+ array: [
136
+ {
137
+ type: 'string',
138
+ id: 'token',
139
+ label: 'Bearer Token',
140
+ labelKey: 'NODE_API_AUTH_BEARER_TOKEN'
141
+ }
142
+ ]
143
+ },
144
+ {
145
+ id: 'body',
146
+ type: 'string',
147
+ label: 'Request Body',
148
+ labelKey: 'NODE_API_REQUEST_BODY',
149
+ optional: true,
150
+ acceptVariable: true,
151
+ placeholder: 'Enter the request body in JSON format',
152
+ rows: 5
153
+ },
154
+ {
155
+ type: 'options',
156
+ id: 'responseContentType',
157
+ label: 'Response Content Type',
158
+ labelKey: 'NODE_API_CONTENT_TYPE',
159
+ optional: true,
160
+ default: 'application/json',
161
+ options: [
162
+ { id: 'application/json', label: 'application/json' },
163
+ { id: 'application/x-www-form-urlencoded', label: 'application/x-www-form-urlencoded' },
164
+ { id: 'text/plain', label: 'text/plain' },
165
+ { id: 'multipart/form-data', label: 'multipart/form-data' }
166
+ ]
167
+ }
168
+ ],
169
+ values: undefined,
170
+ color: '#00bcd4', // Cyan color for the start node
171
+ icon: '',
172
+ badge: undefined,
173
+ hideInput: true,
174
+ hideOutput: false,
175
+ author: '',
176
+ documentation: '',
177
+ };
@@ -1 +1,2 @@
1
- export {};
1
+ import { INode } from "../Flow";
2
+ export declare const defaultNodeConditional: INode;