@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 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/services/core/taxes/types.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAEtE,MAAM,MAAM,UAAU,GAAG,IAAI,CAC3B,eAAe,E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AE,MAAM,CAAC;CACpB;AAID,MAAM,WAAW,cAAc;IAC7B,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,cAAc,EAAE,CAAC;CAC3B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../src/services/core/taxes/types.ts"],"names":[],"mappings":"AAAA,wDAAwD"}
|
|
@@ -0,0 +1,415 @@
|
|
|
1
|
+
import type { HttpClientTransport as HttpClient } from '../../core/http-client.js';
|
|
2
|
+
import type { ProductOptionValue } from './option-types.client.js';
|
|
3
|
+
import type { ShippingDimensionUnit, ShippingWeightUnit } from './shipping/types.js';
|
|
4
|
+
import type { VariantPrice } from './pricing/index.js';
|
|
5
|
+
import type { Asset, GenerateUploadUrlDto, PresignedUploadUrlResponse, ConfirmAssetUploadDto, UpdateAssetDto } from './assets.client.js';
|
|
6
|
+
/**
|
|
7
|
+
* Junction type linking a variant to an option value
|
|
8
|
+
*/
|
|
9
|
+
export interface ProductVariantOption {
|
|
10
|
+
id: string;
|
|
11
|
+
variantId: string;
|
|
12
|
+
optionValueId: string;
|
|
13
|
+
optionValue: ProductOptionValue;
|
|
14
|
+
optionType?: {
|
|
15
|
+
id: string;
|
|
16
|
+
name: string;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Inventory status for variant display
|
|
21
|
+
*/
|
|
22
|
+
export type VariantInventoryStatus = 'in_stock' | 'low_stock' | 'out_of_stock' | 'backorder';
|
|
23
|
+
/**
|
|
24
|
+
* Aggregated inventory summary for a variant across all locations
|
|
25
|
+
*/
|
|
26
|
+
export interface VariantInventorySummary {
|
|
27
|
+
/** Total physical stock across all locations */
|
|
28
|
+
totalOnHand: number;
|
|
29
|
+
/** Total available for sale across all locations */
|
|
30
|
+
totalAvailable: number;
|
|
31
|
+
/** Total reserved (in carts/orders) across all locations */
|
|
32
|
+
totalReserved: number;
|
|
33
|
+
/** Total expected incoming stock */
|
|
34
|
+
totalIncoming: number;
|
|
35
|
+
/** Aggregated status (worst-case across locations) */
|
|
36
|
+
status: VariantInventoryStatus;
|
|
37
|
+
/** Number of locations with stock for this variant */
|
|
38
|
+
locationCount: number;
|
|
39
|
+
/** Whether any location is below low stock threshold */
|
|
40
|
+
hasLowStockLocation?: boolean;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Product variant entity
|
|
44
|
+
*/
|
|
45
|
+
export interface ProductVariant {
|
|
46
|
+
id: string;
|
|
47
|
+
tenantId: string;
|
|
48
|
+
storeId: string;
|
|
49
|
+
productId: string;
|
|
50
|
+
sku: string;
|
|
51
|
+
/** Whether the variant is enabled for sale */
|
|
52
|
+
isEnabled: boolean;
|
|
53
|
+
/** Global Trade Item Number (UPC/EAN/ISBN barcode, 8-14 digits) */
|
|
54
|
+
gtin?: string | null;
|
|
55
|
+
metadata?: Record<string, unknown>;
|
|
56
|
+
options?: ProductVariantOption[];
|
|
57
|
+
/** Whether inventory is tracked for this variant (null = inherit from product/store) */
|
|
58
|
+
isInventoryTracked: boolean | null;
|
|
59
|
+
/** Whether backorders are allowed when out of stock (null = inherit from product/store) */
|
|
60
|
+
isBackorderedAllowed: boolean | null;
|
|
61
|
+
/** Maximum quantity allowed per order (null = no limit) */
|
|
62
|
+
maxQuantityPerOrder: number | null;
|
|
63
|
+
/** Minimum quantity required per order (null = 1 default) */
|
|
64
|
+
minQuantityPerOrder: number | null;
|
|
65
|
+
deletedAt?: string | null;
|
|
66
|
+
createdAt: string;
|
|
67
|
+
updatedAt: string;
|
|
68
|
+
/** Inventory summary (only included when requested via include option) */
|
|
69
|
+
inventory?: VariantInventorySummary;
|
|
70
|
+
/** Variant prices (only included when requested via include option) */
|
|
71
|
+
variantPrices?: VariantPrice[];
|
|
72
|
+
weight?: number | null;
|
|
73
|
+
length?: number | null;
|
|
74
|
+
width?: number | null;
|
|
75
|
+
height?: number | null;
|
|
76
|
+
weightUnit?: ShippingWeightUnit | null;
|
|
77
|
+
dimensionsUnit?: ShippingDimensionUnit | null;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Options for fetching variants
|
|
81
|
+
*/
|
|
82
|
+
export interface VariantFetchOptions {
|
|
83
|
+
/** Relations to include in the response (e.g., ['inventory', 'variantPrices']) */
|
|
84
|
+
include?: ('inventory' | 'variantPrices')[];
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* DTO for creating a product variant
|
|
88
|
+
*/
|
|
89
|
+
export interface CreateProductVariantDto {
|
|
90
|
+
sku: string;
|
|
91
|
+
/** Whether the variant is enabled for sale (defaults to true) */
|
|
92
|
+
isEnabled?: boolean;
|
|
93
|
+
/** Global Trade Item Number (UPC/EAN/ISBN barcode, 8-14 digits) */
|
|
94
|
+
gtin?: string;
|
|
95
|
+
metadata?: Record<string, unknown>;
|
|
96
|
+
optionValueIds?: string[];
|
|
97
|
+
/** Whether inventory is tracked for this variant (null = inherit from product/store) */
|
|
98
|
+
isInventoryTracked?: boolean | null;
|
|
99
|
+
/** Whether backorders are allowed when out of stock (null = inherit from product/store) */
|
|
100
|
+
isBackorderedAllowed?: boolean | null;
|
|
101
|
+
/** Maximum quantity allowed per order (null = no limit, must be >= 1) */
|
|
102
|
+
maxQuantityPerOrder?: number | null;
|
|
103
|
+
/** Minimum quantity required per order (null = 1 default, must be >= 1) */
|
|
104
|
+
minQuantityPerOrder?: number | null;
|
|
105
|
+
weight?: number;
|
|
106
|
+
length?: number;
|
|
107
|
+
width?: number;
|
|
108
|
+
height?: number;
|
|
109
|
+
weightUnit?: ShippingWeightUnit;
|
|
110
|
+
dimensionsUnit?: ShippingDimensionUnit;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* DTO for updating a product variant
|
|
114
|
+
*/
|
|
115
|
+
export interface UpdateProductVariantDto {
|
|
116
|
+
sku?: string;
|
|
117
|
+
/** Whether the variant is enabled for sale */
|
|
118
|
+
isEnabled?: boolean;
|
|
119
|
+
/** Global Trade Item Number (UPC/EAN/ISBN barcode, 8-14 digits), or null to clear */
|
|
120
|
+
gtin?: string | null;
|
|
121
|
+
metadata?: Record<string, unknown>;
|
|
122
|
+
/** Whether inventory is tracked for this variant (null = inherit from product/store) */
|
|
123
|
+
isInventoryTracked?: boolean | null;
|
|
124
|
+
/** Whether backorders are allowed when out of stock (null = inherit from product/store) */
|
|
125
|
+
isBackorderedAllowed?: boolean | null;
|
|
126
|
+
/** Maximum quantity allowed per order (null = no limit, must be >= 1) */
|
|
127
|
+
maxQuantityPerOrder?: number | null;
|
|
128
|
+
/** Minimum quantity required per order (null = 1 default, must be >= 1) */
|
|
129
|
+
minQuantityPerOrder?: number | null;
|
|
130
|
+
weight?: number | null;
|
|
131
|
+
length?: number | null;
|
|
132
|
+
width?: number | null;
|
|
133
|
+
height?: number | null;
|
|
134
|
+
weightUnit?: ShippingWeightUnit | null;
|
|
135
|
+
dimensionsUnit?: ShippingDimensionUnit | null;
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* DTO for upserting a product variant by SKU.
|
|
139
|
+
*
|
|
140
|
+
* Same fields as {@link CreateProductVariantDto} minus `sku` (taken from the path),
|
|
141
|
+
* plus `productId` which is required only when the SKU does not yet exist (so the new
|
|
142
|
+
* variant can be attached to a product) and is ignored on update.
|
|
143
|
+
*/
|
|
144
|
+
export type UpsertVariantBySkuDto = Omit<CreateProductVariantDto, 'sku'> & {
|
|
145
|
+
/** Parent product id (UUID). Required only when the SKU is new; ignored on update. */
|
|
146
|
+
productId?: string;
|
|
147
|
+
};
|
|
148
|
+
/**
|
|
149
|
+
* Selection of option values for variant generation
|
|
150
|
+
*/
|
|
151
|
+
export interface OptionValueSelectionDto {
|
|
152
|
+
/** Option type UUID */
|
|
153
|
+
optionTypeId: string;
|
|
154
|
+
/** Specific value UUIDs (all values if omitted) */
|
|
155
|
+
valueIds?: string[];
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* DTO for generating variants from option combinations
|
|
159
|
+
*/
|
|
160
|
+
export interface GenerateVariantsDto {
|
|
161
|
+
/** Option selections (at least one required) */
|
|
162
|
+
options: OptionValueSelectionDto[];
|
|
163
|
+
/** Prefix for generated SKUs */
|
|
164
|
+
skuPrefix?: string;
|
|
165
|
+
/** Separator between SKU parts (default: "-") */
|
|
166
|
+
skuSeparator?: string;
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* Preview of a variant that would be generated
|
|
170
|
+
*/
|
|
171
|
+
export interface GeneratedVariantPreviewDto {
|
|
172
|
+
/** Generated SKU */
|
|
173
|
+
sku: string;
|
|
174
|
+
/** Map of option type name to value (e.g., { "Color": "Red", "Size": "Large" }) */
|
|
175
|
+
optionValues: Record<string, string>;
|
|
176
|
+
/** UUIDs of the option values */
|
|
177
|
+
optionValueIds: string[];
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* VariantAssetsClient manages variant images and media assets.
|
|
181
|
+
*
|
|
182
|
+
* Uses a presigned URL flow for secure direct-to-S3 uploads:
|
|
183
|
+
* 1. Generate presigned URL
|
|
184
|
+
* 2. Upload file directly to S3
|
|
185
|
+
* 3. Confirm upload to create asset record
|
|
186
|
+
*
|
|
187
|
+
* @example
|
|
188
|
+
* ```typescript
|
|
189
|
+
* // Get presigned URL for upload
|
|
190
|
+
* const { url, key, publicUrl } = await sdk.variants.assets.generateUploadUrl(
|
|
191
|
+
* 'variant-uuid',
|
|
192
|
+
* { filename: 'swatch.jpg', contentType: 'image/jpeg' }
|
|
193
|
+
* );
|
|
194
|
+
*
|
|
195
|
+
* // Upload file to S3 (client-side)
|
|
196
|
+
* await fetch(url, { method: 'PUT', body: file });
|
|
197
|
+
*
|
|
198
|
+
* // Confirm upload and create asset record
|
|
199
|
+
* const asset = await sdk.variants.assets.create('variant-uuid', {
|
|
200
|
+
* s3Key: key,
|
|
201
|
+
* url: publicUrl,
|
|
202
|
+
* altText: 'Red color swatch',
|
|
203
|
+
* isPrimary: true,
|
|
204
|
+
* });
|
|
205
|
+
*
|
|
206
|
+
* // List variant assets
|
|
207
|
+
* const assets = await sdk.variants.assets.list('variant-uuid');
|
|
208
|
+
*
|
|
209
|
+
* // Set as primary
|
|
210
|
+
* await sdk.variants.assets.setPrimary('variant-uuid', 'asset-uuid');
|
|
211
|
+
*
|
|
212
|
+
* // Delete asset
|
|
213
|
+
* await sdk.variants.assets.delete('variant-uuid', 'asset-uuid');
|
|
214
|
+
* ```
|
|
215
|
+
*/
|
|
216
|
+
export declare class VariantAssetsClient {
|
|
217
|
+
private readonly http;
|
|
218
|
+
private readonly baseUrl;
|
|
219
|
+
constructor(http: HttpClient, baseUrl: string);
|
|
220
|
+
/**
|
|
221
|
+
* Generate a presigned URL for uploading an asset
|
|
222
|
+
*
|
|
223
|
+
* @param variantId - Variant UUID
|
|
224
|
+
* @param data - Upload request with filename and content type
|
|
225
|
+
* @returns Presigned URL, S3 key, and public URL
|
|
226
|
+
*/
|
|
227
|
+
generateUploadUrl(variantId: string, data: GenerateUploadUrlDto): Promise<PresignedUploadUrlResponse>;
|
|
228
|
+
/**
|
|
229
|
+
* Confirm an asset upload and create the asset record
|
|
230
|
+
*
|
|
231
|
+
* Call this after successfully uploading to S3 via the presigned URL.
|
|
232
|
+
*
|
|
233
|
+
* @param variantId - Variant UUID
|
|
234
|
+
* @param data - Asset metadata including S3 key
|
|
235
|
+
* @returns Created asset
|
|
236
|
+
*/
|
|
237
|
+
create(variantId: string, data: ConfirmAssetUploadDto): Promise<Asset>;
|
|
238
|
+
/**
|
|
239
|
+
* List all assets for a variant
|
|
240
|
+
*
|
|
241
|
+
* @param variantId - Variant UUID
|
|
242
|
+
* @returns Array of assets sorted by sortOrder
|
|
243
|
+
*/
|
|
244
|
+
list(variantId: string): Promise<Asset[]>;
|
|
245
|
+
/**
|
|
246
|
+
* Update an asset's metadata
|
|
247
|
+
*
|
|
248
|
+
* @param variantId - Variant UUID
|
|
249
|
+
* @param assetId - Asset UUID
|
|
250
|
+
* @param data - Fields to update
|
|
251
|
+
* @returns Updated asset
|
|
252
|
+
*/
|
|
253
|
+
update(variantId: string, assetId: string, data: UpdateAssetDto): Promise<Asset>;
|
|
254
|
+
/**
|
|
255
|
+
* Set an asset as the primary image for the variant
|
|
256
|
+
*
|
|
257
|
+
* This will unset any previous primary asset.
|
|
258
|
+
*
|
|
259
|
+
* @param variantId - Variant UUID
|
|
260
|
+
* @param assetId - Asset UUID to set as primary
|
|
261
|
+
* @returns Updated asset
|
|
262
|
+
*/
|
|
263
|
+
setPrimary(variantId: string, assetId: string): Promise<Asset>;
|
|
264
|
+
/**
|
|
265
|
+
* Set an asset as the preview/thumbnail image for the variant
|
|
266
|
+
*
|
|
267
|
+
* This will unset any previous preview asset.
|
|
268
|
+
*
|
|
269
|
+
* @param variantId - Variant UUID
|
|
270
|
+
* @param assetId - Asset UUID to set as preview
|
|
271
|
+
* @returns Updated asset
|
|
272
|
+
*/
|
|
273
|
+
setPreview(variantId: string, assetId: string): Promise<Asset>;
|
|
274
|
+
/**
|
|
275
|
+
* Delete an asset
|
|
276
|
+
*
|
|
277
|
+
* Removes the asset from S3 and the database.
|
|
278
|
+
*
|
|
279
|
+
* @param variantId - Variant UUID
|
|
280
|
+
* @param assetId - Asset UUID
|
|
281
|
+
*/
|
|
282
|
+
delete(variantId: string, assetId: string): Promise<void>;
|
|
283
|
+
}
|
|
284
|
+
/**
|
|
285
|
+
* VariantsClient manages product variants (SKUs with different options like size, color).
|
|
286
|
+
*
|
|
287
|
+
* Variants can be created manually or generated from option type combinations.
|
|
288
|
+
*
|
|
289
|
+
* @example
|
|
290
|
+
* ```typescript
|
|
291
|
+
* // List variants for a product
|
|
292
|
+
* const variants = await sdk.variants.listByProduct('product-uuid');
|
|
293
|
+
*
|
|
294
|
+
* // Create a variant with options
|
|
295
|
+
* const variant = await sdk.variants.createForProduct('product-uuid', {
|
|
296
|
+
* sku: 'PROD-001-RED-L',
|
|
297
|
+
* optionValueIds: [redColorId, largeSizeId],
|
|
298
|
+
* metadata: { vendorSku: 'VENDOR-123' },
|
|
299
|
+
* });
|
|
300
|
+
*
|
|
301
|
+
* // Preview variant generation
|
|
302
|
+
* const preview = await sdk.variants.previewGenerate('product-uuid', {
|
|
303
|
+
* options: [
|
|
304
|
+
* { optionTypeId: colorOptionId },
|
|
305
|
+
* { optionTypeId: sizeOptionId },
|
|
306
|
+
* ],
|
|
307
|
+
* skuPrefix: 'TSHIRT',
|
|
308
|
+
* });
|
|
309
|
+
*
|
|
310
|
+
* // Generate variants from option combinations
|
|
311
|
+
* const generated = await sdk.variants.generate('product-uuid', {
|
|
312
|
+
* options: [
|
|
313
|
+
* { optionTypeId: colorOptionId },
|
|
314
|
+
* { optionTypeId: sizeOptionId },
|
|
315
|
+
* ],
|
|
316
|
+
* skuPrefix: 'TSHIRT',
|
|
317
|
+
* });
|
|
318
|
+
*
|
|
319
|
+
* // Update a variant
|
|
320
|
+
* await sdk.variants.update(variant.id, { sku: 'PROD-001-RED-XL' });
|
|
321
|
+
*
|
|
322
|
+
* // Delete a variant
|
|
323
|
+
* await sdk.variants.delete(variant.id);
|
|
324
|
+
*
|
|
325
|
+
* // Manage variant images
|
|
326
|
+
* const uploadUrl = await sdk.variants.assets.generateUploadUrl(variant.id, {
|
|
327
|
+
* filename: 'swatch.jpg',
|
|
328
|
+
* contentType: 'image/jpeg',
|
|
329
|
+
* });
|
|
330
|
+
* ```
|
|
331
|
+
*/
|
|
332
|
+
export declare class VariantsClient {
|
|
333
|
+
private readonly http;
|
|
334
|
+
private readonly baseUrl;
|
|
335
|
+
/** Sub-client for managing variant assets (images, videos) */
|
|
336
|
+
readonly assets: VariantAssetsClient;
|
|
337
|
+
constructor(http: HttpClient, baseUrl: string);
|
|
338
|
+
/**
|
|
339
|
+
* Get a variant by ID
|
|
340
|
+
*
|
|
341
|
+
* @param id - Variant UUID
|
|
342
|
+
* @param options - Optional fetch options (e.g., include inventory)
|
|
343
|
+
*
|
|
344
|
+
* @example
|
|
345
|
+
* ```typescript
|
|
346
|
+
* // Get variant with inventory
|
|
347
|
+
* const variant = await sdk.variants.get('variant-uuid', { include: ['inventory'] });
|
|
348
|
+
* console.log(variant.inventory?.totalAvailable);
|
|
349
|
+
* ```
|
|
350
|
+
*/
|
|
351
|
+
get(id: string, options?: VariantFetchOptions): Promise<ProductVariant>;
|
|
352
|
+
/**
|
|
353
|
+
* Update a variant
|
|
354
|
+
*/
|
|
355
|
+
update(id: string, data: UpdateProductVariantDto): Promise<ProductVariant>;
|
|
356
|
+
/**
|
|
357
|
+
* Create or update a variant keyed by SKU (e.g. for ERP / NetSuite sync).
|
|
358
|
+
*
|
|
359
|
+
* The variant is matched on `sku` (the path key); if found it is updated, otherwise a
|
|
360
|
+
* new variant is created (pass `productId` in `data` so it can be attached to a product).
|
|
361
|
+
* Idempotent for bi-directional sync.
|
|
362
|
+
*
|
|
363
|
+
* @param sku - The variant SKU (the upsert key)
|
|
364
|
+
* @param data - Variant fields; `productId` is required only when the SKU is new
|
|
365
|
+
*/
|
|
366
|
+
upsertBySku(sku: string, data: UpsertVariantBySkuDto): Promise<ProductVariant>;
|
|
367
|
+
/**
|
|
368
|
+
* Delete a variant
|
|
369
|
+
*/
|
|
370
|
+
delete(id: string): Promise<ProductVariant>;
|
|
371
|
+
/**
|
|
372
|
+
* Create a variant for a product
|
|
373
|
+
*
|
|
374
|
+
* @param productId - Product UUID
|
|
375
|
+
* @param data - Variant data including optional option value IDs
|
|
376
|
+
*/
|
|
377
|
+
createForProduct(productId: string, data: CreateProductVariantDto): Promise<ProductVariant>;
|
|
378
|
+
/**
|
|
379
|
+
* List all variants for a product
|
|
380
|
+
*
|
|
381
|
+
* @param productId - Product UUID
|
|
382
|
+
* @param options - Optional fetch options (e.g., include inventory)
|
|
383
|
+
*
|
|
384
|
+
* @example
|
|
385
|
+
* ```typescript
|
|
386
|
+
* // List variants with inventory
|
|
387
|
+
* const variants = await sdk.variants.listByProduct('product-uuid', { include: ['inventory'] });
|
|
388
|
+
* variants.forEach(v => console.log(v.sku, v.inventory?.status));
|
|
389
|
+
* ```
|
|
390
|
+
*/
|
|
391
|
+
listByProduct(productId: string, options?: VariantFetchOptions): Promise<ProductVariant[]>;
|
|
392
|
+
/**
|
|
393
|
+
* Preview variant generation without creating variants
|
|
394
|
+
*
|
|
395
|
+
* Returns what variants would be created from the given option combinations.
|
|
396
|
+
* Useful for showing users what will be generated before committing.
|
|
397
|
+
*
|
|
398
|
+
* @param productId - Product UUID
|
|
399
|
+
* @param data - Generation options
|
|
400
|
+
* @returns Array of preview objects showing SKU and option value mappings
|
|
401
|
+
*/
|
|
402
|
+
previewGenerate(productId: string, data: GenerateVariantsDto): Promise<GeneratedVariantPreviewDto[]>;
|
|
403
|
+
/**
|
|
404
|
+
* Generate variants from option combinations
|
|
405
|
+
*
|
|
406
|
+
* Creates all possible variant combinations from the selected option types
|
|
407
|
+
* and values. SKUs that already exist are skipped.
|
|
408
|
+
*
|
|
409
|
+
* @param productId - Product UUID
|
|
410
|
+
* @param data - Generation options
|
|
411
|
+
* @returns Array of created variants
|
|
412
|
+
*/
|
|
413
|
+
generate(productId: string, data: GenerateVariantsDto): Promise<ProductVariant[]>;
|
|
414
|
+
}
|
|
415
|
+
//# sourceMappingURL=variants.client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"variants.client.d.ts","sourceRoot":"","sources":["../../../../../src/services/core/variants.client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,IAAI,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACnF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,KAAK,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACrF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,KAA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