@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
@@ -10,14 +10,17 @@
10
10
  */
11
11
  export interface OrderTemplateClientCreate1 {
12
12
  schema_version: number;
13
- name: string;
14
- description?: string | null;
15
- order_input?: string | null;
16
- off_chrt_reference_id_str?: string | null;
13
+ text?: string | null;
17
14
  /** Must be a string starting with `org_` */
18
15
  shipper_org_id?: string | null;
19
16
  off_chrt_shipper_org_id?: string | null;
20
17
  executor_org_ids?: string[];
21
18
  driver_ids?: string[];
22
19
  directory_entry_ids?: string[];
20
+ /** Must be a string starting with `org_` */
21
+ coordinator_org_id?: string | null;
22
+ department_id?: string | null;
23
+ name: string;
24
+ description?: string | null;
25
+ off_chrt_reference_id_str?: string | null;
23
26
  }
@@ -8,7 +8,7 @@
8
8
  export interface OrderTemplateClientUpdate1 {
9
9
  name?: string | null;
10
10
  description?: string | null;
11
- order_input?: string | null;
11
+ text?: string | null;
12
12
  off_chrt_reference_id_str?: string | null;
13
13
  /** Must be a string starting with `org_` */
14
14
  shipper_org_id?: string | null;
@@ -16,9 +16,14 @@ export interface OrderTemplateClientUpdate1 {
16
16
  executor_org_ids?: string[];
17
17
  driver_ids?: string[];
18
18
  directory_entry_ids?: string[];
19
+ /** Must be a string starting with `org_` */
20
+ coordinator_org_id?: string | null;
21
+ department_id?: string | null;
19
22
  description__set_to_None?: boolean;
20
- order_input__set_to_None?: boolean;
23
+ text__set_to_None?: boolean;
21
24
  off_chrt_reference_id_str__set_to_None?: boolean;
22
25
  shipper_org_id__set_to_None?: boolean;
23
26
  off_chrt_shipper_org_id__set_to_None?: boolean;
27
+ coordinator_org_id__set_to_None?: boolean;
28
+ department_id__set_to_None?: boolean;
24
29
  }
@@ -0,0 +1,73 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as environments from "../../../../../../environments.mjs";
5
+ import * as core from "../../../../../../core/index.mjs";
6
+ import * as Chrt from "../../../../../index.mjs";
7
+ export declare namespace OrdersAndOrderGroups {
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 OrdersAndOrderGroups {
31
+ protected readonly _options: OrdersAndOrderGroups.Options;
32
+ constructor(_options?: OrdersAndOrderGroups.Options);
33
+ /**
34
+ * Lists the caller's order groups with member orders nested and a derived shipping-status rollup. Filtering, sorting, and pagination use stored group fields. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (OrderGroupExpandedListRes)
35
+ *
36
+ * @param {Chrt.shipping.OrdersAndOrderGroupsOrderGroupsListV1Request} request
37
+ * @param {OrdersAndOrderGroups.RequestOptions} requestOptions - Request-specific configuration.
38
+ *
39
+ * @throws {@link Chrt.UnprocessableEntityError}
40
+ *
41
+ * @example
42
+ * await client.shipping.ordersAndOrderGroups.orderGroupsListV1({
43
+ * sort_by: "created_at_timestamp",
44
+ * sort_order: "asc",
45
+ * page: 1,
46
+ * page_size: 1,
47
+ * filter_order_id: "filter_order_id",
48
+ * filter_created_at_timestamp_gte: "2024-01-15T09:30:00Z",
49
+ * filter_created_at_timestamp_lte: "2024-01-15T09:30:00Z"
50
+ * })
51
+ */
52
+ orderGroupsListV1(request?: Chrt.shipping.OrdersAndOrderGroupsOrderGroupsListV1Request, requestOptions?: OrdersAndOrderGroups.RequestOptions): core.HttpResponsePromise<Chrt.OrderGroupExpandedListRes>;
53
+ private __orderGroupsListV1;
54
+ /**
55
+ * Lists the caller's standalone orders (provider party, non-DRAFT, not in any of the caller's order groups), each with the caller org's billing-review status. Filtering, sorting, and pagination use stored Order fields. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (UngroupedOrderListRes)
56
+ *
57
+ * @param {Chrt.shipping.OrdersAndOrderGroupsUngroupedOrdersListV1Request} request
58
+ * @param {OrdersAndOrderGroups.RequestOptions} requestOptions - Request-specific configuration.
59
+ *
60
+ * @throws {@link Chrt.UnprocessableEntityError}
61
+ *
62
+ * @example
63
+ * await client.shipping.ordersAndOrderGroups.ungroupedOrdersListV1({
64
+ * sort_by: "draft_started_at_timestamp",
65
+ * sort_order: "asc",
66
+ * page: 1,
67
+ * page_size: 1
68
+ * })
69
+ */
70
+ ungroupedOrdersListV1(request?: Chrt.shipping.OrdersAndOrderGroupsUngroupedOrdersListV1Request, requestOptions?: OrdersAndOrderGroups.RequestOptions): core.HttpResponsePromise<Chrt.UngroupedOrderListRes>;
71
+ private __ungroupedOrdersListV1;
72
+ protected _getAuthorizationHeader(): Promise<string | undefined>;
73
+ }
@@ -0,0 +1,215 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
5
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
6
+ return new (P || (P = Promise))(function (resolve, reject) {
7
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
8
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
9
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
10
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
11
+ });
12
+ };
13
+ import * as environments from "../../../../../../environments.mjs";
14
+ import * as core from "../../../../../../core/index.mjs";
15
+ import * as Chrt from "../../../../../index.mjs";
16
+ import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../../../core/headers.mjs";
17
+ import * as errors from "../../../../../../errors/index.mjs";
18
+ export class OrdersAndOrderGroups {
19
+ constructor(_options = {}) {
20
+ this._options = _options;
21
+ }
22
+ /**
23
+ * Lists the caller's order groups with member orders nested and a derived shipping-status rollup. Filtering, sorting, and pagination use stored group fields. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (OrderGroupExpandedListRes)
24
+ *
25
+ * @param {Chrt.shipping.OrdersAndOrderGroupsOrderGroupsListV1Request} request
26
+ * @param {OrdersAndOrderGroups.RequestOptions} requestOptions - Request-specific configuration.
27
+ *
28
+ * @throws {@link Chrt.UnprocessableEntityError}
29
+ *
30
+ * @example
31
+ * await client.shipping.ordersAndOrderGroups.orderGroupsListV1({
32
+ * sort_by: "created_at_timestamp",
33
+ * sort_order: "asc",
34
+ * page: 1,
35
+ * page_size: 1,
36
+ * filter_order_id: "filter_order_id",
37
+ * filter_created_at_timestamp_gte: "2024-01-15T09:30:00Z",
38
+ * filter_created_at_timestamp_lte: "2024-01-15T09:30:00Z"
39
+ * })
40
+ */
41
+ orderGroupsListV1(request = {}, requestOptions) {
42
+ return core.HttpResponsePromise.fromPromise(this.__orderGroupsListV1(request, requestOptions));
43
+ }
44
+ __orderGroupsListV1() {
45
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
46
+ var _a, _b, _c, _d, _e, _f;
47
+ const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, filter_billing_review_status: filterBillingReviewStatus, filter_order_id: filterOrderId, filter_created_at_timestamp_gte: filterCreatedAtTimestampGte, filter_created_at_timestamp_lte: filterCreatedAtTimestampLte, } = request;
48
+ const _queryParams = {};
49
+ if (sortBy !== undefined) {
50
+ _queryParams["sort_by"] = sortBy;
51
+ }
52
+ if (sortOrder !== undefined) {
53
+ _queryParams["sort_order"] = sortOrder;
54
+ }
55
+ if (page !== undefined) {
56
+ _queryParams["page"] = (_a = page === null || page === void 0 ? void 0 : page.toString()) !== null && _a !== void 0 ? _a : null;
57
+ }
58
+ if (pageSize !== undefined) {
59
+ _queryParams["page_size"] = (_b = pageSize === null || pageSize === void 0 ? void 0 : pageSize.toString()) !== null && _b !== void 0 ? _b : null;
60
+ }
61
+ if (filterBillingReviewStatus !== undefined) {
62
+ if (Array.isArray(filterBillingReviewStatus)) {
63
+ _queryParams["filter_billing_review_status"] = filterBillingReviewStatus.map((item) => item);
64
+ }
65
+ else {
66
+ _queryParams["filter_billing_review_status"] = filterBillingReviewStatus;
67
+ }
68
+ }
69
+ if (filterOrderId !== undefined) {
70
+ _queryParams["filter_order_id"] = filterOrderId;
71
+ }
72
+ if (filterCreatedAtTimestampGte !== undefined) {
73
+ _queryParams["filter_created_at_timestamp_gte"] = filterCreatedAtTimestampGte;
74
+ }
75
+ if (filterCreatedAtTimestampLte !== undefined) {
76
+ _queryParams["filter_created_at_timestamp_lte"] = filterCreatedAtTimestampLte;
77
+ }
78
+ let _headers = mergeHeaders((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
79
+ const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
80
+ 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, "shipping/orders_and_order_groups/order_groups/list/v1"),
81
+ method: "GET",
82
+ headers: _headers,
83
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
84
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
85
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
86
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
87
+ });
88
+ if (_response.ok) {
89
+ return { data: _response.body, rawResponse: _response.rawResponse };
90
+ }
91
+ if (_response.error.reason === "status-code") {
92
+ switch (_response.error.statusCode) {
93
+ case 422:
94
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
95
+ default:
96
+ throw new errors.ChrtError({
97
+ statusCode: _response.error.statusCode,
98
+ body: _response.error.body,
99
+ rawResponse: _response.rawResponse,
100
+ });
101
+ }
102
+ }
103
+ switch (_response.error.reason) {
104
+ case "non-json":
105
+ throw new errors.ChrtError({
106
+ statusCode: _response.error.statusCode,
107
+ body: _response.error.rawBody,
108
+ rawResponse: _response.rawResponse,
109
+ });
110
+ case "timeout":
111
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /shipping/orders_and_order_groups/order_groups/list/v1.");
112
+ case "unknown":
113
+ throw new errors.ChrtError({
114
+ message: _response.error.errorMessage,
115
+ rawResponse: _response.rawResponse,
116
+ });
117
+ }
118
+ });
119
+ }
120
+ /**
121
+ * Lists the caller's standalone orders (provider party, non-DRAFT, not in any of the caller's order groups), each with the caller org's billing-review status. Filtering, sorting, and pagination use stored Order fields. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (UngroupedOrderListRes)
122
+ *
123
+ * @param {Chrt.shipping.OrdersAndOrderGroupsUngroupedOrdersListV1Request} request
124
+ * @param {OrdersAndOrderGroups.RequestOptions} requestOptions - Request-specific configuration.
125
+ *
126
+ * @throws {@link Chrt.UnprocessableEntityError}
127
+ *
128
+ * @example
129
+ * await client.shipping.ordersAndOrderGroups.ungroupedOrdersListV1({
130
+ * sort_by: "draft_started_at_timestamp",
131
+ * sort_order: "asc",
132
+ * page: 1,
133
+ * page_size: 1
134
+ * })
135
+ */
136
+ ungroupedOrdersListV1(request = {}, requestOptions) {
137
+ return core.HttpResponsePromise.fromPromise(this.__ungroupedOrdersListV1(request, requestOptions));
138
+ }
139
+ __ungroupedOrdersListV1() {
140
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
141
+ var _a, _b, _c, _d, _e, _f;
142
+ const { filter_shipping_status: filterShippingStatus, sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, } = request;
143
+ const _queryParams = {};
144
+ if (filterShippingStatus !== undefined) {
145
+ if (Array.isArray(filterShippingStatus)) {
146
+ _queryParams["filter_shipping_status"] = filterShippingStatus.map((item) => item);
147
+ }
148
+ else {
149
+ _queryParams["filter_shipping_status"] = filterShippingStatus;
150
+ }
151
+ }
152
+ if (sortBy !== undefined) {
153
+ _queryParams["sort_by"] = sortBy;
154
+ }
155
+ if (sortOrder !== undefined) {
156
+ _queryParams["sort_order"] = sortOrder;
157
+ }
158
+ if (page !== undefined) {
159
+ _queryParams["page"] = (_a = page === null || page === void 0 ? void 0 : page.toString()) !== null && _a !== void 0 ? _a : null;
160
+ }
161
+ if (pageSize !== undefined) {
162
+ _queryParams["page_size"] = (_b = pageSize === null || pageSize === void 0 ? void 0 : pageSize.toString()) !== null && _b !== void 0 ? _b : null;
163
+ }
164
+ let _headers = mergeHeaders((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
165
+ const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
166
+ 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, "shipping/orders_and_order_groups/ungrouped_orders/list/v1"),
167
+ method: "GET",
168
+ headers: _headers,
169
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
170
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
171
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
172
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
173
+ });
174
+ if (_response.ok) {
175
+ return { data: _response.body, rawResponse: _response.rawResponse };
176
+ }
177
+ if (_response.error.reason === "status-code") {
178
+ switch (_response.error.statusCode) {
179
+ case 422:
180
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
181
+ default:
182
+ throw new errors.ChrtError({
183
+ statusCode: _response.error.statusCode,
184
+ body: _response.error.body,
185
+ rawResponse: _response.rawResponse,
186
+ });
187
+ }
188
+ }
189
+ switch (_response.error.reason) {
190
+ case "non-json":
191
+ throw new errors.ChrtError({
192
+ statusCode: _response.error.statusCode,
193
+ body: _response.error.rawBody,
194
+ rawResponse: _response.rawResponse,
195
+ });
196
+ case "timeout":
197
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /shipping/orders_and_order_groups/ungrouped_orders/list/v1.");
198
+ case "unknown":
199
+ throw new errors.ChrtError({
200
+ message: _response.error.errorMessage,
201
+ rawResponse: _response.rawResponse,
202
+ });
203
+ }
204
+ });
205
+ }
206
+ _getAuthorizationHeader() {
207
+ return __awaiter(this, void 0, void 0, function* () {
208
+ const bearer = yield core.Supplier.get(this._options.token);
209
+ if (bearer != null) {
210
+ return `Bearer ${bearer}`;
211
+ }
212
+ return undefined;
213
+ });
214
+ }
215
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ export * from "./requests/index.mjs";
@@ -0,0 +1 @@
1
+ export * from "./requests/index.mjs";
@@ -0,0 +1,32 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../../../../../../index.mjs";
5
+ /**
6
+ * @example
7
+ * {
8
+ * sort_by: "created_at_timestamp",
9
+ * sort_order: "asc",
10
+ * page: 1,
11
+ * page_size: 1,
12
+ * filter_order_id: "filter_order_id",
13
+ * filter_created_at_timestamp_gte: "2024-01-15T09:30:00Z",
14
+ * filter_created_at_timestamp_lte: "2024-01-15T09:30:00Z"
15
+ * }
16
+ */
17
+ export interface OrdersAndOrderGroupsOrderGroupsListV1Request {
18
+ /** Field to sort by. */
19
+ sort_by?: Chrt.OrderGroupExpandedSortByEnum | null;
20
+ /** Sort order (asc or desc). */
21
+ sort_order?: Chrt.SortOrderEnum | null;
22
+ page?: number | null;
23
+ page_size?: number | null;
24
+ /** Filter by the group's billing-review status(es). */
25
+ filter_billing_review_status?: (Chrt.BillingReviewStatusEnum | null) | (Chrt.BillingReviewStatusEnum | null)[];
26
+ /** Filter to groups containing this order id. */
27
+ filter_order_id?: string | null;
28
+ /** Filter created_at_timestamp >= value (inclusive). */
29
+ filter_created_at_timestamp_gte?: string | null;
30
+ /** Filter created_at_timestamp <= value (inclusive). */
31
+ filter_created_at_timestamp_lte?: string | null;
32
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,23 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../../../../../../index.mjs";
5
+ /**
6
+ * @example
7
+ * {
8
+ * sort_by: "draft_started_at_timestamp",
9
+ * sort_order: "asc",
10
+ * page: 1,
11
+ * page_size: 1
12
+ * }
13
+ */
14
+ export interface OrdersAndOrderGroupsUngroupedOrdersListV1Request {
15
+ /** Filter by order status(es). */
16
+ filter_shipping_status?: (Chrt.OrderStatusEnum1 | null) | (Chrt.OrderStatusEnum1 | null)[];
17
+ /** Field to sort by. */
18
+ sort_by?: Chrt.UngroupedOrderSortByEnum | null;
19
+ /** Sort order (asc or desc). */
20
+ sort_order?: Chrt.SortOrderEnum | null;
21
+ page?: number | null;
22
+ page_size?: number | null;
23
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,2 @@
1
+ export { type OrdersAndOrderGroupsOrderGroupsListV1Request } from "./OrdersAndOrderGroupsOrderGroupsListV1Request.mjs";
2
+ export { type OrdersAndOrderGroupsUngroupedOrdersListV1Request } from "./OrdersAndOrderGroupsUngroupedOrdersListV1Request.mjs";
@@ -0,0 +1 @@
1
+ export * from "./client/index.mjs";
@@ -0,0 +1 @@
1
+ export * from "./client/index.mjs";
@@ -99,7 +99,7 @@ export declare class Sessions {
99
99
  typeaheadV1(request: Chrt.tracking.SessionsTypeaheadV1Request, requestOptions?: Sessions.RequestOptions): core.HttpResponsePromise<Chrt.TrackingTypeaheadResult[]>;
100
100
  private __typeaheadV1;
101
101
  /**
102
- * Creates a new tracking session for a device and automatically starts recording data points. The caller must be the device owner or belong to an org the device is shared with. The device owner remains the session owner (org_id). The device's shared_with_org_ids are copied to the session. The device must not have an active session. Auto-termination is scheduled for ~3 days out at 8 PM PT. Prevent auto termination with `no_auto_termination=True` | auth: api_key | (SessionClientCreate1) -> (PydanticObjectId)
102
+ * Creates a new tracking session for a device and automatically starts recording data points. The caller must be the device owner or belong to an org the device is shared with. The device owner remains the session owner (org_id). The device's shared_with_org_ids are copied to the session. The device must not have an active session. Auto-termination is scheduled for ~1 week out at 8 PM PT. Prevent auto termination with `no_auto_termination=True` | auth: api_key | (SessionClientCreate1) -> (PydanticObjectId)
103
103
  *
104
104
  * @param {Chrt.tracking.SessionClientCreate1} request
105
105
  * @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
@@ -317,7 +317,7 @@ export class Sessions {
317
317
  });
318
318
  }
319
319
  /**
320
- * Creates a new tracking session for a device and automatically starts recording data points. The caller must be the device owner or belong to an org the device is shared with. The device owner remains the session owner (org_id). The device's shared_with_org_ids are copied to the session. The device must not have an active session. Auto-termination is scheduled for ~3 days out at 8 PM PT. Prevent auto termination with `no_auto_termination=True` | auth: api_key | (SessionClientCreate1) -> (PydanticObjectId)
320
+ * Creates a new tracking session for a device and automatically starts recording data points. The caller must be the device owner or belong to an org the device is shared with. The device owner remains the session owner (org_id). The device's shared_with_org_ids are copied to the session. The device must not have an active session. Auto-termination is scheduled for ~1 week out at 8 PM PT. Prevent auto termination with `no_auto_termination=True` | auth: api_key | (SessionClientCreate1) -> (PydanticObjectId)
321
321
  *
322
322
  * @param {Chrt.tracking.SessionClientCreate1} request
323
323
  * @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Operator-driven billing-review flag for an OrderGroup (group-level) or a
6
+ * Case (per-order, per-org). Distinct from the derived billing *settlement*
7
+ * state - this is a manual triage status the operator flips.
8
+ */
9
+ export type BillingReviewStatusEnum = "not_started" | "in_progress" | "disputed" | "completed";
10
+ export declare const BillingReviewStatusEnum: {
11
+ readonly NotStarted: "not_started";
12
+ readonly InProgress: "in_progress";
13
+ readonly Disputed: "disputed";
14
+ readonly Completed: "completed";
15
+ };
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export const BillingReviewStatusEnum = {
5
+ NotStarted: "not_started",
6
+ InProgress: "in_progress",
7
+ Disputed: "disputed",
8
+ Completed: "completed",
9
+ };
@@ -11,6 +11,7 @@ export interface Case1 {
11
11
  _id: string;
12
12
  /** Must be a string starting with `org_` */
13
13
  org_id: string;
14
+ billing_review_status?: Chrt.BillingReviewStatusEnum;
14
15
  messages?: Chrt.CaseMessage1[];
15
16
  created_at: string;
16
17
  }
@@ -2,8 +2,8 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Chrt from "../index.mjs";
5
- export interface InternalDelegationTokenReq {
5
+ export interface InternalDelegationJwtReq {
6
6
  sts_presigned_url: string;
7
- actor: Chrt.WorkflowActorContext;
7
+ workflow_actor: Chrt.WorkflowActor;
8
8
  expires_in_seconds: number;
9
9
  }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export interface InternalDelegationTokenRes {
4
+ export interface InternalDelegationJwtRes {
5
5
  access_token: string;
6
6
  }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -28,6 +28,8 @@ export interface LineItemGroup1 {
28
28
  order_short_id?: string | null;
29
29
  /** Must be a URL-safe string of 1-64 characters. Allowed characters: A-Z, a-z, 0-9, '.', '_', '~', '-' (RFC 3986 unreserved). */
30
30
  order_off_chrt_reference_id?: string | null;
31
+ order_group_id?: string | null;
32
+ order_group_short_id?: string | null;
31
33
  rate_sheet_id?: string | null;
32
34
  agreement_line_item_ids?: string[];
33
35
  agreement_amount?: number;
@@ -49,6 +51,7 @@ export interface LineItemGroup1 {
49
51
  payment_destination_org_id?: string | null;
50
52
  payment_destination_off_chrt_provider_org_id?: string | null;
51
53
  payment_destination_driver_id?: string | null;
54
+ payment_destination_off_chrt_vendor_id?: string | null;
52
55
  status?: Chrt.LineItemGroupStatusEnum1;
53
56
  finalized_at_timestamp?: string | null;
54
57
  /** Must be a string starting with `user_` */
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface OffChrtVendor1 {
5
+ schema_version: number;
6
+ name: string;
7
+ notes?: string | null;
8
+ _id: string;
9
+ /** Must be a string starting with `org_` */
10
+ created_by_org_id: string;
11
+ /** Must be a string starting with `user_` */
12
+ created_by_user_id: string;
13
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.mjs";
5
+ export interface OffChrtVendorListRes {
6
+ items: Chrt.OffChrtVendor1[];
7
+ total_count: number;
8
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -12,6 +12,8 @@ export interface Order1 {
12
12
  order_schedule_id?: string | null;
13
13
  order_schedule_run_idempotency_key?: string | null;
14
14
  order_template_id?: string | null;
15
+ /** Client-supplied key for use by agentic order builder */
16
+ creation_idempotency_key?: string | null;
15
17
  /** Must be a string starting with `user_` */
16
18
  created_by_user_id?: string | null;
17
19
  /** Must be a string starting with `org_` */
@@ -1,7 +1,8 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as Chrt from "../index.mjs";
4
5
  export interface OrderBuilderReq {
5
- order_short_id: string;
6
- text: string;
6
+ order_template_core?: Chrt.OrderTemplateCore1 | null;
7
+ order_template_id?: string | null;
7
8
  }
@@ -2,8 +2,8 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  export interface OrderBuilderRes {
5
- order_id: string;
6
- order_short_id: string;
5
+ order_id?: string | null;
6
+ order_short_id?: string | null;
7
7
  summary: string;
8
8
  validation_passed?: boolean;
9
9
  validation_issues?: string[];
@@ -0,0 +1,21 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.mjs";
5
+ export interface OrderGroup1 {
6
+ schema_version: number;
7
+ name: string;
8
+ description?: string | null;
9
+ _id: string;
10
+ short_id: string;
11
+ order_ids?: string[];
12
+ /** Must be a string starting with `org_` */
13
+ owned_by_org_id: string;
14
+ billing_review_status?: Chrt.BillingReviewStatusEnum;
15
+ /** Must be a string starting with `user_` */
16
+ created_by_user_id: string;
17
+ /** Must be a string starting with `org_` */
18
+ created_by_org_id: string;
19
+ created_at_timestamp: string;
20
+ last_edited_at_timestamp: string;
21
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};