app-v3-scripts-editor 1.33.0 → 1.33.2

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 (34) hide show
  1. package/dist/app-v3-scripts-editor.css +1 -1
  2. package/dist/app-v3-scripts-editor.es.js +32967 -32331
  3. package/dist/app-v3-scripts-editor.umd.js +210 -210
  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/Option/variable.d.ts +1 -0
  11. package/dist/src/lib/components/Selector/Property/index.d.ts +1 -1
  12. package/dist/src/lib/components/Selector/Ticket/variable.d.ts +7 -0
  13. package/dist/src/lib/components/Selector/User/variable.d.ts +1 -0
  14. package/dist/src/lib/components/Selector/shared/AssociateValueSelector.d.ts +7 -0
  15. package/dist/src/lib/components/Selector/shared/RecordVariableSelector.d.ts +16 -0
  16. package/dist/src/lib/components/Selector/shared/variable-selector-utils.d.ts +15 -0
  17. package/dist/src/lib/components/Shared/FieldSetting/index.d.ts +1 -1
  18. package/dist/src/lib/components/Shared/GroupCondition/index.d.ts +1 -1
  19. package/dist/src/lib/components/Shared/SuggestVariableNode/type.d.ts +2 -1
  20. package/dist/src/lib/components/Shared/VariableSuggestSelect/helpers.d.ts +6 -1
  21. package/dist/src/lib/components/Shared/VariableSuggestSelect/index.css.d.ts +3 -0
  22. package/dist/src/lib/components/Shared/VariableSuggestSelect/index.d.ts +1 -1
  23. package/dist/src/lib/components/Shared/VariableSuggestSelect/types.d.ts +2 -1
  24. package/dist/src/lib/constants/common.d.ts +5 -1
  25. package/dist/src/lib/constants/property.d.ts +13 -0
  26. package/dist/src/lib/hooks/use-variable-suggest/index.d.ts +1 -1
  27. package/dist/src/lib/utils/common.d.ts +6 -6
  28. package/dist/src/services/crmdeal/useInfiniteCrmDeal.d.ts +9 -0
  29. package/dist/src/services/crmorder/useInfiniteCrmOrder.d.ts +9 -0
  30. package/dist/src/services/crmproduct/useInfiniteCrmProduct.d.ts +9 -0
  31. package/dist/src/services/meeting/useInfiniteMeeting.d.ts +9 -0
  32. package/dist/src/services/ticket/useInfiniteTicket.d.ts +9 -0
  33. package/dist/src/services/types.d.ts +23 -2
  34. 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;
@@ -3,6 +3,7 @@ import { IOptionValue } from '../../../../services';
3
3
  type OptionVariableSelectorProps = {
4
4
  dataDefault?: IOptionValue | IOptionValue[];
5
5
  propertyId?: string;
6
+ exclusiveTabSelection?: boolean;
6
7
  } & SelectProps;
7
8
  declare const OptionVariableSelector: React.FC<OptionVariableSelectorProps>;
8
9
  export default OptionVariableSelector;
@@ -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;
@@ -2,6 +2,7 @@ import { IProfile } from '../../../../services';
2
2
  import { VariableSuggestSelectProps } from '../../Shared/VariableSuggestSelect';
3
3
  type UserVariableSelectorProps = {
4
4
  dataDefault?: IProfile | IProfile[];
5
+ exclusiveTabSelection?: boolean;
5
6
  } & Omit<VariableSuggestSelectProps, "options" | "defaultOptions" | "onSearch" | "tagRender">;
6
7
  declare const UserVariableSelector: React.FC<UserVariableSelectorProps>;
7
8
  export default UserVariableSelector;
