@chrt-inc/typescript-sdk 1.929.0 → 1.930.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 (180) hide show
  1. package/dist/cjs/Client.js +2 -2
  2. package/dist/cjs/api/resources/shipping/client/Client.d.ts +0 -3
  3. package/dist/cjs/api/resources/shipping/client/Client.js +10 -15
  4. package/dist/cjs/api/resources/shipping/resources/flights/client/Client.d.ts +6 -3
  5. package/dist/cjs/api/resources/shipping/resources/flights/client/Client.js +19 -11
  6. package/dist/cjs/api/resources/shipping/resources/flights/client/index.d.ts +1 -0
  7. package/dist/cjs/api/resources/shipping/resources/flights/client/index.js +15 -0
  8. package/dist/cjs/api/resources/shipping/resources/flights/client/requests/FlightsGetFlightTrackForFlightLegV1Request.d.ts +13 -0
  9. package/dist/cjs/api/resources/shipping/resources/flights/client/requests/index.d.ts +1 -0
  10. package/dist/cjs/api/resources/shipping/resources/index.d.ts +1 -2
  11. package/dist/cjs/api/resources/shipping/resources/index.js +2 -3
  12. package/dist/cjs/api/resources/shipping/resources/orders/client/Client.d.ts +103 -0
  13. package/dist/cjs/api/resources/shipping/resources/orders/client/Client.js +442 -0
  14. package/dist/{esm/api/resources/shipping/resources/orders/resources/drafts/client/requests/DraftsAddCoordinatorTaskListToApplyAtOrderStagingV1Request.d.mts → cjs/api/resources/shipping/resources/orders/client/requests/OrdersAddCoordinatorTaskListToApplyAtOrderStagingV1Request.d.ts} +1 -1
  15. package/dist/{esm/api/resources/shipping/resources/orders/resources/drafts/client/requests/OrdersDraftDeleteManyReq.d.mts → cjs/api/resources/shipping/resources/orders/client/requests/OrdersDeleteManyDraftsReq.d.ts} +1 -1
  16. package/dist/{esm/api/resources/shipping/resources/orders/resources/drafts/client/requests/SetTaskGroupOrderingDraftReq.d.mts → cjs/api/resources/shipping/resources/orders/client/requests/OrdersTaskGroupOrderingReq.d.ts} +2 -2
  17. package/dist/cjs/api/resources/shipping/resources/orders/{resources/drafts/client/requests/OrdersDraftUpdateReq.d.ts → client/requests/OrdersUpdateDraftReq.d.ts} +2 -2
  18. package/dist/cjs/api/resources/shipping/resources/orders/client/requests/index.d.ts +4 -0
  19. package/dist/cjs/api/resources/shipping/resources/orders/resources/cargo/client/Client.d.ts +13 -0
  20. package/dist/cjs/api/resources/shipping/resources/orders/resources/cargo/client/Client.js +59 -0
  21. package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/client/Client.d.ts +0 -109
  22. package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/client/Client.js +0 -452
  23. package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/client/requests/OrdersOpenDraftReq.d.ts +0 -2
  24. package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/client/requests/index.d.ts +0 -4
  25. package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/index.d.ts +0 -1
  26. package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/index.js +0 -1
  27. package/dist/cjs/api/resources/shipping/resources/orders/resources/taskGroup/client/Client.d.ts +13 -0
  28. package/dist/cjs/api/resources/shipping/resources/orders/resources/taskGroup/client/Client.js +59 -0
  29. package/dist/cjs/api/resources/tracking/resources/sessions/client/Client.d.ts +3 -2
  30. package/dist/cjs/api/resources/tracking/resources/sessions/client/Client.js +11 -7
  31. package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionsFlightTrackV1Request.d.ts +4 -1
  32. package/dist/cjs/api/types/OrderLimitedForProvider1.d.ts +0 -1
  33. package/dist/cjs/api/types/OrderLimitedForShipper1.d.ts +0 -1
  34. package/dist/cjs/api/types/{OrdersDraftDeleteManyRes.d.ts → OrdersDeleteManyDraftsRes.d.ts} +1 -1
  35. package/dist/cjs/api/types/{OrdersDraftUpdateRes.d.ts → OrdersUpdateDraftRes.d.ts} +1 -1
  36. package/dist/cjs/api/types/index.d.ts +2 -9
  37. package/dist/cjs/api/types/index.js +2 -9
  38. package/dist/cjs/version.d.ts +1 -1
  39. package/dist/cjs/version.js +1 -1
  40. package/dist/esm/Client.mjs +2 -2
  41. package/dist/esm/api/resources/shipping/client/Client.d.mts +0 -3
  42. package/dist/esm/api/resources/shipping/client/Client.mjs +0 -5
  43. package/dist/esm/api/resources/shipping/resources/flights/client/Client.d.mts +6 -3
  44. package/dist/esm/api/resources/shipping/resources/flights/client/Client.mjs +19 -11
  45. package/dist/esm/api/resources/shipping/resources/flights/client/index.d.mts +1 -0
  46. package/dist/esm/api/resources/shipping/resources/flights/client/index.mjs +1 -1
  47. package/dist/esm/api/resources/shipping/resources/flights/client/requests/FlightsGetFlightTrackForFlightLegV1Request.d.mts +13 -0
  48. package/dist/esm/api/resources/shipping/resources/flights/client/requests/index.d.mts +1 -0
  49. package/dist/esm/api/resources/shipping/resources/index.d.mts +1 -2
  50. package/dist/esm/api/resources/shipping/resources/index.mjs +1 -2
  51. package/dist/esm/api/resources/shipping/resources/orders/client/Client.d.mts +103 -0
  52. package/dist/esm/api/resources/shipping/resources/orders/client/Client.mjs +442 -0
  53. package/dist/{cjs/api/resources/shipping/resources/orders/resources/drafts/client/requests/DraftsAddCoordinatorTaskListToApplyAtOrderStagingV1Request.d.ts → esm/api/resources/shipping/resources/orders/client/requests/OrdersAddCoordinatorTaskListToApplyAtOrderStagingV1Request.d.mts} +1 -1
  54. package/dist/{cjs/api/resources/shipping/resources/orders/resources/drafts/client/requests/OrdersDraftDeleteManyReq.d.ts → esm/api/resources/shipping/resources/orders/client/requests/OrdersDeleteManyDraftsReq.d.mts} +1 -1
  55. package/dist/{cjs/api/resources/shipping/resources/orders/resources/drafts/client/requests/SetTaskGroupOrderingDraftReq.d.ts → esm/api/resources/shipping/resources/orders/client/requests/OrdersTaskGroupOrderingReq.d.mts} +2 -2
  56. package/dist/esm/api/resources/shipping/resources/orders/{resources/drafts/client/requests/OrdersDraftUpdateReq.d.mts → client/requests/OrdersUpdateDraftReq.d.mts} +2 -2
  57. package/dist/esm/api/resources/shipping/resources/orders/client/requests/index.d.mts +4 -0
  58. package/dist/esm/api/resources/shipping/resources/orders/resources/cargo/client/Client.d.mts +13 -0
  59. package/dist/esm/api/resources/shipping/resources/orders/resources/cargo/client/Client.mjs +59 -0
  60. package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/client/Client.d.mts +0 -109
  61. package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/client/Client.mjs +0 -452
  62. package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/client/requests/OrdersOpenDraftReq.d.mts +0 -2
  63. package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/client/requests/index.d.mts +0 -4
  64. package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/index.d.mts +0 -1
  65. package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/index.mjs +0 -1
  66. package/dist/esm/api/resources/shipping/resources/orders/resources/taskGroup/client/Client.d.mts +13 -0
  67. package/dist/esm/api/resources/shipping/resources/orders/resources/taskGroup/client/Client.mjs +59 -0
  68. package/dist/esm/api/resources/tracking/resources/sessions/client/Client.d.mts +3 -2
  69. package/dist/esm/api/resources/tracking/resources/sessions/client/Client.mjs +11 -7
  70. package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionsFlightTrackV1Request.d.mts +4 -1
  71. package/dist/esm/api/types/OrderLimitedForProvider1.d.mts +0 -1
  72. package/dist/esm/api/types/OrderLimitedForShipper1.d.mts +0 -1
  73. package/dist/esm/api/types/{OrdersDraftDeleteManyRes.d.mts → OrdersDeleteManyDraftsRes.d.mts} +1 -1
  74. package/dist/esm/api/types/{OrdersDraftUpdateRes.d.mts → OrdersUpdateDraftRes.d.mts} +1 -1
  75. package/dist/esm/api/types/index.d.mts +2 -9
  76. package/dist/esm/api/types/index.mjs +2 -9
  77. package/dist/esm/version.d.mts +1 -1
  78. package/dist/esm/version.mjs +1 -1
  79. package/package.json +1 -1
  80. package/reference.md +326 -935
  81. package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/Client.d.ts +0 -182
  82. package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/Client.js +0 -720
  83. package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/index.d.ts +0 -2
  84. package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/index.js +0 -17
  85. package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientCreate1.d.ts +0 -33
  86. package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientUpdate1.d.ts +0 -37
  87. package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateRemoveReferenceReq.d.ts +0 -14
  88. package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplatesListV1Request.d.ts +0 -80
  89. package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/requests/index.d.ts +0 -4
  90. package/dist/cjs/api/resources/shipping/resources/orderTemplates/index.d.ts +0 -1
  91. package/dist/cjs/api/resources/shipping/resources/orderTemplates/index.js +0 -17
  92. package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/client/requests/SetTaskGroupOrderingDraftReq.js +0 -5
  93. package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/resources/cargo/client/Client.d.ts +0 -46
  94. package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/resources/cargo/client/Client.js +0 -127
  95. package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/resources/cargo/client/index.d.ts +0 -1
  96. package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/resources/cargo/client/index.js +0 -2
  97. package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/resources/cargo/index.d.ts +0 -1
  98. package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/resources/cargo/index.js +0 -17
  99. package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/resources/index.d.ts +0 -2
  100. package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/resources/index.js +0 -38
  101. package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/resources/taskGroup/client/Client.d.ts +0 -46
  102. package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/resources/taskGroup/client/Client.js +0 -127
  103. package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/resources/taskGroup/client/index.d.ts +0 -1
  104. package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/resources/taskGroup/client/index.js +0 -2
  105. package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/resources/taskGroup/index.d.ts +0 -1
  106. package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/resources/taskGroup/index.js +0 -17
  107. package/dist/cjs/api/types/Order1.d.ts +0 -43
  108. package/dist/cjs/api/types/Order1.js +0 -5
  109. package/dist/cjs/api/types/OrderTemplate1.d.ts +0 -35
  110. package/dist/cjs/api/types/OrderTemplate1.js +0 -5
  111. package/dist/cjs/api/types/OrderTemplateExpanded1.d.ts +0 -16
  112. package/dist/cjs/api/types/OrderTemplateExpanded1.js +0 -5
  113. package/dist/cjs/api/types/OrderTemplateListRes.d.ts +0 -8
  114. package/dist/cjs/api/types/OrderTemplateListRes.js +0 -5
  115. package/dist/cjs/api/types/OrderTemplateOrgInfo1.d.ts +0 -10
  116. package/dist/cjs/api/types/OrderTemplateOrgInfo1.js +0 -5
  117. package/dist/cjs/api/types/OrderTemplateReferenceColumnEnum1.d.ts +0 -13
  118. package/dist/cjs/api/types/OrderTemplateReferenceColumnEnum1.js +0 -15
  119. package/dist/cjs/api/types/OrderTemplateSortByEnum.d.ts +0 -11
  120. package/dist/cjs/api/types/OrderTemplateSortByEnum.js +0 -13
  121. package/dist/cjs/api/types/OrdersDraftDeleteManyRes.js +0 -5
  122. package/dist/cjs/api/types/OrdersDraftUpdateRes.js +0 -5
  123. package/dist/esm/api/resources/shipping/resources/orderTemplates/client/Client.d.mts +0 -182
  124. package/dist/esm/api/resources/shipping/resources/orderTemplates/client/Client.mjs +0 -683
  125. package/dist/esm/api/resources/shipping/resources/orderTemplates/client/index.d.mts +0 -2
  126. package/dist/esm/api/resources/shipping/resources/orderTemplates/client/index.mjs +0 -1
  127. package/dist/esm/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientCreate1.d.mts +0 -33
  128. package/dist/esm/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientUpdate1.d.mts +0 -37
  129. package/dist/esm/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateRemoveReferenceReq.d.mts +0 -14
  130. package/dist/esm/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplatesListV1Request.d.mts +0 -80
  131. package/dist/esm/api/resources/shipping/resources/orderTemplates/client/requests/index.d.mts +0 -4
  132. package/dist/esm/api/resources/shipping/resources/orderTemplates/index.d.mts +0 -1
  133. package/dist/esm/api/resources/shipping/resources/orderTemplates/index.mjs +0 -1
  134. package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/client/requests/SetTaskGroupOrderingDraftReq.mjs +0 -4
  135. package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/resources/cargo/client/Client.d.mts +0 -46
  136. package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/resources/cargo/client/Client.mjs +0 -90
  137. package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/resources/cargo/client/index.d.mts +0 -1
  138. package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/resources/cargo/client/index.mjs +0 -1
  139. package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/resources/cargo/index.d.mts +0 -1
  140. package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/resources/cargo/index.mjs +0 -1
  141. package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/resources/index.d.mts +0 -2
  142. package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/resources/index.mjs +0 -2
  143. package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/resources/taskGroup/client/Client.d.mts +0 -46
  144. package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/resources/taskGroup/client/Client.mjs +0 -90
  145. package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/resources/taskGroup/client/index.d.mts +0 -1
  146. package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/resources/taskGroup/client/index.mjs +0 -1
  147. package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/resources/taskGroup/index.d.mts +0 -1
  148. package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/resources/taskGroup/index.mjs +0 -1
  149. package/dist/esm/api/types/Order1.d.mts +0 -43
  150. package/dist/esm/api/types/Order1.mjs +0 -4
  151. package/dist/esm/api/types/OrderTemplate1.d.mts +0 -35
  152. package/dist/esm/api/types/OrderTemplate1.mjs +0 -4
  153. package/dist/esm/api/types/OrderTemplateExpanded1.d.mts +0 -16
  154. package/dist/esm/api/types/OrderTemplateExpanded1.mjs +0 -4
  155. package/dist/esm/api/types/OrderTemplateListRes.d.mts +0 -8
  156. package/dist/esm/api/types/OrderTemplateListRes.mjs +0 -4
  157. package/dist/esm/api/types/OrderTemplateOrgInfo1.d.mts +0 -10
  158. package/dist/esm/api/types/OrderTemplateOrgInfo1.mjs +0 -4
  159. package/dist/esm/api/types/OrderTemplateReferenceColumnEnum1.d.mts +0 -13
  160. package/dist/esm/api/types/OrderTemplateReferenceColumnEnum1.mjs +0 -12
  161. package/dist/esm/api/types/OrderTemplateSortByEnum.d.mts +0 -11
  162. package/dist/esm/api/types/OrderTemplateSortByEnum.mjs +0 -10
  163. package/dist/esm/api/types/OrdersDraftDeleteManyRes.mjs +0 -4
  164. package/dist/esm/api/types/OrdersDraftUpdateRes.mjs +0 -4
  165. /package/dist/cjs/api/resources/shipping/resources/{orderTemplates/client/requests/OrderTemplateClientCreate1.js → flights/client/requests/FlightsGetFlightTrackForFlightLegV1Request.js} +0 -0
  166. /package/dist/cjs/api/resources/shipping/resources/{orderTemplates → flights}/client/requests/index.js +0 -0
  167. /package/dist/cjs/api/resources/shipping/resources/{orderTemplates/client/requests/OrderTemplateClientUpdate1.js → orders/client/requests/OrdersAddCoordinatorTaskListToApplyAtOrderStagingV1Request.js} +0 -0
  168. /package/dist/cjs/api/resources/shipping/resources/{orderTemplates/client/requests/OrderTemplateRemoveReferenceReq.js → orders/client/requests/OrdersDeleteManyDraftsReq.js} +0 -0
  169. /package/dist/cjs/api/resources/shipping/resources/{orderTemplates/client/requests/OrderTemplatesListV1Request.js → orders/client/requests/OrdersTaskGroupOrderingReq.js} +0 -0
  170. /package/dist/cjs/api/resources/shipping/resources/orders/{resources/drafts/client/requests/DraftsAddCoordinatorTaskListToApplyAtOrderStagingV1Request.js → client/requests/OrdersUpdateDraftReq.js} +0 -0
  171. /package/dist/cjs/api/{resources/shipping/resources/orders/resources/drafts/client/requests/OrdersDraftDeleteManyReq.js → types/OrdersDeleteManyDraftsRes.js} +0 -0
  172. /package/dist/cjs/api/{resources/shipping/resources/orders/resources/drafts/client/requests/OrdersDraftUpdateReq.js → types/OrdersUpdateDraftRes.js} +0 -0
  173. /package/dist/esm/api/resources/shipping/resources/{orderTemplates/client/requests/OrderTemplateClientCreate1.mjs → flights/client/requests/FlightsGetFlightTrackForFlightLegV1Request.mjs} +0 -0
  174. /package/dist/esm/api/resources/shipping/resources/{orderTemplates → flights}/client/requests/index.mjs +0 -0
  175. /package/dist/esm/api/resources/shipping/resources/{orderTemplates/client/requests/OrderTemplateClientUpdate1.mjs → orders/client/requests/OrdersAddCoordinatorTaskListToApplyAtOrderStagingV1Request.mjs} +0 -0
  176. /package/dist/esm/api/resources/shipping/resources/{orderTemplates/client/requests/OrderTemplateRemoveReferenceReq.mjs → orders/client/requests/OrdersDeleteManyDraftsReq.mjs} +0 -0
  177. /package/dist/esm/api/resources/shipping/resources/{orderTemplates/client/requests/OrderTemplatesListV1Request.mjs → orders/client/requests/OrdersTaskGroupOrderingReq.mjs} +0 -0
  178. /package/dist/esm/api/resources/shipping/resources/orders/{resources/drafts/client/requests/DraftsAddCoordinatorTaskListToApplyAtOrderStagingV1Request.mjs → client/requests/OrdersUpdateDraftReq.mjs} +0 -0
  179. /package/dist/esm/api/{resources/shipping/resources/orders/resources/drafts/client/requests/OrdersDraftDeleteManyReq.mjs → types/OrdersDeleteManyDraftsRes.mjs} +0 -0
  180. /package/dist/esm/api/{resources/shipping/resources/orders/resources/drafts/client/requests/OrdersDraftUpdateReq.mjs → types/OrdersUpdateDraftRes.mjs} +0 -0
