@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.
Files changed (87) hide show
  1. package/README.md +91 -3
  2. package/dist/build-client.d.ts.map +1 -1
  3. package/dist/build-client.js +3 -0
  4. package/dist/build-client.js.map +1 -1
  5. package/dist/commerce/checkout.d.ts +4 -2
  6. package/dist/commerce/checkout.d.ts.map +1 -1
  7. package/dist/commerce/checkout.js +4 -2
  8. package/dist/commerce/checkout.js.map +1 -1
  9. package/dist/commerce/customer.d.ts +254 -5
  10. package/dist/commerce/customer.d.ts.map +1 -1
  11. package/dist/commerce/customer.js +85 -28
  12. package/dist/commerce/customer.js.map +1 -1
  13. package/dist/commerce/index.d.ts +261 -6
  14. package/dist/commerce/index.d.ts.map +1 -1
  15. package/dist/commerce/index.js +12 -0
  16. package/dist/commerce/index.js.map +1 -1
  17. package/dist/commerce/money-view.d.ts +33 -0
  18. package/dist/commerce/money-view.d.ts.map +1 -0
  19. package/dist/commerce/money-view.js +75 -0
  20. package/dist/commerce/money-view.js.map +1 -0
  21. package/dist/commerce/order-access-key.d.ts +29 -0
  22. package/dist/commerce/order-access-key.d.ts.map +1 -0
  23. package/dist/commerce/order-access-key.js +38 -0
  24. package/dist/commerce/order-access-key.js.map +1 -0
  25. package/dist/commerce/parked-orders.d.ts +3 -3
  26. package/dist/commerce/parked-orders.d.ts.map +1 -1
  27. package/dist/commerce/parked-orders.js +34 -5
  28. package/dist/commerce/parked-orders.js.map +1 -1
  29. package/dist/commerce/payments.d.ts +2 -1
  30. package/dist/commerce/payments.d.ts.map +1 -1
  31. package/dist/commerce/payments.js +2 -1
  32. package/dist/commerce/payments.js.map +1 -1
  33. package/dist/commerce/queries.d.ts +37 -4
  34. package/dist/commerce/queries.d.ts.map +1 -1
  35. package/dist/commerce/queries.js +180 -8
  36. package/dist/commerce/queries.js.map +1 -1
  37. package/dist/commerce/receipt-claim.d.ts +35 -0
  38. package/dist/commerce/receipt-claim.d.ts.map +1 -0
  39. package/dist/commerce/receipt-claim.js +66 -0
  40. package/dist/commerce/receipt-claim.js.map +1 -0
  41. package/dist/commerce/returns.d.ts +2 -2
  42. package/dist/commerce/returns.d.ts.map +1 -1
  43. package/dist/commerce/returns.js +24 -3
  44. package/dist/commerce/returns.js.map +1 -1
  45. package/dist/commerce/store-pickup.d.ts +37 -0
  46. package/dist/commerce/store-pickup.d.ts.map +1 -0
  47. package/dist/commerce/store-pickup.js +66 -0
  48. package/dist/commerce/store-pickup.js.map +1 -0
  49. package/dist/core/customer-session.d.ts +34 -0
  50. package/dist/core/customer-session.d.ts.map +1 -0
  51. package/dist/core/customer-session.js +48 -0
  52. package/dist/core/customer-session.js.map +1 -0
  53. package/dist/core/http.d.ts +9 -0
  54. package/dist/core/http.d.ts.map +1 -1
  55. package/dist/core/http.js +64 -25
  56. package/dist/core/http.js.map +1 -1
  57. package/dist/errors.d.ts +6 -0
  58. package/dist/errors.d.ts.map +1 -1
  59. package/dist/errors.js +2 -0
  60. package/dist/errors.js.map +1 -1
  61. package/dist/events/payloads.d.ts +1 -1
  62. package/dist/events/payloads.d.ts.map +1 -1
  63. package/dist/generated/cms.d.ts +4 -2
  64. package/dist/generated/cms.d.ts.map +1 -1
  65. package/dist/generated/plugins.d.ts +2 -2
  66. package/dist/generated/plugins.d.ts.map +1 -1
  67. package/dist/generated/shop.d.ts +323 -9
  68. package/dist/generated/shop.d.ts.map +1 -1
  69. package/dist/index.d.ts +5 -1
  70. package/dist/index.d.ts.map +1 -1
  71. package/dist/index.js +3 -0
  72. package/dist/index.js.map +1 -1
  73. package/dist/pricing/index.d.ts +1 -0
  74. package/dist/pricing/index.d.ts.map +1 -1
  75. package/dist/pricing/index.js +1 -0
  76. package/dist/pricing/index.js.map +1 -1
  77. package/dist/pricing/order-money-rows.d.ts +92 -0
  78. package/dist/pricing/order-money-rows.d.ts.map +1 -0
  79. package/dist/pricing/order-money-rows.js +88 -0
  80. package/dist/pricing/order-money-rows.js.map +1 -0
  81. package/dist/pricing/validation.d.ts +25 -0
  82. package/dist/pricing/validation.d.ts.map +1 -1
  83. package/dist/pricing/validation.js +37 -4
  84. package/dist/pricing/validation.js.map +1 -1
  85. package/dist/types.d.ts +373 -25
  86. package/dist/types.d.ts.map +1 -1
  87. package/package.json +2 -2
