@aimee.shop/sdk 0.0.1
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 +21 -0
- package/README.md +144 -0
- package/dist/browser/browser-auth.d.ts +115 -0
- package/dist/browser/browser-auth.d.ts.map +1 -0
- package/dist/browser/browser-auth.js +234 -0
- package/dist/browser/browser-auth.js.map +1 -0
- package/dist/browser/index.d.ts +62 -0
- package/dist/browser/index.d.ts.map +1 -0
- package/dist/browser/index.js +69 -0
- package/dist/browser/index.js.map +1 -0
- package/dist/core/auth/api-key.authenticator.d.ts +16 -0
- package/dist/core/auth/api-key.authenticator.d.ts.map +1 -0
- package/dist/core/auth/api-key.authenticator.js +28 -0
- package/dist/core/auth/api-key.authenticator.js.map +1 -0
- package/dist/core/auth/auth-chain.d.ts +33 -0
- package/dist/core/auth/auth-chain.d.ts.map +1 -0
- package/dist/core/auth/auth-chain.js +65 -0
- package/dist/core/auth/auth-chain.js.map +1 -0
- package/dist/core/auth/authenticator.d.ts +19 -0
- package/dist/core/auth/authenticator.d.ts.map +1 -0
- package/dist/core/auth/authenticator.js +2 -0
- package/dist/core/auth/authenticator.js.map +1 -0
- package/dist/core/auth/cognito.authenticator.d.ts +28 -0
- package/dist/core/auth/cognito.authenticator.d.ts.map +1 -0
- package/dist/core/auth/cognito.authenticator.js +89 -0
- package/dist/core/auth/cognito.authenticator.js.map +1 -0
- package/dist/core/auth/index.d.ts +8 -0
- package/dist/core/auth/index.d.ts.map +1 -0
- package/dist/core/auth/index.js +6 -0
- package/dist/core/auth/index.js.map +1 -0
- package/dist/core/auth/interactive.authenticator.d.ts +22 -0
- package/dist/core/auth/interactive.authenticator.d.ts.map +1 -0
- package/dist/core/auth/interactive.authenticator.js +126 -0
- package/dist/core/auth/interactive.authenticator.js.map +1 -0
- package/dist/core/auth/lazy-interactive.authenticator.d.ts +51 -0
- package/dist/core/auth/lazy-interactive.authenticator.d.ts.map +1 -0
- package/dist/core/auth/lazy-interactive.authenticator.js +112 -0
- package/dist/core/auth/lazy-interactive.authenticator.js.map +1 -0
- package/dist/core/auth/token.authenticator.d.ts +20 -0
- package/dist/core/auth/token.authenticator.d.ts.map +1 -0
- package/dist/core/auth/token.authenticator.js +45 -0
- package/dist/core/auth/token.authenticator.js.map +1 -0
- package/dist/core/config.d.ts +72 -0
- package/dist/core/config.d.ts.map +1 -0
- package/dist/core/config.js +120 -0
- package/dist/core/config.js.map +1 -0
- package/dist/core/errors/index.d.ts +101 -0
- package/dist/core/errors/index.d.ts.map +1 -0
- package/dist/core/errors/index.js +119 -0
- package/dist/core/errors/index.js.map +1 -0
- package/dist/core/events/event-envelope.d.ts +34 -0
- package/dist/core/events/event-envelope.d.ts.map +1 -0
- package/dist/core/events/event-envelope.js +2 -0
- package/dist/core/events/event-envelope.js.map +1 -0
- package/dist/core/events/event-names.d.ts +552 -0
- package/dist/core/events/event-names.d.ts.map +1 -0
- package/dist/core/events/event-names.js +593 -0
- package/dist/core/events/event-names.js.map +1 -0
- package/dist/core/events/index.d.ts +4 -0
- package/dist/core/events/index.d.ts.map +1 -0
- package/dist/core/events/index.js +11 -0
- package/dist/core/events/index.js.map +1 -0
- package/dist/core/http-client.d.ts +88 -0
- package/dist/core/http-client.d.ts.map +1 -0
- package/dist/core/http-client.js +293 -0
- package/dist/core/http-client.js.map +1 -0
- package/dist/core/retry.d.ts +48 -0
- package/dist/core/retry.d.ts.map +1 -0
- package/dist/core/retry.js +57 -0
- package/dist/core/retry.js.map +1 -0
- package/dist/core/sdk.d.ts +153 -0
- package/dist/core/sdk.d.ts.map +1 -0
- package/dist/core/sdk.js +327 -0
- package/dist/core/sdk.js.map +1 -0
- package/dist/core/types/address.d.ts +18 -0
- package/dist/core/types/address.d.ts.map +1 -0
- package/dist/core/types/address.js +2 -0
- package/dist/core/types/address.js.map +1 -0
- package/dist/core/types/geo.d.ts +59 -0
- package/dist/core/types/geo.d.ts.map +1 -0
- package/dist/core/types/geo.js +78 -0
- package/dist/core/types/geo.js.map +1 -0
- package/dist/core/types/pagination.d.ts +42 -0
- package/dist/core/types/pagination.d.ts.map +1 -0
- package/dist/core/types/pagination.js +2 -0
- package/dist/core/types/pagination.js.map +1 -0
- package/dist/index.d.ts +68 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +37 -0
- package/dist/index.js.map +1 -0
- package/dist/services/core/assets.client.d.ts +520 -0
- package/dist/services/core/assets.client.d.ts.map +1 -0
- package/dist/services/core/assets.client.js +297 -0
- package/dist/services/core/assets.client.js.map +1 -0
- package/dist/services/core/base-resource.d.ts +70 -0
- package/dist/services/core/base-resource.d.ts.map +1 -0
- package/dist/services/core/base-resource.js +97 -0
- package/dist/services/core/base-resource.js.map +1 -0
- package/dist/services/core/cart-messages/cart-messages.client.d.ts +30 -0
- package/dist/services/core/cart-messages/cart-messages.client.d.ts.map +1 -0
- package/dist/services/core/cart-messages/cart-messages.client.js +30 -0
- package/dist/services/core/cart-messages/cart-messages.client.js.map +1 -0
- package/dist/services/core/cart-messages/index.d.ts +4 -0
- package/dist/services/core/cart-messages/index.d.ts.map +1 -0
- package/dist/services/core/cart-messages/index.js +3 -0
- package/dist/services/core/cart-messages/index.js.map +1 -0
- package/dist/services/core/cart-messages/types.d.ts +106 -0
- package/dist/services/core/cart-messages/types.d.ts.map +1 -0
- package/dist/services/core/cart-messages/types.js +6 -0
- package/dist/services/core/cart-messages/types.js.map +1 -0
- package/dist/services/core/carts.client.d.ts +253 -0
- package/dist/services/core/carts.client.d.ts.map +1 -0
- package/dist/services/core/carts.client.js +110 -0
- package/dist/services/core/carts.client.js.map +1 -0
- package/dist/services/core/categories.client.d.ts +105 -0
- package/dist/services/core/categories.client.d.ts.map +1 -0
- package/dist/services/core/categories.client.js +135 -0
- package/dist/services/core/categories.client.js.map +1 -0
- package/dist/services/core/checkout.client.d.ts +414 -0
- package/dist/services/core/checkout.client.d.ts.map +1 -0
- package/dist/services/core/checkout.client.js +153 -0
- package/dist/services/core/checkout.client.js.map +1 -0
- package/dist/services/core/cms/cms.client.d.ts +111 -0
- package/dist/services/core/cms/cms.client.d.ts.map +1 -0
- package/dist/services/core/cms/cms.client.js +148 -0
- package/dist/services/core/cms/cms.client.js.map +1 -0
- package/dist/services/core/cms/collections.client.d.ts +45 -0
- package/dist/services/core/cms/collections.client.d.ts.map +1 -0
- package/dist/services/core/cms/collections.client.js +67 -0
- package/dist/services/core/cms/collections.client.js.map +1 -0
- package/dist/services/core/cms/content-types.client.d.ts +101 -0
- package/dist/services/core/cms/content-types.client.d.ts.map +1 -0
- package/dist/services/core/cms/content-types.client.js +143 -0
- package/dist/services/core/cms/content-types.client.js.map +1 -0
- package/dist/services/core/cms/entries.client.d.ts +187 -0
- package/dist/services/core/cms/entries.client.d.ts.map +1 -0
- package/dist/services/core/cms/entries.client.js +265 -0
- package/dist/services/core/cms/entries.client.js.map +1 -0
- package/dist/services/core/cms/index.d.ts +10 -0
- package/dist/services/core/cms/index.d.ts.map +1 -0
- package/dist/services/core/cms/index.js +10 -0
- package/dist/services/core/cms/index.js.map +1 -0
- package/dist/services/core/cms/media.client.d.ts +63 -0
- package/dist/services/core/cms/media.client.d.ts.map +1 -0
- package/dist/services/core/cms/media.client.js +95 -0
- package/dist/services/core/cms/media.client.js.map +1 -0
- package/dist/services/core/cms/modules.client.d.ts +64 -0
- package/dist/services/core/cms/modules.client.d.ts.map +1 -0
- package/dist/services/core/cms/modules.client.js +88 -0
- package/dist/services/core/cms/modules.client.js.map +1 -0
- package/dist/services/core/cms/navigation.client.d.ts +78 -0
- package/dist/services/core/cms/navigation.client.d.ts.map +1 -0
- package/dist/services/core/cms/navigation.client.js +116 -0
- package/dist/services/core/cms/navigation.client.js.map +1 -0
- package/dist/services/core/cms/public.client.d.ts +64 -0
- package/dist/services/core/cms/public.client.d.ts.map +1 -0
- package/dist/services/core/cms/public.client.js +102 -0
- package/dist/services/core/cms/public.client.js.map +1 -0
- package/dist/services/core/cms/types.d.ts +804 -0
- package/dist/services/core/cms/types.d.ts.map +1 -0
- package/dist/services/core/cms/types.js +43 -0
- package/dist/services/core/cms/types.js.map +1 -0
- package/dist/services/core/customers.client.d.ts +285 -0
- package/dist/services/core/customers.client.d.ts.map +1 -0
- package/dist/services/core/customers.client.js +133 -0
- package/dist/services/core/customers.client.js.map +1 -0
- package/dist/services/core/discounts.client.d.ts +197 -0
- package/dist/services/core/discounts.client.d.ts.map +1 -0
- package/dist/services/core/discounts.client.js +81 -0
- package/dist/services/core/discounts.client.js.map +1 -0
- package/dist/services/core/exports/exports.client.d.ts +55 -0
- package/dist/services/core/exports/exports.client.d.ts.map +1 -0
- package/dist/services/core/exports/exports.client.js +80 -0
- package/dist/services/core/exports/exports.client.js.map +1 -0
- package/dist/services/core/exports/index.d.ts +4 -0
- package/dist/services/core/exports/index.d.ts.map +1 -0
- package/dist/services/core/exports/index.js +3 -0
- package/dist/services/core/exports/index.js.map +1 -0
- package/dist/services/core/exports/types.d.ts +68 -0
- package/dist/services/core/exports/types.d.ts.map +1 -0
- package/dist/services/core/exports/types.js +25 -0
- package/dist/services/core/exports/types.js.map +1 -0
- package/dist/services/core/facets.client.d.ts +127 -0
- package/dist/services/core/facets.client.d.ts.map +1 -0
- package/dist/services/core/facets.client.js +81 -0
- package/dist/services/core/facets.client.js.map +1 -0
- package/dist/services/core/fulfillments.client.d.ts +94 -0
- package/dist/services/core/fulfillments.client.d.ts.map +1 -0
- package/dist/services/core/fulfillments.client.js +66 -0
- package/dist/services/core/fulfillments.client.js.map +1 -0
- package/dist/services/core/inventory/adjustments.client.d.ts +60 -0
- package/dist/services/core/inventory/adjustments.client.d.ts.map +1 -0
- package/dist/services/core/inventory/adjustments.client.js +76 -0
- package/dist/services/core/inventory/adjustments.client.js.map +1 -0
- package/dist/services/core/inventory/index.d.ts +8 -0
- package/dist/services/core/inventory/index.d.ts.map +1 -0
- package/dist/services/core/inventory/index.js +7 -0
- package/dist/services/core/inventory/index.js.map +1 -0
- package/dist/services/core/inventory/inventory.client.d.ts +90 -0
- package/dist/services/core/inventory/inventory.client.d.ts.map +1 -0
- package/dist/services/core/inventory/inventory.client.js +135 -0
- package/dist/services/core/inventory/inventory.client.js.map +1 -0
- package/dist/services/core/inventory/locations.client.d.ts +71 -0
- package/dist/services/core/inventory/locations.client.d.ts.map +1 -0
- package/dist/services/core/inventory/locations.client.js +107 -0
- package/dist/services/core/inventory/locations.client.js.map +1 -0
- package/dist/services/core/inventory/reservations.client.d.ts +58 -0
- package/dist/services/core/inventory/reservations.client.d.ts.map +1 -0
- package/dist/services/core/inventory/reservations.client.js +87 -0
- package/dist/services/core/inventory/reservations.client.js.map +1 -0
- package/dist/services/core/inventory/stock.client.d.ts +74 -0
- package/dist/services/core/inventory/stock.client.d.ts.map +1 -0
- package/dist/services/core/inventory/stock.client.js +113 -0
- package/dist/services/core/inventory/stock.client.js.map +1 -0
- package/dist/services/core/inventory/types.d.ts +337 -0
- package/dist/services/core/inventory/types.d.ts.map +1 -0
- package/dist/services/core/inventory/types.js +2 -0
- package/dist/services/core/inventory/types.js.map +1 -0
- package/dist/services/core/invoices.client.d.ts +92 -0
- package/dist/services/core/invoices.client.d.ts.map +1 -0
- package/dist/services/core/invoices.client.js +68 -0
- package/dist/services/core/invoices.client.js.map +1 -0
- package/dist/services/core/notification-config.client.d.ts +57 -0
- package/dist/services/core/notification-config.client.d.ts.map +1 -0
- package/dist/services/core/notification-config.client.js +41 -0
- package/dist/services/core/notification-config.client.js.map +1 -0
- package/dist/services/core/openai-feed.client.d.ts +90 -0
- package/dist/services/core/openai-feed.client.d.ts.map +1 -0
- package/dist/services/core/openai-feed.client.js +63 -0
- package/dist/services/core/openai-feed.client.js.map +1 -0
- package/dist/services/core/option-types.client.d.ts +119 -0
- package/dist/services/core/option-types.client.d.ts.map +1 -0
- package/dist/services/core/option-types.client.js +81 -0
- package/dist/services/core/option-types.client.js.map +1 -0
- package/dist/services/core/option-values.client.d.ts +72 -0
- package/dist/services/core/option-values.client.d.ts.map +1 -0
- package/dist/services/core/option-values.client.js +64 -0
- package/dist/services/core/option-values.client.js.map +1 -0
- package/dist/services/core/order-edits.client.d.ts +88 -0
- package/dist/services/core/order-edits.client.d.ts.map +1 -0
- package/dist/services/core/order-edits.client.js +62 -0
- package/dist/services/core/order-edits.client.js.map +1 -0
- package/dist/services/core/orders.client.d.ts +284 -0
- package/dist/services/core/orders.client.d.ts.map +1 -0
- package/dist/services/core/orders.client.js +150 -0
- package/dist/services/core/orders.client.js.map +1 -0
- package/dist/services/core/pricing/currencies.client.d.ts +109 -0
- package/dist/services/core/pricing/currencies.client.d.ts.map +1 -0
- package/dist/services/core/pricing/currencies.client.js +145 -0
- package/dist/services/core/pricing/currencies.client.js.map +1 -0
- package/dist/services/core/pricing/customer-groups.client.d.ts +126 -0
- package/dist/services/core/pricing/customer-groups.client.d.ts.map +1 -0
- package/dist/services/core/pricing/customer-groups.client.js +154 -0
- package/dist/services/core/pricing/customer-groups.client.js.map +1 -0
- package/dist/services/core/pricing/geo-zones.client.d.ts +89 -0
- package/dist/services/core/pricing/geo-zones.client.d.ts.map +1 -0
- package/dist/services/core/pricing/geo-zones.client.js +116 -0
- package/dist/services/core/pricing/geo-zones.client.js.map +1 -0
- package/dist/services/core/pricing/index.d.ts +13 -0
- package/dist/services/core/pricing/index.d.ts.map +1 -0
- package/dist/services/core/pricing/index.js +13 -0
- package/dist/services/core/pricing/index.js.map +1 -0
- package/dist/services/core/pricing/markets.client.d.ts +154 -0
- package/dist/services/core/pricing/markets.client.d.ts.map +1 -0
- package/dist/services/core/pricing/markets.client.js +194 -0
- package/dist/services/core/pricing/markets.client.js.map +1 -0
- package/dist/services/core/pricing/pricing.client.d.ts +280 -0
- package/dist/services/core/pricing/pricing.client.d.ts.map +1 -0
- package/dist/services/core/pricing/pricing.client.js +363 -0
- package/dist/services/core/pricing/pricing.client.js.map +1 -0
- package/dist/services/core/pricing/product-geo-restrictions.client.d.ts +79 -0
- package/dist/services/core/pricing/product-geo-restrictions.client.d.ts.map +1 -0
- package/dist/services/core/pricing/product-geo-restrictions.client.js +109 -0
- package/dist/services/core/pricing/product-geo-restrictions.client.js.map +1 -0
- package/dist/services/core/pricing/product-market-settings.client.d.ts +168 -0
- package/dist/services/core/pricing/product-market-settings.client.d.ts.map +1 -0
- package/dist/services/core/pricing/product-market-settings.client.js +213 -0
- package/dist/services/core/pricing/product-market-settings.client.js.map +1 -0
- package/dist/services/core/pricing/rules.client.d.ts +46 -0
- package/dist/services/core/pricing/rules.client.d.ts.map +1 -0
- package/dist/services/core/pricing/rules.client.js +57 -0
- package/dist/services/core/pricing/rules.client.js.map +1 -0
- package/dist/services/core/pricing/store-markets.client.d.ts +168 -0
- package/dist/services/core/pricing/store-markets.client.d.ts.map +1 -0
- package/dist/services/core/pricing/store-markets.client.js +209 -0
- package/dist/services/core/pricing/store-markets.client.js.map +1 -0
- package/dist/services/core/pricing/tiers.client.d.ts +57 -0
- package/dist/services/core/pricing/tiers.client.d.ts.map +1 -0
- package/dist/services/core/pricing/tiers.client.js +72 -0
- package/dist/services/core/pricing/tiers.client.js.map +1 -0
- package/dist/services/core/pricing/types.d.ts +782 -0
- package/dist/services/core/pricing/types.d.ts.map +1 -0
- package/dist/services/core/pricing/types.js +2 -0
- package/dist/services/core/pricing/types.js.map +1 -0
- package/dist/services/core/pricing/variant-prices.client.d.ts +307 -0
- package/dist/services/core/pricing/variant-prices.client.d.ts.map +1 -0
- package/dist/services/core/pricing/variant-prices.client.js +347 -0
- package/dist/services/core/pricing/variant-prices.client.js.map +1 -0
- package/dist/services/core/product-relations.client.d.ts +260 -0
- package/dist/services/core/product-relations.client.d.ts.map +1 -0
- package/dist/services/core/product-relations.client.js +141 -0
- package/dist/services/core/product-relations.client.js.map +1 -0
- package/dist/services/core/products.client.d.ts +564 -0
- package/dist/services/core/products.client.d.ts.map +1 -0
- package/dist/services/core/products.client.js +277 -0
- package/dist/services/core/products.client.js.map +1 -0
- package/dist/services/core/returns.client.d.ts +199 -0
- package/dist/services/core/returns.client.d.ts.map +1 -0
- package/dist/services/core/returns.client.js +106 -0
- package/dist/services/core/returns.client.js.map +1 -0
- package/dist/services/core/reviews.client.d.ts +218 -0
- package/dist/services/core/reviews.client.d.ts.map +1 -0
- package/dist/services/core/reviews.client.js +161 -0
- package/dist/services/core/reviews.client.js.map +1 -0
- package/dist/services/core/search.client.d.ts +127 -0
- package/dist/services/core/search.client.d.ts.map +1 -0
- package/dist/services/core/search.client.js +120 -0
- package/dist/services/core/search.client.js.map +1 -0
- package/dist/services/core/shipping/classes.client.d.ts +20 -0
- package/dist/services/core/shipping/classes.client.d.ts.map +1 -0
- package/dist/services/core/shipping/classes.client.js +43 -0
- package/dist/services/core/shipping/classes.client.js.map +1 -0
- package/dist/services/core/shipping/index.d.ts +11 -0
- package/dist/services/core/shipping/index.d.ts.map +1 -0
- package/dist/services/core/shipping/index.js +11 -0
- package/dist/services/core/shipping/index.js.map +1 -0
- package/dist/services/core/shipping/labels.client.d.ts +20 -0
- package/dist/services/core/shipping/labels.client.d.ts.map +1 -0
- package/dist/services/core/shipping/labels.client.js +49 -0
- package/dist/services/core/shipping/labels.client.js.map +1 -0
- package/dist/services/core/shipping/providers.client.d.ts +19 -0
- package/dist/services/core/shipping/providers.client.d.ts.map +1 -0
- package/dist/services/core/shipping/providers.client.js +46 -0
- package/dist/services/core/shipping/providers.client.js.map +1 -0
- package/dist/services/core/shipping/rates.client.d.ts +19 -0
- package/dist/services/core/shipping/rates.client.d.ts.map +1 -0
- package/dist/services/core/shipping/rates.client.js +37 -0
- package/dist/services/core/shipping/rates.client.js.map +1 -0
- package/dist/services/core/shipping/rules.client.d.ts +17 -0
- package/dist/services/core/shipping/rules.client.d.ts.map +1 -0
- package/dist/services/core/shipping/rules.client.js +34 -0
- package/dist/services/core/shipping/rules.client.js.map +1 -0
- package/dist/services/core/shipping/shipper-identity.client.d.ts +49 -0
- package/dist/services/core/shipping/shipper-identity.client.d.ts.map +1 -0
- package/dist/services/core/shipping/shipper-identity.client.js +61 -0
- package/dist/services/core/shipping/shipper-identity.client.js.map +1 -0
- package/dist/services/core/shipping/shipping.client.d.ts +99 -0
- package/dist/services/core/shipping/shipping.client.d.ts.map +1 -0
- package/dist/services/core/shipping/shipping.client.js +165 -0
- package/dist/services/core/shipping/shipping.client.js.map +1 -0
- package/dist/services/core/shipping/store-providers.client.d.ts +48 -0
- package/dist/services/core/shipping/store-providers.client.d.ts.map +1 -0
- package/dist/services/core/shipping/store-providers.client.js +59 -0
- package/dist/services/core/shipping/store-providers.client.js.map +1 -0
- package/dist/services/core/shipping/types.d.ts +488 -0
- package/dist/services/core/shipping/types.d.ts.map +1 -0
- package/dist/services/core/shipping/types.js +3 -0
- package/dist/services/core/shipping/types.js.map +1 -0
- package/dist/services/core/shipping/zones.client.d.ts +16 -0
- package/dist/services/core/shipping/zones.client.d.ts.map +1 -0
- package/dist/services/core/shipping/zones.client.js +29 -0
- package/dist/services/core/shipping/zones.client.js.map +1 -0
- package/dist/services/core/storefront/index.d.ts +10 -0
- package/dist/services/core/storefront/index.d.ts.map +1 -0
- package/dist/services/core/storefront/index.js +10 -0
- package/dist/services/core/storefront/index.js.map +1 -0
- package/dist/services/core/storefront/storefront-addresses.client.d.ts +67 -0
- package/dist/services/core/storefront/storefront-addresses.client.d.ts.map +1 -0
- package/dist/services/core/storefront/storefront-addresses.client.js +95 -0
- package/dist/services/core/storefront/storefront-addresses.client.js.map +1 -0
- package/dist/services/core/storefront/storefront-auth.client.d.ts +104 -0
- package/dist/services/core/storefront/storefront-auth.client.d.ts.map +1 -0
- package/dist/services/core/storefront/storefront-auth.client.js +132 -0
- package/dist/services/core/storefront/storefront-auth.client.js.map +1 -0
- package/dist/services/core/storefront/storefront-orders.client.d.ts +73 -0
- package/dist/services/core/storefront/storefront-orders.client.d.ts.map +1 -0
- package/dist/services/core/storefront/storefront-orders.client.js +78 -0
- package/dist/services/core/storefront/storefront-orders.client.js.map +1 -0
- package/dist/services/core/storefront/storefront-plans.client.d.ts +76 -0
- package/dist/services/core/storefront/storefront-plans.client.d.ts.map +1 -0
- package/dist/services/core/storefront/storefront-plans.client.js +52 -0
- package/dist/services/core/storefront/storefront-plans.client.js.map +1 -0
- package/dist/services/core/storefront/storefront-reviews.client.d.ts +60 -0
- package/dist/services/core/storefront/storefront-reviews.client.d.ts.map +1 -0
- package/dist/services/core/storefront/storefront-reviews.client.js +88 -0
- package/dist/services/core/storefront/storefront-reviews.client.js.map +1 -0
- package/dist/services/core/storefront/storefront-subscriptions.client.d.ts +199 -0
- package/dist/services/core/storefront/storefront-subscriptions.client.d.ts.map +1 -0
- package/dist/services/core/storefront/storefront-subscriptions.client.js +149 -0
- package/dist/services/core/storefront/storefront-subscriptions.client.js.map +1 -0
- package/dist/services/core/storefront/storefront.client.d.ts +166 -0
- package/dist/services/core/storefront/storefront.client.d.ts.map +1 -0
- package/dist/services/core/storefront/storefront.client.js +228 -0
- package/dist/services/core/storefront/storefront.client.js.map +1 -0
- package/dist/services/core/storefront/types.d.ts +131 -0
- package/dist/services/core/storefront/types.d.ts.map +1 -0
- package/dist/services/core/storefront/types.js +3 -0
- package/dist/services/core/storefront/types.js.map +1 -0
- package/dist/services/core/storefront-redirects/index.d.ts +4 -0
- package/dist/services/core/storefront-redirects/index.d.ts.map +1 -0
- package/dist/services/core/storefront-redirects/index.js +3 -0
- package/dist/services/core/storefront-redirects/index.js.map +1 -0
- package/dist/services/core/storefront-redirects/storefront-redirects.client.d.ts +79 -0
- package/dist/services/core/storefront-redirects/storefront-redirects.client.d.ts.map +1 -0
- package/dist/services/core/storefront-redirects/storefront-redirects.client.js +132 -0
- package/dist/services/core/storefront-redirects/storefront-redirects.client.js.map +1 -0
- package/dist/services/core/storefront-redirects/storefront-redirects.public.client.d.ts +35 -0
- package/dist/services/core/storefront-redirects/storefront-redirects.public.client.d.ts.map +1 -0
- package/dist/services/core/storefront-redirects/storefront-redirects.public.client.js +42 -0
- package/dist/services/core/storefront-redirects/storefront-redirects.public.client.js.map +1 -0
- package/dist/services/core/storefront-redirects/types.d.ts +117 -0
- package/dist/services/core/storefront-redirects/types.d.ts.map +1 -0
- package/dist/services/core/storefront-redirects/types.js +2 -0
- package/dist/services/core/storefront-redirects/types.js.map +1 -0
- package/dist/services/core/stores/ai-discovery.client.d.ts +98 -0
- package/dist/services/core/stores/ai-discovery.client.d.ts.map +1 -0
- package/dist/services/core/stores/ai-discovery.client.js +72 -0
- package/dist/services/core/stores/ai-discovery.client.js.map +1 -0
- package/dist/services/core/stores/configuration.client.d.ts +238 -0
- package/dist/services/core/stores/configuration.client.d.ts.map +1 -0
- package/dist/services/core/stores/configuration.client.js +88 -0
- package/dist/services/core/stores/configuration.client.js.map +1 -0
- package/dist/services/core/stores/index.d.ts +11 -0
- package/dist/services/core/stores/index.d.ts.map +1 -0
- package/dist/services/core/stores/index.js +6 -0
- package/dist/services/core/stores/index.js.map +1 -0
- package/dist/services/core/stores/members.client.d.ts +91 -0
- package/dist/services/core/stores/members.client.d.ts.map +1 -0
- package/dist/services/core/stores/members.client.js +70 -0
- package/dist/services/core/stores/members.client.js.map +1 -0
- package/dist/services/core/stores/stores.client.d.ts +190 -0
- package/dist/services/core/stores/stores.client.d.ts.map +1 -0
- package/dist/services/core/stores/stores.client.js +177 -0
- package/dist/services/core/stores/stores.client.js.map +1 -0
- package/dist/services/core/stores/theme.types.d.ts +109 -0
- package/dist/services/core/stores/theme.types.d.ts.map +1 -0
- package/dist/services/core/stores/theme.types.js +27 -0
- package/dist/services/core/stores/theme.types.js.map +1 -0
- package/dist/services/core/taxes/index.d.ts +7 -0
- package/dist/services/core/taxes/index.d.ts.map +1 -0
- package/dist/services/core/taxes/index.js +7 -0
- package/dist/services/core/taxes/index.js.map +1 -0
- package/dist/services/core/taxes/jurisdictions.client.d.ts +61 -0
- package/dist/services/core/taxes/jurisdictions.client.d.ts.map +1 -0
- package/dist/services/core/taxes/jurisdictions.client.js +93 -0
- package/dist/services/core/taxes/jurisdictions.client.js.map +1 -0
- package/dist/services/core/taxes/providers.client.d.ts +111 -0
- package/dist/services/core/taxes/providers.client.d.ts.map +1 -0
- package/dist/services/core/taxes/providers.client.js +188 -0
- package/dist/services/core/taxes/providers.client.js.map +1 -0
- package/dist/services/core/taxes/rates.client.d.ts +63 -0
- package/dist/services/core/taxes/rates.client.d.ts.map +1 -0
- package/dist/services/core/taxes/rates.client.js +97 -0
- package/dist/services/core/taxes/rates.client.js.map +1 -0
- package/dist/services/core/taxes/store-providers.client.d.ts +48 -0
- package/dist/services/core/taxes/store-providers.client.d.ts.map +1 -0
- package/dist/services/core/taxes/store-providers.client.js +59 -0
- package/dist/services/core/taxes/store-providers.client.js.map +1 -0
- package/dist/services/core/taxes/taxes.client.d.ts +81 -0
- package/dist/services/core/taxes/taxes.client.d.ts.map +1 -0
- package/dist/services/core/taxes/taxes.client.js +117 -0
- package/dist/services/core/taxes/taxes.client.js.map +1 -0
- package/dist/services/core/taxes/types.d.ts +406 -0
- package/dist/services/core/taxes/types.d.ts.map +1 -0
- package/dist/services/core/taxes/types.js +3 -0
- package/dist/services/core/taxes/types.js.map +1 -0
- package/dist/services/core/variants.client.d.ts +415 -0
- package/dist/services/core/variants.client.d.ts.map +1 -0
- package/dist/services/core/variants.client.js +289 -0
- package/dist/services/core/variants.client.js.map +1 -0
- package/dist/services/core/wishlists.client.d.ts +151 -0
- package/dist/services/core/wishlists.client.d.ts.map +1 -0
- package/dist/services/core/wishlists.client.js +125 -0
- package/dist/services/core/wishlists.client.js.map +1 -0
- package/dist/storefront/index.d.ts +152 -0
- package/dist/storefront/index.d.ts.map +1 -0
- package/dist/storefront/index.js +189 -0
- package/dist/storefront/index.js.map +1 -0
- package/package.json +66 -0
|
@@ -0,0 +1,782 @@
|
|
|
1
|
+
import type { GeoRestrictionMode } from '../../../core/types/geo.js';
|
|
2
|
+
export type { GeoRestrictionMode };
|
|
3
|
+
export interface Pricing {
|
|
4
|
+
id: string;
|
|
5
|
+
tenantId: string;
|
|
6
|
+
storeId: string;
|
|
7
|
+
variantId: string;
|
|
8
|
+
basePrice: string;
|
|
9
|
+
currency: string;
|
|
10
|
+
region?: string;
|
|
11
|
+
cost?: string;
|
|
12
|
+
effectiveFrom: string;
|
|
13
|
+
effectiveTo?: string;
|
|
14
|
+
createdAt: string;
|
|
15
|
+
updatedAt: string;
|
|
16
|
+
}
|
|
17
|
+
export interface CreatePricingDto {
|
|
18
|
+
variantId: string;
|
|
19
|
+
basePrice: string;
|
|
20
|
+
currency?: string;
|
|
21
|
+
region?: string;
|
|
22
|
+
cost?: string;
|
|
23
|
+
effectiveFrom?: string;
|
|
24
|
+
effectiveTo?: string;
|
|
25
|
+
}
|
|
26
|
+
export interface UpdatePricingDto {
|
|
27
|
+
variantId?: string;
|
|
28
|
+
basePrice?: string;
|
|
29
|
+
currency?: string;
|
|
30
|
+
region?: string;
|
|
31
|
+
cost?: string;
|
|
32
|
+
effectiveFrom?: string;
|
|
33
|
+
effectiveTo?: string;
|
|
34
|
+
}
|
|
35
|
+
export interface CalculatePriceDto {
|
|
36
|
+
variantId: string;
|
|
37
|
+
quantity: number;
|
|
38
|
+
customerId?: string;
|
|
39
|
+
region?: string;
|
|
40
|
+
currency?: string;
|
|
41
|
+
customerGroup?: string;
|
|
42
|
+
promoCode?: string;
|
|
43
|
+
context?: Record<string, unknown>;
|
|
44
|
+
}
|
|
45
|
+
export interface AppliedRule {
|
|
46
|
+
ruleId: string;
|
|
47
|
+
ruleName: string;
|
|
48
|
+
ruleType: string;
|
|
49
|
+
discountAmount: string;
|
|
50
|
+
discountType: string;
|
|
51
|
+
}
|
|
52
|
+
export interface PriceBreakdown {
|
|
53
|
+
subtotal: string;
|
|
54
|
+
discounts: string;
|
|
55
|
+
taxes: string;
|
|
56
|
+
total: string;
|
|
57
|
+
}
|
|
58
|
+
export interface TierInfo {
|
|
59
|
+
tierId: string;
|
|
60
|
+
minQuantity: number;
|
|
61
|
+
maxQuantity?: number;
|
|
62
|
+
discountType: string;
|
|
63
|
+
discountValue?: string;
|
|
64
|
+
}
|
|
65
|
+
export interface CalculatePriceResult {
|
|
66
|
+
variantId: string;
|
|
67
|
+
quantity: number;
|
|
68
|
+
basePrice: string;
|
|
69
|
+
finalPrice: string;
|
|
70
|
+
totalPrice: string;
|
|
71
|
+
currency: string;
|
|
72
|
+
appliedRules: AppliedRule[];
|
|
73
|
+
priceBreakdown: PriceBreakdown;
|
|
74
|
+
calculatedAt: string;
|
|
75
|
+
tierInfo?: TierInfo;
|
|
76
|
+
}
|
|
77
|
+
export interface VariantPricing {
|
|
78
|
+
basePrice: string;
|
|
79
|
+
currency: string;
|
|
80
|
+
effectiveFrom: string;
|
|
81
|
+
effectiveTo?: string;
|
|
82
|
+
}
|
|
83
|
+
export interface BulkPricingResult {
|
|
84
|
+
[variantId: string]: VariantPricing;
|
|
85
|
+
}
|
|
86
|
+
export interface SyncFromErpDto {
|
|
87
|
+
variantId: string;
|
|
88
|
+
basePrice: number;
|
|
89
|
+
currency: string;
|
|
90
|
+
cost?: number;
|
|
91
|
+
effectiveFrom?: string;
|
|
92
|
+
effectiveTo?: string;
|
|
93
|
+
erpSystemId: string;
|
|
94
|
+
metadata?: Record<string, unknown>;
|
|
95
|
+
}
|
|
96
|
+
export type PricingRuleType = 'quantityBreak' | 'customerGroup' | 'geographic' | 'timeBased';
|
|
97
|
+
export interface PricingRule {
|
|
98
|
+
id: string;
|
|
99
|
+
tenantId: string;
|
|
100
|
+
storeId: string;
|
|
101
|
+
name: string;
|
|
102
|
+
description?: string;
|
|
103
|
+
ruleType: PricingRuleType;
|
|
104
|
+
conditions: Record<string, unknown>;
|
|
105
|
+
actions: Record<string, unknown>;
|
|
106
|
+
priority: number;
|
|
107
|
+
isActive: boolean;
|
|
108
|
+
startsAt: string;
|
|
109
|
+
endsAt?: string;
|
|
110
|
+
createdAt: string;
|
|
111
|
+
updatedAt: string;
|
|
112
|
+
}
|
|
113
|
+
export interface CreatePricingRuleDto {
|
|
114
|
+
name: string;
|
|
115
|
+
description?: string;
|
|
116
|
+
ruleType: PricingRuleType;
|
|
117
|
+
conditions: Record<string, unknown>;
|
|
118
|
+
actions: Record<string, unknown>;
|
|
119
|
+
priority?: number;
|
|
120
|
+
isActive?: boolean;
|
|
121
|
+
startsAt?: string;
|
|
122
|
+
endsAt?: string;
|
|
123
|
+
}
|
|
124
|
+
export interface UpdatePricingRuleDto {
|
|
125
|
+
name?: string;
|
|
126
|
+
description?: string;
|
|
127
|
+
ruleType?: PricingRuleType;
|
|
128
|
+
conditions?: Record<string, unknown>;
|
|
129
|
+
actions?: Record<string, unknown>;
|
|
130
|
+
priority?: number;
|
|
131
|
+
isActive?: boolean;
|
|
132
|
+
startsAt?: string;
|
|
133
|
+
endsAt?: string;
|
|
134
|
+
}
|
|
135
|
+
export type TierDiscountType = 'percentage' | 'fixedAmount' | 'priceOverride';
|
|
136
|
+
export interface PricingTier {
|
|
137
|
+
id: string;
|
|
138
|
+
pricingRuleId: string;
|
|
139
|
+
minQuantity: number;
|
|
140
|
+
maxQuantity?: number;
|
|
141
|
+
discountType: TierDiscountType;
|
|
142
|
+
discountValue?: string;
|
|
143
|
+
priceOverride?: string;
|
|
144
|
+
currency: string;
|
|
145
|
+
createdAt: string;
|
|
146
|
+
}
|
|
147
|
+
export interface CreatePricingTierDto {
|
|
148
|
+
pricingRuleId: string;
|
|
149
|
+
minQuantity: number;
|
|
150
|
+
maxQuantity?: number;
|
|
151
|
+
discountType: TierDiscountType;
|
|
152
|
+
discountValue?: string;
|
|
153
|
+
priceOverride?: string;
|
|
154
|
+
currency?: string;
|
|
155
|
+
}
|
|
156
|
+
export interface UpdatePricingTierDto {
|
|
157
|
+
minQuantity?: number;
|
|
158
|
+
maxQuantity?: number;
|
|
159
|
+
discountType?: TierDiscountType;
|
|
160
|
+
discountValue?: string;
|
|
161
|
+
priceOverride?: string;
|
|
162
|
+
currency?: string;
|
|
163
|
+
}
|
|
164
|
+
export interface BulkCreateTiersDto {
|
|
165
|
+
tiers: Omit<CreatePricingTierDto, 'pricingRuleId'>[];
|
|
166
|
+
}
|
|
167
|
+
export interface TierStructure {
|
|
168
|
+
id: string;
|
|
169
|
+
quantityRange: {
|
|
170
|
+
min: number;
|
|
171
|
+
max?: number;
|
|
172
|
+
};
|
|
173
|
+
discount: {
|
|
174
|
+
type: string;
|
|
175
|
+
value?: string;
|
|
176
|
+
priceOverride?: string;
|
|
177
|
+
};
|
|
178
|
+
currency: string;
|
|
179
|
+
}
|
|
180
|
+
export interface Currency {
|
|
181
|
+
id: string;
|
|
182
|
+
tenantId: string;
|
|
183
|
+
storeId: string;
|
|
184
|
+
code: string;
|
|
185
|
+
name: string;
|
|
186
|
+
symbol: string;
|
|
187
|
+
decimalPlaces: number;
|
|
188
|
+
isEnabled: boolean;
|
|
189
|
+
isDefault: boolean;
|
|
190
|
+
exchangeRate?: string;
|
|
191
|
+
rateUpdatedAt?: string;
|
|
192
|
+
createdAt: string;
|
|
193
|
+
updatedAt: string;
|
|
194
|
+
}
|
|
195
|
+
export interface CreateCurrencyDto {
|
|
196
|
+
code: string;
|
|
197
|
+
name: string;
|
|
198
|
+
symbol: string;
|
|
199
|
+
decimalPlaces?: number;
|
|
200
|
+
isEnabled?: boolean;
|
|
201
|
+
isDefault?: boolean;
|
|
202
|
+
exchangeRate?: string;
|
|
203
|
+
}
|
|
204
|
+
export interface UpdateCurrencyDto {
|
|
205
|
+
name?: string;
|
|
206
|
+
symbol?: string;
|
|
207
|
+
decimalPlaces?: number;
|
|
208
|
+
isEnabled?: boolean;
|
|
209
|
+
isDefault?: boolean;
|
|
210
|
+
exchangeRate?: string;
|
|
211
|
+
}
|
|
212
|
+
export interface CurrencyConversionDto {
|
|
213
|
+
amount: number;
|
|
214
|
+
fromCurrency: string;
|
|
215
|
+
toCurrency: string;
|
|
216
|
+
}
|
|
217
|
+
export interface CurrencyConversionResult {
|
|
218
|
+
originalAmount: number;
|
|
219
|
+
convertedAmount: number;
|
|
220
|
+
fromCurrency: string;
|
|
221
|
+
toCurrency: string;
|
|
222
|
+
exchangeRate: number;
|
|
223
|
+
convertedAt: string;
|
|
224
|
+
}
|
|
225
|
+
export interface ExchangeRateUpdate {
|
|
226
|
+
code: string;
|
|
227
|
+
rate: number;
|
|
228
|
+
}
|
|
229
|
+
export interface ExchangeRateResult {
|
|
230
|
+
fromCurrency: string;
|
|
231
|
+
toCurrency: string;
|
|
232
|
+
/** The exchange rate (1 fromCurrency = rate toCurrency) */
|
|
233
|
+
rate: string;
|
|
234
|
+
/** Rate provider: 'manual', 'frankfurter', 'ecb', 'identity', etc. */
|
|
235
|
+
provider: string;
|
|
236
|
+
retrievedAt: string;
|
|
237
|
+
}
|
|
238
|
+
export interface AllExchangeRatesResult {
|
|
239
|
+
baseCurrency: string;
|
|
240
|
+
/** Map of currency code to exchange rate */
|
|
241
|
+
rates: Record<string, string>;
|
|
242
|
+
provider: string;
|
|
243
|
+
retrievedAt: string;
|
|
244
|
+
}
|
|
245
|
+
export interface CurrencyFilters {
|
|
246
|
+
enabledOnly?: boolean;
|
|
247
|
+
}
|
|
248
|
+
export interface RefreshRatesResult {
|
|
249
|
+
success: boolean;
|
|
250
|
+
provider: string;
|
|
251
|
+
baseCurrency: string;
|
|
252
|
+
ratesUpdated: number;
|
|
253
|
+
ratesDate: string;
|
|
254
|
+
fromCache: boolean;
|
|
255
|
+
updatedCurrencies: string[];
|
|
256
|
+
errors?: string[];
|
|
257
|
+
}
|
|
258
|
+
export type ExchangeRateMode = 'auto' | 'manual';
|
|
259
|
+
/**
|
|
260
|
+
* Exchange rate included with market when requested via ?include=exchangeRates
|
|
261
|
+
*/
|
|
262
|
+
export interface MarketExchangeRate {
|
|
263
|
+
currency: string;
|
|
264
|
+
rate: string;
|
|
265
|
+
provider: string;
|
|
266
|
+
updatedAt: string;
|
|
267
|
+
}
|
|
268
|
+
/**
|
|
269
|
+
* Selling region that groups countries with a default currency.
|
|
270
|
+
* Markets are tenant-scoped and can be enabled per-store via StoreMarketSettings.
|
|
271
|
+
*/
|
|
272
|
+
export interface Market {
|
|
273
|
+
id: string;
|
|
274
|
+
tenantId: string;
|
|
275
|
+
name: string;
|
|
276
|
+
code: string;
|
|
277
|
+
countries: string[];
|
|
278
|
+
currencies: string[];
|
|
279
|
+
defaultCurrency: string;
|
|
280
|
+
/**
|
|
281
|
+
* Exchange rate mode: "auto" fetches from provider, "manual" uses rates from ExchangeRate table.
|
|
282
|
+
* Manual rates can be set via manualExchangeRates in CreateMarketDto/UpdateMarketDto.
|
|
283
|
+
*/
|
|
284
|
+
exchangeRateMode: ExchangeRateMode;
|
|
285
|
+
isActive: boolean;
|
|
286
|
+
createdAt: string;
|
|
287
|
+
updatedAt: string;
|
|
288
|
+
deletedAt: string | null;
|
|
289
|
+
/**
|
|
290
|
+
* Exchange rates for this market's currencies. Only included when requested via ?include=exchangeRates
|
|
291
|
+
*/
|
|
292
|
+
exchangeRates?: MarketExchangeRate[];
|
|
293
|
+
}
|
|
294
|
+
export interface MarketList {
|
|
295
|
+
data: Market[];
|
|
296
|
+
total: number;
|
|
297
|
+
skip?: number;
|
|
298
|
+
take?: number;
|
|
299
|
+
}
|
|
300
|
+
export interface CreateMarketDto {
|
|
301
|
+
name: string;
|
|
302
|
+
code: string;
|
|
303
|
+
countries: string[];
|
|
304
|
+
currencies: string[];
|
|
305
|
+
defaultCurrency: string;
|
|
306
|
+
exchangeRateMode?: ExchangeRateMode;
|
|
307
|
+
/**
|
|
308
|
+
* Manual exchange rates from defaultCurrency to other currencies.
|
|
309
|
+
* Keys are ISO 4217 codes, values are decimal rate strings.
|
|
310
|
+
* These are stored in the ExchangeRate table with provider: 'manual'.
|
|
311
|
+
*/
|
|
312
|
+
manualExchangeRates?: Record<string, string>;
|
|
313
|
+
isActive?: boolean;
|
|
314
|
+
}
|
|
315
|
+
export interface UpdateMarketDto {
|
|
316
|
+
name?: string;
|
|
317
|
+
countries?: string[];
|
|
318
|
+
currencies?: string[];
|
|
319
|
+
defaultCurrency?: string;
|
|
320
|
+
exchangeRateMode?: ExchangeRateMode;
|
|
321
|
+
/**
|
|
322
|
+
* Manual exchange rates from defaultCurrency to other currencies.
|
|
323
|
+
* Keys are ISO 4217 codes, values are decimal rate strings.
|
|
324
|
+
* These are stored in the ExchangeRate table with provider: 'manual'.
|
|
325
|
+
*/
|
|
326
|
+
manualExchangeRates?: Record<string, string>;
|
|
327
|
+
isActive?: boolean;
|
|
328
|
+
}
|
|
329
|
+
export interface MarketFilters {
|
|
330
|
+
activeOnly?: boolean;
|
|
331
|
+
skip?: number;
|
|
332
|
+
take?: number;
|
|
333
|
+
}
|
|
334
|
+
export type MarketInclude = 'exchangeRates';
|
|
335
|
+
export interface MarketGetOptions {
|
|
336
|
+
/** Include related data in the response */
|
|
337
|
+
include?: MarketInclude[];
|
|
338
|
+
}
|
|
339
|
+
export interface MarketPriceCount {
|
|
340
|
+
marketId: string;
|
|
341
|
+
priceCount: number;
|
|
342
|
+
}
|
|
343
|
+
export interface MarketDeletePricesResult {
|
|
344
|
+
marketId: string;
|
|
345
|
+
deletedCount: number;
|
|
346
|
+
}
|
|
347
|
+
/**
|
|
348
|
+
* Summary of a market for inclusion in store settings.
|
|
349
|
+
*/
|
|
350
|
+
export interface MarketSummary {
|
|
351
|
+
id: string;
|
|
352
|
+
name: string;
|
|
353
|
+
code: string;
|
|
354
|
+
defaultCurrency: string;
|
|
355
|
+
currencies: string[];
|
|
356
|
+
isActive: boolean;
|
|
357
|
+
}
|
|
358
|
+
/**
|
|
359
|
+
* Store-level market settings with embedded market details.
|
|
360
|
+
* Represents the relationship between a store and a tenant-level market.
|
|
361
|
+
*/
|
|
362
|
+
export interface StoreMarketSettings {
|
|
363
|
+
id: string;
|
|
364
|
+
tenantId: string;
|
|
365
|
+
storeId: string;
|
|
366
|
+
marketId: string;
|
|
367
|
+
/** Whether the market is enabled for this store */
|
|
368
|
+
isEnabled: boolean;
|
|
369
|
+
/** Price adjustment percentage for this store (-100 to 100). Positive = markup, negative = discount. */
|
|
370
|
+
priceAdjustmentPercent: string | null;
|
|
371
|
+
/** Sort order for displaying markets in this store */
|
|
372
|
+
sortOrder: number;
|
|
373
|
+
createdAt: string;
|
|
374
|
+
updatedAt: string;
|
|
375
|
+
/** Market details (included when fetching with market info) */
|
|
376
|
+
market?: MarketSummary;
|
|
377
|
+
}
|
|
378
|
+
export interface StoreMarketSettingsList {
|
|
379
|
+
data: StoreMarketSettings[];
|
|
380
|
+
total: number;
|
|
381
|
+
skip?: number;
|
|
382
|
+
take?: number;
|
|
383
|
+
}
|
|
384
|
+
export interface EnableStoreMarketDto {
|
|
385
|
+
/** Price adjustment percentage for this store (-100 to 100). Positive = markup, negative = discount. */
|
|
386
|
+
priceAdjustmentPercent?: string | null;
|
|
387
|
+
/** Sort order for displaying this market in the store (lower = higher priority) */
|
|
388
|
+
sortOrder?: number;
|
|
389
|
+
}
|
|
390
|
+
export interface UpdateStoreMarketSettingsDto {
|
|
391
|
+
/** Whether the market is enabled for this store */
|
|
392
|
+
isEnabled?: boolean;
|
|
393
|
+
/** Price adjustment percentage for this store (-100 to 100). Positive = markup, negative = discount. Set to null to remove. */
|
|
394
|
+
priceAdjustmentPercent?: string | null;
|
|
395
|
+
/** Sort order for displaying this market in the store (lower = higher priority) */
|
|
396
|
+
sortOrder?: number;
|
|
397
|
+
}
|
|
398
|
+
export interface StoreMarketFilters {
|
|
399
|
+
/** Only include enabled markets */
|
|
400
|
+
enabledOnly?: boolean;
|
|
401
|
+
skip?: number;
|
|
402
|
+
take?: number;
|
|
403
|
+
}
|
|
404
|
+
/**
|
|
405
|
+
* Customer segmentation for differentiated pricing.
|
|
406
|
+
*/
|
|
407
|
+
export interface CustomerGroup {
|
|
408
|
+
id: string;
|
|
409
|
+
tenantId: string;
|
|
410
|
+
storeId: string;
|
|
411
|
+
name: string;
|
|
412
|
+
code: string;
|
|
413
|
+
description: string | null;
|
|
414
|
+
discountPercent: string | null;
|
|
415
|
+
isActive: boolean;
|
|
416
|
+
createdAt: string;
|
|
417
|
+
updatedAt: string;
|
|
418
|
+
deletedAt: string | null;
|
|
419
|
+
}
|
|
420
|
+
export interface CustomerGroupList {
|
|
421
|
+
data: CustomerGroup[];
|
|
422
|
+
total: number;
|
|
423
|
+
skip?: number;
|
|
424
|
+
take?: number;
|
|
425
|
+
}
|
|
426
|
+
export interface CreateCustomerGroupDto {
|
|
427
|
+
name: string;
|
|
428
|
+
code: string;
|
|
429
|
+
description?: string;
|
|
430
|
+
discountPercent?: string;
|
|
431
|
+
isActive?: boolean;
|
|
432
|
+
}
|
|
433
|
+
export interface UpdateCustomerGroupDto {
|
|
434
|
+
name?: string;
|
|
435
|
+
description?: string;
|
|
436
|
+
discountPercent?: string | null;
|
|
437
|
+
isActive?: boolean;
|
|
438
|
+
}
|
|
439
|
+
export interface CustomerGroupFilters {
|
|
440
|
+
activeOnly?: boolean;
|
|
441
|
+
skip?: number;
|
|
442
|
+
take?: number;
|
|
443
|
+
}
|
|
444
|
+
/**
|
|
445
|
+
* Price tier for quantity-based pricing.
|
|
446
|
+
*/
|
|
447
|
+
export interface PriceTier {
|
|
448
|
+
minQuantity: number;
|
|
449
|
+
maxQuantity?: number;
|
|
450
|
+
amount: string;
|
|
451
|
+
discountPercent?: number;
|
|
452
|
+
}
|
|
453
|
+
/**
|
|
454
|
+
* Scoped pricing for a product variant with support for
|
|
455
|
+
* multi-currency, markets, customer groups, and quantity tiers.
|
|
456
|
+
*/
|
|
457
|
+
export interface VariantPrice {
|
|
458
|
+
id: string;
|
|
459
|
+
tenantId: string;
|
|
460
|
+
storeId: string;
|
|
461
|
+
variantId: string;
|
|
462
|
+
amount: string;
|
|
463
|
+
compareAtAmount: string | null;
|
|
464
|
+
cost: string | null;
|
|
465
|
+
currencyCode: string;
|
|
466
|
+
marketId: string | null;
|
|
467
|
+
customerGroupId: string | null;
|
|
468
|
+
validFrom: string | null;
|
|
469
|
+
validTo: string | null;
|
|
470
|
+
tiers: PriceTier[] | null;
|
|
471
|
+
/**
|
|
472
|
+
* Whether this price is available for purchase.
|
|
473
|
+
* When false, price resolution returns "unavailable" with no fallback to auto-convert.
|
|
474
|
+
*/
|
|
475
|
+
isAvailable: boolean;
|
|
476
|
+
createdAt: string;
|
|
477
|
+
updatedAt: string;
|
|
478
|
+
deletedAt: string | null;
|
|
479
|
+
}
|
|
480
|
+
export interface VariantPriceList {
|
|
481
|
+
data: VariantPrice[];
|
|
482
|
+
total: number;
|
|
483
|
+
skip?: number;
|
|
484
|
+
take?: number;
|
|
485
|
+
}
|
|
486
|
+
export interface CreateVariantPriceDto {
|
|
487
|
+
variantId: string;
|
|
488
|
+
/** Selling price in cents. Required unless isAvailable is false. */
|
|
489
|
+
amount: number;
|
|
490
|
+
compareAtAmount?: number;
|
|
491
|
+
cost?: number;
|
|
492
|
+
currencyCode: string;
|
|
493
|
+
marketId?: string | null;
|
|
494
|
+
customerGroupId?: string | null;
|
|
495
|
+
validFrom?: string;
|
|
496
|
+
validTo?: string;
|
|
497
|
+
tiers?: PriceTier[];
|
|
498
|
+
/**
|
|
499
|
+
* Whether this price is available for purchase.
|
|
500
|
+
* When false, price resolution returns "unavailable" with no fallback to auto-convert.
|
|
501
|
+
* @default true
|
|
502
|
+
*/
|
|
503
|
+
isAvailable?: boolean;
|
|
504
|
+
}
|
|
505
|
+
export interface UpdateVariantPriceDto {
|
|
506
|
+
amount?: number;
|
|
507
|
+
compareAtAmount?: number | null;
|
|
508
|
+
cost?: number | null;
|
|
509
|
+
validFrom?: string | null;
|
|
510
|
+
validTo?: string | null;
|
|
511
|
+
tiers?: PriceTier[] | null;
|
|
512
|
+
/**
|
|
513
|
+
* Whether this price is available for purchase.
|
|
514
|
+
* When false, price resolution returns "unavailable" with no fallback to auto-convert.
|
|
515
|
+
*/
|
|
516
|
+
isAvailable?: boolean;
|
|
517
|
+
}
|
|
518
|
+
export interface VariantPriceFilters {
|
|
519
|
+
activeOnly?: boolean;
|
|
520
|
+
skip?: number;
|
|
521
|
+
take?: number;
|
|
522
|
+
}
|
|
523
|
+
/**
|
|
524
|
+
* A single price item in a bulk create request, one per currency.
|
|
525
|
+
*/
|
|
526
|
+
export interface BulkPriceItemDto {
|
|
527
|
+
/** ISO 4217 currency code */
|
|
528
|
+
currencyCode: string;
|
|
529
|
+
/** Selling price in cents */
|
|
530
|
+
amount: number;
|
|
531
|
+
/** Compare-at price in cents (strikethrough/sale display) */
|
|
532
|
+
compareAtAmount?: number;
|
|
533
|
+
/** Cost of Goods Sold (COGS) for margin calculation in cents */
|
|
534
|
+
cost?: number;
|
|
535
|
+
/**
|
|
536
|
+
* Whether this price is available for purchase.
|
|
537
|
+
* @default true
|
|
538
|
+
*/
|
|
539
|
+
isAvailable?: boolean;
|
|
540
|
+
}
|
|
541
|
+
/**
|
|
542
|
+
* Request to create multiple prices for a single variant in one call.
|
|
543
|
+
* All prices share the same variant/market/customerGroup scope,
|
|
544
|
+
* with one entry per currency.
|
|
545
|
+
*/
|
|
546
|
+
export interface BulkCreateVariantPricesDto {
|
|
547
|
+
variantId: string;
|
|
548
|
+
marketId: string;
|
|
549
|
+
/** Customer group these prices apply to (omit/null = all customers) */
|
|
550
|
+
customerGroupId?: string | null;
|
|
551
|
+
/** Prices to create, one per currency (min 1) */
|
|
552
|
+
prices: BulkPriceItemDto[];
|
|
553
|
+
}
|
|
554
|
+
/**
|
|
555
|
+
* A price that failed to create during a bulk create request.
|
|
556
|
+
*/
|
|
557
|
+
export interface BulkCreateVariantPriceError {
|
|
558
|
+
currencyCode: string;
|
|
559
|
+
error: string;
|
|
560
|
+
}
|
|
561
|
+
/**
|
|
562
|
+
* Result of a bulk create request. Partial success is possible:
|
|
563
|
+
* check `errors` even on a successful response.
|
|
564
|
+
*/
|
|
565
|
+
export interface BulkCreateVariantPricesResult {
|
|
566
|
+
created: VariantPrice[];
|
|
567
|
+
errors: BulkCreateVariantPriceError[];
|
|
568
|
+
}
|
|
569
|
+
/**
|
|
570
|
+
* Request to resolve the best price for a variant in a given context.
|
|
571
|
+
*/
|
|
572
|
+
export interface ResolvePriceDto {
|
|
573
|
+
variantId: string;
|
|
574
|
+
currencyCode: string;
|
|
575
|
+
marketId?: string;
|
|
576
|
+
customerGroupId?: string;
|
|
577
|
+
quantity?: number;
|
|
578
|
+
}
|
|
579
|
+
/**
|
|
580
|
+
* How the resolved price was determined.
|
|
581
|
+
* - 'exact': variant + currency + market + customerGroup match
|
|
582
|
+
* - 'market': variant + currency + market (no customerGroup)
|
|
583
|
+
* - 'group': variant + currency + customerGroup (no market)
|
|
584
|
+
* - 'base': variant + currency (no market, no customerGroup)
|
|
585
|
+
* - 'converted': Auto-converted from default currency
|
|
586
|
+
* - 'unavailable': An explicit price exists with isAvailable=false
|
|
587
|
+
*/
|
|
588
|
+
export type PriceResolutionSource = 'exact' | 'market' | 'group' | 'base' | 'converted' | 'unavailable';
|
|
589
|
+
/**
|
|
590
|
+
* The result of price resolution.
|
|
591
|
+
*/
|
|
592
|
+
export interface ResolvedPrice {
|
|
593
|
+
variantId: string;
|
|
594
|
+
amount: string;
|
|
595
|
+
compareAtAmount?: string;
|
|
596
|
+
cost?: string;
|
|
597
|
+
currencyCode: string;
|
|
598
|
+
source: PriceResolutionSource;
|
|
599
|
+
/**
|
|
600
|
+
* Whether this currency is available for purchase.
|
|
601
|
+
* When false, the product should not be purchasable in this currency.
|
|
602
|
+
*/
|
|
603
|
+
isAvailable: boolean;
|
|
604
|
+
appliedTier?: {
|
|
605
|
+
minQuantity: number;
|
|
606
|
+
amount: string;
|
|
607
|
+
};
|
|
608
|
+
/** ID of the VariantPrice record used (if any) */
|
|
609
|
+
priceId?: string;
|
|
610
|
+
resolvedAt: string;
|
|
611
|
+
}
|
|
612
|
+
/**
|
|
613
|
+
* Preview of a single currency's pricing for a variant.
|
|
614
|
+
* Used in the converted prices preview endpoint.
|
|
615
|
+
*/
|
|
616
|
+
export interface CurrencyConversionPreview {
|
|
617
|
+
/** ISO 4217 currency code */
|
|
618
|
+
currencyCode: string;
|
|
619
|
+
/** Currency display symbol */
|
|
620
|
+
symbol: string;
|
|
621
|
+
/** Calculated or explicit price amount */
|
|
622
|
+
amount: string;
|
|
623
|
+
/** Exchange rate used for conversion (null if explicit price exists) */
|
|
624
|
+
exchangeRate: string | null;
|
|
625
|
+
/** Whether an explicit price exists for this currency */
|
|
626
|
+
hasExplicitPrice: boolean;
|
|
627
|
+
/** The explicit price amount if one exists (may differ from calculated amount) */
|
|
628
|
+
explicitAmount?: string;
|
|
629
|
+
/** Whether this currency is available for purchase. False if explicit price has isAvailable=false. */
|
|
630
|
+
isAvailable: boolean;
|
|
631
|
+
}
|
|
632
|
+
/**
|
|
633
|
+
* Full preview of all currency conversions for a variant in a market.
|
|
634
|
+
* Returned by the preview endpoint.
|
|
635
|
+
*/
|
|
636
|
+
export interface ConvertedPricesPreview {
|
|
637
|
+
/** Product variant ID */
|
|
638
|
+
variantId: string;
|
|
639
|
+
/** Market ID */
|
|
640
|
+
marketId: string;
|
|
641
|
+
/** Market name */
|
|
642
|
+
marketName: string;
|
|
643
|
+
/** Base currency code for this market */
|
|
644
|
+
baseCurrency: string;
|
|
645
|
+
/** Base price amount */
|
|
646
|
+
baseAmount: string;
|
|
647
|
+
/** Preview of all currency conversions for this market */
|
|
648
|
+
conversions: CurrencyConversionPreview[];
|
|
649
|
+
}
|
|
650
|
+
export type PricingMode = 'auto' | 'manual';
|
|
651
|
+
/**
|
|
652
|
+
* Per-product market configuration for availability and pricing mode.
|
|
653
|
+
*/
|
|
654
|
+
export interface ProductMarketSettings {
|
|
655
|
+
id: string;
|
|
656
|
+
tenantId: string;
|
|
657
|
+
storeId: string;
|
|
658
|
+
productId: string;
|
|
659
|
+
marketId: string;
|
|
660
|
+
isAvailable: boolean;
|
|
661
|
+
pricingMode: PricingMode;
|
|
662
|
+
priceAdjustmentPercent: string | null;
|
|
663
|
+
createdAt: string;
|
|
664
|
+
updatedAt: string;
|
|
665
|
+
}
|
|
666
|
+
export interface ProductMarketSettingsList {
|
|
667
|
+
data: ProductMarketSettings[];
|
|
668
|
+
total: number;
|
|
669
|
+
skip?: number;
|
|
670
|
+
take?: number;
|
|
671
|
+
}
|
|
672
|
+
export interface CreateProductMarketSettingsDto {
|
|
673
|
+
productId: string;
|
|
674
|
+
marketId: string;
|
|
675
|
+
isAvailable?: boolean;
|
|
676
|
+
pricingMode?: PricingMode;
|
|
677
|
+
priceAdjustmentPercent?: string | null;
|
|
678
|
+
}
|
|
679
|
+
export interface UpdateProductMarketSettingsDto {
|
|
680
|
+
isAvailable?: boolean;
|
|
681
|
+
pricingMode?: PricingMode;
|
|
682
|
+
priceAdjustmentPercent?: string | null;
|
|
683
|
+
}
|
|
684
|
+
export interface ProductMarketSettingsFilters {
|
|
685
|
+
productId?: string;
|
|
686
|
+
marketId?: string;
|
|
687
|
+
isAvailable?: boolean;
|
|
688
|
+
pricingMode?: PricingMode;
|
|
689
|
+
skip?: number;
|
|
690
|
+
take?: number;
|
|
691
|
+
}
|
|
692
|
+
/**
|
|
693
|
+
* Tenant-scoped reusable geographic scope for product availability restrictions.
|
|
694
|
+
* restrictionCount is the number of restriction rows referencing this zone.
|
|
695
|
+
*/
|
|
696
|
+
export interface GeoZone {
|
|
697
|
+
id: string;
|
|
698
|
+
tenantId: string;
|
|
699
|
+
name: string;
|
|
700
|
+
code: string;
|
|
701
|
+
description: string | null;
|
|
702
|
+
countries: string[];
|
|
703
|
+
statesProvinces: string[];
|
|
704
|
+
postalCodes: string[];
|
|
705
|
+
isActive: boolean;
|
|
706
|
+
restrictionCount: number;
|
|
707
|
+
createdAt: string;
|
|
708
|
+
updatedAt: string;
|
|
709
|
+
deletedAt: string | null;
|
|
710
|
+
}
|
|
711
|
+
export interface GeoZoneList {
|
|
712
|
+
data: GeoZone[];
|
|
713
|
+
total: number;
|
|
714
|
+
skip?: number;
|
|
715
|
+
take?: number;
|
|
716
|
+
}
|
|
717
|
+
export interface CreateGeoZoneDto {
|
|
718
|
+
name: string;
|
|
719
|
+
code: string;
|
|
720
|
+
description?: string;
|
|
721
|
+
countries: string[];
|
|
722
|
+
statesProvinces?: string[];
|
|
723
|
+
postalCodes?: string[];
|
|
724
|
+
isActive?: boolean;
|
|
725
|
+
}
|
|
726
|
+
export interface UpdateGeoZoneDto {
|
|
727
|
+
name?: string;
|
|
728
|
+
description?: string;
|
|
729
|
+
countries?: string[];
|
|
730
|
+
statesProvinces?: string[];
|
|
731
|
+
postalCodes?: string[];
|
|
732
|
+
isActive?: boolean;
|
|
733
|
+
}
|
|
734
|
+
export interface GeoZoneFilters {
|
|
735
|
+
activeOnly?: boolean;
|
|
736
|
+
skip?: number;
|
|
737
|
+
take?: number;
|
|
738
|
+
}
|
|
739
|
+
/**
|
|
740
|
+
* Attach/detach row linking a product to a geo zone. No update surface:
|
|
741
|
+
* changing mode or market scope is delete + create.
|
|
742
|
+
*/
|
|
743
|
+
export interface ProductGeoRestriction {
|
|
744
|
+
id: string;
|
|
745
|
+
tenantId: string;
|
|
746
|
+
storeId: string;
|
|
747
|
+
productId: string;
|
|
748
|
+
zoneId: string;
|
|
749
|
+
marketId: string | null;
|
|
750
|
+
mode: GeoRestrictionMode;
|
|
751
|
+
createdAt: string;
|
|
752
|
+
updatedAt: string;
|
|
753
|
+
}
|
|
754
|
+
export interface ProductGeoRestrictionList {
|
|
755
|
+
data: ProductGeoRestriction[];
|
|
756
|
+
total: number;
|
|
757
|
+
skip?: number;
|
|
758
|
+
take?: number;
|
|
759
|
+
}
|
|
760
|
+
export interface CreateProductGeoRestrictionDto {
|
|
761
|
+
productId: string;
|
|
762
|
+
zoneId: string;
|
|
763
|
+
mode: GeoRestrictionMode;
|
|
764
|
+
marketId?: string;
|
|
765
|
+
}
|
|
766
|
+
export interface BulkCreateProductGeoRestrictionsDto {
|
|
767
|
+
productIds: string[];
|
|
768
|
+
zoneId: string;
|
|
769
|
+
mode: GeoRestrictionMode;
|
|
770
|
+
marketId?: string;
|
|
771
|
+
}
|
|
772
|
+
export interface BulkCreateProductGeoRestrictionsResult {
|
|
773
|
+
data: ProductGeoRestriction[];
|
|
774
|
+
count: number;
|
|
775
|
+
}
|
|
776
|
+
export interface ProductGeoRestrictionFilters {
|
|
777
|
+
productId?: string;
|
|
778
|
+
zoneId?: string;
|
|
779
|
+
skip?: number;
|
|
780
|
+
take?: number;
|
|
781
|
+
}
|
|
782
|
+
//# sourceMappingURL=types.d.ts.map
|