app-v3-scripts-editor 1.8.0 → 1.10.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 (90) hide show
  1. package/dist/app-v3-scripts-editor.css +1 -1
  2. package/dist/app-v3-scripts-editor.es.js +56035 -46423
  3. package/dist/app-v3-scripts-editor.umd.js +246 -149
  4. package/dist/src/lib/components/Blocks/Contact/action/block.d.ts +3 -0
  5. package/dist/src/lib/components/Blocks/Contact/action/index.d.ts +4 -0
  6. package/dist/src/lib/components/Blocks/Contact/action/index.settings.d.ts +3 -0
  7. package/dist/src/lib/components/Blocks/Contact/action/node.d.ts +3 -0
  8. package/dist/src/lib/components/Blocks/Contact/action/setting/Action.d.ts +4 -0
  9. package/dist/src/lib/components/Blocks/Contact/action/types.d.ts +35 -0
  10. package/dist/src/lib/components/Blocks/Contact/index.css.d.ts +14 -0
  11. package/dist/src/lib/components/Blocks/Contact/trigger/block.d.ts +3 -0
  12. package/dist/src/lib/components/Blocks/Contact/trigger/index.d.ts +4 -0
  13. package/dist/src/lib/components/Blocks/Contact/trigger/index.settings.d.ts +3 -0
  14. package/dist/src/lib/components/Blocks/Contact/trigger/node.d.ts +3 -0
  15. package/dist/src/lib/components/Blocks/Contact/trigger/setting/Trigger.d.ts +4 -0
  16. package/dist/src/lib/components/Blocks/Contact/trigger/types.d.ts +38 -0
  17. package/dist/src/lib/components/Blocks/Delay/block.d.ts +3 -0
  18. package/dist/src/lib/components/Blocks/Delay/index.css.d.ts +16 -0
  19. package/dist/src/lib/components/Blocks/Delay/index.d.ts +4 -0
  20. package/dist/src/lib/components/Blocks/Delay/index.settings.d.ts +3 -0
  21. package/dist/src/lib/components/Blocks/Delay/node.d.ts +3 -0
  22. package/dist/src/lib/components/Blocks/Delay/setting/Action.d.ts +4 -0
  23. package/dist/src/lib/components/Blocks/Delay/setting/Setting.d.ts +4 -0
  24. package/dist/src/lib/components/Blocks/Delay/types.d.ts +37 -0
  25. package/dist/src/lib/components/Blocks/Email/block.d.ts +3 -0
  26. package/dist/src/lib/components/Blocks/Email/index.css.d.ts +16 -0
  27. package/dist/src/lib/components/Blocks/Email/index.d.ts +4 -0
  28. package/dist/src/lib/components/Blocks/Email/index.settings.d.ts +3 -0
  29. package/dist/src/lib/components/Blocks/Email/node.d.ts +3 -0
  30. package/dist/src/lib/components/Blocks/Email/setting/Action.d.ts +4 -0
  31. package/dist/src/lib/components/Blocks/Email/setting/Setting.d.ts +4 -0
  32. package/dist/src/lib/components/Blocks/Email/setting/Test.d.ts +4 -0
  33. package/dist/src/lib/components/Blocks/Email/types.d.ts +27 -0
  34. package/dist/src/lib/components/Scripts/types.d.ts +5 -4
  35. package/dist/src/lib/components/Selector/AIModel/index.d.ts +8 -0
  36. package/dist/src/lib/components/Selector/Campaign/index.d.ts +8 -0
  37. package/dist/src/lib/components/Selector/Contact/OptionContentUser.d.ts +6 -0
  38. package/dist/src/lib/components/Selector/Contact/index.css.d.ts +3 -0
  39. package/dist/src/lib/components/Selector/Contact/index.d.ts +7 -0
  40. package/dist/src/lib/components/Selector/Enterprise/index.d.ts +7 -0
  41. package/dist/src/lib/components/Selector/ListObject/index.d.ts +14 -0
  42. package/dist/src/lib/components/Selector/Option/index.d.ts +8 -0
  43. package/dist/src/lib/components/Selector/User/index.css.d.ts +1 -0
  44. package/dist/src/lib/components/Selector/User/index.d.ts +7 -0
  45. package/dist/src/lib/components/Selector/Voice/index.d.ts +8 -0
  46. package/dist/src/lib/components/Shared/ButtonEdge/AutoCallButtonEdge.d.ts +3 -0
  47. package/dist/src/lib/components/Shared/ButtonEdge/AutoFlowButtonEdge.d.ts +3 -0
  48. package/dist/src/lib/components/Shared/Controls/CustomFlowControls.d.ts +1 -8
  49. package/dist/src/lib/components/Shared/FieldSetting/index.css.d.ts +2 -0
  50. package/dist/src/lib/components/Shared/FieldSetting/index.d.ts +6 -0
  51. package/dist/src/lib/components/Shared/GroupCondition/ConditionPropertySelect.d.ts +9 -0
  52. package/dist/src/lib/components/Shared/GroupCondition/index.css.d.ts +11 -0
  53. package/dist/src/lib/components/Shared/GroupCondition/index.d.ts +13 -0
  54. package/dist/src/lib/components/Shared/HoverSelect/index.d.ts +6 -0
  55. package/dist/src/lib/components/Shared/InitialAvatar/index.d.ts +12 -0
  56. package/dist/src/lib/components/Shared/TagUserOption/index.css.d.ts +4 -0
  57. package/dist/src/lib/components/Shared/TagUserOption/index.d.ts +9 -0
  58. package/dist/src/lib/components/Sidebar/AutoCallSidebar.d.ts +3 -0
  59. package/dist/src/lib/components/Sidebar/AutoFlowSidebar.d.ts +2 -0
  60. package/dist/src/lib/components/Sidebar/sidebar.css.d.ts +3 -0
  61. package/dist/src/lib/constants/ai-model.d.ts +4 -0
  62. package/dist/src/lib/constants/block-types.d.ts +9 -1
  63. package/dist/src/lib/constants/common.d.ts +57 -0
  64. package/dist/src/lib/constants/node-types.d.ts +4 -0
  65. package/dist/src/lib/constants/regex.d.ts +2 -0
  66. package/dist/src/lib/constants/sidebar-buttons.d.ts +12 -2
  67. package/dist/src/lib/hooks/use-debounce-search/index.d.ts +4 -0
  68. package/dist/src/lib/hooks/use-filter-option-color/useFilterColorOption.d.ts +6 -0
  69. package/dist/src/lib/hooks/use-interaction-mode/index.d.ts +3 -4
  70. package/dist/src/lib/hooks/use-interaction-mode/interactionMode.store.d.ts +7 -0
  71. package/dist/src/lib/provider/instance-context/index.d.ts +2 -0
  72. package/dist/src/lib/store/undo-redo/undoRedoStore.d.ts +21 -0
  73. package/dist/src/lib/store/undo-redo/useUndoRedoControls.d.ts +6 -0
  74. package/dist/src/lib/store/undo-redo/useUndoRedoManager.d.ts +12 -0
  75. package/dist/src/lib/styles/colors.d.ts +22 -12
  76. package/dist/src/lib/utils/common.d.ts +2 -0
  77. package/dist/src/services/campaign/useGetListCampaign.d.ts +8 -0
  78. package/dist/src/services/contact/useInfiniteContact.d.ts +8 -0
  79. package/dist/src/services/enterprise/useInfiniteEnterprise.d.ts +8 -0
  80. package/dist/src/services/list/useFilterList.d.ts +4 -0
  81. package/dist/src/services/model-api-key/index.d.ts +8 -0
  82. package/dist/src/services/option/useInfiniteOption.d.ts +9 -0
  83. package/dist/src/services/profile/useGetCompanyProfile.d.ts +5 -0
  84. package/dist/src/services/property/useGetAllProperty.d.ts +5 -0
  85. package/dist/src/services/property/useGetCallProperty.d.ts +8 -0
  86. package/dist/src/services/types.d.ts +171 -0
  87. package/dist/src/services/voices/useListVoices.d.ts +6 -0
  88. package/package.json +1 -1
  89. package/dist/src/lib/components/Shared/ButtonEdge/index.d.ts +0 -3
  90. package/dist/src/lib/components/Sidebar/index.d.ts +0 -2
