app-v3-scripts-editor 1.38.6 → 1.38.8
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 +46107 -42584
- package/dist/app-v3-scripts-editor.umd.js +220 -220
- package/dist/src/lib/components/Blocks/Deal/action/block.d.ts +3 -0
- package/dist/src/lib/components/Blocks/Deal/action/index.d.ts +4 -0
- package/dist/src/lib/components/Blocks/{Task → Deal/action}/index.settings.d.ts +1 -1
- package/dist/src/lib/components/Blocks/Deal/action/node.d.ts +3 -0
- package/dist/src/lib/components/Blocks/Deal/action/setting/Action.d.ts +4 -0
- package/dist/src/lib/components/Blocks/Deal/action/setting/CreateAction.d.ts +4 -0
- package/dist/src/lib/components/Blocks/Deal/action/setting/GetDataAction.d.ts +4 -0
- package/dist/src/lib/components/Blocks/Deal/action/setting/Output.d.ts +7 -0
- package/dist/src/lib/components/Blocks/Deal/action/setting/UpdateAction.d.ts +4 -0
- package/dist/src/lib/components/Blocks/Deal/action/types.d.ts +44 -0
- package/dist/src/lib/components/Blocks/Deal/index.css.d.ts +18 -0
- package/dist/src/lib/components/Blocks/Deal/trigger/block.d.ts +3 -0
- package/dist/src/lib/components/Blocks/Deal/trigger/index.d.ts +4 -0
- package/dist/src/lib/components/Blocks/Deal/trigger/index.settings.d.ts +3 -0
- package/dist/src/lib/components/Blocks/Deal/trigger/node.d.ts +3 -0
- package/dist/src/lib/components/Blocks/Deal/trigger/setting/Output.d.ts +7 -0
- package/dist/src/lib/components/Blocks/Deal/trigger/setting/Setting.d.ts +4 -0
- package/dist/src/lib/components/Blocks/Deal/trigger/setting/Trigger.d.ts +4 -0
- package/dist/src/lib/components/Blocks/Deal/trigger/setting/UpdatedByCondition.d.ts +2 -0
- package/dist/src/lib/components/Blocks/Deal/trigger/types.d.ts +66 -0
- package/dist/src/lib/components/Blocks/Enterprise/action/block.d.ts +3 -0
- package/dist/src/lib/components/Blocks/Enterprise/action/index.d.ts +4 -0
- package/dist/src/lib/components/Blocks/Enterprise/action/index.settings.d.ts +3 -0
- package/dist/src/lib/components/Blocks/Enterprise/action/node.d.ts +3 -0
- package/dist/src/lib/components/Blocks/Enterprise/action/setting/Action.d.ts +4 -0
- package/dist/src/lib/components/Blocks/Enterprise/action/setting/CreateAction.d.ts +4 -0
- package/dist/src/lib/components/Blocks/Enterprise/action/setting/GetDataAction.d.ts +4 -0
- package/dist/src/lib/components/Blocks/Enterprise/action/setting/Output.d.ts +7 -0
- package/dist/src/lib/components/Blocks/Enterprise/action/setting/UpdateAction.d.ts +4 -0
- package/dist/src/lib/components/Blocks/Enterprise/action/types.d.ts +44 -0
- package/dist/src/lib/components/Blocks/Enterprise/index.css.d.ts +18 -0
- package/dist/src/lib/components/Blocks/Enterprise/trigger/block.d.ts +3 -0
- package/dist/src/lib/components/Blocks/Enterprise/trigger/index.d.ts +4 -0
- package/dist/src/lib/components/Blocks/Enterprise/trigger/index.settings.d.ts +3 -0
- package/dist/src/lib/components/Blocks/Enterprise/trigger/node.d.ts +3 -0
- package/dist/src/lib/components/Blocks/Enterprise/trigger/setting/Output.d.ts +7 -0
- package/dist/src/lib/components/Blocks/Enterprise/trigger/setting/Setting.d.ts +4 -0
- package/dist/src/lib/components/Blocks/Enterprise/trigger/setting/Trigger.d.ts +4 -0
- package/dist/src/lib/components/Blocks/Enterprise/trigger/setting/UpdatedByCondition.d.ts +2 -0
- package/dist/src/lib/components/Blocks/Enterprise/trigger/types.d.ts +66 -0
- package/dist/src/lib/components/Blocks/Meeting/action/block.d.ts +3 -0
- package/dist/src/lib/components/Blocks/Meeting/action/index.d.ts +4 -0
- package/dist/src/lib/components/Blocks/Meeting/action/index.settings.d.ts +3 -0
- package/dist/src/lib/components/Blocks/Meeting/action/node.d.ts +3 -0
- package/dist/src/lib/components/Blocks/Meeting/action/setting/Action.d.ts +4 -0
- package/dist/src/lib/components/Blocks/Meeting/action/setting/CreateAction.d.ts +4 -0
- package/dist/src/lib/components/Blocks/Meeting/action/setting/GetDataAction.d.ts +4 -0
- package/dist/src/lib/components/Blocks/Meeting/action/setting/Output.d.ts +7 -0
- package/dist/src/lib/components/Blocks/Meeting/action/setting/UpdateAction.d.ts +4 -0
- package/dist/src/lib/components/Blocks/Meeting/action/types.d.ts +44 -0
- package/dist/src/lib/components/Blocks/Meeting/index.css.d.ts +18 -0
- package/dist/src/lib/components/Blocks/Meeting/trigger/block.d.ts +3 -0
- package/dist/src/lib/components/Blocks/Meeting/trigger/index.d.ts +4 -0
- package/dist/src/lib/components/Blocks/Meeting/trigger/index.settings.d.ts +3 -0
- package/dist/src/lib/components/Blocks/Meeting/trigger/node.d.ts +3 -0
- package/dist/src/lib/components/Blocks/Meeting/trigger/setting/Output.d.ts +7 -0
- package/dist/src/lib/components/Blocks/Meeting/trigger/setting/Setting.d.ts +4 -0
- package/dist/src/lib/components/Blocks/Meeting/trigger/setting/Trigger.d.ts +4 -0
- package/dist/src/lib/components/Blocks/Meeting/trigger/setting/UpdatedByCondition.d.ts +2 -0
- package/dist/src/lib/components/Blocks/Meeting/trigger/types.d.ts +66 -0
- package/dist/src/lib/components/Blocks/Task/action/block.d.ts +3 -0
- package/dist/src/lib/components/Blocks/Task/action/index.d.ts +4 -0
- package/dist/src/lib/components/Blocks/Task/action/index.settings.d.ts +3 -0
- package/dist/src/lib/components/Blocks/Task/action/node.d.ts +3 -0
- package/dist/src/lib/components/Blocks/Task/action/setting/Action.d.ts +4 -0
- package/dist/src/lib/components/Blocks/Task/action/setting/CreateAction.d.ts +4 -0
- package/dist/src/lib/components/Blocks/Task/action/setting/GetDataAction.d.ts +4 -0
- package/dist/src/lib/components/Blocks/Task/action/setting/Output.d.ts +7 -0
- package/dist/src/lib/components/Blocks/Task/action/setting/UpdateAction.d.ts +4 -0
- package/dist/src/lib/components/Blocks/Task/{types.d.ts → action/types.d.ts} +13 -13
- package/dist/src/lib/components/Blocks/Task/index.css.d.ts +18 -1
- package/dist/src/lib/components/Blocks/Task/trigger/block.d.ts +3 -0
- package/dist/src/lib/components/Blocks/Task/trigger/index.d.ts +4 -0
- package/dist/src/lib/components/Blocks/Task/trigger/index.settings.d.ts +3 -0
- package/dist/src/lib/components/Blocks/Task/trigger/node.d.ts +3 -0
- package/dist/src/lib/components/Blocks/Task/trigger/setting/Output.d.ts +7 -0
- package/dist/src/lib/components/Blocks/Task/trigger/setting/Setting.d.ts +4 -0
- package/dist/src/lib/components/Blocks/Task/trigger/setting/Trigger.d.ts +4 -0
- package/dist/src/lib/components/Blocks/Task/trigger/setting/UpdatedByCondition.d.ts +2 -0
- package/dist/src/lib/components/Blocks/Task/trigger/types.d.ts +66 -0
- package/dist/src/lib/components/Blocks/Ticket/action/block.d.ts +3 -3
- package/dist/src/lib/components/Blocks/Ticket/action/index.d.ts +4 -4
- package/dist/src/lib/components/Blocks/Ticket/action/index.settings.d.ts +1 -1
- package/dist/src/lib/components/Blocks/Ticket/action/node.d.ts +3 -3
- package/dist/src/lib/components/Blocks/Ticket/action/setting/Action.d.ts +4 -2
- package/dist/src/lib/components/Blocks/Ticket/action/setting/CreateAction.d.ts +4 -2
- package/dist/src/lib/components/Blocks/Ticket/action/setting/GetDataAction.d.ts +4 -2
- package/dist/src/lib/components/Blocks/Ticket/action/setting/Output.d.ts +3 -3
- package/dist/src/lib/components/Blocks/Ticket/action/setting/UpdateAction.d.ts +4 -2
- package/dist/src/lib/components/Blocks/Ticket/action/types.d.ts +7 -7
- package/dist/src/lib/components/Blocks/Ticket/trigger/setting/UpdatedByCondition.d.ts +2 -0
- package/dist/src/lib/components/Blocks/Ticket/trigger/types.d.ts +4 -1
- package/dist/src/lib/components/Selector/Property/index.d.ts +1 -1
- package/dist/src/lib/constants/block-types.d.ts +8 -1
- package/dist/src/lib/constants/initial-script.d.ts +34 -12
- package/dist/src/lib/constants/node-types.d.ts +9 -2
- package/dist/src/lib/utils/common.d.ts +65 -2
- package/package.json +1 -1
- package/dist/src/lib/components/Blocks/Contact/trigger/utils.d.ts +0 -72
- package/dist/src/lib/components/Blocks/Task/block.d.ts +0 -3
- package/dist/src/lib/components/Blocks/Task/index.d.ts +0 -4
- package/dist/src/lib/components/Blocks/Task/node.d.ts +0 -3
- package/dist/src/lib/components/Blocks/Task/setting/Action.d.ts +0 -2
- package/dist/src/lib/components/Blocks/Task/setting/CreateAction.d.ts +0 -2
- package/dist/src/lib/components/Blocks/Task/setting/GetDataAction.d.ts +0 -2
- package/dist/src/lib/components/Blocks/Task/setting/Output.d.ts +0 -7
- package/dist/src/lib/components/Blocks/Task/setting/UpdateAction.d.ts +0 -2
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { Node, NodeProps } from '@xyflow/react';
|
|
2
|
+
import { IFilterGroup, INodeBaseType, IPropertyV2 } from '../../../../../services';
|
|
3
|
+
import { BlockTypeProps } from '../../../../constants';
|
|
4
|
+
export declare enum MEETING_TRIGGER_TYPE {
|
|
5
|
+
CREATED = "created",
|
|
6
|
+
UPDATED = "updated",
|
|
7
|
+
UPDATED_BY_CONDITION = "updated_by_condition",
|
|
8
|
+
DELETED = "deleted",
|
|
9
|
+
TIME = "TIME"
|
|
10
|
+
}
|
|
11
|
+
export declare enum TRIGGER_DATE_OPTION {
|
|
12
|
+
SAME_DAY = "SAME_DAY",
|
|
13
|
+
BEFORE = "BEFORE",
|
|
14
|
+
AFTER = "AFTER"
|
|
15
|
+
}
|
|
16
|
+
export declare enum TRIGGER_TIME_OPTION {
|
|
17
|
+
AT_EVENT = "AT_EVENT",
|
|
18
|
+
BEFORE_EVENT = "BEFORE_EVENT",
|
|
19
|
+
AFTER_EVENT = "AFTER_EVENT",
|
|
20
|
+
FIXED_TIME = "FIXED_TIME"
|
|
21
|
+
}
|
|
22
|
+
export declare const MeetingTriggerTypeLabel: {
|
|
23
|
+
created: string;
|
|
24
|
+
updated: string;
|
|
25
|
+
updated_by_condition: string;
|
|
26
|
+
deleted: string;
|
|
27
|
+
TIME: string;
|
|
28
|
+
};
|
|
29
|
+
export declare const MeetingTriggerTypeDescription: {
|
|
30
|
+
created: string;
|
|
31
|
+
updated_by_condition: string;
|
|
32
|
+
updated: string;
|
|
33
|
+
deleted: string;
|
|
34
|
+
TIME: string;
|
|
35
|
+
};
|
|
36
|
+
export declare const MeetingTriggerTypeList: MEETING_TRIGGER_TYPE[];
|
|
37
|
+
export declare const MeetingTriggerDateOptionLabel: {
|
|
38
|
+
SAME_DAY: string;
|
|
39
|
+
BEFORE: string;
|
|
40
|
+
AFTER: string;
|
|
41
|
+
};
|
|
42
|
+
export declare const MeetingTriggerDateOptionList: TRIGGER_DATE_OPTION[];
|
|
43
|
+
export declare const MeetingTriggerTimeOptionLabel: {
|
|
44
|
+
AT_EVENT: string;
|
|
45
|
+
BEFORE_EVENT: string;
|
|
46
|
+
AFTER_EVENT: string;
|
|
47
|
+
FIXED_TIME: string;
|
|
48
|
+
};
|
|
49
|
+
export declare const MeetingTriggerTimeOptionList: TRIGGER_TIME_OPTION[];
|
|
50
|
+
export interface MeetingTriggerNodeData extends INodeBaseType, Record<string, unknown> {
|
|
51
|
+
title: string;
|
|
52
|
+
type: MEETING_TRIGGER_TYPE;
|
|
53
|
+
object: string;
|
|
54
|
+
filter_type: "AND" | "OR";
|
|
55
|
+
groups: IFilterGroup[];
|
|
56
|
+
time_field?: IPropertyV2;
|
|
57
|
+
date_config_value?: TRIGGER_DATE_OPTION;
|
|
58
|
+
date_config_offset?: number;
|
|
59
|
+
time_config_value?: TRIGGER_TIME_OPTION;
|
|
60
|
+
time_config_fixed_time?: string;
|
|
61
|
+
time_config_offset?: number;
|
|
62
|
+
time_config_offset_unit?: "MINUTES" | "HOURS";
|
|
63
|
+
change_field_ids?: string[];
|
|
64
|
+
}
|
|
65
|
+
export type BlockTriggerMeetingProps = BlockTypeProps<MeetingTriggerNodeData>;
|
|
66
|
+
export type TriggerMeetingNodeProps = NodeProps<Node<MeetingTriggerNodeData>>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IOutput } from '../../../../../../services';
|
|
2
|
+
type TaskActionOutputContainerProps = {
|
|
3
|
+
id: string;
|
|
4
|
+
outputs: IOutput["outputs"];
|
|
5
|
+
};
|
|
6
|
+
declare const TaskActionOutputContainer: React.FC<TaskActionOutputContainerProps>;
|
|
7
|
+
export default TaskActionOutputContainer;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Node, NodeProps } from '@xyflow/react';
|
|
2
|
-
import { IFilter, INodeBaseType } from '
|
|
3
|
-
import { BlockTypeProps } from '
|
|
4
|
-
import { DATA_TYPE_PROPERTY_V2 } from '
|
|
5
|
-
export declare enum
|
|
2
|
+
import { IFilter, INodeBaseType } from '../../../../../services';
|
|
3
|
+
import { BlockTypeProps } from '../../../../constants';
|
|
4
|
+
import { DATA_TYPE_PROPERTY_V2 } from '../../../../constants/common';
|
|
5
|
+
export declare enum ACTION_TASK_TYPE {
|
|
6
6
|
CREATE = "CREATE",
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
GET = "GET",
|
|
8
|
+
UPDATE = "UPDATE"
|
|
9
9
|
}
|
|
10
10
|
export declare const TaskActionTypeLabel: {
|
|
11
11
|
CREATE: string;
|
|
@@ -17,28 +17,28 @@ export declare const TaskActionTypeDescription: {
|
|
|
17
17
|
UPDATE: string;
|
|
18
18
|
GET: string;
|
|
19
19
|
};
|
|
20
|
-
export declare const TaskActionTypeList:
|
|
20
|
+
export declare const TaskActionTypeList: ACTION_TASK_TYPE[];
|
|
21
21
|
interface TaskActionGroup {
|
|
22
22
|
object?: string;
|
|
23
23
|
filter_type?: "AND" | "OR";
|
|
24
24
|
conditions: IFilter[];
|
|
25
25
|
}
|
|
26
|
-
export interface
|
|
26
|
+
export interface TaskActionNodeData extends INodeBaseType, Record<string, unknown> {
|
|
27
27
|
title: string;
|
|
28
|
-
type
|
|
28
|
+
type: ACTION_TASK_TYPE;
|
|
29
29
|
filter_type?: "AND" | "OR";
|
|
30
30
|
groups?: TaskActionGroup[];
|
|
31
31
|
object?: string;
|
|
32
|
-
|
|
32
|
+
crmtask?: string[];
|
|
33
33
|
update_fields?: {
|
|
34
34
|
id?: string;
|
|
35
35
|
slug?: string;
|
|
36
36
|
name?: string;
|
|
37
|
-
value?:
|
|
37
|
+
value?: any;
|
|
38
38
|
type?: DATA_TYPE_PROPERTY_V2;
|
|
39
39
|
reference_type?: boolean;
|
|
40
40
|
}[];
|
|
41
41
|
}
|
|
42
|
-
export type
|
|
43
|
-
export type
|
|
42
|
+
export type BlockTaskActionProps = BlockTypeProps<TaskActionNodeData>;
|
|
43
|
+
export type TaskActionNodeProps = NodeProps<Node<TaskActionNodeData>>;
|
|
44
44
|
export {};
|
|
@@ -1 +1,18 @@
|
|
|
1
|
-
export
|
|
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 UserWrapper: string;
|
|
16
|
+
export declare const outputAssignHandleList: string;
|
|
17
|
+
export declare const outputAssignHandleItem: string;
|
|
18
|
+
export declare const ToggleWrapperFilterGroup: string;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IOutput } from '../../../../../../services';
|
|
2
|
+
type TaskTriggerOutputContainerProps = {
|
|
3
|
+
id: string;
|
|
4
|
+
outputs: IOutput["outputs"];
|
|
5
|
+
};
|
|
6
|
+
declare const TaskTriggerOutputContainer: React.FC<TaskTriggerOutputContainerProps>;
|
|
7
|
+
export default TaskTriggerOutputContainer;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { Node, NodeProps } from '@xyflow/react';
|
|
2
|
+
import { IFilterGroup, INodeBaseType, IPropertyV2 } from '../../../../../services';
|
|
3
|
+
import { BlockTypeProps } from '../../../../constants';
|
|
4
|
+
export declare enum TASK_TRIGGER_TYPE {
|
|
5
|
+
CREATED = "created",
|
|
6
|
+
UPDATED = "updated",
|
|
7
|
+
UPDATED_BY_CONDITION = "updated_by_condition",
|
|
8
|
+
DELETED = "deleted",
|
|
9
|
+
TIME = "TIME"
|
|
10
|
+
}
|
|
11
|
+
export declare enum TRIGGER_DATE_OPTION {
|
|
12
|
+
SAME_DAY = "SAME_DAY",
|
|
13
|
+
BEFORE = "BEFORE",
|
|
14
|
+
AFTER = "AFTER"
|
|
15
|
+
}
|
|
16
|
+
export declare enum TRIGGER_TIME_OPTION {
|
|
17
|
+
AT_EVENT = "AT_EVENT",
|
|
18
|
+
BEFORE_EVENT = "BEFORE_EVENT",
|
|
19
|
+
AFTER_EVENT = "AFTER_EVENT",
|
|
20
|
+
FIXED_TIME = "FIXED_TIME"
|
|
21
|
+
}
|
|
22
|
+
export declare const TaskTriggerTypeLabel: {
|
|
23
|
+
created: string;
|
|
24
|
+
updated: string;
|
|
25
|
+
updated_by_condition: string;
|
|
26
|
+
deleted: string;
|
|
27
|
+
TIME: string;
|
|
28
|
+
};
|
|
29
|
+
export declare const TaskTriggerTypeDescription: {
|
|
30
|
+
created: string;
|
|
31
|
+
updated_by_condition: string;
|
|
32
|
+
updated: string;
|
|
33
|
+
deleted: string;
|
|
34
|
+
TIME: string;
|
|
35
|
+
};
|
|
36
|
+
export declare const TaskTriggerTypeList: TASK_TRIGGER_TYPE[];
|
|
37
|
+
export declare const TaskTriggerDateOptionLabel: {
|
|
38
|
+
SAME_DAY: string;
|
|
39
|
+
BEFORE: string;
|
|
40
|
+
AFTER: string;
|
|
41
|
+
};
|
|
42
|
+
export declare const TaskTriggerDateOptionList: TRIGGER_DATE_OPTION[];
|
|
43
|
+
export declare const TaskTriggerTimeOptionLabel: {
|
|
44
|
+
AT_EVENT: string;
|
|
45
|
+
BEFORE_EVENT: string;
|
|
46
|
+
AFTER_EVENT: string;
|
|
47
|
+
FIXED_TIME: string;
|
|
48
|
+
};
|
|
49
|
+
export declare const TaskTriggerTimeOptionList: TRIGGER_TIME_OPTION[];
|
|
50
|
+
export interface TaskTriggerNodeData extends INodeBaseType, Record<string, unknown> {
|
|
51
|
+
title: string;
|
|
52
|
+
type: TASK_TRIGGER_TYPE;
|
|
53
|
+
object: string;
|
|
54
|
+
filter_type: "AND" | "OR";
|
|
55
|
+
groups: IFilterGroup[];
|
|
56
|
+
time_field?: IPropertyV2;
|
|
57
|
+
date_config_value?: TRIGGER_DATE_OPTION;
|
|
58
|
+
date_config_offset?: number;
|
|
59
|
+
time_config_value?: TRIGGER_TIME_OPTION;
|
|
60
|
+
time_config_fixed_time?: string;
|
|
61
|
+
time_config_offset?: number;
|
|
62
|
+
time_config_offset_unit?: "MINUTES" | "HOURS";
|
|
63
|
+
change_field_ids?: string[];
|
|
64
|
+
}
|
|
65
|
+
export type BlockTaskTriggerProps = BlockTypeProps<TaskTriggerNodeData>;
|
|
66
|
+
export type TaskTriggerNodeProps = NodeProps<Node<TaskTriggerNodeData>>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const
|
|
3
|
-
export default
|
|
1
|
+
import { BlockTicketActionProps } from './types';
|
|
2
|
+
declare const BlockTicketAction: ({ id, data, mini }: BlockTicketActionProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default BlockTicketAction;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { default as
|
|
2
|
-
import { default as
|
|
3
|
-
export default
|
|
4
|
-
export {
|
|
1
|
+
import { default as BlockTicketAction } from './block';
|
|
2
|
+
import { default as TicketActionNode } from './node';
|
|
3
|
+
export default TicketActionNode;
|
|
4
|
+
export { BlockTicketAction };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const
|
|
3
|
-
export default
|
|
1
|
+
import { BlockTicketActionProps } from './types';
|
|
2
|
+
declare const TicketActionNode: React.FC<BlockTicketActionProps>;
|
|
3
|
+
export default TicketActionNode;
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
type TicketActionSettingContainerProps = {};
|
|
3
|
+
declare const TicketActionSettingContainer: React.FC<TicketActionSettingContainerProps>;
|
|
4
|
+
export default TicketActionSettingContainer;
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
type CreateTicketActionSettingContainerProps = {};
|
|
3
|
+
declare const CreateTicketActionSettingContainer: React.FC<CreateTicketActionSettingContainerProps>;
|
|
4
|
+
export default CreateTicketActionSettingContainer;
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
type GetDataTicketActionSettingContainerProps = {};
|
|
3
|
+
declare const GetDataTicketActionSettingContainer: React.FC<GetDataTicketActionSettingContainerProps>;
|
|
4
|
+
export default GetDataTicketActionSettingContainer;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IOutput } from '../../../../../../services';
|
|
2
|
-
type
|
|
2
|
+
type TicketActionOutputContainerProps = {
|
|
3
3
|
id: string;
|
|
4
4
|
outputs: IOutput["outputs"];
|
|
5
5
|
};
|
|
6
|
-
declare const
|
|
7
|
-
export default
|
|
6
|
+
declare const TicketActionOutputContainer: React.FC<TicketActionOutputContainerProps>;
|
|
7
|
+
export default TicketActionOutputContainer;
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
type UpdateTicketActionSettingContainerProps = {};
|
|
3
|
+
declare const UpdateTicketActionSettingContainer: React.FC<UpdateTicketActionSettingContainerProps>;
|
|
4
|
+
export default UpdateTicketActionSettingContainer;
|
|
@@ -4,8 +4,8 @@ import { BlockTypeProps } from '../../../../constants';
|
|
|
4
4
|
import { DATA_TYPE_PROPERTY_V2 } from '../../../../constants/common';
|
|
5
5
|
export declare enum ACTION_TICKET_TYPE {
|
|
6
6
|
CREATE = "CREATE",
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
GET = "GET",
|
|
8
|
+
UPDATE = "UPDATE"
|
|
9
9
|
}
|
|
10
10
|
export declare const TicketActionTypeLabel: {
|
|
11
11
|
CREATE: string;
|
|
@@ -23,9 +23,9 @@ interface TicketActionGroup {
|
|
|
23
23
|
filter_type?: "AND" | "OR";
|
|
24
24
|
conditions: IFilter[];
|
|
25
25
|
}
|
|
26
|
-
export interface
|
|
26
|
+
export interface TicketActionNodeData extends INodeBaseType, Record<string, unknown> {
|
|
27
27
|
title: string;
|
|
28
|
-
type
|
|
28
|
+
type: ACTION_TICKET_TYPE;
|
|
29
29
|
filter_type?: "AND" | "OR";
|
|
30
30
|
groups?: TicketActionGroup[];
|
|
31
31
|
object?: string;
|
|
@@ -34,11 +34,11 @@ export interface ActionTicketNodeData extends INodeBaseType, Record<string, unkn
|
|
|
34
34
|
id?: string;
|
|
35
35
|
slug?: string;
|
|
36
36
|
name?: string;
|
|
37
|
-
value?:
|
|
37
|
+
value?: any;
|
|
38
38
|
type?: DATA_TYPE_PROPERTY_V2;
|
|
39
39
|
reference_type?: boolean;
|
|
40
40
|
}[];
|
|
41
41
|
}
|
|
42
|
-
export type
|
|
43
|
-
export type
|
|
42
|
+
export type BlockTicketActionProps = BlockTypeProps<TicketActionNodeData>;
|
|
43
|
+
export type TicketActionNodeProps = NodeProps<Node<TicketActionNodeData>>;
|
|
44
44
|
export {};
|
|
@@ -4,6 +4,7 @@ import { BlockTypeProps } from '../../../../constants';
|
|
|
4
4
|
export declare enum TICKET_TRIGGER_TYPE {
|
|
5
5
|
CREATED = "created",
|
|
6
6
|
UPDATED = "updated",
|
|
7
|
+
UPDATED_BY_CONDITION = "updated_by_condition",
|
|
7
8
|
DELETED = "deleted",
|
|
8
9
|
TIME = "TIME"
|
|
9
10
|
}
|
|
@@ -21,11 +22,13 @@ export declare enum TRIGGER_TIME_OPTION {
|
|
|
21
22
|
export declare const TicketTriggerTypeLabel: {
|
|
22
23
|
created: string;
|
|
23
24
|
updated: string;
|
|
25
|
+
updated_by_condition: string;
|
|
24
26
|
deleted: string;
|
|
25
27
|
TIME: string;
|
|
26
28
|
};
|
|
27
29
|
export declare const TicketTriggerTypeDescription: {
|
|
28
30
|
created: string;
|
|
31
|
+
updated_by_condition: string;
|
|
29
32
|
updated: string;
|
|
30
33
|
deleted: string;
|
|
31
34
|
TIME: string;
|
|
@@ -57,7 +60,7 @@ export interface TicketTriggerNodeData extends INodeBaseType, Record<string, unk
|
|
|
57
60
|
time_config_fixed_time?: string;
|
|
58
61
|
time_config_offset?: number;
|
|
59
62
|
time_config_offset_unit?: "MINUTES" | "HOURS";
|
|
60
|
-
|
|
63
|
+
change_field_ids?: string[];
|
|
61
64
|
}
|
|
62
65
|
export type BlockTicketTriggerProps = BlockTypeProps<TicketTriggerNodeData>;
|
|
63
66
|
export type TicketTriggerNodeProps = NodeProps<Node<TicketTriggerNodeData>>;
|
|
@@ -4,7 +4,7 @@ import { IPropertyV2 } from '../../../../services';
|
|
|
4
4
|
import { DATA_TYPE_PROPERTY_V2 } from '../../../constants/common';
|
|
5
5
|
type PropertySelectorProps = {
|
|
6
6
|
dataDefault?: IPropertyV2 | IPropertyV2[];
|
|
7
|
-
modal: "contact" | "enterprise" | "crmdeal" | "crmorder" | "crmmeeting" | "crmproduct" | "ticket";
|
|
7
|
+
modal: "contact" | "enterprise" | "crmdeal" | "crmorder" | "crmmeeting" | "crmproduct" | "ticket" | "crmtask";
|
|
8
8
|
propertyType?: DATA_TYPE_PROPERTY_V2[];
|
|
9
9
|
} & SelectProps;
|
|
10
10
|
declare const PropertySelector: React.FC<PropertySelectorProps>;
|
|
@@ -11,9 +11,13 @@ export declare enum BlockType {
|
|
|
11
11
|
CONDITION = "CONDITION",
|
|
12
12
|
GROUP = "GROUP",
|
|
13
13
|
TRIGGER_CONTACT = "TRIGGER_CONTACT",
|
|
14
|
+
TRIGGER_CRMMEETING = "TRIGGER_CRMMEETING",
|
|
14
15
|
TRIGGER_CALLBOT = "TRIGGER_CALLBOT",
|
|
15
16
|
TRIGGER_CRMORDER = "TRIGGER_CRMORDER",
|
|
16
17
|
TRIGGER_TICKET = "TRIGGER_TICKET",
|
|
18
|
+
TRIGGER_CRMTASK = "TRIGGER_CRMTASK",
|
|
19
|
+
TRIGGER_ENTERPRISE = "TRIGGER_ENTERPRISE",
|
|
20
|
+
TRIGGER_CRMDEAL = "TRIGGER_CRMDEAL",
|
|
17
21
|
SCHEDULE_AT = "SCHEDULE_AT",
|
|
18
22
|
TRIGGER_CATCH_HOOK = "TRIGGER_CATCH_HOOK",
|
|
19
23
|
TRIGGER_CALLBOT_CUSTOMER = "TRIGGER_CALLBOT_CUSTOMER",
|
|
@@ -24,9 +28,12 @@ export declare enum BlockType {
|
|
|
24
28
|
SMS_CAMPAIGN = "SMS_CAMPAIGN",
|
|
25
29
|
TRIGGER_ZNS = "TRIGGER_ZNS",
|
|
26
30
|
ZNS_CUSTOMER = "ZNS_CUSTOMER",
|
|
27
|
-
|
|
31
|
+
ACTION_CRMTASK = "ACTION_CRMTASK",
|
|
28
32
|
ACTION_CRMORDER = "ACTION_CRMORDER",
|
|
29
33
|
ACTION_TICKET = "ACTION_TICKET",
|
|
34
|
+
ACTION_CRMMEETING = "ACTION_CRMMEETING",
|
|
35
|
+
ACTION_ENTERPRISE = "ACTION_ENTERPRISE",
|
|
36
|
+
ACTION_CRMDEAL = "ACTION_CRMDEAL",
|
|
30
37
|
EMAIL = "EMAIL",
|
|
31
38
|
DELAY = "DELAY",
|
|
32
39
|
BRANCH = "BRANCH",
|
|
@@ -10,7 +10,9 @@ export declare const initialTitles: {
|
|
|
10
10
|
HTTP_REQUEST: string;
|
|
11
11
|
GROUP: string;
|
|
12
12
|
TRIGGER_CONTACT: string;
|
|
13
|
+
TRIGGER_CRMMEETING: string;
|
|
13
14
|
TRIGGER_TICKET: string;
|
|
15
|
+
TRIGGER_CRMTASK: string;
|
|
14
16
|
ACTION_TICKET: string;
|
|
15
17
|
EMAIL: string;
|
|
16
18
|
DELAY: string;
|
|
@@ -29,7 +31,7 @@ export declare const initialTitles: {
|
|
|
29
31
|
SMS_CAMPAIGN: string;
|
|
30
32
|
TRIGGER_ZNS: string;
|
|
31
33
|
ZNS_CUSTOMER: string;
|
|
32
|
-
|
|
34
|
+
ACTION_CRMTASK: string;
|
|
33
35
|
TRIGGER_CALLBOT_CUSTOMER: string;
|
|
34
36
|
};
|
|
35
37
|
export declare const initialData: {
|
|
@@ -119,6 +121,36 @@ export declare const initialData: {
|
|
|
119
121
|
groups: {}[];
|
|
120
122
|
filter_type: string;
|
|
121
123
|
};
|
|
124
|
+
TRIGGER_ENTERPRISE: {
|
|
125
|
+
object: string;
|
|
126
|
+
groups: {}[];
|
|
127
|
+
filter_type: string;
|
|
128
|
+
};
|
|
129
|
+
TRIGGER_CRMDEAL: {
|
|
130
|
+
object: string;
|
|
131
|
+
groups: {}[];
|
|
132
|
+
filter_type: string;
|
|
133
|
+
};
|
|
134
|
+
TRIGGER_CRMORDER: {
|
|
135
|
+
object: string;
|
|
136
|
+
groups: {}[];
|
|
137
|
+
filter_type: string;
|
|
138
|
+
};
|
|
139
|
+
TRIGGER_CRMMEETING: {
|
|
140
|
+
object: string;
|
|
141
|
+
groups: {}[];
|
|
142
|
+
filter_type: string;
|
|
143
|
+
};
|
|
144
|
+
TRIGGER_TICKET: {
|
|
145
|
+
object: string;
|
|
146
|
+
groups: {}[];
|
|
147
|
+
filter_type: string;
|
|
148
|
+
};
|
|
149
|
+
TRIGGER_CRMTASK: {
|
|
150
|
+
object: string;
|
|
151
|
+
groups: {}[];
|
|
152
|
+
filter_type: string;
|
|
153
|
+
};
|
|
122
154
|
EMAIL: {
|
|
123
155
|
email_type: string;
|
|
124
156
|
};
|
|
@@ -133,21 +165,11 @@ export declare const initialData: {
|
|
|
133
165
|
};
|
|
134
166
|
};
|
|
135
167
|
HTTP_REQUEST: {};
|
|
136
|
-
TRIGGER_CRMORDER: {
|
|
137
|
-
object: string;
|
|
138
|
-
groups: {}[];
|
|
139
|
-
filter_type: string;
|
|
140
|
-
};
|
|
141
|
-
TRIGGER_TICKET: {
|
|
142
|
-
object: string;
|
|
143
|
-
groups: {}[];
|
|
144
|
-
filter_type: string;
|
|
145
|
-
};
|
|
146
168
|
ACTION_ZNS: {};
|
|
147
169
|
SMS_CAMPAIGN: {};
|
|
148
170
|
TRIGGER_ZNS: {};
|
|
149
171
|
ZNS_CUSTOMER: {};
|
|
150
|
-
|
|
172
|
+
ACTION_CRMTASK: {};
|
|
151
173
|
ACTION_TICKET: {};
|
|
152
174
|
TRIGGER_FACEBOOK_LEAD_ADS: {
|
|
153
175
|
title: string;
|
|
@@ -9,12 +9,16 @@ export declare const nodeTypes: {
|
|
|
9
9
|
DATA_CRM: import('react').FC<import('../components/Blocks/DataCRM/types').BlockDataCRMProps>;
|
|
10
10
|
HTTP_REQUEST: import('react').FC<import('../components/Blocks/HttpRequest/types').BlockHttpRequestActionProps>;
|
|
11
11
|
TRIGGER_CONTACT: import('react').FC<import('../components/Blocks/Contact/trigger/types').BlockContactTriggerProps>;
|
|
12
|
+
TRIGGER_CRMMEETING: import('react').FC<import('../components/Blocks/Meeting/trigger/types').BlockTriggerMeetingProps>;
|
|
12
13
|
TRIGGER_CRMORDER: import('react').FC<import('../components/Blocks/Order/trigger/types').BlockOrderTriggerProps>;
|
|
13
14
|
TRIGGER_TICKET: import('react').FC<import('../components/Blocks/Ticket/trigger/types').BlockTicketTriggerProps>;
|
|
15
|
+
TRIGGER_CRMTASK: import('react').FC<import('../components/Blocks/Task/trigger/types').BlockTaskTriggerProps>;
|
|
14
16
|
TRIGGER_CALLBOT: import('react').FC<import('../components/Blocks/Callbot/trigger/types').BlockCallbotTriggerProps>;
|
|
15
17
|
SCHEDULE_AT: import('react').FC<import('../components/Blocks/Schedule/types').BlockScheduleProps>;
|
|
16
18
|
TRIGGER_CATCH_HOOK: import('react').FC<import('../components/Blocks/CatchHook/types').BlockCatchHookProps>;
|
|
17
19
|
TRIGGER_CALLBOT_CUSTOMER: import('react').FC<import('../components/Blocks/CallbotCustomer/types').BlockCallbotCustomerProps>;
|
|
20
|
+
TRIGGER_ENTERPRISE: import('react').FC<import('../components/Blocks/Enterprise/trigger/types').BlockTriggerEnterpriseProps>;
|
|
21
|
+
TRIGGER_CRMDEAL: import('react').FC<import('../components/Blocks/Deal/trigger/types').BlockTriggerDealProps>;
|
|
18
22
|
ACTION_CONTACT: import('react').FC<import('../components/Blocks/Contact/action/types').BlockContactActionProps>;
|
|
19
23
|
CONTACT_ASSIGN: import('react').FC<import('../components/Blocks/Contact/assign/types').BlockContactAssignProps>;
|
|
20
24
|
ACTION_CRMORDER: import('react').FC<import('../components/Blocks/Order/action/types').BlockOrderActionProps>;
|
|
@@ -23,8 +27,8 @@ export declare const nodeTypes: {
|
|
|
23
27
|
SMS_CAMPAIGN: import('react').FC<import('../components/Blocks/SmsCampaign/types').BlockSmsCampaignProps>;
|
|
24
28
|
TRIGGER_ZNS: import('react').FC<import('../components/Blocks/ZNS/trigger/types').BlockZNSTriggerProps>;
|
|
25
29
|
ZNS_CUSTOMER: import('react').FC<import('../components/Blocks/ZNS/customer/types').BlockZNSCustomerProps>;
|
|
26
|
-
|
|
27
|
-
ACTION_TICKET: import('react').FC<import('../components/Blocks/Ticket/action/types').
|
|
30
|
+
ACTION_CRMTASK: import('react').FC<import('../components/Blocks/Task/action/types').BlockTaskActionProps>;
|
|
31
|
+
ACTION_TICKET: import('react').FC<import('../components/Blocks/Ticket/action/types').BlockTicketActionProps>;
|
|
28
32
|
EMAIL: import('react').FC<import('../components/Blocks/Email/types').BlockEmailProps>;
|
|
29
33
|
DELAY: import('react').FC<import('../components/Blocks/Delay/types').BlockDelayActionProps>;
|
|
30
34
|
BRANCH: import('react').FC<import('../components/Blocks/Branch/types').BlockBranchProps>;
|
|
@@ -32,6 +36,9 @@ export declare const nodeTypes: {
|
|
|
32
36
|
NOTIFICATION: import('react').FC<import('../components/Blocks/Notification/types').BlockNotificationProps>;
|
|
33
37
|
AUTO_FLOW_HTTP_REQUEST: import('react').FC<import('../components/Blocks/AutoFlowHttpRequest/types').BlockAutoFlowHttpRequestActionProps>;
|
|
34
38
|
TRIGGER_FACEBOOK_LEAD_ADS: import('react').FC<import('../components/Blocks/FacebookLeadAds/types').BlockFacebookLeadAdsProps>;
|
|
39
|
+
ACTION_CRMMEETING: import('react').FC<import('../components/Blocks/Meeting/action/types').BlockMeetingActionProps>;
|
|
40
|
+
ACTION_ENTERPRISE: import('react').FC<import('../components/Blocks/Enterprise/action/types').BlockEnterpriseActionProps>;
|
|
41
|
+
ACTION_CRMDEAL: import('react').FC<import('../components/Blocks/Deal/action/types').BlockDealActionProps>;
|
|
35
42
|
};
|
|
36
43
|
export declare const getNodeColor: (node: {
|
|
37
44
|
type?: string;
|