@openmrp/sdk 0.20.0 → 0.22.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 (230) hide show
  1. package/CHANGELOG.md +11 -2
  2. package/README.md +1 -1
  3. package/client.js +1 -1
  4. package/client.mjs +1 -1
  5. package/package.json +1 -1
  6. package/resources/auth/api-keys/api-keys.d.mts +4 -4
  7. package/resources/auth/api-keys/api-keys.d.ts +4 -4
  8. package/resources/core/audit-events.d.mts +4 -4
  9. package/resources/core/audit-events.d.mts.map +1 -1
  10. package/resources/core/audit-events.d.ts +4 -4
  11. package/resources/core/audit-events.d.ts.map +1 -1
  12. package/resources/core/core.d.mts +2 -2
  13. package/resources/core/core.d.mts.map +1 -1
  14. package/resources/core/core.d.ts +2 -2
  15. package/resources/core/core.d.ts.map +1 -1
  16. package/resources/core/core.js.map +1 -1
  17. package/resources/core/core.mjs.map +1 -1
  18. package/resources/core/jobs.d.mts +1 -1
  19. package/resources/core/jobs.d.mts.map +1 -1
  20. package/resources/core/jobs.d.ts +1 -1
  21. package/resources/core/jobs.d.ts.map +1 -1
  22. package/resources/messaging/conversations/conversations.d.mts +3 -3
  23. package/resources/messaging/conversations/conversations.d.mts.map +1 -1
  24. package/resources/messaging/conversations/conversations.d.ts +3 -3
  25. package/resources/messaging/conversations/conversations.d.ts.map +1 -1
  26. package/resources/messaging/conversations/conversations.js.map +1 -1
  27. package/resources/messaging/conversations/conversations.mjs.map +1 -1
  28. package/resources/messaging/conversations/links.d.mts +2 -2
  29. package/resources/messaging/conversations/links.d.mts.map +1 -1
  30. package/resources/messaging/conversations/links.d.ts +2 -2
  31. package/resources/messaging/conversations/links.d.ts.map +1 -1
  32. package/resources/messaging/conversations/messages.d.mts +2 -2
  33. package/resources/messaging/conversations/messages.d.mts.map +1 -1
  34. package/resources/messaging/conversations/messages.d.ts +2 -2
  35. package/resources/messaging/conversations/messages.d.ts.map +1 -1
  36. package/resources/messaging/notifications/notifications.d.mts +2 -2
  37. package/resources/messaging/notifications/notifications.d.mts.map +1 -1
  38. package/resources/messaging/notifications/notifications.d.ts +2 -2
  39. package/resources/messaging/notifications/notifications.d.ts.map +1 -1
  40. package/resources/messaging/notifications/notifications.js.map +1 -1
  41. package/resources/messaging/notifications/notifications.mjs.map +1 -1
  42. package/resources/operations/index.d.mts +2 -0
  43. package/resources/operations/index.d.mts.map +1 -1
  44. package/resources/operations/index.d.ts +2 -0
  45. package/resources/operations/index.d.ts.map +1 -1
  46. package/resources/operations/index.js +15 -11
  47. package/resources/operations/index.js.map +1 -1
  48. package/resources/operations/index.mjs +2 -0
  49. package/resources/operations/index.mjs.map +1 -1
  50. package/resources/operations/inventory-change-logs/actions.d.mts +60 -0
  51. package/resources/operations/inventory-change-logs/actions.d.mts.map +1 -0
  52. package/resources/operations/inventory-change-logs/actions.d.ts +60 -0
  53. package/resources/operations/inventory-change-logs/actions.d.ts.map +1 -0
  54. package/resources/operations/inventory-change-logs/actions.js +30 -0
  55. package/resources/operations/inventory-change-logs/actions.js.map +1 -0
  56. package/resources/operations/inventory-change-logs/actions.mjs +26 -0
  57. package/resources/operations/inventory-change-logs/actions.mjs.map +1 -0
  58. package/resources/operations/inventory-change-logs/index.d.mts +3 -0
  59. package/resources/operations/inventory-change-logs/index.d.mts.map +1 -0
  60. package/resources/operations/inventory-change-logs/index.d.ts +3 -0
  61. package/resources/operations/inventory-change-logs/index.d.ts.map +1 -0
  62. package/resources/operations/inventory-change-logs/index.js +9 -0
  63. package/resources/operations/inventory-change-logs/index.js.map +1 -0
  64. package/resources/operations/inventory-change-logs/index.mjs +4 -0
  65. package/resources/operations/inventory-change-logs/index.mjs.map +1 -0
  66. package/resources/operations/inventory-change-logs/inventory-change-logs.d.mts +188 -0
  67. package/resources/operations/inventory-change-logs/inventory-change-logs.d.mts.map +1 -0
  68. package/resources/operations/inventory-change-logs/inventory-change-logs.d.ts +188 -0
  69. package/resources/operations/inventory-change-logs/inventory-change-logs.d.ts.map +1 -0
  70. package/resources/operations/inventory-change-logs/inventory-change-logs.js +55 -0
  71. package/resources/operations/inventory-change-logs/inventory-change-logs.js.map +1 -0
  72. package/resources/operations/inventory-change-logs/inventory-change-logs.mjs +50 -0
  73. package/resources/operations/inventory-change-logs/inventory-change-logs.mjs.map +1 -0
  74. package/resources/operations/inventory-change-logs.d.mts +2 -0
  75. package/resources/operations/inventory-change-logs.d.mts.map +1 -0
  76. package/resources/operations/inventory-change-logs.d.ts +2 -0
  77. package/resources/operations/inventory-change-logs.d.ts.map +1 -0
  78. package/resources/operations/inventory-change-logs.js +6 -0
  79. package/resources/operations/inventory-change-logs.js.map +1 -0
  80. package/resources/operations/inventory-change-logs.mjs +3 -0
  81. package/resources/operations/inventory-change-logs.mjs.map +1 -0
  82. package/resources/operations/operations.d.mts +8 -0
  83. package/resources/operations/operations.d.mts.map +1 -1
  84. package/resources/operations/operations.d.ts +8 -0
  85. package/resources/operations/operations.d.ts.map +1 -1
  86. package/resources/operations/operations.js +8 -0
  87. package/resources/operations/operations.js.map +1 -1
  88. package/resources/operations/operations.mjs +8 -0
  89. package/resources/operations/operations.mjs.map +1 -1
  90. package/resources/operations/picks/actions.d.mts +111 -0
  91. package/resources/operations/picks/actions.d.mts.map +1 -0
  92. package/resources/operations/picks/actions.d.ts +111 -0
  93. package/resources/operations/picks/actions.d.ts.map +1 -0
  94. package/resources/operations/picks/actions.js +93 -0
  95. package/resources/operations/picks/actions.js.map +1 -0
  96. package/resources/operations/picks/actions.mjs +89 -0
  97. package/resources/operations/picks/actions.mjs.map +1 -0
  98. package/resources/operations/picks/index.d.mts +4 -0
  99. package/resources/operations/picks/index.d.mts.map +1 -0
  100. package/resources/operations/picks/index.d.ts +4 -0
  101. package/resources/operations/picks/index.d.ts.map +1 -0
  102. package/resources/operations/picks/index.js +11 -0
  103. package/resources/operations/picks/index.js.map +1 -0
  104. package/resources/operations/picks/index.mjs +5 -0
  105. package/resources/operations/picks/index.mjs.map +1 -0
  106. package/resources/operations/picks/lines/actions.d.mts +65 -0
  107. package/resources/operations/picks/lines/actions.d.mts.map +1 -0
  108. package/resources/operations/picks/lines/actions.d.ts +65 -0
  109. package/resources/operations/picks/lines/actions.d.ts.map +1 -0
  110. package/resources/operations/picks/lines/actions.js +59 -0
  111. package/resources/operations/picks/lines/actions.js.map +1 -0
  112. package/resources/operations/picks/lines/actions.mjs +55 -0
  113. package/resources/operations/picks/lines/actions.mjs.map +1 -0
  114. package/resources/operations/picks/lines/index.d.mts +3 -0
  115. package/resources/operations/picks/lines/index.d.mts.map +1 -0
  116. package/resources/operations/picks/lines/index.d.ts +3 -0
  117. package/resources/operations/picks/lines/index.d.ts.map +1 -0
  118. package/resources/operations/picks/lines/index.js +9 -0
  119. package/resources/operations/picks/lines/index.js.map +1 -0
  120. package/resources/operations/picks/lines/index.mjs +4 -0
  121. package/resources/operations/picks/lines/index.mjs.map +1 -0
  122. package/resources/operations/picks/lines/lines.d.mts +70 -0
  123. package/resources/operations/picks/lines/lines.d.mts.map +1 -0
  124. package/resources/operations/picks/lines/lines.d.ts +70 -0
  125. package/resources/operations/picks/lines/lines.d.ts.map +1 -0
  126. package/resources/operations/picks/lines/lines.js +48 -0
  127. package/resources/operations/picks/lines/lines.js.map +1 -0
  128. package/resources/operations/picks/lines/lines.mjs +43 -0
  129. package/resources/operations/picks/lines/lines.mjs.map +1 -0
  130. package/resources/operations/picks/lines.d.mts +2 -0
  131. package/resources/operations/picks/lines.d.mts.map +1 -0
  132. package/resources/operations/picks/lines.d.ts +2 -0
  133. package/resources/operations/picks/lines.d.ts.map +1 -0
  134. package/resources/operations/picks/lines.js +6 -0
  135. package/resources/operations/picks/lines.js.map +1 -0
  136. package/resources/operations/picks/lines.mjs +3 -0
  137. package/resources/operations/picks/lines.mjs.map +1 -0
  138. package/resources/operations/picks/picks.d.mts +383 -0
  139. package/resources/operations/picks/picks.d.mts.map +1 -0
  140. package/resources/operations/picks/picks.d.ts +383 -0
  141. package/resources/operations/picks/picks.d.ts.map +1 -0
  142. package/resources/operations/picks/picks.js +57 -0
  143. package/resources/operations/picks/picks.js.map +1 -0
  144. package/resources/operations/picks/picks.mjs +52 -0
  145. package/resources/operations/picks/picks.mjs.map +1 -0
  146. package/resources/operations/picks.d.mts +2 -0
  147. package/resources/operations/picks.d.mts.map +1 -0
  148. package/resources/operations/picks.d.ts +2 -0
  149. package/resources/operations/picks.d.ts.map +1 -0
  150. package/resources/operations/picks.js +6 -0
  151. package/resources/operations/picks.js.map +1 -0
  152. package/resources/operations/picks.mjs +3 -0
  153. package/resources/operations/picks.mjs.map +1 -0
  154. package/resources/sales/account-prices/account-prices.d.mts +13 -0
  155. package/resources/sales/account-prices/account-prices.d.mts.map +1 -1
  156. package/resources/sales/account-prices/account-prices.d.ts +13 -0
  157. package/resources/sales/account-prices/account-prices.d.ts.map +1 -1
  158. package/resources/sales/account-prices/account-prices.js.map +1 -1
  159. package/resources/sales/account-prices/account-prices.mjs.map +1 -1
  160. package/resources/sales/customers/customers.d.mts +54 -0
  161. package/resources/sales/customers/customers.d.mts.map +1 -1
  162. package/resources/sales/customers/customers.d.ts +54 -0
  163. package/resources/sales/customers/customers.d.ts.map +1 -1
  164. package/resources/sales/customers/customers.js +2 -0
  165. package/resources/sales/customers/customers.js.map +1 -1
  166. package/resources/sales/customers/customers.mjs +2 -0
  167. package/resources/sales/customers/customers.mjs.map +1 -1
  168. package/resources/sales/index.d.mts +1 -1
  169. package/resources/sales/index.d.mts.map +1 -1
  170. package/resources/sales/index.d.ts +1 -1
  171. package/resources/sales/index.d.ts.map +1 -1
  172. package/resources/sales/index.js.map +1 -1
  173. package/resources/sales/index.mjs.map +1 -1
  174. package/resources/sales/sales-orders/actions.d.mts +12 -40
  175. package/resources/sales/sales-orders/actions.d.mts.map +1 -1
  176. package/resources/sales/sales-orders/actions.d.ts +12 -40
  177. package/resources/sales/sales-orders/actions.d.ts.map +1 -1
  178. package/resources/sales/sales-orders/index.d.mts +1 -1
  179. package/resources/sales/sales-orders/index.d.mts.map +1 -1
  180. package/resources/sales/sales-orders/index.d.ts +1 -1
  181. package/resources/sales/sales-orders/index.d.ts.map +1 -1
  182. package/resources/sales/sales-orders/index.js.map +1 -1
  183. package/resources/sales/sales-orders/index.mjs.map +1 -1
  184. package/resources/sales/sales-orders/sales-orders.d.mts +105 -63
  185. package/resources/sales/sales-orders/sales-orders.d.mts.map +1 -1
  186. package/resources/sales/sales-orders/sales-orders.d.ts +105 -63
  187. package/resources/sales/sales-orders/sales-orders.d.ts.map +1 -1
  188. package/resources/sales/sales-orders/sales-orders.js.map +1 -1
  189. package/resources/sales/sales-orders/sales-orders.mjs.map +1 -1
  190. package/resources/sales/sales.d.mts +2 -2
  191. package/resources/sales/sales.d.mts.map +1 -1
  192. package/resources/sales/sales.d.ts +2 -2
  193. package/resources/sales/sales.d.ts.map +1 -1
  194. package/resources/sales/sales.js.map +1 -1
  195. package/resources/sales/sales.mjs.map +1 -1
  196. package/src/client.ts +1 -1
  197. package/src/resources/auth/api-keys/api-keys.ts +4 -4
  198. package/src/resources/core/audit-events.ts +16 -4
  199. package/src/resources/core/core.ts +8 -2
  200. package/src/resources/core/jobs.ts +4 -1
  201. package/src/resources/messaging/conversations/conversations.ts +12 -3
  202. package/src/resources/messaging/conversations/links.ts +8 -2
  203. package/src/resources/messaging/conversations/messages.ts +8 -2
  204. package/src/resources/messaging/notifications/notifications.ts +8 -2
  205. package/src/resources/operations/index.ts +19 -0
  206. package/src/resources/operations/inventory-change-logs/actions.ts +73 -0
  207. package/src/resources/operations/inventory-change-logs/index.ts +10 -0
  208. package/src/resources/operations/inventory-change-logs/inventory-change-logs.ts +239 -0
  209. package/src/resources/operations/inventory-change-logs.ts +3 -0
  210. package/src/resources/operations/operations.ts +47 -0
  211. package/src/resources/operations/picks/actions.ts +131 -0
  212. package/src/resources/operations/picks/index.ts +16 -0
  213. package/src/resources/operations/picks/lines/actions.ts +78 -0
  214. package/src/resources/operations/picks/lines/index.ts +4 -0
  215. package/src/resources/operations/picks/lines/lines.ts +100 -0
  216. package/src/resources/operations/picks/lines.ts +3 -0
  217. package/src/resources/operations/picks/picks.ts +502 -0
  218. package/src/resources/operations/picks.ts +3 -0
  219. package/src/resources/sales/account-prices/account-prices.ts +14 -0
  220. package/src/resources/sales/customers/customers.ts +58 -0
  221. package/src/resources/sales/index.ts +1 -0
  222. package/src/resources/sales/sales-orders/actions.ts +12 -55
  223. package/src/resources/sales/sales-orders/index.ts +1 -0
  224. package/src/resources/sales/sales-orders/sales-orders.ts +124 -79
  225. package/src/resources/sales/sales.ts +2 -0
  226. package/src/version.ts +1 -1
  227. package/version.d.mts +1 -1
  228. package/version.d.ts +1 -1
  229. package/version.js +1 -1
  230. package/version.mjs +1 -1
