app-v3-scripts-editor 1.11.5 → 1.12.1
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/app-v3-scripts-editor.css +1 -1
- package/dist/app-v3-scripts-editor.es.js +23124 -22465
- package/dist/app-v3-scripts-editor.umd.js +136 -136
- package/dist/src/lib/components/Blocks/Branch/block.d.ts +3 -0
- package/dist/src/lib/components/Blocks/Branch/index.css.d.ts +16 -0
- package/dist/src/lib/components/Blocks/Branch/index.d.ts +4 -0
- package/dist/src/lib/components/Blocks/Branch/index.settings.d.ts +3 -0
- package/dist/src/lib/components/Blocks/Branch/node.d.ts +3 -0
- package/dist/src/lib/components/Blocks/Branch/setting/Action.d.ts +4 -0
- package/dist/src/lib/components/Blocks/Branch/setting/Condition/index.css.d.ts +10 -0
- package/dist/src/lib/components/Blocks/Branch/setting/Condition/index.d.ts +4 -0
- package/dist/src/lib/components/Blocks/Branch/setting/Condition/property.d.ts +9 -0
- package/dist/src/lib/components/Blocks/Branch/setting/Setting.d.ts +4 -0
- package/dist/src/lib/components/Blocks/Branch/types.d.ts +23 -0
- package/dist/src/lib/components/Blocks/Email/types.d.ts +1 -1
- package/dist/src/lib/components/Shared/SuggestVariableNode/index.d.ts +3 -1
- package/dist/src/lib/components/Sidebar/sidebar.css.d.ts +1 -0
- package/dist/src/lib/constants/block-types.d.ts +2 -1
- package/dist/src/lib/constants/common.d.ts +65 -10
- package/dist/src/lib/constants/initial-script.d.ts +2 -0
- package/dist/src/lib/constants/node-types.d.ts +1 -0
- package/dist/src/lib/constants/sidebar-buttons.d.ts +2 -1
- package/dist/src/lib/icons/api/index.d.ts +3 -0
- package/dist/src/lib/icons/branches/index.d.ts +3 -0
- package/dist/src/lib/icons/flash/index.d.ts +3 -0
- package/dist/src/lib/icons/message-3/index.d.ts +3 -0
- package/dist/src/lib/icons/personal-card/index.d.ts +3 -0
- package/dist/src/lib/icons/sms/index.d.ts +3 -0
- package/dist/src/lib/icons/types.d.ts +7 -0
- package/package.json +1 -1
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const wrapper: string;
|
|
2
|
+
export declare const container: string;
|
|
3
|
+
export declare const iconWrapper: string;
|
|
4
|
+
export declare const iconPrimaryStyle: string;
|
|
5
|
+
export declare const iconAbsoluteStyle: string;
|
|
6
|
+
export declare const settingsContainer: string;
|
|
7
|
+
export declare const alertGroup: string;
|
|
8
|
+
export declare const radioGroup: string;
|
|
9
|
+
export declare const radioSpace: string;
|
|
10
|
+
export declare const radioItem: string;
|
|
11
|
+
export declare const radioContent: string;
|
|
12
|
+
export declare const checkIconWrapper: string;
|
|
13
|
+
export declare const triangle: string;
|
|
14
|
+
export declare const checkIcon: string;
|
|
15
|
+
export declare const emailTypeGroup: string;
|
|
16
|
+
export declare const radioButton: string;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const Container: string;
|
|
2
|
+
export declare const Header: string;
|
|
3
|
+
export declare const Title: string;
|
|
4
|
+
export declare const GroupFilterRow: string;
|
|
5
|
+
export declare const GroupCard: string;
|
|
6
|
+
export declare const GroupCardHover: string;
|
|
7
|
+
export declare const GroupHeader: string;
|
|
8
|
+
export declare const AddConditionButton: string;
|
|
9
|
+
export declare const AddConditionText: string;
|
|
10
|
+
export declare const TextCenter: string;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
type BranchConditionPropertyContainerProps = {
|
|
3
|
+
groupIndex: number;
|
|
4
|
+
name: number;
|
|
5
|
+
formItemName: (string | number)[];
|
|
6
|
+
remove: (index: number | number[]) => void;
|
|
7
|
+
};
|
|
8
|
+
declare const BranchConditionPropertyContainer: React.FC<BranchConditionPropertyContainerProps>;
|
|
9
|
+
export default BranchConditionPropertyContainer;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Node, NodeProps } from '@xyflow/react';
|
|
2
|
+
import { BlockTypeProps } from '../../../constants';
|
|
3
|
+
export declare enum BRANCH_TYPE {
|
|
4
|
+
BRANCH = "BRANCH"
|
|
5
|
+
}
|
|
6
|
+
export declare const BranchTypeLabel: {
|
|
7
|
+
BRANCH: string;
|
|
8
|
+
};
|
|
9
|
+
export declare const BranchTypeDescription: {
|
|
10
|
+
BRANCH: string;
|
|
11
|
+
};
|
|
12
|
+
export declare const BranchTypeList: BRANCH_TYPE[];
|
|
13
|
+
export interface BranchNodeData extends Record<string, unknown> {
|
|
14
|
+
title: string;
|
|
15
|
+
type: BRANCH_TYPE;
|
|
16
|
+
groups: {
|
|
17
|
+
id: string;
|
|
18
|
+
filter_type: "AND" | "OR";
|
|
19
|
+
conditions: any[];
|
|
20
|
+
}[];
|
|
21
|
+
}
|
|
22
|
+
export type BlockBranchProps = BlockTypeProps<BranchNodeData>;
|
|
23
|
+
export type BranchNodeProps = NodeProps<Node<BranchNodeData>>;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { AutoCompleteProps } from 'antd';
|
|
2
2
|
import { default as React } from 'react';
|
|
3
|
-
type SuggestVariableNodeContainerProps = {
|
|
3
|
+
type SuggestVariableNodeContainerProps = {
|
|
4
|
+
isCheckPrefix?: boolean;
|
|
5
|
+
} & AutoCompleteProps;
|
|
4
6
|
declare const SuggestVariableNodeContainer: React.FC<SuggestVariableNodeContainerProps>;
|
|
5
7
|
export default SuggestVariableNodeContainer;
|
|
@@ -14,7 +14,8 @@ export declare enum BlockType {
|
|
|
14
14
|
CALLBOT_ACTION = "CALLBOT_ACTION",
|
|
15
15
|
ORDER_ACTION = "ORDER_ACTION",
|
|
16
16
|
EMAIL = "EMAIL",
|
|
17
|
-
DELAY = "DELAY"
|
|
17
|
+
DELAY = "DELAY",
|
|
18
|
+
BRANCH = "BRANCH"
|
|
18
19
|
}
|
|
19
20
|
export declare enum SPEAK_TYPE {
|
|
20
21
|
MACHINE_AND_RECORD = "MACHINE_AND_RECORD",
|
|
@@ -17,25 +17,80 @@ export declare const CrmObjectTypeLabel: {
|
|
|
17
17
|
call: string;
|
|
18
18
|
};
|
|
19
19
|
export declare const CrmObjectTypeList: CRM_OBJECT_TYPE[];
|
|
20
|
-
export declare
|
|
21
|
-
|
|
20
|
+
export declare enum NUMBER_OPERATORS {
|
|
21
|
+
EQUAL = "EQUAL",
|
|
22
|
+
NOT_EQUAL = "NOT_EQUAL",
|
|
23
|
+
GREATER = "GREATER",
|
|
24
|
+
GREATER_EQUAL = "GREATER_EQUAL",
|
|
25
|
+
LESS = "LESS",
|
|
26
|
+
LESS_EQUAL = "LESS_EQUAL",
|
|
27
|
+
VALUABLE = "VALUABLE",
|
|
28
|
+
EMPTY = "EMPTY"
|
|
29
|
+
}
|
|
30
|
+
export declare const NumberOperatorLabel: Record<NUMBER_OPERATORS, string>;
|
|
31
|
+
export declare const NumberOperatorOptions: {
|
|
32
|
+
value: NUMBER_OPERATORS;
|
|
22
33
|
label: string;
|
|
23
34
|
}[];
|
|
24
35
|
export declare const SELECT_FILTER_TYPES: string[];
|
|
25
|
-
export declare
|
|
26
|
-
|
|
36
|
+
export declare enum TEXT_OPERATORS {
|
|
37
|
+
EQUAL = "EQUAL",
|
|
38
|
+
NOT_EQUAL = "NOT_EQUAL",
|
|
39
|
+
CONTAIN = "CONTAIN",
|
|
40
|
+
NOT_CONTAIN = "NOT_CONTAIN",
|
|
41
|
+
VALUABLE = "VALUABLE",
|
|
42
|
+
EMPTY = "EMPTY"
|
|
43
|
+
}
|
|
44
|
+
export declare const TextOperatorLabel: Record<TEXT_OPERATORS, string>;
|
|
45
|
+
export declare const TextOperatorOptions: {
|
|
46
|
+
value: TEXT_OPERATORS;
|
|
27
47
|
label: string;
|
|
28
48
|
}[];
|
|
29
|
-
export declare
|
|
30
|
-
|
|
49
|
+
export declare enum TIME_OPERATORS {
|
|
50
|
+
EQUAL = "EQUAL",
|
|
51
|
+
GREATER = "GREATER",
|
|
52
|
+
LESS = "LESS",
|
|
53
|
+
VALUABLE = "VALUABLE",
|
|
54
|
+
EMPTY = "EMPTY"
|
|
55
|
+
}
|
|
56
|
+
export declare const TimeOperatorLabel: Record<TIME_OPERATORS, string>;
|
|
57
|
+
export declare const TimeOperatorOptions: {
|
|
58
|
+
value: TIME_OPERATORS;
|
|
31
59
|
label: string;
|
|
32
60
|
}[];
|
|
33
|
-
export declare
|
|
34
|
-
|
|
61
|
+
export declare enum DATE_TYPE_OPTIONS {
|
|
62
|
+
EXACT_DATE = "EXACT_DATE",
|
|
63
|
+
TODAY = "TODAY",
|
|
64
|
+
YESERDAY = "YESERDAY",
|
|
65
|
+
THIS_WEEK = "THIS_WEEK",
|
|
66
|
+
LAST_WEEK = "LAST_WEEK",
|
|
67
|
+
THIS_MONTH = "THIS_MONTH",
|
|
68
|
+
LAST_MONTH = "LAST_MONTH",
|
|
69
|
+
THIS_QUARTER = "THIS_QUARTER",
|
|
70
|
+
PREVIOUS_QUARTER = "PREVIOUS_QUARTER",
|
|
71
|
+
LAST_7_DAYS = "LAST_7_DAYS",
|
|
72
|
+
LAST_30_DAYS = "LAST_30_DAYS",
|
|
73
|
+
TOMMOROW = "TOMMOROW",
|
|
74
|
+
NEXT_MONTH = "NEXT_MONTH",
|
|
75
|
+
NEXT_QUARTER = "NEXT_QUARTER",
|
|
76
|
+
THIS_YEAR = "THIS_YEAR",
|
|
77
|
+
LAST_YEAR = "LAST_YEAR",
|
|
78
|
+
NEXT_YEAR = "NEXT_YEAR",
|
|
79
|
+
NEXT_7_DAYS = "NEXT_7_DAYS",
|
|
80
|
+
NEXT_30_DAYS = "NEXT_30_DAYS"
|
|
81
|
+
}
|
|
82
|
+
export declare const DateTypeLabel: Record<DATE_TYPE_OPTIONS, string>;
|
|
83
|
+
export declare const DateTypeOptions: {
|
|
84
|
+
value: DATE_TYPE_OPTIONS;
|
|
35
85
|
label: string;
|
|
36
86
|
}[];
|
|
37
|
-
export declare
|
|
38
|
-
|
|
87
|
+
export declare enum FILE_OPERATORS {
|
|
88
|
+
VALUABLE = "VALUABLE",
|
|
89
|
+
EMPTY = "EMPTY"
|
|
90
|
+
}
|
|
91
|
+
export declare const FileOperatorLabel: Record<FILE_OPERATORS, string>;
|
|
92
|
+
export declare const FileOperatorOptions: {
|
|
93
|
+
value: FILE_OPERATORS;
|
|
39
94
|
label: string;
|
|
40
95
|
}[];
|
|
41
96
|
export declare enum DATA_TYPE_PROPERTY {
|
|
@@ -8,6 +8,7 @@ export declare const nodeTypes: {
|
|
|
8
8
|
CONTACT_ACTION: import('react').FC<import('../components/Blocks/Contact/action/types').BlockContactActionProps>;
|
|
9
9
|
EMAIL: import('react').FC<import('../components/Blocks/Email/types').BlockEmailActionProps>;
|
|
10
10
|
DELAY: import('react').FC<import('../components/Blocks/Delay/types').BlockDelayActionProps>;
|
|
11
|
+
BRANCH: import('react').FC<import('../components/Blocks/Branch/types').BlockBranchProps>;
|
|
11
12
|
};
|
|
12
13
|
export declare const getNodeColor: (node: any) => string;
|
|
13
14
|
export default nodeTypes;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
+
import { IconProps } from '../icons/types';
|
|
2
3
|
import { BlockType } from './block-types';
|
|
3
4
|
export interface AutoCallSidebarButton {
|
|
4
5
|
key: BlockType;
|
|
@@ -11,7 +12,7 @@ export interface AutoFlowSidebarButton {
|
|
|
11
12
|
key: string;
|
|
12
13
|
label: string;
|
|
13
14
|
description?: string;
|
|
14
|
-
icon: React.
|
|
15
|
+
icon: React.FC<IconProps>;
|
|
15
16
|
color?: string;
|
|
16
17
|
group?: string | number;
|
|
17
18
|
items?: AutoFlowSidebarButton[];
|