@antscorp/antsomi-ui 2.0.119 → 3.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/components/atoms/Alert/Alert.d.ts +1 -1
- package/es/components/atoms/Checkbox/Checkbox.d.ts +1 -1
- package/es/components/atoms/Eyedropper/styled.d.ts +1 -1
- package/es/components/atoms/FloatButton/index.d.ts +6 -1
- package/es/components/atoms/Input/Input.d.ts +1 -0
- package/es/components/atoms/Input/styled.d.ts +2 -0
- package/es/components/atoms/NotificationStatus/NotificationStatus.d.ts +1 -1
- package/es/components/atoms/Popover/Popover.d.ts +1 -1
- package/es/components/atoms/PreviewTabs/styled.d.ts +3 -1
- package/es/components/atoms/Radio/index.d.ts +2 -2
- package/es/components/atoms/Segmented/Segmented.d.ts +1 -1
- package/es/components/atoms/SelectAssociatedTag/SelectAssociatedTag.js +10 -1
- package/es/components/atoms/Space/Space.d.ts +1 -0
- package/es/components/atoms/Steps/styled.d.ts +3 -1
- package/es/components/atoms/Switch/styled.d.ts +1 -1
- package/es/components/atoms/Tag/Tag.d.ts +3 -2
- package/es/components/molecules/AccessDenied/styled.d.ts +3 -1
- package/es/components/molecules/AddDynamicContent/AddDynamicContent.js +123 -114
- package/es/components/molecules/AddDynamicContent/styled.d.ts +3 -2
- package/es/components/molecules/ApplyPopupContent/styled.d.ts +3 -1
- package/es/components/molecules/CalendarSelection/components/CustomPicker/CustomPicker.js +5 -3
- package/es/components/molecules/CalendarSelection/components/RangePicker/RangePicker.d.ts +1 -1
- package/es/components/molecules/CalendarSelection/components/RangePicker/RangePicker.js +1 -1
- package/es/components/molecules/CalendarSelection/components/RangePicker/styled.d.ts +12 -2
- package/es/components/molecules/CalendarSelection/components/RangeSelectOptions/components/Option/Option.js +1 -1
- package/es/components/molecules/CalendarSelection/components/RangeSelectOptions/styled.d.ts +6 -2
- package/es/components/molecules/CalendarSelection/styled.d.ts +1 -1
- package/es/components/molecules/DatePicker/DatePicker.d.ts +73 -7
- package/es/components/molecules/DatePicker/DatePicker.js +7 -6
- package/es/components/molecules/DatePicker/components/AdvancedPicker/AdvancedPicker.js +46 -26
- package/es/components/molecules/DatePicker/components/AdvancedPicker/types.d.ts +20 -0
- package/es/components/molecules/DatePicker/components/AdvancedPicker/utils.d.ts +2 -2
- package/es/components/molecules/DatePicker/components/AdvancedPicker/utils.js +2 -0
- package/es/components/molecules/DatePickerV2/index.js +7 -3
- package/es/components/molecules/DisplayFormat/styled.d.ts +2 -1
- package/es/components/molecules/DrawerDetail/DrawerDetail.js +3 -4
- package/es/components/molecules/DrawerDetail/styled.d.ts +3 -1
- package/es/components/molecules/DrawerDetail/types.d.ts +1 -1
- package/es/components/molecules/EditingList/styled.d.ts +6 -2
- package/es/components/molecules/EmojiCollections/CommonCollection/index.js +1 -1
- package/es/components/molecules/EmojiPopover/styled.d.ts +2 -2
- package/es/components/molecules/EmptyData/styled.d.ts +3 -1
- package/es/components/molecules/FontSizeInput/components/FontSizeControl.js +26 -8
- package/es/components/molecules/FontSizeInput/styled.d.ts +1 -1
- package/es/components/molecules/ImageEditor/styled.d.ts +3 -1
- package/es/components/molecules/InputSelectAttribute/index.js +2 -2
- package/es/components/molecules/ItemNotFound/styled.d.ts +3 -1
- package/es/components/molecules/MatchAnySelect/MatchesAnySelect.js +5 -6
- package/es/components/molecules/MatchAnySelect/styled.d.ts +3 -7
- package/es/components/molecules/Modal/Modal.d.ts +1 -1
- package/es/components/molecules/Popconfirm/Popconfirm.d.ts +1 -1
- package/es/components/molecules/PreviewModal/styled.d.ts +3 -1
- package/es/components/molecules/ProcessLoading/styled.d.ts +3 -1
- package/es/components/molecules/RadioGroup/styled.d.ts +1 -1
- package/es/components/molecules/RichMenu/RichMenuChatBar/TypingChat/styled.d.ts +3 -1
- package/es/components/molecules/RichMenu/RichMenuChatBar/styled.d.ts +6 -2
- package/es/components/molecules/SearchPopover/styled.d.ts +1 -0
- package/es/components/molecules/Select/styled.d.ts +3 -1
- package/es/components/molecules/SelectAccount/AccountList.js +2 -2
- package/es/components/molecules/SelectAccount/AccountListOnlyOne.js +2 -2
- package/es/components/molecules/SelectAccount/hook/useGetAbstractUsers.d.ts +2 -2
- package/es/components/molecules/SelectAccount/styled.d.ts +1 -1
- package/es/components/molecules/Tabs/Tabs.d.ts +1 -1
- package/es/components/molecules/TemplateSaveAs/TemplateSaveAs.js +1 -1
- package/es/components/molecules/TemplateSaveAs/components/Category/Category.js +1 -1
- package/es/components/molecules/TemplateSaveAs/components/ImageSlider/styled.d.ts +3 -1
- package/es/components/molecules/TemplateSaveAs/hooks/useTemplateSave.d.ts +2 -2
- package/es/components/molecules/TemplateSaveAs/styled.d.ts +3 -1
- package/es/components/molecules/Tree/Tree.d.ts +2 -4
- package/es/components/molecules/Tree/styled.d.ts +3 -7
- package/es/components/molecules/TreeSelect/TreeSelect.d.ts +1 -1
- package/es/components/molecules/UnsubscribePreview/components/styled.d.ts +6 -3
- package/es/components/molecules/UploadImage/index.js +3 -2
- package/es/components/molecules/VirtualizedMenu/config.js +3 -1
- package/es/components/organism/AccountProfile/components/AccountSetting/styled.d.ts +2 -2
- package/es/components/organism/ActivityTimeline/components/List/styled.d.ts +3 -1
- package/es/components/organism/ActivityTimeline/components/Slide/styled.d.ts +1 -1
- package/es/components/organism/ActivityTimeline/styled.d.ts +6 -2
- package/es/components/organism/AlgorithmsSetting/index.js +3 -3
- package/es/components/organism/AlgorithmsSetting/styled.d.ts +1 -1
- package/es/components/organism/BasicLogin/components/ChooseMethod/styled.d.ts +3 -1
- package/es/components/organism/BasicLogin/components/WidgetLayout/styled.d.ts +3 -1
- package/es/components/organism/BasicLogin/styled.d.ts +9 -6
- package/es/components/organism/ContentSources/Settings.js +40 -41
- package/es/components/organism/DataTable/components/ModifyColumn/styled.d.ts +6 -2
- package/es/components/organism/DataTable/components/Pagination/styled.d.ts +3 -1
- package/es/components/organism/DataTable/components/Table/index.d.ts +1 -1
- package/es/components/organism/DataTable/components/Table/styled.d.ts +2 -2
- package/es/components/organism/DataTable/components/Toolbar/GroupByPopover.d.ts +1 -1
- package/es/components/organism/DataTable/components/Toolbar/styled.d.ts +15 -5
- package/es/components/organism/DataTable/hooks/useDataTableListing/useDataTableListing.js +7 -5
- package/es/components/organism/DataTable/styled/index.d.ts +6 -2
- package/es/components/organism/DataTable/types/index.d.ts +2 -1
- package/es/components/organism/DataTable/types/toolbar.d.ts +1 -1
- package/es/components/organism/Filter/components/FilterCondition/index.js +1 -1
- package/es/components/organism/Filter/components/FilterCondition/styled.d.ts +3 -1
- package/es/components/organism/Filter/styled.d.ts +12 -4
- package/es/components/organism/FilterSetting/components/common/InputArray/index.js +2 -2
- package/es/components/organism/FilterSetting/components/common/InputOrSelect/index.d.ts +2 -1
- package/es/components/organism/FilterSetting/components/common/InputOrSelect/index.js +4 -4
- package/es/components/organism/FilterSetting/components/common/InputSelectMulti/index.d.ts +0 -1
- package/es/components/organism/FilterSetting/components/common/InputSelectMulti/index.js +3 -1
- package/es/components/organism/FilterSetting/components/common/TextTreeSelect/index.d.ts +1 -1
- package/es/components/organism/FilterSetting/components/common/TextTreeSelect/index.js +2 -2
- package/es/components/organism/Help/queries/useGetListUser.js +4 -1
- package/es/components/organism/Help/styled.d.ts +3 -4
- package/es/components/organism/LeftMenu/components/HomeMenu/styled.d.ts +4 -2
- package/es/components/organism/LeftMenu/components/HomeMenu/useHomeMenu.js +1 -1
- package/es/components/organism/LeftMenu/components/common/ChildMenu/components/MenuItemImage/styled.d.ts +3 -1
- package/es/components/organism/LeftMenu/components/common/ChildMenu/styled.d.ts +6 -2
- package/es/components/organism/LeftMenu/hooks/usePermission.d.ts +1 -1
- package/es/components/organism/LeftMenu/styled.d.ts +6 -2
- package/es/components/organism/Login/components/ChooseMethod/styled.d.ts +3 -1
- package/es/components/organism/Login/components/VerifyAccount/styled.d.ts +1 -3
- package/es/components/organism/Login/components/WidgetLayout/styled.d.ts +3 -1
- package/es/components/organism/Login/styled.d.ts +9 -6
- package/es/components/organism/ModifyColumnModal/styled.d.ts +6 -2
- package/es/components/organism/PreviewTemplateModal/components/Information/styled.d.ts +3 -1
- package/es/components/organism/PreviewTemplateModal/components/SimilarTemplate/styled.d.ts +3 -1
- package/es/components/organism/PreviewTemplateModal/styled.d.ts +1 -1
- package/es/components/organism/SQLGeneration/components/styled.d.ts +2 -1
- package/es/components/organism/Table/ExplorePivotTable/styled.d.ts +2 -2
- package/es/components/organism/TextEditor/styled.d.ts +3 -1
- package/es/components/organism/TicketEditor/styled.d.ts +1 -1
- package/es/components/organism/TicketEditorV2/queries/useFetchAccountPermission.js +4 -1
- package/es/components/organism/TicketEditorV2/queries/useGetDetailTicket.d.ts +1 -1
- package/es/components/organism/TicketEditorV2/queries/useGetListComments.d.ts +1 -1
- package/es/components/organism/TicketEditorV2/queries/useGetListUser.js +4 -1
- package/es/components/organism/TicketEditorV2/styled.d.ts +1 -1
- package/es/components/template/Layout/components/RecommendationWorkspace/components/MenuMapping/styled.d.ts +3 -1
- package/es/components/template/Layout/styled.d.ts +3 -1
- package/es/components/template/TemplateListing/components/BlankTemplate/styled.d.ts +3 -1
- package/es/components/template/TemplateListing/components/Empty/styled.d.ts +3 -1
- package/es/components/template/TemplateListing/hooks/useTemplateListing.d.ts +2 -3
- package/es/components/template/TemplateListing/styled/index.d.ts +3 -1
- package/es/providers/ConfigProvider/ConfigProvider.d.ts +4 -0
- package/es/providers/ConfigProvider/ConfigProvider.js +2 -3
- package/es/providers/ConfigProvider/GlobalStyle.d.ts +2 -2
- package/es/providers/ConfigProvider/GlobalStyle.js +67 -64
- package/es/queries/AI/index.d.ts +3 -3
- package/es/queries/AI/useSqlGeneration.d.ts +3 -3
- package/es/queries/AI/useSqlGeneration.js +2 -2
- package/es/queries/Account/useGetAccountList.d.ts +3 -3
- package/es/queries/Account/useGetAccountList.js +2 -1
- package/es/queries/BusinessObject/useGetBODetail.d.ts +1 -1
- package/es/queries/BusinessObject/useGetListAllEvents.d.ts +1 -1
- package/es/queries/BusinessObject/useGetListBO.d.ts +1 -1
- package/es/queries/BusinessObject/useGetListEventAttr.d.ts +1 -1
- package/es/queries/BusinessObject/useGetListPromotionCodeAttr.d.ts +1 -1
- package/es/queries/BusinessObject/useGetListSourceByEvent.d.ts +1 -1
- package/es/queries/CustomFunction/useCustomFunction.d.ts +3 -3
- package/es/queries/CustomFunction/useCustomFunction.js +8 -4
- package/es/queries/DataTable/index.d.ts +25 -25
- package/es/queries/DataTable/index.js +26 -19
- package/es/queries/DynamicContentAttribute/useGetDynamicContentAttr.d.ts +1 -1
- package/es/queries/LeftMenu/index.d.ts +9 -9
- package/es/queries/LeftMenu/index.js +4 -6
- package/es/queries/Permission/index.d.ts +2 -2
- package/es/queries/PromotionPool/useGetListPromotionPool.d.ts +1 -1
- package/es/queries/TemplateListing/index.d.ts +5 -5
- package/es/queries/TemplateListing/index.js +28 -14
- package/es/queries/ThirdParty/useGetEventTrackingAttributes.d.ts +1 -1
- package/es/queries/ThirdParty/useGetListFallbackBO.d.ts +1 -1
- package/es/queries/ThirdParty/useStoreSavedMedia.d.ts +1 -1
- package/es/queries/ThirdParty/useStoreSavedMedia.js +1 -0
- package/es/queries/Unsubscribe/useGetUnsubscribeList.d.ts +1 -1
- package/es/queries/Unsubscribe/useGetUnsubscribeList.js +2 -2
- package/es/queries/Unsubscribe/useGetUnsubscribeListByIdentifier.d.ts +1 -1
- package/es/queries/Unsubscribe/useGetUnsubscribeListPermission.d.ts +1 -1
- package/es/queries/Unsubscribe/useGetUnsubscribeListPermission.js +2 -2
- package/es/queries/Unsubscribe/useGetUnsubscribePreferences.d.ts +1 -1
- package/es/queries/User/index.d.ts +1 -1
- package/es/queries/User/index.js +11 -7
- package/es/queries/User/userGetUserInfo.js +6 -3
- package/es/utils/color.d.ts +2 -0
- package/es/utils/color.js +30 -0
- package/package.json +40 -47
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const LoginMain: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd").FlexProps<import("antd/es/_util/type").AnyObject> &
|
|
2
|
+
export declare const LoginMain: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd").FlexProps<import("antd/es/_util/type").AnyObject> & {
|
|
3
|
+
children?: import("react").ReactNode;
|
|
4
|
+
} & import("react").RefAttributes<HTMLElement>>, any, {}, never>;
|
|
3
5
|
export declare const LoginBannerZone: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
|
-
export declare const WrapperLogin: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd").FlexProps<import("antd/es/_util/type").AnyObject> &
|
|
6
|
+
export declare const WrapperLogin: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd").FlexProps<import("antd/es/_util/type").AnyObject> & {
|
|
7
|
+
children?: import("react").ReactNode;
|
|
8
|
+
} & import("react").RefAttributes<HTMLElement>>, any, {
|
|
5
9
|
isMobile?: boolean | undefined;
|
|
6
10
|
}, never>;
|
|
7
11
|
export declare const WrapperImage: import("styled-components").StyledComponent<"img", any, {}, never>;
|
|
@@ -11,9 +15,7 @@ export declare const WrapperContent: import("styled-components").StyledComponent
|
|
|
11
15
|
export declare const AvatarImage: import("styled-components").StyledComponent<"img", any, {}, never>;
|
|
12
16
|
export declare const StyledForm: import("styled-components").StyledComponent<(<Values = any>(props: import("antd").FormProps<Values> & {
|
|
13
17
|
children?: import("react").ReactNode;
|
|
14
|
-
} & import("react").RefAttributes<import("
|
|
15
|
-
displayName?: string | undefined;
|
|
16
|
-
} & {
|
|
18
|
+
} & import("react").RefAttributes<import("rc-field-form/lib/interface").FormRef<Values>>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) & Pick<import("react").FC<{}>, "displayName"> & {
|
|
17
19
|
useForm: typeof import("antd/es/form/Form").useForm;
|
|
18
20
|
useFormInstance: typeof import("antd/es/form/hooks/useFormInstance").default;
|
|
19
21
|
useWatch: typeof import("rc-field-form").useWatch;
|
|
@@ -36,10 +38,11 @@ export declare const StyleInput: import("styled-components").StyledComponent<imp
|
|
|
36
38
|
Search: import("react").ForwardRefExoticComponent<import("antd/es/input").SearchProps & import("react").RefAttributes<import("antd").InputRef>>;
|
|
37
39
|
TextArea: import("react").ForwardRefExoticComponent<import("antd/es/input").TextAreaProps & import("react").RefAttributes<import("antd/es/input/TextArea").TextAreaRef>>;
|
|
38
40
|
Password: import("react").ForwardRefExoticComponent<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef>>;
|
|
41
|
+
OTP: import("react").ForwardRefExoticComponent<import("antd/es/input/OTP").OTPProps & import("react").RefAttributes<import("antd/es/input/OTP").OTPRef>>;
|
|
39
42
|
}, any, {
|
|
40
43
|
isMobile: boolean;
|
|
41
44
|
}, never>;
|
|
42
|
-
export declare const StyleButton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd").ButtonProps & import("react").RefAttributes<
|
|
45
|
+
export declare const StyleButton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd").ButtonProps & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement>> & {
|
|
43
46
|
Group: import("react").FC<import("antd/es/button").ButtonGroupProps>;
|
|
44
47
|
}, any, {
|
|
45
48
|
isMobile: boolean;
|
|
@@ -3,7 +3,11 @@ import { ModalV2Props } from '../../molecules/ModalV2';
|
|
|
3
3
|
export declare const StyledModal: import("styled-components").StyledComponent<(props: ModalV2Props) => import("react/jsx-runtime").JSX.Element, any, {}, never>;
|
|
4
4
|
export declare const ParentMetricWrapper: import("styled-components").StyledComponent<import("react").FC<import("react-custom-scrollbars").ScrollbarProps>, any, {}, never>;
|
|
5
5
|
export declare const ChildrenMetricWrapper: import("styled-components").StyledComponent<import("react").FC<import("react-custom-scrollbars").ScrollbarProps>, any, {}, never>;
|
|
6
|
-
export declare const SelectedMetricsWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd/es/flex/interface").FlexProps<import("antd/es/_util/type").AnyObject> &
|
|
7
|
-
|
|
6
|
+
export declare const SelectedMetricsWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd/es/flex/interface").FlexProps<import("antd/es/_util/type").AnyObject> & {
|
|
7
|
+
children?: import("react").ReactNode;
|
|
8
|
+
} & import("react").RefAttributes<HTMLElement>>, any, {}, never>;
|
|
9
|
+
export declare const SelectedMetricItem: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd/es/flex/interface").FlexProps<import("antd/es/_util/type").AnyObject> & {
|
|
10
|
+
children?: import("react").ReactNode;
|
|
11
|
+
} & import("react").RefAttributes<HTMLElement>>, any, {
|
|
8
12
|
disabled?: boolean | undefined;
|
|
9
13
|
}, never>;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const InformationWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd/es/flex/interface").FlexProps<import("antd/es/_util/type").AnyObject> &
|
|
2
|
+
export declare const InformationWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd/es/flex/interface").FlexProps<import("antd/es/_util/type").AnyObject> & {
|
|
3
|
+
children?: import("react").ReactNode;
|
|
4
|
+
} & import("react").RefAttributes<HTMLElement>>, any, {}, never>;
|
|
3
5
|
export declare const CheckboxButton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd").ButtonProps & import("react").RefAttributes<import("react").LegacyRef<HTMLElement>>>, any, {
|
|
4
6
|
$active?: boolean | undefined;
|
|
5
7
|
}, never>;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const SimilarTemplateWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd/es/flex/interface").FlexProps<import("antd/es/_util/type").AnyObject> &
|
|
2
|
+
export declare const SimilarTemplateWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd/es/flex/interface").FlexProps<import("antd/es/_util/type").AnyObject> & {
|
|
3
|
+
children?: import("react").ReactNode;
|
|
4
|
+
} & import("react").RefAttributes<HTMLElement>>, any, {}, never>;
|
|
3
5
|
export declare const TemplateListWrapper: import("styled-components").StyledComponent<"div", any, {
|
|
4
6
|
templateQuantity: number;
|
|
5
7
|
}, never>;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
export declare const ModalContainer: import("styled-components").StyledComponent<import("react").FC<import("../../molecules/Modal").ModalProps> & {
|
|
3
3
|
confirm: (props: import("antd").ModalFuncProps) => {
|
|
4
4
|
destroy: () => void;
|
|
5
|
-
update: (configUpdate: import("antd").
|
|
5
|
+
update: (configUpdate: import("antd/es/modal/confirm").ConfigUpdate) => void;
|
|
6
6
|
};
|
|
7
7
|
useModal: typeof import("antd/es/modal/useModal").default;
|
|
8
8
|
success: import("antd/es/modal/confirm").ModalFunc;
|
|
@@ -9,6 +9,7 @@ export declare const HeaderTitle: import("styled-components").StyledComponent<im
|
|
|
9
9
|
export declare const CloseButton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd").ButtonProps & import("react").RefAttributes<import("react").LegacyRef<HTMLElement>>>, any, {}, never>;
|
|
10
10
|
export declare const PromptSection: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd").SpaceProps & import("react").RefAttributes<HTMLDivElement>> & {
|
|
11
11
|
Compact: import("react").FC<import("antd/es/space/Compact").SpaceCompactProps>;
|
|
12
|
+
Addon: import("react").ForwardRefExoticComponent<import("antd/es/space/Addon").SpaceCompactCellProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
12
13
|
}, any, {}, never>;
|
|
13
14
|
export declare const PromptTextArea: import("styled-components").StyledComponent<"textarea", any, {}, never>;
|
|
14
15
|
export declare const GenerateButtonContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -27,7 +28,7 @@ export declare const RatingButton: import("styled-components").StyledComponent<i
|
|
|
27
28
|
export declare const StyledModal: import("styled-components").StyledComponent<import("react").FC<import("../../../molecules/Modal").ModalProps> & {
|
|
28
29
|
confirm: (props: import("antd").ModalFuncProps) => {
|
|
29
30
|
destroy: () => void;
|
|
30
|
-
update: (configUpdate: import("antd").
|
|
31
|
+
update: (configUpdate: import("antd/es/modal/confirm").ConfigUpdate) => void;
|
|
31
32
|
};
|
|
32
33
|
useModal: typeof import("antd/es/modal/useModal").default;
|
|
33
34
|
success: import("antd/es/modal/confirm").ModalFunc;
|
|
@@ -5,8 +5,8 @@ export declare const StyledTable: import("styled-components").StyledComponent<im
|
|
|
5
5
|
SELECTION_ALL: "SELECT_ALL";
|
|
6
6
|
SELECTION_INVERT: "SELECT_INVERT";
|
|
7
7
|
SELECTION_NONE: "SELECT_NONE";
|
|
8
|
-
Column:
|
|
9
|
-
ColumnGroup:
|
|
8
|
+
Column: <RecordType extends import("antd/es/_util/type").AnyObject>(_: import("antd").TableColumnProps<RecordType>) => null;
|
|
9
|
+
ColumnGroup: <RecordType_1 extends import("antd/es/_util/type").AnyObject>(_: import("antd/es/table/ColumnGroup").ColumnGroupProps<RecordType_1>) => null;
|
|
10
10
|
Summary: typeof import("rc-table/lib/Footer/Summary").default;
|
|
11
11
|
}, any, {}, never>;
|
|
12
12
|
export declare const StyledHeader: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -6,4 +6,6 @@ export declare const StyledEditorContent: import("styled-components").StyledComp
|
|
|
6
6
|
export declare const ColorBox: import("styled-components").StyledComponent<"div", any, {
|
|
7
7
|
$color?: string | undefined;
|
|
8
8
|
}, never>;
|
|
9
|
-
export declare const ToolbarWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd").FlexProps<import("antd/es/_util/type").AnyObject> &
|
|
9
|
+
export declare const ToolbarWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd").FlexProps<import("antd/es/_util/type").AnyObject> & {
|
|
10
|
+
children?: import("react").ReactNode;
|
|
11
|
+
} & import("react").RefAttributes<HTMLElement>>, any, {}, never>;
|
|
@@ -47,7 +47,7 @@ export declare const WrapperModalImg: import("styled-components").StyledComponen
|
|
|
47
47
|
export declare const WrapperModalHeaderImg: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
48
48
|
export declare const TicketButton: import("styled-components").StyledComponent<"button", any, {}, never>;
|
|
49
49
|
export declare const WrapperCheckBox: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd").CheckboxProps & import("react").RefAttributes<import("rc-checkbox").CheckboxRef>> & {
|
|
50
|
-
Group: import("
|
|
50
|
+
Group: <T = any>(props: import("antd/es/checkbox").CheckboxGroupProps<T> & import("react").RefAttributes<HTMLDivElement>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
51
51
|
}, any, {}, never>;
|
|
52
52
|
export declare const WrapperMessage: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
53
53
|
export declare const TicketEditorWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -2,7 +2,10 @@ import { useQuery } from '@tanstack/react-query';
|
|
|
2
2
|
import { QUERY_KEYS } from '../constants';
|
|
3
3
|
import Service from '../Service';
|
|
4
4
|
export const useFetchAccountPermission = ({ params, domainPermission, token, config, userId, ownerId, }) => {
|
|
5
|
-
const { data, isFetching } = useQuery(
|
|
5
|
+
const { data, isFetching } = useQuery({
|
|
6
|
+
queryKey: [QUERY_KEYS.GET_ACCOUNT_PERMISSION, domainPermission, token, config, userId, ownerId],
|
|
7
|
+
queryFn: () => Service.permission.callApi.getList(params, domainPermission, token, config, userId, 'list-menu', ownerId),
|
|
8
|
+
});
|
|
6
9
|
if (data?.code === 200) {
|
|
7
10
|
return {
|
|
8
11
|
accountEdit: data?.data[0]?.selected_edit,
|
|
@@ -8,6 +8,6 @@ type Props = {
|
|
|
8
8
|
export declare const useGetDetailTicket: ({ domainTicket, config, userId, ticketId, networkId, }: Props) => {
|
|
9
9
|
ticketDetails: any;
|
|
10
10
|
isFetching: boolean;
|
|
11
|
-
refetchTicket:
|
|
11
|
+
refetchTicket: (options?: import("@tanstack/react-query").RefetchOptions | undefined) => Promise<import("@tanstack/react-query").QueryObserverResult<any, Error>>;
|
|
12
12
|
};
|
|
13
13
|
export {};
|
|
@@ -9,6 +9,6 @@ type Props = {
|
|
|
9
9
|
export declare const useGetListComments: ({ domainTicket, config, userId, ticketId, enabled, networkId, }: Props) => {
|
|
10
10
|
listComments: any;
|
|
11
11
|
isFetchingComments: boolean;
|
|
12
|
-
refetchComments:
|
|
12
|
+
refetchComments: (options?: import("@tanstack/react-query").RefetchOptions | undefined) => Promise<import("@tanstack/react-query").QueryObserverResult<any, Error>>;
|
|
13
13
|
};
|
|
14
14
|
export {};
|
|
@@ -6,7 +6,10 @@ const getListUserServices = async (params = {}, domain, token, config, userId) =
|
|
|
6
6
|
return res.data;
|
|
7
7
|
};
|
|
8
8
|
export const useGetListUser = ({ domainTicket, config, userId }) => {
|
|
9
|
-
const { data, isFetching } = useQuery(
|
|
9
|
+
const { data, isFetching } = useQuery({
|
|
10
|
+
queryKey: [QUERY_KEYS.GET_LIST_USER, domainTicket, '', config, userId],
|
|
11
|
+
queryFn: () => getListUserServices({}, domainTicket, '', config, userId),
|
|
12
|
+
});
|
|
10
13
|
return {
|
|
11
14
|
listUsers: data || [],
|
|
12
15
|
isFetchingUsers: isFetching,
|
|
@@ -47,7 +47,7 @@ export declare const WrapperModalImg: import("styled-components").StyledComponen
|
|
|
47
47
|
export declare const WrapperModalHeaderImg: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
48
48
|
export declare const TicketButton: import("styled-components").StyledComponent<"button", any, {}, never>;
|
|
49
49
|
export declare const WrapperCheckBox: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd").CheckboxProps & import("react").RefAttributes<import("rc-checkbox").CheckboxRef>> & {
|
|
50
|
-
Group: import("
|
|
50
|
+
Group: <T = any>(props: import("antd/es/checkbox").CheckboxGroupProps<T> & import("react").RefAttributes<HTMLDivElement>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
51
51
|
}, any, {}, never>;
|
|
52
52
|
export declare const WrapperMessage: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
53
53
|
export declare const TicketEditorWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const MenuMappingContainer: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd/es/flex/interface").FlexProps<import("antd/es/_util/type").AnyObject> &
|
|
2
|
+
export declare const MenuMappingContainer: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd/es/flex/interface").FlexProps<import("antd/es/_util/type").AnyObject> & {
|
|
3
|
+
children?: import("react").ReactNode;
|
|
4
|
+
} & import("react").RefAttributes<HTMLElement>>, any, {}, never>;
|
|
3
5
|
export declare const MenuMappingWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const LayoutWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd/es/flex/interface").FlexProps<import("antd/es/_util/type").AnyObject> &
|
|
2
|
+
export declare const LayoutWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd/es/flex/interface").FlexProps<import("antd/es/_util/type").AnyObject> & {
|
|
3
|
+
children?: import("react").ReactNode;
|
|
4
|
+
} & import("react").RefAttributes<HTMLElement>>, any, {
|
|
3
5
|
showLeftMenu: boolean;
|
|
4
6
|
}, never>;
|
|
5
7
|
export declare const ContentWrapper: import("styled-components").StyledComponent<"div", any, {
|
|
@@ -1,2 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const BlankTemplateWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd/es/flex/interface").FlexProps<import("antd/es/_util/type").AnyObject> &
|
|
2
|
+
export declare const BlankTemplateWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd/es/flex/interface").FlexProps<import("antd/es/_util/type").AnyObject> & {
|
|
3
|
+
children?: import("react").ReactNode;
|
|
4
|
+
} & import("react").RefAttributes<HTMLElement>>, any, {}, never>;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const EmptyWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd/es/flex/interface").FlexProps<import("antd/es/_util/type").AnyObject> &
|
|
2
|
+
export declare const EmptyWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd/es/flex/interface").FlexProps<import("antd/es/_util/type").AnyObject> & {
|
|
3
|
+
children?: import("react").ReactNode;
|
|
4
|
+
} & import("react").RefAttributes<HTMLElement>>, any, {}, never>;
|
|
3
5
|
export declare const EmptyIcon: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -3,7 +3,6 @@ import { TServiceAuth } from '@antscorp/antsomi-ui/es/types';
|
|
|
3
3
|
import { TCategoryItem, TCheckedCategories, TSelectTemplateAction, TTemplateItem } from '../types';
|
|
4
4
|
import { TTemplateListingConfig } from '@antscorp/antsomi-ui/es/types/templateListing';
|
|
5
5
|
import { TThumbnailCardId } from '../../../molecules/ThumbnailCard';
|
|
6
|
-
import { InfiniteData } from '@tanstack/react-query';
|
|
7
6
|
import { TemplateCategory } from '@antscorp/antsomi-ui/es/models/TemplateCategory';
|
|
8
7
|
interface TemplateListingOptions {
|
|
9
8
|
serviceAuth: TServiceAuth;
|
|
@@ -69,8 +68,8 @@ export declare const useTemplateListing: <T = undefined>(options: TemplateListin
|
|
|
69
68
|
isLoadingCategoryList: boolean;
|
|
70
69
|
isLoadingTemplateList: boolean;
|
|
71
70
|
isLoadingTemplateDetail: boolean;
|
|
72
|
-
refetchCategoryList:
|
|
73
|
-
refetchTemplateList:
|
|
71
|
+
refetchCategoryList: (options?: import("@tanstack/react-query").RefetchOptions | undefined) => Promise<import("@tanstack/react-query").QueryObserverResult<NoInfer<TemplateCategory[]>, any>>;
|
|
72
|
+
refetchTemplateList: (options?: import("@tanstack/react-query").RefetchOptions | undefined) => Promise<import("@tanstack/react-query").QueryObserverResult<any, any>>;
|
|
74
73
|
onChangeCheckedCategories: (checkedCategories: TCheckedCategories) => void;
|
|
75
74
|
onChangeOpenCategoryKeys: (openKeys: string[]) => void;
|
|
76
75
|
onRemoveObjectTemplate: (id: TThumbnailCardId) => void;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const TemplateListingWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd/es/flex/interface").FlexProps<import("antd/es/_util/type").AnyObject> &
|
|
2
|
+
export declare const TemplateListingWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd/es/flex/interface").FlexProps<import("antd/es/_util/type").AnyObject> & {
|
|
3
|
+
children?: import("react").ReactNode;
|
|
4
|
+
} & import("react").RefAttributes<HTMLElement>>, any, {}, never>;
|
|
3
5
|
export declare const TemplateWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
6
|
export declare const LoadMoreBlock: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import { StyleProviderProps } from '@ant-design/cssinjs';
|
|
1
2
|
import { ConfigProviderProps as AntdConfigProviderProps } from 'antd/es/config-provider';
|
|
2
3
|
import React, { ReactNode } from 'react';
|
|
3
4
|
import '@antscorp/antsomi-ui/es/assets/css/main.scss';
|
|
5
|
+
import { type GlobalStyleProps } from './GlobalStyle';
|
|
4
6
|
import { TLocale } from '@antscorp/antsomi-ui/es/types';
|
|
5
7
|
import 'animate.css';
|
|
6
8
|
import { AppConfigProviderProps } from '../AppConfigProvider';
|
|
@@ -8,6 +10,8 @@ interface ConfigProviderProps extends Omit<AntdConfigProviderProps, 'locale'> {
|
|
|
8
10
|
children?: ReactNode;
|
|
9
11
|
locale?: TLocale;
|
|
10
12
|
appConfig?: AppConfigProviderProps;
|
|
13
|
+
globalStyle?: GlobalStyleProps;
|
|
14
|
+
styleProviderProps?: StyleProviderProps;
|
|
11
15
|
}
|
|
12
16
|
declare const ConfigProvider: React.FC<ConfigProviderProps>;
|
|
13
17
|
export default ConfigProvider;
|
|
@@ -22,7 +22,6 @@ import 'animate.css';
|
|
|
22
22
|
import { AppConfigProvider } from '../AppConfigProvider';
|
|
23
23
|
// Hooks
|
|
24
24
|
import { useMutationObserver } from '../../hooks';
|
|
25
|
-
import { QueryDevtoolsAntsomiUI } from '../../queries';
|
|
26
25
|
// Providers
|
|
27
26
|
// import {
|
|
28
27
|
// QueryClientProviderAntsomiUI,
|
|
@@ -37,7 +36,7 @@ dayjs.extend(timezone);
|
|
|
37
36
|
dayjs.extend(relativeTime);
|
|
38
37
|
const ConfigProvider = props => {
|
|
39
38
|
// Props
|
|
40
|
-
const { children, locale, appConfig, theme = THEME, prefixCls = ANTSOMI_COMPONENT_PREFIX_CLS, ...restOfProps } = props;
|
|
39
|
+
const { children, locale, appConfig, theme = THEME, prefixCls = ANTSOMI_COMPONENT_PREFIX_CLS, globalStyle = {}, styleProviderProps = {}, ...restOfProps } = props;
|
|
41
40
|
// Refs
|
|
42
41
|
const ref = useRef(null);
|
|
43
42
|
// Handlers
|
|
@@ -82,6 +81,6 @@ const ConfigProvider = props => {
|
|
|
82
81
|
const containers = document.getElementsByClassName('antsomi-scroll-box');
|
|
83
82
|
handleScrollAction(Array.from(containers));
|
|
84
83
|
}, []);
|
|
85
|
-
return (_jsx(AntdConfigProvider, { theme: theme, prefixCls: prefixCls, ...restOfProps, children: _jsx(AppConfigProvider, { value: appConfig, children: _jsx("div", { ref: ref, children: _jsxs(App, { children: [_jsx(GlobalStyle, {}), _jsx(StyleProvider, { hashPriority: "high", children: children })
|
|
84
|
+
return (_jsx(AntdConfigProvider, { theme: theme, prefixCls: prefixCls, ...restOfProps, children: _jsx(AppConfigProvider, { value: appConfig, children: _jsx("div", { ref: ref, children: _jsxs(App, { children: [_jsx(GlobalStyle, { ...globalStyle }), _jsx(StyleProvider, { ...styleProviderProps, hashPriority: "high", children: children })] }) }) }) }));
|
|
86
85
|
};
|
|
87
86
|
export default ConfigProvider;
|
|
@@ -9,7 +9,7 @@ import { far } from '@fortawesome/free-regular-svg-icons';
|
|
|
9
9
|
import { fab } from '@fortawesome/free-brands-svg-icons';
|
|
10
10
|
library.add(fas, far, fab);
|
|
11
11
|
const { accent7, gray5, scrollBarSize, bw3, bw4, bw5 } = THEME.token || {};
|
|
12
|
-
export const GlobalStyle =
|
|
12
|
+
export const GlobalStyle = props => (_jsx(Global, { styles: css `
|
|
13
13
|
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700;900&display=swap');
|
|
14
14
|
|
|
15
15
|
:root {
|
|
@@ -18,69 +18,72 @@ export const GlobalStyle = () => (_jsx(Global, { styles: css `
|
|
|
18
18
|
--divider-3: ${bw5};
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
21
|
+
${props.resetStyles !== false &&
|
|
22
|
+
`
|
|
23
|
+
*,
|
|
24
|
+
*:before,
|
|
25
|
+
*:after {
|
|
26
|
+
-webkit-box-sizing: border-box;
|
|
27
|
+
-moz-box-sizing: border-box;
|
|
28
|
+
box-sizing: border-box;
|
|
29
|
+
border-width: 0;
|
|
30
|
+
border-style: solid;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
blockquote,
|
|
34
|
+
dl,
|
|
35
|
+
dd,
|
|
36
|
+
h1,
|
|
37
|
+
h2,
|
|
38
|
+
h3,
|
|
39
|
+
h4,
|
|
40
|
+
h5,
|
|
41
|
+
h6,
|
|
42
|
+
hr,
|
|
43
|
+
figure,
|
|
44
|
+
p,
|
|
45
|
+
pre {
|
|
46
|
+
margin: 0;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
h1,
|
|
50
|
+
h2,
|
|
51
|
+
h3,
|
|
52
|
+
h4,
|
|
53
|
+
h5,
|
|
54
|
+
h6 {
|
|
55
|
+
font-size: inherit;
|
|
56
|
+
font-weight: inherit;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
ol,
|
|
60
|
+
ul {
|
|
61
|
+
list-style: none;
|
|
62
|
+
margin: 0;
|
|
63
|
+
padding: 0;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
img,
|
|
67
|
+
svg,
|
|
68
|
+
video,
|
|
69
|
+
canvas,
|
|
70
|
+
audio,
|
|
71
|
+
iframe,
|
|
72
|
+
embed,
|
|
73
|
+
object {
|
|
74
|
+
vertical-align: middle;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
img,
|
|
78
|
+
video {
|
|
79
|
+
max-width: 100%;
|
|
80
|
+
height: auto;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
hr {
|
|
84
|
+
border-color: var(--divider-1);
|
|
85
|
+
}
|
|
86
|
+
`}
|
|
84
87
|
|
|
85
88
|
.rc-virtual-list-scrollbar {
|
|
86
89
|
width: 4px !important;
|
package/es/queries/AI/index.d.ts
CHANGED
|
@@ -9,15 +9,15 @@ export declare const AntsomiAIQueries: {
|
|
|
9
9
|
refine_prompt: string;
|
|
10
10
|
sql_suggestion: string;
|
|
11
11
|
summary: string;
|
|
12
|
-
},
|
|
12
|
+
}, Error, Record<string, unknown>, unknown>;
|
|
13
13
|
generateSQLAsync: import("@tanstack/react-query").UseMutateAsyncFunction<{
|
|
14
14
|
key: string;
|
|
15
15
|
prompt: string;
|
|
16
16
|
refine_prompt: string;
|
|
17
17
|
sql_suggestion: string;
|
|
18
18
|
summary: string;
|
|
19
|
-
},
|
|
20
|
-
|
|
19
|
+
}, Error, Record<string, unknown>, unknown>;
|
|
20
|
+
isPending: boolean;
|
|
21
21
|
isError: boolean;
|
|
22
22
|
};
|
|
23
23
|
};
|
|
@@ -11,15 +11,15 @@ export declare const useSqlGeneration: (params: UseSqlGenerationParams) => {
|
|
|
11
11
|
refine_prompt: string;
|
|
12
12
|
sql_suggestion: string;
|
|
13
13
|
summary: string;
|
|
14
|
-
},
|
|
14
|
+
}, Error, Record<string, unknown>, unknown>;
|
|
15
15
|
generateSQLAsync: import("@tanstack/react-query").UseMutateAsyncFunction<{
|
|
16
16
|
key: string;
|
|
17
17
|
prompt: string;
|
|
18
18
|
refine_prompt: string;
|
|
19
19
|
sql_suggestion: string;
|
|
20
20
|
summary: string;
|
|
21
|
-
},
|
|
22
|
-
|
|
21
|
+
}, Error, Record<string, unknown>, unknown>;
|
|
22
|
+
isPending: boolean;
|
|
23
23
|
isError: boolean;
|
|
24
24
|
};
|
|
25
25
|
export {};
|
|
@@ -2,12 +2,12 @@ import { useMutation } from '@tanstack/react-query';
|
|
|
2
2
|
import { AIServices } from '../../services/AI';
|
|
3
3
|
export const useSqlGeneration = (params) => {
|
|
4
4
|
const { auth, env } = params;
|
|
5
|
-
const { mutate: generateSQL, mutateAsync: generateSQLAsync,
|
|
5
|
+
const { mutate: generateSQL, mutateAsync: generateSQLAsync, isPending, isError, } = useMutation({
|
|
6
6
|
mutationFn: async (data) => AIServices.generateSQL({
|
|
7
7
|
auth,
|
|
8
8
|
data,
|
|
9
9
|
env,
|
|
10
10
|
}),
|
|
11
11
|
});
|
|
12
|
-
return { generateSQL, generateSQLAsync,
|
|
12
|
+
return { generateSQL, generateSQLAsync, isPending, isError };
|
|
13
13
|
};
|
|
@@ -20,10 +20,10 @@ type TCheckUserPermissionProps = {
|
|
|
20
20
|
apiConfig: TAccountParams;
|
|
21
21
|
options?: Omit<UseQueryOptions<any, any, TAccountPermission | undefined, any[]>, OptionHasDefault>;
|
|
22
22
|
};
|
|
23
|
-
export declare const useGetAccountList: (props: GetAccountListProps) => import("@tanstack/react-query").UseQueryResult<AccountListing
|
|
24
|
-
export declare const useGetRecentAccount: (props: GetRecentAccountProps) => import("@tanstack/react-query").UseQueryResult<AccountRecent
|
|
23
|
+
export declare const useGetAccountList: (props: GetAccountListProps) => import("@tanstack/react-query").UseQueryResult<NoInfer<AccountListing>, any>;
|
|
24
|
+
export declare const useGetRecentAccount: (props: GetRecentAccountProps) => import("@tanstack/react-query").UseQueryResult<NoInfer<AccountRecent>, any>;
|
|
25
25
|
export declare const useUpdateRecentAccount: (props: UpdateRecentAccountProps) => import("@tanstack/react-query").UseMutationResult<{
|
|
26
26
|
status: number;
|
|
27
27
|
}, any, [number, number], unknown>;
|
|
28
|
-
export declare const useCheckUserPermission: (props: TCheckUserPermissionProps) => import("@tanstack/react-query").UseQueryResult<TAccountPermission | undefined
|
|
28
|
+
export declare const useCheckUserPermission: (props: TCheckUserPermissionProps) => import("@tanstack/react-query").UseQueryResult<NoInfer<TAccountPermission | undefined>, any>;
|
|
29
29
|
export {};
|
|
@@ -27,7 +27,8 @@ export const useUpdateRecentAccount = (props) => {
|
|
|
27
27
|
return useMutation({
|
|
28
28
|
mutationFn: variables => updateRecentAccount({ params: apiConfig, data: variables }),
|
|
29
29
|
onSettled: () => {
|
|
30
|
-
queryClient.invalidateQueries(
|
|
30
|
+
queryClient.invalidateQueries({
|
|
31
|
+
queryKey: [QUERY_KEYS.UPDATE_RECENT_ACCOUNT],
|
|
31
32
|
exact: false,
|
|
32
33
|
});
|
|
33
34
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
2
|
import type { TServiceAuth } from '@antscorp/antsomi-ui/es/types';
|
|
3
3
|
type TDataFnQuery = Record<string, any>;
|
|
4
|
-
export declare const useGetBODetail: <T = TDataFnQuery>(serviceAuth: TServiceAuth, itemTypeId: number | null, queryOptions?: UseQueryOptions<TDataFnQuery, any, T>) => import("@tanstack/react-query").UseQueryResult<T
|
|
4
|
+
export declare const useGetBODetail: <T = TDataFnQuery>(serviceAuth: TServiceAuth, itemTypeId: number | null, queryOptions?: Omit<UseQueryOptions<TDataFnQuery, any, T>, 'queryKey' | 'queryFn'>) => import("@tanstack/react-query").UseQueryResult<NoInfer<T>, any>;
|
|
5
5
|
export {};
|
|
@@ -7,5 +7,5 @@ type GetListAllEvents<T> = {
|
|
|
7
7
|
infos: PayloadInfo;
|
|
8
8
|
options?: Omit<UseQueryOptions<any, any, T, any[]>, OptionHasDefault>;
|
|
9
9
|
};
|
|
10
|
-
export declare const useGetListAllEvents: <T = any>(props: GetListAllEvents<T>) => import("@tanstack/react-query").UseQueryResult<T
|
|
10
|
+
export declare const useGetListAllEvents: <T = any>(props: GetListAllEvents<T>) => import("@tanstack/react-query").UseQueryResult<NoInfer<T>, any>;
|
|
11
11
|
export {};
|
|
@@ -2,5 +2,5 @@ import { UseQueryOptions } from '@tanstack/react-query';
|
|
|
2
2
|
import type { APIParams } from '../../components/molecules/AddDynamicContent';
|
|
3
3
|
import type { PayloadInfo } from '../../types';
|
|
4
4
|
type TDataFnQuery = Record<string, any>;
|
|
5
|
-
export declare const useGetListBO: <T = TDataFnQuery>(apiConfig: APIParams, infos: PayloadInfo, queryOptions?: UseQueryOptions<TDataFnQuery, any, T>) => import("@tanstack/react-query").UseQueryResult<T
|
|
5
|
+
export declare const useGetListBO: <T = TDataFnQuery>(apiConfig: APIParams, infos: PayloadInfo, queryOptions?: Omit<UseQueryOptions<TDataFnQuery, any, T>, 'queryKey' | 'queryFn'>) => import("@tanstack/react-query").UseQueryResult<NoInfer<T>, any>;
|
|
6
6
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
2
|
import type { APIParams } from '../../components/molecules/AddDynamicContent';
|
|
3
3
|
import type { PayloadInfo } from '../../types';
|
|
4
|
-
export declare const useGetListEventAttr: <T = any[]>(apiConfig: APIParams, infos: PayloadInfo, eventSource: string, sourceId: string, queryOptions?: Omit<UseQueryOptions<any[], any, T>, 'queryKey' | 'queryFn'>) => import("@tanstack/react-query").UseQueryResult<T
|
|
4
|
+
export declare const useGetListEventAttr: <T = any[]>(apiConfig: APIParams, infos: PayloadInfo, eventSource: string, sourceId: string, queryOptions?: Omit<UseQueryOptions<any[], any, T>, 'queryKey' | 'queryFn'>) => import("@tanstack/react-query").UseQueryResult<NoInfer<T>, any>;
|
|
@@ -2,5 +2,5 @@ import { UseQueryOptions } from '@tanstack/react-query';
|
|
|
2
2
|
import type { APIParams } from '../../components/molecules/AddDynamicContent';
|
|
3
3
|
import type { PayloadInfo } from '../../types';
|
|
4
4
|
type TQueryFnData = any[];
|
|
5
|
-
export declare const useGetListPromotionCodeAttr: <T = TQueryFnData>(apiConfig: APIParams, infos: PayloadInfo, queryOptions?: Omit<UseQueryOptions<TQueryFnData, any, T>, 'queryKey' | 'queryFn'>) => import("@tanstack/react-query").UseQueryResult<T
|
|
5
|
+
export declare const useGetListPromotionCodeAttr: <T = TQueryFnData>(apiConfig: APIParams, infos: PayloadInfo, queryOptions?: Omit<UseQueryOptions<TQueryFnData, any, T>, 'queryKey' | 'queryFn'>) => import("@tanstack/react-query").UseQueryResult<NoInfer<T>, any>;
|
|
6
6
|
export {};
|
|
@@ -9,5 +9,5 @@ type GetListSourceByEvent<T> = {
|
|
|
9
9
|
infos: PayloadInfo;
|
|
10
10
|
options?: Omit<UseQueryOptions<any, any, T, any[]>, OptionHasDefault>;
|
|
11
11
|
};
|
|
12
|
-
export declare const useGetListSourceByEvent: <T = any>(props: GetListSourceByEvent<T>) => import("@tanstack/react-query").UseQueryResult<T
|
|
12
|
+
export declare const useGetListSourceByEvent: <T = any>(props: GetListSourceByEvent<T>) => import("@tanstack/react-query").UseQueryResult<NoInfer<T>, any>;
|
|
13
13
|
export {};
|