app-v3-scripts-editor 1.23.0 → 1.23.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 (25) hide show
  1. package/dist/app-v3-scripts-editor.css +1 -1
  2. package/dist/app-v3-scripts-editor.es.js +30780 -30296
  3. package/dist/app-v3-scripts-editor.umd.js +180 -180
  4. package/dist/src/lib/components/Blocks/Branch/setting/Condition/index.css.d.ts +3 -0
  5. package/dist/src/lib/components/Blocks/CatchHook/setting/Output.d.ts +2 -0
  6. package/dist/src/lib/components/Blocks/Contact/action/types.d.ts +1 -0
  7. package/dist/src/lib/components/Blocks/Contact/assign/setting/Setting.d.ts +3 -1
  8. package/dist/src/lib/components/Blocks/Contact/assign/types.d.ts +20 -4
  9. package/dist/src/lib/components/Blocks/Contact/index.css.d.ts +3 -0
  10. package/dist/src/lib/components/Shared/NodeModeSelect/helpers.d.ts +38 -0
  11. package/dist/src/lib/components/Shared/NodeModeSelect/index.css.d.ts +4 -0
  12. package/dist/src/lib/components/Shared/NodeModeSelect/index.d.ts +4 -0
  13. package/dist/src/lib/components/Shared/NodeModeSelect/types.d.ts +40 -0
  14. package/dist/src/lib/components/Shared/SuggestVariableNode/dropdownTypeList.d.ts +21 -13
  15. package/dist/src/lib/components/Shared/SuggestVariableNode/type.d.ts +3 -1
  16. package/dist/src/lib/components/Shared/SuggestVariableNode/utils.d.ts +5 -3
  17. package/dist/src/lib/components/Shared/VariableSuggestSelect/helpers.d.ts +9 -6
  18. package/dist/src/lib/components/Shared/VariableSuggestSelect/index.d.ts +1 -1
  19. package/dist/src/lib/components/Shared/VariableSuggestSelect/types.d.ts +6 -1
  20. package/dist/src/lib/components/Shared/VariableTag/index.d.ts +3 -1
  21. package/dist/src/lib/constants/common.d.ts +4 -2
  22. package/dist/src/lib/constants/initial-script.d.ts +9 -0
  23. package/dist/src/lib/hooks/use-up-stream-node/index.d.ts +3 -3
  24. package/dist/src/lib/utils/common.d.ts +9 -7
  25. package/package.json +1 -1
@@ -8,3 +8,6 @@ export declare const GroupHeader: string;
8
8
  export declare const AddConditionButton: string;
9
9
  export declare const AddConditionText: string;
10
10
  export declare const TextCenter: string;
11
+ export declare const ColDeleteButton: string;
12
+ export declare const deleteButton: string;
13
+ export declare const filterRow: string;
@@ -1,5 +1,7 @@
1
1
  type CatchHookOutputContainerProps = {
2
2
  id: string;
3
+ action?: string;
4
+ order?: number;
3
5
  };
4
6
  declare const CatchHookOutputContainer: React.FC<CatchHookOutputContainerProps>;
5
7
  export default CatchHookOutputContainer;
@@ -29,6 +29,7 @@ export interface ContactActionNodeData extends INodeBaseType, Record<string, unk
29
29
  filter_type?: "AND" | "OR";
30
30
  groups?: ContactActionGroup[];
31
31
  object?: string;
