app-v3-scripts-editor 1.34.0 → 1.35.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 (62) hide show
  1. package/dist/app-v3-scripts-editor.css +1 -1
  2. package/dist/app-v3-scripts-editor.es.js +37124 -35125
  3. package/dist/app-v3-scripts-editor.umd.js +202 -201
  4. package/dist/src/lib/components/Blocks/CallbotCustomer/index.css.d.ts +0 -4
  5. package/dist/src/lib/components/Blocks/Ticket/action/block.d.ts +3 -0
  6. package/dist/src/lib/components/Blocks/Ticket/action/index.d.ts +4 -0
  7. package/dist/src/lib/components/Blocks/Ticket/action/index.settings.d.ts +3 -0
  8. package/dist/src/lib/components/Blocks/Ticket/action/node.d.ts +3 -0
  9. package/dist/src/lib/components/Blocks/Ticket/action/setting/Action.d.ts +2 -0
  10. package/dist/src/lib/components/Blocks/Ticket/action/setting/CreateAction.d.ts +2 -0
  11. package/dist/src/lib/components/Blocks/Ticket/action/setting/GetDataAction.d.ts +2 -0
  12. package/dist/src/lib/components/Blocks/Ticket/action/setting/Output.d.ts +7 -0
  13. package/dist/src/lib/components/Blocks/Ticket/action/setting/UpdateAction.d.ts +2 -0
  14. package/dist/src/lib/components/Blocks/Ticket/action/types.d.ts +44 -0
  15. package/dist/src/lib/components/Blocks/Ticket/index.css.d.ts +13 -0
  16. package/dist/src/lib/components/Blocks/Ticket/trigger/block.d.ts +3 -0
  17. package/dist/src/lib/components/Blocks/Ticket/trigger/index.d.ts +4 -0
  18. package/dist/src/lib/components/Blocks/Ticket/trigger/index.settings.d.ts +3 -0
  19. package/dist/src/lib/components/Blocks/Ticket/trigger/node.d.ts +3 -0
  20. package/dist/src/lib/components/Blocks/Ticket/trigger/setting/Output.d.ts +7 -0
  21. package/dist/src/lib/components/Blocks/Ticket/trigger/setting/Setting.d.ts +2 -0
  22. package/dist/src/lib/components/Blocks/Ticket/trigger/setting/Trigger.d.ts +2 -0
  23. package/dist/src/lib/components/Blocks/Ticket/trigger/types.d.ts +63 -0
  24. package/dist/src/lib/components/Blocks/ZNS/action/block.d.ts +3 -0
  25. package/dist/src/lib/components/Blocks/ZNS/action/index.css.d.ts +1 -0
  26. package/dist/src/lib/components/Blocks/ZNS/action/index.d.ts +4 -0
  27. package/dist/src/lib/components/Blocks/ZNS/action/index.settings.d.ts +3 -0
  28. package/dist/src/lib/components/Blocks/ZNS/action/node.d.ts +3 -0
  29. package/dist/src/lib/components/Blocks/ZNS/action/setting/Action.d.ts +2 -0
  30. package/dist/src/lib/components/Blocks/ZNS/action/setting/CreateAction.d.ts +2 -0
  31. package/dist/src/lib/components/Blocks/ZNS/action/setting/GetDataAction.d.ts +2 -0
  32. package/dist/src/lib/components/Blocks/ZNS/action/setting/Output.d.ts +7 -0
  33. package/dist/src/lib/components/Blocks/ZNS/action/setting/SendAction.d.ts +2 -0
  34. package/dist/src/lib/components/Blocks/ZNS/action/setting/ToggleAction.d.ts +2 -0
  35. package/dist/src/lib/components/Blocks/ZNS/action/setting/UpdateAction.d.ts +2 -0
  36. package/dist/src/lib/components/Blocks/ZNS/action/types.d.ts +50 -0
  37. package/dist/src/lib/components/Blocks/ZNS/customer/block.d.ts +3 -0
  38. package/dist/src/lib/components/Blocks/ZNS/customer/index.css.d.ts +13 -0
  39. package/dist/src/lib/components/Blocks/ZNS/customer/index.d.ts +4 -0
  40. package/dist/src/lib/components/Blocks/ZNS/customer/index.settings.d.ts +3 -0
  41. package/dist/src/lib/components/Blocks/ZNS/customer/node.d.ts +3 -0
  42. package/dist/src/lib/components/Blocks/ZNS/customer/setting/Action.d.ts +2 -0
  43. package/dist/src/lib/components/Blocks/ZNS/customer/setting/Output.d.ts +7 -0
  44. package/dist/src/lib/components/Blocks/ZNS/customer/setting/Setting.d.ts +2 -0
  45. package/dist/src/lib/components/Blocks/ZNS/customer/types.d.ts +23 -0
  46. package/dist/src/lib/components/Blocks/ZNS/trigger/block.d.ts +3 -0
  47. package/dist/src/lib/components/Blocks/ZNS/trigger/index.css.d.ts +13 -0
  48. package/dist/src/lib/components/Blocks/ZNS/trigger/index.d.ts +4 -0
  49. package/dist/src/lib/components/Blocks/ZNS/trigger/index.settings.d.ts +3 -0
  50. package/dist/src/lib/components/Blocks/ZNS/trigger/node.d.ts +3 -0
  51. package/dist/src/lib/components/Blocks/ZNS/trigger/setting/Action.d.ts +2 -0
  52. package/dist/src/lib/components/Blocks/ZNS/trigger/setting/Output.d.ts +7 -0
  53. package/dist/src/lib/components/Blocks/ZNS/trigger/setting/Setting.d.ts +2 -0
  54. package/dist/src/lib/components/Blocks/ZNS/trigger/types.d.ts +20 -0
  55. package/dist/src/lib/components/Selector/ZNS/index.d.ts +7 -0
  56. package/dist/src/lib/components/Selector/ZNSStatus/index.d.ts +7 -0
  57. package/dist/src/lib/constants/block-types.d.ts +5 -0
  58. package/dist/src/lib/constants/initial-script.d.ts +14 -0
  59. package/dist/src/lib/constants/node-types.d.ts +5 -0
  60. package/dist/src/services/zns/useInfiniteZNSCampaign.d.ts +14 -0
  61. package/dist/src/services/zns/useInfiniteZNSStatus.d.ts +14 -0
  62. package/package.json +1 -1
