@poweredbysous/storefront-admin-sdk 3.1.0 → 3.2.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 +17 -17
- package/dist/index.d.ts +17 -17
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -3536,24 +3536,10 @@ interface components {
|
|
|
3536
3536
|
/**
|
|
3537
3537
|
* @description How many products this category shows, descendants included.
|
|
3538
3538
|
*
|
|
3539
|
-
* Counted through the compliance gate (D15), because the count and the
|
|
3540
|
-
* listing are one read model: ``/categories/`` reported 5 while
|
|
3541
|
-
* ``/categories/<id>/products/`` returned 0, which discloses how many
|
|
3542
|
-
* hidden products sit in each category and, by diffing, which categories
|
|
3543
|
-
* are affected. Search's ``total`` had already closed the same gap.
|
|
3544
|
-
*
|
|
3545
|
-
* No ``annotated_product_count`` shortcut any more: a ``Count()`` in the
|
|
3546
|
-
* view cannot know the verdict, so such an annotation would be an ungated
|
|
3547
|
-
* number that silently won over this one.
|
|
3548
|
-
*
|
|
3549
3539
|
* The listing precomputes every category's count in one pass
|
|
3550
|
-
* (``views.
|
|
3551
|
-
*
|
|
3552
|
-
*
|
|
3553
|
-
* bounds the depth but not the breadth, and breadth is what drives it.
|
|
3554
|
-
*
|
|
3555
|
-
* The fallback below is the single-object path (retrieve), where there is
|
|
3556
|
-
* no tree to amortise over and one gate call is the whole cost.
|
|
3540
|
+
* (``views._build_product_counts``) and passes it in context; the
|
|
3541
|
+
* fallback below is the single-object path (retrieve), which counts its
|
|
3542
|
+
* own subtree directly.
|
|
3557
3543
|
*/
|
|
3558
3544
|
readonly product_count: number;
|
|
3559
3545
|
};
|
|
@@ -3805,6 +3791,14 @@ interface components {
|
|
|
3805
3791
|
/** Format: date-time */
|
|
3806
3792
|
disabled_at: string | null;
|
|
3807
3793
|
};
|
|
3794
|
+
/**
|
|
3795
|
+
* @description What merchant-portal-backend's publish needs to know about a store
|
|
3796
|
+
* whose delivery methods the portal's toggles own.
|
|
3797
|
+
*/
|
|
3798
|
+
DeliveryMethodToggles: {
|
|
3799
|
+
wizard_choice_applies: components["schemas"]["WizardChoiceApplies"];
|
|
3800
|
+
publish_readiness: string[];
|
|
3801
|
+
};
|
|
3808
3802
|
/**
|
|
3809
3803
|
* @description Merchant-facing CRUD serializer for :class:`Discount`.
|
|
3810
3804
|
*
|
|
@@ -5774,6 +5768,7 @@ interface components {
|
|
|
5774
5768
|
readonly updated_at: string;
|
|
5775
5769
|
readonly brand_assets: components["schemas"]["StoreBrandAsset"][];
|
|
5776
5770
|
readonly uber_direct_supported_countries: string[];
|
|
5771
|
+
readonly delivery_method_toggles: components["schemas"]["DeliveryMethodToggles"] | null;
|
|
5777
5772
|
};
|
|
5778
5773
|
/**
|
|
5779
5774
|
* @description * `draft` - Draft
|
|
@@ -5996,6 +5991,11 @@ interface components {
|
|
|
5996
5991
|
readonly updated_at: string;
|
|
5997
5992
|
secret?: string;
|
|
5998
5993
|
};
|
|
5994
|
+
/** @description Per delivery method: whether the wizard's toggle still decides it. */
|
|
5995
|
+
WizardChoiceApplies: {
|
|
5996
|
+
uber_direct: boolean;
|
|
5997
|
+
lieferando: boolean;
|
|
5998
|
+
};
|
|
5999
5999
|
/** @description Schedule/scope block the storefront re-judges at render time. */
|
|
6000
6000
|
_DiscountRestrictions: {
|
|
6001
6001
|
/** @description IANA name the backend judges the schedule in. Re-judge the window against this, not against the browser clock or a locally configured merchant timezone. Null when this store has no usable configured timezone - keep your own fallback in that case, rather than treating the absence as a value. */
|
package/dist/index.d.ts
CHANGED
|
@@ -3536,24 +3536,10 @@ interface components {
|
|
|
3536
3536
|
/**
|
|
3537
3537
|
* @description How many products this category shows, descendants included.
|
|
3538
3538
|
*
|
|
3539
|
-
* Counted through the compliance gate (D15), because the count and the
|
|
3540
|
-
* listing are one read model: ``/categories/`` reported 5 while
|
|
3541
|
-
* ``/categories/<id>/products/`` returned 0, which discloses how many
|
|
3542
|
-
* hidden products sit in each category and, by diffing, which categories
|
|
3543
|
-
* are affected. Search's ``total`` had already closed the same gap.
|
|
3544
|
-
*
|
|
3545
|
-
* No ``annotated_product_count`` shortcut any more: a ``Count()`` in the
|
|
3546
|
-
* view cannot know the verdict, so such an annotation would be an ungated
|
|
3547
|
-
* number that silently won over this one.
|
|
3548
|
-
*
|
|
3549
3539
|
* The listing precomputes every category's count in one pass
|
|
3550
|
-
* (``views.
|
|
3551
|
-
*
|
|
3552
|
-
*
|
|
3553
|
-
* bounds the depth but not the breadth, and breadth is what drives it.
|
|
3554
|
-
*
|
|
3555
|
-
* The fallback below is the single-object path (retrieve), where there is
|
|
3556
|
-
* no tree to amortise over and one gate call is the whole cost.
|
|
3540
|
+
* (``views._build_product_counts``) and passes it in context; the
|
|
3541
|
+
* fallback below is the single-object path (retrieve), which counts its
|
|
3542
|
+
* own subtree directly.
|
|
3557
3543
|
*/
|
|
3558
3544
|
readonly product_count: number;
|
|
3559
3545
|
};
|
|
@@ -3805,6 +3791,14 @@ interface components {
|
|
|
3805
3791
|
/** Format: date-time */
|
|
3806
3792
|
disabled_at: string | null;
|
|
3807
3793
|
};
|
|
3794
|
+
/**
|
|
3795
|
+
* @description What merchant-portal-backend's publish needs to know about a store
|
|
3796
|
+
* whose delivery methods the portal's toggles own.
|
|
3797
|
+
*/
|
|
3798
|
+
DeliveryMethodToggles: {
|
|
3799
|
+
wizard_choice_applies: components["schemas"]["WizardChoiceApplies"];
|
|
3800
|
+
publish_readiness: string[];
|
|
3801
|
+
};
|
|
3808
3802
|
/**
|
|
3809
3803
|
* @description Merchant-facing CRUD serializer for :class:`Discount`.
|
|
3810
3804
|
*
|
|
@@ -5774,6 +5768,7 @@ interface components {
|
|
|
5774
5768
|
readonly updated_at: string;
|
|
5775
5769
|
readonly brand_assets: components["schemas"]["StoreBrandAsset"][];
|
|
5776
5770
|
readonly uber_direct_supported_countries: string[];
|
|
5771
|
+
readonly delivery_method_toggles: components["schemas"]["DeliveryMethodToggles"] | null;
|
|
5777
5772
|
};
|
|
5778
5773
|
/**
|
|
5779
5774
|
* @description * `draft` - Draft
|
|
@@ -5996,6 +5991,11 @@ interface components {
|
|
|
5996
5991
|
readonly updated_at: string;
|
|
5997
5992
|
secret?: string;
|
|
5998
5993
|
};
|
|
5994
|
+
/** @description Per delivery method: whether the wizard's toggle still decides it. */
|
|
5995
|
+
WizardChoiceApplies: {
|
|
5996
|
+
uber_direct: boolean;
|
|
5997
|
+
lieferando: boolean;
|
|
5998
|
+
};
|
|
5999
5999
|
/** @description Schedule/scope block the storefront re-judges at render time. */
|
|
6000
6000
|
_DiscountRestrictions: {
|
|
6001
6001
|
/** @description IANA name the backend judges the schedule in. Re-judge the window against this, not against the browser clock or a locally configured merchant timezone. Null when this store has no usable configured timezone - keep your own fallback in that case, rather than treating the absence as a value. */
|