@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,542 @@
|
|
|
1
|
+
import { type FetchWithValidationOptions } from "../client.js";
|
|
2
|
+
import type { UseDropoffPriceRulesOptions } from "../hooks/use-dropoff-price-rules.js";
|
|
3
|
+
import type { UseExtraPriceRulesOptions } from "../hooks/use-extra-price-rules.js";
|
|
4
|
+
import type { UseOptionStartTimeRulesOptions } from "../hooks/use-option-start-time-rules.js";
|
|
5
|
+
import type { UsePickupPriceRulesOptions } from "../hooks/use-pickup-price-rules.js";
|
|
6
|
+
export declare function getPickupPriceRulesQueryOptions(client: FetchWithValidationOptions, options?: UsePickupPriceRulesOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
7
|
+
data: {
|
|
8
|
+
id: string;
|
|
9
|
+
optionPriceRuleId: string;
|
|
10
|
+
optionId: string;
|
|
11
|
+
pickupPointId: string;
|
|
12
|
+
pricingMode: "on_request" | "unavailable" | "per_person" | "per_booking" | "included";
|
|
13
|
+
sellAmountCents: number | null;
|
|
14
|
+
costAmountCents: number | null;
|
|
15
|
+
active: boolean;
|
|
16
|
+
sortOrder: number;
|
|
17
|
+
notes: string | null;
|
|
18
|
+
}[];
|
|
19
|
+
total: number;
|
|
20
|
+
limit: number;
|
|
21
|
+
offset: number;
|
|
22
|
+
}, Error, {
|
|
23
|
+
data: {
|
|
24
|
+
id: string;
|
|
25
|
+
optionPriceRuleId: string;
|
|
26
|
+
optionId: string;
|
|
27
|
+
pickupPointId: string;
|
|
28
|
+
pricingMode: "on_request" | "unavailable" | "per_person" | "per_booking" | "included";
|
|
29
|
+
sellAmountCents: number | null;
|
|
30
|
+
costAmountCents: number | null;
|
|
31
|
+
active: boolean;
|
|
32
|
+
sortOrder: number;
|
|
33
|
+
notes: string | null;
|
|
34
|
+
}[];
|
|
35
|
+
total: number;
|
|
36
|
+
limit: number;
|
|
37
|
+
offset: number;
|
|
38
|
+
}, readonly ["voyant", "pricing", "pickup-price-rules", "list", import("../query-keys.js").PickupPriceRulesListFilters]>, "queryFn"> & {
|
|
39
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
40
|
+
data: {
|
|
41
|
+
id: string;
|
|
42
|
+
optionPriceRuleId: string;
|
|
43
|
+
optionId: string;
|
|
44
|
+
pickupPointId: string;
|
|
45
|
+
pricingMode: "on_request" | "unavailable" | "per_person" | "per_booking" | "included";
|
|
46
|
+
sellAmountCents: number | null;
|
|
47
|
+
costAmountCents: number | null;
|
|
48
|
+
active: boolean;
|
|
49
|
+
sortOrder: number;
|
|
50
|
+
notes: string | null;
|
|
51
|
+
}[];
|
|
52
|
+
total: number;
|
|
53
|
+
limit: number;
|
|
54
|
+
offset: number;
|
|
55
|
+
}, readonly ["voyant", "pricing", "pickup-price-rules", "list", import("../query-keys.js").PickupPriceRulesListFilters], never> | undefined;
|
|
56
|
+
} & {
|
|
57
|
+
queryKey: readonly ["voyant", "pricing", "pickup-price-rules", "list", import("../query-keys.js").PickupPriceRulesListFilters] & {
|
|
58
|
+
[dataTagSymbol]: {
|
|
59
|
+
data: {
|
|
60
|
+
id: string;
|
|
61
|
+
optionPriceRuleId: string;
|
|
62
|
+
optionId: string;
|
|
63
|
+
pickupPointId: string;
|
|
64
|
+
pricingMode: "on_request" | "unavailable" | "per_person" | "per_booking" | "included";
|
|
65
|
+
sellAmountCents: number | null;
|
|
66
|
+
costAmountCents: number | null;
|
|
67
|
+
active: boolean;
|
|
68
|
+
sortOrder: number;
|
|
69
|
+
notes: string | null;
|
|
70
|
+
}[];
|
|
71
|
+
total: number;
|
|
72
|
+
limit: number;
|
|
73
|
+
offset: number;
|
|
74
|
+
};
|
|
75
|
+
[dataTagErrorSymbol]: Error;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
export declare function getPickupPriceRuleQueryOptions(client: FetchWithValidationOptions, id: string): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
79
|
+
id: string;
|
|
80
|
+
optionPriceRuleId: string;
|
|
81
|
+
optionId: string;
|
|
82
|
+
pickupPointId: string;
|
|
83
|
+
pricingMode: "on_request" | "unavailable" | "per_person" | "per_booking" | "included";
|
|
84
|
+
sellAmountCents: number | null;
|
|
85
|
+
costAmountCents: number | null;
|
|
86
|
+
active: boolean;
|
|
87
|
+
sortOrder: number;
|
|
88
|
+
notes: string | null;
|
|
89
|
+
}, Error, {
|
|
90
|
+
id: string;
|
|
91
|
+
optionPriceRuleId: string;
|
|
92
|
+
optionId: string;
|
|
93
|
+
pickupPointId: string;
|
|
94
|
+
pricingMode: "on_request" | "unavailable" | "per_person" | "per_booking" | "included";
|
|
95
|
+
sellAmountCents: number | null;
|
|
96
|
+
costAmountCents: number | null;
|
|
97
|
+
active: boolean;
|
|
98
|
+
sortOrder: number;
|
|
99
|
+
notes: string | null;
|
|
100
|
+
}, readonly ["voyant", "pricing", "pickup-price-rules", "detail", string]>, "queryFn"> & {
|
|
101
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
102
|
+
id: string;
|
|
103
|
+
optionPriceRuleId: string;
|
|
104
|
+
optionId: string;
|
|
105
|
+
pickupPointId: string;
|
|
106
|
+
pricingMode: "on_request" | "unavailable" | "per_person" | "per_booking" | "included";
|
|
107
|
+
sellAmountCents: number | null;
|
|
108
|
+
costAmountCents: number | null;
|
|
109
|
+
active: boolean;
|
|
110
|
+
sortOrder: number;
|
|
111
|
+
notes: string | null;
|
|
112
|
+
}, readonly ["voyant", "pricing", "pickup-price-rules", "detail", string], never> | undefined;
|
|
113
|
+
} & {
|
|
114
|
+
queryKey: readonly ["voyant", "pricing", "pickup-price-rules", "detail", string] & {
|
|
115
|
+
[dataTagSymbol]: {
|
|
116
|
+
id: string;
|
|
117
|
+
optionPriceRuleId: string;
|
|
118
|
+
optionId: string;
|
|
119
|
+
pickupPointId: string;
|
|
120
|
+
pricingMode: "on_request" | "unavailable" | "per_person" | "per_booking" | "included";
|
|
121
|
+
sellAmountCents: number | null;
|
|
122
|
+
costAmountCents: number | null;
|
|
123
|
+
active: boolean;
|
|
124
|
+
sortOrder: number;
|
|
125
|
+
notes: string | null;
|
|
126
|
+
};
|
|
127
|
+
[dataTagErrorSymbol]: Error;
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
export declare function getDropoffPriceRulesQueryOptions(client: FetchWithValidationOptions, options?: UseDropoffPriceRulesOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
131
|
+
data: {
|
|
132
|
+
id: string;
|
|
133
|
+
optionPriceRuleId: string;
|
|
134
|
+
optionId: string;
|
|
135
|
+
facilityId: string | null;
|
|
136
|
+
dropoffCode: string | null;
|
|
137
|
+
dropoffName: string;
|
|
138
|
+
pricingMode: "on_request" | "unavailable" | "per_person" | "per_booking" | "included";
|
|
139
|
+
sellAmountCents: number | null;
|
|
140
|
+
costAmountCents: number | null;
|
|
141
|
+
active: boolean;
|
|
142
|
+
sortOrder: number;
|
|
143
|
+
notes: string | null;
|
|
144
|
+
}[];
|
|
145
|
+
total: number;
|
|
146
|
+
limit: number;
|
|
147
|
+
offset: number;
|
|
148
|
+
}, Error, {
|
|
149
|
+
data: {
|
|
150
|
+
id: string;
|
|
151
|
+
optionPriceRuleId: string;
|
|
152
|
+
optionId: string;
|
|
153
|
+
facilityId: string | null;
|
|
154
|
+
dropoffCode: string | null;
|
|
155
|
+
dropoffName: string;
|
|
156
|
+
pricingMode: "on_request" | "unavailable" | "per_person" | "per_booking" | "included";
|
|
157
|
+
sellAmountCents: number | null;
|
|
158
|
+
costAmountCents: number | null;
|
|
159
|
+
active: boolean;
|
|
160
|
+
sortOrder: number;
|
|
161
|
+
notes: string | null;
|
|
162
|
+
}[];
|
|
163
|
+
total: number;
|
|
164
|
+
limit: number;
|
|
165
|
+
offset: number;
|
|
166
|
+
}, readonly ["voyant", "pricing", "dropoff-price-rules", "list", import("../query-keys.js").DropoffPriceRulesListFilters]>, "queryFn"> & {
|
|
167
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
168
|
+
data: {
|
|
169
|
+
id: string;
|
|
170
|
+
optionPriceRuleId: string;
|
|
171
|
+
optionId: string;
|
|
172
|
+
facilityId: string | null;
|
|
173
|
+
dropoffCode: string | null;
|
|
174
|
+
dropoffName: string;
|
|
175
|
+
pricingMode: "on_request" | "unavailable" | "per_person" | "per_booking" | "included";
|
|
176
|
+
sellAmountCents: number | null;
|
|
177
|
+
costAmountCents: number | null;
|
|
178
|
+
active: boolean;
|
|
179
|
+
sortOrder: number;
|
|
180
|
+
notes: string | null;
|
|
181
|
+
}[];
|
|
182
|
+
total: number;
|
|
183
|
+
limit: number;
|
|
184
|
+
offset: number;
|
|
185
|
+
}, readonly ["voyant", "pricing", "dropoff-price-rules", "list", import("../query-keys.js").DropoffPriceRulesListFilters], never> | undefined;
|
|
186
|
+
} & {
|
|
187
|
+
queryKey: readonly ["voyant", "pricing", "dropoff-price-rules", "list", import("../query-keys.js").DropoffPriceRulesListFilters] & {
|
|
188
|
+
[dataTagSymbol]: {
|
|
189
|
+
data: {
|
|
190
|
+
id: string;
|
|
191
|
+
optionPriceRuleId: string;
|
|
192
|
+
optionId: string;
|
|
193
|
+
facilityId: string | null;
|
|
194
|
+
dropoffCode: string | null;
|
|
195
|
+
dropoffName: string;
|
|
196
|
+
pricingMode: "on_request" | "unavailable" | "per_person" | "per_booking" | "included";
|
|
197
|
+
sellAmountCents: number | null;
|
|
198
|
+
costAmountCents: number | null;
|
|
199
|
+
active: boolean;
|
|
200
|
+
sortOrder: number;
|
|
201
|
+
notes: string | null;
|
|
202
|
+
}[];
|
|
203
|
+
total: number;
|
|
204
|
+
limit: number;
|
|
205
|
+
offset: number;
|
|
206
|
+
};
|
|
207
|
+
[dataTagErrorSymbol]: Error;
|
|
208
|
+
};
|
|
209
|
+
};
|
|
210
|
+
export declare function getDropoffPriceRuleQueryOptions(client: FetchWithValidationOptions, id: string): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
211
|
+
id: string;
|
|
212
|
+
optionPriceRuleId: string;
|
|
213
|
+
optionId: string;
|
|
214
|
+
facilityId: string | null;
|
|
215
|
+
dropoffCode: string | null;
|
|
216
|
+
dropoffName: string;
|
|
217
|
+
pricingMode: "on_request" | "unavailable" | "per_person" | "per_booking" | "included";
|
|
218
|
+
sellAmountCents: number | null;
|
|
219
|
+
costAmountCents: number | null;
|
|
220
|
+
active: boolean;
|
|
221
|
+
sortOrder: number;
|
|
222
|
+
notes: string | null;
|
|
223
|
+
}, Error, {
|
|
224
|
+
id: string;
|
|
225
|
+
optionPriceRuleId: string;
|
|
226
|
+
optionId: string;
|
|
227
|
+
facilityId: string | null;
|
|
228
|
+
dropoffCode: string | null;
|
|
229
|
+
dropoffName: string;
|
|
230
|
+
pricingMode: "on_request" | "unavailable" | "per_person" | "per_booking" | "included";
|
|
231
|
+
sellAmountCents: number | null;
|
|
232
|
+
costAmountCents: number | null;
|
|
233
|
+
active: boolean;
|
|
234
|
+
sortOrder: number;
|
|
235
|
+
notes: string | null;
|
|
236
|
+
}, readonly ["voyant", "pricing", "dropoff-price-rules", "detail", string]>, "queryFn"> & {
|
|
237
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
238
|
+
id: string;
|
|
239
|
+
optionPriceRuleId: string;
|
|
240
|
+
optionId: string;
|
|
241
|
+
facilityId: string | null;
|
|
242
|
+
dropoffCode: string | null;
|
|
243
|
+
dropoffName: string;
|
|
244
|
+
pricingMode: "on_request" | "unavailable" | "per_person" | "per_booking" | "included";
|
|
245
|
+
sellAmountCents: number | null;
|
|
246
|
+
costAmountCents: number | null;
|
|
247
|
+
active: boolean;
|
|
248
|
+
sortOrder: number;
|
|
249
|
+
notes: string | null;
|
|
250
|
+
}, readonly ["voyant", "pricing", "dropoff-price-rules", "detail", string], never> | undefined;
|
|
251
|
+
} & {
|
|
252
|
+
queryKey: readonly ["voyant", "pricing", "dropoff-price-rules", "detail", string] & {
|
|
253
|
+
[dataTagSymbol]: {
|
|
254
|
+
id: string;
|
|
255
|
+
optionPriceRuleId: string;
|
|
256
|
+
optionId: string;
|
|
257
|
+
facilityId: string | null;
|
|
258
|
+
dropoffCode: string | null;
|
|
259
|
+
dropoffName: string;
|
|
260
|
+
pricingMode: "on_request" | "unavailable" | "per_person" | "per_booking" | "included";
|
|
261
|
+
sellAmountCents: number | null;
|
|
262
|
+
costAmountCents: number | null;
|
|
263
|
+
active: boolean;
|
|
264
|
+
sortOrder: number;
|
|
265
|
+
notes: string | null;
|
|
266
|
+
};
|
|
267
|
+
[dataTagErrorSymbol]: Error;
|
|
268
|
+
};
|
|
269
|
+
};
|
|
270
|
+
export declare function getExtraPriceRulesQueryOptions(client: FetchWithValidationOptions, options?: UseExtraPriceRulesOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
271
|
+
data: {
|
|
272
|
+
id: string;
|
|
273
|
+
optionPriceRuleId: string;
|
|
274
|
+
optionId: string;
|
|
275
|
+
productExtraId: string | null;
|
|
276
|
+
optionExtraConfigId: string | null;
|
|
277
|
+
pricingMode: "on_request" | "unavailable" | "per_person" | "per_booking" | "included";
|
|
278
|
+
sellAmountCents: number | null;
|
|
279
|
+
costAmountCents: number | null;
|
|
280
|
+
active: boolean;
|
|
281
|
+
sortOrder: number;
|
|
282
|
+
notes: string | null;
|
|
283
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
284
|
+
}[];
|
|
285
|
+
total: number;
|
|
286
|
+
limit: number;
|
|
287
|
+
offset: number;
|
|
288
|
+
}, Error, {
|
|
289
|
+
data: {
|
|
290
|
+
id: string;
|
|
291
|
+
optionPriceRuleId: string;
|
|
292
|
+
optionId: string;
|
|
293
|
+
productExtraId: string | null;
|
|
294
|
+
optionExtraConfigId: string | null;
|
|
295
|
+
pricingMode: "on_request" | "unavailable" | "per_person" | "per_booking" | "included";
|
|
296
|
+
sellAmountCents: number | null;
|
|
297
|
+
costAmountCents: number | null;
|
|
298
|
+
active: boolean;
|
|
299
|
+
sortOrder: number;
|
|
300
|
+
notes: string | null;
|
|
301
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
302
|
+
}[];
|
|
303
|
+
total: number;
|
|
304
|
+
limit: number;
|
|
305
|
+
offset: number;
|
|
306
|
+
}, readonly ["voyant", "pricing", "extra-price-rules", "list", import("../query-keys.js").ExtraPriceRulesListFilters]>, "queryFn"> & {
|
|
307
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
308
|
+
data: {
|
|
309
|
+
id: string;
|
|
310
|
+
optionPriceRuleId: string;
|
|
311
|
+
optionId: string;
|
|
312
|
+
productExtraId: string | null;
|
|
313
|
+
optionExtraConfigId: string | null;
|
|
314
|
+
pricingMode: "on_request" | "unavailable" | "per_person" | "per_booking" | "included";
|
|
315
|
+
sellAmountCents: number | null;
|
|
316
|
+
costAmountCents: number | null;
|
|
317
|
+
active: boolean;
|
|
318
|
+
sortOrder: number;
|
|
319
|
+
notes: string | null;
|
|
320
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
321
|
+
}[];
|
|
322
|
+
total: number;
|
|
323
|
+
limit: number;
|
|
324
|
+
offset: number;
|
|
325
|
+
}, readonly ["voyant", "pricing", "extra-price-rules", "list", import("../query-keys.js").ExtraPriceRulesListFilters], never> | undefined;
|
|
326
|
+
} & {
|
|
327
|
+
queryKey: readonly ["voyant", "pricing", "extra-price-rules", "list", import("../query-keys.js").ExtraPriceRulesListFilters] & {
|
|
328
|
+
[dataTagSymbol]: {
|
|
329
|
+
data: {
|
|
330
|
+
id: string;
|
|
331
|
+
optionPriceRuleId: string;
|
|
332
|
+
optionId: string;
|
|
333
|
+
productExtraId: string | null;
|
|
334
|
+
optionExtraConfigId: string | null;
|
|
335
|
+
pricingMode: "on_request" | "unavailable" | "per_person" | "per_booking" | "included";
|
|
336
|
+
sellAmountCents: number | null;
|
|
337
|
+
costAmountCents: number | null;
|
|
338
|
+
active: boolean;
|
|
339
|
+
sortOrder: number;
|
|
340
|
+
notes: string | null;
|
|
341
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
342
|
+
}[];
|
|
343
|
+
total: number;
|
|
344
|
+
limit: number;
|
|
345
|
+
offset: number;
|
|
346
|
+
};
|
|
347
|
+
[dataTagErrorSymbol]: Error;
|
|
348
|
+
};
|
|
349
|
+
};
|
|
350
|
+
export declare function getExtraPriceRuleQueryOptions(client: FetchWithValidationOptions, id: string): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
351
|
+
id: string;
|
|
352
|
+
optionPriceRuleId: string;
|
|
353
|
+
optionId: string;
|
|
354
|
+
productExtraId: string | null;
|
|
355
|
+
optionExtraConfigId: string | null;
|
|
356
|
+
pricingMode: "on_request" | "unavailable" | "per_person" | "per_booking" | "included";
|
|
357
|
+
sellAmountCents: number | null;
|
|
358
|
+
costAmountCents: number | null;
|
|
359
|
+
active: boolean;
|
|
360
|
+
sortOrder: number;
|
|
361
|
+
notes: string | null;
|
|
362
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
363
|
+
}, Error, {
|
|
364
|
+
id: string;
|
|
365
|
+
optionPriceRuleId: string;
|
|
366
|
+
optionId: string;
|
|
367
|
+
productExtraId: string | null;
|
|
368
|
+
optionExtraConfigId: string | null;
|
|
369
|
+
pricingMode: "on_request" | "unavailable" | "per_person" | "per_booking" | "included";
|
|
370
|
+
sellAmountCents: number | null;
|
|
371
|
+
costAmountCents: number | null;
|
|
372
|
+
active: boolean;
|
|
373
|
+
sortOrder: number;
|
|
374
|
+
notes: string | null;
|
|
375
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
376
|
+
}, readonly ["voyant", "pricing", "extra-price-rules", "detail", string]>, "queryFn"> & {
|
|
377
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
378
|
+
id: string;
|
|
379
|
+
optionPriceRuleId: string;
|
|
380
|
+
optionId: string;
|
|
381
|
+
productExtraId: string | null;
|
|
382
|
+
optionExtraConfigId: string | null;
|
|
383
|
+
pricingMode: "on_request" | "unavailable" | "per_person" | "per_booking" | "included";
|
|
384
|
+
sellAmountCents: number | null;
|
|
385
|
+
costAmountCents: number | null;
|
|
386
|
+
active: boolean;
|
|
387
|
+
sortOrder: number;
|
|
388
|
+
notes: string | null;
|
|
389
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
390
|
+
}, readonly ["voyant", "pricing", "extra-price-rules", "detail", string], never> | undefined;
|
|
391
|
+
} & {
|
|
392
|
+
queryKey: readonly ["voyant", "pricing", "extra-price-rules", "detail", string] & {
|
|
393
|
+
[dataTagSymbol]: {
|
|
394
|
+
id: string;
|
|
395
|
+
optionPriceRuleId: string;
|
|
396
|
+
optionId: string;
|
|
397
|
+
productExtraId: string | null;
|
|
398
|
+
optionExtraConfigId: string | null;
|
|
399
|
+
pricingMode: "on_request" | "unavailable" | "per_person" | "per_booking" | "included";
|
|
400
|
+
sellAmountCents: number | null;
|
|
401
|
+
costAmountCents: number | null;
|
|
402
|
+
active: boolean;
|
|
403
|
+
sortOrder: number;
|
|
404
|
+
notes: string | null;
|
|
405
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
406
|
+
};
|
|
407
|
+
[dataTagErrorSymbol]: Error;
|
|
408
|
+
};
|
|
409
|
+
};
|
|
410
|
+
export declare function getOptionStartTimeRulesQueryOptions(client: FetchWithValidationOptions, options?: UseOptionStartTimeRulesOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
411
|
+
data: {
|
|
412
|
+
id: string;
|
|
413
|
+
optionPriceRuleId: string;
|
|
414
|
+
optionId: string;
|
|
415
|
+
startTimeId: string;
|
|
416
|
+
ruleMode: "override" | "included" | "excluded" | "adjustment";
|
|
417
|
+
adjustmentType: "fixed" | "percentage" | null;
|
|
418
|
+
sellAdjustmentCents: number | null;
|
|
419
|
+
costAdjustmentCents: number | null;
|
|
420
|
+
adjustmentBasisPoints: number | null;
|
|
421
|
+
active: boolean;
|
|
422
|
+
notes: string | null;
|
|
423
|
+
}[];
|
|
424
|
+
total: number;
|
|
425
|
+
limit: number;
|
|
426
|
+
offset: number;
|
|
427
|
+
}, Error, {
|
|
428
|
+
data: {
|
|
429
|
+
id: string;
|
|
430
|
+
optionPriceRuleId: string;
|
|
431
|
+
optionId: string;
|
|
432
|
+
startTimeId: string;
|
|
433
|
+
ruleMode: "override" | "included" | "excluded" | "adjustment";
|
|
434
|
+
adjustmentType: "fixed" | "percentage" | null;
|
|
435
|
+
sellAdjustmentCents: number | null;
|
|
436
|
+
costAdjustmentCents: number | null;
|
|
437
|
+
adjustmentBasisPoints: number | null;
|
|
438
|
+
active: boolean;
|
|
439
|
+
notes: string | null;
|
|
440
|
+
}[];
|
|
441
|
+
total: number;
|
|
442
|
+
limit: number;
|
|
443
|
+
offset: number;
|
|
444
|
+
}, readonly ["voyant", "pricing", "option-start-time-rules", "list", import("../query-keys.js").OptionStartTimeRulesListFilters]>, "queryFn"> & {
|
|
445
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
446
|
+
data: {
|
|
447
|
+
id: string;
|
|
448
|
+
optionPriceRuleId: string;
|
|
449
|
+
optionId: string;
|
|
450
|
+
startTimeId: string;
|
|
451
|
+
ruleMode: "override" | "included" | "excluded" | "adjustment";
|
|
452
|
+
adjustmentType: "fixed" | "percentage" | null;
|
|
453
|
+
sellAdjustmentCents: number | null;
|
|
454
|
+
costAdjustmentCents: number | null;
|
|
455
|
+
adjustmentBasisPoints: number | null;
|
|
456
|
+
active: boolean;
|
|
457
|
+
notes: string | null;
|
|
458
|
+
}[];
|
|
459
|
+
total: number;
|
|
460
|
+
limit: number;
|
|
461
|
+
offset: number;
|
|
462
|
+
}, readonly ["voyant", "pricing", "option-start-time-rules", "list", import("../query-keys.js").OptionStartTimeRulesListFilters], never> | undefined;
|
|
463
|
+
} & {
|
|
464
|
+
queryKey: readonly ["voyant", "pricing", "option-start-time-rules", "list", import("../query-keys.js").OptionStartTimeRulesListFilters] & {
|
|
465
|
+
[dataTagSymbol]: {
|
|
466
|
+
data: {
|
|
467
|
+
id: string;
|
|
468
|
+
optionPriceRuleId: string;
|
|
469
|
+
optionId: string;
|
|
470
|
+
startTimeId: string;
|
|
471
|
+
ruleMode: "override" | "included" | "excluded" | "adjustment";
|
|
472
|
+
adjustmentType: "fixed" | "percentage" | null;
|
|
473
|
+
sellAdjustmentCents: number | null;
|
|
474
|
+
costAdjustmentCents: number | null;
|
|
475
|
+
adjustmentBasisPoints: number | null;
|
|
476
|
+
active: boolean;
|
|
477
|
+
notes: string | null;
|
|
478
|
+
}[];
|
|
479
|
+
total: number;
|
|
480
|
+
limit: number;
|
|
481
|
+
offset: number;
|
|
482
|
+
};
|
|
483
|
+
[dataTagErrorSymbol]: Error;
|
|
484
|
+
};
|
|
485
|
+
};
|
|
486
|
+
export declare function getOptionStartTimeRuleQueryOptions(client: FetchWithValidationOptions, id: string): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
487
|
+
id: string;
|
|
488
|
+
optionPriceRuleId: string;
|
|
489
|
+
optionId: string;
|
|
490
|
+
startTimeId: string;
|
|
491
|
+
ruleMode: "override" | "included" | "excluded" | "adjustment";
|
|
492
|
+
adjustmentType: "fixed" | "percentage" | null;
|
|
493
|
+
sellAdjustmentCents: number | null;
|
|
494
|
+
costAdjustmentCents: number | null;
|
|
495
|
+
adjustmentBasisPoints: number | null;
|
|
496
|
+
active: boolean;
|
|
497
|
+
notes: string | null;
|
|
498
|
+
}, Error, {
|
|
499
|
+
id: string;
|
|
500
|
+
optionPriceRuleId: string;
|
|
501
|
+
optionId: string;
|
|
502
|
+
startTimeId: string;
|
|
503
|
+
ruleMode: "override" | "included" | "excluded" | "adjustment";
|
|
504
|
+
adjustmentType: "fixed" | "percentage" | null;
|
|
505
|
+
sellAdjustmentCents: number | null;
|
|
506
|
+
costAdjustmentCents: number | null;
|
|
507
|
+
adjustmentBasisPoints: number | null;
|
|
508
|
+
active: boolean;
|
|
509
|
+
notes: string | null;
|
|
510
|
+
}, readonly ["voyant", "pricing", "option-start-time-rules", "detail", string]>, "queryFn"> & {
|
|
511
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
512
|
+
id: string;
|
|
513
|
+
optionPriceRuleId: string;
|
|
514
|
+
optionId: string;
|
|
515
|
+
startTimeId: string;
|
|
516
|
+
ruleMode: "override" | "included" | "excluded" | "adjustment";
|
|
517
|
+
adjustmentType: "fixed" | "percentage" | null;
|
|
518
|
+
sellAdjustmentCents: number | null;
|
|
519
|
+
costAdjustmentCents: number | null;
|
|
520
|
+
adjustmentBasisPoints: number | null;
|
|
521
|
+
active: boolean;
|
|
522
|
+
notes: string | null;
|
|
523
|
+
}, readonly ["voyant", "pricing", "option-start-time-rules", "detail", string], never> | undefined;
|
|
524
|
+
} & {
|
|
525
|
+
queryKey: readonly ["voyant", "pricing", "option-start-time-rules", "detail", string] & {
|
|
526
|
+
[dataTagSymbol]: {
|
|
527
|
+
id: string;
|
|
528
|
+
optionPriceRuleId: string;
|
|
529
|
+
optionId: string;
|
|
530
|
+
startTimeId: string;
|
|
531
|
+
ruleMode: "override" | "included" | "excluded" | "adjustment";
|
|
532
|
+
adjustmentType: "fixed" | "percentage" | null;
|
|
533
|
+
sellAdjustmentCents: number | null;
|
|
534
|
+
costAdjustmentCents: number | null;
|
|
535
|
+
adjustmentBasisPoints: number | null;
|
|
536
|
+
active: boolean;
|
|
537
|
+
notes: string | null;
|
|
538
|
+
};
|
|
539
|
+
[dataTagErrorSymbol]: Error;
|
|
540
|
+
};
|
|
541
|
+
};
|
|
542
|
+
//# sourceMappingURL=logistics.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logistics.d.ts","sourceRoot":"","sources":["../../../src/pricing/query-options/logistics.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,0BAA0B,EAAuB,MAAM,cAAc,CAAA;AACnF,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,qCAAqC,CAAA;AACtF,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAA;AAClF,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,yCAAyC,CAAA;AAC7F,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAA;AAapF,wBAAgB,+BAA+B,CAC7C,MAAM,EAAE,0BAA0B,EAClC,OAAO,GAAE,0BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuBzC;AAED,wBAAgB,8BAA8B,CAAC,MAAM,EAAE,0BAA0B,EAAE,EAAE,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAY5F;AAED,wBAAgB,gCAAgC,CAC9C,MAAM,EAAE,0BAA0B,EAClC,OAAO,GAAE,2BAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuB1C;AAED,wBAAgB,+BAA+B,CAAC,MAAM,EAAE,0BAA0B,EAAE,EAAE,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAY7F;AAED,wBAAgB,8BAA8B,CAC5C,MAAM,EAAE,0BAA0B,EAClC,OAAO,GAAE,yBAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0BxC;AAED,wBAAgB,6BAA6B,CAAC,MAAM,EAAE,0BAA0B,EAAE,EAAE,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAY3F;AAED,wBAAgB,mCAAmC,CACjD,MAAM,EAAE,0BAA0B,EAClC,OAAO,GAAE,8BAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuB7C;AAED,wBAAgB,kCAAkC,CAAC,MAAM,EAAE,0BAA0B,EAAE,EAAE,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYhG"}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { queryOptions } from "@tanstack/react-query";
|
|
3
|
+
import { fetchWithValidation } from "../client.js";
|
|
4
|
+
import { pricingQueryKeys } from "../query-keys.js";
|
|
5
|
+
import { dropoffPriceRuleListResponse, dropoffPriceRuleSingleResponse, extraPriceRuleListResponse, extraPriceRuleSingleResponse, optionStartTimeRuleListResponse, optionStartTimeRuleSingleResponse, pickupPriceRuleListResponse, pickupPriceRuleSingleResponse, } from "../schemas.js";
|
|
6
|
+
export function getPickupPriceRulesQueryOptions(client, options = {}) {
|
|
7
|
+
const { enabled: _enabled = true, ...filters } = options;
|
|
8
|
+
return queryOptions({
|
|
9
|
+
queryKey: pricingQueryKeys.pickupPriceRulesList(filters),
|
|
10
|
+
queryFn: () => {
|
|
11
|
+
const params = new URLSearchParams();
|
|
12
|
+
if (filters.optionPriceRuleId)
|
|
13
|
+
params.set("optionPriceRuleId", filters.optionPriceRuleId);
|
|
14
|
+
if (filters.optionId)
|
|
15
|
+
params.set("optionId", filters.optionId);
|
|
16
|
+
if (filters.pickupPointId)
|
|
17
|
+
params.set("pickupPointId", filters.pickupPointId);
|
|
18
|
+
if (filters.active !== undefined)
|
|
19
|
+
params.set("active", String(filters.active));
|
|
20
|
+
if (filters.limit !== undefined)
|
|
21
|
+
params.set("limit", String(filters.limit));
|
|
22
|
+
if (filters.offset !== undefined)
|
|
23
|
+
params.set("offset", String(filters.offset));
|
|
24
|
+
const qs = params.toString();
|
|
25
|
+
return fetchWithValidation(`/v1/pricing/pickup-price-rules${qs ? `?${qs}` : ""}`, pickupPriceRuleListResponse, client);
|
|
26
|
+
},
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
export function getPickupPriceRuleQueryOptions(client, id) {
|
|
30
|
+
return queryOptions({
|
|
31
|
+
queryKey: pricingQueryKeys.pickupPriceRule(id),
|
|
32
|
+
queryFn: async () => {
|
|
33
|
+
const { data } = await fetchWithValidation(`/v1/pricing/pickup-price-rules/${id}`, pickupPriceRuleSingleResponse, client);
|
|
34
|
+
return data;
|
|
35
|
+
},
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
export function getDropoffPriceRulesQueryOptions(client, options = {}) {
|
|
39
|
+
const { enabled: _enabled = true, ...filters } = options;
|
|
40
|
+
return queryOptions({
|
|
41
|
+
queryKey: pricingQueryKeys.dropoffPriceRulesList(filters),
|
|
42
|
+
queryFn: () => {
|
|
43
|
+
const params = new URLSearchParams();
|
|
44
|
+
if (filters.optionPriceRuleId)
|
|
45
|
+
params.set("optionPriceRuleId", filters.optionPriceRuleId);
|
|
46
|
+
if (filters.optionId)
|
|
47
|
+
params.set("optionId", filters.optionId);
|
|
48
|
+
if (filters.facilityId)
|
|
49
|
+
params.set("facilityId", filters.facilityId);
|
|
50
|
+
if (filters.active !== undefined)
|
|
51
|
+
params.set("active", String(filters.active));
|
|
52
|
+
if (filters.limit !== undefined)
|
|
53
|
+
params.set("limit", String(filters.limit));
|
|
54
|
+
if (filters.offset !== undefined)
|
|
55
|
+
params.set("offset", String(filters.offset));
|
|
56
|
+
const qs = params.toString();
|
|
57
|
+
return fetchWithValidation(`/v1/pricing/dropoff-price-rules${qs ? `?${qs}` : ""}`, dropoffPriceRuleListResponse, client);
|
|
58
|
+
},
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
export function getDropoffPriceRuleQueryOptions(client, id) {
|
|
62
|
+
return queryOptions({
|
|
63
|
+
queryKey: pricingQueryKeys.dropoffPriceRule(id),
|
|
64
|
+
queryFn: async () => {
|
|
65
|
+
const { data } = await fetchWithValidation(`/v1/pricing/dropoff-price-rules/${id}`, dropoffPriceRuleSingleResponse, client);
|
|
66
|
+
return data;
|
|
67
|
+
},
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
export function getExtraPriceRulesQueryOptions(client, options = {}) {
|
|
71
|
+
const { enabled: _enabled = true, ...filters } = options;
|
|
72
|
+
return queryOptions({
|
|
73
|
+
queryKey: pricingQueryKeys.extraPriceRulesList(filters),
|
|
74
|
+
queryFn: () => {
|
|
75
|
+
const params = new URLSearchParams();
|
|
76
|
+
if (filters.optionPriceRuleId)
|
|
77
|
+
params.set("optionPriceRuleId", filters.optionPriceRuleId);
|
|
78
|
+
if (filters.optionId)
|
|
79
|
+
params.set("optionId", filters.optionId);
|
|
80
|
+
if (filters.productExtraId)
|
|
81
|
+
params.set("productExtraId", filters.productExtraId);
|
|
82
|
+
if (filters.optionExtraConfigId) {
|
|
83
|
+
params.set("optionExtraConfigId", filters.optionExtraConfigId);
|
|
84
|
+
}
|
|
85
|
+
if (filters.active !== undefined)
|
|
86
|
+
params.set("active", String(filters.active));
|
|
87
|
+
if (filters.limit !== undefined)
|
|
88
|
+
params.set("limit", String(filters.limit));
|
|
89
|
+
if (filters.offset !== undefined)
|
|
90
|
+
params.set("offset", String(filters.offset));
|
|
91
|
+
const qs = params.toString();
|
|
92
|
+
return fetchWithValidation(`/v1/pricing/extra-price-rules${qs ? `?${qs}` : ""}`, extraPriceRuleListResponse, client);
|
|
93
|
+
},
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
export function getExtraPriceRuleQueryOptions(client, id) {
|
|
97
|
+
return queryOptions({
|
|
98
|
+
queryKey: pricingQueryKeys.extraPriceRule(id),
|
|
99
|
+
queryFn: async () => {
|
|
100
|
+
const { data } = await fetchWithValidation(`/v1/pricing/extra-price-rules/${id}`, extraPriceRuleSingleResponse, client);
|
|
101
|
+
return data;
|
|
102
|
+
},
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
export function getOptionStartTimeRulesQueryOptions(client, options = {}) {
|
|
106
|
+
const { enabled: _enabled = true, ...filters } = options;
|
|
107
|
+
return queryOptions({
|
|
108
|
+
queryKey: pricingQueryKeys.optionStartTimeRulesList(filters),
|
|
109
|
+
queryFn: () => {
|
|
110
|
+
const params = new URLSearchParams();
|
|
111
|
+
if (filters.optionPriceRuleId)
|
|
112
|
+
params.set("optionPriceRuleId", filters.optionPriceRuleId);
|
|
113
|
+
if (filters.optionId)
|
|
114
|
+
params.set("optionId", filters.optionId);
|
|
115
|
+
if (filters.startTimeId)
|
|
116
|
+
params.set("startTimeId", filters.startTimeId);
|
|
117
|
+
if (filters.active !== undefined)
|
|
118
|
+
params.set("active", String(filters.active));
|
|
119
|
+
if (filters.limit !== undefined)
|
|
120
|
+
params.set("limit", String(filters.limit));
|
|
121
|
+
if (filters.offset !== undefined)
|
|
122
|
+
params.set("offset", String(filters.offset));
|
|
123
|
+
const qs = params.toString();
|
|
124
|
+
return fetchWithValidation(`/v1/pricing/option-start-time-rules${qs ? `?${qs}` : ""}`, optionStartTimeRuleListResponse, client);
|
|
125
|
+
},
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
export function getOptionStartTimeRuleQueryOptions(client, id) {
|
|
129
|
+
return queryOptions({
|
|
130
|
+
queryKey: pricingQueryKeys.optionStartTimeRule(id),
|
|
131
|
+
queryFn: async () => {
|
|
132
|
+
const { data } = await fetchWithValidation(`/v1/pricing/option-start-time-rules/${id}`, optionStartTimeRuleSingleResponse, client);
|
|
133
|
+
return data;
|
|
134
|
+
},
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
//# sourceMappingURL=logistics.js.map
|