@chrt-inc/typescript-sdk 1.760.0 → 1.762.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 (248) 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/operations/resources/cases/client/Client.d.ts +16 -0
  5. package/dist/cjs/api/resources/operations/resources/cases/client/Client.js +65 -0
  6. package/dist/cjs/api/resources/operations/resources/cases/client/requests/CaseSetBillingReviewStatusReq.d.ts +13 -0
  7. package/dist/cjs/api/resources/operations/resources/cases/client/requests/index.d.ts +1 -0
  8. package/dist/cjs/api/resources/orgs/client/Client.d.ts +3 -0
  9. package/dist/cjs/api/resources/orgs/client/Client.js +7 -2
  10. package/dist/cjs/api/resources/orgs/resources/index.d.ts +2 -0
  11. package/dist/cjs/api/resources/orgs/resources/index.js +3 -1
  12. package/dist/cjs/api/resources/orgs/resources/offChrtVendor/client/Client.d.ts +106 -0
  13. package/dist/cjs/api/resources/orgs/resources/offChrtVendor/client/Client.js +384 -0
  14. package/dist/cjs/api/resources/orgs/resources/offChrtVendor/client/index.d.ts +2 -0
  15. package/dist/cjs/api/resources/orgs/resources/offChrtVendor/client/index.js +17 -0
  16. package/dist/cjs/api/resources/orgs/resources/offChrtVendor/client/requests/OffChrtVendorClientCreate1.d.ts +15 -0
  17. package/dist/cjs/api/resources/orgs/resources/offChrtVendor/client/requests/OffChrtVendorClientUpdate1.d.ts +12 -0
  18. package/dist/cjs/api/resources/orgs/resources/offChrtVendor/client/requests/OffChrtVendorListV1Request.d.ts +14 -0
  19. package/dist/cjs/api/resources/orgs/resources/offChrtVendor/client/requests/index.d.ts +3 -0
  20. package/dist/cjs/api/resources/orgs/resources/offChrtVendor/client/requests/index.js +2 -0
  21. package/dist/cjs/api/resources/orgs/resources/offChrtVendor/index.d.ts +1 -0
  22. package/dist/cjs/api/resources/orgs/resources/offChrtVendor/index.js +17 -0
  23. package/dist/cjs/api/resources/shipping/client/Client.d.ts +6 -0
  24. package/dist/cjs/api/resources/shipping/client/Client.js +18 -8
  25. package/dist/cjs/api/resources/shipping/resources/flights/client/Client.d.ts +2 -2
  26. package/dist/cjs/api/resources/shipping/resources/flights/client/Client.js +2 -2
  27. package/dist/cjs/api/resources/shipping/resources/index.d.ts +4 -0
  28. package/dist/cjs/api/resources/shipping/resources/index.js +5 -1
  29. package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/Client.d.ts +1 -1
  30. package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/Client.js +1 -1
  31. package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/requests/OrdersNewDraftReq.d.ts +5 -0
  32. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/agentic/client/Client.d.ts +13 -19
  33. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/agentic/client/Client.js +41 -47
  34. package/dist/cjs/api/resources/shipping/resources/orderGroups/client/Client.d.ts +142 -0
  35. package/dist/cjs/api/resources/shipping/resources/orderGroups/client/Client.js +530 -0
  36. package/dist/cjs/api/resources/shipping/resources/orderGroups/client/index.d.ts +2 -0
  37. package/dist/cjs/api/resources/shipping/resources/orderGroups/client/index.js +17 -0
  38. package/dist/cjs/api/resources/shipping/resources/orderGroups/client/requests/OrderGroupClientCreate1.d.ts +16 -0
  39. package/dist/cjs/api/resources/shipping/resources/orderGroups/client/requests/OrderGroupClientUpdate1.d.ts +12 -0
  40. package/dist/cjs/api/resources/shipping/resources/orderGroups/client/requests/OrderGroupSetBillingReviewStatusReq.d.ts +13 -0
  41. package/dist/cjs/api/resources/shipping/resources/orderGroups/client/requests/OrderGroupSetBillingReviewStatusReq.js +5 -0
  42. package/dist/cjs/api/resources/shipping/resources/orderGroups/client/requests/OrderGroupsListV1Request.d.ts +30 -0
  43. package/dist/cjs/api/resources/shipping/resources/orderGroups/client/requests/OrderGroupsListV1Request.js +5 -0
  44. package/dist/cjs/api/resources/shipping/resources/orderGroups/client/requests/index.d.ts +4 -0
  45. package/dist/cjs/api/resources/shipping/resources/orderGroups/client/requests/index.js +2 -0
  46. package/dist/cjs/api/resources/shipping/resources/orderGroups/index.d.ts +1 -0
  47. package/dist/cjs/api/resources/shipping/resources/orderGroups/index.js +17 -0
  48. package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/Client.d.ts +3 -3
  49. package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/Client.js +2 -2
  50. package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientCreate1.d.ts +7 -4
  51. package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientUpdate1.d.ts +7 -2
  52. package/dist/cjs/api/resources/shipping/resources/ordersAndOrderGroups/client/Client.d.ts +73 -0
  53. package/dist/cjs/api/resources/shipping/resources/ordersAndOrderGroups/client/Client.js +252 -0
  54. package/dist/cjs/api/resources/shipping/resources/ordersAndOrderGroups/client/index.d.ts +2 -0
  55. package/dist/cjs/api/resources/shipping/resources/ordersAndOrderGroups/client/index.js +17 -0
  56. package/dist/cjs/api/resources/shipping/resources/ordersAndOrderGroups/client/requests/OrdersAndOrderGroupsOrderGroupsListV1Request.d.ts +32 -0
  57. package/dist/cjs/api/resources/shipping/resources/ordersAndOrderGroups/client/requests/OrdersAndOrderGroupsOrderGroupsListV1Request.js +5 -0
  58. package/dist/cjs/api/resources/shipping/resources/ordersAndOrderGroups/client/requests/OrdersAndOrderGroupsUngroupedOrdersListV1Request.d.ts +23 -0
  59. package/dist/cjs/api/resources/shipping/resources/ordersAndOrderGroups/client/requests/OrdersAndOrderGroupsUngroupedOrdersListV1Request.js +5 -0
  60. package/dist/cjs/api/resources/shipping/resources/ordersAndOrderGroups/client/requests/index.d.ts +2 -0
  61. package/dist/cjs/api/resources/shipping/resources/ordersAndOrderGroups/client/requests/index.js +2 -0
  62. package/dist/cjs/api/resources/shipping/resources/ordersAndOrderGroups/index.d.ts +1 -0
  63. package/dist/cjs/api/resources/shipping/resources/ordersAndOrderGroups/index.js +17 -0
  64. package/dist/cjs/api/resources/tracking/resources/sessions/client/Client.d.ts +1 -1
  65. package/dist/cjs/api/resources/tracking/resources/sessions/client/Client.js +1 -1
  66. package/dist/cjs/api/types/BillingReviewStatusEnum.d.ts +15 -0
  67. package/dist/cjs/api/types/BillingReviewStatusEnum.js +12 -0
  68. package/dist/cjs/api/types/Case1.d.ts +1 -0
  69. package/dist/cjs/api/types/{InternalDelegationTokenReq.d.ts → InternalDelegationJwtReq.d.ts} +2 -2
  70. package/dist/cjs/api/types/InternalDelegationJwtReq.js +5 -0
  71. package/dist/{esm/api/types/InternalDelegationTokenRes.d.mts → cjs/api/types/InternalDelegationJwtRes.d.ts} +1 -1
  72. package/dist/cjs/api/types/InternalDelegationJwtRes.js +5 -0
  73. package/dist/cjs/api/types/LineItemGroup1.d.ts +3 -0
  74. package/dist/cjs/api/types/OffChrtVendor1.d.ts +13 -0
  75. package/dist/cjs/api/types/OffChrtVendor1.js +5 -0
  76. package/dist/cjs/api/types/OffChrtVendorListRes.d.ts +8 -0
  77. package/dist/cjs/api/types/OffChrtVendorListRes.js +5 -0
  78. package/dist/cjs/api/types/Order1.d.ts +2 -0
  79. package/dist/cjs/api/types/OrderBuilderReq.d.ts +3 -2
  80. package/dist/cjs/api/types/OrderBuilderRes.d.ts +2 -2
  81. package/dist/cjs/api/types/OrderGroup1.d.ts +21 -0
  82. package/dist/cjs/api/types/OrderGroup1.js +5 -0
  83. package/dist/cjs/api/types/OrderGroupExpandedListRes.d.ts +8 -0
  84. package/dist/cjs/api/types/OrderGroupExpandedListRes.js +5 -0
  85. package/dist/cjs/api/types/OrderGroupExpandedRow.d.ts +9 -0
  86. package/dist/cjs/api/types/OrderGroupExpandedRow.js +5 -0
  87. package/dist/cjs/api/types/OrderGroupExpandedSortByEnum.d.ts +10 -0
  88. package/dist/cjs/api/types/OrderGroupExpandedSortByEnum.js +12 -0
  89. package/dist/cjs/api/types/OrderGroupListRes.d.ts +8 -0
  90. package/dist/cjs/api/types/OrderGroupListRes.js +5 -0
  91. package/dist/cjs/api/types/OrderGroupSortByEnum.d.ts +9 -0
  92. package/dist/cjs/api/types/OrderGroupSortByEnum.js +11 -0
  93. package/dist/cjs/api/types/OrderTemplate1.d.ts +7 -4
  94. package/dist/cjs/api/types/OrderTemplateCore1.d.ts +21 -0
  95. package/dist/cjs/api/types/OrderTemplateCore1.js +5 -0
  96. package/dist/cjs/api/types/{OrderTemplateExpanded.d.ts → OrderTemplateExpanded1.d.ts} +4 -4
  97. package/dist/cjs/api/types/OrderTemplateExpanded1.js +5 -0
  98. package/dist/{esm/api/types/OrderTemplateOrgRef1.d.mts → cjs/api/types/OrderTemplateOrgInfo1.d.ts} +1 -1
  99. package/dist/cjs/api/types/OrderTemplateOrgInfo1.js +5 -0
  100. package/dist/cjs/api/types/OrderTemplateResolvabilityRes.d.ts +10 -0
  101. package/dist/cjs/api/types/OrderTemplateResolvabilityRes.js +5 -0
  102. package/dist/cjs/api/types/ShippingTurnClientCreate1.d.ts +16 -0
  103. package/dist/cjs/api/types/ShippingTurnClientCreate1.js +5 -0
  104. package/dist/cjs/api/types/Statement1.d.ts +3 -0
  105. package/dist/cjs/api/types/UngroupedOrderListRes.d.ts +8 -0
  106. package/dist/cjs/api/types/UngroupedOrderListRes.js +5 -0
  107. package/dist/cjs/api/types/UngroupedOrderRow.d.ts +8 -0
  108. package/dist/cjs/api/types/UngroupedOrderRow.js +5 -0
  109. package/dist/cjs/api/types/UngroupedOrderSortByEnum.d.ts +11 -0
  110. package/dist/cjs/api/types/UngroupedOrderSortByEnum.js +13 -0
  111. package/dist/cjs/api/types/{WorkflowActorContext.d.ts → WorkflowActor.d.ts} +1 -1
  112. package/dist/cjs/api/types/WorkflowActor.js +5 -0
  113. package/dist/cjs/api/types/index.d.ts +20 -6
  114. package/dist/cjs/api/types/index.js +20 -6
  115. package/dist/cjs/version.d.ts +1 -1
  116. package/dist/cjs/version.js +1 -1
  117. package/dist/esm/Client.mjs +2 -2
  118. package/dist/esm/api/resources/billing/resources/lineItemGroups/client/requests/LineItemGroupAdHocCreateClientReq.d.mts +2 -0
  119. package/dist/esm/api/resources/billing/resources/statements/client/requests/StatementCreateClientReq.d.mts +2 -0
  120. package/dist/esm/api/resources/operations/resources/cases/client/Client.d.mts +16 -0
  121. package/dist/esm/api/resources/operations/resources/cases/client/Client.mjs +65 -0
  122. package/dist/esm/api/resources/operations/resources/cases/client/requests/CaseSetBillingReviewStatusReq.d.mts +13 -0
  123. package/dist/esm/api/resources/operations/resources/cases/client/requests/index.d.mts +1 -0
  124. package/dist/esm/api/resources/orgs/client/Client.d.mts +3 -0
  125. package/dist/esm/api/resources/orgs/client/Client.mjs +5 -0
  126. package/dist/esm/api/resources/orgs/resources/index.d.mts +2 -0
  127. package/dist/esm/api/resources/orgs/resources/index.mjs +2 -0
  128. package/dist/esm/api/resources/orgs/resources/offChrtVendor/client/Client.d.mts +106 -0
  129. package/dist/esm/api/resources/orgs/resources/offChrtVendor/client/Client.mjs +347 -0
  130. package/dist/esm/api/resources/orgs/resources/offChrtVendor/client/index.d.mts +2 -0
  131. package/dist/esm/api/resources/orgs/resources/offChrtVendor/client/index.mjs +1 -0
  132. package/dist/esm/api/resources/orgs/resources/offChrtVendor/client/requests/OffChrtVendorClientCreate1.d.mts +15 -0
  133. package/dist/esm/api/resources/orgs/resources/offChrtVendor/client/requests/OffChrtVendorClientUpdate1.d.mts +12 -0
  134. package/dist/esm/api/resources/orgs/resources/offChrtVendor/client/requests/OffChrtVendorListV1Request.d.mts +14 -0
  135. package/dist/esm/api/resources/orgs/resources/offChrtVendor/client/requests/index.d.mts +3 -0
  136. package/dist/esm/api/resources/orgs/resources/offChrtVendor/client/requests/index.mjs +1 -0
  137. package/dist/esm/api/resources/orgs/resources/offChrtVendor/index.d.mts +1 -0
  138. package/dist/esm/api/resources/orgs/resources/offChrtVendor/index.mjs +1 -0
  139. package/dist/esm/api/resources/shipping/client/Client.d.mts +6 -0
  140. package/dist/esm/api/resources/shipping/client/Client.mjs +10 -0
  141. package/dist/esm/api/resources/shipping/resources/flights/client/Client.d.mts +2 -2
  142. package/dist/esm/api/resources/shipping/resources/flights/client/Client.mjs +2 -2
  143. package/dist/esm/api/resources/shipping/resources/index.d.mts +4 -0
  144. package/dist/esm/api/resources/shipping/resources/index.mjs +4 -0
  145. package/dist/esm/api/resources/shipping/resources/orderDrafts/client/Client.d.mts +1 -1
  146. package/dist/esm/api/resources/shipping/resources/orderDrafts/client/Client.mjs +1 -1
  147. package/dist/esm/api/resources/shipping/resources/orderDrafts/client/requests/OrdersNewDraftReq.d.mts +5 -0
  148. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/agentic/client/Client.d.mts +13 -19
  149. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/agentic/client/Client.mjs +41 -47
  150. package/dist/esm/api/resources/shipping/resources/orderGroups/client/Client.d.mts +142 -0
  151. package/dist/esm/api/resources/shipping/resources/orderGroups/client/Client.mjs +493 -0
  152. package/dist/esm/api/resources/shipping/resources/orderGroups/client/index.d.mts +2 -0
  153. package/dist/esm/api/resources/shipping/resources/orderGroups/client/index.mjs +1 -0
  154. package/dist/esm/api/resources/shipping/resources/orderGroups/client/requests/OrderGroupClientCreate1.d.mts +16 -0
  155. package/dist/esm/api/resources/shipping/resources/orderGroups/client/requests/OrderGroupClientUpdate1.d.mts +12 -0
  156. package/dist/esm/api/resources/shipping/resources/orderGroups/client/requests/OrderGroupSetBillingReviewStatusReq.d.mts +13 -0
  157. package/dist/esm/api/resources/shipping/resources/orderGroups/client/requests/OrderGroupSetBillingReviewStatusReq.mjs +4 -0
  158. package/dist/esm/api/resources/shipping/resources/orderGroups/client/requests/OrderGroupsListV1Request.d.mts +30 -0
  159. package/dist/esm/api/resources/shipping/resources/orderGroups/client/requests/OrderGroupsListV1Request.mjs +4 -0
  160. package/dist/esm/api/resources/shipping/resources/orderGroups/client/requests/index.d.mts +4 -0
  161. package/dist/esm/api/resources/shipping/resources/orderGroups/client/requests/index.mjs +1 -0
  162. package/dist/esm/api/resources/shipping/resources/orderGroups/index.d.mts +1 -0
  163. package/dist/esm/api/resources/shipping/resources/orderGroups/index.mjs +1 -0
  164. package/dist/esm/api/resources/shipping/resources/orderTemplates/client/Client.d.mts +3 -3
  165. package/dist/esm/api/resources/shipping/resources/orderTemplates/client/Client.mjs +2 -2
  166. package/dist/esm/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientCreate1.d.mts +7 -4
  167. package/dist/esm/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientUpdate1.d.mts +7 -2
  168. package/dist/esm/api/resources/shipping/resources/ordersAndOrderGroups/client/Client.d.mts +73 -0
  169. package/dist/esm/api/resources/shipping/resources/ordersAndOrderGroups/client/Client.mjs +215 -0
  170. package/dist/esm/api/resources/shipping/resources/ordersAndOrderGroups/client/index.d.mts +2 -0
  171. package/dist/esm/api/resources/shipping/resources/ordersAndOrderGroups/client/index.mjs +1 -0
  172. package/dist/esm/api/resources/shipping/resources/ordersAndOrderGroups/client/requests/OrdersAndOrderGroupsOrderGroupsListV1Request.d.mts +32 -0
  173. package/dist/esm/api/resources/shipping/resources/ordersAndOrderGroups/client/requests/OrdersAndOrderGroupsOrderGroupsListV1Request.mjs +4 -0
  174. package/dist/esm/api/resources/shipping/resources/ordersAndOrderGroups/client/requests/OrdersAndOrderGroupsUngroupedOrdersListV1Request.d.mts +23 -0
  175. package/dist/esm/api/resources/shipping/resources/ordersAndOrderGroups/client/requests/OrdersAndOrderGroupsUngroupedOrdersListV1Request.mjs +4 -0
  176. package/dist/esm/api/resources/shipping/resources/ordersAndOrderGroups/client/requests/index.d.mts +2 -0
  177. package/dist/esm/api/resources/shipping/resources/ordersAndOrderGroups/client/requests/index.mjs +1 -0
  178. package/dist/esm/api/resources/shipping/resources/ordersAndOrderGroups/index.d.mts +1 -0
  179. package/dist/esm/api/resources/shipping/resources/ordersAndOrderGroups/index.mjs +1 -0
  180. package/dist/esm/api/resources/tracking/resources/sessions/client/Client.d.mts +1 -1
  181. package/dist/esm/api/resources/tracking/resources/sessions/client/Client.mjs +1 -1
  182. package/dist/esm/api/types/BillingReviewStatusEnum.d.mts +15 -0
  183. package/dist/esm/api/types/BillingReviewStatusEnum.mjs +9 -0
  184. package/dist/esm/api/types/Case1.d.mts +1 -0
  185. package/dist/esm/api/types/{InternalDelegationTokenReq.d.mts → InternalDelegationJwtReq.d.mts} +2 -2
  186. package/dist/esm/api/types/InternalDelegationJwtReq.mjs +4 -0
  187. package/dist/{cjs/api/types/InternalDelegationTokenRes.d.ts → esm/api/types/InternalDelegationJwtRes.d.mts} +1 -1
  188. package/dist/esm/api/types/InternalDelegationJwtRes.mjs +4 -0
  189. package/dist/esm/api/types/LineItemGroup1.d.mts +3 -0
  190. package/dist/esm/api/types/OffChrtVendor1.d.mts +13 -0
  191. package/dist/esm/api/types/OffChrtVendor1.mjs +4 -0
  192. package/dist/esm/api/types/OffChrtVendorListRes.d.mts +8 -0
  193. package/dist/esm/api/types/OffChrtVendorListRes.mjs +4 -0
  194. package/dist/esm/api/types/Order1.d.mts +2 -0
  195. package/dist/esm/api/types/OrderBuilderReq.d.mts +3 -2
  196. package/dist/esm/api/types/OrderBuilderRes.d.mts +2 -2
  197. package/dist/esm/api/types/OrderGroup1.d.mts +21 -0
  198. package/dist/esm/api/types/OrderGroup1.mjs +4 -0
  199. package/dist/esm/api/types/OrderGroupExpandedListRes.d.mts +8 -0
  200. package/dist/esm/api/types/OrderGroupExpandedListRes.mjs +4 -0
  201. package/dist/esm/api/types/OrderGroupExpandedRow.d.mts +9 -0
  202. package/dist/esm/api/types/OrderGroupExpandedRow.mjs +4 -0
  203. package/dist/esm/api/types/OrderGroupExpandedSortByEnum.d.mts +10 -0
  204. package/dist/esm/api/types/OrderGroupExpandedSortByEnum.mjs +9 -0
  205. package/dist/esm/api/types/OrderGroupListRes.d.mts +8 -0
  206. package/dist/esm/api/types/OrderGroupListRes.mjs +4 -0
  207. package/dist/esm/api/types/OrderGroupSortByEnum.d.mts +9 -0
  208. package/dist/esm/api/types/OrderGroupSortByEnum.mjs +8 -0
  209. package/dist/esm/api/types/OrderTemplate1.d.mts +7 -4
  210. package/dist/esm/api/types/OrderTemplateCore1.d.mts +21 -0
  211. package/dist/esm/api/types/OrderTemplateCore1.mjs +4 -0
  212. package/dist/esm/api/types/{OrderTemplateExpanded.d.mts → OrderTemplateExpanded1.d.mts} +4 -4
  213. package/dist/esm/api/types/OrderTemplateExpanded1.mjs +4 -0
  214. package/dist/{cjs/api/types/OrderTemplateOrgRef1.d.ts → esm/api/types/OrderTemplateOrgInfo1.d.mts} +1 -1
  215. package/dist/esm/api/types/OrderTemplateOrgInfo1.mjs +4 -0
  216. package/dist/esm/api/types/OrderTemplateResolvabilityRes.d.mts +10 -0
  217. package/dist/esm/api/types/OrderTemplateResolvabilityRes.mjs +4 -0
  218. package/dist/esm/api/types/ShippingTurnClientCreate1.d.mts +16 -0
  219. package/dist/esm/api/types/ShippingTurnClientCreate1.mjs +4 -0
  220. package/dist/esm/api/types/Statement1.d.mts +3 -0
  221. package/dist/esm/api/types/UngroupedOrderListRes.d.mts +8 -0
  222. package/dist/esm/api/types/UngroupedOrderListRes.mjs +4 -0
  223. package/dist/esm/api/types/UngroupedOrderRow.d.mts +8 -0
  224. package/dist/esm/api/types/UngroupedOrderRow.mjs +4 -0
  225. package/dist/esm/api/types/UngroupedOrderSortByEnum.d.mts +11 -0
  226. package/dist/esm/api/types/UngroupedOrderSortByEnum.mjs +10 -0
  227. package/dist/esm/api/types/{WorkflowActorContext.d.mts → WorkflowActor.d.mts} +1 -1
  228. package/dist/esm/api/types/WorkflowActor.mjs +4 -0
  229. package/dist/esm/api/types/index.d.mts +20 -6
  230. package/dist/esm/api/types/index.mjs +20 -6
  231. package/dist/esm/version.d.mts +1 -1
  232. package/dist/esm/version.mjs +1 -1
  233. package/package.json +1 -1
  234. package/reference.md +1456 -432
  235. package/dist/cjs/api/types/OrderBuilderPrecheckRes.d.ts +0 -7
  236. package/dist/esm/api/types/OrderBuilderPrecheckRes.d.mts +0 -7
  237. /package/dist/cjs/api/{types/InternalDelegationTokenReq.js → resources/operations/resources/cases/client/requests/CaseSetBillingReviewStatusReq.js} +0 -0
  238. /package/dist/cjs/api/{types/InternalDelegationTokenRes.js → resources/orgs/resources/offChrtVendor/client/requests/OffChrtVendorClientCreate1.js} +0 -0
  239. /package/dist/cjs/api/{types/OrderBuilderPrecheckRes.js → resources/orgs/resources/offChrtVendor/client/requests/OffChrtVendorClientUpdate1.js} +0 -0
  240. /package/dist/cjs/api/{types/OrderTemplateExpanded.js → resources/orgs/resources/offChrtVendor/client/requests/OffChrtVendorListV1Request.js} +0 -0
  241. /package/dist/cjs/api/{types/OrderTemplateOrgRef1.js → resources/shipping/resources/orderGroups/client/requests/OrderGroupClientCreate1.js} +0 -0
  242. /package/dist/cjs/api/{types/WorkflowActorContext.js → resources/shipping/resources/orderGroups/client/requests/OrderGroupClientUpdate1.js} +0 -0
  243. /package/dist/esm/api/{types/InternalDelegationTokenReq.mjs → resources/operations/resources/cases/client/requests/CaseSetBillingReviewStatusReq.mjs} +0 -0
  244. /package/dist/esm/api/{types/InternalDelegationTokenRes.mjs → resources/orgs/resources/offChrtVendor/client/requests/OffChrtVendorClientCreate1.mjs} +0 -0
  245. /package/dist/esm/api/{types/OrderBuilderPrecheckRes.mjs → resources/orgs/resources/offChrtVendor/client/requests/OffChrtVendorClientUpdate1.mjs} +0 -0
  246. /package/dist/esm/api/{types/OrderTemplateExpanded.mjs → resources/orgs/resources/offChrtVendor/client/requests/OffChrtVendorListV1Request.mjs} +0 -0
  247. /package/dist/esm/api/{types/OrderTemplateOrgRef1.mjs → resources/shipping/resources/orderGroups/client/requests/OrderGroupClientCreate1.mjs} +0 -0
  248. /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.762.0",
60
+ "User-Agent": "@chrt-inc/typescript-sdk/1.762.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
  }
@@ -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
+ }