@chrt-inc/typescript-sdk 1.899.0 → 1.904.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 (382) hide show
  1. package/dist/cjs/Client.js +2 -2
  2. package/dist/cjs/api/resources/billingNew/client/Client.d.ts +6 -3
  3. package/dist/cjs/api/resources/billingNew/client/Client.js +12 -7
  4. package/dist/cjs/api/resources/billingNew/resources/{rates → chrtGroundProviderRates}/client/Client.d.ts +43 -55
  5. package/dist/cjs/api/resources/billingNew/resources/{rates → chrtGroundProviderRates}/client/Client.js +91 -133
  6. package/dist/cjs/api/resources/billingNew/resources/{rates → chrtGroundProviderRates}/client/requests/ChrtGroundProviderRatesClientCreate1.d.ts +11 -3
  7. package/dist/cjs/api/resources/billingNew/resources/{rates → chrtGroundProviderRates}/client/requests/ChrtGroundProviderRatesClientUpdate1.d.ts +10 -0
  8. package/dist/cjs/api/resources/billingNew/resources/{rates/client/requests/RatesListV1Request.d.ts → chrtGroundProviderRates/client/requests/ChrtGroundProviderRatesListV1Request.d.ts} +8 -4
  9. package/dist/cjs/api/resources/billingNew/resources/chrtGroundProviderRates/client/requests/ResolveChrtGroundProviderRatesReq.d.ts +12 -0
  10. package/dist/cjs/api/resources/billingNew/resources/chrtGroundProviderRates/client/requests/index.d.ts +4 -0
  11. package/dist/cjs/api/resources/billingNew/resources/index.d.ts +4 -2
  12. package/dist/cjs/api/resources/billingNew/resources/index.js +5 -3
  13. package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/Client.d.ts +109 -8
  14. package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/Client.js +363 -14
  15. package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/CreateInvoiceLineItemsFromAmountReq.d.ts +1 -0
  16. package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/InvoiceLineItemsApproveManyReq.d.ts +12 -0
  17. package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/InvoiceLineItemsListV1Request.d.ts +3 -3
  18. package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/RecalculateOrderTaxInvoiceLineItemsReq.d.ts +12 -0
  19. package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/index.d.ts +2 -1
  20. package/dist/cjs/api/resources/billingNew/resources/invoices/client/Client.d.ts +1 -1
  21. package/dist/cjs/api/resources/billingNew/resources/invoices/client/Client.js +1 -1
  22. package/dist/cjs/api/resources/billingNew/resources/orders/client/Client.d.ts +70 -0
  23. package/dist/cjs/api/resources/billingNew/resources/orders/client/Client.js +248 -0
  24. package/dist/cjs/api/resources/billingNew/resources/orders/client/index.d.ts +2 -0
  25. package/dist/cjs/api/resources/billingNew/resources/orders/client/index.js +17 -0
  26. package/dist/cjs/api/resources/billingNew/resources/orders/client/requests/OrderBillingExpandedListReq.d.ts +70 -0
  27. package/dist/cjs/api/resources/billingNew/resources/orders/client/requests/index.d.ts +1 -0
  28. package/dist/cjs/api/resources/billingNew/resources/orders/client/requests/index.js +2 -0
  29. package/dist/cjs/api/resources/billingNew/resources/orders/index.d.ts +1 -0
  30. package/dist/cjs/api/resources/billingNew/resources/orders/index.js +17 -0
  31. package/dist/cjs/api/resources/shipping/client/Client.d.ts +3 -0
  32. package/dist/cjs/api/resources/shipping/client/Client.js +15 -10
  33. package/dist/cjs/api/resources/shipping/resources/index.d.ts +2 -0
  34. package/dist/cjs/api/resources/shipping/resources/index.js +3 -1
  35. package/dist/cjs/api/resources/shipping/resources/orderSchedules/client/Client.js +9 -1
  36. package/dist/cjs/api/resources/shipping/resources/orderSchedules/client/requests/OrderSchedulesListV1Request.d.ts +2 -0
  37. package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/Client.js +9 -1
  38. package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientCreate1.d.ts +1 -0
  39. package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientUpdate1.d.ts +1 -0
  40. package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplatesListV1Request.d.ts +2 -0
  41. package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/client/Client.d.ts +129 -0
  42. package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/client/Client.js +480 -0
  43. package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/client/index.d.ts +2 -0
  44. package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/client/index.js +17 -0
  45. package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/client/requests/OrderTemplateNewClientCreate1.d.ts +30 -0
  46. package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/client/requests/OrderTemplateNewClientCreate1.js +5 -0
  47. package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/client/requests/OrderTemplateNewClientUpdate1.d.ts +31 -0
  48. package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/client/requests/OrderTemplateNewClientUpdate1.js +5 -0
  49. package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/client/requests/OrderTemplateNewDateparserResolveReq.d.ts +15 -0
  50. package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/client/requests/OrderTemplateNewDateparserResolveReq.js +5 -0
  51. package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/client/requests/OrderTemplatesNewListV1Request.d.ts +36 -0
  52. package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/client/requests/OrderTemplatesNewListV1Request.js +5 -0
  53. package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/client/requests/index.d.ts +4 -0
  54. package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/client/requests/index.js +2 -0
  55. package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/index.d.ts +1 -0
  56. package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/index.js +17 -0
  57. package/dist/cjs/api/resources/shipping/resources/orders/client/Client.d.ts +0 -28
  58. package/dist/cjs/api/resources/shipping/resources/orders/client/Client.js +0 -120
  59. package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/client/requests/OrdersDraftUpdateReq.d.ts +2 -0
  60. package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/client/requests/OrdersOpenDraftReq.d.ts +1 -1
  61. package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/resources/task/client/Client.d.ts +1 -1
  62. package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/resources/task/client/Client.js +1 -1
  63. package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/resources/taskGroup/client/Client.d.ts +4 -2
  64. package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/resources/taskGroup/client/Client.js +6 -4
  65. package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/resources/taskGroup/client/requests/OrderDraftAddTaskGroupReq.d.ts +1 -1
  66. package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/resources/taskGroup/client/requests/SetVehicleTypeReq.d.ts +4 -3
  67. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.js +36 -4
  68. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForCoordinatorOperatorsV1Request.d.ts +2 -0
  69. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForExecutorOperatorsV1Request.d.ts +2 -0
  70. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForProviderOperatorsV1Request.d.ts +2 -0
  71. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForShipperOperatorsV1Request.d.ts +2 -0
  72. package/dist/cjs/api/resources/shipping/resources/ordersAndOrderGroups/client/Client.js +9 -1
  73. package/dist/cjs/api/resources/shipping/resources/ordersAndOrderGroups/client/requests/OrdersAndOrderGroupsUngroupedOrdersListV1Request.d.ts +2 -0
  74. package/dist/cjs/api/resources/shipping/resources/tasks/client/Client.d.ts +15 -1
  75. package/dist/cjs/api/resources/shipping/resources/tasks/client/Client.js +64 -1
  76. package/dist/cjs/api/resources/shipping/resources/tasks/client/requests/TaskLocationFromReferenceReq.d.ts +11 -0
  77. package/dist/cjs/api/resources/shipping/resources/tasks/client/requests/TaskLocationFromReferenceReq.js +5 -0
  78. package/dist/cjs/api/resources/shipping/resources/tasks/client/requests/index.d.ts +1 -0
  79. package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/assets/client/Client.d.ts +2 -2
  80. package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/assets/client/Client.js +2 -2
  81. package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/timeseries/client/Client.d.ts +1 -1
  82. package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/timeseries/client/Client.js +1 -1
  83. package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/workspaces/client/Client.d.ts +1 -1
  84. package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/workspaces/client/Client.js +1 -1
  85. package/dist/cjs/api/resources/trackingIntegrations/resources/tive/resources/devices/client/Client.d.ts +2 -2
  86. package/dist/cjs/api/resources/trackingIntegrations/resources/tive/resources/devices/client/Client.js +2 -2
  87. package/dist/cjs/api/resources/trackingIntegrations/resources/tive/resources/shipments/client/Client.d.ts +2 -2
  88. package/dist/cjs/api/resources/trackingIntegrations/resources/tive/resources/shipments/client/Client.js +2 -2
  89. package/dist/cjs/api/resources/trackingIntegrations/resources/tive/resources/timeseries/client/Client.d.ts +2 -2
  90. package/dist/cjs/api/resources/trackingIntegrations/resources/tive/resources/timeseries/client/Client.js +2 -2
  91. package/dist/cjs/api/types/AdHocInvoiceLineItem1.d.ts +8 -0
  92. package/dist/cjs/api/types/AdHocInvoiceLineItem1.js +5 -0
  93. package/dist/cjs/api/types/AdHocInvoiceLineItemsReq.d.ts +8 -0
  94. package/dist/cjs/api/types/AdHocInvoiceLineItemsReq.js +5 -0
  95. package/dist/cjs/api/types/Cargo1.d.ts +1 -0
  96. package/dist/cjs/api/types/CargoClientCreate1.d.ts +1 -0
  97. package/dist/cjs/api/types/CargoClientUpdate1.d.ts +2 -0
  98. package/dist/cjs/api/types/ChrtGroundProviderRates1.d.ts +10 -3
  99. package/dist/cjs/api/types/FromPayables1.d.ts +9 -0
  100. package/dist/cjs/api/types/FromPayables1.js +5 -0
  101. package/dist/cjs/api/types/InvoiceLineItem1.d.ts +4 -1
  102. package/dist/cjs/api/types/InvoiceLineItemClientCreate1.d.ts +20 -0
  103. package/dist/cjs/api/types/InvoiceLineItemClientCreate1.js +5 -0
  104. package/dist/cjs/api/types/InvoiceLineItemServerCreate1.d.ts +33 -0
  105. package/dist/cjs/api/types/InvoiceLineItemServerCreate1.js +5 -0
  106. package/dist/cjs/api/types/InvoiceLineItemStatusEnum1.d.ts +9 -0
  107. package/dist/cjs/api/types/InvoiceLineItemStatusEnum1.js +11 -0
  108. package/dist/cjs/api/types/InvoiceLineItemTypeEnum1.d.ts +4 -1
  109. package/dist/cjs/api/types/InvoiceLineItemTypeEnum1.js +3 -0
  110. package/dist/cjs/api/types/InvoiceLineItemsByOrderExpandedRes.d.ts +1 -1
  111. package/dist/cjs/api/types/InvoiceLineItemsFromChrtGroundProviderRateSheetsReq.d.ts +7 -0
  112. package/dist/cjs/api/types/InvoiceLineItemsFromChrtGroundProviderRateSheetsReq.js +5 -0
  113. package/dist/cjs/api/types/Order1.d.ts +1 -0
  114. package/dist/cjs/api/types/OrderBillingAccount1.d.ts +7 -0
  115. package/dist/cjs/api/types/OrderBillingAccount1.js +5 -0
  116. package/dist/cjs/api/types/OrderBillingCurrencyTotals1.d.ts +9 -0
  117. package/dist/cjs/api/types/OrderBillingCurrencyTotals1.js +5 -0
  118. package/dist/cjs/api/types/OrderBillingExecutor1.d.ts +11 -0
  119. package/dist/cjs/api/types/OrderBillingExecutor1.js +5 -0
  120. package/dist/cjs/api/types/OrderBillingExpandedListItem1.d.ts +19 -0
  121. package/dist/cjs/api/types/OrderBillingExpandedListItem1.js +5 -0
  122. package/dist/cjs/api/types/OrderBillingExpandedListRes.d.ts +8 -0
  123. package/dist/cjs/api/types/OrderBillingExpandedListRes.js +5 -0
  124. package/dist/cjs/api/types/OrderBillingShipper1.d.ts +9 -0
  125. package/dist/cjs/api/types/OrderBillingShipper1.js +5 -0
  126. package/dist/cjs/api/types/OrderBillingSortByEnum.d.ts +12 -0
  127. package/dist/cjs/api/types/OrderBillingSortByEnum.js +14 -0
  128. package/dist/cjs/api/types/OrderLimitedForCoordinator1.d.ts +1 -0
  129. package/dist/cjs/api/types/OrderLimitedForExecutor1.d.ts +1 -0
  130. package/dist/cjs/api/types/OrderLimitedForProvider1.d.ts +1 -0
  131. package/dist/cjs/api/types/OrderLimitedForShipper1.d.ts +1 -0
  132. package/dist/cjs/api/types/OrderTemplate1.d.ts +1 -0
  133. package/dist/cjs/api/types/OrderTemplateCore1.d.ts +2 -1
  134. package/dist/cjs/api/types/OrderTemplateNew1.d.ts +32 -0
  135. package/dist/cjs/api/types/OrderTemplateNew1.js +5 -0
  136. package/dist/cjs/api/types/OrderTemplateNewCargo1.d.ts +20 -0
  137. package/dist/cjs/api/types/OrderTemplateNewCargo1.js +5 -0
  138. package/dist/cjs/api/types/OrderTemplateNewDateTimeWindow1.d.ts +9 -0
  139. package/dist/cjs/api/types/OrderTemplateNewDateTimeWindow1.js +5 -0
  140. package/dist/cjs/api/types/OrderTemplateNewDateparserResolveRes.d.ts +9 -0
  141. package/dist/cjs/api/types/OrderTemplateNewDateparserResolveRes.js +5 -0
  142. package/dist/cjs/api/types/OrderTemplateNewListRes.d.ts +8 -0
  143. package/dist/cjs/api/types/OrderTemplateNewListRes.js +5 -0
  144. package/dist/cjs/api/types/OrderTemplateNewSortByEnum.d.ts +9 -0
  145. package/dist/cjs/api/types/OrderTemplateNewSortByEnum.js +11 -0
  146. package/dist/cjs/api/types/OrderTemplateNewTask1.d.ts +21 -0
  147. package/dist/cjs/api/types/OrderTemplateNewTask1.js +5 -0
  148. package/dist/cjs/api/types/OrderTemplateNewTaskArtifact1.d.ts +9 -0
  149. package/dist/cjs/api/types/OrderTemplateNewTaskArtifact1.js +5 -0
  150. package/dist/cjs/api/types/OrderTemplateNewTaskGroup1.d.ts +15 -0
  151. package/dist/cjs/api/types/OrderTemplateNewTaskGroup1.js +5 -0
  152. package/dist/cjs/api/types/OrdersDraftUpdateRes.d.ts +2 -0
  153. package/dist/cjs/api/types/ReelablesDataPoint1.d.ts +2 -0
  154. package/dist/cjs/api/types/ResolvedTaskGroupChrtGroundProviderRates1.d.ts +9 -0
  155. package/dist/cjs/api/types/ResolvedTaskGroupChrtGroundProviderRates1.js +5 -0
  156. package/dist/cjs/api/types/ServiceLineEnum.d.ts +8 -0
  157. package/dist/cjs/api/types/ServiceLineEnum.js +10 -0
  158. package/dist/cjs/api/types/Task1.d.ts +1 -0
  159. package/dist/cjs/api/types/TaskClientCreate1.d.ts +1 -0
  160. package/dist/cjs/api/types/TaskClientUpdate1.d.ts +1 -0
  161. package/dist/cjs/api/types/TaskGroup1.d.ts +1 -3
  162. package/dist/cjs/api/types/TaskGroupChrtGroundProviderRateSheetIds1.d.ts +7 -0
  163. package/dist/cjs/api/types/TaskGroupChrtGroundProviderRateSheetIds1.js +5 -0
  164. package/dist/cjs/api/types/TaskGroupInvoiceLineItemsFromChrtGroundProviderRateSheetsPreview1.d.ts +9 -0
  165. package/dist/cjs/api/types/TaskGroupInvoiceLineItemsFromChrtGroundProviderRateSheetsPreview1.js +5 -0
  166. package/dist/cjs/api/types/TaxRate1.d.ts +9 -0
  167. package/dist/cjs/api/types/TaxRate1.js +5 -0
  168. package/dist/cjs/api/types/VehicleTypeEnum.d.ts +2 -1
  169. package/dist/cjs/api/types/VehicleTypeEnum.js +1 -0
  170. package/dist/cjs/api/types/index.d.ts +28 -1
  171. package/dist/cjs/api/types/index.js +28 -1
  172. package/dist/cjs/version.d.ts +1 -1
  173. package/dist/cjs/version.js +1 -1
  174. package/dist/esm/Client.mjs +2 -2
  175. package/dist/esm/api/resources/billingNew/client/Client.d.mts +6 -3
  176. package/dist/esm/api/resources/billingNew/client/Client.mjs +8 -3
  177. package/dist/esm/api/resources/billingNew/resources/{rates → chrtGroundProviderRates}/client/Client.d.mts +43 -55
  178. package/dist/esm/api/resources/billingNew/resources/{rates → chrtGroundProviderRates}/client/Client.mjs +89 -131
  179. package/dist/esm/api/resources/billingNew/resources/{rates → chrtGroundProviderRates}/client/requests/ChrtGroundProviderRatesClientCreate1.d.mts +11 -3
  180. package/dist/esm/api/resources/billingNew/resources/{rates → chrtGroundProviderRates}/client/requests/ChrtGroundProviderRatesClientUpdate1.d.mts +10 -0
  181. package/dist/esm/api/resources/billingNew/resources/{rates/client/requests/RatesListV1Request.d.mts → chrtGroundProviderRates/client/requests/ChrtGroundProviderRatesListV1Request.d.mts} +8 -4
  182. package/dist/esm/api/resources/billingNew/resources/chrtGroundProviderRates/client/requests/ResolveChrtGroundProviderRatesReq.d.mts +12 -0
  183. package/dist/esm/api/resources/billingNew/resources/chrtGroundProviderRates/client/requests/index.d.mts +4 -0
  184. package/dist/esm/api/resources/billingNew/resources/index.d.mts +4 -2
  185. package/dist/esm/api/resources/billingNew/resources/index.mjs +4 -2
  186. package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/Client.d.mts +109 -8
  187. package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/Client.mjs +363 -14
  188. package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/CreateInvoiceLineItemsFromAmountReq.d.mts +1 -0
  189. package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/InvoiceLineItemsApproveManyReq.d.mts +12 -0
  190. package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/InvoiceLineItemsListV1Request.d.mts +3 -3
  191. package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/RecalculateOrderTaxInvoiceLineItemsReq.d.mts +12 -0
  192. package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/index.d.mts +2 -1
  193. package/dist/esm/api/resources/billingNew/resources/invoices/client/Client.d.mts +1 -1
  194. package/dist/esm/api/resources/billingNew/resources/invoices/client/Client.mjs +1 -1
  195. package/dist/esm/api/resources/billingNew/resources/orders/client/Client.d.mts +70 -0
  196. package/dist/esm/api/resources/billingNew/resources/orders/client/Client.mjs +211 -0
  197. package/dist/esm/api/resources/billingNew/resources/orders/client/index.d.mts +2 -0
  198. package/dist/esm/api/resources/billingNew/resources/orders/client/index.mjs +1 -0
  199. package/dist/esm/api/resources/billingNew/resources/orders/client/requests/OrderBillingExpandedListReq.d.mts +70 -0
  200. package/dist/esm/api/resources/billingNew/resources/orders/client/requests/index.d.mts +1 -0
  201. package/dist/esm/api/resources/billingNew/resources/orders/client/requests/index.mjs +1 -0
  202. package/dist/esm/api/resources/billingNew/resources/orders/index.d.mts +1 -0
  203. package/dist/esm/api/resources/billingNew/resources/orders/index.mjs +1 -0
  204. package/dist/esm/api/resources/shipping/client/Client.d.mts +3 -0
  205. package/dist/esm/api/resources/shipping/client/Client.mjs +5 -0
  206. package/dist/esm/api/resources/shipping/resources/index.d.mts +2 -0
  207. package/dist/esm/api/resources/shipping/resources/index.mjs +2 -0
  208. package/dist/esm/api/resources/shipping/resources/orderSchedules/client/Client.mjs +9 -1
  209. package/dist/esm/api/resources/shipping/resources/orderSchedules/client/requests/OrderSchedulesListV1Request.d.mts +2 -0
  210. package/dist/esm/api/resources/shipping/resources/orderTemplates/client/Client.mjs +9 -1
  211. package/dist/esm/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientCreate1.d.mts +1 -0
  212. package/dist/esm/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientUpdate1.d.mts +1 -0
  213. package/dist/esm/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplatesListV1Request.d.mts +2 -0
  214. package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/client/Client.d.mts +129 -0
  215. package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/client/Client.mjs +443 -0
  216. package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/client/index.d.mts +2 -0
  217. package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/client/index.mjs +1 -0
  218. package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/client/requests/OrderTemplateNewClientCreate1.d.mts +30 -0
  219. package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/client/requests/OrderTemplateNewClientCreate1.mjs +4 -0
  220. package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/client/requests/OrderTemplateNewClientUpdate1.d.mts +31 -0
  221. package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/client/requests/OrderTemplateNewClientUpdate1.mjs +4 -0
  222. package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/client/requests/OrderTemplateNewDateparserResolveReq.d.mts +15 -0
  223. package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/client/requests/OrderTemplateNewDateparserResolveReq.mjs +4 -0
  224. package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/client/requests/OrderTemplatesNewListV1Request.d.mts +36 -0
  225. package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/client/requests/OrderTemplatesNewListV1Request.mjs +4 -0
  226. package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/client/requests/index.d.mts +4 -0
  227. package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/client/requests/index.mjs +1 -0
  228. package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/index.d.mts +1 -0
  229. package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/index.mjs +1 -0
  230. package/dist/esm/api/resources/shipping/resources/orders/client/Client.d.mts +0 -28
  231. package/dist/esm/api/resources/shipping/resources/orders/client/Client.mjs +0 -120
  232. package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/client/requests/OrdersDraftUpdateReq.d.mts +2 -0
  233. package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/client/requests/OrdersOpenDraftReq.d.mts +1 -1
  234. package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/resources/task/client/Client.d.mts +1 -1
  235. package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/resources/task/client/Client.mjs +1 -1
  236. package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/resources/taskGroup/client/Client.d.mts +4 -2
  237. package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/resources/taskGroup/client/Client.mjs +6 -4
  238. package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/resources/taskGroup/client/requests/OrderDraftAddTaskGroupReq.d.mts +1 -1
  239. package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/resources/taskGroup/client/requests/SetVehicleTypeReq.d.mts +4 -3
  240. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.mjs +36 -4
  241. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForCoordinatorOperatorsV1Request.d.mts +2 -0
  242. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForExecutorOperatorsV1Request.d.mts +2 -0
  243. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForProviderOperatorsV1Request.d.mts +2 -0
  244. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForShipperOperatorsV1Request.d.mts +2 -0
  245. package/dist/esm/api/resources/shipping/resources/ordersAndOrderGroups/client/Client.mjs +9 -1
  246. package/dist/esm/api/resources/shipping/resources/ordersAndOrderGroups/client/requests/OrdersAndOrderGroupsUngroupedOrdersListV1Request.d.mts +2 -0
  247. package/dist/esm/api/resources/shipping/resources/tasks/client/Client.d.mts +15 -1
  248. package/dist/esm/api/resources/shipping/resources/tasks/client/Client.mjs +64 -1
  249. package/dist/esm/api/resources/shipping/resources/tasks/client/requests/TaskLocationFromReferenceReq.d.mts +11 -0
  250. package/dist/esm/api/resources/shipping/resources/tasks/client/requests/TaskLocationFromReferenceReq.mjs +4 -0
  251. package/dist/esm/api/resources/shipping/resources/tasks/client/requests/index.d.mts +1 -0
  252. package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/assets/client/Client.d.mts +2 -2
  253. package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/assets/client/Client.mjs +2 -2
  254. package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/timeseries/client/Client.d.mts +1 -1
  255. package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/timeseries/client/Client.mjs +1 -1
  256. package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/workspaces/client/Client.d.mts +1 -1
  257. package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/workspaces/client/Client.mjs +1 -1
  258. package/dist/esm/api/resources/trackingIntegrations/resources/tive/resources/devices/client/Client.d.mts +2 -2
  259. package/dist/esm/api/resources/trackingIntegrations/resources/tive/resources/devices/client/Client.mjs +2 -2
  260. package/dist/esm/api/resources/trackingIntegrations/resources/tive/resources/shipments/client/Client.d.mts +2 -2
  261. package/dist/esm/api/resources/trackingIntegrations/resources/tive/resources/shipments/client/Client.mjs +2 -2
  262. package/dist/esm/api/resources/trackingIntegrations/resources/tive/resources/timeseries/client/Client.d.mts +2 -2
  263. package/dist/esm/api/resources/trackingIntegrations/resources/tive/resources/timeseries/client/Client.mjs +2 -2
  264. package/dist/esm/api/types/AdHocInvoiceLineItem1.d.mts +8 -0
  265. package/dist/esm/api/types/AdHocInvoiceLineItem1.mjs +4 -0
  266. package/dist/esm/api/types/AdHocInvoiceLineItemsReq.d.mts +8 -0
  267. package/dist/esm/api/types/AdHocInvoiceLineItemsReq.mjs +4 -0
  268. package/dist/esm/api/types/Cargo1.d.mts +1 -0
  269. package/dist/esm/api/types/CargoClientCreate1.d.mts +1 -0
  270. package/dist/esm/api/types/CargoClientUpdate1.d.mts +2 -0
  271. package/dist/esm/api/types/ChrtGroundProviderRates1.d.mts +10 -3
  272. package/dist/esm/api/types/FromPayables1.d.mts +9 -0
  273. package/dist/esm/api/types/FromPayables1.mjs +4 -0
  274. package/dist/esm/api/types/InvoiceLineItem1.d.mts +4 -1
  275. package/dist/esm/api/types/InvoiceLineItemClientCreate1.d.mts +20 -0
  276. package/dist/esm/api/types/InvoiceLineItemClientCreate1.mjs +4 -0
  277. package/dist/esm/api/types/InvoiceLineItemServerCreate1.d.mts +33 -0
  278. package/dist/esm/api/types/InvoiceLineItemServerCreate1.mjs +4 -0
  279. package/dist/esm/api/types/InvoiceLineItemStatusEnum1.d.mts +9 -0
  280. package/dist/esm/api/types/InvoiceLineItemStatusEnum1.mjs +8 -0
  281. package/dist/esm/api/types/InvoiceLineItemTypeEnum1.d.mts +4 -1
  282. package/dist/esm/api/types/InvoiceLineItemTypeEnum1.mjs +3 -0
  283. package/dist/esm/api/types/InvoiceLineItemsByOrderExpandedRes.d.mts +1 -1
  284. package/dist/esm/api/types/InvoiceLineItemsFromChrtGroundProviderRateSheetsReq.d.mts +7 -0
  285. package/dist/esm/api/types/InvoiceLineItemsFromChrtGroundProviderRateSheetsReq.mjs +4 -0
  286. package/dist/esm/api/types/Order1.d.mts +1 -0
  287. package/dist/esm/api/types/OrderBillingAccount1.d.mts +7 -0
  288. package/dist/esm/api/types/OrderBillingAccount1.mjs +4 -0
  289. package/dist/esm/api/types/OrderBillingCurrencyTotals1.d.mts +9 -0
  290. package/dist/esm/api/types/OrderBillingCurrencyTotals1.mjs +4 -0
  291. package/dist/esm/api/types/OrderBillingExecutor1.d.mts +11 -0
  292. package/dist/esm/api/types/OrderBillingExecutor1.mjs +4 -0
  293. package/dist/esm/api/types/OrderBillingExpandedListItem1.d.mts +19 -0
  294. package/dist/esm/api/types/OrderBillingExpandedListItem1.mjs +4 -0
  295. package/dist/esm/api/types/OrderBillingExpandedListRes.d.mts +8 -0
  296. package/dist/esm/api/types/OrderBillingExpandedListRes.mjs +4 -0
  297. package/dist/esm/api/types/OrderBillingShipper1.d.mts +9 -0
  298. package/dist/esm/api/types/OrderBillingShipper1.mjs +4 -0
  299. package/dist/esm/api/types/OrderBillingSortByEnum.d.mts +12 -0
  300. package/dist/esm/api/types/OrderBillingSortByEnum.mjs +11 -0
  301. package/dist/esm/api/types/OrderLimitedForCoordinator1.d.mts +1 -0
  302. package/dist/esm/api/types/OrderLimitedForExecutor1.d.mts +1 -0
  303. package/dist/esm/api/types/OrderLimitedForProvider1.d.mts +1 -0
  304. package/dist/esm/api/types/OrderLimitedForShipper1.d.mts +1 -0
  305. package/dist/esm/api/types/OrderTemplate1.d.mts +1 -0
  306. package/dist/esm/api/types/OrderTemplateCore1.d.mts +2 -1
  307. package/dist/esm/api/types/OrderTemplateNew1.d.mts +32 -0
  308. package/dist/esm/api/types/OrderTemplateNew1.mjs +4 -0
  309. package/dist/esm/api/types/OrderTemplateNewCargo1.d.mts +20 -0
  310. package/dist/esm/api/types/OrderTemplateNewCargo1.mjs +4 -0
  311. package/dist/esm/api/types/OrderTemplateNewDateTimeWindow1.d.mts +9 -0
  312. package/dist/esm/api/types/OrderTemplateNewDateTimeWindow1.mjs +4 -0
  313. package/dist/esm/api/types/OrderTemplateNewDateparserResolveRes.d.mts +9 -0
  314. package/dist/esm/api/types/OrderTemplateNewDateparserResolveRes.mjs +4 -0
  315. package/dist/esm/api/types/OrderTemplateNewListRes.d.mts +8 -0
  316. package/dist/esm/api/types/OrderTemplateNewListRes.mjs +4 -0
  317. package/dist/esm/api/types/OrderTemplateNewSortByEnum.d.mts +9 -0
  318. package/dist/esm/api/types/OrderTemplateNewSortByEnum.mjs +8 -0
  319. package/dist/esm/api/types/OrderTemplateNewTask1.d.mts +21 -0
  320. package/dist/esm/api/types/OrderTemplateNewTask1.mjs +4 -0
  321. package/dist/esm/api/types/OrderTemplateNewTaskArtifact1.d.mts +9 -0
  322. package/dist/esm/api/types/OrderTemplateNewTaskArtifact1.mjs +4 -0
  323. package/dist/esm/api/types/OrderTemplateNewTaskGroup1.d.mts +15 -0
  324. package/dist/esm/api/types/OrderTemplateNewTaskGroup1.mjs +4 -0
  325. package/dist/esm/api/types/OrdersDraftUpdateRes.d.mts +2 -0
  326. package/dist/esm/api/types/ReelablesDataPoint1.d.mts +2 -0
  327. package/dist/esm/api/types/ResolvedTaskGroupChrtGroundProviderRates1.d.mts +9 -0
  328. package/dist/esm/api/types/ResolvedTaskGroupChrtGroundProviderRates1.mjs +4 -0
  329. package/dist/esm/api/types/ServiceLineEnum.d.mts +8 -0
  330. package/dist/esm/api/types/ServiceLineEnum.mjs +7 -0
  331. package/dist/esm/api/types/Task1.d.mts +1 -0
  332. package/dist/esm/api/types/TaskClientCreate1.d.mts +1 -0
  333. package/dist/esm/api/types/TaskClientUpdate1.d.mts +1 -0
  334. package/dist/esm/api/types/TaskGroup1.d.mts +1 -3
  335. package/dist/esm/api/types/TaskGroupChrtGroundProviderRateSheetIds1.d.mts +7 -0
  336. package/dist/esm/api/types/TaskGroupChrtGroundProviderRateSheetIds1.mjs +4 -0
  337. package/dist/esm/api/types/TaskGroupInvoiceLineItemsFromChrtGroundProviderRateSheetsPreview1.d.mts +9 -0
  338. package/dist/esm/api/types/TaskGroupInvoiceLineItemsFromChrtGroundProviderRateSheetsPreview1.mjs +4 -0
  339. package/dist/esm/api/types/TaxRate1.d.mts +9 -0
  340. package/dist/esm/api/types/TaxRate1.mjs +4 -0
  341. package/dist/esm/api/types/VehicleTypeEnum.d.mts +2 -1
  342. package/dist/esm/api/types/VehicleTypeEnum.mjs +1 -0
  343. package/dist/esm/api/types/index.d.mts +28 -1
  344. package/dist/esm/api/types/index.mjs +28 -1
  345. package/dist/esm/version.d.mts +1 -1
  346. package/dist/esm/version.mjs +1 -1
  347. package/package.json +1 -1
  348. package/reference.md +2851 -2145
  349. package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/ApplyChrtGroundProviderRatesReq.d.ts +0 -22
  350. package/dist/cjs/api/resources/billingNew/resources/rates/client/requests/ChrtGroundProviderRatesAddCounterpartiesReq.d.ts +0 -13
  351. package/dist/cjs/api/resources/billingNew/resources/rates/client/requests/ChrtGroundProviderRatesRemoveCounterpartiesReq.d.ts +0 -13
  352. package/dist/cjs/api/resources/billingNew/resources/rates/client/requests/index.d.ts +0 -5
  353. package/dist/cjs/api/types/ApplyChrtGroundProviderRatesRes.d.ts +0 -7
  354. package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/ApplyChrtGroundProviderRatesReq.d.mts +0 -22
  355. package/dist/esm/api/resources/billingNew/resources/rates/client/requests/ChrtGroundProviderRatesAddCounterpartiesReq.d.mts +0 -13
  356. package/dist/esm/api/resources/billingNew/resources/rates/client/requests/ChrtGroundProviderRatesRemoveCounterpartiesReq.d.mts +0 -13
  357. package/dist/esm/api/resources/billingNew/resources/rates/client/requests/index.d.mts +0 -5
  358. package/dist/esm/api/types/ApplyChrtGroundProviderRatesRes.d.mts +0 -7
  359. /package/dist/cjs/api/resources/billingNew/resources/{rates → chrtGroundProviderRates}/client/index.d.ts +0 -0
  360. /package/dist/cjs/api/resources/billingNew/resources/{rates → chrtGroundProviderRates}/client/index.js +0 -0
  361. /package/dist/cjs/api/resources/billingNew/resources/{rates → chrtGroundProviderRates}/client/requests/ChrtGroundProviderRatesClientCreate1.js +0 -0
  362. /package/dist/cjs/api/resources/billingNew/resources/{rates → chrtGroundProviderRates}/client/requests/ChrtGroundProviderRatesClientUpdate1.js +0 -0
  363. /package/dist/cjs/api/resources/billingNew/resources/{invoiceLineItems/client/requests/ApplyChrtGroundProviderRatesReq.js → chrtGroundProviderRates/client/requests/ChrtGroundProviderRatesListV1Request.js} +0 -0
  364. /package/dist/cjs/api/resources/billingNew/resources/{rates/client/requests/ChrtGroundProviderRatesAddCounterpartiesReq.js → chrtGroundProviderRates/client/requests/ResolveChrtGroundProviderRatesReq.js} +0 -0
  365. /package/dist/cjs/api/resources/billingNew/resources/{rates → chrtGroundProviderRates}/client/requests/index.js +0 -0
  366. /package/dist/cjs/api/resources/billingNew/resources/{rates → chrtGroundProviderRates}/index.d.ts +0 -0
  367. /package/dist/cjs/api/resources/billingNew/resources/{rates → chrtGroundProviderRates}/index.js +0 -0
  368. /package/dist/cjs/api/resources/billingNew/resources/{rates/client/requests/ChrtGroundProviderRatesRemoveCounterpartiesReq.js → invoiceLineItems/client/requests/InvoiceLineItemsApproveManyReq.js} +0 -0
  369. /package/dist/cjs/api/resources/billingNew/resources/{rates/client/requests/RatesListV1Request.js → invoiceLineItems/client/requests/RecalculateOrderTaxInvoiceLineItemsReq.js} +0 -0
  370. /package/dist/cjs/api/{types/ApplyChrtGroundProviderRatesRes.js → resources/billingNew/resources/orders/client/requests/OrderBillingExpandedListReq.js} +0 -0
  371. /package/dist/esm/api/resources/billingNew/resources/{rates → chrtGroundProviderRates}/client/index.d.mts +0 -0
  372. /package/dist/esm/api/resources/billingNew/resources/{rates → chrtGroundProviderRates}/client/index.mjs +0 -0
  373. /package/dist/esm/api/resources/billingNew/resources/{rates → chrtGroundProviderRates}/client/requests/ChrtGroundProviderRatesClientCreate1.mjs +0 -0
  374. /package/dist/esm/api/resources/billingNew/resources/{rates → chrtGroundProviderRates}/client/requests/ChrtGroundProviderRatesClientUpdate1.mjs +0 -0
  375. /package/dist/esm/api/resources/billingNew/resources/{invoiceLineItems/client/requests/ApplyChrtGroundProviderRatesReq.mjs → chrtGroundProviderRates/client/requests/ChrtGroundProviderRatesListV1Request.mjs} +0 -0
  376. /package/dist/esm/api/resources/billingNew/resources/{rates/client/requests/ChrtGroundProviderRatesAddCounterpartiesReq.mjs → chrtGroundProviderRates/client/requests/ResolveChrtGroundProviderRatesReq.mjs} +0 -0
  377. /package/dist/esm/api/resources/billingNew/resources/{rates → chrtGroundProviderRates}/client/requests/index.mjs +0 -0
  378. /package/dist/esm/api/resources/billingNew/resources/{rates → chrtGroundProviderRates}/index.d.mts +0 -0
  379. /package/dist/esm/api/resources/billingNew/resources/{rates → chrtGroundProviderRates}/index.mjs +0 -0
  380. /package/dist/esm/api/resources/billingNew/resources/{rates/client/requests/ChrtGroundProviderRatesRemoveCounterpartiesReq.mjs → invoiceLineItems/client/requests/InvoiceLineItemsApproveManyReq.mjs} +0 -0
  381. /package/dist/esm/api/resources/billingNew/resources/{rates/client/requests/RatesListV1Request.mjs → invoiceLineItems/client/requests/RecalculateOrderTaxInvoiceLineItemsReq.mjs} +0 -0
  382. /package/dist/esm/api/{types/ApplyChrtGroundProviderRatesRes.mjs → resources/billingNew/resources/orders/client/requests/OrderBillingExpandedListReq.mjs} +0 -0
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./client/index.js"), exports);
@@ -80,34 +80,6 @@ export declare class Orders {
80
80
  */
81
81
  cancelManyV1(request: Chrt.shipping.OrdersCancelManyReq, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<boolean>;
82
82
  private __cancelManyV1;
83
- /**
84
- * Adds a coordinator-owned account for the order's shipper. | authz_personas=[coordinator_org_operators] | () -> (bool)
85
- *
86
- * @param {string} orderId
87
- * @param {string} coordinatorShipperAccountId
88
- * @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
89
- *
90
- * @throws {@link Chrt.UnprocessableEntityError}
91
- *
92
- * @example
93
- * await client.shipping.orders.addCoordinatorShipperAccountIdV1("order_id", "coordinator_shipper_account_id")
94
- */
95
- addCoordinatorShipperAccountIdV1(orderId: string, coordinatorShipperAccountId: string, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<boolean>;
96
- private __addCoordinatorShipperAccountIdV1;
97
- /**
98
- * Removes a coordinator-owned account for the order's shipper. | authz_personas=[coordinator_org_operators] | () -> (bool)
99
- *
100
- * @param {string} orderId
101
- * @param {string} coordinatorShipperAccountId
102
- * @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
103
- *
104
- * @throws {@link Chrt.UnprocessableEntityError}
105
- *
106
- * @example
107
- * await client.shipping.orders.removeCoordinatorShipperAccountIdV1("order_id", "coordinator_shipper_account_id")
108
- */
109
- removeCoordinatorShipperAccountIdV1(orderId: string, coordinatorShipperAccountId: string, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<boolean>;
110
- private __removeCoordinatorShipperAccountIdV1;
111
83
  /**
112
84
  * Validates a draft order and stages all related entities in a transaction. | authz_personas=[draft_creator_org_operator] | () -> (bool)
113
85
  *
@@ -253,126 +253,6 @@ class Orders {
253
253
  }
254
254
  });
255
255
  }
256
- /**
257
- * Adds a coordinator-owned account for the order's shipper. | authz_personas=[coordinator_org_operators] | () -> (bool)
258
- *
259
- * @param {string} orderId
260
- * @param {string} coordinatorShipperAccountId
261
- * @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
262
- *
263
- * @throws {@link Chrt.UnprocessableEntityError}
264
- *
265
- * @example
266
- * await client.shipping.orders.addCoordinatorShipperAccountIdV1("order_id", "coordinator_shipper_account_id")
267
- */
268
- addCoordinatorShipperAccountIdV1(orderId, coordinatorShipperAccountId, requestOptions) {
269
- return core.HttpResponsePromise.fromPromise(this.__addCoordinatorShipperAccountIdV1(orderId, coordinatorShipperAccountId, requestOptions));
270
- }
271
- __addCoordinatorShipperAccountIdV1(orderId, coordinatorShipperAccountId, requestOptions) {
272
- return __awaiter(this, void 0, void 0, function* () {
273
- var _a, _b, _c, _d;
274
- 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);
275
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
276
- 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, `shipping/orders/coordinator_shipper_account_ids/add/v1/${encodeURIComponent(orderId)}/${encodeURIComponent(coordinatorShipperAccountId)}`),
277
- method: "POST",
278
- headers: _headers,
279
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
280
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
281
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
282
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
283
- });
284
- if (_response.ok) {
285
- return { data: _response.body, rawResponse: _response.rawResponse };
286
- }
287
- if (_response.error.reason === "status-code") {
288
- switch (_response.error.statusCode) {
289
- case 422:
290
- throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
291
- default:
292
- throw new errors.ChrtError({
293
- statusCode: _response.error.statusCode,
294
- body: _response.error.body,
295
- rawResponse: _response.rawResponse,
296
- });
297
- }
298
- }
299
- switch (_response.error.reason) {
300
- case "non-json":
301
- throw new errors.ChrtError({
302
- statusCode: _response.error.statusCode,
303
- body: _response.error.rawBody,
304
- rawResponse: _response.rawResponse,
305
- });
306
- case "timeout":
307
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /shipping/orders/coordinator_shipper_account_ids/add/v1/{order_id}/{coordinator_shipper_account_id}.");
308
- case "unknown":
309
- throw new errors.ChrtError({
310
- message: _response.error.errorMessage,
311
- rawResponse: _response.rawResponse,
312
- });
313
- }
314
- });
315
- }
316
- /**
317
- * Removes a coordinator-owned account for the order's shipper. | authz_personas=[coordinator_org_operators] | () -> (bool)
318
- *
319
- * @param {string} orderId
320
- * @param {string} coordinatorShipperAccountId
321
- * @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
322
- *
323
- * @throws {@link Chrt.UnprocessableEntityError}
324
- *
325
- * @example
326
- * await client.shipping.orders.removeCoordinatorShipperAccountIdV1("order_id", "coordinator_shipper_account_id")
327
- */
328
- removeCoordinatorShipperAccountIdV1(orderId, coordinatorShipperAccountId, requestOptions) {
329
- return core.HttpResponsePromise.fromPromise(this.__removeCoordinatorShipperAccountIdV1(orderId, coordinatorShipperAccountId, requestOptions));
330
- }
331
- __removeCoordinatorShipperAccountIdV1(orderId, coordinatorShipperAccountId, requestOptions) {
332
- return __awaiter(this, void 0, void 0, function* () {
333
- var _a, _b, _c, _d;
334
- 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);
335
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
336
- 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, `shipping/orders/coordinator_shipper_account_ids/remove/v1/${encodeURIComponent(orderId)}/${encodeURIComponent(coordinatorShipperAccountId)}`),
337
- method: "POST",
338
- headers: _headers,
339
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
340
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
341
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
342
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
343
- });
344
- if (_response.ok) {
345
- return { data: _response.body, rawResponse: _response.rawResponse };
346
- }
347
- if (_response.error.reason === "status-code") {
348
- switch (_response.error.statusCode) {
349
- case 422:
350
- throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
351
- default:
352
- throw new errors.ChrtError({
353
- statusCode: _response.error.statusCode,
354
- body: _response.error.body,
355
- rawResponse: _response.rawResponse,
356
- });
357
- }
358
- }
359
- switch (_response.error.reason) {
360
- case "non-json":
361
- throw new errors.ChrtError({
362
- statusCode: _response.error.statusCode,
363
- body: _response.error.rawBody,
364
- rawResponse: _response.rawResponse,
365
- });
366
- case "timeout":
367
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /shipping/orders/coordinator_shipper_account_ids/remove/v1/{order_id}/{coordinator_shipper_account_id}.");
368
- case "unknown":
369
- throw new errors.ChrtError({
370
- message: _response.error.errorMessage,
371
- rawResponse: _response.rawResponse,
372
- });
373
- }
374
- });
375
- }
376
256
  /**
377
257
  * Validates a draft order and stages all related entities in a transaction. | authz_personas=[draft_creator_org_operator] | () -> (bool)
378
258
  *
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as Chrt from "../../../../../../../../index.js";
4
5
  /**
5
6
  * @example
6
7
  * {}
@@ -14,6 +15,7 @@ export interface OrdersDraftUpdateReq {
14
15
  off_chrt_reference_id__set_to_None?: boolean;
15
16
  off_chrt_shipper_org_data_id?: string | null;
16
17
  off_chrt_shipper_org_data_id__set_to_None?: boolean;
18
+ service_line?: Chrt.ServiceLineEnum | null;
17
19
  /** Must be a string starting with `org_` */
