@poweredbysous/storefront-sdk 2.2.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
@@ -2764,24 +2764,10 @@ interface components {
2764
2764
  /**
2765
2765
  * @description How many products this category shows, descendants included.
2766
2766
  *
2767
- * Counted through the compliance gate (D15), because the count and the
2768
- * listing are one read model: ``/categories/`` reported 5 while
2769
- * ``/categories/<id>/products/`` returned 0, which discloses how many
2770
- * hidden products sit in each category and, by diffing, which categories
2771
- * are affected. Search's ``total`` had already closed the same gap.
2772
- *
2773
- * No ``annotated_product_count`` shortcut any more: a ``Count()`` in the
2774
- * view cannot know the verdict, so such an annotation would be an ungated
2775
- * number that silently won over this one.
2776
- *
2777
2767
  * The listing precomputes every category's count in one pass
2778
- * (``views._build_gated_counts``) and passes it in context, because doing
2779
- * it per category asked the gate — a fixed handful of queries however
2780
- * many ids it is given — once per category in the tree. ``MAX_DEPTH = 4``
2781
- * bounds the depth but not the breadth, and breadth is what drives it.
2782
- *
2783
- * The fallback below is the single-object path (retrieve), where there is
2784
- * 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.
2785
2771
  */
2786
2772
  readonly product_count: number;
2787
2773
  };
@@ -2963,6 +2949,14 @@ interface components {
2963
2949
  language_preference?: (components["schemas"]["LanguagePreferenceEnum"] | components["schemas"]["NullEnum"]) | null;
2964
2950
  marketing_opt_in?: boolean | null;
2965
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
+ };
2966
2960
  /**
2967
2961
  * @description * `merchant` - Merchant
2968
2962
  * * `customer` - Customer
@@ -4489,6 +4483,7 @@ interface components {
4489
4483
  readonly updated_at: string;
4490
4484
  readonly brand_assets: components["schemas"]["StoreBrandAsset"][];
4491
4485
  readonly uber_direct_supported_countries: string[];
4486
+ readonly delivery_method_toggles: components["schemas"]["DeliveryMethodToggles"] | null;
4492
4487
  };
4493
4488
  /**
4494
4489
  * @description * `draft` - Draft
@@ -4752,6 +4747,11 @@ interface components {
4752
4747
  completed_at: string | null;
4753
4748
  eligibility_snapshot: components["schemas"]["EligibilitySnapshot"];
4754
4749
  };
4750
+ /** @description Per delivery method: whether the wizard's toggle still decides it. */
4751
+ WizardChoiceApplies: {
4752
+ uber_direct: boolean;
4753
+ lieferando: boolean;
4754
+ };
4755
4755
  /** @description Customer-facing Zeemijlen balance + redemption economics. */
4756
4756
  ZeemijlenSummary: {
4757
4757
  points_balance: number;
@@ -8144,7 +8144,7 @@ interface operations {
8144
8144
  };
8145
8145
  };
8146
8146
  };
8147
- /** @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. */
8148
8148
  400: {
8149
8149
  headers: {
8150
8150
  [name: string]: unknown;
package/dist/index.d.ts CHANGED
@@ -2764,24 +2764,10 @@ interface components {
2764
2764
  /**
2765
2765
  * @description How many products this category shows, descendants included.
2766
2766
  *
2767
- * Counted through the compliance gate (D15), because the count and the
2768
- * listing are one read model: ``/categories/`` reported 5 while
2769
- * ``/categories/<id>/products/`` returned 0, which discloses how many
2770
- * hidden products sit in each category and, by diffing, which categories
2771
- * are affected. Search's ``total`` had already closed the same gap.
2772
- *
2773
- * No ``annotated_product_count`` shortcut any more: a ``Count()`` in the
2774
- * view cannot know the verdict, so such an annotation would be an ungated
2775
- * number that silently won over this one.
2776
- *
2777
2767
  * The listing precomputes every category's count in one pass
2778
- * (``views._build_gated_counts``) and passes it in context, because doing
2779
- * it per category asked the gate — a fixed handful of queries however
2780
- * many ids it is given — once per category in the tree. ``MAX_DEPTH = 4``
2781
- * bounds the depth but not the breadth, and breadth is what drives it.
2782
- *
2783
- * The fallback below is the single-object path (retrieve), where there is
2784
- * 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.
2785
2771
  */
2786
2772
  readonly product_count: number;
2787
2773
  };
@@ -2963,6 +2949,14 @@ interface components {
2963
2949
  language_preference?: (components["schemas"]["LanguagePreferenceEnum"] | components["schemas"]["NullEnum"]) | null;
2964
2950
  marketing_opt_in?: boolean | null;
2965
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
+ };
2966
2960
  /**
2967
2961
  * @description * `merchant` - Merchant
2968
2962
  * * `customer` - Customer
@@ -4489,6 +4483,7 @@ interface components {
4489
4483
  readonly updated_at: string;
4490
4484
  readonly brand_assets: components["schemas"]["StoreBrandAsset"][];
4491
4485
  readonly uber_direct_supported_countries: string[];
4486
+ readonly delivery_method_toggles: components["schemas"]["DeliveryMethodToggles"] | null;
4492
4487
  };
4493
4488
  /**
4494
4489
  * @description * `draft` - Draft
@@ -4752,6 +4747,11 @@ interface components {
4752
4747
  completed_at: string | null;
4753
4748
  eligibility_snapshot: components["schemas"]["EligibilitySnapshot"];
4754
4749
  };
4750
+ /** @description Per delivery method: whether the wizard's toggle still decides it. */
4751
+ WizardChoiceApplies: {
4752
+ uber_direct: boolean;
4753
+ lieferando: boolean;
4754
+ };
4755
4755
  /** @description Customer-facing Zeemijlen balance + redemption economics. */
4756
4756
  ZeemijlenSummary: {
4757
4757
  points_balance: number;
@@ -8144,7 +8144,7 @@ interface operations {
8144
8144
  };
8145
8145
  };
8146
8146
  };
8147
- /** @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. */
8148
8148
  400: {
8149
8149
  headers: {
8150
8150
  [name: string]: unknown;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@poweredbysous/storefront-sdk",
3
- "version": "2.2.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,