@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
@@ -147,6 +147,65 @@ export class TaskGroup {
147
147
  }
148
148
  });
149
149
  }
150
+ /**
151
+ * 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)
152
+ *
153
+ * @param {string} taskGroupId
154
+ * @param {TaskGroup.RequestOptions} requestOptions - Request-specific configuration.
155
+ *
156
+ * @throws {@link Chrt.UnprocessableEntityError}
157
+ *
158
+ * @example
159
+ * await client.shipping.orders.taskGroup.deleteV1("task_group_id")
160
+ */
161
+ deleteV1(taskGroupId, requestOptions) {
162
+ return core.HttpResponsePromise.fromPromise(this.__deleteV1(taskGroupId, requestOptions));
163
+ }
164
+ __deleteV1(taskGroupId, requestOptions) {
165
+ return __awaiter(this, void 0, void 0, function* () {
166
+ var _a, _b, _c, _d;
167
+ 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);
168
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
169
+ 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)}`),
170
+ method: "DELETE",
171
+ headers: _headers,
172
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
173
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
174
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
175
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
176
+ });
177
+ if (_response.ok) {
178
+ return { data: _response.body, rawResponse: _response.rawResponse };
179
+ }
180
+ if (_response.error.reason === "status-code") {
181
+ switch (_response.error.statusCode) {
182
+ case 422:
183
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
184
+ default:
185
+ throw new errors.ChrtError({
186
+ statusCode: _response.error.statusCode,
187
+ body: _response.error.body,
188
+ rawResponse: _response.rawResponse,
189
+ });
190
+ }
191
+ }
192
+ switch (_response.error.reason) {
193
+ case "non-json":
194
+ throw new errors.ChrtError({
195
+ statusCode: _response.error.statusCode,
196
+ body: _response.error.rawBody,
197
+ rawResponse: _response.rawResponse,
198
+ });
199
+ case "timeout":
200
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling DELETE /shipping/orders/task_group/delete/v1/{task_group_id}.");
201
+ case "unknown":
202
+ throw new errors.ChrtError({
203
+ message: _response.error.errorMessage,
204
+ rawResponse: _response.rawResponse,
205
+ });
206
+ }
207
+ });
208
+ }
150
209
  /**
151
210
  * 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)
152
211
  *
@@ -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>;
@@ -167,7 +167,7 @@ export class Sessions {
167
167
  });
168
168
  }
169
169
  /**
170
- * 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)
170
+ * 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)
171
171
  *
172
172
  * @param {Chrt.tracking.SessionsFlightTrackV1Request} request
173
173
  * @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
@@ -177,7 +177,8 @@ export class Sessions {
177
177
  * @example
178
178
  * await client.tracking.sessions.flightTrackV1({
179
179
  * session_id: "session_id",
180
- * flight_leg_id: "flight_leg_id"
180
+ * flight_leg_id: "flight_leg_id",
181
+ * force_refresh: true
181
182
  * })
182
183
  */
183
184
  flightTrackV1(request, requestOptions) {
@@ -185,14 +186,17 @@ export class Sessions {
185
186
  }
186
187
  __flightTrackV1(request, requestOptions) {
187
188
  return __awaiter(this, void 0, void 0, function* () {
188
- var _a, _b, _c, _d;
189
- const { session_id: sessionId, flight_leg_id: flightLegId } = request;
189
+ var _a, _b, _c, _d, _e;
190
+ const { session_id: sessionId, flight_leg_id: flightLegId, force_refresh: forceRefresh } = request;
190
191
  const _queryParams = {};
191
192
  _queryParams["session_id"] = sessionId;
192
193
  _queryParams["flight_leg_id"] = flightLegId;
193
- 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);
194
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
195
- 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"),
194
+ if (forceRefresh !== undefined) {
195
+ _queryParams["force_refresh"] = (_a = forceRefresh === null || forceRefresh === void 0 ? void 0 : forceRefresh.toString()) !== null && _a !== void 0 ? _a : null;
196
+ }
197
+ 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);
198
+ const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
199
+ 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"),
196
200
  method: "GET",
197
201
  headers: _headers,
198
202
  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.mjs";
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.mjs";
291
291
  export * from "./OperationsTaskTypeEnum.mjs";
292
292
  export * from "./OperationsTasksDeadlineTimestampsUpdateRes1.mjs";
293
293
  export * from "./OperationsTasksStatusUpdateRes1.mjs";
294
- export * from "./Order1.mjs";
295
294
  export * from "./OrderAndTaskGroupExpandedReq.mjs";
296
295
  export * from "./OrderAwbBillingAccount1.mjs";
297
296
  export * from "./OrderAwbBillingListItem1.mjs";
@@ -323,9 +322,6 @@ export * from "./OrderSortByEnum.mjs";
323
322
  export * from "./OrderStatusEnum1.mjs";
324
323
  export * from "./OrderTaskGroupExecutorDetails1.mjs";
325
324
  export * from "./OrderTaskGroupSharedDetails1.mjs";
326
- export * from "./OrderTemplate1.mjs";
327
- export * from "./OrderTemplateExpanded1.mjs";
328
- export * from "./OrderTemplateListRes.mjs";
329
325
  export * from "./OrderTemplateNew1.mjs";
330
326
  export * from "./OrderTemplateNewCargo1.mjs";
331
327
  export * from "./OrderTemplateNewCore1.mjs";
@@ -338,17 +334,14 @@ export * from "./OrderTemplateNewTask1.mjs";
338
334
  export * from "./OrderTemplateNewTaskArtifact1.mjs";
339
335
  export * from "./OrderTemplateNewTaskGroup1.mjs";
340
336
  export * from "./OrderTemplateNewTaskGroupExpanded1.mjs";
341
- export * from "./OrderTemplateOrgInfo1.mjs";
342
- export * from "./OrderTemplateReferenceColumnEnum1.mjs";
343
- export * from "./OrderTemplateSortByEnum.mjs";
344
337
  export * from "./OrderTypeaheadFieldEnum.mjs";
345
338
  export * from "./OrderTypeaheadResult.mjs";
346
339
  export * from "./OrderTypeaheadValue.mjs";
347
- export * from "./OrdersDraftDeleteManyRes.mjs";
348
- export * from "./OrdersDraftUpdateRes.mjs";
340
+ export * from "./OrdersDeleteManyDraftsRes.mjs";
349
341
  export * from "./OrdersExpandedListForProviderRes.mjs";
350
342
  export * from "./OrdersExpandedListForShipperRes.mjs";
351
343
  export * from "./OrdersOpenDraftRes.mjs";
344
+ export * from "./OrdersUpdateDraftRes.mjs";
352
345
  export * from "./OrdersUpdateOffChrtReferenceIdRes.mjs";
353
346
  export * from "./OrgBiddingGroup1.mjs";
354
347
  export * from "./OrgBiddingGroupListRes.mjs";
@@ -291,7 +291,6 @@ export * from "./OperationsTaskStatusEnum.mjs";
291
291
  export * from "./OperationsTaskTypeEnum.mjs";
292
292
  export * from "./OperationsTasksDeadlineTimestampsUpdateRes1.mjs";
293
293
  export * from "./OperationsTasksStatusUpdateRes1.mjs";
294
- export * from "./Order1.mjs";
295
294
  export * from "./OrderAndTaskGroupExpandedReq.mjs";
296
295
  export * from "./OrderAwbBillingAccount1.mjs";
297
296
  export * from "./OrderAwbBillingListItem1.mjs";
@@ -323,9 +322,6 @@ export * from "./OrderSortByEnum.mjs";
323
322
  export * from "./OrderStatusEnum1.mjs";
324
323
  export * from "./OrderTaskGroupExecutorDetails1.mjs";
325
324
  export * from "./OrderTaskGroupSharedDetails1.mjs";
326
- export * from "./OrderTemplate1.mjs";
327
- export * from "./OrderTemplateExpanded1.mjs";
328
- export * from "./OrderTemplateListRes.mjs";
329
325
  export * from "./OrderTemplateNew1.mjs";
330
326
  export * from "./OrderTemplateNewCargo1.mjs";
331
327
  export * from "./OrderTemplateNewCore1.mjs";
@@ -338,17 +334,14 @@ export * from "./OrderTemplateNewTask1.mjs";
338
334
  export * from "./OrderTemplateNewTaskArtifact1.mjs";
339
335
  export * from "./OrderTemplateNewTaskGroup1.mjs";
340
336
  export * from "./OrderTemplateNewTaskGroupExpanded1.mjs";
341
- export * from "./OrderTemplateOrgInfo1.mjs";
342
- export * from "./OrderTemplateReferenceColumnEnum1.mjs";
343
- export * from "./OrderTemplateSortByEnum.mjs";
344
337
  export * from "./OrderTypeaheadFieldEnum.mjs";
345
338
  export * from "./OrderTypeaheadResult.mjs";
346
339
  export * from "./OrderTypeaheadValue.mjs";
347
- export * from "./OrdersDraftDeleteManyRes.mjs";
348
- export * from "./OrdersDraftUpdateRes.mjs";
340
+ export * from "./OrdersDeleteManyDraftsRes.mjs";
349
341
  export * from "./OrdersExpandedListForProviderRes.mjs";
350
342
  export * from "./OrdersExpandedListForShipperRes.mjs";
351
343
  export * from "./OrdersOpenDraftRes.mjs";
344
+ export * from "./OrdersUpdateDraftRes.mjs";
352
345
  export * from "./OrdersUpdateOffChrtReferenceIdRes.mjs";
353
346
  export * from "./OrgBiddingGroup1.mjs";
354
347
  export * from "./OrgBiddingGroupListRes.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.929.0";
1
+ export declare const SDK_VERSION = "1.930.0";
@@ -1 +1 @@
1
- export const SDK_VERSION = "1.929.0";
1
+ export const SDK_VERSION = "1.930.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chrt-inc/typescript-sdk",
3
- "version": "1.929.0",
3
+ "version": "1.930.0",
4
4
  "private": false,
5
5
  "repository": "github:chrt-inc/typescript-sdk",
6
6
  "type": "commonjs",