@unchainedshop/admin-ui 5.0.0-alpha.1 → 5.0.0-alpha.11
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/README.md +136 -16
- package/dist/chunk-3L6EZQ6P.js +135 -0
- package/dist/chunk-54DKBWXV.js +33 -0
- package/dist/chunk-5WPFHQZN.js +388 -0
- package/dist/chunk-6UGLNLJG.js +44 -0
- package/dist/chunk-BMDNY67T.js +22547 -0
- package/dist/chunk-BOMSMJF2.js +77 -0
- package/dist/chunk-COV7BREX.js +50 -0
- package/dist/chunk-E77YIMGR.js +2083 -0
- package/dist/chunk-EJDZRZSZ.js +59 -0
- package/dist/chunk-ELPURWDC.js +75 -0
- package/dist/chunk-F6LBNV3H.js +9 -0
- package/dist/chunk-FDHXLNZQ.js +44 -0
- package/dist/chunk-GY2DRQGW.js +166 -0
- package/dist/chunk-HERLM47Z.js +309 -0
- package/dist/chunk-HJKRGBDG.js +694 -0
- package/dist/chunk-I64TXIE7.js +618 -0
- package/dist/chunk-IAQPLRXZ.js +16 -0
- package/dist/chunk-ICJH36K4.js +326 -0
- package/dist/chunk-ILYPJE4N.js +57 -0
- package/dist/chunk-IWKDBADX.js +73 -0
- package/dist/chunk-IXBMHOB5.js +13 -0
- package/dist/chunk-IYKPRAWC.js +26 -0
- package/dist/chunk-J23QSWDL.js +8 -0
- package/dist/chunk-KH5MK6ZW.js +18 -0
- package/dist/chunk-KRIRF7F6.js +76 -0
- package/dist/chunk-NT7RB7AK.js +70 -0
- package/dist/chunk-OKGJ6HDE.js +26 -0
- package/dist/chunk-OTXM2UCD.js +19 -0
- package/dist/chunk-PJLYVMUM.js +3308 -0
- package/dist/chunk-PUI5BIKO.js +41 -0
- package/dist/chunk-Q6S3LBUF.js +180 -0
- package/dist/chunk-QHR23GVH.js +1099 -0
- package/dist/chunk-QWQ3WJJN.js +1 -0
- package/dist/chunk-RAQV2GYF.js +70 -0
- package/dist/chunk-VBO377AY.js +14 -0
- package/dist/chunk-VYEXPG3M.js +107 -0
- package/dist/chunk-WPLOTFGW.js +36 -0
- package/dist/chunk-YO6PT7KD.js +13 -0
- package/dist/chunk-ZUOVKRKC.js +957 -0
- package/dist/components/ui/Accordion/Accordion.d.ts +11 -0
- package/dist/components/ui/Accordion/Accordion.d.ts.map +1 -0
- package/dist/components/ui/Accordion/AccordionHeader.d.ts +6 -0
- package/dist/components/ui/Accordion/AccordionHeader.d.ts.map +1 -0
- package/dist/components/ui/Accordion/AccordionItem.d.ts +11 -0
- package/dist/components/ui/Accordion/AccordionItem.d.ts.map +1 -0
- package/dist/components/ui/ActiveInActive.d.ts +10 -0
- package/dist/components/ui/ActiveInActive.d.ts.map +1 -0
- package/dist/components/ui/AnimatedCounter.d.ts +7 -0
- package/dist/components/ui/AnimatedCounter.d.ts.map +1 -0
- package/dist/components/ui/Badge.d.ts +10 -0
- package/dist/components/ui/Badge.d.ts.map +1 -0
- package/dist/components/ui/BreadCrumbs.d.ts +7 -0
- package/dist/components/ui/BreadCrumbs.d.ts.map +1 -0
- package/dist/components/ui/Button.d.ts +36 -0
- package/dist/components/ui/Button.d.ts.map +1 -0
- package/dist/components/ui/CopyableText.d.ts +5 -0
- package/dist/components/ui/CopyableText.d.ts.map +1 -0
- package/dist/components/ui/DateInput.d.ts +15 -0
- package/dist/components/ui/DateInput.d.ts.map +1 -0
- package/dist/components/ui/DateRangeFilterInput.d.ts +4 -0
- package/dist/components/ui/DateRangeFilterInput.d.ts.map +1 -0
- package/dist/components/ui/DetailHeader.d.ts +6 -0
- package/dist/components/ui/DetailHeader.d.ts.map +1 -0
- package/dist/components/ui/DraggableIcon.d.ts +3 -0
- package/dist/components/ui/DraggableIcon.d.ts.map +1 -0
- package/dist/components/ui/ErrorBoundary.d.ts +18 -0
- package/dist/components/ui/ErrorBoundary.d.ts.map +1 -0
- package/dist/components/ui/ErrorFallback.d.ts +6 -0
- package/dist/components/ui/ErrorFallback.d.ts.map +1 -0
- package/dist/components/ui/HelpText.d.ts +11 -0
- package/dist/components/ui/HelpText.d.ts.map +1 -0
- package/dist/components/ui/ImageWithFallback.d.ts +7 -0
- package/dist/components/ui/ImageWithFallback.d.ts.map +1 -0
- package/dist/components/ui/InfoTextBanner.d.ts +6 -0
- package/dist/components/ui/InfoTextBanner.d.ts.map +1 -0
- package/dist/components/ui/JSONView.d.ts +6 -0
- package/dist/components/ui/JSONView.d.ts.map +1 -0
- package/dist/components/ui/ListHeader.d.ts +6 -0
- package/dist/components/ui/ListHeader.d.ts.map +1 -0
- package/dist/components/ui/Loading.d.ts +3 -0
- package/dist/components/ui/Loading.d.ts.map +1 -0
- package/dist/components/ui/NoData.d.ts +7 -0
- package/dist/components/ui/NoData.d.ts.map +1 -0
- package/dist/components/ui/NoImage.d.ts +7 -0
- package/dist/components/ui/NoImage.d.ts.map +1 -0
- package/dist/components/ui/NoImageSvg.d.ts +8 -0
- package/dist/components/ui/NoImageSvg.d.ts.map +1 -0
- package/dist/components/ui/PageHeader.d.ts +11 -0
- package/dist/components/ui/PageHeader.d.ts.map +1 -0
- package/dist/components/ui/Pagination.d.ts +8 -0
- package/dist/components/ui/Pagination.d.ts.map +1 -0
- package/dist/components/ui/Portal/Portal.d.ts +16 -0
- package/dist/components/ui/Portal/Portal.d.ts.map +1 -0
- package/dist/components/ui/Portal/Portal.types.d.ts +16 -0
- package/dist/components/ui/Portal/Portal.types.d.ts.map +1 -0
- package/dist/components/ui/SaveAndCancelButtons.d.ts +10 -0
- package/dist/components/ui/SaveAndCancelButtons.d.ts.map +1 -0
- package/dist/components/ui/SearchField.d.ts +7 -0
- package/dist/components/ui/SearchField.d.ts.map +1 -0
- package/dist/components/ui/Tab.d.ts +18 -0
- package/dist/components/ui/Tab.d.ts.map +1 -0
- package/dist/components/ui/Tag/TagInput.d.ts +19 -0
- package/dist/components/ui/Tag/TagInput.d.ts.map +1 -0
- package/dist/components/ui/Tag/TagList.d.ts +8 -0
- package/dist/components/ui/Tag/TagList.d.ts.map +1 -0
- package/dist/components/ui/Tag/TagListForm.d.ts +8 -0
- package/dist/components/ui/Tag/TagListForm.d.ts.map +1 -0
- package/dist/components/ui/Toggle.d.ts +11 -0
- package/dist/components/ui/Toggle.d.ts.map +1 -0
- package/dist/components/ui/ToolTip.d.ts +7 -0
- package/dist/components/ui/ToolTip.d.ts.map +1 -0
- package/dist/components/ui/card.d.ts +9 -0
- package/dist/components/ui/card.d.ts.map +1 -0
- package/dist/components/ui/chart.d.ts +42 -0
- package/dist/components/ui/chart.d.ts.map +1 -0
- package/dist/components/ui/form/CheckboxField.d.ts +4 -0
- package/dist/components/ui/form/CheckboxField.d.ts.map +1 -0
- package/dist/components/ui/form/ChoicesField.d.ts +12 -0
- package/dist/components/ui/form/ChoicesField.d.ts.map +1 -0
- package/dist/components/ui/form/Combobox.d.ts +20 -0
- package/dist/components/ui/form/Combobox.d.ts.map +1 -0
- package/dist/components/ui/form/DatePickerField.d.ts +4 -0
- package/dist/components/ui/form/DatePickerField.d.ts.map +1 -0
- package/dist/components/ui/form/EmailField.d.ts +7 -0
- package/dist/components/ui/form/EmailField.d.ts.map +1 -0
- package/dist/components/ui/form/FieldWithHelp.d.ts +10 -0
- package/dist/components/ui/form/FieldWithHelp.d.ts.map +1 -0
- package/dist/components/ui/form/FieldWrapper.d.ts +8 -0
- package/dist/components/ui/form/FieldWrapper.d.ts.map +1 -0
- package/dist/components/ui/form/FormErrors.d.ts +6 -0
- package/dist/components/ui/form/FormErrors.d.ts.map +1 -0
- package/dist/components/ui/form/JSONAreaField.d.ts +7 -0
- package/dist/components/ui/form/JSONAreaField.d.ts.map +1 -0
- package/dist/components/ui/form/MarkdownTextAreaField.d.ts +8 -0
- package/dist/components/ui/form/MarkdownTextAreaField.d.ts.map +1 -0
- package/dist/components/ui/form/PasswordField.d.ts +3 -0
- package/dist/components/ui/form/PasswordField.d.ts.map +1 -0
- package/dist/components/ui/form/SelectField.d.ts +11 -0
- package/dist/components/ui/form/SelectField.d.ts.map +1 -0
- package/dist/components/ui/form/SubmitButton.d.ts +9 -0
- package/dist/components/ui/form/SubmitButton.d.ts.map +1 -0
- package/dist/components/ui/form/TagInputField.d.ts +7 -0
- package/dist/components/ui/form/TagInputField.d.ts.map +1 -0
- package/dist/components/ui/form/TextAreaField.d.ts +8 -0
- package/dist/components/ui/form/TextAreaField.d.ts.map +1 -0
- package/dist/components/ui/form/TextField.d.ts +10 -0
- package/dist/components/ui/form/TextField.d.ts.map +1 -0
- package/dist/components/ui/form/index.d.ts +18 -0
- package/dist/components/ui/form/index.d.ts.map +1 -0
- package/dist/components/ui/icons.d.ts +4 -0
- package/dist/components/ui/icons.d.ts.map +1 -0
- package/dist/components/ui/index.d.ts +46 -0
- package/dist/components/ui/index.d.ts.map +1 -0
- package/dist/form.js +2617 -0
- package/dist/gql/operation-types.d.ts +13239 -0
- package/dist/gql/operation-types.d.ts.map +1 -0
- package/dist/gql/schema-types.d.ts +3876 -0
- package/dist/gql/schema-types.d.ts.map +1 -0
- package/dist/gql/types.d.ts +3 -0
- package/dist/gql/types.d.ts.map +1 -0
- package/dist/hooks.js +49 -0
- package/dist/lib/utils.d.ts +3 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/dist/modal.js +51 -0
- package/dist/modules/Auth/AuthContext.d.ts +9 -0
- package/dist/modules/Auth/AuthContext.d.ts.map +1 -0
- package/dist/modules/Auth/useAuth.d.ts +6 -0
- package/dist/modules/Auth/useAuth.d.ts.map +1 -0
- package/dist/modules/UnchainedContext/UnchainedContext.d.ts +8 -0
- package/dist/modules/UnchainedContext/UnchainedContext.d.ts.map +1 -0
- package/dist/modules/UnchainedContext/useUnchainedContext.d.ts +7 -0
- package/dist/modules/UnchainedContext/useUnchainedContext.d.ts.map +1 -0
- package/dist/modules/accounts/fragment/MD5MetaDataFragment.d.ts +3 -0
- package/dist/modules/accounts/fragment/MD5MetaDataFragment.d.ts.map +1 -0
- package/dist/modules/accounts/fragment/UserFragment.d.ts +3 -0
- package/dist/modules/accounts/fragment/UserFragment.d.ts.map +1 -0
- package/dist/modules/accounts/hooks/useCurrentUser.d.ts +10 -0
- package/dist/modules/accounts/hooks/useCurrentUser.d.ts.map +1 -0
- package/dist/modules/accounts/hooks/useUsersCount.d.ts +8 -0
- package/dist/modules/accounts/hooks/useUsersCount.d.ts.map +1 -0
- package/dist/modules/accounts.js +1349 -0
- package/dist/modules/assortment/hooks/useAssortmentsCount.d.ts +8 -0
- package/dist/modules/assortment/hooks/useAssortmentsCount.d.ts.map +1 -0
- package/dist/modules/assortment.js +1205 -0
- package/dist/modules/common/components/AppContext.d.ts +18 -0
- package/dist/modules/common/components/AppContext.d.ts.map +1 -0
- package/dist/modules/common/components/FormWrapper.d.ts +8 -0
- package/dist/modules/common/components/FormWrapper.d.ts.map +1 -0
- package/dist/modules/common/components/LocaleWrapper.d.ts +7 -0
- package/dist/modules/common/components/LocaleWrapper.d.ts.map +1 -0
- package/dist/modules/common/components/MediaAvatar.d.ts +6 -0
- package/dist/modules/common/components/MediaAvatar.d.ts.map +1 -0
- package/dist/modules/common/components/SelectOptions.d.ts +17 -0
- package/dist/modules/common/components/SelectOptions.d.ts.map +1 -0
- package/dist/modules/common/components/Table.d.ts +25 -0
- package/dist/modules/common/components/Table.d.ts.map +1 -0
- package/dist/modules/common/components/TableCell.d.ts +12 -0
- package/dist/modules/common/components/TableCell.d.ts.map +1 -0
- package/dist/modules/common/components/TableRow.d.ts +10 -0
- package/dist/modules/common/components/TableRow.d.ts.map +1 -0
- package/dist/modules/common/components/ThemeWrapper.d.ts +10 -0
- package/dist/modules/common/components/ThemeWrapper.d.ts.map +1 -0
- package/dist/modules/common/data/iso-codes.d.ts +4 -0
- package/dist/modules/common/data/iso-codes.d.ts.map +1 -0
- package/dist/modules/common/data/miscellaneous.d.ts +52 -0
- package/dist/modules/common/data/miscellaneous.d.ts.map +1 -0
- package/dist/modules/common/fragments/AddressFragment.d.ts +3 -0
- package/dist/modules/common/fragments/AddressFragment.d.ts.map +1 -0
- package/dist/modules/common/hooks/useApp.d.ts +11 -0
- package/dist/modules/common/hooks/useApp.d.ts.map +1 -0
- package/dist/modules/common/hooks/useBulkResultHandler.d.ts +8 -0
- package/dist/modules/common/hooks/useBulkResultHandler.d.ts.map +1 -0
- package/dist/modules/common/hooks/useBulkSelection.d.ts +12 -0
- package/dist/modules/common/hooks/useBulkSelection.d.ts.map +1 -0
- package/dist/modules/common/hooks/useCSVExport.d.ts +10 -0
- package/dist/modules/common/hooks/useCSVExport.d.ts.map +1 -0
- package/dist/modules/common/hooks/useCSVImport.d.ts +18 -0
- package/dist/modules/common/hooks/useCSVImport.d.ts.map +1 -0
- package/dist/modules/common/hooks/useChatEndpointChecker.d.ts +5 -0
- package/dist/modules/common/hooks/useChatEndpointChecker.d.ts.map +1 -0
- package/dist/modules/common/hooks/useConfirmMediaUpload.d.ts +10 -0
- package/dist/modules/common/hooks/useConfirmMediaUpload.d.ts.map +1 -0
- package/dist/modules/common/hooks/useDashboardMetrics.d.ts +23 -0
- package/dist/modules/common/hooks/useDashboardMetrics.d.ts.map +1 -0
- package/dist/modules/common/hooks/useLocalStorage.d.ts +3 -0
- package/dist/modules/common/hooks/useLocalStorage.d.ts.map +1 -0
- package/dist/modules/common/hooks/useOrderAnalytics.d.ts +25 -0
- package/dist/modules/common/hooks/useOrderAnalytics.d.ts.map +1 -0
- package/dist/modules/common/hooks/useOrderItemsAnalytics.d.ts +16 -0
- package/dist/modules/common/hooks/useOrderItemsAnalytics.d.ts.map +1 -0
- package/dist/modules/common/hooks/useOutsideClick.d.ts +3 -0
- package/dist/modules/common/hooks/useOutsideClick.d.ts.map +1 -0
- package/dist/modules/common/hooks/usePortal.d.ts +20 -0
- package/dist/modules/common/hooks/usePortal.d.ts.map +1 -0
- package/dist/modules/common/hooks/useScrollRestoration.d.ts +8 -0
- package/dist/modules/common/hooks/useScrollRestoration.d.ts.map +1 -0
- package/dist/modules/common/hooks/useShopConfiguration.d.ts +8 -0
- package/dist/modules/common/hooks/useShopConfiguration.d.ts.map +1 -0
- package/dist/modules/common/hooks/useShopInfo.d.ts +41 -0
- package/dist/modules/common/hooks/useShopInfo.d.ts.map +1 -0
- package/dist/modules/common/hooks/useStatusTypes.d.ts +10 -0
- package/dist/modules/common/hooks/useStatusTypes.d.ts.map +1 -0
- package/dist/modules/common/hooks/useSystemRoles.d.ts +7 -0
- package/dist/modules/common/hooks/useSystemRoles.d.ts.map +1 -0
- package/dist/modules/common/hooks/useTheme.d.ts +7 -0
- package/dist/modules/common/hooks/useTheme.d.ts.map +1 -0
- package/dist/modules/common/utils/deBounce.d.ts +3 -0
- package/dist/modules/common/utils/deBounce.d.ts.map +1 -0
- package/dist/modules/common/utils/defaultNextImageLoader.d.ts +7 -0
- package/dist/modules/common/utils/defaultNextImageLoader.d.ts.map +1 -0
- package/dist/modules/common/utils/formatUsername.d.ts +3 -0
- package/dist/modules/common/utils/formatUsername.d.ts.map +1 -0
- package/dist/modules/common/utils/getSetupStepsConfigurationsMeta.d.ts +30 -0
- package/dist/modules/common/utils/getSetupStepsConfigurationsMeta.d.ts.map +1 -0
- package/dist/modules/common/utils/normalizeFilterKeys.d.ts +4 -0
- package/dist/modules/common/utils/normalizeFilterKeys.d.ts.map +1 -0
- package/dist/modules/common/utils/sharedContext.d.ts +9 -0
- package/dist/modules/common/utils/sharedContext.d.ts.map +1 -0
- package/dist/modules/common/utils/useFormatDateTime.d.ts +16 -0
- package/dist/modules/common/utils/useFormatDateTime.d.ts.map +1 -0
- package/dist/modules/common/utils/utils.d.ts +21 -0
- package/dist/modules/common/utils/utils.d.ts.map +1 -0
- package/dist/modules/country/fragments/CountryFragment.d.ts +3 -0
- package/dist/modules/country/fragments/CountryFragment.d.ts.map +1 -0
- package/dist/modules/country/hooks/useCountries.d.ts +22 -0
- package/dist/modules/country/hooks/useCountries.d.ts.map +1 -0
- package/dist/modules/country.js +108 -0
- package/dist/modules/currency.js +119 -0
- package/dist/modules/delivery-provider.js +269 -0
- package/dist/modules/enrollment.js +431 -0
- package/dist/modules/event.js +123 -0
- package/dist/modules/filter.js +497 -0
- package/dist/modules/forms/components/Form.d.ts +8 -0
- package/dist/modules/forms/components/Form.d.ts.map +1 -0
- package/dist/modules/forms/hooks/useField.d.ts +35 -0
- package/dist/modules/forms/hooks/useField.d.ts.map +1 -0
- package/dist/modules/forms/hooks/useForm.d.ts +44 -0
- package/dist/modules/forms/hooks/useForm.d.ts.map +1 -0
- package/dist/modules/forms/hooks/useFormContext.d.ts +3 -0
- package/dist/modules/forms/hooks/useFormContext.d.ts.map +1 -0
- package/dist/modules/forms/lib/FormContext.d.ts +13 -0
- package/dist/modules/forms/lib/FormContext.d.ts.map +1 -0
- package/dist/modules/forms/lib/clean.d.ts +3 -0
- package/dist/modules/forms/lib/clean.d.ts.map +1 -0
- package/dist/modules/forms/lib/validators.d.ts +20 -0
- package/dist/modules/forms/lib/validators.d.ts.map +1 -0
- package/dist/modules/language/fragments/LanguageFragment.d.ts +3 -0
- package/dist/modules/language/fragments/LanguageFragment.d.ts.map +1 -0
- package/dist/modules/language/hooks/useLanguages.d.ts +19 -0
- package/dist/modules/language/hooks/useLanguages.d.ts.map +1 -0
- package/dist/modules/language.js +106 -0
- package/dist/modules/modal/components/AlertMessage.d.ts +9 -0
- package/dist/modules/modal/components/AlertMessage.d.ts.map +1 -0
- package/dist/modules/modal/components/DangerMessage.d.ts +13 -0
- package/dist/modules/modal/components/DangerMessage.d.ts.map +1 -0
- package/dist/modules/modal/components/ImportResultMessage.d.ts +14 -0
- package/dist/modules/modal/components/ImportResultMessage.d.ts.map +1 -0
- package/dist/modules/modal/components/Modal.d.ts +10 -0
- package/dist/modules/modal/components/Modal.d.ts.map +1 -0
- package/dist/modules/modal/components/ModalWrapper.d.ts +6 -0
- package/dist/modules/modal/components/ModalWrapper.d.ts.map +1 -0
- package/dist/modules/modal/hooks/useModal.d.ts +7 -0
- package/dist/modules/modal/hooks/useModal.d.ts.map +1 -0
- package/dist/modules/modal/utils/ModalContext.d.ts +9 -0
- package/dist/modules/modal/utils/ModalContext.d.ts.map +1 -0
- package/dist/modules/order/fragments/OrderDetailFragment.d.ts +3 -0
- package/dist/modules/order/fragments/OrderDetailFragment.d.ts.map +1 -0
- package/dist/modules/order/fragments/OrderFragment.d.ts +3 -0
- package/dist/modules/order/fragments/OrderFragment.d.ts.map +1 -0
- package/dist/modules/order/hooks/useOrders.d.ts +46 -0
- package/dist/modules/order/hooks/useOrders.d.ts.map +1 -0
- package/dist/modules/order.js +569 -0
- package/dist/modules/payment-providers.js +206 -0
- package/dist/modules/product/hooks/useProductsCount.d.ts +8 -0
- package/dist/modules/product/hooks/useProductsCount.d.ts.map +1 -0
- package/dist/modules/product-review.js +270 -0
- package/dist/modules/product.js +6914 -0
- package/dist/modules/quotation.js +324 -0
- package/dist/modules/token.js +143 -0
- package/dist/modules/warehousing-providers.js +206 -0
- package/dist/modules/work/fragments/WorkFragment.d.ts +3 -0
- package/dist/modules/work/fragments/WorkFragment.d.ts.map +1 -0
- package/dist/modules/work/hooks/useAddWork.d.ts +6 -0
- package/dist/modules/work/hooks/useAddWork.d.ts.map +1 -0
- package/dist/modules/work/hooks/useWork.d.ts +32 -0
- package/dist/modules/work/hooks/useWork.d.ts.map +1 -0
- package/dist/modules/work.js +232 -0
- package/dist/plugins.js +13 -0
- package/dist/providers.js +9 -0
- package/dist/sdk/hooks.d.ts +12 -0
- package/dist/sdk/hooks.d.ts.map +1 -0
- package/dist/sdk/modal.d.ts +7 -0
- package/dist/sdk/modal.d.ts.map +1 -0
- package/dist/sdk/plugins.d.ts +78 -0
- package/dist/sdk/plugins.d.ts.map +1 -0
- package/dist/sdk/providers.d.ts +5 -0
- package/dist/sdk/providers.d.ts.map +1 -0
- package/dist/sdk/shims/admin-ui-plugins.d.ts +3 -0
- package/dist/sdk/shims/admin-ui-plugins.d.ts.map +1 -0
- package/dist/sdk/shims/apollo-client-react.d.ts +3 -0
- package/dist/sdk/shims/apollo-client-react.d.ts.map +1 -0
- package/dist/sdk/shims/apollo-client.d.ts +3 -0
- package/dist/sdk/shims/apollo-client.d.ts.map +1 -0
- package/dist/sdk/shims/host.d.ts +17 -0
- package/dist/sdk/shims/host.d.ts.map +1 -0
- package/dist/sdk/shims/next-head.d.ts +3 -0
- package/dist/sdk/shims/next-head.d.ts.map +1 -0
- package/dist/sdk/shims/next-image.d.ts +3 -0
- package/dist/sdk/shims/next-image.d.ts.map +1 -0
- package/dist/sdk/shims/next-link.d.ts +3 -0
- package/dist/sdk/shims/next-link.d.ts.map +1 -0
- package/dist/sdk/shims/next-router.d.ts +3 -0
- package/dist/sdk/shims/next-router.d.ts.map +1 -0
- package/dist/sdk/shims/react-dom-client.d.ts +3 -0
- package/dist/sdk/shims/react-dom-client.d.ts.map +1 -0
- package/dist/sdk/shims/react-dom.d.ts +3 -0
- package/dist/sdk/shims/react-dom.d.ts.map +1 -0
- package/dist/sdk/shims/react-hook-form.d.ts +3 -0
- package/dist/sdk/shims/react-hook-form.d.ts.map +1 -0
- package/dist/sdk/shims/react-intl.d.ts +3 -0
- package/dist/sdk/shims/react-intl.d.ts.map +1 -0
- package/dist/sdk/shims/react-jsx-runtime.d.ts +3 -0
- package/dist/sdk/shims/react-jsx-runtime.d.ts.map +1 -0
- package/dist/sdk/shims/react-toastify.d.ts +3 -0
- package/dist/sdk/shims/react-toastify.d.ts.map +1 -0
- package/dist/sdk/shims/react.d.ts +3 -0
- package/dist/sdk/shims/react.d.ts.map +1 -0
- package/dist/sdk/theme.d.ts +26 -0
- package/dist/sdk/theme.d.ts.map +1 -0
- package/dist/shims/admin-ui-plugins.js +9 -0
- package/dist/shims/apollo-client-react.js +25 -0
- package/dist/shims/apollo-client.js +55 -0
- package/dist/shims/next-head.js +9 -0
- package/dist/shims/next-image.js +9 -0
- package/dist/shims/next-link.js +9 -0
- package/dist/shims/next-router.js +13 -0
- package/dist/shims/react-dom-client.js +11 -0
- package/dist/shims/react-dom.js +22 -0
- package/dist/shims/react-hook-form.js +25 -0
- package/dist/shims/react-intl.js +37 -0
- package/dist/shims/react-jsx-runtime.js +11 -0
- package/dist/shims/react-toastify.js +16 -0
- package/dist/shims/react.js +52 -0
- package/dist/theme.js +34 -0
- package/dist/ui.js +19731 -0
- package/out/403/index.html +3 -2
- package/out/404/index.html +3 -2
- package/out/404.html +3 -2
- package/out/423/index.html +3 -2
- package/out/500/index.html +3 -2
- package/out/_next/static/BPoacQET3TJr2q9E370Ez/_buildManifest.js +262 -0
- package/out/_next/static/chunks/01xy3u9ybz9ts.js +5 -0
- package/out/_next/static/chunks/02ir8k2vqhw7u.js +4 -0
- package/out/_next/static/chunks/03mdkmx9pb3yx.js +28 -0
- package/out/_next/static/chunks/03spbldywp99b.js +31 -0
- package/out/_next/static/chunks/0531sa8v36e39.js +1 -0
- package/out/_next/static/chunks/065ltxdt7s8b2.js +134 -0
- package/out/_next/static/chunks/06b1jza2fvc6f.js +4 -0
- package/out/_next/static/chunks/0701uizxsgs75.js +4 -0
- package/out/_next/static/chunks/09olk50zbo5r6.js +5 -0
- package/out/_next/static/chunks/09pabifvs84zb.js +12 -0
- package/out/_next/static/chunks/0_pn7w49dpkak.js +5 -0
- package/out/_next/static/chunks/0a_gulnq-c7to.js +709 -0
- package/out/_next/static/chunks/0agx-csdwbk-x.js +5 -0
- package/out/_next/static/chunks/0clmvy-auef0p.js +14 -0
- package/out/_next/static/chunks/0czktxcs2aa12.js +1 -0
- package/out/_next/static/chunks/0d_qylr054ab-.js +5 -0
- package/out/_next/static/chunks/0e2znhpcecrqs.js +175 -0
- package/out/_next/static/chunks/0ef4vp3ehm369.js +4 -0
- package/out/_next/static/chunks/0fggi8jpi5gjk.js +165 -0
- package/out/_next/static/chunks/0gyabz3vqllr6.js +83 -0
- package/out/_next/static/chunks/0j05dboa5_xkw.js +5 -0
- package/out/_next/static/chunks/0kr4ift9_1a3s.js +1 -0
- package/out/_next/static/chunks/0l8tmlevl_6p0.js +1 -0
- package/out/_next/static/chunks/0m73vd78oga92.js +342 -0
- package/out/_next/static/chunks/0o91usftba97q.js +54 -0
- package/out/_next/static/chunks/0oi1kpp0levnm.js +1 -0
- package/out/_next/static/chunks/0p7said9rdor1.js +1 -0
- package/out/_next/static/chunks/0p86ng98eiz5q.js +11 -0
- package/out/_next/static/chunks/0pw1zl8_l93xl.js +5 -0
- package/out/_next/static/chunks/0py8-umjmwiwi.js +156 -0
- package/out/_next/static/chunks/0q0m2pv-3b2e2.js +4 -0
- package/out/_next/static/chunks/0r57e83u39trg.js +5 -0
- package/out/_next/static/chunks/0r9a_mcjh1k24.js +6 -0
- package/out/_next/static/chunks/0rgtc82y8z7_x.js +5 -0
- package/out/_next/static/chunks/0rxhx_x-7dojh.js +182 -0
- package/out/_next/static/chunks/0s6u_6w75ggbw.js +297 -0
- package/out/_next/static/chunks/0teb3b5h78855.js +44 -0
- package/out/_next/static/chunks/0thsuuvsozjop.js +54 -0
- package/out/_next/static/chunks/0v6x3uondh5hw.js +5 -0
- package/out/_next/static/chunks/0v_uz3j8jolmq.js +4 -0
- package/out/_next/static/chunks/0vwmp6qrw7odm.js +7 -0
- package/out/_next/static/chunks/0w6t6v_jzrudq.js +4 -0
- package/out/_next/static/chunks/0w7gz501ry22r.js +4 -0
- package/out/_next/static/chunks/0xgn-89s97a5w.js +1 -0
- package/out/_next/static/chunks/0xqtemh7t38y9.js +119 -0
- package/out/_next/static/chunks/1-1rj15j67dqt.js +1 -0
- package/out/_next/static/chunks/10drou7w-k58p.js +4 -0
- package/out/_next/static/chunks/11w7hldkge7sg.js +8 -0
- package/out/_next/static/chunks/12yd8t4k6c0t1.js +1 -0
- package/out/_next/static/chunks/130c8cta7pec6.js +1 -0
- package/out/_next/static/chunks/13qi39a_b6gkv.js +1 -0
- package/out/_next/static/chunks/15142badc5ufq.js +4 -0
- package/out/_next/static/chunks/155boltbcvwo-.js +63 -0
- package/out/_next/static/chunks/15_nwd8p454gd.js +1 -0
- package/out/_next/static/chunks/15s4qkdyz56pg.js +115 -0
- package/out/_next/static/chunks/15vdx0kewzv-6.js +33 -0
- package/out/_next/static/chunks/16shuavdpgni8.js +327 -0
- package/out/_next/static/chunks/170j06y4-47o4.js +5 -0
- package/out/_next/static/chunks/18a5kibvycb6u.js +1 -0
- package/out/_next/static/chunks/1_bckhq06wfmb.js +4 -0
- package/out/_next/static/chunks/1_ymf_rfke1aw.js +6 -0
- package/out/_next/static/chunks/1a1m389awxw4k.js +1 -0
- package/out/_next/static/chunks/1albq_5cppsa1.js +5 -0
- package/out/_next/static/chunks/1bhibqf8k2-z1.js +117 -0
- package/out/_next/static/chunks/1bxesp6kakz8_.js +353 -0
- package/out/_next/static/chunks/1d80ahah359g5.js +174 -0
- package/out/_next/static/chunks/1dbjry-rs_5we.js +1 -0
- package/out/_next/static/chunks/1dlr1eig6zpl1.js +12 -0
- package/out/_next/static/chunks/1gq8ickcg_vmv.js +147 -0
- package/out/_next/static/chunks/1gyrsx1nip-lm.js +2 -0
- package/out/_next/static/chunks/1hma23kynopdj.js +3 -0
- package/out/_next/static/chunks/1i996uxxmc736.js +234 -0
- package/out/_next/static/chunks/1iamjw8qh1m4o.js +4 -0
- package/out/_next/static/chunks/1ivhp-mi-5l--.js +57 -0
- package/out/_next/static/chunks/1jmdpa0tc5puj.js +7 -0
- package/out/_next/static/chunks/1ktkks-wpk8q-.js +1 -0
- package/out/_next/static/chunks/1kz62r46jwi0y.js +5 -0
- package/out/_next/static/chunks/1lex3myb5hmsw.js +1 -0
- package/out/_next/static/chunks/1lha1nklxo2g7.js +1 -0
- package/out/_next/static/chunks/1mwmcucidjio0.js +8 -0
- package/out/_next/static/chunks/1mzejejof4s6g.js +147 -0
- package/out/_next/static/chunks/1os6pvhjeb16o.js +1 -0
- package/out/_next/static/chunks/1p937fyqa7ssz.js +1 -0
- package/out/_next/static/chunks/1po7d3udj6iv4.js +5 -0
- package/out/_next/static/chunks/1qxxbcidu-hmv.js +1 -0
- package/out/_next/static/chunks/1re4i2t_po4sr.js +95 -0
- package/out/_next/static/chunks/1s4oi1bw8zl5d.js +31 -0
- package/out/_next/static/chunks/1sb04cqudnfpj.js +4 -0
- package/out/_next/static/chunks/1sh2ogc7tcbu-.js +1 -0
- package/out/_next/static/chunks/1so6ouxrq_ffa.js +39 -0
- package/out/_next/static/chunks/1ulje1tawz8fl.js +1 -0
- package/out/_next/static/chunks/1uom050rz5iol.js +272 -0
- package/out/_next/static/chunks/1uymuiqrms2h8.js +103 -0
- package/out/_next/static/chunks/1wijj_fal57co.js +2 -0
- package/out/_next/static/chunks/1wpen9t3_zbte.js +1 -0
- package/out/_next/static/chunks/1wpv1sl7vwg04.js +99 -0
- package/out/_next/static/chunks/1y3poj860g968.js +24 -0
- package/out/_next/static/chunks/1yk0pxcl4urkd.js +4 -0
- package/out/_next/static/chunks/1z1mbux-7g74d.js +1 -0
- package/out/_next/static/chunks/1z2rl3h7scna4.js +7 -0
- package/out/_next/static/chunks/1zyhq82pkterc.js +61 -0
- package/out/_next/static/chunks/2-4610weysas_.js +1 -0
- package/out/_next/static/chunks/2-zr9-ri30va5.css +1 -0
- package/out/_next/static/chunks/20j8cdot33hql.js +13 -0
- package/out/_next/static/chunks/21fo9zerxyx-l.js +59 -0
- package/out/_next/static/chunks/22sxsq82r3cwy.js +41 -0
- package/out/_next/static/chunks/23nwkbry8kz0-.js +1 -0
- package/out/_next/static/chunks/259ckrmoldaqg.js +5 -0
- package/out/_next/static/chunks/25y2dqqrhstuq.js +5 -0
- package/out/_next/static/chunks/28myh-gi8t3t7.js +7 -0
- package/out/_next/static/chunks/28oppyg7ev102.js +1 -0
- package/out/_next/static/chunks/29y82c6-u55hj.js +5 -0
- package/out/_next/static/chunks/2ahlen2u4lbnm.js +16 -0
- package/out/_next/static/chunks/2ajr0rk0_yax6.js +1 -0
- package/out/_next/static/chunks/2c3ehieqiwiw8.js +119 -0
- package/out/_next/static/chunks/2c5gq6izeq6nx.js +81 -0
- package/out/_next/static/chunks/2cj8g3fxmitaa.js +1 -0
- package/out/_next/static/chunks/2d9lzme_uzwvq.js +1 -0
- package/out/_next/static/chunks/2dqoft2pp4355.js +1 -0
- package/out/_next/static/chunks/2gso7_8v7owco.js +1 -0
- package/out/_next/static/chunks/2hc4nowrexhn3.js +100 -0
- package/out/_next/static/chunks/2hoi6cb1lromr.js +4 -0
- package/out/_next/static/chunks/2hw2_8kkf_2fg.js +1 -0
- package/out/_next/static/chunks/2kd4p_esjbozz.js +21 -0
- package/out/_next/static/chunks/2l8gepfm4kyjp.js +1 -0
- package/out/_next/static/chunks/2lwhn1ypqwukz.js +11 -0
- package/out/_next/static/chunks/2oz432iieo_c6.js +43 -0
- package/out/_next/static/chunks/2qjnhmz4c5fq1.js +23 -0
- package/out/_next/static/chunks/2rdjgc7_za785.js +9 -0
- package/out/_next/static/chunks/2ru66cyp0hbxn.js +103 -0
- package/out/_next/static/chunks/2ung-az_h871_.js +4 -0
- package/out/_next/static/chunks/2v4rvvdyh028e.js +1 -0
- package/out/_next/static/chunks/2vsl3-revotpl.js +43 -0
- package/out/_next/static/chunks/2wbc_9uwtsjbp.js +15 -0
- package/out/_next/static/chunks/2xixk0t9e9mnw.js +1 -0
- package/out/_next/static/chunks/2y6i_xssusr93.js +1 -0
- package/out/_next/static/chunks/2y_t26eglpeka.js +4 -0
- package/out/_next/static/chunks/2yw5sk06gdixu.js +1 -0
- package/out/_next/static/chunks/3-hgyqm9mhcm9.js +33 -0
- package/out/_next/static/chunks/3-ve59izq9j-p.js +1 -0
- package/out/_next/static/chunks/364y5vueeinvz.js +276 -0
- package/out/_next/static/chunks/366b9y413lk4d.js +33 -0
- package/out/_next/static/chunks/36vauyb71ot_b.js +61 -0
- package/out/_next/static/chunks/394m309ssmlo3.js +5 -0
- package/out/_next/static/chunks/39pveojee3ma1.js +33 -0
- package/out/_next/static/chunks/3_--novhq2u1q.js +807 -0
- package/out/_next/static/chunks/3apnk6kuvwze8.js +5 -0
- package/out/_next/static/chunks/3b0868kyqqkn3.js +5 -0
- package/out/_next/static/chunks/3btkj1_irjkq7.js +161 -0
- package/out/_next/static/chunks/3dcwbsiechj8e.js +7 -0
- package/out/_next/static/chunks/3dyd0ilb-ee5w.js +8 -0
- package/out/_next/static/chunks/3eftzknnu45-s.js +1 -0
- package/out/_next/static/chunks/3ejsx4af27cct.js +7 -0
- package/out/_next/static/chunks/3es4yddhl8uwc.js +7 -0
- package/out/_next/static/chunks/3fpgg_wy6j2ph.js +2 -0
- package/out/_next/static/chunks/3inp15oicq85k.js +1 -0
- package/out/_next/static/chunks/3j25u7rzawm9f.js +367 -0
- package/out/_next/static/chunks/3jxeyjg2g7w94.js +1 -0
- package/out/_next/static/chunks/3kd-t_qz3nxh7.js +30 -0
- package/out/_next/static/chunks/3kl8vv7w9jkjr.js +23 -0
- package/out/_next/static/chunks/3kmfx3f7oyfdm.js +5 -0
- package/out/_next/static/chunks/3koj4-48a7p_9.js +4 -0
- package/out/_next/static/chunks/3l7glrtu8ueuo.js +4 -0
- package/out/_next/static/chunks/3lgq9oa_2erwo.js +5 -0
- package/out/_next/static/chunks/3m_9ozv0orvze.js +187 -0
- package/out/_next/static/chunks/3muxcxam24i5z.js +1 -0
- package/out/_next/static/chunks/3nimt7ngr5zv6.js +46 -0
- package/out/_next/static/chunks/3pwezwpggrz59.js +74 -0
- package/out/_next/static/chunks/3r02t7a7jknrv.js +7 -0
- package/out/_next/static/chunks/3s40iuaou1rt4.js +1 -0
- package/out/_next/static/chunks/3selzn479n73i.js +16 -0
- package/out/_next/static/chunks/3srflqnqdfd60.js +5 -0
- package/out/_next/static/chunks/3t57k35xu2eo8.js +5 -0
- package/out/_next/static/chunks/3tu90a7do336z.js +12 -0
- package/out/_next/static/chunks/3ukgj2jzxf10n.js +5 -0
- package/out/_next/static/chunks/3vosu-lpiis6v.js +5 -0
- package/out/_next/static/chunks/3xaz8fvw2x6b3.js +5 -0
- package/out/_next/static/chunks/3xgjhwzul66dp.js +4 -0
- package/out/_next/static/chunks/3zze6y1x00k__.js +165 -0
- package/out/_next/static/chunks/40730dyt912zu.js +5 -0
- package/out/_next/static/chunks/40f26tfp8txip.js +5 -0
- package/out/_next/static/chunks/40kc42ezz2dri.js +1 -0
- package/out/_next/static/chunks/41f60q88qcigi.js +39 -0
- package/out/_next/static/chunks/41l5iphw-rna3.js +44 -0
- package/out/_next/static/chunks/423kk9x5t9_b8.js +5 -0
- package/out/_next/static/chunks/42k5e3tr3uyzs.js +54 -0
- package/out/_next/static/chunks/43uqmej6-s4am.js +7 -0
- package/out/_next/static/chunks/4481d7yj7bm2q.js +5 -0
- package/out/_next/static/chunks/448is1kpt9eaa.js +39 -0
- package/out/_next/static/chunks/44fkzg2e80pqt.js +8 -0
- package/out/_next/static/chunks/turbopack-2c3mg3r-05n1w.js +1 -0
- package/out/_offline/index.html +3 -2
- package/out/account/forgot-password/index.html +3 -2
- package/out/account/index.html +3 -2
- package/out/assortments/AssortmentDetailPage/index.html +3 -2
- package/out/assortments/index.html +3 -2
- package/out/assortments/new/index.html +3 -2
- package/out/copilot/index.html +3 -2
- package/out/country/CountryDetailPage/index.html +3 -2
- package/out/country/index.html +3 -2
- package/out/country/new/index.html +3 -2
- package/out/currency/CurrencyDetailPage/index.html +3 -2
- package/out/currency/index.html +3 -2
- package/out/currency/new/index.html +3 -2
- package/out/delivery-provider/DeliveryProviderDetailPage/index.html +3 -2
- package/out/delivery-provider/index.html +3 -2
- package/out/delivery-provider/new/index.html +3 -2
- package/out/enrollments/EnrollmentDetailPage/index.html +3 -2
- package/out/enrollments/index.html +3 -2
- package/out/events/EventDetailPage/index.html +3 -2
- package/out/events/index.html +3 -2
- package/out/exports/index.html +3 -2
- package/out/ext/[[...slug]]/index.html +12 -0
- package/out/external/index.html +3 -2
- package/out/filters/FilterDetailPage/index.html +3 -2
- package/out/filters/index.html +3 -2
- package/out/filters/new/index.html +3 -2
- package/out/index.html +3 -2
- package/out/install/index.html +3 -2
- package/out/language/LanguageDetailPage/index.html +3 -2
- package/out/language/index.html +3 -2
- package/out/language/new/index.html +3 -2
- package/out/log-in/index.html +3 -2
- package/out/orders/OrderDetailPage/index.html +3 -2
- package/out/orders/index.html +3 -2
- package/out/payment-provider/PaymentProviderDetailPage/index.html +3 -2
- package/out/payment-provider/index.html +3 -2
- package/out/payment-provider/new/index.html +3 -2
- package/out/products/ProductDetailPage/index.html +3 -2
- package/out/products/index.html +3 -2
- package/out/products/new/index.html +3 -2
- package/out/quotations/QuotationDetailPage/index.html +3 -2
- package/out/quotations/index.html +3 -2
- package/out/reset-password/index.html +3 -2
- package/out/sign-up/index.html +3 -2
- package/out/styleguide/index.html +3 -2
- package/out/tokens/TokenDetailPage/index.html +3 -2
- package/out/tokens/index.html +3 -2
- package/out/users/UserDetailPage/index.html +3 -2
- package/out/users/index.html +3 -2
- package/out/users/new/index.html +3 -2
- package/out/verify-email/index.html +3 -2
- package/out/warehousing-provider/WarehousingProviderDetailPage/index.html +3 -2
- package/out/warehousing-provider/index.html +3 -2
- package/out/warehousing-provider/new/index.html +3 -2
- package/out/works/WorkDetailPage/index.html +3 -2
- package/out/works/WorkQueueListView/index.html +3 -2
- package/out/works/index.html +3 -2
- package/out/works/management/index.html +3 -2
- package/package.json +129 -32
- package/src/modules/accounts/index.ts +40 -0
- package/src/modules/assortment/index.ts +31 -0
- package/src/modules/copilot/index.ts +4 -0
- package/src/modules/country/index.ts +5 -0
- package/src/modules/currency/index.ts +5 -0
- package/src/modules/delivery-provider/index.ts +7 -0
- package/src/modules/enrollment/index.ts +8 -0
- package/src/modules/event/index.ts +3 -0
- package/src/modules/filter/index.ts +15 -0
- package/src/modules/language/index.ts +5 -0
- package/src/modules/order/index.ts +8 -0
- package/src/modules/payment-providers/index.ts +7 -0
- package/src/modules/product/index.ts +53 -0
- package/src/modules/product-review/index.ts +6 -0
- package/src/modules/quotation/index.ts +6 -0
- package/src/modules/token/index.ts +3 -0
- package/src/modules/warehousing-providers/index.ts +7 -0
- package/src/modules/work/index.ts +8 -0
- package/src/sdk/README.md +235 -0
- package/src/sdk/form-entry.test.mjs +11 -0
- package/src/sdk/hooks.ts +15 -0
- package/src/sdk/modal.ts +6 -0
- package/src/sdk/plugin-build.mjs +97 -0
- package/src/sdk/plugin-build.test.mjs +46 -0
- package/src/sdk/plugin-navigation.test.mjs +59 -0
- package/src/sdk/plugin-runtime.cjs +66 -0
- package/src/sdk/plugin-runtime.d.mts +11 -0
- package/src/sdk/plugin-runtime.mjs +27 -0
- package/src/sdk/plugin-runtime.test.mjs +32 -0
- package/src/sdk/plugins.mjs +17 -0
- package/src/sdk/plugins.ts +105 -0
- package/src/sdk/providers.ts +4 -0
- package/src/sdk/shared-context.test.mjs +40 -0
- package/src/sdk/shims/admin-ui-plugins.ts +3 -0
- package/src/sdk/shims/apollo-client-react.ts +3 -0
- package/src/sdk/shims/apollo-client.ts +3 -0
- package/src/sdk/shims/host.ts +61 -0
- package/src/sdk/shims/next-head.ts +3 -0
- package/src/sdk/shims/next-image.ts +3 -0
- package/src/sdk/shims/next-link.ts +3 -0
- package/src/sdk/shims/next-router.ts +3 -0
- package/src/sdk/shims/react-dom-client.ts +3 -0
- package/src/sdk/shims/react-dom.ts +3 -0
- package/src/sdk/shims/react-hook-form.ts +3 -0
- package/src/sdk/shims/react-intl.ts +3 -0
- package/src/sdk/shims/react-jsx-runtime.ts +3 -0
- package/src/sdk/shims/react-toastify.ts +3 -0
- package/src/sdk/shims/react.ts +3 -0
- package/src/sdk/tailwind-preset.mjs +94 -0
- package/src/sdk/theme.ts +61 -0
- package/src/styles/globals.css +291 -0
- package/out/_next/static/_ZCNVAj2ptQ3WvyS9d8fH/_buildManifest.js +0 -258
- package/out/_next/static/chunks/0-3aqi0z~0~kq.js +0 -1
- package/out/_next/static/chunks/0-_n2k06ojx7r.js +0 -5
- package/out/_next/static/chunks/0-b7z0cgkcxjg.js +0 -12
- package/out/_next/static/chunks/0-khetjtcca7j.js +0 -23
- package/out/_next/static/chunks/0-vzy055sp9wr.js +0 -1
- package/out/_next/static/chunks/0.7c6ora-keix.js +0 -291
- package/out/_next/static/chunks/0.7jou~9s-9ly.js +0 -342
- package/out/_next/static/chunks/0.9xrb29zv20w.js +0 -1
- package/out/_next/static/chunks/0.qq-wh2-26q3.js +0 -1
- package/out/_next/static/chunks/00.vtv-~sgyl1.js +0 -1
- package/out/_next/static/chunks/002w~0kz13czu.js +0 -2
- package/out/_next/static/chunks/00am.v9yslbhb.js +0 -227
- package/out/_next/static/chunks/00z-be-uhq5~b.js +0 -138
- package/out/_next/static/chunks/01.ky4xf9k36u.js +0 -1
- package/out/_next/static/chunks/01m_2h75jti7r.js +0 -173
- package/out/_next/static/chunks/01r~p51b_ree7.js +0 -12
- package/out/_next/static/chunks/01ua~kzkn_2re.js +0 -2
- package/out/_next/static/chunks/01~bicjgx9ycz.js +0 -13
- package/out/_next/static/chunks/02.h.hxc5z45l.js +0 -58
- package/out/_next/static/chunks/020ov1cd5ubsp.js +0 -1
- package/out/_next/static/chunks/022.6ji94gj66.js +0 -90
- package/out/_next/static/chunks/02ljwx.y7xl4e.js +0 -384
- package/out/_next/static/chunks/02mkjzfq3ks0c.js +0 -342
- package/out/_next/static/chunks/034ij~x6p.1xq.js +0 -7
- package/out/_next/static/chunks/0387wujkm6quw.js +0 -26
- package/out/_next/static/chunks/03j~743_iaz5a.js +0 -87
- package/out/_next/static/chunks/03zc-8olk-a4z.js +0 -11
- package/out/_next/static/chunks/042vny1lzms1d.js +0 -1
- package/out/_next/static/chunks/045b8oqunhkwz.js +0 -1
- package/out/_next/static/chunks/04d1nicvb1h43.js +0 -12
- package/out/_next/static/chunks/04hnzv8.xnhtq.js +0 -12
- package/out/_next/static/chunks/04j3vrvch7ujx.js +0 -1
- package/out/_next/static/chunks/04j47t-gfncz0.js +0 -17
- package/out/_next/static/chunks/04wxvqon75sl5.js +0 -15
- package/out/_next/static/chunks/0511iudhvmzyd.js +0 -14
- package/out/_next/static/chunks/054x6af~vznwl.js +0 -13
- package/out/_next/static/chunks/055l.ongzthsf.js +0 -2
- package/out/_next/static/chunks/05r6-kh0ahzac.js +0 -288
- package/out/_next/static/chunks/068vu6mcq90.a.js +0 -14
- package/out/_next/static/chunks/069qmjrpifff9.js +0 -10
- package/out/_next/static/chunks/06c.18b146dst.js +0 -43
- package/out/_next/static/chunks/06ciqx79i2-.y.js +0 -16
- package/out/_next/static/chunks/06em3notkoupj.js +0 -60
- package/out/_next/static/chunks/06fu~nzcm6-xx.js +0 -13
- package/out/_next/static/chunks/06ldt6o0kv861.js +0 -12
- package/out/_next/static/chunks/06nnfpkytc2xp.js +0 -101
- package/out/_next/static/chunks/071ms7.~t3bpc.js +0 -73
- package/out/_next/static/chunks/07absjbyi5efz.js +0 -200
- package/out/_next/static/chunks/07e9hvcn2m7m0.css +0 -1
- package/out/_next/static/chunks/07gn.w-1ng2vv.js +0 -13
- package/out/_next/static/chunks/07ok4zsn3fbvv.js +0 -8
- package/out/_next/static/chunks/07rzofd~n_8p3.js +0 -111
- package/out/_next/static/chunks/08mu1xcbu0z5i.js +0 -1
- package/out/_next/static/chunks/08np.usn69g26.js +0 -12
- package/out/_next/static/chunks/08oxo2i_s5k32.js +0 -22
- package/out/_next/static/chunks/09.xyqg-s5.hj.js +0 -1
- package/out/_next/static/chunks/09kdzdul.4ws~.js +0 -5
- package/out/_next/static/chunks/09u84u49rpg~q.js +0 -10
- package/out/_next/static/chunks/0_0s9kzhzuc0n.js +0 -51
- package/out/_next/static/chunks/0_34hlmm2xs02.js +0 -1
- package/out/_next/static/chunks/0__0blfuajz3u.js +0 -1
- package/out/_next/static/chunks/0_bohk37n03zc.js +0 -13
- package/out/_next/static/chunks/0_fs4fka5dmk4.js +0 -14
- package/out/_next/static/chunks/0_t._or66p529.js +0 -10
- package/out/_next/static/chunks/0a6n-.sxlxj9i.js +0 -44
- package/out/_next/static/chunks/0aewtng76o8~g.js +0 -1
- package/out/_next/static/chunks/0aokk5k383t_7.js +0 -1
- package/out/_next/static/chunks/0bb3o6y0psmp~.js +0 -137
- package/out/_next/static/chunks/0binkax94nk~0.js +0 -286
- package/out/_next/static/chunks/0b~s0.jgd-9e2.js +0 -1
- package/out/_next/static/chunks/0c6p-vlcfco03.js +0 -2
- package/out/_next/static/chunks/0cau~hqb0jkf..js +0 -1
- package/out/_next/static/chunks/0chk_j9c0w74~.js +0 -21
- package/out/_next/static/chunks/0cnjwc8yv_7du.js +0 -36
- package/out/_next/static/chunks/0d1xe7n4~ift~.js +0 -119
- package/out/_next/static/chunks/0d2egm4vz55tp.js +0 -16
- package/out/_next/static/chunks/0dcng-~m.1-6b.js +0 -31
- package/out/_next/static/chunks/0dwysww-f770p.js +0 -43
- package/out/_next/static/chunks/0d~ogeoavcw1p.js +0 -2
- package/out/_next/static/chunks/0eh08mw_ge-97.js +0 -20
- package/out/_next/static/chunks/0ehfzo.p_8b1p.js +0 -142
- package/out/_next/static/chunks/0ei4k52e-lv4o.js +0 -596
- package/out/_next/static/chunks/0eq_bq11j1d8h.js +0 -73
- package/out/_next/static/chunks/0exrsz6ax-mbc.js +0 -50
- package/out/_next/static/chunks/0f7dus4chk-b7.js +0 -1
- package/out/_next/static/chunks/0f_2kctvcf9fc.js +0 -132
- package/out/_next/static/chunks/0fiu9kb2mg_pe.js +0 -1
- package/out/_next/static/chunks/0fzcyuwh8xfnw.js +0 -2
- package/out/_next/static/chunks/0gepdh_x8l03e.js +0 -31
- package/out/_next/static/chunks/0h3apzm4sorb-.js +0 -144
- package/out/_next/static/chunks/0hf6k~k9i9dml.js +0 -101
- package/out/_next/static/chunks/0hggeos.n3ho1.js +0 -324
- package/out/_next/static/chunks/0hs_qs3vvqt40.js +0 -224
- package/out/_next/static/chunks/0i.xcdg6xys-l.js +0 -1
- package/out/_next/static/chunks/0i2a62pwzd90a.js +0 -1
- package/out/_next/static/chunks/0i6yv64iri6c7.js +0 -14
- package/out/_next/static/chunks/0id0hab4x07mp.js +0 -13
- package/out/_next/static/chunks/0itsov_woj_gc.js +0 -11
- package/out/_next/static/chunks/0j0vos96uuvzn.js +0 -19
- package/out/_next/static/chunks/0jl_db3hgihi8.js +0 -1
- package/out/_next/static/chunks/0jsod19bi_.b4.js +0 -1
- package/out/_next/static/chunks/0jt2g8-m-bu3h.js +0 -15
- package/out/_next/static/chunks/0jxpx..caiup3.js +0 -51
- package/out/_next/static/chunks/0k3anlop2ta22.js +0 -1
- package/out/_next/static/chunks/0kg9ib_s2gdgg.js +0 -13
- package/out/_next/static/chunks/0klqyqhl-cmiq.js +0 -46
- package/out/_next/static/chunks/0krimw~~gz366.js +0 -2
- package/out/_next/static/chunks/0kwn.hg1e.um~.js +0 -44
- package/out/_next/static/chunks/0kwrzdkwhn88r.js +0 -13
- package/out/_next/static/chunks/0lcrt1adr76yw.js +0 -8
- package/out/_next/static/chunks/0ljk.6lm3l484.js +0 -7
- package/out/_next/static/chunks/0lq8y5ij59ip~.js +0 -1
- package/out/_next/static/chunks/0ltj_coftxt~y.js +0 -3
- package/out/_next/static/chunks/0lvph83c6z2a-.js +0 -1
- package/out/_next/static/chunks/0mehfyjroyd5m.js +0 -22
- package/out/_next/static/chunks/0n0rvtqgyilhu.js +0 -13
- package/out/_next/static/chunks/0n_8yfa~wwmvn.js +0 -16
- package/out/_next/static/chunks/0ncx_fjx5r3e9.js +0 -13
- package/out/_next/static/chunks/0njruqifmj7eb.js +0 -73
- package/out/_next/static/chunks/0nxa2d3rd~_hk.js +0 -20
- package/out/_next/static/chunks/0oavskn-j3nfr.js +0 -12
- package/out/_next/static/chunks/0oe9_~e6jba2c.js +0 -108
- package/out/_next/static/chunks/0on_9mgul7_i2.js +0 -188
- package/out/_next/static/chunks/0o~whquist5u6.js +0 -1
- package/out/_next/static/chunks/0p1dktj9e81.u.js +0 -209
- package/out/_next/static/chunks/0p2l~~8x6478b.js +0 -73
- package/out/_next/static/chunks/0p47r5clv~tji.js +0 -10
- package/out/_next/static/chunks/0pu7s41rb3je3.js +0 -1
- package/out/_next/static/chunks/0pvo5m24k8fer.js +0 -61
- package/out/_next/static/chunks/0q_s9ru.9iese.js +0 -193
- package/out/_next/static/chunks/0qoukboupb.ht.js +0 -14
- package/out/_next/static/chunks/0qsxmm8vi313~.js +0 -1
- package/out/_next/static/chunks/0qvf8s9fxj~ah.js +0 -41
- package/out/_next/static/chunks/0qy-relppwey0.js +0 -384
- package/out/_next/static/chunks/0r-a0zxkpzy.c.js +0 -14
- package/out/_next/static/chunks/0r017e-0mhnx2.js +0 -16
- package/out/_next/static/chunks/0r4jylm5inuxv.js +0 -13
- package/out/_next/static/chunks/0r6m.pwe-fw0s.js +0 -18
- package/out/_next/static/chunks/0rbjbp6y.a5ze.js +0 -8
- package/out/_next/static/chunks/0rds3div~3bsj.js +0 -15
- package/out/_next/static/chunks/0ridpuenplsy6.js +0 -46
- package/out/_next/static/chunks/0rwb5kn3yi~nn.js +0 -16
- package/out/_next/static/chunks/0s8kpaa2at0vl.js +0 -1
- package/out/_next/static/chunks/0sbwu9f3ons7y.js +0 -13
- package/out/_next/static/chunks/0sqtyywk.m-gb.js +0 -119
- package/out/_next/static/chunks/0suvx3w6t11x1.js +0 -14
- package/out/_next/static/chunks/0t.cqbkm36.29.js +0 -16
- package/out/_next/static/chunks/0ta5trm5g8qpx.js +0 -1
- package/out/_next/static/chunks/0u5rgvh_590-0.js +0 -15
- package/out/_next/static/chunks/0uzv9isqw0xwo.js +0 -12
- package/out/_next/static/chunks/0vu00vv4k8fm2.js +0 -5
- package/out/_next/static/chunks/0wbeo27c~tc9b.js +0 -13
- package/out/_next/static/chunks/0wc49~p9kujfb.js +0 -137
- package/out/_next/static/chunks/0we-.8a4ky2dw.js +0 -2
- package/out/_next/static/chunks/0whq69wyy9mrh.js +0 -1
- package/out/_next/static/chunks/0wjcrj2l-j~_f.js +0 -188
- package/out/_next/static/chunks/0wo4urhtm22ug.js +0 -1
- package/out/_next/static/chunks/0wuu4uyer4mlk.js +0 -31
- package/out/_next/static/chunks/0x4-t7xmjlqx1.js +0 -12
- package/out/_next/static/chunks/0x6_x80dsgoq7.js +0 -2
- package/out/_next/static/chunks/0xczkhpv81j3p.js +0 -1
- package/out/_next/static/chunks/0xo2uquse155f.js +0 -26
- package/out/_next/static/chunks/0xve~a_ipc.21.js +0 -81
- package/out/_next/static/chunks/0y153o27bxgcb.js +0 -1
- package/out/_next/static/chunks/0y51ico3_h9g3.js +0 -346
- package/out/_next/static/chunks/0y5ttyo5uc5l-.js +0 -15
- package/out/_next/static/chunks/0ydxs-rl4u1j7.js +0 -8
- package/out/_next/static/chunks/0yrt60iy59wz5.js +0 -13
- package/out/_next/static/chunks/0z.rzro53h5n6.js +0 -15
- package/out/_next/static/chunks/0zhqlp5hndrqa.js +0 -1
- package/out/_next/static/chunks/0znn2bf~0xx64.js +0 -46
- package/out/_next/static/chunks/0zpe1nbzz~f8h.js +0 -5
- package/out/_next/static/chunks/0zr4c4gwoe48t.js +0 -15
- package/out/_next/static/chunks/0~gsuncyic_fy.js +0 -2
- package/out/_next/static/chunks/0~tk5o7vtfrjq.js +0 -66
- package/out/_next/static/chunks/103dw~jwhci8m.js +0 -61
- package/out/_next/static/chunks/1041bp0usprml.js +0 -217
- package/out/_next/static/chunks/10bhd86pfsoy5.js +0 -3
- package/out/_next/static/chunks/10jmwo0cv2790.js +0 -100
- package/out/_next/static/chunks/10m8c175impy1.js +0 -135
- package/out/_next/static/chunks/10y5-.kflf93t.js +0 -13
- package/out/_next/static/chunks/11_s223xijkg..js +0 -14
- package/out/_next/static/chunks/11fl4v~k-i6dd.js +0 -1
- package/out/_next/static/chunks/11rfgl5vsu7np.js +0 -147
- package/out/_next/static/chunks/11sml2nj796.7.js +0 -59
- package/out/_next/static/chunks/11smy7~k0731f.js +0 -12
- package/out/_next/static/chunks/12e_gn-hj1ad4.js +0 -5
- package/out/_next/static/chunks/12nnf6pgi3n_-.js +0 -16
- package/out/_next/static/chunks/12q9qfk5yyvku.js +0 -288
- package/out/_next/static/chunks/13h_3r03rklr2.js +0 -54
- package/out/_next/static/chunks/13tjz9q-ls~t3.js +0 -1
- package/out/_next/static/chunks/13ytbvm.zbpoc.js +0 -13
- package/out/_next/static/chunks/13ztct7h9n9ly.js +0 -1
- package/out/_next/static/chunks/14.go5qd.nd-p.js +0 -22
- package/out/_next/static/chunks/14e4xylnze3x2.js +0 -1
- package/out/_next/static/chunks/14kk7enrk.1zd.js +0 -14
- package/out/_next/static/chunks/14q69-rwokbvm.js +0 -13
- package/out/_next/static/chunks/14tbg01czewdy.js +0 -1
- package/out/_next/static/chunks/14vhb8kz5tl75.js +0 -471
- package/out/_next/static/chunks/15r--ckscx-95.js +0 -227
- package/out/_next/static/chunks/15wy-.8-w435h.js +0 -92
- package/out/_next/static/chunks/15z9m-o4tbe0n.js +0 -1
- package/out/_next/static/chunks/169ub5vhwew62.js +0 -1
- package/out/_next/static/chunks/16_-z_hnq-xk7.js +0 -12
- package/out/_next/static/chunks/16s_3ks~~cizu.js +0 -31
- package/out/_next/static/chunks/16wl81ja44b1o.js +0 -54
- package/out/_next/static/chunks/16yuttvlotzf1.js +0 -13
- package/out/_next/static/chunks/17iwj3.fr3dk8.js +0 -7
- package/out/_next/static/chunks/17l28vjc_z915.js +0 -596
- package/out/_next/static/chunks/17v04.so.9g1..js +0 -1
- package/out/_next/static/chunks/181fxym9wgh_m.js +0 -1
- package/out/_next/static/chunks/188m.-obobpy_.js +0 -178
- package/out/_next/static/chunks/turbopack-0-c-m~y_.l8n2.js +0 -1
- package/out/_next/static/chunks/turbopack-0-ly3m1ffx4wa.js +0 -1
- package/out/_next/static/chunks/turbopack-0-w~ect25bcud.js +0 -1
- package/out/_next/static/chunks/turbopack-0.2nskz5ux6vf.js +0 -1
- package/out/_next/static/chunks/turbopack-00s1egv_1qxjy.js +0 -1
- package/out/_next/static/chunks/turbopack-00xxfsstzot2t.js +0 -1
- package/out/_next/static/chunks/turbopack-01cocbtxks9vh.js +0 -1
- package/out/_next/static/chunks/turbopack-032afnigdvseo.js +0 -1
- package/out/_next/static/chunks/turbopack-03hvtuilfwgpp.js +0 -1
- package/out/_next/static/chunks/turbopack-04r-j8f.wnbc8.js +0 -1
- package/out/_next/static/chunks/turbopack-06m0ig9acgabg.js +0 -1
- package/out/_next/static/chunks/turbopack-06rfum.y.5-0h.js +0 -1
- package/out/_next/static/chunks/turbopack-07kkmwgy.zqc4.js +0 -1
- package/out/_next/static/chunks/turbopack-07qbascdm6h.j.js +0 -1
- package/out/_next/static/chunks/turbopack-087jzd1gou_ln.js +0 -1
- package/out/_next/static/chunks/turbopack-08h61bgwzagra.js +0 -1
- package/out/_next/static/chunks/turbopack-09d04tqccs343.js +0 -1
- package/out/_next/static/chunks/turbopack-0a1fdpd8.q282.js +0 -1
- package/out/_next/static/chunks/turbopack-0azc8sns1skk7.js +0 -1
- package/out/_next/static/chunks/turbopack-0b6fo_~4ih.xu.js +0 -1
- package/out/_next/static/chunks/turbopack-0bv6z-ics5a1v.js +0 -1
- package/out/_next/static/chunks/turbopack-0c6v~i5zl-_gb.js +0 -1
- package/out/_next/static/chunks/turbopack-0cn_kcha7l~dv.js +0 -1
- package/out/_next/static/chunks/turbopack-0d6899l2l47lo.js +0 -1
- package/out/_next/static/chunks/turbopack-0f3a-2xdfi37o.js +0 -1
- package/out/_next/static/chunks/turbopack-0h1nt4kh7q.sg.js +0 -1
- package/out/_next/static/chunks/turbopack-0hh49n1y8gh-z.js +0 -1
- package/out/_next/static/chunks/turbopack-0ike2xsgynih8.js +0 -1
- package/out/_next/static/chunks/turbopack-0iyvc628rll34.js +0 -1
- package/out/_next/static/chunks/turbopack-0j-vlj505~ob9.js +0 -1
- package/out/_next/static/chunks/turbopack-0j4w2c8pgyzts.js +0 -1
- package/out/_next/static/chunks/turbopack-0kblf3k62bseb.js +0 -1
- package/out/_next/static/chunks/turbopack-0l-~7v3-4~9hg.js +0 -1
- package/out/_next/static/chunks/turbopack-0lb9brrvzbipj.js +0 -1
- package/out/_next/static/chunks/turbopack-0lxybl6vxlhqz.js +0 -1
- package/out/_next/static/chunks/turbopack-0mlri9n~ktoxa.js +0 -1
- package/out/_next/static/chunks/turbopack-0mrgw~e1q9n4l.js +0 -1
- package/out/_next/static/chunks/turbopack-0na33zduv8spb.js +0 -1
- package/out/_next/static/chunks/turbopack-0o_.gb8s5jo85.js +0 -1
- package/out/_next/static/chunks/turbopack-0ofwh3p918g-t.js +0 -1
- package/out/_next/static/chunks/turbopack-0o~anfgw~s_~q.js +0 -1
- package/out/_next/static/chunks/turbopack-0q3dp3wkxb9ro.js +0 -1
- package/out/_next/static/chunks/turbopack-0q5hq623ooh_q.js +0 -1
- package/out/_next/static/chunks/turbopack-0rd~zo~yh9.xl.js +0 -1
- package/out/_next/static/chunks/turbopack-0s3jauzip9.x..js +0 -1
- package/out/_next/static/chunks/turbopack-0uukmkfqyl0h8.js +0 -1
- package/out/_next/static/chunks/turbopack-0w_qsium_grk3.js +0 -1
- package/out/_next/static/chunks/turbopack-0wbajkw2~1l3z.js +0 -1
- package/out/_next/static/chunks/turbopack-0wej6bu7ey9au.js +0 -1
- package/out/_next/static/chunks/turbopack-0wk424kj.kar2.js +0 -1
- package/out/_next/static/chunks/turbopack-0xew6rccsve8y.js +0 -1
- package/out/_next/static/chunks/turbopack-0y898tb-~kae~.js +0 -1
- package/out/_next/static/chunks/turbopack-0~lzxx1ip4b0u.js +0 -1
- package/out/_next/static/chunks/turbopack-11.ar48mv3rch.js +0 -1
- package/out/_next/static/chunks/turbopack-11eqwvrhzm6gb.js +0 -1
- package/out/_next/static/chunks/turbopack-12cd3.da_pv_e.js +0 -1
- package/out/_next/static/chunks/turbopack-12hcx9pi_e_wy.js +0 -1
- package/out/_next/static/chunks/turbopack-12pksi_8~z4-a.js +0 -1
- package/out/_next/static/chunks/turbopack-146i7rj93.pk3.js +0 -1
- package/out/_next/static/chunks/turbopack-15d8c1ob0a6m0.js +0 -1
- package/out/_next/static/chunks/turbopack-16-bzzuvc9d9..js +0 -1
- package/out/_next/static/chunks/turbopack-17sr.m9o6jhdb.js +0 -1
- package/out/_next/static/chunks/turbopack-1829xb~o3h36e.js +0 -1
- package/out/admin-ui-permissions.js +0 -129
- /package/out/_next/static/{_ZCNVAj2ptQ3WvyS9d8fH → BPoacQET3TJr2q9E370Ez}/_clientMiddlewareManifest.js +0 -0
- /package/out/_next/static/{_ZCNVAj2ptQ3WvyS9d8fH → BPoacQET3TJr2q9E370Ez}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,1349 @@
|
|
|
1
|
+
import { useConfirmMediaUpload_default, PUTMedia_default } from '../chunk-COV7BREX.js';
|
|
2
|
+
import { useCSVExport } from '../chunk-IWKDBADX.js';
|
|
3
|
+
import '../chunk-VYEXPG3M.js';
|
|
4
|
+
import '../chunk-QWQ3WJJN.js';
|
|
5
|
+
import { UserFragment_default, MD5MetaDataFragment_default } from '../chunk-GY2DRQGW.js';
|
|
6
|
+
export { useCurrentUser_default as useCurrentUser } from '../chunk-GY2DRQGW.js';
|
|
7
|
+
import { useUnchainedContext_default } from '../chunk-IAQPLRXZ.js';
|
|
8
|
+
import '../chunk-WPLOTFGW.js';
|
|
9
|
+
import { gql } from '@apollo/client';
|
|
10
|
+
import { useMutation, useQuery } from '@apollo/client/react';
|
|
11
|
+
import { useCallback } from 'react';
|
|
12
|
+
|
|
13
|
+
var logOut = async (apollo, router = null) => {
|
|
14
|
+
await apollo.mutate({
|
|
15
|
+
mutation: gql`
|
|
16
|
+
mutation Logout {
|
|
17
|
+
logout {
|
|
18
|
+
success
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
`
|
|
22
|
+
});
|
|
23
|
+
try {
|
|
24
|
+
await apollo.resetStore();
|
|
25
|
+
} catch (e) {
|
|
26
|
+
if (e?.name !== "AbortError") throw e;
|
|
27
|
+
}
|
|
28
|
+
if (router) {
|
|
29
|
+
router.push("/log-in");
|
|
30
|
+
} else if (typeof window !== "undefined") {
|
|
31
|
+
window.location.href = "/log-in";
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
var logOut_default = logOut;
|
|
35
|
+
var AddEmailMutation = gql`
|
|
36
|
+
mutation AddEmail($email: String!, $userId: ID) {
|
|
37
|
+
addEmail(email: $email, userId: $userId) {
|
|
38
|
+
_id
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
`;
|
|
42
|
+
var useAddEmail = () => {
|
|
43
|
+
const [addEmailMutation] = useMutation(AddEmailMutation);
|
|
44
|
+
const addEmail = async ({ email, userId }) => {
|
|
45
|
+
return addEmailMutation({
|
|
46
|
+
variables: { email, userId },
|
|
47
|
+
refetchQueries: ["UserPermissions", "User", "CurrentUser"]
|
|
48
|
+
});
|
|
49
|
+
};
|
|
50
|
+
return {
|
|
51
|
+
addEmail
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
var useAddEmail_default = useAddEmail;
|
|
55
|
+
var AddWeb3AddressMutation = gql`
|
|
56
|
+
mutation AddWeb3Address($address: String!) {
|
|
57
|
+
addWeb3Address(address: $address) {
|
|
58
|
+
...UserFragment
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
${UserFragment_default}
|
|
62
|
+
`;
|
|
63
|
+
var useAddWeb3Address = () => {
|
|
64
|
+
const [addWeb3AddressMutation] = useMutation(AddWeb3AddressMutation);
|
|
65
|
+
const addWeb3Address = async ({
|
|
66
|
+
address
|
|
67
|
+
}) => {
|
|
68
|
+
return addWeb3AddressMutation({
|
|
69
|
+
variables: {
|
|
70
|
+
address
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
};
|
|
74
|
+
return {
|
|
75
|
+
addWeb3Address
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
var useAddWeb3Address_default = useAddWeb3Address;
|
|
79
|
+
var AddWebAuthnCredentialsMutation = gql`
|
|
80
|
+
mutation AddWebAuthnCredentials($credentials: JSON!) {
|
|
81
|
+
addWebAuthnCredentials(credentials: $credentials) {
|
|
82
|
+
...UserFragment
|
|
83
|
+
webAuthnCredentials {
|
|
84
|
+
_id
|
|
85
|
+
created
|
|
86
|
+
aaguid
|
|
87
|
+
counter
|
|
88
|
+
mdsMetadata {
|
|
89
|
+
...MD5MetaDataFragment
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
${UserFragment_default}
|
|
95
|
+
${MD5MetaDataFragment_default}
|
|
96
|
+
`;
|
|
97
|
+
var useAddWebAuthnCredentials = () => {
|
|
98
|
+
const [addWebAuthnCredentialsMutation] = useMutation(AddWebAuthnCredentialsMutation);
|
|
99
|
+
const addWebAuthnCredentials = async ({
|
|
100
|
+
credentials
|
|
101
|
+
}) => {
|
|
102
|
+
return addWebAuthnCredentialsMutation({
|
|
103
|
+
variables: { credentials }
|
|
104
|
+
});
|
|
105
|
+
};
|
|
106
|
+
return {
|
|
107
|
+
addWebAuthnCredentials
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
var useAddWebAuthnCredentials_default = useAddWebAuthnCredentials;
|
|
111
|
+
var BulkUpdateUserTagsMutation = gql`
|
|
112
|
+
mutation BulkUpdateUserTags(
|
|
113
|
+
$userIds: [ID!]!
|
|
114
|
+
$add: [LowerCaseString!]
|
|
115
|
+
$remove: [LowerCaseString!]
|
|
116
|
+
) {
|
|
117
|
+
bulkUpdateUserTags(userIds: $userIds, add: $add, remove: $remove) {
|
|
118
|
+
successCount
|
|
119
|
+
failedCount
|
|
120
|
+
failedIds
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
`;
|
|
124
|
+
var BulkRemoveUsersMutation = gql`
|
|
125
|
+
mutation BulkRemoveUsers($userIds: [ID!]!) {
|
|
126
|
+
bulkRemoveUsers(userIds: $userIds) {
|
|
127
|
+
successCount
|
|
128
|
+
failedCount
|
|
129
|
+
failedIds
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
`;
|
|
133
|
+
var BulkSetUserRolesMutation = gql`
|
|
134
|
+
mutation BulkSetUserRoles($userIds: [ID!]!, $roles: [String!]!) {
|
|
135
|
+
bulkSetUserRoles(userIds: $userIds, roles: $roles) {
|
|
136
|
+
successCount
|
|
137
|
+
failedCount
|
|
138
|
+
failedIds
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
`;
|
|
142
|
+
var refetchQueries = ["Users", "UsersCount"];
|
|
143
|
+
var setRolesRefetchQueries = [...refetchQueries, "CurrentUser"];
|
|
144
|
+
var useBulkUserOperations = () => {
|
|
145
|
+
const [bulkUpdateTagsMutation] = useMutation(BulkUpdateUserTagsMutation);
|
|
146
|
+
const [bulkRemoveMutation] = useMutation(BulkRemoveUsersMutation);
|
|
147
|
+
const [bulkSetRolesMutation] = useMutation(BulkSetUserRolesMutation);
|
|
148
|
+
return {
|
|
149
|
+
bulkUpdateUserTags: (userIds, add, remove) => bulkUpdateTagsMutation({
|
|
150
|
+
variables: { userIds, add, remove },
|
|
151
|
+
refetchQueries,
|
|
152
|
+
awaitRefetchQueries: true
|
|
153
|
+
}),
|
|
154
|
+
bulkRemoveUsers: (userIds) => bulkRemoveMutation({
|
|
155
|
+
variables: { userIds },
|
|
156
|
+
refetchQueries,
|
|
157
|
+
awaitRefetchQueries: true
|
|
158
|
+
}),
|
|
159
|
+
bulkSetUserRoles: (userIds, roles) => bulkSetRolesMutation({
|
|
160
|
+
variables: { userIds, roles },
|
|
161
|
+
refetchQueries: setRolesRefetchQueries,
|
|
162
|
+
awaitRefetchQueries: true
|
|
163
|
+
})
|
|
164
|
+
};
|
|
165
|
+
};
|
|
166
|
+
var useBulkUserOperations_default = useBulkUserOperations;
|
|
167
|
+
var ChangePasswordMutation = gql`
|
|
168
|
+
mutation ChangePassword($oldPassword: String!, $newPassword: String!) {
|
|
169
|
+
changePassword(oldPassword: $oldPassword, newPassword: $newPassword) {
|
|
170
|
+
success
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
`;
|
|
174
|
+
var useChangePassword = () => {
|
|
175
|
+
const [changePasswordMutation] = useMutation(ChangePasswordMutation);
|
|
176
|
+
const changePassword = async ({
|
|
177
|
+
oldPassword = void 0,
|
|
178
|
+
newPassword = void 0
|
|
179
|
+
}) => {
|
|
180
|
+
return changePasswordMutation({
|
|
181
|
+
variables: { oldPassword, newPassword }
|
|
182
|
+
});
|
|
183
|
+
};
|
|
184
|
+
return {
|
|
185
|
+
changePassword
|
|
186
|
+
};
|
|
187
|
+
};
|
|
188
|
+
var useChangePassword_default = useChangePassword;
|
|
189
|
+
var CreateUserMutation = gql`
|
|
190
|
+
mutation CreateUser(
|
|
191
|
+
$username: String
|
|
192
|
+
$email: String
|
|
193
|
+
$plainPassword: String
|
|
194
|
+
$profile: UserProfileInput
|
|
195
|
+
$webAuthnPublicKeyCredentials: JSON
|
|
196
|
+
) {
|
|
197
|
+
createUser(
|
|
198
|
+
username: $username
|
|
199
|
+
email: $email
|
|
200
|
+
password: $plainPassword
|
|
201
|
+
profile: $profile
|
|
202
|
+
webAuthnPublicKeyCredentials: $webAuthnPublicKeyCredentials
|
|
203
|
+
) {
|
|
204
|
+
_id
|
|
205
|
+
tokenExpires
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
`;
|
|
209
|
+
var useCreateUser = () => {
|
|
210
|
+
const [createUserMutation, { data, error, loading, client }] = useMutation(CreateUserMutation);
|
|
211
|
+
const createUser = async ({
|
|
212
|
+
username,
|
|
213
|
+
email,
|
|
214
|
+
plainPassword,
|
|
215
|
+
profile,
|
|
216
|
+
webAuthnPublicKeyCredentials
|
|
217
|
+
}) => {
|
|
218
|
+
const variables = {
|
|
219
|
+
username: null,
|
|
220
|
+
email: null,
|
|
221
|
+
profile,
|
|
222
|
+
plainPassword: null,
|
|
223
|
+
webAuthnPublicKeyCredentials
|
|
224
|
+
};
|
|
225
|
+
if (email) {
|
|
226
|
+
variables.email = email;
|
|
227
|
+
}
|
|
228
|
+
if (username) {
|
|
229
|
+
variables.username = username;
|
|
230
|
+
}
|
|
231
|
+
variables.plainPassword = plainPassword;
|
|
232
|
+
const result = await createUserMutation({
|
|
233
|
+
variables,
|
|
234
|
+
refetchQueries: ["Users", "ShopStatus", "ShopInfo"]
|
|
235
|
+
});
|
|
236
|
+
await client.resetStore();
|
|
237
|
+
return result;
|
|
238
|
+
};
|
|
239
|
+
const newUser = data?.createUser;
|
|
240
|
+
return {
|
|
241
|
+
createUser,
|
|
242
|
+
newUser,
|
|
243
|
+
error,
|
|
244
|
+
loading
|
|
245
|
+
};
|
|
246
|
+
};
|
|
247
|
+
var useCreateUser_default = useCreateUser;
|
|
248
|
+
var CreateWebAuthnCredentialCreationOptionsMutation = gql`
|
|
249
|
+
mutation CreateWebAuthnCredentialCreationOptions($username: String!) {
|
|
250
|
+
createWebAuthnCredentialCreationOptions(username: $username)
|
|
251
|
+
}
|
|
252
|
+
`;
|
|
253
|
+
var useCreateWebAuthnCredentialCreationOptions = () => {
|
|
254
|
+
const [createWebAuthnCredentialCreationOptionsMutation] = useMutation(CreateWebAuthnCredentialCreationOptionsMutation);
|
|
255
|
+
const createWebAuthnCredentialCreationOptions = async ({
|
|
256
|
+
username
|
|
257
|
+
}) => {
|
|
258
|
+
return createWebAuthnCredentialCreationOptionsMutation({
|
|
259
|
+
variables: { username }
|
|
260
|
+
});
|
|
261
|
+
};
|
|
262
|
+
return { createWebAuthnCredentialCreationOptions };
|
|
263
|
+
};
|
|
264
|
+
var useCreateWebAuthnCredentialCreationOptions_default = useCreateWebAuthnCredentialCreationOptions;
|
|
265
|
+
var CreateWebAuthnCredentialRequestOptionsMutation = gql`
|
|
266
|
+
mutation CreateWebAuthnCredentialRequestOptions($username: String) {
|
|
267
|
+
createWebAuthnCredentialRequestOptions(username: $username)
|
|
268
|
+
}
|
|
269
|
+
`;
|
|
270
|
+
var useCreateWebAuthnCredentialRequestOptions = () => {
|
|
271
|
+
const [createWebAuthnCredentialRequestOptionsMutation] = useMutation(CreateWebAuthnCredentialRequestOptionsMutation);
|
|
272
|
+
const createWebAuthnCredentialRequestOptions = async ({
|
|
273
|
+
username
|
|
274
|
+
}) => {
|
|
275
|
+
return createWebAuthnCredentialRequestOptionsMutation({
|
|
276
|
+
variables: { username }
|
|
277
|
+
});
|
|
278
|
+
};
|
|
279
|
+
return { createWebAuthnCredentialRequestOptions };
|
|
280
|
+
};
|
|
281
|
+
var useCreateWebAuthnCredentialRequestOptions_default = useCreateWebAuthnCredentialRequestOptions;
|
|
282
|
+
var DeleteUserMutation = gql`
|
|
283
|
+
mutation DeleteUser($userId: ID) {
|
|
284
|
+
removeUser(userId: $userId) {
|
|
285
|
+
_id
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
`;
|
|
289
|
+
var useDeleteUser = () => {
|
|
290
|
+
const [deleteUserMutation] = useMutation(DeleteUserMutation);
|
|
291
|
+
const deleteUser = async (userId = void 0) => {
|
|
292
|
+
return deleteUserMutation({
|
|
293
|
+
variables: {
|
|
294
|
+
userId
|
|
295
|
+
}
|
|
296
|
+
});
|
|
297
|
+
};
|
|
298
|
+
return {
|
|
299
|
+
deleteUser
|
|
300
|
+
};
|
|
301
|
+
};
|
|
302
|
+
var useDeleteUser_default = useDeleteUser;
|
|
303
|
+
var EnrollUserMutation = gql`
|
|
304
|
+
mutation EnrollUser(
|
|
305
|
+
$email: String!
|
|
306
|
+
$plainPassword: String
|
|
307
|
+
$profile: UserProfileInput!
|
|
308
|
+
) {
|
|
309
|
+
enrollUser(email: $email, password: $plainPassword, profile: $profile) {
|
|
310
|
+
_id
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
`;
|
|
314
|
+
var useEnrollUser = () => {
|
|
315
|
+
const [enrollUserMutation, { data, error, loading }] = useMutation(EnrollUserMutation);
|
|
316
|
+
const enrollUser = async ({ email, password, profile }) => {
|
|
317
|
+
const variables = {
|
|
318
|
+
email,
|
|
319
|
+
profile,
|
|
320
|
+
plainPassword: null
|
|
321
|
+
};
|
|
322
|
+
variables.plainPassword = password;
|
|
323
|
+
return enrollUserMutation({
|
|
324
|
+
variables,
|
|
325
|
+
refetchQueries: ["Users"]
|
|
326
|
+
});
|
|
327
|
+
};
|
|
328
|
+
const newUser = data?.enrollUser;
|
|
329
|
+
return {
|
|
330
|
+
enrollUser,
|
|
331
|
+
newUser,
|
|
332
|
+
error,
|
|
333
|
+
loading
|
|
334
|
+
};
|
|
335
|
+
};
|
|
336
|
+
var useEnrollUser_default = useEnrollUser;
|
|
337
|
+
var ForgotPasswordMutation = gql`
|
|
338
|
+
mutation ForgotPassword($email: String!) {
|
|
339
|
+
forgotPassword(email: $email) {
|
|
340
|
+
success
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
`;
|
|
344
|
+
var useForgotPassword = () => {
|
|
345
|
+
const [forgotPasswordMutation] = useMutation(ForgotPasswordMutation);
|
|
346
|
+
const forgotPassword = async ({
|
|
347
|
+
email
|
|
348
|
+
}) => {
|
|
349
|
+
return forgotPasswordMutation({
|
|
350
|
+
variables: { email }
|
|
351
|
+
});
|
|
352
|
+
};
|
|
353
|
+
return {
|
|
354
|
+
forgotPassword
|
|
355
|
+
};
|
|
356
|
+
};
|
|
357
|
+
var useForgotPassword_default = useForgotPassword;
|
|
358
|
+
|
|
359
|
+
// src/modules/common/utils/base64ToArrayBuffer.ts
|
|
360
|
+
var base64ToArrayBuffer = (b64) => {
|
|
361
|
+
if (window.atob && Uint8Array) {
|
|
362
|
+
const base64 = b64.replace(/-/g, "+").replace(/_/g, "/");
|
|
363
|
+
const padded = base64 + "=".repeat((4 - base64.length % 4) % 4);
|
|
364
|
+
const binaryString = window.atob(padded);
|
|
365
|
+
const len = binaryString.length;
|
|
366
|
+
const bytes = new Uint8Array(len);
|
|
367
|
+
for (let i = 0; i < len; i += 1) {
|
|
368
|
+
bytes[i] = binaryString.charCodeAt(i);
|
|
369
|
+
}
|
|
370
|
+
return bytes.buffer;
|
|
371
|
+
}
|
|
372
|
+
throw new Error("The atob and Uint8Array methods are not available");
|
|
373
|
+
};
|
|
374
|
+
var base64ToArrayBuffer_default = base64ToArrayBuffer;
|
|
375
|
+
|
|
376
|
+
// src/modules/accounts/hooks/useGenerateLoginCredentials.ts
|
|
377
|
+
var arrayBufferToBase64url = (buffer) => {
|
|
378
|
+
const bytes = buffer instanceof Uint8Array ? buffer : new Uint8Array(buffer);
|
|
379
|
+
const base64 = window.btoa(String.fromCharCode(...bytes));
|
|
380
|
+
return base64.replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
|
|
381
|
+
};
|
|
382
|
+
var useGenerateLoginCredentials = () => {
|
|
383
|
+
const { createWebAuthnCredentialRequestOptions } = useCreateWebAuthnCredentialRequestOptions_default();
|
|
384
|
+
const generateLoginCredentials = async ({ username }) => {
|
|
385
|
+
const { data } = await createWebAuthnCredentialRequestOptions({
|
|
386
|
+
username
|
|
387
|
+
});
|
|
388
|
+
const publicKey = data?.createWebAuthnCredentialRequestOptions;
|
|
389
|
+
if (!publicKey?.allowCredentials?.length) return null;
|
|
390
|
+
const preparedKey = {
|
|
391
|
+
challenge: base64ToArrayBuffer_default(publicKey.challenge),
|
|
392
|
+
allowCredentials: publicKey.allowCredentials?.map(({ id: id2, type, ...rest }) => ({
|
|
393
|
+
id: base64ToArrayBuffer_default(id2),
|
|
394
|
+
type: type || "public-key",
|
|
395
|
+
...rest
|
|
396
|
+
})) || []
|
|
397
|
+
};
|
|
398
|
+
const PublicKeyCredentials = await navigator.credentials.get({
|
|
399
|
+
publicKey: preparedKey
|
|
400
|
+
});
|
|
401
|
+
if (!PublicKeyCredentials) return null;
|
|
402
|
+
const response = PublicKeyCredentials.response;
|
|
403
|
+
const authenticatorData = arrayBufferToBase64url(
|
|
404
|
+
response.authenticatorData
|
|
405
|
+
);
|
|
406
|
+
const signature = arrayBufferToBase64url(response.signature);
|
|
407
|
+
const userHandle = response.userHandle ? arrayBufferToBase64url(response.userHandle) : arrayBufferToBase64url(new TextEncoder().encode(username));
|
|
408
|
+
const clientDataJSON = arrayBufferToBase64url(response.clientDataJSON);
|
|
409
|
+
const id = arrayBufferToBase64url(PublicKeyCredentials.rawId);
|
|
410
|
+
return {
|
|
411
|
+
requestId: publicKey.requestId,
|
|
412
|
+
id,
|
|
413
|
+
response: {
|
|
414
|
+
clientDataJSON,
|
|
415
|
+
authenticatorData,
|
|
416
|
+
signature,
|
|
417
|
+
userHandle
|
|
418
|
+
}
|
|
419
|
+
};
|
|
420
|
+
};
|
|
421
|
+
return { generateLoginCredentials };
|
|
422
|
+
};
|
|
423
|
+
var useGenerateLoginCredentials_default = useGenerateLoginCredentials;
|
|
424
|
+
|
|
425
|
+
// src/modules/accounts/hooks/useGenerateWebAuthCredentials.ts
|
|
426
|
+
var arrayBufferToBase64url2 = (buffer) => {
|
|
427
|
+
const base64 = window.btoa(String.fromCharCode(...new Uint8Array(buffer)));
|
|
428
|
+
return base64.replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
|
|
429
|
+
};
|
|
430
|
+
var useGenerateWebAuthCredentials = () => {
|
|
431
|
+
const { createWebAuthnCredentialCreationOptions } = useCreateWebAuthnCredentialCreationOptions_default();
|
|
432
|
+
const generateWebAuthCredentials = async ({ username }) => {
|
|
433
|
+
const { data } = await createWebAuthnCredentialCreationOptions({
|
|
434
|
+
username
|
|
435
|
+
});
|
|
436
|
+
const options = data.createWebAuthnCredentialCreationOptions;
|
|
437
|
+
const textEncoder = new TextEncoder();
|
|
438
|
+
const publicKey = {
|
|
439
|
+
...options,
|
|
440
|
+
challenge: base64ToArrayBuffer_default(options.challenge),
|
|
441
|
+
user: {
|
|
442
|
+
id: textEncoder.encode(username),
|
|
443
|
+
name: username,
|
|
444
|
+
displayName: username
|
|
445
|
+
}
|
|
446
|
+
};
|
|
447
|
+
const publicKeyCredentials = await navigator.credentials.create({
|
|
448
|
+
publicKey
|
|
449
|
+
});
|
|
450
|
+
if (!publicKeyCredentials) return null;
|
|
451
|
+
const response = publicKeyCredentials.response;
|
|
452
|
+
const attestationObject = arrayBufferToBase64url2(
|
|
453
|
+
response.attestationObject
|
|
454
|
+
);
|
|
455
|
+
const clientDataJSON = arrayBufferToBase64url2(response.clientDataJSON);
|
|
456
|
+
const rawId = arrayBufferToBase64url2(publicKeyCredentials.rawId);
|
|
457
|
+
const authenticatorData = response.getAuthenticatorData ? arrayBufferToBase64url2(response.getAuthenticatorData()) : "";
|
|
458
|
+
const responsePublicKey = response.getPublicKey ? arrayBufferToBase64url2(response.getPublicKey()) : "";
|
|
459
|
+
const publicKeyAlgorithm = response.getPublicKeyAlgorithm ? response.getPublicKeyAlgorithm() : -7;
|
|
460
|
+
const transports = response.getTransports ? response.getTransports() : ["internal"];
|
|
461
|
+
return {
|
|
462
|
+
id: rawId,
|
|
463
|
+
rawId,
|
|
464
|
+
response: {
|
|
465
|
+
clientDataJSON,
|
|
466
|
+
attestationObject,
|
|
467
|
+
authenticatorData,
|
|
468
|
+
publicKey: responsePublicKey,
|
|
469
|
+
publicKeyAlgorithm,
|
|
470
|
+
transports
|
|
471
|
+
},
|
|
472
|
+
authenticatorAttachment: publicKeyCredentials.authenticatorAttachment || "platform",
|
|
473
|
+
clientExtensionResults: publicKeyCredentials.getClientExtensionResults?.() || {},
|
|
474
|
+
type: "public-key",
|
|
475
|
+
user: {
|
|
476
|
+
id: username,
|
|
477
|
+
name: username,
|
|
478
|
+
displayName: username
|
|
479
|
+
}
|
|
480
|
+
};
|
|
481
|
+
};
|
|
482
|
+
return { generateWebAuthCredentials };
|
|
483
|
+
};
|
|
484
|
+
var useGenerateWebAuthCredentials_default = useGenerateWebAuthCredentials;
|
|
485
|
+
|
|
486
|
+
// src/modules/common/utils/isEmail.ts
|
|
487
|
+
var regexExp = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z]{2,})+$/i;
|
|
488
|
+
var isEmail = (str) => typeof str === "string" && regexExp.test(str.trim());
|
|
489
|
+
var isEmail_default = isEmail;
|
|
490
|
+
|
|
491
|
+
// src/modules/accounts/hooks/useLoginWithPassword.ts
|
|
492
|
+
var LogInWithPasswordMutation = gql`
|
|
493
|
+
mutation LoginWithPassword(
|
|
494
|
+
$username: String
|
|
495
|
+
$email: String
|
|
496
|
+
$password: String!
|
|
497
|
+
) {
|
|
498
|
+
loginWithPassword(username: $username, email: $email, password: $password) {
|
|
499
|
+
_id
|
|
500
|
+
tokenExpires
|
|
501
|
+
user {
|
|
502
|
+
_id
|
|
503
|
+
allowedActions
|
|
504
|
+
roles
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
`;
|
|
509
|
+
var useLoginWithPassword = () => {
|
|
510
|
+
const [logInWithPasswordMutation, { client }] = useMutation(LogInWithPasswordMutation, {
|
|
511
|
+
errorPolicy: "all"
|
|
512
|
+
});
|
|
513
|
+
const logInWithPassword = async ({ usernameOrEmail, password }) => {
|
|
514
|
+
const variables = {
|
|
515
|
+
username: null,
|
|
516
|
+
email: null,
|
|
517
|
+
password: null
|
|
518
|
+
};
|
|
519
|
+
if (isEmail_default(usernameOrEmail)) {
|
|
520
|
+
const normalizedEmail = usernameOrEmail?.trim();
|
|
521
|
+
variables.email = normalizedEmail;
|
|
522
|
+
} else {
|
|
523
|
+
variables.username = usernameOrEmail;
|
|
524
|
+
}
|
|
525
|
+
variables.password = password;
|
|
526
|
+
const result = await logInWithPasswordMutation({
|
|
527
|
+
variables,
|
|
528
|
+
awaitRefetchQueries: true
|
|
529
|
+
});
|
|
530
|
+
if (result?.data?.loginWithPassword) {
|
|
531
|
+
await client.resetStore();
|
|
532
|
+
}
|
|
533
|
+
return result;
|
|
534
|
+
};
|
|
535
|
+
return {
|
|
536
|
+
logInWithPassword
|
|
537
|
+
};
|
|
538
|
+
};
|
|
539
|
+
var useLoginWithPassword_default = useLoginWithPassword;
|
|
540
|
+
var LogWithWebAuthnMutation = gql`
|
|
541
|
+
mutation LoginWithWebAuthn($webAuthnPublicKeyCredentials: JSON!) {
|
|
542
|
+
loginWithWebAuthn(
|
|
543
|
+
webAuthnPublicKeyCredentials: $webAuthnPublicKeyCredentials
|
|
544
|
+
) {
|
|
545
|
+
_id
|
|
546
|
+
tokenExpires
|
|
547
|
+
}
|
|
548
|
+
}
|
|
549
|
+
`;
|
|
550
|
+
var useLoginWithWebAuthn = () => {
|
|
551
|
+
const [loginWithWebAuthnMutation, { client }] = useMutation(LogWithWebAuthnMutation);
|
|
552
|
+
const loginWithWebAuthn = async ({
|
|
553
|
+
webAuthnPublicKeyCredentials
|
|
554
|
+
}) => {
|
|
555
|
+
const result = await loginWithWebAuthnMutation({
|
|
556
|
+
variables: { webAuthnPublicKeyCredentials },
|
|
557
|
+
awaitRefetchQueries: true
|
|
558
|
+
});
|
|
559
|
+
await client.resetStore();
|
|
560
|
+
return result;
|
|
561
|
+
};
|
|
562
|
+
return { loginWithWebAuthn };
|
|
563
|
+
};
|
|
564
|
+
var useLoginWithWebAuthn_default = useLoginWithWebAuthn;
|
|
565
|
+
var LogoutAllSessionsMutation = gql`
|
|
566
|
+
mutation LogoutAllSessions($userId: ID) {
|
|
567
|
+
logoutAllSessions(userId: $userId) {
|
|
568
|
+
success
|
|
569
|
+
}
|
|
570
|
+
}
|
|
571
|
+
`;
|
|
572
|
+
var useLogoutAllSessions = () => {
|
|
573
|
+
const [logoutAllSessionsMutation] = useMutation(LogoutAllSessionsMutation);
|
|
574
|
+
const logoutAllSessions = async ({ userId } = {}) => {
|
|
575
|
+
return logoutAllSessionsMutation({ variables: { userId } });
|
|
576
|
+
};
|
|
577
|
+
return {
|
|
578
|
+
logoutAllSessions
|
|
579
|
+
};
|
|
580
|
+
};
|
|
581
|
+
var useLogoutAllSessions_default = useLogoutAllSessions;
|
|
582
|
+
var RemoveBookmarkMutation = gql`
|
|
583
|
+
mutation RemoveBookmark($bookmarkId: ID!) {
|
|
584
|
+
removeBookmark(bookmarkId: $bookmarkId) {
|
|
585
|
+
_id
|
|
586
|
+
}
|
|
587
|
+
}
|
|
588
|
+
`;
|
|
589
|
+
var useRemoveBookmark = () => {
|
|
590
|
+
const [removeBookmarkMutation] = useMutation(RemoveBookmarkMutation);
|
|
591
|
+
const removeBookmark = async (bookmarkId) => {
|
|
592
|
+
return removeBookmarkMutation({
|
|
593
|
+
variables: {
|
|
594
|
+
bookmarkId
|
|
595
|
+
},
|
|
596
|
+
refetchQueries: ["UserBookmarks"]
|
|
597
|
+
});
|
|
598
|
+
};
|
|
599
|
+
return {
|
|
600
|
+
removeBookmark
|
|
601
|
+
};
|
|
602
|
+
};
|
|
603
|
+
var useRemoveBookmark_default = useRemoveBookmark;
|
|
604
|
+
var RemoveEmailMutation = gql`
|
|
605
|
+
mutation RemoveEmail($email: String!, $userId: ID) {
|
|
606
|
+
removeEmail(email: $email, userId: $userId) {
|
|
607
|
+
_id
|
|
608
|
+
}
|
|
609
|
+
}
|
|
610
|
+
`;
|
|
611
|
+
var useRemoveEmail = () => {
|
|
612
|
+
const [removeEmailMutation] = useMutation(RemoveEmailMutation);
|
|
613
|
+
const removeEmail = async ({
|
|
614
|
+
email,
|
|
615
|
+
userId
|
|
616
|
+
}) => {
|
|
617
|
+
return removeEmailMutation({
|
|
618
|
+
variables: {
|
|
619
|
+
email,
|
|
620
|
+
userId
|
|
621
|
+
},
|
|
622
|
+
refetchQueries: ["UserPermissions", "User", "CurrentUser"]
|
|
623
|
+
});
|
|
624
|
+
};
|
|
625
|
+
return {
|
|
626
|
+
removeEmail
|
|
627
|
+
};
|
|
628
|
+
};
|
|
629
|
+
var useRemoveEmail_default = useRemoveEmail;
|
|
630
|
+
var RemoveWeb3AddressMutation = gql`
|
|
631
|
+
mutation RemoveWeb3Address($address: String!) {
|
|
632
|
+
removeWeb3Address(address: $address) {
|
|
633
|
+
...UserFragment
|
|
634
|
+
}
|
|
635
|
+
}
|
|
636
|
+
${UserFragment_default}
|
|
637
|
+
`;
|
|
638
|
+
var useRemoveWeb3Address = () => {
|
|
639
|
+
const [removeWeb3AddressMutation] = useMutation(RemoveWeb3AddressMutation);
|
|
640
|
+
const removeWeb3Address = async ({
|
|
641
|
+
address
|
|
642
|
+
}) => {
|
|
643
|
+
return removeWeb3AddressMutation({
|
|
644
|
+
variables: {
|
|
645
|
+
address
|
|
646
|
+
}
|
|
647
|
+
});
|
|
648
|
+
};
|
|
649
|
+
return {
|
|
650
|
+
removeWeb3Address
|
|
651
|
+
};
|
|
652
|
+
};
|
|
653
|
+
var useRemoveWeb3Address_default = useRemoveWeb3Address;
|
|
654
|
+
var RemoveWebAuthCredentialsMutation = gql`
|
|
655
|
+
mutation removeWebAuthCredentials($credentialsId: ID!) {
|
|
656
|
+
removeWebAuthnCredentials(credentialsId: $credentialsId) {
|
|
657
|
+
...UserFragment
|
|
658
|
+
}
|
|
659
|
+
}
|
|
660
|
+
${UserFragment_default}
|
|
661
|
+
`;
|
|
662
|
+
var useRemoveWebAuthCredentials = () => {
|
|
663
|
+
const [removeWebAuthCredentialsMutation] = useMutation(RemoveWebAuthCredentialsMutation);
|
|
664
|
+
const removeWebAuthCredentials = async ({
|
|
665
|
+
credentialsId
|
|
666
|
+
}) => {
|
|
667
|
+
return removeWebAuthCredentialsMutation({
|
|
668
|
+
variables: { credentialsId }
|
|
669
|
+
});
|
|
670
|
+
};
|
|
671
|
+
return {
|
|
672
|
+
removeWebAuthCredentials
|
|
673
|
+
};
|
|
674
|
+
};
|
|
675
|
+
var useRemoveWebAuthCredentials_default = useRemoveWebAuthCredentials;
|
|
676
|
+
var ResetPasswordMutation = gql`
|
|
677
|
+
mutation ResetPassword($newPlainPassword: String!, $token: String!) {
|
|
678
|
+
resetPassword(newPassword: $newPlainPassword, token: $token) {
|
|
679
|
+
_id
|
|
680
|
+
tokenExpires
|
|
681
|
+
}
|
|
682
|
+
}
|
|
683
|
+
`;
|
|
684
|
+
var useResetPassword = () => {
|
|
685
|
+
const [resetPasswordMutation, { client }] = useMutation(ResetPasswordMutation);
|
|
686
|
+
const resetPassword = async ({
|
|
687
|
+
newPlainPassword,
|
|
688
|
+
token
|
|
689
|
+
}) => {
|
|
690
|
+
const variables = {
|
|
691
|
+
token,
|
|
692
|
+
newPlainPassword: null
|
|
693
|
+
};
|
|
694
|
+
variables.newPlainPassword = newPlainPassword;
|
|
695
|
+
const result = await resetPasswordMutation({
|
|
696
|
+
variables,
|
|
697
|
+
awaitRefetchQueries: true
|
|
698
|
+
});
|
|
699
|
+
await client.resetStore();
|
|
700
|
+
return result;
|
|
701
|
+
};
|
|
702
|
+
return {
|
|
703
|
+
resetPassword
|
|
704
|
+
};
|
|
705
|
+
};
|
|
706
|
+
var useResetPassword_default = useResetPassword;
|
|
707
|
+
var SendVerificationEmailMutation = gql`
|
|
708
|
+
mutation SendVerificationEmail($email: String) {
|
|
709
|
+
sendVerificationEmail(email: $email) {
|
|
710
|
+
success
|
|
711
|
+
}
|
|
712
|
+
}
|
|
713
|
+
`;
|
|
714
|
+
var useSendVerificationEmail = () => {
|
|
715
|
+
const [sendVerificationEmailMutation] = useMutation(SendVerificationEmailMutation);
|
|
716
|
+
const sendVerificationEmail = async ({
|
|
717
|
+
email
|
|
718
|
+
}) => {
|
|
719
|
+
return sendVerificationEmailMutation({
|
|
720
|
+
variables: { email }
|
|
721
|
+
});
|
|
722
|
+
};
|
|
723
|
+
return {
|
|
724
|
+
sendVerificationEmail
|
|
725
|
+
};
|
|
726
|
+
};
|
|
727
|
+
var useSendVerificationEmail_default = useSendVerificationEmail;
|
|
728
|
+
var SetPasswordMutation = gql`
|
|
729
|
+
mutation SetPassword($newPlainPassword: String!, $userId: ID!) {
|
|
730
|
+
setPassword(newPassword: $newPlainPassword, userId: $userId) {
|
|
731
|
+
_id
|
|
732
|
+
}
|
|
733
|
+
}
|
|
734
|
+
`;
|
|
735
|
+
var useSetPassword = () => {
|
|
736
|
+
const [setPasswordMutation] = useMutation(SetPasswordMutation);
|
|
737
|
+
const setPassword = async ({
|
|
738
|
+
newPlainPassword = void 0,
|
|
739
|
+
userId
|
|
740
|
+
}) => {
|
|
741
|
+
const variables = { newPlainPassword, userId };
|
|
742
|
+
return setPasswordMutation({
|
|
743
|
+
variables,
|
|
744
|
+
refetchQueries: ["UserPermissions", "User", "CurrentUser"]
|
|
745
|
+
});
|
|
746
|
+
};
|
|
747
|
+
return {
|
|
748
|
+
setPassword
|
|
749
|
+
};
|
|
750
|
+
};
|
|
751
|
+
var useSetPassword_default = useSetPassword;
|
|
752
|
+
var SetRoleMutation = gql`
|
|
753
|
+
mutation SetRoles($roles: [String!]!, $userId: ID!) {
|
|
754
|
+
setRoles(roles: $roles, userId: $userId) {
|
|
755
|
+
_id
|
|
756
|
+
}
|
|
757
|
+
}
|
|
758
|
+
`;
|
|
759
|
+
var useSetRoles = () => {
|
|
760
|
+
const [setRoleMutation] = useMutation(SetRoleMutation);
|
|
761
|
+
const setRoles = async ({
|
|
762
|
+
roles = [],
|
|
763
|
+
userId = null
|
|
764
|
+
}) => {
|
|
765
|
+
return setRoleMutation({
|
|
766
|
+
variables: {
|
|
767
|
+
roles,
|
|
768
|
+
userId
|
|
769
|
+
},
|
|
770
|
+
refetchQueries: ["UserPermissions", "User", "CurrentUser"]
|
|
771
|
+
});
|
|
772
|
+
};
|
|
773
|
+
return {
|
|
774
|
+
setRoles
|
|
775
|
+
};
|
|
776
|
+
};
|
|
777
|
+
var useSetRoles_default = useSetRoles;
|
|
778
|
+
var SetUserTagsMutation = gql`
|
|
779
|
+
mutation SetUserTags($tags: [LowerCaseString]!, $userId: ID!) {
|
|
780
|
+
setUserTags(tags: $tags, userId: $userId) {
|
|
781
|
+
_id
|
|
782
|
+
tags
|
|
783
|
+
}
|
|
784
|
+
}
|
|
785
|
+
`;
|
|
786
|
+
var useSetUserTags = () => {
|
|
787
|
+
const [setUserTagsMutation] = useMutation(SetUserTagsMutation);
|
|
788
|
+
const setUserTags = async ({
|
|
789
|
+
tags = [],
|
|
790
|
+
userId = null
|
|
791
|
+
}) => {
|
|
792
|
+
return setUserTagsMutation({
|
|
793
|
+
variables: {
|
|
794
|
+
tags,
|
|
795
|
+
userId
|
|
796
|
+
},
|
|
797
|
+
refetchQueries: [
|
|
798
|
+
"Users",
|
|
799
|
+
"UserPermissions",
|
|
800
|
+
"User",
|
|
801
|
+
"CurrentUser",
|
|
802
|
+
"ShopStatus",
|
|
803
|
+
"ShopInfo"
|
|
804
|
+
]
|
|
805
|
+
});
|
|
806
|
+
};
|
|
807
|
+
return {
|
|
808
|
+
setUserTags
|
|
809
|
+
};
|
|
810
|
+
};
|
|
811
|
+
var useSetUserTags_default = useSetUserTags;
|
|
812
|
+
var SetUserNameMutation = gql`
|
|
813
|
+
mutation SetUsername($username: String!, $userId: ID!) {
|
|
814
|
+
setUsername(username: $username, userId: $userId) {
|
|
815
|
+
_id
|
|
816
|
+
}
|
|
817
|
+
}
|
|
818
|
+
`;
|
|
819
|
+
var useSetUserName = () => {
|
|
820
|
+
const [setUserNameMutation] = useMutation(SetUserNameMutation);
|
|
821
|
+
const setUserName = async ({
|
|
822
|
+
username,
|
|
823
|
+
userId
|
|
824
|
+
}) => {
|
|
825
|
+
return setUserNameMutation({
|
|
826
|
+
variables: {
|
|
827
|
+
username,
|
|
828
|
+
userId
|
|
829
|
+
},
|
|
830
|
+
refetchQueries: ["UserPermissions", "User", "CurrentUser"]
|
|
831
|
+
});
|
|
832
|
+
};
|
|
833
|
+
return {
|
|
834
|
+
setUserName
|
|
835
|
+
};
|
|
836
|
+
};
|
|
837
|
+
var useSetUsername_default = useSetUserName;
|
|
838
|
+
var PrepareUserAvatarUploadMutation = gql`
|
|
839
|
+
mutation PrepareUserAvatarUpload($mediaName: String!, $userId: ID) {
|
|
840
|
+
prepareUserAvatarUpload(mediaName: $mediaName, userId: $userId) {
|
|
841
|
+
_id
|
|
842
|
+
putURL
|
|
843
|
+
expires
|
|
844
|
+
}
|
|
845
|
+
}
|
|
846
|
+
`;
|
|
847
|
+
var useUpdateUserAvatar = () => {
|
|
848
|
+
const [prepareUserAvatarUploadMutation] = useMutation(PrepareUserAvatarUploadMutation);
|
|
849
|
+
const { confirmMediaUpload } = useConfirmMediaUpload_default({
|
|
850
|
+
refetchQueries: ["User", "CurrentUser"]
|
|
851
|
+
});
|
|
852
|
+
const updateUserAvatar = async ({ avatar, userId = null }) => {
|
|
853
|
+
const { data } = await prepareUserAvatarUploadMutation({
|
|
854
|
+
variables: {
|
|
855
|
+
mediaName: avatar.name,
|
|
856
|
+
userId
|
|
857
|
+
}
|
|
858
|
+
});
|
|
859
|
+
const { prepareUserAvatarUpload } = data;
|
|
860
|
+
await PUTMedia_default(avatar, prepareUserAvatarUpload.putURL);
|
|
861
|
+
await confirmMediaUpload({
|
|
862
|
+
mediaUploadTicketId: prepareUserAvatarUpload._id,
|
|
863
|
+
size: avatar.size,
|
|
864
|
+
type: avatar.type
|
|
865
|
+
});
|
|
866
|
+
};
|
|
867
|
+
return {
|
|
868
|
+
updateUserAvatar
|
|
869
|
+
};
|
|
870
|
+
};
|
|
871
|
+
var useUpdateUserAvatar_default = useUpdateUserAvatar;
|
|
872
|
+
var UpdateUserProfileMutation = gql`
|
|
873
|
+
mutation UpdateUserProfile($profile: UserProfileInput!, $userId: ID) {
|
|
874
|
+
updateUserProfile(profile: $profile, userId: $userId) {
|
|
875
|
+
_id
|
|
876
|
+
}
|
|
877
|
+
}
|
|
878
|
+
`;
|
|
879
|
+
var useUpdateUserProfile = () => {
|
|
880
|
+
const [updateUserProfileMutation] = useMutation(UpdateUserProfileMutation);
|
|
881
|
+
const updateUserProfile = async ({
|
|
882
|
+
profile,
|
|
883
|
+
userId = null
|
|
884
|
+
}) => {
|
|
885
|
+
return updateUserProfileMutation({
|
|
886
|
+
variables: {
|
|
887
|
+
profile,
|
|
888
|
+
userId
|
|
889
|
+
},
|
|
890
|
+
refetchQueries: ["UserPermissions", "User", "CurrentUser"]
|
|
891
|
+
});
|
|
892
|
+
};
|
|
893
|
+
return {
|
|
894
|
+
updateUserProfile
|
|
895
|
+
};
|
|
896
|
+
};
|
|
897
|
+
var useUpdateUserProfile_default = useUpdateUserProfile;
|
|
898
|
+
var GetUserPermissionsQuery = gql`
|
|
899
|
+
query UserPermissions($userId: ID!) {
|
|
900
|
+
user(userId: $userId) {
|
|
901
|
+
_id
|
|
902
|
+
viewerAllowedActions
|
|
903
|
+
}
|
|
904
|
+
}
|
|
905
|
+
`;
|
|
906
|
+
var GetUserQuery = (inlineFragment = "") => gql`
|
|
907
|
+
query User(
|
|
908
|
+
$userId: ID!
|
|
909
|
+
$includePrivateInfos: Boolean!
|
|
910
|
+
$includeRoles: Boolean!
|
|
911
|
+
$includeOrders: Boolean!
|
|
912
|
+
) {
|
|
913
|
+
user(userId: $userId) {
|
|
914
|
+
_id
|
|
915
|
+
name
|
|
916
|
+
avatar {
|
|
917
|
+
_id
|
|
918
|
+
name
|
|
919
|
+
size
|
|
920
|
+
type
|
|
921
|
+
url
|
|
922
|
+
}
|
|
923
|
+
... @include(if: $includePrivateInfos) {
|
|
924
|
+
${inlineFragment}
|
|
925
|
+
lastBillingAddress {
|
|
926
|
+
firstName
|
|
927
|
+
lastName
|
|
928
|
+
company
|
|
929
|
+
addressLine
|
|
930
|
+
addressLine2
|
|
931
|
+
postalCode
|
|
932
|
+
countryCode
|
|
933
|
+
regionCode
|
|
934
|
+
city
|
|
935
|
+
}
|
|
936
|
+
lastContact {
|
|
937
|
+
emailAddress
|
|
938
|
+
telNumber
|
|
939
|
+
}
|
|
940
|
+
lastLogin {
|
|
941
|
+
countryCode
|
|
942
|
+
locale
|
|
943
|
+
remoteAddress
|
|
944
|
+
remotePort
|
|
945
|
+
timestamp
|
|
946
|
+
userAgent
|
|
947
|
+
}
|
|
948
|
+
paymentCredentials {
|
|
949
|
+
_id
|
|
950
|
+
isValid
|
|
951
|
+
isPreferred
|
|
952
|
+
paymentProvider {
|
|
953
|
+
_id
|
|
954
|
+
type
|
|
955
|
+
interface {
|
|
956
|
+
_id
|
|
957
|
+
label
|
|
958
|
+
version
|
|
959
|
+
}
|
|
960
|
+
}
|
|
961
|
+
}
|
|
962
|
+
emails {
|
|
963
|
+
verified
|
|
964
|
+
address
|
|
965
|
+
}
|
|
966
|
+
web3Addresses {
|
|
967
|
+
address
|
|
968
|
+
nonce
|
|
969
|
+
verified
|
|
970
|
+
}
|
|
971
|
+
webAuthnCredentials {
|
|
972
|
+
_id
|
|
973
|
+
created
|
|
974
|
+
aaguid
|
|
975
|
+
counter
|
|
976
|
+
mdsMetadata {
|
|
977
|
+
...MD5MetaDataFragment
|
|
978
|
+
}
|
|
979
|
+
}
|
|
980
|
+
profile {
|
|
981
|
+
displayName
|
|
982
|
+
phoneMobile
|
|
983
|
+
gender
|
|
984
|
+
address {
|
|
985
|
+
firstName
|
|
986
|
+
lastName
|
|
987
|
+
company
|
|
988
|
+
addressLine
|
|
989
|
+
addressLine2
|
|
990
|
+
postalCode
|
|
991
|
+
countryCode
|
|
992
|
+
regionCode
|
|
993
|
+
city
|
|
994
|
+
}
|
|
995
|
+
birthday
|
|
996
|
+
}
|
|
997
|
+
username
|
|
998
|
+
primaryEmail {
|
|
999
|
+
verified
|
|
1000
|
+
address
|
|
1001
|
+
}
|
|
1002
|
+
isGuest
|
|
1003
|
+
isInitialPassword
|
|
1004
|
+
tags
|
|
1005
|
+
deleted
|
|
1006
|
+
}
|
|
1007
|
+
... @include(if: $includeRoles) {
|
|
1008
|
+
roles
|
|
1009
|
+
}
|
|
1010
|
+
... @include(if: $includeOrders) {
|
|
1011
|
+
cart {
|
|
1012
|
+
_id
|
|
1013
|
+
items {
|
|
1014
|
+
_id
|
|
1015
|
+
}
|
|
1016
|
+
}
|
|
1017
|
+
orders {
|
|
1018
|
+
_id
|
|
1019
|
+
items {
|
|
1020
|
+
_id
|
|
1021
|
+
}
|
|
1022
|
+
}
|
|
1023
|
+
}
|
|
1024
|
+
}
|
|
1025
|
+
}
|
|
1026
|
+
${MD5MetaDataFragment_default}
|
|
1027
|
+
`;
|
|
1028
|
+
var useUser = ({ userId = null } = {}) => {
|
|
1029
|
+
const { customProperties, hydrateFragment } = useUnchainedContext_default();
|
|
1030
|
+
const skip = !userId;
|
|
1031
|
+
const {
|
|
1032
|
+
data: permissionsData,
|
|
1033
|
+
loading: permissionsLoading,
|
|
1034
|
+
error: permissionsError
|
|
1035
|
+
} = useQuery(
|
|
1036
|
+
GetUserPermissionsQuery,
|
|
1037
|
+
{
|
|
1038
|
+
skip,
|
|
1039
|
+
variables: { userId },
|
|
1040
|
+
fetchPolicy: "network-only"
|
|
1041
|
+
}
|
|
1042
|
+
);
|
|
1043
|
+
const permissionTarget = permissionsData?.user?._id === userId ? permissionsData.user : null;
|
|
1044
|
+
const viewerAllowedActions = permissionTarget?.viewerAllowedActions;
|
|
1045
|
+
const hasPermission = (action) => viewerAllowedActions?.includes(action) ?? false;
|
|
1046
|
+
const {
|
|
1047
|
+
data: userData,
|
|
1048
|
+
loading: userLoading,
|
|
1049
|
+
error: userError
|
|
1050
|
+
} = useQuery(
|
|
1051
|
+
GetUserQuery(customProperties?.User),
|
|
1052
|
+
{
|
|
1053
|
+
skip: skip || !permissionTarget,
|
|
1054
|
+
variables: {
|
|
1055
|
+
userId,
|
|
1056
|
+
includePrivateInfos: hasPermission("viewUserPrivateInfos" /* ViewUserPrivateInfos */),
|
|
1057
|
+
includeRoles: hasPermission("viewUserRoles" /* ViewUserRoles */),
|
|
1058
|
+
includeOrders: hasPermission("viewUserOrders" /* ViewUserOrders */)
|
|
1059
|
+
}
|
|
1060
|
+
}
|
|
1061
|
+
);
|
|
1062
|
+
const user = permissionTarget && userData?.user?._id === userId ? { ...permissionTarget, ...userData.user } : null;
|
|
1063
|
+
const extendedData = hasPermission("viewUserPrivateInfos" /* ViewUserPrivateInfos */) ? hydrateFragment(customProperties?.User, user) : null;
|
|
1064
|
+
return {
|
|
1065
|
+
user,
|
|
1066
|
+
loading: permissionsLoading || userLoading,
|
|
1067
|
+
error: permissionsError || userError,
|
|
1068
|
+
extendedData
|
|
1069
|
+
};
|
|
1070
|
+
};
|
|
1071
|
+
var useUser_default = useUser;
|
|
1072
|
+
var UserBookmarksQuery = gql`
|
|
1073
|
+
query UserBookmarks($userId: ID!) {
|
|
1074
|
+
user(userId: $userId) {
|
|
1075
|
+
_id
|
|
1076
|
+
bookmarks {
|
|
1077
|
+
_id
|
|
1078
|
+
created
|
|
1079
|
+
product {
|
|
1080
|
+
_id
|
|
1081
|
+
texts {
|
|
1082
|
+
_id
|
|
1083
|
+
title
|
|
1084
|
+
}
|
|
1085
|
+
media {
|
|
1086
|
+
_id
|
|
1087
|
+
file {
|
|
1088
|
+
_id
|
|
1089
|
+
url
|
|
1090
|
+
}
|
|
1091
|
+
}
|
|
1092
|
+
}
|
|
1093
|
+
}
|
|
1094
|
+
}
|
|
1095
|
+
}
|
|
1096
|
+
`;
|
|
1097
|
+
var useUserBookmarks = ({ userId = null }) => {
|
|
1098
|
+
const { data, loading, error } = useQuery(UserBookmarksQuery, {
|
|
1099
|
+
skip: !userId,
|
|
1100
|
+
variables: { userId }
|
|
1101
|
+
});
|
|
1102
|
+
const bookmarks = data?.user?.bookmarks || [];
|
|
1103
|
+
return {
|
|
1104
|
+
bookmarks,
|
|
1105
|
+
loading,
|
|
1106
|
+
error
|
|
1107
|
+
};
|
|
1108
|
+
};
|
|
1109
|
+
var useUserBookmarks_default = useUserBookmarks;
|
|
1110
|
+
var useUserExport = () => {
|
|
1111
|
+
const { exportCSV, isExporting } = useCSVExport();
|
|
1112
|
+
const exportUser = useCallback(
|
|
1113
|
+
async (data) => {
|
|
1114
|
+
await exportCSV({ type: "User", ...data });
|
|
1115
|
+
},
|
|
1116
|
+
[exportCSV]
|
|
1117
|
+
);
|
|
1118
|
+
return { exportUser, isExporting };
|
|
1119
|
+
};
|
|
1120
|
+
var UserWebAuthnCredentialsQuery = gql`
|
|
1121
|
+
query UserWebAuthnCredentials($userId: ID!) {
|
|
1122
|
+
user(userId: $userId) {
|
|
1123
|
+
_id
|
|
1124
|
+
webAuthnCredentials {
|
|
1125
|
+
_id
|
|
1126
|
+
created
|
|
1127
|
+
aaguid
|
|
1128
|
+
counter
|
|
1129
|
+
mdsMetadata {
|
|
1130
|
+
...MD5MetaDataFragment
|
|
1131
|
+
}
|
|
1132
|
+
}
|
|
1133
|
+
}
|
|
1134
|
+
}
|
|
1135
|
+
${MD5MetaDataFragment_default}
|
|
1136
|
+
`;
|
|
1137
|
+
var useUserWebAuthnCredentials = ({
|
|
1138
|
+
userId
|
|
1139
|
+
}) => {
|
|
1140
|
+
const { data, loading, error } = useQuery(UserWebAuthnCredentialsQuery, {
|
|
1141
|
+
variables: { userId }
|
|
1142
|
+
});
|
|
1143
|
+
return {
|
|
1144
|
+
webAuthnCredentials: data?.user?.webAuthnCredentials,
|
|
1145
|
+
loading,
|
|
1146
|
+
error
|
|
1147
|
+
};
|
|
1148
|
+
};
|
|
1149
|
+
var useUserWebAuthnCredentials_default = useUserWebAuthnCredentials;
|
|
1150
|
+
var UsersQuery = gql`
|
|
1151
|
+
query Users(
|
|
1152
|
+
$limit: Int
|
|
1153
|
+
$offset: Int
|
|
1154
|
+
$includeGuests: Boolean
|
|
1155
|
+
$queryString: String
|
|
1156
|
+
$lastLogin: DateFilterInput
|
|
1157
|
+
$emailVerified: Boolean
|
|
1158
|
+
$tags: [LowerCaseString!]
|
|
1159
|
+
) {
|
|
1160
|
+
users(
|
|
1161
|
+
limit: $limit
|
|
1162
|
+
offset: $offset
|
|
1163
|
+
includeGuests: $includeGuests
|
|
1164
|
+
queryString: $queryString
|
|
1165
|
+
lastLogin: $lastLogin
|
|
1166
|
+
emailVerified: $emailVerified
|
|
1167
|
+
tags: $tags
|
|
1168
|
+
) {
|
|
1169
|
+
...UserFragment
|
|
1170
|
+
}
|
|
1171
|
+
usersCount(
|
|
1172
|
+
includeGuests: $includeGuests
|
|
1173
|
+
queryString: $queryString
|
|
1174
|
+
lastLogin: $lastLogin
|
|
1175
|
+
emailVerified: $emailVerified
|
|
1176
|
+
tags: $tags
|
|
1177
|
+
)
|
|
1178
|
+
}
|
|
1179
|
+
${UserFragment_default}
|
|
1180
|
+
`;
|
|
1181
|
+
var useUsers = ({
|
|
1182
|
+
limit = 20,
|
|
1183
|
+
offset = 0,
|
|
1184
|
+
includeGuests = false,
|
|
1185
|
+
queryString = null,
|
|
1186
|
+
lastLogin = null,
|
|
1187
|
+
emailVerified = null,
|
|
1188
|
+
tags = null
|
|
1189
|
+
}) => {
|
|
1190
|
+
const { data, loading, error, fetchMore } = useQuery(UsersQuery, {
|
|
1191
|
+
variables: {
|
|
1192
|
+
limit,
|
|
1193
|
+
offset,
|
|
1194
|
+
includeGuests,
|
|
1195
|
+
queryString,
|
|
1196
|
+
lastLogin,
|
|
1197
|
+
emailVerified,
|
|
1198
|
+
tags
|
|
1199
|
+
}
|
|
1200
|
+
});
|
|
1201
|
+
const users = data?.users || [];
|
|
1202
|
+
const usersCount = data?.usersCount;
|
|
1203
|
+
const hasMore = users?.length < usersCount;
|
|
1204
|
+
const loadMore = () => {
|
|
1205
|
+
fetchMore({
|
|
1206
|
+
variables: { offset: users?.length }
|
|
1207
|
+
});
|
|
1208
|
+
};
|
|
1209
|
+
return {
|
|
1210
|
+
users,
|
|
1211
|
+
usersCount,
|
|
1212
|
+
hasMore,
|
|
1213
|
+
loading,
|
|
1214
|
+
error,
|
|
1215
|
+
loadMore
|
|
1216
|
+
};
|
|
1217
|
+
};
|
|
1218
|
+
var useUsers_default = useUsers;
|
|
1219
|
+
var UsersCountQuery = gql`
|
|
1220
|
+
query UsersCount(
|
|
1221
|
+
$includeGuests: Boolean
|
|
1222
|
+
$queryString: String
|
|
1223
|
+
$lastLogin: DateFilterInput
|
|
1224
|
+
$emailVerified: Boolean
|
|
1225
|
+
) {
|
|
1226
|
+
usersCount(
|
|
1227
|
+
includeGuests: $includeGuests
|
|
1228
|
+
queryString: $queryString
|
|
1229
|
+
lastLogin: $lastLogin
|
|
1230
|
+
emailVerified: $emailVerified
|
|
1231
|
+
)
|
|
1232
|
+
}
|
|
1233
|
+
`;
|
|
1234
|
+
var useUsersCount = ({
|
|
1235
|
+
includeGuests = false,
|
|
1236
|
+
queryString = null,
|
|
1237
|
+
lastLogin = null,
|
|
1238
|
+
emailVerified = null
|
|
1239
|
+
} = {}) => {
|
|
1240
|
+
const { data, loading, error } = useQuery(UsersCountQuery, {
|
|
1241
|
+
errorPolicy: "all",
|
|
1242
|
+
variables: {
|
|
1243
|
+
includeGuests,
|
|
1244
|
+
queryString,
|
|
1245
|
+
lastLogin,
|
|
1246
|
+
emailVerified
|
|
1247
|
+
}
|
|
1248
|
+
});
|
|
1249
|
+
return {
|
|
1250
|
+
usersCount: data?.usersCount || 0,
|
|
1251
|
+
loading,
|
|
1252
|
+
error
|
|
1253
|
+
};
|
|
1254
|
+
};
|
|
1255
|
+
var useUsersCount_default = useUsersCount;
|
|
1256
|
+
var ValidateVerifyEmailToken = gql`
|
|
1257
|
+
query ValidateVerifyEmailToken($token: String!) {
|
|
1258
|
+
validateVerifyEmailToken(token: $token)
|
|
1259
|
+
}
|
|
1260
|
+
`;
|
|
1261
|
+
var useValidateEmailVerificationToken = ({ token }) => {
|
|
1262
|
+
const { data, loading, error, previousData } = useQuery(ValidateVerifyEmailToken, {
|
|
1263
|
+
skip: !token,
|
|
1264
|
+
variables: {
|
|
1265
|
+
token
|
|
1266
|
+
},
|
|
1267
|
+
fetchPolicy: "network-only"
|
|
1268
|
+
});
|
|
1269
|
+
return {
|
|
1270
|
+
loading,
|
|
1271
|
+
error,
|
|
1272
|
+
isValid: previousData?.validateVerifyEmailToken || data?.validateVerifyEmailToken
|
|
1273
|
+
};
|
|
1274
|
+
};
|
|
1275
|
+
var useValidateEmailVerificationToken_default = useValidateEmailVerificationToken;
|
|
1276
|
+
var VALIDATE_RESET_PASSWORD_TOKEN_QUERY = gql`
|
|
1277
|
+
query ValidateResetPasswordToken($token: String!) {
|
|
1278
|
+
validateResetPasswordToken(token: $token)
|
|
1279
|
+
}
|
|
1280
|
+
`;
|
|
1281
|
+
var useValidateResetPasswordToken = ({ token }) => {
|
|
1282
|
+
const { data, loading, error, previousData } = useQuery(VALIDATE_RESET_PASSWORD_TOKEN_QUERY, {
|
|
1283
|
+
skip: !token,
|
|
1284
|
+
variables: {
|
|
1285
|
+
token
|
|
1286
|
+
},
|
|
1287
|
+
fetchPolicy: "network-only"
|
|
1288
|
+
});
|
|
1289
|
+
return {
|
|
1290
|
+
loading,
|
|
1291
|
+
error,
|
|
1292
|
+
isValid: previousData?.validateResetPasswordToken || data?.validateResetPasswordToken
|
|
1293
|
+
};
|
|
1294
|
+
};
|
|
1295
|
+
var useValidateResetPasswordToken_default = useValidateResetPasswordToken;
|
|
1296
|
+
var VerifyEmailMutation = gql`
|
|
1297
|
+
mutation VerifyEmail($token: String!) {
|
|
1298
|
+
verifyEmail(token: $token) {
|
|
1299
|
+
_id
|
|
1300
|
+
tokenExpires
|
|
1301
|
+
user {
|
|
1302
|
+
...UserFragment
|
|
1303
|
+
}
|
|
1304
|
+
}
|
|
1305
|
+
}
|
|
1306
|
+
${UserFragment_default}
|
|
1307
|
+
`;
|
|
1308
|
+
var useVerifyEmail = () => {
|
|
1309
|
+
const [verifyEmailMutation, { client }] = useMutation(VerifyEmailMutation);
|
|
1310
|
+
const verifyEmail = async ({ token }) => {
|
|
1311
|
+
const result = await verifyEmailMutation({
|
|
1312
|
+
variables: { token }
|
|
1313
|
+
});
|
|
1314
|
+
await client.resetStore();
|
|
1315
|
+
return result;
|
|
1316
|
+
};
|
|
1317
|
+
return {
|
|
1318
|
+
verifyEmail
|
|
1319
|
+
};
|
|
1320
|
+
};
|
|
1321
|
+
var useVerifyEmail_default = useVerifyEmail;
|
|
1322
|
+
var VerifyWeb3AddressMutation = gql`
|
|
1323
|
+
mutation VerifyWeb3Address($address: String!, $hash: String!) {
|
|
1324
|
+
verifyWeb3Address(address: $address, hash: $hash) {
|
|
1325
|
+
...UserFragment
|
|
1326
|
+
}
|
|
1327
|
+
}
|
|
1328
|
+
${UserFragment_default}
|
|
1329
|
+
`;
|
|
1330
|
+
var useVerifyWeb3Address = () => {
|
|
1331
|
+
const [verifyWeb3AddressMutation] = useMutation(VerifyWeb3AddressMutation);
|
|
1332
|
+
const verifyWeb3Address = async ({
|
|
1333
|
+
address,
|
|
1334
|
+
hash
|
|
1335
|
+
}) => {
|
|
1336
|
+
return verifyWeb3AddressMutation({
|
|
1337
|
+
variables: {
|
|
1338
|
+
address,
|
|
1339
|
+
hash
|
|
1340
|
+
}
|
|
1341
|
+
});
|
|
1342
|
+
};
|
|
1343
|
+
return {
|
|
1344
|
+
verifyWeb3Address
|
|
1345
|
+
};
|
|
1346
|
+
};
|
|
1347
|
+
var useVerifyWeb3Address_default = useVerifyWeb3Address;
|
|
1348
|
+
|
|
1349
|
+
export { logOut_default as logOut, useAddEmail_default as useAddEmail, useAddWeb3Address_default as useAddWeb3Address, useAddWebAuthnCredentials_default as useAddWebAuthnCredentials, useBulkUserOperations_default as useBulkUserOperations, useChangePassword_default as useChangePassword, useCreateUser_default as useCreateUser, useCreateWebAuthnCredentialCreationOptions_default as useCreateWebAuthnCredentialCreationOptions, useCreateWebAuthnCredentialRequestOptions_default as useCreateWebAuthnCredentialRequestOptions, useDeleteUser_default as useDeleteUser, useEnrollUser_default as useEnrollUser, useForgotPassword_default as useForgotPassword, useGenerateLoginCredentials_default as useGenerateLoginCredentials, useGenerateWebAuthCredentials_default as useGenerateWebAuthCredentials, useLoginWithPassword_default as useLoginWithPassword, useLoginWithWebAuthn_default as useLoginWithWebAuthn, useLogoutAllSessions_default as useLogoutAllSessions, useRemoveBookmark_default as useRemoveBookmark, useRemoveEmail_default as useRemoveEmail, useRemoveWeb3Address_default as useRemoveWeb3Address, useRemoveWebAuthCredentials_default as useRemoveWebAuthCredentials, useResetPassword_default as useResetPassword, useSendVerificationEmail_default as useSendVerificationEmail, useSetPassword_default as useSetPassword, useSetRoles_default as useSetRoles, useSetUserTags_default as useSetUserTags, useSetUsername_default as useSetUsername, useUpdateUserAvatar_default as useUpdateUserAvatar, useUpdateUserProfile_default as useUpdateUserProfile, useUser_default as useUser, useUserBookmarks_default as useUserBookmarks, useUserExport, useUserWebAuthnCredentials_default as useUserWebAuthnCredentials, useUsers_default as useUsers, useUsersCount_default as useUsersCount, useValidateEmailVerificationToken_default as useValidateEmailVerificationToken, useValidateResetPasswordToken_default as useValidateResetPasswordToken, useVerifyEmail_default as useVerifyEmail, useVerifyWeb3Address_default as useVerifyWeb3Address };
|