@@ -60,6 +60,19 @@ export declare class TaskGroup {
60
60
  */
61
61
  addExecutorV1(taskGroupId: string, request?: Chrt.shipping.orders.OrdersAddTaskGroupExecutorReq, requestOptions?: TaskGroup.RequestOptions): core.HttpResponsePromise<boolean>;
62
62
  private __addExecutorV1;
63
+ /**
64
+ * Deletes a task group from an active order and synchronizes affected order, driver, cargo, and account state. | authz_personas=[draft_creator_org_operator, coordinator_org_operators] | () -> (bool)
65
+ *
66
+ * @param {string} taskGroupId
67
+ * @param {TaskGroup.RequestOptions} requestOptions - Request-specific configuration.
68
+ *
69
+ * @throws {@link Chrt.UnprocessableEntityError}
70
+ *
71
+ * @example
72
+ * await client.shipping.orders.taskGroup.deleteV1("task_group_id")
73
+ */
74
+ deleteV1(taskGroupId: string, requestOptions?: TaskGroup.RequestOptions): core.HttpResponsePromise<boolean>;
75
+ private __deleteV1;
63
76
  /**
64
77
  * Clears the driver from an order task group. DRAFT task groups require executor_org_operators; operational task groups require executor_org_operators or driver_for_executor and STAGED or IN_PROGRESS status. | authz_personas=[executor_org_operators, driver_for_executor] | () -> (bool)
65
78
  *
@@ -183,6 +183,65 @@ class TaskGroup {
183
183
  }
184
184
  });
185
185
  }
186
+ /**
187
+ * Deletes a task group from an active order and synchronizes affected order, driver, cargo, and account state. | authz_personas=[draft_creator_org_operator, coordinator_org_operators] | () -> (bool)
188
+ *
189
+ * @param {string} taskGroupId
190
+ * @param {TaskGroup.RequestOptions} requestOptions - Request-specific configuration.
191
+ *
192
+ * @throws {@link Chrt.UnprocessableEntityError}
193
+ *
194
+ * @example
195
+ * await client.shipping.orders.taskGroup.deleteV1("task_group_id")
196
+ */
197
+ deleteV1(taskGroupId, requestOptions) {
198
+ return core.HttpResponsePromise.fromPromise(this.__deleteV1(taskGroupId, requestOptions));
199
+ }
200
+ __deleteV1(taskGroupId, requestOptions) {
201
+ return __awaiter(this, void 0, void 0, function* () {
202
+ var _a, _b, _c, _d;
203
+ 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);
204
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
205
+ 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/task_group/delete/v1/${encodeURIComponent(taskGroupId)}`),
206
+ method: "DELETE",
207
+ headers: _headers,
208
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
209
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
210
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
211
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
212
+ });
213
+ if (_response.ok) {
214
+ return { data: _response.body, rawResponse: _response.rawResponse };
215
+ }
216
+ if (_response.error.reason === "status-code") {
217
+ switch (_response.error.statusCode) {
218
+ case 422:
219
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
220
+ default:
221
+ throw new errors.ChrtError({
222
+ statusCode: _response.error.statusCode,
223
+ body: _response.error.body,
224
+ rawResponse: _response.rawResponse,
225
+ });
226
+ }
227
+ }
228
+ switch (_response.error.reason) {
229
+ case "non-json":
230
+ throw new errors.ChrtError({
231
+ statusCode: _response.error.statusCode,
232
+ body: _response.error.rawBody,
233
+ rawResponse: _response.rawResponse,
234
+ });
235
+ case "timeout":
236
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling DELETE /shipping/orders/task_group/delete/v1/{task_group_id}.");
237
+ case "unknown":
238
+ throw new errors.ChrtError({
239
+ message: _response.error.errorMessage,
240
+ rawResponse: _response.rawResponse,
241
+ });
242
+ }
243
+ });
244
+ }
186
245
  /**
187
246
  * Clears the driver from an order task group. DRAFT task groups require executor_org_operators; operational task groups require executor_org_operators or driver_for_executor and STAGED or IN_PROGRESS status. | authz_personas=[executor_org_operators, driver_for_executor] | () -> (bool)
188
247
  *
@@ -63,7 +63,7 @@ export declare class Sessions {
63
63
  flightLegsV1(request: Chrt.tracking.SessionsFlightLegsV1Request, requestOptions?: Sessions.RequestOptions): core.HttpResponsePromise<Chrt.FlightLeg1[]>;
64
64
  private __flightLegsV1;
65
65
  /**
66
- * Returns the Cirium-sourced positional track for one of the session's flight legs the live breadcrumb trail plus the planned path (waypoints + legacy route) — cached on read. Access restricted to the caller's organization or shared organizations. | auth: api_key | authz: min_org_role=operator | () -> (FlightTrackRes)
66
+ * Returns the raw Cirium positional track for one of the session's flight legs; pass force_refresh=true to bypass the cache. Access restricted to the caller's organization or shared organizations. | auth: api_key | authz: min_org_role=operator | () -> (FlightTrackRes)
67
67
  *
68
68
  * @param {Chrt.tracking.SessionsFlightTrackV1Request} request
69
69
  * @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
@@ -73,7 +73,8 @@ export declare class Sessions {
73
73
  * @example
74
74
  * await client.tracking.sessions.flightTrackV1({
75
75
  * session_id: "session_id",
76
- * flight_leg_id: "flight_leg_id"
76
+ * flight_leg_id: "flight_leg_id",
77
+ * force_refresh: true
77
78
  * })
78
79
  */
79
80
  flightTrackV1(request: Chrt.tracking.SessionsFlightTrackV1Request, requestOptions?: Sessions.RequestOptions): core.HttpResponsePromise<Chrt.FlightTrackRes>;
@@ -203,7 +203,7 @@ class Sessions {
203
203
  });
204
204
  }
205
205
  /**
206
- * Returns the Cirium-sourced positional track for one of the session's flight legs the live breadcrumb trail plus the planned path (waypoints + legacy route) — cached on read. Access restricted to the caller's organization or shared organizations. | auth: api_key | authz: min_org_role=operator | () -> (FlightTrackRes)
206
+ * Returns the raw Cirium positional track for one of the session's flight legs; pass force_refresh=true to bypass the cache. Access restricted to the caller's organization or shared organizations. | auth: api_key | authz: min_org_role=operator | () -> (FlightTrackRes)
207
207
  *
208
208
  * @param {Chrt.tracking.SessionsFlightTrackV1Request} request
209
209
  * @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
@@ -213,7 +213,8 @@ class Sessions {
213
213
  * @example
214
214
  * await client.tracking.sessions.flightTrackV1({
215
215
  * session_id: "session_id",
216
- * flight_leg_id: "flight_leg_id"
216
+ * flight_leg_id: "flight_leg_id",
217
+ * force_refresh: true
217
218
  * })
218
219
  */
219
220
  flightTrackV1(request, requestOptions) {
@@ -221,14 +222,17 @@ class Sessions {
221
222
  }
222
223
  __flightTrackV1(request, requestOptions) {
223
224
  return __awaiter(this, void 0, void 0, function* () {
224
- var _a, _b, _c, _d;
225
- const { session_id: sessionId, flight_leg_id: flightLegId } = request;
225
+ var _a, _b, _c, _d, _e;
226
+ const { session_id: sessionId, flight_leg_id: flightLegId, force_refresh: forceRefresh } = request;
226
227
  const _queryParams = {};
227
228
  _queryParams["session_id"] = sessionId;
228
229
  _queryParams["flight_leg_id"] = flightLegId;
229
- 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);
230
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
231
- 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, "tracking/sessions/flight_track/v1"),
230
+ if (forceRefresh !== undefined) {
231
+ _queryParams["force_refresh"] = (_a = forceRefresh === null || forceRefresh === void 0 ? void 0 : forceRefresh.toString()) !== null && _a !== void 0 ? _a : null;
232
+ }
233
+ let _headers = (0, headers_js_1.mergeHeaders)((_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
234
+ const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
235
+ url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.ChrtEnvironment.Local, "tracking/sessions/flight_track/v1"),
232
236
  method: "GET",
233
237
  headers: _headers,
234
238
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
@@ -5,10 +5,13 @@
5
5
  * @example
6
6
  * {
7
7
  * session_id: "session_id",
8
- * flight_leg_id: "flight_leg_id"
8
+ * flight_leg_id: "flight_leg_id",
9
+ * force_refresh: true
9
10
  * }
10
11
  */
11
12
  export interface SessionsFlightTrackV1Request {
12
13
  session_id: string;
13
14
  flight_leg_id: string;
15
+ /** Bypass the cache and fetch the latest flight track. */
16
+ force_refresh?: boolean | null;
14
17
  }
@@ -34,7 +34,6 @@ export interface OrderLimitedForProvider1 {
34
34
  order_classification_by_task_group_type?: Chrt.TaskGroupTypeEnum1 | null;
35
35
  order_schedule_id?: string | null;
36
36
  order_schedule_run_idempotency_key?: string | null;
37
- order_template_id?: string | null;
38
37
  order_template_new_id?: string | null;
39
38
  schema_version: number;
40
39
  service_line?: Chrt.ServiceLineEnum;
@@ -29,7 +29,6 @@ export interface OrderLimitedForShipper1 {
29
29
  order_classification_by_task_group_type?: Chrt.TaskGroupTypeEnum1 | null;
30
30
  order_schedule_id?: string | null;
31
31
  order_schedule_run_idempotency_key?: string | null;
32
- order_template_id?: string | null;
33
32
  order_template_new_id?: string | null;
34
33
  schema_version: number;
35
34
  service_line?: Chrt.ServiceLineEnum;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export interface OrdersDraftDeleteManyRes {
4
+ export interface OrdersDeleteManyDraftsRes {
5
5
  deleted_order_ids: string[];
6
6
  }
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Chrt from "../index.js";
5
- export interface OrdersDraftUpdateRes {
5
+ export interface OrdersUpdateDraftRes {
6
6
  /** Must be a string starting with `org_` */
7
7
  coordinator_org_id?: string | null;
8
8
  off_chrt_shipper_org_data_id?: string | null;
@@ -291,7 +291,6 @@ export * from "./OperationsTaskStatusEnum.js";
291
291
  export * from "./OperationsTaskTypeEnum.js";
292
292
  export * from "./OperationsTasksDeadlineTimestampsUpdateRes1.js";
293
293
  export * from "./OperationsTasksStatusUpdateRes1.js";
294
- export * from "./Order1.js";
295
294
  export * from "./OrderAndTaskGroupExpandedReq.js";
296
295
  export * from "./OrderAwbBillingAccount1.js";
297
296
  export * from "./OrderAwbBillingListItem1.js";
@@ -323,9 +322,6 @@ export * from "./OrderSortByEnum.js";
323
322
  export * from "./OrderStatusEnum1.js";
324
323
  export * from "./OrderTaskGroupExecutorDetails1.js";
325
324
  export * from "./OrderTaskGroupSharedDetails1.js";
326
- export * from "./OrderTemplate1.js";
327
- export * from "./OrderTemplateExpanded1.js";
328
- export * from "./OrderTemplateListRes.js";
329
325
  export * from "./OrderTemplateNew1.js";
330
326
  export * from "./OrderTemplateNewCargo1.js";
331
327
  export * from "./OrderTemplateNewCore1.js";
@@ -338,17 +334,14 @@ export * from "./OrderTemplateNewTask1.js";
338
334
  export * from "./OrderTemplateNewTaskArtifact1.js";
339
335
  export * from "./OrderTemplateNewTaskGroup1.js";
340
336
  export * from "./OrderTemplateNewTaskGroupExpanded1.js";
341
- export * from "./OrderTemplateOrgInfo1.js";
342
- export * from "./OrderTemplateReferenceColumnEnum1.js";
343
- export * from "./OrderTemplateSortByEnum.js";
344
337
  export * from "./OrderTypeaheadFieldEnum.js";
345
338
  export * from "./OrderTypeaheadResult.js";
346
339
  export * from "./OrderTypeaheadValue.js";
347
- export * from "./OrdersDraftDeleteManyRes.js";
348
- export * from "./OrdersDraftUpdateRes.js";
340
+ export * from "./OrdersDeleteManyDraftsRes.js";
349
341
  export * from "./OrdersExpandedListForProviderRes.js";
350
342
  export * from "./OrdersExpandedListForShipperRes.js";
351
343
  export * from "./OrdersOpenDraftRes.js";
344
+ export * from "./OrdersUpdateDraftRes.js";
352
345
  export * from "./OrdersUpdateOffChrtReferenceIdRes.js";
353
346
  export * from "./OrgBiddingGroup1.js";
354
347
  export * from "./OrgBiddingGroupListRes.js";
@@ -307,7 +307,6 @@ __exportStar(require("./OperationsTaskStatusEnum.js"), exports);
307
307
  __exportStar(require("./OperationsTaskTypeEnum.js"), exports);
308
308
  __exportStar(require("./OperationsTasksDeadlineTimestampsUpdateRes1.js"), exports);
309
309
  __exportStar(require("./OperationsTasksStatusUpdateRes1.js"), exports);
310
- __exportStar(require("./Order1.js"), exports);
311
310
  __exportStar(require("./OrderAndTaskGroupExpandedReq.js"), exports);
312
311
  __exportStar(require("./OrderAwbBillingAccount1.js"), exports);
313
312
  __exportStar(require("./OrderAwbBillingListItem1.js"), exports);
@@ -339,9 +338,6 @@ __exportStar(require("./OrderSortByEnum.js"), exports);
339
338
  __exportStar(require("./OrderStatusEnum1.js"), exports);
340
339
  __exportStar(require("./OrderTaskGroupExecutorDetails1.js"), exports);
341
340
  __exportStar(require("./OrderTaskGroupSharedDetails1.js"), exports);
342
- __exportStar(require("./OrderTemplate1.js"), exports);
343
- __exportStar(require("./OrderTemplateExpanded1.js"), exports);
344
- __exportStar(require("./OrderTemplateListRes.js"), exports);
345
341
  __exportStar(require("./OrderTemplateNew1.js"), exports);
346
342
  __exportStar(require("./OrderTemplateNewCargo1.js"), exports);
347
343
  __exportStar(require("./OrderTemplateNewCore1.js"), exports);
@@ -354,17 +350,14 @@ __exportStar(require("./OrderTemplateNewTask1.js"), exports);
354
350
  __exportStar(require("./OrderTemplateNewTaskArtifact1.js"), exports);
355
351
  __exportStar(require("./OrderTemplateNewTaskGroup1.js"), exports);
356
352
  __exportStar(require("./OrderTemplateNewTaskGroupExpanded1.js"), exports);
357
- __exportStar(require("./OrderTemplateOrgInfo1.js"), exports);
358
- __exportStar(require("./OrderTemplateReferenceColumnEnum1.js"), exports);
359
- __exportStar(require("./OrderTemplateSortByEnum.js"), exports);
360
353
  __exportStar(require("./OrderTypeaheadFieldEnum.js"), exports);
361
354
  __exportStar(require("./OrderTypeaheadResult.js"), exports);
362
355
  __exportStar(require("./OrderTypeaheadValue.js"), exports);
363
- __exportStar(require("./OrdersDraftDeleteManyRes.js"), exports);
364
- __exportStar(require("./OrdersDraftUpdateRes.js"), exports);
356
+ __exportStar(require("./OrdersDeleteManyDraftsRes.js"), exports);
365
357
  __exportStar(require("./OrdersExpandedListForProviderRes.js"), exports);
366
358
  __exportStar(require("./OrdersExpandedListForShipperRes.js"), exports);
367
359
  __exportStar(require("./OrdersOpenDraftRes.js"), exports);
360
+ __exportStar(require("./OrdersUpdateDraftRes.js"), exports);
368
361
  __exportStar(require("./OrdersUpdateOffChrtReferenceIdRes.js"), exports);
369
362
  __exportStar(require("./OrgBiddingGroup1.js"), exports);
370
363
  __exportStar(require("./OrgBiddingGroupListRes.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.929.0";
1
+ export declare const SDK_VERSION = "1.930.0";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "1.929.0";
4
+ exports.SDK_VERSION = "1.930.0";
@@ -23,8 +23,8 @@ export class ChrtClient {
23
23
  this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
24
24
  "X-Fern-Language": "JavaScript",
25
25
  "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
26
- "X-Fern-SDK-Version": "1.929.0",
27
- "User-Agent": "@chrt-inc/typescript-sdk/1.929.0",
26
+ "X-Fern-SDK-Version": "1.930.0",
27
+ "User-Agent": "@chrt-inc/typescript-sdk/1.930.0",
28
28
  "X-Fern-Runtime": core.RUNTIME.type,
29
29
  "X-Fern-Runtime-Version": core.RUNTIME.version,
30
30
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -5,7 +5,6 @@ import * as environments from "../../../../environments.mjs";
5
5
  import * as core from "../../../../core/index.mjs";
6
6
  import { Drivers } from "../resources/drivers/client/Client.mjs";
7
7
  import { Flights } from "../resources/flights/client/Client.mjs";
8
- import { OrderTemplates } from "../resources/orderTemplates/client/Client.mjs";
9
8
  import { OrderTemplatesNew } from "../resources/orderTemplatesNew/client/Client.mjs";
10
9
  import { Orders } from "../resources/orders/client/Client.mjs";
11
10
  import { TaskArtifacts } from "../resources/taskArtifacts/client/Client.mjs";
@@ -26,7 +25,6 @@ export declare class Shipping {
26
25
  protected readonly _options: Shipping.Options;
27
26
  protected _drivers: Drivers | undefined;
28
27
  protected _flights: Flights | undefined;
29
- protected _orderTemplates: OrderTemplates | undefined;
30
28
  protected _orderTemplatesNew: OrderTemplatesNew | undefined;
31
29
  protected _orders: Orders | undefined;
32
30
  protected _taskArtifacts: TaskArtifacts | undefined;
@@ -35,7 +33,6 @@ export declare class Shipping {
35
33
  constructor(_options?: Shipping.Options);
36
34
  get drivers(): Drivers;
37
35
  get flights(): Flights;
38
- get orderTemplates(): OrderTemplates;
39
36
  get orderTemplatesNew(): OrderTemplatesNew;
40
37
  get orders(): Orders;
41
38
  get taskArtifacts(): TaskArtifacts;
@@ -3,7 +3,6 @@
3
3
  */
4
4
  import { Drivers } from "../resources/drivers/client/Client.mjs";
5
5
  import { Flights } from "../resources/flights/client/Client.mjs";
6
- import { OrderTemplates } from "../resources/orderTemplates/client/Client.mjs";
7
6
  import { OrderTemplatesNew } from "../resources/orderTemplatesNew/client/Client.mjs";
8
7
  import { Orders } from "../resources/orders/client/Client.mjs";
9
8
  import { TaskArtifacts } from "../resources/taskArtifacts/client/Client.mjs";
@@ -21,10 +20,6 @@ export class Shipping {
21
20
  var _a;
22
21
  return ((_a = this._flights) !== null && _a !== void 0 ? _a : (this._flights = new Flights(this._options)));
23
22
  }
24
- get orderTemplates() {
25
- var _a;
26
- return ((_a = this._orderTemplates) !== null && _a !== void 0 ? _a : (this._orderTemplates = new OrderTemplates(this._options)));
27
- }
28
23
  get orderTemplatesNew() {
29
24
  var _a;
30
25
  return ((_a = this._orderTemplatesNew) !== null && _a !== void 0 ? _a : (this._orderTemplatesNew = new OrderTemplatesNew(this._options)));
@@ -70,17 +70,20 @@ export declare class Flights {
70
70
  getFlightStatusForFlightLegV1(flightLegId: string, requestOptions?: Flights.RequestOptions): core.HttpResponsePromise<Chrt.FlightLeg1>;
71
71
  private __getFlightStatusForFlightLegV1;
72
72
  /**
73
- * Returns the Cirium-sourced positional track for a flight leg the live breadcrumb trail plus the planned path (waypoints + legacy route) in one read-through call, cached on read. | authz_personas=[driver_for_executor, coordinator_org_operators, executor_org_operators, order_executor_org_operators, shipper_org_operators] | () -> (FlightTrackRes)
73
+ * Returns the raw Cirium positional track for a flight leg; pass force_refresh=true to bypass the cache. | authz_personas=[driver_for_executor, coordinator_org_operators, executor_org_operators, order_executor_org_operators, shipper_org_operators] | () -> (FlightTrackRes)
74
74
  *
75
75
  * @param {string} flightLegId
76
+ * @param {Chrt.shipping.FlightsGetFlightTrackForFlightLegV1Request} request
76
77
  * @param {Flights.RequestOptions} requestOptions - Request-specific configuration.
77
78
  *
78
79
  * @throws {@link Chrt.UnprocessableEntityError}
79
80
  *
80
81
  * @example
81
- * await client.shipping.flights.getFlightTrackForFlightLegV1("flight_leg_id")
82
+ * await client.shipping.flights.getFlightTrackForFlightLegV1("flight_leg_id", {
83
+ * force_refresh: true
84
+ * })
82
85
  */
83
- getFlightTrackForFlightLegV1(flightLegId: string, requestOptions?: Flights.RequestOptions): core.HttpResponsePromise<Chrt.FlightTrackRes>;
86
+ getFlightTrackForFlightLegV1(flightLegId: string, request?: Chrt.shipping.FlightsGetFlightTrackForFlightLegV1Request, requestOptions?: Flights.RequestOptions): core.HttpResponsePromise<Chrt.FlightTrackRes>;
84
87
  private __getFlightTrackForFlightLegV1;
85
88
  protected _getAuthorizationHeader(): Promise<string | undefined>;
86
89
  }
@@ -197,28 +197,36 @@ export class Flights {
197
197
  });
198
198
  }
199
199
  /**
200
- * Returns the Cirium-sourced positional track for a flight leg the live breadcrumb trail plus the planned path (waypoints + legacy route) in one read-through call, cached on read. | authz_personas=[driver_for_executor, coordinator_org_operators, executor_org_operators, order_executor_org_operators, shipper_org_operators] | () -> (FlightTrackRes)
200
+ * Returns the raw Cirium positional track for a flight leg; pass force_refresh=true to bypass the cache. | authz_personas=[driver_for_executor, coordinator_org_operators, executor_org_operators, order_executor_org_operators, shipper_org_operators] | () -> (FlightTrackRes)
201
201
  *
202
202
  * @param {string} flightLegId
203
+ * @param {Chrt.shipping.FlightsGetFlightTrackForFlightLegV1Request} request
203
204
  * @param {Flights.RequestOptions} requestOptions - Request-specific configuration.
204
205
  *
205
206
  * @throws {@link Chrt.UnprocessableEntityError}
206
207
  *
207
208
  * @example
208
- * await client.shipping.flights.getFlightTrackForFlightLegV1("flight_leg_id")
209
+ * await client.shipping.flights.getFlightTrackForFlightLegV1("flight_leg_id", {
210
+ * force_refresh: true
211
+ * })
209
212
  */
210
- getFlightTrackForFlightLegV1(flightLegId, requestOptions) {
211
- return core.HttpResponsePromise.fromPromise(this.__getFlightTrackForFlightLegV1(flightLegId, requestOptions));
213
+ getFlightTrackForFlightLegV1(flightLegId, request = {}, requestOptions) {
214
+ return core.HttpResponsePromise.fromPromise(this.__getFlightTrackForFlightLegV1(flightLegId, request, requestOptions));
212
215
  }
213
- __getFlightTrackForFlightLegV1(flightLegId, requestOptions) {
214
- return __awaiter(this, void 0, void 0, function* () {
215
- var _a, _b, _c, _d;
216
- let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
217
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
218
- 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/flights/track/for_flight_leg/v1/${encodeURIComponent(flightLegId)}`),
216
+ __getFlightTrackForFlightLegV1(flightLegId_1) {
217
+ return __awaiter(this, arguments, void 0, function* (flightLegId, request = {}, requestOptions) {
218
+ var _a, _b, _c, _d, _e;
219
+ const { force_refresh: forceRefresh } = request;
220
+ const _queryParams = {};
221
+ if (forceRefresh !== undefined) {
222
+ _queryParams["force_refresh"] = (_a = forceRefresh === null || forceRefresh === void 0 ? void 0 : forceRefresh.toString()) !== null && _a !== void 0 ? _a : null;
223
+ }
224
+ let _headers = mergeHeaders((_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
225
+ const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
226
+ url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.ChrtEnvironment.Local, `shipping/flights/track/for_flight_leg/v1/${encodeURIComponent(flightLegId)}`),
219
227
  method: "GET",
220
228
  headers: _headers,
221
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
229
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
222
230
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
223
231
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
224
232
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -1 +1,2 @@
1
1
  export {};
2
+ export * from "./requests/index.mjs";
@@ -1 +1 @@
1
- export {};
1
+ export * from "./requests/index.mjs";
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * force_refresh: true
8
+ * }
9
+ */
10
+ export interface FlightsGetFlightTrackForFlightLegV1Request {
11
+ /** Bypass the cache and fetch the latest flight track. */
12
+ force_refresh?: boolean | null;
13
+ }
@@ -0,0 +1 @@
1
+ export { type FlightsGetFlightTrackForFlightLegV1Request } from "./FlightsGetFlightTrackForFlightLegV1Request.mjs";
@@ -1,14 +1,13 @@
1
1
  export * as drivers from "./drivers/index.mjs";
2
2
  export * from "./drivers/types/index.mjs";
3
3
  export * as flights from "./flights/index.mjs";
4
- export * as orderTemplates from "./orderTemplates/index.mjs";
5
4
  export * as orderTemplatesNew from "./orderTemplatesNew/index.mjs";
6
5
  export * as orders from "./orders/index.mjs";
7
6
  export * as taskArtifacts from "./taskArtifacts/index.mjs";
8
7
  export * as taskGroups from "./taskGroups/index.mjs";
9
8
  export * as tasks from "./tasks/index.mjs";
10
9
  export * from "./drivers/client/requests/index.mjs";
11
- export * from "./orderTemplates/client/requests/index.mjs";
10
+ export * from "./flights/client/requests/index.mjs";
12
11
  export * from "./orderTemplatesNew/client/requests/index.mjs";
13
12
  export * from "./orders/client/requests/index.mjs";
14
13
  export * from "./taskGroups/client/requests/index.mjs";
@@ -1,14 +1,13 @@
1
1
  export * as drivers from "./drivers/index.mjs";
2
2
  export * from "./drivers/types/index.mjs";
3
3
  export * as flights from "./flights/index.mjs";
4
- export * as orderTemplates from "./orderTemplates/index.mjs";
5
4
  export * as orderTemplatesNew from "./orderTemplatesNew/index.mjs";
6
5
  export * as orders from "./orders/index.mjs";
7
6
  export * as taskArtifacts from "./taskArtifacts/index.mjs";
8
7
  export * as taskGroups from "./taskGroups/index.mjs";
9
8
  export * as tasks from "./tasks/index.mjs";
10
9
  export * from "./drivers/client/requests/index.mjs";
11
- export * from "./orderTemplates/client/requests/index.mjs";
10
+ export * from "./flights/client/requests/index.mjs";
12
11
  export * from "./orderTemplatesNew/client/requests/index.mjs";
13
12
  export * from "./orders/client/requests/index.mjs";
14
13
  export * from "./taskGroups/client/requests/index.mjs";
@@ -95,6 +95,66 @@ export declare class Orders {
95
95
  */
96
96
  cancelManyV1(request: Chrt.shipping.OrdersCancelManyReq, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<boolean>;
97
97
  private __cancelManyV1;
98
+ /**
99
+ * Adds or updates a coordinator task list to apply when the draft is staged. | authz_personas=[coordinator_org_operators] | (UTCDatetime | None) -> (bool)
100
+ *
101
+ * @param {string} orderId
102
+ * @param {string} taskListId
103
+ * @param {Chrt.shipping.OrdersAddCoordinatorTaskListToApplyAtOrderStagingV1Request} request
104
+ * @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
105
+ *
106
+ * @throws {@link Chrt.UnprocessableEntityError}
107
+ *
108
+ * @example
109
+ * await client.shipping.orders.addCoordinatorTaskListToApplyAtOrderStagingV1("order_id", "task_list_id", {
110
+ * department_id: "department_id",
111
+ * body: "2024-01-15T09:30:00Z"
112
+ * })
113
+ */
114
+ addCoordinatorTaskListToApplyAtOrderStagingV1(orderId: string, taskListId: string, request?: Chrt.shipping.OrdersAddCoordinatorTaskListToApplyAtOrderStagingV1Request, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<boolean>;
115
+ private __addCoordinatorTaskListToApplyAtOrderStagingV1;
116
+ /**
117
+ * Removes a coordinator task list pending application at draft staging. | authz_personas=[coordinator_org_operators] | () -> (bool)
118
+ *
119
+ * @param {string} orderId
120
+ * @param {string} taskListId
121
+ * @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
122
+ *
123
+ * @throws {@link Chrt.UnprocessableEntityError}
124
+ *
125
+ * @example
126
+ * await client.shipping.orders.removeCoordinatorTaskListToApplyAtOrderStagingV1("order_id", "task_list_id")
127
+ */
128
+ removeCoordinatorTaskListToApplyAtOrderStagingV1(orderId: string, taskListId: string, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<boolean>;
129
+ private __removeCoordinatorTaskListToApplyAtOrderStagingV1;
130
+ /**
131
+ * Hard-deletes a draft order and all dependent entities. | authz_personas=[draft_creator_org_operator] | () -> (bool)
132
+ *
133
+ * @param {string} orderId
134
+ * @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
135
+ *
136
+ * @throws {@link Chrt.UnprocessableEntityError}
137
+ *
138
+ * @example
139
+ * await client.shipping.orders.deleteDraftV1("order_id")
140
+ */
141
+ deleteDraftV1(orderId: string, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<boolean>;
142
+ private __deleteDraftV1;
143
+ /**
144
+ * Hard-deletes multiple draft orders and all dependent entities. | authz_personas=[draft_creator_org_operator] | (OrdersDeleteManyDraftsReq) -> (OrdersDeleteManyDraftsRes)
145
+ *
146
+ * @param {Chrt.shipping.OrdersDeleteManyDraftsReq} request
147
+ * @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
148
+ *
149
+ * @throws {@link Chrt.UnprocessableEntityError}
150
+ *
151
+ * @example
152
+ * await client.shipping.orders.deleteManyDraftsV1({
153
+ * order_ids: ["order_ids"]
154
+ * })
155
+ */
156
+ deleteManyDraftsV1(request: Chrt.shipping.OrdersDeleteManyDraftsReq, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<Chrt.OrdersDeleteManyDraftsRes>;
157
+ private __deleteManyDraftsV1;
98
158
  /**
99
159
  * Validates a draft order and stages all related entities in a transaction. | authz_personas=[draft_creator_org_operator] | () -> (bool)
100
160
  *
@@ -121,6 +181,22 @@ export declare class Orders {
121
181
  */
122
182
  getSuggestedDepartmentV1(orderId: string, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<(string | null) | undefined>;
123
183
  private __getSuggestedDepartmentV1;
184
+ /**
185
+ * Sets task-group ordering on an active order unless a task group or task is completed. | authz_personas=[draft_creator_org_operator, coordinator_org_operators] | (OrdersTaskGroupOrderingReq) -> (bool)
186
+ *
187
+ * @param {string} orderId
188
+ * @param {Chrt.shipping.OrdersTaskGroupOrderingReq} request
189
+ * @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
190
+ *
191
+ * @throws {@link Chrt.UnprocessableEntityError}
192
+ *
193
+ * @example
194
+ * await client.shipping.orders.taskGroupOrderingV1("order_id", {
195
+ * task_group_ids: ["task_group_ids"]
196
+ * })
197
+ */
198
+ taskGroupOrderingV1(orderId: string, request: Chrt.shipping.OrdersTaskGroupOrderingReq, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<boolean>;
199
+ private __taskGroupOrderingV1;
124
200
  /**
125
201
  * Returns distinct label values matching the query for orders where the caller is coordinator (coordinator_label) or executor (task_group_details.executor_label). | authz: allowed_org_types=[provider], min_org_role=operator | () -> (list[str])
126
202
  *
@@ -183,6 +259,20 @@ export declare class Orders {
183
259
  */
184
260
  updateDepartmentV1(orderId: string, request?: Chrt.shipping.OrdersUpdateDepartmentReq, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<boolean>;
185
261
  private __updateDepartmentV1;
262
+ /**
263
+ * Updates service-line and organization assignments on a draft order. | authz_personas=[draft_creator_org_operator] | (OrdersUpdateDraftReq) -> (OrdersUpdateDraftRes)
264
+ *
265
+ * @param {string} orderId
266
+ * @param {Chrt.shipping.OrdersUpdateDraftReq} request
267
+ * @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
268
+ *
269
+ * @throws {@link Chrt.UnprocessableEntityError}
270
+ *
271
+ * @example
272
+ * await client.shipping.orders.updateDraftV1("order_id")
273
+ */
274
+ updateDraftV1(orderId: string, request?: Chrt.shipping.OrdersUpdateDraftReq, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<Chrt.OrdersUpdateDraftRes>;
275
+ private __updateDraftV1;
186
276
  /**
187
277
  * Updates label for the caller's role on the order. Coordinator writes coordinator_label; executor writes executor_label on matching task_group_details rows. | authz_personas=[coordinator_org_operators, order_executor_org_operators] | (OrdersUpdateLabelReq) -> (bool)
188
278
  *
@@ -211,5 +301,18 @@ export declare class Orders {
211
301
  */
212
302
  updateOffChrtReferenceIdV1(orderId: string, request?: Chrt.shipping.OrdersUpdateOffChrtReferenceIdReq, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<Chrt.OrdersUpdateOffChrtReferenceIdRes>;
213
303
  private __updateOffChrtReferenceIdV1;
304
+ /**
305
+ * Validates a draft order for staging and returns requirement results. | authz_personas=[draft_creator_org_operator] | () -> (OrderDraftValidationResult)
306
+ *
307
+ * @param {string} orderId
308
+ * @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
309
+ *
310
+ * @throws {@link Chrt.UnprocessableEntityError}
311
+ *
312
+ * @example
313
+ * await client.shipping.orders.validateDraftV1("order_id")
314
+ */
315
+ validateDraftV1(orderId: string, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<Chrt.OrderDraftValidationResult>;
316
+ private __validateDraftV1;
214
317
  protected _getAuthorizationHeader(): Promise<string | undefined>;
215
318
  }