@@ -1170,6 +1170,7 @@ export type NumberRange = {
1170
1170
  export type OrderFilterParameter = {
1171
1171
  _and?: InputMaybe<Array<OrderFilterParameter>>;
1172
1172
  _or?: InputMaybe<Array<OrderFilterParameter>>;
1173
+ accessKey?: InputMaybe<StringOperators>;
1173
1174
  active?: InputMaybe<BooleanOperators>;
1174
1175
  chargedParcelCount?: InputMaybe<NumberOperators>;
1175
1176
  code?: InputMaybe<StringOperators>;
@@ -1215,6 +1216,14 @@ export type OrderListOptions = {
1215
1216
  /** Takes n results, for use in pagination */
1216
1217
  take?: InputMaybe<Scalars['Int']['input']>;
1217
1218
  };
1219
+ /**
1220
+ * Which prices a money view shows. GROSS = incl. VAT, NET = excl. VAT. STORE follows how the
1221
+ * store sets its prices; CUSTOMER how the shop shows prices to the order's customer (consumers
1222
+ * and business customers can differ by the store's price-display settings).
1223
+ */
1224
+ export type OrderMoneyBasis = 'CUSTOMER' | 'GROSS' | 'NET' | 'STORE';
1225
+ /** Why a view gives no still-to-pay figure: KEPT_IN_ERP, the customer's account is kept in an external accounting system (print a note instead of an amount). */
1226
+ export type OrderMoneyStillToPayNote = 'KEPT_IN_ERP';
1218
1227
  /**
1219
1228
  * How the buyer intends to settle this order. Recorded before payment so
1220
1229
  * promotions (and the storefront's own totals) can respond to it.
@@ -1231,10 +1240,13 @@ export type OrderPaymentIntent =
1231
1240
  /** What happens to a received unit: back to sellable stock, or written off. */
1232
1241
  export type OrderReturnDisposition = 'restock' | 'write_off';
1233
1242
  export type OrderReturnReasonCode = 'arrived_late' | 'damaged' | 'defective' | 'no_longer_needed' | 'not_as_described' | 'order_error' | 'other' | 'wrong_item';
1234
- export type OrderReturnSettlementMethod = 'refund' | 'store_credit';
1243
+ export type OrderReturnSettlementMethod =
1244
+ /** The money went onto the customer's account (unapplied cash); no refund was made. */
1245
+ 'account' | 'refund' | 'store_credit';
1235
1246
  export type OrderReturnState = 'approved' | 'cancelled' | 'items_received' | 'rejected' | 'requested' | 'settled' | 'settlement_failed' | 'settlement_pending';
1236
1247
  export type OrderScope = 'CONSUMER' | 'TRADE';
1237
1248
  export type OrderSortParameter = {
1249
+ accessKey?: InputMaybe<SortOrder>;
1238
1250
  chargedParcelCount?: InputMaybe<SortOrder>;
1239
1251
  code?: InputMaybe<SortOrder>;
1240
1252
  createdAt?: InputMaybe<SortOrder>;
@@ -1269,9 +1281,9 @@ export type OrderType = 'Aggregate' | 'Regular' | 'Seller';
1269
1281
  /** How to open a card payment for a held order. */
1270
1282
  export type ParkedOrderPaymentIntentInput = {
1271
1283
  /**
1272
- * Minor units. Omit it to pay the whole outstanding balance. A smaller amount
1273
- * is a further deposit and is accepted only while the store has deposits
1274
- * enabled; more than the outstanding balance is refused with
1284
+ * Minor units. Omit it to pay what the order still owes (the position's
1285
+ * `owed`). A smaller amount is a further deposit and is accepted only while
1286
+ * the store has deposits enabled; more than `owed` is refused with
1275
1287
  * `AMOUNT_EXCEEDS_OUTSTANDING`.
1276
1288
  */
1277
1289
  amount?: InputMaybe<Scalars['Int']['input']>;
@@ -1302,10 +1314,11 @@ export type PayDepositInput = {
1302
1314
  /** How to pay some or all of what a held order still owes. */
1303
1315
  export type PayParkedOrderInput = {
1304
1316
  /**
1305
- * Minor units. Omit it to pay the whole outstanding balance, which is the
1306
- * ordinary case. A smaller amount is a further deposit and is accepted only
1307
- * while the store has deposits enabled; more than the outstanding balance is
1308
- * refused with `AMOUNT_EXCEEDS_OUTSTANDING`, carrying the position.
1317
+ * Minor units. Omit it to pay what the order still owes (the position's
1318
+ * `owed`), which is the ordinary case. A smaller amount is a further deposit
1319
+ * and is accepted only while the store has deposits enabled; more than
1320
+ * `owed` is refused with `AMOUNT_EXCEEDS_OUTSTANDING`, carrying the
1321
+ * position, and its message names the credit notes when they lowered it.
1309
1322
  */
1310
1323
  amount?: InputMaybe<Scalars['Int']['input']>;
1311
1324
  /** Free-form detail passed to the payment method's handler. */
@@ -1361,6 +1374,8 @@ export type PaymentTermsStatus = 'ASSIGNED' | 'CONFLICT' | 'STALE' | 'UNASSIGNED
1361
1374
  export type Permission =
1362
1375
  /** AdjustStock */
1363
1376
  'AdjustStock'
1377
+ /** Approve or reject purchase orders of the store’s legal entity that are above its approval threshold */
1378
+ | 'ApprovePurchaseOrder'
1364
1379
  /** Authenticated means simply that the user is logged in */
1365
1380
  | 'Authenticated'
1366
1381
  /** Grants permission to create Administrator */
@@ -1401,6 +1416,8 @@ export type Permission =
1401
1416
  | 'CreateProduct'
1402
1417
  /** Grants permission to create Promotion */
1403
1418
  | 'CreatePromotion'
1419
+ /** Grants permission to create purchase orders and their lines */
1420
+ | 'CreatePurchaseOrder'
1404
1421
  /** Grants permission to create Seller */
1405
1422
  | 'CreateSeller'
1406
1423
  /** Grants permission to create PaymentMethods, ShippingMethods, TaxCategories, TaxRates, Zones, Countries, System & GlobalSettings */
@@ -1409,6 +1426,8 @@ export type Permission =
1409
1426
  | 'CreateShippingMethod'
1410
1427
  /** Grants permission to create StockLocation */
1411
1428
  | 'CreateStockLocation'
1429
+ /** Grants permission to create suppliers, their contacts, supplier items and prices */
1430
+ | 'CreateSupplier'
1412
1431
  /** Grants permission to create System */
1413
1432
  | 'CreateSystem'
1414
1433
  /** Grants permission to create Tag */
@@ -1457,6 +1476,8 @@ export type Permission =
1457
1476
  | 'DeleteProduct'
1458
1477
  /** Grants permission to delete Promotion */
1459
1478
  | 'DeletePromotion'
1479
+ /** Grants permission to cancel purchase orders (they are never deleted) */
1480
+ | 'DeletePurchaseOrder'
1460
1481
  /** Grants permission to delete Seller */
1461
1482
  | 'DeleteSeller'
1462
1483
  /** Grants permission to delete PaymentMethods, ShippingMethods, TaxCategories, TaxRates, Zones, Countries, System & GlobalSettings */
@@ -1465,6 +1486,8 @@ export type Permission =
1465
1486
  | 'DeleteShippingMethod'
1466
1487
  /** Grants permission to delete StockLocation */
1467
1488
  | 'DeleteStockLocation'
1489
+ /** Grants permission to delete suppliers, their contacts, supplier items and prices */
1490
+ | 'DeleteSupplier'
1468
1491
  /** Grants permission to delete System */
1469
1492
  | 'DeleteSystem'
1470
1493
  /** Grants permission to delete Tag */
@@ -1483,16 +1506,24 @@ export type Permission =
1483
1506
  | 'ManageApiToken'
1484
1507
  /** ManageEventSubscriptions */
1485
1508
  | 'ManageEventSubscriptions'
1509
+ /** Manage inventory cost for the store’s legal entity: override a variant’s unit cost, add landed charges to posted receipts and override a receipt’s exchange rate */
1510
+ | 'ManageInventoryCost'
1486
1511
  /** Manage an organization and the data its stores share */
1487
1512
  | 'ManageOrganization'
1488
1513
  /** Manage POS devices, registers, staff and receipt numbering. Pairing a device gives that device the till’s order and customer access */
1489
1514
  | 'ManagePosDevices'
1515
+ /** Manage purchasing for the store’s legal entity: switch it on, its currency, tolerances, reorder settings and document numbering */
1516
+ | 'ManagePurchasingSettings'
1490
1517
  /** Allows issuing, adjusting, blocking and unblocking stored-value accounts */
1491
1518
  | 'ManageStoredValue'
1492
1519
  /** ManageWarehouseAssignments */
1493
1520
  | 'ManageWarehouseAssignments'
1494
1521
  /** Operate a point of sale: sessions, cash, tenders, sales and refunds */
1495
1522
  | 'OperatePos'
1523
+ /** OverrideDiscountLimit */
1524
+ | 'OverrideDiscountLimit'
1525
+ /** OverrideFulfillmentPaymentCoverage */
1526
+ | 'OverrideFulfillmentPaymentCoverage'
1496
1527
  /** Owner means the user owns this entity, e.g. a Customer's own Order */
1497
1528
  | 'Owner'
1498
1529
  /** Public means any unauthenticated user may perform the operation */
@@ -1543,6 +1574,8 @@ export type Permission =
1543
1574
  | 'ReadProduct'
1544
1575
  /** Grants permission to read Promotion */
1545
1576
  | 'ReadPromotion'
1577
+ /** Grants permission to read purchase orders and their lines */
1578
+ | 'ReadPurchaseOrder'
1546
1579
  /** Grants permission to read Seller */
1547
1580
  | 'ReadSeller'
1548
1581
  /** Grants permission to read PaymentMethods, ShippingMethods, TaxCategories, TaxRates, Zones, Countries, System & GlobalSettings */
@@ -1553,6 +1586,8 @@ export type Permission =
1553
1586
  | 'ReadStockLocation'
1554
1587
  /** Allows reading stored-value accounts, statements and liability */
1555
1588
  | 'ReadStoredValue'
1589
+ /** Grants permission to read suppliers, their contacts, supplier items and prices */
1590
+ | 'ReadSupplier'
1556
1591
  /** Grants permission to read System */
1557
1592
  | 'ReadSystem'
1558
1593
  /** Grants permission to read Tag */
@@ -1563,6 +1598,12 @@ export type Permission =
1563
1598
  | 'ReadTaxRate'
1564
1599
  /** Grants permission to read Zone */
1565
1600
  | 'ReadZone'
1601
+ /** Accept more goods on a purchase order line than its over-receipt tolerance allows, with a reason */
1602
+ | 'ReceiveOverTolerance'
1603
+ /** Receive goods against purchase orders of the store’s legal entity, and reverse receipts, at the stock locations the staff member works at */
1604
+ | 'ReceivePurchaseOrder'
1605
+ /** RequestOrderPayment */
1606
+ | 'RequestOrderPayment'
1566
1607
  /** SuperAdmin has unrestricted access to all operations */
1567
1608
  | 'SuperAdmin'
1568
1609
  /** Grants permission to update Administrator */
@@ -1607,6 +1648,8 @@ export type Permission =
1607
1648
  | 'UpdateProduct'
1608
1649
  /** Grants permission to update Promotion */
1609
1650
  | 'UpdatePromotion'
1651
+ /** Grants permission to update purchase orders and their lines */
1652
+ | 'UpdatePurchaseOrder'
1610
1653
  /** Grants permission to update Seller */
1611
1654
  | 'UpdateSeller'
1612
1655
  /** Grants permission to update PaymentMethods, ShippingMethods, TaxCategories, TaxRates, Zones, Countries, System & GlobalSettings */
@@ -1615,6 +1658,8 @@ export type Permission =
1615
1658
  | 'UpdateShippingMethod'
1616
1659
  /** Grants permission to update StockLocation */
1617
1660
  | 'UpdateStockLocation'
1661
+ /** Grants permission to update suppliers, their contacts, supplier items and prices */
1662
+ | 'UpdateSupplier'
1618
1663
  /** Grants permission to update System */
1619
1664
  | 'UpdateSystem'
1620
1665
  /** Grants permission to update Tag */
@@ -1655,7 +1700,7 @@ export type PickupLocationSearchInput = {
1655
1700
  * defensively: new codes are added over time, and any code this build does not
1656
1701
  * know decodes to `UNKNOWN`.
1657
1702
  */
1658
- export type PlacementRejectionCode = 'AGE_REQUIREMENT_NOT_MET' | 'AGE_VERIFICATION_REQUIRED' | 'CUSTOMER_REQUIRED' | 'DELIVERY_TERMS_UNAVAILABLE' | 'FULFILLMENT_MINIMUM_NOT_MET' | 'HOOK_REJECTED' | 'HOOK_UNAVAILABLE' | 'INSUFFICIENT_STOCK' | 'LINE_MINIMUM_QUANTITY_NOT_MET' | 'LINE_SALES_UNIT_NOT_MET' | 'ORDER_EMPTY' | 'ORDER_MINIMUM_AMOUNT_NOT_MET' | 'ORDER_MINIMUM_QUANTITY_NOT_MET' | 'PAYMENT_INTENT_MISMATCH' | 'PAYMENT_TERMS_UNAVAILABLE' | 'PLACEMENT_BLOCKED' | 'PRODUCT_EXCLUDED_FROM_STORE' | 'SHIPPING_ADDRESS_INCOMPLETE' | 'SHIPPING_COUNTRY_NOT_SERVED' | 'SHIPPING_METHOD_REQUIRED' | 'SHIPPING_RATE_UNAVAILABLE' | 'TAX_CHANGED' | 'UNKNOWN' | 'VARIANT_NOT_FOR_SALE_IN_CURRENCY';
1703
+ export type PlacementRejectionCode = 'AGE_REQUIREMENT_NOT_MET' | 'AGE_VERIFICATION_REQUIRED' | 'CUSTOMER_REQUIRED' | 'DELIVERY_TERMS_UNAVAILABLE' | 'FULFILLMENT_MINIMUM_NOT_MET' | 'GIFT_CARD_LINE_FREE' | 'GIFT_CARD_NEEDS_BUYER_EMAIL' | 'GIFT_CARD_NOT_FOR_SALE' | 'GIFT_CARD_ORDER_DISCOUNT' | 'HOOK_REJECTED' | 'HOOK_UNAVAILABLE' | 'INSUFFICIENT_STOCK' | 'LINE_MINIMUM_QUANTITY_NOT_MET' | 'LINE_SALES_UNIT_NOT_MET' | 'ORDER_EMPTY' | 'ORDER_MINIMUM_AMOUNT_NOT_MET' | 'ORDER_MINIMUM_QUANTITY_NOT_MET' | 'PAYMENT_INTENT_MISMATCH' | 'PAYMENT_TERMS_UNAVAILABLE' | 'PLACEMENT_BLOCKED' | 'PRODUCT_EXCLUDED_FROM_STORE' | 'SHIPPING_ADDRESS_INCOMPLETE' | 'SHIPPING_COUNTRY_NOT_SERVED' | 'SHIPPING_METHOD_REQUIRED' | 'SHIPPING_RATE_UNAVAILABLE' | 'TAX_CHANGED' | 'UNKNOWN' | 'VARIANT_NOT_FOR_SALE_IN_CURRENCY';
1659
1704
  /**
1660
1705
  * A merchant's publication state for a product that is launched but not (yet)
1661
1706
  * simply in stock. Not a stock figure: stock arriving does not end it — only
@@ -2177,6 +2222,9 @@ export type ProductVariantFragment = {
2177
2222
  priceListName: string | null;
2178
2223
  retailPrice: number | null;
2179
2224
  retailPriceWithTax: number | null;
2225
+ dropShip: {
2226
+ leadTimeDays: number | null;
2227
+ } | null;
2180
2228
  availability: ProductAvailabilityFragment;
2181
2229
  taxRateApplied: {
2182
2230
  value: number;
@@ -2849,6 +2897,9 @@ export type OrderFragment = {
2849
2897
  name: string;
2850
2898
  couponCode: string | null;
2851
2899
  description: string;
2900
+ conditions: Array<{
2901
+ code: string;
2902
+ }>;
2852
2903
  }>;
2853
2904
  shippingLines: Array<{
2854
2905
  priceWithTax: number;
@@ -3308,6 +3359,58 @@ export type ApplyPreferredShippingMethodMutation = {
3308
3359
  message: string;
3309
3360
  };
3310
3361
  };
3362
+ export type StorePickupLocationFragment = {
3363
+ id: string;
3364
+ name: string;
3365
+ phone: string | null;
3366
+ openingHours: unknown | null;
3367
+ instructions: string | null;
3368
+ available: boolean | null;
3369
+ address: {
3370
+ streetLine1: string | null;
3371
+ streetLine2: string | null;
3372
+ city: string | null;
3373
+ province: string | null;
3374
+ postalCode: string | null;
3375
+ countryCode: string | null;
3376
+ } | null;
3377
+ };
3378
+ export type StorePickupLocationsQueryVariables = Exact<{
3379
+ [key: string]: never;
3380
+ }>;
3381
+ export type StorePickupLocationsQuery = {
3382
+ storePickupLocations: Array<StorePickupLocationFragment>;
3383
+ };
3384
+ export type SetActiveOrderStorePickupLocationMutationVariables = Exact<{
3385
+ stockLocationId?: InputMaybe<Scalars['ID']['input']>;
3386
+ }>;
3387
+ export type SetActiveOrderStorePickupLocationMutation = {
3388
+ setActiveOrderStorePickupLocation: OrderFragment;
3389
+ };
3390
+ export type ActiveOrderStorePickupQueryVariables = Exact<{
3391
+ [key: string]: never;
3392
+ }>;
3393
+ export type ActiveOrderStorePickupQuery = {
3394
+ activeOrder: {
3395
+ id: string;
3396
+ storePickup: {
3397
+ status: string;
3398
+ readyAt: string | null;
3399
+ holdUntil: string | null;
3400
+ collectedAt: string | null;
3401
+ location: StorePickupLocationFragment;
3402
+ } | null;
3403
+ } | null;
3404
+ };
3405
+ export type EligibleShippingMethodCodesQueryVariables = Exact<{
3406
+ [key: string]: never;
3407
+ }>;
3408
+ export type EligibleShippingMethodCodesQuery = {
3409
+ eligibleShippingMethods: Array<{
3410
+ id: string;
3411
+ code: string;
3412
+ }>;
3413
+ };
3311
3414
  export type PaymentMethodsQueryVariables = Exact<{
3312
3415
  [key: string]: never;
3313
3416
  }>;
@@ -3603,6 +3706,20 @@ export type SyncMolliePaymentStatusMutation = {
3603
3706
  } | null;
3604
3707
  };
3605
3708
  export type ParkedOrderFragment = {
3709
+ id: string;
3710
+ code: string;
3711
+ state: string;
3712
+ reason: string | null;
3713
+ position: {
3714
+ total: number;
3715
+ covered: number;
3716
+ outstanding: number;
3717
+ creditNoted: number;
3718
+ owed: number;
3719
+ currencyCode: string;
3720
+ };
3721
+ };
3722
+ export type ParkedOrderLegacyFragment = {
3606
3723
  id: string;
3607
3724
  code: string;
3608
3725
  state: string;
@@ -3620,12 +3737,48 @@ export type ParkedOrdersQueryVariables = Exact<{
3620
3737
  export type ParkedOrdersQuery = {
3621
3738
  parkedOrders: Array<ParkedOrderFragment>;
3622
3739
  };
3740
+ export type ParkedOrdersLegacyQueryVariables = Exact<{
3741
+ [key: string]: never;
3742
+ }>;
3743
+ export type ParkedOrdersLegacyQuery = {
3744
+ parkedOrders: Array<ParkedOrderLegacyFragment>;
3745
+ };
3623
3746
  export type PayParkedOrderMutationVariables = Exact<{
3624
3747
  orderCode: Scalars['String']['input'];
3625
3748
  input: PayParkedOrderInput;
3626
3749
  idempotencyKey?: InputMaybe<Scalars['String']['input']>;
3627
3750
  }>;
3628
3751
  export type PayParkedOrderMutation = {
3752
+ payParkedOrder: {
3753
+ settled: boolean;
3754
+ order: {
3755
+ id: string;
3756
+ code: string;
3757
+ state: string;
3758
+ };
3759
+ payment: {
3760
+ id: string;
3761
+ state: string;
3762
+ amount: number;
3763
+ method: string;
3764
+ metadata: unknown | null;
3765
+ };
3766
+ position: {
3767
+ total: number;
3768
+ covered: number;
3769
+ outstanding: number;
3770
+ creditNoted: number;
3771
+ owed: number;
3772
+ currencyCode: string;
3773
+ };
3774
+ };
3775
+ };
3776
+ export type PayParkedOrderLegacyMutationVariables = Exact<{
3777
+ orderCode: Scalars['String']['input'];
3778
+ input: PayParkedOrderInput;
3779
+ idempotencyKey?: InputMaybe<Scalars['String']['input']>;
3780
+ }>;
3781
+ export type PayParkedOrderLegacyMutation = {
3629
3782
  payParkedOrder: {
3630
3783
  settled: boolean;
3631
3784
  order: {
@@ -3810,6 +3963,11 @@ export type CustomerOrdersQuery = {
3810
3963
  lines: Array<{
3811
3964
  id: string;
3812
3965
  backorderedQuantity: number;
3966
+ expectedArrival: {
3967
+ date: string | null;
3968
+ confirmed: boolean;
3969
+ source: string;
3970
+ } | null;
3813
3971
  }>;
3814
3972
  } & OrderSummaryFragment & OrderFulfillmentParcelsFragment)>;
3815
3973
  };
@@ -4122,12 +4280,129 @@ export type OrderByCodeQuery = {
4122
4280
  lines: Array<{
4123
4281
  id: string;
4124
4282
  backorderedQuantity: number;
4283
+ expectedArrival: {
4284
+ date: string | null;
4285
+ confirmed: boolean;
4286
+ source: string;
4287
+ } | null;
4125
4288
  }>;
4126
4289
  customFields: {
4127
4290
  chargedParcelCount: number | null;
4128
4291
  } | null;
4129
4292
  } & OrderFragment & OrderFulfillmentsFragment & OrderFulfillmentParcelsFragment & OrderPaymentTermsFragment & OrderDeliveryTermsFragment) | null;
4130
4293
  };
4294
+ export type OrderMoneyViewFragment = {
4295
+ basis: OrderMoneyBasis;
4296
+ currencyCode: CurrencyCode;
4297
+ subtotal: number;
4298
+ shippingTotal: number;
4299
+ totalExcludingTax: number;
4300
+ taxIncluded: boolean;
4301
+ taxTotal: number;
4302
+ rounding: number | null;
4303
+ total: number;
4304
+ totalBeforeRounding: number;
4305
+ reconciles: boolean;
4306
+ lines: Array<{
4307
+ orderLineId: string;
4308
+ quantity: number;
4309
+ taxRate: number;
4310
+ unitAmount: number | null;
4311
+ amount: number;
4312
+ }>;
4313
+ goodsAdjustments: Array<{
4314
+ key: string;
4315
+ description: string;
4316
+ amount: number;
4317
+ taxRate: number | null;
4318
+ }>;
4319
+ surcharges: Array<{
4320
+ key: string;
4321
+ description: string;
4322
+ amount: number;
4323
+ taxRate: number | null;
4324
+ }>;
4325
+ shipping: Array<{
4326
+ key: string;
4327
+ description: string;
4328
+ amount: number;
4329
+ taxRate: number | null;
4330
+ }>;
4331
+ shippingAdjustments: Array<{
4332
+ key: string;
4333
+ description: string;
4334
+ amount: number;
4335
+ taxRate: number | null;
4336
+ }>;
4337
+ taxes: Array<{
4338
+ taxRate: number;
4339
+ base: number;
4340
+ amount: number;
4341
+ }>;
4342
+ balance: {
4343
+ paid: number;
4344
+ giftCard: number;
4345
+ storeCredit: number;
4346
+ credited: number;
4347
+ stillToPay: number;
4348
+ };
4349
+ };
4350
+ export type ActiveOrderMoneyViewQueryVariables = Exact<{
4351
+ basis: OrderMoneyBasis;
4352
+ }>;
4353
+ export type ActiveOrderMoneyViewQuery = {
4354
+ activeOrder: {
4355
+ id: string;
4356
+ code: string;
4357
+ moneyView: OrderMoneyViewFragment;
4358
+ } | null;
4359
+ };
4360
+ export type OrderMoneyViewByCodeQueryVariables = Exact<{
4361
+ code: Scalars['String']['input'];
4362
+ basis: OrderMoneyBasis;
4363
+ }>;
4364
+ export type OrderMoneyViewByCodeQuery = {
4365
+ orderByCode: {
4366
+ id: string;
4367
+ code: string;
4368
+ moneyView: OrderMoneyViewFragment;
4369
+ } | null;
4370
+ };
4371
+ export type ActiveOrderAccessKeyQueryVariables = Exact<{
4372
+ [key: string]: never;
4373
+ }>;
4374
+ export type ActiveOrderAccessKeyQuery = {
4375
+ activeOrder: {
4376
+ id: string;
4377
+ accessKey: string | null;
4378
+ } | null;
4379
+ };
4380
+ export type OrderMoneyViewProbeQueryVariables = Exact<{
4381
+ [key: string]: never;
4382
+ }>;
4383
+ export type OrderMoneyViewProbeQuery = {
4384
+ activeOrder: {
4385
+ id: string;
4386
+ } | null;
4387
+ };
4388
+ export type CustomerOrdersWithMoneyViewQueryVariables = Exact<{
4389
+ options?: InputMaybe<OrderListOptions>;
4390
+ basis: OrderMoneyBasis;
4391
+ }>;
4392
+ export type CustomerOrdersWithMoneyViewQuery = {
4393
+ activeCustomer: {
4394
+ orders: {
4395
+ totalItems: number;
4396
+ items: Array<({
4397
+ lines: Array<{
4398
+ id: string;
4399
+ backorderedQuantity: number;
4400
+ }>;
4401
+ moneyView: OrderMoneyViewFragment;
4402
+ } & OrderSummaryFragment & OrderFulfillmentParcelsFragment)>;
4403
+ };
4404
+ } | null;
4405
+ };
4131
4406
  export type FavoriteVariantIdsQueryVariables = Exact<{
4132
4407
  [key: string]: never;
4133
4408
  }>;
@@ -4831,9 +5106,48 @@ export type ReturnableLinesForOrderQuery = {
4831
5106
  returnableQty: number;
4832
5107
  unitPriceWithTax: number;
4833
5108
  unitPriceWithTaxUnrounded: number;
5109
+ creditedQty: number;
5110
+ correctionCredits: Array<{
5111
+ orderLineId: string;
5112
+ creditNoteId: string;
5113
+ creditNoteNumber: string;
5114
+ ledger: string;
5115
+ quantity: number;
5116
+ amount: number;
5117
+ }>;
4834
5118
  }>;
4835
5119
  };
4836
5120
  };
5121
+ export type ReturnableLinesForOrderLegacyQueryVariables = Exact<{
5122
+ orderId: Scalars['ID']['input'];
5123
+ }>;
5124
+ export type ReturnableLinesForOrderLegacyQuery = {
5125
+ returnableLinesForOrder: {
5126
+ orderId: string;
5127
+ eligible: boolean;
5128
+ reason: string | null;
5129
+ returnWindowEndsAt: string | null;
5130
+ lines: Array<{
5131
+ orderLineId: string;
5132
+ productVariantId: string;
5133
+ productVariantName: string;
5134
+ productVariantSku: string;
5135
+ fulfilledQty: number;
5136
+ returnableQty: number;
5137
+ unitPriceWithTax: number;
5138
+ unitPriceWithTaxUnrounded: number;
5139
+ }>;
5140
+ };
5141
+ };
5142
+ export type ClaimPosReceiptMutationVariables = Exact<{
5143
+ token: Scalars['String']['input'];
5144
+ }>;
5145
+ export type ClaimPosReceiptMutation = {
5146
+ claimPosReceipt: {
5147
+ orderCode: string;
5148
+ alreadyYours: boolean;
5149
+ };
5150
+ };
4837
5151
  export type ProductReviewFragment = {
4838
5152
  id: string;
4839
5153
  rating: number | null;