@aimee.shop/sdk 0.26.0 → 0.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +9 -9
- package/dist/browser/browser-auth.d.ts +1 -1
- package/dist/browser/browser-auth.js +2 -2
- package/dist/browser/index.d.ts +12 -12
- package/dist/browser/index.js +12 -12
- package/dist/core/auth/auth-chain.js +2 -2
- package/dist/core/auth/interactive.authenticator.js +1 -1
- package/dist/core/batch-ids.d.ts +14 -0
- package/dist/core/batch-ids.d.ts.map +1 -0
- package/dist/core/batch-ids.js +22 -0
- package/dist/core/batch-ids.js.map +1 -0
- package/dist/core/canonical-hosts.d.ts +12 -0
- package/dist/core/canonical-hosts.d.ts.map +1 -0
- package/dist/core/canonical-hosts.js +11 -0
- package/dist/core/canonical-hosts.js.map +1 -0
- package/dist/core/config.d.ts +17 -9
- package/dist/core/config.d.ts.map +1 -1
- package/dist/core/config.js +36 -40
- package/dist/core/config.js.map +1 -1
- package/dist/core/errors/checkout-refusal.d.ts +107 -0
- package/dist/core/errors/checkout-refusal.d.ts.map +1 -0
- package/dist/core/errors/checkout-refusal.js +83 -0
- package/dist/core/errors/checkout-refusal.js.map +1 -0
- package/dist/core/errors/erp-authority.d.ts +44 -0
- package/dist/core/errors/erp-authority.d.ts.map +1 -0
- package/dist/core/errors/erp-authority.js +49 -0
- package/dist/core/errors/erp-authority.js.map +1 -0
- package/dist/core/errors/index.d.ts +22 -12
- package/dist/core/errors/index.d.ts.map +1 -1
- package/dist/core/errors/index.js +33 -12
- package/dist/core/errors/index.js.map +1 -1
- package/dist/core/errors/multipart-upload.d.ts +37 -0
- package/dist/core/errors/multipart-upload.d.ts.map +1 -0
- package/dist/core/errors/multipart-upload.js +42 -0
- package/dist/core/errors/multipart-upload.js.map +1 -0
- package/dist/core/errors/tenant-suspended.d.ts +48 -0
- package/dist/core/errors/tenant-suspended.d.ts.map +1 -0
- package/dist/core/errors/tenant-suspended.js +76 -0
- package/dist/core/errors/tenant-suspended.js.map +1 -0
- package/dist/core/events/event-envelope.d.ts +1 -1
- package/dist/core/events/event-names.d.ts +142 -145
- package/dist/core/events/event-names.d.ts.map +1 -1
- package/dist/core/events/event-names.js +141 -144
- package/dist/core/events/event-names.js.map +1 -1
- package/dist/core/http-client.d.ts +5 -3
- package/dist/core/http-client.d.ts.map +1 -1
- package/dist/core/http-client.js +104 -31
- package/dist/core/http-client.js.map +1 -1
- package/dist/core/idempotency.d.ts +21 -0
- package/dist/core/idempotency.d.ts.map +1 -0
- package/dist/core/idempotency.js +31 -0
- package/dist/core/idempotency.js.map +1 -0
- package/dist/core/retry.d.ts +3 -3
- package/dist/core/sdk.d.ts +11 -11
- package/dist/core/sdk.d.ts.map +1 -1
- package/dist/core/sdk.js +9 -9
- package/dist/core/sdk.js.map +1 -1
- package/dist/core/types/contracts.d.ts +9 -0
- package/dist/core/types/contracts.d.ts.map +1 -0
- package/dist/core/types/contracts.js +2 -0
- package/dist/core/types/contracts.js.map +1 -0
- package/dist/generated/core-api.d.ts +68022 -0
- package/dist/generated/core-api.d.ts.map +1 -0
- package/dist/generated/core-api.js +7 -0
- package/dist/generated/core-api.js.map +1 -0
- package/dist/index.d.ts +43 -26
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +15 -6
- package/dist/index.js.map +1 -1
- package/dist/services/core/assets-large-upload.d.ts +63 -0
- package/dist/services/core/assets-large-upload.d.ts.map +1 -0
- package/dist/services/core/assets-large-upload.js +382 -0
- package/dist/services/core/assets-large-upload.js.map +1 -0
- package/dist/services/core/assets-multipart.client.d.ts +47 -0
- package/dist/services/core/assets-multipart.client.d.ts.map +1 -0
- package/dist/services/core/assets-multipart.client.js +46 -0
- package/dist/services/core/assets-multipart.client.js.map +1 -0
- package/dist/services/core/assets.client.d.ts +53 -245
- package/dist/services/core/assets.client.d.ts.map +1 -1
- package/dist/services/core/assets.client.js +21 -0
- package/dist/services/core/assets.client.js.map +1 -1
- package/dist/services/core/base-resource.d.ts +9 -3
- package/dist/services/core/base-resource.d.ts.map +1 -1
- package/dist/services/core/base-resource.js +29 -21
- package/dist/services/core/base-resource.js.map +1 -1
- package/dist/services/core/cart-messages/cart-messages.client.d.ts +14 -4
- package/dist/services/core/cart-messages/cart-messages.client.d.ts.map +1 -1
- package/dist/services/core/cart-messages/cart-messages.client.js +37 -4
- package/dist/services/core/cart-messages/cart-messages.client.js.map +1 -1
- package/dist/services/core/cart-messages/index.d.ts +1 -1
- package/dist/services/core/cart-messages/index.d.ts.map +1 -1
- package/dist/services/core/cart-messages/types.d.ts +14 -3
- package/dist/services/core/cart-messages/types.d.ts.map +1 -1
- package/dist/services/core/cart-messages/types.js.map +1 -1
- package/dist/services/core/carts.client.d.ts +46 -17
- package/dist/services/core/carts.client.d.ts.map +1 -1
- package/dist/services/core/carts.client.js +20 -2
- package/dist/services/core/carts.client.js.map +1 -1
- package/dist/services/core/categories.client.d.ts +23 -7
- package/dist/services/core/categories.client.d.ts.map +1 -1
- package/dist/services/core/categories.client.js +8 -0
- package/dist/services/core/categories.client.js.map +1 -1
- package/dist/services/core/checkout-token-store.d.ts +27 -0
- package/dist/services/core/checkout-token-store.d.ts.map +1 -0
- package/dist/services/core/checkout-token-store.js +14 -0
- package/dist/services/core/checkout-token-store.js.map +1 -0
- package/dist/services/core/checkout.client.d.ts +242 -127
- package/dist/services/core/checkout.client.d.ts.map +1 -1
- package/dist/services/core/checkout.client.js +174 -35
- package/dist/services/core/checkout.client.js.map +1 -1
- package/dist/services/core/cms/cms.client.d.ts +1 -1
- package/dist/services/core/cms/cms.client.js +1 -1
- package/dist/services/core/cms/collections.client.d.ts +7 -1
- package/dist/services/core/cms/collections.client.d.ts.map +1 -1
- package/dist/services/core/cms/collections.client.js +8 -0
- package/dist/services/core/cms/collections.client.js.map +1 -1
- package/dist/services/core/cms/entries.client.d.ts +9 -3
- package/dist/services/core/cms/entries.client.d.ts.map +1 -1
- package/dist/services/core/cms/entries.client.js +16 -2
- package/dist/services/core/cms/entries.client.js.map +1 -1
- package/dist/services/core/cms/modules.client.d.ts +7 -1
- package/dist/services/core/cms/modules.client.d.ts.map +1 -1
- package/dist/services/core/cms/modules.client.js +8 -0
- package/dist/services/core/cms/modules.client.js.map +1 -1
- package/dist/services/core/cms/types.d.ts +98 -129
- package/dist/services/core/cms/types.d.ts.map +1 -1
- package/dist/services/core/cms/types.js +0 -1
- package/dist/services/core/cms/types.js.map +1 -1
- package/dist/services/core/customers.client.d.ts +83 -200
- package/dist/services/core/customers.client.d.ts.map +1 -1
- package/dist/services/core/customers.client.js +74 -13
- package/dist/services/core/customers.client.js.map +1 -1
- package/dist/services/core/discounts.client.d.ts +189 -105
- package/dist/services/core/discounts.client.d.ts.map +1 -1
- package/dist/services/core/discounts.client.js +88 -43
- package/dist/services/core/discounts.client.js.map +1 -1
- package/dist/services/core/exports/types.d.ts +1 -1
- package/dist/services/core/exports/types.d.ts.map +1 -1
- package/dist/services/core/exports/types.js +1 -0
- package/dist/services/core/exports/types.js.map +1 -1
- package/dist/services/core/facets.client.d.ts +26 -32
- package/dist/services/core/facets.client.d.ts.map +1 -1
- package/dist/services/core/facets.client.js +18 -7
- package/dist/services/core/facets.client.js.map +1 -1
- package/dist/services/core/fulfillments.client.d.ts +36 -39
- package/dist/services/core/fulfillments.client.d.ts.map +1 -1
- package/dist/services/core/fulfillments.client.js +30 -18
- package/dist/services/core/fulfillments.client.js.map +1 -1
- package/dist/services/core/inventory/adjustments.client.d.ts +4 -2
- package/dist/services/core/inventory/adjustments.client.d.ts.map +1 -1
- package/dist/services/core/inventory/adjustments.client.js.map +1 -1
- package/dist/services/core/inventory/index.d.ts +1 -1
- package/dist/services/core/inventory/index.d.ts.map +1 -1
- package/dist/services/core/inventory/inventory.client.d.ts +6 -3
- package/dist/services/core/inventory/inventory.client.d.ts.map +1 -1
- package/dist/services/core/inventory/inventory.client.js +4 -1
- package/dist/services/core/inventory/inventory.client.js.map +1 -1
- package/dist/services/core/inventory/reservations.client.d.ts +3 -3
- package/dist/services/core/inventory/reservations.client.d.ts.map +1 -1
- package/dist/services/core/inventory/reservations.client.js +2 -2
- package/dist/services/core/inventory/reservations.client.js.map +1 -1
- package/dist/services/core/inventory/types.d.ts +55 -51
- package/dist/services/core/inventory/types.d.ts.map +1 -1
- package/dist/services/core/invoices.client.d.ts +4 -7
- package/dist/services/core/invoices.client.d.ts.map +1 -1
- package/dist/services/core/invoices.client.js +1 -1
- package/dist/services/core/invoices.client.js.map +1 -1
- package/dist/services/core/openai-feed.client.d.ts +37 -18
- package/dist/services/core/openai-feed.client.d.ts.map +1 -1
- package/dist/services/core/openai-feed.client.js.map +1 -1
- package/dist/services/core/option-types.client.d.ts +6 -7
- package/dist/services/core/option-types.client.d.ts.map +1 -1
- package/dist/services/core/option-types.client.js +7 -8
- package/dist/services/core/option-types.client.js.map +1 -1
- package/dist/services/core/option-values.client.d.ts +2 -1
- package/dist/services/core/option-values.client.d.ts.map +1 -1
- package/dist/services/core/option-values.client.js +2 -1
- package/dist/services/core/option-values.client.js.map +1 -1
- package/dist/services/core/order-edits.client.d.ts +20 -14
- package/dist/services/core/order-edits.client.d.ts.map +1 -1
- package/dist/services/core/order-edits.client.js +1 -1
- package/dist/services/core/order-edits.client.js.map +1 -1
- package/dist/services/core/orders.client.d.ts +188 -49
- package/dist/services/core/orders.client.d.ts.map +1 -1
- package/dist/services/core/orders.client.js +48 -9
- package/dist/services/core/orders.client.js.map +1 -1
- package/dist/services/core/pricing/currencies.client.d.ts +9 -23
- package/dist/services/core/pricing/currencies.client.d.ts.map +1 -1
- package/dist/services/core/pricing/currencies.client.js +12 -30
- package/dist/services/core/pricing/currencies.client.js.map +1 -1
- package/dist/services/core/pricing/pricing.client.d.ts +5 -5
- package/dist/services/core/pricing/pricing.client.d.ts.map +1 -1
- package/dist/services/core/pricing/pricing.client.js +4 -4
- package/dist/services/core/pricing/pricing.client.js.map +1 -1
- package/dist/services/core/pricing/store-markets.client.d.ts +2 -5
- package/dist/services/core/pricing/store-markets.client.d.ts.map +1 -1
- package/dist/services/core/pricing/store-markets.client.js +1 -7
- package/dist/services/core/pricing/store-markets.client.js.map +1 -1
- package/dist/services/core/pricing/tiers.client.d.ts +4 -4
- package/dist/services/core/pricing/tiers.client.js +4 -4
- package/dist/services/core/pricing/types.d.ts +88 -90
- package/dist/services/core/pricing/types.d.ts.map +1 -1
- package/dist/services/core/pricing/variant-prices.client.d.ts +38 -15
- package/dist/services/core/pricing/variant-prices.client.d.ts.map +1 -1
- package/dist/services/core/pricing/variant-prices.client.js +51 -18
- package/dist/services/core/pricing/variant-prices.client.js.map +1 -1
- package/dist/services/core/products.client.d.ts +230 -27
- package/dist/services/core/products.client.d.ts.map +1 -1
- package/dist/services/core/products.client.js +76 -2
- package/dist/services/core/products.client.js.map +1 -1
- package/dist/services/core/returns.client.d.ts +32 -104
- package/dist/services/core/returns.client.d.ts.map +1 -1
- package/dist/services/core/returns.client.js +16 -10
- package/dist/services/core/returns.client.js.map +1 -1
- package/dist/services/core/reviews.client.d.ts +27 -45
- package/dist/services/core/reviews.client.d.ts.map +1 -1
- package/dist/services/core/reviews.client.js +17 -0
- package/dist/services/core/reviews.client.js.map +1 -1
- package/dist/services/core/search.client.d.ts +25 -24
- package/dist/services/core/search.client.d.ts.map +1 -1
- package/dist/services/core/search.client.js +0 -14
- package/dist/services/core/search.client.js.map +1 -1
- package/dist/services/core/shipping/classes.client.d.ts +3 -6
- package/dist/services/core/shipping/classes.client.d.ts.map +1 -1
- package/dist/services/core/shipping/classes.client.js +6 -4
- package/dist/services/core/shipping/classes.client.js.map +1 -1
- package/dist/services/core/shipping/labels.client.d.ts +3 -6
- package/dist/services/core/shipping/labels.client.d.ts.map +1 -1
- package/dist/services/core/shipping/labels.client.js +5 -1
- package/dist/services/core/shipping/labels.client.js.map +1 -1
- package/dist/services/core/shipping/providers.client.d.ts +2 -5
- package/dist/services/core/shipping/providers.client.d.ts.map +1 -1
- package/dist/services/core/shipping/providers.client.js +6 -2
- package/dist/services/core/shipping/providers.client.js.map +1 -1
- package/dist/services/core/shipping/rules.client.d.ts +3 -6
- package/dist/services/core/shipping/rules.client.d.ts.map +1 -1
- package/dist/services/core/shipping/rules.client.js +6 -4
- package/dist/services/core/shipping/rules.client.js.map +1 -1
- package/dist/services/core/shipping/shipper-identity.client.d.ts +3 -3
- package/dist/services/core/shipping/shipper-identity.client.d.ts.map +1 -1
- package/dist/services/core/shipping/shipper-identity.client.js +3 -8
- package/dist/services/core/shipping/shipper-identity.client.js.map +1 -1
- package/dist/services/core/shipping/shipping.client.d.ts +5 -5
- package/dist/services/core/shipping/shipping.client.d.ts.map +1 -1
- package/dist/services/core/shipping/shipping.client.js +5 -12
- package/dist/services/core/shipping/shipping.client.js.map +1 -1
- package/dist/services/core/shipping/store-providers.client.d.ts +5 -5
- package/dist/services/core/shipping/store-providers.client.d.ts.map +1 -1
- package/dist/services/core/shipping/store-providers.client.js +1 -1
- package/dist/services/core/shipping/store-providers.client.js.map +1 -1
- package/dist/services/core/shipping/types.d.ts +140 -185
- package/dist/services/core/shipping/types.d.ts.map +1 -1
- package/dist/services/core/shipping/zones.client.d.ts +2 -5
- package/dist/services/core/shipping/zones.client.d.ts.map +1 -1
- package/dist/services/core/shipping/zones.client.js +4 -0
- package/dist/services/core/shipping/zones.client.js.map +1 -1
- package/dist/services/core/storefront/index.d.ts +5 -2
- package/dist/services/core/storefront/index.d.ts.map +1 -1
- package/dist/services/core/storefront/index.js +3 -0
- package/dist/services/core/storefront/index.js.map +1 -1
- package/dist/services/core/storefront/storefront-ai-discovery.client.d.ts +28 -0
- package/dist/services/core/storefront/storefront-ai-discovery.client.d.ts.map +1 -0
- package/dist/services/core/storefront/storefront-ai-discovery.client.js +58 -0
- package/dist/services/core/storefront/storefront-ai-discovery.client.js.map +1 -0
- package/dist/services/core/storefront/storefront-auth.client.d.ts +18 -9
- package/dist/services/core/storefront/storefront-auth.client.d.ts.map +1 -1
- package/dist/services/core/storefront/storefront-auth.client.js +18 -11
- package/dist/services/core/storefront/storefront-auth.client.js.map +1 -1
- package/dist/services/core/storefront/storefront-orders.client.d.ts +105 -1
- package/dist/services/core/storefront/storefront-orders.client.d.ts.map +1 -1
- package/dist/services/core/storefront/storefront-orders.client.js +42 -0
- package/dist/services/core/storefront/storefront-orders.client.js.map +1 -1
- package/dist/services/core/storefront/storefront-plans.client.d.ts +12 -4
- package/dist/services/core/storefront/storefront-plans.client.d.ts.map +1 -1
- package/dist/services/core/storefront/storefront-plans.client.js.map +1 -1
- package/dist/services/core/storefront/storefront-privacy.client.d.ts +37 -0
- package/dist/services/core/storefront/storefront-privacy.client.d.ts.map +1 -0
- package/dist/services/core/storefront/storefront-privacy.client.js +45 -0
- package/dist/services/core/storefront/storefront-privacy.client.js.map +1 -0
- package/dist/services/core/storefront/storefront-returns.client.d.ts +53 -0
- package/dist/services/core/storefront/storefront-returns.client.d.ts.map +1 -0
- package/dist/services/core/storefront/storefront-returns.client.js +70 -0
- package/dist/services/core/storefront/storefront-returns.client.js.map +1 -0
- package/dist/services/core/storefront/storefront-reviews.client.d.ts +6 -1
- package/dist/services/core/storefront/storefront-reviews.client.d.ts.map +1 -1
- package/dist/services/core/storefront/storefront-reviews.client.js +11 -0
- package/dist/services/core/storefront/storefront-reviews.client.js.map +1 -1
- package/dist/services/core/storefront/storefront-subscriptions.client.d.ts +19 -12
- package/dist/services/core/storefront/storefront-subscriptions.client.d.ts.map +1 -1
- package/dist/services/core/storefront/storefront-subscriptions.client.js.map +1 -1
- package/dist/services/core/storefront/storefront.client.d.ts +42 -4
- package/dist/services/core/storefront/storefront.client.d.ts.map +1 -1
- package/dist/services/core/storefront/storefront.client.js +58 -3
- package/dist/services/core/storefront/storefront.client.js.map +1 -1
- package/dist/services/core/storefront/types.d.ts +24 -22
- package/dist/services/core/storefront/types.d.ts.map +1 -1
- package/dist/services/core/storefront/types.js +0 -1
- package/dist/services/core/storefront/types.js.map +1 -1
- package/dist/services/core/storefront-redirects/types.d.ts +2 -4
- package/dist/services/core/storefront-redirects/types.d.ts.map +1 -1
- package/dist/services/core/stores/ai-discovery.client.d.ts +20 -39
- package/dist/services/core/stores/ai-discovery.client.d.ts.map +1 -1
- package/dist/services/core/stores/ai-discovery.client.js +11 -0
- package/dist/services/core/stores/ai-discovery.client.js.map +1 -1
- package/dist/services/core/stores/configuration.client.d.ts +39 -15
- package/dist/services/core/stores/configuration.client.d.ts.map +1 -1
- package/dist/services/core/stores/configuration.client.js +7 -0
- package/dist/services/core/stores/configuration.client.js.map +1 -1
- package/dist/services/core/stores/index.d.ts +3 -5
- package/dist/services/core/stores/index.d.ts.map +1 -1
- package/dist/services/core/stores/index.js +0 -1
- package/dist/services/core/stores/index.js.map +1 -1
- package/dist/services/core/stores/stores.client.d.ts +41 -27
- package/dist/services/core/stores/stores.client.d.ts.map +1 -1
- package/dist/services/core/stores/stores.client.js +12 -20
- package/dist/services/core/stores/stores.client.js.map +1 -1
- package/dist/services/core/taxes/index.d.ts +1 -0
- package/dist/services/core/taxes/index.d.ts.map +1 -1
- package/dist/services/core/taxes/index.js +1 -0
- package/dist/services/core/taxes/index.js.map +1 -1
- package/dist/services/core/taxes/jurisdictions.client.d.ts +7 -10
- package/dist/services/core/taxes/jurisdictions.client.d.ts.map +1 -1
- package/dist/services/core/taxes/jurisdictions.client.js +7 -4
- package/dist/services/core/taxes/jurisdictions.client.js.map +1 -1
- package/dist/services/core/taxes/providers.client.d.ts +3 -6
- package/dist/services/core/taxes/providers.client.d.ts.map +1 -1
- package/dist/services/core/taxes/providers.client.js +3 -1
- package/dist/services/core/taxes/providers.client.js.map +1 -1
- package/dist/services/core/taxes/rates.client.d.ts +6 -8
- package/dist/services/core/taxes/rates.client.d.ts.map +1 -1
- package/dist/services/core/taxes/rates.client.js +5 -2
- package/dist/services/core/taxes/rates.client.js.map +1 -1
- package/dist/services/core/taxes/starter-rates.client.d.ts +34 -0
- package/dist/services/core/taxes/starter-rates.client.d.ts.map +1 -0
- package/dist/services/core/taxes/starter-rates.client.js +47 -0
- package/dist/services/core/taxes/starter-rates.client.js.map +1 -0
- package/dist/services/core/taxes/store-providers.client.d.ts +5 -5
- package/dist/services/core/taxes/store-providers.client.d.ts.map +1 -1
- package/dist/services/core/taxes/store-providers.client.js +1 -1
- package/dist/services/core/taxes/store-providers.client.js.map +1 -1
- package/dist/services/core/taxes/taxes.client.d.ts +13 -4
- package/dist/services/core/taxes/taxes.client.d.ts.map +1 -1
- package/dist/services/core/taxes/taxes.client.js +16 -2
- package/dist/services/core/taxes/taxes.client.js.map +1 -1
- package/dist/services/core/taxes/types.d.ts +148 -225
- package/dist/services/core/taxes/types.d.ts.map +1 -1
- package/dist/services/core/taxes/types.js +0 -1
- package/dist/services/core/taxes/types.js.map +1 -1
- package/dist/services/core/variants.client.d.ts +82 -13
- package/dist/services/core/variants.client.d.ts.map +1 -1
- package/dist/services/core/variants.client.js +2 -2
- package/dist/services/core/variants.client.js.map +1 -1
- package/dist/services/core/wishlists.client.d.ts +25 -56
- package/dist/services/core/wishlists.client.d.ts.map +1 -1
- package/dist/services/core/wishlists.client.js +6 -4
- package/dist/services/core/wishlists.client.js.map +1 -1
- package/dist/storefront/index.d.ts +50 -18
- package/dist/storefront/index.d.ts.map +1 -1
- package/dist/storefront/index.js +50 -19
- package/dist/storefront/index.js.map +1 -1
- package/package.json +5 -5
- package/dist/services/core/stores/members.client.d.ts +0 -91
- package/dist/services/core/stores/members.client.d.ts.map +0 -1
- package/dist/services/core/stores/members.client.js +0 -70
- package/dist/services/core/stores/members.client.js.map +0 -1
|
@@ -1,25 +1,31 @@
|
|
|
1
1
|
import type { HttpClientTransport as HttpClient } from '../../../core/http-client.js';
|
|
2
|
+
import { StorefrontAiDiscoveryClient } from './storefront-ai-discovery.client.js';
|
|
2
3
|
import { StorefrontRedirectsPublicClient } from '../storefront-redirects/storefront-redirects.public.client.js';
|
|
3
4
|
import { StorefrontAddressesClient } from './storefront-addresses.client.js';
|
|
4
5
|
import { StorefrontAuthClient } from './storefront-auth.client.js';
|
|
5
6
|
import { StorefrontOrdersClient } from './storefront-orders.client.js';
|
|
7
|
+
import { StorefrontPrivacyClient } from './storefront-privacy.client.js';
|
|
8
|
+
import { StorefrontReturnsClient } from './storefront-returns.client.js';
|
|
6
9
|
import { StorefrontPlansClient } from './storefront-plans.client.js';
|
|
7
10
|
import { StorefrontReviewsClient } from './storefront-reviews.client.js';
|
|
8
11
|
import { StorefrontSubscriptionsClient } from './storefront-subscriptions.client.js';
|
|
9
12
|
import { type GeoRegionParams, type StorefrontRegion } from '../../../core/types/geo.js';
|
|
10
|
-
import type { SubscribeNewsletterDto, NewsletterSubscribeResponse, SubmitContactFormDto, ContactSubmitResponse } from './types.js';
|
|
13
|
+
import type { SubscribeNewsletterDto, NewsletterSubscribeResponse, SubmitContactFormDto, ContactSubmitResponse, RegisterWarrantyDto, RegisterWarrantyResponse } from './types.js';
|
|
11
14
|
/**
|
|
12
15
|
* StorefrontClient provides customer-facing storefront operations with nested sub-clients.
|
|
13
16
|
*
|
|
14
17
|
* @example
|
|
15
18
|
* ```typescript
|
|
16
19
|
* // Register a customer
|
|
17
|
-
* const
|
|
20
|
+
* const registered = await sdk.storefront.auth.register({
|
|
18
21
|
* email: 'shopper@example.com',
|
|
19
22
|
* password: 'SecureP@ssw0rd!',
|
|
20
23
|
* firstName: 'Jane',
|
|
21
24
|
* lastName: 'Doe',
|
|
22
25
|
* });
|
|
26
|
+
* if (registered.status === 'pending_verification') {
|
|
27
|
+
* // Tenant requires email verification; no tokens yet
|
|
28
|
+
* }
|
|
23
29
|
*
|
|
24
30
|
* // Login
|
|
25
31
|
* const { customer, accessToken } = await sdk.storefront.auth.login({
|
|
@@ -52,6 +58,14 @@ import type { SubscribeNewsletterDto, NewsletterSubscribeResponse, SubmitContact
|
|
|
52
58
|
* subject: 'Help',
|
|
53
59
|
* message: 'Question about my order',
|
|
54
60
|
* });
|
|
61
|
+
* await sdk.storefront.registerWarranty({
|
|
62
|
+
* productName: 'SoClean 3+',
|
|
63
|
+
* serialNumber: 'SC3-0001',
|
|
64
|
+
* purchaseDate: '2026-09-01',
|
|
65
|
+
* purchasedFrom: 'Amazon',
|
|
66
|
+
* ownerName: 'Jane Doe',
|
|
67
|
+
* email: 'shopper@example.com',
|
|
68
|
+
* });
|
|
55
69
|
* ```
|
|
56
70
|
*/
|
|
57
71
|
export declare class StorefrontClient {
|
|
@@ -60,16 +74,19 @@ export declare class StorefrontClient {
|
|
|
60
74
|
private readonly customerToken?;
|
|
61
75
|
private _auth?;
|
|
62
76
|
private _orders?;
|
|
77
|
+
private _returns?;
|
|
78
|
+
private _privacy?;
|
|
63
79
|
private _addresses?;
|
|
64
80
|
private _subscriptions?;
|
|
65
81
|
private _reviews?;
|
|
66
82
|
private _plans?;
|
|
67
83
|
private _redirects?;
|
|
84
|
+
private _aiDiscovery?;
|
|
68
85
|
constructor(http: HttpClient, baseUrl: string, customerToken?: string | undefined);
|
|
69
86
|
/**
|
|
70
87
|
* Returns a new StorefrontClient bound to a customer access token. Customer-scoped
|
|
71
88
|
* endpoints (`auth.me()`, `auth.updateMe()`, `auth.changePassword()`, `auth.logout()`,
|
|
72
|
-
* `orders.*`, `addresses.*`, `subscriptions.*`, `reviews.create` /
|
|
89
|
+
* `orders.*`, `returns.*`, `privacy.*`, `addresses.*`, `subscriptions.*`, `reviews.create` /
|
|
73
90
|
* `reviews.voteHelpful` / `reviews.report`) send `Authorization: Bearer <token>`
|
|
74
91
|
* alongside the API key. `plans.*` is catalog-only and does not send the customer
|
|
75
92
|
* JWT. `reviews.getByProduct` / `reviews.getAggregates` are guest-safe and attach
|
|
@@ -83,7 +100,7 @@ export declare class StorefrontClient {
|
|
|
83
100
|
* SDK has an active token getter (AuthChain priority 0), its Authorization header
|
|
84
101
|
* overwrites the per-call one and withCustomer has no effect.
|
|
85
102
|
*
|
|
86
|
-
* Token refresh is consumer-owned: on a 401, call `auth.refresh(refreshToken)` and
|
|
103
|
+
* Token refresh is consumer-owned: on a 401, call `auth.refresh({ refreshToken })` and
|
|
87
104
|
* retry with `withCustomer(newAccessToken)`.
|
|
88
105
|
*
|
|
89
106
|
* @param token - Customer access token from `auth.login()` / `auth.register()`
|
|
@@ -99,6 +116,16 @@ export declare class StorefrontClient {
|
|
|
99
116
|
* Requires `withCustomer(accessToken)` for the dual-header (API key + JWT) posture.
|
|
100
117
|
*/
|
|
101
118
|
get orders(): StorefrontOrdersClient;
|
|
119
|
+
/**
|
|
120
|
+
* Customer-scoped returns (start / list / get / createLabel).
|
|
121
|
+
* Requires `withCustomer(accessToken)` for the dual-header (API key + JWT) posture.
|
|
122
|
+
*/
|
|
123
|
+
get returns(): StorefrontReturnsClient;
|
|
124
|
+
/**
|
|
125
|
+
* Customer-scoped privacy settings (get / updateDataSharing).
|
|
126
|
+
* Requires `withCustomer(accessToken)` for the dual-header (API key + JWT) posture.
|
|
127
|
+
*/
|
|
128
|
+
get privacy(): StorefrontPrivacyClient;
|
|
102
129
|
/**
|
|
103
130
|
* Customer-scoped address book (list / create / get / update / delete / setDefault).
|
|
104
131
|
* Requires `withCustomer(accessToken)` for the dual-header (API key + JWT) posture.
|
|
@@ -127,6 +154,11 @@ export declare class StorefrontClient {
|
|
|
127
154
|
* Publishable-key safe; prefer local route match before calling resolve().
|
|
128
155
|
*/
|
|
129
156
|
get redirects(): StorefrontRedirectsPublicClient;
|
|
157
|
+
/**
|
|
158
|
+
* Published AI discovery files: llms.txt and store/products JSON-LD.
|
|
159
|
+
* Each method returns null when nothing is published.
|
|
160
|
+
*/
|
|
161
|
+
get aiDiscovery(): StorefrontAiDiscoveryClient;
|
|
130
162
|
/**
|
|
131
163
|
* Per-call axios config carrying the customer JWT. Explicit region params
|
|
132
164
|
* still win server-side; the token is used only when params are absent
|
|
@@ -162,5 +194,11 @@ export declare class StorefrontClient {
|
|
|
162
194
|
* API-key only; emails the store support address via core-api + notifications.
|
|
163
195
|
*/
|
|
164
196
|
submitContactForm(data: SubmitContactFormDto): Promise<ContactSubmitResponse>;
|
|
197
|
+
/**
|
|
198
|
+
* Register a product warranty. API-key only; stored in core-api and emailed
|
|
199
|
+
* to the store support address. A repeat of the same serial number and
|
|
200
|
+
* email is accepted and creates nothing.
|
|
201
|
+
*/
|
|
202
|
+
registerWarranty(data: RegisterWarrantyDto): Promise<RegisterWarrantyResponse>;
|
|
165
203
|
}
|
|
166
204
|
//# sourceMappingURL=storefront.client.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storefront.client.d.ts","sourceRoot":"","sources":["../../../../../../src/services/core/storefront/storefront.client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,IAAI,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAEtF,OAAO,EAAE,+BAA+B,EAAE,MAAM,+DAA+D,CAAC;AAChH,OAAO,EAAE,yBAAyB,EAAE,MAAM,kCAAkC,CAAC;AAC7E,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AACvE,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AACzE,OAAO,EAAE,6BAA6B,EAAE,MAAM,sCAAsC,CAAC;AACrF,OAAO,EAEL,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACtB,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EACV,sBAAsB,EACtB,2BAA2B,EAC3B,oBAAoB,EACpB,qBAAqB,
|
|
1
|
+
{"version":3,"file":"storefront.client.d.ts","sourceRoot":"","sources":["../../../../../../src/services/core/storefront/storefront.client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,IAAI,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAEtF,OAAO,EAAE,2BAA2B,EAAE,MAAM,qCAAqC,CAAC;AAClF,OAAO,EAAE,+BAA+B,EAAE,MAAM,+DAA+D,CAAC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;gBAGhC,IAAI,EAAE,UAAU,EAChB,OAAO,EAAE,MAAM,EACf,aAAa,CAAC,EAAE,MAAM,YAAA;IAGzC;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,gBAAgB;IAa7C;;OAEG;IACH,IAAI,IAAI,IAAI,oBAAoB,CAK/B;IAED;;;OAGG;IACH,IAAI,MAAM,IAAI,sBAAsB,CAKnC;IAED;;;OAGG;IACH,IAAI,OAAO,IAAI,uBAAuB,CAKrC;IAED;;;OAGG;IACH,IAAI,OAAO,IAAI,uBAAuB,CAKrC;IAED;;;OAGG;IACH,IAAI,SAAS,IAAI,yBAAyB,CAKzC;IAED;;;;;OAKG;IACH,IAAI,aAAa,IAAI,6BAA6B,CASjD;IAED;;;;OAIG;IACH,IAAI,OAAO,IAAI,uBAAuB,CAKrC;IAED;;;OAGG;IACH,IAAI,KAAK,IAAI,qBAAqB,CAKjC;IAED;;;OAGG;IACH,IAAI,SAAS,IAAI,+BAA+B,CAK/C;IAED;;;OAGG;IACH,IAAI,WAAW,IAAI,2BAA2B,CAK7C;IAED;;;;OAIG;IACH,OAAO,CAAC,cAAc;IAMtB;;;;;;;;;;;;;;;;;OAiBG;IACG,aAAa,CAAC,MAAM,CAAC,EAAE,eAAe,GAAG,OAAO,CAAC,gBAAgB,CAAC;IASxE;;;OAGG;IACG,mBAAmB,CAAC,IAAI,EAAE,sBAAsB,GAAG,OAAO,CAAC,2BAA2B,CAAC;IAO7F;;;OAGG;IACG,iBAAiB,CAAC,IAAI,EAAE,oBAAoB,GAAG,OAAO,CAAC,qBAAqB,CAAC;IAInF;;;;OAIG;IACG,gBAAgB,CAAC,IAAI,EAAE,mBAAmB,GAAG,OAAO,CAAC,wBAAwB,CAAC;CAMrF"}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { ConfigurationError } from '../../../core/errors/index.js';
|
|
2
|
+
import { StorefrontAiDiscoveryClient } from './storefront-ai-discovery.client.js';
|
|
2
3
|
import { StorefrontRedirectsPublicClient } from '../storefront-redirects/storefront-redirects.public.client.js';
|
|
3
4
|
import { StorefrontAddressesClient } from './storefront-addresses.client.js';
|
|
4
5
|
import { StorefrontAuthClient } from './storefront-auth.client.js';
|
|
5
6
|
import { StorefrontOrdersClient } from './storefront-orders.client.js';
|
|
7
|
+
import { StorefrontPrivacyClient } from './storefront-privacy.client.js';
|
|
8
|
+
import { StorefrontReturnsClient } from './storefront-returns.client.js';
|
|
6
9
|
import { StorefrontPlansClient } from './storefront-plans.client.js';
|
|
7
10
|
import { StorefrontReviewsClient } from './storefront-reviews.client.js';
|
|
8
11
|
import { StorefrontSubscriptionsClient } from './storefront-subscriptions.client.js';
|
|
@@ -13,12 +16,15 @@ import { geoRegionQueryParams, } from '../../../core/types/geo.js';
|
|
|
13
16
|
* @example
|
|
14
17
|
* ```typescript
|
|
15
18
|
* // Register a customer
|
|
16
|
-
* const
|
|
19
|
+
* const registered = await sdk.storefront.auth.register({
|
|
17
20
|
* email: 'shopper@example.com',
|
|
18
21
|
* password: 'SecureP@ssw0rd!',
|
|
19
22
|
* firstName: 'Jane',
|
|
20
23
|
* lastName: 'Doe',
|
|
21
24
|
* });
|
|
25
|
+
* if (registered.status === 'pending_verification') {
|
|
26
|
+
* // Tenant requires email verification; no tokens yet
|
|
27
|
+
* }
|
|
22
28
|
*
|
|
23
29
|
* // Login
|
|
24
30
|
* const { customer, accessToken } = await sdk.storefront.auth.login({
|
|
@@ -51,6 +57,14 @@ import { geoRegionQueryParams, } from '../../../core/types/geo.js';
|
|
|
51
57
|
* subject: 'Help',
|
|
52
58
|
* message: 'Question about my order',
|
|
53
59
|
* });
|
|
60
|
+
* await sdk.storefront.registerWarranty({
|
|
61
|
+
* productName: 'SoClean 3+',
|
|
62
|
+
* serialNumber: 'SC3-0001',
|
|
63
|
+
* purchaseDate: '2026-09-01',
|
|
64
|
+
* purchasedFrom: 'Amazon',
|
|
65
|
+
* ownerName: 'Jane Doe',
|
|
66
|
+
* email: 'shopper@example.com',
|
|
67
|
+
* });
|
|
54
68
|
* ```
|
|
55
69
|
*/
|
|
56
70
|
export class StorefrontClient {
|
|
@@ -59,11 +73,14 @@ export class StorefrontClient {
|
|
|
59
73
|
customerToken;
|
|
60
74
|
_auth;
|
|
61
75
|
_orders;
|
|
76
|
+
_returns;
|
|
77
|
+
_privacy;
|
|
62
78
|
_addresses;
|
|
63
79
|
_subscriptions;
|
|
64
80
|
_reviews;
|
|
65
81
|
_plans;
|
|
66
82
|
_redirects;
|
|
83
|
+
_aiDiscovery;
|
|
67
84
|
constructor(http, baseUrl, customerToken) {
|
|
68
85
|
this.http = http;
|
|
69
86
|
this.baseUrl = baseUrl;
|
|
@@ -72,7 +89,7 @@ export class StorefrontClient {
|
|
|
72
89
|
/**
|
|
73
90
|
* Returns a new StorefrontClient bound to a customer access token. Customer-scoped
|
|
74
91
|
* endpoints (`auth.me()`, `auth.updateMe()`, `auth.changePassword()`, `auth.logout()`,
|
|
75
|
-
* `orders.*`, `addresses.*`, `subscriptions.*`, `reviews.create` /
|
|
92
|
+
* `orders.*`, `returns.*`, `privacy.*`, `addresses.*`, `subscriptions.*`, `reviews.create` /
|
|
76
93
|
* `reviews.voteHelpful` / `reviews.report`) send `Authorization: Bearer <token>`
|
|
77
94
|
* alongside the API key. `plans.*` is catalog-only and does not send the customer
|
|
78
95
|
* JWT. `reviews.getByProduct` / `reviews.getAggregates` are guest-safe and attach
|
|
@@ -86,7 +103,7 @@ export class StorefrontClient {
|
|
|
86
103
|
* SDK has an active token getter (AuthChain priority 0), its Authorization header
|
|
87
104
|
* overwrites the per-call one and withCustomer has no effect.
|
|
88
105
|
*
|
|
89
|
-
* Token refresh is consumer-owned: on a 401, call `auth.refresh(refreshToken)` and
|
|
106
|
+
* Token refresh is consumer-owned: on a 401, call `auth.refresh({ refreshToken })` and
|
|
90
107
|
* retry with `withCustomer(newAccessToken)`.
|
|
91
108
|
*
|
|
92
109
|
* @param token - Customer access token from `auth.login()` / `auth.register()`
|
|
@@ -121,6 +138,26 @@ export class StorefrontClient {
|
|
|
121
138
|
}
|
|
122
139
|
return this._orders;
|
|
123
140
|
}
|
|
141
|
+
/**
|
|
142
|
+
* Customer-scoped returns (start / list / get / createLabel).
|
|
143
|
+
* Requires `withCustomer(accessToken)` for the dual-header (API key + JWT) posture.
|
|
144
|
+
*/
|
|
145
|
+
get returns() {
|
|
146
|
+
if (!this._returns) {
|
|
147
|
+
this._returns = new StorefrontReturnsClient(this.http, this.baseUrl, this.customerToken);
|
|
148
|
+
}
|
|
149
|
+
return this._returns;
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Customer-scoped privacy settings (get / updateDataSharing).
|
|
153
|
+
* Requires `withCustomer(accessToken)` for the dual-header (API key + JWT) posture.
|
|
154
|
+
*/
|
|
155
|
+
get privacy() {
|
|
156
|
+
if (!this._privacy) {
|
|
157
|
+
this._privacy = new StorefrontPrivacyClient(this.http, this.baseUrl, this.customerToken);
|
|
158
|
+
}
|
|
159
|
+
return this._privacy;
|
|
160
|
+
}
|
|
124
161
|
/**
|
|
125
162
|
* Customer-scoped address book (list / create / get / update / delete / setDefault).
|
|
126
163
|
* Requires `withCustomer(accessToken)` for the dual-header (API key + JWT) posture.
|
|
@@ -174,6 +211,16 @@ export class StorefrontClient {
|
|
|
174
211
|
}
|
|
175
212
|
return this._redirects;
|
|
176
213
|
}
|
|
214
|
+
/**
|
|
215
|
+
* Published AI discovery files: llms.txt and store/products JSON-LD.
|
|
216
|
+
* Each method returns null when nothing is published.
|
|
217
|
+
*/
|
|
218
|
+
get aiDiscovery() {
|
|
219
|
+
if (!this._aiDiscovery) {
|
|
220
|
+
this._aiDiscovery = new StorefrontAiDiscoveryClient(this.http, this.baseUrl);
|
|
221
|
+
}
|
|
222
|
+
return this._aiDiscovery;
|
|
223
|
+
}
|
|
177
224
|
/**
|
|
178
225
|
* Per-call axios config carrying the customer JWT. Explicit region params
|
|
179
226
|
* still win server-side; the token is used only when params are absent
|
|
@@ -224,5 +271,13 @@ export class StorefrontClient {
|
|
|
224
271
|
async submitContactForm(data) {
|
|
225
272
|
return this.http.post(`${this.baseUrl}/v1/storefront/contact`, data);
|
|
226
273
|
}
|
|
274
|
+
/**
|
|
275
|
+
* Register a product warranty. API-key only; stored in core-api and emailed
|
|
276
|
+
* to the store support address. A repeat of the same serial number and
|
|
277
|
+
* email is accepted and creates nothing.
|
|
278
|
+
*/
|
|
279
|
+
async registerWarranty(data) {
|
|
280
|
+
return this.http.post(`${this.baseUrl}/v1/storefront/warranty-registrations`, data);
|
|
281
|
+
}
|
|
227
282
|
}
|
|
228
283
|
//# sourceMappingURL=storefront.client.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storefront.client.js","sourceRoot":"","sources":["../../../../../../src/services/core/storefront/storefront.client.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAAE,+BAA+B,EAAE,MAAM,+DAA+D,CAAC;AAChH,OAAO,EAAE,yBAAyB,EAAE,MAAM,kCAAkC,CAAC;AAC7E,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AACvE,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AACzE,OAAO,EAAE,6BAA6B,EAAE,MAAM,sCAAsC,CAAC;AACrF,OAAO,EACL,oBAAoB,GAGrB,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"storefront.client.js","sourceRoot":"","sources":["../../../../../../src/services/core/storefront/storefront.client.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAAE,2BAA2B,EAAE,MAAM,qCAAqC,CAAC;AAClF,OAAO,EAAE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KAAK,CAAC,gBAAgB,CAAC,IAAyB;QAC9C,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CACnB,GAAG,IAAI,CAAC,OAAO,uCAAuC,EACtD,IAAI,CACL,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import type { AddressSnapshot } from '../../../core/types/address.js';
|
|
2
|
+
import type { CoreApiSchemas } from '../../../core/types/contracts.js';
|
|
3
|
+
type StorefrontAddressFields = Pick<AddressSnapshot, 'firstName' | 'lastName' | 'company' | 'address1' | 'address2' | 'city' | 'state' | 'country' | 'phone' | 'instructions'>;
|
|
1
4
|
export interface StorefrontRegisterDto {
|
|
2
5
|
email: string;
|
|
3
6
|
password: string;
|
|
@@ -37,27 +40,17 @@ export type StorefrontDefaultAddressType = 'billing' | 'shipping';
|
|
|
37
40
|
* Shopper-visible address. Matches core-api StorefrontAddressDto
|
|
38
41
|
* (admin validation/geocode/metadata fields are omitted).
|
|
39
42
|
*/
|
|
40
|
-
export interface StorefrontAddress {
|
|
43
|
+
export interface StorefrontAddress extends StorefrontAddressFields {
|
|
41
44
|
id: string;
|
|
42
45
|
customerId: string;
|
|
43
46
|
tenantId: string;
|
|
44
47
|
storeId: string;
|
|
45
48
|
type: StorefrontAddressType;
|
|
46
49
|
label?: string;
|
|
47
|
-
firstName?: string;
|
|
48
|
-
lastName?: string;
|
|
49
|
-
company?: string;
|
|
50
|
-
address1: string;
|
|
51
|
-
address2?: string;
|
|
52
50
|
address3?: string;
|
|
53
|
-
city: string;
|
|
54
|
-
state?: string;
|
|
55
51
|
zip: string;
|
|
56
|
-
country: string;
|
|
57
|
-
phone?: string;
|
|
58
52
|
isDefaultBilling: boolean;
|
|
59
53
|
isDefaultShipping: boolean;
|
|
60
|
-
instructions?: string;
|
|
61
54
|
createdAt: string;
|
|
62
55
|
updatedAt: string;
|
|
63
56
|
}
|
|
@@ -65,21 +58,11 @@ export interface StorefrontAddress {
|
|
|
65
58
|
* Shopper-writable create payload. Default billing/shipping flags are omitted;
|
|
66
59
|
* set them via `addresses.setDefault(id, type)`.
|
|
67
60
|
*/
|
|
68
|
-
export interface CreateStorefrontAddressDto {
|
|
61
|
+
export interface CreateStorefrontAddressDto extends StorefrontAddressFields {
|
|
69
62
|
type: StorefrontAddressType;
|
|
70
63
|
label?: string;
|
|
71
|
-
firstName?: string;
|
|
72
|
-
lastName?: string;
|
|
73
|
-
company?: string;
|
|
74
|
-
address1: string;
|
|
75
|
-
address2?: string;
|
|
76
64
|
address3?: string;
|
|
77
|
-
city: string;
|
|
78
|
-
state?: string;
|
|
79
65
|
zip: string;
|
|
80
|
-
country: string;
|
|
81
|
-
phone?: string;
|
|
82
|
-
instructions?: string;
|
|
83
66
|
}
|
|
84
67
|
export type UpdateStorefrontAddressDto = Partial<CreateStorefrontAddressDto>;
|
|
85
68
|
export interface StorefrontAddressListOptions {
|
|
@@ -102,10 +85,25 @@ export interface StorefrontCustomerDto {
|
|
|
102
85
|
customerGroupId?: string | null;
|
|
103
86
|
}
|
|
104
87
|
export interface StorefrontAuthResponse {
|
|
88
|
+
status: 'authenticated';
|
|
105
89
|
customer: StorefrontCustomerDto;
|
|
106
90
|
accessToken: string;
|
|
107
91
|
refreshToken?: string;
|
|
108
92
|
}
|
|
93
|
+
/**
|
|
94
|
+
* Returned by register when the tenant requires email verification: no tokens
|
|
95
|
+
* are issued until the shopper confirms the code.
|
|
96
|
+
*/
|
|
97
|
+
export interface StorefrontPendingVerificationResponse {
|
|
98
|
+
status: 'pending_verification';
|
|
99
|
+
}
|
|
100
|
+
/** register() result; narrow on `status` before reading tokens. */
|
|
101
|
+
export type StorefrontRegisterResponse = StorefrontAuthResponse | StorefrontPendingVerificationResponse;
|
|
102
|
+
export type StorefrontRefreshDto = CoreApiSchemas['RefreshTokenBodyDto'];
|
|
103
|
+
/** logout() body: `refreshToken` of this session ends only this session. */
|
|
104
|
+
export type StorefrontLogoutDto = CoreApiSchemas['StorefrontLogoutBodyDto'];
|
|
105
|
+
/** changePassword() result: fresh tokens (with a new refresh token) for this session. */
|
|
106
|
+
export type StorefrontChangePasswordResponse = CoreApiSchemas['StorefrontAuthResponseDto'];
|
|
109
107
|
export interface StorefrontTokenResponse {
|
|
110
108
|
accessToken: string;
|
|
111
109
|
idToken?: string;
|
|
@@ -128,4 +126,8 @@ export interface SubmitContactFormDto {
|
|
|
128
126
|
export interface ContactSubmitResponse {
|
|
129
127
|
accepted: boolean;
|
|
130
128
|
}
|
|
129
|
+
/** Storefront warranty registration. */
|
|
130
|
+
export type RegisterWarrantyDto = CoreApiSchemas['RegisterWarrantyDto'];
|
|
131
|
+
export type RegisterWarrantyResponse = CoreApiSchemas['RegisterWarrantyResponseDto'];
|
|
132
|
+
export {};
|
|
131
133
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/services/core/storefront/types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/services/core/storefront/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAGvE,KAAK,uBAAuB,GAAG,IAAI,CACjC,eAAe,EACb,WAAW,GACX,UAAU,GACV,SAAS,GACT,UAAU,GACV,UAAU,GACV,MAAM,GACN,OAAO,GACP,SAAS,GACT,OAAO,GACP,cAAc,CACjB,CAAC;AAIF,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED,MAAM,WAAW,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M,MAAM,mBAAmB,GAAG,cAAc,CAAC,yBAAyB,CAAC,CAAC;AAE5E,yFAAyF;AACzF,MAAM,MAAM,gCAAgC,GAAG,cAAc,CAAC,2BAA2B,CAAC,CAAC;AAE3F,MAAM,WAAW,uBAAuB;IACtC,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAID,MAAM,WAAW,sBAAsB;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,2BAA2B;IAC1C,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,qBAAqB;IACpC,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,wCAAwC;AACxC,MAAM,MAAM,mBAAmB,GAAG,cAAc,CAAC,qBAAqB,CAAC,CAAC;AAExE,MAAM,MAAM,wBAAwB,GAAG,cAAc,CAAC,6BAA6B,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../src/services/core/storefront/types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../src/services/core/storefront/types.ts"],"names":[],"mappings":""}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { CoreApiSchemas } from '../../../core/types/contracts.js';
|
|
1
2
|
/** HTTP status codes supported by storefront exact redirects. */
|
|
2
3
|
export type RedirectStatusCode = 301 | 302;
|
|
3
4
|
/** Import preview row disposition. */
|
|
@@ -88,10 +89,7 @@ export interface RedirectImportJob {
|
|
|
88
89
|
createdAt: string;
|
|
89
90
|
completedAt?: string | null;
|
|
90
91
|
}
|
|
91
|
-
export
|
|
92
|
-
downloadUrl: string;
|
|
93
|
-
expiresAt: string;
|
|
94
|
-
}
|
|
92
|
+
export type RedirectImportReportUrl = CoreApiSchemas['RedirectImportReportUrlDto'];
|
|
95
93
|
export interface RedirectImportCommitOptions {
|
|
96
94
|
/** Required client-generated key sent as Idempotency-Key. */
|
|
97
95
|
idempotencyKey: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/services/core/storefront-redirects/types.ts"],"names":[],"mappings":"AAAA,iEAAiE;AACjE,MAAM,MAAM,kBAAkB,GAAG,GAAG,GAAG,GAAG,CAAC;AAE3C,sCAAsC;AACtC,MAAM,MAAM,oBAAoB,GAAG,QAAQ,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAC;AAE1E,2CAA2C;AAC3C,MAAM,MAAM,uBAAuB,GAAG,WAAW,GAAG,SAAS,GAAG,SAAS,GAAG,WAAW,GAAG,QAAQ,CAAC;AAInG,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,kBAAkB,CAAC;IAC/B,aAAa,EAAE,OAAO,CAAC;IACvB,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,UAAU,EAAE,OAAO,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,2BAA2B;IAC1C,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,kBAAkB,CAAC;IAChC,a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AAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,qBAAqB;IACpC,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,wBAAwB,EAAE,CAAC;CAClC;AAED,MAAM,WAAW,4BAA4B;IAC3C,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,uBAAuB,CAAC;CACjC;AAED,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,uBAAuB,CAAC;IAChC,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B;AAED,MAAM,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/services/core/storefront-redirects/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAEvE,iEAAiE;AACjE,MAAM,MAAM,kBAAkB,GAAG,GAAG,GAAG,GAAG,CAAC;AAE3C,sCAAsC;AACtC,MAAM,MAAM,oBAAoB,GAAG,QAAQ,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAC;AAE1E,2CAA2C;AAC3C,MAAM,MAAM,uBAAuB,GAAG,WAAW,GAAG,SAAS,GAAG,SAAS,GAAG,WAAW,GAAG,QAAQ,CAAC;A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,GAAG,IAAI,CAAC;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B;AAED,MAAM,MAAM,uBAAuB,GAAG,cAAc,CAAC,4BAA4B,CAAC,CAAC;AAEnF,MAAM,WAAW,2BAA2B;IAC1C,6DAA6D;IAC7D,cAAc,EAAE,MAAM,CAAC;CACxB;AAID,MAAM,WAAW,qBAAqB;IACpC,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,kBAAkB,CAAC;IAC/B,aAAa,EAAE,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,gBAAgB;IAC/B,+EAA+E;IAC/E,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,qBAAqB,EAAE,CAAC;CACpC;AAED,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,OAAO,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,kBAAkB,CAAC;IAChC,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,QAAQ,EAAE,MAAM,CAAC;CAClB"}
|
|
@@ -1,43 +1,15 @@
|
|
|
1
1
|
import type { HttpClientTransport as HttpClient } from '../../../core/http-client.js';
|
|
2
|
-
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
categoryCount: number;
|
|
14
|
-
lastPublished: string | null;
|
|
15
|
-
autoPublishEnabled: boolean;
|
|
16
|
-
}
|
|
17
|
-
export interface AiDiscoveryFileResponse {
|
|
18
|
-
id: string;
|
|
19
|
-
storeId: string;
|
|
20
|
-
fileType: AiDiscoveryFileType;
|
|
21
|
-
content: string;
|
|
22
|
-
generatedAt: string;
|
|
23
|
-
publishedAt: string | null;
|
|
24
|
-
modifiedAt: string | null;
|
|
25
|
-
isLocked: boolean;
|
|
26
|
-
isDraft: boolean;
|
|
27
|
-
checksum: string;
|
|
28
|
-
createdAt: string;
|
|
29
|
-
updatedAt: string;
|
|
30
|
-
}
|
|
31
|
-
export interface AiDiscoveryFileWithGenerated extends AiDiscoveryFileResponse {
|
|
32
|
-
generatedContent: string;
|
|
33
|
-
}
|
|
34
|
-
export interface UpdateAiDiscoveryFileDto {
|
|
35
|
-
content: string;
|
|
36
|
-
isLocked?: boolean;
|
|
37
|
-
}
|
|
38
|
-
export interface PublishAiDiscoveryDto {
|
|
39
|
-
fileTypes?: AiDiscoveryFileType[];
|
|
40
|
-
}
|
|
2
|
+
import type { CoreApiSchemas } from '../../../core/types/contracts.js';
|
|
3
|
+
export type AiDiscoveryFileType = CoreApiSchemas['AiDiscoveryFileSummaryDto']['fileType'];
|
|
4
|
+
export type AiDiscoveryFileStatus = CoreApiSchemas['AiDiscoveryFileSummaryDto']['status'];
|
|
5
|
+
export type AiDiscoveryFileSummary = CoreApiSchemas['AiDiscoveryFileSummaryDto'];
|
|
6
|
+
export type AiDiscoveryStatusResponse = CoreApiSchemas['AiDiscoveryStatusResponseDto'];
|
|
7
|
+
export type AiDiscoveryFileResponse = CoreApiSchemas['AiDiscoveryFileResponseDto'];
|
|
8
|
+
export type AiDiscoveryFileWithGenerated = CoreApiSchemas['AiDiscoveryFileWithGeneratedDto'];
|
|
9
|
+
export type AiDiscoveryLiveCheckResponse = CoreApiSchemas['AiDiscoveryLiveCheckResponseDto'];
|
|
10
|
+
export type AiDiscoveryLiveCheckStatus = AiDiscoveryLiveCheckResponse['status'];
|
|
11
|
+
export type UpdateAiDiscoveryFileDto = CoreApiSchemas['UpdateAiDiscoveryFileDto'];
|
|
12
|
+
export type PublishAiDiscoveryDto = CoreApiSchemas['PublishAiDiscoveryDto'];
|
|
41
13
|
/**
|
|
42
14
|
* StoreAiDiscoveryClient manages AI discovery files for storefronts.
|
|
43
15
|
*
|
|
@@ -63,6 +35,9 @@ export interface PublishAiDiscoveryDto {
|
|
|
63
35
|
*
|
|
64
36
|
* // Regenerate a specific file from store data
|
|
65
37
|
* await sdk.stores.aiDiscovery.regenerate(storeId, 'products-schema');
|
|
38
|
+
*
|
|
39
|
+
* // Check that the live site serves the published llms.txt
|
|
40
|
+
* const check = await sdk.stores.aiDiscovery.liveCheck(storeId);
|
|
66
41
|
* ```
|
|
67
42
|
*/
|
|
68
43
|
export declare class StoreAiDiscoveryClient {
|
|
@@ -77,6 +52,12 @@ export declare class StoreAiDiscoveryClient {
|
|
|
77
52
|
* Get a specific AI discovery file with generated content
|
|
78
53
|
*/
|
|
79
54
|
getFile(storeId: string, fileType: AiDiscoveryFileType): Promise<AiDiscoveryFileWithGenerated>;
|
|
55
|
+
/**
|
|
56
|
+
* Fetch https://<primary domain>/llms.txt from the server and report whether it serves
|
|
57
|
+
* the published content (`served`, `out-of-date`, `missing`, `unreachable`, `not-published`).
|
|
58
|
+
* Requires `ai-discovery:read`.
|
|
59
|
+
*/
|
|
60
|
+
liveCheck(storeId: string): Promise<AiDiscoveryLiveCheckResponse>;
|
|
80
61
|
/**
|
|
81
62
|
* Update an AI discovery file content and/or lock status
|
|
82
63
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ai-discovery.client.d.ts","sourceRoot":"","sources":["../../../../../../src/services/core/stores/ai-discovery.client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,IAAI,UAAU,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"ai-discovery.client.d.ts","sourceRoot":"","sources":["../../../../../../src/services/core/stores/ai-discovery.client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,IAAI,UAAU,EAAE,MAAM,8BAA8B,CAAC;AACtF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAIvE,MAAM,MAAM,mBAAmB,GAAG,cAAc,CAAC,2BAA2B,CAAC,CAA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;IAOnC;;;;;OAKG;IACG,OAAO,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,qBAAqB,GAAG,OAAO,CAAC,uBAAuB,EAAE,CAAC;IAOhG;;;;OAIG;IACG,UAAU,CACd,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,mBAAmB,GAC5B,OAAO,CAAC,uBAAuB,CAAC;CAMpC"}
|
|
@@ -24,6 +24,9 @@
|
|
|
24
24
|
*
|
|
25
25
|
* // Regenerate a specific file from store data
|
|
26
26
|
* await sdk.stores.aiDiscovery.regenerate(storeId, 'products-schema');
|
|
27
|
+
*
|
|
28
|
+
* // Check that the live site serves the published llms.txt
|
|
29
|
+
* const check = await sdk.stores.aiDiscovery.liveCheck(storeId);
|
|
27
30
|
* ```
|
|
28
31
|
*/
|
|
29
32
|
export class StoreAiDiscoveryClient {
|
|
@@ -45,6 +48,14 @@ export class StoreAiDiscoveryClient {
|
|
|
45
48
|
async getFile(storeId, fileType) {
|
|
46
49
|
return this.http.get(`${this.baseUrl}/v1/stores/${storeId}/ai-discovery/${fileType}`);
|
|
47
50
|
}
|
|
51
|
+
/**
|
|
52
|
+
* Fetch https://<primary domain>/llms.txt from the server and report whether it serves
|
|
53
|
+
* the published content (`served`, `out-of-date`, `missing`, `unreachable`, `not-published`).
|
|
54
|
+
* Requires `ai-discovery:read`.
|
|
55
|
+
*/
|
|
56
|
+
async liveCheck(storeId) {
|
|
57
|
+
return this.http.get(`${this.baseUrl}/v1/stores/${storeId}/ai-discovery/live-check`);
|
|
58
|
+
}
|
|
48
59
|
/**
|
|
49
60
|
* Update an AI discovery file content and/or lock status
|
|
50
61
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ai-discovery.client.js","sourceRoot":"","sources":["../../../../../../src/services/core/stores/ai-discovery.client.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ai-discovery.client.js","sourceRoot":"","sources":["../../../../../../src/services/core/stores/ai-discovery.client.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