32
+ contact?: string[];
32
33
  update_fields?: {
33
34
  id?: string;
34
35
  slug?: string;
@@ -1,4 +1,6 @@
1
1
  import { default as React } from 'react';
2
- type ContactAssignSettingContainerProps = {};
2
+ type ContactAssignSettingContainerProps = {
3
+ hasInitialFilter?: boolean;
4
+ };
3
5
  declare const ContactAssignSettingContainer: React.FC<ContactAssignSettingContainerProps>;
4
6
  export default ContactAssignSettingContainer;
@@ -1,18 +1,18 @@
1
1
  import { Node, NodeProps } from '@xyflow/react';
2
- import { INodeBaseType } from '../../../../../services';
2
+ import { IFilterGroup, INodeBaseType } from '../../../../../services';
3
3
  import { BlockTypeProps } from '../../../../constants';
4
4
  export declare enum CONTACT_ASSIGN_TYPE {
5
- ASSIGN = "ASSIGN"
5
+ ASSIGN_ONE = "ASSIGN_ONE"
6
6
  }
7
7
  export declare enum CONTACT_ASSIGN_RULE {
8
8
  SEQUENCE = "SEQUENCE",
9
9
  WEIGHTED = "WEIGHTED"
10
10
  }
11
11
  export declare const ContactAssignTypeLabel: {
12
- ASSIGN: string;
12
+ ASSIGN_ONE: string;
13
13
  };
14
14
  export declare const ContactAssignTypeDescription: {
15
- ASSIGN: string;
15
+ ASSIGN_ONE: string;
16
16
  };
17
17
  export declare const ContactAssignTypeList: CONTACT_ASSIGN_TYPE[];
18
18
  export declare const ContactAssignRuleLabel: {
@@ -20,9 +20,24 @@ export declare const ContactAssignRuleLabel: {
20
20
  WEIGHTED: string;
21
21
  };
22
22
  export declare const ContactAssignRuleList: CONTACT_ASSIGN_RULE[];
23
+ export declare const ContactAssignOutputDefinitions: readonly [{
24
+ readonly suffix: "success";
25
+ readonly label: "Phân công thành công";
26
+ }, {
27
+ readonly suffix: "empty_employee";
28
+ readonly label: "Không có nhân viên thoả mãn";
29
+ }, {
30
+ readonly suffix: "empty_data";
31
+ readonly label: "Không có liên hệ";
32
+ }];
33
+ export type ContactAssignOutputSuffix = (typeof ContactAssignOutputDefinitions)[number]["suffix"];
23
34
  export interface ContactAssignNodeData extends INodeBaseType, Record<string, unknown> {
24
35
  title: string;
25
36
  type: CONTACT_ASSIGN_TYPE;
37
+ id?: string;
38
+ filter_type?: "AND" | "OR";
39
+ groups?: IFilterGroup[];
40
+ object?: string;
26
41
  settings: {
27
42
  strategy: CONTACT_ASSIGN_RULE;
28
43
  user?: string[];
@@ -34,6 +49,7 @@ export interface ContactAssignNodeData extends INodeBaseType, Record<string, unk
34
49
  within_working_hours: boolean;
35
50
  exclude_off_shift: boolean;
36
51
  require_online: boolean;
52
+ reassign_if_has_owner: boolean;
37
53
  };
38
54
  };
39
55
  }
@@ -13,3 +13,6 @@ export declare const checkIconWrapper: string;
13
13
  export declare const triangle: string;
14
14
  export declare const checkIcon: string;
15
15
  export declare const UserWrapper: string;
16
+ export declare const outputAssignHandleList: string;
17
+ export declare const outputAssignHandleItem: string;
18
+ export declare const ToggleWrapperFilterGroup: string;
@@ -0,0 +1,38 @@
1
+ import { DefaultOptionType } from 'antd/es/select';
2
+ import { NodeOutputMode } from '../../../constants/common';
3
+ import { VariableAutoCompleteOption, VariableGroupOption, VariableLeaf } from '../SuggestVariableNode/type';
4
+ import { NodeModeMenuNode, NodeModeMeta } from './types';
5
+ export declare const NODE_MODE_OPTIONS: NodeOutputMode[];
6
+ export declare const DEFAULT_NODE_MODE_FIELD_PATH = "id";
7
+ export declare const isNodeMode: (mode: string) => mode is NodeOutputMode;
8
+ export declare const isVariableGroupOption: (option: VariableAutoCompleteOption) => option is VariableGroupOption;
9
+ export declare const buildNodeModeValue: (object: string, mode: NodeOutputMode, fieldPath?: string) => string;
10
+ export declare const parseNodeModeValue: (value: string) => {
11
+ object: string;
12
+ mode: NodeOutputMode;
13
+ fieldPath: string;
14
+ };
15
+ export declare const normalizeNodeModeValue: (value?: string) => string;
16
+ export declare const buildNodeModeMeta: (group: VariableGroupOption, mode: NodeOutputMode, value?: string) => {
17
+ object: string;
18
+ node_type: import('../../../constants').BlockType;
19
+ order: number;
20
+ mode: NodeOutputMode;
21
+ value: string;
22
+ fieldPath: string;
23
+ };
24
+ export declare const buildDeletedNodeModeMeta: (value: string) => {
25
+ object: string;
26
+ mode: NodeOutputMode;
27
+ value: string;
28
+ fieldPath: string;
29
+ isDeleted: true;
30
+ };
31
+ export declare const buildNodeModeOption: (meta: NodeModeMeta) => DefaultOptionType & {
32
+ title: string;
33
+ };
34
+ export declare const buildNodeModeTagData: (meta: NodeModeMeta) => VariableLeaf;
35
+ export declare const normalizeNodeOutputModes: (outputMode?: string[]) => NodeOutputMode[];
36
+ export declare const buildNodeMenuNode: (group: VariableGroupOption) => NodeModeMenuNode;
37
+ export declare const hasSupportedNodeMode: (group: VariableGroupOption) => boolean;
38
+ export declare const filterNodeModeGroups: (options?: VariableAutoCompleteOption[], nodeFilter?: (node: NodeModeMenuNode) => boolean) => VariableGroupOption[];
@@ -0,0 +1,4 @@
1
+ export declare const Wrapper: string;
2
+ export declare const DropdownContainer: string;
3
+ export declare const SingleValueSelected: string;
4
+ export declare const SingleValueOverlay: string;
@@ -0,0 +1,4 @@
1
+ import { NodeModeSelectProps } from './types';
2
+ export declare const NodeModeSelect: ({ className, mode, disabledModes, dropdownClassName, getPopupContainer, nodeFilter, onChange: externalOnChange, onClear, onDropdownVisibleChange, open: controlledOpen, value: controlledValue, defaultValue, classNames: selectClassNames, ...restProps }: NodeModeSelectProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default function NodeModeSelectWithProvider(props: NodeModeSelectProps): import("react/jsx-runtime").JSX.Element;
4
+ export type { NodeModeMeta, NodeModeSelectProps } from './types';
@@ -0,0 +1,40 @@
1
+ import { SelectProps } from 'antd';
2
+ import { DefaultOptionType } from 'antd/es/select';
3
+ import { BlockType } from '../../../constants';
4
+ import { NodeOutputMode } from '../../../constants/common';
5
+ export interface NodeModeMeta {
6
+ object: string;
7
+ node_type?: BlockType;
8
+ order?: number;
9
+ mode: NodeOutputMode;
10
+ value: string;
11
+ fieldPath?: string;
12
+ isDeleted?: boolean;
13
+ }
14
+ export interface NodeModeMenuNode {
15
+ object: string;
16
+ node_type?: BlockType;
17
+ order?: number;
18
+ output_mode?: string[];
19
+ }
20
+ export type NodeModeSelectOption = DefaultOptionType & {
21
+ title?: string;
22
+ };
23
+ interface NodeModeSelectBaseProps extends Omit<SelectProps<string | string[], NodeModeSelectOption>, "children" | "defaultValue" | "dropdownRender" | "labelInValue" | "mode" | "onChange" | "onSearch" | "options" | "showSearch" | "tagRender" | "value"> {
24
+ disabledModes?: NodeOutputMode[];
25
+ nodeFilter?: (node: NodeModeMenuNode) => boolean;
26
+ }
27
+ export interface NodeModeSelectSingleProps extends NodeModeSelectBaseProps {
28
+ defaultValue?: string;
29
+ mode?: undefined;
30
+ onChange?: (value?: string, option?: NodeModeSelectOption) => void;
31
+ value?: string;
32
+ }
33
+ export interface NodeModeSelectMultipleProps extends NodeModeSelectBaseProps {
34
+ defaultValue?: string[];
35
+ mode: "multiple";
36
+ onChange?: (value: string[], option?: NodeModeSelectOption[]) => void;
37
+ value?: string[];
38
+ }
39
+ export type NodeModeSelectProps = NodeModeSelectSingleProps | NodeModeSelectMultipleProps;
40
+ export {};
@@ -1,24 +1,32 @@
1
+ import { MenuProps } from 'antd';
2
+ import { OutputMode } from '../../../constants/common';
1
3
  import { VariableGroupOption } from './type';
2
4
  export interface DropdownTypeListConfig {
3
5
  enableBulkSelect?: boolean;
4
6
  }
5
- export declare const DropdownTypeList: (opt: VariableGroupOption, config?: DropdownTypeListConfig) => {
7
+ export declare const AVAILABLE_OUTPUT_MODES: readonly ["ALL_MATCHES", "FIRST_MATCH", "SPECIFIC_FIELD", "COUNT"];
8
+ export declare const getSupportedOutputModes: (outputMode?: string[], allowedModes?: readonly OutputMode[]) => ("ALL_MATCHES" | "FIRST_MATCH" | "SPECIFIC_FIELD" | "COUNT")[];
9
+ type BuildOutputModeItemsParams = {
10
+ allowedModes?: readonly OutputMode[];
11
+ buildChildren?: (mode: OutputMode) => MenuProps["items"];
12
+ groupKey: string;
13
+ outputMode?: string[];
14
+ };
15
+ export declare const buildOutputModeItems: ({ allowedModes, buildChildren, groupKey, outputMode, }: BuildOutputModeItemsParams) => {
16
+ key: string;
17
+ label: import("react/jsx-runtime").JSX.Element;
18
+ children: import('antd/es/menu/interface').ItemType[];
19
+ popupClassName: string;
20
+ }[];
21
+ export declare const DropdownTypeList: (opt: VariableGroupOption, config?: DropdownTypeListConfig, onSelectValue?: (menuKey: string) => void) => {
6
22
  key: string;
7
23
  popupClassName: string;
8
24
  label: import("react/jsx-runtime").JSX.Element;
9
- children: ({
25
+ children: {
10
26
  key: string;
11
27
  label: import("react/jsx-runtime").JSX.Element;
12
- children: import('antd/es/menu/interface').ItemType[] | {
13
- key: string;
14
- selectable: boolean;
15
- label: import("react/jsx-runtime").JSX.Element;
16
- }[];
28
+ children: import('antd/es/menu/interface').ItemType[];
17
29
  popupClassName: string;
18
- } | {
19
- key: string;
20
- label: import("react/jsx-runtime").JSX.Element;
21
- children?: undefined;
22
- popupClassName?: undefined;
23
- })[];
30
+ }[];
24
31
  };
32
+ export {};
@@ -1,6 +1,7 @@
1
1
  import { BlockType } from '../../../constants';
2
2
  import { DATA_TYPE_PROPERTY, OUTPUT_MODE } from '../../../constants/common';
3
3
  export interface VariableLeaf {
4
+ id?: string;
4
5
  object: string;
5
6
  objectLabel?: string;
6
7
  type: DATA_TYPE_PROPERTY;
@@ -27,11 +28,12 @@ export interface UseVariableSuggestOptions {
27
28
  onMultiSelect?: (value: string[]) => void;
28
29
  }
29
30
  export interface VariableGroupOption {
31
+ id?: string;
30
32
  label: string;
31
33
  type: string;
32
34
  node_type?: BlockType;
33
35
  order?: number;
34
- options: VariableLeafOption[];
36
+ options: VariableAutoCompleteOption[];
35
37
  output_mode?: string[];
36
38
  value?: string;
37
39
  }
@@ -1,6 +1,8 @@
1
1
  import { MenuProps } from 'antd';
2
+ import { ReactNode } from 'react';
2
3
  import { DATA_TYPE_PROPERTY } from '../../../constants/common';
3
- import { VariableAutoCompleteOption, VariableLeafOption } from './type';
4
+ import { VariableAutoCompleteOption, VariableGroupOption } from './type';
4
5
  export declare function filterOptionTree(opt: VariableAutoCompleteOption, filterTypes?: DATA_TYPE_PROPERTY[]): VariableAutoCompleteOption | null;
5
- export declare const buildMenuItem: (opt: VariableAutoCompleteOption, parentKey?: string) => MenuProps["items"][number];
6
- export declare function collectLeafOptions(opt: VariableAutoCompleteOption, map: Map<string, VariableLeafOption>): void;
6
+ export declare const buildGroupMenuLabel: (opt: Pick<VariableGroupOption, "label" | "node_type" | "order" | "type">, action?: ReactNode, useNodeSummary?: boolean) => import("react/jsx-runtime").JSX.Element;
7
+ export declare const buildMenuItem: (opt: VariableAutoCompleteOption, parentKey?: string, onSelectValue?: (menuKey: string) => void) => MenuProps["items"][number];
8
+ export declare function collectLeafOptions(opt: VariableAutoCompleteOption, map: Map<string, VariableAutoCompleteOption>): void;
@@ -1,20 +1,23 @@
1
1
  import { SelectProps } from 'antd';
2
2
  import { DefaultOptionType } from 'antd/es/select';
3
- import { DATA_TYPE_PROPERTY } from '../../../constants/common';
4
- import { VariableAutoCompleteOption, VariableLeaf, VariableLeafOption } from '../SuggestVariableNode/type';
3
+ import { DATA_TYPE_PROPERTY, OutputMode } from '../../../constants/common';
4
+ import { VariableAutoCompleteOption, VariableGroupOption, VariableLeaf, VariableLeafOption } from '../SuggestVariableNode/type';
5
5
  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
9
  export declare function filterOptionsByKeyword(opt: VariableAutoCompleteOption, keyword: string): VariableAutoCompleteOption | null;
10
10
  export declare const normalizeValues: (value?: VariableSelectValue) => string[];
11
- export declare const buildVariableValueString: (data: VariableLeaf, mode?: string) => string;
11
+ export declare const buildVariableValueString: (data: VariableLeaf, mode?: OutputMode) => string;
12
12
  export declare const parseVariableValue: (value: string) => {
13
13
  object: string;
14
- mode: string;
14
+ mode: "ALL_MATCHES" | "FIRST_MATCH" | "SPECIFIC_FIELD" | "COUNT";
15
15
  fullPath: string;
16
16
  };
17
- export declare const buildVariableMeta: (option: VariableLeafOption, value?: string, mode?: string) => VariableLeaf;
17
+ export declare const buildVariableMeta: (option: VariableLeafOption, value?: string, mode?: OutputMode) => VariableLeaf;
18
+ export declare const buildVariableOptionValue: (option: VariableAutoCompleteOption, mode?: OutputMode) => string;
19
+ export declare const buildVariableGroupMeta: (option: VariableGroupOption, value?: string) => VariableLeaf | undefined;
20
+ export declare const buildVariableMetaFromOption: (option: VariableAutoCompleteOption, value?: string, mode?: OutputMode) => VariableLeaf;
18
21
  export declare const buildDeletedVariableMeta: (value: string) => {
19
22
  object: string;
20
23
  type: DATA_TYPE_PROPERTY.singlelineproperty;
@@ -22,7 +25,7 @@ export declare const buildDeletedVariableMeta: (value: string) => {
22
25
  name: string;
23
26
  fullPath: string;
24
27
  value: string;
25
- mode: VariableLeaf["mode"];
28
+ mode: "ALL_MATCHES" | "FIRST_MATCH" | "SPECIFIC_FIELD" | "COUNT";
26
29
  isDeleted: true;
27
30
  };
28
31
  export declare const buildOptionMap: (options?: SelectProps["options"]) => Map<string, DefaultOptionType>;
@@ -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, 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, 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';
@@ -2,6 +2,7 @@ import { SelectProps } from 'antd';
2
2
  import { DefaultOptionType } from 'antd/es/select';
3
3
  import { DATA_TYPE_PROPERTY } from '../../../constants/common';
4
4
  import { ReactNode } from 'react';
5
+ import { VariableLeaf } from '../SuggestVariableNode/type';
5
6
  export type TabKey = "default" | "variables";
6
7
  export type TabLabels = {
7
8
  defaultTab?: string;
@@ -13,8 +14,12 @@ export type VariableSelectLabeledValue = {
13
14
  title?: string;
14
15
  value: string;
15
16
  };
17
+ export type VariableSelectOption = DefaultOptionType & {
18
+ data?: VariableLeaf | unknown;
19
+ rawLabel?: string;
20
+ };
16
21
  export type VariableSelectValue = string | string[] | VariableSelectLabeledValue | VariableSelectLabeledValue[];
17
- export interface VariableSuggestSelectProps extends SelectProps<VariableSelectValue, DefaultOptionType> {
22
+ export interface VariableSuggestSelectProps extends SelectProps<VariableSelectValue, VariableSelectOption> {
18
23
  defaultOptions?: SelectProps["options"];
19
24
  variableFilterTypes?: DATA_TYPE_PROPERTY[];
20
25
  tabLabels?: TabLabels;
@@ -5,7 +5,9 @@ interface VariableTagProps {
5
5
  onClose?: () => void;
6
6
  closable?: boolean;
7
7
  }
8
- export declare function VariableTag({ data, showTooltip, ...p }: VariableTagProps & TagProps & {
8
+ export declare function VariableTag({ data, showTooltip, collapsed, showName, ...p }: VariableTagProps & TagProps & {
9
9
  showTooltip?: boolean;
10
+ collapsed?: boolean;
11
+ showName?: boolean;
10
12
  }): import("react/jsx-runtime").JSX.Element;
11
13
  export {};
@@ -148,5 +148,7 @@ export declare const CAMPAIGN_TYPE_NAME: Record<string, string>;
148
148
  export declare const DATE_FORMAT_BY_OPERATOR: Record<string, string>;
149
149
  export declare const iconPropertyMap: Record<DATA_TYPE_PROPERTY | string, any>;
150
150
  export declare const operatorMap: Record<string, string>;
151
- export declare const OUTPUT_MODE: string[];
152
- export declare const OutputModeLabel: Record<(typeof OUTPUT_MODE)[number], string>;
151
+ export declare const OUTPUT_MODE: readonly ["ALL_MATCHES", "FIRST_MATCH", "SPECIFIC_FIELD", "COUNT"];
152
+ export type OutputMode = (typeof OUTPUT_MODE)[number];
153
+ export type NodeOutputMode = Extract<OutputMode, (typeof OUTPUT_MODE)[0] | (typeof OUTPUT_MODE)[1]>;
154
+ export declare const OutputModeLabel: Record<OutputMode, string>;
@@ -100,6 +100,15 @@ export declare const initialData: {
100
100
  EMAIL: {
101
101
  email_type: string;
102
102
  };
103
+ CONTACT_ASSIGN: {
104
+ settings: {
105
+ constraints: {
106
+ exclude_off_shift: boolean;
107
+ reassign_if_has_owner: boolean;
108
+ within_working_hours: boolean;
109
+ };
110
+ };
111
+ };
103
112
  };
104
113
  export declare const initialNodes: Node[];
105
114
  export declare const initialEdges: any[];
@@ -1,6 +1,6 @@
1
- import { VariableLeafOption } from '../../components/Shared/SuggestVariableNode/type';
1
+ import { VariableAutoCompleteOption } from '../../components/Shared/SuggestVariableNode/type';
2
2
  declare const useUpstreamNodes: (nodeId?: string) => {
3
- optionsData: import('../../components/Shared/SuggestVariableNode/type').VariableAutoCompleteOption[];
4
- optionMap: Map<string, VariableLeafOption>;
3
+ optionsData: VariableAutoCompleteOption[];
4
+ optionMap: Map<string, VariableAutoCompleteOption>;
5
5
  };
6
6
  export default useUpstreamNodes;
@@ -1,6 +1,8 @@
1
1
  import { TreeDataNode } from 'antd';
2
2
  import { IFilter, IFilterGroup, IOutput } from '../../services';
3
- import { DATA_TYPE_PROPERTY } from '../constants/common';
3
+ import { DATA_TYPE_PROPERTY, NodeOutputMode, OutputMode } from '../constants/common';
4
+ export declare const isOutputMode: (value: string) => value is OutputMode;
5
+ export declare const isNodeOutputMode: (value: string) => value is NodeOutputMode;
4
6
  export declare function getInitialsAvatarName(name: string): string;
5
7
  export declare function getSuffixCount(name: string): number;
6
8
  export declare const formatTitleCondition: (condition: IFilter) => {
@@ -11,29 +13,29 @@ export declare const formatTitleCondition: (condition: IFilter) => {
11
13
  type FormatMode = "suggestion" | "default";
12
14
  export declare const formatFilterCore: (groups: IFilterGroup[], mode: FormatMode) => ({
13
15
  filter_type: "AND" | "OR";
14
- conditions: Pick<IFilter, "value" | "name" | "type" | "id" | "title" | "operator" | "slug" | "dateType" | "type_date" | "propertyData">[];
16
+ conditions: Pick<IFilter, "value" | "name" | "type" | "id" | "title" | "slug" | "operator" | "dateType" | "type_date" | "propertyData">[];
15
17
  id: string;
16
18
  } | {
17
19
  filter_type: "AND" | "OR";
18
- conditions: Pick<IFilter, "value" | "name" | "type" | "id" | "title" | "operator" | "slug" | "dateType" | "type_date" | "propertyData">[];
20
+ conditions: Pick<IFilter, "value" | "name" | "type" | "id" | "title" | "slug" | "operator" | "dateType" | "type_date" | "propertyData">[];
19
21
  object: string;
20
22
  })[];
21
23
  export declare const formatSuggestionProperty: (filters: IFilterGroup[]) => ({
22
24
  filter_type: "AND" | "OR";
23
- conditions: Pick<IFilter, "value" | "name" | "type" | "id" | "title" | "operator" | "slug" | "dateType" | "type_date" | "propertyData">[];
25
+ conditions: Pick<IFilter, "value" | "name" | "type" | "id" | "title" | "slug" | "operator" | "dateType" | "type_date" | "propertyData">[];
24
26
  id: string;
25
27
  } | {
26
28
  filter_type: "AND" | "OR";
27
- conditions: Pick<IFilter, "value" | "name" | "type" | "id" | "title" | "operator" | "slug" | "dateType" | "type_date" | "propertyData">[];
29
+ conditions: Pick<IFilter, "value" | "name" | "type" | "id" | "title" | "slug" | "operator" | "dateType" | "type_date" | "propertyData">[];
28
30
  object: string;
29
31
  })[];
30
32
  export declare const formatFilterGroups: (chartFilterGroups: IFilterGroup[]) => ({
31
33
  filter_type: "AND" | "OR";
32
- conditions: Pick<IFilter, "value" | "name" | "type" | "id" | "title" | "operator" | "slug" | "dateType" | "type_date" | "propertyData">[];
34
+ conditions: Pick<IFilter, "value" | "name" | "type" | "id" | "title" | "slug" | "operator" | "dateType" | "type_date" | "propertyData">[];
33
35
  id: string;
34
36
  } | {
35
37
  filter_type: "AND" | "OR";
36
- conditions: Pick<IFilter, "value" | "name" | "type" | "id" | "title" | "operator" | "slug" | "dateType" | "type_date" | "propertyData">[];
38
+ conditions: Pick<IFilter, "value" | "name" | "type" | "id" | "title" | "slug" | "operator" | "dateType" | "type_date" | "propertyData">[];
37
39
  object: string;
38
40
  })[];
39
41
  export declare const formatFilterGroupsToForm: (object?: string, chartFilterGroups?: IFilterGroup[], filter_type?: "AND" | "OR", mode?: FormatMode) => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "app-v3-scripts-editor",
3
3
  "private": false,
4
- "version": "1.23.0",
4
+ "version": "1.23.2",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/ucall-asia/app-v3-scripts-editor.git"