app-v3-scripts-editor 1.23.1 → 1.24.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.
- package/dist/app-v3-scripts-editor.css +1 -1
- package/dist/app-v3-scripts-editor.es.js +32424 -31502
- package/dist/app-v3-scripts-editor.umd.js +204 -204
- package/dist/src/lib/components/Blocks/Contact/trigger/types.d.ts +1 -0
- package/dist/src/lib/components/Blocks/Order/action/block.d.ts +3 -0
- package/dist/src/lib/components/Blocks/Order/action/index.d.ts +4 -0
- package/dist/src/lib/components/Blocks/Order/action/index.settings.d.ts +3 -0
- package/dist/src/lib/components/Blocks/Order/action/node.d.ts +3 -0
- package/dist/src/lib/components/Blocks/Order/action/setting/Action.d.ts +4 -0
- package/dist/src/lib/components/Blocks/Order/action/setting/CreateAction.d.ts +4 -0
- package/dist/src/lib/components/Blocks/Order/action/setting/GetDataAction.d.ts +4 -0
- package/dist/src/lib/components/Blocks/Order/action/setting/Output.d.ts +7 -0
- package/dist/src/lib/components/Blocks/Order/action/setting/UpdateAction.d.ts +4 -0
- package/dist/src/lib/components/Blocks/Order/action/types.d.ts +44 -0
- package/dist/src/lib/components/Blocks/Order/index.css.d.ts +14 -0
- package/dist/src/lib/components/Blocks/Order/trigger/block.d.ts +3 -0
- package/dist/src/lib/components/Blocks/Order/trigger/index.d.ts +4 -0
- package/dist/src/lib/components/Blocks/Order/trigger/index.settings.d.ts +3 -0
- package/dist/src/lib/components/Blocks/Order/trigger/node.d.ts +3 -0
- package/dist/src/lib/components/Blocks/Order/trigger/setting/Output.d.ts +7 -0
- package/dist/src/lib/components/Blocks/Order/trigger/setting/Setting.d.ts +4 -0
- package/dist/src/lib/components/Blocks/Order/trigger/setting/Trigger.d.ts +4 -0
- package/dist/src/lib/components/Blocks/Order/trigger/types.d.ts +63 -0
- package/dist/src/lib/components/Selector/Property/index.d.ts +1 -1
- package/dist/src/lib/components/Shared/GroupCondition/index.d.ts +1 -1
- package/dist/src/lib/constants/block-types.d.ts +2 -2
- package/dist/src/lib/constants/node-types.d.ts +3 -1
- package/dist/src/lib/hooks/use-create-reconnect-edge/index.d.ts +13 -0
- package/dist/src/lib/hooks/use-reconnect-edges/index.d.ts +8 -0
- package/dist/src/lib/hooks/use-sync-node-orders/index.d.ts +8 -0
- package/package.json +1 -1
|
@@ -57,6 +57,7 @@ export interface ContactTriggerNodeData extends INodeBaseType, Record<string, un
|
|
|
57
57
|
time_config_fixed_time?: string;
|
|
58
58
|
time_config_offset?: number;
|
|
59
59
|
time_config_offset_unit?: "MINUTES" | "HOURS";
|
|
60
|
+
change_field_id?: string;
|
|
60
61
|
}
|
|
61
62
|
export type BlockContactTriggerProps = BlockTypeProps<ContactTriggerNodeData>;
|
|
62
63
|
export type ContactTriggerNodeProps = NodeProps<Node<ContactTriggerNodeData>>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IOutput } from '../../../../../../services';
|
|
2
|
+
type OrderActionOutputContainerProps = {
|
|
3
|
+
id: string;
|
|
4
|
+
outputs: IOutput["outputs"];
|
|
5
|
+
};
|
|
6
|
+
declare const OrderActionOutputContainer: React.FC<OrderActionOutputContainerProps>;
|
|
7
|
+
export default OrderActionOutputContainer;
|
|
@@ -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_ORDER_TYPE {
|
|
6
|
+
CREATE = "CREATE",
|
|
7
|
+
GET = "GET",
|
|
8
|
+
UPDATE = "UPDATE"
|
|
9
|
+
}
|
|
10
|
+
export declare const OrderActionTypeLabel: {
|
|
11
|
+
CREATE: string;
|
|
12
|
+
UPDATE: string;
|
|
13
|
+
GET: string;
|
|
14
|
+
};
|
|
15
|
+
export declare const OrderActionTypeDescription: {
|
|
16
|
+
CREATE: string;
|
|
17
|
+
UPDATE: string;
|
|
18
|
+
GET: string;
|
|
19
|
+
};
|
|
20
|
+
export declare const OrderActionTypeList: ACTION_ORDER_TYPE[];
|
|
21
|
+
interface OrderActionGroup {
|
|
22
|
+
object?: string;
|
|
23
|
+
filter_type?: "AND" | "OR";
|
|
24
|
+
conditions: IFilter[];
|
|
25
|
+
}
|
|
26
|
+
export interface OrderActionNodeData extends INodeBaseType, Record<string, unknown> {
|
|
27
|
+
title: string;
|
|
28
|
+
type: ACTION_ORDER_TYPE;
|
|
29
|
+
filter_type?: "AND" | "OR";
|
|
30
|
+
groups?: OrderActionGroup[];
|
|
31
|
+
object?: string;
|
|
32
|
+
crmorder?: string[];
|
|
33
|
+
update_fields?: {
|
|
34
|
+
id?: string;
|
|
35
|
+
slug?: string;
|
|
36
|
+
name?: string;
|
|
37
|
+
value?: any;
|
|
38
|
+
type?: DATA_TYPE_PROPERTY_V2;
|
|
39
|
+
reference_type?: boolean;
|
|
40
|
+
}[];
|
|
41
|
+
}
|
|
42
|
+
export type BlockOrderActionProps = BlockTypeProps<OrderActionNodeData>;
|
|
43
|
+
export type OrderActionNodeProps = NodeProps<Node<OrderActionNodeData>>;
|
|
44
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
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 alertGroup: string;
|
|
8
|
+
export declare const radioGroup: string;
|
|
9
|
+
export declare const radioSpace: string;
|
|
10
|
+
export declare const radioItem: string;
|
|
11
|
+
export declare const radioContent: string;
|
|
12
|
+
export declare const checkIconWrapper: string;
|
|
13
|
+
export declare const triangle: string;
|
|
14
|
+
export declare const checkIcon: string;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IOutput } from '../../../../../../services';
|
|
2
|
+
type OrderTriggerOutputContainerProps = {
|
|
3
|
+
id: string;
|
|
4
|
+
outputs: IOutput["outputs"];
|
|
5
|
+
};
|
|
6
|
+
declare const OrderTriggerOutputContainer: React.FC<OrderTriggerOutputContainerProps>;
|
|
7
|
+
export default OrderTriggerOutputContainer;
|
|
@@ -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 ORDER_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 OrderTriggerTypeLabel: {
|
|
22
|
+
created: string;
|
|
23
|
+
updated: string;
|
|
24
|
+
deleted: string;
|
|
25
|
+
TIME: string;
|
|
26
|
+
};
|
|
27
|
+
export declare const OrderTriggerTypeDescription: {
|
|
28
|
+
created: string;
|
|
29
|
+
updated: string;
|
|
30
|
+
deleted: string;
|
|
31
|
+
TIME: string;
|
|
32
|
+
};
|
|
33
|
+
export declare const OrderTriggerTypeList: ORDER_TRIGGER_TYPE[];
|
|
34
|
+
export declare const OrderTriggerDateOptionLabel: {
|
|
35
|
+
SAME_DAY: string;
|
|
36
|
+
BEFORE: string;
|
|
37
|
+
AFTER: string;
|
|
38
|
+
};
|
|
39
|
+
export declare const OrderTriggerDateOptionList: TRIGGER_DATE_OPTION[];
|
|
40
|
+
export declare const OrderTriggerTimeOptionLabel: {
|
|
41
|
+
AT_EVENT: string;
|
|
42
|
+
BEFORE_EVENT: string;
|
|
43
|
+
AFTER_EVENT: string;
|
|
44
|
+
FIXED_TIME: string;
|
|
45
|
+
};
|
|
46
|
+
export declare const OrderTriggerTimeOptionList: TRIGGER_TIME_OPTION[];
|
|
47
|
+
export interface OrderTriggerNodeData extends INodeBaseType, Record<string, unknown> {
|
|
48
|
+
title: string;
|
|
49
|
+
type: ORDER_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 BlockOrderTriggerProps = BlockTypeProps<OrderTriggerNodeData>;
|
|
63
|
+
export type OrderTriggerNodeProps = NodeProps<Node<OrderTriggerNodeData>>;
|
|
@@ -4,7 +4,7 @@ import { IPropertyV2 } from '../../../../services';
|
|
|
4
4
|
import { DATA_TYPE_PROPERTY_V2 } from '../../../constants/common';
|
|
5
5
|
type PropertySelectorProps = {
|
|
6
6
|
dataDefault?: IPropertyV2 | IPropertyV2[];
|
|
7
|
-
modal:
|
|
7
|
+
modal: "contact" | "enterprise" | "crmdeal" | "crmorder" | "crmproduct" | "ticket";
|
|
8
8
|
propertyType?: DATA_TYPE_PROPERTY_V2[];
|
|
9
9
|
} & SelectProps;
|
|
10
10
|
declare const PropertySelector: React.FC<PropertySelectorProps>;
|
|
@@ -12,12 +12,12 @@ export declare enum BlockType {
|
|
|
12
12
|
GROUP = "GROUP",
|
|
13
13
|
TRIGGER_CONTACT = "TRIGGER_CONTACT",
|
|
14
14
|
CALLBOT_TRIGGER = "CALLBOT_TRIGGER",
|
|
15
|
-
|
|
15
|
+
TRIGGER_ORDER = "TRIGGER_ORDER",
|
|
16
16
|
SCHEDULE_AT = "SCHEDULE_AT",
|
|
17
17
|
CATCH_HOOK = "CATCH_HOOK",
|
|
18
18
|
ACTION_CONTACT = "ACTION_CONTACT",
|
|
19
19
|
CALLBOT_ACTION = "CALLBOT_ACTION",
|
|
20
|
-
|
|
20
|
+
ACTION_ORDER = "ACTION_ORDER",
|
|
21
21
|
EMAIL = "EMAIL",
|
|
22
22
|
DELAY = "DELAY",
|
|
23
23
|
BRANCH = "BRANCH",
|
|
@@ -7,15 +7,17 @@ export declare const nodeTypes: {
|
|
|
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
9
|
TRIGGER_CONTACT: import('react').FC<import('../components/Blocks/Contact/trigger/types').BlockContactTriggerProps>;
|
|
10
|
+
TRIGGER_ORDER: import('react').FC<import('../components/Blocks/Order/trigger/types').BlockOrderTriggerProps>;
|
|
10
11
|
SCHEDULE_AT: import('react').FC<import('../components/Blocks/Schedule/types').BlockScheduleProps>;
|
|
11
12
|
CATCH_HOOK: import('react').FC<import('../components/Blocks/CatchHook/types').BlockCatchHookProps>;
|
|
12
13
|
ACTION_CONTACT: import('react').FC<import('../components/Blocks/Contact/action/types').BlockContactActionProps>;
|
|
14
|
+
CONTACT_ASSIGN: import('react').FC<import('../components/Blocks/Contact/assign/types').BlockContactAssignProps>;
|
|
15
|
+
ACTION_ORDER: import('react').FC<import('../components/Blocks/Order/action/types').BlockOrderActionProps>;
|
|
13
16
|
EMAIL: import('react').FC<import('../components/Blocks/Email/types').BlockEmailProps>;
|
|
14
17
|
DELAY: import('react').FC<import('../components/Blocks/Delay/types').BlockDelayActionProps>;
|
|
15
18
|
BRANCH: import('react').FC<import('../components/Blocks/Branch/types').BlockBranchProps>;
|
|
16
19
|
AI_AGENT: import('react').FC<import('../components/Blocks/AIAgent/types').BlockAIAgentProps>;
|
|
17
20
|
NOTIFICATION: import('react').FC<import('../components/Blocks/Notification/types').BlockNotificationProps>;
|
|
18
|
-
CONTACT_ASSIGN: import('react').FC<import('../components/Blocks/Contact/assign/types').BlockContactAssignProps>;
|
|
19
21
|
};
|
|
20
22
|
export declare const getNodeColor: (node: any) => string;
|
|
21
23
|
export default nodeTypes;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Connection, Edge, Node } from '@xyflow/react';
|
|
2
|
+
type ReconnectEdge = Connection & {
|
|
3
|
+
type: string;
|
|
4
|
+
};
|
|
5
|
+
type DeletedNode = Pick<Node, "id">;
|
|
6
|
+
declare const useCreateReconnectEdge: () => ({ deletedNodeId, deletedNodeIds, edges, defaultEdgeType, }: {
|
|
7
|
+
deletedNodeId: string;
|
|
8
|
+
deletedNodeIds: Set<string>;
|
|
9
|
+
edges: Edge[];
|
|
10
|
+
defaultEdgeType: string;
|
|
11
|
+
}) => ReconnectEdge | null;
|
|
12
|
+
export type { DeletedNode, ReconnectEdge };
|
|
13
|
+
export default useCreateReconnectEdge;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Edge } from '@xyflow/react';
|
|
2
|
+
import { DeletedNode, ReconnectEdge } from '../use-create-reconnect-edge';
|
|
3
|
+
declare const useReconnectEdges: () => ({ deletedNodes, edges, defaultEdgeType, }: {
|
|
4
|
+
deletedNodes: DeletedNode[];
|
|
5
|
+
edges: Edge[];
|
|
6
|
+
defaultEdgeType: string;
|
|
7
|
+
}) => ReconnectEdge[];
|
|
8
|
+
export default useReconnectEdges;
|