app-v3-scripts-editor 1.9.0 → 1.11.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 +52525 -43188
- package/dist/app-v3-scripts-editor.umd.js +246 -149
- package/dist/src/lib/components/Blocks/Contact/action/block.d.ts +3 -0
- package/dist/src/lib/components/Blocks/Contact/action/index.d.ts +4 -0
- package/dist/src/lib/components/Blocks/Contact/action/index.settings.d.ts +3 -0
- package/dist/src/lib/components/Blocks/Contact/action/node.d.ts +3 -0
- package/dist/src/lib/components/Blocks/Contact/action/setting/Action.d.ts +4 -0
- package/dist/src/lib/components/Blocks/Contact/action/setting/CreateAction.d.ts +4 -0
- package/dist/src/lib/components/Blocks/Contact/action/setting/GetDataAction.d.ts +4 -0
- package/dist/src/lib/components/Blocks/Contact/action/setting/UpdateAction.d.ts +4 -0
- package/dist/src/lib/components/Blocks/Contact/action/types.d.ts +35 -0
- package/dist/src/lib/components/Blocks/Contact/index.css.d.ts +14 -0
- package/dist/src/lib/components/Blocks/Contact/trigger/block.d.ts +3 -0
- package/dist/src/lib/components/Blocks/Contact/trigger/index.d.ts +4 -0
- package/dist/src/lib/components/Blocks/Contact/trigger/index.settings.d.ts +3 -0
- package/dist/src/lib/components/Blocks/Contact/trigger/node.d.ts +3 -0
- package/dist/src/lib/components/Blocks/Contact/trigger/setting/Trigger.d.ts +4 -0
- package/dist/src/lib/components/Blocks/Contact/trigger/types.d.ts +38 -0
- package/dist/src/lib/components/Blocks/Delay/block.d.ts +3 -0
- package/dist/src/lib/components/Blocks/Delay/index.css.d.ts +16 -0
- package/dist/src/lib/components/Blocks/Delay/index.d.ts +4 -0
- package/dist/src/lib/components/Blocks/Delay/index.settings.d.ts +3 -0
- package/dist/src/lib/components/Blocks/Delay/node.d.ts +3 -0
- package/dist/src/lib/components/Blocks/Delay/setting/Action.d.ts +4 -0
- package/dist/src/lib/components/Blocks/Delay/setting/Setting.d.ts +4 -0
- package/dist/src/lib/components/Blocks/Delay/types.d.ts +37 -0
- package/dist/src/lib/components/Blocks/Email/block.d.ts +3 -0
- package/dist/src/lib/components/Blocks/Email/index.css.d.ts +16 -0
- package/dist/src/lib/components/Blocks/Email/index.d.ts +4 -0
- package/dist/src/lib/components/Blocks/Email/index.settings.d.ts +3 -0
- package/dist/src/lib/components/Blocks/Email/node.d.ts +3 -0
- package/dist/src/lib/components/Blocks/Email/setting/Action.d.ts +4 -0
- package/dist/src/lib/components/Blocks/Email/setting/Setting.d.ts +4 -0
- package/dist/src/lib/components/Blocks/Email/setting/Test.d.ts +4 -0
- package/dist/src/lib/components/Blocks/Email/types.d.ts +27 -0
- package/dist/src/lib/components/Scripts/types.d.ts +1 -0
- package/dist/src/lib/components/Selector/Campaign/index.d.ts +8 -0
- package/dist/src/lib/components/Selector/Contact/OptionContentUser.d.ts +6 -0
- package/dist/src/lib/components/Selector/Contact/index.css.d.ts +3 -0
- package/dist/src/lib/components/Selector/Contact/index.d.ts +7 -0
- package/dist/src/lib/components/Selector/Email/index.d.ts +8 -0
- package/dist/src/lib/components/Selector/Enterprise/index.d.ts +7 -0
- package/dist/src/lib/components/Selector/ListObject/index.d.ts +14 -0
- package/dist/src/lib/components/Selector/Option/index.d.ts +8 -0
- package/dist/src/lib/components/Selector/User/index.css.d.ts +1 -0
- package/dist/src/lib/components/Selector/User/index.d.ts +7 -0
- package/dist/src/lib/components/Shared/ButtonEdge/AutoCallButtonEdge.d.ts +3 -0
- package/dist/src/lib/components/Shared/ButtonEdge/AutoFlowButtonEdge.d.ts +3 -0
- package/dist/src/lib/components/Shared/Controls/CustomFlowControls.d.ts +1 -8
- package/dist/src/lib/components/Shared/FieldSetting/index.css.d.ts +2 -0
- package/dist/src/lib/components/Shared/FieldSetting/index.d.ts +7 -0
- package/dist/src/lib/components/Shared/GroupCondition/ConditionPropertySelect.d.ts +9 -0
- package/dist/src/lib/components/Shared/GroupCondition/index.css.d.ts +11 -0
- package/dist/src/lib/components/Shared/GroupCondition/index.d.ts +13 -0
- package/dist/src/lib/components/Shared/HoverSelect/index.d.ts +6 -0
- package/dist/src/lib/components/Shared/InitialAvatar/index.d.ts +12 -0
- package/dist/src/lib/components/Shared/TagUserOption/index.css.d.ts +4 -0
- package/dist/src/lib/components/Shared/TagUserOption/index.d.ts +9 -0
- package/dist/src/lib/components/Sidebar/AutoCallSidebar.d.ts +3 -0
- package/dist/src/lib/components/Sidebar/AutoFlowSidebar.d.ts +2 -0
- package/dist/src/lib/components/Sidebar/sidebar.css.d.ts +2 -0
- package/dist/src/lib/constants/block-types.d.ts +9 -1
- package/dist/src/lib/constants/common.d.ts +57 -0
- package/dist/src/lib/constants/node-types.d.ts +4 -0
- package/dist/src/lib/constants/regex.d.ts +2 -0
- package/dist/src/lib/constants/sidebar-buttons.d.ts +12 -2
- package/dist/src/lib/events/emit-to-parent/emitToParent.d.ts +2 -0
- package/dist/src/lib/events/emit-to-parent/event.d.ts +3 -0
- package/dist/src/lib/events/index.d.ts +1 -0
- package/dist/src/lib/hooks/use-filter-option-color/useFilterColorOption.d.ts +6 -0
- package/dist/src/lib/hooks/use-interaction-mode/index.d.ts +3 -4
- package/dist/src/lib/hooks/use-interaction-mode/interactionMode.store.d.ts +7 -0
- package/dist/src/lib/index.d.ts +1 -0
- package/dist/src/lib/provider/instance-context/index.d.ts +3 -0
- package/dist/src/lib/store/undo-redo/undoRedoStore.d.ts +21 -0
- package/dist/src/lib/store/undo-redo/useUndoRedoControls.d.ts +6 -0
- package/dist/src/lib/store/undo-redo/useUndoRedoManager.d.ts +12 -0
- package/dist/src/lib/styles/colors.d.ts +22 -12
- package/dist/src/lib/utils/common.d.ts +2 -0
- package/dist/src/services/campaign/useGetListCampaign.d.ts +8 -0
- package/dist/src/services/contact/useInfiniteContact.d.ts +8 -0
- package/dist/src/services/enterprise/useInfiniteEnterprise.d.ts +8 -0
- package/dist/src/services/list/useFilterList.d.ts +4 -0
- package/dist/src/services/mail/useInfiniteMail.d.ts +9 -0
- package/dist/src/services/option/useInfiniteOption.d.ts +9 -0
- package/dist/src/services/profile/useGetCompanyProfile.d.ts +5 -0
- package/dist/src/services/property/useGetAllProperty.d.ts +5 -0
- package/dist/src/services/property/useGetCallProperty.d.ts +8 -0
- package/dist/src/services/types.d.ts +168 -2
- package/dist/src/services/voices/useListVoices.d.ts +1 -1
- package/package.json +1 -1
- package/dist/src/lib/components/Shared/ButtonEdge/index.d.ts +0 -3
- package/dist/src/lib/components/Sidebar/index.d.ts +0 -2
- /package/dist/src/lib/components/{selector → Selector}/AIModel/index.d.ts +0 -0
- /package/dist/src/lib/components/{selector → Selector}/Voice/index.d.ts +0 -0
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
export declare enum CRM_OBJECT_TYPE {
|
|
2
|
+
CONTACT = "contact",
|
|
3
|
+
ENTERPRISE = "enterprise",
|
|
4
|
+
CRMORDER = "crmorder",
|
|
5
|
+
CRMDEAL = "crmdeal",
|
|
6
|
+
CRMPRODUCT = "crmproduct",
|
|
7
|
+
TICKET = "ticket",
|
|
8
|
+
CALL = "call"
|
|
9
|
+
}
|
|
10
|
+
export declare const CrmObjectTypeLabel: {
|
|
11
|
+
contact: string;
|
|
12
|
+
enterprise: string;
|
|
13
|
+
crmorder: string;
|
|
14
|
+
crmdeal: string;
|
|
15
|
+
crmproduct: string;
|
|
16
|
+
ticket: string;
|
|
17
|
+
call: string;
|
|
18
|
+
};
|
|
19
|
+
export declare const CrmObjectTypeList: CRM_OBJECT_TYPE[];
|
|
20
|
+
export declare const NUMBER_OPERATORS: {
|
|
21
|
+
value: string;
|
|
22
|
+
label: string;
|
|
23
|
+
}[];
|
|
24
|
+
export declare const SELECT_FILTER_TYPES: string[];
|
|
25
|
+
export declare const TEXT_OPERATORS: {
|
|
26
|
+
value: string;
|
|
27
|
+
label: string;
|
|
28
|
+
}[];
|
|
29
|
+
export declare const TIME_OPERATORS: {
|
|
30
|
+
value: string;
|
|
31
|
+
label: string;
|
|
32
|
+
}[];
|
|
33
|
+
export declare const DATE_TYPE_OPTIONS: {
|
|
34
|
+
value: string;
|
|
35
|
+
label: string;
|
|
36
|
+
}[];
|
|
37
|
+
export declare const FILE_OPERATORS: {
|
|
38
|
+
value: string;
|
|
39
|
+
label: string;
|
|
40
|
+
}[];
|
|
41
|
+
export declare enum DATA_TYPE_PROPERTY {
|
|
42
|
+
formulaproperty = "formulaproperty",
|
|
43
|
+
singlelineproperty = "singlelineproperty",
|
|
44
|
+
multilineproperty = "multilineproperty",
|
|
45
|
+
richtextproperty = "richtextproperty",
|
|
46
|
+
integerproperty = "integerproperty",
|
|
47
|
+
floatproperty = "floatproperty",
|
|
48
|
+
dateproperty = "dateproperty",
|
|
49
|
+
singleoptionproperty = "singleoptionproperty",
|
|
50
|
+
multioptionproperty = "multioptionproperty",
|
|
51
|
+
singleuserproperty = "singleuserproperty",
|
|
52
|
+
multiuserproperty = "multiuserproperty",
|
|
53
|
+
associateproperty = "associateproperty",
|
|
54
|
+
phoneproperty = "phoneproperty",
|
|
55
|
+
fileproperty = "fileproperty",
|
|
56
|
+
singleassociateproperty = "singleassociateproperty"
|
|
57
|
+
}
|
|
@@ -4,6 +4,10 @@ export declare const nodeTypes: {
|
|
|
4
4
|
LISTEN: import('react').FC<import('../components/Blocks/Listen/types').ListenNodeProps>;
|
|
5
5
|
TRANSFER: import('react').FC<import('../components/Blocks/Transfer/types').TransferNodeProps>;
|
|
6
6
|
GROUP: import('react').FC<import('../components/Blocks/Group/types').GroupNodeProps>;
|
|
7
|
+
CONTACT_TRIGGER: import('react').FC<import('../components/Blocks/Contact/trigger/types').BlockContactTriggerProps>;
|
|
8
|
+
CONTACT_ACTION: import('react').FC<import('../components/Blocks/Contact/action/types').BlockContactActionProps>;
|
|
9
|
+
EMAIL: import('react').FC<import('../components/Blocks/Email/types').BlockEmailActionProps>;
|
|
10
|
+
DELAY: import('react').FC<import('../components/Blocks/Delay/types').BlockDelayActionProps>;
|
|
7
11
|
};
|
|
8
12
|
export declare const getNodeColor: (node: any) => string;
|
|
9
13
|
export default nodeTypes;
|
|
@@ -1,12 +1,22 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { BlockType } from './block-types';
|
|
3
|
-
export interface
|
|
3
|
+
export interface AutoCallSidebarButton {
|
|
4
4
|
key: BlockType;
|
|
5
5
|
label: string;
|
|
6
6
|
icon: React.ComponentType;
|
|
7
7
|
active?: boolean;
|
|
8
8
|
group?: number;
|
|
9
9
|
}
|
|
10
|
+
export interface AutoFlowSidebarButton {
|
|
11
|
+
key: string;
|
|
12
|
+
label: string;
|
|
13
|
+
description?: string;
|
|
14
|
+
icon: React.ComponentType;
|
|
15
|
+
color?: string;
|
|
16
|
+
group?: string | number;
|
|
17
|
+
items?: AutoFlowSidebarButton[];
|
|
18
|
+
}
|
|
10
19
|
export declare const DEFAULT_SIDEBAR_BUTTONS: BlockType[];
|
|
11
|
-
export declare const
|
|
20
|
+
export declare const autoCallSidebarButtons: AutoCallSidebarButton[];
|
|
21
|
+
export declare const autoFlowSidebarButtons: AutoFlowSidebarButton[];
|
|
12
22
|
export declare const iconColors: Record<BlockType, string>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './emit-to-parent/event';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
export declare function useInteractionMode(): {
|
|
2
|
+
mode: import('./interactionMode.store').InteractionMode;
|
|
3
|
+
toggleMode: () => void;
|
|
4
4
|
flowProps: {
|
|
5
5
|
panOnScroll: boolean;
|
|
6
6
|
panOnDrag: boolean;
|
|
@@ -8,5 +8,4 @@ export declare function useInteractionMode(defaultMode?: InteractionMode): {
|
|
|
8
8
|
zoomOnPinch: boolean;
|
|
9
9
|
zoomOnDoubleClick: boolean;
|
|
10
10
|
};
|
|
11
|
-
toggleMode: () => void;
|
|
12
11
|
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export type InteractionMode = "trackpad" | "mouse";
|
|
2
|
+
interface InteractionStore {
|
|
3
|
+
mode: InteractionMode;
|
|
4
|
+
toggleMode: () => void;
|
|
5
|
+
}
|
|
6
|
+
export declare const useInteractionModeStore: import('zustand').UseBoundStore<import('zustand').StoreApi<InteractionStore>>;
|
|
7
|
+
export {};
|
package/dist/src/lib/index.d.ts
CHANGED
|
@@ -5,18 +5,21 @@ import { UseErrorsAndInfosReturn } from '../../hooks/use-alerts';
|
|
|
5
5
|
export interface ContextProps {
|
|
6
6
|
CALLBOTSCENARIO_ID?: string;
|
|
7
7
|
COMPANY_ID: string;
|
|
8
|
+
AUTOFLOW_ID?: string;
|
|
8
9
|
}
|
|
9
10
|
export interface InstanceContextProps {
|
|
10
11
|
axiosInstance: AxiosInstance;
|
|
11
12
|
reactFlowRef: React.RefObject<HTMLDivElement>;
|
|
12
13
|
context: ContextProps;
|
|
13
14
|
BLOCKS_ENABLED?: BlockType[];
|
|
15
|
+
type: "autocall" | "autoflow";
|
|
14
16
|
}
|
|
15
17
|
export interface InstanceScriptEditorProps {
|
|
16
18
|
BASE_URL: string;
|
|
17
19
|
AUTHORIZATION_HEADER: string;
|
|
18
20
|
context: ContextProps;
|
|
19
21
|
BLOCKS_ENABLED?: BlockType[];
|
|
22
|
+
type: "autocall" | "autoflow";
|
|
20
23
|
onAlertsChange?: (values: UseErrorsAndInfosReturn) => void;
|
|
21
24
|
}
|
|
22
25
|
interface InstanceContextProviderProps extends InstanceScriptEditorProps {
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Edge, Node } from '@xyflow/react';
|
|
2
|
+
type FlowSnapshot = {
|
|
3
|
+
nodes: Node[];
|
|
4
|
+
edges: Edge[];
|
|
5
|
+
viewport: {
|
|
6
|
+
x: number;
|
|
7
|
+
y: number;
|
|
8
|
+
zoom: number;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
type UndoStoreState = {
|
|
12
|
+
history: FlowSnapshot[];
|
|
13
|
+
currentStep: number;
|
|
14
|
+
pushSnapshot: (snap: FlowSnapshot) => void;
|
|
15
|
+
applySnapshot: (step: number) => FlowSnapshot | null;
|
|
16
|
+
canUndo: () => boolean;
|
|
17
|
+
canRedo: () => boolean;
|
|
18
|
+
reset: (snap: FlowSnapshot) => void;
|
|
19
|
+
};
|
|
20
|
+
export declare const useUndoStore: import('zustand').UseBoundStore<import('zustand').StoreApi<UndoStoreState>>;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const useUndoRedoManager: () => {
|
|
2
|
+
commitImmediate: () => void;
|
|
3
|
+
applySnapshot: (step: number, api: {
|
|
4
|
+
setNodes: (n: any[]) => void;
|
|
5
|
+
setEdges: (e: any[]) => void;
|
|
6
|
+
setViewport: (v: {
|
|
7
|
+
x: number;
|
|
8
|
+
y: number;
|
|
9
|
+
zoom: number;
|
|
10
|
+
}) => void;
|
|
11
|
+
}) => void;
|
|
12
|
+
};
|
|
@@ -26,18 +26,6 @@ declare const colors: {
|
|
|
26
26
|
border: string;
|
|
27
27
|
boxShadow: string;
|
|
28
28
|
};
|
|
29
|
-
icon: {
|
|
30
|
-
speak: string;
|
|
31
|
-
listen: string;
|
|
32
|
-
transferCall: string;
|
|
33
|
-
getData: string;
|
|
34
|
-
updateData: string;
|
|
35
|
-
addData: string;
|
|
36
|
-
httpRequest: string;
|
|
37
|
-
condition: string;
|
|
38
|
-
assignVariable: string;
|
|
39
|
-
setting: string;
|
|
40
|
-
};
|
|
41
29
|
groupBlock: {
|
|
42
30
|
focus: string;
|
|
43
31
|
indicator: string;
|
|
@@ -55,6 +43,28 @@ declare const colors: {
|
|
|
55
43
|
border: string;
|
|
56
44
|
boxShadow: string;
|
|
57
45
|
};
|
|
46
|
+
contactBlock: {
|
|
47
|
+
background: string;
|
|
48
|
+
backgroundNoGradient: string;
|
|
49
|
+
boxShadow: string;
|
|
50
|
+
};
|
|
51
|
+
delayBlock: {
|
|
52
|
+
background: string;
|
|
53
|
+
backgroundNoGradient: string;
|
|
54
|
+
boxShadow: string;
|
|
55
|
+
};
|
|
56
|
+
icon: {
|
|
57
|
+
speak: string;
|
|
58
|
+
listen: string;
|
|
59
|
+
transferCall: string;
|
|
60
|
+
getData: string;
|
|
61
|
+
updateData: string;
|
|
62
|
+
addData: string;
|
|
63
|
+
httpRequest: string;
|
|
64
|
+
condition: string;
|
|
65
|
+
assignVariable: string;
|
|
66
|
+
setting: string;
|
|
67
|
+
};
|
|
58
68
|
reactFlow: {
|
|
59
69
|
boxShadow: string;
|
|
60
70
|
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IPaginationInputs } from '../types';
|
|
2
|
+
interface IParams extends IPaginationInputs {
|
|
3
|
+
enable?: boolean;
|
|
4
|
+
campaigns?: Record<string, boolean>;
|
|
5
|
+
currentFilters?: Record<string, any>;
|
|
6
|
+
}
|
|
7
|
+
declare const useGetListCampaign: ({ currentFilters, pagination, enable, campaigns, }: IParams) => import('@tanstack/react-query').UseQueryResult<any[], Error>;
|
|
8
|
+
export default useGetListCampaign;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AxiosError, AxiosResponse } from 'axios';
|
|
2
|
+
import { IContact, IPagination } from '../../lib';
|
|
3
|
+
export declare const filterInfiniteContactKey = "filter-infinite-contact";
|
|
4
|
+
declare const useInfiniteFilterContact: ({ currentFilters, pageSize, }: {
|
|
5
|
+
currentFilters: Record<string, unknown>;
|
|
6
|
+
pageSize?: number;
|
|
7
|
+
}) => import('@tanstack/react-query').UseInfiniteQueryResult<import('@tanstack/react-query').InfiniteData<AxiosResponse<IPagination<IContact>, any>, unknown>, AxiosError<unknown, any>>;
|
|
8
|
+
export default useInfiniteFilterContact;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AxiosError, AxiosResponse } from 'axios';
|
|
2
|
+
import { IEnterprise, IPagination } from '../../lib';
|
|
3
|
+
export declare const filterInfiniteEnterpriseKey = "filter-infinite-enterprise";
|
|
4
|
+
declare const useInfiniteFilterEnterprise: ({ currentFilters, pageSize, }: {
|
|
5
|
+
currentFilters: Record<string, unknown>;
|
|
6
|
+
pageSize?: number;
|
|
7
|
+
}) => import('@tanstack/react-query').UseInfiniteQueryResult<import('@tanstack/react-query').InfiniteData<AxiosResponse<IPagination<IEnterprise>, any>, unknown>, AxiosError<unknown, any>>;
|
|
8
|
+
export default useInfiniteFilterEnterprise;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { AxiosError, AxiosResponse } from 'axios';
|
|
2
|
+
import { IList, IPagination, IPaginationInputs } from '../types';
|
|
3
|
+
declare const useFilterList: ({ pagination, currentFilters }: IPaginationInputs) => import('@tanstack/react-query').UseQueryResult<AxiosResponse<IPagination<IList>, any>, AxiosError<unknown, any>>;
|
|
4
|
+
export default useFilterList;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AxiosError, AxiosResponse } from 'axios';
|
|
2
|
+
import { IMailConfig, IPagination } from '../../lib';
|
|
3
|
+
export declare const filterInfiniteOptionKey = "filter-infinite-option";
|
|
4
|
+
declare const useInfiniteFilterMailConfig: ({ 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<IMailConfig>, any>, unknown>, AxiosError<unknown, any>>;
|
|
9
|
+
export default useInfiniteFilterMailConfig;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AxiosError, AxiosResponse } from 'axios';
|
|
2
|
+
import { IOptionValue, IPagination } from '../../lib';
|
|
3
|
+
export declare const filterInfiniteOptionKey = "filter-infinite-option";
|
|
4
|
+
declare const useInfiniteFilterOption: ({ property_id, currentFilters, pageSize, }: {
|
|
5
|
+
property_id: string;
|
|
6
|
+
currentFilters: Record<string, unknown>;
|
|
7
|
+
pageSize?: number;
|
|
8
|
+
}) => import('@tanstack/react-query').UseInfiniteQueryResult<import('@tanstack/react-query').InfiniteData<AxiosResponse<IPagination<IOptionValue>, any>, unknown>, AxiosError<unknown, any>>;
|
|
9
|
+
export default useInfiniteFilterOption;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { AxiosError, AxiosResponse } from 'axios';
|
|
2
|
+
import { IProfile } from '../types';
|
|
3
|
+
export declare const GetCompanyProfileKey = "companyprofileraw";
|
|
4
|
+
declare function useGetCompanyProfile(search?: string): import('@tanstack/react-query').UseQueryResult<AxiosResponse<IProfile[], any>, AxiosError<unknown, any>>;
|
|
5
|
+
export default useGetCompanyProfile;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { AxiosError, AxiosResponse } from 'axios';
|
|
2
|
+
import { IProperty } from '../types';
|
|
3
|
+
export declare const getAllPropertyQueryKey = "all_property";
|
|
4
|
+
declare function useGetAllProperty(modeName: string, enabled?: boolean): import('@tanstack/react-query').UseQueryResult<AxiosResponse<IProperty[], any>, AxiosError<unknown, any>>;
|
|
5
|
+
export default useGetAllProperty;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AxiosError, AxiosResponse } from 'axios';
|
|
2
|
+
import { IProperty } from '../types';
|
|
3
|
+
export declare const getCallPropertyQueryKey = "call_property";
|
|
4
|
+
declare function useGetCallProperty({ currentFilters, enabled, }: {
|
|
5
|
+
currentFilters?: Record<string, unknown>;
|
|
6
|
+
enabled?: boolean;
|
|
7
|
+
}): import('@tanstack/react-query').UseQueryResult<AxiosResponse<IProperty[], any>, AxiosError<unknown, any>>;
|
|
8
|
+
export default useGetCallProperty;
|
|
@@ -1,4 +1,14 @@
|
|
|
1
|
+
import { Dayjs } from 'dayjs';
|
|
1
2
|
import { AI_MODEL } from '../lib/constants/ai-model';
|
|
3
|
+
import { DATA_TYPE_PROPERTY } from '../lib/constants/common';
|
|
4
|
+
export interface IPaginationInputs {
|
|
5
|
+
pagination?: {
|
|
6
|
+
page: number;
|
|
7
|
+
size: number;
|
|
8
|
+
};
|
|
9
|
+
currentFilters?: any;
|
|
10
|
+
is_color?: boolean;
|
|
11
|
+
}
|
|
2
12
|
export interface IPagination<T> {
|
|
3
13
|
count: number;
|
|
4
14
|
page_count: number;
|
|
@@ -30,7 +40,7 @@ export interface IVoice {
|
|
|
30
40
|
audio_url?: string;
|
|
31
41
|
type?: "HUMAN" | "ADVANCE";
|
|
32
42
|
}
|
|
33
|
-
export
|
|
43
|
+
export interface IModelAPIKey {
|
|
34
44
|
id: number;
|
|
35
45
|
name?: string;
|
|
36
46
|
provider?: AI_MODEL;
|
|
@@ -40,4 +50,160 @@ export type IModelAPIKey = {
|
|
|
40
50
|
is_ucall?: boolean;
|
|
41
51
|
created_at?: string;
|
|
42
52
|
updated_at?: string;
|
|
43
|
-
}
|
|
53
|
+
}
|
|
54
|
+
export interface IOptionValue {
|
|
55
|
+
id?: string;
|
|
56
|
+
code?: string;
|
|
57
|
+
value?: string;
|
|
58
|
+
color?: string;
|
|
59
|
+
order?: number;
|
|
60
|
+
is_used?: boolean;
|
|
61
|
+
updated_at?: string;
|
|
62
|
+
created_at?: string;
|
|
63
|
+
property?: string;
|
|
64
|
+
created_by?: string | null;
|
|
65
|
+
changed_by?: string | null;
|
|
66
|
+
}
|
|
67
|
+
export interface IProperty {
|
|
68
|
+
allow_blank?: boolean;
|
|
69
|
+
allow_in_form?: boolean;
|
|
70
|
+
can_delete?: boolean;
|
|
71
|
+
can_edit_in_list_view?: boolean;
|
|
72
|
+
changed_by?: string | null;
|
|
73
|
+
company?: string;
|
|
74
|
+
created_at?: string;
|
|
75
|
+
created_by?: string | null;
|
|
76
|
+
default_in_form?: boolean;
|
|
77
|
+
default_in_kanban?: boolean;
|
|
78
|
+
default_in_summary?: boolean;
|
|
79
|
+
default_in_table?: boolean;
|
|
80
|
+
group_name?: string;
|
|
81
|
+
id?: string;
|
|
82
|
+
is_auto?: boolean;
|
|
83
|
+
is_special?: boolean;
|
|
84
|
+
is_used?: boolean;
|
|
85
|
+
name?: string;
|
|
86
|
+
options?: IOptionValue[];
|
|
87
|
+
value: string | string[] | Record<string, string | string[]> | IOptionValue | null;
|
|
88
|
+
order_default?: number;
|
|
89
|
+
slug?: string;
|
|
90
|
+
type?: DATA_TYPE_PROPERTY;
|
|
91
|
+
updated_at?: string;
|
|
92
|
+
app_model?: "contact" | "enterprise" | "crmproduct" | "crmdeal" | "crmorder" | "ticket" | "call";
|
|
93
|
+
}
|
|
94
|
+
export interface IProfileCompany {
|
|
95
|
+
profilecompany?: string;
|
|
96
|
+
priority?: number;
|
|
97
|
+
}
|
|
98
|
+
export interface IList {
|
|
99
|
+
id: string;
|
|
100
|
+
company?: string;
|
|
101
|
+
properties?: IProperty[];
|
|
102
|
+
updated_at?: string;
|
|
103
|
+
created_at?: string;
|
|
104
|
+
created_by?: string | null;
|
|
105
|
+
changed_by?: string | null;
|
|
106
|
+
total_contacts?: number;
|
|
107
|
+
total_enterprises?: number;
|
|
108
|
+
contacts?: any[];
|
|
109
|
+
enterprises?: any[];
|
|
110
|
+
profilegroups?: string[];
|
|
111
|
+
profilecompanys?: IProfileCompany[];
|
|
112
|
+
assign_type?: string;
|
|
113
|
+
is_auto_assign?: boolean;
|
|
114
|
+
}
|
|
115
|
+
export interface IFilter {
|
|
116
|
+
id?: number;
|
|
117
|
+
property?: string | null;
|
|
118
|
+
type?: string;
|
|
119
|
+
slug?: string;
|
|
120
|
+
name?: string;
|
|
121
|
+
value?: string | string[] | Dayjs | {
|
|
122
|
+
id: string;
|
|
123
|
+
name?: string;
|
|
124
|
+
slug: string;
|
|
125
|
+
}[];
|
|
126
|
+
operator?: string;
|
|
127
|
+
dateType?: string;
|
|
128
|
+
type_date?: string;
|
|
129
|
+
}
|
|
130
|
+
export interface IEnterprise {
|
|
131
|
+
id: string;
|
|
132
|
+
company: string;
|
|
133
|
+
properties?: IProperty[];
|
|
134
|
+
updated_at?: string;
|
|
135
|
+
created_at?: string;
|
|
136
|
+
created_by?: string | null;
|
|
137
|
+
changed_by?: string | null;
|
|
138
|
+
can_update?: boolean;
|
|
139
|
+
}
|
|
140
|
+
export interface IContact {
|
|
141
|
+
id: string;
|
|
142
|
+
company: string;
|
|
143
|
+
properties?: IProperty[];
|
|
144
|
+
updated_at?: string;
|
|
145
|
+
created_at?: string;
|
|
146
|
+
created_by?: string | null;
|
|
147
|
+
changed_by?: string | null;
|
|
148
|
+
can_update?: boolean;
|
|
149
|
+
}
|
|
150
|
+
export interface IPartner {
|
|
151
|
+
id?: string;
|
|
152
|
+
name: string;
|
|
153
|
+
is_default: boolean;
|
|
154
|
+
logo?: string;
|
|
155
|
+
dark_logo?: string;
|
|
156
|
+
price_voice_record: number;
|
|
157
|
+
price_voice_basic: number;
|
|
158
|
+
price_voice_advance: number;
|
|
159
|
+
price_hotline_hub: number;
|
|
160
|
+
price_hotline_own: number;
|
|
161
|
+
bank_name: string;
|
|
162
|
+
bank_number: string;
|
|
163
|
+
bank_user: string;
|
|
164
|
+
bank_content: string;
|
|
165
|
+
bank_qr: string;
|
|
166
|
+
}
|
|
167
|
+
export interface ICompany {
|
|
168
|
+
id: string;
|
|
169
|
+
name: string;
|
|
170
|
+
slug: string;
|
|
171
|
+
partner: IPartner;
|
|
172
|
+
company_name?: string;
|
|
173
|
+
is_tax?: boolean;
|
|
174
|
+
location?: string;
|
|
175
|
+
tax?: string;
|
|
176
|
+
tax_email?: string;
|
|
177
|
+
is_init_information?: boolean;
|
|
178
|
+
init_information?: any;
|
|
179
|
+
}
|
|
180
|
+
export interface IProfile {
|
|
181
|
+
id: string;
|
|
182
|
+
email: string;
|
|
183
|
+
phone_number: string;
|
|
184
|
+
company: ICompany;
|
|
185
|
+
types: string[];
|
|
186
|
+
full_name: string;
|
|
187
|
+
companies: ICompany[];
|
|
188
|
+
avatar?: string;
|
|
189
|
+
}
|
|
190
|
+
export interface IMailConfig {
|
|
191
|
+
id: string;
|
|
192
|
+
updated_at: null | string;
|
|
193
|
+
created_at: null | string;
|
|
194
|
+
name: null | string;
|
|
195
|
+
smtp_host: null | string;
|
|
196
|
+
smtp_port: null | number;
|
|
197
|
+
imap_host: null | string;
|
|
198
|
+
imap_port: null | number;
|
|
199
|
+
use_tls: null | boolean;
|
|
200
|
+
use_ssl: null | boolean;
|
|
201
|
+
email_timeout: null | number;
|
|
202
|
+
auth_user: null | string;
|
|
203
|
+
auth_password: null | string;
|
|
204
|
+
from_email: null | string;
|
|
205
|
+
reply_to: null | string;
|
|
206
|
+
company: null | string;
|
|
207
|
+
created_by: null | string;
|
|
208
|
+
changed_by: null | string;
|
|
209
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AxiosError, AxiosResponse } from 'axios';
|
|
2
2
|
import { IVoice } from '../../lib';
|
|
3
3
|
export declare const listVoiceKey = "infinite_filter_voice";
|
|
4
|
-
export declare const useListVoice: ({ enabled
|
|
4
|
+
export declare const useListVoice: ({ enabled }: {
|
|
5
5
|
enabled?: boolean;
|
|
6
6
|
}) => import('@tanstack/react-query').UseQueryResult<AxiosResponse<IVoice[], any>, AxiosError<unknown, any>>;
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|