@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
@@ -56,8 +56,8 @@ class ChrtClient {
56
56
  this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
57
57
  "X-Fern-Language": "JavaScript",
58
58
  "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
59
- "X-Fern-SDK-Version": "1.760.0",
60
- "User-Agent": "@chrt-inc/typescript-sdk/1.760.0",
59
+ "X-Fern-SDK-Version": "1.772.0",
60
+ "User-Agent": "@chrt-inc/typescript-sdk/1.772.0",
61
61
  "X-Fern-Runtime": core.RUNTIME.type,
62
62
  "X-Fern-Runtime-Version": core.RUNTIME.version,
63
63
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -18,5 +18,7 @@ export interface LineItemGroupAdHocCreateClientReq {
18
18
  payment_destination_org_id?: string | null;
19
19
  payment_destination_off_chrt_provider_org_id?: string | null;
20
20
  payment_destination_driver_id?: string | null;
21
+ payment_destination_off_chrt_vendor_id?: string | null;
22
+ order_group_id?: string | null;
21
23
  line_items?: Chrt.LineItemClientCreate1[];
22
24
  }
@@ -17,4 +17,6 @@ export interface StatementCreateClientReq {
17
17
  payment_destination_org_id?: string | null;
18
18
  payment_destination_off_chrt_provider_org_id?: string | null;
19
19
  payment_destination_driver_id?: string | null;
20
+ payment_destination_off_chrt_vendor_id?: string | null;
21
+ order_group_id?: string | null;
20
22
  }
@@ -47,11 +47,28 @@ export declare class AdHoc {
47
47
  */
48
48
  listByOrderIdV1(orderId: string, request?: Chrt.notifications.AdHocListByOrderIdV1Request, requestOptions?: AdHoc.RequestOptions): core.HttpResponsePromise<Chrt.NotificationAdHocListRes>;
49
49
  private __listByOrderIdV1;
50
+ /**
51
+ * Lists all ad-hoc notification intents for a tracking session. | authz: min_org_role=operator | () -> (NotificationAdHocListRes)
52
+ *
53
+ * @param {string} sessionId
54
+ * @param {Chrt.notifications.AdHocListBySessionIdV1Request} request
55
+ * @param {AdHoc.RequestOptions} requestOptions - Request-specific configuration.
56
+ *
57
+ * @throws {@link Chrt.UnprocessableEntityError}
58
+ *
59
+ * @example
60
+ * await client.notifications.adHoc.listBySessionIdV1("session_id", {
61
+ * page: 1,
62
+ * page_size: 1
63
+ * })
64
+ */
65
+ listBySessionIdV1(sessionId: string, request?: Chrt.notifications.AdHocListBySessionIdV1Request, requestOptions?: AdHoc.RequestOptions): core.HttpResponsePromise<Chrt.NotificationAdHocListRes>;
66
+ private __listBySessionIdV1;
50
67
  /**
51
68
  * Creates a new ad-hoc notification intent for an order. | authz: min_org_role=operator | (NotificationIntentAdHocClientCreate1) -> (PydanticObjectId)
52
69
  *
53
70
  * @param {string} orderId
54
- * @param {Chrt.notifications.NotificationIntentAdHocClientCreate1} request
71
+ * @param {Chrt.NotificationIntentAdHocClientCreate1} request
55
72
  * @param {AdHoc.RequestOptions} requestOptions - Request-specific configuration.
56
73
  *
57
74
  * @throws {@link Chrt.UnprocessableEntityError}
@@ -62,8 +79,25 @@ export declare class AdHoc {
62
79
  * directory_entry_id: "directory_entry_id"
63
80
  * })
64
81
  */
65
- createV1(orderId: string, request: Chrt.notifications.NotificationIntentAdHocClientCreate1, requestOptions?: AdHoc.RequestOptions): core.HttpResponsePromise<string>;
82
+ createV1(orderId: string, request: Chrt.NotificationIntentAdHocClientCreate1, requestOptions?: AdHoc.RequestOptions): core.HttpResponsePromise<string>;
66
83
  private __createV1;
84
+ /**
85
+ * Creates a new ad-hoc notification intent for a tracking session. | authz: min_org_role=operator | (NotificationIntentAdHocClientCreate1) -> (PydanticObjectId)
86
+ *
87
+ * @param {string} sessionId
88
+ * @param {Chrt.NotificationIntentAdHocClientCreate1} request
89
+ * @param {AdHoc.RequestOptions} requestOptions - Request-specific configuration.
90
+ *
91
+ * @throws {@link Chrt.UnprocessableEntityError}
92
+ *
93
+ * @example
94
+ * await client.notifications.adHoc.createForSessionV1("session_id", {
95
+ * schema_version: 1,
96
+ * directory_entry_id: "directory_entry_id"
97
+ * })
98
+ */
99
+ createForSessionV1(sessionId: string, request: Chrt.NotificationIntentAdHocClientCreate1, requestOptions?: AdHoc.RequestOptions): core.HttpResponsePromise<string>;
100
+ private __createForSessionV1;
67
101
  /**
68
102
  * Deletes an ad-hoc notification intent. | authz: min_org_role=operator | () -> (bool)
69
103
  *
@@ -126,11 +126,82 @@ class AdHoc {
126
126
  }
127
127
  });
128
128
  }
129
+ /**
130
+ * Lists all ad-hoc notification intents for a tracking session. | authz: min_org_role=operator | () -> (NotificationAdHocListRes)
131
+ *
132
+ * @param {string} sessionId
133
+ * @param {Chrt.notifications.AdHocListBySessionIdV1Request} request
134
+ * @param {AdHoc.RequestOptions} requestOptions - Request-specific configuration.
135
+ *
136
+ * @throws {@link Chrt.UnprocessableEntityError}
137
+ *
138
+ * @example
139
+ * await client.notifications.adHoc.listBySessionIdV1("session_id", {
140
+ * page: 1,
141
+ * page_size: 1
142
+ * })
143
+ */
144
+ listBySessionIdV1(sessionId, request = {}, requestOptions) {
145
+ return core.HttpResponsePromise.fromPromise(this.__listBySessionIdV1(sessionId, request, requestOptions));
146
+ }
147
+ __listBySessionIdV1(sessionId_1) {
148
+ return __awaiter(this, arguments, void 0, function* (sessionId, request = {}, requestOptions) {
149
+ var _a, _b, _c, _d, _e, _f;
150
+ const { page, page_size: pageSize } = request;
151
+ const _queryParams = {};
152
+ if (page !== undefined) {
153
+ _queryParams["page"] = (_a = page === null || page === void 0 ? void 0 : page.toString()) !== null && _a !== void 0 ? _a : null;
154
+ }
155
+ if (pageSize !== undefined) {
156
+ _queryParams["page_size"] = (_b = pageSize === null || pageSize === void 0 ? void 0 : pageSize.toString()) !== null && _b !== void 0 ? _b : null;
157
+ }
158
+ 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);
159
+ const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
160
+ 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, `notifications/ad_hoc/list_by_session_id/v1/${encodeURIComponent(sessionId)}`),
161
+ method: "GET",
162
+ headers: _headers,
163
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
164
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
165
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
166
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
167
+ });
168
+ if (_response.ok) {
169
+ return { data: _response.body, rawResponse: _response.rawResponse };
170
+ }
171
+ if (_response.error.reason === "status-code") {
172
+ switch (_response.error.statusCode) {
173
+ case 422:
174
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
175
+ default:
176
+ throw new errors.ChrtError({
177
+ statusCode: _response.error.statusCode,
178
+ body: _response.error.body,
179
+ rawResponse: _response.rawResponse,
180
+ });
181
+ }
182
+ }
183
+ switch (_response.error.reason) {
184
+ case "non-json":
185
+ throw new errors.ChrtError({
186
+ statusCode: _response.error.statusCode,
187
+ body: _response.error.rawBody,
188
+ rawResponse: _response.rawResponse,
189
+ });
190
+ case "timeout":
191
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /notifications/ad_hoc/list_by_session_id/v1/{session_id}.");
192
+ case "unknown":
193
+ throw new errors.ChrtError({
194
+ message: _response.error.errorMessage,
195
+ rawResponse: _response.rawResponse,
196
+ });
197
+ }
198
+ });
199
+ }
129
200
  /**
130
201
  * Creates a new ad-hoc notification intent for an order. | authz: min_org_role=operator | (NotificationIntentAdHocClientCreate1) -> (PydanticObjectId)
131
202
  *
132
203
  * @param {string} orderId
133
- * @param {Chrt.notifications.NotificationIntentAdHocClientCreate1} request
204
+ * @param {Chrt.NotificationIntentAdHocClientCreate1} request
134
205
  * @param {AdHoc.RequestOptions} requestOptions - Request-specific configuration.
135
206
  *
136
207
  * @throws {@link Chrt.UnprocessableEntityError}
@@ -192,6 +263,72 @@ class AdHoc {
192
263
  }
193
264
  });
194
265
  }
266
+ /**
267
+ * Creates a new ad-hoc notification intent for a tracking session. | authz: min_org_role=operator | (NotificationIntentAdHocClientCreate1) -> (PydanticObjectId)
268
+ *
269
+ * @param {string} sessionId
270
+ * @param {Chrt.NotificationIntentAdHocClientCreate1} request
271
+ * @param {AdHoc.RequestOptions} requestOptions - Request-specific configuration.
272
+ *
273
+ * @throws {@link Chrt.UnprocessableEntityError}
274
+ *
275
+ * @example
276
+ * await client.notifications.adHoc.createForSessionV1("session_id", {
277
+ * schema_version: 1,
278
+ * directory_entry_id: "directory_entry_id"
279
+ * })
280
+ */
281
+ createForSessionV1(sessionId, request, requestOptions) {
282
+ return core.HttpResponsePromise.fromPromise(this.__createForSessionV1(sessionId, request, requestOptions));
283
+ }
284
+ __createForSessionV1(sessionId, request, requestOptions) {
285
+ return __awaiter(this, void 0, void 0, function* () {
286
+ var _a, _b, _c, _d;
287
+ 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);
288
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
289
+ 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, `notifications/ad_hoc/create_for_session/v1/${encodeURIComponent(sessionId)}`),
290
+ method: "POST",
291
+ headers: _headers,
292
+ contentType: "application/json",
293
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
294
+ requestType: "json",
295
+ body: request,
296
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
297
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
298
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
299
+ });
300
+ if (_response.ok) {
301
+ return { data: _response.body, rawResponse: _response.rawResponse };
302
+ }
303
+ if (_response.error.reason === "status-code") {
304
+ switch (_response.error.statusCode) {
305
+ case 422:
306
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
307
+ default:
308
+ throw new errors.ChrtError({
309
+ statusCode: _response.error.statusCode,
310
+ body: _response.error.body,
311
+ rawResponse: _response.rawResponse,
312
+ });
313
+ }
314
+ }
315
+ switch (_response.error.reason) {
316
+ case "non-json":
317
+ throw new errors.ChrtError({
318
+ statusCode: _response.error.statusCode,
319
+ body: _response.error.rawBody,
320
+ rawResponse: _response.rawResponse,
321
+ });
322
+ case "timeout":
323
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /notifications/ad_hoc/create_for_session/v1/{session_id}.");
324
+ case "unknown":
325
+ throw new errors.ChrtError({
326
+ message: _response.error.errorMessage,
327
+ rawResponse: _response.rawResponse,
328
+ });
329
+ }
330
+ });
331
+ }
195
332
  /**
196
333
  * Deletes an ad-hoc notification intent. | authz: min_org_role=operator | () -> (bool)
197
334
  *
@@ -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 AdHocListBySessionIdV1Request {
12
+ page?: number | null;
13
+ page_size?: number | null;
14
+ }
@@ -1,2 +1,2 @@
1
1
  export { type AdHocListByOrderIdV1Request } from "./AdHocListByOrderIdV1Request.js";
2
- export { type NotificationIntentAdHocClientCreate1 } from "./NotificationIntentAdHocClientCreate1.js";
2
+ export { type AdHocListBySessionIdV1Request } from "./AdHocListBySessionIdV1Request.js";
@@ -132,6 +132,22 @@ export declare class Cases {
132
132
  */
