@augno/sdk 0.14.0 → 0.15.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (223) hide show
  1. package/CHANGELOG.md +3 -3
  2. package/package.json +1 -1
  3. package/resources/catalog/product-lines/product-lines.d.mts +53 -0
  4. package/resources/catalog/product-lines/product-lines.d.mts.map +1 -1
  5. package/resources/catalog/product-lines/product-lines.d.ts +53 -0
  6. package/resources/catalog/product-lines/product-lines.d.ts.map +1 -1
  7. package/resources/catalog/product-lines/product-lines.js.map +1 -1
  8. package/resources/catalog/product-lines/product-lines.mjs.map +1 -1
  9. package/resources/core/analytics.d.mts +252 -1
  10. package/resources/core/analytics.d.mts.map +1 -1
  11. package/resources/core/analytics.d.ts +252 -1
  12. package/resources/core/analytics.d.ts.map +1 -1
  13. package/resources/core/analytics.js +38 -0
  14. package/resources/core/analytics.js.map +1 -1
  15. package/resources/core/analytics.mjs +38 -0
  16. package/resources/core/analytics.mjs.map +1 -1
  17. package/resources/core/audit-events.d.mts +4 -4
  18. package/resources/core/audit-events.d.mts.map +1 -1
  19. package/resources/core/audit-events.d.ts +4 -4
  20. package/resources/core/audit-events.d.ts.map +1 -1
  21. package/resources/core/core.d.mts +4 -4
  22. package/resources/core/core.d.mts.map +1 -1
  23. package/resources/core/core.d.ts +4 -4
  24. package/resources/core/core.d.ts.map +1 -1
  25. package/resources/core/core.js.map +1 -1
  26. package/resources/core/core.mjs.map +1 -1
  27. package/resources/core/index.d.mts +1 -1
  28. package/resources/core/index.d.mts.map +1 -1
  29. package/resources/core/index.d.ts +1 -1
  30. package/resources/core/index.d.ts.map +1 -1
  31. package/resources/core/index.js.map +1 -1
  32. package/resources/core/index.mjs.map +1 -1
  33. package/resources/messaging/conversations/conversations.d.mts +3 -3
  34. package/resources/messaging/conversations/conversations.d.mts.map +1 -1
  35. package/resources/messaging/conversations/conversations.d.ts +3 -3
  36. package/resources/messaging/conversations/conversations.d.ts.map +1 -1
  37. package/resources/messaging/conversations/conversations.js.map +1 -1
  38. package/resources/messaging/conversations/conversations.mjs.map +1 -1
  39. package/resources/messaging/conversations/links.d.mts +2 -2
  40. package/resources/messaging/conversations/links.d.mts.map +1 -1
  41. package/resources/messaging/conversations/links.d.ts +2 -2
  42. package/resources/messaging/conversations/links.d.ts.map +1 -1
  43. package/resources/messaging/conversations/messages.d.mts +2 -2
  44. package/resources/messaging/conversations/messages.d.mts.map +1 -1
  45. package/resources/messaging/conversations/messages.d.ts +2 -2
  46. package/resources/messaging/conversations/messages.d.ts.map +1 -1
  47. package/resources/messaging/notifications/notifications.d.mts +2 -2
  48. package/resources/messaging/notifications/notifications.d.mts.map +1 -1
  49. package/resources/messaging/notifications/notifications.d.ts +2 -2
  50. package/resources/messaging/notifications/notifications.d.ts.map +1 -1
  51. package/resources/messaging/notifications/notifications.js.map +1 -1
  52. package/resources/messaging/notifications/notifications.mjs.map +1 -1
  53. package/resources/operations/carriers/service-levels.d.mts +37 -0
  54. package/resources/operations/carriers/service-levels.d.mts.map +1 -1
  55. package/resources/operations/carriers/service-levels.d.ts +37 -0
  56. package/resources/operations/carriers/service-levels.d.ts.map +1 -1
  57. package/resources/operations/carriers/service-levels.js +1 -0
  58. package/resources/operations/carriers/service-levels.js.map +1 -1
  59. package/resources/operations/carriers/service-levels.mjs +1 -0
  60. package/resources/operations/carriers/service-levels.mjs.map +1 -1
  61. package/resources/operations/fulfillment-recommendations/actions.d.mts +59 -0
  62. package/resources/operations/fulfillment-recommendations/actions.d.mts.map +1 -0
  63. package/resources/operations/fulfillment-recommendations/actions.d.ts +59 -0
  64. package/resources/operations/fulfillment-recommendations/actions.d.ts.map +1 -0
  65. package/resources/operations/fulfillment-recommendations/actions.js +40 -0
  66. package/resources/operations/fulfillment-recommendations/actions.js.map +1 -0
  67. package/resources/operations/fulfillment-recommendations/actions.mjs +36 -0
  68. package/resources/operations/fulfillment-recommendations/actions.mjs.map +1 -0
  69. package/resources/operations/fulfillment-recommendations/fulfillment-recommendations.d.mts +165 -0
  70. package/resources/operations/fulfillment-recommendations/fulfillment-recommendations.d.mts.map +1 -0
  71. package/resources/operations/fulfillment-recommendations/fulfillment-recommendations.d.ts +165 -0
  72. package/resources/operations/fulfillment-recommendations/fulfillment-recommendations.d.ts.map +1 -0
  73. package/resources/operations/fulfillment-recommendations/fulfillment-recommendations.js +52 -0
  74. package/resources/operations/fulfillment-recommendations/fulfillment-recommendations.js.map +1 -0
  75. package/resources/operations/fulfillment-recommendations/fulfillment-recommendations.mjs +47 -0
  76. package/resources/operations/fulfillment-recommendations/fulfillment-recommendations.mjs.map +1 -0
  77. package/resources/operations/fulfillment-recommendations/index.d.mts +3 -0
  78. package/resources/operations/fulfillment-recommendations/index.d.mts.map +1 -0
  79. package/resources/operations/fulfillment-recommendations/index.d.ts +3 -0
  80. package/resources/operations/fulfillment-recommendations/index.d.ts.map +1 -0
  81. package/resources/operations/fulfillment-recommendations/index.js +9 -0
  82. package/resources/operations/fulfillment-recommendations/index.js.map +1 -0
  83. package/resources/operations/fulfillment-recommendations/index.mjs +4 -0
  84. package/resources/operations/fulfillment-recommendations/index.mjs.map +1 -0
  85. package/resources/operations/fulfillment-recommendations.d.mts +2 -0
  86. package/resources/operations/fulfillment-recommendations.d.mts.map +1 -0
  87. package/resources/operations/fulfillment-recommendations.d.ts +2 -0
  88. package/resources/operations/fulfillment-recommendations.d.ts.map +1 -0
  89. package/resources/operations/fulfillment-recommendations.js +6 -0
  90. package/resources/operations/fulfillment-recommendations.js.map +1 -0
  91. package/resources/operations/fulfillment-recommendations.mjs +3 -0
  92. package/resources/operations/fulfillment-recommendations.mjs.map +1 -0
  93. package/resources/operations/index.d.mts +2 -1
  94. package/resources/operations/index.d.mts.map +1 -1
  95. package/resources/operations/index.d.ts +2 -1
  96. package/resources/operations/index.d.ts.map +1 -1
  97. package/resources/operations/index.js +11 -9
  98. package/resources/operations/index.js.map +1 -1
  99. package/resources/operations/index.mjs +1 -0
  100. package/resources/operations/index.mjs.map +1 -1
  101. package/resources/operations/operations.d.mts +6 -2
  102. package/resources/operations/operations.d.mts.map +1 -1
  103. package/resources/operations/operations.d.ts +6 -2
  104. package/resources/operations/operations.d.ts.map +1 -1
  105. package/resources/operations/operations.js +4 -0
  106. package/resources/operations/operations.js.map +1 -1
  107. package/resources/operations/operations.mjs +4 -0
  108. package/resources/operations/operations.mjs.map +1 -1
  109. package/resources/operations/production-schedule-settings/index.d.mts +1 -0
  110. package/resources/operations/production-schedule-settings/index.d.mts.map +1 -1
  111. package/resources/operations/production-schedule-settings/index.d.ts +1 -0
  112. package/resources/operations/production-schedule-settings/index.d.ts.map +1 -1
  113. package/resources/operations/production-schedule-settings/index.js +3 -1
  114. package/resources/operations/production-schedule-settings/index.js.map +1 -1
  115. package/resources/operations/production-schedule-settings/index.mjs +1 -0
  116. package/resources/operations/production-schedule-settings/index.mjs.map +1 -1
  117. package/resources/operations/production-schedule-settings/items.d.mts +228 -0
  118. package/resources/operations/production-schedule-settings/items.d.mts.map +1 -0
  119. package/resources/operations/production-schedule-settings/items.d.ts +228 -0
  120. package/resources/operations/production-schedule-settings/items.d.ts.map +1 -0
  121. package/resources/operations/production-schedule-settings/items.js +109 -0
  122. package/resources/operations/production-schedule-settings/items.js.map +1 -0
  123. package/resources/operations/production-schedule-settings/items.mjs +105 -0
  124. package/resources/operations/production-schedule-settings/items.mjs.map +1 -0
  125. package/resources/operations/production-schedule-settings/production-schedule-settings.d.mts +60 -0
  126. package/resources/operations/production-schedule-settings/production-schedule-settings.d.mts.map +1 -1
  127. package/resources/operations/production-schedule-settings/production-schedule-settings.d.ts +60 -0
  128. package/resources/operations/production-schedule-settings/production-schedule-settings.d.ts.map +1 -1
  129. package/resources/operations/production-schedule-settings/production-schedule-settings.js +6 -0
  130. package/resources/operations/production-schedule-settings/production-schedule-settings.js.map +1 -1
  131. package/resources/operations/production-schedule-settings/production-schedule-settings.mjs +6 -0
  132. package/resources/operations/production-schedule-settings/production-schedule-settings.mjs.map +1 -1
  133. package/resources/operations/production-schedules/actions.d.mts +117 -1
  134. package/resources/operations/production-schedules/actions.d.mts.map +1 -1
  135. package/resources/operations/production-schedules/actions.d.ts +117 -1
  136. package/resources/operations/production-schedules/actions.d.ts.map +1 -1
  137. package/resources/operations/production-schedules/actions.js +34 -0
  138. package/resources/operations/production-schedules/actions.js.map +1 -1
  139. package/resources/operations/production-schedules/actions.mjs +34 -0
  140. package/resources/operations/production-schedules/actions.mjs.map +1 -1
  141. package/resources/operations/production-schedules/index.d.mts +2 -2
  142. package/resources/operations/production-schedules/index.d.mts.map +1 -1
  143. package/resources/operations/production-schedules/index.d.ts +2 -2
  144. package/resources/operations/production-schedules/index.d.ts.map +1 -1
  145. package/resources/operations/production-schedules/index.js.map +1 -1
  146. package/resources/operations/production-schedules/index.mjs.map +1 -1
  147. package/resources/operations/production-schedules/production-schedules.d.mts +260 -3
  148. package/resources/operations/production-schedules/production-schedules.d.mts.map +1 -1
  149. package/resources/operations/production-schedules/production-schedules.d.ts +260 -3
  150. package/resources/operations/production-schedules/production-schedules.d.ts.map +1 -1
  151. package/resources/operations/production-schedules/production-schedules.js +29 -0
  152. package/resources/operations/production-schedules/production-schedules.js.map +1 -1
  153. package/resources/operations/production-schedules/production-schedules.mjs +29 -0
  154. package/resources/operations/production-schedules/production-schedules.mjs.map +1 -1
  155. package/resources/sales/account-groups.d.mts +27 -0
  156. package/resources/sales/account-groups.d.mts.map +1 -1
  157. package/resources/sales/account-groups.d.ts +27 -0
  158. package/resources/sales/account-groups.d.ts.map +1 -1
  159. package/resources/sales/customers/customers.d.mts +108 -1
  160. package/resources/sales/customers/customers.d.mts.map +1 -1
  161. package/resources/sales/customers/customers.d.ts +108 -1
  162. package/resources/sales/customers/customers.d.ts.map +1 -1
  163. package/resources/sales/customers/customers.js +27 -0
  164. package/resources/sales/customers/customers.js.map +1 -1
  165. package/resources/sales/customers/customers.mjs +27 -0
  166. package/resources/sales/customers/customers.mjs.map +1 -1
  167. package/resources/sales/customers/index.d.mts +1 -1
  168. package/resources/sales/customers/index.d.mts.map +1 -1
  169. package/resources/sales/customers/index.d.ts +1 -1
  170. package/resources/sales/customers/index.d.ts.map +1 -1
  171. package/resources/sales/customers/index.js.map +1 -1
  172. package/resources/sales/customers/index.mjs.map +1 -1
  173. package/resources/sales/index.d.mts +1 -1
  174. package/resources/sales/index.d.mts.map +1 -1
  175. package/resources/sales/index.d.ts +1 -1
  176. package/resources/sales/index.d.ts.map +1 -1
  177. package/resources/sales/index.js.map +1 -1
  178. package/resources/sales/index.mjs.map +1 -1
  179. package/resources/sales/sales-orders/sales-orders.d.mts +51 -0
  180. package/resources/sales/sales-orders/sales-orders.d.mts.map +1 -1
  181. package/resources/sales/sales-orders/sales-orders.d.ts +51 -0
  182. package/resources/sales/sales-orders/sales-orders.d.ts.map +1 -1
  183. package/resources/sales/sales-orders/sales-orders.js.map +1 -1
  184. package/resources/sales/sales-orders/sales-orders.mjs.map +1 -1
  185. package/resources/sales/sales.d.mts +2 -2
  186. package/resources/sales/sales.d.mts.map +1 -1
  187. package/resources/sales/sales.d.ts +2 -2
  188. package/resources/sales/sales.d.ts.map +1 -1
  189. package/resources/sales/sales.js.map +1 -1
  190. package/resources/sales/sales.mjs.map +1 -1
  191. package/src/resources/catalog/product-lines/product-lines.ts +58 -0
  192. package/src/resources/core/analytics.ts +300 -0
  193. package/src/resources/core/audit-events.ts +40 -0
  194. package/src/resources/core/core.ts +34 -0
  195. package/src/resources/core/index.ts +7 -0
  196. package/src/resources/messaging/conversations/conversations.ts +30 -0
  197. package/src/resources/messaging/conversations/links.ts +20 -0
  198. package/src/resources/messaging/conversations/messages.ts +20 -0
  199. package/src/resources/messaging/notifications/notifications.ts +20 -0
  200. package/src/resources/operations/carriers/service-levels.ts +41 -0
  201. package/src/resources/operations/fulfillment-recommendations/actions.ts +75 -0
  202. package/src/resources/operations/fulfillment-recommendations/fulfillment-recommendations.ts +206 -0
  203. package/src/resources/operations/fulfillment-recommendations/index.ts +8 -0
  204. package/src/resources/operations/fulfillment-recommendations.ts +3 -0
  205. package/src/resources/operations/index.ts +11 -0
  206. package/src/resources/operations/operations.ts +27 -0
  207. package/src/resources/operations/production-schedule-settings/index.ts +8 -0
  208. package/src/resources/operations/production-schedule-settings/items.ts +273 -0
  209. package/src/resources/operations/production-schedule-settings/production-schedule-settings.ts +82 -0
  210. package/src/resources/operations/production-schedules/actions.ts +144 -0
  211. package/src/resources/operations/production-schedules/index.ts +9 -0
  212. package/src/resources/operations/production-schedules/production-schedules.ts +310 -0
  213. package/src/resources/sales/account-groups.ts +32 -0
  214. package/src/resources/sales/customers/customers.ts +122 -0
  215. package/src/resources/sales/customers/index.ts +1 -0
  216. package/src/resources/sales/index.ts +1 -0
  217. package/src/resources/sales/sales-orders/sales-orders.ts +59 -0
  218. package/src/resources/sales/sales.ts +2 -0
  219. package/src/version.ts +1 -1
  220. package/version.d.mts +1 -1
  221. package/version.d.ts +1 -1
  222. package/version.js +1 -1
  223. package/version.mjs +1 -1