@@ -4,7 +4,6 @@ export declare const iconWrapper: string;
4
4
  export declare const iconPrimaryStyle: string;
5
5
  export declare const iconAbsoluteStyle: string;
6
6
  export declare const settingsContainer: string;
7
- export declare const alertGroup: string;
8
7
  export declare const radioGroup: string;
9
8
  export declare const radioSpace: string;
10
9
  export declare const radioItem: string;
@@ -12,6 +11,3 @@ export declare const radioContent: string;
12
11
  export declare const checkIconWrapper: string;
13
12
  export declare const triangle: string;
14
13
  export declare const checkIcon: string;
15
- export declare const emailTypeGroup: string;
16
- export declare const radioButton: string;
17
- export declare const radioCol: string;
@@ -0,0 +1,3 @@
1
+ import { BlockActionTicketProps } from './types';
2
+ declare const BlockActionTicket: ({ id, data, mini }: BlockActionTicketProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default BlockActionTicket;
@@ -0,0 +1,4 @@
1
+ import { default as BlockActionTicket } from './block';
2
+ import { default as ActionTicketNode } from './node';
3
+ export default ActionTicketNode;
4
+ export { BlockActionTicket };
@@ -0,0 +1,3 @@
1
+ export declare const ActionTicketNodeSettings: ({ id }: {
2
+ id: string;
3
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ import { BlockActionTicketProps } from './types';
2
+ declare const ActionTicketNode: React.FC<BlockActionTicketProps>;
3
+ export default ActionTicketNode;
@@ -0,0 +1,2 @@
1
+ declare const TicketActionContainer: () => import("react/jsx-runtime").JSX.Element;
2
+ export default TicketActionContainer;
@@ -0,0 +1,2 @@
1
+ declare const CreateTicketSettingContainer: () => import("react/jsx-runtime").JSX.Element;
2
+ export default CreateTicketSettingContainer;
@@ -0,0 +1,2 @@
1
+ declare const GetDataTicketSettingContainer: () => import("react/jsx-runtime").JSX.Element;
2
+ export default GetDataTicketSettingContainer;
@@ -0,0 +1,7 @@
1
+ import { IOutput } from '../../../../../../services';
2
+ type ActionTicketOutputContainerProps = {
3
+ id: string;
4
+ outputs: IOutput["outputs"];
5
+ };
6
+ declare const ActionTicketOutputContainer: React.FC<ActionTicketOutputContainerProps>;
7
+ export default ActionTicketOutputContainer;
@@ -0,0 +1,2 @@
1
+ declare const UpdateTicketSettingContainer: () => import("react/jsx-runtime").JSX.Element;
2
+ export default UpdateTicketSettingContainer;
@@ -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 ACTION_TICKET_TYPE {
6
+ CREATE = "CREATE",
7
+ UPDATE = "UPDATE",
8
+ GET = "GET"
9
+ }
10
+ export declare const TicketActionTypeLabel: {
11
+ CREATE: string;
12
+ UPDATE: string;
13
+ GET: string;
14
+ };
15
+ export declare const TicketActionTypeDescription: {
16
+ CREATE: string;
17
+ UPDATE: string;
18
+ GET: string;
19
+ };
20
+ export declare const TicketActionTypeList: ACTION_TICKET_TYPE[];
21
+ interface TicketActionGroup {
22
+ object?: string;
23
+ filter_type?: "AND" | "OR";
24
+ conditions: IFilter[];
25
+ }
26
+ export interface ActionTicketNodeData extends INodeBaseType, Record<string, unknown> {
27
+ title: string;
28
+ type?: ACTION_TICKET_TYPE;
29
+ filter_type?: "AND" | "OR";
30
+ groups?: TicketActionGroup[];
31
+ object?: string;
32
+ ticket?: 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 BlockActionTicketProps = BlockTypeProps<ActionTicketNodeData>;
43
+ export type ActionTicketNodeProps = NodeProps<Node<ActionTicketNodeData>>;
44
+ export {};
@@ -0,0 +1,13 @@
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 iconAbsoluteStyle: string;
6
+ export declare const settingsContainer: string;
7
+ export declare const radioGroup: string;
8
+ export declare const radioSpace: string;
9
+ export declare const radioItem: string;
10
+ export declare const radioContent: string;
11
+ export declare const checkIconWrapper: string;
12
+ export declare const triangle: string;
13
+ export declare const checkIcon: string;
@@ -0,0 +1,3 @@
1
+ import { BlockTicketTriggerProps } from './types';
2
+ declare const BlockTicketTrigger: ({ id, data, mini }: BlockTicketTriggerProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default BlockTicketTrigger;
@@ -0,0 +1,4 @@
1
+ import { default as BlockTicketTrigger } from './block';
2
+ import { default as TicketTriggerNode } from './node';
3
+ export default TicketTriggerNode;
4
+ export { BlockTicketTrigger };
@@ -0,0 +1,3 @@
1
+ export declare const TicketTriggerNodeSettings: ({ id }: {
2
+ id: string;
3
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ import { BlockTicketTriggerProps } from './types';
2
+ declare const TicketTriggerNode: React.FC<BlockTicketTriggerProps>;
3
+ export default TicketTriggerNode;
@@ -0,0 +1,7 @@
1
+ import { IOutput } from '../../../../../../services';
2
+ type TicketTriggerOutputContainerProps = {
3
+ id: string;
4
+ outputs: IOutput["outputs"];
5
+ };
6
+ declare const TicketTriggerOutputContainer: React.FC<TicketTriggerOutputContainerProps>;
7
+ export default TicketTriggerOutputContainer;
@@ -0,0 +1,2 @@
1
+ declare const TriggerTicketSettingContainer: () => import("react/jsx-runtime").JSX.Element;
2
+ export default TriggerTicketSettingContainer;
@@ -0,0 +1,2 @@
1
+ declare const TicketTriggerSettingContainer: () => import("react/jsx-runtime").JSX.Element;
2
+ export default TicketTriggerSettingContainer;
@@ -0,0 +1,63 @@
1
+ import { Node, NodeProps } from '@xyflow/react';
2
+ import { IFilterGroup, INodeBaseType, IPropertyV2 } from '../../../../../services';
3
+ import { BlockTypeProps } from '../../../../constants';
4
+ export declare enum TICKET_TRIGGER_TYPE {
5
+ CREATED = "created",
6
+ UPDATED = "updated",
7
+ DELETED = "deleted",
8
+ TIME = "TIME"
9
+ }
10
+ export declare enum TRIGGER_DATE_OPTION {
11
+ SAME_DAY = "SAME_DAY",
12
+ BEFORE = "BEFORE",
13
+ AFTER = "AFTER"
14
+ }
15
+ export declare enum TRIGGER_TIME_OPTION {
16
+ AT_EVENT = "AT_EVENT",
17
+ BEFORE_EVENT = "BEFORE_EVENT",
18
+ AFTER_EVENT = "AFTER_EVENT",
19
+ FIXED_TIME = "FIXED_TIME"
20
+ }
21
+ export declare const TicketTriggerTypeLabel: {
22
+ created: string;
23
+ updated: string;
24
+ deleted: string;
25
+ TIME: string;
26
+ };
27
+ export declare const TicketTriggerTypeDescription: {
28
+ created: string;
29
+ updated: string;
30
+ deleted: string;
31
+ TIME: string;
32
+ };
33
+ export declare const TicketTriggerTypeList: TICKET_TRIGGER_TYPE[];
34
+ export declare const TicketTriggerDateOptionLabel: {
35
+ SAME_DAY: string;
36
+ BEFORE: string;
37
+ AFTER: string;
38
+ };
39
+ export declare const TicketTriggerDateOptionList: TRIGGER_DATE_OPTION[];
40
+ export declare const TicketTriggerTimeOptionLabel: {
41
+ AT_EVENT: string;
42
+ BEFORE_EVENT: string;
43
+ AFTER_EVENT: string;
44
+ FIXED_TIME: string;
45
+ };
46
+ export declare const TicketTriggerTimeOptionList: TRIGGER_TIME_OPTION[];
47
+ export interface TicketTriggerNodeData extends INodeBaseType, Record<string, unknown> {
48
+ title: string;
49
+ type: TICKET_TRIGGER_TYPE;
50
+ object: string;
51
+ filter_type: "AND" | "OR";
52
+ groups: IFilterGroup[];
53
+ time_field?: IPropertyV2;
54
+ date_config_value?: TRIGGER_DATE_OPTION;
55
+ date_config_offset?: number;
56
+ time_config_value?: TRIGGER_TIME_OPTION;
57
+ time_config_fixed_time?: string;
58
+ time_config_offset?: number;
59
+ time_config_offset_unit?: "MINUTES" | "HOURS";
60
+ change_field_id?: string;
61
+ }
62
+ export type BlockTicketTriggerProps = BlockTypeProps<TicketTriggerNodeData>;
63
+ export type TicketTriggerNodeProps = NodeProps<Node<TicketTriggerNodeData>>;
@@ -0,0 +1,3 @@
1
+ import { BlockZNSActionProps } from './types';
2
+ declare const BlockZNSAction: ({ id, data, mini }: BlockZNSActionProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default BlockZNSAction;
@@ -0,0 +1 @@
1
+ export * from '../trigger/index.css';
@@ -0,0 +1,4 @@
1
+ import { default as BlockZNSAction } from './block';
2
+ import { default as ZNSActionNode } from './node';
3
+ export default ZNSActionNode;
4
+ export { BlockZNSAction };
@@ -0,0 +1,3 @@
1
+ export declare const ZNSActionNodeSettings: ({ id }: {
2
+ id: string;
3
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ import { BlockZNSActionProps } from './types';
2
+ declare const ZNSActionNode: React.FC<BlockZNSActionProps>;
3
+ export default ZNSActionNode;
@@ -0,0 +1,2 @@
1
+ declare const ZNSActionSettingContainer: () => import("react/jsx-runtime").JSX.Element;
2
+ export default ZNSActionSettingContainer;
@@ -0,0 +1,2 @@
1
+ declare const CreateZNSActionSettingContainer: () => import("react/jsx-runtime").JSX.Element;
2
+ export default CreateZNSActionSettingContainer;
@@ -0,0 +1,2 @@
1
+ declare const GetDataZNSActionSettingContainer: () => import("react/jsx-runtime").JSX.Element;
2
+ export default GetDataZNSActionSettingContainer;
@@ -0,0 +1,7 @@
1
+ import { IOutput } from '../../../../../../services';
2
+ type ZNSActionOutputContainerProps = {
3
+ id: string;
4
+ outputs: IOutput["outputs"];
5
+ };
6
+ declare const ZNSActionOutputContainer: ({ id, outputs, }: ZNSActionOutputContainerProps) => import("react/jsx-runtime").JSX.Element;
7
+ export default ZNSActionOutputContainer;
@@ -0,0 +1,2 @@
1
+ declare const SendZNSActionSettingContainer: () => import("react/jsx-runtime").JSX.Element;
2
+ export default SendZNSActionSettingContainer;
@@ -0,0 +1,2 @@
1
+ declare const ToggleZNSActionSettingContainer: () => import("react/jsx-runtime").JSX.Element;
2
+ export default ToggleZNSActionSettingContainer;
@@ -0,0 +1,2 @@
1
+ declare const UpdateZNSActionSettingContainer: () => import("react/jsx-runtime").JSX.Element;
2
+ export default UpdateZNSActionSettingContainer;
@@ -0,0 +1,50 @@
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 ACTION_ZNS_TYPE {
6
+ CREATE = "CREATE",
7
+ GET = "GET",
8
+ UPDATE = "UPDATE",
9
+ TOGGLE = "TOGGLE",
10
+ SEND = "SEND"
11
+ }
12
+ export declare const ZNSActionTypeLabel: {
13
+ CREATE: string;
14
+ UPDATE: string;
15
+ GET: string;
16
+ TOGGLE: string;
17
+ SEND: string;
18
+ };
19
+ export declare const ZNSActionTypeDescription: {
20
+ CREATE: string;
21
+ UPDATE: string;
22
+ GET: string;
23
+ TOGGLE: string;
24
+ SEND: string;
25
+ };
26
+ export declare const ZNSActionTypeList: ACTION_ZNS_TYPE[];
27
+ interface ZNSActionGroup {
28
+ object?: string;
29
+ filter_type?: "AND" | "OR";
30
+ conditions: IFilter[];
31
+ }
32
+ export interface ZNSActionNodeData extends INodeBaseType, Record<string, unknown> {
33
+ title: string;
34
+ type?: ACTION_ZNS_TYPE;
35
+ filter_type?: "AND" | "OR";
36
+ groups?: ZNSActionGroup[];
37
+ object?: string;
38
+ id?: string;
39
+ update_fields?: {
40
+ id?: string;
41
+ slug?: string;
42
+ name?: string;
43
+ value?: unknown;
44
+ type?: DATA_TYPE_PROPERTY_V2;
45
+ reference_type?: boolean;
46
+ }[];
47
+ }
48
+ export type BlockZNSActionProps = BlockTypeProps<ZNSActionNodeData>;
49
+ export type ZNSActionNodeProps = NodeProps<Node<ZNSActionNodeData>>;
50
+ export {};
@@ -0,0 +1,3 @@
1
+ import { BlockZNSCustomerProps } from './types';
2
+ declare const BlockZNSCustomer: ({ id, data, mini }: BlockZNSCustomerProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default BlockZNSCustomer;
@@ -0,0 +1,13 @@
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 iconAbsoluteStyle: string;
6
+ export declare const settingsContainer: string;
7
+ export declare const radioGroup: string;
8
+ export declare const radioSpace: string;
9
+ export declare const radioItem: string;
10
+ export declare const radioContent: string;
11
+ export declare const checkIconWrapper: string;
12
+ export declare const triangle: string;
13
+ export declare const checkIcon: string;
@@ -0,0 +1,4 @@
1
+ import { default as BlockZNSCustomer } from './block';
2
+ import { default as ZNSCustomerNode } from './node';
3
+ export default ZNSCustomerNode;
4
+ export { BlockZNSCustomer };
@@ -0,0 +1,3 @@
1
+ export declare const ZNSCustomerNodeSettings: ({ id }: {
2
+ id: string;
3
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ import { BlockZNSCustomerProps } from './types';
2
+ declare const ZNSCustomerNode: React.FC<BlockZNSCustomerProps>;
3
+ export default ZNSCustomerNode;
@@ -0,0 +1,2 @@
1
+ declare const ZNSCustomerActionContainer: () => import("react/jsx-runtime").JSX.Element;
2
+ export default ZNSCustomerActionContainer;
@@ -0,0 +1,7 @@
1
+ import { IOutput } from '../../../../../../services';
2
+ type ZNSCustomerOutputContainerProps = {
3
+ id: string;
4
+ outputs: IOutput["outputs"];
5
+ };
6
+ declare const ZNSCustomerOutputContainer: ({ id, outputs, }: ZNSCustomerOutputContainerProps) => import("react/jsx-runtime").JSX.Element;
7
+ export default ZNSCustomerOutputContainer;
@@ -0,0 +1,2 @@
1
+ declare const ZNSCustomerSettingContainer: () => import("react/jsx-runtime").JSX.Element;
2
+ export default ZNSCustomerSettingContainer;
@@ -0,0 +1,23 @@
1
+ import { Node, NodeProps } from '@xyflow/react';
2
+ import { INodeBaseType } from '../../../../../services';
3
+ import { BlockTypeProps } from '../../../../constants';
4
+ export declare enum ZNS_CUSTOMER_ACTION_TYPE {
5
+ ADD = "ADD",
6
+ UPDATE = "UPDATE"
7
+ }
8
+ export declare const ZNSCustomerTypeLabel: {
9
+ ADD: string;
10
+ UPDATE: string;
11
+ };
12
+ export declare const ZNSCustomerTypeDescription: {
13
+ ADD: string;
14
+ UPDATE: string;
15
+ };
16
+ export declare const ZNSCustomerTypeList: ZNS_CUSTOMER_ACTION_TYPE[];
17
+ export interface ZNSCustomerNodeData extends INodeBaseType, Record<string, unknown> {
18
+ title: string;
19
+ type?: ZNS_CUSTOMER_ACTION_TYPE;
20
+ id?: string;
21
+ }
22
+ export type BlockZNSCustomerProps = BlockTypeProps<ZNSCustomerNodeData>;
23
+ export type ZNSCustomerNodeProps = NodeProps<Node<ZNSCustomerNodeData>>;
@@ -0,0 +1,3 @@
1
+ import { BlockZNSTriggerProps } from './types';
2
+ declare const BlockZNSTrigger: ({ id, data, mini }: BlockZNSTriggerProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default BlockZNSTrigger;
@@ -0,0 +1,13 @@
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 iconAbsoluteStyle: string;
6
+ export declare const settingsContainer: string;
7
+ export declare const radioGroup: string;
8
+ export declare const radioSpace: string;
9
+ export declare const radioItem: string;
10
+ export declare const radioContent: string;
11
+ export declare const checkIconWrapper: string;
12
+ export declare const triangle: string;
13
+ export declare const checkIcon: string;
@@ -0,0 +1,4 @@
1
+ import { default as BlockZNSTrigger } from './block';
2
+ import { default as ZNSTriggerNode } from './node';
3
+ export default ZNSTriggerNode;
4
+ export { BlockZNSTrigger };
@@ -0,0 +1,3 @@
1
+ export declare const ZNSTriggerNodeSettings: ({ id }: {
2
+ id: string;
3
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ import { BlockZNSTriggerProps } from './types';
2
+ declare const ZNSTriggerNode: React.FC<BlockZNSTriggerProps>;
3
+ export default ZNSTriggerNode;
@@ -0,0 +1,2 @@
1
+ declare const ZNSTriggerActionContainer: () => import("react/jsx-runtime").JSX.Element;
2
+ export default ZNSTriggerActionContainer;
@@ -0,0 +1,7 @@
1
+ import { IOutput } from '../../../../../../services';
2
+ type ZNSTriggerOutputContainerProps = {
3
+ id: string;
4
+ outputs: IOutput["outputs"];
5
+ };
6
+ declare const ZNSTriggerOutputContainer: ({ id, outputs, }: ZNSTriggerOutputContainerProps) => import("react/jsx-runtime").JSX.Element;
7
+ export default ZNSTriggerOutputContainer;
@@ -0,0 +1,2 @@
1
+ declare const ZNSTriggerSettingContainer: () => import("react/jsx-runtime").JSX.Element;
2
+ export default ZNSTriggerSettingContainer;
@@ -0,0 +1,20 @@
1
+ import { Node, NodeProps } from '@xyflow/react';
2
+ import { INodeBaseType } from '../../../../../services';
3
+ import { BlockTypeProps } from '../../../../constants';
4
+ export declare enum ZNS_TRIGGER_TYPE {
5
+ STATUS_CHANGE = "STATUS_CHANGE"
6
+ }
7
+ export declare const ZNSTriggerTypeLabel: {
8
+ STATUS_CHANGE: string;
9
+ };
10
+ export declare const ZNSTriggerTypeDescription: {
11
+ STATUS_CHANGE: string;
12
+ };
13
+ export declare const ZNSTriggerTypeList: ZNS_TRIGGER_TYPE[];
14
+ export interface ZNSTriggerNodeData extends INodeBaseType, Record<string, unknown> {
15
+ title: string;
16
+ type?: ZNS_TRIGGER_TYPE;
17
+ id?: string;
18
+ }
19
+ export type BlockZNSTriggerProps = BlockTypeProps<ZNSTriggerNodeData>;
20
+ export type ZNSTriggerNodeProps = NodeProps<Node<ZNSTriggerNodeData>>;
@@ -0,0 +1,7 @@
1
+ import { IZNSCampaign } from '../../../../services/zns/useInfiniteZNSCampaign';
2
+ import { VariableSuggestSelectProps } from '../../Shared/VariableSuggestSelect';
3
+ type ZNSSelectorProps = {
4
+ dataDefault?: IZNSCampaign | IZNSCampaign[];
5
+ } & Omit<VariableSuggestSelectProps, "options" | "defaultOptions" | "onSearch">;
6
+ declare const ZNSSelector: React.FC<ZNSSelectorProps>;
7
+ export default ZNSSelector;
@@ -0,0 +1,7 @@
1
+ import { IZNSStatus } from '../../../../services/zns/useInfiniteZNSStatus';
2
+ import { VariableSuggestSelectProps } from '../../Shared/VariableSuggestSelect';
3
+ type ZNSStatusSelectorProps = {
4
+ dataDefault?: IZNSStatus | IZNSStatus[];
5
+ } & Omit<VariableSuggestSelectProps, "options" | "defaultOptions" | "onSearch">;
6
+ declare const ZNSStatusSelector: ({ placeholder, ...restProps }: ZNSStatusSelectorProps) => import("react/jsx-runtime").JSX.Element;
7
+ export default ZNSStatusSelector;
@@ -13,14 +13,19 @@ export declare enum BlockType {
13
13
  TRIGGER_CONTACT = "TRIGGER_CONTACT",
14
14
  TRIGGER_CALLBOT = "TRIGGER_CALLBOT",
15
15
  TRIGGER_CRMORDER = "TRIGGER_CRMORDER",
16
+ TRIGGER_TICKET = "TRIGGER_TICKET",
16
17
  SCHEDULE_AT = "SCHEDULE_AT",
17
18
  CATCH_HOOK = "CATCH_HOOK",
18
19
  CALLBOT_CUSTOMER = "CALLBOT_CUSTOMER",
19
20
  ACTION_CONTACT = "ACTION_CONTACT",
20
21
  ACTION_CALLBOT = "ACTION_CALLBOT",
22
+ ACTION_ZNS = "ACTION_ZNS",
21
23
  SMS_CAMPAIGN = "SMS_CAMPAIGN",
24
+ TRIGGER_ZNS = "TRIGGER_ZNS",
25
+ ZNS_CUSTOMER = "ZNS_CUSTOMER",
22
26
  TASK = "TASK",
23
27
  ACTION_CRMORDER = "ACTION_CRMORDER",
28
+ ACTION_TICKET = "ACTION_TICKET",
24
29
  EMAIL = "EMAIL",
25
30
  DELAY = "DELAY",
26
31
  BRANCH = "BRANCH",
@@ -10,6 +10,8 @@ export declare const initialTitles: {
10
10
  HTTP_REQUEST: string;
11
11
  GROUP: string;
12
12
  TRIGGER_CONTACT: string;
13
+ TRIGGER_TICKET: string;
14
+ ACTION_TICKET: string;
13
15
  EMAIL: string;
14
16
  DELAY: string;
15
17
  BRANCH: string;
@@ -23,7 +25,10 @@ export declare const initialTitles: {
23
25
  TRIGGER_CALLBOT: string;
24
26
  AUTO_FLOW_HTTP_REQUEST: string;
25
27
  ACTION_CALLBOT: string;
28
+ ACTION_ZNS: string;
26
29
  SMS_CAMPAIGN: string;
30
+ TRIGGER_ZNS: string;
31
+ ZNS_CUSTOMER: string;
27
32
  TASK: string;
28
33
  CALLBOT_CUSTOMER: string;
29
34
  };
@@ -132,8 +137,17 @@ export declare const initialData: {
132
137
  groups: {}[];
133
138
  filter_type: string;
134
139
  };
140
+ TRIGGER_TICKET: {
141
+ object: string;
142
+ groups: {}[];
143
+ filter_type: string;
144
+ };
145
+ ACTION_ZNS: {};
135
146
  SMS_CAMPAIGN: {};
147
+ TRIGGER_ZNS: {};
148
+ ZNS_CUSTOMER: {};
136
149
  TASK: {};
150
+ ACTION_TICKET: {};
137
151
  };
138
152
  export declare const getInitialData: (blockType: BlockType) => any;
139
153
  export declare const initialNodes: Node[];
@@ -10,6 +10,7 @@ export declare const nodeTypes: {
10
10
  HTTP_REQUEST: import('react').FC<import('../components/Blocks/HttpRequest/types').BlockHttpRequestActionProps>;
11
11
  TRIGGER_CONTACT: import('react').FC<import('../components/Blocks/Contact/trigger/types').BlockContactTriggerProps>;
12
12
  TRIGGER_CRMORDER: import('react').FC<import('../components/Blocks/Order/trigger/types').BlockOrderTriggerProps>;
13
+ TRIGGER_TICKET: import('react').FC<import('../components/Blocks/Ticket/trigger/types').BlockTicketTriggerProps>;
13
14
  TRIGGER_CALLBOT: import('react').FC<import('../components/Blocks/Callbot/trigger/types').BlockCallbotTriggerProps>;
14
15
  SCHEDULE_AT: import('react').FC<import('../components/Blocks/Schedule/types').BlockScheduleProps>;
15
16
  CATCH_HOOK: import('react').FC<import('../components/Blocks/CatchHook/types').BlockCatchHookProps>;
@@ -18,8 +19,12 @@ export declare const nodeTypes: {
18
19
  CONTACT_ASSIGN: import('react').FC<import('../components/Blocks/Contact/assign/types').BlockContactAssignProps>;
19
20
  ACTION_CRMORDER: import('react').FC<import('../components/Blocks/Order/action/types').BlockOrderActionProps>;
20
21
  ACTION_CALLBOT: import('react').FC<import('../components/Blocks/Callbot/action/types').BlockCallbotActionProps>;
22
+ ACTION_ZNS: import('react').FC<import('../components/Blocks/ZNS/action/types').BlockZNSActionProps>;
21
23
  SMS_CAMPAIGN: import('react').FC<import('../components/Blocks/SmsCampaign/types').BlockSmsCampaignProps>;
24
+ TRIGGER_ZNS: import('react').FC<import('../components/Blocks/ZNS/trigger/types').BlockZNSTriggerProps>;
25
+ ZNS_CUSTOMER: import('react').FC<import('../components/Blocks/ZNS/customer/types').BlockZNSCustomerProps>;
22
26
  TASK: import('react').FC<import('../components/Blocks/Task/types').BlockTaskProps>;
27
+ ACTION_TICKET: import('react').FC<import('../components/Blocks/Ticket/action/types').BlockActionTicketProps>;
23
28
  EMAIL: import('react').FC<import('../components/Blocks/Email/types').BlockEmailProps>;
24
29
  DELAY: import('react').FC<import('../components/Blocks/Delay/types').BlockDelayActionProps>;
25
30
  BRANCH: import('react').FC<import('../components/Blocks/Branch/types').BlockBranchProps>;
@@ -0,0 +1,14 @@
1
+ import { AxiosError, AxiosResponse } from 'axios';
2
+ import { IPagination } from '../../lib';
3
+ export interface IZNSCampaign {
4
+ id: string;
5
+ name: string;
6
+ [key: string]: unknown;
7
+ }
8
+ export declare const filterInfiniteZNSCampaignKey = "filter-infinite-zns-campaign";
9
+ declare const useInfiniteZNSCampaign: ({ currentFilters, pageSize, enabled, }: {
10
+ currentFilters: Record<string, unknown>;
11
+ pageSize?: number;
12
+ enabled?: boolean;
13
+ }) => import('@tanstack/react-query').UseInfiniteQueryResult<import('@tanstack/react-query').InfiniteData<AxiosResponse<IPagination<IZNSCampaign>, any>, unknown>, AxiosError<unknown, any>>;
14
+ export default useInfiniteZNSCampaign;
@@ -0,0 +1,14 @@
1
+ import { IPagination } from '../types';
2
+ export interface IZNSStatus {
3
+ id: string;
4
+ name: string;
5
+ }
6
+ export declare const ZNS_STATUS_OPTIONS: IZNSStatus[];
7
+ export declare const getZNSStatusLabel: (statusId?: string) => string;
8
+ export declare const filterInfiniteZNSStatusKey = "filter-infinite-zns-status";
9
+ declare const useInfiniteZNSStatus: ({ currentFilters, pageSize, enabled, }: {
10
+ currentFilters?: Record<string, unknown>;
11
+ pageSize?: number;
12
+ enabled?: boolean;
13
+ }) => import('@tanstack/react-query').UseInfiniteQueryResult<import('@tanstack/react-query').InfiniteData<IPagination<IZNSStatus>, unknown>, Error>;
14
+ export default useInfiniteZNSStatus;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "app-v3-scripts-editor",
3
3
  "private": false,
4
- "version": "1.34.0",
4
+ "version": "1.35.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/ucall-asia/app-v3-scripts-editor.git"