@@ -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;
@@ -7,7 +7,7 @@ export interface VariableLeaf {
7
7
  objectLabel?: string;
8
8
  type: DATA_TYPE_PROPERTY;
9
9
  slug: string;
10
- name?: string;
10
+ fullname?: string[];
11
11
  fullPath: string;
12
12
  value: string;
13
13
  order?: number;
@@ -33,6 +33,7 @@ export interface UseVariableSuggestOptions {
33
33
  export interface VariableGroupOption {
34
34
  id?: string;
35
35
  label: string;
36
+ fullname?: string[];
36
37
  type: string;
37
38
  node_type?: BlockType;
38
39
  order?: number;
@@ -6,6 +6,10 @@ import { VariableSelectLabeledValue, VariableSelectValue } from './types';
6
6
  export declare const isLabeledValue: (value: unknown) => value is VariableSelectLabeledValue;
7
7
  export declare const extractValueString: (value: unknown) => string;
8
8
  export declare const readDisplayTitle: (option?: DefaultOptionType | VariableSelectLabeledValue) => string;
9
+ type VariableLabelSource = Pick<VariableLeaf, "fullname" | "fullPath" | "slug">;
10
+ export declare const readVariableLeafLabel: (data?: VariableLabelSource) => string;
11
+ export declare const readVariableDisplayLabel: (data?: VariableLabelSource, separator?: string) => string;
12
+ export declare const readVariableSearchTarget: (data: VariableLabelSource) => string;
9
13
  export declare function filterOptionsByKeyword(opt: VariableAutoCompleteOption, keyword: string): VariableAutoCompleteOption | null;
10
14
  export declare const normalizeValues: (value?: VariableSelectValue) => string[];
11
15
  export declare const buildVariableValueString: (data: VariableLeaf, mode?: OutputMode) => string;
@@ -22,10 +26,11 @@ export declare const buildDeletedVariableMeta: (value: string) => {
22
26
  object: string;
23
27
  type: DATA_TYPE_PROPERTY.singlelineproperty;
24
28
  slug: string;
25
- name: string;
29
+ fullname: string[];
26
30
  fullPath: string;
27
31
  value: string;
28
32
  mode: "ALL_MATCHES" | "FIRST_MATCH" | "SPECIFIC_FIELD" | "COUNT";
29
33
  isDeleted: true;
30
34
  };
31
35
  export declare const buildOptionMap: (options?: SelectProps["options"]) => Map<string, DefaultOptionType>;
36
+ export {};
@@ -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,4 +1,4 @@
1
1
  import { VariableSuggestSelectProps } from './types';
2
- export declare const VariableSuggestSelect: ({ defaultOptions, variableFilterTypes, tabLabels, onVariableInsert, dropdownClassName, options, open: controlledOpen, onDropdownVisibleChange, onSearch: externalOnSearch, onChange: externalOnChange, onSelect: externalOnSelect, getPopupContainer, showSearch, children, value: controlledValue, defaultValue, mode: selectMode, tagRender, className, labelInValue, onClear, ...restProps }: VariableSuggestSelectProps) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const VariableSuggestSelect: ({ defaultOptions, variableFilterTypes, tabLabels, onVariableInsert, exclusiveTabSelection, dropdownClassName, options, open: controlledOpen, onDropdownVisibleChange, onSearch: externalOnSearch, onChange: externalOnChange, onSelect: externalOnSelect, getPopupContainer, showSearch, children, value: controlledValue, defaultValue, mode: selectMode, tagRender, className, labelInValue, onClear, ...restProps }: VariableSuggestSelectProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default function VariableSuggestSelectWithProvider(props: VariableSuggestSelectProps): import("react/jsx-runtime").JSX.Element;
4
4
  export type { TabKey, TabLabels, VariableSuggestSelectProps } from './types';
@@ -1,7 +1,7 @@
1
1
  import { SelectProps } from 'antd';
2
2
  import { DefaultOptionType } from 'antd/es/select';
3
- import { DATA_TYPE_PROPERTY } from '../../../constants/common';
4
3
  import { ReactNode } from 'react';
4
+ import { DATA_TYPE_PROPERTY } from '../../../constants/common';
5
5
  import { VariableLeaf } from '../SuggestVariableNode/type';
6
6
  export type TabKey = "default" | "variables";
7
7
  export type TabLabels = {
@@ -24,4 +24,5 @@ export interface VariableSuggestSelectProps extends SelectProps<VariableSelectVa
24
24
  variableFilterTypes?: DATA_TYPE_PROPERTY[];
25
25
  tabLabels?: TabLabels;
26
26
  onVariableInsert?: (value: string) => void;
27
+ exclusiveTabSelection?: boolean;
27
28
  }
@@ -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];
@@ -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) => {
@@ -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.0",
4
+ "version": "1.33.2",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/ucall-asia/app-v3-scripts-editor.git"