@@ -409,73 +409,30 @@ export interface QuoteSalesOrderCommitmentRequest {
409
409
  */
410
410
  export interface QuoteSalesOrderCommitmentResponse {
411
411
  /**
412
- * Days the receiving and shipping calendars pulled the date back, beyond what
413
- * transit accounted for.
414
- */
415
- calendar_adjustment_days: number;
416
-
417
- /**
418
- * When freight leaving on the ship-by date would reach the customer: transit
419
- * walked forward from it and landed on a day their dock receives. Null whenever
420
- * `transit_days` is, since an arrival with no journey behind it would just be the
421
- * ship date wearing a different name.
412
+ * Commitment describes when a record is due to ship: what was asked for, what that
413
+ * resolved to, and which rule decided.
422
414
  *
423
- * Reported for every basis, including the ones that do not use transit to decide
424
- * the ship-by date. An order committed on a lead time has the same journey ahead
425
- * of it; it simply was not worked backwards from.
426
- */
427
- estimated_delivery_date: string | null;
428
-
429
- /**
430
- * Calendar days between issue and the ship-by date.
431
- */
432
- lead_time_days: number | null;
433
-
434
- /**
435
- * Which rule produced the date.
415
+ * It is a generic, reusable sub-resource shared by anything carrying a ship-by
416
+ * commitment a sales order, the pick that fulfills it, or a preview of an order
417
+ * that does not exist yet.
418
+ *
419
+ * The three inputs are alternative answers to the same question and at most one is
420
+ * ever set; `lead_time_source` reports which of them, or which level of the
421
+ * customer chain, produced the date. They are written flat on the create and
422
+ * update bodies, the way a carrier is written as `carrier_id` and read back under
423
+ * `freight`.
436
424
  */
437
- lead_time_source:
438
- | 'customer'
439
- | 'parent_customer'
440
- | 'account_group'
441
- | 'account'
442
- | 'manual'
443
- | 'order_lead_time'
444
- | 'order_ship_by'
445
- | null;
425
+ commitment: SalesOrdersAPI.Commitment | null;
446
426
 
447
427
  /**
448
428
  * Resource type identifier.
449
429
  */
450
430
  object: 'sales_order_commitment_quote';
451
431
 
452
- /**
453
- * That date at the plant's pickup cutoff — the moment freight would have to be
454
- * tendered by. Null when the shipping calendar carries no cutoff.
455
- */
456
- ship_by_cutoff_at: string | null;
457
-
458
- /**
459
- * The date the order would be due to ship, or null when no rule resolves one.
460
- */
461
- ship_by_date: string | null;
462
-
463
432
  /**
464
433
  * The derivation in order, one entry per rule that moved the date.
465
434
  */
466
435
  steps: Array<CommitmentQuoteStep>;
467
-
468
- /**
469
- * Days the carrier needs to cover the lane. Null when the lane has never been
470
- * quoted and the service level carries no default, or when no service level was
471
- * supplied to quote one on.
472
- */
473
- transit_days: number | null;
474
-
475
- /**
476
- * Where the transit estimate came from.
477
- */
478
- transit_source: 'carrier_lane' | 'service_level' | null;
479
436
  }
480
437
 
481
438
  /**
@@ -28,6 +28,7 @@ export {
28
28
  SalesOrders,
29
29
  type CheckoutSalesOrderRequest,
30
30
  type CheckoutSalesOrderResponse,
31
+ type Commitment,
31
32
  type ComputedRate,
32
33
  type CreateSalesOrderLineInput,
33
34
  type CreateSalesOrderRequest,
@@ -298,6 +298,117 @@ export interface CheckoutSalesOrderResponse {
298
298
  object: 'checkout_sales_order';
299
299
  }
300
300
 
301
+ /**
302
+ * Commitment describes when a record is due to ship: what was asked for, what that
303
+ * resolved to, and which rule decided.
304
+ *
305
+ * It is a generic, reusable sub-resource shared by anything carrying a ship-by
306
+ * commitment — a sales order, the pick that fulfills it, or a preview of an order
307
+ * that does not exist yet.
308
+ *
309
+ * The three inputs are alternative answers to the same question and at most one is
310
+ * ever set; `lead_time_source` reports which of them, or which level of the
311
+ * customer chain, produced the date. They are written flat on the create and
312
+ * update bodies, the way a carrier is written as `carrier_id` and read back under
313
+ * `freight`.
314
+ */
315
+ export interface Commitment {
316
+ /**
317
+ * Days the customer's receiving calendar and the plant's shipping calendar pulled
318
+ * the ship-by date back, beyond what carrier transit accounted for.
319
+ *
320
+ * Zero means every date along the way already fell on an open day. This is what
321
+ * explains a ship-by date that is earlier than transit alone would suggest.
322
+ */
323
+ calendar_adjustment_days: number | null;
324
+
325
+ /**
326
+ * When freight leaving on the ship-by date would reach the customer: transit
327
+ * walked forward from it and landed on a day their dock receives.
328
+ *
329
+ * Reported by the commitment preview, which is asked what a set of inputs would
330
+ * produce and so computes the arrival too. A record carries the commitment it was
331
+ * stamped with, not a projection, and leaves this null.
332
+ */
333
+ estimated_delivery_date: string | null;
334
+
335
+ /**
336
+ * Calendar days between issue and the ship-by date.
337
+ */
338
+ lead_time_days: number | null;
339
+
340
+ /**
341
+ * Days between issue and the ship-by date, set on this record alone in place of
342
+ * the customer's standing lead time.
343
+ */
344
+ lead_time_override_days: number | null;
345
+
346
+ /**
347
+ * Which rule produced the ship-by date.
348
+ */
349
+ lead_time_source:
350
+ | 'customer'
351
+ | 'parent_customer'
352
+ | 'account_group'
353
+ | 'account'
354
+ | 'manual'
355
+ | 'order_lead_time'
356
+ | 'order_ship_by'
357
+ | null;
358
+
359
+ /**
360
+ * Resource type identifier.
361
+ */
362
+ object: 'commitment';
363
+
364
+ /**
365
+ * Date delivery was promised to the customer, if one was committed.
366
+ */
367
+ promised_at: string | null;
368
+
369
+ /**
370
+ * When the record is contractually due to ship.
371
+ *
372
+ * Stamped at issue. With a promised delivery date, this is that date less the
373
+ * carrier's transit for the order's lane and less any day the customer cannot
374
+ * receive on — when the order has to leave to arrive when promised. Otherwise it
375
+ * comes from a lead time, whether the order's own or the one on the customer, its
376
+ * parent account, its account group, or the account.
377
+ *
378
+ * Always a day the plant actually ships on, whichever rule produced it, and
379
+ * carries the plant's pickup cutoff as its time of day when the shipping calendar
380
+ * sets one — the moment freight has to be tendered by, not just the day. Midnight
381
+ * UTC means no cutoff is configured rather than a deadline at midnight.
382
+ *
383
+ * Recomputed while the order is still open whenever something it was derived from
384
+ * moves — the basis above, or the carrier, service level, or ship-to address the
385
+ * transit was quoted on. Renegotiating a customer's standing lead time or adding a
386
+ * holiday to a calendar does not reach back into commitments already made. Cleared
387
+ * if the order is unissued.
388
+ */
389
+ ship_by_date: string | null;
390
+
391
+ /**
392
+ * The ship date pinned by hand, bypassing transit and the customer's receiving
393
+ * days.
394
+ */
395
+ ship_by_override_date: string | null;
396
+
397
+ /**
398
+ * Business days the carrier needs to cover this lane, subtracted from the promised
399
+ * delivery date to reach the ship-by date.
400
+ *
401
+ * Only set when a delivery date was promised and the lane could be priced. Without
402
+ * it the ship-by date falls back to the promised date itself.
403
+ */
404
+ transit_days: number | null;
405
+
406
+ /**
407
+ * Where the transit estimate came from.
408
+ */
409
+ transit_source: 'carrier_lane' | 'service_level' | null;
410
+ }
411
+
301
412
  /**
302
413
  * A rate calculated on demand rather than stored.
303
414
  *
@@ -948,13 +1059,20 @@ export interface SalesOrder {
948
1059
  bill_to_address: APIKeysAPI.Address | null;
949
1060
 
950
1061
  /**
951
- * Days the customer's receiving calendar and the plant's shipping calendar pulled
952
- * the ship-by date back, beyond what carrier transit accounted for.
1062
+ * Commitment describes when a record is due to ship: what was asked for, what that
1063
+ * resolved to, and which rule decided.
953
1064
  *
954
- * Zero means every date along the way already fell on an open day. This is what
955
- * explains a ship-by date that is earlier than transit alone would suggest.
1065
+ * It is a generic, reusable sub-resource shared by anything carrying a ship-by
1066
+ * commitment a sales order, the pick that fulfills it, or a preview of an order
1067
+ * that does not exist yet.
1068
+ *
1069
+ * The three inputs are alternative answers to the same question and at most one is
1070
+ * ever set; `lead_time_source` reports which of them, or which level of the
1071
+ * customer chain, produced the date. They are written flat on the create and
1072
+ * update bodies, the way a carrier is written as `carrier_id` and read back under
1073
+ * `freight`.
956
1074
  */
957
- calendar_adjustment_days: number | null;
1075
+ commitment: Commitment | null;
958
1076
 
959
1077
  /**
960
1078
  * When the order was fulfilled and closed.
@@ -1015,30 +1133,6 @@ export interface SalesOrder {
1015
1133
  */
1016
1134
  issued_at: string | null;
1017
1135
 
1018
- /**
1019
- * Calendar days between issue and the ship-by date.
1020
- */
1021
- lead_time_days: number | null;
1022
-
1023
- /**
1024
- * Days between issue and the ship-by date, set on this order alone in place of the
1025
- * customer's standing lead time.
1026
- */
1027
- lead_time_override_days: number | null;
1028
-
1029
- /**
1030
- * Which rule produced the ship-by date.
1031
- */
1032
- lead_time_source:
1033
- | 'customer'
1034
- | 'parent_customer'
1035
- | 'account_group'
1036
- | 'account'
1037
- | 'manual'
1038
- | 'order_lead_time'
1039
- | 'order_ship_by'
1040
- | null;
1041
-
1042
1136
  /**
1043
1137
  * Number of lines on this order.
1044
1138
  */
@@ -1098,11 +1192,6 @@ export interface SalesOrder {
1098
1192
  */
1099
1193
  priority: 'low' | 'normal' | 'high';
1100
1194
 
1101
- /**
1102
- * Date promised to the customer for delivery, if one was committed.
1103
- */
1104
- promised_at: string | null;
1105
-
1106
1195
  /**
1107
1196
  * The fulfillment records produced from a sales order.
1108
1197
  *
@@ -1117,37 +1206,6 @@ export interface SalesOrder {
1117
1206
  */
1118
1207
  sales_rep: RequestLogsAPI.Actor | null;
1119
1208
 
1120
- /**
1121
- * The ship-by date at the plant's pickup cutoff — the moment freight has to be
1122
- * tendered by, not just the day.
1123
- *
1124
- * Only set when the account's shipping calendar carries a cutoff time.
1125
- */
1126
- ship_by_cutoff_at: string | null;
1127
-
1128
- /**
1129
- * Date this order is contractually due to ship.
1130
- *
1131
- * Stamped when the order is issued. With a promised delivery date, this is that
1132
- * date less the carrier's transit for the order's lane and less any day the
1133
- * customer cannot receive on — the day the order has to leave to arrive when
1134
- * promised. Otherwise it comes from a lead time, whether this order's own or the
1135
- * one on the customer, its parent account, its account group, or the account.
1136
- *
1137
- * Always a day the plant actually ships on, whichever rule produced it.
1138
- *
1139
- * It is not recomputed afterwards, so neither renegotiating a customer's lead
1140
- * time, nor a later carrier estimate, nor a holiday added to a calendar moves
1141
- * commitments already made. Cleared if the order is unissued.
1142
- */
1143
- ship_by_date: string | null;
1144
-
1145
- /**
1146
- * The ship date pinned on this order, bypassing transit and the customer's
1147
- * receiving days.
1148
- */
1149
- ship_by_override_date: string | null;
1150
-
1151
1209
  /**
1152
1210
  * A saved address that can be used for billing and shipping on sales orders,
1153
1211
  * invoices, and shipments.
@@ -1186,20 +1244,6 @@ export interface SalesOrder {
1186
1244
  */
1187
1245
  totals: SalesOrderTotals | null;
1188
1246
 
1189
- /**
1190
- * Business days the carrier needs to cover this order's lane, subtracted from the
1191
- * promised delivery date to reach the ship-by date.
1192
- *
1193
- * Only set when a delivery date was promised and the lane could be priced. Without
1194
- * it the ship-by date falls back to the promised date itself.
1195
- */
1196
- transit_days: number | null;
1197
-
1198
- /**
1199
- * Where the transit estimate came from.
1200
- */
1201
- transit_source: 'carrier_lane' | 'service_level' | null;
1202
-
1203
1247
  /**
1204
1248
  * Last updated timestamp.
1205
1249
  */
@@ -2195,6 +2239,7 @@ export declare namespace SalesOrders {
2195
2239
  export {
2196
2240
  type CheckoutSalesOrderRequest as CheckoutSalesOrderRequest,
2197
2241
  type CheckoutSalesOrderResponse as CheckoutSalesOrderResponse,
2242
+ type Commitment as Commitment,
2198
2243
  type ComputedRate as ComputedRate,
2199
2244
  type CreateSalesOrderLineInput as CreateSalesOrderLineInput,
2200
2245
  type CreateSalesOrderRequest as CreateSalesOrderRequest,
@@ -108,6 +108,7 @@ import * as SalesOrdersAPI from './sales-orders/sales-orders';
108
108
  import {
109
109
  CheckoutSalesOrderRequest,
110
110
  CheckoutSalesOrderResponse,
111
+ Commitment,
111
112
  ComputedRate,
112
113
  CreateSalesOrderLineInput,
113
114
  CreateSalesOrderRequest,
@@ -265,6 +266,7 @@ export declare namespace Sales {
265
266
  SalesOrders as SalesOrders,
266
267
  type CheckoutSalesOrderRequest as CheckoutSalesOrderRequest,
267
268
  type CheckoutSalesOrderResponse as CheckoutSalesOrderResponse,
269
+ type Commitment as Commitment,
268
270
  type ComputedRate as ComputedRate,
269
271
  type CreateSalesOrderLineInput as CreateSalesOrderLineInput,
270
272
  type CreateSalesOrderRequest as CreateSalesOrderRequest,
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.20.0'; // x-release-please-version
1
+ export const VERSION = '0.22.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.20.0";
1
+ export declare const VERSION = "0.22.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.20.0";
1
+ export declare const VERSION = "0.22.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '0.20.0'; // x-release-please-version
4
+ exports.VERSION = '0.22.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.20.0'; // x-release-please-version
1
+ export const VERSION = '0.22.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map