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.
@@ -0,0 +1,3 @@
1
+ import { BlockContactAssignProps } from './types';
2
+ declare const BlockContactAssign: ({ id, data, mini }: BlockContactAssignProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default BlockContactAssign;
@@ -0,0 +1,4 @@
1
+ import { default as BlockContactAssign } from './block';
2
+ import { default as ContactAssignNode } from './node';
3
+ export default ContactAssignNode;
4
+ export { BlockContactAssign };
@@ -0,0 +1,3 @@
1
+ export declare const ContactAssignNodeSettings: ({ id }: {
2
+ id: string;
3
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ import { BlockContactAssignProps } from './types';
2
+ declare const ContactAssignNode: React.FC<BlockContactAssignProps>;
3
+ export default ContactAssignNode;
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ type ContactAssignActionContainerProps = {};
3
+ declare const ContactAssignActionContainer: React.FC<ContactAssignActionContainerProps>;
4
+ export default ContactAssignActionContainer;
@@ -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,4 @@
1
+ import { default as React } from 'react';
2
+ type ContactAssignSettingContainerProps = {};
3
+ declare const ContactAssignSettingContainer: React.FC<ContactAssignSettingContainerProps>;
4
+ export default ContactAssignSettingContainer;
@@ -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>>;
@@ -12,3 +12,4 @@ export declare const radioContent: string;
12
12
  export declare const checkIconWrapper: string;
13
13
  export declare const triangle: string;
14
14
  export declare const checkIcon: string;
15
+ export declare const UserWrapper: string;
@@ -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",
@@ -17,6 +17,7 @@ export declare const initialTitles: {
17
17
  SCHEDULE_AT: string;
18
18
  ACTION_CONTACT: string;
19
19
  CATCH_HOOK: string;
20
+ CONTACT_ASSIGN: string;
20
21
  };
21
22
  export declare const initialData: {
22
23
  AGENT: {
@@ -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;
@@ -1,5 +1,6 @@
1
1
  export interface ScriptsEvents {
2
2
  openIntegrationEmailPage: {};
3
+ openWorkShiftSettingPage: {};
3
4
  }
4
5
  type Callback<T = any> = (data: T) => void;
5
6
  declare class EventBus {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "app-v3-scripts-editor",
3
3
  "private": false,
4
- "version": "1.21.4",
4
+ "version": "1.22.1",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/ucall-asia/app-v3-scripts-editor.git"