@chrt-inc/typescript-sdk 1.751.0 → 1.756.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 (60) hide show
  1. package/dist/cjs/Client.js +2 -2
  2. package/dist/cjs/api/resources/integrations/resources/cargoaiTrackAndTrace/client/Client.d.ts +0 -13
  3. package/dist/cjs/api/resources/integrations/resources/cargoaiTrackAndTrace/client/Client.js +0 -59
  4. package/dist/cjs/api/resources/shipping/resources/flights/client/Client.d.ts +26 -0
  5. package/dist/cjs/api/resources/shipping/resources/flights/client/Client.js +118 -0
  6. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/Client.d.ts +4 -1
  7. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/Client.js +4 -1
  8. package/dist/cjs/api/resources/shipping/resources/taskGroups/client/Client.d.ts +4 -1
  9. package/dist/cjs/api/resources/shipping/resources/taskGroups/client/Client.js +4 -1
  10. package/dist/cjs/api/types/CargoAiTrackAndTraceUpdate1.d.ts +0 -4
  11. package/dist/cjs/api/types/CargoAiTrackAndTraceUpdateSourceEnum.d.ts +1 -5
  12. package/dist/cjs/api/types/CargoAiTrackAndTraceUpdateSourceEnum.js +0 -5
  13. package/dist/cjs/api/types/FlightLeg1.d.ts +15 -4
  14. package/dist/cjs/api/types/FlightLegClientCreate1.d.ts +3 -4
  15. package/dist/cjs/api/types/FlightLegStatusEnum1.d.ts +14 -0
  16. package/dist/cjs/api/types/FlightLegStatusEnum1.js +16 -0
  17. package/dist/cjs/api/types/FlightLegStatusSourceEnum1.d.ts +8 -0
  18. package/dist/cjs/api/types/FlightLegStatusSourceEnum1.js +10 -0
  19. package/dist/cjs/api/types/FlightLegWebhookInfo.d.ts +0 -2
  20. package/dist/cjs/api/types/FlightTrackPosition.d.ts +14 -0
  21. package/dist/cjs/api/types/FlightTrackPosition.js +5 -0
  22. package/dist/cjs/api/types/FlightTrackRes.d.ts +21 -0
  23. package/dist/cjs/api/types/FlightTrackRes.js +5 -0
  24. package/dist/cjs/api/types/FlightTrackWaypoint.d.ts +10 -0
  25. package/dist/cjs/api/types/FlightTrackWaypoint.js +5 -0
  26. package/dist/cjs/api/types/index.d.ts +5 -0
  27. package/dist/cjs/api/types/index.js +5 -0
  28. package/dist/cjs/version.d.ts +1 -1
  29. package/dist/cjs/version.js +1 -1
  30. package/dist/esm/Client.mjs +2 -2
  31. package/dist/esm/api/resources/integrations/resources/cargoaiTrackAndTrace/client/Client.d.mts +0 -13
  32. package/dist/esm/api/resources/integrations/resources/cargoaiTrackAndTrace/client/Client.mjs +0 -59
  33. package/dist/esm/api/resources/shipping/resources/flights/client/Client.d.mts +26 -0
  34. package/dist/esm/api/resources/shipping/resources/flights/client/Client.mjs +118 -0
  35. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/Client.d.mts +4 -1
  36. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/Client.mjs +4 -1
  37. package/dist/esm/api/resources/shipping/resources/taskGroups/client/Client.d.mts +4 -1
  38. package/dist/esm/api/resources/shipping/resources/taskGroups/client/Client.mjs +4 -1
  39. package/dist/esm/api/types/CargoAiTrackAndTraceUpdate1.d.mts +0 -4
  40. package/dist/esm/api/types/CargoAiTrackAndTraceUpdateSourceEnum.d.mts +1 -5
  41. package/dist/esm/api/types/CargoAiTrackAndTraceUpdateSourceEnum.mjs +1 -4
  42. package/dist/esm/api/types/FlightLeg1.d.mts +15 -4
  43. package/dist/esm/api/types/FlightLegClientCreate1.d.mts +3 -4
  44. package/dist/esm/api/types/FlightLegStatusEnum1.d.mts +14 -0
  45. package/dist/esm/api/types/FlightLegStatusEnum1.mjs +13 -0
  46. package/dist/esm/api/types/FlightLegStatusSourceEnum1.d.mts +8 -0
  47. package/dist/esm/api/types/FlightLegStatusSourceEnum1.mjs +7 -0
  48. package/dist/esm/api/types/FlightLegWebhookInfo.d.mts +0 -2
  49. package/dist/esm/api/types/FlightTrackPosition.d.mts +14 -0
  50. package/dist/esm/api/types/FlightTrackPosition.mjs +4 -0
  51. package/dist/esm/api/types/FlightTrackRes.d.mts +21 -0
  52. package/dist/esm/api/types/FlightTrackRes.mjs +4 -0
  53. package/dist/esm/api/types/FlightTrackWaypoint.d.mts +10 -0
  54. package/dist/esm/api/types/FlightTrackWaypoint.mjs +4 -0
  55. package/dist/esm/api/types/index.d.mts +5 -0
  56. package/dist/esm/api/types/index.mjs +5 -0
  57. package/dist/esm/version.d.mts +1 -1
  58. package/dist/esm/version.mjs +1 -1
  59. package/package.json +1 -1
  60. package/reference.md +132 -63