133
133
  getSuggestedDepartmentV1(caseId: string, requestOptions?: Cases.RequestOptions): core.HttpResponsePromise<(string | null) | undefined>;
134
134
  private __getSuggestedDepartmentV1;
135
+ /**
136
+ * Sets the case's operator billing-review status. | authz: min_org_role=operator | (CaseSetBillingReviewStatusReq) -> (bool)
137
+ *
138
+ * @param {string} caseId
139
+ * @param {Chrt.operations.CaseSetBillingReviewStatusReq} request
140
+ * @param {Cases.RequestOptions} requestOptions - Request-specific configuration.
141
+ *
142
+ * @throws {@link Chrt.UnprocessableEntityError}
143
+ *
144
+ * @example
145
+ * await client.operations.cases.setBillingReviewStatusV1("case_id", {
146
+ * billing_review_status: "not_started"
147
+ * })
148
+ */
149
+ setBillingReviewStatusV1(caseId: string, request: Chrt.operations.CaseSetBillingReviewStatusReq, requestOptions?: Cases.RequestOptions): core.HttpResponsePromise<boolean>;
150
+ private __setBillingReviewStatusV1;
135
151
  /**
136
152
  * Adds operator(s) to a case. | authz: min_org_role=operator | (CaseAssignReq) -> (bool)
137
153
  *
@@ -512,6 +512,71 @@ class Cases {
512
512
  }
513
513
  });
514
514
  }
515
+ /**
516
+ * Sets the case's operator billing-review status. | authz: min_org_role=operator | (CaseSetBillingReviewStatusReq) -> (bool)
517
+ *
518
+ * @param {string} caseId
519
+ * @param {Chrt.operations.CaseSetBillingReviewStatusReq} request
520
+ * @param {Cases.RequestOptions} requestOptions - Request-specific configuration.
521
+ *
522
+ * @throws {@link Chrt.UnprocessableEntityError}
523
+ *
524
+ * @example
525
+ * await client.operations.cases.setBillingReviewStatusV1("case_id", {
526
+ * billing_review_status: "not_started"
527
+ * })
528
+ */
529
+ setBillingReviewStatusV1(caseId, request, requestOptions) {
530
+ return core.HttpResponsePromise.fromPromise(this.__setBillingReviewStatusV1(caseId, request, requestOptions));
531
+ }
532
+ __setBillingReviewStatusV1(caseId, request, requestOptions) {
533
+ return __awaiter(this, void 0, void 0, function* () {
534
+ var _a, _b, _c, _d;
535
+ 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);
536
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
537
+ 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, `operations/cases/set_billing_review_status/v1/${encodeURIComponent(caseId)}`),
538
+ method: "PATCH",
539
+ headers: _headers,
540
+ contentType: "application/json",
541
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
542
+ requestType: "json",
543
+ body: request,
544
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
545
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
546
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
547
+ });
548
+ if (_response.ok) {
549
+ return { data: _response.body, rawResponse: _response.rawResponse };
550
+ }
551
+ if (_response.error.reason === "status-code") {
552
+ switch (_response.error.statusCode) {
553
+ case 422:
554
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
555
+ default:
556
+ throw new errors.ChrtError({
557
+ statusCode: _response.error.statusCode,
558
+ body: _response.error.body,
559
+ rawResponse: _response.rawResponse,
560
+ });
561
+ }
562
+ }
563
+ switch (_response.error.reason) {
564
+ case "non-json":
565
+ throw new errors.ChrtError({
566
+ statusCode: _response.error.statusCode,
567
+ body: _response.error.rawBody,
568
+ rawResponse: _response.rawResponse,
569
+ });
570
+ case "timeout":
571
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /operations/cases/set_billing_review_status/v1/{case_id}.");
572
+ case "unknown":
573
+ throw new errors.ChrtError({
574
+ message: _response.error.errorMessage,
575
+ rawResponse: _response.rawResponse,
576
+ });
577
+ }
578
+ });
579
+ }
515
580
  /**
516
581
  * Adds operator(s) to a case. | authz: min_org_role=operator | (CaseAssignReq) -> (bool)
517
582
  *
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../../../../../../index.js";
5
+ /**
6
+ * @example
7
+ * {
8
+ * billing_review_status: "not_started"
9
+ * }
10
+ */
11
+ export interface CaseSetBillingReviewStatusReq {
12
+ billing_review_status: Chrt.BillingReviewStatusEnum;
13
+ }
@@ -1,5 +1,6 @@
1
1
  export { type CasesListV1Request } from "./CasesListV1Request.js";
