@chrt-inc/typescript-sdk 1.760.0 → 1.772.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 (294) hide show
  1. package/dist/cjs/Client.js +2 -2
  2. package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/requests/LineItemGroupAdHocCreateClientReq.d.ts +2 -0
  3. package/dist/cjs/api/resources/billing/resources/statements/client/requests/StatementCreateClientReq.d.ts +2 -0
  4. package/dist/cjs/api/resources/notifications/resources/adHoc/client/Client.d.ts +36 -2
  5. package/dist/cjs/api/resources/notifications/resources/adHoc/client/Client.js +138 -1
  6. package/dist/cjs/api/resources/notifications/resources/adHoc/client/requests/AdHocListBySessionIdV1Request.d.ts +14 -0
  7. package/dist/cjs/api/resources/notifications/resources/adHoc/client/requests/index.d.ts +1 -1
  8. package/dist/cjs/api/resources/operations/resources/cases/client/Client.d.ts +16 -0
  9. package/dist/cjs/api/resources/operations/resources/cases/client/Client.js +65 -0
  10. package/dist/cjs/api/resources/operations/resources/cases/client/requests/CaseSetBillingReviewStatusReq.d.ts +13 -0
  11. package/dist/cjs/api/resources/operations/resources/cases/client/requests/index.d.ts +1 -0
  12. package/dist/cjs/api/resources/orgs/client/Client.d.ts +3 -0
  13. package/dist/cjs/api/resources/orgs/client/Client.js +7 -2
  14. package/dist/cjs/api/resources/orgs/resources/index.d.ts +2 -0
  15. package/dist/cjs/api/resources/orgs/resources/index.js +3 -1
  16. package/dist/cjs/api/resources/orgs/resources/offChrtVendor/client/Client.d.ts +106 -0
  17. package/dist/cjs/api/resources/orgs/resources/offChrtVendor/client/Client.js +384 -0
  18. package/dist/cjs/api/resources/orgs/resources/offChrtVendor/client/index.d.ts +2 -0
  19. package/dist/cjs/api/resources/orgs/resources/offChrtVendor/client/index.js +17 -0
  20. package/dist/cjs/api/resources/orgs/resources/offChrtVendor/client/requests/OffChrtVendorClientCreate1.d.ts +15 -0
  21. package/dist/cjs/api/resources/orgs/resources/offChrtVendor/client/requests/OffChrtVendorClientUpdate1.d.ts +12 -0
  22. package/dist/cjs/api/resources/orgs/resources/offChrtVendor/client/requests/OffChrtVendorListV1Request.d.ts +14 -0
  23. package/dist/cjs/api/resources/orgs/resources/offChrtVendor/client/requests/index.d.ts +3 -0
  24. package/dist/cjs/api/resources/orgs/resources/offChrtVendor/client/requests/index.js +2 -0
  25. package/dist/cjs/api/resources/orgs/resources/offChrtVendor/index.d.ts +1 -0
  26. package/dist/cjs/api/resources/orgs/resources/offChrtVendor/index.js +17 -0
  27. package/dist/cjs/api/resources/shipping/client/Client.d.ts +6 -0
  28. package/dist/cjs/api/resources/shipping/client/Client.js +18 -8
  29. package/dist/cjs/api/resources/shipping/resources/flights/client/Client.d.ts +2 -2
  30. package/dist/cjs/api/resources/shipping/resources/flights/client/Client.js +2 -2
  31. package/dist/cjs/api/resources/shipping/resources/index.d.ts +4 -0
  32. package/dist/cjs/api/resources/shipping/resources/index.js +5 -1
  33. package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/Client.d.ts +1 -1
  34. package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/Client.js +1 -1
  35. package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/requests/OrdersNewDraftReq.d.ts +5 -0
  36. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/agentic/client/Client.d.ts +13 -19
  37. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/agentic/client/Client.js +41 -47
  38. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftAddTaskGroupReq.d.ts +1 -0
  39. package/dist/cjs/api/resources/shipping/resources/orderGroups/client/Client.d.ts +142 -0
  40. package/dist/cjs/api/resources/shipping/resources/orderGroups/client/Client.js +530 -0
  41. package/dist/cjs/api/resources/shipping/resources/orderGroups/client/index.d.ts +2 -0
  42. package/dist/cjs/api/resources/shipping/resources/orderGroups/client/index.js +17 -0
  43. package/dist/cjs/api/resources/shipping/resources/orderGroups/client/requests/OrderGroupClientCreate1.d.ts +16 -0
  44. package/dist/cjs/api/resources/shipping/resources/orderGroups/client/requests/OrderGroupClientUpdate1.d.ts +12 -0
  45. package/dist/cjs/api/resources/shipping/resources/orderGroups/client/requests/OrderGroupSetBillingReviewStatusReq.d.ts +13 -0
  46. package/dist/cjs/api/resources/shipping/resources/orderGroups/client/requests/OrderGroupSetBillingReviewStatusReq.js +5 -0
  47. package/dist/cjs/api/resources/shipping/resources/orderGroups/client/requests/OrderGroupsListV1Request.d.ts +30 -0
  48. package/dist/cjs/api/resources/shipping/resources/orderGroups/client/requests/OrderGroupsListV1Request.js +5 -0
  49. package/dist/cjs/api/resources/shipping/resources/orderGroups/client/requests/index.d.ts +4 -0
  50. package/dist/cjs/api/resources/shipping/resources/orderGroups/client/requests/index.js +2 -0
  51. package/dist/cjs/api/resources/shipping/resources/orderGroups/index.d.ts +1 -0
  52. package/dist/cjs/api/resources/shipping/resources/orderGroups/index.js +17 -0
  53. package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/Client.d.ts +3 -3
  54. package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/Client.js +2 -2
  55. package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientCreate1.d.ts +7 -4
  56. package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientUpdate1.d.ts +7 -2
  57. package/dist/cjs/api/resources/shipping/resources/ordersAndOrderGroups/client/Client.d.ts +73 -0
  58. package/dist/cjs/api/resources/shipping/resources/ordersAndOrderGroups/client/Client.js +252 -0
  59. package/dist/cjs/api/resources/shipping/resources/ordersAndOrderGroups/client/index.d.ts +2 -0
  60. package/dist/cjs/api/resources/shipping/resources/ordersAndOrderGroups/client/index.js +17 -0
  61. package/dist/cjs/api/resources/shipping/resources/ordersAndOrderGroups/client/requests/OrdersAndOrderGroupsOrderGroupsListV1Request.d.ts +32 -0
  62. package/dist/cjs/api/resources/shipping/resources/ordersAndOrderGroups/client/requests/OrdersAndOrderGroupsOrderGroupsListV1Request.js +5 -0
  63. package/dist/cjs/api/resources/shipping/resources/ordersAndOrderGroups/client/requests/OrdersAndOrderGroupsUngroupedOrdersListV1Request.d.ts +23 -0
  64. package/dist/cjs/api/resources/shipping/resources/ordersAndOrderGroups/client/requests/OrdersAndOrderGroupsUngroupedOrdersListV1Request.js +5 -0
  65. package/dist/cjs/api/resources/shipping/resources/ordersAndOrderGroups/client/requests/index.d.ts +2 -0
  66. package/dist/cjs/api/resources/shipping/resources/ordersAndOrderGroups/client/requests/index.js +2 -0
  67. package/dist/cjs/api/resources/shipping/resources/ordersAndOrderGroups/index.d.ts +1 -0
  68. package/dist/cjs/api/resources/shipping/resources/ordersAndOrderGroups/index.js +17 -0
  69. package/dist/cjs/api/resources/tracking/resources/sessions/client/Client.d.ts +2 -2
  70. package/dist/cjs/api/resources/tracking/resources/sessions/client/Client.js +2 -2
  71. package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionClientCreate1.d.ts +3 -0
  72. package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionClientUpdate1.d.ts +4 -0
  73. package/dist/cjs/api/types/BillingReviewStatusEnum.d.ts +15 -0
  74. package/dist/cjs/api/types/BillingReviewStatusEnum.js +12 -0
  75. package/dist/cjs/api/types/Case1.d.ts +1 -0
  76. package/dist/cjs/api/types/{InternalDelegationTokenReq.d.ts → InternalDelegationJwtReq.d.ts} +2 -2
  77. package/dist/cjs/api/types/InternalDelegationJwtReq.js +5 -0
  78. package/dist/cjs/api/types/{InternalDelegationTokenRes.d.ts → InternalDelegationJwtRes.d.ts} +1 -1
  79. package/dist/cjs/api/types/InternalDelegationJwtRes.js +5 -0
  80. package/dist/cjs/api/types/LineItemGroup1.d.ts +3 -0
  81. package/dist/cjs/api/types/NotificationEventsForAdHocEnum.d.ts +4 -3
  82. package/dist/cjs/api/types/NotificationEventsForAdHocEnum.js +1 -0
  83. package/dist/cjs/api/types/NotificationEventsForOrgsEnum.d.ts +2 -1
  84. package/dist/cjs/api/types/NotificationEventsForOrgsEnum.js +1 -0
  85. package/dist/cjs/api/types/NotificationEventsForUsersEnum.d.ts +2 -1
  86. package/dist/cjs/api/types/NotificationEventsForUsersEnum.js +1 -0
  87. package/dist/cjs/api/types/NotificationIntentAdHoc1.d.ts +2 -1
  88. package/dist/cjs/api/{resources/notifications/resources/adHoc/client/requests → types}/NotificationIntentAdHocClientCreate1.d.ts +1 -8
  89. package/dist/cjs/api/types/NotificationIntentAdHocClientCreate1.js +5 -0
  90. package/dist/cjs/api/types/OffChrtVendor1.d.ts +13 -0
  91. package/dist/cjs/api/types/OffChrtVendor1.js +5 -0
  92. package/dist/cjs/api/types/OffChrtVendorListRes.d.ts +8 -0
  93. package/dist/cjs/api/types/OffChrtVendorListRes.js +5 -0
  94. package/dist/cjs/api/types/OnboardCourierTaskActionEnum1.d.ts +1 -11
  95. package/dist/cjs/api/types/OnboardCourierTaskActionEnum1.js +0 -10
  96. package/dist/cjs/api/types/Order1.d.ts +2 -0
  97. package/dist/cjs/api/types/OrderBuilderReq.d.ts +3 -2
  98. package/dist/cjs/api/types/OrderBuilderRes.d.ts +2 -2
  99. package/dist/cjs/api/types/OrderGroup1.d.ts +21 -0
  100. package/dist/cjs/api/types/OrderGroup1.js +5 -0
  101. package/dist/cjs/api/types/OrderGroupExpandedListRes.d.ts +8 -0
  102. package/dist/cjs/api/types/OrderGroupExpandedListRes.js +5 -0
  103. package/dist/cjs/api/types/OrderGroupExpandedRow.d.ts +9 -0
  104. package/dist/cjs/api/types/OrderGroupExpandedRow.js +5 -0
  105. package/dist/cjs/api/types/OrderGroupExpandedSortByEnum.d.ts +10 -0
  106. package/dist/cjs/api/types/OrderGroupExpandedSortByEnum.js +12 -0
  107. package/dist/cjs/api/types/OrderGroupListRes.d.ts +8 -0
  108. package/dist/cjs/api/types/OrderGroupListRes.js +5 -0
  109. package/dist/cjs/api/types/OrderGroupSortByEnum.d.ts +9 -0
  110. package/dist/cjs/api/types/OrderGroupSortByEnum.js +11 -0
  111. package/dist/cjs/api/types/OrderTemplate1.d.ts +7 -4
  112. package/dist/cjs/api/types/OrderTemplateCore1.d.ts +21 -0
  113. package/dist/cjs/api/types/OrderTemplateCore1.js +5 -0
  114. package/dist/cjs/api/types/{OrderTemplateExpanded.d.ts → OrderTemplateExpanded1.d.ts} +4 -4
  115. package/dist/cjs/api/types/OrderTemplateExpanded1.js +5 -0
  116. package/dist/{esm/api/types/OrderTemplateOrgRef1.d.mts → cjs/api/types/OrderTemplateOrgInfo1.d.ts} +1 -1
  117. package/dist/cjs/api/types/OrderTemplateOrgInfo1.js +5 -0
  118. package/dist/cjs/api/types/OrderTemplateResolvabilityRes.d.ts +10 -0
  119. package/dist/cjs/api/types/OrderTemplateResolvabilityRes.js +5 -0
  120. package/dist/cjs/api/types/Session1.d.ts +3 -0
  121. package/dist/cjs/api/types/ShippingTurnClientCreate1.d.ts +16 -0
  122. package/dist/cjs/api/types/ShippingTurnClientCreate1.js +5 -0
  123. package/dist/cjs/api/types/Statement1.d.ts +3 -0
  124. package/dist/cjs/api/types/TaskGroup1.d.ts +1 -0
  125. package/dist/cjs/api/types/TrackingSessionDestinationGeofenceEnteredWebhookPayload.d.ts +10 -0
  126. package/dist/cjs/api/types/TrackingSessionDestinationGeofenceEnteredWebhookPayload.js +5 -0
  127. package/dist/cjs/api/types/UngroupedOrderListRes.d.ts +8 -0
  128. package/dist/cjs/api/types/UngroupedOrderListRes.js +5 -0
  129. package/dist/cjs/api/types/UngroupedOrderRow.d.ts +8 -0
  130. package/dist/cjs/api/types/UngroupedOrderRow.js +5 -0
  131. package/dist/cjs/api/types/UngroupedOrderSortByEnum.d.ts +11 -0
  132. package/dist/cjs/api/types/UngroupedOrderSortByEnum.js +13 -0
  133. package/dist/cjs/api/types/{WorkflowActorContext.d.ts → WorkflowActor.d.ts} +1 -1
  134. package/dist/cjs/api/types/WorkflowActor.js +5 -0
  135. package/dist/cjs/api/types/index.d.ts +22 -6
  136. package/dist/cjs/api/types/index.js +22 -6
  137. package/dist/cjs/version.d.ts +1 -1
  138. package/dist/cjs/version.js +1 -1
  139. package/dist/esm/Client.mjs +2 -2
  140. package/dist/esm/api/resources/billing/resources/lineItemGroups/client/requests/LineItemGroupAdHocCreateClientReq.d.mts +2 -0
  141. package/dist/esm/api/resources/billing/resources/statements/client/requests/StatementCreateClientReq.d.mts +2 -0
  142. package/dist/esm/api/resources/notifications/resources/adHoc/client/Client.d.mts +36 -2
  143. package/dist/esm/api/resources/notifications/resources/adHoc/client/Client.mjs +138 -1
  144. package/dist/esm/api/resources/notifications/resources/adHoc/client/requests/AdHocListBySessionIdV1Request.d.mts +14 -0
  145. package/dist/esm/api/resources/notifications/resources/adHoc/client/requests/index.d.mts +1 -1
  146. package/dist/esm/api/resources/operations/resources/cases/client/Client.d.mts +16 -0
  147. package/dist/esm/api/resources/operations/resources/cases/client/Client.mjs +65 -0
  148. package/dist/esm/api/resources/operations/resources/cases/client/requests/CaseSetBillingReviewStatusReq.d.mts +13 -0
  149. package/dist/esm/api/resources/operations/resources/cases/client/requests/index.d.mts +1 -0
  150. package/dist/esm/api/resources/orgs/client/Client.d.mts +3 -0
  151. package/dist/esm/api/resources/orgs/client/Client.mjs +5 -0
  152. package/dist/esm/api/resources/orgs/resources/index.d.mts +2 -0
  153. package/dist/esm/api/resources/orgs/resources/index.mjs +2 -0
  154. package/dist/esm/api/resources/orgs/resources/offChrtVendor/client/Client.d.mts +106 -0
  155. package/dist/esm/api/resources/orgs/resources/offChrtVendor/client/Client.mjs +347 -0
  156. package/dist/esm/api/resources/orgs/resources/offChrtVendor/client/index.d.mts +2 -0
  157. package/dist/esm/api/resources/orgs/resources/offChrtVendor/client/index.mjs +1 -0
  158. package/dist/esm/api/resources/orgs/resources/offChrtVendor/client/requests/OffChrtVendorClientCreate1.d.mts +15 -0
  159. package/dist/esm/api/resources/orgs/resources/offChrtVendor/client/requests/OffChrtVendorClientUpdate1.d.mts +12 -0
  160. package/dist/esm/api/resources/orgs/resources/offChrtVendor/client/requests/OffChrtVendorListV1Request.d.mts +14 -0
  161. package/dist/esm/api/resources/orgs/resources/offChrtVendor/client/requests/index.d.mts +3 -0
  162. package/dist/esm/api/resources/orgs/resources/offChrtVendor/client/requests/index.mjs +1 -0
  163. package/dist/esm/api/resources/orgs/resources/offChrtVendor/index.d.mts +1 -0
  164. package/dist/esm/api/resources/orgs/resources/offChrtVendor/index.mjs +1 -0
  165. package/dist/esm/api/resources/shipping/client/Client.d.mts +6 -0
  166. package/dist/esm/api/resources/shipping/client/Client.mjs +10 -0
  167. package/dist/esm/api/resources/shipping/resources/flights/client/Client.d.mts +2 -2
  168. package/dist/esm/api/resources/shipping/resources/flights/client/Client.mjs +2 -2
  169. package/dist/esm/api/resources/shipping/resources/index.d.mts +4 -0
  170. package/dist/esm/api/resources/shipping/resources/index.mjs +4 -0
  171. package/dist/esm/api/resources/shipping/resources/orderDrafts/client/Client.d.mts +1 -1
  172. package/dist/esm/api/resources/shipping/resources/orderDrafts/client/Client.mjs +1 -1
  173. package/dist/esm/api/resources/shipping/resources/orderDrafts/client/requests/OrdersNewDraftReq.d.mts +5 -0
  174. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/agentic/client/Client.d.mts +13 -19
  175. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/agentic/client/Client.mjs +41 -47
  176. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftAddTaskGroupReq.d.mts +1 -0
  177. package/dist/esm/api/resources/shipping/resources/orderGroups/client/Client.d.mts +142 -0
  178. package/dist/esm/api/resources/shipping/resources/orderGroups/client/Client.mjs +493 -0
  179. package/dist/esm/api/resources/shipping/resources/orderGroups/client/index.d.mts +2 -0
  180. package/dist/esm/api/resources/shipping/resources/orderGroups/client/index.mjs +1 -0
  181. package/dist/esm/api/resources/shipping/resources/orderGroups/client/requests/OrderGroupClientCreate1.d.mts +16 -0
  182. package/dist/esm/api/resources/shipping/resources/orderGroups/client/requests/OrderGroupClientUpdate1.d.mts +12 -0
  183. package/dist/esm/api/resources/shipping/resources/orderGroups/client/requests/OrderGroupSetBillingReviewStatusReq.d.mts +13 -0
  184. package/dist/esm/api/resources/shipping/resources/orderGroups/client/requests/OrderGroupSetBillingReviewStatusReq.mjs +4 -0
  185. package/dist/esm/api/resources/shipping/resources/orderGroups/client/requests/OrderGroupsListV1Request.d.mts +30 -0
  186. package/dist/esm/api/resources/shipping/resources/orderGroups/client/requests/OrderGroupsListV1Request.mjs +4 -0
  187. package/dist/esm/api/resources/shipping/resources/orderGroups/client/requests/index.d.mts +4 -0
  188. package/dist/esm/api/resources/shipping/resources/orderGroups/client/requests/index.mjs +1 -0
  189. package/dist/esm/api/resources/shipping/resources/orderGroups/index.d.mts +1 -0
  190. package/dist/esm/api/resources/shipping/resources/orderGroups/index.mjs +1 -0
  191. package/dist/esm/api/resources/shipping/resources/orderTemplates/client/Client.d.mts +3 -3
  192. package/dist/esm/api/resources/shipping/resources/orderTemplates/client/Client.mjs +2 -2
  193. package/dist/esm/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientCreate1.d.mts +7 -4
  194. package/dist/esm/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientUpdate1.d.mts +7 -2
  195. package/dist/esm/api/resources/shipping/resources/ordersAndOrderGroups/client/Client.d.mts +73 -0
  196. package/dist/esm/api/resources/shipping/resources/ordersAndOrderGroups/client/Client.mjs +215 -0
  197. package/dist/esm/api/resources/shipping/resources/ordersAndOrderGroups/client/index.d.mts +2 -0
  198. package/dist/esm/api/resources/shipping/resources/ordersAndOrderGroups/client/index.mjs +1 -0
  199. package/dist/esm/api/resources/shipping/resources/ordersAndOrderGroups/client/requests/OrdersAndOrderGroupsOrderGroupsListV1Request.d.mts +32 -0
  200. package/dist/esm/api/resources/shipping/resources/ordersAndOrderGroups/client/requests/OrdersAndOrderGroupsOrderGroupsListV1Request.mjs +4 -0
  201. package/dist/esm/api/resources/shipping/resources/ordersAndOrderGroups/client/requests/OrdersAndOrderGroupsUngroupedOrdersListV1Request.d.mts +23 -0
  202. package/dist/esm/api/resources/shipping/resources/ordersAndOrderGroups/client/requests/OrdersAndOrderGroupsUngroupedOrdersListV1Request.mjs +4 -0
  203. package/dist/esm/api/resources/shipping/resources/ordersAndOrderGroups/client/requests/index.d.mts +2 -0
  204. package/dist/esm/api/resources/shipping/resources/ordersAndOrderGroups/client/requests/index.mjs +1 -0
  205. package/dist/esm/api/resources/shipping/resources/ordersAndOrderGroups/index.d.mts +1 -0
  206. package/dist/esm/api/resources/shipping/resources/ordersAndOrderGroups/index.mjs +1 -0
  207. package/dist/esm/api/resources/tracking/resources/sessions/client/Client.d.mts +2 -2
  208. package/dist/esm/api/resources/tracking/resources/sessions/client/Client.mjs +2 -2
  209. package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionClientCreate1.d.mts +3 -0
  210. package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionClientUpdate1.d.mts +4 -0
  211. package/dist/esm/api/types/BillingReviewStatusEnum.d.mts +15 -0
  212. package/dist/esm/api/types/BillingReviewStatusEnum.mjs +9 -0
  213. package/dist/esm/api/types/Case1.d.mts +1 -0
  214. package/dist/esm/api/types/{InternalDelegationTokenReq.d.mts → InternalDelegationJwtReq.d.mts} +2 -2
  215. package/dist/esm/api/types/InternalDelegationJwtReq.mjs +4 -0
  216. package/dist/esm/api/types/{InternalDelegationTokenRes.d.mts → InternalDelegationJwtRes.d.mts} +1 -1
  217. package/dist/esm/api/types/InternalDelegationJwtRes.mjs +4 -0
  218. package/dist/esm/api/types/LineItemGroup1.d.mts +3 -0
  219. package/dist/esm/api/types/NotificationEventsForAdHocEnum.d.mts +4 -3
  220. package/dist/esm/api/types/NotificationEventsForAdHocEnum.mjs +1 -0
  221. package/dist/esm/api/types/NotificationEventsForOrgsEnum.d.mts +2 -1
  222. package/dist/esm/api/types/NotificationEventsForOrgsEnum.mjs +1 -0
  223. package/dist/esm/api/types/NotificationEventsForUsersEnum.d.mts +2 -1
  224. package/dist/esm/api/types/NotificationEventsForUsersEnum.mjs +1 -0
  225. package/dist/esm/api/types/NotificationIntentAdHoc1.d.mts +2 -1
  226. package/dist/esm/api/{resources/notifications/resources/adHoc/client/requests → types}/NotificationIntentAdHocClientCreate1.d.mts +1 -8
  227. package/dist/esm/api/types/NotificationIntentAdHocClientCreate1.mjs +4 -0
  228. package/dist/esm/api/types/OffChrtVendor1.d.mts +13 -0
  229. package/dist/esm/api/types/OffChrtVendor1.mjs +4 -0
  230. package/dist/esm/api/types/OffChrtVendorListRes.d.mts +8 -0
  231. package/dist/esm/api/types/OffChrtVendorListRes.mjs +4 -0
  232. package/dist/esm/api/types/OnboardCourierTaskActionEnum1.d.mts +1 -11
  233. package/dist/esm/api/types/OnboardCourierTaskActionEnum1.mjs +0 -10
  234. package/dist/esm/api/types/Order1.d.mts +2 -0
  235. package/dist/esm/api/types/OrderBuilderReq.d.mts +3 -2
  236. package/dist/esm/api/types/OrderBuilderRes.d.mts +2 -2
  237. package/dist/esm/api/types/OrderGroup1.d.mts +21 -0
  238. package/dist/esm/api/types/OrderGroup1.mjs +4 -0
  239. package/dist/esm/api/types/OrderGroupExpandedListRes.d.mts +8 -0
  240. package/dist/esm/api/types/OrderGroupExpandedListRes.mjs +4 -0
  241. package/dist/esm/api/types/OrderGroupExpandedRow.d.mts +9 -0
  242. package/dist/esm/api/types/OrderGroupExpandedRow.mjs +4 -0
  243. package/dist/esm/api/types/OrderGroupExpandedSortByEnum.d.mts +10 -0
  244. package/dist/esm/api/types/OrderGroupExpandedSortByEnum.mjs +9 -0
  245. package/dist/esm/api/types/OrderGroupListRes.d.mts +8 -0
  246. package/dist/esm/api/types/OrderGroupListRes.mjs +4 -0
  247. package/dist/esm/api/types/OrderGroupSortByEnum.d.mts +9 -0
  248. package/dist/esm/api/types/OrderGroupSortByEnum.mjs +8 -0
  249. package/dist/esm/api/types/OrderTemplate1.d.mts +7 -4
  250. package/dist/esm/api/types/OrderTemplateCore1.d.mts +21 -0
  251. package/dist/esm/api/types/OrderTemplateCore1.mjs +4 -0
  252. package/dist/esm/api/types/{OrderTemplateExpanded.d.mts → OrderTemplateExpanded1.d.mts} +4 -4
  253. package/dist/esm/api/types/OrderTemplateExpanded1.mjs +4 -0
  254. package/dist/{cjs/api/types/OrderTemplateOrgRef1.d.ts → esm/api/types/OrderTemplateOrgInfo1.d.mts} +1 -1
  255. package/dist/esm/api/types/OrderTemplateOrgInfo1.mjs +4 -0
  256. package/dist/esm/api/types/OrderTemplateResolvabilityRes.d.mts +10 -0
  257. package/dist/esm/api/types/OrderTemplateResolvabilityRes.mjs +4 -0
  258. package/dist/esm/api/types/Session1.d.mts +3 -0
  259. package/dist/esm/api/types/ShippingTurnClientCreate1.d.mts +16 -0
  260. package/dist/esm/api/types/ShippingTurnClientCreate1.mjs +4 -0
  261. package/dist/esm/api/types/Statement1.d.mts +3 -0
  262. package/dist/esm/api/types/TaskGroup1.d.mts +1 -0
  263. package/dist/esm/api/types/TrackingSessionDestinationGeofenceEnteredWebhookPayload.d.mts +10 -0
  264. package/dist/esm/api/types/TrackingSessionDestinationGeofenceEnteredWebhookPayload.mjs +4 -0
  265. package/dist/esm/api/types/UngroupedOrderListRes.d.mts +8 -0
  266. package/dist/esm/api/types/UngroupedOrderListRes.mjs +4 -0
  267. package/dist/esm/api/types/UngroupedOrderRow.d.mts +8 -0
  268. package/dist/esm/api/types/UngroupedOrderRow.mjs +4 -0
  269. package/dist/esm/api/types/UngroupedOrderSortByEnum.d.mts +11 -0
  270. package/dist/esm/api/types/UngroupedOrderSortByEnum.mjs +10 -0
  271. package/dist/esm/api/types/{WorkflowActorContext.d.mts → WorkflowActor.d.mts} +1 -1
  272. package/dist/esm/api/types/WorkflowActor.mjs +4 -0
  273. package/dist/esm/api/types/index.d.mts +22 -6
  274. package/dist/esm/api/types/index.mjs +22 -6
  275. package/dist/esm/version.d.mts +1 -1
  276. package/dist/esm/version.mjs +1 -1
  277. package/package.json +1 -1
  278. package/reference.md +1650 -478
  279. package/dist/cjs/api/types/OrderBuilderPrecheckRes.d.ts +0 -7
  280. package/dist/esm/api/types/OrderBuilderPrecheckRes.d.mts +0 -7
  281. /package/dist/cjs/api/resources/notifications/resources/adHoc/client/requests/{NotificationIntentAdHocClientCreate1.js → AdHocListBySessionIdV1Request.js} +0 -0
  282. /package/dist/cjs/api/{types/InternalDelegationTokenReq.js → resources/operations/resources/cases/client/requests/CaseSetBillingReviewStatusReq.js} +0 -0
  283. /package/dist/cjs/api/{types/InternalDelegationTokenRes.js → resources/orgs/resources/offChrtVendor/client/requests/OffChrtVendorClientCreate1.js} +0 -0
  284. /package/dist/cjs/api/{types/OrderBuilderPrecheckRes.js → resources/orgs/resources/offChrtVendor/client/requests/OffChrtVendorClientUpdate1.js} +0 -0
  285. /package/dist/cjs/api/{types/OrderTemplateExpanded.js → resources/orgs/resources/offChrtVendor/client/requests/OffChrtVendorListV1Request.js} +0 -0
  286. /package/dist/cjs/api/{types/OrderTemplateOrgRef1.js → resources/shipping/resources/orderGroups/client/requests/OrderGroupClientCreate1.js} +0 -0
  287. /package/dist/cjs/api/{types/WorkflowActorContext.js → resources/shipping/resources/orderGroups/client/requests/OrderGroupClientUpdate1.js} +0 -0
  288. /package/dist/esm/api/resources/notifications/resources/adHoc/client/requests/{NotificationIntentAdHocClientCreate1.mjs → AdHocListBySessionIdV1Request.mjs} +0 -0
  289. /package/dist/esm/api/{types/InternalDelegationTokenReq.mjs → resources/operations/resources/cases/client/requests/CaseSetBillingReviewStatusReq.mjs} +0 -0
  290. /package/dist/esm/api/{types/InternalDelegationTokenRes.mjs → resources/orgs/resources/offChrtVendor/client/requests/OffChrtVendorClientCreate1.mjs} +0 -0
  291. /package/dist/esm/api/{types/OrderBuilderPrecheckRes.mjs → resources/orgs/resources/offChrtVendor/client/requests/OffChrtVendorClientUpdate1.mjs} +0 -0
  292. /package/dist/esm/api/{types/OrderTemplateExpanded.mjs → resources/orgs/resources/offChrtVendor/client/requests/OffChrtVendorListV1Request.mjs} +0 -0
  293. /package/dist/esm/api/{types/OrderTemplateOrgRef1.mjs → resources/shipping/resources/orderGroups/client/requests/OrderGroupClientCreate1.mjs} +0 -0
  294. /package/dist/esm/api/{types/WorkflowActorContext.mjs → resources/shipping/resources/orderGroups/client/requests/OrderGroupClientUpdate1.mjs} +0 -0
