@vectoriox/iox-ui 5.101.0 → 5.103.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.
@@ -237,6 +237,89 @@ declare function freeShippingRemaining(methods: ReadonlyArray<Pick<ShippingMetho
237
237
  freeOver?: Money | null;
238
238
  }>, cart: Pick<ShippingCart, 'currency' | 'subtotal' | 'discount' | 'requiresShipping' | 'lines'>): Money | null;
239
239
 
240
+ /**
241
+ * Coupons v1 (commerce plan §3h, E4): a code, a percent or a fixed amount off the GOODS (never the delivery), an
242
+ * optional minimum order, start and end, a uses limit; one per order. `priceCart` is the only place a coupon becomes
243
+ * a discount — iox-cms recomputes it at checkout and when the order is placed (trap T1). Pure: the caller passes `now`.
244
+ */
245
+ declare enum CouponKind {
246
+ Percent = "percent",
247
+ Fixed = "fixed"
248
+ }
249
+ interface Coupon {
250
+ code: string;
251
+ kind: CouponKind;
252
+ /** 1–100, at most two decimals — a Percent coupon's. */
253
+ percent?: number | null;
254
+ /** A Fixed coupon's amount, in the studio currency. */
255
+ amount?: Money | null;
256
+ /** The goods (after nothing else) must come to at least this. */
257
+ minimumOrder?: Money | null;
258
+ /** ISO dates; a missing one is open-ended. */
259
+ startsAt?: string | null;
260
+ expiresAt?: string | null;
261
+ /** Orders it may be used on; null = no limit. */
262
+ maxUses?: number | null;
263
+ /** Orders placed with it so far. */
264
+ uses?: number;
265
+ enabled: boolean;
266
+ }
267
+ /** What a priced cart says about the coupon it applied (the summary's "Discount · CODE"). */
268
+ interface AppliedCoupon {
269
+ code: string;
270
+ kind: CouponKind;
271
+ percent: number | null;
272
+ amount: Money | null;
273
+ }
274
+ declare const COUPON_CODE_MIN = 3;
275
+ declare const COUPON_CODE_MAX = 32;
276
+ /** A code as it is stored and compared: trimmed, upper-case. A buyer may type `back10` for `BACK10`. */
277
+ declare function normalizeCouponCode(value: unknown): string;
278
+ declare function isCouponCode(value: unknown): boolean;
279
+ /** What the owner must fix before a coupon may be saved. */
280
+ declare enum CouponProblem {
281
+ CodeInvalid = "code-invalid",
282
+ KindInvalid = "kind-invalid",
283
+ PercentInvalid = "percent-invalid",
284
+ AmountInvalid = "amount-invalid",
285
+ MinimumInvalid = "minimum-invalid",
286
+ DatesInvalid = "dates-invalid",
287
+ MaxUsesInvalid = "max-uses-invalid"
288
+ }
289
+ /** Every reason this coupon cannot be saved for a studio selling in `currency` — empty when it can. */
290
+ declare function couponProblems(coupon: Partial<Coupon> | null | undefined, currency: CurrencyCode): CouponProblem[];
291
+ /** Why a coupon gives no discount to this cart — each said to the buyer on the coupon field. */
292
+ declare enum CouponRefusal {
293
+ Unknown = "coupon-unknown",
294
+ Disabled = "coupon-disabled",
295
+ NotStarted = "coupon-not-started",
296
+ Expired = "coupon-expired",
297
+ UsedUp = "coupon-used-up",
298
+ MinimumNotMet = "coupon-minimum-not-met",
299
+ /** Another currency, or a coupon the owner would not be allowed to save now. */
300
+ NotUsable = "coupon-not-usable"
301
+ }
302
+ /** `{amount}` is the minimum order, filled by `couponRefusalWords`. */
303
+ declare const COUPON_REFUSAL_LABELS: Readonly<Record<CouponRefusal, CommerceLabel>>;
304
+ declare function couponRefusalWords(refusal: CouponRefusal, lang: string | null | undefined, fill?: {
305
+ amount?: string;
306
+ }): string;
307
+ /** What a coupon gives, in words ("10% off", "₪50.00 off") — the reminder's offer and the admin's coupon list. */
308
+ declare function couponOfferWords(coupon: Pick<Coupon, 'kind' | 'percent' | 'amount'>, lang: string | null | undefined, formatMoney: (value: Money) => string): string;
309
+ type CouponCheck = {
310
+ ok: true;
311
+ discount: Money;
312
+ applied: AppliedCoupon;
313
+ } | {
314
+ ok: false;
315
+ refusal: CouponRefusal;
316
+ };
317
+ /**
318
+ * The discount `coupon` gives goods worth `goods` at `now`: a percent of them (rounded once, half to even) or the
319
+ * fixed amount, never more than the goods themselves. No clock is read: a missing `now` refuses a dated coupon.
320
+ */
321
+ declare function couponDiscount(coupon: Coupon | null | undefined, goods: Money, now: number | null | undefined): CouponCheck;
322
+
240
323
  /** A cart names what and how many — never a price (C-D16, trap T1): every read prices it again. */
