@chrt-inc/typescript-sdk 1.997.0 → 1.998.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 (30) hide show
  1. package/dist/cjs/Client.js +2 -2
  2. package/dist/cjs/api/resources/shipping/resources/flights/client/Client.d.ts +1 -1
  3. package/dist/cjs/api/resources/shipping/resources/flights/client/Client.js +1 -1
  4. package/dist/cjs/api/resources/tracking/resources/sessions/client/Client.d.ts +1 -1
  5. package/dist/cjs/api/resources/tracking/resources/sessions/client/Client.js +1 -1
  6. package/dist/cjs/api/types/FlightLeg1.d.ts +1 -0
  7. package/dist/cjs/api/types/FlightTrackPosition1.d.ts +8 -6
  8. package/dist/cjs/api/types/FlightTrackRes.d.ts +5 -15
  9. package/dist/cjs/api/types/index.d.ts +0 -1
  10. package/dist/cjs/api/types/index.js +0 -1
  11. package/dist/cjs/version.d.ts +1 -1
  12. package/dist/cjs/version.js +1 -1
  13. package/dist/esm/Client.mjs +2 -2
  14. package/dist/esm/api/resources/shipping/resources/flights/client/Client.d.mts +1 -1
  15. package/dist/esm/api/resources/shipping/resources/flights/client/Client.mjs +1 -1
  16. package/dist/esm/api/resources/tracking/resources/sessions/client/Client.d.mts +1 -1
  17. package/dist/esm/api/resources/tracking/resources/sessions/client/Client.mjs +1 -1
  18. package/dist/esm/api/types/FlightLeg1.d.mts +1 -0
  19. package/dist/esm/api/types/FlightTrackPosition1.d.mts +8 -6
  20. package/dist/esm/api/types/FlightTrackRes.d.mts +5 -15
  21. package/dist/esm/api/types/index.d.mts +0 -1
  22. package/dist/esm/api/types/index.mjs +0 -1
  23. package/dist/esm/version.d.mts +1 -1
  24. package/dist/esm/version.mjs +1 -1
  25. package/package.json +1 -1
  26. package/reference.md +2 -2
  27. package/dist/cjs/api/types/FlightTrackWaypoint1.d.ts +0 -7
  28. package/dist/cjs/api/types/FlightTrackWaypoint1.js +0 -5
  29. package/dist/esm/api/types/FlightTrackWaypoint1.d.mts +0 -7
  30. package/dist/esm/api/types/FlightTrackWaypoint1.mjs +0 -4
@@ -60,8 +60,8 @@ class ChrtClient {
60
60
  this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
61
61
  "X-Fern-Language": "JavaScript",
62
62
  "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
63
- "X-Fern-SDK-Version": "1.997.0",
64
- "User-Agent": "@chrt-inc/typescript-sdk/1.997.0",
63
+ "X-Fern-SDK-Version": "1.998.0",
64
+ "User-Agent": "@chrt-inc/typescript-sdk/1.998.0",
65
65
  "X-Fern-Runtime": core.RUNTIME.type,
66
66
  "X-Fern-Runtime-Version": core.RUNTIME.version,
67
67
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -70,7 +70,7 @@ 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 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)
73
+ * Returns the FlightAware actual path, planned path, and latest position 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
76
  * @param {Chrt.shipping.FlightsGetFlightTrackForFlightLegV1Request} request
@@ -233,7 +233,7 @@ class Flights {
233
233
  });
234
234
  }
