@voyant-travel/commerce-react 0.1.0
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/LICENSE +201 -0
- package/dist/admin.d.ts +16 -0
- package/dist/admin.d.ts.map +1 -0
- package/dist/admin.js +32 -0
- package/dist/admin.js.map +1 -0
- package/dist/i18n.d.ts +22 -0
- package/dist/i18n.d.ts.map +1 -0
- package/dist/i18n.js +13 -0
- package/dist/i18n.js.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -0
- package/dist/markets/client.d.ts +14 -0
- package/dist/markets/client.d.ts.map +1 -0
- package/dist/markets/client.js +59 -0
- package/dist/markets/client.js.map +1 -0
- package/dist/markets/components/market-currency-dialog.d.ts +10 -0
- package/dist/markets/components/market-currency-dialog.d.ts.map +1 -0
- package/dist/markets/components/market-currency-dialog.js +86 -0
- package/dist/markets/components/market-currency-dialog.js.map +1 -0
- package/dist/markets/components/market-dialog.d.ts +9 -0
- package/dist/markets/components/market-dialog.d.ts.map +1 -0
- package/dist/markets/components/market-dialog.js +102 -0
- package/dist/markets/components/market-dialog.js.map +1 -0
- package/dist/markets/components/market-locale-dialog.d.ts +10 -0
- package/dist/markets/components/market-locale-dialog.d.ts.map +1 -0
- package/dist/markets/components/market-locale-dialog.js +73 -0
- package/dist/markets/components/market-locale-dialog.js.map +1 -0
- package/dist/markets/hooks/index.d.ts +10 -0
- package/dist/markets/hooks/index.d.ts.map +1 -0
- package/dist/markets/hooks/index.js +10 -0
- package/dist/markets/hooks/index.js.map +1 -0
- package/dist/markets/hooks/use-market-currencies.d.ts +20 -0
- package/dist/markets/hooks/use-market-currencies.d.ts.map +1 -0
- package/dist/markets/hooks/use-market-currencies.js +13 -0
- package/dist/markets/hooks/use-market-currencies.js.map +1 -0
- package/dist/markets/hooks/use-market-currency-mutation.d.ts +36 -0
- package/dist/markets/hooks/use-market-currency-mutation.d.ts.map +1 -0
- package/dist/markets/hooks/use-market-currency-mutation.js +41 -0
- package/dist/markets/hooks/use-market-currency-mutation.js.map +1 -0
- package/dist/markets/hooks/use-market-locale-mutation.d.ts +32 -0
- package/dist/markets/hooks/use-market-locale-mutation.d.ts.map +1 -0
- package/dist/markets/hooks/use-market-locale-mutation.js +41 -0
- package/dist/markets/hooks/use-market-locale-mutation.js.map +1 -0
- package/dist/markets/hooks/use-market-locales.d.ts +18 -0
- package/dist/markets/hooks/use-market-locales.d.ts.map +1 -0
- package/dist/markets/hooks/use-market-locales.js +13 -0
- package/dist/markets/hooks/use-market-locales.js.map +1 -0
- package/dist/markets/hooks/use-market-mutation.d.ts +50 -0
- package/dist/markets/hooks/use-market-mutation.d.ts.map +1 -0
- package/dist/markets/hooks/use-market-mutation.js +43 -0
- package/dist/markets/hooks/use-market-mutation.js.map +1 -0
- package/dist/markets/hooks/use-market-product-rule-mutation.d.ts +53 -0
- package/dist/markets/hooks/use-market-product-rule-mutation.d.ts.map +1 -0
- package/dist/markets/hooks/use-market-product-rule-mutation.js +39 -0
- package/dist/markets/hooks/use-market-product-rule-mutation.js.map +1 -0
- package/dist/markets/hooks/use-market-product-rules.d.ts +24 -0
- package/dist/markets/hooks/use-market-product-rules.d.ts.map +1 -0
- package/dist/markets/hooks/use-market-product-rules.js +13 -0
- package/dist/markets/hooks/use-market-product-rules.js.map +1 -0
- package/dist/markets/hooks/use-market.d.ts +17 -0
- package/dist/markets/hooks/use-market.d.ts.map +1 -0
- package/dist/markets/hooks/use-market.js +13 -0
- package/dist/markets/hooks/use-market.js.map +1 -0
- package/dist/markets/hooks/use-markets.d.ts +23 -0
- package/dist/markets/hooks/use-markets.d.ts.map +1 -0
- package/dist/markets/hooks/use-markets.js +13 -0
- package/dist/markets/hooks/use-markets.js.map +1 -0
- package/dist/markets/i18n/en.d.ts +88 -0
- package/dist/markets/i18n/en.d.ts.map +1 -0
- package/dist/markets/i18n/en.js +88 -0
- package/dist/markets/i18n/en.js.map +1 -0
- package/dist/markets/i18n/index.d.ts +5 -0
- package/dist/markets/i18n/index.d.ts.map +1 -0
- package/dist/markets/i18n/index.js +4 -0
- package/dist/markets/i18n/index.js.map +1 -0
- package/dist/markets/i18n/messages.d.ts +90 -0
- package/dist/markets/i18n/messages.d.ts.map +1 -0
- package/dist/markets/i18n/messages.js +2 -0
- package/dist/markets/i18n/messages.js.map +1 -0
- package/dist/markets/i18n/provider.d.ts +198 -0
- package/dist/markets/i18n/provider.d.ts.map +1 -0
- package/dist/markets/i18n/provider.js +45 -0
- package/dist/markets/i18n/provider.js.map +1 -0
- package/dist/markets/i18n/ro.d.ts +88 -0
- package/dist/markets/i18n/ro.d.ts.map +1 -0
- package/dist/markets/i18n/ro.js +88 -0
- package/dist/markets/i18n/ro.js.map +1 -0
- package/dist/markets/index.d.ts +7 -0
- package/dist/markets/index.d.ts.map +1 -0
- package/dist/markets/index.js +7 -0
- package/dist/markets/index.js.map +1 -0
- package/dist/markets/provider.d.ts +2 -0
- package/dist/markets/provider.d.ts.map +1 -0
- package/dist/markets/provider.js +2 -0
- package/dist/markets/provider.js.map +1 -0
- package/dist/markets/query-keys.d.ts +46 -0
- package/dist/markets/query-keys.d.ts.map +1 -0
- package/dist/markets/query-keys.js +16 -0
- package/dist/markets/query-keys.js.map +1 -0
- package/dist/markets/query-options.d.ts +478 -0
- package/dist/markets/query-options.d.ts.map +1 -0
- package/dist/markets/query-options.js +88 -0
- package/dist/markets/query-options.js.map +1 -0
- package/dist/markets/schemas.d.ts +232 -0
- package/dist/markets/schemas.d.ts.map +1 -0
- package/dist/markets/schemas.js +45 -0
- package/dist/markets/schemas.js.map +1 -0
- package/dist/markets/ui.d.ts +5 -0
- package/dist/markets/ui.d.ts.map +1 -0
- package/dist/markets/ui.js +5 -0
- package/dist/markets/ui.js.map +1 -0
- package/dist/markets.d.ts +2 -0
- package/dist/markets.d.ts.map +1 -0
- package/dist/markets.js +2 -0
- package/dist/markets.js.map +1 -0
- package/dist/pricing/client.d.ts +14 -0
- package/dist/pricing/client.d.ts.map +1 -0
- package/dist/pricing/client.js +60 -0
- package/dist/pricing/client.js.map +1 -0
- package/dist/pricing/components/cancellation-policy-combobox.d.ts +9 -0
- package/dist/pricing/components/cancellation-policy-combobox.d.ts.map +1 -0
- package/dist/pricing/components/cancellation-policy-combobox.js +52 -0
- package/dist/pricing/components/cancellation-policy-combobox.js.map +1 -0
- package/dist/pricing/components/cancellation-policy-rule-dialog.d.ts +11 -0
- package/dist/pricing/components/cancellation-policy-rule-dialog.d.ts.map +1 -0
- package/dist/pricing/components/cancellation-policy-rule-dialog.js +96 -0
- package/dist/pricing/components/cancellation-policy-rule-dialog.js.map +1 -0
- package/dist/pricing/components/dropoff-price-rule-dialog.d.ts +10 -0
- package/dist/pricing/components/dropoff-price-rule-dialog.d.ts.map +1 -0
- package/dist/pricing/components/dropoff-price-rule-dialog.js +118 -0
- package/dist/pricing/components/dropoff-price-rule-dialog.js.map +1 -0
- package/dist/pricing/components/extra-price-rule-dialog.d.ts +10 -0
- package/dist/pricing/components/extra-price-rule-dialog.d.ts.map +1 -0
- package/dist/pricing/components/extra-price-rule-dialog.js +111 -0
- package/dist/pricing/components/extra-price-rule-dialog.js.map +1 -0
- package/dist/pricing/components/option-price-rule-combobox.d.ts +9 -0
- package/dist/pricing/components/option-price-rule-combobox.d.ts.map +1 -0
- package/dist/pricing/components/option-price-rule-combobox.js +48 -0
- package/dist/pricing/components/option-price-rule-combobox.js.map +1 -0
- package/dist/pricing/components/option-price-rule-dialog.d.ts +9 -0
- package/dist/pricing/components/option-price-rule-dialog.d.ts.map +1 -0
- package/dist/pricing/components/option-price-rule-dialog.js +145 -0
- package/dist/pricing/components/option-price-rule-dialog.js.map +1 -0
- package/dist/pricing/components/option-start-time-rule-dialog.d.ts +10 -0
- package/dist/pricing/components/option-start-time-rule-dialog.d.ts.map +1 -0
- package/dist/pricing/components/option-start-time-rule-dialog.js +114 -0
- package/dist/pricing/components/option-start-time-rule-dialog.js.map +1 -0
- package/dist/pricing/components/option-unit-combobox.d.ts +11 -0
- package/dist/pricing/components/option-unit-combobox.d.ts.map +1 -0
- package/dist/pricing/components/option-unit-combobox.js +54 -0
- package/dist/pricing/components/option-unit-combobox.js.map +1 -0
- package/dist/pricing/components/option-unit-price-rule-combobox.d.ts +9 -0
- package/dist/pricing/components/option-unit-price-rule-combobox.d.ts.map +1 -0
- package/dist/pricing/components/option-unit-price-rule-combobox.js +57 -0
- package/dist/pricing/components/option-unit-price-rule-combobox.js.map +1 -0
- package/dist/pricing/components/option-unit-price-rule-dialog.d.ts +10 -0
- package/dist/pricing/components/option-unit-price-rule-dialog.d.ts.map +1 -0
- package/dist/pricing/components/option-unit-price-rule-dialog.js +130 -0
- package/dist/pricing/components/option-unit-price-rule-dialog.js.map +1 -0
- package/dist/pricing/components/option-unit-tier-dialog.d.ts +10 -0
- package/dist/pricing/components/option-unit-tier-dialog.d.ts.map +1 -0
- package/dist/pricing/components/option-unit-tier-dialog.js +97 -0
- package/dist/pricing/components/option-unit-tier-dialog.js.map +1 -0
- package/dist/pricing/components/pickup-price-rule-dialog.d.ts +10 -0
- package/dist/pricing/components/pickup-price-rule-dialog.d.ts.map +1 -0
- package/dist/pricing/components/pickup-price-rule-dialog.js +109 -0
- package/dist/pricing/components/pickup-price-rule-dialog.js.map +1 -0
- package/dist/pricing/components/price-catalog-combobox.d.ts +9 -0
- package/dist/pricing/components/price-catalog-combobox.d.ts.map +1 -0
- package/dist/pricing/components/price-catalog-combobox.js +50 -0
- package/dist/pricing/components/price-catalog-combobox.js.map +1 -0
- package/dist/pricing/components/price-catalogs-page.d.ts +6 -0
- package/dist/pricing/components/price-catalogs-page.d.ts.map +1 -0
- package/dist/pricing/components/price-catalogs-page.js +130 -0
- package/dist/pricing/components/price-catalogs-page.js.map +1 -0
- package/dist/pricing/components/price-schedule-combobox.d.ts +10 -0
- package/dist/pricing/components/price-schedule-combobox.d.ts.map +1 -0
- package/dist/pricing/components/price-schedule-combobox.js +51 -0
- package/dist/pricing/components/price-schedule-combobox.js.map +1 -0
- package/dist/pricing/components/price-schedule-dialog.d.ts +9 -0
- package/dist/pricing/components/price-schedule-dialog.d.ts.map +1 -0
- package/dist/pricing/components/price-schedule-dialog.js +99 -0
- package/dist/pricing/components/price-schedule-dialog.js.map +1 -0
- package/dist/pricing/components/pricing-categories-page.d.ts +7 -0
- package/dist/pricing/components/pricing-categories-page.d.ts.map +1 -0
- package/dist/pricing/components/pricing-categories-page.js +10 -0
- package/dist/pricing/components/pricing-categories-page.js.map +1 -0
- package/dist/pricing/components/pricing-category-combobox.d.ts +9 -0
- package/dist/pricing/components/pricing-category-combobox.d.ts.map +1 -0
- package/dist/pricing/components/pricing-category-combobox.js +57 -0
- package/dist/pricing/components/pricing-category-combobox.js.map +1 -0
- package/dist/pricing/components/pricing-category-dependency-dialog.d.ts +9 -0
- package/dist/pricing/components/pricing-category-dependency-dialog.d.ts.map +1 -0
- package/dist/pricing/components/pricing-category-dependency-dialog.js +16 -0
- package/dist/pricing/components/pricing-category-dependency-dialog.js.map +1 -0
- package/dist/pricing/components/pricing-category-dependency-form.d.ts +15 -0
- package/dist/pricing/components/pricing-category-dependency-form.d.ts.map +1 -0
- package/dist/pricing/components/pricing-category-dependency-form.js +100 -0
- package/dist/pricing/components/pricing-category-dependency-form.js.map +1 -0
- package/dist/pricing/components/pricing-category-dialog.d.ts +9 -0
- package/dist/pricing/components/pricing-category-dialog.d.ts.map +1 -0
- package/dist/pricing/components/pricing-category-dialog.js +18 -0
- package/dist/pricing/components/pricing-category-dialog.js.map +1 -0
- package/dist/pricing/components/pricing-category-form.d.ts +15 -0
- package/dist/pricing/components/pricing-category-form.d.ts.map +1 -0
- package/dist/pricing/components/pricing-category-form.js +107 -0
- package/dist/pricing/components/pricing-category-form.js.map +1 -0
- package/dist/pricing/components/pricing-category-list.d.ts +5 -0
- package/dist/pricing/components/pricing-category-list.d.ts.map +1 -0
- package/dist/pricing/components/pricing-category-list.js +49 -0
- package/dist/pricing/components/pricing-category-list.js.map +1 -0
- package/dist/pricing/components/pricing-shared-labels.d.ts +22 -0
- package/dist/pricing/components/pricing-shared-labels.d.ts.map +1 -0
- package/dist/pricing/components/pricing-shared-labels.js +33 -0
- package/dist/pricing/components/pricing-shared-labels.js.map +1 -0
- package/dist/pricing/components/product-combobox.d.ts +9 -0
- package/dist/pricing/components/product-combobox.d.ts.map +1 -0
- package/dist/pricing/components/product-combobox.js +46 -0
- package/dist/pricing/components/product-combobox.js.map +1 -0
- package/dist/pricing/components/product-option-combobox.d.ts +11 -0
- package/dist/pricing/components/product-option-combobox.d.ts.map +1 -0
- package/dist/pricing/components/product-option-combobox.js +54 -0
- package/dist/pricing/components/product-option-combobox.js.map +1 -0
- package/dist/pricing/hooks/index.d.ts +44 -0
- package/dist/pricing/hooks/index.d.ts.map +1 -0
- package/dist/pricing/hooks/index.js +44 -0
- package/dist/pricing/hooks/index.js.map +1 -0
- package/dist/pricing/hooks/use-cancellation-policies.d.ts +20 -0
- package/dist/pricing/hooks/use-cancellation-policies.d.ts.map +1 -0
- package/dist/pricing/hooks/use-cancellation-policies.js +13 -0
- package/dist/pricing/hooks/use-cancellation-policies.js.map +1 -0
- package/dist/pricing/hooks/use-cancellation-policy-mutation.d.ts +57 -0
- package/dist/pricing/hooks/use-cancellation-policy-mutation.d.ts.map +1 -0
- package/dist/pricing/hooks/use-cancellation-policy-mutation.js +50 -0
- package/dist/pricing/hooks/use-cancellation-policy-mutation.js.map +1 -0
- package/dist/pricing/hooks/use-cancellation-policy-rule-mutation.d.ts +58 -0
- package/dist/pricing/hooks/use-cancellation-policy-rule-mutation.d.ts.map +1 -0
- package/dist/pricing/hooks/use-cancellation-policy-rule-mutation.js +50 -0
- package/dist/pricing/hooks/use-cancellation-policy-rule-mutation.js.map +1 -0
- package/dist/pricing/hooks/use-cancellation-policy-rule.d.ts +15 -0
- package/dist/pricing/hooks/use-cancellation-policy-rule.d.ts.map +1 -0
- package/dist/pricing/hooks/use-cancellation-policy-rule.js +13 -0
- package/dist/pricing/hooks/use-cancellation-policy-rule.js.map +1 -0
- package/dist/pricing/hooks/use-cancellation-policy-rules.d.ts +21 -0
- package/dist/pricing/hooks/use-cancellation-policy-rules.d.ts.map +1 -0
- package/dist/pricing/hooks/use-cancellation-policy-rules.js +13 -0
- package/dist/pricing/hooks/use-cancellation-policy-rules.js.map +1 -0
- package/dist/pricing/hooks/use-cancellation-policy.d.ts +14 -0
- package/dist/pricing/hooks/use-cancellation-policy.d.ts.map +1 -0
- package/dist/pricing/hooks/use-cancellation-policy.js +13 -0
- package/dist/pricing/hooks/use-cancellation-policy.js.map +1 -0
- package/dist/pricing/hooks/use-departure-price-override-mutation.d.ts +58 -0
- package/dist/pricing/hooks/use-departure-price-override-mutation.d.ts.map +1 -0
- package/dist/pricing/hooks/use-departure-price-override-mutation.js +57 -0
- package/dist/pricing/hooks/use-departure-price-override-mutation.js.map +1 -0
- package/dist/pricing/hooks/use-departure-price-override.d.ts +15 -0
- package/dist/pricing/hooks/use-departure-price-override.d.ts.map +1 -0
- package/dist/pricing/hooks/use-departure-price-override.js +13 -0
- package/dist/pricing/hooks/use-departure-price-override.js.map +1 -0
- package/dist/pricing/hooks/use-departure-price-overrides.d.ts +22 -0
- package/dist/pricing/hooks/use-departure-price-overrides.d.ts.map +1 -0
- package/dist/pricing/hooks/use-departure-price-overrides.js +13 -0
- package/dist/pricing/hooks/use-departure-price-overrides.js.map +1 -0
- package/dist/pricing/hooks/use-dropoff-price-rule-mutation.d.ts +72 -0
- package/dist/pricing/hooks/use-dropoff-price-rule-mutation.d.ts.map +1 -0
- package/dist/pricing/hooks/use-dropoff-price-rule-mutation.js +53 -0
- package/dist/pricing/hooks/use-dropoff-price-rule-mutation.js.map +1 -0
- package/dist/pricing/hooks/use-dropoff-price-rule.d.ts +18 -0
- package/dist/pricing/hooks/use-dropoff-price-rule.d.ts.map +1 -0
- package/dist/pricing/hooks/use-dropoff-price-rule.js +13 -0
- package/dist/pricing/hooks/use-dropoff-price-rule.js.map +1 -0
- package/dist/pricing/hooks/use-dropoff-price-rules.d.ts +24 -0
- package/dist/pricing/hooks/use-dropoff-price-rules.d.ts.map +1 -0
- package/dist/pricing/hooks/use-dropoff-price-rules.js +13 -0
- package/dist/pricing/hooks/use-dropoff-price-rules.js.map +1 -0
- package/dist/pricing/hooks/use-duplicate-option-pricing-mutation.d.ts +8 -0
- package/dist/pricing/hooks/use-duplicate-option-pricing-mutation.d.ts.map +1 -0
- package/dist/pricing/hooks/use-duplicate-option-pricing-mutation.js +65 -0
- package/dist/pricing/hooks/use-duplicate-option-pricing-mutation.js.map +1 -0
- package/dist/pricing/hooks/use-extra-price-rule-mutation.d.ts +72 -0
- package/dist/pricing/hooks/use-extra-price-rule-mutation.d.ts.map +1 -0
- package/dist/pricing/hooks/use-extra-price-rule-mutation.js +53 -0
- package/dist/pricing/hooks/use-extra-price-rule-mutation.js.map +1 -0
- package/dist/pricing/hooks/use-extra-price-rule.d.ts +18 -0
- package/dist/pricing/hooks/use-extra-price-rule.d.ts.map +1 -0
- package/dist/pricing/hooks/use-extra-price-rule.js +13 -0
- package/dist/pricing/hooks/use-extra-price-rule.js.map +1 -0
- package/dist/pricing/hooks/use-extra-price-rules.d.ts +24 -0
- package/dist/pricing/hooks/use-extra-price-rules.d.ts.map +1 -0
- package/dist/pricing/hooks/use-extra-price-rules.js +13 -0
- package/dist/pricing/hooks/use-extra-price-rules.js.map +1 -0
- package/dist/pricing/hooks/use-option-price-rule-mutation.d.ts +98 -0
- package/dist/pricing/hooks/use-option-price-rule-mutation.d.ts.map +1 -0
- package/dist/pricing/hooks/use-option-price-rule-mutation.js +67 -0
- package/dist/pricing/hooks/use-option-price-rule-mutation.js.map +1 -0
- package/dist/pricing/hooks/use-option-price-rule.d.ts +24 -0
- package/dist/pricing/hooks/use-option-price-rule.d.ts.map +1 -0
- package/dist/pricing/hooks/use-option-price-rule.js +13 -0
- package/dist/pricing/hooks/use-option-price-rule.js.map +1 -0
- package/dist/pricing/hooks/use-option-price-rules.d.ts +30 -0
- package/dist/pricing/hooks/use-option-price-rules.d.ts.map +1 -0
- package/dist/pricing/hooks/use-option-price-rules.js +13 -0
- package/dist/pricing/hooks/use-option-price-rules.js.map +1 -0
- package/dist/pricing/hooks/use-option-start-time-rule-mutation.d.ts +70 -0
- package/dist/pricing/hooks/use-option-start-time-rule-mutation.d.ts.map +1 -0
- package/dist/pricing/hooks/use-option-start-time-rule-mutation.js +52 -0
- package/dist/pricing/hooks/use-option-start-time-rule-mutation.js.map +1 -0
- package/dist/pricing/hooks/use-option-start-time-rule.d.ts +17 -0
- package/dist/pricing/hooks/use-option-start-time-rule.d.ts.map +1 -0
- package/dist/pricing/hooks/use-option-start-time-rule.js +13 -0
- package/dist/pricing/hooks/use-option-start-time-rule.js.map +1 -0
- package/dist/pricing/hooks/use-option-start-time-rules.d.ts +23 -0
- package/dist/pricing/hooks/use-option-start-time-rules.d.ts.map +1 -0
- package/dist/pricing/hooks/use-option-start-time-rules.js +13 -0
- package/dist/pricing/hooks/use-option-start-time-rules.js.map +1 -0
- package/dist/pricing/hooks/use-option-unit-price-rule-mutation.d.ts +79 -0
- package/dist/pricing/hooks/use-option-unit-price-rule-mutation.d.ts.map +1 -0
- package/dist/pricing/hooks/use-option-unit-price-rule-mutation.js +55 -0
- package/dist/pricing/hooks/use-option-unit-price-rule-mutation.js.map +1 -0
- package/dist/pricing/hooks/use-option-unit-price-rule.d.ts +19 -0
- package/dist/pricing/hooks/use-option-unit-price-rule.d.ts.map +1 -0
- package/dist/pricing/hooks/use-option-unit-price-rule.js +13 -0
- package/dist/pricing/hooks/use-option-unit-price-rule.js.map +1 -0
- package/dist/pricing/hooks/use-option-unit-price-rules.d.ts +25 -0
- package/dist/pricing/hooks/use-option-unit-price-rules.d.ts.map +1 -0
- package/dist/pricing/hooks/use-option-unit-price-rules.js +13 -0
- package/dist/pricing/hooks/use-option-unit-price-rules.js.map +1 -0
- package/dist/pricing/hooks/use-option-unit-tier-mutation.d.ts +50 -0
- package/dist/pricing/hooks/use-option-unit-tier-mutation.d.ts.map +1 -0
- package/dist/pricing/hooks/use-option-unit-tier-mutation.js +49 -0
- package/dist/pricing/hooks/use-option-unit-tier-mutation.js.map +1 -0
- package/dist/pricing/hooks/use-option-unit-tier.d.ts +14 -0
- package/dist/pricing/hooks/use-option-unit-tier.d.ts.map +1 -0
- package/dist/pricing/hooks/use-option-unit-tier.js +13 -0
- package/dist/pricing/hooks/use-option-unit-tier.js.map +1 -0
- package/dist/pricing/hooks/use-option-unit-tiers.d.ts +20 -0
- package/dist/pricing/hooks/use-option-unit-tiers.d.ts.map +1 -0
- package/dist/pricing/hooks/use-option-unit-tiers.js +13 -0
- package/dist/pricing/hooks/use-option-unit-tiers.js.map +1 -0
- package/dist/pricing/hooks/use-pickup-price-rule-mutation.d.ts +64 -0
- package/dist/pricing/hooks/use-pickup-price-rule-mutation.d.ts.map +1 -0
- package/dist/pricing/hooks/use-pickup-price-rule-mutation.js +51 -0
- package/dist/pricing/hooks/use-pickup-price-rule-mutation.js.map +1 -0
- package/dist/pricing/hooks/use-pickup-price-rule.d.ts +16 -0
- package/dist/pricing/hooks/use-pickup-price-rule.d.ts.map +1 -0
- package/dist/pricing/hooks/use-pickup-price-rule.js +13 -0
- package/dist/pricing/hooks/use-pickup-price-rule.js.map +1 -0
- package/dist/pricing/hooks/use-pickup-price-rules.d.ts +22 -0
- package/dist/pricing/hooks/use-pickup-price-rules.d.ts.map +1 -0
- package/dist/pricing/hooks/use-pickup-price-rules.js +13 -0
- package/dist/pricing/hooks/use-pickup-price-rules.js.map +1 -0
- package/dist/pricing/hooks/use-price-catalog-mutation.d.ts +60 -0
- package/dist/pricing/hooks/use-price-catalog-mutation.d.ts.map +1 -0
- package/dist/pricing/hooks/use-price-catalog-mutation.js +52 -0
- package/dist/pricing/hooks/use-price-catalog-mutation.js.map +1 -0
- package/dist/pricing/hooks/use-price-catalog.d.ts +14 -0
- package/dist/pricing/hooks/use-price-catalog.d.ts.map +1 -0
- package/dist/pricing/hooks/use-price-catalog.js +13 -0
- package/dist/pricing/hooks/use-price-catalog.js.map +1 -0
- package/dist/pricing/hooks/use-price-catalogs.d.ts +20 -0
- package/dist/pricing/hooks/use-price-catalogs.d.ts.map +1 -0
- package/dist/pricing/hooks/use-price-catalogs.js +13 -0
- package/dist/pricing/hooks/use-price-catalogs.js.map +1 -0
- package/dist/pricing/hooks/use-price-schedule-mutation.d.ts +76 -0
- package/dist/pricing/hooks/use-price-schedule-mutation.d.ts.map +1 -0
- package/dist/pricing/hooks/use-price-schedule-mutation.js +65 -0
- package/dist/pricing/hooks/use-price-schedule-mutation.js.map +1 -0
- package/dist/pricing/hooks/use-price-schedule.d.ts +18 -0
- package/dist/pricing/hooks/use-price-schedule.d.ts.map +1 -0
- package/dist/pricing/hooks/use-price-schedule.js +13 -0
- package/dist/pricing/hooks/use-price-schedule.js.map +1 -0
- package/dist/pricing/hooks/use-price-schedules.d.ts +28 -0
- package/dist/pricing/hooks/use-price-schedules.d.ts.map +1 -0
- package/dist/pricing/hooks/use-price-schedules.js +12 -0
- package/dist/pricing/hooks/use-price-schedules.js.map +1 -0
- package/dist/pricing/hooks/use-pricing-categories.d.ts +30 -0
- package/dist/pricing/hooks/use-pricing-categories.d.ts.map +1 -0
- package/dist/pricing/hooks/use-pricing-categories.js +36 -0
- package/dist/pricing/hooks/use-pricing-categories.js.map +1 -0
- package/dist/pricing/hooks/use-pricing-category-dependencies.d.ts +22 -0
- package/dist/pricing/hooks/use-pricing-category-dependencies.d.ts.map +1 -0
- package/dist/pricing/hooks/use-pricing-category-dependencies.js +33 -0
- package/dist/pricing/hooks/use-pricing-category-dependencies.js.map +1 -0
- package/dist/pricing/hooks/use-pricing-category-dependency-mutation.d.ts +43 -0
- package/dist/pricing/hooks/use-pricing-category-dependency-mutation.d.ts.map +1 -0
- package/dist/pricing/hooks/use-pricing-category-dependency-mutation.js +44 -0
- package/dist/pricing/hooks/use-pricing-category-dependency-mutation.js.map +1 -0
- package/dist/pricing/hooks/use-pricing-category-dependency.d.ts +16 -0
- package/dist/pricing/hooks/use-pricing-category-dependency.d.ts.map +1 -0
- package/dist/pricing/hooks/use-pricing-category-dependency.js +19 -0
- package/dist/pricing/hooks/use-pricing-category-dependency.js.map +1 -0
- package/dist/pricing/hooks/use-pricing-category-mutation.d.ts +67 -0
- package/dist/pricing/hooks/use-pricing-category-mutation.d.ts.map +1 -0
- package/dist/pricing/hooks/use-pricing-category-mutation.js +38 -0
- package/dist/pricing/hooks/use-pricing-category-mutation.js.map +1 -0
- package/dist/pricing/hooks/use-pricing-category.d.ts +24 -0
- package/dist/pricing/hooks/use-pricing-category.d.ts.map +1 -0
- package/dist/pricing/hooks/use-pricing-category.js +13 -0
- package/dist/pricing/hooks/use-pricing-category.js.map +1 -0
- package/dist/pricing/i18n/en.d.ts +479 -0
- package/dist/pricing/i18n/en.d.ts.map +1 -0
- package/dist/pricing/i18n/en.js +479 -0
- package/dist/pricing/i18n/en.js.map +1 -0
- package/dist/pricing/i18n/index.d.ts +5 -0
- package/dist/pricing/i18n/index.d.ts.map +1 -0
- package/dist/pricing/i18n/index.js +4 -0
- package/dist/pricing/i18n/index.js.map +1 -0
- package/dist/pricing/i18n/messages.d.ts +437 -0
- package/dist/pricing/i18n/messages.d.ts.map +1 -0
- package/dist/pricing/i18n/messages.js +18 -0
- package/dist/pricing/i18n/messages.js.map +1 -0
- package/dist/pricing/i18n/provider.d.ts +980 -0
- package/dist/pricing/i18n/provider.d.ts.map +1 -0
- package/dist/pricing/i18n/provider.js +45 -0
- package/dist/pricing/i18n/provider.js.map +1 -0
- package/dist/pricing/i18n/ro.d.ts +479 -0
- package/dist/pricing/i18n/ro.d.ts.map +1 -0
- package/dist/pricing/i18n/ro.js +479 -0
- package/dist/pricing/i18n/ro.js.map +1 -0
- package/dist/pricing/index.d.ts +7 -0
- package/dist/pricing/index.d.ts.map +1 -0
- package/dist/pricing/index.js +7 -0
- package/dist/pricing/index.js.map +1 -0
- package/dist/pricing/provider.d.ts +2 -0
- package/dist/pricing/provider.d.ts.map +1 -0
- package/dist/pricing/provider.js +2 -0
- package/dist/pricing/provider.js.map +1 -0
- package/dist/pricing/query-keys.d.ts +155 -0
- package/dist/pricing/query-keys.d.ts.map +1 -0
- package/dist/pricing/query-keys.js +46 -0
- package/dist/pricing/query-keys.js.map +1 -0
- package/dist/pricing/query-options/cancellation.d.ts +228 -0
- package/dist/pricing/query-options/cancellation.d.ts.map +1 -0
- package/dist/pricing/query-options/cancellation.js +61 -0
- package/dist/pricing/query-options/cancellation.js.map +1 -0
- package/dist/pricing/query-options/categories.d.ts +373 -0
- package/dist/pricing/query-options/categories.d.ts.map +1 -0
- package/dist/pricing/query-options/categories.js +92 -0
- package/dist/pricing/query-options/categories.js.map +1 -0
- package/dist/pricing/query-options/departure-overrides.d.ts +127 -0
- package/dist/pricing/query-options/departure-overrides.d.ts.map +1 -0
- package/dist/pricing/query-options/departure-overrides.js +40 -0
- package/dist/pricing/query-options/departure-overrides.js.map +1 -0
- package/dist/pricing/query-options/logistics.d.ts +542 -0
- package/dist/pricing/query-options/logistics.d.ts.map +1 -0
- package/dist/pricing/query-options/logistics.js +137 -0
- package/dist/pricing/query-options/logistics.js.map +1 -0
- package/dist/pricing/query-options/option-rules.d.ts +449 -0
- package/dist/pricing/query-options/option-rules.d.ts.map +1 -0
- package/dist/pricing/query-options/option-rules.js +108 -0
- package/dist/pricing/query-options/option-rules.js.map +1 -0
- package/dist/pricing/query-options/schedules.d.ts +143 -0
- package/dist/pricing/query-options/schedules.d.ts.map +1 -0
- package/dist/pricing/query-options/schedules.js +36 -0
- package/dist/pricing/query-options/schedules.js.map +1 -0
- package/dist/pricing/query-options.d.ts +7 -0
- package/dist/pricing/query-options.d.ts.map +1 -0
- package/dist/pricing/query-options.js +7 -0
- package/dist/pricing/query-options.js.map +1 -0
- package/dist/pricing/schemas.d.ts +900 -0
- package/dist/pricing/schemas.d.ts.map +1 -0
- package/dist/pricing/schemas.js +235 -0
- package/dist/pricing/schemas.js.map +1 -0
- package/dist/pricing/ui.d.ts +27 -0
- package/dist/pricing/ui.d.ts.map +1 -0
- package/dist/pricing/ui.js +26 -0
- package/dist/pricing/ui.js.map +1 -0
- package/dist/pricing.d.ts +2 -0
- package/dist/pricing.d.ts.map +1 -0
- package/dist/pricing.js +2 -0
- package/dist/pricing.js.map +1 -0
- package/dist/promotions/admin/index.d.ts +25 -0
- package/dist/promotions/admin/index.d.ts.map +1 -0
- package/dist/promotions/admin/index.js +45 -0
- package/dist/promotions/admin/index.js.map +1 -0
- package/dist/promotions/i18n/en.d.ts +3 -0
- package/dist/promotions/i18n/en.d.ts.map +1 -0
- package/dist/promotions/i18n/en.js +152 -0
- package/dist/promotions/i18n/en.js.map +1 -0
- package/dist/promotions/i18n/index.d.ts +5 -0
- package/dist/promotions/i18n/index.d.ts.map +1 -0
- package/dist/promotions/i18n/index.js +4 -0
- package/dist/promotions/i18n/index.js.map +1 -0
- package/dist/promotions/i18n/messages.d.ts +137 -0
- package/dist/promotions/i18n/messages.d.ts.map +1 -0
- package/dist/promotions/i18n/messages.js +2 -0
- package/dist/promotions/i18n/messages.js.map +1 -0
- package/dist/promotions/i18n/provider.d.ts +26 -0
- package/dist/promotions/i18n/provider.d.ts.map +1 -0
- package/dist/promotions/i18n/provider.js +45 -0
- package/dist/promotions/i18n/provider.js.map +1 -0
- package/dist/promotions/i18n/ro.d.ts +3 -0
- package/dist/promotions/i18n/ro.d.ts.map +1 -0
- package/dist/promotions/i18n/ro.js +152 -0
- package/dist/promotions/i18n/ro.js.map +1 -0
- package/dist/promotions/index.d.ts +736 -0
- package/dist/promotions/index.d.ts.map +1 -0
- package/dist/promotions/index.js +175 -0
- package/dist/promotions/index.js.map +1 -0
- package/dist/promotions/promotion-dialog.d.ts +9 -0
- package/dist/promotions/promotion-dialog.d.ts.map +1 -0
- package/dist/promotions/promotion-dialog.js +255 -0
- package/dist/promotions/promotion-dialog.js.map +1 -0
- package/dist/promotions/promotions-page-utils.d.ts +14 -0
- package/dist/promotions/promotions-page-utils.d.ts.map +1 -0
- package/dist/promotions/promotions-page-utils.js +117 -0
- package/dist/promotions/promotions-page-utils.js.map +1 -0
- package/dist/promotions/promotions-page.d.ts +77 -0
- package/dist/promotions/promotions-page.d.ts.map +1 -0
- package/dist/promotions/promotions-page.js +121 -0
- package/dist/promotions/promotions-page.js.map +1 -0
- package/dist/promotions/ui.d.ts +5 -0
- package/dist/promotions/ui.d.ts.map +1 -0
- package/dist/promotions/ui.js +4 -0
- package/dist/promotions/ui.js.map +1 -0
- package/dist/promotions-admin.d.ts +2 -0
- package/dist/promotions-admin.d.ts.map +1 -0
- package/dist/promotions-admin.js +2 -0
- package/dist/promotions-admin.js.map +1 -0
- package/dist/promotions.d.ts +2 -0
- package/dist/promotions.d.ts.map +1 -0
- package/dist/promotions.js +2 -0
- package/dist/promotions.js.map +1 -0
- package/dist/sellability/client.d.ts +14 -0
- package/dist/sellability/client.d.ts.map +1 -0
- package/dist/sellability/client.js +59 -0
- package/dist/sellability/client.js.map +1 -0
- package/dist/sellability/components/channel-combobox.d.ts +9 -0
- package/dist/sellability/components/channel-combobox.d.ts.map +1 -0
- package/dist/sellability/components/channel-combobox.js +54 -0
- package/dist/sellability/components/channel-combobox.js.map +1 -0
- package/dist/sellability/components/market-combobox.d.ts +9 -0
- package/dist/sellability/components/market-combobox.d.ts.map +1 -0
- package/dist/sellability/components/market-combobox.js +46 -0
- package/dist/sellability/components/market-combobox.js.map +1 -0
- package/dist/sellability/components/policy-dialog.d.ts +10 -0
- package/dist/sellability/components/policy-dialog.d.ts.map +1 -0
- package/dist/sellability/components/policy-dialog.js +149 -0
- package/dist/sellability/components/policy-dialog.js.map +1 -0
- package/dist/sellability/components/product-combobox.d.ts +9 -0
- package/dist/sellability/components/product-combobox.d.ts.map +1 -0
- package/dist/sellability/components/product-combobox.js +46 -0
- package/dist/sellability/components/product-combobox.js.map +1 -0
- package/dist/sellability/components/product-option-combobox.d.ts +10 -0
- package/dist/sellability/components/product-option-combobox.d.ts.map +1 -0
- package/dist/sellability/components/product-option-combobox.js +54 -0
- package/dist/sellability/components/product-option-combobox.js.map +1 -0
- package/dist/sellability/hooks/index.d.ts +4 -0
- package/dist/sellability/hooks/index.d.ts.map +1 -0
- package/dist/sellability/hooks/index.js +4 -0
- package/dist/sellability/hooks/index.js.map +1 -0
- package/dist/sellability/hooks/use-sellability-policies.d.ts +28 -0
- package/dist/sellability/hooks/use-sellability-policies.d.ts.map +1 -0
- package/dist/sellability/hooks/use-sellability-policies.js +13 -0
- package/dist/sellability/hooks/use-sellability-policies.js.map +1 -0
- package/dist/sellability/hooks/use-sellability-policy-mutation.d.ts +63 -0
- package/dist/sellability/hooks/use-sellability-policy-mutation.d.ts.map +1 -0
- package/dist/sellability/hooks/use-sellability-policy-mutation.js +41 -0
- package/dist/sellability/hooks/use-sellability-policy-mutation.js.map +1 -0
- package/dist/sellability/hooks/use-sellability-policy.d.ts +22 -0
- package/dist/sellability/hooks/use-sellability-policy.d.ts.map +1 -0
- package/dist/sellability/hooks/use-sellability-policy.js +13 -0
- package/dist/sellability/hooks/use-sellability-policy.js.map +1 -0
- package/dist/sellability/i18n/en.d.ts +102 -0
- package/dist/sellability/i18n/en.d.ts.map +1 -0
- package/dist/sellability/i18n/en.js +102 -0
- package/dist/sellability/i18n/en.js.map +1 -0
- package/dist/sellability/i18n/index.d.ts +5 -0
- package/dist/sellability/i18n/index.d.ts.map +1 -0
- package/dist/sellability/i18n/index.js +4 -0
- package/dist/sellability/i18n/index.js.map +1 -0
- package/dist/sellability/i18n/messages.d.ts +71 -0
- package/dist/sellability/i18n/messages.d.ts.map +1 -0
- package/dist/sellability/i18n/messages.js +2 -0
- package/dist/sellability/i18n/messages.js.map +1 -0
- package/dist/sellability/i18n/provider.d.ts +226 -0
- package/dist/sellability/i18n/provider.d.ts.map +1 -0
- package/dist/sellability/i18n/provider.js +45 -0
- package/dist/sellability/i18n/provider.js.map +1 -0
- package/dist/sellability/i18n/ro.d.ts +102 -0
- package/dist/sellability/i18n/ro.d.ts.map +1 -0
- package/dist/sellability/i18n/ro.js +102 -0
- package/dist/sellability/i18n/ro.js.map +1 -0
- package/dist/sellability/index.d.ts +7 -0
- package/dist/sellability/index.d.ts.map +1 -0
- package/dist/sellability/index.js +7 -0
- package/dist/sellability/index.js.map +1 -0
- package/dist/sellability/provider.d.ts +2 -0
- package/dist/sellability/provider.d.ts.map +1 -0
- package/dist/sellability/provider.js +2 -0
- package/dist/sellability/provider.js.map +1 -0
- package/dist/sellability/query-keys.d.ts +20 -0
- package/dist/sellability/query-keys.d.ts.map +1 -0
- package/dist/sellability/query-keys.js +7 -0
- package/dist/sellability/query-keys.js.map +1 -0
- package/dist/sellability/query-options.d.ts +175 -0
- package/dist/sellability/query-options.d.ts.map +1 -0
- package/dist/sellability/query-options.js +32 -0
- package/dist/sellability/query-options.js.map +1 -0
- package/dist/sellability/schemas.d.ts +121 -0
- package/dist/sellability/schemas.d.ts.map +1 -0
- package/dist/sellability/schemas.js +27 -0
- package/dist/sellability/schemas.js.map +1 -0
- package/dist/sellability/ui.d.ts +7 -0
- package/dist/sellability/ui.d.ts.map +1 -0
- package/dist/sellability/ui.js +7 -0
- package/dist/sellability/ui.js.map +1 -0
- package/dist/sellability.d.ts +2 -0
- package/dist/sellability.d.ts.map +1 -0
- package/dist/sellability.js +2 -0
- package/dist/sellability.js.map +1 -0
- package/package.json +306 -0
- package/src/markets/styles.css +12 -0
- package/src/pricing/styles.css +12 -0
- package/src/sellability/styles.css +12 -0
- package/src/styles.css +9 -0
|
@@ -0,0 +1,478 @@
|
|
|
1
|
+
import { type FetchWithValidationOptions } from "./client.js";
|
|
2
|
+
import type { UseMarketCurrenciesOptions } from "./hooks/use-market-currencies.js";
|
|
3
|
+
import type { UseMarketLocalesOptions } from "./hooks/use-market-locales.js";
|
|
4
|
+
import type { UseMarketProductRulesOptions } from "./hooks/use-market-product-rules.js";
|
|
5
|
+
import type { UseMarketsOptions } from "./hooks/use-markets.js";
|
|
6
|
+
export declare function getMarketsQueryOptions(client: FetchWithValidationOptions, options?: UseMarketsOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
7
|
+
data: {
|
|
8
|
+
code: string;
|
|
9
|
+
name: string;
|
|
10
|
+
status: "active" | "inactive" | "archived";
|
|
11
|
+
defaultLanguageTag: string;
|
|
12
|
+
defaultCurrency: string;
|
|
13
|
+
id: string;
|
|
14
|
+
regionCode: string | null;
|
|
15
|
+
countryCode: string | null;
|
|
16
|
+
timezone: string | null;
|
|
17
|
+
taxContext: string | null;
|
|
18
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
19
|
+
}[];
|
|
20
|
+
total: number;
|
|
21
|
+
limit: number;
|
|
22
|
+
offset: number;
|
|
23
|
+
}, Error, {
|
|
24
|
+
data: {
|
|
25
|
+
code: string;
|
|
26
|
+
name: string;
|
|
27
|
+
status: "active" | "inactive" | "archived";
|
|
28
|
+
defaultLanguageTag: string;
|
|
29
|
+
defaultCurrency: string;
|
|
30
|
+
id: string;
|
|
31
|
+
regionCode: string | null;
|
|
32
|
+
countryCode: string | null;
|
|
33
|
+
timezone: string | null;
|
|
34
|
+
taxContext: string | null;
|
|
35
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
36
|
+
}[];
|
|
37
|
+
total: number;
|
|
38
|
+
limit: number;
|
|
39
|
+
offset: number;
|
|
40
|
+
}, readonly ["markets", "markets", import("./query-keys.js").MarketsListFilters]>, "queryFn"> & {
|
|
41
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
42
|
+
data: {
|
|
43
|
+
code: string;
|
|
44
|
+
name: string;
|
|
45
|
+
status: "active" | "inactive" | "archived";
|
|
46
|
+
defaultLanguageTag: string;
|
|
47
|
+
defaultCurrency: string;
|
|
48
|
+
id: string;
|
|
49
|
+
regionCode: string | null;
|
|
50
|
+
countryCode: string | null;
|
|
51
|
+
timezone: string | null;
|
|
52
|
+
taxContext: string | null;
|
|
53
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
54
|
+
}[];
|
|
55
|
+
total: number;
|
|
56
|
+
limit: number;
|
|
57
|
+
offset: number;
|
|
58
|
+
}, readonly ["markets", "markets", import("./query-keys.js").MarketsListFilters], never> | undefined;
|
|
59
|
+
} & {
|
|
60
|
+
queryKey: readonly ["markets", "markets", import("./query-keys.js").MarketsListFilters] & {
|
|
61
|
+
[dataTagSymbol]: {
|
|
62
|
+
data: {
|
|
63
|
+
code: string;
|
|
64
|
+
name: string;
|
|
65
|
+
status: "active" | "inactive" | "archived";
|
|
66
|
+
defaultLanguageTag: string;
|
|
67
|
+
defaultCurrency: string;
|
|
68
|
+
id: string;
|
|
69
|
+
regionCode: string | null;
|
|
70
|
+
countryCode: string | null;
|
|
71
|
+
timezone: string | null;
|
|
72
|
+
taxContext: string | null;
|
|
73
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
74
|
+
}[];
|
|
75
|
+
total: number;
|
|
76
|
+
limit: number;
|
|
77
|
+
offset: number;
|
|
78
|
+
};
|
|
79
|
+
[dataTagErrorSymbol]: Error;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
export declare function getMarketQueryOptions(client: FetchWithValidationOptions, id: string): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
83
|
+
code: string;
|
|
84
|
+
name: string;
|
|
85
|
+
status: "active" | "inactive" | "archived";
|
|
86
|
+
defaultLanguageTag: string;
|
|
87
|
+
defaultCurrency: string;
|
|
88
|
+
id: string;
|
|
89
|
+
regionCode: string | null;
|
|
90
|
+
countryCode: string | null;
|
|
91
|
+
timezone: string | null;
|
|
92
|
+
taxContext: string | null;
|
|
93
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
94
|
+
}, Error, {
|
|
95
|
+
code: string;
|
|
96
|
+
name: string;
|
|
97
|
+
status: "active" | "inactive" | "archived";
|
|
98
|
+
defaultLanguageTag: string;
|
|
99
|
+
defaultCurrency: string;
|
|
100
|
+
id: string;
|
|
101
|
+
regionCode: string | null;
|
|
102
|
+
countryCode: string | null;
|
|
103
|
+
timezone: string | null;
|
|
104
|
+
taxContext: string | null;
|
|
105
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
106
|
+
}, readonly ["markets", "markets", string]>, "queryFn"> & {
|
|
107
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
108
|
+
code: string;
|
|
109
|
+
name: string;
|
|
110
|
+
status: "active" | "inactive" | "archived";
|
|
111
|
+
defaultLanguageTag: string;
|
|
112
|
+
defaultCurrency: string;
|
|
113
|
+
id: string;
|
|
114
|
+
regionCode: string | null;
|
|
115
|
+
countryCode: string | null;
|
|
116
|
+
timezone: string | null;
|
|
117
|
+
taxContext: string | null;
|
|
118
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
119
|
+
}, readonly ["markets", "markets", string], never> | undefined;
|
|
120
|
+
} & {
|
|
121
|
+
queryKey: readonly ["markets", "markets", string] & {
|
|
122
|
+
[dataTagSymbol]: {
|
|
123
|
+
code: string;
|
|
124
|
+
name: string;
|
|
125
|
+
status: "active" | "inactive" | "archived";
|
|
126
|
+
defaultLanguageTag: string;
|
|
127
|
+
defaultCurrency: string;
|
|
128
|
+
id: string;
|
|
129
|
+
regionCode: string | null;
|
|
130
|
+
countryCode: string | null;
|
|
131
|
+
timezone: string | null;
|
|
132
|
+
taxContext: string | null;
|
|
133
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
134
|
+
};
|
|
135
|
+
[dataTagErrorSymbol]: Error;
|
|
136
|
+
};
|
|
137
|
+
};
|
|
138
|
+
export declare function getMarketLocalesQueryOptions(client: FetchWithValidationOptions, options: UseMarketLocalesOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
139
|
+
data: {
|
|
140
|
+
languageTag: string;
|
|
141
|
+
isDefault: boolean;
|
|
142
|
+
sortOrder: number;
|
|
143
|
+
active: boolean;
|
|
144
|
+
id: string;
|
|
145
|
+
marketId: string;
|
|
146
|
+
}[];
|
|
147
|
+
total: number;
|
|
148
|
+
limit: number;
|
|
149
|
+
offset: number;
|
|
150
|
+
}, Error, {
|
|
151
|
+
data: {
|
|
152
|
+
languageTag: string;
|
|
153
|
+
isDefault: boolean;
|
|
154
|
+
sortOrder: number;
|
|
155
|
+
active: boolean;
|
|
156
|
+
id: string;
|
|
157
|
+
marketId: string;
|
|
158
|
+
}[];
|
|
159
|
+
total: number;
|
|
160
|
+
limit: number;
|
|
161
|
+
offset: number;
|
|
162
|
+
}, readonly ["markets", "market-locales", import("./query-keys.js").MarketLocalesListFilters]>, "queryFn"> & {
|
|
163
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
164
|
+
data: {
|
|
165
|
+
languageTag: string;
|
|
166
|
+
isDefault: boolean;
|
|
167
|
+
sortOrder: number;
|
|
168
|
+
active: boolean;
|
|
169
|
+
id: string;
|
|
170
|
+
marketId: string;
|
|
171
|
+
}[];
|
|
172
|
+
total: number;
|
|
173
|
+
limit: number;
|
|
174
|
+
offset: number;
|
|
175
|
+
}, readonly ["markets", "market-locales", import("./query-keys.js").MarketLocalesListFilters], never> | undefined;
|
|
176
|
+
} & {
|
|
177
|
+
queryKey: readonly ["markets", "market-locales", import("./query-keys.js").MarketLocalesListFilters] & {
|
|
178
|
+
[dataTagSymbol]: {
|
|
179
|
+
data: {
|
|
180
|
+
languageTag: string;
|
|
181
|
+
isDefault: boolean;
|
|
182
|
+
sortOrder: number;
|
|
183
|
+
active: boolean;
|
|
184
|
+
id: string;
|
|
185
|
+
marketId: string;
|
|
186
|
+
}[];
|
|
187
|
+
total: number;
|
|
188
|
+
limit: number;
|
|
189
|
+
offset: number;
|
|
190
|
+
};
|
|
191
|
+
[dataTagErrorSymbol]: Error;
|
|
192
|
+
};
|
|
193
|
+
};
|
|
194
|
+
export declare function getMarketLocaleQueryOptions(client: FetchWithValidationOptions, id: string): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
195
|
+
languageTag: string;
|
|
196
|
+
isDefault: boolean;
|
|
197
|
+
sortOrder: number;
|
|
198
|
+
active: boolean;
|
|
199
|
+
id: string;
|
|
200
|
+
marketId: string;
|
|
201
|
+
}, Error, {
|
|
202
|
+
languageTag: string;
|
|
203
|
+
isDefault: boolean;
|
|
204
|
+
sortOrder: number;
|
|
205
|
+
active: boolean;
|
|
206
|
+
id: string;
|
|
207
|
+
marketId: string;
|
|
208
|
+
}, readonly ["markets", "market-locales", string]>, "queryFn"> & {
|
|
209
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
210
|
+
languageTag: string;
|
|
211
|
+
isDefault: boolean;
|
|
212
|
+
sortOrder: number;
|
|
213
|
+
active: boolean;
|
|
214
|
+
id: string;
|
|
215
|
+
marketId: string;
|
|
216
|
+
}, readonly ["markets", "market-locales", string], never> | undefined;
|
|
217
|
+
} & {
|
|
218
|
+
queryKey: readonly ["markets", "market-locales", string] & {
|
|
219
|
+
[dataTagSymbol]: {
|
|
220
|
+
languageTag: string;
|
|
221
|
+
isDefault: boolean;
|
|
222
|
+
sortOrder: number;
|
|
223
|
+
active: boolean;
|
|
224
|
+
id: string;
|
|
225
|
+
marketId: string;
|
|
226
|
+
};
|
|
227
|
+
[dataTagErrorSymbol]: Error;
|
|
228
|
+
};
|
|
229
|
+
};
|
|
230
|
+
export declare function getMarketCurrenciesQueryOptions(client: FetchWithValidationOptions, options: UseMarketCurrenciesOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
231
|
+
data: {
|
|
232
|
+
currencyCode: string;
|
|
233
|
+
isDefault: boolean;
|
|
234
|
+
isSettlement: boolean;
|
|
235
|
+
isReporting: boolean;
|
|
236
|
+
sortOrder: number;
|
|
237
|
+
active: boolean;
|
|
238
|
+
id: string;
|
|
239
|
+
marketId: string;
|
|
240
|
+
}[];
|
|
241
|
+
total: number;
|
|
242
|
+
limit: number;
|
|
243
|
+
offset: number;
|
|
244
|
+
}, Error, {
|
|
245
|
+
data: {
|
|
246
|
+
currencyCode: string;
|
|
247
|
+
isDefault: boolean;
|
|
248
|
+
isSettlement: boolean;
|
|
249
|
+
isReporting: boolean;
|
|
250
|
+
sortOrder: number;
|
|
251
|
+
active: boolean;
|
|
252
|
+
id: string;
|
|
253
|
+
marketId: string;
|
|
254
|
+
}[];
|
|
255
|
+
total: number;
|
|
256
|
+
limit: number;
|
|
257
|
+
offset: number;
|
|
258
|
+
}, readonly ["markets", "market-currencies", import("./query-keys.js").MarketCurrenciesListFilters]>, "queryFn"> & {
|
|
259
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
260
|
+
data: {
|
|
261
|
+
currencyCode: string;
|
|
262
|
+
isDefault: boolean;
|
|
263
|
+
isSettlement: boolean;
|
|
264
|
+
isReporting: boolean;
|
|
265
|
+
sortOrder: number;
|
|
266
|
+
active: boolean;
|
|
267
|
+
id: string;
|
|
268
|
+
marketId: string;
|
|
269
|
+
}[];
|
|
270
|
+
total: number;
|
|
271
|
+
limit: number;
|
|
272
|
+
offset: number;
|
|
273
|
+
}, readonly ["markets", "market-currencies", import("./query-keys.js").MarketCurrenciesListFilters], never> | undefined;
|
|
274
|
+
} & {
|
|
275
|
+
queryKey: readonly ["markets", "market-currencies", import("./query-keys.js").MarketCurrenciesListFilters] & {
|
|
276
|
+
[dataTagSymbol]: {
|
|
277
|
+
data: {
|
|
278
|
+
currencyCode: string;
|
|
279
|
+
isDefault: boolean;
|
|
280
|
+
isSettlement: boolean;
|
|
281
|
+
isReporting: boolean;
|
|
282
|
+
sortOrder: number;
|
|
283
|
+
active: boolean;
|
|
284
|
+
id: string;
|
|
285
|
+
marketId: string;
|
|
286
|
+
}[];
|
|
287
|
+
total: number;
|
|
288
|
+
limit: number;
|
|
289
|
+
offset: number;
|
|
290
|
+
};
|
|
291
|
+
[dataTagErrorSymbol]: Error;
|
|
292
|
+
};
|
|
293
|
+
};
|
|
294
|
+
export declare function getMarketCurrencyQueryOptions(client: FetchWithValidationOptions, id: string): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
295
|
+
currencyCode: string;
|
|
296
|
+
isDefault: boolean;
|
|
297
|
+
isSettlement: boolean;
|
|
298
|
+
isReporting: boolean;
|
|
299
|
+
sortOrder: number;
|
|
300
|
+
active: boolean;
|
|
301
|
+
id: string;
|
|
302
|
+
marketId: string;
|
|
303
|
+
}, Error, {
|
|
304
|
+
currencyCode: string;
|
|
305
|
+
isDefault: boolean;
|
|
306
|
+
isSettlement: boolean;
|
|
307
|
+
isReporting: boolean;
|
|
308
|
+
sortOrder: number;
|
|
309
|
+
active: boolean;
|
|
310
|
+
id: string;
|
|
311
|
+
marketId: string;
|
|
312
|
+
}, readonly ["markets", "market-currencies", string]>, "queryFn"> & {
|
|
313
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
314
|
+
currencyCode: string;
|
|
315
|
+
isDefault: boolean;
|
|
316
|
+
isSettlement: boolean;
|
|
317
|
+
isReporting: boolean;
|
|
318
|
+
sortOrder: number;
|
|
319
|
+
active: boolean;
|
|
320
|
+
id: string;
|
|
321
|
+
marketId: string;
|
|
322
|
+
}, readonly ["markets", "market-currencies", string], never> | undefined;
|
|
323
|
+
} & {
|
|
324
|
+
queryKey: readonly ["markets", "market-currencies", string] & {
|
|
325
|
+
[dataTagSymbol]: {
|
|
326
|
+
currencyCode: string;
|
|
327
|
+
isDefault: boolean;
|
|
328
|
+
isSettlement: boolean;
|
|
329
|
+
isReporting: boolean;
|
|
330
|
+
sortOrder: number;
|
|
331
|
+
active: boolean;
|
|
332
|
+
id: string;
|
|
333
|
+
marketId: string;
|
|
334
|
+
};
|
|
335
|
+
[dataTagErrorSymbol]: Error;
|
|
336
|
+
};
|
|
337
|
+
};
|
|
338
|
+
export declare function getMarketProductRulesQueryOptions(client: FetchWithValidationOptions, options?: UseMarketProductRulesOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
339
|
+
data: {
|
|
340
|
+
visibility: "hidden" | "public" | "private";
|
|
341
|
+
sellability: "unavailable" | "sellable" | "on_request";
|
|
342
|
+
channelScope: "all" | "internal" | "b2c" | "b2b";
|
|
343
|
+
active: boolean;
|
|
344
|
+
id: string;
|
|
345
|
+
marketId: string;
|
|
346
|
+
productId: string;
|
|
347
|
+
optionId: string | null;
|
|
348
|
+
priceCatalogId: string | null;
|
|
349
|
+
availableFrom: string | null;
|
|
350
|
+
availableTo: string | null;
|
|
351
|
+
notes: string | null;
|
|
352
|
+
}[];
|
|
353
|
+
total: number;
|
|
354
|
+
limit: number;
|
|
355
|
+
offset: number;
|
|
356
|
+
}, Error, {
|
|
357
|
+
data: {
|
|
358
|
+
visibility: "hidden" | "public" | "private";
|
|
359
|
+
sellability: "unavailable" | "sellable" | "on_request";
|
|
360
|
+
channelScope: "all" | "internal" | "b2c" | "b2b";
|
|
361
|
+
active: boolean;
|
|
362
|
+
id: string;
|
|
363
|
+
marketId: string;
|
|
364
|
+
productId: string;
|
|
365
|
+
optionId: string | null;
|
|
366
|
+
priceCatalogId: string | null;
|
|
367
|
+
availableFrom: string | null;
|
|
368
|
+
availableTo: string | null;
|
|
369
|
+
notes: string | null;
|
|
370
|
+
}[];
|
|
371
|
+
total: number;
|
|
372
|
+
limit: number;
|
|
373
|
+
offset: number;
|
|
374
|
+
}, readonly ["markets", "product-rules", import("./query-keys.js").MarketProductRulesListFilters]>, "queryFn"> & {
|
|
375
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
376
|
+
data: {
|
|
377
|
+
visibility: "hidden" | "public" | "private";
|
|
378
|
+
sellability: "unavailable" | "sellable" | "on_request";
|
|
379
|
+
channelScope: "all" | "internal" | "b2c" | "b2b";
|
|
380
|
+
active: boolean;
|
|
381
|
+
id: string;
|
|
382
|
+
marketId: string;
|
|
383
|
+
productId: string;
|
|
384
|
+
optionId: string | null;
|
|
385
|
+
priceCatalogId: string | null;
|
|
386
|
+
availableFrom: string | null;
|
|
387
|
+
availableTo: string | null;
|
|
388
|
+
notes: string | null;
|
|
389
|
+
}[];
|
|
390
|
+
total: number;
|
|
391
|
+
limit: number;
|
|
392
|
+
offset: number;
|
|
393
|
+
}, readonly ["markets", "product-rules", import("./query-keys.js").MarketProductRulesListFilters], never> | undefined;
|
|
394
|
+
} & {
|
|
395
|
+
queryKey: readonly ["markets", "product-rules", import("./query-keys.js").MarketProductRulesListFilters] & {
|
|
396
|
+
[dataTagSymbol]: {
|
|
397
|
+
data: {
|
|
398
|
+
visibility: "hidden" | "public" | "private";
|
|
399
|
+
sellability: "unavailable" | "sellable" | "on_request";
|
|
400
|
+
channelScope: "all" | "internal" | "b2c" | "b2b";
|
|
401
|
+
active: boolean;
|
|
402
|
+
id: string;
|
|
403
|
+
marketId: string;
|
|
404
|
+
productId: string;
|
|
405
|
+
optionId: string | null;
|
|
406
|
+
priceCatalogId: string | null;
|
|
407
|
+
availableFrom: string | null;
|
|
408
|
+
availableTo: string | null;
|
|
409
|
+
notes: string | null;
|
|
410
|
+
}[];
|
|
411
|
+
total: number;
|
|
412
|
+
limit: number;
|
|
413
|
+
offset: number;
|
|
414
|
+
};
|
|
415
|
+
[dataTagErrorSymbol]: Error;
|
|
416
|
+
};
|
|
417
|
+
};
|
|
418
|
+
export declare function getMarketProductRuleQueryOptions(client: FetchWithValidationOptions, id: string): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
419
|
+
visibility: "hidden" | "public" | "private";
|
|
420
|
+
sellability: "unavailable" | "sellable" | "on_request";
|
|
421
|
+
channelScope: "all" | "internal" | "b2c" | "b2b";
|
|
422
|
+
active: boolean;
|
|
423
|
+
id: string;
|
|
424
|
+
marketId: string;
|
|
425
|
+
productId: string;
|
|
426
|
+
optionId: string | null;
|
|
427
|
+
priceCatalogId: string | null;
|
|
428
|
+
availableFrom: string | null;
|
|
429
|
+
availableTo: string | null;
|
|
430
|
+
notes: string | null;
|
|
431
|
+
}, Error, {
|
|
432
|
+
visibility: "hidden" | "public" | "private";
|
|
433
|
+
sellability: "unavailable" | "sellable" | "on_request";
|
|
434
|
+
channelScope: "all" | "internal" | "b2c" | "b2b";
|
|
435
|
+
active: boolean;
|
|
436
|
+
id: string;
|
|
437
|
+
marketId: string;
|
|
438
|
+
productId: string;
|
|
439
|
+
optionId: string | null;
|
|
440
|
+
priceCatalogId: string | null;
|
|
441
|
+
availableFrom: string | null;
|
|
442
|
+
availableTo: string | null;
|
|
443
|
+
notes: string | null;
|
|
444
|
+
}, readonly ["markets", "product-rules", string]>, "queryFn"> & {
|
|
445
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
446
|
+
visibility: "hidden" | "public" | "private";
|
|
447
|
+
sellability: "unavailable" | "sellable" | "on_request";
|
|
448
|
+
channelScope: "all" | "internal" | "b2c" | "b2b";
|
|
449
|
+
active: boolean;
|
|
450
|
+
id: string;
|
|
451
|
+
marketId: string;
|
|
452
|
+
productId: string;
|
|
453
|
+
optionId: string | null;
|
|
454
|
+
priceCatalogId: string | null;
|
|
455
|
+
availableFrom: string | null;
|
|
456
|
+
availableTo: string | null;
|
|
457
|
+
notes: string | null;
|
|
458
|
+
}, readonly ["markets", "product-rules", string], never> | undefined;
|
|
459
|
+
} & {
|
|
460
|
+
queryKey: readonly ["markets", "product-rules", string] & {
|
|
461
|
+
[dataTagSymbol]: {
|
|
462
|
+
visibility: "hidden" | "public" | "private";
|
|
463
|
+
sellability: "unavailable" | "sellable" | "on_request";
|
|
464
|
+
channelScope: "all" | "internal" | "b2c" | "b2b";
|
|
465
|
+
active: boolean;
|
|
466
|
+
id: string;
|
|
467
|
+
marketId: string;
|
|
468
|
+
productId: string;
|
|
469
|
+
optionId: string | null;
|
|
470
|
+
priceCatalogId: string | null;
|
|
471
|
+
availableFrom: string | null;
|
|
472
|
+
availableTo: string | null;
|
|
473
|
+
notes: string | null;
|
|
474
|
+
};
|
|
475
|
+
[dataTagErrorSymbol]: Error;
|
|
476
|
+
};
|
|
477
|
+
};
|
|
478
|
+
//# sourceMappingURL=query-options.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query-options.d.ts","sourceRoot":"","sources":["../../src/markets/query-options.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,0BAA0B,EAAuB,MAAM,aAAa,CAAA;AAClF,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAA;AAClF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAA;AAC5E,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,qCAAqC,CAAA;AACvF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAuB/D,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,0BAA0B,EAClC,OAAO,GAAE,iBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYhC;AAED,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,0BAA0B,EAAE,EAAE,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYnF;AAED,wBAAgB,4BAA4B,CAC1C,MAAM,EAAE,0BAA0B,EAClC,OAAO,EAAE,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAcjC;AAED,wBAAgB,2BAA2B,CAAC,MAAM,EAAE,0BAA0B,EAAE,EAAE,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYzF;AAED,wBAAgB,+BAA+B,CAC7C,MAAM,EAAE,0BAA0B,EAClC,OAAO,EAAE,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAcpC;AAED,wBAAgB,6BAA6B,CAAC,MAAM,EAAE,0BAA0B,EAAE,EAAE,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAY3F;AAED,wBAAgB,iCAAiC,CAC/C,MAAM,EAAE,0BAA0B,EAClC,OAAO,GAAE,4BAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAY3C;AAED,wBAAgB,gCAAgC,CAAC,MAAM,EAAE,0BAA0B,EAAE,EAAE,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAY9F"}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { queryOptions } from "@tanstack/react-query";
|
|
3
|
+
import { fetchWithValidation } from "./client.js";
|
|
4
|
+
import { marketsQueryKeys } from "./query-keys.js";
|
|
5
|
+
import { marketCurrencyListResponse, marketCurrencySingleResponse, marketListResponse, marketLocaleListResponse, marketLocaleSingleResponse, marketProductRuleListResponse, marketProductRuleSingleResponse, marketSingleResponse, } from "./schemas.js";
|
|
6
|
+
function toQueryString(filters) {
|
|
7
|
+
const params = new URLSearchParams();
|
|
8
|
+
for (const [key, value] of Object.entries(filters)) {
|
|
9
|
+
if (value === undefined || value === null || value === "")
|
|
10
|
+
continue;
|
|
11
|
+
params.set(key, String(value));
|
|
12
|
+
}
|
|
13
|
+
const qs = params.toString();
|
|
14
|
+
return qs ? `?${qs}` : "";
|
|
15
|
+
}
|
|
16
|
+
export function getMarketsQueryOptions(client, options = {}) {
|
|
17
|
+
const { enabled: _enabled = true, ...filters } = options;
|
|
18
|
+
return queryOptions({
|
|
19
|
+
queryKey: marketsQueryKeys.marketsList(filters),
|
|
20
|
+
queryFn: () => fetchWithValidation(`/v1/markets/markets${toQueryString(filters)}`, marketListResponse, client),
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
export function getMarketQueryOptions(client, id) {
|
|
24
|
+
return queryOptions({
|
|
25
|
+
queryKey: marketsQueryKeys.market(id),
|
|
26
|
+
queryFn: async () => {
|
|
27
|
+
const { data } = await fetchWithValidation(`/v1/markets/markets/${id}`, marketSingleResponse, client);
|
|
28
|
+
return data;
|
|
29
|
+
},
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
export function getMarketLocalesQueryOptions(client, options) {
|
|
33
|
+
const { enabled: _enabled = true, ...filters } = options;
|
|
34
|
+
return queryOptions({
|
|
35
|
+
queryKey: marketsQueryKeys.marketLocalesList(filters),
|
|
36
|
+
queryFn: async () => {
|
|
37
|
+
if (!filters.marketId)
|
|
38
|
+
throw new Error("getMarketLocalesQueryOptions requires a marketId");
|
|
39
|
+
return fetchWithValidation(`/v1/markets/market-locales${toQueryString(filters)}`, marketLocaleListResponse, client);
|
|
40
|
+
},
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
export function getMarketLocaleQueryOptions(client, id) {
|
|
44
|
+
return queryOptions({
|
|
45
|
+
queryKey: marketsQueryKeys.marketLocale(id),
|
|
46
|
+
queryFn: async () => {
|
|
47
|
+
const { data } = await fetchWithValidation(`/v1/markets/market-locales/${id}`, marketLocaleSingleResponse, client);
|
|
48
|
+
return data;
|
|
49
|
+
},
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
export function getMarketCurrenciesQueryOptions(client, options) {
|
|
53
|
+
const { enabled: _enabled = true, ...filters } = options;
|
|
54
|
+
return queryOptions({
|
|
55
|
+
queryKey: marketsQueryKeys.marketCurrenciesList(filters),
|
|
56
|
+
queryFn: async () => {
|
|
57
|
+
if (!filters.marketId)
|
|
58
|
+
throw new Error("getMarketCurrenciesQueryOptions requires a marketId");
|
|
59
|
+
return fetchWithValidation(`/v1/markets/market-currencies${toQueryString(filters)}`, marketCurrencyListResponse, client);
|
|
60
|
+
},
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
export function getMarketCurrencyQueryOptions(client, id) {
|
|
64
|
+
return queryOptions({
|
|
65
|
+
queryKey: marketsQueryKeys.marketCurrency(id),
|
|
66
|
+
queryFn: async () => {
|
|
67
|
+
const { data } = await fetchWithValidation(`/v1/markets/market-currencies/${id}`, marketCurrencySingleResponse, client);
|
|
68
|
+
return data;
|
|
69
|
+
},
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
export function getMarketProductRulesQueryOptions(client, options = {}) {
|
|
73
|
+
const { enabled: _enabled = true, ...filters } = options;
|
|
74
|
+
return queryOptions({
|
|
75
|
+
queryKey: marketsQueryKeys.marketProductRulesList(filters),
|
|
76
|
+
queryFn: () => fetchWithValidation(`/v1/markets/product-rules${toQueryString(filters)}`, marketProductRuleListResponse, client),
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
export function getMarketProductRuleQueryOptions(client, id) {
|
|
80
|
+
return queryOptions({
|
|
81
|
+
queryKey: marketsQueryKeys.marketProductRule(id),
|
|
82
|
+
queryFn: async () => {
|
|
83
|
+
const { data } = await fetchWithValidation(`/v1/markets/product-rules/${id}`, marketProductRuleSingleResponse, client);
|
|
84
|
+
return data;
|
|
85
|
+
},
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
//# sourceMappingURL=query-options.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query-options.js","sourceRoot":"","sources":["../../src/markets/query-options.ts"],"names":[],"mappings":"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"}
|