platform-types 1.10.789 → 1.10.790
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/basket.d.ts +2 -2
- package/dist/basket.js +2 -2
- package/dist/cjs/basket.js +2 -2
- package/dist/store.d.ts +3 -2
- package/package.json +1 -1
package/dist/basket.d.ts
CHANGED
|
@@ -118,8 +118,8 @@ export declare const GUEST_CART_TOKEN_HEADER = "X-Guest-Cart-Token";
|
|
|
118
118
|
* cart that is gone, belongs to an account, is held by a till, was checked
|
|
119
119
|
* out or was swept as abandoned — with one identical body, so the token is
|
|
120
120
|
* never an oracle. Drop the token and start a new guest cart.
|
|
121
|
-
* - GUEST_CHECKOUT_DISABLED (403): the shop does not sell to guests — it
|
|
122
|
-
* switched guest checkout
|
|
121
|
+
* - GUEST_CHECKOUT_DISABLED (403): the shop does not sell to guests — it
|
|
122
|
+
* switched guest checkout off, admits buyers only after approval, or hides
|
|
123
123
|
* prices from anonymous visitors. Public `GET /store` reports the same verdict
|
|
124
124
|
* as `ecommerce.config.guestCheckoutAvailable`.
|
|
125
125
|
* - GUEST_CHECKOUT_SIGNED_IN (409): the request carried an `Authorization`
|
package/dist/basket.js
CHANGED
|
@@ -87,8 +87,8 @@ export const GUEST_CART_TOKEN_HEADER = 'X-Guest-Cart-Token';
|
|
|
87
87
|
* cart that is gone, belongs to an account, is held by a till, was checked
|
|
88
88
|
* out or was swept as abandoned — with one identical body, so the token is
|
|
89
89
|
* never an oracle. Drop the token and start a new guest cart.
|
|
90
|
-
* - GUEST_CHECKOUT_DISABLED (403): the shop does not sell to guests — it
|
|
91
|
-
* switched guest checkout
|
|
90
|
+
* - GUEST_CHECKOUT_DISABLED (403): the shop does not sell to guests — it
|
|
91
|
+
* switched guest checkout off, admits buyers only after approval, or hides
|
|
92
92
|
* prices from anonymous visitors. Public `GET /store` reports the same verdict
|
|
93
93
|
* as `ecommerce.config.guestCheckoutAvailable`.
|
|
94
94
|
* - GUEST_CHECKOUT_SIGNED_IN (409): the request carried an `Authorization`
|
package/dist/cjs/basket.js
CHANGED
|
@@ -90,8 +90,8 @@ exports.GUEST_CART_TOKEN_HEADER = 'X-Guest-Cart-Token';
|
|
|
90
90
|
* cart that is gone, belongs to an account, is held by a till, was checked
|
|
91
91
|
* out or was swept as abandoned — with one identical body, so the token is
|
|
92
92
|
* never an oracle. Drop the token and start a new guest cart.
|
|
93
|
-
* - GUEST_CHECKOUT_DISABLED (403): the shop does not sell to guests — it
|
|
94
|
-
* switched guest checkout
|
|
93
|
+
* - GUEST_CHECKOUT_DISABLED (403): the shop does not sell to guests — it
|
|
94
|
+
* switched guest checkout off, admits buyers only after approval, or hides
|
|
95
95
|
* prices from anonymous visitors. Public `GET /store` reports the same verdict
|
|
96
96
|
* as `ecommerce.config.guestCheckoutAvailable`.
|
|
97
97
|
* - GUEST_CHECKOUT_SIGNED_IN (409): the request carried an `Authorization`
|
package/dist/store.d.ts
CHANGED
|
@@ -160,7 +160,8 @@ declare global {
|
|
|
160
160
|
wholesaleRequests?: boolean;
|
|
161
161
|
/**
|
|
162
162
|
* Whether the shop sells to shoppers without an account (server guest
|
|
163
|
-
* cart, guest checkout). Absent means
|
|
163
|
+
* cart, guest checkout). Absent means ON: a shop opts out by storing
|
|
164
|
+
* `false`, and only the boolean `false` closes it. Honoured only
|
|
164
165
|
* while `registrationMode` is not `'approval'` and `showDefaultPriceList`
|
|
165
166
|
* is not `0` — a shop that vets every buyer, or hides prices from
|
|
166
167
|
* anonymous visitors, never sells to a guest whatever this says.
|
|
@@ -172,7 +173,7 @@ declare global {
|
|
|
172
173
|
/**
|
|
173
174
|
* SHOPPER-ONLY, never stored: present on web `GET /store` and the
|
|
174
175
|
* customer `stores` frame, `true` when the shop accepts guest carts and
|
|
175
|
-
* guest checkout right now — `guestCheckout`
|
|
176
|
+
* guest checkout right now — `guestCheckout` not `false` AND registration open AND
|
|
176
177
|
* prices shown to anonymous visitors. The guest routes refuse
|
|
177
178
|
* `403 GUEST_CHECKOUT_DISABLED` whenever this is `false`.
|
|
178
179
|
*/
|