18
20
  shipper_org_id?: string | null;
19
21
  shipper_org_id__set_to_None?: boolean;
@@ -9,7 +9,6 @@ import * as Chrt from "../../../../../../../../index.js";
9
9
  export interface OrdersOpenDraftReq {
10
10
  /** Must be a string starting with `org_` */
11
11
  coordinator_org_id?: string | null;
12
- coordinator_shipper_account_ids?: string[];
13
12
  /** Optional key, unique per caller org, that makes draft creation idempotent: re-sending the same key returns the already-created draft instead of creating a duplicate. */
14
13
  creation_idempotency_key?: string | null;
15
14
  department_id?: string | null;
@@ -23,6 +22,7 @@ export interface OrdersOpenDraftReq {
23
22
  order_schedule_run_idempotency_key?: string | null;
24
23
  /** Saved order template that seeded this draft. Used as template-build provenance. */
25
24
  order_template_id?: string | null;
25
+ service_line?: Chrt.ServiceLineEnum;
26
26
  /** Must be a string starting with `org_` */
27
27
  shipper_org_id?: string | null;
28
28
  /** OperationsTaskList applications to materialize on the Order for the coordinator org at draft creation, each with optional department override and first-deadline pin. */
@@ -62,7 +62,7 @@ export declare class Task {
62
62
  deleteV1(taskId: string, requestOptions?: Task.RequestOptions): core.HttpResponsePromise<boolean>;
63
63
  private __deleteV1;
64
64
  /**
65
- * Updates a task in an existing draft order. | authz_personas=[draft_creator_org_operator] | (OrderDraftUpdateTaskReq) -> (PydanticObjectId)
65
+ * Updates a task in an existing draft order. Supplying coordinator_shipper_account_ids additionally requires coordinator_org_operators. | authz_personas=[draft_creator_org_operator, coordinator_org_operators] | (OrderDraftUpdateTaskReq) -> (PydanticObjectId)
66
66
  *
67
67
  * @param {Chrt.shipping.orders.drafts.OrderDraftUpdateTaskReq} request
68
68
  * @param {Task.RequestOptions} requestOptions - Request-specific configuration.
@@ -182,7 +182,7 @@ class Task {
182
182
  });
183
183
  }
184
184
  /**
185
- * Updates a task in an existing draft order. | authz_personas=[draft_creator_org_operator] | (OrderDraftUpdateTaskReq) -> (PydanticObjectId)
185
+ * Updates a task in an existing draft order. Supplying coordinator_shipper_account_ids additionally requires coordinator_org_operators. | authz_personas=[draft_creator_org_operator, coordinator_org_operators] | (OrderDraftUpdateTaskReq) -> (PydanticObjectId)
186
186
  *
187
187
  * @param {Chrt.shipping.orders.drafts.OrderDraftUpdateTaskReq} request
188
188
  * @param {Task.RequestOptions} requestOptions - Request-specific configuration.
@@ -163,9 +163,11 @@ export declare class TaskGroup {
163
163
  * @throws {@link Chrt.UnprocessableEntityError}
164
164
  *
165
165
  * @example
166
- * await client.shipping.orders.drafts.taskGroup.setVehicleTypeV1("task_group_id")
166
+ * await client.shipping.orders.drafts.taskGroup.setVehicleTypeV1("task_group_id", {
167
+ * vehicle_type: "sedan"
168
+ * })
167
169
  */
168
- setVehicleTypeV1(taskGroupId: string, request?: Chrt.shipping.orders.drafts.SetVehicleTypeReq, requestOptions?: TaskGroup.RequestOptions): core.HttpResponsePromise<boolean>;
170
+ setVehicleTypeV1(taskGroupId: string, request: Chrt.shipping.orders.drafts.SetVehicleTypeReq, requestOptions?: TaskGroup.RequestOptions): core.HttpResponsePromise<boolean>;
169
171
  private __setVehicleTypeV1;
170
172
  /**
171
173
  * Assigns or swaps the driver on a draft task group. Only the executor org may assign drivers. | authz_personas=[executor_org_operators] | (OrderDraftUpdateDriverReq) -> (bool)
@@ -571,13 +571,15 @@ class TaskGroup {
571
571
  * @throws {@link Chrt.UnprocessableEntityError}
572
572
  *
573
573
  * @example
574
- * await client.shipping.orders.drafts.taskGroup.setVehicleTypeV1("task_group_id")
574
+ * await client.shipping.orders.drafts.taskGroup.setVehicleTypeV1("task_group_id", {
575
+ * vehicle_type: "sedan"
576
+ * })
575
577
  */
576
- setVehicleTypeV1(taskGroupId, request = {}, requestOptions) {
578
+ setVehicleTypeV1(taskGroupId, request, requestOptions) {
577
579
  return core.HttpResponsePromise.fromPromise(this.__setVehicleTypeV1(taskGroupId, request, requestOptions));
578
580
  }
579
- __setVehicleTypeV1(taskGroupId_1) {
580
- return __awaiter(this, arguments, void 0, function* (taskGroupId, request = {}, requestOptions) {
581
+ __setVehicleTypeV1(taskGroupId, request, requestOptions) {
582
+ return __awaiter(this, void 0, void 0, function* () {
581
583
  var _a, _b, _c, _d;
582
584
  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);
583
585
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
@@ -13,5 +13,5 @@ export interface OrderDraftAddTaskGroupReq {
13
13
  flight_setup_notes?: string | null;
14
14
  order_id: string;
15
15
  task_group_type: Chrt.TaskGroupTypeEnum1;
16
- vehicle_type?: Chrt.VehicleTypeEnum | null;
16
+ vehicle_type?: Chrt.VehicleTypeEnum;
17
17
  }
@@ -4,9 +4,10 @@
4
4
  import * as Chrt from "../../../../../../../../../../index.js";
5
5
  /**
6
6
  * @example
7
- * {}
7
+ * {
8
+ * vehicle_type: "sedan"
9
+ * }
8
10
  */
9
11
  export interface SetVehicleTypeReq {
10
- vehicle_type?: Chrt.VehicleTypeEnum | null;
11
- vehicle_type__set_to_None?: boolean;
12
+ vehicle_type: Chrt.VehicleTypeEnum;
12
13
  }
@@ -350,7 +350,7 @@ class Expanded {
350
350
  __listForCoordinatorOperatorsV1(request, requestOptions) {
351
351
  return __awaiter(this, void 0, void 0, function* () {
352
352
  var _a, _b, _c, _d, _e, _f, _g;
353
- const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, filter_status: filterStatus, filter_order_classification_by_task_group_type: filterOrderClassificationByTaskGroupType, filter_awb_number: filterAwbNumber, filter_has_invoice: filterHasInvoice, filter_draft_started_at_timestamp_lte: filterDraftStartedAtTimestampLte, filter_draft_started_at_timestamp_gte: filterDraftStartedAtTimestampGte, filter_staged_at_timestamp_lte: filterStagedAtTimestampLte, filter_staged_at_timestamp_gte: filterStagedAtTimestampGte, filter_in_progress_at_timestamp_lte: filterInProgressAtTimestampLte, filter_in_progress_at_timestamp_gte: filterInProgressAtTimestampGte, filter_completed_at_timestamp_lte: filterCompletedAtTimestampLte, filter_completed_at_timestamp_gte: filterCompletedAtTimestampGte, filter_cancelled_at_timestamp_lte: filterCancelledAtTimestampLte, filter_cancelled_at_timestamp_gte: filterCancelledAtTimestampGte, filter_exception_at_timestamp_lte: filterExceptionAtTimestampLte, filter_exception_at_timestamp_gte: filterExceptionAtTimestampGte, filter_executor_org_id: filterExecutorOrgId, filter_shipper_org_id: filterShipperOrgId, filter_off_chrt_shipper_org_data_id: filterOffChrtShipperOrgDataId, filter_coordinator_shipper_account_ids: filterCoordinatorShipperAccountIds, filter_coordinator_department_id: filterCoordinatorDepartmentId, filter_coordinator_assigned_user_ids: filterCoordinatorAssignedUserIds, filter_coordinator_label: filterCoordinatorLabel, body: _body, } = request;
353
+ const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, filter_status: filterStatus, filter_service_line: filterServiceLine, filter_order_classification_by_task_group_type: filterOrderClassificationByTaskGroupType, filter_awb_number: filterAwbNumber, filter_has_invoice: filterHasInvoice, filter_draft_started_at_timestamp_lte: filterDraftStartedAtTimestampLte, filter_draft_started_at_timestamp_gte: filterDraftStartedAtTimestampGte, filter_staged_at_timestamp_lte: filterStagedAtTimestampLte, filter_staged_at_timestamp_gte: filterStagedAtTimestampGte, filter_in_progress_at_timestamp_lte: filterInProgressAtTimestampLte, filter_in_progress_at_timestamp_gte: filterInProgressAtTimestampGte, filter_completed_at_timestamp_lte: filterCompletedAtTimestampLte, filter_completed_at_timestamp_gte: filterCompletedAtTimestampGte, filter_cancelled_at_timestamp_lte: filterCancelledAtTimestampLte, filter_cancelled_at_timestamp_gte: filterCancelledAtTimestampGte, filter_exception_at_timestamp_lte: filterExceptionAtTimestampLte, filter_exception_at_timestamp_gte: filterExceptionAtTimestampGte, filter_executor_org_id: filterExecutorOrgId, filter_shipper_org_id: filterShipperOrgId, filter_off_chrt_shipper_org_data_id: filterOffChrtShipperOrgDataId, filter_coordinator_shipper_account_ids: filterCoordinatorShipperAccountIds, filter_coordinator_department_id: filterCoordinatorDepartmentId, filter_coordinator_assigned_user_ids: filterCoordinatorAssignedUserIds, filter_coordinator_label: filterCoordinatorLabel, body: _body, } = request;
354
354
  const _queryParams = {};
355
355
  if (sortBy !== undefined) {
356
356
  _queryParams["sort_by"] = sortBy;
@@ -375,6 +375,14 @@ class Expanded {
375
375
  _queryParams["filter_status"] = filterStatus;
376
376
  }
377
377
  }
378
+ if (filterServiceLine !== undefined) {
379
+ if (Array.isArray(filterServiceLine)) {
380
+ _queryParams["filter_service_line"] = filterServiceLine.map((item) => item);
381
+ }
382
+ else {
383
+ _queryParams["filter_service_line"] = filterServiceLine;
384
+ }
385
+ }
378
386
  if (filterOrderClassificationByTaskGroupType !== undefined) {
379
387
  if (Array.isArray(filterOrderClassificationByTaskGroupType)) {
380
388
  _queryParams["filter_order_classification_by_task_group_type"] =
@@ -547,7 +555,7 @@ class Expanded {
547
555
  __listForExecutorOperatorsV1(request, requestOptions) {
548
556
  return __awaiter(this, void 0, void 0, function* () {
549
557
  var _a, _b, _c, _d, _e, _f, _g;
550
- const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, filter_status: filterStatus, filter_order_classification_by_task_group_type: filterOrderClassificationByTaskGroupType, filter_awb_number: filterAwbNumber, filter_has_invoice: filterHasInvoice, filter_draft_started_at_timestamp_lte: filterDraftStartedAtTimestampLte, filter_draft_started_at_timestamp_gte: filterDraftStartedAtTimestampGte, filter_staged_at_timestamp_lte: filterStagedAtTimestampLte, filter_staged_at_timestamp_gte: filterStagedAtTimestampGte, filter_in_progress_at_timestamp_lte: filterInProgressAtTimestampLte, filter_in_progress_at_timestamp_gte: filterInProgressAtTimestampGte, filter_completed_at_timestamp_lte: filterCompletedAtTimestampLte, filter_completed_at_timestamp_gte: filterCompletedAtTimestampGte, filter_cancelled_at_timestamp_lte: filterCancelledAtTimestampLte, filter_cancelled_at_timestamp_gte: filterCancelledAtTimestampGte, filter_exception_at_timestamp_lte: filterExceptionAtTimestampLte, filter_exception_at_timestamp_gte: filterExceptionAtTimestampGte, filter_coordinator_org_id: filterCoordinatorOrgId, filter_shipper_org_id: filterShipperOrgId, filter_off_chrt_shipper_org_data_id: filterOffChrtShipperOrgDataId, body: _body, } = request;
558
+ const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, filter_status: filterStatus, filter_service_line: filterServiceLine, filter_order_classification_by_task_group_type: filterOrderClassificationByTaskGroupType, filter_awb_number: filterAwbNumber, filter_has_invoice: filterHasInvoice, filter_draft_started_at_timestamp_lte: filterDraftStartedAtTimestampLte, filter_draft_started_at_timestamp_gte: filterDraftStartedAtTimestampGte, filter_staged_at_timestamp_lte: filterStagedAtTimestampLte, filter_staged_at_timestamp_gte: filterStagedAtTimestampGte, filter_in_progress_at_timestamp_lte: filterInProgressAtTimestampLte, filter_in_progress_at_timestamp_gte: filterInProgressAtTimestampGte, filter_completed_at_timestamp_lte: filterCompletedAtTimestampLte, filter_completed_at_timestamp_gte: filterCompletedAtTimestampGte, filter_cancelled_at_timestamp_lte: filterCancelledAtTimestampLte, filter_cancelled_at_timestamp_gte: filterCancelledAtTimestampGte, filter_exception_at_timestamp_lte: filterExceptionAtTimestampLte, filter_exception_at_timestamp_gte: filterExceptionAtTimestampGte, filter_coordinator_org_id: filterCoordinatorOrgId, filter_shipper_org_id: filterShipperOrgId, filter_off_chrt_shipper_org_data_id: filterOffChrtShipperOrgDataId, body: _body, } = request;
551
559
  const _queryParams = {};
552
560
  if (sortBy !== undefined) {
553
561
  _queryParams["sort_by"] = sortBy;
@@ -572,6 +580,14 @@ class Expanded {
572
580
  _queryParams["filter_status"] = filterStatus;
573
581
  }
574
582
  }
583
+ if (filterServiceLine !== undefined) {
584
+ if (Array.isArray(filterServiceLine)) {
585
+ _queryParams["filter_service_line"] = filterServiceLine.map((item) => item);
586
+ }
587
+ else {
588
+ _queryParams["filter_service_line"] = filterServiceLine;
589
+ }
590
+ }
575
591
  if (filterOrderClassificationByTaskGroupType !== undefined) {
576
592
  if (Array.isArray(filterOrderClassificationByTaskGroupType)) {
577
593
  _queryParams["filter_order_classification_by_task_group_type"] =
@@ -726,7 +742,7 @@ class Expanded {
726
742
  __listForProviderOperatorsV1(request, requestOptions) {
727
743
  return __awaiter(this, void 0, void 0, function* () {
728
744
  var _a, _b, _c, _d, _e, _f, _g;
729
- const { provider_role: providerRole, sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, filter_status: filterStatus, filter_order_classification_by_task_group_type: filterOrderClassificationByTaskGroupType, filter_awb_number: filterAwbNumber, filter_has_invoice: filterHasInvoice, filter_draft_started_at_timestamp_lte: filterDraftStartedAtTimestampLte, filter_draft_started_at_timestamp_gte: filterDraftStartedAtTimestampGte, filter_staged_at_timestamp_lte: filterStagedAtTimestampLte, filter_staged_at_timestamp_gte: filterStagedAtTimestampGte, filter_in_progress_at_timestamp_lte: filterInProgressAtTimestampLte, filter_in_progress_at_timestamp_gte: filterInProgressAtTimestampGte, filter_completed_at_timestamp_lte: filterCompletedAtTimestampLte, filter_completed_at_timestamp_gte: filterCompletedAtTimestampGte, filter_cancelled_at_timestamp_lte: filterCancelledAtTimestampLte, filter_cancelled_at_timestamp_gte: filterCancelledAtTimestampGte, filter_exception_at_timestamp_lte: filterExceptionAtTimestampLte, filter_exception_at_timestamp_gte: filterExceptionAtTimestampGte, filter_executor_org_id: filterExecutorOrgId, filter_coordinator_org_id: filterCoordinatorOrgId, filter_shipper_org_id: filterShipperOrgId, filter_off_chrt_shipper_org_data_id: filterOffChrtShipperOrgDataId, filter_coordinator_shipper_account_ids: filterCoordinatorShipperAccountIds, filter_coordinator_department_id: filterCoordinatorDepartmentId, filter_coordinator_assigned_user_ids: filterCoordinatorAssignedUserIds, filter_coordinator_label: filterCoordinatorLabel, body: _body, } = request;
745
+ const { provider_role: providerRole, sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, filter_status: filterStatus, filter_service_line: filterServiceLine, filter_order_classification_by_task_group_type: filterOrderClassificationByTaskGroupType, filter_awb_number: filterAwbNumber, filter_has_invoice: filterHasInvoice, filter_draft_started_at_timestamp_lte: filterDraftStartedAtTimestampLte, filter_draft_started_at_timestamp_gte: filterDraftStartedAtTimestampGte, filter_staged_at_timestamp_lte: filterStagedAtTimestampLte, filter_staged_at_timestamp_gte: filterStagedAtTimestampGte, filter_in_progress_at_timestamp_lte: filterInProgressAtTimestampLte, filter_in_progress_at_timestamp_gte: filterInProgressAtTimestampGte, filter_completed_at_timestamp_lte: filterCompletedAtTimestampLte, filter_completed_at_timestamp_gte: filterCompletedAtTimestampGte, filter_cancelled_at_timestamp_lte: filterCancelledAtTimestampLte, filter_cancelled_at_timestamp_gte: filterCancelledAtTimestampGte, filter_exception_at_timestamp_lte: filterExceptionAtTimestampLte, filter_exception_at_timestamp_gte: filterExceptionAtTimestampGte, filter_executor_org_id: filterExecutorOrgId, filter_coordinator_org_id: filterCoordinatorOrgId, filter_shipper_org_id: filterShipperOrgId, filter_off_chrt_shipper_org_data_id: filterOffChrtShipperOrgDataId, filter_coordinator_shipper_account_ids: filterCoordinatorShipperAccountIds, filter_coordinator_department_id: filterCoordinatorDepartmentId, filter_coordinator_assigned_user_ids: filterCoordinatorAssignedUserIds, filter_coordinator_label: filterCoordinatorLabel, body: _body, } = request;
730
746
  const _queryParams = {};
731
747
  if (providerRole !== undefined) {
732
748
  _queryParams["provider_role"] = providerRole;
@@ -754,6 +770,14 @@ class Expanded {
754
770
  _queryParams["filter_status"] = filterStatus;
755
771
  }
756
772
  }
773
+ if (filterServiceLine !== undefined) {
774
+ if (Array.isArray(filterServiceLine)) {
775
+ _queryParams["filter_service_line"] = filterServiceLine.map((item) => item);
776
+ }
777
+ else {
778
+ _queryParams["filter_service_line"] = filterServiceLine;
779
+ }
780
+ }
757
781
  if (filterOrderClassificationByTaskGroupType !== undefined) {
758
782
  if (Array.isArray(filterOrderClassificationByTaskGroupType)) {
759
783
  _queryParams["filter_order_classification_by_task_group_type"] =
@@ -928,7 +952,7 @@ class Expanded {
928
952
  __listForShipperOperatorsV1(request, requestOptions) {
929
953
  return __awaiter(this, void 0, void 0, function* () {
930
954
  var _a, _b, _c, _d, _e, _f, _g;
931
- const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, filter_status: filterStatus, filter_order_classification_by_task_group_type: filterOrderClassificationByTaskGroupType, filter_awb_number: filterAwbNumber, filter_has_invoice: filterHasInvoice, filter_draft_started_at_timestamp_lte: filterDraftStartedAtTimestampLte, filter_draft_started_at_timestamp_gte: filterDraftStartedAtTimestampGte, filter_staged_at_timestamp_lte: filterStagedAtTimestampLte, filter_staged_at_timestamp_gte: filterStagedAtTimestampGte, filter_in_progress_at_timestamp_lte: filterInProgressAtTimestampLte, filter_in_progress_at_timestamp_gte: filterInProgressAtTimestampGte, filter_completed_at_timestamp_lte: filterCompletedAtTimestampLte, filter_completed_at_timestamp_gte: filterCompletedAtTimestampGte, filter_cancelled_at_timestamp_lte: filterCancelledAtTimestampLte, filter_cancelled_at_timestamp_gte: filterCancelledAtTimestampGte, filter_exception_at_timestamp_lte: filterExceptionAtTimestampLte, filter_exception_at_timestamp_gte: filterExceptionAtTimestampGte, filter_executor_org_id: filterExecutorOrgId, filter_coordinator_org_id: filterCoordinatorOrgId, body: _body, } = request;
955
+ const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, filter_status: filterStatus, filter_service_line: filterServiceLine, filter_order_classification_by_task_group_type: filterOrderClassificationByTaskGroupType, filter_awb_number: filterAwbNumber, filter_has_invoice: filterHasInvoice, filter_draft_started_at_timestamp_lte: filterDraftStartedAtTimestampLte, filter_draft_started_at_timestamp_gte: filterDraftStartedAtTimestampGte, filter_staged_at_timestamp_lte: filterStagedAtTimestampLte, filter_staged_at_timestamp_gte: filterStagedAtTimestampGte, filter_in_progress_at_timestamp_lte: filterInProgressAtTimestampLte, filter_in_progress_at_timestamp_gte: filterInProgressAtTimestampGte, filter_completed_at_timestamp_lte: filterCompletedAtTimestampLte, filter_completed_at_timestamp_gte: filterCompletedAtTimestampGte, filter_cancelled_at_timestamp_lte: filterCancelledAtTimestampLte, filter_cancelled_at_timestamp_gte: filterCancelledAtTimestampGte, filter_exception_at_timestamp_lte: filterExceptionAtTimestampLte, filter_exception_at_timestamp_gte: filterExceptionAtTimestampGte, filter_executor_org_id: filterExecutorOrgId, filter_coordinator_org_id: filterCoordinatorOrgId, body: _body, } = request;
932
956
  const _queryParams = {};
933
957
  if (sortBy !== undefined) {
934
958
  _queryParams["sort_by"] = sortBy;
@@ -953,6 +977,14 @@ class Expanded {
953
977
  _queryParams["filter_status"] = filterStatus;
954
978
  }
955
979
  }
980
+ if (filterServiceLine !== undefined) {
981
+ if (Array.isArray(filterServiceLine)) {
982
+ _queryParams["filter_service_line"] = filterServiceLine.map((item) => item);
983
+ }
984
+ else {
985
+ _queryParams["filter_service_line"] = filterServiceLine;
986
+ }
987
+ }
956
988
  if (filterOrderClassificationByTaskGroupType !== undefined) {
957
989
  if (Array.isArray(filterOrderClassificationByTaskGroupType)) {
958
990
  _queryParams["filter_order_classification_by_task_group_type"] =
@@ -41,6 +41,8 @@ export interface ExpandedListForCoordinatorOperatorsV1Request {
41
41
  /** Full-text search query (searches order short ID, off-CHRT reference ID, and AWB) */
42
42
  search?: string | null;
43
43
  filter_status?: (Chrt.OrderStatusEnum1 | null) | (Chrt.OrderStatusEnum1 | null)[];
44
+ /** Filter by service line */
45
+ filter_service_line?: (Chrt.ServiceLineEnum | null) | (Chrt.ServiceLineEnum | null)[];
44
46
  /** Filter by global order classification (OBC takes precedence over flight, then ground) */
45
47
  filter_order_classification_by_task_group_type?: (Chrt.TaskGroupTypeEnum1 | null) | (Chrt.TaskGroupTypeEnum1 | null)[];
46
48
  /** Filter by exact AWB number */
@@ -39,6 +39,8 @@ export interface ExpandedListForExecutorOperatorsV1Request {
39
39
  /** Full-text search query (searches order short ID, off-CHRT reference ID, and AWB) */
40
40
  search?: string | null;
41
41
  filter_status?: (Chrt.OrderStatusEnum1 | null) | (Chrt.OrderStatusEnum1 | null)[];
42
+ /** Filter by service line */
43
+ filter_service_line?: (Chrt.ServiceLineEnum | null) | (Chrt.ServiceLineEnum | null)[];
42
44
  /** Filter by global order classification (OBC takes precedence over flight, then ground) */
43
45
  filter_order_classification_by_task_group_type?: (Chrt.TaskGroupTypeEnum1 | null) | (Chrt.TaskGroupTypeEnum1 | null)[];
44
46
  /** Filter by exact AWB number */
@@ -44,6 +44,8 @@ export interface ExpandedListForProviderOperatorsV1Request {
44
44
  /** Full-text search query (searches order short ID, off-CHRT reference ID, and AWB) */
45
45
  search?: string | null;
46
46
  filter_status?: (Chrt.OrderStatusEnum1 | null) | (Chrt.OrderStatusEnum1 | null)[];
47
+ /** Filter by service line */
48
+ filter_service_line?: (Chrt.ServiceLineEnum | null) | (Chrt.ServiceLineEnum | null)[];
47
49
  /** Filter by global order classification (OBC takes precedence over flight, then ground) */
48
50
  filter_order_classification_by_task_group_type?: (Chrt.TaskGroupTypeEnum1 | null) | (Chrt.TaskGroupTypeEnum1 | null)[];
49
51
  /** Filter by exact AWB number */
@@ -38,6 +38,8 @@ export interface ExpandedListForShipperOperatorsV1Request {
38
38
  /** Full-text search query (searches order short ID, off-CHRT reference ID, and AWB) */
39
39
  search?: string | null;
40
40
  filter_status?: (Chrt.OrderStatusEnum1 | null) | (Chrt.OrderStatusEnum1 | null)[];
41
+ /** Filter by service line */
42
+ filter_service_line?: (Chrt.ServiceLineEnum | null) | (Chrt.ServiceLineEnum | null)[];
41
43
  /** Filter by global order classification (OBC takes precedence over flight, then ground) */
42
44
  filter_order_classification_by_task_group_type?: (Chrt.TaskGroupTypeEnum1 | null) | (Chrt.TaskGroupTypeEnum1 | null)[];
43
45
  /** Filter by exact AWB number */
@@ -175,7 +175,7 @@ class OrdersAndOrderGroups {
175
175
  __ungroupedOrdersListV1() {
176
176
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
177
177
  var _a, _b, _c, _d, _e, _f;
178
- const { filter_shipping_status: filterShippingStatus, sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, } = request;
178
+ const { filter_shipping_status: filterShippingStatus, filter_service_line: filterServiceLine, sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, } = request;
179
179
  const _queryParams = {};
180
180
  if (filterShippingStatus !== undefined) {
181
181
  if (Array.isArray(filterShippingStatus)) {
@@ -185,6 +185,14 @@ class OrdersAndOrderGroups {
185
185
  _queryParams["filter_shipping_status"] = filterShippingStatus;
186
186
  }
187
187
  }
188
+ if (filterServiceLine !== undefined) {
189
+ if (Array.isArray(filterServiceLine)) {
190
+ _queryParams["filter_service_line"] = filterServiceLine.map((item) => item);
191
+ }
192
+ else {
193
+ _queryParams["filter_service_line"] = filterServiceLine;
194
+ }
195
+ }
188
196
  if (sortBy !== undefined) {
189
197
  _queryParams["sort_by"] = sortBy;
190
198
  }
@@ -14,6 +14,8 @@ import * as Chrt from "../../../../../../index.js";
14
14
  export interface OrdersAndOrderGroupsUngroupedOrdersListV1Request {
15
15
  /** Filter by order status(es). */
16
16
  filter_shipping_status?: (Chrt.OrderStatusEnum1 | null) | (Chrt.OrderStatusEnum1 | null)[];
17
+ /** Filter by service line. */
18
+ filter_service_line?: (Chrt.ServiceLineEnum | null) | (Chrt.ServiceLineEnum | null)[];
17
19
  /** Field to sort by. */
18
20
  sort_by?: Chrt.UngroupedOrderSortByEnum | null;
19
21
  /** Sort order (asc or desc). */
@@ -93,6 +93,20 @@ export declare class Tasks {
93
93
  */
94
94
  deleteV1(taskId: string, requestOptions?: Tasks.RequestOptions): core.HttpResponsePromise<boolean>;
95
95
  private __deleteV1;
96
+ /**
97
+ * Overrides a draft or staged task location from a contact or coordinator shipper account and associates the reference. | authz_personas=[draft_creator_org_operator, order_creator_org_operators, lig_owner_operators, coordinator_org_operators] | (TaskLocationFromReferenceReq) -> (PydanticObjectId)
98
+ *
99
+ * @param {string} taskId
100
+ * @param {Chrt.shipping.TaskLocationFromReferenceReq} request
101
+ * @param {Tasks.RequestOptions} requestOptions - Request-specific configuration.
102
+ *
103
+ * @throws {@link Chrt.UnprocessableEntityError}
104
+ *
105
+ * @example
106
+ * await client.shipping.tasks.locationFromReferenceV1("task_id")
107
+ */
108
+ locationFromReferenceV1(taskId: string, request?: Chrt.shipping.TaskLocationFromReferenceReq, requestOptions?: Tasks.RequestOptions): core.HttpResponsePromise<string>;
109
+ private __locationFromReferenceV1;
96
110
  /**
97
111
  * Marks a task as SKIPPED. | authz_personas=[driver_for_executor, coordinator_org_operators, executor_org_operators] (depending on type) | () -> (bool)
98
112
  *
@@ -107,7 +121,7 @@ export declare class Tasks {
107
121
  skipV1(taskId: string, requestOptions?: Tasks.RequestOptions): core.HttpResponsePromise<boolean>;
108
122
  private __skipV1;
109
123
  /**
110
- * Updates a task. Operational fields (location, action, datetime_windows) require STAGED status (lig_owner_operators). order_placer_comments can be edited on any non-DRAFT task (order_creator_org_operators). contact_ids can be edited on STAGED/IN_PROGRESS orders for tasks still in STAGED status (order_creator_org_operators OR lig_owner_operators). | (TaskClientUpdate1) -> (PydanticObjectId)
124
+ * Updates a task. Operational fields require lig_owner_operators, comments require order_creator_org_operators, contacts allow either, and coordinator_shipper_account_ids require coordinator_org_operators. | authz_personas=[lig_owner_operators, order_creator_org_operators, coordinator_org_operators] | (TaskClientUpdate1) -> (PydanticObjectId)
111
125
  *
112
126
  * @param {string} taskId
113
127
  * @param {Chrt.TaskClientUpdate1} request
@@ -310,6 +310,69 @@ class Tasks {
310
310
  }
311
311
  });
312
312
  }
313
+ /**
314
+ * Overrides a draft or staged task location from a contact or coordinator shipper account and associates the reference. | authz_personas=[draft_creator_org_operator, order_creator_org_operators, lig_owner_operators, coordinator_org_operators] | (TaskLocationFromReferenceReq) -> (PydanticObjectId)
315
+ *
316
+ * @param {string} taskId
317
+ * @param {Chrt.shipping.TaskLocationFromReferenceReq} request
318
+ * @param {Tasks.RequestOptions} requestOptions - Request-specific configuration.
319
+ *
320
+ * @throws {@link Chrt.UnprocessableEntityError}
321
+ *
322
+ * @example
323
+ * await client.shipping.tasks.locationFromReferenceV1("task_id")
324
+ */
325
+ locationFromReferenceV1(taskId, request = {}, requestOptions) {
326
+ return core.HttpResponsePromise.fromPromise(this.__locationFromReferenceV1(taskId, request, requestOptions));
327
+ }
328
+ __locationFromReferenceV1(taskId_1) {
329
+ return __awaiter(this, arguments, void 0, function* (taskId, request = {}, requestOptions) {
330
+ var _a, _b, _c, _d;
331
+ 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);
332
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
333
+ 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, `shipping/tasks/location/from_reference/v1/${encodeURIComponent(taskId)}`),
334
+ method: "PUT",
335
+ headers: _headers,
336
+ contentType: "application/json",
337
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
338
+ requestType: "json",
339
+ body: request,
340
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
341
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
342
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
343
+ });
344
+ if (_response.ok) {
345
+ return { data: _response.body, rawResponse: _response.rawResponse };
346
+ }
347
+ if (_response.error.reason === "status-code") {
348
+ switch (_response.error.statusCode) {
349
+ case 422:
350
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
351
+ default:
352
+ throw new errors.ChrtError({
353
+ statusCode: _response.error.statusCode,
354
+ body: _response.error.body,
355
+ rawResponse: _response.rawResponse,
356
+ });
357
+ }
358
+ }
359
+ switch (_response.error.reason) {
360
+ case "non-json":
361
+ throw new errors.ChrtError({
362
+ statusCode: _response.error.statusCode,
363
+ body: _response.error.rawBody,
364
+ rawResponse: _response.rawResponse,
365
+ });
366
+ case "timeout":
367
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling PUT /shipping/tasks/location/from_reference/v1/{task_id}.");
368
+ case "unknown":
369
+ throw new errors.ChrtError({
370
+ message: _response.error.errorMessage,
371
+ rawResponse: _response.rawResponse,
372
+ });
373
+ }
374
+ });
375
+ }
313
376
  /**
314
377
  * Marks a task as SKIPPED. | authz_personas=[driver_for_executor, coordinator_org_operators, executor_org_operators] (depending on type) | () -> (bool)
315
378
  *
@@ -370,7 +433,7 @@ class Tasks {
370
433
  });
371
434
  }
372
435
  /**
373
- * Updates a task. Operational fields (location, action, datetime_windows) require STAGED status (lig_owner_operators). order_placer_comments can be edited on any non-DRAFT task (order_creator_org_operators). contact_ids can be edited on STAGED/IN_PROGRESS orders for tasks still in STAGED status (order_creator_org_operators OR lig_owner_operators). | (TaskClientUpdate1) -> (PydanticObjectId)
436
+ * Updates a task. Operational fields require lig_owner_operators, comments require order_creator_org_operators, contacts allow either, and coordinator_shipper_account_ids require coordinator_org_operators. | authz_personas=[lig_owner_operators, order_creator_org_operators, coordinator_org_operators] | (TaskClientUpdate1) -> (PydanticObjectId)
374
437
  *
375
438
  * @param {string} taskId
376
439
  * @param {Chrt.TaskClientUpdate1} request
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {}
7
+ */
8
+ export interface TaskLocationFromReferenceReq {
9
+ contact_id?: string | null;
10
+ coordinator_shipper_account_id?: string | null;
11
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,3 +1,4 @@
1
1
  export { type AddTaskToGroupReq } from "./AddTaskToGroupReq.js";
2
2
  export { type AttemptTaskReq } from "./AttemptTaskReq.js";
3
+ export { type TaskLocationFromReferenceReq } from "./TaskLocationFromReferenceReq.js";
3
4
  export { type WaitTimeOverrideReq } from "./WaitTimeOverrideReq.js";