@trii/types 2.10.458 → 2.10.461

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 (25) hide show
  1. package/dist/Conversations/Flows/Nodes/NodeAIChatBot.d.ts +2 -0
  2. package/dist/Conversations/Flows/Nodes/NodeApi.d.ts +2 -0
  3. package/dist/Conversations/Flows/Nodes/NodeConditional.d.ts +2 -0
  4. package/dist/Conversations/Flows/Nodes/NodeContactSearch.d.ts +2 -0
  5. package/dist/Conversations/Flows/Nodes/NodeContactUpdate.d.ts +2 -0
  6. package/dist/Conversations/Flows/Nodes/NodeConversationAssignTo.d.ts +2 -0
  7. package/dist/Conversations/Flows/Nodes/NodeConversationFinalize.d.ts +2 -0
  8. package/dist/Conversations/Flows/Nodes/NodeConversationUpdate.d.ts +2 -0
  9. package/dist/Conversations/Flows/Nodes/NodeFillForm.d.ts +2 -0
  10. package/dist/Conversations/Flows/Nodes/NodeFillTicket.d.ts +2 -0
  11. package/dist/Conversations/Flows/Nodes/NodeGoogleCalendar.d.ts +2 -0
  12. package/dist/Conversations/Flows/Nodes/NodeGoogleMaps.d.ts +2 -0
  13. package/dist/Conversations/Flows/Nodes/NodeMsgText.d.ts +2 -0
  14. package/dist/Conversations/Flows/Nodes/NodeMsgWaitResponse.d.ts +2 -0
  15. package/dist/Conversations/Flows/Nodes/NodeRedirect.d.ts +2 -0
  16. package/dist/Conversations/Flows/Nodes/NodeSendEmail.d.ts +2 -0
  17. package/dist/Conversations/Flows/Nodes/NodeSqlQuery.d.ts +2 -0
  18. package/dist/Conversations/Flows/Nodes/NodeStart.d.ts +2 -0
  19. package/dist/Conversations/Flows/Nodes/NodeStart.js +37 -1
  20. package/dist/Conversations/Flows/Nodes/NodeTimeScheduleControl.d.ts +2 -0
  21. package/dist/Conversations/Flows/Nodes/NodeTimeTimer.d.ts +2 -0
  22. package/dist/Conversations/Flows/Nodes/NodeTimeWaitUntil.d.ts +2 -0
  23. package/dist/Conversations/Flows/Nodes/index.d.ts +2 -0
  24. package/dist/Conversations/Flows/Nodes/index.js +2 -0
  25. package/package.json +1 -1