@@ -0,0 +1,384 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
39
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
40
+ return new (P || (P = Promise))(function (resolve, reject) {
41
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
42
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
43
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
44
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
45
+ });
46
+ };
47
+ Object.defineProperty(exports, "__esModule", { value: true });
48
+ exports.OffChrtVendor = void 0;
49
+ const environments = __importStar(require("../../../../../../environments.js"));
50
+ const core = __importStar(require("../../../../../../core/index.js"));
51
+ const Chrt = __importStar(require("../../../../../index.js"));
52
+ const headers_js_1 = require("../../../../../../core/headers.js");
53
+ const errors = __importStar(require("../../../../../../errors/index.js"));
54
+ class OffChrtVendor {
55
+ constructor(_options = {}) {
56
+ this._options = _options;
57
+ }
58
+ /**
59
+ * Creates an off-platform vendor shell owned by the caller's org. Used as an off-CHRT billing payment destination (e.g. an airline). | (OffChrtVendorClientCreate1) -> (PydanticObjectId)
60
+ *
61
+ * @param {Chrt.orgs.OffChrtVendorClientCreate1} request
62
+ * @param {OffChrtVendor.RequestOptions} requestOptions - Request-specific configuration.
63
+ *
64
+ * @throws {@link Chrt.UnprocessableEntityError}
65
+ *
66
+ * @example
67
+ * await client.orgs.offChrtVendor.createV1({
68
+ * schema_version: 1,
69
+ * name: "name"
70
+ * })
71
+ */
72
+ createV1(request, requestOptions) {
73
+ return core.HttpResponsePromise.fromPromise(this.__createV1(request, requestOptions));
74
+ }
75
+ __createV1(request, requestOptions) {
76
+ return __awaiter(this, void 0, void 0, function* () {
77
+ var _a, _b, _c, _d;
78
+ let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
79
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
80
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "orgs/off_chrt_vendor/create/v1"),
81
+ method: "POST",
82
+ headers: _headers,
83
+ contentType: "application/json",
84
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
85
+ requestType: "json",
86
+ body: request,
87
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
88
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
89
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
90
+ });
91
+ if (_response.ok) {
92
+ return { data: _response.body, rawResponse: _response.rawResponse };
93
+ }
94
+ if (_response.error.reason === "status-code") {
95
+ switch (_response.error.statusCode) {
96
+ case 422:
97
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
98
+ default:
99
+ throw new errors.ChrtError({
100
+ statusCode: _response.error.statusCode,
101
+ body: _response.error.body,
102
+ rawResponse: _response.rawResponse,
103
+ });
104
+ }
105
+ }
106
+ switch (_response.error.reason) {
107
+ case "non-json":
108
+ throw new errors.ChrtError({
109
+ statusCode: _response.error.statusCode,
110
+ body: _response.error.rawBody,
111
+ rawResponse: _response.rawResponse,
112
+ });
113
+ case "timeout":
114
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /orgs/off_chrt_vendor/create/v1.");
115
+ case "unknown":
116
+ throw new errors.ChrtError({
117
+ message: _response.error.errorMessage,
118
+ rawResponse: _response.rawResponse,
119
+ });
120
+ }
121
+ });
122
+ }
123
+ /**
124
+ * Lists all off-chrt vendors created by the caller's organization. Pagination only — no search/filter. | () -> (OffChrtVendorListRes)
125
+ *
126
+ * @param {Chrt.orgs.OffChrtVendorListV1Request} request
127
+ * @param {OffChrtVendor.RequestOptions} requestOptions - Request-specific configuration.
128
+ *
129
+ * @throws {@link Chrt.UnprocessableEntityError}
130
+ *
131
+ * @example
132
+ * await client.orgs.offChrtVendor.listV1({
133
+ * page: 1,
134
+ * page_size: 1
135
+ * })
136
+ */
137
+ listV1(request = {}, requestOptions) {
138
+ return core.HttpResponsePromise.fromPromise(this.__listV1(request, requestOptions));
139
+ }
140
+ __listV1() {
141
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
142
+ var _a, _b, _c, _d, _e, _f;
143
+ const { page, page_size: pageSize } = request;
144
+ const _queryParams = {};
145
+ if (page !== undefined) {
146
+ _queryParams["page"] = (_a = page === null || page === void 0 ? void 0 : page.toString()) !== null && _a !== void 0 ? _a : null;
147
+ }
148
+ if (pageSize !== undefined) {
149
+ _queryParams["page_size"] = (_b = pageSize === null || pageSize === void 0 ? void 0 : pageSize.toString()) !== null && _b !== void 0 ? _b : null;
150
+ }
151
+ let _headers = (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
152
+ const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
153
+ url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ChrtEnvironment.Local, "orgs/off_chrt_vendor/list/v1"),
154
+ method: "GET",
155
+ headers: _headers,
156
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
157
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
158
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
159
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
160
+ });
161
+ if (_response.ok) {
162
+ return { data: _response.body, rawResponse: _response.rawResponse };
163
+ }
164
+ if (_response.error.reason === "status-code") {
165
+ switch (_response.error.statusCode) {
166
+ case 422:
167
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
168
+ default:
169
+ throw new errors.ChrtError({
170
+ statusCode: _response.error.statusCode,
171
+ body: _response.error.body,
172
+ rawResponse: _response.rawResponse,
173
+ });
174
+ }
175
+ }
176
+ switch (_response.error.reason) {
177
+ case "non-json":
178
+ throw new errors.ChrtError({
179
+ statusCode: _response.error.statusCode,
180
+ body: _response.error.rawBody,
181
+ rawResponse: _response.rawResponse,
182
+ });
183
+ case "timeout":
184
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/off_chrt_vendor/list/v1.");
185
+ case "unknown":
186
+ throw new errors.ChrtError({
187
+ message: _response.error.errorMessage,
188
+ rawResponse: _response.rawResponse,
189
+ });
190
+ }
191
+ });
192
+ }
193
+ /**
194
+ * Retrieves a specific off-chrt vendor by ID. Scoped to the caller's org. | () -> (OffChrtVendor1)
195
+ *
196
+ * @param {string} id
197
+ * @param {OffChrtVendor.RequestOptions} requestOptions - Request-specific configuration.
198
+ *
199
+ * @throws {@link Chrt.UnprocessableEntityError}
200
+ *
201
+ * @example
202
+ * await client.orgs.offChrtVendor.getByIdV1("id")
203
+ */
204
+ getByIdV1(id, requestOptions) {
205
+ return core.HttpResponsePromise.fromPromise(this.__getByIdV1(id, requestOptions));
206
+ }
207
+ __getByIdV1(id, requestOptions) {
208
+ return __awaiter(this, void 0, void 0, function* () {
209
+ var _a, _b, _c, _d;
210
+ let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
211
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
212
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `orgs/off_chrt_vendor/v1/${encodeURIComponent(id)}`),
213
+ method: "GET",
214
+ headers: _headers,
215
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
216
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
217
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
218
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
219
+ });
220
+ if (_response.ok) {
221
+ return { data: _response.body, rawResponse: _response.rawResponse };
222
+ }
223
+ if (_response.error.reason === "status-code") {
224
+ switch (_response.error.statusCode) {
225
+ case 422:
226
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
227
+ default:
228
+ throw new errors.ChrtError({
229
+ statusCode: _response.error.statusCode,
230
+ body: _response.error.body,
231
+ rawResponse: _response.rawResponse,
232
+ });
233
+ }
234
+ }
235
+ switch (_response.error.reason) {
236
+ case "non-json":
237
+ throw new errors.ChrtError({
238
+ statusCode: _response.error.statusCode,
239
+ body: _response.error.rawBody,
240
+ rawResponse: _response.rawResponse,
241
+ });
242
+ case "timeout":
243
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/off_chrt_vendor/v1/{id}.");
244
+ case "unknown":
245
+ throw new errors.ChrtError({
246
+ message: _response.error.errorMessage,
247
+ rawResponse: _response.rawResponse,
248
+ });
249
+ }
250
+ });
251
+ }
252
+ /**
253
+ * Deletes an off-chrt vendor owned by the caller's organization. Existing LineItemGroups / Statements keep their snapshotted destination id; deletion does not cascade. | () -> (bool)
254
+ *
255
+ * @param {string} id
256
+ * @param {OffChrtVendor.RequestOptions} requestOptions - Request-specific configuration.
257
+ *
258
+ * @throws {@link Chrt.UnprocessableEntityError}
259
+ *
260
+ * @example
261
+ * await client.orgs.offChrtVendor.deleteByIdV1("id")
262
+ */
263
+ deleteByIdV1(id, requestOptions) {
264
+ return core.HttpResponsePromise.fromPromise(this.__deleteByIdV1(id, requestOptions));
265
+ }
266
+ __deleteByIdV1(id, requestOptions) {
267
+ return __awaiter(this, void 0, void 0, function* () {
268
+ var _a, _b, _c, _d;
269
+ let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
270
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
271
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `orgs/off_chrt_vendor/v1/${encodeURIComponent(id)}`),
272
+ method: "DELETE",
273
+ headers: _headers,
274
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
275
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
276
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
277
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
278
+ });
279
+ if (_response.ok) {
280
+ return { data: _response.body, rawResponse: _response.rawResponse };
281
+ }
282
+ if (_response.error.reason === "status-code") {
283
+ switch (_response.error.statusCode) {
284
+ case 422:
285
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
286
+ default:
287
+ throw new errors.ChrtError({
288
+ statusCode: _response.error.statusCode,
289
+ body: _response.error.body,
290
+ rawResponse: _response.rawResponse,
291
+ });
292
+ }
293
+ }
294
+ switch (_response.error.reason) {
295
+ case "non-json":
296
+ throw new errors.ChrtError({
297
+ statusCode: _response.error.statusCode,
298
+ body: _response.error.rawBody,
299
+ rawResponse: _response.rawResponse,
300
+ });
301
+ case "timeout":
302
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling DELETE /orgs/off_chrt_vendor/v1/{id}.");
303
+ case "unknown":
304
+ throw new errors.ChrtError({
305
+ message: _response.error.errorMessage,
306
+ rawResponse: _response.rawResponse,
307
+ });
308
+ }
309
+ });
310
+ }
311
+ /**
312
+ * Updates an existing off-chrt vendor owned by the caller's organization. | (OffChrtVendorClientUpdate1) -> (bool)
313
+ *
314
+ * @param {string} id
315
+ * @param {Chrt.orgs.OffChrtVendorClientUpdate1} request
316
+ * @param {OffChrtVendor.RequestOptions} requestOptions - Request-specific configuration.
317
+ *
318
+ * @throws {@link Chrt.UnprocessableEntityError}
319
+ *
320
+ * @example
321
+ * await client.orgs.offChrtVendor.updateByIdV1("id")
322
+ */
323
+ updateByIdV1(id, request = {}, requestOptions) {
324
+ return core.HttpResponsePromise.fromPromise(this.__updateByIdV1(id, request, requestOptions));
325
+ }
326
+ __updateByIdV1(id_1) {
327
+ return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
328
+ var _a, _b, _c, _d;
329
+ let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
330
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
331
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `orgs/off_chrt_vendor/v1/${encodeURIComponent(id)}`),
332
+ method: "PATCH",
333
+ headers: _headers,
334
+ contentType: "application/json",
335
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
336
+ requestType: "json",
337
+ body: request,
338
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
339
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
340
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
341
+ });
342
+ if (_response.ok) {
343
+ return { data: _response.body, rawResponse: _response.rawResponse };
344
+ }
345
+ if (_response.error.reason === "status-code") {
346
+ switch (_response.error.statusCode) {
347
+ case 422:
348
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
349
+ default:
350
+ throw new errors.ChrtError({
351
+ statusCode: _response.error.statusCode,
352
+ body: _response.error.body,
353
+ rawResponse: _response.rawResponse,
354
+ });
355
+ }
356
+ }
357
+ switch (_response.error.reason) {
358
+ case "non-json":
359
+ throw new errors.ChrtError({
360
+ statusCode: _response.error.statusCode,
361
+ body: _response.error.rawBody,
362
+ rawResponse: _response.rawResponse,
363
+ });
364
+ case "timeout":
365
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /orgs/off_chrt_vendor/v1/{id}.");
366
+ case "unknown":
367
+ throw new errors.ChrtError({
368
+ message: _response.error.errorMessage,
369
+ rawResponse: _response.rawResponse,
370
+ });
371
+ }
372
+ });
373
+ }
374
+ _getAuthorizationHeader() {
375
+ return __awaiter(this, void 0, void 0, function* () {
376
+ const bearer = yield core.Supplier.get(this._options.token);
377
+ if (bearer != null) {
378
+ return `Bearer ${bearer}`;
379
+ }
380
+ return undefined;
381
+ });
382
+ }
383
+ }
384
+ exports.OffChrtVendor = OffChrtVendor;
@@ -0,0 +1,2 @@
1
+ export {};
2
+ export * from "./requests/index.js";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./requests/index.js"), exports);
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * schema_version: 1,
8
+ * name: "name"
9
+ * }
10
+ */
11
+ export interface OffChrtVendorClientCreate1 {
12
+ schema_version: number;
13
+ name: string;
14
+ notes?: string | null;
15
+ }
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {}
7
+ */
8
+ export interface OffChrtVendorClientUpdate1 {
9
+ name?: string | null;
10
+ notes?: string | null;
11
+ notes__set_to_None?: boolean;
12
+ }
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * page: 1,
8
+ * page_size: 1
9
+ * }
10
+ */
11
+ export interface OffChrtVendorListV1Request {
12
+ page?: number | null;
13
+ page_size?: number | null;
14
+ }
@@ -0,0 +1,3 @@
1
+ export { type OffChrtVendorClientCreate1 } from "./OffChrtVendorClientCreate1.js";
2
+ export { type OffChrtVendorListV1Request } from "./OffChrtVendorListV1Request.js";
3
+ export { type OffChrtVendorClientUpdate1 } from "./OffChrtVendorClientUpdate1.js";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export * from "./client/index.js";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./client/index.js"), exports);
@@ -9,6 +9,8 @@ import { Flights } from "../resources/flights/client/Client.js";
9
9
  import { TaskArtifacts } from "../resources/taskArtifacts/client/Client.js";