241
324
  interface CartLine {
242
325
  productId: string;
@@ -254,6 +337,10 @@ interface StudioCommerce {
254
337
  }
255
338
  interface PricingChoice {
256
339
  shippingMethodId?: string | null;
340
+ /** The buyer's coupon (E4) — the caller looked it up; `priceCart` decides what it gives. */
341
+ coupon?: Coupon | null;
342
+ /** Epoch ms the coupon's dates are judged at (no clock is read here). */
343
+ now?: number | null;
257
344
  }
258
345
  declare enum CartIssueCode {
259
346
  /** Not a whole number ≥ 1: the line is dropped. */
@@ -277,7 +364,9 @@ declare enum CartIssueCode {
277
364
  /** The chosen shipping method is not offered for this cart: no shipping is priced. */
278
365
  ShippingUnavailable = "shipping-unavailable",
279
366
  /** The studio's VAT is not a usable rate: the VAT line reads 0. */
280
- VatInvalid = "vat-invalid"
367
+ VatInvalid = "vat-invalid",
368
+ /** The coupon gives this cart nothing now (expired, used up, under its minimum…): no discount; `couponRefusal` says why. */
369
+ CouponNotApplied = "coupon-not-applied"
281
370
  }
282
371
  declare const CART_ISSUE_LABELS: Readonly<Record<CartIssueCode, CommerceLabel>>;
283
372
  interface CartIssue {
@@ -289,6 +378,9 @@ interface CartIssue {
289
378
  /** What the priced line holds now (clamped / capped). */
290
379
  quantity?: number;
291
380
  shippingMethodId?: string;
381
+ /** CouponNotApplied: the code and why. */
382
+ coupon?: string;
383
+ couponRefusal?: CouponRefusal;
292
384
  }
293
385
  interface PricedLine {
294
386
  productId: string;
@@ -307,8 +399,10 @@ interface PricedCart {
307
399
  currency: CurrencyCode;
308
400
  lines: PricedLine[];
309
401
  subtotal: Money;
310
- /** Zero until coupons (E4); `total` already subtracts it. */
402
+ /** The coupon's discount on the goods (E4); `total` already subtracts it. */
311
403
  discount: Money;
404
+ /** The coupon that gave `discount`, or null. */
405
+ coupon: AppliedCoupon | null;
312
406
  shipping: Money;
313
407
  shippingMethod: ShippingQuote | null;
314
408
  requiresShipping: boolean;
@@ -613,6 +707,10 @@ interface OrderSnapshot {
613
707
  readonly lines: readonly OrderSnapshotLine[];
614
708
  readonly subtotal: Money;
615
709
  readonly discount: Money;
710
+ /** The coupon code the discount came from (E4), or null. */
711
+ readonly coupon: {
712
+ readonly code: string;
713
+ } | null;
616
714
  readonly shipping: Money;
617
715
  readonly delivery: {
618
716
  readonly methodId: string;
@@ -828,6 +926,9 @@ interface CartView {
828
926
  count: number;
829
927
  empty: boolean;
830
928
  subtotal: Money | null;
929
+ /** The coupon's discount (E4) — zero, or null on a cart never priced. */
930
+ discount: Money | null;
931
+ coupon: AppliedCoupon | null;
831
932
  total: Money | null;
832
933
  vat: Money | null;
833
934
  vatPercent: number;
@@ -974,6 +1075,12 @@ declare enum SiteCommerceRoute {
974
1075
  CheckoutOptions = "checkout/options",
975
1076
  Checkout = "checkout",
976
1077
  CheckoutPlace = "checkout/place",
1078
+ /** `PUT {code}` applies a coupon to the open checkout; `DELETE` removes it (E4). */
1079
+ CheckoutCoupon = "checkout/coupon",
1080
+ /** `POST /:token` — a reminder's link: the bag back under this browser's cookie, the checkout as it was (E4). */
1081
+ CheckoutRecover = "checkout/recover",
1082
+ /** `GET|POST /:token` — the unsubscribe page's state, and the unsubscribe itself (E4). */
1083
+ Unsubscribe = "marketing/unsubscribe",
977
1084
  Order = "order"
978
1085
  }
979
1086
  /** A public commerce route of one org, ROOT-relative (the same rule as `cartEndpointPath`). */
@@ -1139,7 +1246,11 @@ declare enum CheckoutWord {
1139
1246
  Working = "working",
1140
1247
  StepOf = "stepOf",
1141
1248
  OrderMissing = "orderMissing",
1142
- Legal = "legal"
1249
+ Legal = "legal",
1250
+ Coupon = "coupon",
1251
+ ApplyCoupon = "applyCoupon",
1252
+ RemoveCoupon = "removeCoupon",
1253
+ Discount = "discount"
1143
1254
  }
1144
1255
  /** `{name}`, `{n}`, `{of}`, `{amount}`, `{percent}`, `{number}`, `{email}`, `{total}`, `{place}` are filled by `checkoutWord`. */
1145
1256
  declare const CHECKOUT_WORDS: Readonly<Record<CheckoutWord, CommerceLabel>>;
@@ -1156,6 +1267,8 @@ declare enum CheckoutSlot {
1156
1267
  Terms = "terms",
1157
1268
  /** The order summary: the bag itself changed. */
1158
1269
  Cart = "cart",
1270
+ /** The coupon field in the order summary (E4). */
1271
+ Coupon = "coupon",
1159
1272
  /** The whole page: closed, busy, unreachable. */
1160
1273
  Page = "page"
1161
1274
  }
@@ -1194,6 +1307,17 @@ declare enum SiteRefusalCode {
1194
1307
  UnknownSite = "unknown-site",
1195
1308
  /** The owner blocked this buyer (commerce E3c): no checkout, no order. */
1196
1309
  CustomerBlocked = "customer-blocked",
1310
+ CouponUnknown = "coupon-unknown",
1311
+ CouponDisabled = "coupon-disabled",
1312
+ CouponNotStarted = "coupon-not-started",
1313
+ CouponExpired = "coupon-expired",
1314
+ CouponUsedUp = "coupon-used-up",
1315
+ CouponMinimumNotMet = "coupon-minimum-not-met",
1316
+ CouponNotUsable = "coupon-not-usable",
1317
+ /** A reminder's link to a purchase that was completed (E4). */
1318
+ RecoveryDone = "recovery-done",
1319
+ /** A reminder's link whose bag is gone, or a link that is not one. */
1320
+ RecoveryExpired = "recovery-expired",
1197
1321
  Network = "network"
1198
1322
  }
1199
1323
  interface RefusalRule {
@@ -1212,11 +1336,212 @@ interface SiteRefusal {
1212
1336
  * `refusals` on its own field; any other code is one sentence; no body at all is `network`. `message` is a log line
1213
1337
  * and is never shown. One sentence per slot (the first wins).
1214
1338
  */
1215
- declare function siteRefusalsOf(body: unknown, lang: string | null | undefined): SiteRefusal[];
1339
+ declare function siteRefusalsOf(body: unknown, lang: string | null | undefined, formatMoney?: (value: Money) => string): SiteRefusal[];
1340
+
1341
+ /** A purchase with an email and no payment for this long is abandoned — a lead the owner can follow up. */
1342
+ declare const ABANDONED_AFTER_MS: number;
1343
+ /** A reminder this late (a pod was down, reminders were just switched on) is passed over, never sent stale. */
1344
+ declare const REMINDER_LATE_MS: number;
1345
+ declare enum ReminderStep {
1346
+ First = "first",
1347
+ Second = "second",
1348
+ Third = "third"
1349
+ }
1350
+ interface ReminderTiming {
1351
+ readonly step: ReminderStep;
1352
+ /** After the buyer's LAST activity on the checkout. */
1353
+ readonly afterMs: number;
1354
+ /** The owner's coupon rides this one, when there is one. */
1355
+ readonly carriesCoupon: boolean;
1356
+ }
1357
+ /** The sequence (board 9): 1 hour after leaving, after 24 hours, after 72 hours + a coupon. */
1358
+ declare const REMINDER_SEQUENCE: readonly ReminderTiming[];
1359
+ declare const REMINDER_STEPS: readonly ReminderStep[];
1360
+ /** The owner's words for one reminder — blank keeps the default. */
1361
+ interface ReminderWords {
1362
+ subject?: string | null;
1363
+ lead?: string | null;
1364
+ }
1365
+ interface ReminderSettings {
1366
+ enabled: boolean;
1367
+ steps: Record<ReminderStep, boolean>;
1368
+ /** A coupon code of the studio's, offered in the reminder that carries one. */
1369
+ couponCode: string | null;
1370
+ words: Partial<Record<ReminderStep, ReminderWords>>;
1371
+ }
1372
+ declare const REMINDER_WORDS_MAX = 200;
1373
+ /** On, every step on, no coupon (board 9). Reminders still go ONLY to a buyer who ticked consent. */
1374
+ declare const DEFAULT_REMINDER_SETTINGS: Readonly<ReminderSettings>;
1375
+ /** A stored (or sent) settings value read leniently: anything missing or malformed is the default. */
1376
+ declare function reminderSettingsOf(raw: unknown): ReminderSettings;
1377
+ /** One recorded decision about marketing: the checkout's tick, the customer's latest, an unsubscribe, the owner's stop. */
1378
+ interface ConsentDecision {
1379
+ given: boolean;
1380
+ at: string | number | Date | null | undefined;
1381
+ }
1382
+ /**
1383
+ * THE consent gate of a marketing message (Israel's Communications Law §30A, the GDPR — C-D14): the LATEST decision
1384
+ * wins. A tick at a checkout allows; an unsubscribe or the owner's "Stop reminders" after it forbids; a new tick at a
1385
+ * later checkout allows again. No decision at all forbids — a reminder is never sent on silence. A tie forbids.
1386
+ */
1387
+ declare function marketingAllowed(...decisions: ReadonlyArray<ConsentDecision | null | undefined>): boolean;
1388
+ /** Why a checkout gets no (more) reminders. */
1389
+ declare enum ReminderStop {
1390
+ /** The purchase was made. */
1391
+ Completed = "completed",
1392
+ NoEmail = "no-email",
1393
+ /** No tick, or the latest decision is a withdrawal. */
1394
+ NoConsent = "no-consent",
1395
+ /** The owner marked the lead lost. */
1396
+ Lost = "lost",
1397
+ /** The studio's reminders are off. */
1398
+ Off = "off",
1399
+ /** Every reminder was sent, or its time has passed. */
1400
+ Done = "done"
1401
+ }
1402
+ interface ReminderFacts {
1403
+ /** The checkout is still open (no order placed from it). */
1404
+ open: boolean;
1405
+ hasEmail: boolean;
1406
+ /** `marketingAllowed(...)` for this buyer. */
1407
+ consent: boolean;
1408
+ lost: boolean;
1409
+ /** Epoch ms of the buyer's last activity on the checkout. */
1410
+ lastActivityAt: number;
1411
+ /** Steps already sent, failed or passed over — never tried twice. */
1412
+ done: readonly ReminderStep[];
1413
+ settings: ReminderSettings;
1414
+ }
1415
+ type ReminderPlan = {
1416
+ due: true;
1417
+ step: ReminderStep;
1418
+ dueAt: number;
1419
+ carriesCoupon: boolean;
1420
+ } | {
1421
+ due: false;
1422
+ stop: ReminderStop;
1423
+ };
1424
+ /**
1425
+ * The next reminder of a checkout at `now`: the first step that is switched on, not done yet, and not more than
1426
+ * `REMINDER_LATE_MS` past its time — due at `lastActivityAt + afterMs` (it may be in the future: the scheduler waits).
1427
+ * A buyer who comes back moves every later reminder with their activity. Steps too late are passed over silently.
1428
+ */
1429
+ declare function nextReminder(facts: ReminderFacts, now: number): ReminderPlan;
1430
+ /** The step's number as the owner reads it ("Reminder 2"). */
1431
+ declare function reminderNumber(step: ReminderStep): number;
1432
+ /** What became of one reminder. */
1433
+ declare enum ReminderOutcome {
1434
+ Sent = "sent",
1435
+ Failed = "failed",
1436
+ /** Not sent, on purpose — `ReminderSkip` says why. */
1437
+ Skipped = "skipped"
1438
+ }
1439
+ declare enum ReminderSkip {
1440
+ /** The studio's sender domain is not verified: it would land in spam (T13). */
1441
+ SenderUnverified = "sender-unverified",
1442
+ NoMailer = "no-mailer",
1443
+ /** The studio's public address is unknown, so there is no link to put in it. */
1444
+ NoSiteAddress = "no-site-address",
1445
+ /** The bag is empty now: nothing to come back to. */
1446
+ EmptyBag = "empty-bag",
1447
+ /** A send was started and the pod stopped before it was recorded: never sent twice. */
1448
+ Interrupted = "interrupted"
1449
+ }
1450
+ /** Is a checkout an abandoned purchase at `now`: open, with an email, untouched for an hour. */
1451
+ declare function isAbandoned(c: {
1452
+ open: boolean;
1453
+ hasEmail: boolean;
1454
+ lastActivityAt: number;
1455
+ }, now: number): boolean;
1456
+ /** Where a purchase stopped: the step after the furthest one the buyer completed (board 9's "Stopped at"). */
1457
+ declare function stoppedAt(furthest: CheckoutStep | null | undefined): CheckoutStep;
1458
+ declare enum FunnelStage {
1459
+ AddedToBag = "added-to-bag",
1460
+ GaveEmail = "gave-email",
1461
+ ChoseDelivery = "chose-delivery",
1462
+ ReachedPayment = "reached-payment",
1463
+ PlacedOrder = "placed-order",
1464
+ Paid = "paid"
1465
+ }
1466
+ declare const FUNNEL_STAGES: readonly FunnelStage[];
1467
+ interface FunnelRow {
1468
+ stage: FunnelStage;
1469
+ count: number;
1470
+ /** Whole percent of the first stage. */
1471
+ share: number;
1472
+ /** Whole percent lost since the previous stage; null on the first. */
1473
+ drop: number | null;
1474
+ }
1475
+ /**
1476
+ * The funnel's rows. Each stage is a subset of the one before, so a count is raised to the next stage's when the
1477
+ * records disagree (a bag removed after 30 days while its checkout is kept) — a share never passes 100 %.
1478
+ */
1479
+ declare function funnelOf(counts: Partial<Record<FunnelStage, number>>): FunnelRow[];
1480
+ /** The stage that loses the most buyers after `after` (board 9: "After contact, the biggest drop is at delivery"). */
1481
+ declare function biggestDrop(rows: readonly FunnelRow[], after?: FunnelStage): FunnelStage | null;
1482
+ /** The Sales journey's periods (board 9). */
1483
+ declare const JOURNEY_PERIODS_DAYS: readonly number[];
1484
+ declare const DEFAULT_JOURNEY_DAYS = 30;
1485
+ /** What a timeline says happened — the purchase's own records, never browsing (C-D13). */
1486
+ declare enum JourneyEventKind {
1487
+ CheckoutStarted = "checkout-started",
1488
+ DeliveryChosen = "delivery-chosen",
1489
+ PaymentChosen = "payment-chosen",
1490
+ ReminderSent = "reminder-sent",
1491
+ ReminderFailed = "reminder-failed",
1492
+ ReminderSkipped = "reminder-skipped",
1493
+ ReminderScheduled = "reminder-scheduled",
1494
+ CameBack = "came-back",
1495
+ Unsubscribed = "unsubscribed",
1496
+ MarkedLost = "marked-lost",
1497
+ OrderPlaced = "order-placed"
1498
+ }
1499
+ /** `/<orgLabel>/checkout/r/<token>` — the reminder's link: the bag restored, the step they left. */
1500
+ declare const RECOVERY_PATH = "r";
1501
+ /** `/<orgLabel>/checkout/unsubscribe/<token>` — works without signing in. */
1502
+ declare const UNSUBSCRIBE_PATH = "unsubscribe";
1503
+ declare function recoveryHref(orgLabel: string | null | undefined, token: string): string;
1504
+ declare function unsubscribeHref(orgLabel: string | null | undefined, token: string): string;
1505
+ /** `GET|POST api/site/:orgId/marketing/unsubscribe/:token` — the page's state. The email is masked. */
1506
+ interface SiteUnsubscribeState {
1507
+ subscribed: boolean;
1508
+ email: string;
1509
+ siteName: string | null;
1510
+ language: string;
1511
+ }
1512
+ /** `n•••@example.com` — enough for a person to recognise their address, not enough to harvest it. */
1513
+ declare function maskEmail(email: string | null | undefined): string;
1514
+ declare enum RecoveryWord {
1515
+ SubjectFirst = "subjectFirst",
1516
+ SubjectSecond = "subjectSecond",
1517
+ SubjectThird = "subjectThird",
1518
+ Heading = "heading",
1519
+ Lead = "lead",
1520
+ Return = "return",
1521
+ KeptDetails = "keptDetails",
1522
+ CouponOffer = "couponOffer",
1523
+ Why = "why",
1524
+ Unsubscribe = "unsubscribe",
1525
+ UnsubscribeTitle = "unsubscribeTitle",
1526
+ UnsubscribeAsk = "unsubscribeAsk",
1527
+ UnsubscribeButton = "unsubscribeButton",
1528
+ UnsubscribeDone = "unsubscribeDone",
1529
+ UnsubscribeAlready = "unsubscribeAlready",
1530
+ UnsubscribeUnknown = "unsubscribeUnknown",
1531
+ UnsubscribeTransactional = "unsubscribeTransactional",
1532
+ RecoveryDone = "recoveryDone",
1533
+ RecoveryExpired = "recoveryExpired",
1534
+ Restoring = "restoring"
1535
+ }
1536
+ /** `{studio}`, `{code}`, `{offer}`, `{step}`, `{email}` are filled by `recoveryWord`. */
1537
+ declare const RECOVERY_WORDS: Readonly<Record<RecoveryWord, CommerceLabel>>;
1538
+ declare function recoveryWord(word: RecoveryWord, lang: string | null | undefined, fill?: Readonly<Record<string, string | number>>): string;
1539
+ /** The default subject of each reminder. */
1540
+ declare const REMINDER_SUBJECT_WORDS: Readonly<Record<ReminderStep, RecoveryWord>>;
1216
1541
 
1217
1542
  declare const looksLikeEmail: (value: unknown) => boolean;
1218
1543
  /** A phone a person can be called on: 7–15 digits once spaces, dashes, brackets and a leading + are dropped. */
1219
1544
  declare const looksLikePhone: (value: unknown) => boolean;
1220
1545
 
1221
- export { Availability, CART_COOKIE_PREFIX, CART_ISSUE_LABELS, CART_TRANSPORT_ERROR_LABELS, CHECKOUT_FORM_STEPS, CHECKOUT_GATE_RULES, CHECKOUT_PATH, CHECKOUT_STEPS, CHECKOUT_STEP_LABELS, CHECKOUT_WORDS, CURRENCY_CODES, CURRENCY_EXPONENTS, CartIssueCode, CartTransportError, CartTransportErrorCode, CheckoutAskedField, CheckoutFieldMode, CheckoutGateArea, CheckoutGateCode, CheckoutSlot, CheckoutStep, CheckoutWord, CommerceLanguage, CurrencyCode, DEFAULT_MONEY_LOCALE, DEFAULT_VARIANT_NAME, DeliveryFit, FINAL_ORDER_STATES, LegalPage, MAX_CART_AMOUNT, MAX_CART_LINES, MAX_LINE_QUANTITY, MAX_VAT_PERCENT, MIN_LINE_QUANTITY, MoneyError, MoneyErrorCode, NO_CART_TRANSPORT, ORDER_PATH, ORDER_STATE_LABELS, ORDER_STOCK_HOLD, ORDER_TRANSITIONS, OrderActor, OrderEvent, OrderRefusal, OrderSnapshotRefusal, OrderState, PAYMENT_FIELD_LABELS, PAYMENT_METHODS, PaymentChannel, PaymentField, PaymentMethodKind, PaymentProvider, QuantityStep, SAMPLE_CART_LINE, SAMPLE_PRODUCT, SAMPLE_STUDIO, SAMPLE_SWATCHES, SHIPPING_KINDS, SHOP_SLOTS, SHOP_WORDS, SITE_REFUSALS, STOCK_EFFECTS, STOCK_RESERVATION_MINUTES, ShippingField, ShippingMethodKind, ShopSlot, ShopWord, SiteCommerceRoute, SiteRefusalCode, StockEffect, StockHold, VARIANT_NAME_SEPARATOR, VAT_PERCENT_MAX_DECIMALS, addMoney, addressLine, availableShippingMethods, canBuy, canStep, cartCookieName, cartEndpointPath, cartIssueWords, cartLineId, cartOf, cartTransportErrorFor, cartViewOf, catalogKey, checkoutGate, checkoutHref, checkoutWord, chooseValue, clampQuantity, commerceLanguage, currencyExponent, currentCheckoutStep, defaultChoice, emptyCartView, fieldAsked, fieldRequired, findVariant, formatMoney, formatMoneyValue, freeShippingRemaining, furthestStep, includedVat, isCurrencyCode, isMoney, isPaymentMethodKind, isShippingMethodKind, isStorefrontProduct, isVatPercent, labelIn, looksLikeEmail, looksLikePhone, majorToMinor, mergeCarts, migrateMajorPrice, minorToMajor, money, nextOrderState, openingOrderState, optionValueStates, orderHref, orderSnapshot, paymentChannelOf, paymentInstructions, paymentMethodProblems, paymentMethodReady, percentOf, priceCart, productCurrency, productInScope, productOptions, productVariants, quantityBounds, quoteShipping, reservationExpiresAt, sellableQuantity, shippingMethodProblems, shippingMethodReady, shippingNeedsAddress, shopWord, simulatedCartTransport, siteCartView, siteCommercePath, siteRefusalsOf, stepQuantity, stockEffect, storefrontCatalog, storefrontMoney, subtractMoney, timesMoney, usablePaymentMethods, variantChoiceOf, variantSlotOf, variantWords };
1222
- export type { AddToCartRequest, BusinessIdentity, Cart, CartIssue, CartLine, CartTransport, CartView, CartViewLine, CatalogEntry, CheckoutFieldModes, CheckoutGateFacts, CheckoutGateRefusal, CheckoutGateResult, CommerceLabel, Money, OptionState, OptionValueState, OrderBuyer, OrderMove, OrderSnapshot, OrderSnapshotLine, OrderSnapshotResult, OrderTransition, PaymentMethodConfig, PostalAddress, PricedCart, PricedLine, PricingChoice, ProductOption, ProductVariantView, QuantityBounds, ShippingCart, ShippingGoods, ShippingMethod, ShippingQuote, SimulatedCartTransport, SiteBuyerOrder, SiteCartView, SiteCheckoutContact, SiteCheckoutOptions, SiteCheckoutView, SiteLegalLink, SitePaymentOption, SitePlacedOrder, SiteRefusal, SiteShippingMethod, SiteShippingOption, StorefrontProduct, StorefrontVariant, StudioCommerce, VariantChoice, VariantSlot };
1546
+ export { ABANDONED_AFTER_MS, Availability, CART_COOKIE_PREFIX, CART_ISSUE_LABELS, CART_TRANSPORT_ERROR_LABELS, CHECKOUT_FORM_STEPS, CHECKOUT_GATE_RULES, CHECKOUT_PATH, CHECKOUT_STEPS, CHECKOUT_STEP_LABELS, CHECKOUT_WORDS, COUPON_CODE_MAX, COUPON_CODE_MIN, COUPON_REFUSAL_LABELS, CURRENCY_CODES, CURRENCY_EXPONENTS, CartIssueCode, CartTransportError, CartTransportErrorCode, CheckoutAskedField, CheckoutFieldMode, CheckoutGateArea, CheckoutGateCode, CheckoutSlot, CheckoutStep, CheckoutWord, CommerceLanguage, CouponKind, CouponProblem, CouponRefusal, CurrencyCode, DEFAULT_JOURNEY_DAYS, DEFAULT_MONEY_LOCALE, DEFAULT_REMINDER_SETTINGS, DEFAULT_VARIANT_NAME, DeliveryFit, FINAL_ORDER_STATES, FUNNEL_STAGES, FunnelStage, JOURNEY_PERIODS_DAYS, JourneyEventKind, LegalPage, MAX_CART_AMOUNT, MAX_CART_LINES, MAX_LINE_QUANTITY, MAX_VAT_PERCENT, MIN_LINE_QUANTITY, MoneyError, MoneyErrorCode, NO_CART_TRANSPORT, ORDER_PATH, ORDER_STATE_LABELS, ORDER_STOCK_HOLD, ORDER_TRANSITIONS, OrderActor, OrderEvent, OrderRefusal, OrderSnapshotRefusal, OrderState, PAYMENT_FIELD_LABELS, PAYMENT_METHODS, PaymentChannel, PaymentField, PaymentMethodKind, PaymentProvider, QuantityStep, RECOVERY_PATH, RECOVERY_WORDS, REMINDER_LATE_MS, REMINDER_SEQUENCE, REMINDER_STEPS, REMINDER_SUBJECT_WORDS, REMINDER_WORDS_MAX, RecoveryWord, ReminderOutcome, ReminderSkip, ReminderStep, ReminderStop, SAMPLE_CART_LINE, SAMPLE_PRODUCT, SAMPLE_STUDIO, SAMPLE_SWATCHES, SHIPPING_KINDS, SHOP_SLOTS, SHOP_WORDS, SITE_REFUSALS, STOCK_EFFECTS, STOCK_RESERVATION_MINUTES, ShippingField, ShippingMethodKind, ShopSlot, ShopWord, SiteCommerceRoute, SiteRefusalCode, StockEffect, StockHold, UNSUBSCRIBE_PATH, VARIANT_NAME_SEPARATOR, VAT_PERCENT_MAX_DECIMALS, addMoney, addressLine, availableShippingMethods, biggestDrop, canBuy, canStep, cartCookieName, cartEndpointPath, cartIssueWords, cartLineId, cartOf, cartTransportErrorFor, cartViewOf, catalogKey, checkoutGate, checkoutHref, checkoutWord, chooseValue, clampQuantity, commerceLanguage, couponDiscount, couponOfferWords, couponProblems, couponRefusalWords, currencyExponent, currentCheckoutStep, defaultChoice, emptyCartView, fieldAsked, fieldRequired, findVariant, formatMoney, formatMoneyValue, freeShippingRemaining, funnelOf, furthestStep, includedVat, isAbandoned, isCouponCode, isCurrencyCode, isMoney, isPaymentMethodKind, isShippingMethodKind, isStorefrontProduct, isVatPercent, labelIn, looksLikeEmail, looksLikePhone, majorToMinor, marketingAllowed, maskEmail, mergeCarts, migrateMajorPrice, minorToMajor, money, nextOrderState, nextReminder, normalizeCouponCode, openingOrderState, optionValueStates, orderHref, orderSnapshot, paymentChannelOf, paymentInstructions, paymentMethodProblems, paymentMethodReady, percentOf, priceCart, productCurrency, productInScope, productOptions, productVariants, quantityBounds, quoteShipping, recoveryHref, recoveryWord, reminderNumber, reminderSettingsOf, reservationExpiresAt, sellableQuantity, shippingMethodProblems, shippingMethodReady, shippingNeedsAddress, shopWord, simulatedCartTransport, siteCartView, siteCommercePath, siteRefusalsOf, stepQuantity, stockEffect, stoppedAt, storefrontCatalog, storefrontMoney, subtractMoney, timesMoney, unsubscribeHref, usablePaymentMethods, variantChoiceOf, variantSlotOf, variantWords };
1547
+ export type { AddToCartRequest, AppliedCoupon, BusinessIdentity, Cart, CartIssue, CartLine, CartTransport, CartView, CartViewLine, CatalogEntry, CheckoutFieldModes, CheckoutGateFacts, CheckoutGateRefusal, CheckoutGateResult, CommerceLabel, ConsentDecision, Coupon, CouponCheck, FunnelRow, Money, OptionState, OptionValueState, OrderBuyer, OrderMove, OrderSnapshot, OrderSnapshotLine, OrderSnapshotResult, OrderTransition, PaymentMethodConfig, PostalAddress, PricedCart, PricedLine, PricingChoice, ProductOption, ProductVariantView, QuantityBounds, ReminderFacts, ReminderPlan, ReminderSettings, ReminderTiming, ReminderWords, ShippingCart, ShippingGoods, ShippingMethod, ShippingQuote, SimulatedCartTransport, SiteBuyerOrder, SiteCartView, SiteCheckoutContact, SiteCheckoutOptions, SiteCheckoutView, SiteLegalLink, SitePaymentOption, SitePlacedOrder, SiteRefusal, SiteShippingMethod, SiteShippingOption, SiteUnsubscribeState, StorefrontProduct, StorefrontVariant, StudioCommerce, VariantChoice, VariantSlot };