@@ -269,65 +269,6 @@ export class CargoaiTrackAndTrace {
269
269
  }
270
270
  });
271
271
  }
272
- /**
273
- * Polls CargoAi for the current tracking snapshot of an AWB and stores it as a new update (source=poll). No subscription required — any order participant can poll on demand. | authz: order participant | () -> (CargoAiTrackAndTraceUpdate1)
274
- *
275
- * @param {string} awb
276
- * @param {CargoaiTrackAndTrace.RequestOptions} requestOptions - Request-specific configuration.
277
- *
278
- * @throws {@link Chrt.UnprocessableEntityError}
279
- *
280
- * @example
281
- * await client.integrations.cargoaiTrackAndTrace.refreshV1("awb")
282
- */
283
- refreshV1(awb, requestOptions) {
284
- return core.HttpResponsePromise.fromPromise(this.__refreshV1(awb, requestOptions));
285
- }
286
- __refreshV1(awb, requestOptions) {
287
- return __awaiter(this, void 0, void 0, function* () {
288
- var _a, _b, _c, _d;
289
- 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);
290
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
291
- 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, `integrations/cargoai_track_and_trace/refresh/v1/${encodeURIComponent(awb)}`),
292
- method: "POST",
293
- headers: _headers,
294
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
295
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
296
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
297
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
298
- });
299
- if (_response.ok) {
300
- return { data: _response.body, rawResponse: _response.rawResponse };
301
- }
302
- if (_response.error.reason === "status-code") {
303
- switch (_response.error.statusCode) {
304
- case 422:
305
- throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
306
- default:
307
- throw new errors.ChrtError({
308
- statusCode: _response.error.statusCode,
309
- body: _response.error.body,
310
- rawResponse: _response.rawResponse,
311
- });
312
- }
313
- }
314
- switch (_response.error.reason) {
315
- case "non-json":
316
- throw new errors.ChrtError({
317
- statusCode: _response.error.statusCode,
318
- body: _response.error.rawBody,
319
- rawResponse: _response.rawResponse,
320
- });
321
- case "timeout":
322
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /integrations/cargoai_track_and_trace/refresh/v1/{awb}.");
323
- case "unknown":
324
- throw new errors.ChrtError({
325
- message: _response.error.errorMessage,
326
- rawResponse: _response.rawResponse,
327
- });
328
- }
329
- });
330
- }
331
272
  _getAuthorizationHeader() {
332
273
  return __awaiter(this, void 0, void 0, function* () {
333
274
  const bearer = yield core.Supplier.get(this._options.token);
@@ -56,5 +56,31 @@ export declare class Flights {
56
56
  */
57
57
  getFlightLegsForTaskGroupV1(taskGroupId: string, requestOptions?: Flights.RequestOptions): core.HttpResponsePromise<Chrt.FlightInfoForTaskRes>;
58
58
  private __getFlightLegsForTaskGroupV1;
59
+ /**
60
+ * Returns the flight leg with its Cirium-sourced status, lazily resolving the Cirium flightId and refreshing the cached status on read. | authz_personas=[driver_for_executor, coordinator_org_operators, executor_org_operators, shipper_org_operators] | () -> (FlightLeg1)
61
+ *
62
+ * @param {string} flightLegId
63
+ * @param {Flights.RequestOptions} requestOptions - Request-specific configuration.
64
+ *
65
+ * @throws {@link Chrt.UnprocessableEntityError}
66
+ *
67
+ * @example
68
+ * await client.shipping.flights.getFlightStatusForFlightLegV1("flight_leg_id")
69
+ */
70
+ getFlightStatusForFlightLegV1(flightLegId: string, requestOptions?: Flights.RequestOptions): core.HttpResponsePromise<Chrt.FlightLeg1>;
71
+ private __getFlightStatusForFlightLegV1;
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. | authz_personas=[driver_for_executor, coordinator_org_operators, executor_org_operators, shipper_org_operators] | () -> (FlightTrackRes)
74
+ *
75
+ * @param {string} flightLegId
76
+ * @param {Flights.RequestOptions} requestOptions - Request-specific configuration.
77
+ *
78
+ * @throws {@link Chrt.UnprocessableEntityError}
79
+ *
80
+ * @example
81
+ * await client.shipping.flights.getFlightTrackForFlightLegV1("flight_leg_id")
82
+ */
83
+ getFlightTrackForFlightLegV1(flightLegId: string, requestOptions?: Flights.RequestOptions): core.HttpResponsePromise<Chrt.FlightTrackRes>;
84
+ private __getFlightTrackForFlightLegV1;
59
85
  protected _getAuthorizationHeader(): Promise<string | undefined>;
60
86
  }
@@ -137,6 +137,124 @@ export class Flights {
137
137
  }
138
138
  });
139
139
  }