@@ -1,6 +1,8 @@
1
1
  export declare class NodeAIChatBot {
2
2
  id: string;
3
3
  name: string;
4
+ type: "aiChatBot";
5
+ handles: ['onNext', 'tools'];
4
6
  enableStatics: boolean | false;
5
7
  globalNode: boolean | false;
6
8
  globalNodeCondition: string | "";
@@ -6,6 +6,8 @@ import { Method } from '../../../Common/API/Method';
6
6
  export declare class NodeApi {
7
7
  id: string;
8
8
  name: string;
9
+ type: "api";
10
+ handles: ['onOk', 'onError'];
9
11
  enableStatics: boolean | false;
10
12
  apiUrl?: string | null;
11
13
  apiMethod?: Method | null;
@@ -1,6 +1,8 @@
1
1
  export declare class NodeConditional {
2
2
  id: string;
3
3
  name: string;
4
+ type: "conditional";
5
+ handles: ['onOk', 'onError'];
4
6
  enableStatics: boolean | false;
5
7
  value1: string | '';
6
8
  operator: NodeConditionalOperator;
@@ -1,6 +1,8 @@
1
1
  export declare class NodeContactSearch {
2
2
  id: string;
3
3
  name: string;
4
+ type: "contactSearch";
5
+ handles: ['onOk', 'onError'];
4
6
  enableStatics: boolean | false;
5
7
  contactFieldId: string | '';
6
8
  valueToSearch: string | '';
@@ -1,6 +1,8 @@
1
1
  export declare class NodeContactUpdate {
2
2
  id: string;
3
3
  name: string;
4
+ type: "contactUpdate";
5
+ handles: ['onOk', 'onError'];
4
6
  enableStatics: boolean | false;
5
7
  contactFieldId: string | '';
6
8
  action: NodeContactUpdateAction;
@@ -1,6 +1,8 @@
1
1
  export declare class NodeConversationAssignTo {
2
2
  id: string;
3
3
  name: string;
4
+ type: "conversationAssignTo";
5
+ handles: ['onNext'];
4
6
  enableStatics: boolean | false;
5
7
  groupId?: string | "";
6
8
  }
@@ -1,4 +1,6 @@
1
1
  export declare class NodeConversationFinalize {
2
2
  id: string;
3
3
  name: string;
4
+ type: "conversationFinalize";
5
+ handles: [];
4
6
  }
@@ -1,6 +1,8 @@
1
1
  export declare class NodeConversationUpdate {
2
2
  id: string;
3
3
  name: string;
4
+ type: "conversationUpdate";
5
+ handles: ['onNext'];
4
6
  enableStatics: boolean | false;
5
7
  fieldId: NodeContactUpdateConverFields;
6
8
  action: NodeConversationUpdateAction;
@@ -1,6 +1,8 @@
1
1
  export declare class NodeFillForm {
2
2
  id: string;
3
3
  name: string;
4
+ type: "fillForm";
5
+ handles: ['onNext'];
4
6
  enableStatics: boolean | false;
5
7
  formId?: string | "";
6
8
  responses: FillFormKeyValue[];
@@ -1,6 +1,8 @@
1
1
  export declare class NodeFillTicket {
2
2
  id: string;
3
3
  name: string;
4
+ type: "fillTicket";
5
+ handles: ['onOk', 'onError'];
4
6
  enableStatics: boolean | false;
5
7
  ticketContactSearchValue: string | '';
6
8
  ticketContactSearchFieldId: string | '';
@@ -1,6 +1,8 @@
1
1
  export declare class NodeGoogleCalendar {
2
2
  id: string;
3
3
  name: string;
4
+ type: "googleCalendar";
5
+ handles: ['onNext'];
4
6
  enableStatics: boolean | false;
5
7
  authCredentialId?: string | null;
6
8
  eventsAdd?: boolean | false;
@@ -1,6 +1,8 @@
1
1
  export declare class NodeGoogleMaps {
2
2
  id: string;
3
3
  name: string;
4
+ type: "googleMaps";
5
+ handles: ['onNext'];
4
6
  enableStatics: boolean | false;
5
7
  polygonsEnable?: boolean | false;
6
8
  polygonsId?: string | null;
@@ -1,6 +1,8 @@
1
1
  export declare class NodeMsgText {
2
2
  id: string;
3
3
  name: string;
4
+ type: "msgText";
5
+ handles: ['onNext'];
4
6
  enableStatics: boolean | false;
5
7
  channelId: string;
6
8
  mode: NodeMsgTextMode;
@@ -1,6 +1,8 @@
1
1
  export declare class NodeMsgWaitResponse {
2
2
  id: string;
3
3
  name: string;
4
+ type: "msgWaitResponse";
5
+ handles: ['onNext', 'onTimeOut'];
4
6
  enableStatics: boolean | false;
5
7
  conditions: NodeMsgWaitResponseCondition[];
6
8
  autoResponseOnNoConditionMatchMessage: string | '';
@@ -1,6 +1,8 @@
1
1
  export declare class NodeRedirect {
2
2
  id: string;
3
3
  name: string;
4
+ type: "redirect";
5
+ handles: ['onNext'];
4
6
  flowId?: string | '';
5
7
  nodeId?: string | '';
6
8
  nodeName?: string | '';
@@ -1,6 +1,8 @@
1
1
  export declare class NodeSendEmail {
2
2
  id: string;
3
3
  name: string;
4
+ type: "sendEmail";
5
+ handles: ['onNext'];
4
6
  enableStatics: boolean | false;
5
7
  channelId?: string | "";
6
8
  to?: string | "";
@@ -1,6 +1,8 @@
1
1
  export declare class NodeSqlQuery {
2
2
  id: string;
3
3
  name: string;
4
+ type: "sqlQuery";
5
+ handles: ['onOk', 'onError'];
4
6
  enableStatics: boolean | false;
5
7
  dbType: SqlQueryDbType;
6
8
  connectionString?: string | "";
@@ -1,6 +1,8 @@
1
1
  export declare class NodeStart {
2
2
  id: string;
3
3
  name: string;
4
+ type: "start";
5
+ handles: ['onNext'];
4
6
  trigger: NodeStartTrigger;
5
7
  filters: NodeStartCondition[];
6
8
  onlyOnePerContact: boolean;
@@ -7,6 +7,7 @@ exports.NodeStart = NodeStart;
7
7
  var NodeStartTrigger;
8
8
  (function (NodeStartTrigger) {
9
9
  NodeStartTrigger[NodeStartTrigger["NULL"] = 0] = "NULL";
10
+ //MESSAGE_NEW = 51,
10
11
  NodeStartTrigger[NodeStartTrigger["CONVERSATION_OPENED"] = 101] = "CONVERSATION_OPENED";
11
12
  NodeStartTrigger[NodeStartTrigger["CONVERSATION_CLOSED"] = 102] = "CONVERSATION_CLOSED";
12
13
  NodeStartTrigger[NodeStartTrigger["CONTACT_TAG_UPDATED"] = 200] = "CONTACT_TAG_UPDATED";
@@ -25,11 +26,20 @@ exports.NodeStartConstants = {
25
26
  fields: []
26
27
  };
27
28
  switch (Trigger) {
29
+ // case NodeStartTrigger.MESSAGE_NEW:
30
+ // {
31
+ // data.fields = [
32
+ // 'FLOW_NODE_START_FILTER_ORIGIN',
33
+ // 'FLOW_NODE_START_FILTER_CHANNEL'
34
+ // ]
35
+ // break;
36
+ // }
28
37
  case NodeStartTrigger.CONVERSATION_OPENED:
29
38
  {
30
39
  data.fields = [
31
40
  'FLOW_NODE_START_FILTER_ORIGIN',
32
- 'FLOW_NODE_START_FILTER_CHANNEL'
41
+ 'FLOW_NODE_START_FILTER_CHANNEL',
42
+ 'FLOW_NODE_START_FILTER_MESSAGE'
33
43
  ];
34
44
  break;
35
45
  }
@@ -82,6 +92,25 @@ exports.NodeStartConstants = {
82
92
  values: [],
83
93
  };
84
94
  switch (Trigger) {
95
+ // case NodeStartTrigger.MESSAGE_NEW:
96
+ // {
97
+ // if (filter === 'FLOW_NODE_START_FILTER_ORIGIN') {
98
+ // data.conditions = [
99
+ // 'FLOW_NODE_START_CONDITION_EQUAL',
100
+ // ];
101
+ // data.values = [
102
+ // 'FLOW_NODE_START_VALUE_AGENT',
103
+ // 'FLOW_NODE_START_VALUE_CONTACT',
104
+ // ];
105
+ // }
106
+ // if (filter === 'FLOW_NODE_START_FILTER_CHANNEL') {
107
+ // data.conditions = [
108
+ // 'FLOW_NODE_START_CONDITION_EQUAL',
109
+ // ];
110
+ // data.values = [];
111
+ // }
112
+ // break;
113
+ // }
85
114
  case NodeStartTrigger.CONVERSATION_OPENED:
86
115
  {
87
116
  if (filter === 'FLOW_NODE_START_FILTER_ORIGIN') {
@@ -99,6 +128,13 @@ exports.NodeStartConstants = {
99
128
  ];
100
129
  data.values = [];
101
130
  }
131
+ if (filter === 'FLOW_NODE_START_FILTER_MESSAGE') {
132
+ data.conditions = [
133
+ 'FLOW_NODE_START_CONDITION_EQUAL',
134
+ 'FLOW_NODE_START_CONDITION_CONTAINS',
135
+ ];
136
+ data.values = [];
137
+ }
102
138
  break;
103
139
  }
104
140
  case NodeStartTrigger.CONVERSATION_CLOSED:
@@ -1,6 +1,8 @@
1
1
  export declare class NodeTimeScheduleControl {
2
2
  id: string;
3
3
  name: string;
4
+ type: "timeScheduleControl";
5
+ handles: ['onAfterHours', 'onHoliday', 'onTimeRange-{id}'];
4
6
  enableStatics: boolean | false;
5
7
  scheduleId?: string | '';
6
8
  }
@@ -1,6 +1,8 @@
1
1
  export declare class NodeTimeTimer {
2
2
  id: string;
3
3
  name: string;
4
+ type: "timeTimer";
5
+ handles: ['onNext'];
4
6
  enableStatics: boolean | false;
5
7
  days?: number | 0;
6
8
  hours?: number | 0;
@@ -1,6 +1,8 @@
1
1
  export declare class NodeTimeWaitUntil {
2
2
  id: string;
3
3
  name: string;
4
+ type: "timeWaitUntil";
5
+ handles: ['onNext'];
4
6
  enableStatics: boolean | false;
5
7
  scheduleId?: string | '';
6
8
  }
@@ -17,3 +17,5 @@ export * from './NodeTimeScheduleControl';
17
17
  export * from './NodeTimeTimer';
18
18
  export * from './NodeTimeWaitUntil';
19
19
  export * from './NodeAIChatBot';
20
+ export * from './NodeGoogleCalendar';
21
+ export * from './NodeGoogleMaps';
@@ -33,3 +33,5 @@ __exportStar(require("./NodeTimeScheduleControl"), exports);
33
33
  __exportStar(require("./NodeTimeTimer"), exports);
34
34
  __exportStar(require("./NodeTimeWaitUntil"), exports);
35
35
  __exportStar(require("./NodeAIChatBot"), exports);
36
+ __exportStar(require("./NodeGoogleCalendar"), exports);
37
+ __exportStar(require("./NodeGoogleMaps"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trii/types",
3
- "version": "2.10.458",
3
+ "version": "2.10.461",
4
4
  "description": "Types definitions for Trii projects - ",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",