@chrt-inc/typescript-sdk 1.749.0 → 1.754.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 +39 -0
- package/dist/cjs/api/resources/shipping/resources/flights/client/Client.js +177 -0
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/Client.d.ts +11 -2
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/Client.js +11 -2
- package/dist/cjs/api/resources/shipping/resources/taskGroups/client/Client.d.ts +11 -2
- package/dist/cjs/api/resources/shipping/resources/taskGroups/client/Client.js +11 -2
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForDriverForExecutorV1Request.d.ts +1 -1
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForExecutorOperatorsV1Request.d.ts +1 -1
- package/dist/cjs/api/resources/utils/resources/dev/client/Client.d.ts +0 -13
- package/dist/cjs/api/resources/utils/resources/dev/client/Client.js +0 -62
- package/dist/cjs/api/resources/utils/resources/dev/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/types/FlightInfoForTaskRes.d.ts +4 -3
- package/dist/cjs/api/types/FlightLeg1.d.ts +30 -0
- package/dist/cjs/api/types/FlightLegClientCreate1.d.ts +15 -0
- package/dist/cjs/api/types/FlightLegProvenanceEnum1.d.ts +9 -0
- package/dist/cjs/api/types/FlightLegProvenanceEnum1.js +11 -0
- package/dist/cjs/api/types/FlightLegStatusEnum1.d.ts +14 -0
- package/dist/cjs/api/types/FlightLegStatusEnum1.js +16 -0
- package/dist/cjs/api/types/FlightLegStatusSourceEnum1.d.ts +8 -0
- package/dist/cjs/api/types/FlightLegStatusSourceEnum1.js +10 -0
- package/dist/cjs/api/types/FlightLegWebhookInfo.d.ts +20 -0
- package/dist/cjs/api/types/FlightTrackPosition.d.ts +14 -0
- package/dist/cjs/api/types/FlightTrackPosition.js +5 -0
- package/dist/cjs/api/types/FlightTrackRes.d.ts +21 -0
- package/dist/cjs/api/types/FlightTrackRes.js +5 -0
- package/dist/cjs/api/types/FlightTrackWaypoint.d.ts +10 -0
- package/dist/cjs/api/types/FlightTrackWaypoint.js +5 -0
- package/dist/cjs/api/types/OrderSchedule1.d.ts +1 -0
- package/dist/cjs/api/types/OrderScheduleAboutRes.d.ts +1 -0
- package/dist/cjs/api/types/SetFlightInfoReq.d.ts +3 -4
- package/dist/cjs/api/types/ShippingTaskGroupFlightInfoUpdatedWebhookPayload.d.ts +3 -4
- package/dist/cjs/api/types/TaskGroup1.d.ts +1 -2
- package/dist/cjs/api/types/index.d.ts +9 -2
- package/dist/cjs/api/types/index.js +9 -2
- 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 +39 -0
- package/dist/esm/api/resources/shipping/resources/flights/client/Client.mjs +177 -0
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/Client.d.mts +11 -2
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/Client.mjs +11 -2
- package/dist/esm/api/resources/shipping/resources/taskGroups/client/Client.d.mts +11 -2
- package/dist/esm/api/resources/shipping/resources/taskGroups/client/Client.mjs +11 -2
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForDriverForExecutorV1Request.d.mts +1 -1
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForExecutorOperatorsV1Request.d.mts +1 -1
- package/dist/esm/api/resources/utils/resources/dev/client/Client.d.mts +0 -13
- package/dist/esm/api/resources/utils/resources/dev/client/Client.mjs +0 -62
- package/dist/esm/api/resources/utils/resources/dev/client/requests/index.d.mts +0 -1
- package/dist/esm/api/types/FlightInfoForTaskRes.d.mts +4 -3
- package/dist/esm/api/types/FlightLeg1.d.mts +30 -0
- package/dist/esm/api/types/FlightLegClientCreate1.d.mts +15 -0
- package/dist/esm/api/types/FlightLegProvenanceEnum1.d.mts +9 -0
- package/dist/esm/api/types/FlightLegProvenanceEnum1.mjs +8 -0
- package/dist/esm/api/types/FlightLegStatusEnum1.d.mts +14 -0
- package/dist/esm/api/types/FlightLegStatusEnum1.mjs +13 -0
- package/dist/esm/api/types/FlightLegStatusSourceEnum1.d.mts +8 -0
- package/dist/esm/api/types/FlightLegStatusSourceEnum1.mjs +7 -0
- package/dist/esm/api/types/FlightLegWebhookInfo.d.mts +20 -0
- package/dist/esm/api/types/FlightTrackPosition.d.mts +14 -0
- package/dist/esm/api/types/FlightTrackPosition.mjs +4 -0
- package/dist/esm/api/types/FlightTrackRes.d.mts +21 -0
- package/dist/esm/api/types/FlightTrackRes.mjs +4 -0
- package/dist/esm/api/types/FlightTrackWaypoint.d.mts +10 -0
- package/dist/esm/api/types/FlightTrackWaypoint.mjs +4 -0
- package/dist/esm/api/types/OrderSchedule1.d.mts +1 -0
- package/dist/esm/api/types/OrderScheduleAboutRes.d.mts +1 -0
- package/dist/esm/api/types/SetFlightInfoReq.d.mts +3 -4
- package/dist/esm/api/types/ShippingTaskGroupFlightInfoUpdatedWebhookPayload.d.mts +3 -4
- package/dist/esm/api/types/TaskGroup1.d.mts +1 -2
- package/dist/esm/api/types/index.d.mts +9 -2
- package/dist/esm/api/types/index.mjs +9 -2
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +215 -67
- package/dist/cjs/api/resources/utils/resources/dev/client/requests/ScheduledPingReq.d.ts +0 -13
- package/dist/cjs/api/types/ScheduleSpec.d.ts +0 -14
- package/dist/cjs/api/types/ScheduledPingRes.d.ts +0 -16
- package/dist/esm/api/resources/utils/resources/dev/client/requests/ScheduledPingReq.d.mts +0 -13
- package/dist/esm/api/types/ScheduleSpec.d.mts +0 -14
- package/dist/esm/api/types/ScheduledPingRes.d.mts +0 -16
- /package/dist/cjs/api/{resources/utils/resources/dev/client/requests/ScheduledPingReq.js → types/FlightLeg1.js} +0 -0
- /package/dist/cjs/api/types/{ScheduleSpec.js → FlightLegClientCreate1.js} +0 -0
- /package/dist/cjs/api/types/{ScheduledPingRes.js → FlightLegWebhookInfo.js} +0 -0
- /package/dist/esm/api/{resources/utils/resources/dev/client/requests/ScheduledPingReq.mjs → types/FlightLeg1.mjs} +0 -0
- /package/dist/esm/api/types/{ScheduleSpec.mjs → FlightLegClientCreate1.mjs} +0 -0
- /package/dist/esm/api/types/{ScheduledPingRes.mjs → FlightLegWebhookInfo.mjs} +0 -0
package/dist/cjs/Client.js
CHANGED
|
@@ -56,8 +56,8 @@ class ChrtClient {
|
|
|
56
56
|
this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
|
|
57
57
|
"X-Fern-Language": "JavaScript",
|
|
58
58
|
"X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
|
|
59
|
-
"X-Fern-SDK-Version": "1.
|
|
60
|
-
"User-Agent": "@chrt-inc/typescript-sdk/1.
|
|
59
|
+
"X-Fern-SDK-Version": "1.754.0",
|
|
60
|
+
"User-Agent": "@chrt-inc/typescript-sdk/1.754.0",
|
|
61
61
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
62
62
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
63
63
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -43,5 +43,44 @@ export declare class Flights {
|
|
|
43
43
|
*/
|
|
44
44
|
getFlightInfoForTaskV1(taskId: string, requestOptions?: Flights.RequestOptions): core.HttpResponsePromise<Chrt.FlightInfoForTaskRes>;
|
|
45
45
|
private __getFlightInfoForTaskV1;
|
|
46
|
+
/**
|
|
47
|
+
* Returns the ordered list of flight legs for a task group. | authz_personas=[driver_for_executor, coordinator_org_operators, executor_org_operators, shipper_org_operators] | () -> (FlightInfoForTaskRes)
|
|
48
|
+
*
|
|
49
|
+
* @param {string} taskGroupId
|
|
50
|
+
* @param {Flights.RequestOptions} requestOptions - Request-specific configuration.
|
|
51
|
+
*
|
|
52
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* await client.shipping.flights.getFlightLegsForTaskGroupV1("task_group_id")
|
|
56
|
+
*/
|
|
57
|
+
getFlightLegsForTaskGroupV1(taskGroupId: string, requestOptions?: Flights.RequestOptions): core.HttpResponsePromise<Chrt.FlightInfoForTaskRes>;
|
|
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;
|
|
46
85
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
47
86
|
}
|
|
@@ -114,6 +114,183 @@ class Flights {
|
|
|
114
114
|
}
|
|
115
115
|
});
|
|
116
116
|
}
|
|
117
|
+
/**
|
|
118
|
+
* Returns the ordered list of flight legs for a task group. | authz_personas=[driver_for_executor, coordinator_org_operators, executor_org_operators, shipper_org_operators] | () -> (FlightInfoForTaskRes)
|
|
119
|
+
*
|
|
120
|
+
* @param {string} taskGroupId
|
|
121
|
+
* @param {Flights.RequestOptions} requestOptions - Request-specific configuration.
|
|
122
|
+
*
|
|
123
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
124
|
+
*
|
|
125
|
+
* @example
|
|
126
|
+
* await client.shipping.flights.getFlightLegsForTaskGroupV1("task_group_id")
|
|
127
|
+
*/
|
|
128
|
+
getFlightLegsForTaskGroupV1(taskGroupId, requestOptions) {
|
|
129
|
+
return core.HttpResponsePromise.fromPromise(this.__getFlightLegsForTaskGroupV1(taskGroupId, requestOptions));
|
|
130
|
+
}
|
|
131
|
+
__getFlightLegsForTaskGroupV1(taskGroupId, requestOptions) {
|
|
132
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
133
|
+
var _a, _b, _c, _d;
|
|
134
|
+
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
135
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
136
|
+
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/for_task_group/v1/${encodeURIComponent(taskGroupId)}`),
|
|
137
|
+
method: "GET",
|
|
138
|
+
headers: _headers,
|
|
139
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
140
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
141
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
142
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
143
|
+
});
|
|
144
|
+
if (_response.ok) {
|
|
145
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
146
|
+
}
|
|
147
|
+
if (_response.error.reason === "status-code") {
|
|
148
|
+
switch (_response.error.statusCode) {
|
|
149
|
+
case 422:
|
|
150
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
151
|
+
default:
|
|
152
|
+
throw new errors.ChrtError({
|
|
153
|
+
statusCode: _response.error.statusCode,
|
|
154
|
+
body: _response.error.body,
|
|
155
|
+
rawResponse: _response.rawResponse,
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
switch (_response.error.reason) {
|
|
160
|
+
case "non-json":
|
|
161
|
+
throw new errors.ChrtError({
|
|
162
|
+
statusCode: _response.error.statusCode,
|
|
163
|
+
body: _response.error.rawBody,
|
|
164
|
+
rawResponse: _response.rawResponse,
|
|
165
|
+
});
|
|
166
|
+
case "timeout":
|
|
167
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /shipping/flights/for_task_group/v1/{task_group_id}.");
|
|
168
|
+
case "unknown":
|
|
169
|
+
throw new errors.ChrtError({
|
|
170
|
+
message: _response.error.errorMessage,
|
|
171
|
+
rawResponse: _response.rawResponse,
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* 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)
|
|
178
|
+
*
|
|
179
|
+
* @param {string} flightLegId
|
|
180
|
+
* @param {Flights.RequestOptions} requestOptions - Request-specific configuration.
|
|
181
|
+
*
|
|
182
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
183
|
+
*
|
|
184
|
+
* @example
|
|
185
|
+
* await client.shipping.flights.getFlightStatusForFlightLegV1("flight_leg_id")
|
|
186
|
+
*/
|
|
187
|
+
getFlightStatusForFlightLegV1(flightLegId, requestOptions) {
|
|
188
|
+
return core.HttpResponsePromise.fromPromise(this.__getFlightStatusForFlightLegV1(flightLegId, requestOptions));
|
|
189
|
+
}
|
|
190
|
+
__getFlightStatusForFlightLegV1(flightLegId, requestOptions) {
|
|
191
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
192
|
+
var _a, _b, _c, _d;
|
|
193
|
+
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
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, `shipping/flights/status/for_flight_leg/v1/${encodeURIComponent(flightLegId)}`),
|
|
196
|
+
method: "GET",
|
|
197
|
+
headers: _headers,
|
|
198
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
199
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
200
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
201
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
202
|
+
});
|
|
203
|
+
if (_response.ok) {
|
|
204
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
205
|
+
}
|
|
206
|
+
if (_response.error.reason === "status-code") {
|
|
207
|
+
switch (_response.error.statusCode) {
|
|
208
|
+
case 422:
|
|
209
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
210
|
+
default:
|
|
211
|
+
throw new errors.ChrtError({
|
|
212
|
+
statusCode: _response.error.statusCode,
|
|
213
|
+
body: _response.error.body,
|
|
214
|
+
rawResponse: _response.rawResponse,
|
|
215
|
+
});
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
switch (_response.error.reason) {
|
|
219
|
+
case "non-json":
|
|
220
|
+
throw new errors.ChrtError({
|
|
221
|
+
statusCode: _response.error.statusCode,
|
|
222
|
+
body: _response.error.rawBody,
|
|
223
|
+
rawResponse: _response.rawResponse,
|
|
224
|
+
});
|
|
225
|
+
case "timeout":
|
|
226
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /shipping/flights/status/for_flight_leg/v1/{flight_leg_id}.");
|
|
227
|
+
case "unknown":
|
|
228
|
+
throw new errors.ChrtError({
|
|
229
|
+
message: _response.error.errorMessage,
|
|
230
|
+
rawResponse: _response.rawResponse,
|
|
231
|
+
});
|
|
232
|
+
}
|
|
233
|
+
});
|
|
234
|
+
}
|
|
235
|
+
/**
|
|
236
|
+
* 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)
|
|
237
|
+
*
|
|
238
|
+
* @param {string} flightLegId
|
|
239
|
+
* @param {Flights.RequestOptions} requestOptions - Request-specific configuration.
|
|
240
|
+
*
|
|
241
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
242
|
+
*
|
|
243
|
+
* @example
|
|
244
|
+
* await client.shipping.flights.getFlightTrackForFlightLegV1("flight_leg_id")
|
|
245
|
+
*/
|
|
246
|
+
getFlightTrackForFlightLegV1(flightLegId, requestOptions) {
|
|
247
|
+
return core.HttpResponsePromise.fromPromise(this.__getFlightTrackForFlightLegV1(flightLegId, requestOptions));
|
|
248
|
+
}
|
|
249
|
+
__getFlightTrackForFlightLegV1(flightLegId, requestOptions) {
|
|
250
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
251
|
+
var _a, _b, _c, _d;
|
|
252
|
+
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
253
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
254
|
+
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)}`),
|
|
255
|
+
method: "GET",
|
|
256
|
+
headers: _headers,
|
|
257
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
258
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
259
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
260
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
261
|
+
});
|
|
262
|
+
if (_response.ok) {
|
|
263
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
264
|
+
}
|
|
265
|
+
if (_response.error.reason === "status-code") {
|
|
266
|
+
switch (_response.error.statusCode) {
|
|
267
|
+
case 422:
|
|
268
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
269
|
+
default:
|
|
270
|
+
throw new errors.ChrtError({
|
|
271
|
+
statusCode: _response.error.statusCode,
|
|
272
|
+
body: _response.error.body,
|
|
273
|
+
rawResponse: _response.rawResponse,
|
|
274
|
+
});
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
switch (_response.error.reason) {
|
|
278
|
+
case "non-json":
|
|
279
|
+
throw new errors.ChrtError({
|
|
280
|
+
statusCode: _response.error.statusCode,
|
|
281
|
+
body: _response.error.rawBody,
|
|
282
|
+
rawResponse: _response.rawResponse,
|
|
283
|
+
});
|
|
284
|
+
case "timeout":
|
|
285
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /shipping/flights/track/for_flight_leg/v1/{flight_leg_id}.");
|
|
286
|
+
case "unknown":
|
|
287
|
+
throw new errors.ChrtError({
|
|
288
|
+
message: _response.error.errorMessage,
|
|
289
|
+
rawResponse: _response.rawResponse,
|
|
290
|
+
});
|
|
291
|
+
}
|
|
292
|
+
});
|
|
293
|
+
}
|
|
117
294
|
_getAuthorizationHeader() {
|
|
118
295
|
return __awaiter(this, void 0, void 0, function* () {
|
|
119
296
|
const bearer = yield core.Supplier.get(this._options.token);
|
package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/Client.d.ts
CHANGED
|
@@ -47,7 +47,7 @@ export declare class TaskGroup {
|
|
|
47
47
|
addV1(request: Chrt.shipping.orderDrafts.OrderDraftAddTaskGroupReq, requestOptions?: TaskGroup.RequestOptions): core.HttpResponsePromise<string>;
|
|
48
48
|
private __addV1;
|
|
49
49
|
/**
|
|
50
|
-
*
|
|
50
|
+
* Replaces the ordered list of flights on a draft task group. | (SetFlightInfoReq) -> (bool)
|
|
51
51
|
*
|
|
52
52
|
* @param {string} taskGroupId
|
|
53
53
|
* @param {Chrt.SetFlightInfoReq} request
|
|
@@ -56,7 +56,16 @@ export declare class TaskGroup {
|
|
|
56
56
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
57
57
|
*
|
|
58
58
|
* @example
|
|
59
|
-
* await client.shipping.orderDrafts.taskGroup.setFlightInfoV1("task_group_id", {
|
|
59
|
+
* await client.shipping.orderDrafts.taskGroup.setFlightInfoV1("task_group_id", {
|
|
60
|
+
* flight_legs: [{
|
|
61
|
+
* schema_version: 1,
|
|
62
|
+
* flight_number: "flight_number",
|
|
63
|
+
* provenance: "manual",
|
|
64
|
+
* origin_iata: "origin_iata",
|
|
65
|
+
* destination_iata: "destination_iata",
|
|
66
|
+
* scheduled_departure_utc: "2024-01-15T09:30:00Z"
|
|
67
|
+
* }]
|
|
68
|
+
* })
|
|
60
69
|
*/
|
|
61
70
|
setFlightInfoV1(taskGroupId: string, request: Chrt.SetFlightInfoReq, requestOptions?: TaskGroup.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
62
71
|
private __setFlightInfoV1;
|
package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/Client.js
CHANGED
|
@@ -121,7 +121,7 @@ class TaskGroup {
|
|
|
121
121
|
});
|
|
122
122
|
}
|
|
123
123
|
/**
|
|
124
|
-
*
|
|
124
|
+
* Replaces the ordered list of flights on a draft task group. | (SetFlightInfoReq) -> (bool)
|
|
125
125
|
*
|
|
126
126
|
* @param {string} taskGroupId
|
|
127
127
|
* @param {Chrt.SetFlightInfoReq} request
|
|
@@ -130,7 +130,16 @@ class TaskGroup {
|
|
|
130
130
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
131
131
|
*
|
|
132
132
|
* @example
|
|
133
|
-
* await client.shipping.orderDrafts.taskGroup.setFlightInfoV1("task_group_id", {
|
|
133
|
+
* await client.shipping.orderDrafts.taskGroup.setFlightInfoV1("task_group_id", {
|
|
134
|
+
* flight_legs: [{
|
|
135
|
+
* schema_version: 1,
|
|
136
|
+
* flight_number: "flight_number",
|
|
137
|
+
* provenance: "manual",
|
|
138
|
+
* origin_iata: "origin_iata",
|
|
139
|
+
* destination_iata: "destination_iata",
|
|
140
|
+
* scheduled_departure_utc: "2024-01-15T09:30:00Z"
|
|
141
|
+
* }]
|
|
142
|
+
* })
|
|
134
143
|
*/
|
|
135
144
|
setFlightInfoV1(taskGroupId, request, requestOptions) {
|
|
136
145
|
return core.HttpResponsePromise.fromPromise(this.__setFlightInfoV1(taskGroupId, request, requestOptions));
|
|
@@ -141,7 +141,7 @@ export declare class TaskGroups {
|
|
|
141
141
|
removeExecutorV1(taskGroupId: string, requestOptions?: TaskGroups.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
142
142
|
private __removeExecutorV1;
|
|
143
143
|
/**
|
|
144
|
-
*
|
|
144
|
+
* Replaces the ordered list of flights on a task group. | authz_personas=[lig_owner_operators] | (SetFlightInfoReq) -> (bool)
|
|
145
145
|
*
|
|
146
146
|
* @param {string} taskGroupId
|
|
147
147
|
* @param {Chrt.SetFlightInfoReq} request
|
|
@@ -150,7 +150,16 @@ export declare class TaskGroups {
|
|
|
150
150
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
151
151
|
*
|
|
152
152
|
* @example
|
|
153
|
-
* await client.shipping.taskGroups.setFlightInfoV1("task_group_id", {
|
|
153
|
+
* await client.shipping.taskGroups.setFlightInfoV1("task_group_id", {
|
|
154
|
+
* flight_legs: [{
|
|
155
|
+
* schema_version: 1,
|
|
156
|
+
* flight_number: "flight_number",
|
|
157
|
+
* provenance: "manual",
|
|
158
|
+
* origin_iata: "origin_iata",
|
|
159
|
+
* destination_iata: "destination_iata",
|
|
160
|
+
* scheduled_departure_utc: "2024-01-15T09:30:00Z"
|
|
161
|
+
* }]
|
|
162
|
+
* })
|
|
154
163
|
*/
|
|
155
164
|
setFlightInfoV1(taskGroupId: string, request: Chrt.SetFlightInfoReq, requestOptions?: TaskGroups.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
156
165
|
private __setFlightInfoV1;
|
|
@@ -509,7 +509,7 @@ class TaskGroups {
|
|
|
509
509
|
});
|
|
510
510
|
}
|
|
511
511
|
/**
|
|
512
|
-
*
|
|
512
|
+
* Replaces the ordered list of flights on a task group. | authz_personas=[lig_owner_operators] | (SetFlightInfoReq) -> (bool)
|
|
513
513
|
*
|
|
514
514
|
* @param {string} taskGroupId
|
|
515
515
|
* @param {Chrt.SetFlightInfoReq} request
|
|
@@ -518,7 +518,16 @@ class TaskGroups {
|
|
|
518
518
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
519
519
|
*
|
|
520
520
|
* @example
|
|
521
|
-
* await client.shipping.taskGroups.setFlightInfoV1("task_group_id", {
|
|
521
|
+
* await client.shipping.taskGroups.setFlightInfoV1("task_group_id", {
|
|
522
|
+
* flight_legs: [{
|
|
523
|
+
* schema_version: 1,
|
|
524
|
+
* flight_number: "flight_number",
|
|
525
|
+
* provenance: "manual",
|
|
526
|
+
* origin_iata: "origin_iata",
|
|
527
|
+
* destination_iata: "destination_iata",
|
|
528
|
+
* scheduled_departure_utc: "2024-01-15T09:30:00Z"
|
|
529
|
+
* }]
|
|
530
|
+
* })
|
|
522
531
|
*/
|
|
523
532
|
setFlightInfoV1(taskGroupId, request, requestOptions) {
|
|
524
533
|
return core.HttpResponsePromise.fromPromise(this.__setFlightInfoV1(taskGroupId, request, requestOptions));
|
|
@@ -36,7 +36,7 @@ export interface ExpandedListForDriverForExecutorV1Request {
|
|
|
36
36
|
sort_order?: Chrt.SortOrderEnum | null;
|
|
37
37
|
page?: number | null;
|
|
38
38
|
page_size?: number | null;
|
|
39
|
-
/** Full-text search query (searches order_short_id, order_off_chrt_reference_id
|
|
39
|
+
/** Full-text search query (searches order_short_id, order_off_chrt_reference_id) */
|
|
40
40
|
search?: string | null;
|
|
41
41
|
filter_status?: (Chrt.TaskGroupStatusEnum1 | null) | (Chrt.TaskGroupStatusEnum1 | null)[];
|
|
42
42
|
filter_draft_started_at_timestamp_lte?: string | null;
|
|
@@ -37,7 +37,7 @@ export interface ExpandedListForExecutorOperatorsV1Request {
|
|
|
37
37
|
sort_order?: Chrt.SortOrderEnum | null;
|
|
38
38
|
page?: number | null;
|
|
39
39
|
page_size?: number | null;
|
|
40
|
-
/** Full-text search query (searches order_short_id, order_off_chrt_reference_id
|
|
40
|
+
/** Full-text search query (searches order_short_id, order_off_chrt_reference_id) */
|
|
41
41
|
search?: string | null;
|
|
42
42
|
filter_status?: (Chrt.TaskGroupStatusEnum1 | null) | (Chrt.TaskGroupStatusEnum1 | null)[];
|
|
43
43
|
filter_draft_started_at_timestamp_lte?: string | null;
|
|
@@ -30,19 +30,6 @@ export declare namespace Dev {
|
|
|
30
30
|
export declare class Dev {
|
|
31
31
|
protected readonly _options: Dev.Options;
|
|
32
32
|
constructor(_options?: Dev.Options);
|
|
33
|
-
/**
|
|
34
|
-
* Creates or updates a Temporal Schedule that runs the scheduled ping workflow for developer diagnostics. | authz: min_org_role=administrator | (ScheduledPingReq) -> (ScheduledPingRes)
|
|
35
|
-
*
|
|
36
|
-
* @param {Chrt.utils.ScheduledPingReq} request
|
|
37
|
-
* @param {Dev.RequestOptions} requestOptions - Request-specific configuration.
|
|
38
|
-
*
|
|
39
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
40
|
-
*
|
|
41
|
-
* @example
|
|
42
|
-
* await client.utils.dev.postAgentPingScheduleV1()
|
|
43
|
-
*/
|
|
44
|
-
postAgentPingScheduleV1(request?: Chrt.utils.ScheduledPingReq, requestOptions?: Dev.RequestOptions): core.HttpResponsePromise<Chrt.ScheduledPingRes>;
|
|
45
|
-
private __postAgentPingScheduleV1;
|
|
46
33
|
/**
|
|
47
34
|
* Runs a minimal Temporal workflow that sends a prompt to OpenAI and returns the response. | (PingOpenAIReq) -> (PingOpenAIRes)
|
|
48
35
|
*
|
|
@@ -55,68 +55,6 @@ class Dev {
|
|
|
55
55
|
constructor(_options = {}) {
|
|
56
56
|
this._options = _options;
|
|
57
57
|
}
|
|
58
|
-
/**
|
|
59
|
-
* Creates or updates a Temporal Schedule that runs the scheduled ping workflow for developer diagnostics. | authz: min_org_role=administrator | (ScheduledPingReq) -> (ScheduledPingRes)
|
|
60
|
-
*
|
|
61
|
-
* @param {Chrt.utils.ScheduledPingReq} request
|
|
62
|
-
* @param {Dev.RequestOptions} requestOptions - Request-specific configuration.
|
|
63
|
-
*
|
|
64
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
65
|
-
*
|
|
66
|
-
* @example
|
|
67
|
-
* await client.utils.dev.postAgentPingScheduleV1()
|
|
68
|
-
*/
|
|
69
|
-
postAgentPingScheduleV1(request = {}, requestOptions) {
|
|
70
|
-
return core.HttpResponsePromise.fromPromise(this.__postAgentPingScheduleV1(request, requestOptions));
|
|
71
|
-
}
|
|
72
|
-
__postAgentPingScheduleV1() {
|
|
73
|
-
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
74
|
-
var _a, _b, _c, _d;
|
|
75
|
-
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
76
|
-
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
77
|
-
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, "dev/agent/ping-schedule/v1"),
|
|
78
|
-
method: "POST",
|
|
79
|
-
headers: _headers,
|
|
80
|
-
contentType: "application/json",
|
|
81
|
-
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
82
|
-
requestType: "json",
|
|
83
|
-
body: request,
|
|
84
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
85
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
86
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
87
|
-
});
|
|
88
|
-
if (_response.ok) {
|
|
89
|
-
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
90
|
-
}
|
|
91
|
-
if (_response.error.reason === "status-code") {
|
|
92
|
-
switch (_response.error.statusCode) {
|
|
93
|
-
case 422:
|
|
94
|
-
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
95
|
-
default:
|
|
96
|
-
throw new errors.ChrtError({
|
|
97
|
-
statusCode: _response.error.statusCode,
|
|
98
|
-
body: _response.error.body,
|
|
99
|
-
rawResponse: _response.rawResponse,
|
|
100
|
-
});
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
switch (_response.error.reason) {
|
|
104
|
-
case "non-json":
|
|
105
|
-
throw new errors.ChrtError({
|
|
106
|
-
statusCode: _response.error.statusCode,
|
|
107
|
-
body: _response.error.rawBody,
|
|
108
|
-
rawResponse: _response.rawResponse,
|
|
109
|
-
});
|
|
110
|
-
case "timeout":
|
|
111
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /dev/agent/ping-schedule/v1.");
|
|
112
|
-
case "unknown":
|
|
113
|
-
throw new errors.ChrtError({
|
|
114
|
-
message: _response.error.errorMessage,
|
|
115
|
-
rawResponse: _response.rawResponse,
|
|
116
|
-
});
|
|
117
|
-
}
|
|
118
|
-
});
|
|
119
|
-
}
|
|
120
58
|
/**
|
|
121
59
|
* Runs a minimal Temporal workflow that sends a prompt to OpenAI and returns the response. | (PingOpenAIReq) -> (PingOpenAIRes)
|
|
122
60
|
*
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
import * as Chrt from "../index.js";
|
|
4
5
|
/**
|
|
5
|
-
* Response model for flight info lookup by task
|
|
6
|
+
* Response model for flight info lookup by task — the ordered flight legs
|
|
7
|
+
* of the adjacent CARGO_ON_FLIGHT task group.
|
|
6
8
|
*/
|
|
7
9
|
export interface FlightInfoForTaskRes {
|
|
8
|
-
|
|
9
|
-
fa_flight_ids?: string[];
|
|
10
|
+
flight_legs?: Chrt.FlightLeg1[];
|
|
10
11
|
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Chrt from "../index.js";
|
|
5
|
+
export interface FlightLeg1 {
|
|
6
|
+
schema_version: number;
|
|
7
|
+
_id: string;
|
|
8
|
+
order_id: string;
|
|
9
|
+
task_group_id: string;
|
|
10
|
+
flight_number: string;
|
|
11
|
+
provenance: Chrt.FlightLegProvenanceEnum1;
|
|
12
|
+
origin_iata: string;
|
|
13
|
+
destination_iata: string;
|
|
14
|
+
scheduled_departure_utc: string;
|
|
15
|
+
carrier_iata?: string | null;
|
|
16
|
+
carrier_icao?: string | null;
|
|
17
|
+
scheduled_arrival_utc?: string | null;
|
|
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;
|
|
30
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Chrt from "../index.js";
|
|
5
|
+
export interface FlightLegClientCreate1 {
|
|
6
|
+
schema_version: number;
|
|
7
|
+
flight_number: string;
|
|
8
|
+
provenance: Chrt.FlightLegProvenanceEnum1;
|
|
9
|
+
origin_iata: string;
|
|
10
|
+
destination_iata: string;
|
|
11
|
+
scheduled_departure_utc: string;
|
|
12
|
+
carrier_iata?: string | null;
|
|
13
|
+
carrier_icao?: string | null;
|
|
14
|
+
scheduled_arrival_utc?: string | null;
|
|
15
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export type FlightLegProvenanceEnum1 = "manual" | "cirium" | "flightaware";
|
|
5
|
+
export declare const FlightLegProvenanceEnum1: {
|
|
6
|
+
readonly Manual: "manual";
|
|
7
|
+
readonly Cirium: "cirium";
|
|
8
|
+
readonly Flightaware: "flightaware";
|
|
9
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.FlightLegProvenanceEnum1 = void 0;
|
|
7
|
+
exports.FlightLegProvenanceEnum1 = {
|
|
8
|
+
Manual: "manual",
|
|
9
|
+
Cirium: "cirium",
|
|
10
|
+
Flightaware: "flightaware",
|
|
11
|
+
};
|
|
@@ -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,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.FlightLegStatusEnum1 = void 0;
|
|
7
|
+
exports.FlightLegStatusEnum1 = {
|
|
8
|
+
Scheduled: "scheduled",
|
|
9
|
+
DepartedGate: "departed_gate",
|
|
10
|
+
InFlight: "in_flight",
|
|
11
|
+
Landed: "landed",
|
|
12
|
+
ArrivedGate: "arrived_gate",
|
|
13
|
+
Cancelled: "cancelled",
|
|
14
|
+
Diverted: "diverted",
|
|
15
|
+
Unknown: "unknown",
|
|
16
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.FlightLegStatusSourceEnum1 = void 0;
|
|
7
|
+
exports.FlightLegStatusSourceEnum1 = {
|
|
8
|
+
Live: "live",
|
|
9
|
+
Historical: "historical",
|
|
10
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* A single flight leg in a task group's ordered flight legs.
|
|
6
|
+
*/
|
|
7
|
+
export interface FlightLegWebhookInfo {
|
|
8
|
+
/** The flight number */
|
|
9
|
+
flight_number: string;
|
|
10
|
+
/** Carrier IATA code */
|
|
11
|
+
carrier_iata?: string | null;
|
|
12
|
+
/** Origin airport IATA code */
|
|
13
|
+
origin_iata?: string | null;
|
|
14
|
+
/** Destination airport IATA code */
|
|
15
|
+
destination_iata?: string | null;
|
|
16
|
+
/** Scheduled departure (UTC) */
|
|
17
|
+
scheduled_departure_utc?: string | null;
|
|
18
|
+
/** Scheduled arrival (UTC) */
|
|
19
|
+
scheduled_arrival_utc?: string | null;
|
|
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
|
+
}
|