235
235
  /**
236
- * Returns the 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)
236
+ * Returns the FlightAware actual path, planned path, and latest position 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)
237
237
  *
238
238
  * @param {string} flightLegId
239
239
  * @param {Chrt.shipping.FlightsGetFlightTrackForFlightLegV1Request} request
@@ -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 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)
66
+ * Returns the FlightAware actual path, planned path, and latest position 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.
@@ -203,7 +203,7 @@ class Sessions {
203
203
  });
204
204
  }
205
205
  /**
206
- * Returns the 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)
206
+ * Returns the FlightAware actual path, planned path, and latest position 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.
@@ -16,6 +16,7 @@ export interface FlightLeg1 {
16
16
  destination_iata: string;
17
17
  estimated_arrival_utc?: string | null;
18
18
  estimated_departure_utc?: string | null;
19
+ fa_flight_id?: string | null;
19
20
  flight_number: string;
20
21
  flight_status?: Chrt.FlightLegStatusEnum1 | null;
21
22
  flight_status_fetched_at_utc?: string | null;
@@ -2,10 +2,12 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  export interface FlightTrackPosition1 {
5
- altitude_ft?: number | null;
6
- date_utc?: string | null;
7
- lat?: number | null;
8
- lon?: number | null;
9
- source?: string | null;
10
- speed_mph?: number | null;
5
+ altitude_feet?: number | null;
6
+ ground_speed_knots?: number | null;
7
+ heading_degrees?: number | null;
8
+ latitude?: number | null;
9
+ longitude?: number | null;
10
+ name?: string | null;
11
+ position_source?: string | null;
12
+ received_at_timestamp?: string | null;
11
13
  }
@@ -2,20 +2,10 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Chrt from "../index.js";
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
5
  export interface FlightTrackRes {
15
- bearing?: number | null;
16
- cirium_flight_id?: number | null;
17
- heading?: number | null;
18
- legacy_route?: string | null;
19
- positions?: Chrt.FlightTrackPosition1[];
20
- waypoints?: Chrt.FlightTrackWaypoint1[];
6
+ actual_flight_path?: Chrt.FlightTrackPosition1[];
7
+ fa_flight_id?: string | null;
8
+ last_refresh_attempt_at_timestamp?: string | null;
9
+ latest_position?: Chrt.FlightTrackPosition1 | null;
10
+ planned_flight_path?: Chrt.FlightTrackPosition1[];
21
11
  }
@@ -246,7 +246,6 @@ export * from "./FlightLegStatusSourceEnum1.js";
246
246
  export * from "./FlightLegWebhookInfo.js";
247
247
  export * from "./FlightTrackPosition1.js";
248
248
  export * from "./FlightTrackRes.js";
249
- export * from "./FlightTrackWaypoint1.js";
250
249
  export * from "./FraytWebhookResponse.js";
251
250
  export * from "./FromPayables1.js";
252
251
  export * from "./FuelSurchargeRate1.js";
@@ -262,7 +262,6 @@ __exportStar(require("./FlightLegStatusSourceEnum1.js"), exports);
262
262
  __exportStar(require("./FlightLegWebhookInfo.js"), exports);
263
263
  __exportStar(require("./FlightTrackPosition1.js"), exports);
264
264
  __exportStar(require("./FlightTrackRes.js"), exports);
265
- __exportStar(require("./FlightTrackWaypoint1.js"), exports);
266
265
  __exportStar(require("./FraytWebhookResponse.js"), exports);
267
266
  __exportStar(require("./FromPayables1.js"), exports);
268
267
  __exportStar(require("./FuelSurchargeRate1.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.997.0";
1
+ export declare const SDK_VERSION = "1.998.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.997.0";
4
+ exports.SDK_VERSION = "1.998.0";
@@ -24,8 +24,8 @@ export class ChrtClient {
24
24
  this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
25
25
  "X-Fern-Language": "JavaScript",
26
26
  "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
27
- "X-Fern-SDK-Version": "1.997.0",
28
- "User-Agent": "@chrt-inc/typescript-sdk/1.997.0",
27
+ "X-Fern-SDK-Version": "1.998.0",
28
+ "User-Agent": "@chrt-inc/typescript-sdk/1.998.0",
29
29
  "X-Fern-Runtime": core.RUNTIME.type,
30
30
  "X-Fern-Runtime-Version": core.RUNTIME.version,
31
31
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -70,7 +70,7 @@ 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 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)
73
+ * Returns the FlightAware actual path, planned path, and latest position 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
76
  * @param {Chrt.shipping.FlightsGetFlightTrackForFlightLegV1Request} request
@@ -197,7 +197,7 @@ export class Flights {
197
197
  });
198
198
  }
199
199
  /**
200
- * Returns the 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)
200
+ * Returns the FlightAware actual path, planned path, and latest position 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
203
  * @param {Chrt.shipping.FlightsGetFlightTrackForFlightLegV1Request} request
@@ -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 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)
66
+ * Returns the FlightAware actual path, planned path, and latest position 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.
@@ -167,7 +167,7 @@ export class Sessions {
167
167
  });
168
168
  }
169
169
  /**
170
- * Returns the 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)
170
+ * Returns the FlightAware actual path, planned path, and latest position 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.
@@ -16,6 +16,7 @@ export interface FlightLeg1 {
16
16
  destination_iata: string;
17
17
  estimated_arrival_utc?: string | null;
18
18
  estimated_departure_utc?: string | null;
19
+ fa_flight_id?: string | null;
19
20
  flight_number: string;
20
21
  flight_status?: Chrt.FlightLegStatusEnum1 | null;
21
22
  flight_status_fetched_at_utc?: string | null;
@@ -2,10 +2,12 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  export interface FlightTrackPosition1 {
5
- altitude_ft?: number | null;
6
- date_utc?: string | null;
7
- lat?: number | null;
8
- lon?: number | null;
9
- source?: string | null;
10
- speed_mph?: number | null;
5
+ altitude_feet?: number | null;
6
+ ground_speed_knots?: number | null;
7
+ heading_degrees?: number | null;
8
+ latitude?: number | null;
9
+ longitude?: number | null;
10
+ name?: string | null;
11
+ position_source?: string | null;
12
+ received_at_timestamp?: string | null;
11
13
  }
@@ -2,20 +2,10 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
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
5
  export interface FlightTrackRes {
15
- bearing?: number | null;
16
- cirium_flight_id?: number | null;
17
- heading?: number | null;
18
- legacy_route?: string | null;
19
- positions?: Chrt.FlightTrackPosition1[];
20
- waypoints?: Chrt.FlightTrackWaypoint1[];
6
+ actual_flight_path?: Chrt.FlightTrackPosition1[];
7
+ fa_flight_id?: string | null;
8
+ last_refresh_attempt_at_timestamp?: string | null;
9
+ latest_position?: Chrt.FlightTrackPosition1 | null;
10
+ planned_flight_path?: Chrt.FlightTrackPosition1[];
21
11
  }
@@ -246,7 +246,6 @@ export * from "./FlightLegStatusSourceEnum1.mjs";
246
246
  export * from "./FlightLegWebhookInfo.mjs";
247
247
  export * from "./FlightTrackPosition1.mjs";
248
248
  export * from "./FlightTrackRes.mjs";
249
- export * from "./FlightTrackWaypoint1.mjs";
250
249
  export * from "./FraytWebhookResponse.mjs";
251
250
  export * from "./FromPayables1.mjs";
252
251
  export * from "./FuelSurchargeRate1.mjs";
@@ -246,7 +246,6 @@ export * from "./FlightLegStatusSourceEnum1.mjs";
246
246
  export * from "./FlightLegWebhookInfo.mjs";
247
247
  export * from "./FlightTrackPosition1.mjs";
248
248
  export * from "./FlightTrackRes.mjs";
249
- export * from "./FlightTrackWaypoint1.mjs";
250
249
  export * from "./FraytWebhookResponse.mjs";
251
250
  export * from "./FromPayables1.mjs";
252
251
  export * from "./FuelSurchargeRate1.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.997.0";
1
+ export declare const SDK_VERSION = "1.998.0";
@@ -1 +1 @@
1
- export const SDK_VERSION = "1.997.0";
1
+ export const SDK_VERSION = "1.998.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chrt-inc/typescript-sdk",
3
- "version": "1.997.0",
3
+ "version": "1.998.0",
4
4
  "private": false,
5
5
  "repository": "github:chrt-inc/typescript-sdk",
6
6
  "type": "commonjs",
package/reference.md CHANGED
@@ -16374,7 +16374,7 @@ await client.shipping.flights.getFlightStatusForFlightLegV1("flight_leg_id");
16374
16374
  <dl>
16375
16375
  <dd>
16376
16376
 
16377
- Returns the 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)
16377
+ Returns the FlightAware actual path, planned path, and latest position 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)
16378
16378
 
16379
16379
  </dd>
16380
16380
  </dl>
@@ -30747,7 +30747,7 @@ await client.tracking.sessions.flightLegsV1({
30747
30747
  <dl>
30748
30748
  <dd>
30749
30749
 
30750
- Returns the 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)
30750
+ Returns the FlightAware actual path, planned path, and latest position 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)
30751
30751
 
30752
30752
  </dd>
30753
30753
  </dl>
@@ -1,7 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface FlightTrackWaypoint1 {
5
- lat?: number | null;
6
- lon?: number | null;
7
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface FlightTrackWaypoint1 {
5
- lat?: number | null;
6
- lon?: number | null;
7
- }
@@ -1,4 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export {};