@chrt-inc/typescript-sdk 0.252.0 → 1.254.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/tracking/client/Client.d.ts +6 -0
- package/dist/cjs/api/resources/tracking/client/Client.js +18 -8
- package/dist/cjs/api/resources/tracking/resources/cargoByDevice/client/Client.d.ts +48 -0
- package/dist/cjs/api/resources/tracking/resources/cargoByDevice/client/Client.js +136 -0
- package/dist/cjs/api/resources/tracking/resources/cargoByDevice/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/tracking/resources/cargoByDevice/client/index.js +17 -0
- package/dist/cjs/api/resources/tracking/resources/cargoByDevice/client/requests/CargoByDeviceLastSeenRequest.d.ts +14 -0
- package/dist/cjs/api/resources/tracking/resources/cargoByDevice/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/tracking/resources/cargoByDevice/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/tracking/resources/cargoByDevice/index.d.ts +1 -0
- package/dist/cjs/api/resources/tracking/resources/cargoByDevice/index.js +17 -0
- package/dist/cjs/api/resources/tracking/resources/cargoByDriver/client/Client.d.ts +1 -20
- package/dist/cjs/api/resources/tracking/resources/cargoByDriver/client/Client.js +1 -67
- package/dist/cjs/api/resources/tracking/resources/cargoByDriver/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/tracking/resources/driver/client/Client.d.ts +51 -0
- package/dist/cjs/api/resources/tracking/resources/driver/client/Client.js +134 -0
- package/dist/cjs/api/resources/tracking/resources/driver/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/tracking/resources/driver/client/index.js +17 -0
- package/dist/cjs/api/resources/tracking/resources/{cargoByDriver/client/requests/CargoByDriverUpdateReq.d.ts → driver/client/requests/DriverUpdateReq.d.ts} +1 -1
- package/dist/cjs/api/resources/tracking/resources/driver/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/tracking/resources/driver/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/tracking/resources/driver/index.d.ts +1 -0
- package/dist/cjs/api/resources/tracking/resources/driver/index.js +17 -0
- package/dist/cjs/api/resources/tracking/resources/index.d.ts +4 -0
- package/dist/cjs/api/resources/tracking/resources/index.js +5 -1
- package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/Client.d.ts +30 -0
- package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/Client.js +146 -8
- package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceDataPointsFancyRequest.d.ts +13 -0
- package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceDataPointsFancyRequest.js +5 -0
- package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceDataPointsRequest.d.ts +13 -0
- package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceDataPointsRequest.js +5 -0
- package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/tracking/resources/taskGroupByDriver/client/Client.d.ts +1 -20
- package/dist/cjs/api/resources/tracking/resources/taskGroupByDriver/client/Client.js +1 -67
- package/dist/cjs/api/resources/tracking/resources/taskGroupByDriver/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/types/DriverUpdateResp.d.ts +11 -0
- package/dist/cjs/api/types/DriverUpdateResp.js +5 -0
- package/dist/cjs/api/types/TrackingCargoByDeviceDataPoint1.d.ts +12 -0
- package/dist/cjs/api/types/TrackingCargoByDeviceDataPoint1.js +5 -0
- package/dist/cjs/api/types/TrackingCargoByDeviceDataPointMetadata1.d.ts +8 -0
- package/dist/cjs/api/types/TrackingCargoByDeviceDataPointMetadata1.js +5 -0
- package/dist/cjs/api/types/index.d.ts +3 -0
- package/dist/cjs/api/types/index.js +3 -0
- 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/tracking/client/Client.d.mts +6 -0
- package/dist/esm/api/resources/tracking/client/Client.mjs +10 -0
- package/dist/esm/api/resources/tracking/resources/cargoByDevice/client/Client.d.mts +48 -0
- package/dist/esm/api/resources/tracking/resources/cargoByDevice/client/Client.mjs +99 -0
- package/dist/esm/api/resources/tracking/resources/cargoByDevice/client/index.d.mts +2 -0
- package/dist/esm/api/resources/tracking/resources/cargoByDevice/client/index.mjs +1 -0
- package/dist/esm/api/resources/tracking/resources/cargoByDevice/client/requests/CargoByDeviceLastSeenRequest.d.mts +14 -0
- package/dist/esm/api/resources/tracking/resources/cargoByDevice/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/tracking/resources/cargoByDevice/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/tracking/resources/cargoByDevice/index.d.mts +1 -0
- package/dist/esm/api/resources/tracking/resources/cargoByDevice/index.mjs +1 -0
- package/dist/esm/api/resources/tracking/resources/cargoByDriver/client/Client.d.mts +1 -20
- package/dist/esm/api/resources/tracking/resources/cargoByDriver/client/Client.mjs +1 -67
- package/dist/esm/api/resources/tracking/resources/cargoByDriver/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/tracking/resources/driver/client/Client.d.mts +51 -0
- package/dist/esm/api/resources/tracking/resources/driver/client/Client.mjs +97 -0
- package/dist/esm/api/resources/tracking/resources/driver/client/index.d.mts +2 -0
- package/dist/esm/api/resources/tracking/resources/driver/client/index.mjs +1 -0
- package/dist/esm/api/resources/tracking/resources/{cargoByDriver/client/requests/CargoByDriverUpdateReq.d.mts → driver/client/requests/DriverUpdateReq.d.mts} +1 -1
- package/dist/esm/api/resources/tracking/resources/driver/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/tracking/resources/driver/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/tracking/resources/driver/index.d.mts +1 -0
- package/dist/esm/api/resources/tracking/resources/driver/index.mjs +1 -0
- package/dist/esm/api/resources/tracking/resources/index.d.mts +4 -0
- package/dist/esm/api/resources/tracking/resources/index.mjs +4 -0
- package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/Client.d.mts +30 -0
- package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/Client.mjs +146 -8
- package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceDataPointsFancyRequest.d.mts +13 -0
- package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceDataPointsFancyRequest.mjs +4 -0
- package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceDataPointsRequest.d.mts +13 -0
- package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceDataPointsRequest.mjs +4 -0
- package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/tracking/resources/taskGroupByDriver/client/Client.d.mts +1 -20
- package/dist/esm/api/resources/tracking/resources/taskGroupByDriver/client/Client.mjs +1 -67
- package/dist/esm/api/resources/tracking/resources/taskGroupByDriver/client/requests/index.d.mts +0 -1
- package/dist/esm/api/types/DriverUpdateResp.d.mts +11 -0
- package/dist/esm/api/types/DriverUpdateResp.mjs +4 -0
- package/dist/esm/api/types/TrackingCargoByDeviceDataPoint1.d.mts +12 -0
- package/dist/esm/api/types/TrackingCargoByDeviceDataPoint1.mjs +4 -0
- package/dist/esm/api/types/TrackingCargoByDeviceDataPointMetadata1.d.mts +8 -0
- package/dist/esm/api/types/TrackingCargoByDeviceDataPointMetadata1.mjs +4 -0
- package/dist/esm/api/types/index.d.mts +3 -0
- package/dist/esm/api/types/index.mjs +3 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +159 -28
- package/dist/cjs/api/resources/tracking/resources/taskGroupByDriver/client/requests/TaskGroupByDriverUpdateReq.d.ts +0 -19
- package/dist/esm/api/resources/tracking/resources/taskGroupByDriver/client/requests/TaskGroupByDriverUpdateReq.d.mts +0 -19
- /package/dist/cjs/api/resources/tracking/resources/{cargoByDriver/client/requests/CargoByDriverUpdateReq.js → cargoByDevice/client/requests/CargoByDeviceLastSeenRequest.js} +0 -0
- /package/dist/cjs/api/resources/tracking/resources/{taskGroupByDriver/client/requests/TaskGroupByDriverUpdateReq.js → driver/client/requests/DriverUpdateReq.js} +0 -0
- /package/dist/esm/api/resources/tracking/resources/{cargoByDriver/client/requests/CargoByDriverUpdateReq.mjs → cargoByDevice/client/requests/CargoByDeviceLastSeenRequest.mjs} +0 -0
- /package/dist/esm/api/resources/tracking/resources/{taskGroupByDriver/client/requests/TaskGroupByDriverUpdateReq.mjs → driver/client/requests/DriverUpdateReq.mjs} +0 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./requests/index.js"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { type DriverUpdateReq } from "./DriverUpdateReq.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client/index.js";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./client/index.js"), exports);
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
+
export * as cargoByDevice from "./cargoByDevice/index.js";
|
|
1
2
|
export * as cargoByDriver from "./cargoByDriver/index.js";
|
|
2
3
|
export * as devices from "./devices/index.js";
|
|
4
|
+
export * as driver from "./driver/index.js";
|
|
3
5
|
export * as taskGroupByDriver from "./taskGroupByDriver/index.js";
|
|
4
6
|
export * as sessionByDevice from "./sessionByDevice/index.js";
|
|
7
|
+
export * from "./cargoByDevice/client/requests/index.js";
|
|
5
8
|
export * from "./cargoByDriver/client/requests/index.js";
|
|
6
9
|
export * from "./devices/client/requests/index.js";
|
|
10
|
+
export * from "./driver/client/requests/index.js";
|
|
7
11
|
export * from "./taskGroupByDriver/client/requests/index.js";
|
|
8
12
|
export * from "./sessionByDevice/client/requests/index.js";
|
|
@@ -36,12 +36,16 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.sessionByDevice = exports.taskGroupByDriver = exports.devices = exports.cargoByDriver = void 0;
|
|
39
|
+
exports.sessionByDevice = exports.taskGroupByDriver = exports.driver = exports.devices = exports.cargoByDriver = exports.cargoByDevice = void 0;
|
|
40
|
+
exports.cargoByDevice = __importStar(require("./cargoByDevice/index.js"));
|
|
40
41
|
exports.cargoByDriver = __importStar(require("./cargoByDriver/index.js"));
|
|
41
42
|
exports.devices = __importStar(require("./devices/index.js"));
|
|
43
|
+
exports.driver = __importStar(require("./driver/index.js"));
|
|
42
44
|
exports.taskGroupByDriver = __importStar(require("./taskGroupByDriver/index.js"));
|
|
43
45
|
exports.sessionByDevice = __importStar(require("./sessionByDevice/index.js"));
|
|
46
|
+
__exportStar(require("./cargoByDevice/client/requests/index.js"), exports);
|
|
44
47
|
__exportStar(require("./cargoByDriver/client/requests/index.js"), exports);
|
|
45
48
|
__exportStar(require("./devices/client/requests/index.js"), exports);
|
|
49
|
+
__exportStar(require("./driver/client/requests/index.js"), exports);
|
|
46
50
|
__exportStar(require("./taskGroupByDriver/client/requests/index.js"), exports);
|
|
47
51
|
__exportStar(require("./sessionByDevice/client/requests/index.js"), exports);
|
|
@@ -43,6 +43,36 @@ export declare class SessionByDevice {
|
|
|
43
43
|
*/
|
|
44
44
|
lastSeen(request: Chrt.tracking.SessionByDeviceLastSeenRequest, requestOptions?: SessionByDevice.RequestOptions): core.HttpResponsePromise<(Chrt.TrackingSessionByDeviceDataPoint1 | null) | undefined>;
|
|
45
45
|
private __lastSeen;
|
|
46
|
+
/**
|
|
47
|
+
* Return a specified number of data points for a session, intelligently sampled across the time range.
|
|
48
|
+
*
|
|
49
|
+
* @param {Chrt.tracking.SessionByDeviceDataPointsRequest} request
|
|
50
|
+
* @param {SessionByDevice.RequestOptions} requestOptions - Request-specific configuration.
|
|
51
|
+
*
|
|
52
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* await client.tracking.sessionByDevice.dataPoints({
|
|
56
|
+
* session_id: "session_id"
|
|
57
|
+
* })
|
|
58
|
+
*/
|
|
59
|
+
dataPoints(request: Chrt.tracking.SessionByDeviceDataPointsRequest, requestOptions?: SessionByDevice.RequestOptions): core.HttpResponsePromise<Chrt.TrackingSessionByDeviceDataPoint1[]>;
|
|
60
|
+
private __dataPoints;
|
|
61
|
+
/**
|
|
62
|
+
* Return data points for a session with intelligent stop/movement detection. Detects stops (location barely changes for >5 minutes) and shows up to 5 markers. For movement, samples data points lightly.
|
|
63
|
+
*
|
|
64
|
+
* @param {Chrt.tracking.SessionByDeviceDataPointsFancyRequest} request
|
|
65
|
+
* @param {SessionByDevice.RequestOptions} requestOptions - Request-specific configuration.
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
68
|
+
*
|
|
69
|
+
* @example
|
|
70
|
+
* await client.tracking.sessionByDevice.dataPointsFancy({
|
|
71
|
+
* session_id: "session_id"
|
|
72
|
+
* })
|
|
73
|
+
*/
|
|
74
|
+
dataPointsFancy(request: Chrt.tracking.SessionByDeviceDataPointsFancyRequest, requestOptions?: SessionByDevice.RequestOptions): core.HttpResponsePromise<Chrt.TrackingSessionByDeviceDataPoint1[]>;
|
|
75
|
+
private __dataPointsFancy;
|
|
46
76
|
/**
|
|
47
77
|
* Create a session for a device and link the device to it.
|
|
48
78
|
*
|
|
@@ -121,6 +121,144 @@ class SessionByDevice {
|
|
|
121
121
|
}
|
|
122
122
|
});
|
|
123
123
|
}
|
|
124
|
+
/**
|
|
125
|
+
* Return a specified number of data points for a session, intelligently sampled across the time range.
|
|
126
|
+
*
|
|
127
|
+
* @param {Chrt.tracking.SessionByDeviceDataPointsRequest} request
|
|
128
|
+
* @param {SessionByDevice.RequestOptions} requestOptions - Request-specific configuration.
|
|
129
|
+
*
|
|
130
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
131
|
+
*
|
|
132
|
+
* @example
|
|
133
|
+
* await client.tracking.sessionByDevice.dataPoints({
|
|
134
|
+
* session_id: "session_id"
|
|
135
|
+
* })
|
|
136
|
+
*/
|
|
137
|
+
dataPoints(request, requestOptions) {
|
|
138
|
+
return core.HttpResponsePromise.fromPromise(this.__dataPoints(request, requestOptions));
|
|
139
|
+
}
|
|
140
|
+
__dataPoints(request, requestOptions) {
|
|
141
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
142
|
+
var _a, _b, _c, _d, _e;
|
|
143
|
+
const { session_id: sessionId, limit } = request;
|
|
144
|
+
const _queryParams = {};
|
|
145
|
+
_queryParams["session_id"] = sessionId;
|
|
146
|
+
if (limit !== undefined) {
|
|
147
|
+
_queryParams["limit"] = (_a = limit === null || limit === void 0 ? void 0 : limit.toString()) !== null && _a !== void 0 ? _a : null;
|
|
148
|
+
}
|
|
149
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
150
|
+
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/session_by_device/data_points"),
|
|
151
|
+
method: "GET",
|
|
152
|
+
headers: (0, headers_js_1.mergeHeaders)((_e = this._options) === null || _e === void 0 ? void 0 : _e.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
153
|
+
queryParameters: _queryParams,
|
|
154
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
155
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
156
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
157
|
+
});
|
|
158
|
+
if (_response.ok) {
|
|
159
|
+
return {
|
|
160
|
+
data: _response.body,
|
|
161
|
+
rawResponse: _response.rawResponse,
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
if (_response.error.reason === "status-code") {
|
|
165
|
+
switch (_response.error.statusCode) {
|
|
166
|
+
case 422:
|
|
167
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
168
|
+
default:
|
|
169
|
+
throw new errors.ChrtError({
|
|
170
|
+
statusCode: _response.error.statusCode,
|
|
171
|
+
body: _response.error.body,
|
|
172
|
+
rawResponse: _response.rawResponse,
|
|
173
|
+
});
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
switch (_response.error.reason) {
|
|
177
|
+
case "non-json":
|
|
178
|
+
throw new errors.ChrtError({
|
|
179
|
+
statusCode: _response.error.statusCode,
|
|
180
|
+
body: _response.error.rawBody,
|
|
181
|
+
rawResponse: _response.rawResponse,
|
|
182
|
+
});
|
|
183
|
+
case "timeout":
|
|
184
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/session_by_device/data_points.");
|
|
185
|
+
case "unknown":
|
|
186
|
+
throw new errors.ChrtError({
|
|
187
|
+
message: _response.error.errorMessage,
|
|
188
|
+
rawResponse: _response.rawResponse,
|
|
189
|
+
});
|
|
190
|
+
}
|
|
191
|
+
});
|
|
192
|
+
}
|
|
193
|
+
/**
|
|
194
|
+
* Return data points for a session with intelligent stop/movement detection. Detects stops (location barely changes for >5 minutes) and shows up to 5 markers. For movement, samples data points lightly.
|
|
195
|
+
*
|
|
196
|
+
* @param {Chrt.tracking.SessionByDeviceDataPointsFancyRequest} request
|
|
197
|
+
* @param {SessionByDevice.RequestOptions} requestOptions - Request-specific configuration.
|
|
198
|
+
*
|
|
199
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
200
|
+
*
|
|
201
|
+
* @example
|
|
202
|
+
* await client.tracking.sessionByDevice.dataPointsFancy({
|
|
203
|
+
* session_id: "session_id"
|
|
204
|
+
* })
|
|
205
|
+
*/
|
|
206
|
+
dataPointsFancy(request, requestOptions) {
|
|
207
|
+
return core.HttpResponsePromise.fromPromise(this.__dataPointsFancy(request, requestOptions));
|
|
208
|
+
}
|
|
209
|
+
__dataPointsFancy(request, requestOptions) {
|
|
210
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
211
|
+
var _a, _b, _c, _d, _e;
|
|
212
|
+
const { session_id: sessionId, limit } = request;
|
|
213
|
+
const _queryParams = {};
|
|
214
|
+
_queryParams["session_id"] = sessionId;
|
|
215
|
+
if (limit !== undefined) {
|
|
216
|
+
_queryParams["limit"] = (_a = limit === null || limit === void 0 ? void 0 : limit.toString()) !== null && _a !== void 0 ? _a : null;
|
|
217
|
+
}
|
|
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/session_by_device/data_points_fancy"),
|
|
220
|
+
method: "GET",
|
|
221
|
+
headers: (0, headers_js_1.mergeHeaders)((_e = this._options) === null || _e === void 0 ? void 0 : _e.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
222
|
+
queryParameters: _queryParams,
|
|
223
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
224
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
225
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
226
|
+
});
|
|
227
|
+
if (_response.ok) {
|
|
228
|
+
return {
|
|
229
|
+
data: _response.body,
|
|
230
|
+
rawResponse: _response.rawResponse,
|
|
231
|
+
};
|
|
232
|
+
}
|
|
233
|
+
if (_response.error.reason === "status-code") {
|
|
234
|
+
switch (_response.error.statusCode) {
|
|
235
|
+
case 422:
|
|
236
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
237
|
+
default:
|
|
238
|
+
throw new errors.ChrtError({
|
|
239
|
+
statusCode: _response.error.statusCode,
|
|
240
|
+
body: _response.error.body,
|
|
241
|
+
rawResponse: _response.rawResponse,
|
|
242
|
+
});
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
switch (_response.error.reason) {
|
|
246
|
+
case "non-json":
|
|
247
|
+
throw new errors.ChrtError({
|
|
248
|
+
statusCode: _response.error.statusCode,
|
|
249
|
+
body: _response.error.rawBody,
|
|
250
|
+
rawResponse: _response.rawResponse,
|
|
251
|
+
});
|
|
252
|
+
case "timeout":
|
|
253
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/session_by_device/data_points_fancy.");
|
|
254
|
+
case "unknown":
|
|
255
|
+
throw new errors.ChrtError({
|
|
256
|
+
message: _response.error.errorMessage,
|
|
257
|
+
rawResponse: _response.rawResponse,
|
|
258
|
+
});
|
|
259
|
+
}
|
|
260
|
+
});
|
|
261
|
+
}
|
|
124
262
|
/**
|
|
125
263
|
* Create a session for a device and link the device to it.
|
|
126
264
|
*
|
|
@@ -269,7 +407,7 @@ class SessionByDevice {
|
|
|
269
407
|
_queryParams["session_id"] = sessionId;
|
|
270
408
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
271
409
|
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "tracking/session_by_device/start_session"),
|
|
272
|
-
method: "
|
|
410
|
+
method: "POST",
|
|
273
411
|
headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
274
412
|
queryParameters: _queryParams,
|
|
275
413
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -299,7 +437,7 @@ class SessionByDevice {
|
|
|
299
437
|
rawResponse: _response.rawResponse,
|
|
300
438
|
});
|
|
301
439
|
case "timeout":
|
|
302
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
440
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /tracking/session_by_device/start_session.");
|
|
303
441
|
case "unknown":
|
|
304
442
|
throw new errors.ChrtError({
|
|
305
443
|
message: _response.error.errorMessage,
|
|
@@ -332,7 +470,7 @@ class SessionByDevice {
|
|
|
332
470
|
_queryParams["session_id"] = sessionId;
|
|
333
471
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
334
472
|
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "tracking/session_by_device/pause_session"),
|
|
335
|
-
method: "
|
|
473
|
+
method: "POST",
|
|
336
474
|
headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
337
475
|
queryParameters: _queryParams,
|
|
338
476
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -362,7 +500,7 @@ class SessionByDevice {
|
|
|
362
500
|
rawResponse: _response.rawResponse,
|
|
363
501
|
});
|
|
364
502
|
case "timeout":
|
|
365
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
503
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /tracking/session_by_device/pause_session.");
|
|
366
504
|
case "unknown":
|
|
367
505
|
throw new errors.ChrtError({
|
|
368
506
|
message: _response.error.errorMessage,
|
|
@@ -395,7 +533,7 @@ class SessionByDevice {
|
|
|
395
533
|
_queryParams["session_id"] = sessionId;
|
|
396
534
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
397
535
|
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "tracking/session_by_device/resume_session"),
|
|
398
|
-
method: "
|
|
536
|
+
method: "POST",
|
|
399
537
|
headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
400
538
|
queryParameters: _queryParams,
|
|
401
539
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -425,7 +563,7 @@ class SessionByDevice {
|
|
|
425
563
|
rawResponse: _response.rawResponse,
|
|
426
564
|
});
|
|
427
565
|
case "timeout":
|
|
428
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
566
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /tracking/session_by_device/resume_session.");
|
|
429
567
|
case "unknown":
|
|
430
568
|
throw new errors.ChrtError({
|
|
431
569
|
message: _response.error.errorMessage,
|
|
@@ -458,7 +596,7 @@ class SessionByDevice {
|
|
|
458
596
|
_queryParams["session_id"] = sessionId;
|
|
459
597
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
460
598
|
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "tracking/session_by_device/end_session"),
|
|
461
|
-
method: "
|
|
599
|
+
method: "POST",
|
|
462
600
|
headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
463
601
|
queryParameters: _queryParams,
|
|
464
602
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -488,7 +626,7 @@ class SessionByDevice {
|
|
|
488
626
|
rawResponse: _response.rawResponse,
|
|
489
627
|
});
|
|
490
628
|
case "timeout":
|
|
491
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
629
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /tracking/session_by_device/end_session.");
|
|
492
630
|
case "unknown":
|
|
493
631
|
throw new errors.ChrtError({
|
|
494
632
|
message: _response.error.errorMessage,
|
package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/index.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export { type SessionByDeviceLastSeenRequest } from "./SessionByDeviceLastSeenRequest.js";
|
|
2
|
+
export { type SessionByDeviceDataPointsRequest } from "./SessionByDeviceDataPointsRequest.js";
|
|
3
|
+
export { type SessionByDeviceDataPointsFancyRequest } from "./SessionByDeviceDataPointsFancyRequest.js";
|
|
2
4
|
export { type SessionByDeviceCreateSessionRequest1 } from "./SessionByDeviceCreateSessionRequest1.js";
|
|
3
5
|
export { type SessionByDeviceUpdateCommentsRequest1 } from "./SessionByDeviceUpdateCommentsRequest1.js";
|
|
4
6
|
export { type SessionByDeviceStartSessionRequest } from "./SessionByDeviceStartSessionRequest.js";
|
|
@@ -29,7 +29,7 @@ export declare class TaskGroupByDriver {
|
|
|
29
29
|
protected readonly _options: TaskGroupByDriver.Options;
|
|
30
30
|
constructor(_options?: TaskGroupByDriver.Options);
|
|
31
31
|
/**
|
|
32
|
-
* Returns the most recent data point in tracking.task_group_by_driver for the given task_group_id.
|
|
32
|
+
* Returns the most recent data point in tracking.task_group_by_driver for the given task_group_id. Data is written by the unified /driver/update endpoint.
|
|
33
33
|
*
|
|
34
34
|
* @param {Chrt.tracking.TaskGroupByDriverLastSeenRequest} request
|
|
35
35
|
* @param {TaskGroupByDriver.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -43,24 +43,5 @@ export declare class TaskGroupByDriver {
|
|
|
43
43
|
*/
|
|
44
44
|
lastSeen(request: Chrt.tracking.TaskGroupByDriverLastSeenRequest, requestOptions?: TaskGroupByDriver.RequestOptions): core.HttpResponsePromise<(Chrt.TrackingTaskGroupByDriverDataPoint1 | null) | undefined>;
|
|
45
45
|
private __lastSeen;
|
|
46
|
-
/**
|
|
47
|
-
* Writes a data point to tracking.task_group_by_driver when the task group is in progress.
|
|
48
|
-
*
|
|
49
|
-
* @param {Chrt.tracking.TaskGroupByDriverUpdateReq} request
|
|
50
|
-
* @param {TaskGroupByDriver.RequestOptions} requestOptions - Request-specific configuration.
|
|
51
|
-
*
|
|
52
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
53
|
-
*
|
|
54
|
-
* @example
|
|
55
|
-
* await client.tracking.taskGroupByDriver.update({
|
|
56
|
-
* task_group_id: "task_group_id",
|
|
57
|
-
* timestamp: "2024-01-15T09:30:00Z",
|
|
58
|
-
* location: {
|
|
59
|
-
* type: "Feature"
|
|
60
|
-
* }
|
|
61
|
-
* })
|
|
62
|
-
*/
|
|
63
|
-
update(request: Chrt.tracking.TaskGroupByDriverUpdateReq, requestOptions?: TaskGroupByDriver.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
64
|
-
private __update;
|
|
65
46
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
66
47
|
}
|
|
@@ -56,7 +56,7 @@ class TaskGroupByDriver {
|
|
|
56
56
|
this._options = _options;
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
|
-
* Returns the most recent data point in tracking.task_group_by_driver for the given task_group_id.
|
|
59
|
+
* Returns the most recent data point in tracking.task_group_by_driver for the given task_group_id. Data is written by the unified /driver/update endpoint.
|
|
60
60
|
*
|
|
61
61
|
* @param {Chrt.tracking.TaskGroupByDriverLastSeenRequest} request
|
|
62
62
|
* @param {TaskGroupByDriver.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -121,72 +121,6 @@ class TaskGroupByDriver {
|
|
|
121
121
|
}
|
|
122
122
|
});
|
|
123
123
|
}
|
|
124
|
-
/**
|
|
125
|
-
* Writes a data point to tracking.task_group_by_driver when the task group is in progress.
|
|
126
|
-
*
|
|
127
|
-
* @param {Chrt.tracking.TaskGroupByDriverUpdateReq} request
|
|
128
|
-
* @param {TaskGroupByDriver.RequestOptions} requestOptions - Request-specific configuration.
|
|
129
|
-
*
|
|
130
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
131
|
-
*
|
|
132
|
-
* @example
|
|
133
|
-
* await client.tracking.taskGroupByDriver.update({
|
|
134
|
-
* task_group_id: "task_group_id",
|
|
135
|
-
* timestamp: "2024-01-15T09:30:00Z",
|
|
136
|
-
* location: {
|
|
137
|
-
* type: "Feature"
|
|
138
|
-
* }
|
|
139
|
-
* })
|
|
140
|
-
*/
|
|
141
|
-
update(request, requestOptions) {
|
|
142
|
-
return core.HttpResponsePromise.fromPromise(this.__update(request, requestOptions));
|
|
143
|
-
}
|
|
144
|
-
__update(request, requestOptions) {
|
|
145
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
146
|
-
var _a, _b, _c, _d;
|
|
147
|
-
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
148
|
-
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "tracking/task_group_by_driver/update"),
|
|
149
|
-
method: "POST",
|
|
150
|
-
headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
151
|
-
contentType: "application/json",
|
|
152
|
-
requestType: "json",
|
|
153
|
-
body: request,
|
|
154
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
155
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
156
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
157
|
-
});
|
|
158
|
-
if (_response.ok) {
|
|
159
|
-
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
160
|
-
}
|
|
161
|
-
if (_response.error.reason === "status-code") {
|
|
162
|
-
switch (_response.error.statusCode) {
|
|
163
|
-
case 422:
|
|
164
|
-
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
165
|
-
default:
|
|
166
|
-
throw new errors.ChrtError({
|
|
167
|
-
statusCode: _response.error.statusCode,
|
|
168
|
-
body: _response.error.body,
|
|
169
|
-
rawResponse: _response.rawResponse,
|
|
170
|
-
});
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
switch (_response.error.reason) {
|
|
174
|
-
case "non-json":
|
|
175
|
-
throw new errors.ChrtError({
|
|
176
|
-
statusCode: _response.error.statusCode,
|
|
177
|
-
body: _response.error.rawBody,
|
|
178
|
-
rawResponse: _response.rawResponse,
|
|
179
|
-
});
|
|
180
|
-
case "timeout":
|
|
181
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /tracking/task_group_by_driver/update.");
|
|
182
|
-
case "unknown":
|
|
183
|
-
throw new errors.ChrtError({
|
|
184
|
-
message: _response.error.errorMessage,
|
|
185
|
-
rawResponse: _response.rawResponse,
|
|
186
|
-
});
|
|
187
|
-
}
|
|
188
|
-
});
|
|
189
|
-
}
|
|
190
124
|
_getAuthorizationHeader() {
|
|
191
125
|
return __awaiter(this, void 0, void 0, function* () {
|
|
192
126
|
const bearer = yield core.Supplier.get(this._options.token);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Response showing what was updated.
|
|
6
|
+
*/
|
|
7
|
+
export interface DriverUpdateResp {
|
|
8
|
+
driver_updated: boolean;
|
|
9
|
+
task_group_tracking_written: boolean;
|
|
10
|
+
cargo_tracking_count: number;
|
|
11
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Chrt from "../index.js";
|
|
5
|
+
export interface TrackingCargoByDeviceDataPoint1 {
|
|
6
|
+
schema_version: number;
|
|
7
|
+
timestamp: string;
|
|
8
|
+
metadata: Chrt.TrackingCargoByDeviceDataPointMetadata1;
|
|
9
|
+
location: Chrt.LocationFeature;
|
|
10
|
+
temperature?: number | null;
|
|
11
|
+
_id: string;
|
|
12
|
+
}
|
|
@@ -20,6 +20,7 @@ export * from "./DecodedJwtWithOrgAndUserId.js";
|
|
|
20
20
|
export * from "./Device1.js";
|
|
21
21
|
export * from "./Driver1.js";
|
|
22
22
|
export * from "./DriverStatusEnum.js";
|
|
23
|
+
export * from "./DriverUpdateResp.js";
|
|
23
24
|
export * from "./Expense1.js";
|
|
24
25
|
export * from "./GenerateInvoiceRes.js";
|
|
25
26
|
export * from "./GeometryCollectionInputGeometriesItem.js";
|
|
@@ -93,6 +94,8 @@ export * from "./TaskGroupsExpandedRes.js";
|
|
|
93
94
|
export * from "./TaskWithDetails.js";
|
|
94
95
|
export * from "./TemplateRes.js";
|
|
95
96
|
export * from "./TimezoneResponse.js";
|
|
97
|
+
export * from "./TrackingCargoByDeviceDataPoint1.js";
|
|
98
|
+
export * from "./TrackingCargoByDeviceDataPointMetadata1.js";
|
|
96
99
|
export * from "./TrackingCargoByDriverDataPoint1.js";
|
|
97
100
|
export * from "./TrackingCargoByDriverDataPointMetadata1.js";
|
|
98
101
|
export * from "./TrackingDeviceTypeEnum1.js";
|
|
@@ -36,6 +36,7 @@ __exportStar(require("./DecodedJwtWithOrgAndUserId.js"), exports);
|
|
|
36
36
|
__exportStar(require("./Device1.js"), exports);
|
|
37
37
|
__exportStar(require("./Driver1.js"), exports);
|
|
38
38
|
__exportStar(require("./DriverStatusEnum.js"), exports);
|
|
39
|
+
__exportStar(require("./DriverUpdateResp.js"), exports);
|
|
39
40
|
__exportStar(require("./Expense1.js"), exports);
|
|
40
41
|
__exportStar(require("./GenerateInvoiceRes.js"), exports);
|
|
41
42
|
__exportStar(require("./GeometryCollectionInputGeometriesItem.js"), exports);
|
|
@@ -109,6 +110,8 @@ __exportStar(require("./TaskGroupsExpandedRes.js"), exports);
|
|
|
109
110
|
__exportStar(require("./TaskWithDetails.js"), exports);
|
|
110
111
|
__exportStar(require("./TemplateRes.js"), exports);
|
|
111
112
|
__exportStar(require("./TimezoneResponse.js"), exports);
|
|
113
|
+
__exportStar(require("./TrackingCargoByDeviceDataPoint1.js"), exports);
|
|
114
|
+
__exportStar(require("./TrackingCargoByDeviceDataPointMetadata1.js"), exports);
|
|
112
115
|
__exportStar(require("./TrackingCargoByDriverDataPoint1.js"), exports);
|
|
113
116
|
__exportStar(require("./TrackingCargoByDriverDataPointMetadata1.js"), exports);
|
|
114
117
|
__exportStar(require("./TrackingDeviceTypeEnum1.js"), exports);
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "
|
|
1
|
+
export declare const SDK_VERSION = "1.254.0";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/Client.mjs
CHANGED
|
@@ -32,8 +32,8 @@ export class ChrtClient {
|
|
|
32
32
|
this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
|
|
33
33
|
"X-Fern-Language": "JavaScript",
|
|
34
34
|
"X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
|
|
35
|
-
"X-Fern-SDK-Version": "
|
|
36
|
-
"User-Agent": "@chrt-inc/typescript-sdk/
|
|
35
|
+
"X-Fern-SDK-Version": "1.254.0",
|
|
36
|
+
"User-Agent": "@chrt-inc/typescript-sdk/1.254.0",
|
|
37
37
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
38
38
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
39
39
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|