@doswiftly/storefront-operations 22.5.0 → 22.5.1
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/AGENTS.md +1 -1
- package/CHANGELOG.md +6 -0
- package/llms-full.txt +1 -1
- package/operations.json +1 -1
- package/package.json +1 -1
- package/schema.graphql +2 -2
package/AGENTS.md
CHANGED
|
@@ -27,7 +27,7 @@ consumer's `codegen.ts` references this package's `.graphql` files as
|
|
|
27
27
|
live in the consumer's repo.
|
|
28
28
|
|
|
29
29
|
<!-- AUTOGEN:STATS:BEGIN — auto-regenerated, do not edit by hand -->
|
|
30
|
-
- **Schema version**: 22.5.
|
|
30
|
+
- **Schema version**: 22.5.1
|
|
31
31
|
- **Queries**: 52
|
|
32
32
|
- **Mutations**: 44
|
|
33
33
|
- **Fragments**: 105
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 22.5.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 6ca2a5f: Corrected the GraphQL schema descriptions for the `CartStatus` enum and the `Cart.status` field so they match the cart's actual behaviour: an `ABANDONED` cart is revived in place by any deliberate buyer edit (it is not locked), editing an `EXPIRED` cart returns `CART_NOT_FOUND`, and only `CONVERTED` / completed carts return `ALREADY_COMPLETED`. Documentation only — no type or API changes.
|
|
8
|
+
|
|
3
9
|
## 22.5.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
package/llms-full.txt
CHANGED
package/operations.json
CHANGED
package/package.json
CHANGED
package/schema.graphql
CHANGED
|
@@ -1013,7 +1013,7 @@ type Cart implements Node {
|
|
|
1013
1013
|
shippingAddress: MailingAddress
|
|
1014
1014
|
|
|
1015
1015
|
"""
|
|
1016
|
-
Lifecycle status — `ACTIVE`
|
|
1016
|
+
Lifecycle status — `ACTIVE` / `RECOVERED` are editable; `ABANDONED` is a recovery flag a deliberate buyer action revives in place; `CONVERTED` / `EXPIRED` are terminal. Check this on SSR before rendering the checkout form: a `CONVERTED` cart should redirect (typically to the order confirmation when `completedOrder` is populated) instead of presenting a form whose first mutation fails with `CartErrorCode.ALREADY_COMPLETED`.
|
|
1017
1017
|
"""
|
|
1018
1018
|
status: CartStatus!
|
|
1019
1019
|
|
|
@@ -1831,7 +1831,7 @@ type CartShippingMethod {
|
|
|
1831
1831
|
}
|
|
1832
1832
|
|
|
1833
1833
|
"""
|
|
1834
|
-
Cart lifecycle status. `ACTIVE`
|
|
1834
|
+
Cart lifecycle status. `ACTIVE` and `RECOVERED` are editable carts. `ABANDONED` flags a cart the buyer left inactive (used for recovery campaigns) — it is not locked: a deliberate buyer action revives it in place to `RECOVERED` and the mutation proceeds. `RECOVERED` is a previously-abandoned cart the buyer came back to (via a recovery link or by acting on it again). `CONVERTED` carries an associated `completedOrder`; query that to redirect the buyer to their order confirmation, since editing a converted cart returns `CartErrorCode.ALREADY_COMPLETED`. `EXPIRED` is past its lifetime with no order; editing it returns `CartErrorCode.CART_NOT_FOUND` — create a fresh cart.
|
|
1835
1835
|
"""
|
|
1836
1836
|
enum CartStatus {
|
|
1837
1837
|
ABANDONED
|