140
+ /**
141
+ * Returns the flight leg with its Cirium-sourced status, lazily resolving the Cirium flightId and refreshing the cached status on read. | authz_personas=[driver_for_executor, coordinator_org_operators, executor_org_operators, shipper_org_operators] | () -> (FlightLeg1)
142
+ *
143
+ * @param {string} flightLegId
144
+ * @param {Flights.RequestOptions} requestOptions - Request-specific configuration.
145
+ *
146
+ * @throws {@link Chrt.UnprocessableEntityError}
147
+ *
148
+ * @example
149
+ * await client.shipping.flights.getFlightStatusForFlightLegV1("flight_leg_id")
150
+ */
151
+ getFlightStatusForFlightLegV1(flightLegId, requestOptions) {
152
+ return core.HttpResponsePromise.fromPromise(this.__getFlightStatusForFlightLegV1(flightLegId, requestOptions));
153
+ }
154
+ __getFlightStatusForFlightLegV1(flightLegId, requestOptions) {
155
+ return __awaiter(this, void 0, void 0, function* () {
156
+ var _a, _b, _c, _d;
157
+ 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);
158
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
159
+ 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/status/for_flight_leg/v1/${encodeURIComponent(flightLegId)}`),
160
+ method: "GET",
161
+ headers: _headers,
162
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
163
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
164
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
165
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
166
+ });
167
+ if (_response.ok) {
168
+ return { data: _response.body, rawResponse: _response.rawResponse };
169
+ }
170
+ if (_response.error.reason === "status-code") {
171
+ switch (_response.error.statusCode) {
172
+ case 422:
173
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
174
+ default:
175
+ throw new errors.ChrtError({
176
+ statusCode: _response.error.statusCode,
177
+ body: _response.error.body,
178
+ rawResponse: _response.rawResponse,
179
+ });
180
+ }
181
+ }
182
+ switch (_response.error.reason) {
183
+ case "non-json":
184
+ throw new errors.ChrtError({
185
+ statusCode: _response.error.statusCode,
186
+ body: _response.error.rawBody,
187
+ rawResponse: _response.rawResponse,
188
+ });
189
+ case "timeout":
190
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /shipping/flights/status/for_flight_leg/v1/{flight_leg_id}.");
191
+ case "unknown":
192
+ throw new errors.ChrtError({
193
+ message: _response.error.errorMessage,
194
+ rawResponse: _response.rawResponse,
195
+ });
196
+ }
197
+ });
198
+ }
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. | authz_personas=[driver_for_executor, coordinator_org_operators, executor_org_operators, shipper_org_operators] | () -> (FlightTrackRes)
201
+ *
202
+ * @param {string} flightLegId
203
+ * @param {Flights.RequestOptions} requestOptions - Request-specific configuration.
204
+ *
205
+ * @throws {@link Chrt.UnprocessableEntityError}
206
+ *
207
+ * @example
208
+ * await client.shipping.flights.getFlightTrackForFlightLegV1("flight_leg_id")
209
+ */
210
+ getFlightTrackForFlightLegV1(flightLegId, requestOptions) {
211
+ return core.HttpResponsePromise.fromPromise(this.__getFlightTrackForFlightLegV1(flightLegId, requestOptions));
212
+ }
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)}`),
219
+ method: "GET",
220
+ headers: _headers,
221
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
222
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
223
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
224
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
225
+ });
226
+ if (_response.ok) {
227
+ return { data: _response.body, rawResponse: _response.rawResponse };
228
+ }
229
+ if (_response.error.reason === "status-code") {
230
+ switch (_response.error.statusCode) {
231
+ case 422:
232
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
233
+ default:
234
+ throw new errors.ChrtError({
235
+ statusCode: _response.error.statusCode,
236
+ body: _response.error.body,
237
+ rawResponse: _response.rawResponse,
238
+ });
239
+ }
240
+ }
241
+ switch (_response.error.reason) {
242
+ case "non-json":
243
+ throw new errors.ChrtError({
244
+ statusCode: _response.error.statusCode,
245
+ body: _response.error.rawBody,
246
+ rawResponse: _response.rawResponse,
247
+ });
248
+ case "timeout":
249
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /shipping/flights/track/for_flight_leg/v1/{flight_leg_id}.");
250
+ case "unknown":
251
+ throw new errors.ChrtError({
252
+ message: _response.error.errorMessage,
253
+ rawResponse: _response.rawResponse,
254
+ });
255
+ }
256
+ });
257
+ }
140
258
  _getAuthorizationHeader() {
141
259
  return __awaiter(this, void 0, void 0, function* () {
142
260
  const bearer = yield core.Supplier.get(this._options.token);
@@ -60,7 +60,10 @@ export declare class TaskGroup {
60
60
  * flight_legs: [{
61
61
  * schema_version: 1,
62
62
  * flight_number: "flight_number",
63
- * provenance: "manual"
63
+ * provenance: "manual",
64
+ * origin_iata: "origin_iata",
65
+ * destination_iata: "destination_iata",
66
+ * scheduled_departure_utc: "2024-01-15T09:30:00Z"
64
67
  * }]
65
68
  * })
66
69
  */
@@ -98,7 +98,10 @@ export class TaskGroup {
98
98
  * flight_legs: [{
99
99
  * schema_version: 1,
100
100
  * flight_number: "flight_number",
101
- * provenance: "manual"
101
+ * provenance: "manual",
102
+ * origin_iata: "origin_iata",
103
+ * destination_iata: "destination_iata",
104
+ * scheduled_departure_utc: "2024-01-15T09:30:00Z"
102
105
  * }]
103
106
  * })
104
107
  */
@@ -154,7 +154,10 @@ export declare class TaskGroups {
154
154
  * flight_legs: [{
155
155
  * schema_version: 1,
156
156
  * flight_number: "flight_number",
157
- * provenance: "manual"
157
+ * provenance: "manual",
158
+ * origin_iata: "origin_iata",
159
+ * destination_iata: "destination_iata",
160
+ * scheduled_departure_utc: "2024-01-15T09:30:00Z"
158
161
  * }]
159
162
  * })
