@unchainedshop/admin-ui 4.8.31 → 4.8.32
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/out/403/index.html +3 -3
- package/out/404/index.html +3 -3
- package/out/404.html +3 -3
- package/out/423/index.html +3 -3
- package/out/500/index.html +3 -3
- package/out/_next/static/chunks/{0696190awbl-j.js → 0a5nr3-_q7xx1.js} +10 -10
- package/out/_next/static/chunks/{1m85ne6w_6tei.js → 11go520d1hcm5.js} +1 -1
- package/out/_next/static/chunks/{2-kvt9e7irukm.js → 182l1mlbf0glb.js} +1 -1
- package/out/_next/static/chunks/{09avk6mqdin_1.js → 1wnuiwsbi70eq.js} +1 -1
- package/out/_next/static/chunks/{0uls4bq8a7gyh.js → 2wmsx4gjbgvfv.js} +3 -3
- package/out/_next/static/chunks/{1_3e6x79fcyv3.js → 41p3ng89i5lem.js} +1 -1
- package/out/_next/static/{4ESrB8YpR2n44PFePtbgX → jOx5PlckLwWIJ5yrvePdU}/_buildManifest.js +2 -2
- package/out/_offline/index.html +3 -3
- package/out/account/forgot-password/index.html +3 -3
- package/out/account/index.html +3 -3
- package/out/assortments/AssortmentDetailPage/index.html +3 -3
- package/out/assortments/index.html +3 -3
- package/out/assortments/new/index.html +3 -3
- package/out/copilot/index.html +3 -3
- package/out/country/CountryDetailPage/index.html +3 -3
- package/out/country/index.html +3 -3
- package/out/country/new/index.html +3 -3
- package/out/currency/CurrencyDetailPage/index.html +3 -3
- package/out/currency/index.html +3 -3
- package/out/currency/new/index.html +3 -3
- package/out/delivery-provider/DeliveryProviderDetailPage/index.html +3 -3
- package/out/delivery-provider/index.html +3 -3
- package/out/delivery-provider/new/index.html +3 -3
- package/out/enrollments/EnrollmentDetailPage/index.html +3 -3
- package/out/enrollments/index.html +3 -3
- package/out/events/EventDetailPage/index.html +3 -3
- package/out/events/index.html +3 -3
- package/out/exports/index.html +3 -3
- package/out/external/index.html +3 -3
- package/out/filters/FilterDetailPage/index.html +3 -3
- package/out/filters/index.html +3 -3
- package/out/filters/new/index.html +3 -3
- package/out/index.html +3 -3
- package/out/install/index.html +3 -3
- package/out/language/LanguageDetailPage/index.html +3 -3
- package/out/language/index.html +3 -3
- package/out/language/new/index.html +3 -3
- package/out/log-in/index.html +3 -3
- package/out/orders/OrderDetailPage/index.html +3 -3
- package/out/orders/index.html +3 -3
- package/out/payment-provider/PaymentProviderDetailPage/index.html +3 -3
- package/out/payment-provider/index.html +3 -3
- package/out/payment-provider/new/index.html +3 -3
- package/out/products/ProductDetailPage/index.html +3 -3
- package/out/products/index.html +3 -3
- package/out/products/new/index.html +3 -3
- package/out/quotations/QuotationDetailPage/index.html +3 -3
- package/out/quotations/index.html +3 -3
- package/out/reset-password/index.html +3 -3
- package/out/sign-up/index.html +3 -3
- package/out/styleguide/index.html +3 -3
- package/out/tokens/TokenDetailPage/index.html +3 -3
- package/out/tokens/index.html +3 -3
- package/out/users/UserDetailPage/index.html +3 -3
- package/out/users/index.html +3 -3
- package/out/users/new/index.html +3 -3
- package/out/verify-email/index.html +3 -3
- package/out/warehousing-provider/WarehousingProviderDetailPage/index.html +3 -3
- package/out/warehousing-provider/index.html +3 -3
- package/out/warehousing-provider/new/index.html +3 -3
- package/out/works/WorkDetailPage/index.html +3 -3
- package/out/works/WorkQueueListView/index.html +3 -3
- package/out/works/index.html +3 -3
- package/out/works/management/index.html +3 -3
- package/package.json +31 -31
- package/dist/chunk-3L6EZQ6P.js +0 -135
- package/dist/chunk-54DKBWXV.js +0 -33
- package/dist/chunk-5WPFHQZN.js +0 -388
- package/dist/chunk-6UGLNLJG.js +0 -44
- package/dist/chunk-BMDNY67T.js +0 -22547
- package/dist/chunk-BOMSMJF2.js +0 -77
- package/dist/chunk-COV7BREX.js +0 -50
- package/dist/chunk-E77YIMGR.js +0 -2083
- package/dist/chunk-EJDZRZSZ.js +0 -59
- package/dist/chunk-ELPURWDC.js +0 -75
- package/dist/chunk-F6LBNV3H.js +0 -9
- package/dist/chunk-FDHXLNZQ.js +0 -44
- package/dist/chunk-GY2DRQGW.js +0 -166
- package/dist/chunk-HERLM47Z.js +0 -309
- package/dist/chunk-HJKRGBDG.js +0 -694
- package/dist/chunk-I64TXIE7.js +0 -618
- package/dist/chunk-IAQPLRXZ.js +0 -16
- package/dist/chunk-ICJH36K4.js +0 -326
- package/dist/chunk-ILYPJE4N.js +0 -57
- package/dist/chunk-IWKDBADX.js +0 -73
- package/dist/chunk-IXBMHOB5.js +0 -13
- package/dist/chunk-IYKPRAWC.js +0 -26
- package/dist/chunk-J23QSWDL.js +0 -8
- package/dist/chunk-KH5MK6ZW.js +0 -18
- package/dist/chunk-KRIRF7F6.js +0 -76
- package/dist/chunk-NT7RB7AK.js +0 -70
- package/dist/chunk-OKGJ6HDE.js +0 -26
- package/dist/chunk-OTXM2UCD.js +0 -19
- package/dist/chunk-PJLYVMUM.js +0 -3308
- package/dist/chunk-PUI5BIKO.js +0 -41
- package/dist/chunk-Q6S3LBUF.js +0 -180
- package/dist/chunk-QHR23GVH.js +0 -1099
- package/dist/chunk-QWQ3WJJN.js +0 -1
- package/dist/chunk-RAQV2GYF.js +0 -70
- package/dist/chunk-VBO377AY.js +0 -14
- package/dist/chunk-VYEXPG3M.js +0 -107
- package/dist/chunk-WPLOTFGW.js +0 -36
- package/dist/chunk-YO6PT7KD.js +0 -13
- package/dist/chunk-ZUOVKRKC.js +0 -957
- package/dist/components/ui/Accordion/Accordion.d.ts +0 -11
- package/dist/components/ui/Accordion/Accordion.d.ts.map +0 -1
- package/dist/components/ui/Accordion/AccordionHeader.d.ts +0 -6
- package/dist/components/ui/Accordion/AccordionHeader.d.ts.map +0 -1
- package/dist/components/ui/Accordion/AccordionItem.d.ts +0 -11
- package/dist/components/ui/Accordion/AccordionItem.d.ts.map +0 -1
- package/dist/components/ui/ActiveInActive.d.ts +0 -10
- package/dist/components/ui/ActiveInActive.d.ts.map +0 -1
- package/dist/components/ui/AnimatedCounter.d.ts +0 -7
- package/dist/components/ui/AnimatedCounter.d.ts.map +0 -1
- package/dist/components/ui/Badge.d.ts +0 -10
- package/dist/components/ui/Badge.d.ts.map +0 -1
- package/dist/components/ui/BreadCrumbs.d.ts +0 -7
- package/dist/components/ui/BreadCrumbs.d.ts.map +0 -1
- package/dist/components/ui/Button.d.ts +0 -36
- package/dist/components/ui/Button.d.ts.map +0 -1
- package/dist/components/ui/CopyableText.d.ts +0 -5
- package/dist/components/ui/CopyableText.d.ts.map +0 -1
- package/dist/components/ui/DateInput.d.ts +0 -15
- package/dist/components/ui/DateInput.d.ts.map +0 -1
- package/dist/components/ui/DateRangeFilterInput.d.ts +0 -4
- package/dist/components/ui/DateRangeFilterInput.d.ts.map +0 -1
- package/dist/components/ui/DetailHeader.d.ts +0 -6
- package/dist/components/ui/DetailHeader.d.ts.map +0 -1
- package/dist/components/ui/DraggableIcon.d.ts +0 -3
- package/dist/components/ui/DraggableIcon.d.ts.map +0 -1
- package/dist/components/ui/ErrorBoundary.d.ts +0 -18
- package/dist/components/ui/ErrorBoundary.d.ts.map +0 -1
- package/dist/components/ui/ErrorFallback.d.ts +0 -6
- package/dist/components/ui/ErrorFallback.d.ts.map +0 -1
- package/dist/components/ui/HelpText.d.ts +0 -11
- package/dist/components/ui/HelpText.d.ts.map +0 -1
- package/dist/components/ui/ImageWithFallback.d.ts +0 -7
- package/dist/components/ui/ImageWithFallback.d.ts.map +0 -1
- package/dist/components/ui/InfoTextBanner.d.ts +0 -6
- package/dist/components/ui/InfoTextBanner.d.ts.map +0 -1
- package/dist/components/ui/JSONView.d.ts +0 -6
- package/dist/components/ui/JSONView.d.ts.map +0 -1
- package/dist/components/ui/ListHeader.d.ts +0 -6
- package/dist/components/ui/ListHeader.d.ts.map +0 -1
- package/dist/components/ui/Loading.d.ts +0 -10
- package/dist/components/ui/Loading.d.ts.map +0 -1
- package/dist/components/ui/NoData.d.ts +0 -7
- package/dist/components/ui/NoData.d.ts.map +0 -1
- package/dist/components/ui/NoImage.d.ts +0 -7
- package/dist/components/ui/NoImage.d.ts.map +0 -1
- package/dist/components/ui/NoImageSvg.d.ts +0 -8
- package/dist/components/ui/NoImageSvg.d.ts.map +0 -1
- package/dist/components/ui/PageHeader.d.ts +0 -11
- package/dist/components/ui/PageHeader.d.ts.map +0 -1
- package/dist/components/ui/Pagination.d.ts +0 -8
- package/dist/components/ui/Pagination.d.ts.map +0 -1
- package/dist/components/ui/Portal/Portal.d.ts +0 -16
- package/dist/components/ui/Portal/Portal.d.ts.map +0 -1
- package/dist/components/ui/Portal/Portal.types.d.ts +0 -16
- package/dist/components/ui/Portal/Portal.types.d.ts.map +0 -1
- package/dist/components/ui/SaveAndCancelButtons.d.ts +0 -10
- package/dist/components/ui/SaveAndCancelButtons.d.ts.map +0 -1
- package/dist/components/ui/SearchField.d.ts +0 -7
- package/dist/components/ui/SearchField.d.ts.map +0 -1
- package/dist/components/ui/Tab.d.ts +0 -18
- package/dist/components/ui/Tab.d.ts.map +0 -1
- package/dist/components/ui/Tag/TagInput.d.ts +0 -19
- package/dist/components/ui/Tag/TagInput.d.ts.map +0 -1
- package/dist/components/ui/Tag/TagList.d.ts +0 -8
- package/dist/components/ui/Tag/TagList.d.ts.map +0 -1
- package/dist/components/ui/Tag/TagListForm.d.ts +0 -8
- package/dist/components/ui/Tag/TagListForm.d.ts.map +0 -1
- package/dist/components/ui/Toggle.d.ts +0 -11
- package/dist/components/ui/Toggle.d.ts.map +0 -1
- package/dist/components/ui/ToolTip.d.ts +0 -7
- package/dist/components/ui/ToolTip.d.ts.map +0 -1
- package/dist/components/ui/card.d.ts +0 -9
- package/dist/components/ui/card.d.ts.map +0 -1
- package/dist/components/ui/chart.d.ts +0 -42
- package/dist/components/ui/chart.d.ts.map +0 -1
- package/dist/components/ui/form/CheckboxField.d.ts +0 -4
- package/dist/components/ui/form/CheckboxField.d.ts.map +0 -1
- package/dist/components/ui/form/ChoicesField.d.ts +0 -12
- package/dist/components/ui/form/ChoicesField.d.ts.map +0 -1
- package/dist/components/ui/form/Combobox.d.ts +0 -20
- package/dist/components/ui/form/Combobox.d.ts.map +0 -1
- package/dist/components/ui/form/DatePickerField.d.ts +0 -4
- package/dist/components/ui/form/DatePickerField.d.ts.map +0 -1
- package/dist/components/ui/form/EmailField.d.ts +0 -7
- package/dist/components/ui/form/EmailField.d.ts.map +0 -1
- package/dist/components/ui/form/FieldWithHelp.d.ts +0 -10
- package/dist/components/ui/form/FieldWithHelp.d.ts.map +0 -1
- package/dist/components/ui/form/FieldWrapper.d.ts +0 -8
- package/dist/components/ui/form/FieldWrapper.d.ts.map +0 -1
- package/dist/components/ui/form/FormErrors.d.ts +0 -6
- package/dist/components/ui/form/FormErrors.d.ts.map +0 -1
- package/dist/components/ui/form/JSONAreaField.d.ts +0 -7
- package/dist/components/ui/form/JSONAreaField.d.ts.map +0 -1
- package/dist/components/ui/form/MarkdownTextAreaField.d.ts +0 -8
- package/dist/components/ui/form/MarkdownTextAreaField.d.ts.map +0 -1
- package/dist/components/ui/form/PasswordField.d.ts +0 -3
- package/dist/components/ui/form/PasswordField.d.ts.map +0 -1
- package/dist/components/ui/form/SelectField.d.ts +0 -11
- package/dist/components/ui/form/SelectField.d.ts.map +0 -1
- package/dist/components/ui/form/SubmitButton.d.ts +0 -9
- package/dist/components/ui/form/SubmitButton.d.ts.map +0 -1
- package/dist/components/ui/form/TagInputField.d.ts +0 -7
- package/dist/components/ui/form/TagInputField.d.ts.map +0 -1
- package/dist/components/ui/form/TextAreaField.d.ts +0 -8
- package/dist/components/ui/form/TextAreaField.d.ts.map +0 -1
- package/dist/components/ui/form/TextField.d.ts +0 -10
- package/dist/components/ui/form/TextField.d.ts.map +0 -1
- package/dist/components/ui/form/index.d.ts +0 -18
- package/dist/components/ui/form/index.d.ts.map +0 -1
- package/dist/components/ui/icons.d.ts +0 -4
- package/dist/components/ui/icons.d.ts.map +0 -1
- package/dist/components/ui/index.d.ts +0 -47
- package/dist/components/ui/index.d.ts.map +0 -1
- package/dist/form.js +0 -2617
- package/dist/gql/operation-types.d.ts +0 -13239
- package/dist/gql/operation-types.d.ts.map +0 -1
- package/dist/gql/schema-types.d.ts +0 -3876
- package/dist/gql/schema-types.d.ts.map +0 -1
- package/dist/gql/types.d.ts +0 -3
- package/dist/gql/types.d.ts.map +0 -1
- package/dist/hooks.js +0 -49
- package/dist/lib/utils.d.ts +0 -3
- package/dist/lib/utils.d.ts.map +0 -1
- package/dist/modal.js +0 -51
- package/dist/modules/Auth/AuthContext.d.ts +0 -9
- package/dist/modules/Auth/AuthContext.d.ts.map +0 -1
- package/dist/modules/Auth/useAuth.d.ts +0 -6
- package/dist/modules/Auth/useAuth.d.ts.map +0 -1
- package/dist/modules/UnchainedContext/UnchainedContext.d.ts +0 -8
- package/dist/modules/UnchainedContext/UnchainedContext.d.ts.map +0 -1
- package/dist/modules/UnchainedContext/useUnchainedContext.d.ts +0 -7
- package/dist/modules/UnchainedContext/useUnchainedContext.d.ts.map +0 -1
- package/dist/modules/accounts/fragment/MD5MetaDataFragment.d.ts +0 -3
- package/dist/modules/accounts/fragment/MD5MetaDataFragment.d.ts.map +0 -1
- package/dist/modules/accounts/fragment/UserFragment.d.ts +0 -3
- package/dist/modules/accounts/fragment/UserFragment.d.ts.map +0 -1
- package/dist/modules/accounts/hooks/useCurrentUser.d.ts +0 -10
- package/dist/modules/accounts/hooks/useCurrentUser.d.ts.map +0 -1
- package/dist/modules/accounts/hooks/useUsersCount.d.ts +0 -8
- package/dist/modules/accounts/hooks/useUsersCount.d.ts.map +0 -1
- package/dist/modules/accounts.js +0 -1349
- package/dist/modules/assortment/hooks/useAssortmentsCount.d.ts +0 -8
- package/dist/modules/assortment/hooks/useAssortmentsCount.d.ts.map +0 -1
- package/dist/modules/assortment.js +0 -1205
- package/dist/modules/common/components/AppContext.d.ts +0 -18
- package/dist/modules/common/components/AppContext.d.ts.map +0 -1
- package/dist/modules/common/components/FormWrapper.d.ts +0 -8
- package/dist/modules/common/components/FormWrapper.d.ts.map +0 -1
- package/dist/modules/common/components/LocaleWrapper.d.ts +0 -7
- package/dist/modules/common/components/LocaleWrapper.d.ts.map +0 -1
- package/dist/modules/common/components/MediaAvatar.d.ts +0 -6
- package/dist/modules/common/components/MediaAvatar.d.ts.map +0 -1
- package/dist/modules/common/components/SelectOptions.d.ts +0 -17
- package/dist/modules/common/components/SelectOptions.d.ts.map +0 -1
- package/dist/modules/common/components/Table.d.ts +0 -25
- package/dist/modules/common/components/Table.d.ts.map +0 -1
- package/dist/modules/common/components/TableCell.d.ts +0 -12
- package/dist/modules/common/components/TableCell.d.ts.map +0 -1
- package/dist/modules/common/components/TableRow.d.ts +0 -10
- package/dist/modules/common/components/TableRow.d.ts.map +0 -1
- package/dist/modules/common/components/ThemeWrapper.d.ts +0 -10
- package/dist/modules/common/components/ThemeWrapper.d.ts.map +0 -1
- package/dist/modules/common/data/iso-codes.d.ts +0 -4
- package/dist/modules/common/data/iso-codes.d.ts.map +0 -1
- package/dist/modules/common/data/miscellaneous.d.ts +0 -52
- package/dist/modules/common/data/miscellaneous.d.ts.map +0 -1
- package/dist/modules/common/fragments/AddressFragment.d.ts +0 -3
- package/dist/modules/common/fragments/AddressFragment.d.ts.map +0 -1
- package/dist/modules/common/hooks/useApp.d.ts +0 -11
- package/dist/modules/common/hooks/useApp.d.ts.map +0 -1
- package/dist/modules/common/hooks/useBulkResultHandler.d.ts +0 -8
- package/dist/modules/common/hooks/useBulkResultHandler.d.ts.map +0 -1
- package/dist/modules/common/hooks/useBulkSelection.d.ts +0 -12
- package/dist/modules/common/hooks/useBulkSelection.d.ts.map +0 -1
- package/dist/modules/common/hooks/useCSVExport.d.ts +0 -10
- package/dist/modules/common/hooks/useCSVExport.d.ts.map +0 -1
- package/dist/modules/common/hooks/useCSVImport.d.ts +0 -18
- package/dist/modules/common/hooks/useCSVImport.d.ts.map +0 -1
- package/dist/modules/common/hooks/useChatEndpointChecker.d.ts +0 -5
- package/dist/modules/common/hooks/useChatEndpointChecker.d.ts.map +0 -1
- package/dist/modules/common/hooks/useConfirmMediaUpload.d.ts +0 -10
- package/dist/modules/common/hooks/useConfirmMediaUpload.d.ts.map +0 -1
- package/dist/modules/common/hooks/useDashboardMetrics.d.ts +0 -23
- package/dist/modules/common/hooks/useDashboardMetrics.d.ts.map +0 -1
- package/dist/modules/common/hooks/useLocalStorage.d.ts +0 -3
- package/dist/modules/common/hooks/useLocalStorage.d.ts.map +0 -1
- package/dist/modules/common/hooks/useOrderAnalytics.d.ts +0 -25
- package/dist/modules/common/hooks/useOrderAnalytics.d.ts.map +0 -1
- package/dist/modules/common/hooks/useOrderItemsAnalytics.d.ts +0 -16
- package/dist/modules/common/hooks/useOrderItemsAnalytics.d.ts.map +0 -1
- package/dist/modules/common/hooks/useOutsideClick.d.ts +0 -3
- package/dist/modules/common/hooks/useOutsideClick.d.ts.map +0 -1
- package/dist/modules/common/hooks/usePortal.d.ts +0 -20
- package/dist/modules/common/hooks/usePortal.d.ts.map +0 -1
- package/dist/modules/common/hooks/useScrollRestoration.d.ts +0 -8
- package/dist/modules/common/hooks/useScrollRestoration.d.ts.map +0 -1
- package/dist/modules/common/hooks/useShopConfiguration.d.ts +0 -8
- package/dist/modules/common/hooks/useShopConfiguration.d.ts.map +0 -1
- package/dist/modules/common/hooks/useShopInfo.d.ts +0 -41
- package/dist/modules/common/hooks/useShopInfo.d.ts.map +0 -1
- package/dist/modules/common/hooks/useStatusTypes.d.ts +0 -10
- package/dist/modules/common/hooks/useStatusTypes.d.ts.map +0 -1
- package/dist/modules/common/hooks/useSystemRoles.d.ts +0 -7
- package/dist/modules/common/hooks/useSystemRoles.d.ts.map +0 -1
- package/dist/modules/common/hooks/useTheme.d.ts +0 -7
- package/dist/modules/common/hooks/useTheme.d.ts.map +0 -1
- package/dist/modules/common/utils/deBounce.d.ts +0 -3
- package/dist/modules/common/utils/deBounce.d.ts.map +0 -1
- package/dist/modules/common/utils/defaultNextImageLoader.d.ts +0 -7
- package/dist/modules/common/utils/defaultNextImageLoader.d.ts.map +0 -1
- package/dist/modules/common/utils/formatUsername.d.ts +0 -3
- package/dist/modules/common/utils/formatUsername.d.ts.map +0 -1
- package/dist/modules/common/utils/getSetupStepsConfigurationsMeta.d.ts +0 -30
- package/dist/modules/common/utils/getSetupStepsConfigurationsMeta.d.ts.map +0 -1
- package/dist/modules/common/utils/normalizeFilterKeys.d.ts +0 -4
- package/dist/modules/common/utils/normalizeFilterKeys.d.ts.map +0 -1
- package/dist/modules/common/utils/sharedContext.d.ts +0 -9
- package/dist/modules/common/utils/sharedContext.d.ts.map +0 -1
- package/dist/modules/common/utils/useFormatDateTime.d.ts +0 -16
- package/dist/modules/common/utils/useFormatDateTime.d.ts.map +0 -1
- package/dist/modules/common/utils/utils.d.ts +0 -21
- package/dist/modules/common/utils/utils.d.ts.map +0 -1
- package/dist/modules/country/fragments/CountryFragment.d.ts +0 -3
- package/dist/modules/country/fragments/CountryFragment.d.ts.map +0 -1
- package/dist/modules/country/hooks/useCountries.d.ts +0 -22
- package/dist/modules/country/hooks/useCountries.d.ts.map +0 -1
- package/dist/modules/country.js +0 -108
- package/dist/modules/currency.js +0 -119
- package/dist/modules/delivery-provider.js +0 -269
- package/dist/modules/enrollment.js +0 -431
- package/dist/modules/event.js +0 -123
- package/dist/modules/filter.js +0 -497
- package/dist/modules/forms/components/Form.d.ts +0 -8
- package/dist/modules/forms/components/Form.d.ts.map +0 -1
- package/dist/modules/forms/hooks/useField.d.ts +0 -35
- package/dist/modules/forms/hooks/useField.d.ts.map +0 -1
- package/dist/modules/forms/hooks/useForm.d.ts +0 -44
- package/dist/modules/forms/hooks/useForm.d.ts.map +0 -1
- package/dist/modules/forms/hooks/useFormContext.d.ts +0 -3
- package/dist/modules/forms/hooks/useFormContext.d.ts.map +0 -1
- package/dist/modules/forms/lib/FormContext.d.ts +0 -13
- package/dist/modules/forms/lib/FormContext.d.ts.map +0 -1
- package/dist/modules/forms/lib/clean.d.ts +0 -3
- package/dist/modules/forms/lib/clean.d.ts.map +0 -1
- package/dist/modules/forms/lib/validators.d.ts +0 -20
- package/dist/modules/forms/lib/validators.d.ts.map +0 -1
- package/dist/modules/language/fragments/LanguageFragment.d.ts +0 -3
- package/dist/modules/language/fragments/LanguageFragment.d.ts.map +0 -1
- package/dist/modules/language/hooks/useLanguages.d.ts +0 -19
- package/dist/modules/language/hooks/useLanguages.d.ts.map +0 -1
- package/dist/modules/language.js +0 -106
- package/dist/modules/modal/components/AlertMessage.d.ts +0 -9
- package/dist/modules/modal/components/AlertMessage.d.ts.map +0 -1
- package/dist/modules/modal/components/DangerMessage.d.ts +0 -13
- package/dist/modules/modal/components/DangerMessage.d.ts.map +0 -1
- package/dist/modules/modal/components/ImportResultMessage.d.ts +0 -14
- package/dist/modules/modal/components/ImportResultMessage.d.ts.map +0 -1
- package/dist/modules/modal/components/Modal.d.ts +0 -10
- package/dist/modules/modal/components/Modal.d.ts.map +0 -1
- package/dist/modules/modal/components/ModalWrapper.d.ts +0 -6
- package/dist/modules/modal/components/ModalWrapper.d.ts.map +0 -1
- package/dist/modules/modal/hooks/useModal.d.ts +0 -7
- package/dist/modules/modal/hooks/useModal.d.ts.map +0 -1
- package/dist/modules/modal/utils/ModalContext.d.ts +0 -9
- package/dist/modules/modal/utils/ModalContext.d.ts.map +0 -1
- package/dist/modules/order/fragments/OrderDetailFragment.d.ts +0 -3
- package/dist/modules/order/fragments/OrderDetailFragment.d.ts.map +0 -1
- package/dist/modules/order/fragments/OrderFragment.d.ts +0 -3
- package/dist/modules/order/fragments/OrderFragment.d.ts.map +0 -1
- package/dist/modules/order/hooks/useOrders.d.ts +0 -46
- package/dist/modules/order/hooks/useOrders.d.ts.map +0 -1
- package/dist/modules/order.js +0 -569
- package/dist/modules/payment-providers.js +0 -206
- package/dist/modules/product/hooks/useProductsCount.d.ts +0 -8
- package/dist/modules/product/hooks/useProductsCount.d.ts.map +0 -1
- package/dist/modules/product-review.js +0 -270
- package/dist/modules/product.js +0 -6914
- package/dist/modules/quotation.js +0 -324
- package/dist/modules/token.js +0 -143
- package/dist/modules/warehousing-providers.js +0 -206
- package/dist/modules/work/fragments/WorkFragment.d.ts +0 -3
- package/dist/modules/work/fragments/WorkFragment.d.ts.map +0 -1
- package/dist/modules/work/hooks/useAddWork.d.ts +0 -6
- package/dist/modules/work/hooks/useAddWork.d.ts.map +0 -1
- package/dist/modules/work/hooks/useWork.d.ts +0 -32
- package/dist/modules/work/hooks/useWork.d.ts.map +0 -1
- package/dist/modules/work.js +0 -232
- package/dist/plugins.js +0 -13
- package/dist/providers.js +0 -9
- package/dist/sdk/hooks.d.ts +0 -12
- package/dist/sdk/hooks.d.ts.map +0 -1
- package/dist/sdk/modal.d.ts +0 -7
- package/dist/sdk/modal.d.ts.map +0 -1
- package/dist/sdk/plugins.d.ts +0 -78
- package/dist/sdk/plugins.d.ts.map +0 -1
- package/dist/sdk/providers.d.ts +0 -5
- package/dist/sdk/providers.d.ts.map +0 -1
- package/dist/sdk/shims/admin-ui-plugins.d.ts +0 -3
- package/dist/sdk/shims/admin-ui-plugins.d.ts.map +0 -1
- package/dist/sdk/shims/apollo-client-react.d.ts +0 -3
- package/dist/sdk/shims/apollo-client-react.d.ts.map +0 -1
- package/dist/sdk/shims/apollo-client.d.ts +0 -3
- package/dist/sdk/shims/apollo-client.d.ts.map +0 -1
- package/dist/sdk/shims/host.d.ts +0 -17
- package/dist/sdk/shims/host.d.ts.map +0 -1
- package/dist/sdk/shims/next-head.d.ts +0 -3
- package/dist/sdk/shims/next-head.d.ts.map +0 -1
- package/dist/sdk/shims/next-image.d.ts +0 -3
- package/dist/sdk/shims/next-image.d.ts.map +0 -1
- package/dist/sdk/shims/next-link.d.ts +0 -3
- package/dist/sdk/shims/next-link.d.ts.map +0 -1
- package/dist/sdk/shims/next-router.d.ts +0 -3
- package/dist/sdk/shims/next-router.d.ts.map +0 -1
- package/dist/sdk/shims/react-dom-client.d.ts +0 -3
- package/dist/sdk/shims/react-dom-client.d.ts.map +0 -1
- package/dist/sdk/shims/react-dom.d.ts +0 -3
- package/dist/sdk/shims/react-dom.d.ts.map +0 -1
- package/dist/sdk/shims/react-hook-form.d.ts +0 -3
- package/dist/sdk/shims/react-hook-form.d.ts.map +0 -1
- package/dist/sdk/shims/react-intl.d.ts +0 -3
- package/dist/sdk/shims/react-intl.d.ts.map +0 -1
- package/dist/sdk/shims/react-jsx-runtime.d.ts +0 -3
- package/dist/sdk/shims/react-jsx-runtime.d.ts.map +0 -1
- package/dist/sdk/shims/react-toastify.d.ts +0 -3
- package/dist/sdk/shims/react-toastify.d.ts.map +0 -1
- package/dist/sdk/shims/react.d.ts +0 -3
- package/dist/sdk/shims/react.d.ts.map +0 -1
- package/dist/sdk/theme.d.ts +0 -26
- package/dist/sdk/theme.d.ts.map +0 -1
- package/dist/shims/admin-ui-plugins.js +0 -9
- package/dist/shims/apollo-client-react.js +0 -25
- package/dist/shims/apollo-client.js +0 -55
- package/dist/shims/next-head.js +0 -9
- package/dist/shims/next-image.js +0 -9
- package/dist/shims/next-link.js +0 -9
- package/dist/shims/next-router.js +0 -13
- package/dist/shims/react-dom-client.js +0 -11
- package/dist/shims/react-dom.js +0 -22
- package/dist/shims/react-hook-form.js +0 -25
- package/dist/shims/react-intl.js +0 -37
- package/dist/shims/react-jsx-runtime.js +0 -11
- package/dist/shims/react-toastify.js +0 -16
- package/dist/shims/react.js +0 -52
- package/dist/theme.js +0 -34
- package/dist/ui.js +0 -19764
- package/out/manifest.json +0 -48
- /package/out/_next/static/{4ESrB8YpR2n44PFePtbgX → jOx5PlckLwWIJ5yrvePdU}/_clientMiddlewareManifest.js +0 -0
- /package/out/_next/static/{4ESrB8YpR2n44PFePtbgX → jOx5PlckLwWIJ5yrvePdU}/_ssgManifest.js +0 -0
|
@@ -1,324 +0,0 @@
|
|
|
1
|
-
import { useUnchainedContext_default } from '../chunk-IAQPLRXZ.js';
|
|
2
|
-
import '../chunk-WPLOTFGW.js';
|
|
3
|
-
import { gql } from '@apollo/client';
|
|
4
|
-
import { useMutation, useQuery } from '@apollo/client/react';
|
|
5
|
-
|
|
6
|
-
var QuotationDetailFragment = gql`
|
|
7
|
-
fragment QuotationDetailFragment on Quotation {
|
|
8
|
-
_id
|
|
9
|
-
user {
|
|
10
|
-
_id
|
|
11
|
-
username
|
|
12
|
-
avatar {
|
|
13
|
-
_id
|
|
14
|
-
url
|
|
15
|
-
}
|
|
16
|
-
name
|
|
17
|
-
primaryEmail {
|
|
18
|
-
verified
|
|
19
|
-
address
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
configuration {
|
|
23
|
-
key
|
|
24
|
-
value
|
|
25
|
-
}
|
|
26
|
-
country {
|
|
27
|
-
_id
|
|
28
|
-
isoCode
|
|
29
|
-
flagEmoji
|
|
30
|
-
name
|
|
31
|
-
}
|
|
32
|
-
currency {
|
|
33
|
-
_id
|
|
34
|
-
isoCode
|
|
35
|
-
isActive
|
|
36
|
-
}
|
|
37
|
-
product {
|
|
38
|
-
_id
|
|
39
|
-
texts {
|
|
40
|
-
_id
|
|
41
|
-
slug
|
|
42
|
-
subtitle
|
|
43
|
-
title
|
|
44
|
-
description
|
|
45
|
-
}
|
|
46
|
-
media {
|
|
47
|
-
_id
|
|
48
|
-
file {
|
|
49
|
-
_id
|
|
50
|
-
type
|
|
51
|
-
url
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
quantity
|
|
56
|
-
price {
|
|
57
|
-
amount
|
|
58
|
-
currencyCode
|
|
59
|
-
isTaxable
|
|
60
|
-
isNetPrice
|
|
61
|
-
}
|
|
62
|
-
status
|
|
63
|
-
created
|
|
64
|
-
expires
|
|
65
|
-
updated
|
|
66
|
-
isExpired
|
|
67
|
-
quotationNumber
|
|
68
|
-
fulfilled
|
|
69
|
-
rejected
|
|
70
|
-
}
|
|
71
|
-
`;
|
|
72
|
-
var QuotationDetailFragment_default = QuotationDetailFragment;
|
|
73
|
-
|
|
74
|
-
// src/modules/quotation/hooks/useMakeQuotationProposal.ts
|
|
75
|
-
var MakeQuotationProposalMutation = gql`
|
|
76
|
-
mutation MakeQuotationProposal($quotationId: ID!, $quotationContext: JSON) {
|
|
77
|
-
makeQuotationProposal(
|
|
78
|
-
quotationId: $quotationId
|
|
79
|
-
quotationContext: $quotationContext
|
|
80
|
-
) {
|
|
81
|
-
...QuotationDetailFragment
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
${QuotationDetailFragment_default}
|
|
85
|
-
`;
|
|
86
|
-
var useMakeQuotationProposal = () => {
|
|
87
|
-
const [makeQuotationProposalMutation] = useMutation(MakeQuotationProposalMutation);
|
|
88
|
-
const makeQuotationProposal = async ({
|
|
89
|
-
quotationId = null,
|
|
90
|
-
quotationContext = {}
|
|
91
|
-
}) => {
|
|
92
|
-
return makeQuotationProposalMutation({
|
|
93
|
-
variables: { quotationId, quotationContext }
|
|
94
|
-
});
|
|
95
|
-
};
|
|
96
|
-
return {
|
|
97
|
-
makeQuotationProposal
|
|
98
|
-
};
|
|
99
|
-
};
|
|
100
|
-
var useMakeQuotationProposal_default = useMakeQuotationProposal;
|
|
101
|
-
var GetQuotationsQuery = (inlineFragment = "") => gql`
|
|
102
|
-
query Quotation($quotationId: ID!) {
|
|
103
|
-
quotation(quotationId: $quotationId) {
|
|
104
|
-
_id
|
|
105
|
-
...QuotationDetailFragment
|
|
106
|
-
${inlineFragment}
|
|
107
|
-
}
|
|
108
|
-
quotationsCount
|
|
109
|
-
}
|
|
110
|
-
${QuotationDetailFragment_default}
|
|
111
|
-
`;
|
|
112
|
-
var useQuotation = ({ quotationId }) => {
|
|
113
|
-
const { customProperties } = useUnchainedContext_default();
|
|
114
|
-
const { data, loading, error } = useQuery(GetQuotationsQuery(customProperties?.Quotation), {
|
|
115
|
-
skip: !quotationId,
|
|
116
|
-
variables: { quotationId }
|
|
117
|
-
});
|
|
118
|
-
return {
|
|
119
|
-
quotation: data?.quotation,
|
|
120
|
-
loading,
|
|
121
|
-
error
|
|
122
|
-
};
|
|
123
|
-
};
|
|
124
|
-
var useQuotation_default = useQuotation;
|
|
125
|
-
var QuotationFragment = gql`
|
|
126
|
-
fragment QuotationFragment on Quotation {
|
|
127
|
-
_id
|
|
128
|
-
user {
|
|
129
|
-
_id
|
|
130
|
-
username
|
|
131
|
-
avatar {
|
|
132
|
-
_id
|
|
133
|
-
url
|
|
134
|
-
}
|
|
135
|
-
name
|
|
136
|
-
primaryEmail {
|
|
137
|
-
verified
|
|
138
|
-
address
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
product {
|
|
142
|
-
_id
|
|
143
|
-
texts {
|
|
144
|
-
_id
|
|
145
|
-
slug
|
|
146
|
-
subtitle
|
|
147
|
-
title
|
|
148
|
-
description
|
|
149
|
-
}
|
|
150
|
-
media {
|
|
151
|
-
_id
|
|
152
|
-
file {
|
|
153
|
-
_id
|
|
154
|
-
type
|
|
155
|
-
url
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
currency {
|
|
160
|
-
_id
|
|
161
|
-
contractAddress
|
|
162
|
-
decimals
|
|
163
|
-
isoCode
|
|
164
|
-
}
|
|
165
|
-
status
|
|
166
|
-
created
|
|
167
|
-
expires
|
|
168
|
-
updated
|
|
169
|
-
isExpired
|
|
170
|
-
quotationNumber
|
|
171
|
-
fulfilled
|
|
172
|
-
rejected
|
|
173
|
-
}
|
|
174
|
-
`;
|
|
175
|
-
var QuotationFragment_default = QuotationFragment;
|
|
176
|
-
|
|
177
|
-
// src/modules/quotation/hooks/useQuotations.ts
|
|
178
|
-
var QuotationsQuery = gql`
|
|
179
|
-
query Quotations(
|
|
180
|
-
$limit: Int
|
|
181
|
-
$offset: Int
|
|
182
|
-
$queryString: String
|
|
183
|
-
$sort: [SortOptionInput!]
|
|
184
|
-
) {
|
|
185
|
-
quotations(
|
|
186
|
-
limit: $limit
|
|
187
|
-
offset: $offset
|
|
188
|
-
queryString: $queryString
|
|
189
|
-
sort: $sort
|
|
190
|
-
) {
|
|
191
|
-
...QuotationFragment
|
|
192
|
-
}
|
|
193
|
-
quotationsCount(queryString: $queryString)
|
|
194
|
-
}
|
|
195
|
-
${QuotationFragment_default}
|
|
196
|
-
`;
|
|
197
|
-
var useQuotations = ({
|
|
198
|
-
limit = 20,
|
|
199
|
-
offset = 0,
|
|
200
|
-
queryString = "",
|
|
201
|
-
sort = []
|
|
202
|
-
} = {}) => {
|
|
203
|
-
const { data, loading, error, fetchMore } = useQuery(QuotationsQuery, {
|
|
204
|
-
variables: { limit, offset, queryString, sort }
|
|
205
|
-
});
|
|
206
|
-
const quotations = data?.quotations || [];
|
|
207
|
-
const quotationsCount = data?.quotationsCount;
|
|
208
|
-
const hasMore = quotations?.length < quotationsCount;
|
|
209
|
-
const loadMore = () => {
|
|
210
|
-
fetchMore({
|
|
211
|
-
variables: { offset: quotations?.length }
|
|
212
|
-
});
|
|
213
|
-
};
|
|
214
|
-
return {
|
|
215
|
-
quotations,
|
|
216
|
-
quotationsCount,
|
|
217
|
-
hasMore,
|
|
218
|
-
loading,
|
|
219
|
-
error,
|
|
220
|
-
loadMore
|
|
221
|
-
};
|
|
222
|
-
};
|
|
223
|
-
var useQuotations_default = useQuotations;
|
|
224
|
-
var RejectQuotationMutation = gql`
|
|
225
|
-
mutation RejectQuotation($quotationId: ID!, $quotationContext: JSON) {
|
|
226
|
-
rejectQuotation(
|
|
227
|
-
quotationId: $quotationId
|
|
228
|
-
quotationContext: $quotationContext
|
|
229
|
-
) {
|
|
230
|
-
...QuotationDetailFragment
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
${QuotationDetailFragment_default}
|
|
234
|
-
`;
|
|
235
|
-
var useRejectQuotation = () => {
|
|
236
|
-
const [rejectQuotationMutation] = useMutation(RejectQuotationMutation);
|
|
237
|
-
const rejectQuotation = async ({
|
|
238
|
-
quotationId = null,
|
|
239
|
-
quotationContext = {}
|
|
240
|
-
}) => {
|
|
241
|
-
return rejectQuotationMutation({
|
|
242
|
-
variables: { quotationId, quotationContext }
|
|
243
|
-
});
|
|
244
|
-
};
|
|
245
|
-
return {
|
|
246
|
-
rejectQuotation
|
|
247
|
-
};
|
|
248
|
-
};
|
|
249
|
-
var useRejectQuotation_default = useRejectQuotation;
|
|
250
|
-
var UserQuotationsQuery = gql`
|
|
251
|
-
query UserQuotations($userId: ID!, $queryString: String) {
|
|
252
|
-
user(userId: $userId) {
|
|
253
|
-
_id
|
|
254
|
-
quotations(queryString: $queryString) {
|
|
255
|
-
_id
|
|
256
|
-
status
|
|
257
|
-
created
|
|
258
|
-
expires
|
|
259
|
-
isExpired
|
|
260
|
-
quotationNumber
|
|
261
|
-
product {
|
|
262
|
-
_id
|
|
263
|
-
texts {
|
|
264
|
-
_id
|
|
265
|
-
slug
|
|
266
|
-
subtitle
|
|
267
|
-
title
|
|
268
|
-
}
|
|
269
|
-
media {
|
|
270
|
-
_id
|
|
271
|
-
file {
|
|
272
|
-
_id
|
|
273
|
-
url
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
}
|
|
280
|
-
`;
|
|
281
|
-
var useUserQuotations = ({
|
|
282
|
-
userId = null,
|
|
283
|
-
queryString = ""
|
|
284
|
-
}) => {
|
|
285
|
-
const { data, loading, error } = useQuery(UserQuotationsQuery, {
|
|
286
|
-
skip: !userId,
|
|
287
|
-
variables: { userId, queryString }
|
|
288
|
-
});
|
|
289
|
-
const quotations = data?.user?.quotations || [];
|
|
290
|
-
return {
|
|
291
|
-
quotations,
|
|
292
|
-
loading,
|
|
293
|
-
error
|
|
294
|
-
};
|
|
295
|
-
};
|
|
296
|
-
var useUserQuotations_default = useUserQuotations;
|
|
297
|
-
var VerifyQuotationMutation = gql`
|
|
298
|
-
mutation VerifyQuotation($quotationId: ID!, $quotationContext: JSON) {
|
|
299
|
-
verifyQuotation(
|
|
300
|
-
quotationId: $quotationId
|
|
301
|
-
quotationContext: $quotationContext
|
|
302
|
-
) {
|
|
303
|
-
...QuotationDetailFragment
|
|
304
|
-
}
|
|
305
|
-
}
|
|
306
|
-
${QuotationDetailFragment_default}
|
|
307
|
-
`;
|
|
308
|
-
var useVerifyQuotation = () => {
|
|
309
|
-
const [verifyQuotationMutation] = useMutation(VerifyQuotationMutation);
|
|
310
|
-
const VerifyQuotation = async ({
|
|
311
|
-
quotationId = null,
|
|
312
|
-
quotationContext = {}
|
|
313
|
-
}) => {
|
|
314
|
-
return verifyQuotationMutation({
|
|
315
|
-
variables: { quotationId, quotationContext }
|
|
316
|
-
});
|
|
317
|
-
};
|
|
318
|
-
return {
|
|
319
|
-
VerifyQuotation
|
|
320
|
-
};
|
|
321
|
-
};
|
|
322
|
-
var useVerifyQuotation_default = useVerifyQuotation;
|
|
323
|
-
|
|
324
|
-
export { useMakeQuotationProposal_default as useMakeQuotationProposal, useQuotation_default as useQuotation, useQuotations_default as useQuotations, useRejectQuotation_default as useRejectQuotation, useUserQuotations_default as useUserQuotations, useVerifyQuotation_default as useVerifyQuotation };
|
package/dist/modules/token.js
DELETED
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
import { TokenFragment_default } from '../chunk-IYKPRAWC.js';
|
|
2
|
-
import { DefaultLimit } from '../chunk-ZUOVKRKC.js';
|
|
3
|
-
import { ProductBriefFragment_default } from '../chunk-EJDZRZSZ.js';
|
|
4
|
-
import '../chunk-WPLOTFGW.js';
|
|
5
|
-
import { gql } from '@apollo/client';
|
|
6
|
-
import { useMutation, useQuery } from '@apollo/client/react';
|
|
7
|
-
|
|
8
|
-
var InvalidateTokenMutation = gql`
|
|
9
|
-
mutation InvalidateToken($tokenId: ID!) {
|
|
10
|
-
invalidateToken(tokenId: $tokenId) {
|
|
11
|
-
...TokenFragment
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
${TokenFragment_default}
|
|
15
|
-
`;
|
|
16
|
-
var useInvalidateTicket = () => {
|
|
17
|
-
const [invalidateTokenMutation] = useMutation(InvalidateTokenMutation);
|
|
18
|
-
const invalidateTicket = async ({ tokenId }) => {
|
|
19
|
-
const result = await invalidateTokenMutation({
|
|
20
|
-
variables: { tokenId },
|
|
21
|
-
refetchQueries: ["Tokens", "Token"]
|
|
22
|
-
});
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
return { invalidateTicket };
|
|
26
|
-
};
|
|
27
|
-
var useInvalidateTicket_default = useInvalidateTicket;
|
|
28
|
-
var TokenQuery = gql`
|
|
29
|
-
query Token($tokenId: ID!, $forceLocale: Locale) {
|
|
30
|
-
token(tokenId: $tokenId) {
|
|
31
|
-
...TokenFragment
|
|
32
|
-
product {
|
|
33
|
-
...ProductBriefFragment
|
|
34
|
-
simulatedPrice {
|
|
35
|
-
amount
|
|
36
|
-
currencyCode
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
user {
|
|
40
|
-
_id
|
|
41
|
-
username
|
|
42
|
-
isGuest
|
|
43
|
-
avatar {
|
|
44
|
-
_id
|
|
45
|
-
url
|
|
46
|
-
}
|
|
47
|
-
name
|
|
48
|
-
primaryEmail {
|
|
49
|
-
verified
|
|
50
|
-
address
|
|
51
|
-
}
|
|
52
|
-
lastContact {
|
|
53
|
-
telNumber
|
|
54
|
-
emailAddress
|
|
55
|
-
}
|
|
56
|
-
profile {
|
|
57
|
-
displayName
|
|
58
|
-
address {
|
|
59
|
-
firstName
|
|
60
|
-
lastName
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
${TokenFragment_default}
|
|
67
|
-
${ProductBriefFragment_default}
|
|
68
|
-
`;
|
|
69
|
-
var useToken = ({ tokenId }) => {
|
|
70
|
-
const { data, loading, error } = useQuery(
|
|
71
|
-
TokenQuery,
|
|
72
|
-
{
|
|
73
|
-
variables: { tokenId }
|
|
74
|
-
}
|
|
75
|
-
);
|
|
76
|
-
return {
|
|
77
|
-
token: data?.token,
|
|
78
|
-
loading,
|
|
79
|
-
error
|
|
80
|
-
};
|
|
81
|
-
};
|
|
82
|
-
var useToken_default = useToken;
|
|
83
|
-
var TokensQuery = gql`
|
|
84
|
-
query Tokens(
|
|
85
|
-
$queryString: String
|
|
86
|
-
$limit: Int
|
|
87
|
-
$offset: Int
|
|
88
|
-
$forceLocale: Locale
|
|
89
|
-
) {
|
|
90
|
-
tokens(queryString: $queryString, limit: $limit, offset: $offset) {
|
|
91
|
-
...TokenFragment
|
|
92
|
-
product {
|
|
93
|
-
...ProductBriefFragment
|
|
94
|
-
simulatedPrice {
|
|
95
|
-
amount
|
|
96
|
-
currencyCode
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
user {
|
|
100
|
-
_id
|
|
101
|
-
username
|
|
102
|
-
isGuest
|
|
103
|
-
primaryEmail {
|
|
104
|
-
address
|
|
105
|
-
verified
|
|
106
|
-
}
|
|
107
|
-
avatar {
|
|
108
|
-
_id
|
|
109
|
-
url
|
|
110
|
-
}
|
|
111
|
-
profile {
|
|
112
|
-
displayName
|
|
113
|
-
address {
|
|
114
|
-
firstName
|
|
115
|
-
lastName
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
tokensCount(queryString: $queryString)
|
|
121
|
-
}
|
|
122
|
-
${TokenFragment_default}
|
|
123
|
-
${ProductBriefFragment_default}
|
|
124
|
-
`;
|
|
125
|
-
var useTokens = ({
|
|
126
|
-
queryString = null,
|
|
127
|
-
limit = DefaultLimit,
|
|
128
|
-
offset = 0
|
|
129
|
-
}) => {
|
|
130
|
-
const { data, loading, error } = useQuery(TokensQuery, {
|
|
131
|
-
variables: { queryString, limit, offset }
|
|
132
|
-
});
|
|
133
|
-
const tokens = data?.tokens || [];
|
|
134
|
-
return {
|
|
135
|
-
tokens,
|
|
136
|
-
loading,
|
|
137
|
-
error,
|
|
138
|
-
tokensCount: data?.tokensCount || 0
|
|
139
|
-
};
|
|
140
|
-
};
|
|
141
|
-
var useTokens_default = useTokens;
|
|
142
|
-
|
|
143
|
-
export { useInvalidateTicket_default as useInvalidateTicket, useToken_default as useToken, useTokens_default as useTokens };
|
|
@@ -1,206 +0,0 @@
|
|
|
1
|
-
import { useUnchainedContext_default } from '../chunk-IAQPLRXZ.js';
|
|
2
|
-
import '../chunk-WPLOTFGW.js';
|
|
3
|
-
import { gql } from '@apollo/client';
|
|
4
|
-
import { useMutation, useQuery } from '@apollo/client/react';
|
|
5
|
-
|
|
6
|
-
var WarehousingProviderFragment = gql`
|
|
7
|
-
fragment WarehousingProviderFragment on WarehousingProvider {
|
|
8
|
-
_id
|
|
9
|
-
created
|
|
10
|
-
updated
|
|
11
|
-
deleted
|
|
12
|
-
isActive
|
|
13
|
-
type
|
|
14
|
-
interface {
|
|
15
|
-
_id
|
|
16
|
-
label
|
|
17
|
-
version
|
|
18
|
-
}
|
|
19
|
-
configuration
|
|
20
|
-
configurationError
|
|
21
|
-
}
|
|
22
|
-
`;
|
|
23
|
-
var WarehousingProviderFragment_default = WarehousingProviderFragment;
|
|
24
|
-
|
|
25
|
-
// src/modules/warehousing-providers/hooks/useCreateWarehousingProvider.ts
|
|
26
|
-
var CreateWarehousingProviderMutation = gql`
|
|
27
|
-
mutation CreateWarehousingProvider(
|
|
28
|
-
$warehousingProvider: CreateWarehousingProviderInput!
|
|
29
|
-
) {
|
|
30
|
-
createWarehousingProvider(warehousingProvider: $warehousingProvider) {
|
|
31
|
-
...WarehousingProviderFragment
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
${WarehousingProviderFragment_default}
|
|
35
|
-
`;
|
|
36
|
-
var useCreateWarehousingProvider = () => {
|
|
37
|
-
const [createWarehousingProviderMutation, { data, loading, error }] = useMutation(CreateWarehousingProviderMutation);
|
|
38
|
-
const createWarehousingProvider = async ({
|
|
39
|
-
warehousingProvider: { adapterKey, type }
|
|
40
|
-
}) => {
|
|
41
|
-
return createWarehousingProviderMutation({
|
|
42
|
-
variables: { warehousingProvider: { adapterKey, type } },
|
|
43
|
-
refetchQueries: ["WarehousingProviders", "ShopStatus"]
|
|
44
|
-
});
|
|
45
|
-
};
|
|
46
|
-
const newWarehousingProvider = data?.createWarehousingProvider;
|
|
47
|
-
return {
|
|
48
|
-
createWarehousingProvider,
|
|
49
|
-
newWarehousingProvider,
|
|
50
|
-
loading,
|
|
51
|
-
error
|
|
52
|
-
};
|
|
53
|
-
};
|
|
54
|
-
var useCreateWarehousingProvider_default = useCreateWarehousingProvider;
|
|
55
|
-
var RemoveWarehousingProviderMutation = gql`
|
|
56
|
-
mutation RemoveWarehousingProvider($warehousingProviderId: ID!) {
|
|
57
|
-
removeWarehousingProvider(warehousingProviderId: $warehousingProviderId) {
|
|
58
|
-
_id
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
`;
|
|
62
|
-
var useRemoveWarehousingProvider = () => {
|
|
63
|
-
const [removeWarehousingProviderMutation] = useMutation(RemoveWarehousingProviderMutation);
|
|
64
|
-
const removeWarehousingProvider = async ({
|
|
65
|
-
warehousingProviderId
|
|
66
|
-
}) => {
|
|
67
|
-
return removeWarehousingProviderMutation({
|
|
68
|
-
variables: {
|
|
69
|
-
warehousingProviderId
|
|
70
|
-
},
|
|
71
|
-
refetchQueries: ["WarehousingProviders", "ShopStatus"]
|
|
72
|
-
});
|
|
73
|
-
};
|
|
74
|
-
return {
|
|
75
|
-
removeWarehousingProvider
|
|
76
|
-
};
|
|
77
|
-
};
|
|
78
|
-
var useRemoveWarehousingProvider_default = useRemoveWarehousingProvider;
|
|
79
|
-
var UpdateWarehousingProviderMutation = gql`
|
|
80
|
-
mutation UpdateWarehousingProvider(
|
|
81
|
-
$warehousingProvider: UpdateProviderInput!
|
|
82
|
-
$warehousingProviderId: ID!
|
|
83
|
-
) {
|
|
84
|
-
updateWarehousingProvider(
|
|
85
|
-
warehousingProvider: $warehousingProvider
|
|
86
|
-
warehousingProviderId: $warehousingProviderId
|
|
87
|
-
) {
|
|
88
|
-
...WarehousingProviderFragment
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
${WarehousingProviderFragment_default}
|
|
92
|
-
`;
|
|
93
|
-
var useUpdateWarehousingProvider = () => {
|
|
94
|
-
const [updateWarehousingProviderMutation] = useMutation(UpdateWarehousingProviderMutation);
|
|
95
|
-
const updateWarehousingProvider = async ({
|
|
96
|
-
warehousingProvider: { configuration },
|
|
97
|
-
warehousingProviderId
|
|
98
|
-
}) => {
|
|
99
|
-
return updateWarehousingProviderMutation({
|
|
100
|
-
variables: {
|
|
101
|
-
warehousingProvider: { configuration },
|
|
102
|
-
warehousingProviderId
|
|
103
|
-
}
|
|
104
|
-
});
|
|
105
|
-
};
|
|
106
|
-
return {
|
|
107
|
-
updateWarehousingProvider
|
|
108
|
-
};
|
|
109
|
-
};
|
|
110
|
-
var useUpdateWarehousingProvider_default = useUpdateWarehousingProvider;
|
|
111
|
-
var WarehousingInterfacesQuery = gql`
|
|
112
|
-
query WarehousingInterfaces($providerType: WarehousingProviderType) {
|
|
113
|
-
warehousingInterfaces(type: $providerType) {
|
|
114
|
-
_id
|
|
115
|
-
value: _id
|
|
116
|
-
label
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
`;
|
|
120
|
-
var useWarehousingInterfacesByType = ({
|
|
121
|
-
providerType
|
|
122
|
-
}) => {
|
|
123
|
-
const { data, loading, error } = useQuery(WarehousingInterfacesQuery, {
|
|
124
|
-
skip: !providerType,
|
|
125
|
-
variables: { providerType }
|
|
126
|
-
});
|
|
127
|
-
const warehousingInterfaces = data?.warehousingInterfaces || [];
|
|
128
|
-
return {
|
|
129
|
-
warehousingInterfaces,
|
|
130
|
-
loading,
|
|
131
|
-
error
|
|
132
|
-
};
|
|
133
|
-
};
|
|
134
|
-
var useWarehousingInterfacesByType_default = useWarehousingInterfacesByType;
|
|
135
|
-
var GetWarehousingProviderQuery = (inlineFragment = "") => gql`
|
|
136
|
-
query WarehousingProvider($warehousingProviderId: ID!) {
|
|
137
|
-
warehousingProvider(warehousingProviderId: $warehousingProviderId) {
|
|
138
|
-
...WarehousingProviderFragment
|
|
139
|
-
${inlineFragment}
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
${WarehousingProviderFragment_default}
|
|
143
|
-
`;
|
|
144
|
-
var useWarehousingProvider = ({
|
|
145
|
-
warehousingProviderId = null
|
|
146
|
-
}) => {
|
|
147
|
-
const { customProperties } = useUnchainedContext_default();
|
|
148
|
-
const { data, loading, error } = useQuery(GetWarehousingProviderQuery(customProperties?.WarehousingProvider), {
|
|
149
|
-
skip: !warehousingProviderId,
|
|
150
|
-
variables: { warehousingProviderId }
|
|
151
|
-
});
|
|
152
|
-
return {
|
|
153
|
-
warehousingProvider: data?.warehousingProvider,
|
|
154
|
-
loading,
|
|
155
|
-
error
|
|
156
|
-
};
|
|
157
|
-
};
|
|
158
|
-
var useWarehousingProvider_default = useWarehousingProvider;
|
|
159
|
-
var WarehousingProvidersTypeQuery = gql`
|
|
160
|
-
query WarehousingProvidersType {
|
|
161
|
-
warehousingProviderType: __type(name: "WarehousingProviderType") {
|
|
162
|
-
options: enumValues {
|
|
163
|
-
value: name
|
|
164
|
-
label: description
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
`;
|
|
169
|
-
var useWarehousingProviderTypes = () => {
|
|
170
|
-
const { data, loading, error } = useQuery(WarehousingProvidersTypeQuery);
|
|
171
|
-
const warehousingProviderType = data?.warehousingProviderType?.options || [];
|
|
172
|
-
return {
|
|
173
|
-
warehousingProviderType,
|
|
174
|
-
loading,
|
|
175
|
-
error
|
|
176
|
-
};
|
|
177
|
-
};
|
|
178
|
-
var useWarehousingProviderTypes_default = useWarehousingProviderTypes;
|
|
179
|
-
var WarehousingProvidersQuery = gql`
|
|
180
|
-
query WarehousingProviders($type: WarehousingProviderType) {
|
|
181
|
-
warehousingProviders(type: $type) {
|
|
182
|
-
...WarehousingProviderFragment
|
|
183
|
-
}
|
|
184
|
-
warehousingProvidersCount(type: $type)
|
|
185
|
-
}
|
|
186
|
-
${WarehousingProviderFragment_default}
|
|
187
|
-
`;
|
|
188
|
-
var useWarehousingProviders = ({
|
|
189
|
-
type = null
|
|
190
|
-
} = {}) => {
|
|
191
|
-
const variables = {};
|
|
192
|
-
if (type) variables.type = type;
|
|
193
|
-
const { data, loading, error } = useQuery(WarehousingProvidersQuery, {
|
|
194
|
-
variables
|
|
195
|
-
});
|
|
196
|
-
const warehousingProviders = data?.warehousingProviders || [];
|
|
197
|
-
return {
|
|
198
|
-
warehousingProviders,
|
|
199
|
-
loading,
|
|
200
|
-
error,
|
|
201
|
-
warehousingProvidersCount: data?.warehousingProvidersCount || 0
|
|
202
|
-
};
|
|
203
|
-
};
|
|
204
|
-
var useWarehousingProviders_default = useWarehousingProviders;
|
|
205
|
-
|
|
206
|
-
export { useCreateWarehousingProvider_default as useCreateWarehousingProvider, useRemoveWarehousingProvider_default as useRemoveWarehousingProvider, useUpdateWarehousingProvider_default as useUpdateWarehousingProvider, useWarehousingInterfacesByType_default as useWarehousingInterfacesByType, useWarehousingProvider_default as useWarehousingProvider, useWarehousingProviderTypes_default as useWarehousingProviderTypes, useWarehousingProviders_default as useWarehousingProviders };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"WorkFragment.d.ts","sourceRoot":"","sources":["../../../../src/modules/work/fragments/WorkFragment.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,YAAY,gCAmBjB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { IAddWorkMutation, IAddWorkMutationVariables } from '../../../gql/types';
|
|
2
|
-
declare const useAddWork: () => {
|
|
3
|
-
addWork: ({ type, priority, input, originalWorkId, scheduled, retries, }: IAddWorkMutationVariables) => Promise<import("@apollo/client").ApolloClient.MutateResult<IAddWorkMutation, undefined>>;
|
|
4
|
-
};
|
|
5
|
-
export default useAddWork;
|
|
6
|
-
//# sourceMappingURL=useAddWork.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useAddWork.d.ts","sourceRoot":"","sources":["../../../../src/modules/work/hooks/useAddWork.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,gBAAgB,EAChB,yBAAyB,EAC1B,MAAM,oBAAoB,CAAC;AAwB5B,QAAA,MAAM,UAAU;8EAaX,yBAAyB;CAiB7B,CAAC;AAEF,eAAe,UAAU,CAAC"}
|