@antscorp/antsomi-ui 1.3.3-beta.7 → 1.3.3-beta.71
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/assets/images/iphone-top-bar.png +0 -0
- package/es/assets/images/iphone.png +0 -0
- package/es/assets/images/stars_slider.png +0 -0
- package/es/components/atoms/Button/index.d.ts +1 -8
- package/es/components/atoms/Empty/Empty.d.ts +6 -5
- package/es/components/atoms/Empty/Empty.js +7 -1
- package/es/components/atoms/Flex/Flex.d.ts +2 -0
- package/es/components/atoms/Flex/Flex.js +1 -0
- package/es/components/atoms/Flex/index.d.ts +1 -0
- package/es/components/atoms/Flex/index.js +1 -0
- package/es/components/atoms/Input/Input.d.ts +14 -3
- package/es/components/atoms/Input/Input.js +7 -3
- package/es/components/atoms/InputDynamic/EditCaretPositioning.d.ts +2 -0
- package/es/components/atoms/InputDynamic/EditCaretPositioning.js +89 -0
- package/es/components/atoms/InputDynamic/InputDynamic.d.ts +10 -0
- package/es/components/atoms/InputDynamic/InputDynamic.js +484 -0
- package/es/components/atoms/InputDynamic/PopupShortLink.d.ts +16 -0
- package/es/components/atoms/InputDynamic/PopupShortLink.js +85 -0
- package/es/components/atoms/InputDynamic/constants.d.ts +71 -0
- package/es/components/atoms/InputDynamic/constants.js +71 -0
- package/es/components/atoms/InputDynamic/index.d.ts +2 -0
- package/es/components/atoms/InputDynamic/index.js +1 -0
- package/es/components/atoms/InputDynamic/styled.d.ts +13 -0
- package/es/components/atoms/InputDynamic/styled.js +293 -0
- package/es/components/atoms/InputDynamic/types.d.ts +113 -0
- package/es/components/atoms/InputDynamic/types.js +1 -0
- package/es/components/atoms/InputDynamic/utils.d.ts +30 -0
- package/es/components/atoms/InputDynamic/utils.js +872 -0
- package/es/components/atoms/MobileFrame/MobileFrame.d.ts +4 -0
- package/es/components/atoms/MobileFrame/MobileFrame.js +22 -0
- package/es/components/atoms/MobileFrame/constants.d.ts +4 -0
- package/es/components/atoms/MobileFrame/constants.js +4 -0
- package/es/components/atoms/MobileFrame/index.d.ts +2 -0
- package/es/components/atoms/MobileFrame/index.js +1 -0
- package/es/components/atoms/MobileFrame/styled.d.ts +3 -0
- package/es/components/atoms/MobileFrame/styled.js +33 -0
- package/es/components/atoms/Pagination/index.d.ts +1 -0
- package/es/components/atoms/Popover/Popover.d.ts +1 -1
- package/es/components/atoms/Popover/styled.d.ts +1 -1
- package/es/components/atoms/PreviewTabs/PreviewTabs.d.ts +7 -0
- package/es/components/atoms/PreviewTabs/PreviewTabs.js +67 -0
- package/es/components/atoms/PreviewTabs/index.d.ts +2 -0
- package/es/components/atoms/PreviewTabs/index.js +1 -0
- package/es/components/atoms/PreviewTabs/styled.d.ts +6 -0
- package/es/components/atoms/PreviewTabs/styled.js +79 -0
- package/es/components/atoms/Progress/Progress.d.ts +1 -1
- package/es/components/atoms/Radio/index.d.ts +3 -3
- package/es/components/atoms/RateV2/RateV2.d.ts +18 -0
- package/es/components/atoms/RateV2/RateV2.js +73 -0
- package/es/components/atoms/RateV2/index.d.ts +1 -0
- package/es/components/atoms/RateV2/index.js +1 -0
- package/es/components/atoms/RequiredLabel/index.d.ts +1 -0
- package/es/components/atoms/RequiredLabel/index.js +4 -3
- package/es/components/atoms/Slider/index.d.ts +2 -1
- package/es/components/atoms/Slider/index.js +7 -14
- package/es/components/atoms/SliderV2/index.d.ts +6 -0
- package/es/components/atoms/SliderV2/index.js +21 -0
- package/es/components/atoms/Space/Space.d.ts +1 -1
- package/es/components/atoms/Spin/Spin.d.ts +2 -1
- package/es/components/atoms/Spin/styled.d.ts +1 -1
- package/es/components/atoms/Statistic/Statistic.d.ts +1 -4
- package/es/components/atoms/index.d.ts +8 -0
- package/es/components/atoms/index.js +6 -0
- package/es/components/common/ConfigProvider/ConfigProvider.js +6 -0
- package/es/components/common/ConfigProvider/GlobalStyle.js +281 -27
- package/es/components/icons/ArrowGrowIcon.d.ts +2 -1
- package/es/components/icons/AudioRecordIcon.d.ts +2 -1
- package/es/components/icons/BugIcon.d.ts +2 -1
- package/es/components/icons/CameraIcon.d.ts +2 -1
- package/es/components/icons/CaptureIcon.d.ts +2 -1
- package/es/components/icons/CheckSlimIcon.d.ts +2 -1
- package/es/components/icons/CloseIcon.d.ts +2 -1
- package/es/components/icons/CommentIcon.d.ts +2 -1
- package/es/components/icons/EventIcon.d.ts +2 -1
- package/es/components/icons/FreeDrawIcon.d.ts +2 -1
- package/es/components/icons/GPTIcon.d.ts +2 -1
- package/es/components/icons/GPTIconV2.d.ts +2 -1
- package/es/components/icons/GPTIconV3.d.ts +2 -1
- package/es/components/icons/HighlightIcon.d.ts +2 -1
- package/es/components/icons/IdeaIcon.d.ts +2 -1
- package/es/components/icons/InvisibleIcon.d.ts +2 -1
- package/es/components/icons/MuteIcon.d.ts +2 -1
- package/es/components/icons/OpenUrlIcon.d.ts +2 -1
- package/es/components/icons/PauseIcon.d.ts +2 -1
- package/es/components/icons/PlaneIcon.d.ts +2 -1
- package/es/components/icons/RequestIcon.d.ts +2 -1
- package/es/components/icons/StopRecordIcon.d.ts +2 -1
- package/es/components/icons/UserIcon.d.ts +2 -1
- package/es/components/icons/VerticalDotsIcon.d.ts +2 -1
- package/es/components/icons/WarningIcon.d.ts +2 -1
- package/es/components/molecules/AddDynamicContent/AddDynamicContent.d.ts +35 -0
- package/es/components/molecules/AddDynamicContent/AddDynamicContent.js +1248 -0
- package/es/components/molecules/AddDynamicContent/components/DisplayFormat/DisplayFormat.d.ts +12 -0
- package/es/components/molecules/AddDynamicContent/components/DisplayFormat/DisplayFormat.js +25 -0
- package/es/components/molecules/AddDynamicContent/components/DisplayFormat/index.d.ts +3 -0
- package/es/components/molecules/AddDynamicContent/components/DisplayFormat/index.js +3 -0
- package/es/components/molecules/AddDynamicContent/components/FormatDatetime/FormatDatetime.d.ts +19 -0
- package/es/components/molecules/AddDynamicContent/components/FormatDatetime/FormatDatetime.js +100 -0
- package/es/components/molecules/AddDynamicContent/components/FormatDatetime/index.d.ts +1 -0
- package/es/components/molecules/AddDynamicContent/components/FormatDatetime/index.js +1 -0
- package/es/components/molecules/AddDynamicContent/components/FormatNumber/FormatNumber.d.ts +52 -0
- package/es/components/molecules/AddDynamicContent/components/FormatNumber/FormatNumber.js +132 -0
- package/es/components/molecules/AddDynamicContent/components/FormatNumber/index.d.ts +1 -0
- package/es/components/molecules/AddDynamicContent/components/FormatNumber/index.js +1 -0
- package/es/components/molecules/AddDynamicContent/components/index.d.ts +3 -0
- package/es/components/molecules/AddDynamicContent/components/index.js +3 -0
- package/es/components/molecules/AddDynamicContent/constants.d.ts +101 -0
- package/es/components/molecules/AddDynamicContent/constants.js +152 -0
- package/es/components/molecules/AddDynamicContent/currencies.json +1523 -0
- package/es/components/molecules/AddDynamicContent/index.d.ts +2 -0
- package/es/components/molecules/AddDynamicContent/index.js +2 -0
- package/es/components/molecules/AddDynamicContent/styled.d.ts +12 -0
- package/es/components/molecules/AddDynamicContent/styled.js +30 -0
- package/es/components/molecules/AddDynamicContent/types.d.ts +13 -0
- package/es/components/molecules/AddDynamicContent/types.js +1 -0
- package/es/components/molecules/AddDynamicContent/utils.d.ts +41 -0
- package/es/components/molecules/AddDynamicContent/utils.js +396 -0
- package/es/components/molecules/CaptureScreen/CaptureScreen.d.ts +2 -1
- package/es/components/molecules/CaptureScreen/components/CommentBox/CommentBox.d.ts +2 -1
- package/es/components/molecules/CaptureScreen/components/Cursor/Cursor.d.ts +2 -1
- package/es/components/molecules/Collapse/Collapse.d.ts +3 -3
- package/es/components/molecules/Collapse/Collapse.js +9 -0
- package/es/components/molecules/ColorSetting/styled.d.ts +1 -8
- package/es/components/molecules/DatePicker/components/AdvancedPicker/AdvancedPicker.d.ts +2 -2
- package/es/components/molecules/DatePicker/components/AdvancedPicker/AdvancedPicker.js +260 -113
- package/es/components/molecules/DatePicker/components/AdvancedPicker/constants.d.ts +66 -25
- package/es/components/molecules/DatePicker/components/AdvancedPicker/constants.js +109 -0
- package/es/components/molecules/DatePicker/components/AdvancedPicker/styled.js +48 -4
- package/es/components/molecules/DatePicker/components/AdvancedPicker/types.d.ts +22 -0
- package/es/components/molecules/DatePicker/components/AdvancedPicker/utils.d.ts +20 -0
- package/es/components/molecules/DatePicker/components/AdvancedPicker/utils.js +90 -1
- package/es/components/molecules/Drawer/Drawer.d.ts +5 -1
- package/es/components/molecules/Drawer/Drawer.js +3 -1
- package/es/components/molecules/Drawer/index.d.ts +1 -0
- package/es/components/molecules/EditorScript/EditorScript.d.ts +14 -0
- package/es/components/molecules/EditorScript/EditorScript.js +89 -0
- package/es/components/molecules/EditorScript/index.d.ts +1 -0
- package/es/components/molecules/EditorScript/index.js +1 -0
- package/es/components/molecules/EditorScript/styled.d.ts +1 -0
- package/es/components/molecules/EditorScript/styled.js +3 -0
- package/es/components/molecules/Form/Form.d.ts +1 -0
- package/es/components/molecules/Form/Form.js +1 -0
- package/es/components/molecules/Form/index.d.ts +1 -0
- package/es/components/molecules/Form/index.js +1 -0
- package/es/components/molecules/IconSelection/styled.d.ts +1 -8
- package/es/components/molecules/Modal/Modal.d.ts +2 -2
- package/es/components/molecules/Modal/index.d.ts +1 -0
- package/es/components/molecules/Modal/styled.d.ts +1 -1
- package/es/components/molecules/Modal/styled.js +2 -0
- package/es/components/molecules/ModalV2/ModalV2.d.ts +5 -0
- package/es/components/molecules/ModalV2/ModalV2.js +26 -0
- package/es/components/molecules/ModalV2/index.d.ts +2 -0
- package/es/components/molecules/ModalV2/index.js +1 -0
- package/es/components/molecules/ModalV2/styled.d.ts +7 -0
- package/es/components/molecules/ModalV2/styled.js +22 -0
- package/es/components/molecules/Popconfirm/Popconfirm.d.ts +1 -1
- package/es/components/molecules/PreviewModal/PreviewModal.d.ts +7 -0
- package/es/components/molecules/PreviewModal/PreviewModal.js +30 -0
- package/es/components/molecules/PreviewModal/index.d.ts +2 -0
- package/es/components/molecules/PreviewModal/index.js +1 -0
- package/es/components/molecules/PreviewModal/styled.d.ts +4 -0
- package/es/components/molecules/PreviewModal/styled.js +39 -0
- package/es/components/molecules/ResizeGrid/ResizeGrid.d.ts +3 -0
- package/es/components/molecules/ResizeGrid/ResizeGrid.js +728 -0
- package/es/components/molecules/ResizeGrid/components/Cell/Cell.d.ts +3 -0
- package/es/components/molecules/ResizeGrid/components/Cell/Cell.js +87 -0
- package/es/components/molecules/ResizeGrid/components/Cell/index.d.ts +1 -0
- package/es/components/molecules/ResizeGrid/components/Cell/index.js +1 -0
- package/es/components/molecules/ResizeGrid/components/Cell/styled.d.ts +3 -0
- package/es/components/molecules/ResizeGrid/components/Cell/styled.js +80 -0
- package/es/components/molecules/ResizeGrid/constant.d.ts +35 -0
- package/es/components/molecules/ResizeGrid/constant.js +111 -0
- package/es/components/molecules/ResizeGrid/index.d.ts +2 -0
- package/es/components/molecules/ResizeGrid/index.js +1 -0
- package/es/components/molecules/ResizeGrid/styled.d.ts +10 -0
- package/es/components/molecules/ResizeGrid/styled.js +56 -0
- package/es/components/molecules/ResizeGrid/types.d.ts +147 -0
- package/es/components/molecules/ResizeGrid/types.js +1 -0
- package/es/components/molecules/RichMenu/RichMenuBlock/RichMenuBlock.d.ts +12 -0
- package/es/components/molecules/RichMenu/RichMenuBlock/RichMenuBlock.js +53 -0
- package/es/components/molecules/RichMenu/RichMenuBlock/RichMenuCell/index.d.ts +17 -0
- package/es/components/molecules/RichMenu/RichMenuBlock/RichMenuCell/index.js +108 -0
- package/es/components/molecules/RichMenu/RichMenuBlock/RichMenuCell/styled.d.ts +20 -0
- package/es/components/molecules/RichMenu/RichMenuBlock/RichMenuCell/styled.js +135 -0
- package/es/components/molecules/RichMenu/RichMenuBlock/constants.d.ts +2 -0
- package/es/components/molecules/RichMenu/RichMenuBlock/constants.js +765 -0
- package/es/components/molecules/RichMenu/RichMenuBlock/index.d.ts +3 -0
- package/es/components/molecules/RichMenu/RichMenuBlock/index.js +2 -0
- package/es/components/molecules/RichMenu/RichMenuBlock/styled.d.ts +9 -0
- package/es/components/molecules/RichMenu/RichMenuBlock/styled.js +17 -0
- package/es/components/molecules/RichMenu/RichMenuChatBar/RichMenuChatBar.d.ts +10 -0
- package/es/components/molecules/RichMenu/RichMenuChatBar/RichMenuChatBar.js +32 -0
- package/es/components/molecules/RichMenu/RichMenuChatBar/TypingChat/index.d.ts +6 -0
- package/es/components/molecules/RichMenu/RichMenuChatBar/TypingChat/index.js +15 -0
- package/es/components/molecules/RichMenu/RichMenuChatBar/TypingChat/styled.d.ts +4 -0
- package/es/components/molecules/RichMenu/RichMenuChatBar/TypingChat/styled.js +47 -0
- package/es/components/molecules/RichMenu/RichMenuChatBar/index.d.ts +2 -0
- package/es/components/molecules/RichMenu/RichMenuChatBar/index.js +1 -0
- package/es/components/molecules/RichMenu/RichMenuChatBar/styled.d.ts +9 -0
- package/es/components/molecules/RichMenu/RichMenuChatBar/styled.js +37 -0
- package/es/components/molecules/RichMenu/RichMenuMobileView/RichMenuMobileView.d.ts +10 -0
- package/es/components/molecules/RichMenu/RichMenuMobileView/RichMenuMobileView.js +37 -0
- package/es/components/molecules/RichMenu/RichMenuMobileView/index.d.ts +1 -0
- package/es/components/molecules/RichMenu/RichMenuMobileView/index.js +1 -0
- package/es/components/molecules/RichMenu/RichMenuMobileView/styled.d.ts +6 -0
- package/es/components/molecules/RichMenu/RichMenuMobileView/styled.js +20 -0
- package/es/components/molecules/RichMenu/index.d.ts +3 -0
- package/es/components/molecules/RichMenu/index.js +3 -0
- package/es/components/molecules/Select/Select.d.ts +6 -4
- package/es/components/molecules/Select/Select.js +23 -2
- package/es/components/molecules/Select/Test.d.ts +2 -1
- package/es/components/molecules/ShareAccess/ShareAccess.d.ts +3 -0
- package/es/components/molecules/ShareAccess/ShareAccess.js +23 -0
- package/es/components/molecules/ShareAccess/actions.d.ts +16 -0
- package/es/components/molecules/ShareAccess/actions.js +12 -0
- package/es/components/molecules/ShareAccess/components/GeneralAccess/GeneralAccess.d.ts +2 -0
- package/es/components/molecules/ShareAccess/components/GeneralAccess/GeneralAccess.js +78 -0
- package/es/components/molecules/ShareAccess/components/GeneralAccess/index.d.ts +1 -0
- package/es/components/molecules/ShareAccess/components/GeneralAccess/index.js +1 -0
- package/es/components/molecules/ShareAccess/components/GeneralAccess/styled.d.ts +1 -0
- package/es/components/molecules/ShareAccess/components/GeneralAccess/styled.js +57 -0
- package/es/components/molecules/ShareAccess/components/LayoutContent/LayoutContent.d.ts +3 -0
- package/es/components/molecules/ShareAccess/components/LayoutContent/LayoutContent.js +19 -0
- package/es/components/molecules/ShareAccess/components/LayoutContent/index.d.ts +1 -0
- package/es/components/molecules/ShareAccess/components/LayoutContent/index.js +1 -0
- package/es/components/molecules/ShareAccess/components/LayoutContent/styled.d.ts +1 -0
- package/es/components/molecules/ShareAccess/components/LayoutContent/styled.js +7 -0
- package/es/components/molecules/ShareAccess/components/ModalTransferOwnerShip/ModalTransferOwnerShip.d.ts +2 -0
- package/es/components/molecules/ShareAccess/components/ModalTransferOwnerShip/ModalTransferOwnerShip.js +43 -0
- package/es/components/molecules/ShareAccess/components/ModalTransferOwnerShip/index.d.ts +0 -0
- package/es/components/molecules/ShareAccess/components/ModalTransferOwnerShip/index.js +1 -0
- package/es/components/molecules/ShareAccess/components/ModalTransferOwnerShip/styled.d.ts +7 -0
- package/es/components/molecules/ShareAccess/components/ModalTransferOwnerShip/styled.js +18 -0
- package/es/components/molecules/ShareAccess/components/PeopleAccess/PeopleAccess.d.ts +5 -0
- package/es/components/molecules/ShareAccess/components/PeopleAccess/PeopleAccess.js +97 -0
- package/es/components/molecules/ShareAccess/components/PeopleAccess/index.d.ts +1 -0
- package/es/components/molecules/ShareAccess/components/PeopleAccess/index.js +1 -0
- package/es/components/molecules/ShareAccess/components/PeopleAccess/styled.d.ts +1 -0
- package/es/components/molecules/ShareAccess/components/PeopleAccess/styled.js +46 -0
- package/es/components/molecules/ShareAccess/components/SearchUser/SearchUser.d.ts +5 -0
- package/es/components/molecules/ShareAccess/components/SearchUser/SearchUser.js +73 -0
- package/es/components/molecules/ShareAccess/components/SearchUser/index.d.ts +1 -0
- package/es/components/molecules/ShareAccess/components/SearchUser/index.js +1 -0
- package/es/components/molecules/ShareAccess/components/SearchUser/styled.d.ts +2 -0
- package/es/components/molecules/ShareAccess/components/SearchUser/styled.js +29 -0
- package/es/components/molecules/ShareAccess/components/index.d.ts +1 -0
- package/es/components/molecules/ShareAccess/components/index.js +1 -0
- package/es/components/molecules/ShareAccess/constants.d.ts +67 -0
- package/es/components/molecules/ShareAccess/constants.js +85 -0
- package/es/components/molecules/ShareAccess/context.d.ts +4 -0
- package/es/components/molecules/ShareAccess/context.js +3 -0
- package/es/components/molecules/ShareAccess/hooks/index.d.ts +1 -0
- package/es/components/molecules/ShareAccess/hooks/index.js +1 -0
- package/es/components/molecules/ShareAccess/hooks/useShareAccess.d.ts +18 -0
- package/es/components/molecules/ShareAccess/hooks/useShareAccess.js +29 -0
- package/es/components/molecules/ShareAccess/index.d.ts +4 -0
- package/es/components/molecules/ShareAccess/index.js +4 -0
- package/es/components/molecules/ShareAccess/reducer.d.ts +2 -0
- package/es/components/molecules/ShareAccess/reducer.js +19 -0
- package/es/components/molecules/ShareAccess/types.d.ts +54 -0
- package/es/components/molecules/ShareAccess/types.js +1 -0
- package/es/components/molecules/ShareAccess/utils.d.ts +38 -0
- package/es/components/molecules/ShareAccess/utils.js +57 -0
- package/es/components/molecules/TreeSelect/TreeSelect.d.ts +4 -5
- package/es/components/molecules/UploadImage/MediaIcon.d.ts +2 -1
- package/es/components/molecules/UploadImage/MediaThumb.d.ts +11 -0
- package/es/components/molecules/UploadImage/MediaThumb.js +31 -0
- package/es/components/molecules/UploadImage/index.d.ts +6 -2
- package/es/components/molecules/UploadImage/index.js +111 -84
- package/es/components/molecules/UploadImage/styled.js +0 -4
- package/es/components/molecules/UploadImage/utils.d.ts +3 -0
- package/es/components/molecules/UploadImage/utils.js +24 -0
- package/es/components/molecules/index.d.ts +11 -3
- package/es/components/molecules/index.js +9 -3
- package/es/components/organism/Help/styled.d.ts +6 -16
- package/es/components/organism/Table/ExplorePivotTable/styled.d.ts +1 -0
- package/es/constants/index.d.ts +1 -0
- package/es/constants/index.js +1 -0
- package/es/constants/queries.d.ts +14 -0
- package/es/constants/queries.js +21 -0
- package/es/constants/richMenu.d.ts +19 -0
- package/es/constants/richMenu.js +19 -0
- package/es/constants/storybook.d.ts +7 -1
- package/es/constants/storybook.js +12 -0
- package/es/constants/theme.js +30 -3
- package/es/hooks/index.d.ts +1 -0
- package/es/hooks/index.js +1 -0
- package/es/hooks/useDebounceCallback.d.ts +1 -0
- package/es/hooks/useDebounceCallback.js +5 -0
- package/es/hooks/useDebounceV2.d.ts +1 -0
- package/es/hooks/useDebounceV2.js +11 -0
- package/es/hooks/useDeepCompareEffect.d.ts +1 -0
- package/es/hooks/useDeepCompareEffect.js +21 -0
- package/es/hooks/useDeepCompareMemo.d.ts +2 -0
- package/es/hooks/useDeepCompareMemo.js +21 -0
- package/es/hooks/usePrevious.d.ts +2 -0
- package/es/hooks/usePrevious.js +9 -0
- package/es/locales/en/translation.json +160 -3
- package/es/locales/i18n.d.ts +158 -0
- package/es/locales/translations.d.ts +157 -0
- package/es/locales/vi/translation.json +2 -1
- package/es/models/BusinessObject.d.ts +116 -0
- package/es/models/BusinessObject.js +113 -0
- package/es/models/Currency.d.ts +9 -0
- package/es/models/Currency.js +10 -0
- package/es/models/CustomFunction.d.ts +19 -0
- package/es/models/CustomFunction.js +25 -0
- package/es/models/DynamicContentAttribute.d.ts +34 -0
- package/es/models/DynamicContentAttribute.js +9 -0
- package/es/models/EventTrackingAttribute.d.ts +11 -0
- package/es/models/EventTrackingAttribute.js +13 -0
- package/es/models/PromotionPool.d.ts +11 -0
- package/es/models/PromotionPool.js +12 -0
- package/es/models/{SavedImage.d.ts → SavedMedia.d.ts} +5 -5
- package/es/models/{SavedImage.js → SavedMedia.js} +3 -3
- package/es/queries/BusinessObject/index.d.ts +6 -0
- package/es/queries/BusinessObject/index.js +6 -0
- package/es/queries/BusinessObject/useGetListAllEvents.d.ts +11 -0
- package/es/queries/BusinessObject/useGetListAllEvents.js +14 -0
- package/es/queries/BusinessObject/useGetListAttributeBO.d.ts +17 -0
- package/es/queries/BusinessObject/useGetListAttributeBO.js +41 -0
- package/es/queries/BusinessObject/useGetListBO.d.ts +6 -0
- package/es/queries/BusinessObject/useGetListBO.js +19 -0
- package/es/queries/BusinessObject/useGetListEventAttr.d.ts +4 -0
- package/es/queries/BusinessObject/useGetListEventAttr.js +15 -0
- package/es/queries/BusinessObject/useGetListPromotionCodeAttr.d.ts +6 -0
- package/es/queries/BusinessObject/useGetListPromotionCodeAttr.js +26 -0
- package/es/queries/BusinessObject/useGetListSourceByEvent.d.ts +13 -0
- package/es/queries/BusinessObject/useGetListSourceByEvent.js +11 -0
- package/es/queries/CustomFunction/index.d.ts +2 -0
- package/es/queries/CustomFunction/index.js +2 -0
- package/es/queries/CustomFunction/useCustomFunction.d.ts +19 -0
- package/es/queries/CustomFunction/useCustomFunction.js +53 -0
- package/es/queries/DynamicContentAttribute/index.d.ts +1 -0
- package/es/queries/DynamicContentAttribute/index.js +1 -0
- package/es/queries/DynamicContentAttribute/useGetDynamicContentAttr.d.ts +10 -0
- package/es/queries/DynamicContentAttribute/useGetDynamicContentAttr.js +21 -0
- package/es/queries/PromotionPool/index.d.ts +1 -0
- package/es/queries/PromotionPool/index.js +1 -0
- package/es/queries/PromotionPool/useGetListPromotionPool.d.ts +9 -0
- package/es/queries/PromotionPool/useGetListPromotionPool.js +62 -0
- package/es/queries/ThirdParty/index.d.ts +1 -0
- package/es/queries/ThirdParty/index.js +1 -0
- package/es/queries/ThirdParty/useGetEventTrackingAttributes.d.ts +14 -0
- package/es/queries/ThirdParty/useGetEventTrackingAttributes.js +15 -0
- package/es/queries/configs.d.ts +4 -0
- package/es/queries/configs.js +13 -0
- package/es/queries/index.d.ts +6 -0
- package/es/queries/index.js +6 -0
- package/es/services/MediaTemplateDesign/BusinessObject/index.d.ts +8 -0
- package/es/services/MediaTemplateDesign/BusinessObject/index.js +100 -0
- package/es/services/MediaTemplateDesign/CustomFunction/index.d.ts +15 -0
- package/es/services/MediaTemplateDesign/CustomFunction/index.js +135 -0
- package/es/services/MediaTemplateDesign/DynamicContentAttribute/index.d.ts +4 -0
- package/es/services/MediaTemplateDesign/DynamicContentAttribute/index.js +39 -0
- package/es/services/MediaTemplateDesign/ListCurrency/index.d.ts +6 -0
- package/es/services/MediaTemplateDesign/ListCurrency/index.js +34 -0
- package/es/services/MediaTemplateDesign/PromotionPool/index.d.ts +3 -0
- package/es/services/MediaTemplateDesign/PromotionPool/index.js +31 -0
- package/es/services/MediaTemplateDesign/UploadFile/index.d.ts +5 -5
- package/es/services/MediaTemplateDesign/UploadFile/index.js +36 -19
- package/es/services/ThirParty/index.d.ts +8 -0
- package/es/services/ThirParty/index.js +26 -0
- package/es/services/index.d.ts +14 -5
- package/es/services/index.js +45 -1
- package/es/test.d.ts +2 -1
- package/es/test.js +201 -63
- package/es/types/index.d.ts +17 -0
- package/es/types/index.js +2 -1
- package/es/types/richMenu.d.ts +214 -0
- package/es/types/richMenu.js +1 -0
- package/es/types/variables.d.ts +2 -0
- package/es/types/variables.js +1 -0
- package/es/utils/common.d.ts +4 -0
- package/es/utils/common.js +21 -0
- package/es/utils/handleError.d.ts +32 -2
- package/es/utils/handleError.js +42 -4
- package/package.json +18 -8
|
@@ -32,6 +32,161 @@ export declare const convertLanguageJsonToObject: (json: any, objToConvertTo?: C
|
|
|
32
32
|
quarters: string;
|
|
33
33
|
years: string;
|
|
34
34
|
};
|
|
35
|
+
edit: {
|
|
36
|
+
title: string;
|
|
37
|
+
description: string;
|
|
38
|
+
};
|
|
39
|
+
messageError: {
|
|
40
|
+
createColorProfile: {
|
|
41
|
+
message: string;
|
|
42
|
+
description: string;
|
|
43
|
+
};
|
|
44
|
+
maxLength: {
|
|
45
|
+
message: string;
|
|
46
|
+
description: string;
|
|
47
|
+
};
|
|
48
|
+
promotionPoolDeactivated: {
|
|
49
|
+
message: string;
|
|
50
|
+
description: string;
|
|
51
|
+
};
|
|
52
|
+
BOArchive: {
|
|
53
|
+
message: string;
|
|
54
|
+
description: string;
|
|
55
|
+
};
|
|
56
|
+
BODelete: {
|
|
57
|
+
message: string;
|
|
58
|
+
description: string;
|
|
59
|
+
};
|
|
60
|
+
attributeArchive: {
|
|
61
|
+
message: string;
|
|
62
|
+
description: string;
|
|
63
|
+
};
|
|
64
|
+
attributeDelete: {
|
|
65
|
+
message: string;
|
|
66
|
+
description: string;
|
|
67
|
+
};
|
|
68
|
+
collectionArchive: {
|
|
69
|
+
message: string;
|
|
70
|
+
description: string;
|
|
71
|
+
};
|
|
72
|
+
collectionDisable: {
|
|
73
|
+
message: string;
|
|
74
|
+
description: string;
|
|
75
|
+
};
|
|
76
|
+
collectionDelete: {
|
|
77
|
+
message: string;
|
|
78
|
+
description: string;
|
|
79
|
+
};
|
|
80
|
+
blockError: {
|
|
81
|
+
message: string;
|
|
82
|
+
description: string;
|
|
83
|
+
};
|
|
84
|
+
boError: {
|
|
85
|
+
message: string;
|
|
86
|
+
description: string;
|
|
87
|
+
};
|
|
88
|
+
fieldIsRequired: {
|
|
89
|
+
message: string;
|
|
90
|
+
description: string;
|
|
91
|
+
};
|
|
92
|
+
completeSetupInContentSources: {
|
|
93
|
+
message: string;
|
|
94
|
+
description: string;
|
|
95
|
+
};
|
|
96
|
+
fieldEmpty: {
|
|
97
|
+
message: string;
|
|
98
|
+
};
|
|
99
|
+
nameExisted: {
|
|
100
|
+
message: string;
|
|
101
|
+
};
|
|
102
|
+
richMenuSwitchNoExist: {
|
|
103
|
+
message: string;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
expandEditor: {
|
|
107
|
+
title: string;
|
|
108
|
+
description: string;
|
|
109
|
+
};
|
|
110
|
+
dynamicContent: {
|
|
111
|
+
title: string;
|
|
112
|
+
modal: {
|
|
113
|
+
error: {
|
|
114
|
+
boAttr: string;
|
|
115
|
+
customerAttr: string;
|
|
116
|
+
eventAttr: string;
|
|
117
|
+
eventBySource: string;
|
|
118
|
+
promotionCodeAttr: string;
|
|
119
|
+
promotionPools: string;
|
|
120
|
+
source: string;
|
|
121
|
+
visitorAttr: string;
|
|
122
|
+
perName: string;
|
|
123
|
+
function: string;
|
|
124
|
+
};
|
|
125
|
+
label: {
|
|
126
|
+
index: string;
|
|
127
|
+
contentSource: string;
|
|
128
|
+
personalizationName: string;
|
|
129
|
+
function: string;
|
|
130
|
+
ouputDataType: string;
|
|
131
|
+
ouputFormat: string;
|
|
132
|
+
saveTemplate: string;
|
|
133
|
+
attribute: string;
|
|
134
|
+
promotionCodeAttr: string;
|
|
135
|
+
promotionPools: string;
|
|
136
|
+
selectEvent: string;
|
|
137
|
+
selectEventAttr: string;
|
|
138
|
+
selectSource: string;
|
|
139
|
+
displayFormat: string;
|
|
140
|
+
numberFormated: string;
|
|
141
|
+
formNumberDisplayFormat: {
|
|
142
|
+
currency: string;
|
|
143
|
+
currencySymbol: string;
|
|
144
|
+
currencyCode: string;
|
|
145
|
+
compact: string;
|
|
146
|
+
decimalPlace: string;
|
|
147
|
+
grouping: string;
|
|
148
|
+
decimal: string;
|
|
149
|
+
groupingIconTooltipTitle: string;
|
|
150
|
+
decimalIconTooltipTitle: string;
|
|
151
|
+
};
|
|
152
|
+
datimeDisplayFormat: {
|
|
153
|
+
dateDF: string;
|
|
154
|
+
timeDF: string;
|
|
155
|
+
short: string;
|
|
156
|
+
medium: string;
|
|
157
|
+
long: string;
|
|
158
|
+
use24hour: string;
|
|
159
|
+
};
|
|
160
|
+
};
|
|
161
|
+
message: {
|
|
162
|
+
confirmDeleteVariable: string;
|
|
163
|
+
selectDisableEventAttr: string;
|
|
164
|
+
};
|
|
165
|
+
dynamicContentType: {
|
|
166
|
+
customerAttr: string;
|
|
167
|
+
eventAttr: string;
|
|
168
|
+
promotionCode: string;
|
|
169
|
+
visitorAttr: string;
|
|
170
|
+
custom: string;
|
|
171
|
+
};
|
|
172
|
+
attrDisplayFormat: {
|
|
173
|
+
number: string;
|
|
174
|
+
percentage: string;
|
|
175
|
+
currency: string;
|
|
176
|
+
datetime: string;
|
|
177
|
+
rawString: string;
|
|
178
|
+
};
|
|
179
|
+
title: {
|
|
180
|
+
addDynamicContent: string;
|
|
181
|
+
deleteVariable: string;
|
|
182
|
+
};
|
|
183
|
+
};
|
|
184
|
+
sidePanel: {
|
|
185
|
+
highlightCheckbox: string;
|
|
186
|
+
title: string;
|
|
187
|
+
addDynamicContent: string;
|
|
188
|
+
};
|
|
189
|
+
};
|
|
35
190
|
linear: string;
|
|
36
191
|
radial: string;
|
|
37
192
|
gradientStyle: string;
|
|
@@ -65,6 +220,8 @@ export declare const convertLanguageJsonToObject: (json: any, objToConvertTo?: C
|
|
|
65
220
|
ninth: string;
|
|
66
221
|
tenth: string;
|
|
67
222
|
};
|
|
223
|
+
close: string;
|
|
224
|
+
cellAction: string;
|
|
68
225
|
}>, current?: string) => void;
|
|
69
226
|
export declare const t: (id: string, ...rest: any[]) => [string, ...any[]];
|
|
70
227
|
export declare const getTranslateMessage: (id: string, defaultMessage?: string, value?: Record<string, unknown>) => string;
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { Model } from './model';
|
|
2
|
+
export type TListAttributeItem = {
|
|
3
|
+
itemTypeId: number;
|
|
4
|
+
itemPropertyName: string;
|
|
5
|
+
itemPropertyDisplay: string;
|
|
6
|
+
dataType: string;
|
|
7
|
+
type: number;
|
|
8
|
+
autoSuggestion: number;
|
|
9
|
+
displayFormat: {
|
|
10
|
+
type: string;
|
|
11
|
+
config: Record<string, any>;
|
|
12
|
+
};
|
|
13
|
+
isSort: number;
|
|
14
|
+
isFilter: number;
|
|
15
|
+
propertyDisplayMultilang: {
|
|
16
|
+
DEFAULT_LANG: string;
|
|
17
|
+
[key: string]: string;
|
|
18
|
+
};
|
|
19
|
+
descriptionMultilang: {
|
|
20
|
+
DEFAULT_LANG: string;
|
|
21
|
+
[key: string]: string;
|
|
22
|
+
};
|
|
23
|
+
computeType?: any;
|
|
24
|
+
isEncrypt: number;
|
|
25
|
+
status: number;
|
|
26
|
+
isPk: number;
|
|
27
|
+
translateLabel: string;
|
|
28
|
+
translateDescription: string | null;
|
|
29
|
+
systemDefined: number;
|
|
30
|
+
itemTypeName: string;
|
|
31
|
+
eventPropertySyntax: string;
|
|
32
|
+
};
|
|
33
|
+
export type TListAttribute = {
|
|
34
|
+
eventPropertyName: string;
|
|
35
|
+
eventPropertyDisplay: string;
|
|
36
|
+
itemPropertyName: string;
|
|
37
|
+
dataType: string;
|
|
38
|
+
itemTypeId: number;
|
|
39
|
+
itemTypeName: string;
|
|
40
|
+
eventPropertySyntax: string;
|
|
41
|
+
insightPropertyIds: any;
|
|
42
|
+
propertyDisplayMultilang: Record<string, any>;
|
|
43
|
+
translateLabel: string;
|
|
44
|
+
itemSize: number;
|
|
45
|
+
propertyType: string;
|
|
46
|
+
items: TListAttributeItem[];
|
|
47
|
+
};
|
|
48
|
+
export declare class ListAttribute extends Model<TListAttribute> {
|
|
49
|
+
get id(): string;
|
|
50
|
+
get itemTypeId(): number | null;
|
|
51
|
+
get name(): string;
|
|
52
|
+
get defaultLabel(): string;
|
|
53
|
+
get label(): Record<string, any>;
|
|
54
|
+
get items(): TListAttributeItem[];
|
|
55
|
+
get eventPropertyName(): string | null;
|
|
56
|
+
get itemPropertyName(): string | null;
|
|
57
|
+
get propertyType(): number | null;
|
|
58
|
+
get eventPropertyDisplay(): string;
|
|
59
|
+
get itemTypeName(): string | null;
|
|
60
|
+
get dataType(): string;
|
|
61
|
+
}
|
|
62
|
+
export type TAttributeBO = {
|
|
63
|
+
groupId: string;
|
|
64
|
+
groupName: string;
|
|
65
|
+
itemTypeName: string;
|
|
66
|
+
properties: any[];
|
|
67
|
+
};
|
|
68
|
+
export declare class AttributeBO extends Model<TAttributeBO> {
|
|
69
|
+
get id(): string;
|
|
70
|
+
get label(): string;
|
|
71
|
+
get name(): string;
|
|
72
|
+
get properties(): any[];
|
|
73
|
+
}
|
|
74
|
+
export type TBusinessObject = {
|
|
75
|
+
item_type_id: number;
|
|
76
|
+
item_type_name: string;
|
|
77
|
+
item_type_display: string;
|
|
78
|
+
item_display_multilang: any;
|
|
79
|
+
status: number;
|
|
80
|
+
};
|
|
81
|
+
export declare class BusinessObject extends Model<TBusinessObject> {
|
|
82
|
+
get id(): number | "";
|
|
83
|
+
get value(): number | "";
|
|
84
|
+
get name(): string;
|
|
85
|
+
get label(): string;
|
|
86
|
+
get status(): number;
|
|
87
|
+
get multilang(): any;
|
|
88
|
+
}
|
|
89
|
+
export type TEvent = {
|
|
90
|
+
eventActionId: number;
|
|
91
|
+
eventCategoryId: number;
|
|
92
|
+
eventTrackingName: string;
|
|
93
|
+
eventNameDisplay: string;
|
|
94
|
+
insightPropertyId: number;
|
|
95
|
+
};
|
|
96
|
+
export declare class Event extends Model<TEvent> {
|
|
97
|
+
get value(): string;
|
|
98
|
+
get label(): string;
|
|
99
|
+
get eventActionId(): number | "";
|
|
100
|
+
get eventCategoryId(): number | "";
|
|
101
|
+
get eventTrackingName(): string;
|
|
102
|
+
get eventNameDisplay(): string;
|
|
103
|
+
get insightPropertyId(): number | "";
|
|
104
|
+
}
|
|
105
|
+
export type TSource = {
|
|
106
|
+
insightPropertyId: number;
|
|
107
|
+
insightPropertyName: string;
|
|
108
|
+
insightPropertyType: number;
|
|
109
|
+
};
|
|
110
|
+
export declare class Source extends Model<TSource> {
|
|
111
|
+
get value(): number | "";
|
|
112
|
+
get label(): string;
|
|
113
|
+
get insightPropertyId(): number | "";
|
|
114
|
+
get insightPropertyName(): string;
|
|
115
|
+
get insightPropertyType(): number | "";
|
|
116
|
+
}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { Model } from './model';
|
|
2
|
+
export class ListAttribute extends Model {
|
|
3
|
+
get id() {
|
|
4
|
+
return (this.model.itemTypeId ? this.model.itemTypeName : this.model.eventPropertyName) || '';
|
|
5
|
+
}
|
|
6
|
+
get itemTypeId() {
|
|
7
|
+
return this.model.itemTypeId || null;
|
|
8
|
+
}
|
|
9
|
+
get name() {
|
|
10
|
+
return this.model.translateLabel || '';
|
|
11
|
+
}
|
|
12
|
+
get defaultLabel() {
|
|
13
|
+
return this.model.eventPropertyDisplay || '';
|
|
14
|
+
}
|
|
15
|
+
get label() {
|
|
16
|
+
return this.model.propertyDisplayMultilang || {};
|
|
17
|
+
}
|
|
18
|
+
get items() {
|
|
19
|
+
return this.model.items || [];
|
|
20
|
+
}
|
|
21
|
+
get eventPropertyName() {
|
|
22
|
+
return this.model.eventPropertyName || null;
|
|
23
|
+
}
|
|
24
|
+
get itemPropertyName() {
|
|
25
|
+
return this.model.itemPropertyName || null;
|
|
26
|
+
}
|
|
27
|
+
get propertyType() {
|
|
28
|
+
return +(this.model.propertyType || '') || null;
|
|
29
|
+
}
|
|
30
|
+
get eventPropertyDisplay() {
|
|
31
|
+
return this.model.eventPropertyDisplay || '';
|
|
32
|
+
}
|
|
33
|
+
get itemTypeName() {
|
|
34
|
+
return this.model.itemTypeName || null;
|
|
35
|
+
}
|
|
36
|
+
get dataType() {
|
|
37
|
+
return this.model.dataType || '';
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
export class AttributeBO extends Model {
|
|
41
|
+
get id() {
|
|
42
|
+
return this.model.groupId || '';
|
|
43
|
+
}
|
|
44
|
+
get label() {
|
|
45
|
+
return this.model.groupName || '';
|
|
46
|
+
}
|
|
47
|
+
get name() {
|
|
48
|
+
return this.model.itemTypeName || '';
|
|
49
|
+
}
|
|
50
|
+
get properties() {
|
|
51
|
+
return this.model.properties || [];
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
export class BusinessObject extends Model {
|
|
55
|
+
get id() {
|
|
56
|
+
return this.model.item_type_id || '';
|
|
57
|
+
}
|
|
58
|
+
get value() {
|
|
59
|
+
return this.model.item_type_id || '';
|
|
60
|
+
}
|
|
61
|
+
get name() {
|
|
62
|
+
return this.model.item_type_name || '';
|
|
63
|
+
}
|
|
64
|
+
get label() {
|
|
65
|
+
return this.model.item_type_display || '';
|
|
66
|
+
}
|
|
67
|
+
get status() {
|
|
68
|
+
return this.model.status || 1;
|
|
69
|
+
}
|
|
70
|
+
get multilang() {
|
|
71
|
+
return this.model.item_display_multilang || {};
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
export class Event extends Model {
|
|
75
|
+
get value() {
|
|
76
|
+
return this.model.eventTrackingName || '';
|
|
77
|
+
}
|
|
78
|
+
get label() {
|
|
79
|
+
return this.model.eventNameDisplay || '';
|
|
80
|
+
}
|
|
81
|
+
get eventActionId() {
|
|
82
|
+
return this.model.eventActionId || '';
|
|
83
|
+
}
|
|
84
|
+
get eventCategoryId() {
|
|
85
|
+
return this.model.eventCategoryId || '';
|
|
86
|
+
}
|
|
87
|
+
get eventTrackingName() {
|
|
88
|
+
return this.model.eventTrackingName || '';
|
|
89
|
+
}
|
|
90
|
+
get eventNameDisplay() {
|
|
91
|
+
return this.model.eventNameDisplay || '';
|
|
92
|
+
}
|
|
93
|
+
get insightPropertyId() {
|
|
94
|
+
return this.model.insightPropertyId || '';
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
export class Source extends Model {
|
|
98
|
+
get value() {
|
|
99
|
+
return this.model.insightPropertyId || '';
|
|
100
|
+
}
|
|
101
|
+
get label() {
|
|
102
|
+
return this.model.insightPropertyName || '';
|
|
103
|
+
}
|
|
104
|
+
get insightPropertyId() {
|
|
105
|
+
return this.model.insightPropertyId || '';
|
|
106
|
+
}
|
|
107
|
+
get insightPropertyName() {
|
|
108
|
+
return this.model.insightPropertyName || '';
|
|
109
|
+
}
|
|
110
|
+
get insightPropertyType() {
|
|
111
|
+
return this.model.insightPropertyType || '';
|
|
112
|
+
}
|
|
113
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Model } from './model';
|
|
2
|
+
export type CustomFunction = {
|
|
3
|
+
template_id: number;
|
|
4
|
+
template_code: string;
|
|
5
|
+
template_type: string;
|
|
6
|
+
template_name: string;
|
|
7
|
+
custom_function: string;
|
|
8
|
+
output_data_type: string;
|
|
9
|
+
output_format: any;
|
|
10
|
+
};
|
|
11
|
+
export declare class MediaJsonCustomFunction extends Model<CustomFunction> {
|
|
12
|
+
get template_id(): number;
|
|
13
|
+
get template_code(): string;
|
|
14
|
+
get template_type(): string;
|
|
15
|
+
get template_name(): string;
|
|
16
|
+
get custom_function(): string;
|
|
17
|
+
get output_data_type(): string;
|
|
18
|
+
get output_format(): any;
|
|
19
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// Model
|
|
2
|
+
import { Model } from './model';
|
|
3
|
+
export class MediaJsonCustomFunction extends Model {
|
|
4
|
+
get template_id() {
|
|
5
|
+
return +(this.model.template_id || '');
|
|
6
|
+
}
|
|
7
|
+
get template_code() {
|
|
8
|
+
return this.model.template_code || '';
|
|
9
|
+
}
|
|
10
|
+
get template_type() {
|
|
11
|
+
return this.model.template_type || '';
|
|
12
|
+
}
|
|
13
|
+
get template_name() {
|
|
14
|
+
return this.model.template_name || '';
|
|
15
|
+
}
|
|
16
|
+
get custom_function() {
|
|
17
|
+
return this.model.custom_function || '';
|
|
18
|
+
}
|
|
19
|
+
get output_data_type() {
|
|
20
|
+
return this.model.output_data_type || '';
|
|
21
|
+
}
|
|
22
|
+
get output_format() {
|
|
23
|
+
return this.model.output_format || {};
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { TDataType } from '../components/molecules/AddDynamicContent';
|
|
2
|
+
import { Model } from './model';
|
|
3
|
+
export type TDynamicContentAttribute = {
|
|
4
|
+
customer: Array<{
|
|
5
|
+
value: string;
|
|
6
|
+
defaultLabel: string;
|
|
7
|
+
label: Record<string, any>;
|
|
8
|
+
dataType: TDataType;
|
|
9
|
+
status: string;
|
|
10
|
+
}>;
|
|
11
|
+
visitor: Array<{
|
|
12
|
+
value: string;
|
|
13
|
+
defaultLabel: string;
|
|
14
|
+
label: Record<string, any>;
|
|
15
|
+
dataType: TDataType;
|
|
16
|
+
status: string;
|
|
17
|
+
}>;
|
|
18
|
+
};
|
|
19
|
+
export declare class DynamicContentAttribute extends Model<TDynamicContentAttribute> {
|
|
20
|
+
get customer(): {
|
|
21
|
+
value: string;
|
|
22
|
+
defaultLabel: string;
|
|
23
|
+
label: Record<string, any>;
|
|
24
|
+
dataType: TDataType;
|
|
25
|
+
status: string;
|
|
26
|
+
}[];
|
|
27
|
+
get visitor(): {
|
|
28
|
+
value: string;
|
|
29
|
+
defaultLabel: string;
|
|
30
|
+
label: Record<string, any>;
|
|
31
|
+
dataType: TDataType;
|
|
32
|
+
status: string;
|
|
33
|
+
}[];
|
|
34
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Model } from './model';
|
|
2
|
+
export type TEventTrackingAttribute = {
|
|
3
|
+
eventAttributes: Record<string, any>[];
|
|
4
|
+
foreignObjects: Record<string, any>[];
|
|
5
|
+
mainObjects: Record<string, any>[];
|
|
6
|
+
};
|
|
7
|
+
export declare class EventTrackingAttribute extends Model<TEventTrackingAttribute> {
|
|
8
|
+
get eventAttributes(): Record<string, any>[];
|
|
9
|
+
get foreignObjects(): Record<string, any>[];
|
|
10
|
+
get mainObjects(): Record<string, any>[];
|
|
11
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// Model
|
|
2
|
+
import { Model } from './model';
|
|
3
|
+
export class EventTrackingAttribute extends Model {
|
|
4
|
+
get eventAttributes() {
|
|
5
|
+
return this.model.eventAttributes || [];
|
|
6
|
+
}
|
|
7
|
+
get foreignObjects() {
|
|
8
|
+
return this.model.foreignObjects || [];
|
|
9
|
+
}
|
|
10
|
+
get mainObjects() {
|
|
11
|
+
return this.model.mainObjects || [];
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Model } from './model';
|
|
2
|
+
export type TPromotionPool = {
|
|
3
|
+
id: number;
|
|
4
|
+
name: string;
|
|
5
|
+
code: string;
|
|
6
|
+
};
|
|
7
|
+
export declare class PromotionPool extends Model<TPromotionPool> {
|
|
8
|
+
get id(): number | "";
|
|
9
|
+
get name(): string;
|
|
10
|
+
get code(): string;
|
|
11
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import moment from 'moment';
|
|
2
2
|
import { Model } from './model';
|
|
3
|
-
export type
|
|
4
|
-
|
|
3
|
+
export type TSavedMedia = {
|
|
4
|
+
media_id: string;
|
|
5
5
|
network_id: string;
|
|
6
|
-
|
|
6
|
+
name: string;
|
|
7
7
|
properties: {
|
|
8
8
|
url: string;
|
|
9
9
|
size: number;
|
|
10
|
-
|
|
10
|
+
file: {
|
|
11
11
|
path: string;
|
|
12
12
|
};
|
|
13
13
|
extension: string;
|
|
@@ -22,7 +22,7 @@ export type TSavedImage = {
|
|
|
22
22
|
status: string;
|
|
23
23
|
ctime: string;
|
|
24
24
|
};
|
|
25
|
-
export declare class
|
|
25
|
+
export declare class SavedMedia extends Model<TSavedMedia> {
|
|
26
26
|
get id(): string;
|
|
27
27
|
get name(): string;
|
|
28
28
|
get url(): string;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import moment from 'moment';
|
|
2
2
|
import { Model } from './model';
|
|
3
|
-
export class
|
|
3
|
+
export class SavedMedia extends Model {
|
|
4
4
|
get id() {
|
|
5
|
-
return this.model.
|
|
5
|
+
return this.model.media_id || '';
|
|
6
6
|
}
|
|
7
7
|
get name() {
|
|
8
|
-
return this.model.
|
|
8
|
+
return this.model.name || '';
|
|
9
9
|
}
|
|
10
10
|
get url() {
|
|
11
11
|
var _a;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { APIParams } from '../../components/molecules/AddDynamicContent';
|
|
3
|
+
import type { PayloadInfo } from '../../types';
|
|
4
|
+
type OptionHasDefault = 'queryKey' | 'queryFn';
|
|
5
|
+
type GetListAllEvents<T> = {
|
|
6
|
+
apiConfig: APIParams;
|
|
7
|
+
infos: PayloadInfo;
|
|
8
|
+
options?: Omit<UseQueryOptions<any, any, T, any[]>, OptionHasDefault>;
|
|
9
|
+
};
|
|
10
|
+
export declare const useGetListAllEvents: <T = any>(props: GetListAllEvents<T>) => import("@tanstack/react-query").UseQueryResult<T, any>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// Libraries
|
|
2
|
+
import { useQuery } from '@tanstack/react-query';
|
|
3
|
+
// Constants
|
|
4
|
+
import { QUERY_KEYS } from '../../constants/queries';
|
|
5
|
+
// Services
|
|
6
|
+
import { getListAllEvents } from '../../services/MediaTemplateDesign/BusinessObject';
|
|
7
|
+
export const useGetListAllEvents = (props) => {
|
|
8
|
+
const { options, apiConfig, infos } = props || {};
|
|
9
|
+
// Selectors
|
|
10
|
+
return useQuery(Object.assign({ queryKey: [QUERY_KEYS.GET_LIST_ALL_EVENT], queryFn: () => getListAllEvents({ url: apiConfig.url }, infos), placeholderData: {
|
|
11
|
+
rows: [],
|
|
12
|
+
total: 0,
|
|
13
|
+
} }, options));
|
|
14
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
|
|
2
|
+
import type { APIParams } from '../../components/molecules/AddDynamicContent';
|
|
3
|
+
import type { PayloadInfo } from '../../types';
|
|
4
|
+
type OptionHasDefault = 'queryKey' | 'queryFn';
|
|
5
|
+
type GetListAttributeBOProps<T> = {
|
|
6
|
+
itemTypeIds?: number[];
|
|
7
|
+
options?: Omit<UseQueryOptions<Record<string, any>, any, T, any[]>, OptionHasDefault>;
|
|
8
|
+
};
|
|
9
|
+
export declare const useGetListAttributeBO: <T = Record<string, any>>(apiParams: APIParams, infos: PayloadInfo, props?: GetListAttributeBOProps<T> | undefined) => UseQueryResult<T, unknown>;
|
|
10
|
+
export declare const getListAttributeBOQuery: ({ itemTypeIds, url, infos, }: {
|
|
11
|
+
itemTypeIds: (number | null)[];
|
|
12
|
+
} & {
|
|
13
|
+
url: string;
|
|
14
|
+
} & Record<string, any> & {
|
|
15
|
+
infos: PayloadInfo;
|
|
16
|
+
}) => Promise<any>;
|
|
17
|
+
export {};
|