160
163
  */
@@ -486,7 +486,10 @@ export class TaskGroups {
486
486
  * flight_legs: [{
487
487
  * schema_version: 1,
488
488
  * flight_number: "flight_number",
489
- * provenance: "manual"
489
+ * provenance: "manual",
490
+ * origin_iata: "origin_iata",
491
+ * destination_iata: "destination_iata",
492
+ * scheduled_departure_utc: "2024-01-15T09:30:00Z"
490
493
  * }]
491
494
  * })
492
495
  */
@@ -20,8 +20,4 @@ export interface CargoAiTrackAndTraceUpdate1 {
20
20
  _id: string;
21
21
  receivedAt: string;
22
22
  source: Chrt.CargoAiTrackAndTraceUpdateSourceEnum;
23
- /** Must be a string starting with `user_` */
24
- polledByUserId?: string | null;
25
- /** Must be a string starting with `org_` */
26
- polledByOrgId?: string | null;
27
23
  }
@@ -1,8 +1,4 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type CargoAiTrackAndTraceUpdateSourceEnum = "webhook" | "poll";
5
- export declare const CargoAiTrackAndTraceUpdateSourceEnum: {
6
- readonly Webhook: "webhook";
7
- readonly Poll: "poll";
8
- };
4
+ export type CargoAiTrackAndTraceUpdateSourceEnum = "webhook";
@@ -1,7 +1,4 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export const CargoAiTrackAndTraceUpdateSourceEnum = {
5
- Webhook: "webhook",
6
- Poll: "poll",
7
- };
4
+ export {};
@@ -9,11 +9,22 @@ export interface FlightLeg1 {
9
9
  task_group_id: string;
10
10
  flight_number: string;
11
11
  provenance: Chrt.FlightLegProvenanceEnum1;
12
+ origin_iata: string;
13
+ destination_iata: string;
14
+ scheduled_departure_utc: string;
12
15
  carrier_iata?: string | null;
13
16
  carrier_icao?: string | null;
14
- origin_iata?: string | null;
15
- destination_iata?: string | null;
16
- scheduled_departure_utc?: string | null;
17
17
  scheduled_arrival_utc?: string | null;
18
- fa_flight_ids?: string[];
18
+ cirium_flight_id?: number | null;
19
+ flight_status?: Chrt.FlightLegStatusEnum1 | null;
20
+ estimated_departure_utc?: string | null;
21
+ actual_departure_utc?: string | null;
22
+ estimated_arrival_utc?: string | null;
23
+ actual_arrival_utc?: string | null;
24
+ departure_gate?: string | null;
25
+ arrival_gate?: string | null;
26
+ departure_terminal?: string | null;
27
+ arrival_terminal?: string | null;
28
+ flight_status_source?: Chrt.FlightLegStatusSourceEnum1 | null;
29
+ flight_status_fetched_at_utc?: string | null;
19
30
  }
