app-v3-scripts-editor 1.21.4 → 1.22.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 +21333 -20881
- package/dist/app-v3-scripts-editor.umd.js +154 -154
- package/dist/src/lib/components/Blocks/Contact/assign/block.d.ts +3 -0
- package/dist/src/lib/components/Blocks/Contact/assign/index.d.ts +4 -0
- package/dist/src/lib/components/Blocks/Contact/assign/index.settings.d.ts +3 -0
- package/dist/src/lib/components/Blocks/Contact/assign/node.d.ts +3 -0
- package/dist/src/lib/components/Blocks/Contact/assign/setting/Action.d.ts +4 -0
- package/dist/src/lib/components/Blocks/Contact/assign/setting/Output.d.ts +7 -0
- package/dist/src/lib/components/Blocks/Contact/assign/setting/Setting.d.ts +4 -0
- package/dist/src/lib/components/Blocks/Contact/assign/types.d.ts +41 -0
- package/dist/src/lib/components/Blocks/Contact/index.css.d.ts +1 -0
- package/dist/src/lib/constants/block-types.d.ts +2 -1
- package/dist/src/lib/constants/initial-script.d.ts +1 -0
- package/dist/src/lib/constants/intents.d.ts +10 -0
- package/dist/src/lib/constants/node-types.d.ts +1 -0
- package/dist/src/lib/events/emit-to-parent/event.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IOutput } from '../../../../../../services';
|
|
2
|
+
type ContactAssignOutputContainerProps = {
|
|
3
|
+
id: string;
|
|
4
|
+
outputs: IOutput["outputs"];
|
|
5
|
+
};
|
|
6
|
+
declare const ContactAssignOutputContainer: React.FC<ContactAssignOutputContainerProps>;
|
|
7
|
+
export default ContactAssignOutputContainer;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { Node, NodeProps } from '@xyflow/react';
|
|
2
|
+
import { INodeBaseType } from '../../../../../services';
|
|
3
|
+
import { BlockTypeProps } from '../../../../constants';
|
|
4
|
+
export declare enum CONTACT_ASSIGN_TYPE {
|
|
5
|
+
ASSIGN = "ASSIGN"
|
|
6
|
+
}
|
|
7
|
+
export declare enum CONTACT_ASSIGN_RULE {
|
|
8
|
+
SEQUENCE = "SEQUENCE",
|
|
9
|
+
WEIGHTED = "WEIGHTED"
|
|
10
|
+
}
|
|
11
|
+
export declare const ContactAssignTypeLabel: {
|
|
12
|
+
ASSIGN: string;
|
|
13
|
+
};
|
|
14
|
+
export declare const ContactAssignTypeDescription: {
|
|
15
|
+
ASSIGN: string;
|
|
16
|
+
};
|
|
17
|
+
export declare const ContactAssignTypeList: CONTACT_ASSIGN_TYPE[];
|
|
18
|
+
export declare const ContactAssignRuleLabel: {
|
|
19
|
+
SEQUENCE: string;
|
|
20
|
+
WEIGHTED: string;
|
|
21
|
+
};
|
|
22
|
+
export declare const ContactAssignRuleList: CONTACT_ASSIGN_RULE[];
|
|
23
|
+
export interface ContactAssignNodeData extends INodeBaseType, Record<string, unknown> {
|
|
24
|
+
title: string;
|
|
25
|
+
type: CONTACT_ASSIGN_TYPE;
|
|
26
|
+
settings: {
|
|
27
|
+
strategy: CONTACT_ASSIGN_RULE;
|
|
28
|
+
user?: string[];
|
|
29
|
+
assignees?: {
|
|
30
|
+
profile_company_id: string;
|
|
31
|
+
weight: number;
|
|
32
|
+
}[];
|
|
33
|
+
constraints: {
|
|
34
|
+
within_working_hours: boolean;
|
|
35
|
+
exclude_off_shift: boolean;
|
|
36
|
+
require_online: boolean;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
export type BlockContactAssignProps = BlockTypeProps<ContactAssignNodeData>;
|
|
41
|
+
export type ContactAssignNodeProps = NodeProps<Node<ContactAssignNodeData>>;
|
|
@@ -20,7 +20,8 @@ export declare enum BlockType {
|
|
|
20
20
|
DELAY = "DELAY",
|
|
21
21
|
BRANCH = "BRANCH",
|
|
22
22
|
AI_AGENT = "AI_AGENT",
|
|
23
|
-
NOTIFICATION = "NOTIFICATION"
|
|
23
|
+
NOTIFICATION = "NOTIFICATION",
|
|
24
|
+
CONTACT_ASSIGN = "CONTACT_ASSIGN"
|
|
24
25
|
}
|
|
25
26
|
export declare enum SPEAK_TYPE {
|
|
26
27
|
MACHINE_AND_RECORD = "MACHINE_AND_RECORD",
|
|
@@ -19,4 +19,14 @@ export declare const INTENTS: {
|
|
|
19
19
|
description: string;
|
|
20
20
|
keywords: string;
|
|
21
21
|
};
|
|
22
|
+
SILENT: {
|
|
23
|
+
label: string;
|
|
24
|
+
description: string;
|
|
25
|
+
keywords: string;
|
|
26
|
+
};
|
|
27
|
+
UNRECOGNIZED: {
|
|
28
|
+
label: string;
|
|
29
|
+
description: string;
|
|
30
|
+
keywords: string;
|
|
31
|
+
};
|
|
22
32
|
};
|
|
@@ -15,6 +15,7 @@ export declare const nodeTypes: {
|
|
|
15
15
|
BRANCH: import('react').FC<import('../components/Blocks/Branch/types').BlockBranchProps>;
|
|
16
16
|
AI_AGENT: import('react').FC<import('../components/Blocks/AIAgent/types').BlockAIAgentProps>;
|
|
17
17
|
NOTIFICATION: import('react').FC<import('../components/Blocks/Notification/types').BlockNotificationProps>;
|
|
18
|
+
CONTACT_ASSIGN: import('react').FC<import('../components/Blocks/Contact/assign/types').BlockContactAssignProps>;
|
|
18
19
|
};
|
|
19
20
|
export declare const getNodeColor: (node: any) => string;
|
|
20
21
|
export default nodeTypes;
|