@chrt-inc/typescript-sdk 1.331.0 → 1.334.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.d.ts +3 -0
- package/dist/cjs/Client.js +41 -36
- package/dist/cjs/api/resources/drivers/client/Client.d.ts +0 -24
- package/dist/cjs/api/resources/drivers/client/Client.js +0 -73
- package/dist/cjs/api/resources/drivers/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/flights/client/Client.d.ts +47 -0
- package/dist/cjs/api/resources/flights/client/Client.js +127 -0
- package/dist/cjs/api/resources/index.d.ts +1 -0
- package/dist/cjs/api/resources/index.js +2 -1
- package/dist/cjs/api/resources/orderDrafts/resources/taskGroup/client/Client.d.ts +5 -7
- package/dist/cjs/api/resources/orderDrafts/resources/taskGroup/client/Client.js +8 -10
- package/dist/cjs/api/resources/orderDrafts/resources/taskGroup/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/taskGroups/client/Client.d.ts +5 -7
- package/dist/cjs/api/resources/taskGroups/client/Client.js +8 -10
- package/dist/cjs/api/resources/taskGroups/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/tracking/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/tracking/client/Client.js +3 -3
- package/dist/cjs/api/resources/tracking/resources/driver/client/Client.d.ts +10 -13
- package/dist/cjs/api/resources/tracking/resources/driver/client/Client.js +9 -12
- package/dist/cjs/api/resources/tracking/resources/driver/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/tracking/resources/driver/client/index.js +0 -15
- package/dist/cjs/api/resources/tracking/resources/index.d.ts +2 -3
- package/dist/cjs/api/resources/tracking/resources/index.js +3 -4
- package/dist/cjs/api/resources/tracking/resources/{sharing → sharingSettings}/client/Client.d.ts +16 -16
- package/dist/cjs/api/resources/tracking/resources/{sharing → sharingSettings}/client/Client.js +17 -17
- package/dist/cjs/api/resources/tracking/resources/sharingSettings/index.d.ts +1 -0
- package/dist/cjs/api/resources/tracking/resources/sharingSettings/index.js +17 -0
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/cargoByDevice/client/Client.js +10 -10
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/cargoByDriver/client/Client.js +8 -8
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/Client.js +10 -10
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/Client.js +8 -8
- package/dist/cjs/api/types/FlightInfoForTaskRes.d.ts +10 -0
- package/dist/cjs/api/types/SetFlightInfoReq.d.ts +9 -0
- package/dist/cjs/api/types/Task1.d.ts +0 -1
- package/dist/cjs/api/types/TaskClientCreate1.d.ts +0 -1
- package/dist/cjs/api/types/TaskClientUpdate1.d.ts +0 -1
- package/dist/cjs/api/types/TaskGroup1.d.ts +1 -0
- package/dist/cjs/api/types/index.d.ts +2 -0
- package/dist/cjs/api/types/index.js +2 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.d.mts +3 -0
- package/dist/esm/Client.mjs +7 -2
- package/dist/esm/api/resources/drivers/client/Client.d.mts +0 -24
- package/dist/esm/api/resources/drivers/client/Client.mjs +0 -73
- package/dist/esm/api/resources/drivers/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/flights/client/Client.d.mts +47 -0
- package/dist/esm/api/resources/flights/client/Client.mjs +90 -0
- package/dist/esm/api/resources/flights/client/index.mjs +1 -0
- package/dist/esm/api/resources/index.d.mts +1 -0
- package/dist/esm/api/resources/index.mjs +1 -0
- package/dist/esm/api/resources/orderDrafts/resources/taskGroup/client/Client.d.mts +5 -7
- package/dist/esm/api/resources/orderDrafts/resources/taskGroup/client/Client.mjs +8 -10
- package/dist/esm/api/resources/orderDrafts/resources/taskGroup/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/taskGroups/client/Client.d.mts +5 -7
- package/dist/esm/api/resources/taskGroups/client/Client.mjs +8 -10
- package/dist/esm/api/resources/taskGroups/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/tracking/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/tracking/client/Client.mjs +3 -3
- package/dist/esm/api/resources/tracking/resources/driver/client/Client.d.mts +10 -13
- package/dist/esm/api/resources/tracking/resources/driver/client/Client.mjs +9 -12
- package/dist/esm/api/resources/tracking/resources/driver/client/index.d.mts +0 -1
- package/dist/esm/api/resources/tracking/resources/driver/client/index.mjs +1 -1
- package/dist/esm/api/resources/tracking/resources/index.d.mts +2 -3
- package/dist/esm/api/resources/tracking/resources/index.mjs +2 -3
- package/dist/esm/api/resources/tracking/resources/{sharing → sharingSettings}/client/Client.d.mts +16 -16
- package/dist/esm/api/resources/tracking/resources/{sharing → sharingSettings}/client/Client.mjs +15 -15
- package/dist/esm/api/resources/tracking/resources/sharingSettings/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/tracking/resources/sharingSettings/index.d.mts +1 -0
- package/dist/esm/api/resources/tracking/resources/sharingSettings/index.mjs +1 -0
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/cargoByDevice/client/Client.mjs +10 -10
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/cargoByDriver/client/Client.mjs +8 -8
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/Client.mjs +10 -10
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/Client.mjs +8 -8
- package/dist/esm/api/types/FlightInfoForTaskRes.d.mts +10 -0
- package/dist/esm/api/types/SetFlightInfoReq.d.mts +9 -0
- package/dist/esm/api/types/Task1.d.mts +0 -1
- package/dist/esm/api/types/TaskClientCreate1.d.mts +0 -1
- package/dist/esm/api/types/TaskClientUpdate1.d.mts +0 -1
- package/dist/esm/api/types/TaskGroup1.d.mts +1 -0
- package/dist/esm/api/types/index.d.mts +2 -0
- package/dist/esm/api/types/index.mjs +2 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +97 -115
- package/dist/cjs/api/resources/drivers/client/requests/DriverLastSeenReq.d.ts +0 -23
- package/dist/cjs/api/resources/orderDrafts/resources/taskGroup/client/requests/SetFlightNumberDraftReq.d.ts +0 -13
- package/dist/cjs/api/resources/taskGroups/client/requests/SetFlightNumberReq.d.ts +0 -13
- package/dist/cjs/api/resources/taskGroups/client/requests/SetFlightNumberReq.js +0 -5
- package/dist/cjs/api/resources/tracking/resources/driver/client/requests/DriverUpdateReq.d.ts +0 -24
- package/dist/cjs/api/resources/tracking/resources/driver/client/requests/DriverUpdateReq.js +0 -5
- package/dist/cjs/api/resources/tracking/resources/driver/client/requests/index.d.ts +0 -1
- package/dist/esm/api/resources/drivers/client/requests/DriverLastSeenReq.d.mts +0 -23
- package/dist/esm/api/resources/orderDrafts/resources/taskGroup/client/requests/SetFlightNumberDraftReq.d.mts +0 -13
- package/dist/esm/api/resources/taskGroups/client/requests/SetFlightNumberReq.d.mts +0 -13
- package/dist/esm/api/resources/taskGroups/client/requests/SetFlightNumberReq.mjs +0 -4
- package/dist/esm/api/resources/tracking/resources/driver/client/requests/DriverUpdateReq.d.mts +0 -24
- package/dist/esm/api/resources/tracking/resources/driver/client/requests/DriverUpdateReq.mjs +0 -4
- package/dist/esm/api/resources/tracking/resources/driver/client/requests/index.d.mts +0 -1
- /package/dist/{esm/api/resources/tracking/resources/driver/client/requests/index.mjs → cjs/api/resources/flights/client/index.d.ts} +0 -0
- /package/dist/cjs/api/resources/{tracking/resources/driver/client/requests → flights/client}/index.js +0 -0
- /package/dist/cjs/api/resources/{tracking/resources/sharing → flights}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{tracking/resources/sharing → flights}/index.js +0 -0
- /package/dist/cjs/api/resources/tracking/resources/{sharing → sharingSettings}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/tracking/resources/{sharing → sharingSettings}/client/index.js +0 -0
- /package/dist/cjs/api/resources/tracking/resources/{sharing → sharingSettings}/client/requests/CargoByDeviceSharingSettingsUpdateReq.d.ts +0 -0
- /package/dist/cjs/api/resources/tracking/resources/{sharing → sharingSettings}/client/requests/CargoByDeviceSharingSettingsUpdateReq.js +0 -0
- /package/dist/cjs/api/resources/tracking/resources/{sharing → sharingSettings}/client/requests/CargoByDriverSharingSettingsUpdateReq.d.ts +0 -0
- /package/dist/cjs/api/resources/tracking/resources/{sharing → sharingSettings}/client/requests/CargoByDriverSharingSettingsUpdateReq.js +0 -0
- /package/dist/cjs/api/resources/tracking/resources/{sharing → sharingSettings}/client/requests/TaskGroupByDriverSharingSettingsUpdateReq.d.ts +0 -0
- /package/dist/cjs/api/resources/tracking/resources/{sharing → sharingSettings}/client/requests/TaskGroupByDriverSharingSettingsUpdateReq.js +0 -0
- /package/dist/cjs/api/resources/tracking/resources/{sharing → sharingSettings}/client/requests/index.d.ts +0 -0
- /package/dist/cjs/api/resources/tracking/resources/{sharing → sharingSettings}/client/requests/index.js +0 -0
- /package/dist/cjs/api/{resources/drivers/client/requests/DriverLastSeenReq.js → types/FlightInfoForTaskRes.js} +0 -0
- /package/dist/cjs/api/{resources/orderDrafts/resources/taskGroup/client/requests/SetFlightNumberDraftReq.js → types/SetFlightInfoReq.js} +0 -0
- /package/dist/esm/api/resources/{tracking/resources/sharing/client/requests/index.mjs → flights/client/index.d.mts} +0 -0
- /package/dist/esm/api/resources/{tracking/resources/sharing → flights}/index.d.mts +0 -0
- /package/dist/esm/api/resources/{tracking/resources/sharing → flights}/index.mjs +0 -0
- /package/dist/esm/api/resources/tracking/resources/{sharing → sharingSettings}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/tracking/resources/{sharing → sharingSettings}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/tracking/resources/{sharing → sharingSettings}/client/requests/CargoByDeviceSharingSettingsUpdateReq.d.mts +0 -0
- /package/dist/esm/api/resources/tracking/resources/{sharing → sharingSettings}/client/requests/CargoByDeviceSharingSettingsUpdateReq.mjs +0 -0
- /package/dist/esm/api/resources/tracking/resources/{sharing → sharingSettings}/client/requests/CargoByDriverSharingSettingsUpdateReq.d.mts +0 -0
- /package/dist/esm/api/resources/tracking/resources/{sharing → sharingSettings}/client/requests/CargoByDriverSharingSettingsUpdateReq.mjs +0 -0
- /package/dist/esm/api/resources/tracking/resources/{sharing → sharingSettings}/client/requests/TaskGroupByDriverSharingSettingsUpdateReq.d.mts +0 -0
- /package/dist/esm/api/resources/tracking/resources/{sharing → sharingSettings}/client/requests/TaskGroupByDriverSharingSettingsUpdateReq.mjs +0 -0
- /package/dist/esm/api/resources/tracking/resources/{sharing → sharingSettings}/client/requests/index.d.mts +0 -0
- /package/dist/esm/api/{resources/drivers/client/requests/DriverLastSeenReq.mjs → types/FlightInfoForTaskRes.mjs} +0 -0
- /package/dist/esm/api/{resources/orderDrafts/resources/taskGroup/client/requests/SetFlightNumberDraftReq.mjs → types/SetFlightInfoReq.mjs} +0 -0
package/dist/esm/api/resources/tracking/resources/{sharing → sharingSettings}/client/Client.mjs
RENAMED
|
@@ -15,7 +15,7 @@ import * as core from "../../../../../../core/index.mjs";
|
|
|
15
15
|
import * as Chrt from "../../../../../index.mjs";
|
|
16
16
|
import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../../../core/headers.mjs";
|
|
17
17
|
import * as errors from "../../../../../../errors/index.mjs";
|
|
18
|
-
export class
|
|
18
|
+
export class SharingSettings {
|
|
19
19
|
constructor(_options = {}) {
|
|
20
20
|
this._options = _options;
|
|
21
21
|
}
|
|
@@ -23,12 +23,12 @@ export class Sharing {
|
|
|
23
23
|
* Get all tracking datasets and their sharing settings for a given order. | authz_personas=[shipper_org_operators, forwarder_org_operators, courier_org_operators] | () -> (list[TrackingSharingSettingsRes])
|
|
24
24
|
*
|
|
25
25
|
* @param {string} orderIdOrShortId
|
|
26
|
-
* @param {
|
|
26
|
+
* @param {SharingSettings.RequestOptions} requestOptions - Request-specific configuration.
|
|
27
27
|
*
|
|
28
28
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
29
29
|
*
|
|
30
30
|
* @example
|
|
31
|
-
* await client.tracking.
|
|
31
|
+
* await client.tracking.sharingSettings.getSettingsV1("order_id_or_short_id")
|
|
32
32
|
*/
|
|
33
33
|
getSettingsV1(orderIdOrShortId, requestOptions) {
|
|
34
34
|
return core.HttpResponsePromise.fromPromise(this.__getSettingsV1(orderIdOrShortId, requestOptions));
|
|
@@ -82,12 +82,12 @@ export class Sharing {
|
|
|
82
82
|
* Updates the sharing settings for a task group by driver tracking dataset. | authz_personas=[forwarder_org_operators, shipper_org_operators, courier_org_operators, courier_driver] | (TaskGroupByDriverSharingSettingsUpdateReq) -> (TaskGroupByDriverSharingSettings1)
|
|
83
83
|
*
|
|
84
84
|
* @param {Chrt.tracking.TaskGroupByDriverSharingSettingsUpdateReq} request
|
|
85
|
-
* @param {
|
|
85
|
+
* @param {SharingSettings.RequestOptions} requestOptions - Request-specific configuration.
|
|
86
86
|
*
|
|
87
87
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
88
88
|
*
|
|
89
89
|
* @example
|
|
90
|
-
* await client.tracking.
|
|
90
|
+
* await client.tracking.sharingSettings.taskGroupByDriverSharingSettingsV1({
|
|
91
91
|
* task_group_id: "task_group_id",
|
|
92
92
|
* driver_id: "driver_id",
|
|
93
93
|
* "public": true
|
|
@@ -101,7 +101,7 @@ export class Sharing {
|
|
|
101
101
|
var _a, _b, _c, _d;
|
|
102
102
|
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);
|
|
103
103
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
104
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "tracking/task_group_by_driver/
|
|
104
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "tracking/sharing_settings/task_group_by_driver/v1"),
|
|
105
105
|
method: "POST",
|
|
106
106
|
headers: _headers,
|
|
107
107
|
contentType: "application/json",
|
|
@@ -138,7 +138,7 @@ export class Sharing {
|
|
|
138
138
|
rawResponse: _response.rawResponse,
|
|
139
139
|
});
|
|
140
140
|
case "timeout":
|
|
141
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /tracking/task_group_by_driver/
|
|
141
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /tracking/sharing_settings/task_group_by_driver/v1.");
|
|
142
142
|
case "unknown":
|
|
143
143
|
throw new errors.ChrtError({
|
|
144
144
|
message: _response.error.errorMessage,
|
|
@@ -151,12 +151,12 @@ export class Sharing {
|
|
|
151
151
|
* Updates the sharing settings for a cargo by driver tracking dataset. | authz_personas=[forwarder_org_operators, shipper_org_operators, courier_org_operators, courier_driver] | (CargoByDriverSharingSettingsUpdateReq) -> (CargoByDriverSharingSettings1)
|
|
152
152
|
*
|
|
153
153
|
* @param {Chrt.tracking.CargoByDriverSharingSettingsUpdateReq} request
|
|
154
|
-
* @param {
|
|
154
|
+
* @param {SharingSettings.RequestOptions} requestOptions - Request-specific configuration.
|
|
155
155
|
*
|
|
156
156
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
157
157
|
*
|
|
158
158
|
* @example
|
|
159
|
-
* await client.tracking.
|
|
159
|
+
* await client.tracking.sharingSettings.cargoByDriverSettingsV1({
|
|
160
160
|
* task_group_id: "task_group_id",
|
|
161
161
|
* cargo_id: "cargo_id",
|
|
162
162
|
* driver_id: "driver_id",
|
|
@@ -171,7 +171,7 @@ export class Sharing {
|
|
|
171
171
|
var _a, _b, _c, _d;
|
|
172
172
|
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);
|
|
173
173
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
174
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "tracking/cargo_by_driver/
|
|
174
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "tracking/sharing_settings/cargo_by_driver/v1"),
|
|
175
175
|
method: "POST",
|
|
176
176
|
headers: _headers,
|
|
177
177
|
contentType: "application/json",
|
|
@@ -205,7 +205,7 @@ export class Sharing {
|
|
|
205
205
|
rawResponse: _response.rawResponse,
|
|
206
206
|
});
|
|
207
207
|
case "timeout":
|
|
208
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /tracking/cargo_by_driver/
|
|
208
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /tracking/sharing_settings/cargo_by_driver/v1.");
|
|
209
209
|
case "unknown":
|
|
210
210
|
throw new errors.ChrtError({
|
|
211
211
|
message: _response.error.errorMessage,
|
|
@@ -218,12 +218,12 @@ export class Sharing {
|
|
|
218
218
|
* Updates the sharing settings for a cargo by device tracking dataset. | authz_personas=[forwarder_org_operators, shipper_org_operators, order_creator_org_operators] | (CargoByDeviceSharingSettingsUpdateReq) -> (CargoByDeviceSharingSettings1)
|
|
219
219
|
*
|
|
220
220
|
* @param {Chrt.tracking.CargoByDeviceSharingSettingsUpdateReq} request
|
|
221
|
-
* @param {
|
|
221
|
+
* @param {SharingSettings.RequestOptions} requestOptions - Request-specific configuration.
|
|
222
222
|
*
|
|
223
223
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
224
224
|
*
|
|
225
225
|
* @example
|
|
226
|
-
* await client.tracking.
|
|
226
|
+
* await client.tracking.sharingSettings.cargoByDeviceSettingsV1({
|
|
227
227
|
* task_group_id: "task_group_id",
|
|
228
228
|
* cargo_id: "cargo_id",
|
|
229
229
|
* device_id: "device_id",
|
|
@@ -238,7 +238,7 @@ export class Sharing {
|
|
|
238
238
|
var _a, _b, _c, _d;
|
|
239
239
|
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);
|
|
240
240
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
241
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "tracking/cargo_by_device/
|
|
241
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "tracking/sharing_settings/cargo_by_device/v1"),
|
|
242
242
|
method: "POST",
|
|
243
243
|
headers: _headers,
|
|
244
244
|
contentType: "application/json",
|
|
@@ -272,7 +272,7 @@ export class Sharing {
|
|
|
272
272
|
rawResponse: _response.rawResponse,
|
|
273
273
|
});
|
|
274
274
|
case "timeout":
|
|
275
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /tracking/cargo_by_device/
|
|
275
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /tracking/sharing_settings/cargo_by_device/v1.");
|
|
276
276
|
case "unknown":
|
|
277
277
|
throw new errors.ChrtError({
|
|
278
278
|
message: _response.error.errorMessage,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client/index.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client/index.mjs";
|
|
@@ -45,7 +45,7 @@ export class CargoByDevice {
|
|
|
45
45
|
_queryParams["task_group_id"] = taskGroupId;
|
|
46
46
|
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);
|
|
47
47
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
48
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "tracking/
|
|
48
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "tracking/timeseries/cargo_by_device/last_seen/v1"),
|
|
49
49
|
method: "GET",
|
|
50
50
|
headers: _headers,
|
|
51
51
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -79,7 +79,7 @@ export class CargoByDevice {
|
|
|
79
79
|
rawResponse: _response.rawResponse,
|
|
80
80
|
});
|
|
81
81
|
case "timeout":
|
|
82
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/
|
|
82
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/timeseries/cargo_by_device/last_seen/v1.");
|
|
83
83
|
case "unknown":
|
|
84
84
|
throw new errors.ChrtError({
|
|
85
85
|
message: _response.error.errorMessage,
|
|
@@ -118,7 +118,7 @@ export class CargoByDevice {
|
|
|
118
118
|
}
|
|
119
119
|
let _headers = mergeHeaders((_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
120
120
|
const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
|
|
121
|
-
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.ChrtEnvironment.Local, "tracking/
|
|
121
|
+
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.ChrtEnvironment.Local, "tracking/timeseries/cargo_by_device/data_points/v1"),
|
|
122
122
|
method: "GET",
|
|
123
123
|
headers: _headers,
|
|
124
124
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -149,7 +149,7 @@ export class CargoByDevice {
|
|
|
149
149
|
rawResponse: _response.rawResponse,
|
|
150
150
|
});
|
|
151
151
|
case "timeout":
|
|
152
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/
|
|
152
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/timeseries/cargo_by_device/data_points/v1.");
|
|
153
153
|
case "unknown":
|
|
154
154
|
throw new errors.ChrtError({
|
|
155
155
|
message: _response.error.errorMessage,
|
|
@@ -180,7 +180,7 @@ export class CargoByDevice {
|
|
|
180
180
|
var _a, _b, _c, _d;
|
|
181
181
|
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);
|
|
182
182
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
183
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "tracking/
|
|
183
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "tracking/timeseries/cargo_by_device/outlier/v1"),
|
|
184
184
|
method: "POST",
|
|
185
185
|
headers: _headers,
|
|
186
186
|
contentType: "application/json",
|
|
@@ -217,7 +217,7 @@ export class CargoByDevice {
|
|
|
217
217
|
rawResponse: _response.rawResponse,
|
|
218
218
|
});
|
|
219
219
|
case "timeout":
|
|
220
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /tracking/
|
|
220
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /tracking/timeseries/cargo_by_device/outlier/v1.");
|
|
221
221
|
case "unknown":
|
|
222
222
|
throw new errors.ChrtError({
|
|
223
223
|
message: _response.error.errorMessage,
|
|
@@ -252,7 +252,7 @@ export class CargoByDevice {
|
|
|
252
252
|
_queryParams["task_group_id"] = taskGroupId;
|
|
253
253
|
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);
|
|
254
254
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
255
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "tracking/
|
|
255
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "tracking/timeseries/cargo_by_device/last_seen_public/v1"),
|
|
256
256
|
method: "GET",
|
|
257
257
|
headers: _headers,
|
|
258
258
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -286,7 +286,7 @@ export class CargoByDevice {
|
|
|
286
286
|
rawResponse: _response.rawResponse,
|
|
287
287
|
});
|
|
288
288
|
case "timeout":
|
|
289
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/
|
|
289
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/timeseries/cargo_by_device/last_seen_public/v1.");
|
|
290
290
|
case "unknown":
|
|
291
291
|
throw new errors.ChrtError({
|
|
292
292
|
message: _response.error.errorMessage,
|
|
@@ -325,7 +325,7 @@ export class CargoByDevice {
|
|
|
325
325
|
}
|
|
326
326
|
let _headers = mergeHeaders((_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
327
327
|
const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
|
|
328
|
-
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.ChrtEnvironment.Local, "tracking/
|
|
328
|
+
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.ChrtEnvironment.Local, "tracking/timeseries/cargo_by_device/data_points_public/v1"),
|
|
329
329
|
method: "GET",
|
|
330
330
|
headers: _headers,
|
|
331
331
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -356,7 +356,7 @@ export class CargoByDevice {
|
|
|
356
356
|
rawResponse: _response.rawResponse,
|
|
357
357
|
});
|
|
358
358
|
case "timeout":
|
|
359
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/
|
|
359
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/timeseries/cargo_by_device/data_points_public/v1.");
|
|
360
360
|
case "unknown":
|
|
361
361
|
throw new errors.ChrtError({
|
|
362
362
|
message: _response.error.errorMessage,
|
|
@@ -45,7 +45,7 @@ export class CargoByDriver {
|
|
|
45
45
|
_queryParams["task_group_id"] = taskGroupId;
|
|
46
46
|
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);
|
|
47
47
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
48
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "tracking/
|
|
48
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "tracking/timeseries/cargo_by_driver/last_seen/v1"),
|
|
49
49
|
method: "GET",
|
|
50
50
|
headers: _headers,
|
|
51
51
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -79,7 +79,7 @@ export class CargoByDriver {
|
|
|
79
79
|
rawResponse: _response.rawResponse,
|
|
80
80
|
});
|
|
81
81
|
case "timeout":
|
|
82
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/
|
|
82
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/timeseries/cargo_by_driver/last_seen/v1.");
|
|
83
83
|
case "unknown":
|
|
84
84
|
throw new errors.ChrtError({
|
|
85
85
|
message: _response.error.errorMessage,
|
|
@@ -118,7 +118,7 @@ export class CargoByDriver {
|
|
|
118
118
|
}
|
|
119
119
|
let _headers = mergeHeaders((_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
120
120
|
const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
|
|
121
|
-
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.ChrtEnvironment.Local, "tracking/
|
|
121
|
+
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.ChrtEnvironment.Local, "tracking/timeseries/cargo_by_driver/data_points/v1"),
|
|
122
122
|
method: "GET",
|
|
123
123
|
headers: _headers,
|
|
124
124
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -149,7 +149,7 @@ export class CargoByDriver {
|
|
|
149
149
|
rawResponse: _response.rawResponse,
|
|
150
150
|
});
|
|
151
151
|
case "timeout":
|
|
152
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/
|
|
152
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/timeseries/cargo_by_driver/data_points/v1.");
|
|
153
153
|
case "unknown":
|
|
154
154
|
throw new errors.ChrtError({
|
|
155
155
|
message: _response.error.errorMessage,
|
|
@@ -184,7 +184,7 @@ export class CargoByDriver {
|
|
|
184
184
|
_queryParams["task_group_id"] = taskGroupId;
|
|
185
185
|
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);
|
|
186
186
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
187
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "tracking/
|
|
187
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "tracking/timeseries/cargo_by_driver/last_seen_public/v1"),
|
|
188
188
|
method: "GET",
|
|
189
189
|
headers: _headers,
|
|
190
190
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -218,7 +218,7 @@ export class CargoByDriver {
|
|
|
218
218
|
rawResponse: _response.rawResponse,
|
|
219
219
|
});
|
|
220
220
|
case "timeout":
|
|
221
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/
|
|
221
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/timeseries/cargo_by_driver/last_seen_public/v1.");
|
|
222
222
|
case "unknown":
|
|
223
223
|
throw new errors.ChrtError({
|
|
224
224
|
message: _response.error.errorMessage,
|
|
@@ -257,7 +257,7 @@ export class CargoByDriver {
|
|
|
257
257
|
}
|
|
258
258
|
let _headers = mergeHeaders((_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
259
259
|
const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
|
|
260
|
-
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.ChrtEnvironment.Local, "tracking/
|
|
260
|
+
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.ChrtEnvironment.Local, "tracking/timeseries/cargo_by_driver/data_points_public/v1"),
|
|
261
261
|
method: "GET",
|
|
262
262
|
headers: _headers,
|
|
263
263
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -288,7 +288,7 @@ export class CargoByDriver {
|
|
|
288
288
|
rawResponse: _response.rawResponse,
|
|
289
289
|
});
|
|
290
290
|
case "timeout":
|
|
291
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/
|
|
291
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/timeseries/cargo_by_driver/data_points_public/v1.");
|
|
292
292
|
case "unknown":
|
|
293
293
|
throw new errors.ChrtError({
|
|
294
294
|
message: _response.error.errorMessage,
|
|
@@ -43,7 +43,7 @@ export class SessionByDevice {
|
|
|
43
43
|
_queryParams["session_id"] = sessionId;
|
|
44
44
|
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);
|
|
45
45
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
46
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "tracking/
|
|
46
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "tracking/timeseries/session_by_device/last_seen/v1"),
|
|
47
47
|
method: "GET",
|
|
48
48
|
headers: _headers,
|
|
49
49
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -77,7 +77,7 @@ export class SessionByDevice {
|
|
|
77
77
|
rawResponse: _response.rawResponse,
|
|
78
78
|
});
|
|
79
79
|
case "timeout":
|
|
80
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/
|
|
80
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/timeseries/session_by_device/last_seen/v1.");
|
|
81
81
|
case "unknown":
|
|
82
82
|
throw new errors.ChrtError({
|
|
83
83
|
message: _response.error.errorMessage,
|
|
@@ -114,7 +114,7 @@ export class SessionByDevice {
|
|
|
114
114
|
}
|
|
115
115
|
let _headers = mergeHeaders((_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
116
116
|
const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
|
|
117
|
-
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.ChrtEnvironment.Local, "tracking/
|
|
117
|
+
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.ChrtEnvironment.Local, "tracking/timeseries/session_by_device/data_points/v1"),
|
|
118
118
|
method: "GET",
|
|
119
119
|
headers: _headers,
|
|
120
120
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -145,7 +145,7 @@ export class SessionByDevice {
|
|
|
145
145
|
rawResponse: _response.rawResponse,
|
|
146
146
|
});
|
|
147
147
|
case "timeout":
|
|
148
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/
|
|
148
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/timeseries/session_by_device/data_points/v1.");
|
|
149
149
|
case "unknown":
|
|
150
150
|
throw new errors.ChrtError({
|
|
151
151
|
message: _response.error.errorMessage,
|
|
@@ -176,7 +176,7 @@ export class SessionByDevice {
|
|
|
176
176
|
var _a, _b, _c, _d;
|
|
177
177
|
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);
|
|
178
178
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
179
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "tracking/
|
|
179
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "tracking/timeseries/session_by_device/outlier/v1"),
|
|
180
180
|
method: "POST",
|
|
181
181
|
headers: _headers,
|
|
182
182
|
contentType: "application/json",
|
|
@@ -213,7 +213,7 @@ export class SessionByDevice {
|
|
|
213
213
|
rawResponse: _response.rawResponse,
|
|
214
214
|
});
|
|
215
215
|
case "timeout":
|
|
216
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /tracking/
|
|
216
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /tracking/timeseries/session_by_device/outlier/v1.");
|
|
217
217
|
case "unknown":
|
|
218
218
|
throw new errors.ChrtError({
|
|
219
219
|
message: _response.error.errorMessage,
|
|
@@ -246,7 +246,7 @@ export class SessionByDevice {
|
|
|
246
246
|
_queryParams["session_id"] = sessionId;
|
|
247
247
|
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);
|
|
248
248
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
249
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "tracking/
|
|
249
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "tracking/timeseries/session_by_device/last_seen_public/v1"),
|
|
250
250
|
method: "GET",
|
|
251
251
|
headers: _headers,
|
|
252
252
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -280,7 +280,7 @@ export class SessionByDevice {
|
|
|
280
280
|
rawResponse: _response.rawResponse,
|
|
281
281
|
});
|
|
282
282
|
case "timeout":
|
|
283
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/
|
|
283
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/timeseries/session_by_device/last_seen_public/v1.");
|
|
284
284
|
case "unknown":
|
|
285
285
|
throw new errors.ChrtError({
|
|
286
286
|
message: _response.error.errorMessage,
|
|
@@ -317,7 +317,7 @@ export class SessionByDevice {
|
|
|
317
317
|
}
|
|
318
318
|
let _headers = mergeHeaders((_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
319
319
|
const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
|
|
320
|
-
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.ChrtEnvironment.Local, "tracking/
|
|
320
|
+
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.ChrtEnvironment.Local, "tracking/timeseries/session_by_device/data_points_public/v1"),
|
|
321
321
|
method: "GET",
|
|
322
322
|
headers: _headers,
|
|
323
323
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -348,7 +348,7 @@ export class SessionByDevice {
|
|
|
348
348
|
rawResponse: _response.rawResponse,
|
|
349
349
|
});
|
|
350
350
|
case "timeout":
|
|
351
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/
|
|
351
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/timeseries/session_by_device/data_points_public/v1.");
|
|
352
352
|
case "unknown":
|
|
353
353
|
throw new errors.ChrtError({
|
|
354
354
|
message: _response.error.errorMessage,
|
|
@@ -43,7 +43,7 @@ export class TaskGroupByDriver {
|
|
|
43
43
|
_queryParams["task_group_id"] = taskGroupId;
|
|
44
44
|
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);
|
|
45
45
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
46
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "tracking/
|
|
46
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "tracking/timeseries/task_group_by_driver/last_seen/v1"),
|
|
47
47
|
method: "GET",
|
|
48
48
|
headers: _headers,
|
|
49
49
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -77,7 +77,7 @@ export class TaskGroupByDriver {
|
|
|
77
77
|
rawResponse: _response.rawResponse,
|
|
78
78
|
});
|
|
79
79
|
case "timeout":
|
|
80
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/
|
|
80
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/timeseries/task_group_by_driver/last_seen/v1.");
|
|
81
81
|
case "unknown":
|
|
82
82
|
throw new errors.ChrtError({
|
|
83
83
|
message: _response.error.errorMessage,
|
|
@@ -114,7 +114,7 @@ export class TaskGroupByDriver {
|
|
|
114
114
|
}
|
|
115
115
|
let _headers = mergeHeaders((_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
116
116
|
const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
|
|
117
|
-
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.ChrtEnvironment.Local, "tracking/
|
|
117
|
+
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.ChrtEnvironment.Local, "tracking/timeseries/task_group_by_driver/data_points/v1"),
|
|
118
118
|
method: "GET",
|
|
119
119
|
headers: _headers,
|
|
120
120
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -145,7 +145,7 @@ export class TaskGroupByDriver {
|
|
|
145
145
|
rawResponse: _response.rawResponse,
|
|
146
146
|
});
|
|
147
147
|
case "timeout":
|
|
148
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/
|
|
148
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/timeseries/task_group_by_driver/data_points/v1.");
|
|
149
149
|
case "unknown":
|
|
150
150
|
throw new errors.ChrtError({
|
|
151
151
|
message: _response.error.errorMessage,
|
|
@@ -178,7 +178,7 @@ export class TaskGroupByDriver {
|
|
|
178
178
|
_queryParams["task_group_id"] = taskGroupId;
|
|
179
179
|
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);
|
|
180
180
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
181
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "tracking/
|
|
181
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "tracking/timeseries/task_group_by_driver/last_seen_public/v1"),
|
|
182
182
|
method: "GET",
|
|
183
183
|
headers: _headers,
|
|
184
184
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -212,7 +212,7 @@ export class TaskGroupByDriver {
|
|
|
212
212
|
rawResponse: _response.rawResponse,
|
|
213
213
|
});
|
|
214
214
|
case "timeout":
|
|
215
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/
|
|
215
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/timeseries/task_group_by_driver/last_seen_public/v1.");
|
|
216
216
|
case "unknown":
|
|
217
217
|
throw new errors.ChrtError({
|
|
218
218
|
message: _response.error.errorMessage,
|
|
@@ -249,7 +249,7 @@ export class TaskGroupByDriver {
|
|
|
249
249
|
}
|
|
250
250
|
let _headers = mergeHeaders((_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
251
251
|
const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
|
|
252
|
-
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.ChrtEnvironment.Local, "tracking/
|
|
252
|
+
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.ChrtEnvironment.Local, "tracking/timeseries/task_group_by_driver/data_points_public/v1"),
|
|
253
253
|
method: "GET",
|
|
254
254
|
headers: _headers,
|
|
255
255
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -280,7 +280,7 @@ export class TaskGroupByDriver {
|
|
|
280
280
|
rawResponse: _response.rawResponse,
|
|
281
281
|
});
|
|
282
282
|
case "timeout":
|
|
283
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/
|
|
283
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/timeseries/task_group_by_driver/data_points_public/v1.");
|
|
284
284
|
case "unknown":
|
|
285
285
|
throw new errors.ChrtError({
|
|
286
286
|
message: _response.error.errorMessage,
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export interface SetFlightInfoReq {
|
|
5
|
+
/** Flight number to set on the task group */
|
|
6
|
+
flight_number?: string | null;
|
|
7
|
+
/** Flight Aware's uuid for flights */
|
|
8
|
+
fa_flight_id?: string | null;
|
|
9
|
+
}
|
|
@@ -9,7 +9,6 @@ export interface TaskClientCreate1 {
|
|
|
9
9
|
time_windows?: Chrt.TimeWindow1[];
|
|
10
10
|
order_placer_comments?: string | null;
|
|
11
11
|
shipper_contact_ids?: string[];
|
|
12
|
-
flight_number?: string | null;
|
|
13
12
|
}
|
|
14
13
|
export declare namespace TaskClientCreate1 {
|
|
15
14
|
type Action = Chrt.ChrtGroundCourierTaskActionEnum1 | Chrt.FlightTaskActionEnum1 | Chrt.OnboardCourierTaskActionEnum1;
|
|
@@ -7,7 +7,6 @@ export interface TaskClientUpdate1 {
|
|
|
7
7
|
action?: TaskClientUpdate1.Action | null;
|
|
8
8
|
time_windows?: Chrt.TimeWindow1[];
|
|
9
9
|
shipper_contact_ids?: string[];
|
|
10
|
-
flight_number?: string | null;
|
|
11
10
|
}
|
|
12
11
|
export declare namespace TaskClientUpdate1 {
|
|
13
12
|
type Action = Chrt.ChrtGroundCourierTaskActionEnum1 | Chrt.FlightTaskActionEnum1 | Chrt.OnboardCourierTaskActionEnum1;
|
|
@@ -37,6 +37,7 @@ export * from "./Driver1.mjs";
|
|
|
37
37
|
export * from "./DriverStatusEnum.mjs";
|
|
38
38
|
export * from "./DriverUpdateAvailabilityReq.mjs";
|
|
39
39
|
export * from "./DriverUpdateRes.mjs";
|
|
40
|
+
export * from "./FlightInfoForTaskRes.mjs";
|
|
40
41
|
export * from "./FlightTaskActionEnum1.mjs";
|
|
41
42
|
export * from "./ForwarderConnectionRes.mjs";
|
|
42
43
|
export * from "./ForwarderCourierConnection1.mjs";
|
|
@@ -92,6 +93,7 @@ export * from "./SessionByDeviceDataPoint1.mjs";
|
|
|
92
93
|
export * from "./SessionByDeviceDataPointMetadata1.mjs";
|
|
93
94
|
export * from "./SessionByDeviceMarkOutliersResponse1.mjs";
|
|
94
95
|
export * from "./SessionDeleteResponse1.mjs";
|
|
96
|
+
export * from "./SetFlightInfoReq.mjs";
|
|
95
97
|
export * from "./ShipperConnectionRes.mjs";
|
|
96
98
|
export * from "./ShipperContact1.mjs";
|
|
97
99
|
export * from "./ShipperContactClientCreate1.mjs";
|
|
@@ -37,6 +37,7 @@ export * from "./Driver1.mjs";
|
|
|
37
37
|
export * from "./DriverStatusEnum.mjs";
|
|
38
38
|
export * from "./DriverUpdateAvailabilityReq.mjs";
|
|
39
39
|
export * from "./DriverUpdateRes.mjs";
|
|
40
|
+
export * from "./FlightInfoForTaskRes.mjs";
|
|
40
41
|
export * from "./FlightTaskActionEnum1.mjs";
|
|
41
42
|
export * from "./ForwarderConnectionRes.mjs";
|
|
42
43
|
export * from "./ForwarderCourierConnection1.mjs";
|
|
@@ -92,6 +93,7 @@ export * from "./SessionByDeviceDataPoint1.mjs";
|
|
|
92
93
|
export * from "./SessionByDeviceDataPointMetadata1.mjs";
|
|
93
94
|
export * from "./SessionByDeviceMarkOutliersResponse1.mjs";
|
|
94
95
|
export * from "./SessionDeleteResponse1.mjs";
|
|
96
|
+
export * from "./SetFlightInfoReq.mjs";
|
|
95
97
|
export * from "./ShipperConnectionRes.mjs";
|
|
96
98
|
export * from "./ShipperContact1.mjs";
|
|
97
99
|
export * from "./ShipperContactClientCreate1.mjs";
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.
|
|
1
|
+
export declare const SDK_VERSION = "1.334.0";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "1.
|
|
1
|
+
export const SDK_VERSION = "1.334.0";
|