@@ -6,11 +6,10 @@ export interface FlightLegClientCreate1 {
6
6
  schema_version: number;
7
7
  flight_number: string;
8
8
  provenance: Chrt.FlightLegProvenanceEnum1;
9
+ origin_iata: string;
10
+ destination_iata: string;
11
+ scheduled_departure_utc: string;
9
12
  carrier_iata?: string | null;
10
13
  carrier_icao?: string | null;
11
- origin_iata?: string | null;
12
- destination_iata?: string | null;
13
- scheduled_departure_utc?: string | null;
14
14
  scheduled_arrival_utc?: string | null;
15
- fa_flight_ids?: string[];
16
15
  }
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type FlightLegStatusEnum1 = "scheduled" | "departed_gate" | "in_flight" | "landed" | "arrived_gate" | "cancelled" | "diverted" | "unknown";
5
+ export declare const FlightLegStatusEnum1: {
6
+ readonly Scheduled: "scheduled";
7
+ readonly DepartedGate: "departed_gate";
8
+ readonly InFlight: "in_flight";
9
+ readonly Landed: "landed";
10
+ readonly ArrivedGate: "arrived_gate";
11
+ readonly Cancelled: "cancelled";
12
+ readonly Diverted: "diverted";
13
+ readonly Unknown: "unknown";
14
+ };
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export const FlightLegStatusEnum1 = {
5
+ Scheduled: "scheduled",
6
+ DepartedGate: "departed_gate",
7
+ InFlight: "in_flight",
8
+ Landed: "landed",
9
+ ArrivedGate: "arrived_gate",
10
+ Cancelled: "cancelled",
11
+ Diverted: "diverted",
12
+ Unknown: "unknown",
13
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type FlightLegStatusSourceEnum1 = "live" | "historical";
5
+ export declare const FlightLegStatusSourceEnum1: {
6
+ readonly Live: "live";
7
+ readonly Historical: "historical";
8
+ };
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export const FlightLegStatusSourceEnum1 = {
5
+ Live: "live",
6
+ Historical: "historical",
7
+ };
@@ -17,6 +17,4 @@ export interface FlightLegWebhookInfo {
17
17
  scheduled_departure_utc?: string | null;
18
18
  /** Scheduled arrival (UTC) */
19
19
  scheduled_arrival_utc?: string | null;
20
- /** FlightAware flight UUIDs associated with this leg */
21
- fa_flight_ids?: string[];
22
20
  }
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * A single reported (or derived) aircraft position along the flown trail.
6
+ */
7
+ export interface FlightTrackPosition {
8
+ lat?: number | null;
9
+ lon?: number | null;
10
+ altitude_ft?: number | null;
11
+ speed_mph?: number | null;
12
+ source?: string | null;
13
+ date_utc?: string | null;
14
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,21 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.mjs";
5
+ /**
6
+ * Positional track for a flight leg: live trail + (optional) planned path.
7
+ *
8
+ * `positions` is the flown breadcrumb trail (present once airborne);
9
+ * `waypoints` / `legacy_route` are the planned path (present once Cirium has
10
+ * the filed flight plan, ~24h before departure). Everything is empty when the
11
+ * leg has no resolvable Cirium `flightId` or Cirium has no track yet — the
12
+ * endpoint never errors on a missing track (fail-soft, like the status route).
13
+ */
14
+ export interface FlightTrackRes {
15
+ cirium_flight_id?: number | null;
16
+ positions?: Chrt.FlightTrackPosition[];
17
+ waypoints?: Chrt.FlightTrackWaypoint[];
18
+ legacy_route?: string | null;
19
+ bearing?: number | null;
20
+ heading?: number | null;
21
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * A lat/lon point on the published flight plan (the planned path).
6
+ */
7
+ export interface FlightTrackWaypoint {
8
+ lat?: number | null;
9
+ lon?: number | null;
10
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -151,8 +151,13 @@ export * from "./FlightInfoForTaskRes.mjs";
151
151
  export * from "./FlightLeg1.mjs";
152
152
  export * from "./FlightLegClientCreate1.mjs";
153
153
  export * from "./FlightLegProvenanceEnum1.mjs";
154
+ export * from "./FlightLegStatusEnum1.mjs";
155
+ export * from "./FlightLegStatusSourceEnum1.mjs";
154
156
  export * from "./FlightLegWebhookInfo.mjs";
155
157
  export * from "./FlightStatusEnum.mjs";
158
+ export * from "./FlightTrackPosition.mjs";
159
+ export * from "./FlightTrackRes.mjs";
160
+ export * from "./FlightTrackWaypoint.mjs";
156
161
  export * from "./GeometryCollectionGeometriesItem.mjs";
157
162
  export * from "./GeometryCollection.mjs";
158
163
  export * from "./HttpValidationError.mjs";
@@ -151,8 +151,13 @@ export * from "./FlightInfoForTaskRes.mjs";
151
151
  export * from "./FlightLeg1.mjs";
152
152
  export * from "./FlightLegClientCreate1.mjs";
153
153
  export * from "./FlightLegProvenanceEnum1.mjs";
154
+ export * from "./FlightLegStatusEnum1.mjs";
155
+ export * from "./FlightLegStatusSourceEnum1.mjs";
154
156
  export * from "./FlightLegWebhookInfo.mjs";
155
157
  export * from "./FlightStatusEnum.mjs";
158
+ export * from "./FlightTrackPosition.mjs";
159
+ export * from "./FlightTrackRes.mjs";
160
+ export * from "./FlightTrackWaypoint.mjs";
156
161
  export * from "./GeometryCollectionGeometriesItem.mjs";
157
162
  export * from "./GeometryCollection.mjs";
158
163
  export * from "./HttpValidationError.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.751.0";
1
+ export declare const SDK_VERSION = "1.756.0";
@@ -1 +1 @@
1
- export const SDK_VERSION = "1.751.0";
1
+ export const SDK_VERSION = "1.756.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chrt-inc/typescript-sdk",
3
- "version": "1.751.0",
3
+ "version": "1.756.0",
4
4
  "private": false,
5
5
  "repository": "github:chrt-inc/typescript-sdk",
6
6
  "type": "commonjs",