@@ -574,7 +574,16 @@ export interface CreateConversationRequest {
574
574
  | 'production_schedule_derived_line'
575
575
  | 'production_schedule_settings'
576
576
  | 'production_schedule_resource_setting'
577
+ | 'production_schedule_item_setting'
578
+ | 'fulfillment_recommendation'
579
+ | 'analyze_delivery_performance_response'
580
+ | 'delivery_performance'
581
+ | 'delivery_backlog_bucket'
582
+ | 'schedule_order_coverage'
583
+ | 'schedule_order_coverage_line'
584
+ | 'promise_date_quote'
577
585
  | 'schedule_deviation_type'
586
+ | 'schedule_at_risk_order'
578
587
  | 'production_schedule_finished_policy'
579
588
  | 'production_schedule_week_release'
580
589
  | 'production_schedule_week_release_preview'
@@ -647,6 +656,7 @@ export interface CreateConversationRequest {
647
656
  | 'customer_contact_info'
648
657
  | 'customer_freight_preferences'
649
658
  | 'customer_defaults'
659
+ | 'customer_lead_time'
650
660
  | 'customer_notification_preferences'
651
661
  | 'order_notification_recipient'
652
662
  | 'order_discount'
@@ -1405,7 +1415,16 @@ export interface ConversationCreateParams {
1405
1415
  | 'production_schedule_derived_line'
1406
1416
  | 'production_schedule_settings'
1407
1417
  | 'production_schedule_resource_setting'
1418
+ | 'production_schedule_item_setting'
1419
+ | 'fulfillment_recommendation'
1420
+ | 'analyze_delivery_performance_response'
1421
+ | 'delivery_performance'
1422
+ | 'delivery_backlog_bucket'
1423
+ | 'schedule_order_coverage'
1424
+ | 'schedule_order_coverage_line'
1425
+ | 'promise_date_quote'
1408
1426
  | 'schedule_deviation_type'
1427
+ | 'schedule_at_risk_order'
1409
1428
  | 'production_schedule_finished_policy'
1410
1429
  | 'production_schedule_week_release'
1411
1430
  | 'production_schedule_week_release_preview'
@@ -1478,6 +1497,7 @@ export interface ConversationCreateParams {
1478
1497
  | 'customer_contact_info'
1479
1498
  | 'customer_freight_preferences'
1480
1499
  | 'customer_defaults'
1500
+ | 'customer_lead_time'
1481
1501
  | 'customer_notification_preferences'
1482
1502
  | 'order_notification_recipient'
1483
1503
  | 'order_discount'
@@ -1765,7 +1785,16 @@ export interface ConversationListParams {
1765
1785
  | 'production_schedule_derived_line'
1766
1786
  | 'production_schedule_settings'
1767
1787
  | 'production_schedule_resource_setting'
1788
+ | 'production_schedule_item_setting'
1789
+ | 'fulfillment_recommendation'
1790
+ | 'analyze_delivery_performance_response'
1791
+ | 'delivery_performance'
1792
+ | 'delivery_backlog_bucket'
1793
+ | 'schedule_order_coverage'
1794
+ | 'schedule_order_coverage_line'
1795
+ | 'promise_date_quote'
1768
1796
  | 'schedule_deviation_type'
1797
+ | 'schedule_at_risk_order'
1769
1798
  | 'production_schedule_finished_policy'
1770
1799
  | 'production_schedule_week_release'
1771
1800
  | 'production_schedule_week_release_preview'
@@ -1838,6 +1867,7 @@ export interface ConversationListParams {
1838
1867
  | 'customer_contact_info'
1839
1868
  | 'customer_freight_preferences'
1840
1869
  | 'customer_defaults'
1870
+ | 'customer_lead_time'
1841
1871
  | 'customer_notification_preferences'
1842
1872
  | 'order_notification_recipient'
1843
1873
  | 'order_discount'
@@ -208,7 +208,16 @@ export interface AddConversationLinkRequest {
208
208
  | 'production_schedule_derived_line'
209
209
  | 'production_schedule_settings'
210
210
  | 'production_schedule_resource_setting'
211
+ | 'production_schedule_item_setting'
212
+ | 'fulfillment_recommendation'
213
+ | 'analyze_delivery_performance_response'
214
+ | 'delivery_performance'
215
+ | 'delivery_backlog_bucket'
216
+ | 'schedule_order_coverage'
217
+ | 'schedule_order_coverage_line'
218
+ | 'promise_date_quote'
211
219
  | 'schedule_deviation_type'
220
+ | 'schedule_at_risk_order'
212
221
  | 'production_schedule_finished_policy'
213
222
  | 'production_schedule_week_release'
214
223
  | 'production_schedule_week_release_preview'
@@ -281,6 +290,7 @@ export interface AddConversationLinkRequest {
281
290
  | 'customer_contact_info'
282
291
  | 'customer_freight_preferences'
283
292
  | 'customer_defaults'
293
+ | 'customer_lead_time'
284
294
  | 'customer_notification_preferences'
285
295
  | 'order_notification_recipient'
286
296
  | 'order_discount'
@@ -562,7 +572,16 @@ export interface LinkCreateParams {
562
572
  | 'production_schedule_derived_line'
563
573
  | 'production_schedule_settings'
564
574
  | 'production_schedule_resource_setting'
575
+ | 'production_schedule_item_setting'
576
+ | 'fulfillment_recommendation'
577
+ | 'analyze_delivery_performance_response'
578
+ | 'delivery_performance'
579
+ | 'delivery_backlog_bucket'
580
+ | 'schedule_order_coverage'
581
+ | 'schedule_order_coverage_line'
582
+ | 'promise_date_quote'
565
583
  | 'schedule_deviation_type'
584
+ | 'schedule_at_risk_order'
566
585
  | 'production_schedule_finished_policy'
567
586
  | 'production_schedule_week_release'
568
587
  | 'production_schedule_week_release_preview'
@@ -635,6 +654,7 @@ export interface LinkCreateParams {
635
654
  | 'customer_contact_info'
636
655
  | 'customer_freight_preferences'
637
656
  | 'customer_defaults'
657
+ | 'customer_lead_time'
638
658
  | 'customer_notification_preferences'
639
659
  | 'order_notification_recipient'
640
660
  | 'order_discount'
@@ -359,7 +359,16 @@ export interface SendMessageRequest {
359
359
  | 'production_schedule_derived_line'
360
360
  | 'production_schedule_settings'
361
361
  | 'production_schedule_resource_setting'
362
+ | 'production_schedule_item_setting'
363
+ | 'fulfillment_recommendation'
364
+ | 'analyze_delivery_performance_response'
365
+ | 'delivery_performance'
366
+ | 'delivery_backlog_bucket'
367
+ | 'schedule_order_coverage'
368
+ | 'schedule_order_coverage_line'
369
+ | 'promise_date_quote'
362
370
  | 'schedule_deviation_type'
371
+ | 'schedule_at_risk_order'
363
372
  | 'production_schedule_finished_policy'
364
373
  | 'production_schedule_week_release'
365
374
  | 'production_schedule_week_release_preview'
@@ -432,6 +441,7 @@ export interface SendMessageRequest {
432
441
  | 'customer_contact_info'
433
442
  | 'customer_freight_preferences'
434
443
  | 'customer_defaults'
444
+ | 'customer_lead_time'
435
445
  | 'customer_notification_preferences'
436
446
  | 'order_notification_recipient'
437
447
  | 'order_discount'
@@ -776,7 +786,16 @@ export interface MessageCreateParams {
776
786
  | 'production_schedule_derived_line'
777
787
  | 'production_schedule_settings'
778
788
  | 'production_schedule_resource_setting'
789
+ | 'production_schedule_item_setting'
790
+ | 'fulfillment_recommendation'
791
+ | 'analyze_delivery_performance_response'
792
+ | 'delivery_performance'
793
+ | 'delivery_backlog_bucket'
794
+ | 'schedule_order_coverage'
795
+ | 'schedule_order_coverage_line'
796
+ | 'promise_date_quote'
779
797
  | 'schedule_deviation_type'
798
+ | 'schedule_at_risk_order'
780
799
  | 'production_schedule_finished_policy'
781
800
  | 'production_schedule_week_release'
782
801
  | 'production_schedule_week_release_preview'
@@ -849,6 +868,7 @@ export interface MessageCreateParams {
849
868
  | 'customer_contact_info'
850
869
  | 'customer_freight_preferences'
851
870
  | 'customer_defaults'
871
+ | 'customer_lead_time'
852
872
  | 'customer_notification_preferences'
853
873
  | 'order_notification_recipient'
854
874
  | 'order_discount'
@@ -589,7 +589,16 @@ export interface SendNotificationRequest {
589
589
  | 'production_schedule_derived_line'
590
590
  | 'production_schedule_settings'
591
591
  | 'production_schedule_resource_setting'
592
+ | 'production_schedule_item_setting'
593
+ | 'fulfillment_recommendation'
594
+ | 'analyze_delivery_performance_response'
595
+ | 'delivery_performance'
596
+ | 'delivery_backlog_bucket'
597
+ | 'schedule_order_coverage'
598
+ | 'schedule_order_coverage_line'
599
+ | 'promise_date_quote'
592
600
  | 'schedule_deviation_type'
601
+ | 'schedule_at_risk_order'
593
602
  | 'production_schedule_finished_policy'
594
603
  | 'production_schedule_week_release'
595
604
  | 'production_schedule_week_release_preview'
@@ -662,6 +671,7 @@ export interface SendNotificationRequest {
662
671
  | 'customer_contact_info'
663
672
  | 'customer_freight_preferences'
664
673
  | 'customer_defaults'
674
+ | 'customer_lead_time'
665
675
  | 'customer_notification_preferences'
666
676
  | 'order_notification_recipient'
667
677
  | 'order_discount'
@@ -919,7 +929,16 @@ export interface NotificationCreateParams {
919
929
  | 'production_schedule_derived_line'
920
930
  | 'production_schedule_settings'
921
931
  | 'production_schedule_resource_setting'
932
+ | 'production_schedule_item_setting'
933
+ | 'fulfillment_recommendation'
934
+ | 'analyze_delivery_performance_response'
935
+ | 'delivery_performance'
936
+ | 'delivery_backlog_bucket'
937
+ | 'schedule_order_coverage'
938
+ | 'schedule_order_coverage_line'
939
+ | 'promise_date_quote'
922
940
  | 'schedule_deviation_type'
941
+ | 'schedule_at_risk_order'
923
942
  | 'production_schedule_finished_policy'
924
943
  | 'production_schedule_week_release'
925
944
  | 'production_schedule_week_release_preview'
@@ -992,6 +1011,7 @@ export interface NotificationCreateParams {
992
1011
  | 'customer_contact_info'
993
1012
  | 'customer_freight_preferences'
994
1013
  | 'customer_defaults'
1014
+ | 'customer_lead_time'
995
1015
  | 'customer_notification_preferences'
996
1016
  | 'order_notification_recipient'
997
1017
  | 'order_discount'
@@ -81,6 +81,7 @@ export class ServiceLevels extends APIResource {
81
81
  * is_default: false,
82
82
  * name: 'Ground Shipping',
83
83
  * customer_portal_visibility: 'visible',
84
+ * default_transit_days: 3,
84
85
  * },
85
86
  * );
86
87
  * ```
@@ -195,6 +196,16 @@ export interface CreateServiceLevelRequest {
195
196
  * customer portal.
196
197
  */
197
198
  customer_portal_visibility?: 'visible' | 'hidden';
199
+
200
+ /**
201
+ * Business days this service typically takes in transit, used to work an order's
202
+ * ship-by date back from a promised delivery date.
203
+ *
204
+ * A fallback: when a carrier can rate the lane, the transit it quotes is used
205
+ * instead. Leave unset for carriers that can be rated, and set it for those that
206
+ * cannot (freight, will-call), where it is the only transit the system will have.
207
+ */
208
+ default_transit_days?: number;
198
209
  }
199
210
 
200
211
  /**
@@ -217,6 +228,16 @@ export interface UpdateServiceLevelRequest {
217
228
  */
218
229
  customer_portal_visibility?: 'visible' | 'hidden';
219
230
 
231
+ /**
232
+ * Business days this service typically takes in transit, used to work an order's
233
+ * ship-by date back from a promised delivery date.
234
+ *
235
+ * A fallback: when a carrier can rate the lane, the transit it quotes is used
236
+ * instead. Set to null to remove it, which leaves transit unknown for lanes the
237
+ * carrier cannot rate.
238
+ */
239
+ default_transit_days?: number | null;
240
+
220
241
  /**
221
242
  * Whether this is the carrier's default service level, pre-selected when the
222
243
  * carrier is chosen.
@@ -313,6 +334,16 @@ export interface ServiceLevelCreateParams {
313
334
  * in the customer portal.
314
335
  */
315
336
  customer_portal_visibility?: 'visible' | 'hidden';
337
+
338
+ /**
339
+ * Body param: Business days this service typically takes in transit, used to work
340
+ * an order's ship-by date back from a promised delivery date.
341
+ *
342
+ * A fallback: when a carrier can rate the lane, the transit it quotes is used
343
+ * instead. Leave unset for carriers that can be rated, and set it for those that
344
+ * cannot (freight, will-call), where it is the only transit the system will have.
345
+ */
346
+ default_transit_days?: number;
316
347
  }
317
348
 
318
349
  export interface ServiceLevelUpdateParams {
@@ -344,6 +375,16 @@ export interface ServiceLevelUpdateParams {
344
375
  */
345
376
  customer_portal_visibility?: 'visible' | 'hidden';
346
377
 
378
+ /**
379
+ * Body param: Business days this service typically takes in transit, used to work
380
+ * an order's ship-by date back from a promised delivery date.
381
+ *
382
+ * A fallback: when a carrier can rate the lane, the transit it quotes is used
383
+ * instead. Set to null to remove it, which leaves transit unknown for lanes the
384
+ * carrier cannot rate.
385
+ */
386
+ default_transit_days?: number | null;
387
+
347
388
  /**
348
389
  * Body param: Whether this is the carrier's default service level, pre-selected
349
390
  * when the carrier is chosen.
@@ -0,0 +1,75 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../../../core/resource';
4
+ import * as FulfillmentRecommendationsAPI from './fulfillment-recommendations';
5
+ import { APIPromise } from '../../../core/api-promise';
6
+ import { RequestOptions } from '../../../internal/request-options';
7
+
8
+ /**
9
+ * The planning assumptions production schedules are solved against, and the per-resource overrides that mark which machines constrain the plan.
10
+ */
11
+ export class Actions extends APIResource {
12
+ /**
13
+ * Adopts the recommended fulfillment policy for the named items, writing it as a
14
+ * per-item planning override.
15
+ *
16
+ * The recommendation is recomputed as part of applying it, rather than taken from
17
+ * the request. Advice read minutes ago may no longer be the advice — demand moves
18
+ * — and writing a stale verdict would set a policy the engine would not give
19
+ * today. What comes back is what was actually written.
20
+ *
21
+ * Takes effect on the next generated schedule; versions already generated keep the
22
+ * assumptions they were solved under.
23
+ *
24
+ * This endpoint requires the permission: `production_schedules:update`.
25
+ *
26
+ * @example
27
+ * ```ts
28
+ * const listFulfillmentRecommendation =
29
+ * await client.operations.fulfillmentRecommendations.actions.apply(
30
+ * { item_ids: ['it_pej07ckhvu62'] },
31
+ * );
32
+ * ```
33
+ */
34
+ apply(
35
+ body: ActionApplyParams,
36
+ options?: RequestOptions,
37
+ ): APIPromise<FulfillmentRecommendationsAPI.ListFulfillmentRecommendation> {
38
+ return this._client.post('/v1/operations/fulfillment-recommendations/actions/apply', {
39
+ body,
40
+ ...options,
41
+ });
42
+ }
43
+ }
44
+
45
+ /**
46
+ * Request to adopt fulfillment recommendations for specific items.
47
+ */
48
+ export interface ApplyFulfillmentRecommendationsRequest {
49
+ /**
50
+ * Items whose recommendation should be adopted.
51
+ *
52
+ * Named explicitly rather than applied wholesale: adopting advice in bulk without
53
+ * saying what is being adopted is how a plant changes what it builds by accident.
54
+ * Items not named here are left exactly as they are.
55
+ */
56
+ item_ids: Array<string>;
57
+ }
58
+
59
+ export interface ActionApplyParams {
60
+ /**
61
+ * Items whose recommendation should be adopted.
62
+ *
63
+ * Named explicitly rather than applied wholesale: adopting advice in bulk without
64
+ * saying what is being adopted is how a plant changes what it builds by accident.
65
+ * Items not named here are left exactly as they are.
66
+ */
67
+ item_ids: Array<string>;
68
+ }
69
+
70
+ export declare namespace Actions {
71
+ export {
72
+ type ApplyFulfillmentRecommendationsRequest as ApplyFulfillmentRecommendationsRequest,
73
+ type ActionApplyParams as ActionApplyParams,
74
+ };
75
+ }
@@ -0,0 +1,206 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../../../core/resource';
4
+ import * as CoreAPI from '../../core/core';
5
+ import * as APIKeysAPI from '../../auth/api-keys/api-keys';
6
+ import * as ActionsAPI from './actions';
7
+ import { ActionApplyParams, Actions, ApplyFulfillmentRecommendationsRequest } from './actions';
8
+ import { APIPromise } from '../../../core/api-promise';
9
+ import { RequestOptions } from '../../../internal/request-options';
10
+
11
+ /**
12
+ * The planning assumptions production schedules are solved against, and the per-resource overrides that mark which machines constrain the plan.
13
+ */
14
+ export class FulfillmentRecommendations extends APIResource {
15
+ actions: ActionsAPI.Actions = new ActionsAPI.Actions(this._client);
16
+
17
+ /**
18
+ * Returns, for every sellable SKU, whether it should be built to stock or only
19
+ * against orders — and the measurement that decided.
20
+ *
21
+ * The rules are ordered and the first match wins. Lead-time feasibility is checked
22
+ * before anything else: if customers are promised less time than production needs,
23
+ * building to order is not possible rather than not preferred, and no amount of
24
+ * lumpy demand changes that. After that the engine looks for dead stock, a single
25
+ * contract customer, demand too erratic for a buffer to size, and slow-moving
26
+ * expensive units.
27
+ *
28
+ * Every verdict carries its numbers — demand interval, variability, customer
29
+ * concentration, promised lead time, annual cost of goods — so a planner can
30
+ * disagree with the rule rather than only with the answer. Thresholds are
31
+ * merchant-editable in the planning settings.
32
+ *
33
+ * Computed fresh on every call rather than stored. A recommendation is only
34
+ * meaningful next to current demand, and a saved one would go quietly stale; the
35
+ * durable artifact is the item setting written when someone agrees with it.
36
+ * Nothing here changes a plan on its own.
37
+ *
38
+ * This endpoint requires the permission: `production_schedules:read`.
39
+ *
40
+ * @example
41
+ * ```ts
42
+ * const listFulfillmentRecommendation =
43
+ * await client.operations.fulfillmentRecommendations.list();
44
+ * ```
45
+ */
46
+ list(options?: RequestOptions): APIPromise<ListFulfillmentRecommendation> {
47
+ return this._client.get('/v1/operations/fulfillment-recommendations', options);
48
+ }
49
+ }
50
+
51
+ /**
52
+ * The engine's advice on how one SKU should be produced, with the measurements
53
+ * behind it.
54
+ */
55
+ export interface FulfillmentRecommendation {
56
+ /**
57
+ * Annual cost of goods for this item: demand times unit cost.
58
+ */
59
+ annual_cogs: number;
60
+
61
+ /**
62
+ * Months observed divided by months with demand: 1 means it sells every month, 3
63
+ * means once a quarter on average.
64
+ *
65
+ * Measured on monthly buckets, which cannot distinguish two orders in one month
66
+ * from one.
67
+ */
68
+ average_demand_interval: number;
69
+
70
+ /**
71
+ * Whether adopting the recommendation would change anything.
72
+ */
73
+ changes: boolean;
74
+
75
+ /**
76
+ * Squared coefficient of variation over the months that had demand, measuring how
77
+ * uneven the quantities are.
78
+ */
79
+ coefficient_of_variation: number;
80
+
81
+ /**
82
+ * How the item is planned today.
83
+ */
84
+ current_policy: 'make_to_stock' | 'make_to_order';
85
+
86
+ /**
87
+ * Calendar days customers are promised on average, weighted by how much each buys.
88
+ */
89
+ demand_weighted_lead_time_days: number;
90
+
91
+ /**
92
+ * Entity is a polymorphic reference to any resource in the system.
93
+ */
94
+ item: CoreAPI.Entity | null;
95
+
96
+ /**
97
+ * Percentage of demand from customers whose own stated policy disagrees with the
98
+ * recommendation.
99
+ *
100
+ * A policy is resolved per SKU, so an item sold to both a stocking distributor and
101
+ * a contract customer gets one answer either way. A high share here is the signal
102
+ * that the single answer is uncomfortable.
103
+ */
104
+ mixed_stream_share_pct: number;
105
+
106
+ /**
107
+ * Months since anything last sold, capped at the observation window.
108
+ */
109
+ months_since_last_sale: number;
110
+
111
+ /**
112
+ * Resource type identifier.
113
+ */
114
+ object: 'fulfillment_recommendation';
115
+
116
+ /**
117
+ * Entity is a polymorphic reference to any resource in the system.
118
+ */
119
+ product_line: CoreAPI.Entity | null;
120
+
121
+ /**
122
+ * The rule that decided.
123
+ *
124
+ * - `lead_time_infeasible`: customers are promised less time than production
125
+ * needs, so the stock has to exist before the order does. Checked first, because
126
+ * producing to order is not possible rather than not preferred.
127
+ * - `no_recent_demand`: nothing has sold for long enough that a buffer is dead
128
+ * stock.
129
+ * - `single_customer`: effectively one customer buys it, and that customer is
130
+ * served to order.
131
+ * - `lumpy_demand`: demand arrives rarely and in wildly different sizes, which is
132
+ * the shape a safety stock sizes worst.
133
+ * - `slow_moving_high_value`: expensive units, few sold — the buffer costs more
134
+ * than the service it buys.
135
+ * - `steady_demand`: regular enough to forecast, which is what stocking is for.
136
+ */
137
+ reason:
138
+ | 'lead_time_infeasible'
139
+ | 'no_recent_demand'
140
+ | 'single_customer'
141
+ | 'lumpy_demand'
142
+ | 'slow_moving_high_value'
143
+ | 'steady_demand';
144
+
145
+ /**
146
+ * How the engine thinks it should be planned.
147
+ */
148
+ recommended_policy: 'make_to_stock' | 'make_to_order';
149
+
150
+ /**
151
+ * SKU of that item.
152
+ */
153
+ sku: string;
154
+
155
+ /**
156
+ * Name of that customer.
157
+ */
158
+ top_customer_name: string | null;
159
+
160
+ /**
161
+ * The largest customer's share of this item's demand, as a percentage.
162
+ */
163
+ top_customer_share_pct: number;
164
+ }
165
+
166
+ /**
167
+ * A single page of resources, together with the metadata needed to page through
168
+ * the rest of the result set.
169
+ */
170
+ export interface ListFulfillmentRecommendation {
171
+ /**
172
+ * Resources in this page.
173
+ */
174
+ data: Array<FulfillmentRecommendation>;
175
+
176
+ /**
177
+ * Resource type identifier.
178
+ */
179
+ object: 'list';
180
+
181
+ /**
182
+ * PageInfo describes where the current page sits within a paginated result set and
183
+ * how to move to the adjacent pages.
184
+ *
185
+ * Page a list by following the URLs below rather than assembling cursors yourself.
186
+ * For a top-level list endpoint the URL repeats the original request's query
187
+ * string with only the cursor swapped, so following it preserves the same filters,
188
+ * search term, and page size.
189
+ */
190
+ page_info: APIKeysAPI.PageInfo;
191
+ }
192
+
193
+ FulfillmentRecommendations.Actions = Actions;
194
+
195
+ export declare namespace FulfillmentRecommendations {
196
+ export {
197
+ type FulfillmentRecommendation as FulfillmentRecommendation,
198
+ type ListFulfillmentRecommendation as ListFulfillmentRecommendation,
199
+ };
200
+
201
+ export {
202
+ Actions as Actions,
203
+ type ApplyFulfillmentRecommendationsRequest as ApplyFulfillmentRecommendationsRequest,
204
+ type ActionApplyParams as ActionApplyParams,
205
+ };
206
+ }
@@ -0,0 +1,8 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ export { Actions, type ApplyFulfillmentRecommendationsRequest, type ActionApplyParams } from './actions';
4
+ export {
5
+ FulfillmentRecommendations,
6
+ type FulfillmentRecommendation,
7
+ type ListFulfillmentRecommendation,
8
+ } from './fulfillment-recommendations';
@@ -0,0 +1,3 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ export * from './fulfillment-recommendations/index';
@@ -35,6 +35,11 @@ export {
35
35
  type DepartmentCreateParams,
36
36
  type DepartmentUpdateParams,
37
37
  } from './departments';
38
+ export {
39
+ FulfillmentRecommendations,
40
+ type FulfillmentRecommendation,
41
+ type ListFulfillmentRecommendation,
42
+ } from './fulfillment-recommendations/index';
38
43
  export {
39
44
  LocationTypes,
40
45
  type ListLocationType,
@@ -104,6 +109,9 @@ export {
104
109
  type ListReleaseScheduleBatch,
105
110
  type ListReleasedScheduleLine,
106
111
  type ListScheduleAppliedOverride,
112
+ type ListScheduleAtRiskOrder,
113
+ type ListScheduleOrderCoverage,
114
+ type ListScheduleOrderCoverageLine,
107
115
  type ProductionSchedule,
108
116
  type ProductionScheduleDerivedLine,
109
117
  type ProductionScheduleDeviation,
@@ -113,7 +121,10 @@ export {
113
121
  type ReleaseScheduleWeekPreview,
114
122
  type ReleasedScheduleLine,
115
123
  type ScheduleAppliedOverride,
124
+ type ScheduleAtRiskOrder,
116
125
  type ScheduleDiagnostics,
126
+ type ScheduleOrderCoverage,
127
+ type ScheduleOrderCoverageLine,
117
128
  type ProductionScheduleDeleteResponse,
118
129
  type ProductionScheduleListParams,
119
130
  type ProductionScheduleCreateParams,