@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.
- package/dist/cjs/Client.js +2 -2
- package/dist/cjs/api/resources/shipping/resources/flights/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/shipping/resources/flights/client/Client.js +1 -1
- package/dist/cjs/api/resources/tracking/resources/sessions/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/tracking/resources/sessions/client/Client.js +1 -1
- package/dist/cjs/api/types/FlightLeg1.d.ts +1 -0
- package/dist/cjs/api/types/FlightTrackPosition1.d.ts +8 -6
- package/dist/cjs/api/types/FlightTrackRes.d.ts +5 -15
- package/dist/cjs/api/types/index.d.ts +0 -1
- package/dist/cjs/api/types/index.js +0 -1
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.mjs +2 -2
- package/dist/esm/api/resources/shipping/resources/flights/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/shipping/resources/flights/client/Client.mjs +1 -1
- package/dist/esm/api/resources/tracking/resources/sessions/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/tracking/resources/sessions/client/Client.mjs +1 -1
- package/dist/esm/api/types/FlightLeg1.d.mts +1 -0
- package/dist/esm/api/types/FlightTrackPosition1.d.mts +8 -6
- package/dist/esm/api/types/FlightTrackRes.d.mts +5 -15
- package/dist/esm/api/types/index.d.mts +0 -1
- package/dist/esm/api/types/index.mjs +0 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +2 -2
- package/dist/cjs/api/types/FlightTrackWaypoint1.d.ts +0 -7
- package/dist/cjs/api/types/FlightTrackWaypoint1.js +0 -5
- package/dist/esm/api/types/FlightTrackWaypoint1.d.mts +0 -7
- package/dist/esm/api/types/FlightTrackWaypoint1.mjs +0 -4
package/dist/cjs/Client.js
CHANGED
|
@@ -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.
|
|
64
|
-
"User-Agent": "@chrt-inc/typescript-sdk/1.
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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);
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.
|
|
1
|
+
export declare const SDK_VERSION = "1.998.0";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/Client.mjs
CHANGED
|
@@ -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.
|
|
28
|
-
"User-Agent": "@chrt-inc/typescript-sdk/1.
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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";
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.
|
|
1
|
+
export declare const SDK_VERSION = "1.998.0";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "1.
|
|
1
|
+
export const SDK_VERSION = "1.998.0";
|
package/package.json
CHANGED
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
|
|
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
|
|
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>
|