@trii/types 2.10.457 → 2.10.460

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 (30) hide show
  1. package/dist/Conversations/Flows/Flow.d.ts +4 -1
  2. package/dist/Conversations/Flows/Flow.js +3 -0
  3. package/dist/Conversations/Flows/Nodes/NodeAIChatBot.d.ts +2 -0
  4. package/dist/Conversations/Flows/Nodes/NodeApi.d.ts +2 -0
  5. package/dist/Conversations/Flows/Nodes/NodeConditional.d.ts +2 -0
  6. package/dist/Conversations/Flows/Nodes/NodeContactSearch.d.ts +2 -0
  7. package/dist/Conversations/Flows/Nodes/NodeContactUpdate.d.ts +2 -0
  8. package/dist/Conversations/Flows/Nodes/NodeConversationAssignTo.d.ts +2 -0
  9. package/dist/Conversations/Flows/Nodes/NodeConversationFinalize.d.ts +2 -0
  10. package/dist/Conversations/Flows/Nodes/NodeConversationUpdate.d.ts +2 -0
  11. package/dist/Conversations/Flows/Nodes/NodeFillForm.d.ts +2 -0
  12. package/dist/Conversations/Flows/Nodes/NodeFillTicket.d.ts +2 -0
  13. package/dist/Conversations/Flows/Nodes/NodeGoogleCalendar.d.ts +19 -0
  14. package/dist/Conversations/Flows/Nodes/NodeGoogleCalendar.js +6 -0
  15. package/dist/Conversations/Flows/Nodes/NodeGoogleMaps copy.d.ts +12 -0
  16. package/dist/Conversations/Flows/Nodes/NodeGoogleMaps copy.js +6 -0
  17. package/dist/Conversations/Flows/Nodes/NodeGoogleMaps.d.ts +2 -0
  18. package/dist/Conversations/Flows/Nodes/NodeMsgText.d.ts +2 -0
  19. package/dist/Conversations/Flows/Nodes/NodeMsgWaitResponse.d.ts +2 -0
  20. package/dist/Conversations/Flows/Nodes/NodeRedirect.d.ts +2 -0
  21. package/dist/Conversations/Flows/Nodes/NodeSendEmail.d.ts +2 -0
  22. package/dist/Conversations/Flows/Nodes/NodeSqlQuery.d.ts +2 -0
  23. package/dist/Conversations/Flows/Nodes/NodeStart.d.ts +2 -0
  24. package/dist/Conversations/Flows/Nodes/NodeStart.js +28 -0
  25. package/dist/Conversations/Flows/Nodes/NodeTimeScheduleControl.d.ts +2 -0
  26. package/dist/Conversations/Flows/Nodes/NodeTimeTimer.d.ts +2 -0
  27. package/dist/Conversations/Flows/Nodes/NodeTimeWaitUntil.d.ts +2 -0
  28. package/dist/Conversations/Flows/Nodes/index.d.ts +2 -0
  29. package/dist/Conversations/Flows/Nodes/index.js +2 -0
  30. package/package.json +1 -1
@@ -49,7 +49,10 @@ declare enum NodeType {
49
49
  TIME_WAIT_UNTIL = 83,
50
50
  CONDITIONAL = 71,
51
51
  REDIRECT = 72,
52
- AI_CHATBOT = 91
52
+ AI_CHATBOT = 91,
53
+ GOOGLE_MAPS = 101,
54
+ GOOGLE_CALENDAR = 102,
55
+ TRII_CALENDAR = 201
53
56
  }
54
57
  declare class NodePosition {
55
58
  x: number;
@@ -22,6 +22,9 @@ var NodeType;
22
22
  NodeType[NodeType["CONDITIONAL"] = 71] = "CONDITIONAL";
23
23
  NodeType[NodeType["REDIRECT"] = 72] = "REDIRECT";
24
24
  NodeType[NodeType["AI_CHATBOT"] = 91] = "AI_CHATBOT";
25
+ NodeType[NodeType["GOOGLE_MAPS"] = 101] = "GOOGLE_MAPS";
26
+ NodeType[NodeType["GOOGLE_CALENDAR"] = 102] = "GOOGLE_CALENDAR";
27
+ NodeType[NodeType["TRII_CALENDAR"] = 201] = "TRII_CALENDAR";
25
28
  })(NodeType || (exports.NodeType = NodeType = {}));
26
29
  class NodePosition {
27
30
  }
@@ -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 | '';
@@ -0,0 +1,19 @@
1
+ export declare class NodeGoogleCalendar {
2
+ id: string;
3
+ name: string;
4
+ type: "googleCalendar";
5
+ handles: ['onNext'];
6
+ enableStatics: boolean | false;
7
+ authCredentialId?: string | null;
8
+ eventsAdd?: boolean | false;
9
+ eventsEdit?: boolean | false;
10
+ eventsGet?: boolean | false;
11
+ eventsSearch?: boolean | false;
12
+ eventsDelete?: boolean | false;
13
+ calendarList?: boolean | false;
14
+ polygonsId?: string | null;
15
+ polygonsName?: string | null;
16
+ placeSearch?: boolean | false;
17
+ variables?: string | null;
18
+ saveAs?: string | null;
19
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NodeGoogleCalendar = void 0;
4
+ class NodeGoogleCalendar {
5
+ }
6
+ exports.NodeGoogleCalendar = NodeGoogleCalendar;
@@ -0,0 +1,12 @@
1
+ export declare class NodeGoogleMaps {
2
+ id: string;
3
+ name: string;
4
+ enableStatics: boolean | false;
5
+ polygonsEnable?: boolean | false;
6
+ polygonsId?: string | null;
7
+ polygonsName?: string | null;
8
+ placeSearch?: boolean | false;
9
+ authCredentialId?: string | null;
10
+ variables?: string | null;
11
+ saveAs?: string | null;
12
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NodeGoogleMaps = void 0;
4
+ class NodeGoogleMaps {
5
+ }
6
+ exports.NodeGoogleMaps = NodeGoogleMaps;
@@ -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,6 +26,14 @@ 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 = [
@@ -82,6 +91,25 @@ exports.NodeStartConstants = {
82
91
  values: [],
83
92
  };
84
93
  switch (Trigger) {
94
+ // case NodeStartTrigger.MESSAGE_NEW:
95
+ // {
96
+ // if (filter === 'FLOW_NODE_START_FILTER_ORIGIN') {
97
+ // data.conditions = [
98
+ // 'FLOW_NODE_START_CONDITION_EQUAL',
99
+ // ];
100
+ // data.values = [
101
+ // 'FLOW_NODE_START_VALUE_AGENT',
102
+ // 'FLOW_NODE_START_VALUE_CONTACT',
103
+ // ];
104
+ // }
105
+ // if (filter === 'FLOW_NODE_START_FILTER_CHANNEL') {
106
+ // data.conditions = [
107
+ // 'FLOW_NODE_START_CONDITION_EQUAL',
108
+ // ];
109
+ // data.values = [];
110
+ // }
111
+ // break;
112
+ // }
85
113
  case NodeStartTrigger.CONVERSATION_OPENED:
86
114
  {
87
115
  if (filter === 'FLOW_NODE_START_FILTER_ORIGIN') {
@@ -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.457",
3
+ "version": "2.10.460",
4
4
  "description": "Types definitions for Trii projects - ",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",