app-v3-scripts-editor 1.33.1 → 1.33.3

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 (31) hide show
  1. package/dist/app-v3-scripts-editor.css +1 -1
  2. package/dist/app-v3-scripts-editor.es.js +31302 -30588
  3. package/dist/app-v3-scripts-editor.umd.js +200 -200
  4. package/dist/src/lib/components/Selector/CRMDeal/variable.d.ts +7 -0
  5. package/dist/src/lib/components/Selector/CRMOrder/variable.d.ts +7 -0
  6. package/dist/src/lib/components/Selector/CRMProduct/variable.d.ts +7 -0
  7. package/dist/src/lib/components/Selector/Contact/variable.d.ts +7 -0
  8. package/dist/src/lib/components/Selector/Enterprise/variable.d.ts +7 -0
  9. package/dist/src/lib/components/Selector/Meeting/index.d.ts +7 -0
  10. package/dist/src/lib/components/Selector/Property/index.d.ts +1 -1
  11. package/dist/src/lib/components/Selector/Ticket/variable.d.ts +7 -0
  12. package/dist/src/lib/components/Selector/shared/AssociateValueSelector.d.ts +7 -0
  13. package/dist/src/lib/components/Selector/shared/RecordVariableSelector.d.ts +16 -0
  14. package/dist/src/lib/components/Selector/shared/variable-selector-utils.d.ts +15 -0
  15. package/dist/src/lib/components/Shared/FieldSetting/index.d.ts +1 -1
  16. package/dist/src/lib/components/Shared/GroupCondition/index.d.ts +1 -1
  17. package/dist/src/lib/components/Shared/VariableSuggestSelect/index.css.d.ts +3 -0
  18. package/dist/src/lib/constants/common.d.ts +5 -1
  19. package/dist/src/lib/constants/initial-script.d.ts +0 -4
  20. package/dist/src/lib/constants/intents.d.ts +0 -4
  21. package/dist/src/lib/constants/property.d.ts +13 -0
  22. package/dist/src/lib/hooks/use-variable-suggest/index.d.ts +1 -1
  23. package/dist/src/lib/utils/common.d.ts +6 -6
  24. package/dist/src/lib/utils/node-intent-condition.d.ts +11 -0
  25. package/dist/src/services/crmdeal/useInfiniteCrmDeal.d.ts +9 -0
  26. package/dist/src/services/crmorder/useInfiniteCrmOrder.d.ts +9 -0
  27. package/dist/src/services/crmproduct/useInfiniteCrmProduct.d.ts +9 -0
  28. package/dist/src/services/meeting/useInfiniteMeeting.d.ts +9 -0
  29. package/dist/src/services/ticket/useInfiniteTicket.d.ts +9 -0
  30. package/dist/src/services/types.d.ts +23 -2
  31. package/package.json +1 -1
