@unchainedshop/admin-ui 4.8.31 → 4.8.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/out/403/index.html +3 -3
- package/out/404/index.html +3 -3
- package/out/404.html +3 -3
- package/out/423/index.html +3 -3
- package/out/500/index.html +3 -3
- package/out/_next/static/chunks/{0696190awbl-j.js → 0a5nr3-_q7xx1.js} +10 -10
- package/out/_next/static/chunks/{1m85ne6w_6tei.js → 11go520d1hcm5.js} +1 -1
- package/out/_next/static/chunks/{2-kvt9e7irukm.js → 182l1mlbf0glb.js} +1 -1
- package/out/_next/static/chunks/{09avk6mqdin_1.js → 1wnuiwsbi70eq.js} +1 -1
- package/out/_next/static/chunks/{0uls4bq8a7gyh.js → 2wmsx4gjbgvfv.js} +3 -3
- package/out/_next/static/chunks/{1_3e6x79fcyv3.js → 41p3ng89i5lem.js} +1 -1
- package/out/_next/static/{4ESrB8YpR2n44PFePtbgX → jOx5PlckLwWIJ5yrvePdU}/_buildManifest.js +2 -2
- package/out/_offline/index.html +3 -3
- package/out/account/forgot-password/index.html +3 -3
- package/out/account/index.html +3 -3
- package/out/assortments/AssortmentDetailPage/index.html +3 -3
- package/out/assortments/index.html +3 -3
- package/out/assortments/new/index.html +3 -3
- package/out/copilot/index.html +3 -3
- package/out/country/CountryDetailPage/index.html +3 -3
- package/out/country/index.html +3 -3
- package/out/country/new/index.html +3 -3
- package/out/currency/CurrencyDetailPage/index.html +3 -3
- package/out/currency/index.html +3 -3
- package/out/currency/new/index.html +3 -3
- package/out/delivery-provider/DeliveryProviderDetailPage/index.html +3 -3
- package/out/delivery-provider/index.html +3 -3
- package/out/delivery-provider/new/index.html +3 -3
- package/out/enrollments/EnrollmentDetailPage/index.html +3 -3
- package/out/enrollments/index.html +3 -3
- package/out/events/EventDetailPage/index.html +3 -3
- package/out/events/index.html +3 -3
- package/out/exports/index.html +3 -3
- package/out/external/index.html +3 -3
- package/out/filters/FilterDetailPage/index.html +3 -3
- package/out/filters/index.html +3 -3
- package/out/filters/new/index.html +3 -3
- package/out/index.html +3 -3
- package/out/install/index.html +3 -3
- package/out/language/LanguageDetailPage/index.html +3 -3
- package/out/language/index.html +3 -3
- package/out/language/new/index.html +3 -3
- package/out/log-in/index.html +3 -3
- package/out/orders/OrderDetailPage/index.html +3 -3
- package/out/orders/index.html +3 -3
- package/out/payment-provider/PaymentProviderDetailPage/index.html +3 -3
- package/out/payment-provider/index.html +3 -3
- package/out/payment-provider/new/index.html +3 -3
- package/out/products/ProductDetailPage/index.html +3 -3
- package/out/products/index.html +3 -3
- package/out/products/new/index.html +3 -3
- package/out/quotations/QuotationDetailPage/index.html +3 -3
- package/out/quotations/index.html +3 -3
- package/out/reset-password/index.html +3 -3
- package/out/sign-up/index.html +3 -3
- package/out/styleguide/index.html +3 -3
- package/out/tokens/TokenDetailPage/index.html +3 -3
- package/out/tokens/index.html +3 -3
- package/out/users/UserDetailPage/index.html +3 -3
- package/out/users/index.html +3 -3
- package/out/users/new/index.html +3 -3
- package/out/verify-email/index.html +3 -3
- package/out/warehousing-provider/WarehousingProviderDetailPage/index.html +3 -3
- package/out/warehousing-provider/index.html +3 -3
- package/out/warehousing-provider/new/index.html +3 -3
- package/out/works/WorkDetailPage/index.html +3 -3
- package/out/works/WorkQueueListView/index.html +3 -3
- package/out/works/index.html +3 -3
- package/out/works/management/index.html +3 -3
- package/package.json +31 -31
- package/dist/chunk-3L6EZQ6P.js +0 -135
- package/dist/chunk-54DKBWXV.js +0 -33
- package/dist/chunk-5WPFHQZN.js +0 -388
- package/dist/chunk-6UGLNLJG.js +0 -44
- package/dist/chunk-BMDNY67T.js +0 -22547
- package/dist/chunk-BOMSMJF2.js +0 -77
- package/dist/chunk-COV7BREX.js +0 -50
- package/dist/chunk-E77YIMGR.js +0 -2083
- package/dist/chunk-EJDZRZSZ.js +0 -59
- package/dist/chunk-ELPURWDC.js +0 -75
- package/dist/chunk-F6LBNV3H.js +0 -9
- package/dist/chunk-FDHXLNZQ.js +0 -44
- package/dist/chunk-GY2DRQGW.js +0 -166
- package/dist/chunk-HERLM47Z.js +0 -309
- package/dist/chunk-HJKRGBDG.js +0 -694
- package/dist/chunk-I64TXIE7.js +0 -618
- package/dist/chunk-IAQPLRXZ.js +0 -16
- package/dist/chunk-ICJH36K4.js +0 -326
- package/dist/chunk-ILYPJE4N.js +0 -57
- package/dist/chunk-IWKDBADX.js +0 -73
- package/dist/chunk-IXBMHOB5.js +0 -13
- package/dist/chunk-IYKPRAWC.js +0 -26
- package/dist/chunk-J23QSWDL.js +0 -8
- package/dist/chunk-KH5MK6ZW.js +0 -18
- package/dist/chunk-KRIRF7F6.js +0 -76
- package/dist/chunk-NT7RB7AK.js +0 -70
- package/dist/chunk-OKGJ6HDE.js +0 -26
- package/dist/chunk-OTXM2UCD.js +0 -19
- package/dist/chunk-PJLYVMUM.js +0 -3308
- package/dist/chunk-PUI5BIKO.js +0 -41
- package/dist/chunk-Q6S3LBUF.js +0 -180
- package/dist/chunk-QHR23GVH.js +0 -1099
- package/dist/chunk-QWQ3WJJN.js +0 -1
- package/dist/chunk-RAQV2GYF.js +0 -70
- package/dist/chunk-VBO377AY.js +0 -14
- package/dist/chunk-VYEXPG3M.js +0 -107
- package/dist/chunk-WPLOTFGW.js +0 -36
- package/dist/chunk-YO6PT7KD.js +0 -13
- package/dist/chunk-ZUOVKRKC.js +0 -957
- package/dist/components/ui/Accordion/Accordion.d.ts +0 -11
- package/dist/components/ui/Accordion/Accordion.d.ts.map +0 -1
- package/dist/components/ui/Accordion/AccordionHeader.d.ts +0 -6
- package/dist/components/ui/Accordion/AccordionHeader.d.ts.map +0 -1
- package/dist/components/ui/Accordion/AccordionItem.d.ts +0 -11
- package/dist/components/ui/Accordion/AccordionItem.d.ts.map +0 -1
- package/dist/components/ui/ActiveInActive.d.ts +0 -10
- package/dist/components/ui/ActiveInActive.d.ts.map +0 -1
- package/dist/components/ui/AnimatedCounter.d.ts +0 -7
- package/dist/components/ui/AnimatedCounter.d.ts.map +0 -1
- package/dist/components/ui/Badge.d.ts +0 -10
- package/dist/components/ui/Badge.d.ts.map +0 -1
- package/dist/components/ui/BreadCrumbs.d.ts +0 -7
- package/dist/components/ui/BreadCrumbs.d.ts.map +0 -1
- package/dist/components/ui/Button.d.ts +0 -36
- package/dist/components/ui/Button.d.ts.map +0 -1
- package/dist/components/ui/CopyableText.d.ts +0 -5
- package/dist/components/ui/CopyableText.d.ts.map +0 -1
- package/dist/components/ui/DateInput.d.ts +0 -15
- package/dist/components/ui/DateInput.d.ts.map +0 -1
- package/dist/components/ui/DateRangeFilterInput.d.ts +0 -4
- package/dist/components/ui/DateRangeFilterInput.d.ts.map +0 -1
- package/dist/components/ui/DetailHeader.d.ts +0 -6
- package/dist/components/ui/DetailHeader.d.ts.map +0 -1
- package/dist/components/ui/DraggableIcon.d.ts +0 -3
- package/dist/components/ui/DraggableIcon.d.ts.map +0 -1
- package/dist/components/ui/ErrorBoundary.d.ts +0 -18
- package/dist/components/ui/ErrorBoundary.d.ts.map +0 -1
- package/dist/components/ui/ErrorFallback.d.ts +0 -6
- package/dist/components/ui/ErrorFallback.d.ts.map +0 -1
- package/dist/components/ui/HelpText.d.ts +0 -11
- package/dist/components/ui/HelpText.d.ts.map +0 -1
- package/dist/components/ui/ImageWithFallback.d.ts +0 -7
- package/dist/components/ui/ImageWithFallback.d.ts.map +0 -1
- package/dist/components/ui/InfoTextBanner.d.ts +0 -6
- package/dist/components/ui/InfoTextBanner.d.ts.map +0 -1
- package/dist/components/ui/JSONView.d.ts +0 -6
- package/dist/components/ui/JSONView.d.ts.map +0 -1
- package/dist/components/ui/ListHeader.d.ts +0 -6
- package/dist/components/ui/ListHeader.d.ts.map +0 -1
- package/dist/components/ui/Loading.d.ts +0 -10
- package/dist/components/ui/Loading.d.ts.map +0 -1
- package/dist/components/ui/NoData.d.ts +0 -7
- package/dist/components/ui/NoData.d.ts.map +0 -1
- package/dist/components/ui/NoImage.d.ts +0 -7
- package/dist/components/ui/NoImage.d.ts.map +0 -1
- package/dist/components/ui/NoImageSvg.d.ts +0 -8
- package/dist/components/ui/NoImageSvg.d.ts.map +0 -1
- package/dist/components/ui/PageHeader.d.ts +0 -11
- package/dist/components/ui/PageHeader.d.ts.map +0 -1
- package/dist/components/ui/Pagination.d.ts +0 -8
- package/dist/components/ui/Pagination.d.ts.map +0 -1
- package/dist/components/ui/Portal/Portal.d.ts +0 -16
- package/dist/components/ui/Portal/Portal.d.ts.map +0 -1
- package/dist/components/ui/Portal/Portal.types.d.ts +0 -16
- package/dist/components/ui/Portal/Portal.types.d.ts.map +0 -1
- package/dist/components/ui/SaveAndCancelButtons.d.ts +0 -10
- package/dist/components/ui/SaveAndCancelButtons.d.ts.map +0 -1
- package/dist/components/ui/SearchField.d.ts +0 -7
- package/dist/components/ui/SearchField.d.ts.map +0 -1
- package/dist/components/ui/Tab.d.ts +0 -18
- package/dist/components/ui/Tab.d.ts.map +0 -1
- package/dist/components/ui/Tag/TagInput.d.ts +0 -19
- package/dist/components/ui/Tag/TagInput.d.ts.map +0 -1
- package/dist/components/ui/Tag/TagList.d.ts +0 -8
- package/dist/components/ui/Tag/TagList.d.ts.map +0 -1
- package/dist/components/ui/Tag/TagListForm.d.ts +0 -8
- package/dist/components/ui/Tag/TagListForm.d.ts.map +0 -1
- package/dist/components/ui/Toggle.d.ts +0 -11
- package/dist/components/ui/Toggle.d.ts.map +0 -1
- package/dist/components/ui/ToolTip.d.ts +0 -7
- package/dist/components/ui/ToolTip.d.ts.map +0 -1
- package/dist/components/ui/card.d.ts +0 -9
- package/dist/components/ui/card.d.ts.map +0 -1
- package/dist/components/ui/chart.d.ts +0 -42
- package/dist/components/ui/chart.d.ts.map +0 -1
- package/dist/components/ui/form/CheckboxField.d.ts +0 -4
- package/dist/components/ui/form/CheckboxField.d.ts.map +0 -1
- package/dist/components/ui/form/ChoicesField.d.ts +0 -12
- package/dist/components/ui/form/ChoicesField.d.ts.map +0 -1
- package/dist/components/ui/form/Combobox.d.ts +0 -20
- package/dist/components/ui/form/Combobox.d.ts.map +0 -1
- package/dist/components/ui/form/DatePickerField.d.ts +0 -4
- package/dist/components/ui/form/DatePickerField.d.ts.map +0 -1
- package/dist/components/ui/form/EmailField.d.ts +0 -7
- package/dist/components/ui/form/EmailField.d.ts.map +0 -1
- package/dist/components/ui/form/FieldWithHelp.d.ts +0 -10
- package/dist/components/ui/form/FieldWithHelp.d.ts.map +0 -1
- package/dist/components/ui/form/FieldWrapper.d.ts +0 -8
- package/dist/components/ui/form/FieldWrapper.d.ts.map +0 -1
- package/dist/components/ui/form/FormErrors.d.ts +0 -6
- package/dist/components/ui/form/FormErrors.d.ts.map +0 -1
- package/dist/components/ui/form/JSONAreaField.d.ts +0 -7
- package/dist/components/ui/form/JSONAreaField.d.ts.map +0 -1
- package/dist/components/ui/form/MarkdownTextAreaField.d.ts +0 -8
- package/dist/components/ui/form/MarkdownTextAreaField.d.ts.map +0 -1
- package/dist/components/ui/form/PasswordField.d.ts +0 -3
- package/dist/components/ui/form/PasswordField.d.ts.map +0 -1
- package/dist/components/ui/form/SelectField.d.ts +0 -11
- package/dist/components/ui/form/SelectField.d.ts.map +0 -1
- package/dist/components/ui/form/SubmitButton.d.ts +0 -9
- package/dist/components/ui/form/SubmitButton.d.ts.map +0 -1
- package/dist/components/ui/form/TagInputField.d.ts +0 -7
- package/dist/components/ui/form/TagInputField.d.ts.map +0 -1
- package/dist/components/ui/form/TextAreaField.d.ts +0 -8
- package/dist/components/ui/form/TextAreaField.d.ts.map +0 -1
- package/dist/components/ui/form/TextField.d.ts +0 -10
- package/dist/components/ui/form/TextField.d.ts.map +0 -1
- package/dist/components/ui/form/index.d.ts +0 -18
- package/dist/components/ui/form/index.d.ts.map +0 -1
- package/dist/components/ui/icons.d.ts +0 -4
- package/dist/components/ui/icons.d.ts.map +0 -1
- package/dist/components/ui/index.d.ts +0 -47
- package/dist/components/ui/index.d.ts.map +0 -1
- package/dist/form.js +0 -2617
- package/dist/gql/operation-types.d.ts +0 -13239
- package/dist/gql/operation-types.d.ts.map +0 -1
- package/dist/gql/schema-types.d.ts +0 -3876
- package/dist/gql/schema-types.d.ts.map +0 -1
- package/dist/gql/types.d.ts +0 -3
- package/dist/gql/types.d.ts.map +0 -1
- package/dist/hooks.js +0 -49
- package/dist/lib/utils.d.ts +0 -3
- package/dist/lib/utils.d.ts.map +0 -1
- package/dist/modal.js +0 -51
- package/dist/modules/Auth/AuthContext.d.ts +0 -9
- package/dist/modules/Auth/AuthContext.d.ts.map +0 -1
- package/dist/modules/Auth/useAuth.d.ts +0 -6
- package/dist/modules/Auth/useAuth.d.ts.map +0 -1
- package/dist/modules/UnchainedContext/UnchainedContext.d.ts +0 -8
- package/dist/modules/UnchainedContext/UnchainedContext.d.ts.map +0 -1
- package/dist/modules/UnchainedContext/useUnchainedContext.d.ts +0 -7
- package/dist/modules/UnchainedContext/useUnchainedContext.d.ts.map +0 -1
- package/dist/modules/accounts/fragment/MD5MetaDataFragment.d.ts +0 -3
- package/dist/modules/accounts/fragment/MD5MetaDataFragment.d.ts.map +0 -1
- package/dist/modules/accounts/fragment/UserFragment.d.ts +0 -3
- package/dist/modules/accounts/fragment/UserFragment.d.ts.map +0 -1
- package/dist/modules/accounts/hooks/useCurrentUser.d.ts +0 -10
- package/dist/modules/accounts/hooks/useCurrentUser.d.ts.map +0 -1
- package/dist/modules/accounts/hooks/useUsersCount.d.ts +0 -8
- package/dist/modules/accounts/hooks/useUsersCount.d.ts.map +0 -1
- package/dist/modules/accounts.js +0 -1349
- package/dist/modules/assortment/hooks/useAssortmentsCount.d.ts +0 -8
- package/dist/modules/assortment/hooks/useAssortmentsCount.d.ts.map +0 -1
- package/dist/modules/assortment.js +0 -1205
- package/dist/modules/common/components/AppContext.d.ts +0 -18
- package/dist/modules/common/components/AppContext.d.ts.map +0 -1
- package/dist/modules/common/components/FormWrapper.d.ts +0 -8
- package/dist/modules/common/components/FormWrapper.d.ts.map +0 -1
- package/dist/modules/common/components/LocaleWrapper.d.ts +0 -7
- package/dist/modules/common/components/LocaleWrapper.d.ts.map +0 -1
- package/dist/modules/common/components/MediaAvatar.d.ts +0 -6
- package/dist/modules/common/components/MediaAvatar.d.ts.map +0 -1
- package/dist/modules/common/components/SelectOptions.d.ts +0 -17
- package/dist/modules/common/components/SelectOptions.d.ts.map +0 -1
- package/dist/modules/common/components/Table.d.ts +0 -25
- package/dist/modules/common/components/Table.d.ts.map +0 -1
- package/dist/modules/common/components/TableCell.d.ts +0 -12
- package/dist/modules/common/components/TableCell.d.ts.map +0 -1
- package/dist/modules/common/components/TableRow.d.ts +0 -10
- package/dist/modules/common/components/TableRow.d.ts.map +0 -1
- package/dist/modules/common/components/ThemeWrapper.d.ts +0 -10
- package/dist/modules/common/components/ThemeWrapper.d.ts.map +0 -1
- package/dist/modules/common/data/iso-codes.d.ts +0 -4
- package/dist/modules/common/data/iso-codes.d.ts.map +0 -1
- package/dist/modules/common/data/miscellaneous.d.ts +0 -52
- package/dist/modules/common/data/miscellaneous.d.ts.map +0 -1
- package/dist/modules/common/fragments/AddressFragment.d.ts +0 -3
- package/dist/modules/common/fragments/AddressFragment.d.ts.map +0 -1
- package/dist/modules/common/hooks/useApp.d.ts +0 -11
- package/dist/modules/common/hooks/useApp.d.ts.map +0 -1
- package/dist/modules/common/hooks/useBulkResultHandler.d.ts +0 -8
- package/dist/modules/common/hooks/useBulkResultHandler.d.ts.map +0 -1
- package/dist/modules/common/hooks/useBulkSelection.d.ts +0 -12
- package/dist/modules/common/hooks/useBulkSelection.d.ts.map +0 -1
- package/dist/modules/common/hooks/useCSVExport.d.ts +0 -10
- package/dist/modules/common/hooks/useCSVExport.d.ts.map +0 -1
- package/dist/modules/common/hooks/useCSVImport.d.ts +0 -18
- package/dist/modules/common/hooks/useCSVImport.d.ts.map +0 -1
- package/dist/modules/common/hooks/useChatEndpointChecker.d.ts +0 -5
- package/dist/modules/common/hooks/useChatEndpointChecker.d.ts.map +0 -1
- package/dist/modules/common/hooks/useConfirmMediaUpload.d.ts +0 -10
- package/dist/modules/common/hooks/useConfirmMediaUpload.d.ts.map +0 -1
- package/dist/modules/common/hooks/useDashboardMetrics.d.ts +0 -23
- package/dist/modules/common/hooks/useDashboardMetrics.d.ts.map +0 -1
- package/dist/modules/common/hooks/useLocalStorage.d.ts +0 -3
- package/dist/modules/common/hooks/useLocalStorage.d.ts.map +0 -1
- package/dist/modules/common/hooks/useOrderAnalytics.d.ts +0 -25
- package/dist/modules/common/hooks/useOrderAnalytics.d.ts.map +0 -1
- package/dist/modules/common/hooks/useOrderItemsAnalytics.d.ts +0 -16
- package/dist/modules/common/hooks/useOrderItemsAnalytics.d.ts.map +0 -1
- package/dist/modules/common/hooks/useOutsideClick.d.ts +0 -3
- package/dist/modules/common/hooks/useOutsideClick.d.ts.map +0 -1
- package/dist/modules/common/hooks/usePortal.d.ts +0 -20
- package/dist/modules/common/hooks/usePortal.d.ts.map +0 -1
- package/dist/modules/common/hooks/useScrollRestoration.d.ts +0 -8
- package/dist/modules/common/hooks/useScrollRestoration.d.ts.map +0 -1
- package/dist/modules/common/hooks/useShopConfiguration.d.ts +0 -8
- package/dist/modules/common/hooks/useShopConfiguration.d.ts.map +0 -1
- package/dist/modules/common/hooks/useShopInfo.d.ts +0 -41
- package/dist/modules/common/hooks/useShopInfo.d.ts.map +0 -1
- package/dist/modules/common/hooks/useStatusTypes.d.ts +0 -10
- package/dist/modules/common/hooks/useStatusTypes.d.ts.map +0 -1
- package/dist/modules/common/hooks/useSystemRoles.d.ts +0 -7
- package/dist/modules/common/hooks/useSystemRoles.d.ts.map +0 -1
- package/dist/modules/common/hooks/useTheme.d.ts +0 -7
- package/dist/modules/common/hooks/useTheme.d.ts.map +0 -1
- package/dist/modules/common/utils/deBounce.d.ts +0 -3
- package/dist/modules/common/utils/deBounce.d.ts.map +0 -1
- package/dist/modules/common/utils/defaultNextImageLoader.d.ts +0 -7
- package/dist/modules/common/utils/defaultNextImageLoader.d.ts.map +0 -1
- package/dist/modules/common/utils/formatUsername.d.ts +0 -3
- package/dist/modules/common/utils/formatUsername.d.ts.map +0 -1
- package/dist/modules/common/utils/getSetupStepsConfigurationsMeta.d.ts +0 -30
- package/dist/modules/common/utils/getSetupStepsConfigurationsMeta.d.ts.map +0 -1
- package/dist/modules/common/utils/normalizeFilterKeys.d.ts +0 -4
- package/dist/modules/common/utils/normalizeFilterKeys.d.ts.map +0 -1
- package/dist/modules/common/utils/sharedContext.d.ts +0 -9
- package/dist/modules/common/utils/sharedContext.d.ts.map +0 -1
- package/dist/modules/common/utils/useFormatDateTime.d.ts +0 -16
- package/dist/modules/common/utils/useFormatDateTime.d.ts.map +0 -1
- package/dist/modules/common/utils/utils.d.ts +0 -21
- package/dist/modules/common/utils/utils.d.ts.map +0 -1
- package/dist/modules/country/fragments/CountryFragment.d.ts +0 -3
- package/dist/modules/country/fragments/CountryFragment.d.ts.map +0 -1
- package/dist/modules/country/hooks/useCountries.d.ts +0 -22
- package/dist/modules/country/hooks/useCountries.d.ts.map +0 -1
- package/dist/modules/country.js +0 -108
- package/dist/modules/currency.js +0 -119
- package/dist/modules/delivery-provider.js +0 -269
- package/dist/modules/enrollment.js +0 -431
- package/dist/modules/event.js +0 -123
- package/dist/modules/filter.js +0 -497
- package/dist/modules/forms/components/Form.d.ts +0 -8
- package/dist/modules/forms/components/Form.d.ts.map +0 -1
- package/dist/modules/forms/hooks/useField.d.ts +0 -35
- package/dist/modules/forms/hooks/useField.d.ts.map +0 -1
- package/dist/modules/forms/hooks/useForm.d.ts +0 -44
- package/dist/modules/forms/hooks/useForm.d.ts.map +0 -1
- package/dist/modules/forms/hooks/useFormContext.d.ts +0 -3
- package/dist/modules/forms/hooks/useFormContext.d.ts.map +0 -1
- package/dist/modules/forms/lib/FormContext.d.ts +0 -13
- package/dist/modules/forms/lib/FormContext.d.ts.map +0 -1
- package/dist/modules/forms/lib/clean.d.ts +0 -3
- package/dist/modules/forms/lib/clean.d.ts.map +0 -1
- package/dist/modules/forms/lib/validators.d.ts +0 -20
- package/dist/modules/forms/lib/validators.d.ts.map +0 -1
- package/dist/modules/language/fragments/LanguageFragment.d.ts +0 -3
- package/dist/modules/language/fragments/LanguageFragment.d.ts.map +0 -1
- package/dist/modules/language/hooks/useLanguages.d.ts +0 -19
- package/dist/modules/language/hooks/useLanguages.d.ts.map +0 -1
- package/dist/modules/language.js +0 -106
- package/dist/modules/modal/components/AlertMessage.d.ts +0 -9
- package/dist/modules/modal/components/AlertMessage.d.ts.map +0 -1
- package/dist/modules/modal/components/DangerMessage.d.ts +0 -13
- package/dist/modules/modal/components/DangerMessage.d.ts.map +0 -1
- package/dist/modules/modal/components/ImportResultMessage.d.ts +0 -14
- package/dist/modules/modal/components/ImportResultMessage.d.ts.map +0 -1
- package/dist/modules/modal/components/Modal.d.ts +0 -10
- package/dist/modules/modal/components/Modal.d.ts.map +0 -1
- package/dist/modules/modal/components/ModalWrapper.d.ts +0 -6
- package/dist/modules/modal/components/ModalWrapper.d.ts.map +0 -1
- package/dist/modules/modal/hooks/useModal.d.ts +0 -7
- package/dist/modules/modal/hooks/useModal.d.ts.map +0 -1
- package/dist/modules/modal/utils/ModalContext.d.ts +0 -9
- package/dist/modules/modal/utils/ModalContext.d.ts.map +0 -1
- package/dist/modules/order/fragments/OrderDetailFragment.d.ts +0 -3
- package/dist/modules/order/fragments/OrderDetailFragment.d.ts.map +0 -1
- package/dist/modules/order/fragments/OrderFragment.d.ts +0 -3
- package/dist/modules/order/fragments/OrderFragment.d.ts.map +0 -1
- package/dist/modules/order/hooks/useOrders.d.ts +0 -46
- package/dist/modules/order/hooks/useOrders.d.ts.map +0 -1
- package/dist/modules/order.js +0 -569
- package/dist/modules/payment-providers.js +0 -206
- package/dist/modules/product/hooks/useProductsCount.d.ts +0 -8
- package/dist/modules/product/hooks/useProductsCount.d.ts.map +0 -1
- package/dist/modules/product-review.js +0 -270
- package/dist/modules/product.js +0 -6914
- package/dist/modules/quotation.js +0 -324
- package/dist/modules/token.js +0 -143
- package/dist/modules/warehousing-providers.js +0 -206
- package/dist/modules/work/fragments/WorkFragment.d.ts +0 -3
- package/dist/modules/work/fragments/WorkFragment.d.ts.map +0 -1
- package/dist/modules/work/hooks/useAddWork.d.ts +0 -6
- package/dist/modules/work/hooks/useAddWork.d.ts.map +0 -1
- package/dist/modules/work/hooks/useWork.d.ts +0 -32
- package/dist/modules/work/hooks/useWork.d.ts.map +0 -1
- package/dist/modules/work.js +0 -232
- package/dist/plugins.js +0 -13
- package/dist/providers.js +0 -9
- package/dist/sdk/hooks.d.ts +0 -12
- package/dist/sdk/hooks.d.ts.map +0 -1
- package/dist/sdk/modal.d.ts +0 -7
- package/dist/sdk/modal.d.ts.map +0 -1
- package/dist/sdk/plugins.d.ts +0 -78
- package/dist/sdk/plugins.d.ts.map +0 -1
- package/dist/sdk/providers.d.ts +0 -5
- package/dist/sdk/providers.d.ts.map +0 -1
- package/dist/sdk/shims/admin-ui-plugins.d.ts +0 -3
- package/dist/sdk/shims/admin-ui-plugins.d.ts.map +0 -1
- package/dist/sdk/shims/apollo-client-react.d.ts +0 -3
- package/dist/sdk/shims/apollo-client-react.d.ts.map +0 -1
- package/dist/sdk/shims/apollo-client.d.ts +0 -3
- package/dist/sdk/shims/apollo-client.d.ts.map +0 -1
- package/dist/sdk/shims/host.d.ts +0 -17
- package/dist/sdk/shims/host.d.ts.map +0 -1
- package/dist/sdk/shims/next-head.d.ts +0 -3
- package/dist/sdk/shims/next-head.d.ts.map +0 -1
- package/dist/sdk/shims/next-image.d.ts +0 -3
- package/dist/sdk/shims/next-image.d.ts.map +0 -1
- package/dist/sdk/shims/next-link.d.ts +0 -3
- package/dist/sdk/shims/next-link.d.ts.map +0 -1
- package/dist/sdk/shims/next-router.d.ts +0 -3
- package/dist/sdk/shims/next-router.d.ts.map +0 -1
- package/dist/sdk/shims/react-dom-client.d.ts +0 -3
- package/dist/sdk/shims/react-dom-client.d.ts.map +0 -1
- package/dist/sdk/shims/react-dom.d.ts +0 -3
- package/dist/sdk/shims/react-dom.d.ts.map +0 -1
- package/dist/sdk/shims/react-hook-form.d.ts +0 -3
- package/dist/sdk/shims/react-hook-form.d.ts.map +0 -1
- package/dist/sdk/shims/react-intl.d.ts +0 -3
- package/dist/sdk/shims/react-intl.d.ts.map +0 -1
- package/dist/sdk/shims/react-jsx-runtime.d.ts +0 -3
- package/dist/sdk/shims/react-jsx-runtime.d.ts.map +0 -1
- package/dist/sdk/shims/react-toastify.d.ts +0 -3
- package/dist/sdk/shims/react-toastify.d.ts.map +0 -1
- package/dist/sdk/shims/react.d.ts +0 -3
- package/dist/sdk/shims/react.d.ts.map +0 -1
- package/dist/sdk/theme.d.ts +0 -26
- package/dist/sdk/theme.d.ts.map +0 -1
- package/dist/shims/admin-ui-plugins.js +0 -9
- package/dist/shims/apollo-client-react.js +0 -25
- package/dist/shims/apollo-client.js +0 -55
- package/dist/shims/next-head.js +0 -9
- package/dist/shims/next-image.js +0 -9
- package/dist/shims/next-link.js +0 -9
- package/dist/shims/next-router.js +0 -13
- package/dist/shims/react-dom-client.js +0 -11
- package/dist/shims/react-dom.js +0 -22
- package/dist/shims/react-hook-form.js +0 -25
- package/dist/shims/react-intl.js +0 -37
- package/dist/shims/react-jsx-runtime.js +0 -11
- package/dist/shims/react-toastify.js +0 -16
- package/dist/shims/react.js +0 -52
- package/dist/theme.js +0 -34
- package/dist/ui.js +0 -19764
- package/out/manifest.json +0 -48
- /package/out/_next/static/{4ESrB8YpR2n44PFePtbgX → jOx5PlckLwWIJ5yrvePdU}/_clientMiddlewareManifest.js +0 -0
- /package/out/_next/static/{4ESrB8YpR2n44PFePtbgX → jOx5PlckLwWIJ5yrvePdU}/_ssgManifest.js +0 -0
|
@@ -1,431 +0,0 @@
|
|
|
1
|
-
import { useUnchainedContext_default } from '../chunk-IAQPLRXZ.js';
|
|
2
|
-
import '../chunk-WPLOTFGW.js';
|
|
3
|
-
import { gql } from '@apollo/client';
|
|
4
|
-
import { useMutation, useQuery } from '@apollo/client/react';
|
|
5
|
-
|
|
6
|
-
var ActivateEnrollmentMutation = gql`
|
|
7
|
-
mutation ActivateEnrollment($enrollmentId: ID!) {
|
|
8
|
-
activateEnrollment(enrollmentId: $enrollmentId) {
|
|
9
|
-
_id
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
`;
|
|
13
|
-
var useActivateEnrollment = () => {
|
|
14
|
-
const [activateEnrollmentMutation] = useMutation(ActivateEnrollmentMutation);
|
|
15
|
-
const activateEnrollment = async ({
|
|
16
|
-
enrollmentId
|
|
17
|
-
}) => {
|
|
18
|
-
return activateEnrollmentMutation({
|
|
19
|
-
variables: { enrollmentId },
|
|
20
|
-
refetchQueries: ["Enrollments", "Enrollment"]
|
|
21
|
-
});
|
|
22
|
-
};
|
|
23
|
-
return {
|
|
24
|
-
activateEnrollment
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
var useActivateEnrollment_default = useActivateEnrollment;
|
|
28
|
-
var EnrollmentDetailFragment = gql`
|
|
29
|
-
fragment EnrollmentDetailFragment on Enrollment {
|
|
30
|
-
_id
|
|
31
|
-
country {
|
|
32
|
-
_id
|
|
33
|
-
isoCode
|
|
34
|
-
}
|
|
35
|
-
enrollmentNumber
|
|
36
|
-
updated
|
|
37
|
-
status
|
|
38
|
-
created
|
|
39
|
-
expires
|
|
40
|
-
contractStartDate
|
|
41
|
-
minimumCommitmentEnd
|
|
42
|
-
billingAddress {
|
|
43
|
-
addressLine
|
|
44
|
-
addressLine2
|
|
45
|
-
city
|
|
46
|
-
company
|
|
47
|
-
countryCode
|
|
48
|
-
firstName
|
|
49
|
-
lastName
|
|
50
|
-
postalCode
|
|
51
|
-
regionCode
|
|
52
|
-
}
|
|
53
|
-
contact {
|
|
54
|
-
emailAddress
|
|
55
|
-
telNumber
|
|
56
|
-
}
|
|
57
|
-
currency {
|
|
58
|
-
_id
|
|
59
|
-
contractAddress
|
|
60
|
-
decimals
|
|
61
|
-
isActive
|
|
62
|
-
isoCode
|
|
63
|
-
}
|
|
64
|
-
delivery {
|
|
65
|
-
provider {
|
|
66
|
-
_id
|
|
67
|
-
configuration
|
|
68
|
-
configurationError
|
|
69
|
-
interface {
|
|
70
|
-
_id
|
|
71
|
-
label
|
|
72
|
-
version
|
|
73
|
-
}
|
|
74
|
-
isActive
|
|
75
|
-
|
|
76
|
-
simulatedPrice {
|
|
77
|
-
amount
|
|
78
|
-
currencyCode
|
|
79
|
-
isNetPrice
|
|
80
|
-
isTaxable
|
|
81
|
-
}
|
|
82
|
-
type
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
payment {
|
|
86
|
-
provider {
|
|
87
|
-
_id
|
|
88
|
-
configuration
|
|
89
|
-
configurationError
|
|
90
|
-
interface {
|
|
91
|
-
_id
|
|
92
|
-
label
|
|
93
|
-
version
|
|
94
|
-
}
|
|
95
|
-
isActive
|
|
96
|
-
type
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
periods {
|
|
100
|
-
start
|
|
101
|
-
end
|
|
102
|
-
isTrial
|
|
103
|
-
order {
|
|
104
|
-
_id
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
isExpired
|
|
109
|
-
plan {
|
|
110
|
-
configuration {
|
|
111
|
-
key
|
|
112
|
-
value
|
|
113
|
-
}
|
|
114
|
-
product {
|
|
115
|
-
_id
|
|
116
|
-
texts {
|
|
117
|
-
_id
|
|
118
|
-
title
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
quantity
|
|
122
|
-
}
|
|
123
|
-
user {
|
|
124
|
-
_id
|
|
125
|
-
username
|
|
126
|
-
name
|
|
127
|
-
avatar {
|
|
128
|
-
_id
|
|
129
|
-
url
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
`;
|
|
134
|
-
var EnrollmentDetailFragment_default = EnrollmentDetailFragment;
|
|
135
|
-
|
|
136
|
-
// src/modules/enrollment/hooks/useEnrollment.ts
|
|
137
|
-
var GetEnrollmentQuery = (inlineFragment = "") => gql`
|
|
138
|
-
query Enrollment($enrollmentId: ID!) {
|
|
139
|
-
enrollment(enrollmentId: $enrollmentId) {
|
|
140
|
-
...EnrollmentDetailFragment
|
|
141
|
-
${inlineFragment}
|
|
142
|
-
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
${EnrollmentDetailFragment_default}
|
|
146
|
-
`;
|
|
147
|
-
var useEnrollment = ({ enrollmentId = null }) => {
|
|
148
|
-
const { customProperties } = useUnchainedContext_default();
|
|
149
|
-
const { data, loading, error } = useQuery(GetEnrollmentQuery(customProperties?.Enrollment), {
|
|
150
|
-
skip: !enrollmentId,
|
|
151
|
-
variables: { enrollmentId }
|
|
152
|
-
});
|
|
153
|
-
const enrollment = data?.enrollment;
|
|
154
|
-
return {
|
|
155
|
-
enrollment,
|
|
156
|
-
loading,
|
|
157
|
-
error
|
|
158
|
-
};
|
|
159
|
-
};
|
|
160
|
-
var useEnrollment_default = useEnrollment;
|
|
161
|
-
var EnrollmentFragment = gql`
|
|
162
|
-
fragment EnrollmentFragment on Enrollment {
|
|
163
|
-
_id
|
|
164
|
-
country {
|
|
165
|
-
_id
|
|
166
|
-
isoCode
|
|
167
|
-
}
|
|
168
|
-
currency {
|
|
169
|
-
_id
|
|
170
|
-
isoCode
|
|
171
|
-
}
|
|
172
|
-
enrollmentNumber
|
|
173
|
-
updated
|
|
174
|
-
status
|
|
175
|
-
created
|
|
176
|
-
expires
|
|
177
|
-
contractStartDate
|
|
178
|
-
minimumCommitmentEnd
|
|
179
|
-
isExpired
|
|
180
|
-
periods {
|
|
181
|
-
start
|
|
182
|
-
end
|
|
183
|
-
isTrial
|
|
184
|
-
}
|
|
185
|
-
payment {
|
|
186
|
-
provider {
|
|
187
|
-
_id
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
delivery {
|
|
191
|
-
provider {
|
|
192
|
-
_id
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
plan {
|
|
196
|
-
product {
|
|
197
|
-
_id
|
|
198
|
-
media {
|
|
199
|
-
_id
|
|
200
|
-
file {
|
|
201
|
-
_id
|
|
202
|
-
url
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
texts {
|
|
206
|
-
_id
|
|
207
|
-
title
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
quantity
|
|
211
|
-
}
|
|
212
|
-
user {
|
|
213
|
-
_id
|
|
214
|
-
username
|
|
215
|
-
name
|
|
216
|
-
avatar {
|
|
217
|
-
_id
|
|
218
|
-
url
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
`;
|
|
223
|
-
var EnrollmentFragment_default = EnrollmentFragment;
|
|
224
|
-
|
|
225
|
-
// src/modules/enrollment/hooks/useEnrollments.ts
|
|
226
|
-
var EnrollmentsQuery = gql`
|
|
227
|
-
query Enrollments(
|
|
228
|
-
$offset: Int
|
|
229
|
-
$limit: Int
|
|
230
|
-
$queryString: String
|
|
231
|
-
$sort: [SortOptionInput!]
|
|
232
|
-
$status: [String!]
|
|
233
|
-
) {
|
|
234
|
-
enrollments(
|
|
235
|
-
offset: $offset
|
|
236
|
-
limit: $limit
|
|
237
|
-
queryString: $queryString
|
|
238
|
-
sort: $sort
|
|
239
|
-
status: $status
|
|
240
|
-
) {
|
|
241
|
-
...EnrollmentFragment
|
|
242
|
-
}
|
|
243
|
-
enrollmentsCount(queryString: $queryString, status: $status)
|
|
244
|
-
}
|
|
245
|
-
${EnrollmentFragment_default}
|
|
246
|
-
`;
|
|
247
|
-
var useEnrollments = ({
|
|
248
|
-
limit = 20,
|
|
249
|
-
offset = 0,
|
|
250
|
-
queryString = "",
|
|
251
|
-
sort = [],
|
|
252
|
-
status = null,
|
|
253
|
-
forceLocale = ""
|
|
254
|
-
} = {}) => {
|
|
255
|
-
const { data, loading, error, fetchMore } = useQuery(EnrollmentsQuery, {
|
|
256
|
-
context: {
|
|
257
|
-
headers: {
|
|
258
|
-
forceLocale
|
|
259
|
-
}
|
|
260
|
-
},
|
|
261
|
-
variables: { limit, offset, queryString, sort, status }
|
|
262
|
-
});
|
|
263
|
-
const enrollments = data?.enrollments || [];
|
|
264
|
-
const enrollmentsCount = data?.enrollmentsCount;
|
|
265
|
-
const hasMore = enrollments?.length < enrollmentsCount;
|
|
266
|
-
const loadMore = () => {
|
|
267
|
-
fetchMore({
|
|
268
|
-
variables: { offset: enrollments?.length }
|
|
269
|
-
});
|
|
270
|
-
};
|
|
271
|
-
return {
|
|
272
|
-
enrollments,
|
|
273
|
-
enrollmentsCount,
|
|
274
|
-
hasMore,
|
|
275
|
-
loading,
|
|
276
|
-
error,
|
|
277
|
-
loadMore
|
|
278
|
-
};
|
|
279
|
-
};
|
|
280
|
-
var useEnrollments_default = useEnrollments;
|
|
281
|
-
var SendEnrollmentEmailMutation = gql`
|
|
282
|
-
mutation SendEnrollmentEmail($email: String!) {
|
|
283
|
-
sendEnrollmentEmail(email: $email) {
|
|
284
|
-
success
|
|
285
|
-
}
|
|
286
|
-
}
|
|
287
|
-
`;
|
|
288
|
-
var useSendEnrollmentEmail = () => {
|
|
289
|
-
const [sendEnrollmentEmailMutation] = useMutation(SendEnrollmentEmailMutation);
|
|
290
|
-
const sendEnrollmentEmail = async ({
|
|
291
|
-
email
|
|
292
|
-
}) => {
|
|
293
|
-
return sendEnrollmentEmailMutation({
|
|
294
|
-
variables: { email }
|
|
295
|
-
});
|
|
296
|
-
};
|
|
297
|
-
return {
|
|
298
|
-
sendEnrollmentEmail
|
|
299
|
-
};
|
|
300
|
-
};
|
|
301
|
-
var useSendEnrollmentEmail_default = useSendEnrollmentEmail;
|
|
302
|
-
var SuspendEnrollmentMutation = gql`
|
|
303
|
-
mutation SuspendEnrollment($enrollmentId: ID!) {
|
|
304
|
-
suspendEnrollment(enrollmentId: $enrollmentId) {
|
|
305
|
-
_id
|
|
306
|
-
}
|
|
307
|
-
}
|
|
308
|
-
`;
|
|
309
|
-
var useSuspendEnrollment = () => {
|
|
310
|
-
const [suspendEnrollmentMutation] = useMutation(SuspendEnrollmentMutation);
|
|
311
|
-
const suspendEnrollment = async ({
|
|
312
|
-
enrollmentId
|
|
313
|
-
}) => {
|
|
314
|
-
return suspendEnrollmentMutation({
|
|
315
|
-
variables: { enrollmentId },
|
|
316
|
-
refetchQueries: ["Enrollments", "Enrollment"]
|
|
317
|
-
});
|
|
318
|
-
};
|
|
319
|
-
return { suspendEnrollment };
|
|
320
|
-
};
|
|
321
|
-
var useSuspendEnrollment_default = useSuspendEnrollment;
|
|
322
|
-
var TerminateEnrollmentMutation = gql`
|
|
323
|
-
mutation TerminateEnrollment($enrollmentId: ID!) {
|
|
324
|
-
terminateEnrollment(enrollmentId: $enrollmentId) {
|
|
325
|
-
_id
|
|
326
|
-
}
|
|
327
|
-
}
|
|
328
|
-
`;
|
|
329
|
-
var useTerminateEnrollment = () => {
|
|
330
|
-
const [terminateEnrollmentMutation] = useMutation(TerminateEnrollmentMutation);
|
|
331
|
-
const terminateEnrollment = async ({
|
|
332
|
-
enrollmentId
|
|
333
|
-
}) => {
|
|
334
|
-
return terminateEnrollmentMutation({
|
|
335
|
-
variables: { enrollmentId },
|
|
336
|
-
refetchQueries: ["Enrollments", "Enrollment"]
|
|
337
|
-
});
|
|
338
|
-
};
|
|
339
|
-
return {
|
|
340
|
-
terminateEnrollment
|
|
341
|
-
};
|
|
342
|
-
};
|
|
343
|
-
var useTerminateEnrollment_default = useTerminateEnrollment;
|
|
344
|
-
var UpdateEnrollmentPlanMutation = gql`
|
|
345
|
-
mutation UpdateEnrollmentPlan(
|
|
346
|
-
$enrollmentId: ID!
|
|
347
|
-
$plan: EnrollmentPlanInput!
|
|
348
|
-
) {
|
|
349
|
-
updateEnrollment(enrollmentId: $enrollmentId, plan: $plan) {
|
|
350
|
-
_id
|
|
351
|
-
status
|
|
352
|
-
plan {
|
|
353
|
-
product {
|
|
354
|
-
_id
|
|
355
|
-
texts {
|
|
356
|
-
_id
|
|
357
|
-
title
|
|
358
|
-
}
|
|
359
|
-
}
|
|
360
|
-
quantity
|
|
361
|
-
configuration {
|
|
362
|
-
key
|
|
363
|
-
value
|
|
364
|
-
}
|
|
365
|
-
}
|
|
366
|
-
}
|
|
367
|
-
}
|
|
368
|
-
`;
|
|
369
|
-
var useUpdateEnrollmentPlan = () => {
|
|
370
|
-
const [updateEnrollmentPlanMutation] = useMutation(
|
|
371
|
-
UpdateEnrollmentPlanMutation
|
|
372
|
-
);
|
|
373
|
-
const updateEnrollmentPlan = async ({ enrollmentId, plan }) => {
|
|
374
|
-
return updateEnrollmentPlanMutation({
|
|
375
|
-
variables: { enrollmentId, plan },
|
|
376
|
-
refetchQueries: ["Enrollments", "Enrollment"]
|
|
377
|
-
});
|
|
378
|
-
};
|
|
379
|
-
return { updateEnrollmentPlan };
|
|
380
|
-
};
|
|
381
|
-
var useUpdateEnrollmentPlan_default = useUpdateEnrollmentPlan;
|
|
382
|
-
var UserEnrollmentsQuery = gql`
|
|
383
|
-
query UserEnrollments($userId: ID!, $queryString: String) {
|
|
384
|
-
user(userId: $userId) {
|
|
385
|
-
_id
|
|
386
|
-
enrollments(queryString: $queryString) {
|
|
387
|
-
_id
|
|
388
|
-
enrollmentNumber
|
|
389
|
-
status
|
|
390
|
-
created
|
|
391
|
-
expires
|
|
392
|
-
isExpired
|
|
393
|
-
plan {
|
|
394
|
-
product {
|
|
395
|
-
_id
|
|
396
|
-
media {
|
|
397
|
-
_id
|
|
398
|
-
file {
|
|
399
|
-
_id
|
|
400
|
-
url
|
|
401
|
-
}
|
|
402
|
-
}
|
|
403
|
-
texts {
|
|
404
|
-
_id
|
|
405
|
-
title
|
|
406
|
-
}
|
|
407
|
-
}
|
|
408
|
-
quantity
|
|
409
|
-
}
|
|
410
|
-
}
|
|
411
|
-
}
|
|
412
|
-
}
|
|
413
|
-
`;
|
|
414
|
-
var useUserEnrollments = ({
|
|
415
|
-
userId = null,
|
|
416
|
-
queryString = ""
|
|
417
|
-
}) => {
|
|
418
|
-
const { data, loading, error } = useQuery(UserEnrollmentsQuery, {
|
|
419
|
-
skip: !userId,
|
|
420
|
-
variables: { userId, queryString }
|
|
421
|
-
});
|
|
422
|
-
const enrollments = data?.user?.enrollments || [];
|
|
423
|
-
return {
|
|
424
|
-
enrollments,
|
|
425
|
-
loading,
|
|
426
|
-
error
|
|
427
|
-
};
|
|
428
|
-
};
|
|
429
|
-
var useUserEnrollments_default = useUserEnrollments;
|
|
430
|
-
|
|
431
|
-
export { useActivateEnrollment_default as useActivateEnrollment, useEnrollment_default as useEnrollment, useEnrollments_default as useEnrollments, useSendEnrollmentEmail_default as useSendEnrollmentEmail, useSuspendEnrollment_default as useSuspendEnrollment, useTerminateEnrollment_default as useTerminateEnrollment, useUpdateEnrollmentPlan_default as useUpdateEnrollmentPlan, useUserEnrollments_default as useUserEnrollments };
|
package/dist/modules/event.js
DELETED
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
import '../chunk-QWQ3WJJN.js';
|
|
2
|
-
import '../chunk-WPLOTFGW.js';
|
|
3
|
-
import { gql } from '@apollo/client';
|
|
4
|
-
import { useQuery } from '@apollo/client/react';
|
|
5
|
-
|
|
6
|
-
var EventFragment = gql`
|
|
7
|
-
fragment EventFragment on Event {
|
|
8
|
-
_id
|
|
9
|
-
type
|
|
10
|
-
payload
|
|
11
|
-
created
|
|
12
|
-
}
|
|
13
|
-
`;
|
|
14
|
-
var EventFragment_default = EventFragment;
|
|
15
|
-
|
|
16
|
-
// src/modules/event/hooks/useEvent.ts
|
|
17
|
-
var EventQuery = gql`
|
|
18
|
-
query Event($eventId: ID!) {
|
|
19
|
-
event(eventId: $eventId) {
|
|
20
|
-
...EventFragment
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
${EventFragment_default}
|
|
24
|
-
`;
|
|
25
|
-
var useEvent = ({ eventId = null }) => {
|
|
26
|
-
const { data, loading, error } = useQuery(
|
|
27
|
-
EventQuery,
|
|
28
|
-
{
|
|
29
|
-
skip: !eventId,
|
|
30
|
-
variables: { eventId }
|
|
31
|
-
}
|
|
32
|
-
);
|
|
33
|
-
const event = data?.event || [];
|
|
34
|
-
return {
|
|
35
|
-
event,
|
|
36
|
-
loading,
|
|
37
|
-
error
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
var useEvent_default = useEvent;
|
|
41
|
-
var RegisteredEventTypesQuery = gql`
|
|
42
|
-
query RegisteredEventTypes {
|
|
43
|
-
registeredEventTypes
|
|
44
|
-
}
|
|
45
|
-
`;
|
|
46
|
-
var useEventTypes = () => {
|
|
47
|
-
const { data, loading, error } = useQuery(
|
|
48
|
-
RegisteredEventTypesQuery
|
|
49
|
-
);
|
|
50
|
-
const eventsType = (data?.registeredEventTypes || []).map(
|
|
51
|
-
(value) => ({
|
|
52
|
-
value,
|
|
53
|
-
label: value
|
|
54
|
-
})
|
|
55
|
-
);
|
|
56
|
-
return {
|
|
57
|
-
eventsType,
|
|
58
|
-
loading,
|
|
59
|
-
error
|
|
60
|
-
};
|
|
61
|
-
};
|
|
62
|
-
var useEventTypes_default = useEventTypes;
|
|
63
|
-
var EventQuery2 = gql`
|
|
64
|
-
query Events(
|
|
65
|
-
$types: [String!]
|
|
66
|
-
$limit: Int
|
|
67
|
-
$offset: Int
|
|
68
|
-
$sort: [SortOptionInput!]
|
|
69
|
-
$queryString: String
|
|
70
|
-
$created: DateFilterInput
|
|
71
|
-
) {
|
|
72
|
-
events(
|
|
73
|
-
types: $types
|
|
74
|
-
limit: $limit
|
|
75
|
-
offset: $offset
|
|
76
|
-
sort: $sort
|
|
77
|
-
queryString: $queryString
|
|
78
|
-
created: $created
|
|
79
|
-
) {
|
|
80
|
-
...EventFragment
|
|
81
|
-
}
|
|
82
|
-
eventsCount(types: $types, created: $created, queryString: $queryString)
|
|
83
|
-
}
|
|
84
|
-
${EventFragment_default}
|
|
85
|
-
`;
|
|
86
|
-
var useEvents = ({
|
|
87
|
-
types = null,
|
|
88
|
-
limit = 20,
|
|
89
|
-
offset = 0,
|
|
90
|
-
sort: sortOptions = [],
|
|
91
|
-
queryString = null,
|
|
92
|
-
created = null
|
|
93
|
-
} = {}) => {
|
|
94
|
-
const { data, loading, error, fetchMore, previousData } = useQuery(EventQuery2, {
|
|
95
|
-
variables: {
|
|
96
|
-
types,
|
|
97
|
-
limit,
|
|
98
|
-
offset,
|
|
99
|
-
sort: sortOptions?.length ? sortOptions : [{ key: "created", value: "DESC" /* Desc */ }],
|
|
100
|
-
queryString,
|
|
101
|
-
created
|
|
102
|
-
}
|
|
103
|
-
});
|
|
104
|
-
const events = data?.events || previousData?.events || [];
|
|
105
|
-
const eventsCount = data?.eventsCount;
|
|
106
|
-
const hasMore = events?.length < eventsCount;
|
|
107
|
-
const loadMore = () => {
|
|
108
|
-
fetchMore({
|
|
109
|
-
variables: { offset: events.length }
|
|
110
|
-
});
|
|
111
|
-
};
|
|
112
|
-
return {
|
|
113
|
-
events,
|
|
114
|
-
hasMore,
|
|
115
|
-
eventsCount,
|
|
116
|
-
loadMore,
|
|
117
|
-
loading,
|
|
118
|
-
error
|
|
119
|
-
};
|
|
120
|
-
};
|
|
121
|
-
var useEvents_default = useEvents;
|
|
122
|
-
|
|
123
|
-
export { useEvent_default as useEvent, useEventTypes_default as useEventTypes, useEvents_default as useEvents };
|