app-v3-scripts-editor 1.37.3 → 1.37.4

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.
@@ -1,23 +1,21 @@
1
1
  import { Node, NodeProps } from '@xyflow/react';
2
2
  import { IFilterGroup, INodeBaseType } from '../../../../services';
3
3
  import { BlockTypeProps } from '../../../constants';
4
- export declare enum CALLBOT_CUSTOMER_ACTION_TYPE {
5
- ADD = "ADD",
6
- UPDATE = "UPDATE"
4
+ export declare enum TRIGGER_CALLBOT_CUSTOMER_ACTION_TYPE {
5
+ UPDATE_BY_CONDITION = "UPDATE_BY_CONDITION"
7
6
  }
8
7
  export declare const CallbotCustomerTypeLabel: {
9
- ADD: string;
10
- UPDATE: string;
8
+ UPDATE_BY_CONDITION: string;
11
9
  };
12
10
  export declare const CallbotCustomerTypeDescription: {
13
- ADD: string;
14
- UPDATE: string;
11
+ UPDATE_BY_CONDITION: string;
15
12
  };
16
- export declare const CallbotCustomerTypeList: CALLBOT_CUSTOMER_ACTION_TYPE[];
13
+ export declare const CallbotCustomerTypeList: TRIGGER_CALLBOT_CUSTOMER_ACTION_TYPE[];
17
14
  export interface CallbotCustomerNodeData extends INodeBaseType, Record<string, unknown> {
18
15
  title: string;
19
- type: CALLBOT_CUSTOMER_ACTION_TYPE;
20
- id?: string[];
16
+ type: TRIGGER_CALLBOT_CUSTOMER_ACTION_TYPE;
17
+ campaign_name: string;
18
+ campaign_id: string;
21
19
  filter_type?: "AND" | "OR";
22
20
  groups?: IFilterGroup[];
23
21
  object?: string;
@@ -7,6 +7,7 @@ type ConnectorFormValues = {
7
7
  };
8
8
  type ConnectorFormProps = {
9
9
  form: FormInstance<ConnectorFormValues>;
10
+ onOpenGlobalSettingModal?: () => void;
10
11
  };
11
12
  export declare const ConnectorForm: React.FC<ConnectorFormProps>;
12
13
  export {};
@@ -11,6 +11,7 @@ export type CallbotGroupConditionProps = {
11
11
  name?: number;
12
12
  parentName?: string;
13
13
  required?: boolean;
14
+ showObjectSelect?: boolean;
14
15
  };
15
16
  export declare const CallbotGroupConditionContainer: React.NamedExoticComponent<CallbotGroupConditionProps>;
16
17
  export default CallbotGroupConditionContainer;
@@ -16,7 +16,7 @@ export declare enum BlockType {
16
16
  TRIGGER_TICKET = "TRIGGER_TICKET",
17
17
  SCHEDULE_AT = "SCHEDULE_AT",
18
18
  TRIGGER_CATCH_HOOK = "TRIGGER_CATCH_HOOK",
19
- CALLBOT_CUSTOMER = "CALLBOT_CUSTOMER",
19
+ TRIGGER_CALLBOT_CUSTOMER = "TRIGGER_CALLBOT_CUSTOMER",
20
20
  ACTION_CONTACT = "ACTION_CONTACT",
21
21
  ACTION_CALLBOT = "ACTION_CALLBOT",
22
22
  ACTION_ZNS = "ACTION_ZNS",
@@ -30,7 +30,7 @@ export declare const initialTitles: {
30
30
  TRIGGER_ZNS: string;
31
31
  ZNS_CUSTOMER: string;
32
32
  TASK: string;
33
- CALLBOT_CUSTOMER: string;
33
+ TRIGGER_CALLBOT_CUSTOMER: string;
34
34
  };
35
35
  export declare const initialData: {
36
36
  AGENT: {
@@ -14,7 +14,7 @@ export declare const nodeTypes: {
14
14
  TRIGGER_CALLBOT: import('react').FC<import('../components/Blocks/Callbot/trigger/types').BlockCallbotTriggerProps>;
15
15
  SCHEDULE_AT: import('react').FC<import('../components/Blocks/Schedule/types').BlockScheduleProps>;
16
16
  TRIGGER_CATCH_HOOK: import('react').FC<import('../components/Blocks/CatchHook/types').BlockCatchHookProps>;
17
- CALLBOT_CUSTOMER: import('react').FC<import('../components/Blocks/CallbotCustomer/types').BlockCallbotCustomerProps>;
17
+ TRIGGER_CALLBOT_CUSTOMER: import('react').FC<import('../components/Blocks/CallbotCustomer/types').BlockCallbotCustomerProps>;
18
18
  ACTION_CONTACT: import('react').FC<import('../components/Blocks/Contact/action/types').BlockContactActionProps>;
19
19
  CONTACT_ASSIGN: import('react').FC<import('../components/Blocks/Contact/assign/types').BlockContactAssignProps>;
20
20
  ACTION_CRMORDER: import('react').FC<import('../components/Blocks/Order/action/types').BlockOrderActionProps>;
@@ -2,6 +2,7 @@ export interface ScriptsEvents {
2
2
  openIntegrationEmailPage: {};
3
3
  openWorkShiftSettingPage: {};
4
4
  openXApiKeySettingPage: {};
5
+ openGlobalSettingModal: {};
5
6
  }
6
7
  type Callback<T = any> = (data: T) => void;
7
8
  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.37.3",
4
+ "version": "1.37.4",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/ucall-asia/app-v3-scripts-editor.git"