@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,155 @@
|
|
|
1
|
+
export interface PricingCategoriesListFilters {
|
|
2
|
+
productId?: string | undefined;
|
|
3
|
+
optionId?: string | undefined;
|
|
4
|
+
unitId?: string | undefined;
|
|
5
|
+
categoryType?: string | undefined;
|
|
6
|
+
active?: boolean | undefined;
|
|
7
|
+
search?: string | undefined;
|
|
8
|
+
limit?: number | undefined;
|
|
9
|
+
offset?: number | undefined;
|
|
10
|
+
}
|
|
11
|
+
export interface PricingCategoryDependenciesListFilters {
|
|
12
|
+
pricingCategoryId?: string | undefined;
|
|
13
|
+
masterPricingCategoryId?: string | undefined;
|
|
14
|
+
dependencyType?: string | undefined;
|
|
15
|
+
active?: boolean | undefined;
|
|
16
|
+
limit?: number | undefined;
|
|
17
|
+
offset?: number | undefined;
|
|
18
|
+
}
|
|
19
|
+
export interface PriceCatalogsListFilters {
|
|
20
|
+
search?: string | undefined;
|
|
21
|
+
limit?: number | undefined;
|
|
22
|
+
offset?: number | undefined;
|
|
23
|
+
}
|
|
24
|
+
export interface CancellationPoliciesListFilters {
|
|
25
|
+
search?: string | undefined;
|
|
26
|
+
limit?: number | undefined;
|
|
27
|
+
offset?: number | undefined;
|
|
28
|
+
}
|
|
29
|
+
export interface CancellationPolicyRulesListFilters {
|
|
30
|
+
cancellationPolicyId?: string | undefined;
|
|
31
|
+
active?: boolean | undefined;
|
|
32
|
+
limit?: number | undefined;
|
|
33
|
+
offset?: number | undefined;
|
|
34
|
+
}
|
|
35
|
+
export interface PriceSchedulesListFilters {
|
|
36
|
+
priceCatalogId?: string | undefined;
|
|
37
|
+
active?: boolean | undefined;
|
|
38
|
+
search?: string | undefined;
|
|
39
|
+
limit?: number | undefined;
|
|
40
|
+
offset?: number | undefined;
|
|
41
|
+
}
|
|
42
|
+
export interface OptionPriceRulesListFilters {
|
|
43
|
+
productId?: string | undefined;
|
|
44
|
+
optionId?: string | undefined;
|
|
45
|
+
priceCatalogId?: string | undefined;
|
|
46
|
+
priceScheduleId?: string | undefined;
|
|
47
|
+
cancellationPolicyId?: string | undefined;
|
|
48
|
+
pricingMode?: string | undefined;
|
|
49
|
+
active?: boolean | undefined;
|
|
50
|
+
limit?: number | undefined;
|
|
51
|
+
offset?: number | undefined;
|
|
52
|
+
}
|
|
53
|
+
export interface OptionUnitPriceRulesListFilters {
|
|
54
|
+
optionPriceRuleId?: string | undefined;
|
|
55
|
+
optionId?: string | undefined;
|
|
56
|
+
unitId?: string | undefined;
|
|
57
|
+
pricingCategoryId?: string | undefined;
|
|
58
|
+
active?: boolean | undefined;
|
|
59
|
+
limit?: number | undefined;
|
|
60
|
+
offset?: number | undefined;
|
|
61
|
+
}
|
|
62
|
+
export interface OptionUnitTiersListFilters {
|
|
63
|
+
optionUnitPriceRuleId?: string | undefined;
|
|
64
|
+
active?: boolean | undefined;
|
|
65
|
+
limit?: number | undefined;
|
|
66
|
+
offset?: number | undefined;
|
|
67
|
+
}
|
|
68
|
+
export interface PickupPriceRulesListFilters {
|
|
69
|
+
optionPriceRuleId?: string | undefined;
|
|
70
|
+
optionId?: string | undefined;
|
|
71
|
+
pickupPointId?: string | undefined;
|
|
72
|
+
active?: boolean | undefined;
|
|
73
|
+
limit?: number | undefined;
|
|
74
|
+
offset?: number | undefined;
|
|
75
|
+
}
|
|
76
|
+
export interface DropoffPriceRulesListFilters {
|
|
77
|
+
optionPriceRuleId?: string | undefined;
|
|
78
|
+
optionId?: string | undefined;
|
|
79
|
+
facilityId?: string | undefined;
|
|
80
|
+
active?: boolean | undefined;
|
|
81
|
+
limit?: number | undefined;
|
|
82
|
+
offset?: number | undefined;
|
|
83
|
+
}
|
|
84
|
+
export interface ExtraPriceRulesListFilters {
|
|
85
|
+
optionPriceRuleId?: string | undefined;
|
|
86
|
+
optionId?: string | undefined;
|
|
87
|
+
productExtraId?: string | undefined;
|
|
88
|
+
optionExtraConfigId?: string | undefined;
|
|
89
|
+
active?: boolean | undefined;
|
|
90
|
+
limit?: number | undefined;
|
|
91
|
+
offset?: number | undefined;
|
|
92
|
+
}
|
|
93
|
+
export interface DeparturePriceOverridesListFilters {
|
|
94
|
+
departureId?: string | undefined;
|
|
95
|
+
optionId?: string | undefined;
|
|
96
|
+
optionUnitId?: string | undefined;
|
|
97
|
+
priceCatalogId?: string | undefined;
|
|
98
|
+
active?: boolean | undefined;
|
|
99
|
+
limit?: number | undefined;
|
|
100
|
+
offset?: number | undefined;
|
|
101
|
+
}
|
|
102
|
+
export interface OptionStartTimeRulesListFilters {
|
|
103
|
+
optionPriceRuleId?: string | undefined;
|
|
104
|
+
optionId?: string | undefined;
|
|
105
|
+
startTimeId?: string | undefined;
|
|
106
|
+
active?: boolean | undefined;
|
|
107
|
+
limit?: number | undefined;
|
|
108
|
+
offset?: number | undefined;
|
|
109
|
+
}
|
|
110
|
+
export declare const pricingQueryKeys: {
|
|
111
|
+
readonly all: readonly ["voyant", "pricing"];
|
|
112
|
+
readonly pricingCategories: () => readonly ["voyant", "pricing", "pricing-categories"];
|
|
113
|
+
readonly pricingCategoriesList: (filters: PricingCategoriesListFilters) => readonly ["voyant", "pricing", "pricing-categories", "list", PricingCategoriesListFilters];
|
|
114
|
+
readonly pricingCategory: (id: string) => readonly ["voyant", "pricing", "pricing-categories", "detail", string];
|
|
115
|
+
readonly pricingCategoryDependencies: () => readonly ["voyant", "pricing", "pricing-category-dependencies"];
|
|
116
|
+
readonly pricingCategoryDependenciesList: (filters: PricingCategoryDependenciesListFilters) => readonly ["voyant", "pricing", "pricing-category-dependencies", "list", PricingCategoryDependenciesListFilters];
|
|
117
|
+
readonly pricingCategoryDependency: (id: string) => readonly ["voyant", "pricing", "pricing-category-dependencies", "detail", string];
|
|
118
|
+
readonly priceCatalogs: () => readonly ["voyant", "pricing", "price-catalogs"];
|
|
119
|
+
readonly priceCatalogsList: (filters: PriceCatalogsListFilters) => readonly ["voyant", "pricing", "price-catalogs", "list", PriceCatalogsListFilters];
|
|
120
|
+
readonly priceCatalog: (id: string) => readonly ["voyant", "pricing", "price-catalogs", "detail", string];
|
|
121
|
+
readonly priceSchedules: () => readonly ["voyant", "pricing", "price-schedules"];
|
|
122
|
+
readonly priceSchedulesList: (filters: PriceSchedulesListFilters) => readonly ["voyant", "pricing", "price-schedules", "list", PriceSchedulesListFilters];
|
|
123
|
+
readonly priceSchedule: (id: string) => readonly ["voyant", "pricing", "price-schedules", "detail", string];
|
|
124
|
+
readonly optionPriceRules: () => readonly ["voyant", "pricing", "option-price-rules"];
|
|
125
|
+
readonly optionPriceRulesList: (filters: OptionPriceRulesListFilters) => readonly ["voyant", "pricing", "option-price-rules", "list", OptionPriceRulesListFilters];
|
|
126
|
+
readonly optionPriceRule: (id: string) => readonly ["voyant", "pricing", "option-price-rules", "detail", string];
|
|
127
|
+
readonly optionUnitPriceRules: () => readonly ["voyant", "pricing", "option-unit-price-rules"];
|
|
128
|
+
readonly optionUnitPriceRulesList: (filters: OptionUnitPriceRulesListFilters) => readonly ["voyant", "pricing", "option-unit-price-rules", "list", OptionUnitPriceRulesListFilters];
|
|
129
|
+
readonly optionUnitPriceRule: (id: string) => readonly ["voyant", "pricing", "option-unit-price-rules", "detail", string];
|
|
130
|
+
readonly optionUnitTiers: () => readonly ["voyant", "pricing", "option-unit-tiers"];
|
|
131
|
+
readonly optionUnitTiersList: (filters: OptionUnitTiersListFilters) => readonly ["voyant", "pricing", "option-unit-tiers", "list", OptionUnitTiersListFilters];
|
|
132
|
+
readonly optionUnitTier: (id: string) => readonly ["voyant", "pricing", "option-unit-tiers", "detail", string];
|
|
133
|
+
readonly pickupPriceRules: () => readonly ["voyant", "pricing", "pickup-price-rules"];
|
|
134
|
+
readonly pickupPriceRulesList: (filters: PickupPriceRulesListFilters) => readonly ["voyant", "pricing", "pickup-price-rules", "list", PickupPriceRulesListFilters];
|
|
135
|
+
readonly pickupPriceRule: (id: string) => readonly ["voyant", "pricing", "pickup-price-rules", "detail", string];
|
|
136
|
+
readonly dropoffPriceRules: () => readonly ["voyant", "pricing", "dropoff-price-rules"];
|
|
137
|
+
readonly dropoffPriceRulesList: (filters: DropoffPriceRulesListFilters) => readonly ["voyant", "pricing", "dropoff-price-rules", "list", DropoffPriceRulesListFilters];
|
|
138
|
+
readonly dropoffPriceRule: (id: string) => readonly ["voyant", "pricing", "dropoff-price-rules", "detail", string];
|
|
139
|
+
readonly extraPriceRules: () => readonly ["voyant", "pricing", "extra-price-rules"];
|
|
140
|
+
readonly extraPriceRulesList: (filters: ExtraPriceRulesListFilters) => readonly ["voyant", "pricing", "extra-price-rules", "list", ExtraPriceRulesListFilters];
|
|
141
|
+
readonly extraPriceRule: (id: string) => readonly ["voyant", "pricing", "extra-price-rules", "detail", string];
|
|
142
|
+
readonly departurePriceOverrides: () => readonly ["voyant", "pricing", "departure-price-overrides"];
|
|
143
|
+
readonly departurePriceOverridesList: (filters: DeparturePriceOverridesListFilters) => readonly ["voyant", "pricing", "departure-price-overrides", "list", DeparturePriceOverridesListFilters];
|
|
144
|
+
readonly departurePriceOverride: (id: string) => readonly ["voyant", "pricing", "departure-price-overrides", "detail", string];
|
|
145
|
+
readonly optionStartTimeRules: () => readonly ["voyant", "pricing", "option-start-time-rules"];
|
|
146
|
+
readonly optionStartTimeRulesList: (filters: OptionStartTimeRulesListFilters) => readonly ["voyant", "pricing", "option-start-time-rules", "list", OptionStartTimeRulesListFilters];
|
|
147
|
+
readonly optionStartTimeRule: (id: string) => readonly ["voyant", "pricing", "option-start-time-rules", "detail", string];
|
|
148
|
+
readonly cancellationPolicies: () => readonly ["voyant", "pricing", "cancellation-policies"];
|
|
149
|
+
readonly cancellationPoliciesList: (filters: CancellationPoliciesListFilters) => readonly ["voyant", "pricing", "cancellation-policies", "list", CancellationPoliciesListFilters];
|
|
150
|
+
readonly cancellationPolicy: (id: string) => readonly ["voyant", "pricing", "cancellation-policies", "detail", string];
|
|
151
|
+
readonly cancellationPolicyRules: () => readonly ["voyant", "pricing", "cancellation-policy-rules"];
|
|
152
|
+
readonly cancellationPolicyRulesList: (filters: CancellationPolicyRulesListFilters) => readonly ["voyant", "pricing", "cancellation-policy-rules", "list", CancellationPolicyRulesListFilters];
|
|
153
|
+
readonly cancellationPolicyRule: (id: string) => readonly ["voyant", "pricing", "cancellation-policy-rules", "detail", string];
|
|
154
|
+
};
|
|
155
|
+
//# sourceMappingURL=query-keys.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query-keys.d.ts","sourceRoot":"","sources":["../../src/pricing/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AE5C,MAAM;CAE3B,CAAA"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export const pricingQueryKeys = {
|
|
2
|
+
all: ["voyant", "pricing"],
|
|
3
|
+
pricingCategories: () => [...pricingQueryKeys.all, "pricing-categories"],
|
|
4
|
+
pricingCategoriesList: (filters) => [...pricingQueryKeys.pricingCategories(), "list", filters],
|
|
5
|
+
pricingCategory: (id) => [...pricingQueryKeys.pricingCategories(), "detail", id],
|
|
6
|
+
pricingCategoryDependencies: () => [...pricingQueryKeys.all, "pricing-category-dependencies"],
|
|
7
|
+
pricingCategoryDependenciesList: (filters) => [...pricingQueryKeys.pricingCategoryDependencies(), "list", filters],
|
|
8
|
+
pricingCategoryDependency: (id) => [...pricingQueryKeys.pricingCategoryDependencies(), "detail", id],
|
|
9
|
+
priceCatalogs: () => [...pricingQueryKeys.all, "price-catalogs"],
|
|
10
|
+
priceCatalogsList: (filters) => [...pricingQueryKeys.priceCatalogs(), "list", filters],
|
|
11
|
+
priceCatalog: (id) => [...pricingQueryKeys.priceCatalogs(), "detail", id],
|
|
12
|
+
priceSchedules: () => [...pricingQueryKeys.all, "price-schedules"],
|
|
13
|
+
priceSchedulesList: (filters) => [...pricingQueryKeys.priceSchedules(), "list", filters],
|
|
14
|
+
priceSchedule: (id) => [...pricingQueryKeys.priceSchedules(), "detail", id],
|
|
15
|
+
optionPriceRules: () => [...pricingQueryKeys.all, "option-price-rules"],
|
|
16
|
+
optionPriceRulesList: (filters) => [...pricingQueryKeys.optionPriceRules(), "list", filters],
|
|
17
|
+
optionPriceRule: (id) => [...pricingQueryKeys.optionPriceRules(), "detail", id],
|
|
18
|
+
optionUnitPriceRules: () => [...pricingQueryKeys.all, "option-unit-price-rules"],
|
|
19
|
+
optionUnitPriceRulesList: (filters) => [...pricingQueryKeys.optionUnitPriceRules(), "list", filters],
|
|
20
|
+
optionUnitPriceRule: (id) => [...pricingQueryKeys.optionUnitPriceRules(), "detail", id],
|
|
21
|
+
optionUnitTiers: () => [...pricingQueryKeys.all, "option-unit-tiers"],
|
|
22
|
+
optionUnitTiersList: (filters) => [...pricingQueryKeys.optionUnitTiers(), "list", filters],
|
|
23
|
+
optionUnitTier: (id) => [...pricingQueryKeys.optionUnitTiers(), "detail", id],
|
|
24
|
+
pickupPriceRules: () => [...pricingQueryKeys.all, "pickup-price-rules"],
|
|
25
|
+
pickupPriceRulesList: (filters) => [...pricingQueryKeys.pickupPriceRules(), "list", filters],
|
|
26
|
+
pickupPriceRule: (id) => [...pricingQueryKeys.pickupPriceRules(), "detail", id],
|
|
27
|
+
dropoffPriceRules: () => [...pricingQueryKeys.all, "dropoff-price-rules"],
|
|
28
|
+
dropoffPriceRulesList: (filters) => [...pricingQueryKeys.dropoffPriceRules(), "list", filters],
|
|
29
|
+
dropoffPriceRule: (id) => [...pricingQueryKeys.dropoffPriceRules(), "detail", id],
|
|
30
|
+
extraPriceRules: () => [...pricingQueryKeys.all, "extra-price-rules"],
|
|
31
|
+
extraPriceRulesList: (filters) => [...pricingQueryKeys.extraPriceRules(), "list", filters],
|
|
32
|
+
extraPriceRule: (id) => [...pricingQueryKeys.extraPriceRules(), "detail", id],
|
|
33
|
+
departurePriceOverrides: () => [...pricingQueryKeys.all, "departure-price-overrides"],
|
|
34
|
+
departurePriceOverridesList: (filters) => [...pricingQueryKeys.departurePriceOverrides(), "list", filters],
|
|
35
|
+
departurePriceOverride: (id) => [...pricingQueryKeys.departurePriceOverrides(), "detail", id],
|
|
36
|
+
optionStartTimeRules: () => [...pricingQueryKeys.all, "option-start-time-rules"],
|
|
37
|
+
optionStartTimeRulesList: (filters) => [...pricingQueryKeys.optionStartTimeRules(), "list", filters],
|
|
38
|
+
optionStartTimeRule: (id) => [...pricingQueryKeys.optionStartTimeRules(), "detail", id],
|
|
39
|
+
cancellationPolicies: () => [...pricingQueryKeys.all, "cancellation-policies"],
|
|
40
|
+
cancellationPoliciesList: (filters) => [...pricingQueryKeys.cancellationPolicies(), "list", filters],
|
|
41
|
+
cancellationPolicy: (id) => [...pricingQueryKeys.cancellationPolicies(), "detail", id],
|
|
42
|
+
cancellationPolicyRules: () => [...pricingQueryKeys.all, "cancellation-policy-rules"],
|
|
43
|
+
cancellationPolicyRulesList: (filters) => [...pricingQueryKeys.cancellationPolicyRules(), "list", filters],
|
|
44
|
+
cancellationPolicyRule: (id) => [...pricingQueryKeys.cancellationPolicyRules(), "detail", id],
|
|
45
|
+
};
|
|
46
|
+
//# sourceMappingURL=query-keys.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query-keys.js","sourceRoot":"","sources":["../../src/pricing/query-keys.ts"],"names":[],"mappings":"AA2HA,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,GAAG,EAAE,CAAC,QAAQ,EAAE,SAAS,CAAU;IAEnC,iBAAiB,EAAE,GAAG,EAAE,CAAC,CAAC,GAAG,gBAAgB,CAAC,GAAG,EAAE,oBAAoB,CAAU;IACjF,qBAAqB,EAAE,CAAC,OAAqC,EAAE,EAAE,CAC/D,CAAC,GAAG,gBAAgB,CAAC,iBAAiB,EAAE,EAAE,MAAM,EAAE,OAAO,CAAU;IACrE,eAAe,EAAE,CAAC,EAAU,EAAE,EAAE,CAAC,CAAC,GAAG,gBAAgB,CAAC,iBAAiB,EAAE,EAAE,QAAQ,EAAE,EAAE,CAAU;IAEjG,2BAA2B,EAAE,GAAG,EAAE,CAChC,CAAC,GAAG,gBAAgB,CAAC,GAAG,EAAE,+BAA+B,CAAU;IACrE,+BAA+B,EAAE,CAAC,OAA+C,EAAE,EAAE,CACnF,CAAC,GAAG,gBAAgB,CAAC,2BAA2B,EAAE,EAAE,MAAM,EAAE,OAAO,CAAU;IAC/E,yBAAyB,EAAE,CAAC,EAAU,EAAE,EAAE,CACxC,CAAC,GAAG,gBAAgB,CAAC,2BAA2B,EAAE,EAAE,QAAQ,EAAE,EAAE,CAAU;IAE5E,aAAa,EAAE,GAAG,EAAE,CAAC,CAAC,GAAG,gBAAgB,CAA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AAE,2BAA2B,CAAU;IAC9F,2BAA2B,EAAE,CAAC,OAA2C,EAAE,EAAE,CAC3E,CAAC,GAAG,gBAAgB,CAAC,uBAAuB,EAAE,EAAE,MAAM,EAAE,OAAO,CAAU;IAC3E,sBAAsB,EAAE,CAAC,EAAU,EAAE,EAAE,CACrC,CAAC,GAAG,gBAAgB,CAAC,uBAAuB,EAAE,EAAE,QAAQ,EAAE,EAAE,CAAU;CAChE,CAAA"}
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
import { type FetchWithValidationOptions } from "../client.js";
|
|
2
|
+
import type { UseCancellationPoliciesOptions } from "../hooks/use-cancellation-policies.js";
|
|
3
|
+
import type { UseCancellationPolicyRulesOptions } from "../hooks/use-cancellation-policy-rules.js";
|
|
4
|
+
export declare function getCancellationPoliciesQueryOptions(client: FetchWithValidationOptions, options?: UseCancellationPoliciesOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
5
|
+
data: {
|
|
6
|
+
id: string;
|
|
7
|
+
name: string;
|
|
8
|
+
code: string | null;
|
|
9
|
+
policyType: "custom" | "simple" | "advanced" | "non_refundable";
|
|
10
|
+
simpleCutoffHours: number | null;
|
|
11
|
+
isDefault: boolean;
|
|
12
|
+
active: boolean;
|
|
13
|
+
notes: string | null;
|
|
14
|
+
}[];
|
|
15
|
+
total: number;
|
|
16
|
+
limit: number;
|
|
17
|
+
offset: number;
|
|
18
|
+
}, Error, {
|
|
19
|
+
data: {
|
|
20
|
+
id: string;
|
|
21
|
+
name: string;
|
|
22
|
+
code: string | null;
|
|
23
|
+
policyType: "custom" | "simple" | "advanced" | "non_refundable";
|
|
24
|
+
simpleCutoffHours: number | null;
|
|
25
|
+
isDefault: boolean;
|
|
26
|
+
active: boolean;
|
|
27
|
+
notes: string | null;
|
|
28
|
+
}[];
|
|
29
|
+
total: number;
|
|
30
|
+
limit: number;
|
|
31
|
+
offset: number;
|
|
32
|
+
}, readonly ["voyant", "pricing", "cancellation-policies", "list", import("../query-keys.js").CancellationPoliciesListFilters]>, "queryFn"> & {
|
|
33
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
34
|
+
data: {
|
|
35
|
+
id: string;
|
|
36
|
+
name: string;
|
|
37
|
+
code: string | null;
|
|
38
|
+
policyType: "custom" | "simple" | "advanced" | "non_refundable";
|
|
39
|
+
simpleCutoffHours: number | null;
|
|
40
|
+
isDefault: boolean;
|
|
41
|
+
active: boolean;
|
|
42
|
+
notes: string | null;
|
|
43
|
+
}[];
|
|
44
|
+
total: number;
|
|
45
|
+
limit: number;
|
|
46
|
+
offset: number;
|
|
47
|
+
}, readonly ["voyant", "pricing", "cancellation-policies", "list", import("../query-keys.js").CancellationPoliciesListFilters], never> | undefined;
|
|
48
|
+
} & {
|
|
49
|
+
queryKey: readonly ["voyant", "pricing", "cancellation-policies", "list", import("../query-keys.js").CancellationPoliciesListFilters] & {
|
|
50
|
+
[dataTagSymbol]: {
|
|
51
|
+
data: {
|
|
52
|
+
id: string;
|
|
53
|
+
name: string;
|
|
54
|
+
code: string | null;
|
|
55
|
+
policyType: "custom" | "simple" | "advanced" | "non_refundable";
|
|
56
|
+
simpleCutoffHours: number | null;
|
|
57
|
+
isDefault: boolean;
|
|
58
|
+
active: boolean;
|
|
59
|
+
notes: string | null;
|
|
60
|
+
}[];
|
|
61
|
+
total: number;
|
|
62
|
+
limit: number;
|
|
63
|
+
offset: number;
|
|
64
|
+
};
|
|
65
|
+
[dataTagErrorSymbol]: Error;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
export declare function getCancellationPolicyQueryOptions(client: FetchWithValidationOptions, id: string): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
69
|
+
id: string;
|
|
70
|
+
name: string;
|
|
71
|
+
code: string | null;
|
|
72
|
+
policyType: "custom" | "simple" | "advanced" | "non_refundable";
|
|
73
|
+
simpleCutoffHours: number | null;
|
|
74
|
+
isDefault: boolean;
|
|
75
|
+
active: boolean;
|
|
76
|
+
notes: string | null;
|
|
77
|
+
}, Error, {
|
|
78
|
+
id: string;
|
|
79
|
+
name: string;
|
|
80
|
+
code: string | null;
|
|
81
|
+
policyType: "custom" | "simple" | "advanced" | "non_refundable";
|
|
82
|
+
simpleCutoffHours: number | null;
|
|
83
|
+
isDefault: boolean;
|
|
84
|
+
active: boolean;
|
|
85
|
+
notes: string | null;
|
|
86
|
+
}, readonly ["voyant", "pricing", "cancellation-policies", "detail", string]>, "queryFn"> & {
|
|
87
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
88
|
+
id: string;
|
|
89
|
+
name: string;
|
|
90
|
+
code: string | null;
|
|
91
|
+
policyType: "custom" | "simple" | "advanced" | "non_refundable";
|
|
92
|
+
simpleCutoffHours: number | null;
|
|
93
|
+
isDefault: boolean;
|
|
94
|
+
active: boolean;
|
|
95
|
+
notes: string | null;
|
|
96
|
+
}, readonly ["voyant", "pricing", "cancellation-policies", "detail", string], never> | undefined;
|
|
97
|
+
} & {
|
|
98
|
+
queryKey: readonly ["voyant", "pricing", "cancellation-policies", "detail", string] & {
|
|
99
|
+
[dataTagSymbol]: {
|
|
100
|
+
id: string;
|
|
101
|
+
name: string;
|
|
102
|
+
code: string | null;
|
|
103
|
+
policyType: "custom" | "simple" | "advanced" | "non_refundable";
|
|
104
|
+
simpleCutoffHours: number | null;
|
|
105
|
+
isDefault: boolean;
|
|
106
|
+
active: boolean;
|
|
107
|
+
notes: string | null;
|
|
108
|
+
};
|
|
109
|
+
[dataTagErrorSymbol]: Error;
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
export declare function getCancellationPolicyRulesQueryOptions(client: FetchWithValidationOptions, options?: UseCancellationPolicyRulesOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
113
|
+
data: {
|
|
114
|
+
id: string;
|
|
115
|
+
cancellationPolicyId: string;
|
|
116
|
+
sortOrder: number;
|
|
117
|
+
cutoffMinutesBefore: number | null;
|
|
118
|
+
chargeType: "none" | "amount" | "percentage";
|
|
119
|
+
chargeAmountCents: number | null;
|
|
120
|
+
chargePercentBasisPoints: number | null;
|
|
121
|
+
active: boolean;
|
|
122
|
+
notes: string | null;
|
|
123
|
+
}[];
|
|
124
|
+
total: number;
|
|
125
|
+
limit: number;
|
|
126
|
+
offset: number;
|
|
127
|
+
}, Error, {
|
|
128
|
+
data: {
|
|
129
|
+
id: string;
|
|
130
|
+
cancellationPolicyId: string;
|
|
131
|
+
sortOrder: number;
|
|
132
|
+
cutoffMinutesBefore: number | null;
|
|
133
|
+
chargeType: "none" | "amount" | "percentage";
|
|
134
|
+
chargeAmountCents: number | null;
|
|
135
|
+
chargePercentBasisPoints: number | null;
|
|
136
|
+
active: boolean;
|
|
137
|
+
notes: string | null;
|
|
138
|
+
}[];
|
|
139
|
+
total: number;
|
|
140
|
+
limit: number;
|
|
141
|
+
offset: number;
|
|
142
|
+
}, readonly ["voyant", "pricing", "cancellation-policy-rules", "list", import("../query-keys.js").CancellationPolicyRulesListFilters]>, "queryFn"> & {
|
|
143
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
144
|
+
data: {
|
|
145
|
+
id: string;
|
|
146
|
+
cancellationPolicyId: string;
|
|
147
|
+
sortOrder: number;
|
|
148
|
+
cutoffMinutesBefore: number | null;
|
|
149
|
+
chargeType: "none" | "amount" | "percentage";
|
|
150
|
+
chargeAmountCents: number | null;
|
|
151
|
+
chargePercentBasisPoints: number | null;
|
|
152
|
+
active: boolean;
|
|
153
|
+
notes: string | null;
|
|
154
|
+
}[];
|
|
155
|
+
total: number;
|
|
156
|
+
limit: number;
|
|
157
|
+
offset: number;
|
|
158
|
+
}, readonly ["voyant", "pricing", "cancellation-policy-rules", "list", import("../query-keys.js").CancellationPolicyRulesListFilters], never> | undefined;
|
|
159
|
+
} & {
|
|
160
|
+
queryKey: readonly ["voyant", "pricing", "cancellation-policy-rules", "list", import("../query-keys.js").CancellationPolicyRulesListFilters] & {
|
|
161
|
+
[dataTagSymbol]: {
|
|
162
|
+
data: {
|
|
163
|
+
id: string;
|
|
164
|
+
cancellationPolicyId: string;
|
|
165
|
+
sortOrder: number;
|
|
166
|
+
cutoffMinutesBefore: number | null;
|
|
167
|
+
chargeType: "none" | "amount" | "percentage";
|
|
168
|
+
chargeAmountCents: number | null;
|
|
169
|
+
chargePercentBasisPoints: number | null;
|
|
170
|
+
active: boolean;
|
|
171
|
+
notes: string | null;
|
|
172
|
+
}[];
|
|
173
|
+
total: number;
|
|
174
|
+
limit: number;
|
|
175
|
+
offset: number;
|
|
176
|
+
};
|
|
177
|
+
[dataTagErrorSymbol]: Error;
|
|
178
|
+
};
|
|
179
|
+
};
|
|
180
|
+
export declare function getCancellationPolicyRuleQueryOptions(client: FetchWithValidationOptions, id: string): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
181
|
+
id: string;
|
|
182
|
+
cancellationPolicyId: string;
|
|
183
|
+
sortOrder: number;
|
|
184
|
+
cutoffMinutesBefore: number | null;
|
|
185
|
+
chargeType: "none" | "amount" | "percentage";
|
|
186
|
+
chargeAmountCents: number | null;
|
|
187
|
+
chargePercentBasisPoints: number | null;
|
|
188
|
+
active: boolean;
|
|
189
|
+
notes: string | null;
|
|
190
|
+
}, Error, {
|
|
191
|
+
id: string;
|
|
192
|
+
cancellationPolicyId: string;
|
|
193
|
+
sortOrder: number;
|
|
194
|
+
cutoffMinutesBefore: number | null;
|
|
195
|
+
chargeType: "none" | "amount" | "percentage";
|
|
196
|
+
chargeAmountCents: number | null;
|
|
197
|
+
chargePercentBasisPoints: number | null;
|
|
198
|
+
active: boolean;
|
|
199
|
+
notes: string | null;
|
|
200
|
+
}, readonly ["voyant", "pricing", "cancellation-policy-rules", "detail", string]>, "queryFn"> & {
|
|
201
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
202
|
+
id: string;
|
|
203
|
+
cancellationPolicyId: string;
|
|
204
|
+
sortOrder: number;
|
|
205
|
+
cutoffMinutesBefore: number | null;
|
|
206
|
+
chargeType: "none" | "amount" | "percentage";
|
|
207
|
+
chargeAmountCents: number | null;
|
|
208
|
+
chargePercentBasisPoints: number | null;
|
|
209
|
+
active: boolean;
|
|
210
|
+
notes: string | null;
|
|
211
|
+
}, readonly ["voyant", "pricing", "cancellation-policy-rules", "detail", string], never> | undefined;
|
|
212
|
+
} & {
|
|
213
|
+
queryKey: readonly ["voyant", "pricing", "cancellation-policy-rules", "detail", string] & {
|
|
214
|
+
[dataTagSymbol]: {
|
|
215
|
+
id: string;
|
|
216
|
+
cancellationPolicyId: string;
|
|
217
|
+
sortOrder: number;
|
|
218
|
+
cutoffMinutesBefore: number | null;
|
|
219
|
+
chargeType: "none" | "amount" | "percentage";
|
|
220
|
+
chargeAmountCents: number | null;
|
|
221
|
+
chargePercentBasisPoints: number | null;
|
|
222
|
+
active: boolean;
|
|
223
|
+
notes: string | null;
|
|
224
|
+
};
|
|
225
|
+
[dataTagErrorSymbol]: Error;
|
|
226
|
+
};
|
|
227
|
+
};
|
|
228
|
+
//# sourceMappingURL=cancellation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cancellation.d.ts","sourceRoot":"","sources":["../../../src/pricing/query-options/cancellation.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,0BAA0B,EAAuB,MAAM,cAAc,CAAA;AACnF,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,uCAAuC,CAAA;AAC3F,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,2CAA2C,CAAA;AASlG,wBAAgB,mCAAmC,CACjD,MAAM,EAAE,0BAA0B,EAClC,OAAO,GAAE,8BAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoB7C;AAED,wBAAgB,iCAAiC,CAAC,MAAM,EAAE,0BAA0B,EAAE,EAAE,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAY/F;AAED,wBAAgB,sCAAsC,CACpD,MAAM,EAAE,0BAA0B,EAClC,OAAO,GAAE,iCAAsC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuBhD;AAED,wBAAgB,qCAAqC,CACnD,MAAM,EAAE,0BAA0B,EAClC,EAAE,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAaX"}
|
|
@@ -0,0 +1,61 @@
|
|
|
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 { cancellationPolicyListResponse, cancellationPolicyRuleListResponse, cancellationPolicyRuleSingleResponse, cancellationPolicySingleResponse, } from "../schemas.js";
|
|
6
|
+
export function getCancellationPoliciesQueryOptions(client, options = {}) {
|
|
7
|
+
const { enabled: _enabled = true, ...filters } = options;
|
|
8
|
+
return queryOptions({
|
|
9
|
+
queryKey: pricingQueryKeys.cancellationPoliciesList(filters),
|
|
10
|
+
queryFn: () => {
|
|
11
|
+
const params = new URLSearchParams();
|
|
12
|
+
if (filters.search)
|
|
13
|
+
params.set("search", filters.search);
|
|
14
|
+
if (filters.limit !== undefined)
|
|
15
|
+
params.set("limit", String(filters.limit));
|
|
16
|
+
if (filters.offset !== undefined)
|
|
17
|
+
params.set("offset", String(filters.offset));
|
|
18
|
+
const qs = params.toString();
|
|
19
|
+
return fetchWithValidation(`/v1/pricing/cancellation-policies${qs ? `?${qs}` : ""}`, cancellationPolicyListResponse, client);
|
|
20
|
+
},
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
export function getCancellationPolicyQueryOptions(client, id) {
|
|
24
|
+
return queryOptions({
|
|
25
|
+
queryKey: [...pricingQueryKeys.cancellationPolicies(), "detail", id],
|
|
26
|
+
queryFn: async () => {
|
|
27
|
+
const { data } = await fetchWithValidation(`/v1/pricing/cancellation-policies/${id}`, cancellationPolicySingleResponse, client);
|
|
28
|
+
return data;
|
|
29
|
+
},
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
export function getCancellationPolicyRulesQueryOptions(client, options = {}) {
|
|
33
|
+
const { enabled: _enabled = true, ...filters } = options;
|
|
34
|
+
return queryOptions({
|
|
35
|
+
queryKey: pricingQueryKeys.cancellationPolicyRulesList(filters),
|
|
36
|
+
queryFn: () => {
|
|
37
|
+
const params = new URLSearchParams();
|
|
38
|
+
if (filters.cancellationPolicyId) {
|
|
39
|
+
params.set("cancellationPolicyId", filters.cancellationPolicyId);
|
|
40
|
+
}
|
|
41
|
+
if (filters.active !== undefined)
|
|
42
|
+
params.set("active", String(filters.active));
|
|
43
|
+
if (filters.limit !== undefined)
|
|
44
|
+
params.set("limit", String(filters.limit));
|
|
45
|
+
if (filters.offset !== undefined)
|
|
46
|
+
params.set("offset", String(filters.offset));
|
|
47
|
+
const qs = params.toString();
|
|
48
|
+
return fetchWithValidation(`/v1/pricing/cancellation-policy-rules${qs ? `?${qs}` : ""}`, cancellationPolicyRuleListResponse, client);
|
|
49
|
+
},
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
export function getCancellationPolicyRuleQueryOptions(client, id) {
|
|
53
|
+
return queryOptions({
|
|
54
|
+
queryKey: pricingQueryKeys.cancellationPolicyRule(id),
|
|
55
|
+
queryFn: async () => {
|
|
56
|
+
const { data } = await fetchWithValidation(`/v1/pricing/cancellation-policy-rules/${id}`, cancellationPolicyRuleSingleResponse, client);
|
|
57
|
+
return data;
|
|
58
|
+
},
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
//# sourceMappingURL=cancellation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cancellation.js","sourceRoot":"","sources":["../../../src/pricing/query-options/canc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