@trii/types 2.10.463 → 2.10.464
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.
- package/dist/Conversations/Flows/Flow.d.ts +18 -35
- package/dist/Conversations/Flows/Flow.js +2 -7
- package/dist/Conversations/Flows/Nodes/NodeAIChatBot.d.ts +10 -11
- package/dist/Conversations/Flows/Nodes/NodeAIChatBot.js +0 -4
- package/dist/Conversations/Flows/Nodes/NodeApi.d.ts +5 -5
- package/dist/Conversations/Flows/Nodes/NodeApi.js +0 -4
- package/dist/Conversations/Flows/Nodes/NodeConditional.d.ts +5 -5
- package/dist/Conversations/Flows/Nodes/NodeConditional.js +1 -4
- package/dist/Conversations/Flows/Nodes/NodeContactSearch.d.ts +5 -5
- package/dist/Conversations/Flows/Nodes/NodeContactSearch.js +0 -4
- package/dist/Conversations/Flows/Nodes/NodeContactUpdate.d.ts +5 -5
- package/dist/Conversations/Flows/Nodes/NodeContactUpdate.js +1 -4
- package/dist/Conversations/Flows/Nodes/NodeConversationAssignTo.d.ts +6 -5
- package/dist/Conversations/Flows/Nodes/NodeConversationAssignTo.js +0 -4
- package/dist/Conversations/Flows/Nodes/NodeConversationFinalize.d.ts +5 -4
- package/dist/Conversations/Flows/Nodes/NodeConversationFinalize.js +0 -4
- package/dist/Conversations/Flows/Nodes/NodeConversationUpdate.d.ts +5 -5
- package/dist/Conversations/Flows/Nodes/NodeConversationUpdate.js +1 -4
- package/dist/Conversations/Flows/Nodes/NodeFillForm.d.ts +6 -6
- package/dist/Conversations/Flows/Nodes/NodeFillForm.js +0 -7
- package/dist/Conversations/Flows/Nodes/NodeFillTicket.d.ts +5 -5
- package/dist/Conversations/Flows/Nodes/NodeFillTicket.js +1 -4
- package/dist/Conversations/Flows/Nodes/NodeGoogleCalendar.d.ts +5 -4
- package/dist/Conversations/Flows/Nodes/NodeGoogleCalendar.js +0 -4
- package/dist/Conversations/Flows/Nodes/NodeGoogleMaps.d.ts +5 -4
- package/dist/Conversations/Flows/Nodes/NodeGoogleMaps.js +0 -4
- package/dist/Conversations/Flows/Nodes/NodeMsgText.d.ts +5 -5
- package/dist/Conversations/Flows/Nodes/NodeMsgText.js +1 -4
- package/dist/Conversations/Flows/Nodes/NodeMsgWaitResponse.d.ts +5 -4
- package/dist/Conversations/Flows/Nodes/NodeMsgWaitResponse.js +1 -4
- package/dist/Conversations/Flows/Nodes/NodeRedirect.d.ts +5 -4
- package/dist/Conversations/Flows/Nodes/NodeRedirect.js +0 -4
- package/dist/Conversations/Flows/Nodes/NodeSendEmail.d.ts +5 -5
- package/dist/Conversations/Flows/Nodes/NodeSendEmail.js +0 -4
- package/dist/Conversations/Flows/Nodes/NodeSqlQuery.d.ts +5 -5
- package/dist/Conversations/Flows/Nodes/NodeSqlQuery.js +1 -4
- package/dist/Conversations/Flows/Nodes/NodeStart.d.ts +5 -4
- package/dist/Conversations/Flows/Nodes/NodeStart.js +1 -4
- package/dist/Conversations/Flows/Nodes/NodeTimeScheduleControl.d.ts +5 -5
- package/dist/Conversations/Flows/Nodes/NodeTimeScheduleControl.js +0 -4
- package/dist/Conversations/Flows/Nodes/NodeTimeTimer.d.ts +5 -5
- package/dist/Conversations/Flows/Nodes/NodeTimeTimer.js +0 -4
- package/dist/Conversations/Flows/Nodes/NodeTimeWaitUntil.d.ts +5 -5
- package/dist/Conversations/Flows/Nodes/NodeTimeWaitUntil.js +0 -4
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NodeAIChatBot } from "./Nodes";
|
|
1
|
+
import { NodeAIChatBot, NodeGoogleCalendar } from "./Nodes";
|
|
2
2
|
import { NodeApi } from "./Nodes/NodeApi";
|
|
3
3
|
import { NodeConditional } from "./Nodes/NodeConditional";
|
|
4
4
|
import { NodeContactSearch } from "./Nodes/NodeContactSearch";
|
|
@@ -18,9 +18,9 @@ import { NodeStart } from "./Nodes/NodeStart";
|
|
|
18
18
|
import { NodeTimeScheduleControl } from "./Nodes/NodeTimeScheduleControl";
|
|
19
19
|
import { NodeTimeTimer } from "./Nodes/NodeTimeTimer";
|
|
20
20
|
import { NodeTimeWaitUntil } from "./Nodes/NodeTimeWaitUntil";
|
|
21
|
-
interface IFlow {
|
|
21
|
+
export interface IFlow {
|
|
22
22
|
id?: string | null;
|
|
23
|
-
|
|
23
|
+
spaceId?: string | null;
|
|
24
24
|
name?: string | null;
|
|
25
25
|
description?: string | null;
|
|
26
26
|
enabled: boolean | false;
|
|
@@ -30,7 +30,7 @@ interface IFlow {
|
|
|
30
30
|
updatedAt?: string | null;
|
|
31
31
|
deletedAt?: string | null;
|
|
32
32
|
}
|
|
33
|
-
declare enum NodeType {
|
|
33
|
+
export declare enum NodeType {
|
|
34
34
|
START = 11,
|
|
35
35
|
MSG_TEXT = 21,
|
|
36
36
|
MSG_WAIT_RESPONSE = 22,
|
|
@@ -54,44 +54,28 @@ declare enum NodeType {
|
|
|
54
54
|
GOOGLE_CALENDAR = 102,
|
|
55
55
|
TRII_CALENDAR = 201
|
|
56
56
|
}
|
|
57
|
-
declare class NodePosition {
|
|
57
|
+
export declare class NodePosition {
|
|
58
58
|
x: number;
|
|
59
59
|
y: number;
|
|
60
60
|
}
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
msgWaitResponse?: NodeMsgWaitResponse | null;
|
|
65
|
-
sqlQuery?: NodeSqlQuery | null;
|
|
66
|
-
api?: NodeApi | null;
|
|
67
|
-
sendEmail?: NodeSendEmail | null;
|
|
68
|
-
fillForm?: NodeFillForm | null;
|
|
69
|
-
fillTicket?: NodeFillTicket | null;
|
|
70
|
-
contactSearch?: NodeContactSearch | null;
|
|
71
|
-
contactUpdate?: NodeContactUpdate | null;
|
|
72
|
-
conversationAssignTo?: NodeConversationAssignTo | null;
|
|
73
|
-
conversationUpdate?: NodeConversationUpdate | null;
|
|
74
|
-
conversationFinalize?: NodeConversationFinalize | null;
|
|
75
|
-
timeScheduleControl?: NodeTimeScheduleControl | null;
|
|
76
|
-
timeTimer?: NodeTimeTimer | null;
|
|
77
|
-
timeWaitUntil?: NodeTimeWaitUntil | null;
|
|
78
|
-
conditional?: NodeConditional | null;
|
|
79
|
-
redirect?: NodeRedirect | null;
|
|
80
|
-
aiChatBot?: NodeAIChatBot | null;
|
|
81
|
-
googleMaps?: NodeGoogleMaps | null;
|
|
82
|
-
}
|
|
83
|
-
declare class Node {
|
|
61
|
+
export type Node = NodeStart | NodeMsgText | NodeMsgWaitResponse | NodeSqlQuery | NodeApi | NodeSendEmail | NodeFillForm | NodeFillTicket | NodeContactSearch | NodeContactUpdate | NodeConversationAssignTo | NodeConversationUpdate | NodeConversationFinalize | NodeTimeScheduleControl | NodeTimeTimer | NodeTimeWaitUntil | NodeConditional | NodeRedirect | NodeAIChatBot | NodeGoogleMaps | NodeGoogleCalendar;
|
|
62
|
+
export type NodeCategory = 'trigger' | 'action' | 'tool';
|
|
63
|
+
export interface NodeBase {
|
|
84
64
|
id: string;
|
|
65
|
+
name: string;
|
|
85
66
|
type: NodeType;
|
|
67
|
+
typeName: string;
|
|
68
|
+
handles: string[];
|
|
69
|
+
categories?: NodeCategory[];
|
|
70
|
+
enableStatics: boolean | false;
|
|
86
71
|
position: NodePosition;
|
|
87
|
-
data: NodeData;
|
|
88
72
|
width?: number | null;
|
|
89
73
|
height?: number | null;
|
|
90
74
|
selected?: boolean | null;
|
|
91
75
|
positionAbsolute?: NodePosition | null;
|
|
92
76
|
dragging?: boolean | null;
|
|
93
77
|
}
|
|
94
|
-
declare class Edge {
|
|
78
|
+
export declare class Edge {
|
|
95
79
|
id: string | null;
|
|
96
80
|
source: string | null;
|
|
97
81
|
sourceHandle?: string | null;
|
|
@@ -100,19 +84,18 @@ declare class Edge {
|
|
|
100
84
|
data?: EdgeData | null;
|
|
101
85
|
markerEnd?: EdgeMarkerEnd | null;
|
|
102
86
|
}
|
|
103
|
-
declare class EdgeData {
|
|
87
|
+
export declare class EdgeData {
|
|
104
88
|
label: string | '';
|
|
105
89
|
}
|
|
106
|
-
declare class EdgeMarkerEnd {
|
|
90
|
+
export declare class EdgeMarkerEnd {
|
|
107
91
|
type?: string | '';
|
|
108
92
|
}
|
|
109
|
-
declare class FlowInfo {
|
|
93
|
+
export declare class FlowInfo {
|
|
110
94
|
id: string;
|
|
111
95
|
name: string;
|
|
112
96
|
nodes: NodeInfo[];
|
|
113
97
|
}
|
|
114
|
-
declare class NodeInfo {
|
|
98
|
+
export declare class NodeInfo {
|
|
115
99
|
id: string;
|
|
116
100
|
name: string;
|
|
117
101
|
}
|
|
118
|
-
export { IFlow, NodeType, NodePosition, NodeData, Node, Edge, EdgeMarkerEnd, FlowInfo, NodeInfo };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NodeInfo = exports.FlowInfo = exports.EdgeMarkerEnd = exports.
|
|
3
|
+
exports.NodeInfo = exports.FlowInfo = exports.EdgeMarkerEnd = exports.EdgeData = exports.Edge = exports.NodePosition = exports.NodeType = void 0;
|
|
4
4
|
var NodeType;
|
|
5
5
|
(function (NodeType) {
|
|
6
6
|
NodeType[NodeType["START"] = 11] = "START";
|
|
@@ -29,17 +29,12 @@ var NodeType;
|
|
|
29
29
|
class NodePosition {
|
|
30
30
|
}
|
|
31
31
|
exports.NodePosition = NodePosition;
|
|
32
|
-
class NodeData {
|
|
33
|
-
}
|
|
34
|
-
exports.NodeData = NodeData;
|
|
35
|
-
class Node {
|
|
36
|
-
}
|
|
37
|
-
exports.Node = Node;
|
|
38
32
|
class Edge {
|
|
39
33
|
}
|
|
40
34
|
exports.Edge = Edge;
|
|
41
35
|
class EdgeData {
|
|
42
36
|
}
|
|
37
|
+
exports.EdgeData = EdgeData;
|
|
43
38
|
class EdgeMarkerEnd {
|
|
44
39
|
}
|
|
45
40
|
exports.EdgeMarkerEnd = EdgeMarkerEnd;
|
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
handles: ['onNext', 'tools'];
|
|
6
|
-
|
|
1
|
+
import { NodeBase, NodeType } from "../Flow";
|
|
2
|
+
export interface NodeAIChatBot extends NodeBase {
|
|
3
|
+
type: NodeType.AI_CHATBOT;
|
|
4
|
+
typeName: "aiChatBot";
|
|
5
|
+
handles: ['onNext', 'tools', 'transitions'];
|
|
6
|
+
categories: ['action'];
|
|
7
|
+
prompt?: string | "";
|
|
7
8
|
globalNode: boolean | false;
|
|
8
9
|
globalNodeCondition: string | "";
|
|
9
|
-
|
|
10
|
+
llmProvider: string | "";
|
|
11
|
+
llmModel?: string | "";
|
|
12
|
+
credentialId?: string | "";
|
|
10
13
|
llmTemperature?: number | 0.7;
|
|
11
14
|
llmMaxTokens?: number | 1000;
|
|
12
15
|
llmTopP?: number | 1;
|
|
13
|
-
prompt?: string | "";
|
|
14
16
|
retryCount?: number | 3;
|
|
15
17
|
retryDelay?: number | 1000;
|
|
16
|
-
apiKey?: string | "";
|
|
17
|
-
nextNodeId?: string | "";
|
|
18
18
|
}
|
|
19
|
-
export type NodeNodeChatBotModel = "gpt-3.5-turbo" | "gpt-4" | "gpt-4-turbo" | "llama2" | "llama2-chat" | "llama2-7b-chat" | "llama2-13b-chat" | "llama2-70b-chat" | "llama2-7b" | "llama2-13b" | "llama2-70b" | "mistral" | "mistral-chat" | "mistral-7b-chat" | "mistral-7b";
|
|
@@ -3,12 +3,12 @@ import { AuthBasic } from '../../../Common/API/AuthBasic';
|
|
|
3
3
|
import { AuthBearer } from '../../../Common/API/AuthBearer';
|
|
4
4
|
import { AuthType } from '../../../Common/API/AuthType';
|
|
5
5
|
import { Method } from '../../../Common/API/Method';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
import { NodeBase, NodeType } from "../Flow";
|
|
7
|
+
export interface NodeApi extends NodeBase {
|
|
8
|
+
type: NodeType.API;
|
|
9
|
+
typeName: "api";
|
|
10
10
|
handles: ['onOk', 'onError'];
|
|
11
|
-
|
|
11
|
+
categories: ['action'];
|
|
12
12
|
apiUrl?: string | null;
|
|
13
13
|
apiMethod?: Method | null;
|
|
14
14
|
apiAuthType?: AuthType | null;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { NodeType, NodeBase } from "../Flow";
|
|
2
|
+
export interface NodeConditional extends NodeBase {
|
|
3
|
+
type: NodeType.CONDITIONAL;
|
|
4
|
+
typeName: "conditional";
|
|
5
5
|
handles: ['onOk', 'onError'];
|
|
6
|
-
|
|
6
|
+
categories: ['action'];
|
|
7
7
|
value1: string | '';
|
|
8
8
|
operator: NodeConditionalOperator;
|
|
9
9
|
value2: string | '';
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NodeConditionalOperator =
|
|
4
|
-
class NodeConditional {
|
|
5
|
-
}
|
|
6
|
-
exports.NodeConditional = NodeConditional;
|
|
3
|
+
exports.NodeConditionalOperator = void 0;
|
|
7
4
|
var NodeConditionalOperator;
|
|
8
5
|
(function (NodeConditionalOperator) {
|
|
9
6
|
NodeConditionalOperator[NodeConditionalOperator["NULL"] = 0] = "NULL";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { NodeBase, NodeType } from "../Flow";
|
|
2
|
+
export interface NodeContactSearch extends NodeBase {
|
|
3
|
+
type: NodeType.CONTACT_SEARCH;
|
|
4
|
+
typeName: "contactSearch";
|
|
5
5
|
handles: ['onOk', 'onError'];
|
|
6
|
-
|
|
6
|
+
categories: ['action'];
|
|
7
7
|
contactFieldId: string | '';
|
|
8
8
|
valueToSearch: string | '';
|
|
9
9
|
saveAs: string | '';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { NodeBase, NodeType } from "../Flow";
|
|
2
|
+
export interface NodeContactUpdate extends NodeBase {
|
|
3
|
+
type: NodeType.CONTACT_UPDATE;
|
|
4
|
+
typeName: "contactUpdate";
|
|
5
5
|
handles: ['onOk', 'onError'];
|
|
6
|
-
|
|
6
|
+
categories: ['action'];
|
|
7
7
|
contactFieldId: string | '';
|
|
8
8
|
action: NodeContactUpdateAction;
|
|
9
9
|
valueToSave: string | '';
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NodeContactUpdateAction =
|
|
4
|
-
class NodeContactUpdate {
|
|
5
|
-
}
|
|
6
|
-
exports.NodeContactUpdate = NodeContactUpdate;
|
|
3
|
+
exports.NodeContactUpdateAction = void 0;
|
|
7
4
|
var NodeContactUpdateAction;
|
|
8
5
|
(function (NodeContactUpdateAction) {
|
|
9
6
|
NodeContactUpdateAction[NodeContactUpdateAction["REPLACE"] = 0] = "REPLACE";
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
handles: ['
|
|
1
|
+
import { NodeBase, NodeType } from "../Flow";
|
|
2
|
+
export interface NodeConversationAssignTo extends NodeBase {
|
|
3
|
+
type: NodeType.CONVERSATION_ASSIGN_TO;
|
|
4
|
+
typeName: "conversationAssignTo";
|
|
5
|
+
handles: ['onError'];
|
|
6
|
+
categories: ['action'];
|
|
6
7
|
enableStatics: boolean | false;
|
|
7
8
|
groupId?: string | "";
|
|
8
9
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { NodeBase, NodeType } from "../Flow";
|
|
2
|
+
export interface NodeConversationFinalize extends NodeBase {
|
|
3
|
+
type: NodeType.CONVERSATION_FINALIZE;
|
|
4
|
+
typeName: "conversationFinalize";
|
|
5
5
|
handles: [];
|
|
6
|
+
categories: ['action'];
|
|
6
7
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { NodeBase, NodeType } from "../Flow";
|
|
2
|
+
export interface NodeConversationUpdate extends NodeBase {
|
|
3
|
+
type: NodeType.CONVERSATION_UPDATE;
|
|
4
|
+
typeName: "conversationUpdate";
|
|
5
5
|
handles: ['onNext'];
|
|
6
|
-
|
|
6
|
+
categories: ['action'];
|
|
7
7
|
fieldId: NodeContactUpdateConverFields;
|
|
8
8
|
action: NodeConversationUpdateAction;
|
|
9
9
|
valueToSave: string | '';
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NodeConversationUpdateAction = exports.NodeContactUpdateConverFields =
|
|
4
|
-
class NodeConversationUpdate {
|
|
5
|
-
}
|
|
6
|
-
exports.NodeConversationUpdate = NodeConversationUpdate;
|
|
3
|
+
exports.NodeConversationUpdateAction = exports.NodeContactUpdateConverFields = void 0;
|
|
7
4
|
var NodeContactUpdateConverFields;
|
|
8
5
|
(function (NodeContactUpdateConverFields) {
|
|
9
6
|
NodeContactUpdateConverFields[NodeContactUpdateConverFields["TAG"] = 0] = "TAG";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { NodeBase, NodeType } from "../Flow";
|
|
2
|
+
export interface NodeFillForm extends NodeBase {
|
|
3
|
+
type: NodeType.FILL_FORM;
|
|
4
|
+
typeName: "fillForm";
|
|
5
5
|
handles: ['onNext'];
|
|
6
|
-
|
|
6
|
+
categories: ['action'];
|
|
7
7
|
formId?: string | "";
|
|
8
8
|
responses: FillFormKeyValue[];
|
|
9
9
|
}
|
|
10
|
-
export
|
|
10
|
+
export interface FillFormKeyValue {
|
|
11
11
|
questionId: string | "";
|
|
12
12
|
question: string | "";
|
|
13
13
|
responseValue: string | "";
|
|
@@ -1,9 +1,2 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FillFormKeyValue = exports.NodeFillForm = void 0;
|
|
4
|
-
class NodeFillForm {
|
|
5
|
-
}
|
|
6
|
-
exports.NodeFillForm = NodeFillForm;
|
|
7
|
-
class FillFormKeyValue {
|
|
8
|
-
}
|
|
9
|
-
exports.FillFormKeyValue = FillFormKeyValue;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { NodeBase, NodeType } from "../Flow";
|
|
2
|
+
export interface NodeFillTicket extends NodeBase {
|
|
3
|
+
type: NodeType.FILL_TICKET;
|
|
4
|
+
typeName: "fillTicket";
|
|
5
5
|
handles: ['onOk', 'onError'];
|
|
6
|
-
|
|
6
|
+
categories: ['action'];
|
|
7
7
|
ticketContactSearchValue: string | '';
|
|
8
8
|
ticketContactSearchFieldId: string | '';
|
|
9
9
|
ticketContactName: string | '';
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NodeFillTicketPriority =
|
|
4
|
-
class NodeFillTicket {
|
|
5
|
-
}
|
|
6
|
-
exports.NodeFillTicket = NodeFillTicket;
|
|
3
|
+
exports.NodeFillTicketPriority = void 0;
|
|
7
4
|
var NodeFillTicketPriority;
|
|
8
5
|
(function (NodeFillTicketPriority) {
|
|
9
6
|
NodeFillTicketPriority[NodeFillTicketPriority["LOW"] = 100] = "LOW";
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { NodeBase, NodeType } from '../Flow';
|
|
2
|
+
export interface NodeGoogleCalendar extends NodeBase {
|
|
3
|
+
type: NodeType.GOOGLE_CALENDAR;
|
|
4
|
+
typeName: "googleCalendar";
|
|
5
5
|
handles: ['onNext'];
|
|
6
|
+
categories: ['tool'];
|
|
6
7
|
enableStatics: boolean | false;
|
|
7
8
|
authCredentialId?: string | null;
|
|
8
9
|
eventsAdd?: boolean | false;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { NodeBase, NodeType } from '../Flow';
|
|
2
|
+
export interface NodeGoogleMaps extends NodeBase {
|
|
3
|
+
type: NodeType.GOOGLE_MAPS;
|
|
4
|
+
typeName: "googleMaps";
|
|
5
5
|
handles: ['onNext'];
|
|
6
|
+
categories: ['action'];
|
|
6
7
|
enableStatics: boolean | false;
|
|
7
8
|
polygonsEnable?: boolean | false;
|
|
8
9
|
polygonsId?: string | null;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { NodeBase, NodeType } from "../Flow";
|
|
2
|
+
export interface NodeMsgText extends NodeBase {
|
|
3
|
+
type: NodeType.MSG_TEXT;
|
|
4
|
+
typeName: "msgText";
|
|
5
5
|
handles: ['onNext'];
|
|
6
|
-
|
|
6
|
+
categories: ['action'];
|
|
7
7
|
channelId: string;
|
|
8
8
|
mode: NodeMsgTextMode;
|
|
9
9
|
message: NodeMsgTextMessage | null;
|
|
@@ -1,9 +1,6 @@
|
|
|
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 =
|
|
4
|
-
class NodeMsgText {
|
|
5
|
-
}
|
|
6
|
-
exports.NodeMsgText = NodeMsgText;
|
|
3
|
+
exports.NodeMsgTextMode = exports.NodeMsgTextMessageButtonType = exports.NodeMsgTextMessageType = exports.NodeMsgTextMessageButton = exports.NodeMsgTextMessage = exports.templateVariable = exports.NodeMsgTextTemplate = void 0;
|
|
7
4
|
class NodeMsgTextTemplate {
|
|
8
5
|
}
|
|
9
6
|
exports.NodeMsgTextTemplate = NodeMsgTextTemplate;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { NodeBase, NodeType } from "../Flow";
|
|
2
|
+
export interface NodeMsgWaitResponse extends NodeBase {
|
|
3
|
+
type: NodeType.MSG_WAIT_RESPONSE;
|
|
4
|
+
typeName: "msgWaitResponse";
|
|
5
5
|
handles: ['onNext', 'onTimeOut'];
|
|
6
|
+
categories: ['action'];
|
|
6
7
|
enableStatics: boolean | false;
|
|
7
8
|
conditions: NodeMsgWaitResponseCondition[];
|
|
8
9
|
autoResponseOnNoConditionMatchMessage: string | '';
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NodeMsgWaitResponseConditionOperator = exports.NodeMsgWaitResponseConditionSource = exports.NodeMsgWaitResponseTimeType = exports.NodeMsgWaitResponseCondition =
|
|
4
|
-
class NodeMsgWaitResponse {
|
|
5
|
-
}
|
|
6
|
-
exports.NodeMsgWaitResponse = NodeMsgWaitResponse;
|
|
3
|
+
exports.NodeMsgWaitResponseConditionOperator = exports.NodeMsgWaitResponseConditionSource = exports.NodeMsgWaitResponseTimeType = exports.NodeMsgWaitResponseCondition = void 0;
|
|
7
4
|
class NodeMsgWaitResponseCondition {
|
|
8
5
|
}
|
|
9
6
|
exports.NodeMsgWaitResponseCondition = NodeMsgWaitResponseCondition;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { NodeBase, NodeType } from "../Flow";
|
|
2
|
+
export interface NodeRedirect extends NodeBase {
|
|
3
|
+
type: NodeType.REDIRECT;
|
|
4
|
+
typeName: "redirect";
|
|
5
5
|
handles: ['onNext'];
|
|
6
|
+
categories: ['action'];
|
|
6
7
|
flowId?: string | '';
|
|
7
8
|
nodeId?: string | '';
|
|
8
9
|
nodeName?: string | '';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { NodeBase, NodeType } from "../Flow";
|
|
2
|
+
export interface NodeSendEmail extends NodeBase {
|
|
3
|
+
type: NodeType.SEND_EMAIL;
|
|
4
|
+
typeName: "sendEmail";
|
|
5
5
|
handles: ['onNext'];
|
|
6
|
-
|
|
6
|
+
categories: ['action'];
|
|
7
7
|
channelId?: string | "";
|
|
8
8
|
to?: string | "";
|
|
9
9
|
subject?: string | "";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { NodeBase, NodeType } from "../Flow";
|
|
2
|
+
export interface NodeSqlQuery extends NodeBase {
|
|
3
|
+
type: NodeType.SQL_QUERY;
|
|
4
|
+
typeName: "sqlQuery";
|
|
5
5
|
handles: ['onOk', 'onError'];
|
|
6
|
-
|
|
6
|
+
categories: ['action'];
|
|
7
7
|
dbType: SqlQueryDbType;
|
|
8
8
|
connectionString?: string | "";
|
|
9
9
|
query?: string | "";
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SqlQueryDbType =
|
|
4
|
-
class NodeSqlQuery {
|
|
5
|
-
}
|
|
6
|
-
exports.NodeSqlQuery = NodeSqlQuery;
|
|
3
|
+
exports.SqlQueryDbType = void 0;
|
|
7
4
|
var SqlQueryDbType;
|
|
8
5
|
(function (SqlQueryDbType) {
|
|
9
6
|
SqlQueryDbType[SqlQueryDbType["NONE"] = 0] = "NONE";
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { NodeBase, NodeType } from "../Flow";
|
|
2
|
+
export interface NodeStart extends NodeBase {
|
|
3
|
+
type: NodeType.START;
|
|
4
|
+
typeName: "start";
|
|
5
5
|
handles: ['onNext'];
|
|
6
|
+
categories: ['action'];
|
|
6
7
|
trigger: NodeStartTrigger;
|
|
7
8
|
filters: NodeStartCondition[];
|
|
8
9
|
onlyOnePerContact: boolean;
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NodeStartConstants = exports.NodeStartCondition = exports.NodeStartTrigger =
|
|
4
|
-
class NodeStart {
|
|
5
|
-
}
|
|
6
|
-
exports.NodeStart = NodeStart;
|
|
3
|
+
exports.NodeStartConstants = exports.NodeStartCondition = exports.NodeStartTrigger = void 0;
|
|
7
4
|
var NodeStartTrigger;
|
|
8
5
|
(function (NodeStartTrigger) {
|
|
9
6
|
NodeStartTrigger[NodeStartTrigger["NULL"] = 0] = "NULL";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { NodeBase, NodeType } from "../Flow";
|
|
2
|
+
export interface NodeTimeScheduleControl extends NodeBase {
|
|
3
|
+
type: NodeType.TIME_SCHEDULE_CONTROL;
|
|
4
|
+
typeName: "timeScheduleControl";
|
|
5
5
|
handles: ['onAfterHours', 'onHoliday', 'onTimeRange-{id}'];
|
|
6
|
-
|
|
6
|
+
categories: ['action'];
|
|
7
7
|
scheduleId?: string | '';
|
|
8
8
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { NodeBase, NodeType } from "../Flow";
|
|
2
|
+
export interface NodeTimeTimer extends NodeBase {
|
|
3
|
+
type: NodeType.TIME_TIMER;
|
|
4
|
+
typeName: "timeTimer";
|
|
5
5
|
handles: ['onNext'];
|
|
6
|
-
|
|
6
|
+
categories: ['action'];
|
|
7
7
|
days?: number | 0;
|
|
8
8
|
hours?: number | 0;
|
|
9
9
|
minutes?: number | 0;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { NodeBase, NodeType } from "../Flow";
|
|
2
|
+
export interface NodeTimeWaitUntil extends NodeBase {
|
|
3
|
+
type: NodeType.TIME_WAIT_UNTIL;
|
|
4
|
+
typeName: "timeWaitUntil";
|
|
5
5
|
handles: ['onNext'];
|
|
6
|
-
|
|
6
|
+
categories: ['action'];
|
|
7
7
|
scheduleId?: string | '';
|
|
8
8
|
}
|