@botonic/plugin-flow-builder 0.22.0-alpha.2 → 0.22.0
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/lib/cjs/action.js +14 -12
- package/lib/cjs/action.js.map +1 -1
- package/lib/cjs/api.d.ts +19 -0
- package/lib/cjs/api.js +108 -0
- package/lib/cjs/api.js.map +1 -0
- package/lib/cjs/content-fields/content-fields-base.d.ts +4 -4
- package/lib/cjs/content-fields/content-fields-base.js.map +1 -1
- package/lib/cjs/content-fields/flow-button.d.ts +6 -3
- package/lib/cjs/content-fields/flow-button.js +28 -21
- package/lib/cjs/content-fields/flow-button.js.map +1 -1
- package/lib/cjs/content-fields/flow-carousel.d.ts +3 -2
- package/lib/cjs/content-fields/flow-carousel.js +3 -10
- package/lib/cjs/content-fields/flow-carousel.js.map +1 -1
- package/lib/cjs/content-fields/flow-element.d.ts +6 -3
- package/lib/cjs/content-fields/flow-element.js +16 -5
- package/lib/cjs/content-fields/flow-element.js.map +1 -1
- package/lib/cjs/content-fields/flow-image.d.ts +2 -2
- package/lib/cjs/content-fields/flow-image.js.map +1 -1
- package/lib/cjs/content-fields/flow-text.d.ts +4 -3
- package/lib/cjs/content-fields/flow-text.js +9 -9
- package/lib/cjs/content-fields/flow-text.js.map +1 -1
- package/lib/cjs/content-fields/flow-video.d.ts +2 -2
- package/lib/cjs/content-fields/flow-video.js +0 -1
- package/lib/cjs/content-fields/flow-video.js.map +1 -1
- package/lib/cjs/content-fields/hubtype-fields/button.d.ts +9 -0
- package/lib/cjs/content-fields/hubtype-fields/button.js +3 -0
- package/lib/cjs/content-fields/hubtype-fields/button.js.map +1 -0
- package/lib/cjs/content-fields/hubtype-fields/carousel.d.ts +16 -0
- package/lib/cjs/content-fields/hubtype-fields/carousel.js +3 -0
- package/lib/cjs/content-fields/hubtype-fields/carousel.js.map +1 -0
- package/lib/cjs/content-fields/hubtype-fields/common.d.ts +55 -0
- package/lib/cjs/content-fields/hubtype-fields/common.js +3 -0
- package/lib/cjs/content-fields/hubtype-fields/common.js.map +1 -0
- package/lib/cjs/content-fields/hubtype-fields/fallback.d.ts +9 -0
- package/lib/cjs/content-fields/hubtype-fields/fallback.js +3 -0
- package/lib/cjs/content-fields/hubtype-fields/fallback.js.map +1 -0
- package/lib/cjs/content-fields/hubtype-fields/function.d.ts +28 -0
- package/lib/cjs/content-fields/hubtype-fields/function.js +10 -0
- package/lib/cjs/content-fields/hubtype-fields/function.js.map +1 -0
- package/lib/cjs/content-fields/hubtype-fields/handoff.d.ts +10 -0
- package/lib/cjs/content-fields/hubtype-fields/handoff.js +3 -0
- package/lib/cjs/content-fields/hubtype-fields/handoff.js.map +1 -0
- package/lib/cjs/content-fields/hubtype-fields/image.d.ts +8 -0
- package/lib/cjs/content-fields/{types.js → hubtype-fields/image.js} +1 -1
- package/lib/cjs/content-fields/hubtype-fields/image.js.map +1 -0
- package/lib/cjs/content-fields/hubtype-fields/index.d.ts +17 -0
- package/lib/cjs/content-fields/hubtype-fields/index.js +21 -0
- package/lib/cjs/content-fields/hubtype-fields/index.js.map +1 -0
- package/lib/cjs/content-fields/hubtype-fields/intent.d.ts +10 -0
- package/lib/cjs/content-fields/hubtype-fields/intent.js +3 -0
- package/lib/cjs/content-fields/hubtype-fields/intent.js.map +1 -0
- package/lib/cjs/content-fields/hubtype-fields/keyword.d.ts +9 -0
- package/lib/cjs/content-fields/hubtype-fields/keyword.js +3 -0
- package/lib/cjs/content-fields/hubtype-fields/keyword.js.map +1 -0
- package/lib/cjs/content-fields/hubtype-fields/node-types.d.ts +23 -0
- package/lib/cjs/content-fields/hubtype-fields/node-types.js +31 -0
- package/lib/cjs/content-fields/hubtype-fields/node-types.js.map +1 -0
- package/lib/cjs/content-fields/hubtype-fields/nodes.d.ts +16 -0
- package/lib/cjs/content-fields/hubtype-fields/nodes.js +3 -0
- package/lib/cjs/content-fields/hubtype-fields/nodes.js.map +1 -0
- package/lib/cjs/content-fields/hubtype-fields/payload.d.ts +8 -0
- package/lib/cjs/content-fields/hubtype-fields/payload.js +3 -0
- package/lib/cjs/content-fields/hubtype-fields/payload.js.map +1 -0
- package/lib/cjs/content-fields/hubtype-fields/start.d.ts +7 -0
- package/lib/cjs/content-fields/hubtype-fields/start.js +3 -0
- package/lib/cjs/content-fields/hubtype-fields/start.js.map +1 -0
- package/lib/cjs/content-fields/hubtype-fields/text.d.ts +11 -0
- package/lib/cjs/content-fields/hubtype-fields/text.js +3 -0
- package/lib/cjs/content-fields/hubtype-fields/text.js.map +1 -0
- package/lib/cjs/content-fields/hubtype-fields/url.d.ts +8 -0
- package/lib/cjs/content-fields/hubtype-fields/url.js +3 -0
- package/lib/cjs/content-fields/hubtype-fields/url.js.map +1 -0
- package/lib/cjs/content-fields/hubtype-fields/video.d.ts +8 -0
- package/lib/cjs/content-fields/hubtype-fields/video.js +3 -0
- package/lib/cjs/content-fields/hubtype-fields/video.js.map +1 -0
- package/lib/cjs/content-fields/hubtype-fields/whatsapp-button-list.d.ts +21 -0
- package/lib/cjs/content-fields/hubtype-fields/whatsapp-button-list.js +3 -0
- package/lib/cjs/content-fields/hubtype-fields/whatsapp-button-list.js.map +1 -0
- package/lib/cjs/content-fields/index.d.ts +7 -5
- package/lib/cjs/content-fields/index.js +11 -9
- package/lib/cjs/content-fields/index.js.map +1 -1
- package/lib/cjs/content-fields/whatsapp-button-list/flow-whatsapp-button-list-row.d.ts +10 -0
- package/lib/cjs/content-fields/whatsapp-button-list/flow-whatsapp-button-list-row.js +32 -0
- package/lib/cjs/content-fields/whatsapp-button-list/flow-whatsapp-button-list-row.js.map +1 -0
- package/lib/cjs/content-fields/whatsapp-button-list/flow-whatsapp-button-list-section.d.ts +10 -0
- package/lib/cjs/content-fields/whatsapp-button-list/flow-whatsapp-button-list-section.js +29 -0
- package/lib/cjs/content-fields/whatsapp-button-list/flow-whatsapp-button-list-section.js.map +1 -0
- package/lib/cjs/content-fields/whatsapp-button-list/flow-whatsapp-button-list.d.ts +12 -0
- package/lib/cjs/content-fields/whatsapp-button-list/flow-whatsapp-button-list.js +33 -0
- package/lib/cjs/content-fields/whatsapp-button-list/flow-whatsapp-button-list.js.map +1 -0
- package/lib/cjs/functions/conditional-queue-status.js +1 -3
- package/lib/cjs/functions/conditional-queue-status.js.map +1 -1
- package/lib/cjs/handoff.d.ts +2 -2
- package/lib/cjs/handoff.js +13 -7
- package/lib/cjs/handoff.js.map +1 -1
- package/lib/cjs/helpers.d.ts +2 -1
- package/lib/cjs/helpers.js +5 -13
- package/lib/cjs/helpers.js.map +1 -1
- package/lib/cjs/index.d.ts +8 -21
- package/lib/cjs/index.js +34 -150
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/types.d.ts +6 -2
- package/lib/cjs/types.js.map +1 -1
- package/lib/esm/action.js +14 -12
- package/lib/esm/action.js.map +1 -1
- package/lib/esm/api.d.ts +19 -0
- package/lib/esm/api.js +103 -0
- package/lib/esm/api.js.map +1 -0
- package/lib/esm/content-fields/content-fields-base.d.ts +4 -4
- package/lib/esm/content-fields/content-fields-base.js.map +1 -1
- package/lib/esm/content-fields/flow-button.d.ts +6 -3
- package/lib/esm/content-fields/flow-button.js +28 -21
- package/lib/esm/content-fields/flow-button.js.map +1 -1
- package/lib/esm/content-fields/flow-carousel.d.ts +3 -2
- package/lib/esm/content-fields/flow-carousel.js +4 -11
- package/lib/esm/content-fields/flow-carousel.js.map +1 -1
- package/lib/esm/content-fields/flow-element.d.ts +6 -3
- package/lib/esm/content-fields/flow-element.js +15 -5
- package/lib/esm/content-fields/flow-element.js.map +1 -1
- package/lib/esm/content-fields/flow-image.d.ts +2 -2
- package/lib/esm/content-fields/flow-image.js.map +1 -1
- package/lib/esm/content-fields/flow-text.d.ts +4 -3
- package/lib/esm/content-fields/flow-text.js +9 -9
- package/lib/esm/content-fields/flow-text.js.map +1 -1
- package/lib/esm/content-fields/flow-video.d.ts +2 -2
- package/lib/esm/content-fields/flow-video.js +0 -1
- package/lib/esm/content-fields/flow-video.js.map +1 -1
- package/lib/esm/content-fields/hubtype-fields/button.d.ts +9 -0
- package/lib/esm/content-fields/hubtype-fields/button.js +2 -0
- package/lib/esm/content-fields/hubtype-fields/button.js.map +1 -0
- package/lib/esm/content-fields/hubtype-fields/carousel.d.ts +16 -0
- package/lib/esm/content-fields/hubtype-fields/carousel.js +2 -0
- package/lib/esm/content-fields/hubtype-fields/carousel.js.map +1 -0
- package/lib/esm/content-fields/hubtype-fields/common.d.ts +55 -0
- package/lib/esm/content-fields/hubtype-fields/common.js +2 -0
- package/lib/esm/content-fields/hubtype-fields/common.js.map +1 -0
- package/lib/esm/content-fields/hubtype-fields/fallback.d.ts +9 -0
- package/lib/esm/content-fields/hubtype-fields/fallback.js +2 -0
- package/lib/esm/content-fields/hubtype-fields/fallback.js.map +1 -0
- package/lib/esm/content-fields/hubtype-fields/function.d.ts +28 -0
- package/lib/esm/content-fields/hubtype-fields/function.js +7 -0
- package/lib/esm/content-fields/hubtype-fields/function.js.map +1 -0
- package/lib/esm/content-fields/hubtype-fields/handoff.d.ts +10 -0
- package/lib/esm/content-fields/hubtype-fields/handoff.js +2 -0
- package/lib/esm/content-fields/hubtype-fields/handoff.js.map +1 -0
- package/lib/esm/content-fields/hubtype-fields/image.d.ts +8 -0
- package/lib/esm/content-fields/hubtype-fields/image.js +2 -0
- package/lib/esm/content-fields/hubtype-fields/image.js.map +1 -0
- package/lib/esm/content-fields/hubtype-fields/index.d.ts +17 -0
- package/lib/esm/content-fields/hubtype-fields/index.js +18 -0
- package/lib/esm/content-fields/hubtype-fields/index.js.map +1 -0
- package/lib/esm/content-fields/hubtype-fields/intent.d.ts +10 -0
- package/lib/esm/content-fields/hubtype-fields/intent.js +2 -0
- package/lib/esm/content-fields/hubtype-fields/intent.js.map +1 -0
- package/lib/esm/content-fields/hubtype-fields/keyword.d.ts +9 -0
- package/lib/esm/content-fields/hubtype-fields/keyword.js +2 -0
- package/lib/esm/content-fields/hubtype-fields/keyword.js.map +1 -0
- package/lib/esm/content-fields/hubtype-fields/node-types.d.ts +23 -0
- package/lib/esm/content-fields/hubtype-fields/node-types.js +28 -0
- package/lib/esm/content-fields/hubtype-fields/node-types.js.map +1 -0
- package/lib/esm/content-fields/hubtype-fields/nodes.d.ts +16 -0
- package/lib/esm/content-fields/hubtype-fields/nodes.js +2 -0
- package/lib/esm/content-fields/hubtype-fields/nodes.js.map +1 -0
- package/lib/esm/content-fields/hubtype-fields/payload.d.ts +8 -0
- package/lib/esm/content-fields/hubtype-fields/payload.js +2 -0
- package/lib/esm/content-fields/hubtype-fields/payload.js.map +1 -0
- package/lib/esm/content-fields/hubtype-fields/start.d.ts +7 -0
- package/lib/esm/content-fields/hubtype-fields/start.js +2 -0
- package/lib/esm/content-fields/hubtype-fields/start.js.map +1 -0
- package/lib/esm/content-fields/hubtype-fields/text.d.ts +11 -0
- package/lib/esm/content-fields/hubtype-fields/text.js +2 -0
- package/lib/esm/content-fields/hubtype-fields/text.js.map +1 -0
- package/lib/esm/content-fields/hubtype-fields/url.d.ts +8 -0
- package/lib/esm/content-fields/hubtype-fields/url.js +2 -0
- package/lib/esm/content-fields/hubtype-fields/url.js.map +1 -0
- package/lib/esm/content-fields/hubtype-fields/video.d.ts +8 -0
- package/lib/esm/content-fields/hubtype-fields/video.js +2 -0
- package/lib/esm/content-fields/hubtype-fields/video.js.map +1 -0
- package/lib/esm/content-fields/hubtype-fields/whatsapp-button-list.d.ts +21 -0
- package/lib/esm/content-fields/hubtype-fields/whatsapp-button-list.js +2 -0
- package/lib/esm/content-fields/hubtype-fields/whatsapp-button-list.js.map +1 -0
- package/lib/esm/content-fields/index.d.ts +7 -5
- package/lib/esm/content-fields/index.js +6 -4
- package/lib/esm/content-fields/index.js.map +1 -1
- package/lib/esm/content-fields/whatsapp-button-list/flow-whatsapp-button-list-row.d.ts +10 -0
- package/lib/esm/content-fields/whatsapp-button-list/flow-whatsapp-button-list-row.js +28 -0
- package/lib/esm/content-fields/whatsapp-button-list/flow-whatsapp-button-list-row.js.map +1 -0
- package/lib/esm/content-fields/whatsapp-button-list/flow-whatsapp-button-list-section.d.ts +10 -0
- package/lib/esm/content-fields/whatsapp-button-list/flow-whatsapp-button-list-section.js +25 -0
- package/lib/esm/content-fields/whatsapp-button-list/flow-whatsapp-button-list-section.js.map +1 -0
- package/lib/esm/content-fields/whatsapp-button-list/flow-whatsapp-button-list.d.ts +12 -0
- package/lib/esm/content-fields/whatsapp-button-list/flow-whatsapp-button-list.js +28 -0
- package/lib/esm/content-fields/whatsapp-button-list/flow-whatsapp-button-list.js.map +1 -0
- package/lib/esm/functions/conditional-queue-status.js +1 -3
- package/lib/esm/functions/conditional-queue-status.js.map +1 -1
- package/lib/esm/handoff.d.ts +2 -2
- package/lib/esm/handoff.js +13 -7
- package/lib/esm/handoff.js.map +1 -1
- package/lib/esm/helpers.d.ts +2 -1
- package/lib/esm/helpers.js +3 -11
- package/lib/esm/helpers.js.map +1 -1
- package/lib/esm/index.d.ts +8 -21
- package/lib/esm/index.js +36 -152
- package/lib/esm/index.js.map +1 -1
- package/lib/esm/types.d.ts +6 -2
- package/lib/esm/types.js.map +1 -1
- package/package.json +4 -5
- package/src/action.tsx +19 -12
- package/src/api.ts +162 -0
- package/src/content-fields/content-fields-base.ts +7 -7
- package/src/content-fields/flow-button.tsx +40 -19
- package/src/content-fields/flow-carousel.tsx +10 -18
- package/src/content-fields/flow-element.tsx +26 -9
- package/src/content-fields/flow-image.tsx +2 -2
- package/src/content-fields/flow-text.tsx +15 -12
- package/src/content-fields/flow-video.tsx +2 -3
- package/src/content-fields/hubtype-fields/button.ts +15 -0
- package/src/content-fields/hubtype-fields/carousel.ts +18 -0
- package/src/content-fields/hubtype-fields/common.ts +65 -0
- package/src/content-fields/hubtype-fields/fallback.ts +10 -0
- package/src/content-fields/hubtype-fields/function.ts +33 -0
- package/src/content-fields/hubtype-fields/handoff.ts +11 -0
- package/src/content-fields/hubtype-fields/image.ts +9 -0
- package/src/content-fields/hubtype-fields/index.ts +17 -0
- package/src/content-fields/hubtype-fields/intent.ts +11 -0
- package/src/content-fields/hubtype-fields/keyword.ts +10 -0
- package/src/content-fields/hubtype-fields/node-types.ts +26 -0
- package/src/content-fields/hubtype-fields/nodes.ts +32 -0
- package/src/content-fields/hubtype-fields/payload.ts +9 -0
- package/src/content-fields/hubtype-fields/start.ts +8 -0
- package/src/content-fields/hubtype-fields/text.ts +12 -0
- package/src/content-fields/hubtype-fields/url.ts +9 -0
- package/src/content-fields/hubtype-fields/video.ts +9 -0
- package/src/content-fields/hubtype-fields/whatsapp-button-list.ts +25 -0
- package/src/content-fields/index.ts +14 -5
- package/src/content-fields/whatsapp-button-list/flow-whatsapp-button-list-row.tsx +33 -0
- package/src/content-fields/whatsapp-button-list/flow-whatsapp-button-list-section.tsx +35 -0
- package/src/content-fields/whatsapp-button-list/flow-whatsapp-button-list.tsx +46 -0
- package/src/functions/conditional-queue-status.ts +1 -3
- package/src/handoff.ts +16 -10
- package/src/helpers.ts +8 -19
- package/src/index.ts +47 -196
- package/src/types.ts +8 -2
- package/lib/cjs/content-fields/types.d.ts +0 -5
- package/lib/cjs/content-fields/types.js.map +0 -1
- package/lib/cjs/flow-builder-models.d.ts +0 -197
- package/lib/cjs/flow-builder-models.js +0 -24
- package/lib/cjs/flow-builder-models.js.map +0 -1
- package/lib/esm/content-fields/types.d.ts +0 -5
- package/lib/esm/content-fields/types.js +0 -2
- package/lib/esm/content-fields/types.js.map +0 -1
- package/lib/esm/flow-builder-models.d.ts +0 -197
- package/lib/esm/flow-builder-models.js +0 -21
- package/lib/esm/flow-builder-models.js.map +0 -1
- package/src/content-fields/types.ts +0 -6
- package/src/flow-builder-models.ts +0 -249
|
@@ -1,197 +0,0 @@
|
|
|
1
|
-
export interface FlowBuilderData {
|
|
2
|
-
version: string;
|
|
3
|
-
name: string;
|
|
4
|
-
locales: string[];
|
|
5
|
-
start_node_id?: string;
|
|
6
|
-
ai_model_id?: string;
|
|
7
|
-
nodes: NodeComponent[];
|
|
8
|
-
}
|
|
9
|
-
export declare enum NodeType {
|
|
10
|
-
TEXT = "text",
|
|
11
|
-
IMAGE = "image",
|
|
12
|
-
CAROUSEL = "carousel",
|
|
13
|
-
HANDOFF = "handoff",
|
|
14
|
-
KEYWORD = "keyword",
|
|
15
|
-
INTENT = "intent",
|
|
16
|
-
START_UP = "start-up",
|
|
17
|
-
URL = "url",
|
|
18
|
-
PAYLOAD = "payload",
|
|
19
|
-
FUNCTION = "function",
|
|
20
|
-
FALLBACK = "fallback",
|
|
21
|
-
VIDEO = "video"
|
|
22
|
-
}
|
|
23
|
-
export interface BaseNode {
|
|
24
|
-
id: string;
|
|
25
|
-
type: NodeType;
|
|
26
|
-
}
|
|
27
|
-
export interface Meta {
|
|
28
|
-
x: number;
|
|
29
|
-
y: number;
|
|
30
|
-
}
|
|
31
|
-
export interface Node extends BaseNode {
|
|
32
|
-
code: string;
|
|
33
|
-
meta: Meta;
|
|
34
|
-
follow_up?: NodeLink;
|
|
35
|
-
target?: NodeLink;
|
|
36
|
-
}
|
|
37
|
-
export interface NodeLink {
|
|
38
|
-
id: string;
|
|
39
|
-
type: NodeType;
|
|
40
|
-
}
|
|
41
|
-
export interface TextLocale {
|
|
42
|
-
message: string;
|
|
43
|
-
locale: string;
|
|
44
|
-
}
|
|
45
|
-
export declare enum ButtonStyle {
|
|
46
|
-
BUTTON = "button",
|
|
47
|
-
QUICK_REPLY = "quick-reply"
|
|
48
|
-
}
|
|
49
|
-
export interface UrlLocale {
|
|
50
|
-
id: string;
|
|
51
|
-
locale: string;
|
|
52
|
-
}
|
|
53
|
-
export interface PayloadLocale {
|
|
54
|
-
id: string;
|
|
55
|
-
locale: string;
|
|
56
|
-
}
|
|
57
|
-
export interface Button {
|
|
58
|
-
id: string;
|
|
59
|
-
text: TextLocale[];
|
|
60
|
-
target?: NodeLink;
|
|
61
|
-
hidden: string;
|
|
62
|
-
url?: UrlLocale[];
|
|
63
|
-
payload?: PayloadLocale[];
|
|
64
|
-
}
|
|
65
|
-
export interface TextNodeContent {
|
|
66
|
-
text: TextLocale[];
|
|
67
|
-
buttons_style?: ButtonStyle;
|
|
68
|
-
buttons: Button[];
|
|
69
|
-
}
|
|
70
|
-
export interface TextNode extends Node {
|
|
71
|
-
type: NodeType.TEXT;
|
|
72
|
-
content: TextNodeContent;
|
|
73
|
-
}
|
|
74
|
-
export interface MediaFileLocale {
|
|
75
|
-
id: string;
|
|
76
|
-
file: string;
|
|
77
|
-
locale: string;
|
|
78
|
-
}
|
|
79
|
-
export interface ImageNodeContent {
|
|
80
|
-
image: MediaFileLocale[];
|
|
81
|
-
}
|
|
82
|
-
export interface ImageNode extends Node {
|
|
83
|
-
type: NodeType.IMAGE;
|
|
84
|
-
content: ImageNodeContent;
|
|
85
|
-
}
|
|
86
|
-
export interface CarouselElementNode {
|
|
87
|
-
id: string;
|
|
88
|
-
title: TextLocale[];
|
|
89
|
-
subtitle: TextLocale[];
|
|
90
|
-
image: MediaFileLocale[];
|
|
91
|
-
button: Button;
|
|
92
|
-
}
|
|
93
|
-
export interface CarouselNodeContent {
|
|
94
|
-
elements: CarouselElementNode[];
|
|
95
|
-
}
|
|
96
|
-
export interface CarouselNode extends Node {
|
|
97
|
-
type: NodeType.CAROUSEL;
|
|
98
|
-
content: CarouselNodeContent;
|
|
99
|
-
}
|
|
100
|
-
export interface QueueLocale {
|
|
101
|
-
id: string;
|
|
102
|
-
name: string;
|
|
103
|
-
locale: string;
|
|
104
|
-
}
|
|
105
|
-
export interface HandoffNodeContent {
|
|
106
|
-
message: TextLocale[];
|
|
107
|
-
fail_message: TextLocale[];
|
|
108
|
-
queue: QueueLocale[];
|
|
109
|
-
payload: PayloadLocale[];
|
|
110
|
-
}
|
|
111
|
-
export interface HandoffNode extends Node {
|
|
112
|
-
type: NodeType.HANDOFF;
|
|
113
|
-
content: HandoffNodeContent;
|
|
114
|
-
}
|
|
115
|
-
export interface InputLocale {
|
|
116
|
-
values: string[];
|
|
117
|
-
locale: string;
|
|
118
|
-
}
|
|
119
|
-
export interface KeywordNodeContent {
|
|
120
|
-
title: TextLocale[];
|
|
121
|
-
keywords: InputLocale[];
|
|
122
|
-
}
|
|
123
|
-
export interface KeywordNode extends Node {
|
|
124
|
-
type: NodeType.KEYWORD;
|
|
125
|
-
content: KeywordNodeContent;
|
|
126
|
-
}
|
|
127
|
-
export interface IntentNodeContent {
|
|
128
|
-
title: TextLocale[];
|
|
129
|
-
intents: InputLocale[];
|
|
130
|
-
confidence: number;
|
|
131
|
-
}
|
|
132
|
-
export interface IntentNode extends Node {
|
|
133
|
-
type: NodeType.INTENT;
|
|
134
|
-
content: IntentNodeContent;
|
|
135
|
-
}
|
|
136
|
-
export interface StartNode extends BaseNode {
|
|
137
|
-
type: NodeType.START_UP;
|
|
138
|
-
target: NodeLink;
|
|
139
|
-
}
|
|
140
|
-
export interface UrlNodeContent {
|
|
141
|
-
url: string;
|
|
142
|
-
}
|
|
143
|
-
export interface UrlNode extends BaseNode {
|
|
144
|
-
type: NodeType.URL;
|
|
145
|
-
content: UrlNodeContent;
|
|
146
|
-
}
|
|
147
|
-
export interface PayloadNodeContent {
|
|
148
|
-
payload: string;
|
|
149
|
-
}
|
|
150
|
-
export interface PayloadNode extends BaseNode {
|
|
151
|
-
type: NodeType.PAYLOAD;
|
|
152
|
-
content: PayloadNodeContent;
|
|
153
|
-
}
|
|
154
|
-
export type ArgumentType = number | string | Record<any, any>;
|
|
155
|
-
export interface FunctionNodeArgument {
|
|
156
|
-
type: ArgumentType;
|
|
157
|
-
name: string;
|
|
158
|
-
value: string;
|
|
159
|
-
}
|
|
160
|
-
export interface FunctionNodeArgumentLocale {
|
|
161
|
-
locale: string;
|
|
162
|
-
values: FunctionNodeArgument[];
|
|
163
|
-
}
|
|
164
|
-
export interface FunctionNodeResult {
|
|
165
|
-
result: string;
|
|
166
|
-
target: NodeLink;
|
|
167
|
-
}
|
|
168
|
-
export interface FunctionNodeContent {
|
|
169
|
-
action: string;
|
|
170
|
-
arguments: FunctionNodeArgumentLocale[];
|
|
171
|
-
result_mapping: FunctionNodeResult[];
|
|
172
|
-
}
|
|
173
|
-
export interface FunctionNode extends Node {
|
|
174
|
-
type: NodeType.FUNCTION;
|
|
175
|
-
content: FunctionNodeContent;
|
|
176
|
-
}
|
|
177
|
-
export interface FallbackNodeContent {
|
|
178
|
-
first_message: NodeLink;
|
|
179
|
-
second_message: NodeLink;
|
|
180
|
-
}
|
|
181
|
-
export interface FallbackNode extends Node {
|
|
182
|
-
type: NodeType.FALLBACK;
|
|
183
|
-
content: FallbackNodeContent;
|
|
184
|
-
}
|
|
185
|
-
export interface VideoLocale {
|
|
186
|
-
url: string;
|
|
187
|
-
is_embedded?: boolean;
|
|
188
|
-
locale: string;
|
|
189
|
-
}
|
|
190
|
-
export interface VideoNodeContent {
|
|
191
|
-
video: VideoLocale[];
|
|
192
|
-
}
|
|
193
|
-
export interface VideoNode extends Node {
|
|
194
|
-
type: NodeType.VIDEO;
|
|
195
|
-
content: VideoNodeContent;
|
|
196
|
-
}
|
|
197
|
-
export type NodeComponent = TextNode | ImageNode | CarouselNode | HandoffNode | KeywordNode | IntentNode | UrlNode | StartNode | PayloadNode | FunctionNode | FallbackNode | VideoNode;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ButtonStyle = exports.NodeType = void 0;
|
|
4
|
-
var NodeType;
|
|
5
|
-
(function (NodeType) {
|
|
6
|
-
NodeType["TEXT"] = "text";
|
|
7
|
-
NodeType["IMAGE"] = "image";
|
|
8
|
-
NodeType["CAROUSEL"] = "carousel";
|
|
9
|
-
NodeType["HANDOFF"] = "handoff";
|
|
10
|
-
NodeType["KEYWORD"] = "keyword";
|
|
11
|
-
NodeType["INTENT"] = "intent";
|
|
12
|
-
NodeType["START_UP"] = "start-up";
|
|
13
|
-
NodeType["URL"] = "url";
|
|
14
|
-
NodeType["PAYLOAD"] = "payload";
|
|
15
|
-
NodeType["FUNCTION"] = "function";
|
|
16
|
-
NodeType["FALLBACK"] = "fallback";
|
|
17
|
-
NodeType["VIDEO"] = "video";
|
|
18
|
-
})(NodeType = exports.NodeType || (exports.NodeType = {}));
|
|
19
|
-
var ButtonStyle;
|
|
20
|
-
(function (ButtonStyle) {
|
|
21
|
-
ButtonStyle["BUTTON"] = "button";
|
|
22
|
-
ButtonStyle["QUICK_REPLY"] = "quick-reply";
|
|
23
|
-
})(ButtonStyle = exports.ButtonStyle || (exports.ButtonStyle = {}));
|
|
24
|
-
//# sourceMappingURL=flow-builder-models.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"flow-builder-models.js","sourceRoot":"","sources":["../../src/flow-builder-models.ts"],"names":[],"mappings":";;;AASA,IAAY,QAaX;AAbD,WAAY,QAAQ;IAClB,yBAAa,CAAA;IACb,2BAAe,CAAA;IACf,iCAAqB,CAAA;IACrB,+BAAmB,CAAA;IACnB,+BAAmB,CAAA;IACnB,6BAAiB,CAAA;IACjB,iCAAqB,CAAA;IACrB,uBAAW,CAAA;IACX,+BAAmB,CAAA;IACnB,iCAAqB,CAAA;IACrB,iCAAqB,CAAA;IACrB,2BAAe,CAAA;AACjB,CAAC,EAbW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAanB;AA6BD,IAAY,WAGX;AAHD,WAAY,WAAW;IACrB,gCAAiB,CAAA;IACjB,0CAA2B,CAAA;AAC7B,CAAC,EAHW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAGtB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/content-fields/types.ts"],"names":[],"mappings":""}
|
|
@@ -1,197 +0,0 @@
|
|
|
1
|
-
export interface FlowBuilderData {
|
|
2
|
-
version: string;
|
|
3
|
-
name: string;
|
|
4
|
-
locales: string[];
|
|
5
|
-
start_node_id?: string;
|
|
6
|
-
ai_model_id?: string;
|
|
7
|
-
nodes: NodeComponent[];
|
|
8
|
-
}
|
|
9
|
-
export declare enum NodeType {
|
|
10
|
-
TEXT = "text",
|
|
11
|
-
IMAGE = "image",
|
|
12
|
-
CAROUSEL = "carousel",
|
|
13
|
-
HANDOFF = "handoff",
|
|
14
|
-
KEYWORD = "keyword",
|
|
15
|
-
INTENT = "intent",
|
|
16
|
-
START_UP = "start-up",
|
|
17
|
-
URL = "url",
|
|
18
|
-
PAYLOAD = "payload",
|
|
19
|
-
FUNCTION = "function",
|
|
20
|
-
FALLBACK = "fallback",
|
|
21
|
-
VIDEO = "video"
|
|
22
|
-
}
|
|
23
|
-
export interface BaseNode {
|
|
24
|
-
id: string;
|
|
25
|
-
type: NodeType;
|
|
26
|
-
}
|
|
27
|
-
export interface Meta {
|
|
28
|
-
x: number;
|
|
29
|
-
y: number;
|
|
30
|
-
}
|
|
31
|
-
export interface Node extends BaseNode {
|
|
32
|
-
code: string;
|
|
33
|
-
meta: Meta;
|
|
34
|
-
follow_up?: NodeLink;
|
|
35
|
-
target?: NodeLink;
|
|
36
|
-
}
|
|
37
|
-
export interface NodeLink {
|
|
38
|
-
id: string;
|
|
39
|
-
type: NodeType;
|
|
40
|
-
}
|
|
41
|
-
export interface TextLocale {
|
|
42
|
-
message: string;
|
|
43
|
-
locale: string;
|
|
44
|
-
}
|
|
45
|
-
export declare enum ButtonStyle {
|
|
46
|
-
BUTTON = "button",
|
|
47
|
-
QUICK_REPLY = "quick-reply"
|
|
48
|
-
}
|
|
49
|
-
export interface UrlLocale {
|
|
50
|
-
id: string;
|
|
51
|
-
locale: string;
|
|
52
|
-
}
|
|
53
|
-
export interface PayloadLocale {
|
|
54
|
-
id: string;
|
|
55
|
-
locale: string;
|
|
56
|
-
}
|
|
57
|
-
export interface Button {
|
|
58
|
-
id: string;
|
|
59
|
-
text: TextLocale[];
|
|
60
|
-
target?: NodeLink;
|
|
61
|
-
hidden: string;
|
|
62
|
-
url?: UrlLocale[];
|
|
63
|
-
payload?: PayloadLocale[];
|
|
64
|
-
}
|
|
65
|
-
export interface TextNodeContent {
|
|
66
|
-
text: TextLocale[];
|
|
67
|
-
buttons_style?: ButtonStyle;
|
|
68
|
-
buttons: Button[];
|
|
69
|
-
}
|
|
70
|
-
export interface TextNode extends Node {
|
|
71
|
-
type: NodeType.TEXT;
|
|
72
|
-
content: TextNodeContent;
|
|
73
|
-
}
|
|
74
|
-
export interface MediaFileLocale {
|
|
75
|
-
id: string;
|
|
76
|
-
file: string;
|
|
77
|
-
locale: string;
|
|
78
|
-
}
|
|
79
|
-
export interface ImageNodeContent {
|
|
80
|
-
image: MediaFileLocale[];
|
|
81
|
-
}
|
|
82
|
-
export interface ImageNode extends Node {
|
|
83
|
-
type: NodeType.IMAGE;
|
|
84
|
-
content: ImageNodeContent;
|
|
85
|
-
}
|
|
86
|
-
export interface CarouselElementNode {
|
|
87
|
-
id: string;
|
|
88
|
-
title: TextLocale[];
|
|
89
|
-
subtitle: TextLocale[];
|
|
90
|
-
image: MediaFileLocale[];
|
|
91
|
-
button: Button;
|
|
92
|
-
}
|
|
93
|
-
export interface CarouselNodeContent {
|
|
94
|
-
elements: CarouselElementNode[];
|
|
95
|
-
}
|
|
96
|
-
export interface CarouselNode extends Node {
|
|
97
|
-
type: NodeType.CAROUSEL;
|
|
98
|
-
content: CarouselNodeContent;
|
|
99
|
-
}
|
|
100
|
-
export interface QueueLocale {
|
|
101
|
-
id: string;
|
|
102
|
-
name: string;
|
|
103
|
-
locale: string;
|
|
104
|
-
}
|
|
105
|
-
export interface HandoffNodeContent {
|
|
106
|
-
message: TextLocale[];
|
|
107
|
-
fail_message: TextLocale[];
|
|
108
|
-
queue: QueueLocale[];
|
|
109
|
-
payload: PayloadLocale[];
|
|
110
|
-
}
|
|
111
|
-
export interface HandoffNode extends Node {
|
|
112
|
-
type: NodeType.HANDOFF;
|
|
113
|
-
content: HandoffNodeContent;
|
|
114
|
-
}
|
|
115
|
-
export interface InputLocale {
|
|
116
|
-
values: string[];
|
|
117
|
-
locale: string;
|
|
118
|
-
}
|
|
119
|
-
export interface KeywordNodeContent {
|
|
120
|
-
title: TextLocale[];
|
|
121
|
-
keywords: InputLocale[];
|
|
122
|
-
}
|
|
123
|
-
export interface KeywordNode extends Node {
|
|
124
|
-
type: NodeType.KEYWORD;
|
|
125
|
-
content: KeywordNodeContent;
|
|
126
|
-
}
|
|
127
|
-
export interface IntentNodeContent {
|
|
128
|
-
title: TextLocale[];
|
|
129
|
-
intents: InputLocale[];
|
|
130
|
-
confidence: number;
|
|
131
|
-
}
|
|
132
|
-
export interface IntentNode extends Node {
|
|
133
|
-
type: NodeType.INTENT;
|
|
134
|
-
content: IntentNodeContent;
|
|
135
|
-
}
|
|
136
|
-
export interface StartNode extends BaseNode {
|
|
137
|
-
type: NodeType.START_UP;
|
|
138
|
-
target: NodeLink;
|
|
139
|
-
}
|
|
140
|
-
export interface UrlNodeContent {
|
|
141
|
-
url: string;
|
|
142
|
-
}
|
|
143
|
-
export interface UrlNode extends BaseNode {
|
|
144
|
-
type: NodeType.URL;
|
|
145
|
-
content: UrlNodeContent;
|
|
146
|
-
}
|
|
147
|
-
export interface PayloadNodeContent {
|
|
148
|
-
payload: string;
|
|
149
|
-
}
|
|
150
|
-
export interface PayloadNode extends BaseNode {
|
|
151
|
-
type: NodeType.PAYLOAD;
|
|
152
|
-
content: PayloadNodeContent;
|
|
153
|
-
}
|
|
154
|
-
export type ArgumentType = number | string | Record<any, any>;
|
|
155
|
-
export interface FunctionNodeArgument {
|
|
156
|
-
type: ArgumentType;
|
|
157
|
-
name: string;
|
|
158
|
-
value: string;
|
|
159
|
-
}
|
|
160
|
-
export interface FunctionNodeArgumentLocale {
|
|
161
|
-
locale: string;
|
|
162
|
-
values: FunctionNodeArgument[];
|
|
163
|
-
}
|
|
164
|
-
export interface FunctionNodeResult {
|
|
165
|
-
result: string;
|
|
166
|
-
target: NodeLink;
|
|
167
|
-
}
|
|
168
|
-
export interface FunctionNodeContent {
|
|
169
|
-
action: string;
|
|
170
|
-
arguments: FunctionNodeArgumentLocale[];
|
|
171
|
-
result_mapping: FunctionNodeResult[];
|
|
172
|
-
}
|
|
173
|
-
export interface FunctionNode extends Node {
|
|
174
|
-
type: NodeType.FUNCTION;
|
|
175
|
-
content: FunctionNodeContent;
|
|
176
|
-
}
|
|
177
|
-
export interface FallbackNodeContent {
|
|
178
|
-
first_message: NodeLink;
|
|
179
|
-
second_message: NodeLink;
|
|
180
|
-
}
|
|
181
|
-
export interface FallbackNode extends Node {
|
|
182
|
-
type: NodeType.FALLBACK;
|
|
183
|
-
content: FallbackNodeContent;
|
|
184
|
-
}
|
|
185
|
-
export interface VideoLocale {
|
|
186
|
-
url: string;
|
|
187
|
-
is_embedded?: boolean;
|
|
188
|
-
locale: string;
|
|
189
|
-
}
|
|
190
|
-
export interface VideoNodeContent {
|
|
191
|
-
video: VideoLocale[];
|
|
192
|
-
}
|
|
193
|
-
export interface VideoNode extends Node {
|
|
194
|
-
type: NodeType.VIDEO;
|
|
195
|
-
content: VideoNodeContent;
|
|
196
|
-
}
|
|
197
|
-
export type NodeComponent = TextNode | ImageNode | CarouselNode | HandoffNode | KeywordNode | IntentNode | UrlNode | StartNode | PayloadNode | FunctionNode | FallbackNode | VideoNode;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export var NodeType;
|
|
2
|
-
(function (NodeType) {
|
|
3
|
-
NodeType["TEXT"] = "text";
|
|
4
|
-
NodeType["IMAGE"] = "image";
|
|
5
|
-
NodeType["CAROUSEL"] = "carousel";
|
|
6
|
-
NodeType["HANDOFF"] = "handoff";
|
|
7
|
-
NodeType["KEYWORD"] = "keyword";
|
|
8
|
-
NodeType["INTENT"] = "intent";
|
|
9
|
-
NodeType["START_UP"] = "start-up";
|
|
10
|
-
NodeType["URL"] = "url";
|
|
11
|
-
NodeType["PAYLOAD"] = "payload";
|
|
12
|
-
NodeType["FUNCTION"] = "function";
|
|
13
|
-
NodeType["FALLBACK"] = "fallback";
|
|
14
|
-
NodeType["VIDEO"] = "video";
|
|
15
|
-
})(NodeType || (NodeType = {}));
|
|
16
|
-
export var ButtonStyle;
|
|
17
|
-
(function (ButtonStyle) {
|
|
18
|
-
ButtonStyle["BUTTON"] = "button";
|
|
19
|
-
ButtonStyle["QUICK_REPLY"] = "quick-reply";
|
|
20
|
-
})(ButtonStyle || (ButtonStyle = {}));
|
|
21
|
-
//# sourceMappingURL=flow-builder-models.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"flow-builder-models.js","sourceRoot":"","sources":["../../src/flow-builder-models.ts"],"names":[],"mappings":"AASA,MAAM,CAAN,IAAY,QAaX;AAbD,WAAY,QAAQ;IAClB,yBAAa,CAAA;IACb,2BAAe,CAAA;IACf,iCAAqB,CAAA;IACrB,+BAAmB,CAAA;IACnB,+BAAmB,CAAA;IACnB,6BAAiB,CAAA;IACjB,iCAAqB,CAAA;IACrB,uBAAW,CAAA;IACX,+BAAmB,CAAA;IACnB,iCAAqB,CAAA;IACrB,iCAAqB,CAAA;IACrB,2BAAe,CAAA;AACjB,CAAC,EAbW,QAAQ,KAAR,QAAQ,QAanB;AA6BD,MAAM,CAAN,IAAY,WAGX;AAHD,WAAY,WAAW;IACrB,gCAAiB,CAAA;IACjB,0CAA2B,CAAA;AAC7B,CAAC,EAHW,WAAW,KAAX,WAAW,QAGtB"}
|
|
@@ -1,249 +0,0 @@
|
|
|
1
|
-
export interface FlowBuilderData {
|
|
2
|
-
version: string
|
|
3
|
-
name: string
|
|
4
|
-
locales: string[]
|
|
5
|
-
start_node_id?: string
|
|
6
|
-
ai_model_id?: string
|
|
7
|
-
nodes: NodeComponent[]
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export enum NodeType {
|
|
11
|
-
TEXT = 'text',
|
|
12
|
-
IMAGE = 'image',
|
|
13
|
-
CAROUSEL = 'carousel',
|
|
14
|
-
HANDOFF = 'handoff',
|
|
15
|
-
KEYWORD = 'keyword',
|
|
16
|
-
INTENT = 'intent',
|
|
17
|
-
START_UP = 'start-up',
|
|
18
|
-
URL = 'url',
|
|
19
|
-
PAYLOAD = 'payload',
|
|
20
|
-
FUNCTION = 'function',
|
|
21
|
-
FALLBACK = 'fallback',
|
|
22
|
-
VIDEO = 'video',
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export interface BaseNode {
|
|
26
|
-
id: string
|
|
27
|
-
type: NodeType
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export interface Meta {
|
|
31
|
-
x: number
|
|
32
|
-
y: number
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export interface Node extends BaseNode {
|
|
36
|
-
code: string
|
|
37
|
-
meta: Meta
|
|
38
|
-
follow_up?: NodeLink
|
|
39
|
-
target?: NodeLink
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export interface NodeLink {
|
|
43
|
-
id: string
|
|
44
|
-
type: NodeType
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
export interface TextLocale {
|
|
48
|
-
message: string
|
|
49
|
-
locale: string
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export enum ButtonStyle {
|
|
53
|
-
BUTTON = 'button',
|
|
54
|
-
QUICK_REPLY = 'quick-reply',
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
export interface UrlLocale {
|
|
58
|
-
id: string
|
|
59
|
-
locale: string
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export interface PayloadLocale {
|
|
63
|
-
id: string
|
|
64
|
-
locale: string
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
export interface Button {
|
|
68
|
-
id: string
|
|
69
|
-
text: TextLocale[]
|
|
70
|
-
target?: NodeLink
|
|
71
|
-
hidden: string
|
|
72
|
-
url?: UrlLocale[]
|
|
73
|
-
payload?: PayloadLocale[]
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
export interface TextNodeContent {
|
|
77
|
-
text: TextLocale[]
|
|
78
|
-
buttons_style?: ButtonStyle
|
|
79
|
-
buttons: Button[]
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
export interface TextNode extends Node {
|
|
83
|
-
type: NodeType.TEXT
|
|
84
|
-
content: TextNodeContent
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
export interface MediaFileLocale {
|
|
88
|
-
id: string
|
|
89
|
-
file: string
|
|
90
|
-
locale: string
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
export interface ImageNodeContent {
|
|
94
|
-
image: MediaFileLocale[]
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
export interface ImageNode extends Node {
|
|
98
|
-
type: NodeType.IMAGE
|
|
99
|
-
content: ImageNodeContent
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
export interface CarouselElementNode {
|
|
103
|
-
id: string
|
|
104
|
-
title: TextLocale[]
|
|
105
|
-
subtitle: TextLocale[]
|
|
106
|
-
image: MediaFileLocale[]
|
|
107
|
-
button: Button
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
export interface CarouselNodeContent {
|
|
111
|
-
elements: CarouselElementNode[]
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
export interface CarouselNode extends Node {
|
|
115
|
-
type: NodeType.CAROUSEL
|
|
116
|
-
content: CarouselNodeContent
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
export interface QueueLocale {
|
|
120
|
-
id: string
|
|
121
|
-
name: string
|
|
122
|
-
locale: string
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
export interface HandoffNodeContent {
|
|
126
|
-
message: TextLocale[]
|
|
127
|
-
fail_message: TextLocale[]
|
|
128
|
-
queue: QueueLocale[]
|
|
129
|
-
payload: PayloadLocale[]
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
export interface HandoffNode extends Node {
|
|
133
|
-
type: NodeType.HANDOFF
|
|
134
|
-
content: HandoffNodeContent
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
export interface InputLocale {
|
|
138
|
-
values: string[]
|
|
139
|
-
locale: string
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
export interface KeywordNodeContent {
|
|
143
|
-
title: TextLocale[]
|
|
144
|
-
keywords: InputLocale[]
|
|
145
|
-
}
|
|
146
|
-
export interface KeywordNode extends Node {
|
|
147
|
-
type: NodeType.KEYWORD
|
|
148
|
-
content: KeywordNodeContent
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
export interface IntentNodeContent {
|
|
152
|
-
title: TextLocale[]
|
|
153
|
-
intents: InputLocale[]
|
|
154
|
-
confidence: number
|
|
155
|
-
}
|
|
156
|
-
export interface IntentNode extends Node {
|
|
157
|
-
type: NodeType.INTENT
|
|
158
|
-
content: IntentNodeContent
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
export interface StartNode extends BaseNode {
|
|
162
|
-
type: NodeType.START_UP
|
|
163
|
-
target: NodeLink
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
export interface UrlNodeContent {
|
|
167
|
-
url: string
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
export interface UrlNode extends BaseNode {
|
|
171
|
-
type: NodeType.URL
|
|
172
|
-
content: UrlNodeContent
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
export interface PayloadNodeContent {
|
|
176
|
-
payload: string
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
export interface PayloadNode extends BaseNode {
|
|
180
|
-
type: NodeType.PAYLOAD
|
|
181
|
-
content: PayloadNodeContent
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
export type ArgumentType = number | string | Record<any, any>
|
|
185
|
-
|
|
186
|
-
export interface FunctionNodeArgument {
|
|
187
|
-
type: ArgumentType
|
|
188
|
-
name: string
|
|
189
|
-
value: string
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
export interface FunctionNodeArgumentLocale {
|
|
193
|
-
locale: string
|
|
194
|
-
values: FunctionNodeArgument[]
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
export interface FunctionNodeResult {
|
|
198
|
-
result: string
|
|
199
|
-
target: NodeLink
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
export interface FunctionNodeContent {
|
|
203
|
-
action: string
|
|
204
|
-
arguments: FunctionNodeArgumentLocale[]
|
|
205
|
-
result_mapping: FunctionNodeResult[]
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
export interface FunctionNode extends Node {
|
|
209
|
-
type: NodeType.FUNCTION
|
|
210
|
-
content: FunctionNodeContent
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
export interface FallbackNodeContent {
|
|
214
|
-
first_message: NodeLink
|
|
215
|
-
second_message: NodeLink
|
|
216
|
-
}
|
|
217
|
-
export interface FallbackNode extends Node {
|
|
218
|
-
type: NodeType.FALLBACK
|
|
219
|
-
content: FallbackNodeContent
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
export interface VideoLocale {
|
|
223
|
-
url: string
|
|
224
|
-
is_embedded?: boolean
|
|
225
|
-
locale: string
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
export interface VideoNodeContent {
|
|
229
|
-
video: VideoLocale[]
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
export interface VideoNode extends Node {
|
|
233
|
-
type: NodeType.VIDEO
|
|
234
|
-
content: VideoNodeContent
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
export type NodeComponent =
|
|
238
|
-
| TextNode
|
|
239
|
-
| ImageNode
|
|
240
|
-
| CarouselNode
|
|
241
|
-
| HandoffNode
|
|
242
|
-
| KeywordNode
|
|
243
|
-
| IntentNode
|
|
244
|
-
| UrlNode
|
|
245
|
-
| StartNode
|
|
246
|
-
| PayloadNode
|
|
247
|
-
| FunctionNode
|
|
248
|
-
| FallbackNode
|
|
249
|
-
| VideoNode
|