@sixtyninecommerce/client 0.31.0 → 0.33.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/README.md +91 -3
- package/dist/build-client.d.ts.map +1 -1
- package/dist/build-client.js +3 -0
- package/dist/build-client.js.map +1 -1
- package/dist/commerce/checkout.d.ts +4 -2
- package/dist/commerce/checkout.d.ts.map +1 -1
- package/dist/commerce/checkout.js +4 -2
- package/dist/commerce/checkout.js.map +1 -1
- package/dist/commerce/customer.d.ts +254 -5
- package/dist/commerce/customer.d.ts.map +1 -1
- package/dist/commerce/customer.js +85 -28
- package/dist/commerce/customer.js.map +1 -1
- package/dist/commerce/index.d.ts +261 -6
- package/dist/commerce/index.d.ts.map +1 -1
- package/dist/commerce/index.js +12 -0
- package/dist/commerce/index.js.map +1 -1
- package/dist/commerce/money-view.d.ts +33 -0
- package/dist/commerce/money-view.d.ts.map +1 -0
- package/dist/commerce/money-view.js +75 -0
- package/dist/commerce/money-view.js.map +1 -0
- package/dist/commerce/order-access-key.d.ts +29 -0
- package/dist/commerce/order-access-key.d.ts.map +1 -0
- package/dist/commerce/order-access-key.js +38 -0
- package/dist/commerce/order-access-key.js.map +1 -0
- package/dist/commerce/parked-orders.d.ts +3 -3
- package/dist/commerce/parked-orders.d.ts.map +1 -1
- package/dist/commerce/parked-orders.js +34 -5
- package/dist/commerce/parked-orders.js.map +1 -1
- package/dist/commerce/payments.d.ts +2 -1
- package/dist/commerce/payments.d.ts.map +1 -1
- package/dist/commerce/payments.js +2 -1
- package/dist/commerce/payments.js.map +1 -1
- package/dist/commerce/queries.d.ts +37 -4
- package/dist/commerce/queries.d.ts.map +1 -1
- package/dist/commerce/queries.js +180 -8
- package/dist/commerce/queries.js.map +1 -1
- package/dist/commerce/receipt-claim.d.ts +35 -0
- package/dist/commerce/receipt-claim.d.ts.map +1 -0
- package/dist/commerce/receipt-claim.js +66 -0
- package/dist/commerce/receipt-claim.js.map +1 -0
- package/dist/commerce/returns.d.ts +2 -2
- package/dist/commerce/returns.d.ts.map +1 -1
- package/dist/commerce/returns.js +24 -3
- package/dist/commerce/returns.js.map +1 -1
- package/dist/commerce/store-pickup.d.ts +37 -0
- package/dist/commerce/store-pickup.d.ts.map +1 -0
- package/dist/commerce/store-pickup.js +66 -0
- package/dist/commerce/store-pickup.js.map +1 -0
- package/dist/core/customer-session.d.ts +34 -0
- package/dist/core/customer-session.d.ts.map +1 -0
- package/dist/core/customer-session.js +48 -0
- package/dist/core/customer-session.js.map +1 -0
- package/dist/core/http.d.ts +9 -0
- package/dist/core/http.d.ts.map +1 -1
- package/dist/core/http.js +64 -25
- package/dist/core/http.js.map +1 -1
- package/dist/errors.d.ts +6 -0
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +2 -0
- package/dist/errors.js.map +1 -1
- package/dist/events/payloads.d.ts +1 -1
- package/dist/events/payloads.d.ts.map +1 -1
- package/dist/generated/cms.d.ts +4 -2
- package/dist/generated/cms.d.ts.map +1 -1
- package/dist/generated/plugins.d.ts +2 -2
- package/dist/generated/plugins.d.ts.map +1 -1
- package/dist/generated/shop.d.ts +323 -9
- package/dist/generated/shop.d.ts.map +1 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/pricing/index.d.ts +1 -0
- package/dist/pricing/index.d.ts.map +1 -1
- package/dist/pricing/index.js +1 -0
- package/dist/pricing/index.js.map +1 -1
- package/dist/pricing/order-money-rows.d.ts +92 -0
- package/dist/pricing/order-money-rows.d.ts.map +1 -0
- package/dist/pricing/order-money-rows.js +88 -0
- package/dist/pricing/order-money-rows.js.map +1 -0
- package/dist/pricing/validation.d.ts +25 -0
- package/dist/pricing/validation.d.ts.map +1 -1
- package/dist/pricing/validation.js +37 -4
- package/dist/pricing/validation.js.map +1 -1
- package/dist/types.d.ts +373 -25
- package/dist/types.d.ts.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@ const client = await createStorefrontClient({
|
|
|
18
18
|
cdnUrl: 'https://cdn.my-store.com',
|
|
19
19
|
// Optional: retry transient GETs (default { attempts: 2, baseDelayMs: 200 })
|
|
20
20
|
retry: { attempts: 3, baseDelayMs: 200 },
|
|
21
|
-
// Optional: notified when
|
|
21
|
+
// Optional: notified when a SIGNED-IN customer's session is gone (never for a guest)
|
|
22
22
|
onAuthExpired: () => router.push('/sign-in'),
|
|
23
23
|
});
|
|
24
24
|
|
|
@@ -277,7 +277,7 @@ client. Set, the hook is called once per client for each (once per router with `
|
|
|
277
277
|
|
|
278
278
|
| Module | Description |
|
|
279
279
|
|--------|-------------|
|
|
280
|
-
| `commerce` | Products, collections, property trees, search, cart, checkout, customer auth, the store's capability manifest (`getCapabilities`) |
|
|
280
|
+
| `commerce` | Products, collections, property trees, search, cart, checkout, customer auth, the store's capability manifest (`getCapabilities`), store pickup (`getStorePickupLocations`, `chooseStorePickup`, `clearStorePickup`, `getActiveOrderStorePickup`; see `docs/storefront/store-pickup.md`), the receipt account claim (`claimReceipt`; see below) |
|
|
281
281
|
| `content` | CMS resolve, content items, assets, forms, content strings (all, or one by id), menus |
|
|
282
282
|
| `navigation` | Unified route manifest, route lookup |
|
|
283
283
|
| `pricing` | Price formatting, tier lookup, order validation (pure), resolved tax display mode |
|
|
@@ -285,6 +285,36 @@ client. Set, the hook is called once per client for each (once per router with `
|
|
|
285
285
|
| `currency` | Exchange rates, currency conversion |
|
|
286
286
|
| `feeds` | Product-feed URLs (Google Shopping, Meta, Pinterest, TikTok) |
|
|
287
287
|
|
|
288
|
+
## Sessions and `onAuthExpired`
|
|
289
|
+
|
|
290
|
+
The client sends one session token to the Shop API: a guest's (the anonymous session its cart lives
|
|
291
|
+
on) or a signed-in customer's. `onAuthToken` hands you every new one to store; `setAuthToken` (or
|
|
292
|
+
`customerToken`) puts a stored one back. A new token is handed over only while the token its call was
|
|
293
|
+
sent with is still the current one, so a slow call that answers after a sign-in (or a sign-out, or a
|
|
294
|
+
`setAuthToken`) cannot replace the newer token with an older session's anonymous one. A sign-in's own
|
|
295
|
+
token always applies.
|
|
296
|
+
|
|
297
|
+
`onAuthExpired` fires when a **signed-in** customer's session is gone: a call is refused and the
|
|
298
|
+
platform confirms the session no longer has a customer. It fires once per lost session. It
|
|
299
|
+
**never fires for a guest**: a guest is refused with `FORBIDDEN` for ordinary reasons (an order
|
|
300
|
+
placed in another browser or in an earlier session of this one, someone else's order code), and its
|
|
301
|
+
session and cart are still alive, so do not clear a guest's token on `FORBIDDEN`.
|
|
302
|
+
|
|
303
|
+
The client counts itself signed in only when it saw it: a successful `login`, `authenticate`,
|
|
304
|
+
`loginWithMagicLink`, `loginWithMagicCode`, `verifyAccount` or `resetPassword`, or a
|
|
305
|
+
`getCurrentCustomer()` that returned a customer. A token restored with `setAuthToken` is not known
|
|
306
|
+
to be a customer's, so a storefront that wants the callback after a reload reads the customer
|
|
307
|
+
first:
|
|
308
|
+
|
|
309
|
+
```typescript
|
|
310
|
+
client.setAuthToken(storedToken);
|
|
311
|
+
const me = await client.commerce.getCurrentCustomer(); // a customer → onAuthExpired is armed
|
|
312
|
+
```
|
|
313
|
+
|
|
314
|
+
`logout`, `setAuthToken` and `clearAuthToken` reset it. A refusal on a session that is still
|
|
315
|
+
signed in (another customer's order) is an ordinary `FORBIDDEN` `StorefrontError` and does not
|
|
316
|
+
fire it.
|
|
317
|
+
|
|
288
318
|
## Registration
|
|
289
319
|
|
|
290
320
|
`register` creates the account and **signs nobody in**. The store emails the address a
|
|
@@ -511,7 +541,7 @@ Three audiences see populated values:
|
|
|
511
541
|
2. **Logged-in customers** in a channel that has a price list with `appliesToAllCustomers = true`
|
|
512
542
|
3. **Anonymous (guest) visitors** in a channel that has a price list with `appliesToAllCustomers = true`
|
|
513
543
|
|
|
514
|
-
Resolution priority is contract → customer-direct → group → channel-wide → retail
|
|
544
|
+
Resolution priority is contract → customer-direct → group → channel-wide → retail, then higher list priority: the strongest list that prices the product wins, even when another list is cheaper. Between lists of the same level and priority, the lower price wins for each product.
|
|
515
545
|
|
|
516
546
|
```typescript
|
|
517
547
|
// Render a "Buy 5 for €1,249" upsell on the product page
|
|
@@ -550,6 +580,38 @@ Precedence, resolved server-side: **shopper's country is on the channel's tax-ex
|
|
|
550
580
|
|
|
551
581
|
The mode is re-resolved automatically after a sign-in/out, a `setOrderScope(...)`, and a `setShippingAddress(...)` (moving the cart to a listed country flips the whole cart to net). It never throws: an unreachable or older engine falls back to `pricesIncludeTax ? 'gross' : 'net'`, i.e. the behaviour before this existed.
|
|
552
582
|
|
|
583
|
+
## Order money (cart, checkout, account)
|
|
584
|
+
|
|
585
|
+
Print an order's money from the engine's **money view**, never by adding the order's fields up:
|
|
586
|
+
the view's rows are the ones the dashboard, the emails and the invoice print, and they add up to
|
|
587
|
+
the order's totals to the cent (`linePriceWithTax` + `discounts` + `taxSummary` miss by a cent on
|
|
588
|
+
about half the discounted carts in the basis the store did not price in).
|
|
589
|
+
|
|
590
|
+
```typescript
|
|
591
|
+
import { formatPrice, orderMoneyRows } from '@sixtyninecommerce/client';
|
|
592
|
+
|
|
593
|
+
const view = await client.commerce.getOrderMoneyView('active'); // or { code }
|
|
594
|
+
if (view) {
|
|
595
|
+
const { lines, rows, payments } = orderMoneyRows(view, { billedOnAccount: false });
|
|
596
|
+
// lines: line totals by orderLineId; a unit price only when unitAmount is not null
|
|
597
|
+
// rows: promotions, fees, Subtotal, Shipping, VAT per rate, Rounding, Total
|
|
598
|
+
// payments (placed orders): Paid, Gift card, Store credit, Credited, Still to pay
|
|
599
|
+
} // null: no cart, or an engine before the view: print the order's own fields as before
|
|
600
|
+
|
|
601
|
+
const page = await client.commerce.getCustomerOrders({ take: 10, moneyView: {} });
|
|
602
|
+
// page.items[n].moneyView.total is the total the order page prints (null on an older engine)
|
|
603
|
+
```
|
|
604
|
+
|
|
605
|
+
| Method | Use |
|
|
606
|
+
|---|---|
|
|
607
|
+
| `commerce.getOrderMoneyView(order, { basis? })` | `'active'` or `{ code }`; `basis` defaults to `CUSTOMER` (how the shop shows prices to that customer); also `STORE`, `GROSS`, `NET` |
|
|
608
|
+
| `commerce.getCustomerOrders({ moneyView: { basis? } })` | the order list with each order's view |
|
|
609
|
+
| `orderMoneyRows(view, { billedOnAccount? })` | the printed rows, pure; `kind` is stable for translation, `label` an English default |
|
|
610
|
+
|
|
611
|
+
"Still to pay" is printed only with `billedOnAccount: false`: the view does not read the B2B account
|
|
612
|
+
ledger yet, so an order billed on a B2B account invoice would show as still to pay after it was paid
|
|
613
|
+
on its statement. The full guide is `docs/storefront/order-money.md`.
|
|
614
|
+
|
|
553
615
|
## Product Documents
|
|
554
616
|
|
|
555
617
|
`commerce.getProduct(slug)` and `commerce.getProductById(id)` return a `documents: PublicProductDocument[]` field with downloadable files attached to the product (manuals, spec sheets, data sheets, certificates). The list is **already filtered by the current customer's visibility** before it leaves the server — the storefront just renders what it gets.
|
|
@@ -610,6 +672,30 @@ is a bearer link for that time, so hand it to the browser at once. A credit note
|
|
|
610
672
|
stored yet answers `DOCUMENT_PDF_NOT_AVAILABLE` until the store draws it again: show the shopper
|
|
611
673
|
that the document is not available yet rather than an error.
|
|
612
674
|
|
|
675
|
+
## Receipt account claim (in-store purchases)
|
|
676
|
+
|
|
677
|
+
A store that sells at its tills can let shoppers add an anonymous in-store purchase to their
|
|
678
|
+
account from the receipt. When the store has switched it on, the receipt's page links to
|
|
679
|
+
`<storefront>/account/claim-receipt#<token>`. Build that page: read the token from the URL
|
|
680
|
+
FRAGMENT (which never reaches a server, a referrer or an analytics hit), have the shopper sign in,
|
|
681
|
+
then send it once.
|
|
682
|
+
|
|
683
|
+
```typescript
|
|
684
|
+
import { receiptClaimTokenFrom } from '@sixtyninecommerce/client';
|
|
685
|
+
|
|
686
|
+
const token = receiptClaimTokenFrom(window.location); // null when the link carries none
|
|
687
|
+
if (token) {
|
|
688
|
+
const { orderCode, alreadyYours } = await client.commerce.claimReceipt(token);
|
|
689
|
+
// orderCode: the purchase, now in activeCustomer.orders; alreadyYours: nothing changed
|
|
690
|
+
}
|
|
691
|
+
```
|
|
692
|
+
|
|
693
|
+
Only a completed till sale made at most 30 days ago on no named customer can be claimed, from a
|
|
694
|
+
live receipt link (never a gift receipt's). Every refusal answers `POS_RECEIPT_CLAIM_NOT_FOUND`
|
|
695
|
+
with one message, whatever the reason, so the page says one thing ("this receipt cannot be added
|
|
696
|
+
to an account"); a guest is `FORBIDDEN`. Treat the token as a password for the receipt: never log
|
|
697
|
+
it or send it anywhere but `claimReceipt`.
|
|
698
|
+
|
|
613
699
|
## Metafields (custom data from apps and the store)
|
|
614
700
|
|
|
615
701
|
Apps and the store can attach custom fields to products, variants and collections. The ones
|
|
@@ -990,3 +1076,5 @@ try {
|
|
|
990
1076
|
## Subscription purchases and management
|
|
991
1077
|
|
|
992
1078
|
Use `previewSubscriptionPurchase` before `startSubscriptionPurchase`, then poll `getSubscriptionPurchaseStatus` after provider-hosted checkout. Customer lifecycle changes also have a preview: `previewMySubscriptionChange` followed by `manageMySubscription` with the same persisted request key. See the [subscription integration guide](../../docs/integrations/subscriptions.md) for payment recovery, trials, cancellation commitments, allowed actions, and compatibility.
|
|
1079
|
+
|
|
1080
|
+
Every refusal the subscriptions plugin makes is a `StorefrontError` with a `SUBSCRIPTION_*` `code` (each method's TSDoc lists its codes; the guide has what to do about each) and the engine's sentence. Branch on `code`, never on the sentence. A method that needs a signed-in shopper answers a signed-out session with the platform's `FORBIDDEN` before the plugin runs; `SUBSCRIPTION_GUEST_NOT_ALLOWED` means signed in but with no customer in this store. An engine before these codes answered all of them as `USER_INPUT_ERROR` (400) with the same sentence.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build-client.d.ts","sourceRoot":"","sources":["../src/build-client.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"build-client.d.ts","sourceRoot":"","sources":["../src/build-client.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE1D,OAAO,KAAK,EAAc,YAAY,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAE7E;;;;GAIG;AACH,wBAAgB,qBAAqB,CACnC,GAAG,EAAE,YAAY,EACjB,SAAS,EAAE,aAAa,GACvB,gBAAgB,CA6ClB"}
|
package/dist/build-client.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { createCommerceModule } from './commerce/index.js';
|
|
2
2
|
import { createContentModule } from './content/index.js';
|
|
3
|
+
import { forgetCustomerSession } from './core/customer-session.js';
|
|
3
4
|
import { defaultMethodDeprecationReporter, GRAPHQL_DEPRECATION } from './core/deprecation.js';
|
|
4
5
|
import { createHttpClient } from './core/http.js';
|
|
5
6
|
import { createCreditModule } from './credit/index.js';
|
|
@@ -37,9 +38,11 @@ export function buildStorefrontClient(ctx, redirects) {
|
|
|
37
38
|
},
|
|
38
39
|
setAuthToken(token) {
|
|
39
40
|
ctx.authToken = token;
|
|
41
|
+
forgetCustomerSession(ctx);
|
|
40
42
|
},
|
|
41
43
|
clearAuthToken() {
|
|
42
44
|
ctx.authToken = null;
|
|
45
|
+
forgetCustomerSession(ctx);
|
|
43
46
|
},
|
|
44
47
|
setOrderScope(scope) {
|
|
45
48
|
ctx.orderScope = scope;
|
package/dist/build-client.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build-client.js","sourceRoot":"","sources":["../src/build-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,EAAE,gCAAgC,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC9F,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAE,oBAAoB,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,kBAAkB,CAAC,IAAI,CAAC;QAChC,GAAG,EAAE,eAAe,CAAC,GAAG,CAAC;QACzB,SAAS;QACT,KAAK,EAAE,iBAAiB,CAAC,GAAG,CAAC;QAE7B,WAAW,CAAC,IAAY;YACtB,GAAG,CAAC,YAAY,GAAG,IAAI,CAAC;QAC1B,CAAC;QACD,WAAW;YACT,OAAO,GAAG,CAAC,YAAY,CAAC;QAC1B,CAAC;QACD,YAAY,CAAC,KAAa;YACxB,GAAG,CAAC,SAAS,GAAG,KAAK,CAAC;YACtB,qBAAqB,CAAC,GAAG,CAAC,CAAC;QAC7B,CAAC;QACD,cAAc;YACZ,GAAG,CAAC,SAAS,GAAG,IAAI,CAAC;YACrB,qBAAqB,CAAC,GAAG,CAAC,CAAC;QAC7B,CAAC;QACD,aAAa,CAAC,KAAwB;YACpC,GAAG,CAAC,UAAU,GAAG,KAAK,CAAC;QACzB,CAAC;QACD,aAAa;YACX,OAAO,GAAG,CAAC,UAAU,IAAI,IAAI,CAAC;QAChC,CAAC;QACD,OAAO,CAAc,KAAa,EAAE,SAAmC;YACrE,oFAAoF;YACpF,wDAAwD;YACxD,CAAC,GAAG,CAAC,sBAAsB,IAAI,gCAAgC,CAAC,CAAC,mBAAmB,CAAC,CAAC;YACtF,OAAO,IAAI,CAAC,OAAO,CAAI,KAAK,EAAE,SAAS,CAAC,CAAC;QAC3C,CAAC;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -97,8 +97,10 @@ export declare function createCheckoutMethods(http: HttpClient, ctx?: StoreConte
|
|
|
97
97
|
* `transitionToArrangingPayment()` and `addPayment()`: `PAY_NOW` for an
|
|
98
98
|
* immediate method (iDEAL, card), `PAY_ON_ACCOUNT` for a net-terms method.
|
|
99
99
|
* A merchant may attach a discount to paying now, so the returned order's
|
|
100
|
-
* `discounts
|
|
101
|
-
*
|
|
100
|
+
* `discounts` and `promotions` are what the buyer must be shown, with
|
|
101
|
+
* `getOrderMoneyView('active')`'s `total` as the total (`totalWithTax` is the
|
|
102
|
+
* figure before a staff rounding, which the payment does not charge) — this
|
|
103
|
+
* is the call that makes the cart total match the payment page.
|
|
102
104
|
*
|
|
103
105
|
* The intent is enforced at payment time: authorizing a pay-on-account
|
|
104
106
|
* method on an order marked `PAY_NOW` fails with
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkout.d.ts","sourceRoot":"","sources":["../../src/commerce/checkout.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAElE,OAAO,KAAK,KAAK,IAAI,MAAM,sBAAsB,CAAC;AAClD,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAOhE,OAAO,EAAE,KAAK,UAAU,EAAmB,MAAM,sBAAsB,CAAC;AA2BxE;;;;;;;GAOG;AACH,eAAO,MAAM,6BAA6B,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAM1E,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,6BAA6B,GAAG,UAAU,CACpD,IAAI,CAAC,4BAA4B,CAAC,sBAAsB,CAAC,CAC1D,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,CAAC,GAAG,MAAM,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAS/F;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,+BAA+B,QAAS,CAAC;AA4CtD,KAAK,mBAAmB,GAAG,cAAc,GAAG;IAAE,cAAc,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AA+DxE,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,UAAU,EAAE,GAAG,CAAC,EAAE,YAAY;+BAkBrC,IAAI,CAAC,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAA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E3E,IAAI,CAAC,yBAAyB,YAC3B,mBAAmB,GAC5B,OAAO,CAAC,IAAI,CAAC,kCAAkC,CAAC,4BAA4B,CAAC,CAAC;IAcjF;;;;OAIG;+BAC8B,IAAI,CAAC,yBAAyB,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC;IAO3F;;;;;;;;;OASG;mCAES,cAAc,GACvB,OAAO,CACR,UAAU,CAAC,IAAI,CAAC,oCAAoC,CAAC,8BAA8B,CAAC,CAAC,CACtF;IASD;;;OAGG;+BAC8B,OAAO,CAAC,cAAc,GAAG,IAAI,CAAC;EAOlE"}
|
|
@@ -286,8 +286,10 @@ export function createCheckoutMethods(http, ctx) {
|
|
|
286
286
|
* `transitionToArrangingPayment()` and `addPayment()`: `PAY_NOW` for an
|
|
287
287
|
* immediate method (iDEAL, card), `PAY_ON_ACCOUNT` for a net-terms method.
|
|
288
288
|
* A merchant may attach a discount to paying now, so the returned order's
|
|
289
|
-
* `discounts
|
|
290
|
-
*
|
|
289
|
+
* `discounts` and `promotions` are what the buyer must be shown, with
|
|
290
|
+
* `getOrderMoneyView('active')`'s `total` as the total (`totalWithTax` is the
|
|
291
|
+
* figure before a staff rounding, which the payment does not charge) — this
|
|
292
|
+
* is the call that makes the cart total match the payment page.
|
|
291
293
|
*
|
|
292
294
|
* The intent is enforced at payment time: authorizing a pay-on-account
|
|
293
295
|
* method on an order marked `PAY_NOW` fails with
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkout.js","sourceRoot":"","sources":["../../src/commerce/checkout.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAElF,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAG9D,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAChE,OAAO,EACL,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ACrC,OAA6B;YAE7B,kBAAkB,CAAC,4BAA4B,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;YAC/D,OAAO,mBAAmB,CAAC,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE;gBAClD,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,OAAO,CAC7B,sCAAsC,EACtC,EAAE,KAAK,EAAE,EACT,KAAK,CACN,CAAC;gBACF,OAAO,IAAI,CAAC,0BAA0B,CAAC;YACzC,CAAC,CAAC,CAAC;QACL,CAAC;QAED,8CAA8C;QAE9C;;;;WAIG;QACH,KAAK,CAAC,mBAAmB,CAAC,KAAqC;YAC7D,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,OAAO,CAA4B,gBAAgB,EAAE;gBAC3E,KAAK;aACN,CAAC,CAAC;YACH,OAAO,oBAAoB,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QACpD,CAAC;QAED;;;;;;;;;WASG;QACH,KAAK,CAAC,oBAAoB,CACxB,QAAwB;YAIxB,MAAM,UAAU,GAAG,4BAA4B,CAAC,QAAQ,CAAC,CAAC;YAC1D,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,OAAO,CAC7B,gCAAgC,EAChC,EAAE,QAAQ,EAAE,UAAU,EAAE,CACzB,CAAC;YACF,OAAO,YAAY,CAAC,IAAI,EAAE,8BAA8B,CAAC,CAAC;QAC5D,CAAC;QAED;;;WAGG;QACH,KAAK,CAAC,uBAAuB;YAC3B,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,OAAO,CAC7B,4BAA4B,CAC7B,CAAC;YACF,OAAO,2BAA2B,CAAC,IAAI,CAAC,yBAAyB,CAAC,CAAC;QACrE,CAAC;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { HttpClient, RequestOptions } from '../core/http.js';
|
|
2
2
|
import type * as Shop from '../generated/shop.js';
|
|
3
|
-
import type { AuthenticationStrategy, AuthenticationStrategyInput, LoginResult, MergedSelection, OrderListOptions, ReorderResult, RequestMagicLinkOptions, StoreContext } from '../types.js';
|
|
3
|
+
import type { AuthenticationStrategy, AuthenticationStrategyInput, CustomerOrdersWithMoneyView, LoginResult, MergedSelection, OrderListOptions, ReorderResult, RequestMagicLinkOptions, StoreContext } from '../types.js';
|
|
4
|
+
import { type OrderAccessKeyOption } from './order-access-key.js';
|
|
4
5
|
export declare function createCustomerMethods(http: HttpClient, ctx?: StoreContext): {
|
|
5
6
|
/**
|
|
6
7
|
* Authenticate a customer against the active channel.
|
|
@@ -89,12 +90,258 @@ export declare function createCustomerMethods(http: HttpClient, ctx?: StoreConte
|
|
|
89
90
|
*/
|
|
90
91
|
getActiveCustomerPriceLists(options?: RequestOptions): Promise<Shop.ActiveCustomerPriceListsQuery["activeCustomerPriceLists"]>;
|
|
91
92
|
updateCustomer(input: Shop.UpdateCustomerInput): Promise<Shop.UpdateCustomerMutation["updateCustomer"]>;
|
|
92
|
-
getCustomerOrders
|
|
93
|
+
getCustomerOrders: {
|
|
94
|
+
(options: OrderListOptions & {
|
|
95
|
+
moneyView: {
|
|
96
|
+
basis?: Shop.OrderMoneyBasis;
|
|
97
|
+
};
|
|
98
|
+
}): Promise<CustomerOrdersWithMoneyView>;
|
|
99
|
+
(options?: OrderListOptions & {
|
|
100
|
+
moneyView?: undefined;
|
|
101
|
+
}): Promise<{
|
|
102
|
+
totalItems: number;
|
|
103
|
+
items: {
|
|
104
|
+
lines: {
|
|
105
|
+
id: string;
|
|
106
|
+
backorderedQuantity: number;
|
|
107
|
+
expectedArrival: {
|
|
108
|
+
date: string | null;
|
|
109
|
+
confirmed: boolean;
|
|
110
|
+
source: string;
|
|
111
|
+
} | null;
|
|
112
|
+
quantity: number;
|
|
113
|
+
linePriceWithTax: number;
|
|
114
|
+
productVariant: {
|
|
115
|
+
id: string;
|
|
116
|
+
name: string;
|
|
117
|
+
sku: string;
|
|
118
|
+
product: {
|
|
119
|
+
slug: string;
|
|
120
|
+
featuredAsset: {
|
|
121
|
+
preview: string;
|
|
122
|
+
presets: {
|
|
123
|
+
xs: {
|
|
124
|
+
webpUrl: string;
|
|
125
|
+
};
|
|
126
|
+
} | null;
|
|
127
|
+
} | null;
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
}[];
|
|
131
|
+
id: string;
|
|
132
|
+
code: string;
|
|
133
|
+
state: string;
|
|
134
|
+
total: number;
|
|
135
|
+
totalWithTax: number;
|
|
136
|
+
currencyCode: Shop.CurrencyCode;
|
|
137
|
+
createdAt: string;
|
|
138
|
+
fulfillments: {
|
|
139
|
+
id: string;
|
|
140
|
+
state: string;
|
|
141
|
+
method: string;
|
|
142
|
+
trackingCode: string | null;
|
|
143
|
+
createdAt: string;
|
|
144
|
+
updatedAt: string;
|
|
145
|
+
lines: {
|
|
146
|
+
orderLineId: string;
|
|
147
|
+
quantity: number;
|
|
148
|
+
}[];
|
|
149
|
+
trackingCodes: string[];
|
|
150
|
+
}[] | null;
|
|
151
|
+
externalShipments: {
|
|
152
|
+
carrier: string;
|
|
153
|
+
reference: string;
|
|
154
|
+
isLink: boolean;
|
|
155
|
+
shippedAt: string | null;
|
|
156
|
+
deliveryNumber: string;
|
|
157
|
+
}[];
|
|
158
|
+
paymentTerms: {
|
|
159
|
+
source: string;
|
|
160
|
+
managedExternally: boolean;
|
|
161
|
+
status: Shop.PaymentTermsStatus;
|
|
162
|
+
conditionCode: string | null;
|
|
163
|
+
conditionDescription: string | null;
|
|
164
|
+
summary: string;
|
|
165
|
+
classification: Shop.PaymentTermsClassification;
|
|
166
|
+
paymentDays: number | null;
|
|
167
|
+
paymentEndOfMonths: number | null;
|
|
168
|
+
paymentMethod: string | null;
|
|
169
|
+
percentage: number | null;
|
|
170
|
+
discountPaymentDays: number | null;
|
|
171
|
+
discountPercentage: number | null;
|
|
172
|
+
paymentDiscountType: string | null;
|
|
173
|
+
stale: boolean;
|
|
174
|
+
syncedAt: string | null;
|
|
175
|
+
error: string | null;
|
|
176
|
+
resolvedAt: string;
|
|
177
|
+
remoteConditionCode: string | null;
|
|
178
|
+
remoteConfirmedAt: string | null;
|
|
179
|
+
remoteMismatch: boolean;
|
|
180
|
+
} | null;
|
|
181
|
+
deliveryTerms: {
|
|
182
|
+
source: string;
|
|
183
|
+
managedExternally: boolean;
|
|
184
|
+
status: Shop.DeliveryTermsStatus;
|
|
185
|
+
shippingMethodStatus: Shop.DeliveryTermsStatus;
|
|
186
|
+
policyStatus: Shop.DeliveryTermsStatus;
|
|
187
|
+
summary: string;
|
|
188
|
+
selectionSource: Shop.DeliverySelectionSource;
|
|
189
|
+
selectedShippingMethodId: string | null;
|
|
190
|
+
selectedShippingMethodCode: string | null;
|
|
191
|
+
selectedShippingMethodName: string | null;
|
|
192
|
+
platformShippingMethodCode: string | null;
|
|
193
|
+
platformShippingMethodName: string | null;
|
|
194
|
+
platformShippingMethodDescription: string | null;
|
|
195
|
+
platformShippingPrice: number | null;
|
|
196
|
+
platformShippingPriceWithTax: number | null;
|
|
197
|
+
preferredShippingMethodId: string | null;
|
|
198
|
+
incotermStatus: Shop.DeliveryTermsStatus;
|
|
199
|
+
incotermCode: string | null;
|
|
200
|
+
incotermVersion: number | null;
|
|
201
|
+
incotermAddress: string | null;
|
|
202
|
+
incotermDescription: string | null;
|
|
203
|
+
shippingLeadDays: number | null;
|
|
204
|
+
deliveryAdvice: Shop.DeliveryAdvice;
|
|
205
|
+
stale: boolean;
|
|
206
|
+
syncedAt: string | null;
|
|
207
|
+
warning: string | null;
|
|
208
|
+
resolvedAt: string;
|
|
209
|
+
remoteShippingMethodCode: string | null;
|
|
210
|
+
remoteShippingMethodName: string | null;
|
|
211
|
+
remoteIncotermCode: string | null;
|
|
212
|
+
remoteIncotermVersion: number | null;
|
|
213
|
+
remoteIncotermAddress: string | null;
|
|
214
|
+
remoteDeliveryDate: string | null;
|
|
215
|
+
remoteConfirmedAt: string | null;
|
|
216
|
+
remoteMismatch: boolean;
|
|
217
|
+
} | null;
|
|
218
|
+
}[];
|
|
219
|
+
}>;
|
|
220
|
+
(options?: OrderListOptions): Promise<{
|
|
221
|
+
totalItems: number;
|
|
222
|
+
items: {
|
|
223
|
+
lines: {
|
|
224
|
+
id: string;
|
|
225
|
+
backorderedQuantity: number;
|
|
226
|
+
expectedArrival: {
|
|
227
|
+
date: string | null;
|
|
228
|
+
confirmed: boolean;
|
|
229
|
+
source: string;
|
|
230
|
+
} | null;
|
|
231
|
+
quantity: number;
|
|
232
|
+
linePriceWithTax: number;
|
|
233
|
+
productVariant: {
|
|
234
|
+
id: string;
|
|
235
|
+
name: string;
|
|
236
|
+
sku: string;
|
|
237
|
+
product: {
|
|
238
|
+
slug: string;
|
|
239
|
+
featuredAsset: {
|
|
240
|
+
preview: string;
|
|
241
|
+
presets: {
|
|
242
|
+
xs: {
|
|
243
|
+
webpUrl: string;
|
|
244
|
+
};
|
|
245
|
+
} | null;
|
|
246
|
+
} | null;
|
|
247
|
+
};
|
|
248
|
+
};
|
|
249
|
+
}[];
|
|
250
|
+
id: string;
|
|
251
|
+
code: string;
|
|
252
|
+
state: string;
|
|
253
|
+
total: number;
|
|
254
|
+
totalWithTax: number;
|
|
255
|
+
currencyCode: Shop.CurrencyCode;
|
|
256
|
+
createdAt: string;
|
|
257
|
+
fulfillments: {
|
|
258
|
+
id: string;
|
|
259
|
+
state: string;
|
|
260
|
+
method: string;
|
|
261
|
+
trackingCode: string | null;
|
|
262
|
+
createdAt: string;
|
|
263
|
+
updatedAt: string;
|
|
264
|
+
lines: {
|
|
265
|
+
orderLineId: string;
|
|
266
|
+
quantity: number;
|
|
267
|
+
}[];
|
|
268
|
+
trackingCodes: string[];
|
|
269
|
+
}[] | null;
|
|
270
|
+
externalShipments: {
|
|
271
|
+
carrier: string;
|
|
272
|
+
reference: string;
|
|
273
|
+
isLink: boolean;
|
|
274
|
+
shippedAt: string | null;
|
|
275
|
+
deliveryNumber: string;
|
|
276
|
+
}[];
|
|
277
|
+
paymentTerms: {
|
|
278
|
+
source: string;
|
|
279
|
+
managedExternally: boolean;
|
|
280
|
+
status: Shop.PaymentTermsStatus;
|
|
281
|
+
conditionCode: string | null;
|
|
282
|
+
conditionDescription: string | null;
|
|
283
|
+
summary: string;
|
|
284
|
+
classification: Shop.PaymentTermsClassification;
|
|
285
|
+
paymentDays: number | null;
|
|
286
|
+
paymentEndOfMonths: number | null;
|
|
287
|
+
paymentMethod: string | null;
|
|
288
|
+
percentage: number | null;
|
|
289
|
+
discountPaymentDays: number | null;
|
|
290
|
+
discountPercentage: number | null;
|
|
291
|
+
paymentDiscountType: string | null;
|
|
292
|
+
stale: boolean;
|
|
293
|
+
syncedAt: string | null;
|
|
294
|
+
error: string | null;
|
|
295
|
+
resolvedAt: string;
|
|
296
|
+
remoteConditionCode: string | null;
|
|
297
|
+
remoteConfirmedAt: string | null;
|
|
298
|
+
remoteMismatch: boolean;
|
|
299
|
+
} | null;
|
|
300
|
+
deliveryTerms: {
|
|
301
|
+
source: string;
|
|
302
|
+
managedExternally: boolean;
|
|
303
|
+
status: Shop.DeliveryTermsStatus;
|
|
304
|
+
shippingMethodStatus: Shop.DeliveryTermsStatus;
|
|
305
|
+
policyStatus: Shop.DeliveryTermsStatus;
|
|
306
|
+
summary: string;
|
|
307
|
+
selectionSource: Shop.DeliverySelectionSource;
|
|
308
|
+
selectedShippingMethodId: string | null;
|
|
309
|
+
selectedShippingMethodCode: string | null;
|
|
310
|
+
selectedShippingMethodName: string | null;
|
|
311
|
+
platformShippingMethodCode: string | null;
|
|
312
|
+
platformShippingMethodName: string | null;
|
|
313
|
+
platformShippingMethodDescription: string | null;
|
|
314
|
+
platformShippingPrice: number | null;
|
|
315
|
+
platformShippingPriceWithTax: number | null;
|
|
316
|
+
preferredShippingMethodId: string | null;
|
|
317
|
+
incotermStatus: Shop.DeliveryTermsStatus;
|
|
318
|
+
incotermCode: string | null;
|
|
319
|
+
incotermVersion: number | null;
|
|
320
|
+
incotermAddress: string | null;
|
|
321
|
+
incotermDescription: string | null;
|
|
322
|
+
shippingLeadDays: number | null;
|
|
323
|
+
deliveryAdvice: Shop.DeliveryAdvice;
|
|
324
|
+
stale: boolean;
|
|
325
|
+
syncedAt: string | null;
|
|
326
|
+
warning: string | null;
|
|
327
|
+
resolvedAt: string;
|
|
328
|
+
remoteShippingMethodCode: string | null;
|
|
329
|
+
remoteShippingMethodName: string | null;
|
|
330
|
+
remoteIncotermCode: string | null;
|
|
331
|
+
remoteIncotermVersion: number | null;
|
|
332
|
+
remoteIncotermAddress: string | null;
|
|
333
|
+
remoteDeliveryDate: string | null;
|
|
334
|
+
remoteConfirmedAt: string | null;
|
|
335
|
+
remoteMismatch: boolean;
|
|
336
|
+
} | null;
|
|
337
|
+
}[];
|
|
338
|
+
} | CustomerOrdersWithMoneyView>;
|
|
339
|
+
};
|
|
93
340
|
createAddress(input: Shop.CreateAddressInput): Promise<Shop.CreateAddressMutation["createCustomerAddress"]>;
|
|
94
341
|
updateAddress(input: Shop.UpdateAddressInput): Promise<Shop.UpdateAddressMutation["updateCustomerAddress"]>;
|
|
95
342
|
deleteAddress(id: string): Promise<void>;
|
|
96
343
|
getAvailableCountries(): Promise<Shop.AvailableCountriesQuery["availableCountries"]>;
|
|
97
|
-
getOrderByCode(code: string): Promise<MergedSelection<NonNullable<Shop.OrderByCodeQuery["orderByCode"]>>>;
|
|
344
|
+
getOrderByCode(code: string, options?: OrderAccessKeyOption): Promise<MergedSelection<NonNullable<Shop.OrderByCodeQuery["orderByCode"]>>>;
|
|
98
345
|
/**
|
|
99
346
|
* Invoices issued for one of the signed-in customer's own orders.
|
|
100
347
|
* Requires authentication; other customers' order codes yield FORBIDDEN.
|
|
@@ -135,8 +382,10 @@ export declare function createCustomerMethods(http: HttpClient, ctx?: StoreConte
|
|
|
135
382
|
/**
|
|
136
383
|
* Add every line of a previous order to the active cart ("buy again").
|
|
137
384
|
* Lines whose variants no longer exist, have insufficient stock, are not
|
|
138
|
-
* for sale in the cart's currency (`VARIANT_NOT_FOR_SALE_IN_CURRENCY`)
|
|
139
|
-
* no longer sold by the store (`PRODUCT_EXCLUDED_FROM_STORE`)
|
|
385
|
+
* for sale in the cart's currency (`VARIANT_NOT_FOR_SALE_IN_CURRENCY`), are
|
|
386
|
+
* no longer sold by the store (`PRODUCT_EXCLUDED_FROM_STORE`), have no price
|
|
387
|
+
* in the store (`ORDER_LINE_VARIANT_UNPRICED`) or are gift cards the store sells
|
|
388
|
+
* none of now (`GIFT_CARD_NOT_FOR_SALE`) are
|
|
140
389
|
* collected in `skipped` instead of throwing — the caller decides how to
|
|
141
390
|
* surface them. Lines are added sequentially so cart state is consistent
|
|
142
391
|
* if the caller aborts mid-way. When the CART already holds a product not for
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customer.d.ts","sourceRoot":"","sources":["../../src/commerce/customer.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"customer.d.ts","sourceRoot":"","sources":["../../src/commerce/customer.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAGlE,OAAO,KAAK,KAAK,IAAI,MAAM,sBAAsB,CAAC;AAClD,OAAO,KAAK,EACV,sBAAsB,EACtB,2BAA2B,EAC3B,2BAA2B,EAC3B,WAAW,EACX,eAAe,EACf,gBAAgB,EAChB,aAAa,EAEb,uBAAuB,EACvB,YAAY,EACb,MAAM,aAAa,CAAC;AAGrB,OAAO,EAAE,KAAK,oBAAoB,EAA6B,MAAM,uBAAuB,CAAC;AAkE7F,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,UAAU,EAAE,GAAG,CAAC,EAAE,YAAY;IAyEtE;;;;;;;;;;;;;OAaG;iBACgB,MAAM,YAAY,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC;IA8BlE;;;;OAIG;iBACgB,CAAC,SAAS,sBAAsB,YACvC,CAAC,SACJ,2BAA2B,CAAC,CAAC,CAAC,YAC3B,cAAc,GAAG;QAAE,UAAU,CAAC,EAAE,OA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