app-v3-scripts-editor 1.32.1 → 1.33.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/dist/app-v3-scripts-editor.css +1 -1
- package/dist/app-v3-scripts-editor.es.js +37653 -35663
- package/dist/app-v3-scripts-editor.umd.js +200 -200
- package/dist/src/lib/components/Blocks/Condition/types.d.ts +6 -1
- package/dist/src/lib/components/Blocks/DataCRM/block.d.ts +3 -0
- package/dist/src/lib/components/Blocks/DataCRM/index.css.d.ts +18 -0
- package/dist/src/lib/components/Blocks/DataCRM/index.d.ts +4 -0
- package/dist/src/lib/components/Blocks/DataCRM/index.settings.d.ts +3 -0
- package/dist/src/lib/components/Blocks/DataCRM/node.d.ts +3 -0
- package/dist/src/lib/components/Blocks/DataCRM/setting/Action.d.ts +2 -0
- package/dist/src/lib/components/Blocks/DataCRM/setting/CreateAction.d.ts +6 -0
- package/dist/src/lib/components/Blocks/DataCRM/setting/GetDataAction.d.ts +6 -0
- package/dist/src/lib/components/Blocks/DataCRM/setting/Output.d.ts +7 -0
- package/dist/src/lib/components/Blocks/DataCRM/setting/UpdateAction.d.ts +6 -0
- package/dist/src/lib/components/Blocks/DataCRM/types.d.ts +65 -0
- package/dist/src/lib/components/Blocks/HttpRequest/block.d.ts +3 -0
- package/dist/src/lib/components/Blocks/HttpRequest/index.css.d.ts +19 -0
- package/dist/src/lib/components/Blocks/HttpRequest/index.d.ts +4 -0
- package/dist/src/lib/components/Blocks/HttpRequest/index.settings.d.ts +3 -0
- package/dist/src/lib/components/Blocks/HttpRequest/node.d.ts +3 -0
- package/dist/src/lib/components/Blocks/HttpRequest/setting/Action.d.ts +3 -0
- package/dist/src/lib/components/Blocks/HttpRequest/setting/Output.d.ts +7 -0
- package/dist/src/lib/components/Blocks/HttpRequest/setting/Setting.d.ts +3 -0
- package/dist/src/lib/components/Blocks/HttpRequest/setting/helpers.d.ts +12 -0
- package/dist/src/lib/components/Blocks/HttpRequest/types.d.ts +71 -0
- package/dist/src/lib/components/Blocks/SmsCampaign/block.d.ts +3 -0
- package/dist/src/lib/components/Blocks/SmsCampaign/index.css.d.ts +12 -0
- package/dist/src/lib/components/Blocks/SmsCampaign/index.d.ts +4 -0
- package/dist/src/lib/components/Blocks/SmsCampaign/index.settings.d.ts +3 -0
- package/dist/src/lib/components/Blocks/SmsCampaign/node.d.ts +3 -0
- package/dist/src/lib/components/Blocks/SmsCampaign/setting/Action.d.ts +2 -0
- package/dist/src/lib/components/Blocks/SmsCampaign/setting/Output.d.ts +7 -0
- package/dist/src/lib/components/Blocks/SmsCampaign/setting/Setting.d.ts +2 -0
- package/dist/src/lib/components/Blocks/SmsCampaign/types.d.ts +26 -0
- package/dist/src/lib/components/Blocks/Task/block.d.ts +3 -0
- package/dist/src/lib/components/Blocks/Task/index.css.d.ts +1 -0
- package/dist/src/lib/components/Blocks/Task/index.d.ts +4 -0
- package/dist/src/lib/components/Blocks/Task/index.settings.d.ts +3 -0
- package/dist/src/lib/components/Blocks/Task/node.d.ts +3 -0
- package/dist/src/lib/components/Blocks/Task/setting/Action.d.ts +2 -0
- package/dist/src/lib/components/Blocks/Task/setting/CreateAction.d.ts +2 -0
- package/dist/src/lib/components/Blocks/Task/setting/GetDataAction.d.ts +2 -0
- package/dist/src/lib/components/Blocks/Task/setting/Output.d.ts +7 -0
- package/dist/src/lib/components/Blocks/Task/setting/UpdateAction.d.ts +2 -0
- package/dist/src/lib/components/Blocks/Task/types.d.ts +44 -0
- package/dist/src/lib/components/Blocks/Transfer/index.css.d.ts +30 -3
- package/dist/src/lib/components/Blocks/Transfer/settings/TransferDynamicSettings.d.ts +2 -0
- package/dist/src/lib/components/Blocks/Transfer/types.d.ts +14 -11
- package/dist/src/lib/components/Selector/Campaign/index.d.ts +1 -1
- package/dist/src/lib/components/Selector/Task/index.d.ts +7 -0
- package/dist/src/lib/components/Shared/FieldSetting/index.d.ts +1 -1
- package/dist/src/lib/components/Shared/GroupCondition/index.d.ts +1 -1
- package/dist/src/lib/constants/block-types.d.ts +5 -2
- package/dist/src/lib/constants/common.d.ts +2 -0
- package/dist/src/lib/constants/initial-script.d.ts +19 -2
- package/dist/src/lib/constants/node-types.d.ts +7 -1
- package/dist/src/lib/styles/colors.d.ts +1 -0
- package/dist/src/services/task/useInfiniteTask.d.ts +9 -0
- package/dist/src/services/types.d.ts +14 -2
- package/package.json +1 -1
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import { Node, NodeProps } from '@xyflow/react';
|
|
2
2
|
import { BlockTypeProps } from '../../../constants';
|
|
3
|
+
import { IFilterGroup } from '../../../../services';
|
|
4
|
+
export type ConditionGroup = IFilterGroup & {
|
|
5
|
+
type: "compare" | "prompt";
|
|
6
|
+
label?: string;
|
|
7
|
+
};
|
|
3
8
|
export interface ConditionNodeData extends Record<string, unknown> {
|
|
4
9
|
title?: string;
|
|
5
|
-
conditions?:
|
|
10
|
+
conditions?: ConditionGroup[];
|
|
6
11
|
is_global_node: boolean;
|
|
7
12
|
}
|
|
8
13
|
export type BlockConditionProps = BlockTypeProps<ConditionNodeData>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare const wrapper: string;
|
|
2
|
+
export declare const conditionCard: string;
|
|
3
|
+
export declare const conditionCardBorder: {
|
|
4
|
+
default: string;
|
|
5
|
+
active: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const conditionHeaderLeft: string;
|
|
8
|
+
export declare const conditionHeader: string;
|
|
9
|
+
export declare const conditionTitle: string;
|
|
10
|
+
export declare const conditionContent: string;
|
|
11
|
+
export declare const settingsContainer: string;
|
|
12
|
+
export declare const radioGroup: string;
|
|
13
|
+
export declare const radioSpace: string;
|
|
14
|
+
export declare const radioItem: string;
|
|
15
|
+
export declare const radioContent: string;
|
|
16
|
+
export declare const checkIconWrapper: string;
|
|
17
|
+
export declare const triangle: string;
|
|
18
|
+
export declare const checkIcon: string;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { DATA_CRM_TYPE } from '../types';
|
|
2
|
+
type CreateDataCRMSettingContainerProps = {
|
|
3
|
+
type: DATA_CRM_TYPE;
|
|
4
|
+
};
|
|
5
|
+
declare const CreateDataCRMSettingContainer: ({ type, }: CreateDataCRMSettingContainerProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export default CreateDataCRMSettingContainer;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { DATA_CRM_TYPE } from '../types';
|
|
2
|
+
type GetDataCRMSettingContainerProps = {
|
|
3
|
+
type: DATA_CRM_TYPE;
|
|
4
|
+
};
|
|
5
|
+
declare const GetDataCRMSettingContainer: ({ type, }: GetDataCRMSettingContainerProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export default GetDataCRMSettingContainer;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { DATA_CRM_TYPE } from '../types';
|
|
2
|
+
type UpdateDataCRMSettingContainerProps = {
|
|
3
|
+
type: DATA_CRM_TYPE;
|
|
4
|
+
};
|
|
5
|
+
declare const UpdateDataCRMSettingContainer: ({ type, }: UpdateDataCRMSettingContainerProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export default UpdateDataCRMSettingContainer;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { Node, NodeProps } from '@xyflow/react';
|
|
2
|
+
import { IFilter, INodeBaseType } from '../../../../services';
|
|
3
|
+
import { BlockTypeProps } from '../../../constants';
|
|
4
|
+
import { CRM_OBJECT_TYPE, DATA_TYPE_PROPERTY_V2 } from '../../../constants/common';
|
|
5
|
+
export declare enum DATA_CRM_BASE_ACTION {
|
|
6
|
+
CREATE = "CREATE",
|
|
7
|
+
UPDATE = "UPDATE",
|
|
8
|
+
GET = "GET"
|
|
9
|
+
}
|
|
10
|
+
export declare const DataCRMObjectList: readonly [CRM_OBJECT_TYPE.CONTACT, CRM_OBJECT_TYPE.ENTERPRISE, CRM_OBJECT_TYPE.CRMDEAL, CRM_OBJECT_TYPE.CRMORDER];
|
|
11
|
+
export type DataCRMObjectType = (typeof DataCRMObjectList)[number];
|
|
12
|
+
export declare enum DATA_CRM_TYPE {
|
|
13
|
+
CREATE_CONTACT = "CREATE_CONTACT",
|
|
14
|
+
UPDATE_CONTACT = "UPDATE_CONTACT",
|
|
15
|
+
GET_CONTACT = "GET_CONTACT",
|
|
16
|
+
CREATE_ENTERPRISE = "CREATE_ENTERPRISE",
|
|
17
|
+
UPDATE_ENTERPRISE = "UPDATE_ENTERPRISE",
|
|
18
|
+
GET_ENTERPRISE = "GET_ENTERPRISE",
|
|
19
|
+
CREATE_CRMDEAL = "CREATE_CRMDEAL",
|
|
20
|
+
UPDATE_CRMDEAL = "UPDATE_CRMDEAL",
|
|
21
|
+
GET_CRMDEAL = "GET_CRMDEAL",
|
|
22
|
+
CREATE_CRMORDER = "CREATE_CRMORDER",
|
|
23
|
+
UPDATE_CRMORDER = "UPDATE_CRMORDER",
|
|
24
|
+
GET_CRMORDER = "GET_CRMORDER"
|
|
25
|
+
}
|
|
26
|
+
type DataCRMTypeMeta = {
|
|
27
|
+
action: DATA_CRM_BASE_ACTION;
|
|
28
|
+
object: DataCRMObjectType;
|
|
29
|
+
label: string;
|
|
30
|
+
description: string;
|
|
31
|
+
};
|
|
32
|
+
export declare const DataCRMObjectLabel: Record<DataCRMObjectType, string>;
|
|
33
|
+
export declare const DataCRMTypeMetaMap: Record<DATA_CRM_TYPE, DataCRMTypeMeta>;
|
|
34
|
+
export declare const DataCRMTypeList: DATA_CRM_TYPE[];
|
|
35
|
+
export declare const DataCRMTypeLabel: Record<DATA_CRM_TYPE, string>;
|
|
36
|
+
export declare const DataCRMTypeDescription: Record<DATA_CRM_TYPE, string>;
|
|
37
|
+
export declare const DataCRMTypesByObject: Record<DataCRMObjectType, DATA_CRM_TYPE[]>;
|
|
38
|
+
interface DataCRMGroup {
|
|
39
|
+
object?: string;
|
|
40
|
+
filter_type?: "AND" | "OR";
|
|
41
|
+
conditions: IFilter[];
|
|
42
|
+
}
|
|
43
|
+
type DataCRMUpdateField = {
|
|
44
|
+
id?: string;
|
|
45
|
+
slug?: string;
|
|
46
|
+
name?: string;
|
|
47
|
+
value?: unknown;
|
|
48
|
+
type?: DATA_TYPE_PROPERTY_V2;
|
|
49
|
+
reference_type?: boolean;
|
|
50
|
+
};
|
|
51
|
+
export interface DataCRMNodeData extends INodeBaseType, Record<string, unknown> {
|
|
52
|
+
title: string;
|
|
53
|
+
type?: DATA_CRM_TYPE;
|
|
54
|
+
filter_type?: "AND" | "OR";
|
|
55
|
+
groups?: DataCRMGroup[];
|
|
56
|
+
object?: DataCRMObjectType;
|
|
57
|
+
update_fields?: DataCRMUpdateField[];
|
|
58
|
+
}
|
|
59
|
+
export declare const getDataCRMTypeMeta: (type?: DATA_CRM_TYPE) => DataCRMTypeMeta;
|
|
60
|
+
export declare const getDataCRMBaseAction: (type?: DATA_CRM_TYPE) => DATA_CRM_BASE_ACTION;
|
|
61
|
+
export declare const getDataCRMObjectType: (type?: DATA_CRM_TYPE) => CRM_OBJECT_TYPE.CONTACT | CRM_OBJECT_TYPE.ENTERPRISE | CRM_OBJECT_TYPE.CRMORDER | CRM_OBJECT_TYPE.CRMDEAL;
|
|
62
|
+
export declare const hasConfiguredDataCRMGroups: (groups?: DataCRMGroup[]) => boolean;
|
|
63
|
+
export type BlockDataCRMProps = BlockTypeProps<DataCRMNodeData>;
|
|
64
|
+
export type DataCRMNodeProps = NodeProps<Node<DataCRMNodeData>>;
|
|
65
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const wrapper: string;
|
|
2
|
+
export declare const requestCard: string;
|
|
3
|
+
export declare const requestCardBorder: {
|
|
4
|
+
default: string;
|
|
5
|
+
active: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const requestHeaderLeft: string;
|
|
8
|
+
export declare const requestHeader: string;
|
|
9
|
+
export declare const settingsContainer: string;
|
|
10
|
+
export declare const alertGroup: string;
|
|
11
|
+
export declare const radioGroup: string;
|
|
12
|
+
export declare const radioSpace: string;
|
|
13
|
+
export declare const radioItem: string;
|
|
14
|
+
export declare const radioContent: string;
|
|
15
|
+
export declare const checkIconWrapper: string;
|
|
16
|
+
export declare const triangle: string;
|
|
17
|
+
export declare const checkIcon: string;
|
|
18
|
+
export declare const emailTypeGroup: string;
|
|
19
|
+
export declare const radioButton: string;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IOutput } from '../../../../../services';
|
|
2
|
+
type HttpRequestOutputContainerProps = {
|
|
3
|
+
id: string;
|
|
4
|
+
outputs: IOutput["outputs"];
|
|
5
|
+
};
|
|
6
|
+
declare const HttpRequestOutputContainer: React.FC<HttpRequestOutputContainerProps>;
|
|
7
|
+
export default HttpRequestOutputContainer;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IOutput } from '../../../../../services';
|
|
2
|
+
import { HttpRequestActionNodeData, HttpRequestBodyItem } from '../types';
|
|
3
|
+
export declare const buildHttpRequestOutputsFromResponseBody: ({ responseBody, nodeId, order, }: {
|
|
4
|
+
responseBody?: HttpRequestBodyItem[] | string;
|
|
5
|
+
nodeId: string;
|
|
6
|
+
order?: number;
|
|
7
|
+
}) => IOutput["outputs"];
|
|
8
|
+
export declare const normalizeHttpRequestFormValues: (data: HttpRequestActionNodeData) => HttpRequestActionNodeData;
|
|
9
|
+
export declare const serializeHttpRequestFormValues: (values: HttpRequestActionNodeData, { nodeId, order, }: {
|
|
10
|
+
nodeId: string;
|
|
11
|
+
order?: number;
|
|
12
|
+
}) => HttpRequestActionNodeData;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { Node, NodeProps } from '@xyflow/react';
|
|
2
|
+
import { INodeBaseType } from '../../../../services';
|
|
3
|
+
import { BlockTypeProps } from '../../../constants';
|
|
4
|
+
export declare enum HTTP_REQUEST_ACTION_TYPE {
|
|
5
|
+
GET = "GET",
|
|
6
|
+
PUT = "PUT",
|
|
7
|
+
POST = "POST",
|
|
8
|
+
PATCH = "PATCH",
|
|
9
|
+
DELETE = "DELETE"
|
|
10
|
+
}
|
|
11
|
+
export declare enum HTTP_REQUEST_CONTENT_TYPE {
|
|
12
|
+
JSON = "json"
|
|
13
|
+
}
|
|
14
|
+
export declare const HttpRequestActionTypeLabel: {
|
|
15
|
+
GET: string;
|
|
16
|
+
PUT: string;
|
|
17
|
+
POST: string;
|
|
18
|
+
PATCH: string;
|
|
19
|
+
DELETE: string;
|
|
20
|
+
};
|
|
21
|
+
export declare const HttpRequestActionTypeDescription: {
|
|
22
|
+
GET: string;
|
|
23
|
+
PUT: string;
|
|
24
|
+
POST: string;
|
|
25
|
+
PATCH: string;
|
|
26
|
+
DELETE: string;
|
|
27
|
+
};
|
|
28
|
+
export declare const HttpRequestActionTypeList: HTTP_REQUEST_ACTION_TYPE[];
|
|
29
|
+
export declare const HttpRequestContentTypeLabel: {
|
|
30
|
+
json: string;
|
|
31
|
+
};
|
|
32
|
+
export declare const HttpRequestContentTypeList: HTTP_REQUEST_CONTENT_TYPE[];
|
|
33
|
+
export interface HttpRequestKeyValueItem {
|
|
34
|
+
key?: string;
|
|
35
|
+
value?: string;
|
|
36
|
+
}
|
|
37
|
+
export declare enum HTTP_REQUEST_BODY_DATA_TYPE {
|
|
38
|
+
STRING = "string",
|
|
39
|
+
INTEGER = "integer",
|
|
40
|
+
FLOAT = "float",
|
|
41
|
+
BOOLEAN = "boolean",
|
|
42
|
+
LIST = "list",
|
|
43
|
+
OBJECT = "object"
|
|
44
|
+
}
|
|
45
|
+
export declare const HttpRequestBodyDataTypeLabel: {
|
|
46
|
+
string: string;
|
|
47
|
+
integer: string;
|
|
48
|
+
float: string;
|
|
49
|
+
boolean: string;
|
|
50
|
+
list: string;
|
|
51
|
+
object: string;
|
|
52
|
+
};
|
|
53
|
+
export declare const HttpRequestBodyDataTypeList: HTTP_REQUEST_BODY_DATA_TYPE[];
|
|
54
|
+
export interface HttpRequestBodyItem extends HttpRequestKeyValueItem {
|
|
55
|
+
type?: HTTP_REQUEST_BODY_DATA_TYPE;
|
|
56
|
+
}
|
|
57
|
+
export interface HttpRequestActionSettingsFields {
|
|
58
|
+
api_url?: string;
|
|
59
|
+
params?: HttpRequestKeyValueItem[];
|
|
60
|
+
headers?: HttpRequestKeyValueItem[];
|
|
61
|
+
request_body_type?: HTTP_REQUEST_CONTENT_TYPE;
|
|
62
|
+
request_body?: HttpRequestBodyItem[] | string;
|
|
63
|
+
response_body_type?: HTTP_REQUEST_CONTENT_TYPE;
|
|
64
|
+
response_body?: HttpRequestBodyItem[] | string;
|
|
65
|
+
}
|
|
66
|
+
export interface HttpRequestActionNodeData extends INodeBaseType, Record<string, unknown>, HttpRequestActionSettingsFields {
|
|
67
|
+
title: string;
|
|
68
|
+
action?: HTTP_REQUEST_ACTION_TYPE;
|
|
69
|
+
}
|
|
70
|
+
export type BlockHttpRequestActionProps = BlockTypeProps<HttpRequestActionNodeData>;
|
|
71
|
+
export type HttpRequestActionNodeProps = NodeProps<Node<HttpRequestActionNodeData>>;
|
|
@@ -0,0 +1,12 @@
|
|
|
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 settingsContainer: string;
|
|
6
|
+
export declare const radioGroup: string;
|
|
7
|
+
export declare const radioSpace: string;
|
|
8
|
+
export declare const radioItem: string;
|
|
9
|
+
export declare const radioContent: string;
|
|
10
|
+
export declare const checkIconWrapper: string;
|
|
11
|
+
export declare const triangle: string;
|
|
12
|
+
export declare const checkIcon: string;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IOutput } from '../../../../../services';
|
|
2
|
+
type SmsCampaignOutputContainerProps = {
|
|
3
|
+
id: string;
|
|
4
|
+
outputs: IOutput["outputs"];
|
|
5
|
+
};
|
|
6
|
+
declare const SmsCampaignOutputContainer: ({ id, outputs, }: SmsCampaignOutputContainerProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default SmsCampaignOutputContainer;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Node, NodeProps } from '@xyflow/react';
|
|
2
|
+
import { INodeBaseType } from '../../../../services';
|
|
3
|
+
import { BlockTypeProps } from '../../../constants';
|
|
4
|
+
export declare enum SMS_CAMPAIGN_ACTION_TYPE {
|
|
5
|
+
START = "START",
|
|
6
|
+
PAUSE = "PAUSE",
|
|
7
|
+
STOP = "STOP"
|
|
8
|
+
}
|
|
9
|
+
export declare const SmsCampaignTypeLabel: {
|
|
10
|
+
START: string;
|
|
11
|
+
PAUSE: string;
|
|
12
|
+
STOP: string;
|
|
13
|
+
};
|
|
14
|
+
export declare const SmsCampaignTypeDescription: {
|
|
15
|
+
START: string;
|
|
16
|
+
PAUSE: string;
|
|
17
|
+
STOP: string;
|
|
18
|
+
};
|
|
19
|
+
export declare const SmsCampaignTypeList: SMS_CAMPAIGN_ACTION_TYPE[];
|
|
20
|
+
export interface SmsCampaignNodeData extends INodeBaseType, Record<string, unknown> {
|
|
21
|
+
title: string;
|
|
22
|
+
type?: SMS_CAMPAIGN_ACTION_TYPE;
|
|
23
|
+
campaign_id?: string;
|
|
24
|
+
}
|
|
25
|
+
export type BlockSmsCampaignProps = BlockTypeProps<SmsCampaignNodeData>;
|
|
26
|
+
export type SmsCampaignNodeProps = NodeProps<Node<SmsCampaignNodeData>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../Order/index.css';
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { Node, NodeProps } from '@xyflow/react';
|
|
2
|
+
import { IFilter, INodeBaseType } from '../../../../services';
|
|
3
|
+
import { BlockTypeProps } from '../../../constants';
|
|
4
|
+
import { DATA_TYPE_PROPERTY_V2 } from '../../../constants/common';
|
|
5
|
+
export declare enum TASK_ACTION_TYPE {
|
|
6
|
+
CREATE = "CREATE",
|
|
7
|
+
UPDATE = "UPDATE",
|
|
8
|
+
GET = "GET"
|
|
9
|
+
}
|
|
10
|
+
export declare const TaskActionTypeLabel: {
|
|
11
|
+
CREATE: string;
|
|
12
|
+
UPDATE: string;
|
|
13
|
+
GET: string;
|
|
14
|
+
};
|
|
15
|
+
export declare const TaskActionTypeDescription: {
|
|
16
|
+
CREATE: string;
|
|
17
|
+
UPDATE: string;
|
|
18
|
+
GET: string;
|
|
19
|
+
};
|
|
20
|
+
export declare const TaskActionTypeList: TASK_ACTION_TYPE[];
|
|
21
|
+
interface TaskActionGroup {
|
|
22
|
+
object?: string;
|
|
23
|
+
filter_type?: "AND" | "OR";
|
|
24
|
+
conditions: IFilter[];
|
|
25
|
+
}
|
|
26
|
+
export interface TaskNodeData extends INodeBaseType, Record<string, unknown> {
|
|
27
|
+
title: string;
|
|
28
|
+
type?: TASK_ACTION_TYPE;
|
|
29
|
+
filter_type?: "AND" | "OR";
|
|
30
|
+
groups?: TaskActionGroup[];
|
|
31
|
+
object?: string;
|
|
32
|
+
task_id?: string;
|
|
33
|
+
update_fields?: {
|
|
34
|
+
id?: string;
|
|
35
|
+
slug?: string;
|
|
36
|
+
name?: string;
|
|
37
|
+
value?: unknown;
|
|
38
|
+
type?: DATA_TYPE_PROPERTY_V2;
|
|
39
|
+
reference_type?: boolean;
|
|
40
|
+
}[];
|
|
41
|
+
}
|
|
42
|
+
export type BlockTaskProps = BlockTypeProps<TaskNodeData>;
|
|
43
|
+
export type TaskNodeProps = NodeProps<Node<TaskNodeData>>;
|
|
44
|
+
export {};
|
|
@@ -9,6 +9,33 @@ export declare const deleteIcon: string;
|
|
|
9
9
|
export declare const alertContainer: string;
|
|
10
10
|
export declare const messageBox: string;
|
|
11
11
|
export declare const transferCase: string;
|
|
12
|
-
export declare const
|
|
13
|
-
export declare const
|
|
14
|
-
|
|
12
|
+
export declare const transferCard: string;
|
|
13
|
+
export declare const transferCardBorder: {
|
|
14
|
+
default: string;
|
|
15
|
+
active: string;
|
|
16
|
+
};
|
|
17
|
+
export declare const transferHeaderLeft: string;
|
|
18
|
+
export declare const transferHeader: string;
|
|
19
|
+
export declare const textAreaInput: string;
|
|
20
|
+
export declare const transferModeLabel: string;
|
|
21
|
+
export declare const transferModeGroup: string;
|
|
22
|
+
export declare const transferModeList: string;
|
|
23
|
+
export declare const transferModeOption: string;
|
|
24
|
+
export declare const transferModeOptionLabel: string;
|
|
25
|
+
export declare const transferModeIndicator: string;
|
|
26
|
+
export declare const transferModeIndicatorSelected: string;
|
|
27
|
+
export declare const transferModeIndicatorDot: string;
|
|
28
|
+
export declare const transferModeIndicatorDotSelected: string;
|
|
29
|
+
export declare const warmTransferCard: string;
|
|
30
|
+
export declare const warmTransferCardLabel: string;
|
|
31
|
+
export declare const warmTransferSegmented: string;
|
|
32
|
+
export declare const warmTransferTextArea: string;
|
|
33
|
+
export declare const warmTransferSubLabel: string;
|
|
34
|
+
export declare const transferDisplayTypeGroup: string;
|
|
35
|
+
export declare const transferDisplayTypeList: string;
|
|
36
|
+
export declare const transferDisplayTypeOption: string;
|
|
37
|
+
export declare const transferDisplayTypeLabel: string;
|
|
38
|
+
export declare const transferDisplayTypeIndicator: string;
|
|
39
|
+
export declare const transferDisplayTypeIndicatorSelected: string;
|
|
40
|
+
export declare const transferDisplayTypeIndicatorDot: string;
|
|
41
|
+
export declare const transferDisplayTypeIndicatorDotSelected: string;
|
|
@@ -1,32 +1,35 @@
|
|
|
1
1
|
import { Node, NodeProps } from '@xyflow/react';
|
|
2
2
|
import { BlockTypeProps, SPEAK_TYPE, TRANSFER_TYPE } from '../../../constants';
|
|
3
3
|
import { BotSpeakConfiguration } from '../Speak/types';
|
|
4
|
+
export type TransferMode = "COLD" | "WARM";
|
|
5
|
+
export type TransferDisplayType = "SIP_HEADER" | "SPEAK_AFTER_PICKUP";
|
|
4
6
|
export interface TransferCondition {
|
|
5
7
|
id: string;
|
|
6
8
|
label: string;
|
|
7
9
|
}
|
|
8
|
-
export interface
|
|
10
|
+
export interface TransferRoutingConfig {
|
|
9
11
|
value: string;
|
|
10
12
|
maximum_try: string;
|
|
11
13
|
type: SPEAK_TYPE;
|
|
12
|
-
record?: BotSpeakConfiguration[
|
|
13
|
-
machine?: BotSpeakConfiguration[
|
|
14
|
-
prompt?: BotSpeakConfiguration[
|
|
14
|
+
record?: BotSpeakConfiguration["record"];
|
|
15
|
+
machine?: BotSpeakConfiguration["machine"];
|
|
16
|
+
prompt?: BotSpeakConfiguration["prompt"];
|
|
17
|
+
display_type?: TransferDisplayType;
|
|
15
18
|
}
|
|
16
|
-
export interface
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
machine?: BotSpeakConfiguration['machine'];
|
|
22
|
-
prompt?: BotSpeakConfiguration['prompt'];
|
|
19
|
+
export interface TransferInternal extends TransferRoutingConfig {
|
|
20
|
+
}
|
|
21
|
+
export interface TransferExternal extends TransferRoutingConfig {
|
|
22
|
+
}
|
|
23
|
+
export interface TransferDynamic extends TransferRoutingConfig {
|
|
23
24
|
}
|
|
24
25
|
export interface TransferNodeData extends Record<string, unknown> {
|
|
25
26
|
title: string;
|
|
26
27
|
conditions: TransferCondition[];
|
|
27
28
|
type: TRANSFER_TYPE;
|
|
29
|
+
transfer_mode?: TransferMode;
|
|
28
30
|
internal: TransferInternal;
|
|
29
31
|
external: TransferExternal;
|
|
32
|
+
dynamic?: TransferDynamic;
|
|
30
33
|
}
|
|
31
34
|
export type BlockTransferProps = BlockTypeProps<TransferNodeData>;
|
|
32
35
|
export type TransferNodeProps = NodeProps<Node<TransferNodeData>>;
|
|
@@ -4,5 +4,5 @@ type OptionFilterProps = {
|
|
|
4
4
|
types?: CampaignType[];
|
|
5
5
|
pageSize?: number;
|
|
6
6
|
} & SelectProps;
|
|
7
|
-
export declare const CampaignSelector: ({ types, pageSize, onPopupScroll: externalOnPopupScroll, onSearch: externalOnSearch, ...
|
|
7
|
+
export declare const CampaignSelector: ({ types, pageSize, onPopupScroll: externalOnPopupScroll, onSearch: externalOnSearch, onChange: externalOnChange, value: controlledValue, defaultValue: uncontrolledDefaultValue, labelInValue, mode, ...restProps }: OptionFilterProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export default CampaignSelector;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ICrmTask } from '../../../../services';
|
|
2
|
+
import { VariableSuggestSelectProps } from '../../Shared/VariableSuggestSelect';
|
|
3
|
+
type TaskSelectorProps = {
|
|
4
|
+
dataDefault?: ICrmTask | ICrmTask[];
|
|
5
|
+
} & Omit<VariableSuggestSelectProps, "options" | "defaultOptions" | "onSearch">;
|
|
6
|
+
declare const TaskSelector: React.FC<TaskSelectorProps>;
|
|
7
|
+
export default TaskSelector;
|
|
@@ -2,7 +2,7 @@ import { default as React } from 'react';
|
|
|
2
2
|
type FieldSettingContainerProps = {
|
|
3
3
|
title: string;
|
|
4
4
|
formListName: string;
|
|
5
|
-
model: "contact" | "enterprise" | "crmdeal" | "crmorder" | "crmproduct" | "ticket";
|
|
5
|
+
model: "contact" | "enterprise" | "crmdeal" | "crmorder" | "crmtask" | "crmproduct" | "ticket";
|
|
6
6
|
};
|
|
7
7
|
declare const FieldSettingContainer: React.FC<FieldSettingContainerProps>;
|
|
8
8
|
export default FieldSettingContainer;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as React, ReactNode } from 'react';
|
|
2
2
|
export type ChartFilterComponentProps = {
|
|
3
|
-
model: "contact" | "enterprise" | "crmdeal" | "crmorder" | "crmproduct" | "ticket";
|
|
3
|
+
model: "contact" | "enterprise" | "crmdeal" | "crmorder" | "crmtask" | "crmproduct" | "ticket";
|
|
4
4
|
title?: ReactNode;
|
|
5
5
|
extra?: ReactNode;
|
|
6
6
|
className?: string;
|
|
@@ -6,7 +6,7 @@ export declare enum BlockType {
|
|
|
6
6
|
SPEAK = "SPEAK",
|
|
7
7
|
LISTEN = "LISTEN",
|
|
8
8
|
TRANSFER = "TRANSFER",
|
|
9
|
-
|
|
9
|
+
DATA_CRM = "DATA_CRM",
|
|
10
10
|
HTTP_REQUEST = "HTTP_REQUEST",
|
|
11
11
|
CONDITION = "CONDITION",
|
|
12
12
|
GROUP = "GROUP",
|
|
@@ -18,6 +18,8 @@ export declare enum BlockType {
|
|
|
18
18
|
CALLBOT_CUSTOMER = "CALLBOT_CUSTOMER",
|
|
19
19
|
ACTION_CONTACT = "ACTION_CONTACT",
|
|
20
20
|
ACTION_CALLBOT = "ACTION_CALLBOT",
|
|
21
|
+
SMS_CAMPAIGN = "SMS_CAMPAIGN",
|
|
22
|
+
TASK = "TASK",
|
|
21
23
|
ACTION_CRMORDER = "ACTION_CRMORDER",
|
|
22
24
|
EMAIL = "EMAIL",
|
|
23
25
|
DELAY = "DELAY",
|
|
@@ -37,7 +39,8 @@ export declare enum LISTEN_TYPE {
|
|
|
37
39
|
}
|
|
38
40
|
export declare enum TRANSFER_TYPE {
|
|
39
41
|
INTERNAL = "INTERNAL",
|
|
40
|
-
EXTERNAL = "EXTERNAL"
|
|
42
|
+
EXTERNAL = "EXTERNAL",
|
|
43
|
+
DYNAMIC = "DYNAMIC"
|
|
41
44
|
}
|
|
42
45
|
export interface BlockTypeProps<T> {
|
|
43
46
|
id: string;
|