@@ -0,0 +1,7 @@
1
+ import { ICrmAssociatedRecord } from '../../../../services';
2
+ import { VariableSuggestSelectProps } from '../../Shared/VariableSuggestSelect';
3
+ type CrmDealVariableSelectorProps = {
4
+ dataDefault?: ICrmAssociatedRecord | ICrmAssociatedRecord[];
5
+ } & Omit<VariableSuggestSelectProps, "options" | "defaultOptions" | "onSearch">;
6
+ declare const CrmDealVariableSelector: React.FC<CrmDealVariableSelectorProps>;
7
+ export default CrmDealVariableSelector;
@@ -0,0 +1,7 @@
1
+ import { ICrmAssociatedRecord } from '../../../../services';
2
+ import { VariableSuggestSelectProps } from '../../Shared/VariableSuggestSelect';
3
+ type CrmOrderVariableSelectorProps = {
4
+ dataDefault?: ICrmAssociatedRecord | ICrmAssociatedRecord[];
5
+ } & Omit<VariableSuggestSelectProps, "options" | "defaultOptions" | "onSearch">;
6
+ declare const CrmOrderVariableSelector: React.FC<CrmOrderVariableSelectorProps>;
7
+ export default CrmOrderVariableSelector;
@@ -0,0 +1,7 @@
1
+ import { ICrmAssociatedRecord } from '../../../../services';
2
+ import { VariableSuggestSelectProps } from '../../Shared/VariableSuggestSelect';
3
+ type CrmProductVariableSelectorProps = {
4
+ dataDefault?: ICrmAssociatedRecord | ICrmAssociatedRecord[];
5
+ } & Omit<VariableSuggestSelectProps, "options" | "defaultOptions" | "onSearch">;
6
+ declare const CrmProductVariableSelector: React.FC<CrmProductVariableSelectorProps>;
7
+ export default CrmProductVariableSelector;
@@ -0,0 +1,7 @@
1
+ import { IContact } from '../../../../services';
2
+ import { VariableSuggestSelectProps } from '../../Shared/VariableSuggestSelect';
3
+ type ContactVariableSelectorProps = {
4
+ dataDefault?: IContact | IContact[];
5
+ } & Omit<VariableSuggestSelectProps, "options" | "defaultOptions" | "onSearch">;
6
+ declare const ContactVariableSelector: React.FC<ContactVariableSelectorProps>;
7
+ export default ContactVariableSelector;
@@ -0,0 +1,7 @@
1
+ import { IEnterprise } from '../../../../services';
2
+ import { VariableSuggestSelectProps } from '../../Shared/VariableSuggestSelect';
3
+ type EnterpriseVariableSelectorProps = {
4
+ dataDefault?: IEnterprise | IEnterprise[];
5
+ } & Omit<VariableSuggestSelectProps, "options" | "defaultOptions" | "onSearch">;
6
+ declare const EnterpriseVariableSelector: React.FC<EnterpriseVariableSelectorProps>;
7
+ export default EnterpriseVariableSelector;
@@ -0,0 +1,7 @@
1
+ import { ICrmMeeting } from '../../../../services';
2
+ import { VariableSuggestSelectProps } from '../../Shared/VariableSuggestSelect';
3
+ type MeetingSelectorProps = {
4
+ dataDefault?: ICrmMeeting | ICrmMeeting[];
5
+ } & Omit<VariableSuggestSelectProps, "options" | "defaultOptions" | "onSearch">;
6
+ declare const MeetingSelector: React.FC<MeetingSelectorProps>;
7
+ export default MeetingSelector;
@@ -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: "contact" | "enterprise" | "crmdeal" | "crmorder" | "crmproduct" | "ticket";
7
+ modal: "contact" | "enterprise" | "crmdeal" | "crmorder" | "crmmeeting" | "crmproduct" | "ticket";
8
8
  propertyType?: DATA_TYPE_PROPERTY_V2[];
9
9
  } & SelectProps;
10
10
  declare const PropertySelector: React.FC<PropertySelectorProps>;
@@ -0,0 +1,7 @@
1
+ import { ICrmAssociatedRecord } from '../../../../services';
2
+ import { VariableSuggestSelectProps } from '../../Shared/VariableSuggestSelect';
3
+ type TicketVariableSelectorProps = {
4
+ dataDefault?: ICrmAssociatedRecord | ICrmAssociatedRecord[];
5
+ } & Omit<VariableSuggestSelectProps, "options" | "defaultOptions" | "onSearch">;
6
+ declare const TicketVariableSelector: React.FC<TicketVariableSelectorProps>;
7
+ export default TicketVariableSelector;
@@ -0,0 +1,7 @@
1
+ import { AssociateObjectType } from '../../../constants/property';
2
+ import { VariableSuggestSelectProps } from '../../Shared/VariableSuggestSelect';
3
+ type AssociateValueSelectorProps = {
4
+ objectType: AssociateObjectType;
5
+ } & Omit<VariableSuggestSelectProps, "options" | "defaultOptions" | "onSearch">;
6
+ declare const AssociateValueSelector: React.FC<AssociateValueSelectorProps>;
7
+ export default AssociateValueSelector;
@@ -0,0 +1,16 @@
1
+ import { VariableSuggestSelectProps } from '../../Shared/VariableSuggestSelect';
2
+ import { VariableSelectOption } from '../../Shared/VariableSuggestSelect/types';
3
+ type SelectableRecord = {
4
+ id: string;
5
+ };
6
+ type RecordVariableSelectorProps<TRecord extends SelectableRecord> = {
7
+ dataDefault?: TRecord | TRecord[];
8
+ records?: TRecord[];
9
+ isLoading?: boolean;
10
+ hasNextPage?: boolean;
11
+ fetchNextPage?: () => Promise<unknown>;
12
+ onSearch: (value: string | undefined) => void;
13
+ buildOption: (record: TRecord) => VariableSelectOption;
14
+ } & Omit<VariableSuggestSelectProps, "options" | "defaultOptions" | "onSearch">;
15
+ declare const RecordVariableSelector: <TRecord extends SelectableRecord>(props: RecordVariableSelectorProps<TRecord>) => import("react/jsx-runtime").JSX.Element;
16
+ export default RecordVariableSelector;
@@ -0,0 +1,15 @@
1
+ import { DefaultOptionType } from 'antd/es/select';
2
+ import { ICrmAssociatedRecord } from '../../../../services';
3
+ import { VariableSelectValue } from '../../Shared/VariableSuggestSelect/types';
4
+ type LabelLookupMeta = {
5
+ label: string;
6
+ };
7
+ type RecordLabelConfig = {
8
+ directKeys?: Array<"name" | "title" | "subject">;
9
+ propertySlugs?: string[];
10
+ };
11
+ export declare const buildOptionLabelLookup: (options: DefaultOptionType[]) => Map<string, LabelLookupMeta>;
12
+ export declare const enrichSelectValueLabel: (value: VariableSelectValue | undefined, optionLookup: Map<string, LabelLookupMeta>) => unknown;
13
+ export declare const hasSameLabeledShape: (left: unknown, right: unknown) => any;
14
+ export declare const resolveRecordLabel: (record: Pick<ICrmAssociatedRecord, "id" | "name" | "title" | "subject" | "properties">, config: RecordLabelConfig) => string;
15
+ export {};
@@ -2,7 +2,7 @@ import { default as React } from 'react';
2
2
  type FieldSettingContainerProps = {
3
3
  title: string;
4
4
  formListName: string;
5
- model: "contact" | "enterprise" | "crmdeal" | "crmorder" | "crmtask" | "crmproduct" | "ticket";
5
+ model: "contact" | "enterprise" | "crmdeal" | "crmorder" | "crmtask" | "crmmeeting" | "crmproduct" | "ticket";
6
6
  };
