@chrt-inc/typescript-sdk 1.333.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.js +2 -2
- 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/tracking/resources/driver/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/tracking/resources/driver/client/Client.js +1 -1
- package/dist/cjs/api/resources/tracking/resources/sharingSettings/client/Client.js +6 -6
- 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/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.mjs +2 -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/tracking/resources/driver/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/tracking/resources/driver/client/Client.mjs +1 -1
- package/dist/esm/api/resources/tracking/resources/sharingSettings/client/Client.mjs +6 -6
- 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/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +1 -77
- package/dist/cjs/api/resources/drivers/client/requests/DriverLastSeenReq.d.ts +0 -23
- package/dist/cjs/api/resources/drivers/client/requests/DriverLastSeenReq.js +0 -5
- package/dist/esm/api/resources/drivers/client/requests/DriverLastSeenReq.d.mts +0 -23
- package/dist/esm/api/resources/drivers/client/requests/DriverLastSeenReq.mjs +0 -4
|
@@ -413,79 +413,6 @@ export class Drivers {
|
|
|
413
413
|
}
|
|
414
414
|
});
|
|
415
415
|
}
|
|
416
|
-
/**
|
|
417
|
-
* Updates the caller's driver last known location and timestamp for tracking. Only updates if timestamp is newer than existing (DB-side validation). Returns False if driver not found or timestamp is stale. | (DriverLastSeenReq) -> (bool)
|
|
418
|
-
*
|
|
419
|
-
* @param {Chrt.DriverLastSeenReq} request
|
|
420
|
-
* @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
|
|
421
|
-
*
|
|
422
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
423
|
-
*
|
|
424
|
-
* @example
|
|
425
|
-
* await client.drivers.updateLastSeenV1({
|
|
426
|
-
* location: {
|
|
427
|
-
* type: "Feature",
|
|
428
|
-
* geometry: {
|
|
429
|
-
* type: "GeometryCollection",
|
|
430
|
-
* geometries: [{
|
|
431
|
-
* type: "LineString",
|
|
432
|
-
* coordinates: [[]]
|
|
433
|
-
* }]
|
|
434
|
-
* }
|
|
435
|
-
* }
|
|
436
|
-
* })
|
|
437
|
-
*/
|
|
438
|
-
updateLastSeenV1(request, requestOptions) {
|
|
439
|
-
return core.HttpResponsePromise.fromPromise(this.__updateLastSeenV1(request, requestOptions));
|
|
440
|
-
}
|
|
441
|
-
__updateLastSeenV1(request, requestOptions) {
|
|
442
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
443
|
-
var _a, _b, _c, _d;
|
|
444
|
-
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);
|
|
445
|
-
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
446
|
-
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, "oort/drivers/last_seen/update/v1"),
|
|
447
|
-
method: "POST",
|
|
448
|
-
headers: _headers,
|
|
449
|
-
contentType: "application/json",
|
|
450
|
-
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
451
|
-
requestType: "json",
|
|
452
|
-
body: request,
|
|
453
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
454
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
455
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
456
|
-
});
|
|
457
|
-
if (_response.ok) {
|
|
458
|
-
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
459
|
-
}
|
|
460
|
-
if (_response.error.reason === "status-code") {
|
|
461
|
-
switch (_response.error.statusCode) {
|
|
462
|
-
case 422:
|
|
463
|
-
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
464
|
-
default:
|
|
465
|
-
throw new errors.ChrtError({
|
|
466
|
-
statusCode: _response.error.statusCode,
|
|
467
|
-
body: _response.error.body,
|
|
468
|
-
rawResponse: _response.rawResponse,
|
|
469
|
-
});
|
|
470
|
-
}
|
|
471
|
-
}
|
|
472
|
-
switch (_response.error.reason) {
|
|
473
|
-
case "non-json":
|
|
474
|
-
throw new errors.ChrtError({
|
|
475
|
-
statusCode: _response.error.statusCode,
|
|
476
|
-
body: _response.error.rawBody,
|
|
477
|
-
rawResponse: _response.rawResponse,
|
|
478
|
-
});
|
|
479
|
-
case "timeout":
|
|
480
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /oort/drivers/last_seen/update/v1.");
|
|
481
|
-
case "unknown":
|
|
482
|
-
throw new errors.ChrtError({
|
|
483
|
-
message: _response.error.errorMessage,
|
|
484
|
-
rawResponse: _response.rawResponse,
|
|
485
|
-
});
|
|
486
|
-
}
|
|
487
|
-
});
|
|
488
|
-
}
|
|
489
416
|
/**
|
|
490
417
|
* Clears the driver's last known location and timestamp. | () -> (bool)
|
|
491
418
|
*
|
|
@@ -2,4 +2,3 @@ export { type DriversListOrgMembersAndDriversV1Request } from "./DriversListOrgM
|
|
|
2
2
|
export { type DriversListV1Request } from "./DriversListV1Request.mjs";
|
|
3
3
|
export { type DriverClientCreate1 } from "./DriverClientCreate1.mjs";
|
|
4
4
|
export { type DriverClientUpdate1 } from "./DriverClientUpdate1.mjs";
|
|
5
|
-
export { type DriverLastSeenReq } from "./DriverLastSeenReq.mjs";
|
|
@@ -31,7 +31,7 @@ export declare class Driver {
|
|
|
31
31
|
protected readonly _options: Driver.Options;
|
|
32
32
|
constructor(_options?: Driver.Options);
|
|
33
33
|
/**
|
|
34
|
-
* Records driver location updates. Automatically
|
|
34
|
+
* Records driver location updates. Updates driver's last seen timestamp and location. Automatically records tracking data for all IN_PROGRESS task groups and their associated IN_TRANSIT cargos. | (LocationFeature) -> (DriverUpdateRes)
|
|
35
35
|
*
|
|
36
36
|
* @param {Chrt.LocationFeature} request
|
|
37
37
|
* @param {Driver.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -20,7 +20,7 @@ export class Driver {
|
|
|
20
20
|
this._options = _options;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
-
* Records driver location updates. Automatically
|
|
23
|
+
* Records driver location updates. Updates driver's last seen timestamp and location. Automatically records tracking data for all IN_PROGRESS task groups and their associated IN_TRANSIT cargos. | (LocationFeature) -> (DriverUpdateRes)
|
|
24
24
|
*
|
|
25
25
|
* @param {Chrt.LocationFeature} request
|
|
26
26
|
* @param {Driver.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -101,7 +101,7 @@ export class SharingSettings {
|
|
|
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 SharingSettings {
|
|
|
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,
|
|
@@ -171,7 +171,7 @@ export class SharingSettings {
|
|
|
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 SharingSettings {
|
|
|
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,
|
|
@@ -238,7 +238,7 @@ export class SharingSettings {
|
|
|
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 SharingSettings {
|
|
|
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,
|
|
@@ -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,
|
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";
|
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -4808,82 +4808,6 @@ await client.drivers.updateV1("driver_id");
|
|
|
4808
4808
|
</dl>
|
|
4809
4809
|
</details>
|
|
4810
4810
|
|
|
4811
|
-
<details><summary><code>client.drivers.<a href="/src/api/resources/drivers/client/Client.ts">updateLastSeenV1</a>({ ...params }) -> boolean</code></summary>
|
|
4812
|
-
<dl>
|
|
4813
|
-
<dd>
|
|
4814
|
-
|
|
4815
|
-
#### 📝 Description
|
|
4816
|
-
|
|
4817
|
-
<dl>
|
|
4818
|
-
<dd>
|
|
4819
|
-
|
|
4820
|
-
<dl>
|
|
4821
|
-
<dd>
|
|
4822
|
-
|
|
4823
|
-
Updates the caller's driver last known location and timestamp for tracking. Only updates if timestamp is newer than existing (DB-side validation). Returns False if driver not found or timestamp is stale. | (DriverLastSeenReq) -> (bool)
|
|
4824
|
-
|
|
4825
|
-
</dd>
|
|
4826
|
-
</dl>
|
|
4827
|
-
</dd>
|
|
4828
|
-
</dl>
|
|
4829
|
-
|
|
4830
|
-
#### 🔌 Usage
|
|
4831
|
-
|
|
4832
|
-
<dl>
|
|
4833
|
-
<dd>
|
|
4834
|
-
|
|
4835
|
-
<dl>
|
|
4836
|
-
<dd>
|
|
4837
|
-
|
|
4838
|
-
```typescript
|
|
4839
|
-
await client.drivers.updateLastSeenV1({
|
|
4840
|
-
location: {
|
|
4841
|
-
type: "Feature",
|
|
4842
|
-
geometry: {
|
|
4843
|
-
type: "GeometryCollection",
|
|
4844
|
-
geometries: [
|
|
4845
|
-
{
|
|
4846
|
-
type: "LineString",
|
|
4847
|
-
coordinates: [[]],
|
|
4848
|
-
},
|
|
4849
|
-
],
|
|
4850
|
-
},
|
|
4851
|
-
},
|
|
4852
|
-
});
|
|
4853
|
-
```
|
|
4854
|
-
|
|
4855
|
-
</dd>
|
|
4856
|
-
</dl>
|
|
4857
|
-
</dd>
|
|
4858
|
-
</dl>
|
|
4859
|
-
|
|
4860
|
-
#### ⚙️ Parameters
|
|
4861
|
-
|
|
4862
|
-
<dl>
|
|
4863
|
-
<dd>
|
|
4864
|
-
|
|
4865
|
-
<dl>
|
|
4866
|
-
<dd>
|
|
4867
|
-
|
|
4868
|
-
**request:** `Chrt.DriverLastSeenReq`
|
|
4869
|
-
|
|
4870
|
-
</dd>
|
|
4871
|
-
</dl>
|
|
4872
|
-
|
|
4873
|
-
<dl>
|
|
4874
|
-
<dd>
|
|
4875
|
-
|
|
4876
|
-
**requestOptions:** `Drivers.RequestOptions`
|
|
4877
|
-
|
|
4878
|
-
</dd>
|
|
4879
|
-
</dl>
|
|
4880
|
-
</dd>
|
|
4881
|
-
</dl>
|
|
4882
|
-
|
|
4883
|
-
</dd>
|
|
4884
|
-
</dl>
|
|
4885
|
-
</details>
|
|
4886
|
-
|
|
4887
4811
|
<details><summary><code>client.drivers.<a href="/src/api/resources/drivers/client/Client.ts">clearLastSeenV1</a>() -> boolean</code></summary>
|
|
4888
4812
|
<dl>
|
|
4889
4813
|
<dd>
|
|
@@ -13157,7 +13081,7 @@ await client.tracking.devices.listV1();
|
|
|
13157
13081
|
<dl>
|
|
13158
13082
|
<dd>
|
|
13159
13083
|
|
|
13160
|
-
Records driver location updates. Automatically
|
|
13084
|
+
Records driver location updates. Updates driver's last seen timestamp and location. Automatically records tracking data for all IN_PROGRESS task groups and their associated IN_TRANSIT cargos. | (LocationFeature) -> (DriverUpdateRes)
|
|
13161
13085
|
|
|
13162
13086
|
</dd>
|
|
13163
13087
|
</dl>
|