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.
Files changed (60) hide show
  1. package/dist/app-v3-scripts-editor.css +1 -1
  2. package/dist/app-v3-scripts-editor.es.js +37653 -35663
  3. package/dist/app-v3-scripts-editor.umd.js +200 -200
  4. package/dist/src/lib/components/Blocks/Condition/types.d.ts +6 -1
  5. package/dist/src/lib/components/Blocks/DataCRM/block.d.ts +3 -0
  6. package/dist/src/lib/components/Blocks/DataCRM/index.css.d.ts +18 -0
  7. package/dist/src/lib/components/Blocks/DataCRM/index.d.ts +4 -0
  8. package/dist/src/lib/components/Blocks/DataCRM/index.settings.d.ts +3 -0
  9. package/dist/src/lib/components/Blocks/DataCRM/node.d.ts +3 -0
  10. package/dist/src/lib/components/Blocks/DataCRM/setting/Action.d.ts +2 -0
  11. package/dist/src/lib/components/Blocks/DataCRM/setting/CreateAction.d.ts +6 -0
  12. package/dist/src/lib/components/Blocks/DataCRM/setting/GetDataAction.d.ts +6 -0
  13. package/dist/src/lib/components/Blocks/DataCRM/setting/Output.d.ts +7 -0
  14. package/dist/src/lib/components/Blocks/DataCRM/setting/UpdateAction.d.ts +6 -0
  15. package/dist/src/lib/components/Blocks/DataCRM/types.d.ts +65 -0
  16. package/dist/src/lib/components/Blocks/HttpRequest/block.d.ts +3 -0
  17. package/dist/src/lib/components/Blocks/HttpRequest/index.css.d.ts +19 -0
  18. package/dist/src/lib/components/Blocks/HttpRequest/index.d.ts +4 -0
  19. package/dist/src/lib/components/Blocks/HttpRequest/index.settings.d.ts +3 -0
  20. package/dist/src/lib/components/Blocks/HttpRequest/node.d.ts +3 -0
  21. package/dist/src/lib/components/Blocks/HttpRequest/setting/Action.d.ts +3 -0
  22. package/dist/src/lib/components/Blocks/HttpRequest/setting/Output.d.ts +7 -0
  23. package/dist/src/lib/components/Blocks/HttpRequest/setting/Setting.d.ts +3 -0
  24. package/dist/src/lib/components/Blocks/HttpRequest/setting/helpers.d.ts +12 -0
  25. package/dist/src/lib/components/Blocks/HttpRequest/types.d.ts +71 -0
  26. package/dist/src/lib/components/Blocks/SmsCampaign/block.d.ts +3 -0
  27. package/dist/src/lib/components/Blocks/SmsCampaign/index.css.d.ts +12 -0
  28. package/dist/src/lib/components/Blocks/SmsCampaign/index.d.ts +4 -0
  29. package/dist/src/lib/components/Blocks/SmsCampaign/index.settings.d.ts +3 -0
  30. package/dist/src/lib/components/Blocks/SmsCampaign/node.d.ts +3 -0
  31. package/dist/src/lib/components/Blocks/SmsCampaign/setting/Action.d.ts +2 -0
  32. package/dist/src/lib/components/Blocks/SmsCampaign/setting/Output.d.ts +7 -0
  33. package/dist/src/lib/components/Blocks/SmsCampaign/setting/Setting.d.ts +2 -0
  34. package/dist/src/lib/components/Blocks/SmsCampaign/types.d.ts +26 -0
  35. package/dist/src/lib/components/Blocks/Task/block.d.ts +3 -0
  36. package/dist/src/lib/components/Blocks/Task/index.css.d.ts +1 -0
  37. package/dist/src/lib/components/Blocks/Task/index.d.ts +4 -0
  38. package/dist/src/lib/components/Blocks/Task/index.settings.d.ts +3 -0
  39. package/dist/src/lib/components/Blocks/Task/node.d.ts +3 -0
  40. package/dist/src/lib/components/Blocks/Task/setting/Action.d.ts +2 -0
  41. package/dist/src/lib/components/Blocks/Task/setting/CreateAction.d.ts +2 -0
  42. package/dist/src/lib/components/Blocks/Task/setting/GetDataAction.d.ts +2 -0
  43. package/dist/src/lib/components/Blocks/Task/setting/Output.d.ts +7 -0
  44. package/dist/src/lib/components/Blocks/Task/setting/UpdateAction.d.ts +2 -0
  45. package/dist/src/lib/components/Blocks/Task/types.d.ts +44 -0
  46. package/dist/src/lib/components/Blocks/Transfer/index.css.d.ts +30 -3
  47. package/dist/src/lib/components/Blocks/Transfer/settings/TransferDynamicSettings.d.ts +2 -0
  48. package/dist/src/lib/components/Blocks/Transfer/types.d.ts +14 -11
  49. package/dist/src/lib/components/Selector/Campaign/index.d.ts +1 -1
  50. package/dist/src/lib/components/Selector/Task/index.d.ts +7 -0
  51. package/dist/src/lib/components/Shared/FieldSetting/index.d.ts +1 -1
  52. package/dist/src/lib/components/Shared/GroupCondition/index.d.ts +1 -1
  53. package/dist/src/lib/constants/block-types.d.ts +5 -2
  54. package/dist/src/lib/constants/common.d.ts +2 -0
  55. package/dist/src/lib/constants/initial-script.d.ts +19 -2
  56. package/dist/src/lib/constants/node-types.d.ts +7 -1
  57. package/dist/src/lib/styles/colors.d.ts +1 -0
  58. package/dist/src/services/task/useInfiniteTask.d.ts +9 -0
  59. package/dist/src/services/types.d.ts +14 -2
  60. package/package.json +1 -1