@@ -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;
@@ -0,0 +1,2 @@
1
+ export declare const emailRegex: RegExp;
2
+ export declare const variableRegex: RegExp;
@@ -1,12 +1,22 @@
1
1
  import { default as React } from 'react';
2
2
  import { BlockType } from './block-types';
3
- export interface SidebarButton {
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 sidebarButtons: SidebarButton[];
20
+ export declare const autoCallSidebarButtons: AutoCallSidebarButton[];
21
+ export declare const autoFlowSidebarButtons: AutoFlowSidebarButton[];
12
22
  export declare const iconColors: Record<BlockType, string>;
@@ -0,0 +1,4 @@
1
+ export declare const useDebouncedSearch: (initSearch?: string, time?: number) => {
2
+ search: string;
3
+ onSearch: import('lodash').DebouncedFunc<(search: string | undefined) => void>;
4
+ };
@@ -0,0 +1,6 @@
1
+ import { IOptionValue } from '../../../services';
2
+ declare const useFilterOptions: (optionValue?: IOptionValue[]) => {
3
+ value: string;
4
+ label: import("react/jsx-runtime").JSX.Element;
5
+ }[];
6
+ export default useFilterOptions;
@@ -1,6 +1,6 @@
1
- export type InteractionMode = "trackpad" | "mouse";
2
- export declare function useInteractionMode(defaultMode?: InteractionMode): {
3
- mode: InteractionMode;
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 {};
@@ -5,6 +5,7 @@ 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;
@@ -17,6 +18,7 @@ export interface InstanceScriptEditorProps {
17
18
  AUTHORIZATION_HEADER: string;
18
19
  context: ContextProps;
19
20
  BLOCKS_ENABLED?: BlockType[];
21
+ type: "autocall" | "autoflow";
20
22
  onAlertsChange?: (values: UseErrorsAndInfosReturn) => void;
21
23
  }
22
24
  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,6 @@
1
+ export declare const useUndoControls: () => {
2
+ canUndo: boolean;
3
+ canRedo: boolean;
4
+ undo: () => void;
5
+ redo: () => void;
6
+ };
@@ -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,2 @@
1
+ export declare function getInitialsAvatarName(name: string): string;
2
+ export declare function getSuffixCount(name: string): number;
@@ -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,8 @@
1
+ import { AxiosError, AxiosResponse } from 'axios';
2
+ import { IModelAPIKey } from '../../lib';
3
+ export declare const getListModelApiKeyQueryKey = "get_list_model_api_key";
4
+ type Props = {
5
+ enabled?: boolean;
6
+ };
7
+ declare function useGetListModelApiKey({ enabled }: Props): import('@tanstack/react-query').UseQueryResult<AxiosResponse<IModelAPIKey[], any>, AxiosError<unknown, any>>;
8
+ export default useGetListModelApiKey;
@@ -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,3 +1,20 @@
1
+ import { Dayjs } from 'dayjs';
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
+ }
12
+ export interface IPagination<T> {
13
+ count: number;
14
+ page_count: number;
15
+ results: T[];
16
+ total?: any;
17
+ }
1
18
  export interface IUploadAudioResponse {
2
19
  id: number;
3
20
  scenario: string;
@@ -16,3 +33,157 @@ export interface IUploadAudioResponse {
16
33
  email: string;
17
34
  };
18
35
  }
36
+ export interface IVoice {
37
+ id: number;
38
+ index?: number;
39
+ title?: string;
40
+ audio_url?: string;
41
+ type?: "HUMAN" | "ADVANCE";
42
+ }
43
+ export interface IModelAPIKey {
44
+ id: number;
45
+ name?: string;
46
+ provider?: AI_MODEL;
47
+ apikey?: string;
48
+ masked_api_key?: string;
49
+ model?: string;
50
+ is_ucall?: boolean;
51
+ created_at?: string;
52
+ updated_at?: string;
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
+ }
@@ -0,0 +1,6 @@
1
+ import { AxiosError, AxiosResponse } from 'axios';
2
+ import { IVoice } from '../../lib';
3
+ export declare const listVoiceKey = "infinite_filter_voice";
4
+ export declare const useListVoice: ({ enabled }: {
5
+ enabled?: boolean;
6
+ }) => import('@tanstack/react-query').UseQueryResult<AxiosResponse<IVoice[], any>, AxiosError<unknown, any>>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "app-v3-scripts-editor",
3
3
  "private": false,
4
- "version": "1.8.0",
4
+ "version": "1.10.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/ucall-asia/app-v3-scripts-editor.git"
@@ -1,3 +0,0 @@
1
- import { EdgeProps } from '@xyflow/react';
2
- declare const ButtonEdge: ({ id, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, style, target, markerEnd, }: EdgeProps) => import("react/jsx-runtime").JSX.Element;
3
- export default ButtonEdge;
@@ -1,2 +0,0 @@
1
- declare const Sidebar: () => import("react/jsx-runtime").JSX.Element;
2
- export default Sidebar;