7
7
  declare const FieldSettingContainer: React.FC<FieldSettingContainerProps>;
8
8
  export default FieldSettingContainer;
@@ -1,6 +1,6 @@
1
1
  import { default as React, ReactNode } from 'react';
2
2
  export type ChartFilterComponentProps = {
3
- model: "contact" | "enterprise" | "crmdeal" | "crmorder" | "crmtask" | "crmproduct" | "ticket";
3
+ model: "contact" | "enterprise" | "crmdeal" | "crmorder" | "crmtask" | "crmmeeting" | "crmproduct" | "ticket";
4
4
  title?: ReactNode;
5
5
  extra?: ReactNode;
6
6
  className?: string;
@@ -1,4 +1,7 @@
1
1
  export declare const Wrapper: string;
2
+ export declare const DefaultTag: string;
3
+ export declare const DefaultTagLabel: string;
4
+ export declare const DefaultTagCloseIcon: string;
2
5
  export declare const DropdownContainer: string;
3
6
  export declare const TabsWrapper: string;
4
7
  export declare const SingleValueSelected: string;
@@ -1,3 +1,4 @@
1
+ import { ElementType } from 'react';
1
2
  export declare enum NODE_STATUS {
2
3
  COMPLETED = "completed",
3
4
  RUNNING = "running",
@@ -8,6 +9,7 @@ export declare enum CRM_OBJECT_TYPE {
8
9
  ENTERPRISE = "enterprise",
9
10
  CRMORDER = "crmorder",
10
11
  CRMTASK = "crmtask",
12
+ CRMMEETING = "crmmeeting",
11
13
  CRMDEAL = "crmdeal",
12
14
  CRMPRODUCT = "crmproduct",
13
15
  TICKET = "ticket",
@@ -18,6 +20,7 @@ export declare const CrmObjectTypeLabel: {
18
20
  enterprise: string;
19
21
  crmorder: string;
20
22
  crmtask: string;
23
+ crmmeeting: string;
21
24
  crmdeal: string;
22
25
  crmproduct: string;
23
26
  ticket: string;
@@ -116,6 +119,7 @@ export declare enum DATA_TYPE_PROPERTY {
116
119
  phoneproperty = "phoneproperty",
117
120
  fileproperty = "fileproperty",
118
121
  singleassociateproperty = "singleassociateproperty",
122
+ multiassociateproperty = "multiassociateproperty",
119
123
  multiemailproperty = "multiemailproperty",
120
124
  multiphoneproperty = "multiphoneproperty"
121
125
  }
@@ -148,7 +152,7 @@ export declare enum DATA_TYPE_PROPERTY_V2 {
148
152
  }
149
153
  export declare const CAMPAIGN_TYPE_NAME: Record<string, string>;
150
154
  export declare const DATE_FORMAT_BY_OPERATOR: Record<string, string>;
151
- export declare const iconPropertyMap: Record<DATA_TYPE_PROPERTY | string, any>;
155
+ export declare const iconPropertyMap: Record<DATA_TYPE_PROPERTY | string, ElementType>;
152
156
  export declare const operatorMap: Record<string, string>;
153
157
  export declare const OUTPUT_MODE: readonly ["ALL_MATCHES", "FIRST_MATCH", "SPECIFIC_FIELD", "COUNT"];
154
158
  export type OutputMode = (typeof OUTPUT_MODE)[number];
@@ -31,8 +31,6 @@ export declare const initialData: {
31
31
  AGENT: {
32
32
  conditions: {
33
33
  label: string;
34
- description: string;
35
- keywords: string;
36
34
  id: string;
37
35
  slug: string;
38
36
  is_conversion: boolean;
@@ -61,8 +59,6 @@ export declare const initialData: {
61
59
  LISTEN: {
62
60
  conditions: {
63
61
  label: string;
64
- description: string;
65
- keywords: string;
66
62
  id: string;
67
63
  slug: string;
68
64
  is_conversion: boolean;
@@ -21,8 +21,6 @@ export declare const INTENTS: {
21
21
  };
22
22
  SILENT: {
23
23
  label: string;
24
- description: string;
25
- keywords: string;
26
24
  };
27
25
  UNRECOGNIZED: {
28
26
  label: string;
@@ -31,7 +29,5 @@ export declare const INTENTS: {
31
29
  };
32
30
  DEFAULT: {
33
31
  label: string;
34
- description: string;
35
- keywords: string;
36
32
  };
37
33
  };
@@ -0,0 +1,13 @@
1
+ import { CRM_OBJECT_TYPE, DATA_TYPE_PROPERTY } from './common';
2
+ export declare const IS_ORDER_SLUG: string[];
3
+ export declare const IS_CONTACT_SLUG: string[];
4
+ export declare const IS_ENTERPRISE_SLUG: string[];
5
+ export declare const IS_DEAL_SLUG: string[];
6
+ export declare const IS_TASK: string[];
7
+ export declare const IS_METTING: string[];
8
+ export declare const IS_TICKET: string[];
9
+ export declare const IS_PRODUCT: string[];
10
+ export declare const ASSOCIATE_PROPERTY_TYPES: readonly [DATA_TYPE_PROPERTY.associateproperty, DATA_TYPE_PROPERTY.singleassociateproperty, DATA_TYPE_PROPERTY.multiassociateproperty];
11
+ export type AssociateObjectType = CRM_OBJECT_TYPE.CONTACT | CRM_OBJECT_TYPE.ENTERPRISE | CRM_OBJECT_TYPE.CRMORDER | CRM_OBJECT_TYPE.CRMTASK | CRM_OBJECT_TYPE.CRMMEETING | CRM_OBJECT_TYPE.CRMDEAL | CRM_OBJECT_TYPE.CRMPRODUCT | CRM_OBJECT_TYPE.TICKET;
12
+ export declare const isAssociatePropertyType: (type?: string | null) => boolean;
13
+ export declare const getAssociateObjectTypeBySlug: (slug?: string | null) => AssociateObjectType | null;
@@ -9,7 +9,7 @@ export declare function useVariableSuggest(optionsData: VariableAutoCompleteOpti
9
9
  value: any;
10
10
  onChange: (e: any) => void;
11
11
  onClick: (e: any) => void;
12
- status: "" | "warning" | "error";
12
+ status: "" | "error" | "warning";
13
13
  onFocus: () => void;
14
14
  };
15
15
  onSelect: (text: string, option: any) => void;
@@ -13,29 +13,29 @@ export declare const formatTitleCondition: (condition: IFilter) => {
13
13
  type FormatMode = "suggestion" | "default";
14
14
  export declare const formatFilterCore: (groups: IFilterGroup[], mode: FormatMode) => ({
15
15
  filter_type: "AND" | "OR";
16
- conditions: Pick<IFilter, "value" | "name" | "type" | "id" | "title" | "slug" | "operator" | "dateType" | "type_date" | "propertyData">[];
16
+ conditions: Pick<IFilter, "value" | "title" | "name" | "type" | "id" | "slug" | "operator" | "dateType" | "type_date" | "propertyData">[];
17
17
  id: string;
18
18
  } | {
19
19
  filter_type: "AND" | "OR";
20
- conditions: Pick<IFilter, "value" | "name" | "type" | "id" | "title" | "slug" | "operator" | "dateType" | "type_date" | "propertyData">[];
20
+ conditions: Pick<IFilter, "value" | "title" | "name" | "type" | "id" | "slug" | "operator" | "dateType" | "type_date" | "propertyData">[];
21
21
  object: string;
22
22
  })[];
23
23
  export declare const formatSuggestionProperty: (filters: IFilterGroup[]) => ({
24
24
  filter_type: "AND" | "OR";
25
- conditions: Pick<IFilter, "value" | "name" | "type" | "id" | "title" | "slug" | "operator" | "dateType" | "type_date" | "propertyData">[];
25
+ conditions: Pick<IFilter, "value" | "title" | "name" | "type" | "id" | "slug" | "operator" | "dateType" | "type_date" | "propertyData">[];
26
26
  id: string;
27
27
  } | {
28
28
  filter_type: "AND" | "OR";
29
- conditions: Pick<IFilter, "value" | "name" | "type" | "id" | "title" | "slug" | "operator" | "dateType" | "type_date" | "propertyData">[];
29
+ conditions: Pick<IFilter, "value" | "title" | "name" | "type" | "id" | "slug" | "operator" | "dateType" | "type_date" | "propertyData">[];
30
30
  object: string;
31
31
  })[];
32
32
  export declare const formatFilterGroups: (chartFilterGroups: IFilterGroup[]) => ({
33
33
  filter_type: "AND" | "OR";
34
- conditions: Pick<IFilter, "value" | "name" | "type" | "id" | "title" | "slug" | "operator" | "dateType" | "type_date" | "propertyData">[];
34
+ conditions: Pick<IFilter, "value" | "title" | "name" | "type" | "id" | "slug" | "operator" | "dateType" | "type_date" | "propertyData">[];
35
35
  id: string;
36
36
  } | {
37
37
  filter_type: "AND" | "OR";
38
- conditions: Pick<IFilter, "value" | "name" | "type" | "id" | "title" | "slug" | "operator" | "dateType" | "type_date" | "propertyData">[];
38
+ conditions: Pick<IFilter, "value" | "title" | "name" | "type" | "id" | "slug" | "operator" | "dateType" | "type_date" | "propertyData">[];
39
39
  object: string;
40
40
  })[];
41
41
  export declare const formatFilterGroupsToForm: (object?: string, chartFilterGroups?: IFilterGroup[], filter_type?: "AND" | "OR", mode?: FormatMode) => {
@@ -2,3 +2,14 @@ import { IIntent } from '../../services';
2
2
  export type NodeIntentCondition = Pick<IIntent, "id" | "slug" | "label" | "description" | "keywords" | "is_conversion">;
3
3
  export declare const pickNodeIntentCondition: (intent: IIntent) => NodeIntentCondition;
4
4
  export declare const getNodeIntentConditionHandleId: (intent: Pick<IIntent, "id" | "slug">) => string;
5
+ export declare const isSilenceNodeIntentCondition: (condition?: Pick<IIntent, "id" | "label">) => boolean;
6
+ export declare const isDefaultNodeIntentCondition: (condition?: Pick<IIntent, "id" | "label">) => boolean;
7
+ export declare const createSilentNodeIntentCondition: () => NodeIntentCondition;
8
+ export declare const insertNodeIntentConditionBeforeDefault: <T extends Pick<IIntent, "id">>(conditions: T[], nextCondition: T) => T[];
9
+ export declare const splitDefaultNodeIntentConditions: <T extends Pick<IIntent, "id" | "label">>(conditions?: T[]) => {
10
+ removedDefaultConditions: T[];
11
+ nextConditions: T[];
12
+ };
13
+ export declare const getNodeIntentConditionHandleIds: <T extends Pick<IIntent, "id" | "slug">>(conditions?: T[]) => string[];
14
+ export declare const hasDefaultNodeIntentCondition: (conditions?: Array<Pick<IIntent, "id">>) => boolean;
15
+ export declare const appendMissingDefaultNodeIntentConditions: <T extends Pick<IIntent, "id" | "label">>(conditions: T[], createDefaultCondition: () => T, createSilenceCondition: () => T) => T[];
@@ -0,0 +1,9 @@
1
+ import { AxiosError, AxiosResponse } from 'axios';
2
+ import { ICrmAssociatedRecord, IPagination } from '../../lib';
3
+ export declare const filterInfiniteCrmDealKey = "filter-infinite-crmdeal";
4
+ declare const useInfiniteCrmDeal: ({ 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<ICrmAssociatedRecord>, any>, unknown>, AxiosError<unknown, any>>;
9
+ export default useInfiniteCrmDeal;
@@ -0,0 +1,9 @@
1
+ import { AxiosError, AxiosResponse } from 'axios';
2
+ import { ICrmAssociatedRecord, IPagination } from '../../lib';
3
+ export declare const filterInfiniteCrmOrderKey = "filter-infinite-crmorder";
4
+ declare const useInfiniteCrmOrder: ({ 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<ICrmAssociatedRecord>, any>, unknown>, AxiosError<unknown, any>>;
9
+ export default useInfiniteCrmOrder;
@@ -0,0 +1,9 @@
1
+ import { AxiosError, AxiosResponse } from 'axios';
2
+ import { ICrmAssociatedRecord, IPagination } from '../../lib';
3
+ export declare const filterInfiniteCrmProductKey = "filter-infinite-crmproduct";
4
+ declare const useInfiniteCrmProduct: ({ 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<ICrmAssociatedRecord>, any>, unknown>, AxiosError<unknown, any>>;
9
+ export default useInfiniteCrmProduct;
@@ -0,0 +1,9 @@
1
+ import { AxiosError, AxiosResponse } from 'axios';
2
+ import { ICrmMeeting, IPagination } from '../../lib';
3
+ export declare const filterInfiniteMeetingKey = "filter-infinite-meeting";
4
+ declare const useInfiniteMeeting: ({ 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<ICrmMeeting>, any>, unknown>, AxiosError<unknown, any>>;
9
+ export default useInfiniteMeeting;
@@ -0,0 +1,9 @@
1
+ import { AxiosError, AxiosResponse } from 'axios';
2
+ import { ICrmAssociatedRecord, IPagination } from '../../lib';
3
+ export declare const filterInfiniteTicketKey = "filter-infinite-ticket";
4
+ declare const useInfiniteTicket: ({ 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<ICrmAssociatedRecord>, any>, unknown>, AxiosError<unknown, any>>;
9
+ export default useInfiniteTicket;
@@ -102,7 +102,7 @@ export interface IProperty {
102
102
  slug?: string;
103
103
  type?: DATA_TYPE_PROPERTY;
104
104
  updated_at?: string;
105
- app_model?: "contact" | "enterprise" | "crmproduct" | "crmdeal" | "crmorder" | "crmtask" | "ticket" | "call";
105
+ app_model?: "contact" | "enterprise" | "crmproduct" | "crmdeal" | "crmorder" | "crmtask" | "crmmeeting" | "ticket" | "call";
106
106
  }
107
107
  export interface IProfileCompany {
108
108
  profilecompany?: string;
@@ -197,6 +197,27 @@ export interface ICrmTask {
197
197
  changed_by?: string | null;
198
198
  can_update?: boolean;
199
199
  }
200
+ export interface ICrmMeeting {
201
+ id: string;
202
+ company?: string;
203
+ subject?: string;
204
+ title?: string;
205
+ name?: string;
206
+ properties?: IProperty[];
207
+ updated_at?: string;
208
+ created_at?: string;
209
+ created_by?: string | null;
210
+ changed_by?: string | null;
211
+ can_update?: boolean;
212
+ }
213
+ export interface ICrmAssociatedRecord {
214
+ id: string;
215
+ name?: string;
216
+ title?: string;
217
+ subject?: string;
218
+ properties?: IProperty[];
219
+ can_update?: boolean;
220
+ }
200
221
  export type PriceItem = {
201
222
  price: number;
202
223
  discount_price: number;
@@ -352,7 +373,7 @@ export type IPropertyV2 = {
352
373
  created_at?: string;
353
374
  created_by?: string | null;
354
375
  updated_at?: string;
355
- app_model?: "contact" | "enterprise" | "crmproduct" | "crmdeal" | "crmorder" | "crmtask" | "ticket";
376
+ app_model?: "contact" | "enterprise" | "crmproduct" | "crmdeal" | "crmorder" | "crmtask" | "crmmeeting" | "ticket";
356
377
  label?: string;
357
378
  variant?: string;
358
379
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "app-v3-scripts-editor",
3
3
  "private": false,
4
- "version": "1.33.1",
4
+ "version": "1.33.3",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/ucall-asia/app-v3-scripts-editor.git"