@@ -7,6 +7,7 @@ export declare enum CRM_OBJECT_TYPE {
7
7
  CONTACT = "contact",
8
8
  ENTERPRISE = "enterprise",
9
9
  CRMORDER = "crmorder",
10
+ CRMTASK = "crmtask",
10
11
  CRMDEAL = "crmdeal",
11
12
  CRMPRODUCT = "crmproduct",
12
13
  TICKET = "ticket",
@@ -16,6 +17,7 @@ export declare const CrmObjectTypeLabel: {
16
17
  contact: string;
17
18
  enterprise: string;
18
19
  crmorder: string;
20
+ crmtask: string;
19
21
  crmdeal: string;
20
22
  crmproduct: string;
21
23
  ticket: string;
@@ -6,6 +6,8 @@ export declare const initialTitles: {
6
6
  START: string;
7
7
  LISTEN: string;
8
8
  TRANSFER: string;
9
+ DATA_CRM: string;
10
+ HTTP_REQUEST: string;
9
11
  GROUP: string;
10
12
  TRIGGER_CONTACT: string;
11
13
  EMAIL: string;
@@ -21,6 +23,8 @@ export declare const initialTitles: {
21
23
  TRIGGER_CALLBOT: string;
22
24
  AUTO_FLOW_HTTP_REQUEST: string;
23
25
  ACTION_CALLBOT: string;
26
+ SMS_CAMPAIGN: string;
27
+ TASK: string;
24
28
  CALLBOT_CUSTOMER: string;
25
29
  };
26
30
  export declare const initialData: {
@@ -73,6 +77,7 @@ export declare const initialData: {
73
77
  label: string;
74
78
  }[];
75
79
  type: TRANSFER_TYPE;
80
+ transfer_mode: string;
76
81
  internal: {
77
82
  value: any;
78
83
  maximum_try: number;
@@ -82,7 +87,6 @@ export declare const initialData: {
82
87
  detect_gender: boolean;
83
88
  personalize: boolean;
84
89
  };
85
- prompt: {};
86
90
  };
87
91
  external: {
88
92
  value: any;
@@ -93,12 +97,22 @@ export declare const initialData: {
93
97
  detect_gender: boolean;
94
98
  personalize: boolean;
95
99
  };
96
- prompt: {};
100
+ };
101
+ dynamic: {
102
+ value: any;
103
+ maximum_try: number;
104
+ type: SPEAK_TYPE;
105
+ machine: {};
106
+ record: {
107
+ detect_gender: boolean;
108
+ personalize: boolean;
109
+ };
97
110
  };
98
111
  };
99
112
  GROUP: {
100
113
  type: string;
101
114
  };
115
+ DATA_CRM: {};
102
116
  TRIGGER_CONTACT: {
103
117
  object: string;
104
118
  groups: {}[];
@@ -116,11 +130,14 @@ export declare const initialData: {
116
130
  };
117
131
  };
118
132
  };
133
+ HTTP_REQUEST: {};
119
134
  TRIGGER_CRMORDER: {
120
135
  object: string;
121
136
  groups: {}[];
122
137
  filter_type: string;
123
138
  };
139
+ SMS_CAMPAIGN: {};
140
+ TASK: {};
124
141
  };
125
142
  export declare const getInitialData: (blockType: BlockType) => any;
126
143
  export declare const initialNodes: Node[];
@@ -6,6 +6,8 @@ export declare const nodeTypes: {
6
6
  TRANSFER: import('react').FC<import('../components/Blocks/Transfer/types').TransferNodeProps>;
7
7
  GROUP: import('react').FC<import('../components/Blocks/Group/types').GroupNodeProps>;
8
8
  CONDITION: import('react').FC<import('../components/Blocks/Condition/types').ConditionNodeProps>;
9
+ DATA_CRM: import('react').FC<import('../components/Blocks/DataCRM/types').BlockDataCRMProps>;
10
+ HTTP_REQUEST: import('react').FC<import('../components/Blocks/HttpRequest/types').BlockHttpRequestActionProps>;
9
11
  TRIGGER_CONTACT: import('react').FC<import('../components/Blocks/Contact/trigger/types').BlockContactTriggerProps>;
10
12
  TRIGGER_CRMORDER: import('react').FC<import('../components/Blocks/Order/trigger/types').BlockOrderTriggerProps>;
11
13
  TRIGGER_CALLBOT: import('react').FC<import('../components/Blocks/Callbot/trigger/types').BlockCallbotTriggerProps>;
@@ -16,6 +18,8 @@ export declare const nodeTypes: {
16
18
  CONTACT_ASSIGN: import('react').FC<import('../components/Blocks/Contact/assign/types').BlockContactAssignProps>;
17
19
  ACTION_CRMORDER: import('react').FC<import('../components/Blocks/Order/action/types').BlockOrderActionProps>;
18
20
  ACTION_CALLBOT: import('react').FC<import('../components/Blocks/Callbot/action/types').BlockCallbotActionProps>;
21
+ SMS_CAMPAIGN: import('react').FC<import('../components/Blocks/SmsCampaign/types').BlockSmsCampaignProps>;
22
+ TASK: import('react').FC<import('../components/Blocks/Task/types').BlockTaskProps>;
19
23
  EMAIL: import('react').FC<import('../components/Blocks/Email/types').BlockEmailProps>;
20
24
  DELAY: import('react').FC<import('../components/Blocks/Delay/types').BlockDelayActionProps>;
21
25
  BRANCH: import('react').FC<import('../components/Blocks/Branch/types').BlockBranchProps>;
@@ -23,5 +27,7 @@ export declare const nodeTypes: {
23
27
  NOTIFICATION: import('react').FC<import('../components/Blocks/Notification/types').BlockNotificationProps>;
24
28
  AUTO_FLOW_HTTP_REQUEST: import('react').FC<import('../components/Blocks/AutoFlowHttpRequest/types').BlockAutoFlowHttpRequestActionProps>;
25
29
  };
26
- export declare const getNodeColor: (node: any) => string;
30
+ export declare const getNodeColor: (node: {
31
+ type?: string;
32
+ }) => string;
27
33
  export default nodeTypes;
@@ -47,6 +47,7 @@ declare const colors: {
47
47
  boxShadow: string;
48
48
  };
49
49
  transferBlock: {
50
+ focus: string;
50
51
  background: string;
51
52
  border: string;
52
53
  boxShadow: string;
@@ -0,0 +1,9 @@
1
+ import { AxiosError, AxiosResponse } from 'axios';
2
+ import { ICrmTask, IPagination } from '../../lib';
3
+ export declare const filterInfiniteTaskKey = "filter-infinite-task";
4
+ declare const useInfiniteFilterTask: ({ currentFilters, pageSize, enabled, }: {
5
+ currentFilters: Record<string, unknown>;
6
+ pageSize?: number;
7
+ enabled?: boolean;
8
+ }) => import('@tanstack/react-query').UseInfiniteQueryResult<import('@tanstack/react-query').InfiniteData<AxiosResponse<IPagination<ICrmTask>, any>, unknown>, AxiosError<unknown, any>>;
9
+ export default useInfiniteFilterTask;
@@ -102,7 +102,7 @@ export interface IProperty {
102
102
  slug?: string;
103
103
  type?: DATA_TYPE_PROPERTY;
104
104
  updated_at?: string;
105
- app_model?: "contact" | "enterprise" | "crmproduct" | "crmdeal" | "crmorder" | "ticket" | "call";
105
+ app_model?: "contact" | "enterprise" | "crmproduct" | "crmdeal" | "crmorder" | "crmtask" | "ticket" | "call";
106
106
  }
107
107
  export interface IProfileCompany {
108
108
  profilecompany?: string;
@@ -185,6 +185,18 @@ export interface IContact {
185
185
  changed_by?: string | null;
186
186
  can_update?: boolean;
187
187
  }
188
+ export interface ICrmTask {
189
+ id: string;
190
+ company?: string;
191
+ title?: string;
192
+ name?: string;
193
+ properties?: IProperty[];
194
+ updated_at?: string;
195
+ created_at?: string;
196
+ created_by?: string | null;
197
+ changed_by?: string | null;
198
+ can_update?: boolean;
199
+ }
188
200
  export type PriceItem = {
189
201
  price: number;
190
202
  discount_price: number;
@@ -340,7 +352,7 @@ export type IPropertyV2 = {
340
352
  created_at?: string;
341
353
  created_by?: string | null;
342
354
  updated_at?: string;
343
- app_model?: "contact" | "enterprise" | "crmproduct" | "crmdeal" | "crmorder" | "ticket";
355
+ app_model?: "contact" | "enterprise" | "crmproduct" | "crmdeal" | "crmorder" | "crmtask" | "ticket";
344
356
  label?: string;
345
357
  variant?: string;
346
358
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "app-v3-scripts-editor",
3
3
  "private": false,
4
- "version": "1.32.1",
4
+ "version": "1.33.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/ucall-asia/app-v3-scripts-editor.git"