@poweredbysous/storefront-sdk 2.1.0 → 2.3.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/dist/index.d.cts CHANGED
@@ -657,6 +657,31 @@ interface paths {
657
657
  patch?: never;
658
658
  trace?: never;
659
659
  };
660
+ "/api/v1/checkout/{checkout_id}/marketing-consent/": {
661
+ parameters: {
662
+ query?: never;
663
+ header?: never;
664
+ path?: never;
665
+ cookie?: never;
666
+ };
667
+ get?: never;
668
+ put?: never;
669
+ post?: never;
670
+ delete?: never;
671
+ options?: never;
672
+ head?: never;
673
+ /**
674
+ * @description PATCH /api/v1/checkout/{id}/marketing-consent/ — the customer's opt-in
675
+ * for special offers and updates.
676
+ *
677
+ * Kept off the delivery PATCH deliberately: consent is an independent choice
678
+ * the customer can toggle at any point in the flow, and folding it into
679
+ * ``set_delivery`` would force a ``DELIVERY_SET`` transition on a write that
680
+ * changes no totals. Store-scoped like every other checkout mutation.
681
+ */
682
+ patch: operations["checkout_marketing_consent_partial_update"];
683
+ trace?: never;
684
+ };
660
685
  "/api/v1/checkout/{checkout_id}/packaging-choice/": {
661
686
  parameters: {
662
687
  query?: never;
@@ -2739,24 +2764,10 @@ interface components {
2739
2764
  /**
2740
2765
  * @description How many products this category shows, descendants included.
2741
2766
  *
2742
- * Counted through the compliance gate (D15), because the count and the
2743
- * listing are one read model: ``/categories/`` reported 5 while
2744
- * ``/categories/<id>/products/`` returned 0, which discloses how many
2745
- * hidden products sit in each category and, by diffing, which categories
2746
- * are affected. Search's ``total`` had already closed the same gap.
2747
- *
2748
- * No ``annotated_product_count`` shortcut any more: a ``Count()`` in the
2749
- * view cannot know the verdict, so such an annotation would be an ungated
2750
- * number that silently won over this one.
2751
- *
2752
2767
  * The listing precomputes every category's count in one pass
2753
- * (``views._build_gated_counts``) and passes it in context, because doing
2754
- * it per category asked the gate — a fixed handful of queries however
2755
- * many ids it is given — once per category in the tree. ``MAX_DEPTH = 4``
2756
- * bounds the depth but not the breadth, and breadth is what drives it.
2757
- *
2758
- * The fallback below is the single-object path (retrieve), where there is
2759
- * no tree to amortise over and one gate call is the whole cost.
2768
+ * (``views._build_product_counts``) and passes it in context; the
2769
+ * fallback below is the single-object path (retrieve), which counts its
2770
+ * own subtree directly.
2760
2771
  */
2761
2772
  readonly product_count: number;
2762
2773
  };
@@ -2938,6 +2949,14 @@ interface components {
2938
2949
  language_preference?: (components["schemas"]["LanguagePreferenceEnum"] | components["schemas"]["NullEnum"]) | null;
2939
2950
  marketing_opt_in?: boolean | null;
2940
2951
  };
2952
+ /**
2953
+ * @description What merchant-portal-backend's publish needs to know about a store
2954
+ * whose delivery methods the portal's toggles own.
2955
+ */
2956
+ DeliveryMethodToggles: {
2957
+ wizard_choice_applies: components["schemas"]["WizardChoiceApplies"];
2958
+ publish_readiness: string[];
2959
+ };
2941
2960
  /**
2942
2961
  * @description * `merchant` - Merchant
2943
2962
  * * `customer` - Customer
@@ -3589,6 +3608,24 @@ interface components {
3589
3608
  /** Format: uuid */
3590
3609
  service_point_id?: string | null;
3591
3610
  };
3611
+ /**
3612
+ * @description Marketing consent captured at checkout.
3613
+ *
3614
+ * A single opt-in for special offers and updates (over email, SMS or
3615
+ * WhatsApp), plus the version identifier of the consent copy the customer
3616
+ * saw. Stored on the checkout and copied to the order at creation, then
3617
+ * forwarded to the merchant portal, which persists it onto the customer
3618
+ * record. Unticked by default; the order completes regardless of state.
3619
+ */
3620
+ PatchedMarketingConsentInput: {
3621
+ /** @default false */
3622
+ opted_in: boolean;
3623
+ /**
3624
+ * @description Version id of the consent copy shown to the customer.
3625
+ * @default
3626
+ */
3627
+ version: string;
3628
+ };
3592
3629
  PatchedPromotion: {
3593
3630
  readonly id?: number;
3594
3631
  /** @description Per-location id (PAT-1306). Required when location_scope=SINGLE; NULL for SUBSET and ALL_LOCATIONS. */
@@ -4446,6 +4483,7 @@ interface components {
4446
4483
  readonly updated_at: string;
4447
4484
  readonly brand_assets: components["schemas"]["StoreBrandAsset"][];
4448
4485
  readonly uber_direct_supported_countries: string[];
4486
+ readonly delivery_method_toggles: components["schemas"]["DeliveryMethodToggles"] | null;
4449
4487
  };
4450
4488
  /**
4451
4489
  * @description * `draft` - Draft
@@ -4709,6 +4747,11 @@ interface components {
4709
4747
  completed_at: string | null;
4710
4748
  eligibility_snapshot: components["schemas"]["EligibilitySnapshot"];
4711
4749
  };
4750
+ /** @description Per delivery method: whether the wizard's toggle still decides it. */
4751
+ WizardChoiceApplies: {
4752
+ uber_direct: boolean;
4753
+ lieferando: boolean;
4754
+ };
4712
4755
  /** @description Customer-facing Zeemijlen balance + redemption economics. */
4713
4756
  ZeemijlenSummary: {
4714
4757
  points_balance: number;
@@ -7872,6 +7915,107 @@ interface operations {
7872
7915
  };
7873
7916
  };
7874
7917
  };
7918
+ checkout_marketing_consent_partial_update: {
7919
+ parameters: {
7920
+ query?: never;
7921
+ header?: never;
7922
+ path: {
7923
+ checkout_id: string;
7924
+ };
7925
+ cookie?: never;
7926
+ };
7927
+ requestBody?: {
7928
+ content: {
7929
+ "application/json": components["schemas"]["PatchedMarketingConsentInput"];
7930
+ "application/x-www-form-urlencoded": components["schemas"]["PatchedMarketingConsentInput"];
7931
+ "multipart/form-data": components["schemas"]["PatchedMarketingConsentInput"];
7932
+ };
7933
+ };
7934
+ responses: {
7935
+ 200: {
7936
+ headers: {
7937
+ [name: string]: unknown;
7938
+ };
7939
+ content: {
7940
+ "application/json": {
7941
+ [key: string]: unknown;
7942
+ };
7943
+ };
7944
+ };
7945
+ /** @description Possible error codes: `CHECKOUT_VALIDATION_ERROR`. Retryable: no. Possible error codes include `VALIDATION_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `CHECKOUT_NOT_PAID`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `CHECKOUT_VALIDATION_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `MISSING_CART_ID`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `MISSING_GATEWAY_ID`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `INVALID_GATEWAY`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `INVALID_SHIPPING_METHOD`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `SHIPPING_FULFILLMENT_MISMATCH`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `MISSING_GIFT_CARD_CODE`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `GATEWAY_NOT_ENABLED`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `INVALID_TAX_PROVIDER`. Use `x-error-codes` for machine-readable retryability metadata. */
7946
+ 400: {
7947
+ headers: {
7948
+ [name: string]: unknown;
7949
+ };
7950
+ content: {
7951
+ "application/json": components["schemas"]["APIErrorEnvelope"];
7952
+ };
7953
+ };
7954
+ /** @description Possible error codes include `UNAUTHORIZED`. Use `x-error-codes` for machine-readable retryability metadata. */
7955
+ 401: {
7956
+ headers: {
7957
+ [name: string]: unknown;
7958
+ };
7959
+ content: {
7960
+ "application/json": components["schemas"]["APIErrorEnvelope"];
7961
+ };
7962
+ };
7963
+ /** @description Possible error codes include `FORBIDDEN`. Use `x-error-codes` for machine-readable retryability metadata. */
7964
+ 403: {
7965
+ headers: {
7966
+ [name: string]: unknown;
7967
+ };
7968
+ content: {
7969
+ "application/json": components["schemas"]["APIErrorEnvelope"];
7970
+ };
7971
+ };
7972
+ /** @description Possible error codes: `CHECKOUT_NOT_FOUND`. Retryable: no. Possible error codes include `NOT_FOUND`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `CHECKOUT_NOT_FOUND`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `SHIPPING_GROUP_NOT_FOUND`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `SHIPPING_RATE_NOT_FOUND`. Use `x-error-codes` for machine-readable retryability metadata. */
7973
+ 404: {
7974
+ headers: {
7975
+ [name: string]: unknown;
7976
+ };
7977
+ content: {
7978
+ "application/json": components["schemas"]["APIErrorEnvelope"];
7979
+ };
7980
+ };
7981
+ /** @description Possible error codes: `CHECKOUT_INVALID_STATUS`. Retryable: no. Possible error codes include `CHECKOUT_INVALID_STATUS`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `PAYMENT_IN_FLIGHT`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `store_closed_for_date`. Use `x-error-codes` for machine-readable retryability metadata. */
7982
+ 409: {
7983
+ headers: {
7984
+ [name: string]: unknown;
7985
+ };
7986
+ content: {
7987
+ "application/json": components["schemas"]["APIErrorEnvelope"];
7988
+ };
7989
+ };
7990
+ /** @description Possible error codes include `SHIPPING_RATE_EXPIRED`. Use `x-error-codes` for machine-readable retryability metadata. */
7991
+ 410: {
7992
+ headers: {
7993
+ [name: string]: unknown;
7994
+ };
7995
+ content: {
7996
+ "application/json": components["schemas"]["APIErrorEnvelope"];
7997
+ };
7998
+ };
7999
+ /** @description Possible error codes include `RATE_LIMITED`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `MERCHANT_AT_CAPACITY`. Use `x-error-codes` for machine-readable retryability metadata. */
8000
+ 429: {
8001
+ headers: {
8002
+ [name: string]: unknown;
8003
+ };
8004
+ content: {
8005
+ "application/json": components["schemas"]["APIErrorEnvelope"];
8006
+ };
8007
+ };
8008
+ /** @description Possible error codes include `INTERNAL_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. */
8009
+ 500: {
8010
+ headers: {
8011
+ [name: string]: unknown;
8012
+ };
8013
+ content: {
8014
+ "application/json": components["schemas"]["APIErrorEnvelope"];
8015
+ };
8016
+ };
8017
+ };
8018
+ };
7875
8019
  checkout_packaging_choice_create: {
7876
8020
  parameters: {
7877
8021
  query?: never;
@@ -8000,7 +8144,7 @@ interface operations {
8000
8144
  };
8001
8145
  };
8002
8146
  };
8003
- /** @description Possible error codes: `MISSING_GATEWAY_ID`, `GATEWAY_NOT_ENABLED`, `INVALID_GATEWAY`, `MISSING_GIFT_CARD_CODE`, `INVALID_TAX_PROVIDER`, `PRODUCT_UNAVAILABLE`. Retryable: no. Possible error codes include `VALIDATION_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `CHECKOUT_NOT_PAID`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `CHECKOUT_VALIDATION_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `MISSING_CART_ID`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `MISSING_GATEWAY_ID`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `INVALID_GATEWAY`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `INVALID_SHIPPING_METHOD`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `SHIPPING_FULFILLMENT_MISMATCH`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `MISSING_GIFT_CARD_CODE`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `GATEWAY_NOT_ENABLED`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `INVALID_TAX_PROVIDER`. Use `x-error-codes` for machine-readable retryability metadata. */
8147
+ /** @description Possible error codes: `MISSING_GATEWAY_ID`, `GATEWAY_NOT_ENABLED`, `INVALID_GATEWAY`, `MISSING_GIFT_CARD_CODE`, `INVALID_TAX_PROVIDER`, `PRODUCT_UNAVAILABLE`, `SERVICE_POINT_REQUIRED`. Retryable: no. Possible error codes include `VALIDATION_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `CHECKOUT_NOT_PAID`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `CHECKOUT_VALIDATION_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `MISSING_CART_ID`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `MISSING_GATEWAY_ID`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `INVALID_GATEWAY`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `INVALID_SHIPPING_METHOD`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `SHIPPING_FULFILLMENT_MISMATCH`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `MISSING_GIFT_CARD_CODE`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `GATEWAY_NOT_ENABLED`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `INVALID_TAX_PROVIDER`. Use `x-error-codes` for machine-readable retryability metadata. */
8004
8148
  400: {
8005
8149
  headers: {
8006
8150
  [name: string]: unknown;
package/dist/index.d.ts CHANGED
@@ -657,6 +657,31 @@ interface paths {
657
657
  patch?: never;
658
658
  trace?: never;
659
659
  };
660
+ "/api/v1/checkout/{checkout_id}/marketing-consent/": {
661
+ parameters: {
662
+ query?: never;
663
+ header?: never;
664
+ path?: never;
665
+ cookie?: never;
666
+ };
667
+ get?: never;
668
+ put?: never;
669
+ post?: never;
670
+ delete?: never;
671
+ options?: never;
672
+ head?: never;
673
+ /**
674
+ * @description PATCH /api/v1/checkout/{id}/marketing-consent/ — the customer's opt-in
675
+ * for special offers and updates.
676
+ *
677
+ * Kept off the delivery PATCH deliberately: consent is an independent choice
678
+ * the customer can toggle at any point in the flow, and folding it into
679
+ * ``set_delivery`` would force a ``DELIVERY_SET`` transition on a write that
680
+ * changes no totals. Store-scoped like every other checkout mutation.
681
+ */
682
+ patch: operations["checkout_marketing_consent_partial_update"];
683
+ trace?: never;
684
+ };
660
685
  "/api/v1/checkout/{checkout_id}/packaging-choice/": {
661
686
  parameters: {
662
687
  query?: never;
@@ -2739,24 +2764,10 @@ interface components {
2739
2764
  /**
2740
2765
  * @description How many products this category shows, descendants included.
2741
2766
  *
2742
- * Counted through the compliance gate (D15), because the count and the
2743
- * listing are one read model: ``/categories/`` reported 5 while
2744
- * ``/categories/<id>/products/`` returned 0, which discloses how many
2745
- * hidden products sit in each category and, by diffing, which categories
2746
- * are affected. Search's ``total`` had already closed the same gap.
2747
- *
2748
- * No ``annotated_product_count`` shortcut any more: a ``Count()`` in the
2749
- * view cannot know the verdict, so such an annotation would be an ungated
2750
- * number that silently won over this one.
2751
- *
2752
2767
  * The listing precomputes every category's count in one pass
2753
- * (``views._build_gated_counts``) and passes it in context, because doing
2754
- * it per category asked the gate — a fixed handful of queries however
2755
- * many ids it is given — once per category in the tree. ``MAX_DEPTH = 4``
2756
- * bounds the depth but not the breadth, and breadth is what drives it.
2757
- *
2758
- * The fallback below is the single-object path (retrieve), where there is
2759
- * no tree to amortise over and one gate call is the whole cost.
2768
+ * (``views._build_product_counts``) and passes it in context; the
2769
+ * fallback below is the single-object path (retrieve), which counts its
2770
+ * own subtree directly.
2760
2771
  */
2761
2772
  readonly product_count: number;
2762
2773
  };
@@ -2938,6 +2949,14 @@ interface components {
2938
2949
  language_preference?: (components["schemas"]["LanguagePreferenceEnum"] | components["schemas"]["NullEnum"]) | null;
2939
2950
  marketing_opt_in?: boolean | null;
2940
2951
  };
2952
+ /**
2953
+ * @description What merchant-portal-backend's publish needs to know about a store
2954
+ * whose delivery methods the portal's toggles own.
2955
+ */
2956
+ DeliveryMethodToggles: {
2957
+ wizard_choice_applies: components["schemas"]["WizardChoiceApplies"];
2958
+ publish_readiness: string[];
2959
+ };
2941
2960
  /**
2942
2961
  * @description * `merchant` - Merchant
2943
2962
  * * `customer` - Customer
@@ -3589,6 +3608,24 @@ interface components {
3589
3608
  /** Format: uuid */
3590
3609
  service_point_id?: string | null;
3591
3610
  };
3611
+ /**
3612
+ * @description Marketing consent captured at checkout.
3613
+ *
3614
+ * A single opt-in for special offers and updates (over email, SMS or
3615
+ * WhatsApp), plus the version identifier of the consent copy the customer
3616
+ * saw. Stored on the checkout and copied to the order at creation, then
3617
+ * forwarded to the merchant portal, which persists it onto the customer
3618
+ * record. Unticked by default; the order completes regardless of state.
3619
+ */
3620
+ PatchedMarketingConsentInput: {
3621
+ /** @default false */
3622
+ opted_in: boolean;
3623
+ /**
3624
+ * @description Version id of the consent copy shown to the customer.
3625
+ * @default
3626
+ */
3627
+ version: string;
3628
+ };
3592
3629
  PatchedPromotion: {
3593
3630
  readonly id?: number;
3594
3631
  /** @description Per-location id (PAT-1306). Required when location_scope=SINGLE; NULL for SUBSET and ALL_LOCATIONS. */
@@ -4446,6 +4483,7 @@ interface components {
4446
4483
  readonly updated_at: string;
4447
4484
  readonly brand_assets: components["schemas"]["StoreBrandAsset"][];
4448
4485
  readonly uber_direct_supported_countries: string[];
4486
+ readonly delivery_method_toggles: components["schemas"]["DeliveryMethodToggles"] | null;
4449
4487
  };
4450
4488
  /**
4451
4489
  * @description * `draft` - Draft
@@ -4709,6 +4747,11 @@ interface components {
4709
4747
  completed_at: string | null;
4710
4748
  eligibility_snapshot: components["schemas"]["EligibilitySnapshot"];
4711
4749
  };
4750
+ /** @description Per delivery method: whether the wizard's toggle still decides it. */
4751
+ WizardChoiceApplies: {
4752
+ uber_direct: boolean;
4753
+ lieferando: boolean;
4754
+ };
4712
4755
  /** @description Customer-facing Zeemijlen balance + redemption economics. */
4713
4756
  ZeemijlenSummary: {
4714
4757
  points_balance: number;
@@ -7872,6 +7915,107 @@ interface operations {
7872
7915
  };
7873
7916
  };
7874
7917
  };
7918
+ checkout_marketing_consent_partial_update: {
7919
+ parameters: {
7920
+ query?: never;
7921
+ header?: never;
7922
+ path: {
7923
+ checkout_id: string;
7924
+ };
7925
+ cookie?: never;
7926
+ };
7927
+ requestBody?: {
7928
+ content: {
7929
+ "application/json": components["schemas"]["PatchedMarketingConsentInput"];
7930
+ "application/x-www-form-urlencoded": components["schemas"]["PatchedMarketingConsentInput"];
7931
+ "multipart/form-data": components["schemas"]["PatchedMarketingConsentInput"];
7932
+ };
7933
+ };
7934
+ responses: {
7935
+ 200: {
7936
+ headers: {
7937
+ [name: string]: unknown;
7938
+ };
7939
+ content: {
7940
+ "application/json": {
7941
+ [key: string]: unknown;
7942
+ };
7943
+ };
7944
+ };
7945
+ /** @description Possible error codes: `CHECKOUT_VALIDATION_ERROR`. Retryable: no. Possible error codes include `VALIDATION_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `CHECKOUT_NOT_PAID`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `CHECKOUT_VALIDATION_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `MISSING_CART_ID`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `MISSING_GATEWAY_ID`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `INVALID_GATEWAY`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `INVALID_SHIPPING_METHOD`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `SHIPPING_FULFILLMENT_MISMATCH`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `MISSING_GIFT_CARD_CODE`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `GATEWAY_NOT_ENABLED`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `INVALID_TAX_PROVIDER`. Use `x-error-codes` for machine-readable retryability metadata. */
7946
+ 400: {
7947
+ headers: {
7948
+ [name: string]: unknown;
7949
+ };
7950
+ content: {
7951
+ "application/json": components["schemas"]["APIErrorEnvelope"];
7952
+ };
7953
+ };
7954
+ /** @description Possible error codes include `UNAUTHORIZED`. Use `x-error-codes` for machine-readable retryability metadata. */
7955
+ 401: {
7956
+ headers: {
7957
+ [name: string]: unknown;
7958
+ };
7959
+ content: {
7960
+ "application/json": components["schemas"]["APIErrorEnvelope"];
7961
+ };
7962
+ };
7963
+ /** @description Possible error codes include `FORBIDDEN`. Use `x-error-codes` for machine-readable retryability metadata. */
7964
+ 403: {
7965
+ headers: {
7966
+ [name: string]: unknown;
7967
+ };
7968
+ content: {
7969
+ "application/json": components["schemas"]["APIErrorEnvelope"];
7970
+ };
7971
+ };
7972
+ /** @description Possible error codes: `CHECKOUT_NOT_FOUND`. Retryable: no. Possible error codes include `NOT_FOUND`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `CHECKOUT_NOT_FOUND`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `SHIPPING_GROUP_NOT_FOUND`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `SHIPPING_RATE_NOT_FOUND`. Use `x-error-codes` for machine-readable retryability metadata. */
7973
+ 404: {
7974
+ headers: {
7975
+ [name: string]: unknown;
7976
+ };
7977
+ content: {
7978
+ "application/json": components["schemas"]["APIErrorEnvelope"];
7979
+ };
7980
+ };
7981
+ /** @description Possible error codes: `CHECKOUT_INVALID_STATUS`. Retryable: no. Possible error codes include `CHECKOUT_INVALID_STATUS`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `PAYMENT_IN_FLIGHT`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `store_closed_for_date`. Use `x-error-codes` for machine-readable retryability metadata. */
7982
+ 409: {
7983
+ headers: {
7984
+ [name: string]: unknown;
7985
+ };
7986
+ content: {
7987
+ "application/json": components["schemas"]["APIErrorEnvelope"];
7988
+ };
7989
+ };
7990
+ /** @description Possible error codes include `SHIPPING_RATE_EXPIRED`. Use `x-error-codes` for machine-readable retryability metadata. */
7991
+ 410: {
7992
+ headers: {
7993
+ [name: string]: unknown;
7994
+ };
7995
+ content: {
7996
+ "application/json": components["schemas"]["APIErrorEnvelope"];
7997
+ };
7998
+ };
7999
+ /** @description Possible error codes include `RATE_LIMITED`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `MERCHANT_AT_CAPACITY`. Use `x-error-codes` for machine-readable retryability metadata. */
8000
+ 429: {
8001
+ headers: {
8002
+ [name: string]: unknown;
8003
+ };
8004
+ content: {
8005
+ "application/json": components["schemas"]["APIErrorEnvelope"];
8006
+ };
8007
+ };
8008
+ /** @description Possible error codes include `INTERNAL_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. */
8009
+ 500: {
8010
+ headers: {
8011
+ [name: string]: unknown;
8012
+ };
8013
+ content: {
8014
+ "application/json": components["schemas"]["APIErrorEnvelope"];
8015
+ };
8016
+ };
8017
+ };
8018
+ };
7875
8019
  checkout_packaging_choice_create: {
7876
8020
  parameters: {
7877
8021
  query?: never;
@@ -8000,7 +8144,7 @@ interface operations {
8000
8144
  };
8001
8145
  };
8002
8146
  };
8003
- /** @description Possible error codes: `MISSING_GATEWAY_ID`, `GATEWAY_NOT_ENABLED`, `INVALID_GATEWAY`, `MISSING_GIFT_CARD_CODE`, `INVALID_TAX_PROVIDER`, `PRODUCT_UNAVAILABLE`. Retryable: no. Possible error codes include `VALIDATION_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `CHECKOUT_NOT_PAID`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `CHECKOUT_VALIDATION_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `MISSING_CART_ID`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `MISSING_GATEWAY_ID`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `INVALID_GATEWAY`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `INVALID_SHIPPING_METHOD`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `SHIPPING_FULFILLMENT_MISMATCH`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `MISSING_GIFT_CARD_CODE`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `GATEWAY_NOT_ENABLED`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `INVALID_TAX_PROVIDER`. Use `x-error-codes` for machine-readable retryability metadata. */
8147
+ /** @description Possible error codes: `MISSING_GATEWAY_ID`, `GATEWAY_NOT_ENABLED`, `INVALID_GATEWAY`, `MISSING_GIFT_CARD_CODE`, `INVALID_TAX_PROVIDER`, `PRODUCT_UNAVAILABLE`, `SERVICE_POINT_REQUIRED`. Retryable: no. Possible error codes include `VALIDATION_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `CHECKOUT_NOT_PAID`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `CHECKOUT_VALIDATION_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `MISSING_CART_ID`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `MISSING_GATEWAY_ID`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `INVALID_GATEWAY`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `INVALID_SHIPPING_METHOD`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `SHIPPING_FULFILLMENT_MISMATCH`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `MISSING_GIFT_CARD_CODE`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `GATEWAY_NOT_ENABLED`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `INVALID_TAX_PROVIDER`. Use `x-error-codes` for machine-readable retryability metadata. */
8004
8148
  400: {
8005
8149
  headers: {
8006
8150
  [name: string]: unknown;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@poweredbysous/storefront-sdk",
3
- "version": "2.1.0",
3
+ "version": "2.3.0",
4
4
  "description": "Type-safe TypeScript SDK for SOUS Storefront Backend",
5
5
  "license": "UNLICENSED",
6
6
  "private": false,