10
10
  import { Orders } from "../resources/orders/client/Client.js";
11
11
  import { OrderDrafts } from "../resources/orderDrafts/client/Client.js";
12
+ import { OrderGroups } from "../resources/orderGroups/client/Client.js";
13
+ import { OrdersAndOrderGroups } from "../resources/ordersAndOrderGroups/client/Client.js";
12
14
  import { OrderSchedules } from "../resources/orderSchedules/client/Client.js";
13
15
  import { OrderTemplates } from "../resources/orderTemplates/client/Client.js";
14
16
  import { TaskGroups } from "../resources/taskGroups/client/Client.js";
@@ -32,6 +34,8 @@ export declare class Shipping {
32
34
  protected _taskArtifacts: TaskArtifacts | undefined;
33
35
  protected _orders: Orders | undefined;
34
36
  protected _orderDrafts: OrderDrafts | undefined;
37
+ protected _orderGroups: OrderGroups | undefined;
38
+ protected _ordersAndOrderGroups: OrdersAndOrderGroups | undefined;
35
39
  protected _orderSchedules: OrderSchedules | undefined;
36
40
  protected _orderTemplates: OrderTemplates | undefined;
37
41
  protected _taskGroups: TaskGroups | undefined;
@@ -43,6 +47,8 @@ export declare class Shipping {
43
47
  get taskArtifacts(): TaskArtifacts;
44
48
  get orders(): Orders;
45
49
  get orderDrafts(): OrderDrafts;
50
+ get orderGroups(): OrderGroups;
51
+ get ordersAndOrderGroups(): OrdersAndOrderGroups;
46
52
  get orderSchedules(): OrderSchedules;
47
53
  get orderTemplates(): OrderTemplates;
48
54
  get taskGroups(): TaskGroups;
@@ -10,10 +10,12 @@ const Client_js_3 = require("../resources/flights/client/Client.js");
10
10
  const Client_js_4 = require("../resources/taskArtifacts/client/Client.js");
11
11
  const Client_js_5 = require("../resources/orders/client/Client.js");
12
12
  const Client_js_6 = require("../resources/orderDrafts/client/Client.js");
13
- const Client_js_7 = require("../resources/orderSchedules/client/Client.js");
14
- const Client_js_8 = require("../resources/orderTemplates/client/Client.js");
15
- const Client_js_9 = require("../resources/taskGroups/client/Client.js");
16
- const Client_js_10 = require("../resources/tasks/client/Client.js");
13
+ const Client_js_7 = require("../resources/orderGroups/client/Client.js");
14
+ const Client_js_8 = require("../resources/ordersAndOrderGroups/client/Client.js");
15
+ const Client_js_9 = require("../resources/orderSchedules/client/Client.js");
16
+ const Client_js_10 = require("../resources/orderTemplates/client/Client.js");
17
+ const Client_js_11 = require("../resources/taskGroups/client/Client.js");
18
+ const Client_js_12 = require("../resources/tasks/client/Client.js");
17
19
  class Shipping {
18
20
  constructor(_options = {}) {
19
21
  this._options = _options;
@@ -42,21 +44,29 @@ class Shipping {
42
44
  var _a;
43
45
  return ((_a = this._orderDrafts) !== null && _a !== void 0 ? _a : (this._orderDrafts = new Client_js_6.OrderDrafts(this._options)));
44
46
  }
47
+ get orderGroups() {
48
+ var _a;
49
+ return ((_a = this._orderGroups) !== null && _a !== void 0 ? _a : (this._orderGroups = new Client_js_7.OrderGroups(this._options)));
50
+ }
51
+ get ordersAndOrderGroups() {
52
+ var _a;
53
+ return ((_a = this._ordersAndOrderGroups) !== null && _a !== void 0 ? _a : (this._ordersAndOrderGroups = new Client_js_8.OrdersAndOrderGroups(this._options)));
54
+ }
45
55
  get orderSchedules() {
46
56
  var _a;
47
- return ((_a = this._orderSchedules) !== null && _a !== void 0 ? _a : (this._orderSchedules = new Client_js_7.OrderSchedules(this._options)));
57
+ return ((_a = this._orderSchedules) !== null && _a !== void 0 ? _a : (this._orderSchedules = new Client_js_9.OrderSchedules(this._options)));
48
58
  }
49
59
  get orderTemplates() {
50
60
  var _a;
51
- return ((_a = this._orderTemplates) !== null && _a !== void 0 ? _a : (this._orderTemplates = new Client_js_8.OrderTemplates(this._options)));
61
+ return ((_a = this._orderTemplates) !== null && _a !== void 0 ? _a : (this._orderTemplates = new Client_js_10.OrderTemplates(this._options)));
52
62
  }
53
63
  get taskGroups() {
54
64
  var _a;
55
- return ((_a = this._taskGroups) !== null && _a !== void 0 ? _a : (this._taskGroups = new Client_js_9.TaskGroups(this._options)));
65
+ return ((_a = this._taskGroups) !== null && _a !== void 0 ? _a : (this._taskGroups = new Client_js_11.TaskGroups(this._options)));
56
66
  }
57
67
  get tasks() {
58
68
  var _a;
59
- return ((_a = this._tasks) !== null && _a !== void 0 ? _a : (this._tasks = new Client_js_10.Tasks(this._options)));
69
+ return ((_a = this._tasks) !== null && _a !== void 0 ? _a : (this._tasks = new Client_js_12.Tasks(this._options)));
60
70
  }
61
71
  }
62
72
  exports.Shipping = Shipping;
@@ -57,7 +57,7 @@ export declare class Flights {
57
57
  getFlightLegsForTaskGroupV1(taskGroupId: string, requestOptions?: Flights.RequestOptions): core.HttpResponsePromise<Chrt.FlightInfoForTaskRes>;
58
58
  private __getFlightLegsForTaskGroupV1;
59
59
  /**
60
- * Returns the flight leg with its Cirium-sourced status, lazily resolving the Cirium flightId and refreshing the cached status on read. | authz_personas=[driver_for_executor, coordinator_org_operators, executor_org_operators, shipper_org_operators] | () -> (FlightLeg1)
60
+ * Returns the flight leg with its Cirium-sourced status, lazily resolving the Cirium flightId and refreshing the cached status on read. | authz_personas=[driver_for_executor, coordinator_org_operators, executor_org_operators, order_executor_org_operators, shipper_org_operators] | () -> (FlightLeg1)
61
61
  *
62
62
  * @param {string} flightLegId
63
63
  * @param {Flights.RequestOptions} requestOptions - Request-specific configuration.
@@ -70,7 +70,7 @@ export declare class Flights {
70
70
  getFlightStatusForFlightLegV1(flightLegId: string, requestOptions?: Flights.RequestOptions): core.HttpResponsePromise<Chrt.FlightLeg1>;
71
71
  private __getFlightStatusForFlightLegV1;
72
72
  /**
73
- * Returns the Cirium-sourced positional track for a flight leg — the live breadcrumb trail plus the planned path (waypoints + legacy route) in one read-through call, cached on read. | authz_personas=[driver_for_executor, coordinator_org_operators, executor_org_operators, shipper_org_operators] | () -> (FlightTrackRes)
73
+ * Returns the Cirium-sourced positional track for a flight leg — the live breadcrumb trail plus the planned path (waypoints + legacy route) in one read-through call, cached on read. | authz_personas=[driver_for_executor, coordinator_org_operators, executor_org_operators, order_executor_org_operators, shipper_org_operators] | () -> (FlightTrackRes)
74
74
  *
75
75
  * @param {string} flightLegId
76
76
  * @param {Flights.RequestOptions} requestOptions - Request-specific configuration.
@@ -174,7 +174,7 @@ class Flights {
174
174
  });
175
175
  }
176
176
  /**
177
- * Returns the flight leg with its Cirium-sourced status, lazily resolving the Cirium flightId and refreshing the cached status on read. | authz_personas=[driver_for_executor, coordinator_org_operators, executor_org_operators, shipper_org_operators] | () -> (FlightLeg1)
177
+ * Returns the flight leg with its Cirium-sourced status, lazily resolving the Cirium flightId and refreshing the cached status on read. | authz_personas=[driver_for_executor, coordinator_org_operators, executor_org_operators, order_executor_org_operators, shipper_org_operators] | () -> (FlightLeg1)
178
178
  *
179
179
  * @param {string} flightLegId
180
180
  * @param {Flights.RequestOptions} requestOptions - Request-specific configuration.
@@ -233,7 +233,7 @@ class Flights {
233
233
  });
234
234
  }
235
235
  /**
236
- * Returns the Cirium-sourced positional track for a flight leg — the live breadcrumb trail plus the planned path (waypoints + legacy route) in one read-through call, cached on read. | authz_personas=[driver_for_executor, coordinator_org_operators, executor_org_operators, shipper_org_operators] | () -> (FlightTrackRes)
236
+ * Returns the Cirium-sourced positional track for a flight leg — the live breadcrumb trail plus the planned path (waypoints + legacy route) in one read-through call, cached on read. | authz_personas=[driver_for_executor, coordinator_org_operators, executor_org_operators, order_executor_org_operators, shipper_org_operators] | () -> (FlightTrackRes)
237
237
  *
238
238
  * @param {string} flightLegId
239
239
  * @param {Flights.RequestOptions} requestOptions - Request-specific configuration.
@@ -5,6 +5,8 @@ export * as cargos from "./cargos/index.js";
5
5
  export * as flights from "./flights/index.js";
6
6
  export * as taskArtifacts from "./taskArtifacts/index.js";
7
7
  export * as orders from "./orders/index.js";
8
+ export * as orderGroups from "./orderGroups/index.js";
9
+ export * as ordersAndOrderGroups from "./ordersAndOrderGroups/index.js";
8
10
  export * as orderSchedules from "./orderSchedules/index.js";
9
11
  export * as orderTemplates from "./orderTemplates/index.js";
10
12
  export * as taskGroups from "./taskGroups/index.js";
@@ -13,6 +15,8 @@ export * from "./drivers/client/requests/index.js";
13
15
  export * from "./taskArtifacts/client/requests/index.js";
14
16
  export * from "./orders/client/requests/index.js";
15
17
  export * from "./orderDrafts/client/requests/index.js";
18
+ export * from "./orderGroups/client/requests/index.js";
19
+ export * from "./ordersAndOrderGroups/client/requests/index.js";
16
20
  export * from "./orderSchedules/client/requests/index.js";
17
21
  export * from "./orderTemplates/client/requests/index.js";
18
22
  export * from "./taskGroups/client/requests/index.js";
@@ -36,7 +36,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.tasks = exports.taskGroups = exports.orderTemplates = exports.orderSchedules = exports.orders = exports.taskArtifacts = exports.flights = exports.cargos = exports.orderDrafts = exports.drivers = void 0;
39
+ exports.tasks = exports.taskGroups = exports.orderTemplates = exports.orderSchedules = exports.ordersAndOrderGroups = exports.orderGroups = exports.orders = exports.taskArtifacts = exports.flights = exports.cargos = exports.orderDrafts = exports.drivers = void 0;
40
40
  exports.drivers = __importStar(require("./drivers/index.js"));
41
41
  __exportStar(require("./drivers/types/index.js"), exports);
42
42
  exports.orderDrafts = __importStar(require("./orderDrafts/index.js"));
@@ -44,6 +44,8 @@ exports.cargos = __importStar(require("./cargos/index.js"));
44
44
  exports.flights = __importStar(require("./flights/index.js"));
45
45
  exports.taskArtifacts = __importStar(require("./taskArtifacts/index.js"));
46
46
  exports.orders = __importStar(require("./orders/index.js"));
47
+ exports.orderGroups = __importStar(require("./orderGroups/index.js"));
48
+ exports.ordersAndOrderGroups = __importStar(require("./ordersAndOrderGroups/index.js"));
47
49
  exports.orderSchedules = __importStar(require("./orderSchedules/index.js"));
48
50
  exports.orderTemplates = __importStar(require("./orderTemplates/index.js"));
49
51
  exports.taskGroups = __importStar(require("./taskGroups/index.js"));
@@ -52,6 +54,8 @@ __exportStar(require("./drivers/client/requests/index.js"), exports);
52
54
  __exportStar(require("./taskArtifacts/client/requests/index.js"), exports);
53
55
  __exportStar(require("./orders/client/requests/index.js"), exports);
54
56
  __exportStar(require("./orderDrafts/client/requests/index.js"), exports);
57
+ __exportStar(require("./orderGroups/client/requests/index.js"), exports);
58
+ __exportStar(require("./ordersAndOrderGroups/client/requests/index.js"), exports);
55
59
  __exportStar(require("./orderSchedules/client/requests/index.js"), exports);
56
60
  __exportStar(require("./orderTemplates/client/requests/index.js"), exports);
57
61
  __exportStar(require("./taskGroups/client/requests/index.js"), exports);