@chrt-inc/typescript-sdk 1.333.0 → 1.336.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
package/dist/cjs/Client.js
CHANGED
|
@@ -74,8 +74,8 @@ class ChrtClient {
|
|
|
74
74
|
this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
|
|
75
75
|
"X-Fern-Language": "JavaScript",
|
|
76
76
|
"X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
|
|
77
|
-
"X-Fern-SDK-Version": "1.
|
|
78
|
-
"User-Agent": "@chrt-inc/typescript-sdk/1.
|
|
77
|
+
"X-Fern-SDK-Version": "1.336.0",
|
|
78
|
+
"User-Agent": "@chrt-inc/typescript-sdk/1.336.0",
|
|
79
79
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
80
80
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
81
81
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -115,30 +115,6 @@ export declare class Drivers {
|
|
|
115
115
|
*/
|
|
116
116
|
updateV1(driverId: string, request?: Chrt.DriverClientUpdate1, requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
117
117
|
private __updateV1;
|
|
118
|
-
/**
|
|
119
|
-
* 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)
|
|
120
|
-
*
|
|
121
|
-
* @param {Chrt.DriverLastSeenReq} request
|
|
122
|
-
* @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
|
|
123
|
-
*
|
|
124
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
125
|
-
*
|
|
126
|
-
* @example
|
|
127
|
-
* await client.drivers.updateLastSeenV1({
|
|
128
|
-
* location: {
|
|
129
|
-
* type: "Feature",
|
|
130
|
-
* geometry: {
|
|
131
|
-
* type: "GeometryCollection",
|
|
132
|
-
* geometries: [{
|
|
133
|
-
* type: "LineString",
|
|
134
|
-
* coordinates: [[]]
|
|
135
|
-
* }]
|
|
136
|
-
* }
|
|
137
|
-
* }
|
|
138
|
-
* })
|
|
139
|
-
*/
|
|
140
|
-
updateLastSeenV1(request: Chrt.DriverLastSeenReq, requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
141
|
-
private __updateLastSeenV1;
|
|
142
118
|
/**
|
|
143
119
|
* Clears the driver's last known location and timestamp. | () -> (bool)
|
|
144
120
|
*
|
|
@@ -449,79 +449,6 @@ class Drivers {
|
|
|
449
449
|
}
|
|
450
450
|
});
|
|
451
451
|
}
|
|
452
|
-
/**
|
|
453
|
-
* 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)
|
|
454
|
-
*
|
|
455
|
-
* @param {Chrt.DriverLastSeenReq} request
|
|
456
|
-
* @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
|
|
457
|
-
*
|
|
458
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
459
|
-
*
|
|
460
|
-
* @example
|
|
461
|
-
* await client.drivers.updateLastSeenV1({
|
|
462
|
-
* location: {
|
|
463
|
-
* type: "Feature",
|
|
464
|
-
* geometry: {
|
|
465
|
-
* type: "GeometryCollection",
|
|
466
|
-
* geometries: [{
|
|
467
|
-
* type: "LineString",
|
|
468
|
-
* coordinates: [[]]
|
|
469
|
-
* }]
|
|
470
|
-
* }
|
|
471
|
-
* }
|
|
472
|
-
* })
|
|
473
|
-
*/
|
|
474
|
-
updateLastSeenV1(request, requestOptions) {
|
|
475
|
-
return core.HttpResponsePromise.fromPromise(this.__updateLastSeenV1(request, requestOptions));
|
|
476
|
-
}
|
|
477
|
-
__updateLastSeenV1(request, requestOptions) {
|
|
478
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
479
|
-
var _a, _b, _c, _d;
|
|
480
|
-
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
481
|
-
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
482
|
-
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"),
|
|
483
|
-
method: "POST",
|
|
484
|
-
headers: _headers,
|
|
485
|
-
contentType: "application/json",
|
|
486
|
-
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
487
|
-
requestType: "json",
|
|
488
|
-
body: request,
|
|
489
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
490
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
491
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
492
|
-
});
|
|
493
|
-
if (_response.ok) {
|
|
494
|
-
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
495
|
-
}
|
|
496
|
-
if (_response.error.reason === "status-code") {
|
|
497
|
-
switch (_response.error.statusCode) {
|
|
498
|
-
case 422:
|
|
499
|
-
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
500
|
-
default:
|
|
501
|
-
throw new errors.ChrtError({
|
|
502
|
-
statusCode: _response.error.statusCode,
|
|
503
|
-
body: _response.error.body,
|
|
504
|
-
rawResponse: _response.rawResponse,
|
|
505
|
-
});
|
|
506
|
-
}
|
|
507
|
-
}
|
|
508
|
-
switch (_response.error.reason) {
|
|
509
|
-
case "non-json":
|
|
510
|
-
throw new errors.ChrtError({
|
|
511
|
-
statusCode: _response.error.statusCode,
|
|
512
|
-
body: _response.error.rawBody,
|
|
513
|
-
rawResponse: _response.rawResponse,
|
|
514
|
-
});
|
|
515
|
-
case "timeout":
|
|
516
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /oort/drivers/last_seen/update/v1.");
|
|
517
|
-
case "unknown":
|
|
518
|
-
throw new errors.ChrtError({
|
|
519
|
-
message: _response.error.errorMessage,
|
|
520
|
-
rawResponse: _response.rawResponse,
|
|
521
|
-
});
|
|
522
|
-
}
|
|
523
|
-
});
|
|
524
|
-
}
|
|
525
452
|
/**
|
|
526
453
|
* Clears the driver's last known location and timestamp. | () -> (bool)
|
|
527
454
|
*
|
|
@@ -2,4 +2,3 @@ export { type DriversListOrgMembersAndDriversV1Request } from "./DriversListOrgM
|
|
|
2
2
|
export { type DriversListV1Request } from "./DriversListV1Request.js";
|
|
3
3
|
export { type DriverClientCreate1 } from "./DriverClientCreate1.js";
|
|
4
4
|
export { type DriverClientUpdate1 } from "./DriverClientUpdate1.js";
|
|
5
|
-
export { type DriverLastSeenReq } from "./DriverLastSeenReq.js";
|
|
@@ -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.
|
|
@@ -56,7 +56,7 @@ class Driver {
|
|
|
56
56
|
this._options = _options;
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
|
-
* Records driver location updates. Automatically
|
|
59
|
+
* 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)
|
|
60
60
|
*
|
|
61
61
|
* @param {Chrt.LocationFeature} request
|
|
62
62
|
* @param {Driver.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -137,7 +137,7 @@ class SharingSettings {
|
|
|
137
137
|
var _a, _b, _c, _d;
|
|
138
138
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
139
139
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
140
|
-
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/
|
|
140
|
+
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"),
|
|
141
141
|
method: "POST",
|
|
142
142
|
headers: _headers,
|
|
143
143
|
contentType: "application/json",
|
|
@@ -174,7 +174,7 @@ class SharingSettings {
|
|
|
174
174
|
rawResponse: _response.rawResponse,
|
|
175
175
|
});
|
|
176
176
|
case "timeout":
|
|
177
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /tracking/task_group_by_driver/
|
|
177
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /tracking/sharing_settings/task_group_by_driver/v1.");
|
|
178
178
|
case "unknown":
|
|
179
179
|
throw new errors.ChrtError({
|
|
180
180
|
message: _response.error.errorMessage,
|
|
@@ -207,7 +207,7 @@ class SharingSettings {
|
|
|
207
207
|
var _a, _b, _c, _d;
|
|
208
208
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
209
209
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
210
|
-
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/
|
|
210
|
+
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"),
|
|
211
211
|
method: "POST",
|
|
212
212
|
headers: _headers,
|
|
213
213
|
contentType: "application/json",
|
|
@@ -241,7 +241,7 @@ class SharingSettings {
|
|
|
241
241
|
rawResponse: _response.rawResponse,
|
|
242
242
|
});
|
|
243
243
|
case "timeout":
|
|
244
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /tracking/cargo_by_driver/
|
|
244
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /tracking/sharing_settings/cargo_by_driver/v1.");
|
|
245
245
|
case "unknown":
|
|
246
246
|
throw new errors.ChrtError({
|
|
247
247
|
message: _response.error.errorMessage,
|
|
@@ -274,7 +274,7 @@ class SharingSettings {
|
|
|
274
274
|
var _a, _b, _c, _d;
|
|
275
275
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
276
276
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
277
|
-
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/
|
|
277
|
+
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"),
|
|
278
278
|
method: "POST",
|
|
279
279
|
headers: _headers,
|
|
280
280
|
contentType: "application/json",
|
|
@@ -308,7 +308,7 @@ class SharingSettings {
|
|
|
308
308
|
rawResponse: _response.rawResponse,
|
|
309
309
|
});
|
|
310
310
|
case "timeout":
|
|
311
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /tracking/cargo_by_device/
|
|
311
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /tracking/sharing_settings/cargo_by_device/v1.");
|
|
312
312
|
case "unknown":
|
|
313
313
|
throw new errors.ChrtError({
|
|
314
314
|
message: _response.error.errorMessage,
|
|
@@ -81,7 +81,7 @@ class CargoByDevice {
|
|
|
81
81
|
_queryParams["task_group_id"] = taskGroupId;
|
|
82
82
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
83
83
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
84
|
-
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/
|
|
84
|
+
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"),
|
|
85
85
|
method: "GET",
|
|
86
86
|
headers: _headers,
|
|
87
87
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -115,7 +115,7 @@ class CargoByDevice {
|
|
|
115
115
|
rawResponse: _response.rawResponse,
|
|
116
116
|
});
|
|
117
117
|
case "timeout":
|
|
118
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/
|
|
118
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/timeseries/cargo_by_device/last_seen/v1.");
|
|
119
119
|
case "unknown":
|
|
120
120
|
throw new errors.ChrtError({
|
|
121
121
|
message: _response.error.errorMessage,
|
|
@@ -154,7 +154,7 @@ class CargoByDevice {
|
|
|
154
154
|
}
|
|
155
155
|
let _headers = (0, headers_js_1.mergeHeaders)((_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
156
156
|
const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
|
|
157
|
-
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/
|
|
157
|
+
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"),
|
|
158
158
|
method: "GET",
|
|
159
159
|
headers: _headers,
|
|
160
160
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -185,7 +185,7 @@ class CargoByDevice {
|
|
|
185
185
|
rawResponse: _response.rawResponse,
|
|
186
186
|
});
|
|
187
187
|
case "timeout":
|
|
188
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/
|
|
188
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/timeseries/cargo_by_device/data_points/v1.");
|
|
189
189
|
case "unknown":
|
|
190
190
|
throw new errors.ChrtError({
|
|
191
191
|
message: _response.error.errorMessage,
|
|
@@ -216,7 +216,7 @@ class CargoByDevice {
|
|
|
216
216
|
var _a, _b, _c, _d;
|
|
217
217
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
218
218
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
219
|
-
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/
|
|
219
|
+
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"),
|
|
220
220
|
method: "POST",
|
|
221
221
|
headers: _headers,
|
|
222
222
|
contentType: "application/json",
|
|
@@ -253,7 +253,7 @@ class CargoByDevice {
|
|
|
253
253
|
rawResponse: _response.rawResponse,
|
|
254
254
|
});
|
|
255
255
|
case "timeout":
|
|
256
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /tracking/
|
|
256
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /tracking/timeseries/cargo_by_device/outlier/v1.");
|
|
257
257
|
case "unknown":
|
|
258
258
|
throw new errors.ChrtError({
|
|
259
259
|
message: _response.error.errorMessage,
|
|
@@ -288,7 +288,7 @@ class CargoByDevice {
|
|
|
288
288
|
_queryParams["task_group_id"] = taskGroupId;
|
|
289
289
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
290
290
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
291
|
-
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/
|
|
291
|
+
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"),
|
|
292
292
|
method: "GET",
|
|
293
293
|
headers: _headers,
|
|
294
294
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -322,7 +322,7 @@ class CargoByDevice {
|
|
|
322
322
|
rawResponse: _response.rawResponse,
|
|
323
323
|
});
|
|
324
324
|
case "timeout":
|
|
325
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/
|
|
325
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/timeseries/cargo_by_device/last_seen_public/v1.");
|
|
326
326
|
case "unknown":
|
|
327
327
|
throw new errors.ChrtError({
|
|
328
328
|
message: _response.error.errorMessage,
|
|
@@ -361,7 +361,7 @@ class CargoByDevice {
|
|
|
361
361
|
}
|
|
362
362
|
let _headers = (0, headers_js_1.mergeHeaders)((_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
363
363
|
const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
|
|
364
|
-
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/
|
|
364
|
+
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"),
|
|
365
365
|
method: "GET",
|
|
366
366
|
headers: _headers,
|
|
367
367
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -392,7 +392,7 @@ class CargoByDevice {
|
|
|
392
392
|
rawResponse: _response.rawResponse,
|
|
393
393
|
});
|
|
394
394
|
case "timeout":
|
|
395
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/
|
|
395
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/timeseries/cargo_by_device/data_points_public/v1.");
|
|
396
396
|
case "unknown":
|
|
397
397
|
throw new errors.ChrtError({
|
|
398
398
|
message: _response.error.errorMessage,
|
|
@@ -81,7 +81,7 @@ class CargoByDriver {
|
|
|
81
81
|
_queryParams["task_group_id"] = taskGroupId;
|
|
82
82
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
83
83
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
84
|
-
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/
|
|
84
|
+
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"),
|
|
85
85
|
method: "GET",
|
|
86
86
|
headers: _headers,
|
|
87
87
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -115,7 +115,7 @@ class CargoByDriver {
|
|
|
115
115
|
rawResponse: _response.rawResponse,
|
|
116
116
|
});
|
|
117
117
|
case "timeout":
|
|
118
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/
|
|
118
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/timeseries/cargo_by_driver/last_seen/v1.");
|
|
119
119
|
case "unknown":
|
|
120
120
|
throw new errors.ChrtError({
|
|
121
121
|
message: _response.error.errorMessage,
|
|
@@ -154,7 +154,7 @@ class CargoByDriver {
|
|
|
154
154
|
}
|
|
155
155
|
let _headers = (0, headers_js_1.mergeHeaders)((_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
156
156
|
const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
|
|
157
|
-
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/
|
|
157
|
+
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"),
|
|
158
158
|
method: "GET",
|
|
159
159
|
headers: _headers,
|
|
160
160
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -185,7 +185,7 @@ class CargoByDriver {
|
|
|
185
185
|
rawResponse: _response.rawResponse,
|
|
186
186
|
});
|
|
187
187
|
case "timeout":
|
|
188
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/
|
|
188
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/timeseries/cargo_by_driver/data_points/v1.");
|
|
189
189
|
case "unknown":
|
|
190
190
|
throw new errors.ChrtError({
|
|
191
191
|
message: _response.error.errorMessage,
|
|
@@ -220,7 +220,7 @@ class CargoByDriver {
|
|
|
220
220
|
_queryParams["task_group_id"] = taskGroupId;
|
|
221
221
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
222
222
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
223
|
-
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/
|
|
223
|
+
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"),
|
|
224
224
|
method: "GET",
|
|
225
225
|
headers: _headers,
|
|
226
226
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -254,7 +254,7 @@ class CargoByDriver {
|
|
|
254
254
|
rawResponse: _response.rawResponse,
|
|
255
255
|
});
|
|
256
256
|
case "timeout":
|
|
257
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/
|
|
257
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/timeseries/cargo_by_driver/last_seen_public/v1.");
|
|
258
258
|
case "unknown":
|
|
259
259
|
throw new errors.ChrtError({
|
|
260
260
|
message: _response.error.errorMessage,
|
|
@@ -293,7 +293,7 @@ class CargoByDriver {
|
|
|
293
293
|
}
|
|
294
294
|
let _headers = (0, headers_js_1.mergeHeaders)((_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
295
295
|
const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
|
|
296
|
-
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/
|
|
296
|
+
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"),
|
|
297
297
|
method: "GET",
|
|
298
298
|
headers: _headers,
|
|
299
299
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -324,7 +324,7 @@ class CargoByDriver {
|
|
|
324
324
|
rawResponse: _response.rawResponse,
|
|
325
325
|
});
|
|
326
326
|
case "timeout":
|
|
327
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/
|
|
327
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/timeseries/cargo_by_driver/data_points_public/v1.");
|
|
328
328
|
case "unknown":
|
|
329
329
|
throw new errors.ChrtError({
|
|
330
330
|
message: _response.error.errorMessage,
|
|
@@ -79,7 +79,7 @@ class SessionByDevice {
|
|
|
79
79
|
_queryParams["session_id"] = sessionId;
|
|
80
80
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
81
81
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
82
|
-
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/
|
|
82
|
+
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"),
|
|
83
83
|
method: "GET",
|
|
84
84
|
headers: _headers,
|
|
85
85
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -113,7 +113,7 @@ class SessionByDevice {
|
|
|
113
113
|
rawResponse: _response.rawResponse,
|
|
114
114
|
});
|
|
115
115
|
case "timeout":
|
|
116
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/
|
|
116
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/timeseries/session_by_device/last_seen/v1.");
|
|
117
117
|
case "unknown":
|
|
118
118
|
throw new errors.ChrtError({
|
|
119
119
|
message: _response.error.errorMessage,
|
|
@@ -150,7 +150,7 @@ class SessionByDevice {
|
|
|
150
150
|
}
|
|
151
151
|
let _headers = (0, headers_js_1.mergeHeaders)((_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
152
152
|
const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
|
|
153
|
-
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/
|
|
153
|
+
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"),
|
|
154
154
|
method: "GET",
|
|
155
155
|
headers: _headers,
|
|
156
156
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -181,7 +181,7 @@ class SessionByDevice {
|
|
|
181
181
|
rawResponse: _response.rawResponse,
|
|
182
182
|
});
|
|
183
183
|
case "timeout":
|
|
184
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/
|
|
184
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/timeseries/session_by_device/data_points/v1.");
|
|
185
185
|
case "unknown":
|
|
186
186
|
throw new errors.ChrtError({
|
|
187
187
|
message: _response.error.errorMessage,
|
|
@@ -212,7 +212,7 @@ class SessionByDevice {
|
|
|
212
212
|
var _a, _b, _c, _d;
|
|
213
213
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
214
214
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
215
|
-
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/
|
|
215
|
+
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"),
|
|
216
216
|
method: "POST",
|
|
217
217
|
headers: _headers,
|
|
218
218
|
contentType: "application/json",
|
|
@@ -249,7 +249,7 @@ class SessionByDevice {
|
|
|
249
249
|
rawResponse: _response.rawResponse,
|
|
250
250
|
});
|
|
251
251
|
case "timeout":
|
|
252
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /tracking/
|
|
252
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /tracking/timeseries/session_by_device/outlier/v1.");
|
|
253
253
|
case "unknown":
|
|
254
254
|
throw new errors.ChrtError({
|
|
255
255
|
message: _response.error.errorMessage,
|
|
@@ -282,7 +282,7 @@ class SessionByDevice {
|
|
|
282
282
|
_queryParams["session_id"] = sessionId;
|
|
283
283
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
284
284
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
285
|
-
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/
|
|
285
|
+
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"),
|
|
286
286
|
method: "GET",
|
|
287
287
|
headers: _headers,
|
|
288
288
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -316,7 +316,7 @@ class SessionByDevice {
|
|
|
316
316
|
rawResponse: _response.rawResponse,
|
|
317
317
|
});
|
|
318
318
|
case "timeout":
|
|
319
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/
|
|
319
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/timeseries/session_by_device/last_seen_public/v1.");
|
|
320
320
|
case "unknown":
|
|
321
321
|
throw new errors.ChrtError({
|
|
322
322
|
message: _response.error.errorMessage,
|
|
@@ -353,7 +353,7 @@ class SessionByDevice {
|
|
|
353
353
|
}
|
|
354
354
|
let _headers = (0, headers_js_1.mergeHeaders)((_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
355
355
|
const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
|
|
356
|
-
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/
|
|
356
|
+
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"),
|
|
357
357
|
method: "GET",
|
|
358
358
|
headers: _headers,
|
|
359
359
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -384,7 +384,7 @@ class SessionByDevice {
|
|
|
384
384
|
rawResponse: _response.rawResponse,
|
|
385
385
|
});
|
|
386
386
|
case "timeout":
|
|
387
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/
|
|
387
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/timeseries/session_by_device/data_points_public/v1.");
|
|
388
388
|
case "unknown":
|
|
389
389
|
throw new errors.ChrtError({
|
|
390
390
|
message: _response.error.errorMessage,
|
|
@@ -79,7 +79,7 @@ class TaskGroupByDriver {
|
|
|
79
79
|
_queryParams["task_group_id"] = taskGroupId;
|
|
80
80
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
81
81
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
82
|
-
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/
|
|
82
|
+
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"),
|
|
83
83
|
method: "GET",
|
|
84
84
|
headers: _headers,
|
|
85
85
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -113,7 +113,7 @@ class TaskGroupByDriver {
|
|
|
113
113
|
rawResponse: _response.rawResponse,
|
|
114
114
|
});
|
|
115
115
|
case "timeout":
|
|
116
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/
|
|
116
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/timeseries/task_group_by_driver/last_seen/v1.");
|
|
117
117
|
case "unknown":
|
|
118
118
|
throw new errors.ChrtError({
|
|
119
119
|
message: _response.error.errorMessage,
|
|
@@ -150,7 +150,7 @@ class TaskGroupByDriver {
|
|
|
150
150
|
}
|
|
151
151
|
let _headers = (0, headers_js_1.mergeHeaders)((_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
152
152
|
const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
|
|
153
|
-
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/
|
|
153
|
+
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"),
|
|
154
154
|
method: "GET",
|
|
155
155
|
headers: _headers,
|
|
156
156
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -181,7 +181,7 @@ class TaskGroupByDriver {
|
|
|
181
181
|
rawResponse: _response.rawResponse,
|
|
182
182
|
});
|
|
183
183
|
case "timeout":
|
|
184
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/
|
|
184
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/timeseries/task_group_by_driver/data_points/v1.");
|
|
185
185
|
case "unknown":
|
|
186
186
|
throw new errors.ChrtError({
|
|
187
187
|
message: _response.error.errorMessage,
|
|
@@ -214,7 +214,7 @@ class TaskGroupByDriver {
|
|
|
214
214
|
_queryParams["task_group_id"] = taskGroupId;
|
|
215
215
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
216
216
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
217
|
-
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/
|
|
217
|
+
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"),
|
|
218
218
|
method: "GET",
|
|
219
219
|
headers: _headers,
|
|
220
220
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -248,7 +248,7 @@ class TaskGroupByDriver {
|
|
|
248
248
|
rawResponse: _response.rawResponse,
|
|
249
249
|
});
|
|
250
250
|
case "timeout":
|
|
251
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/
|
|
251
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/timeseries/task_group_by_driver/last_seen_public/v1.");
|
|
252
252
|
case "unknown":
|
|
253
253
|
throw new errors.ChrtError({
|
|
254
254
|
message: _response.error.errorMessage,
|
|
@@ -285,7 +285,7 @@ class TaskGroupByDriver {
|
|
|
285
285
|
}
|
|
286
286
|
let _headers = (0, headers_js_1.mergeHeaders)((_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
287
287
|
const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
|
|
288
|
-
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/
|
|
288
|
+
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"),
|
|
289
289
|
method: "GET",
|
|
290
290
|
headers: _headers,
|
|
291
291
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -316,7 +316,7 @@ class TaskGroupByDriver {
|
|
|
316
316
|
rawResponse: _response.rawResponse,
|
|
317
317
|
});
|
|
318
318
|
case "timeout":
|
|
319
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/
|
|
319
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/timeseries/task_group_by_driver/data_points_public/v1.");
|
|
320
320
|
case "unknown":
|
|
321
321
|
throw new errors.ChrtError({
|
|
322
322
|
message: _response.error.errorMessage,
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.
|
|
1
|
+
export declare const SDK_VERSION = "1.336.0";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/Client.mjs
CHANGED
|
@@ -38,8 +38,8 @@ export class ChrtClient {
|
|
|
38
38
|
this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
|
|
39
39
|
"X-Fern-Language": "JavaScript",
|
|
40
40
|
"X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
|
|
41
|
-
"X-Fern-SDK-Version": "1.
|
|
42
|
-
"User-Agent": "@chrt-inc/typescript-sdk/1.
|
|
41
|
+
"X-Fern-SDK-Version": "1.336.0",
|
|
42
|
+
"User-Agent": "@chrt-inc/typescript-sdk/1.336.0",
|
|
43
43
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
44
44
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
45
45
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -115,30 +115,6 @@ export declare class Drivers {
|
|
|
115
115
|
*/
|
|
116
116
|
updateV1(driverId: string, request?: Chrt.DriverClientUpdate1, requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
117
117
|
private __updateV1;
|
|
118
|
-
/**
|
|
119
|
-
* 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)
|
|
120
|
-
*
|
|
121
|
-
* @param {Chrt.DriverLastSeenReq} request
|
|
122
|
-
* @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
|
|
123
|
-
*
|
|
124
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
125
|
-
*
|
|
126
|
-
* @example
|
|
127
|
-
* await client.drivers.updateLastSeenV1({
|
|
128
|
-
* location: {
|
|
129
|
-
* type: "Feature",
|
|
130
|
-
* geometry: {
|
|
131
|
-
* type: "GeometryCollection",
|
|
132
|
-
* geometries: [{
|
|
133
|
-
* type: "LineString",
|
|
134
|
-
* coordinates: [[]]
|
|
135
|
-
* }]
|
|
136
|
-
* }
|
|
137
|
-
* }
|
|
138
|
-
* })
|
|
139
|
-
*/
|
|
140
|
-
updateLastSeenV1(request: Chrt.DriverLastSeenReq, requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
141
|
-
private __updateLastSeenV1;
|
|
142
118
|
/**
|
|
143
119
|
* Clears the driver's last known location and timestamp. | () -> (bool)
|
|
144
120
|
*
|