2
2
  export { type CaseClientUpdate1 } from "./CaseClientUpdate1.js";
3
+ export { type CaseSetBillingReviewStatusReq } from "./CaseSetBillingReviewStatusReq.js";
3
4
  export { type CaseAssignReq } from "./CaseAssignReq.js";
4
5
  export { type CaseUnassignReq } from "./CaseUnassignReq.js";
5
6
  export { type CaseAddMessageReq } from "./CaseAddMessageReq.js";
@@ -11,6 +11,7 @@ import { ComplianceDocuments } from "../resources/complianceDocuments/client/Cli
11
11
  import { PrivateData } from "../resources/privateData/client/Client.js";
12
12
  import { OrgProfiles } from "../resources/orgProfiles/client/Client.js";
13
13
  import { PublicData } from "../resources/publicData/client/Client.js";
14
+ import { OffChrtVendor } from "../resources/offChrtVendor/client/Client.js";
14
15
  import { OrgInfoForConnections } from "../resources/orgInfoForConnections/client/Client.js";
15
16
  export declare namespace Orgs {
16
17
  interface Options {
@@ -44,6 +45,7 @@ export declare class Orgs {
44
45
  protected _privateData: PrivateData | undefined;
45
46
  protected _orgProfiles: OrgProfiles | undefined;
46
47
  protected _publicData: PublicData | undefined;
48
+ protected _offChrtVendor: OffChrtVendor | undefined;
47
49
  protected _orgInfoForConnections: OrgInfoForConnections | undefined;
48
50
  constructor(_options?: Orgs.Options);
49
51
  get connections(): Connections;
@@ -53,6 +55,7 @@ export declare class Orgs {
53
55
  get privateData(): PrivateData;
54
56
  get orgProfiles(): OrgProfiles;
55
57
  get publicData(): PublicData;
58
+ get offChrtVendor(): OffChrtVendor;
56
59
  get orgInfoForConnections(): OrgInfoForConnections;
57
60
  /**
58
61
  * Retrieves basic organization information from the authentication service. | () -> (OrgInfoResponse)
@@ -58,7 +58,8 @@ const Client_js_4 = require("../resources/complianceDocuments/client/Client.js")
58
58
  const Client_js_5 = require("../resources/privateData/client/Client.js");
59
59
  const Client_js_6 = require("../resources/orgProfiles/client/Client.js");
60
60
  const Client_js_7 = require("../resources/publicData/client/Client.js");
61
- const Client_js_8 = require("../resources/orgInfoForConnections/client/Client.js");
61
+ const Client_js_8 = require("../resources/offChrtVendor/client/Client.js");
62
+ const Client_js_9 = require("../resources/orgInfoForConnections/client/Client.js");
62
63
  class Orgs {
63
64
  constructor(_options = {}) {
64
65
  this._options = _options;
@@ -91,9 +92,13 @@ class Orgs {
91
92
  var _a;
92
93
  return ((_a = this._publicData) !== null && _a !== void 0 ? _a : (this._publicData = new Client_js_7.PublicData(this._options)));
93
94
  }
95
+ get offChrtVendor() {
96
+ var _a;
97
+ return ((_a = this._offChrtVendor) !== null && _a !== void 0 ? _a : (this._offChrtVendor = new Client_js_8.OffChrtVendor(this._options)));
98
+ }
94
99
  get orgInfoForConnections() {
95
100
  var _a;
96
- return ((_a = this._orgInfoForConnections) !== null && _a !== void 0 ? _a : (this._orgInfoForConnections = new Client_js_8.OrgInfoForConnections(this._options)));
101
+ return ((_a = this._orgInfoForConnections) !== null && _a !== void 0 ? _a : (this._orgInfoForConnections = new Client_js_9.OrgInfoForConnections(this._options)));
97
102
  }
98
103
  /**
99
104
  * Retrieves basic organization information from the authentication service. | () -> (OrgInfoResponse)
@@ -6,6 +6,7 @@ export * as complianceDocuments from "./complianceDocuments/index.js";
6
6
  export * as privateData from "./privateData/index.js";
7
7
  export * as orgProfiles from "./orgProfiles/index.js";
8
8
  export * as publicData from "./publicData/index.js";
9
+ export * as offChrtVendor from "./offChrtVendor/index.js";
9
10
  export * as orgInfoForConnections from "./orgInfoForConnections/index.js";
10
11
  export * from "./connections/client/requests/index.js";
11
12
  export * from "./offChrtProviderOrg/client/requests/index.js";
@@ -13,3 +14,4 @@ export * from "./offChrtShipperOrg/client/requests/index.js";
13
14
  export * from "./complianceDocuments/client/requests/index.js";
14
15
  export * from "./orgProfiles/client/requests/index.js";
15
16
  export * from "./publicData/client/requests/index.js";
17
+ export * from "./offChrtVendor/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.orgInfoForConnections = exports.publicData = exports.orgProfiles = exports.privateData = exports.complianceDocuments = exports.offChrtShipperOrg = exports.offChrtProviderOrg = exports.connections = void 0;
39
+ exports.orgInfoForConnections = exports.offChrtVendor = exports.publicData = exports.orgProfiles = exports.privateData = exports.complianceDocuments = exports.offChrtShipperOrg = exports.offChrtProviderOrg = exports.connections = void 0;
40
40
  exports.connections = __importStar(require("./connections/index.js"));
41
41
  __exportStar(require("./connections/types/index.js"), exports);
42
42
  exports.offChrtProviderOrg = __importStar(require("./offChrtProviderOrg/index.js"));
@@ -45,6 +45,7 @@ exports.complianceDocuments = __importStar(require("./complianceDocuments/index.
45
45
  exports.privateData = __importStar(require("./privateData/index.js"));
46
46
  exports.orgProfiles = __importStar(require("./orgProfiles/index.js"));
47
47
  exports.publicData = __importStar(require("./publicData/index.js"));
48
+ exports.offChrtVendor = __importStar(require("./offChrtVendor/index.js"));
48
49
  exports.orgInfoForConnections = __importStar(require("./orgInfoForConnections/index.js"));
49
50
  __exportStar(require("./connections/client/requests/index.js"), exports);
50
51
  __exportStar(require("./offChrtProviderOrg/client/requests/index.js"), exports);
@@ -52,3 +53,4 @@ __exportStar(require("./offChrtShipperOrg/client/requests/index.js"), exports);
52
53
  __exportStar(require("./complianceDocuments/client/requests/index.js"), exports);
53
54
  __exportStar(require("./orgProfiles/client/requests/index.js"), exports);
54
55
  __exportStar(require("./publicData/client/requests/index.js"), exports);
56
+ __exportStar(require("./offChrtVendor/client/requests/index.js"), exports);
@@ -0,0 +1,106 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as environments from "../../../../../../environments.js";
5
+ import * as core from "../../../../../../core/index.js";
6
+ import * as Chrt from "../../../../../index.js";
7
+ export declare namespace OffChrtVendor {
8
+ interface Options {
9
+ environment?: core.Supplier<environments.ChrtEnvironment | string>;
10
+ /** Specify a custom URL to connect the client to. */
11
+ baseUrl?: core.Supplier<string>;
12
+ token?: core.Supplier<core.BearerToken | undefined>;
13
+ /** Additional headers to include in requests. */
14
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
15
+ fetcher?: core.FetchFunction;
16
+ }
17
+ interface RequestOptions {
18
+ /** The maximum time to wait for a response in seconds. */
19
+ timeoutInSeconds?: number;
20
+ /** The number of times to retry the request. Defaults to 2. */
21
+ maxRetries?: number;
22
+ /** A hook to abort the request. */
23
+ abortSignal?: AbortSignal;
24
+ /** Additional query string parameters to include in the request. */
25
+ queryParams?: Record<string, unknown>;
26
+ /** Additional headers to include in the request. */
27
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
28
+ }
29
+ }
30
+ export declare class OffChrtVendor {
31
+ protected readonly _options: OffChrtVendor.Options;
32
+ constructor(_options?: OffChrtVendor.Options);
33
+ /**
34
+ * 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)
35
+ *
36
+ * @param {Chrt.orgs.OffChrtVendorClientCreate1} request
37
+ * @param {OffChrtVendor.RequestOptions} requestOptions - Request-specific configuration.
38
+ *
39
+ * @throws {@link Chrt.UnprocessableEntityError}
40
+ *
41
+ * @example
42
+ * await client.orgs.offChrtVendor.createV1({
43
+ * schema_version: 1,
44
+ * name: "name"
45
+ * })
46
+ */
47
+ createV1(request: Chrt.orgs.OffChrtVendorClientCreate1, requestOptions?: OffChrtVendor.RequestOptions): core.HttpResponsePromise<string>;
48
+ private __createV1;
49
+ /**
50
+ * Lists all off-chrt vendors created by the caller's organization. Pagination only — no search/filter. | () -> (OffChrtVendorListRes)
51
+ *
52
+ * @param {Chrt.orgs.OffChrtVendorListV1Request} request
53
+ * @param {OffChrtVendor.RequestOptions} requestOptions - Request-specific configuration.
54
+ *
55
+ * @throws {@link Chrt.UnprocessableEntityError}
56
+ *
57
+ * @example
58
+ * await client.orgs.offChrtVendor.listV1({
59
+ * page: 1,
60
+ * page_size: 1
61
+ * })
62
+ */
63
+ listV1(request?: Chrt.orgs.OffChrtVendorListV1Request, requestOptions?: OffChrtVendor.RequestOptions): core.HttpResponsePromise<Chrt.OffChrtVendorListRes>;
64
+ private __listV1;
65
+ /**
66
+ * Retrieves a specific off-chrt vendor by ID. Scoped to the caller's org. | () -> (OffChrtVendor1)
67
+ *
68
+ * @param {string} id
69
+ * @param {OffChrtVendor.RequestOptions} requestOptions - Request-specific configuration.
70
+ *
71
+ * @throws {@link Chrt.UnprocessableEntityError}
72
+ *
73
+ * @example
74
+ * await client.orgs.offChrtVendor.getByIdV1("id")
75
+ */
76
+ getByIdV1(id: string, requestOptions?: OffChrtVendor.RequestOptions): core.HttpResponsePromise<Chrt.OffChrtVendor1>;
77
+ private __getByIdV1;
78
+ /**
79
+ * Deletes an off-chrt vendor owned by the caller's organization. Existing LineItemGroups / Statements keep their snapshotted destination id; deletion does not cascade. | () -> (bool)
80
+ *
81
+ * @param {string} id
82
+ * @param {OffChrtVendor.RequestOptions} requestOptions - Request-specific configuration.
83
+ *
84
+ * @throws {@link Chrt.UnprocessableEntityError}
85
+ *
86
+ * @example
87
+ * await client.orgs.offChrtVendor.deleteByIdV1("id")
88
+ */
89
+ deleteByIdV1(id: string, requestOptions?: OffChrtVendor.RequestOptions): core.HttpResponsePromise<boolean>;
90
+ private __deleteByIdV1;
91
+ /**
92
+ * Updates an existing off-chrt vendor owned by the caller's organization. | (OffChrtVendorClientUpdate1) -> (bool)
93
+ *
94
+ * @param {string} id
95
+ * @param {Chrt.orgs.OffChrtVendorClientUpdate1} request
96
+ * @param {OffChrtVendor.RequestOptions} requestOptions - Request-specific configuration.
97
+ *
98
+ * @throws {@link Chrt.UnprocessableEntityError}
99
+ *
100
+ * @example
101
+ * await client.orgs.offChrtVendor.updateByIdV1("id")
102
+ */
103
+ updateByIdV1(id: string, request?: Chrt.orgs.OffChrtVendorClientUpdate1, requestOptions?: OffChrtVendor.RequestOptions): core.HttpResponsePromise<boolean>;
104
+ private __updateByIdV1;
105
+ protected _getAuthorizationHeader(): Promise<string | undefined>;
106
+ }