@chrt-inc/typescript-sdk 1.268.1 → 1.271.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 +8 -1
- package/dist/cjs/api/resources/drivers/client/Client.js +8 -1
- package/dist/cjs/api/resources/drivers/client/requests/DriverLastSeenReq.d.ts +8 -1
- package/dist/cjs/api/resources/tracking/resources/driver/client/Client.d.ts +8 -1
- package/dist/cjs/api/resources/tracking/resources/driver/client/Client.js +8 -1
- package/dist/cjs/api/resources/tracking/resources/driver/client/requests/DriverUpdateReq.d.ts +8 -1
- package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/Client.d.ts +16 -0
- package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/Client.js +70 -2
- package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceMarkOutliersRequest1.d.ts +14 -0
- package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/types/{LocationFeatureInputGeometry.d.ts → Geometry.d.ts} +2 -2
- package/dist/cjs/api/types/LocationFeature.d.ts +5 -1
- package/dist/cjs/api/types/LocationProperties.d.ts +2 -0
- package/dist/cjs/api/types/OutlierLabellerEnum.d.ts +8 -0
- package/dist/cjs/api/types/OutlierLabellerEnum.js +10 -0
- package/dist/cjs/api/types/SessionByDeviceMarkOutliersResponse1.d.ts +7 -0
- package/dist/cjs/api/types/SessionByDeviceMarkOutliersResponse1.js +5 -0
- package/dist/cjs/api/types/TrackingCargoByDeviceDataPointMetadata1.d.ts +3 -0
- package/dist/cjs/api/types/TrackingCargoByDriverDataPointMetadata1.d.ts +3 -0
- package/dist/cjs/api/types/TrackingSessionByDeviceDataPointMetadata1.d.ts +3 -0
- package/dist/cjs/api/types/TrackingTaskGroupByDriverDataPointMetadata1.d.ts +3 -0
- package/dist/cjs/api/types/index.d.ts +3 -2
- package/dist/cjs/api/types/index.js +3 -2
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.mjs +2 -2
- package/dist/esm/api/resources/drivers/client/Client.d.mts +8 -1
- package/dist/esm/api/resources/drivers/client/Client.mjs +8 -1
- package/dist/esm/api/resources/drivers/client/requests/DriverLastSeenReq.d.mts +8 -1
- package/dist/esm/api/resources/tracking/resources/driver/client/Client.d.mts +8 -1
- package/dist/esm/api/resources/tracking/resources/driver/client/Client.mjs +8 -1
- package/dist/esm/api/resources/tracking/resources/driver/client/requests/DriverUpdateReq.d.mts +8 -1
- package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/Client.d.mts +16 -0
- package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/Client.mjs +70 -2
- package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceMarkOutliersRequest1.d.mts +14 -0
- package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/index.d.mts +1 -0
- package/dist/esm/api/types/{LocationFeatureInputGeometry.d.mts → Geometry.d.mts} +2 -2
- package/dist/esm/api/types/LocationFeature.d.mts +5 -1
- package/dist/esm/api/types/LocationProperties.d.mts +2 -0
- package/dist/esm/api/types/OutlierLabellerEnum.d.mts +8 -0
- package/dist/esm/api/types/OutlierLabellerEnum.mjs +7 -0
- package/dist/esm/api/types/SessionByDeviceMarkOutliersResponse1.d.mts +7 -0
- package/dist/esm/api/types/SessionByDeviceMarkOutliersResponse1.mjs +4 -0
- package/dist/esm/api/types/TrackingCargoByDeviceDataPointMetadata1.d.mts +3 -0
- package/dist/esm/api/types/TrackingCargoByDriverDataPointMetadata1.d.mts +3 -0
- package/dist/esm/api/types/TrackingSessionByDeviceDataPointMetadata1.d.mts +3 -0
- package/dist/esm/api/types/TrackingTaskGroupByDriverDataPointMetadata1.d.mts +3 -0
- package/dist/esm/api/types/index.d.mts +3 -2
- package/dist/esm/api/types/index.mjs +3 -2
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +84 -0
- package/dist/cjs/api/types/LocationFeatureOutputGeometry.d.ts +0 -28
- package/dist/esm/api/types/LocationFeatureOutputGeometry.d.mts +0 -28
- /package/dist/cjs/api/{types/LocationFeatureInputGeometry.js → resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceMarkOutliersRequest1.js} +0 -0
- /package/dist/cjs/api/types/{LocationFeatureOutputGeometry.js → Geometry.js} +0 -0
- /package/dist/esm/api/{types/LocationFeatureInputGeometry.mjs → resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceMarkOutliersRequest1.mjs} +0 -0
- /package/dist/esm/api/types/{LocationFeatureOutputGeometry.mjs → Geometry.mjs} +0 -0
package/dist/cjs/Client.js
CHANGED
|
@@ -68,8 +68,8 @@ class ChrtClient {
|
|
|
68
68
|
this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
|
|
69
69
|
"X-Fern-Language": "JavaScript",
|
|
70
70
|
"X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
|
|
71
|
-
"X-Fern-SDK-Version": "1.
|
|
72
|
-
"User-Agent": "@chrt-inc/typescript-sdk/1.
|
|
71
|
+
"X-Fern-SDK-Version": "1.271.0",
|
|
72
|
+
"User-Agent": "@chrt-inc/typescript-sdk/1.271.0",
|
|
73
73
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
74
74
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
75
75
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -131,7 +131,14 @@ export declare class Drivers {
|
|
|
131
131
|
* @example
|
|
132
132
|
* await client.drivers.lastSeen({
|
|
133
133
|
* location: {
|
|
134
|
-
* type: "Feature"
|
|
134
|
+
* type: "Feature",
|
|
135
|
+
* geometry: {
|
|
136
|
+
* type: "GeometryCollection",
|
|
137
|
+
* geometries: [{
|
|
138
|
+
* type: "LineString",
|
|
139
|
+
* coordinates: [[]]
|
|
140
|
+
* }]
|
|
141
|
+
* }
|
|
135
142
|
* }
|
|
136
143
|
* })
|
|
137
144
|
*/
|
|
@@ -469,7 +469,14 @@ class Drivers {
|
|
|
469
469
|
* @example
|
|
470
470
|
* await client.drivers.lastSeen({
|
|
471
471
|
* location: {
|
|
472
|
-
* type: "Feature"
|
|
472
|
+
* type: "Feature",
|
|
473
|
+
* geometry: {
|
|
474
|
+
* type: "GeometryCollection",
|
|
475
|
+
* geometries: [{
|
|
476
|
+
* type: "LineString",
|
|
477
|
+
* coordinates: [[]]
|
|
478
|
+
* }]
|
|
479
|
+
* }
|
|
473
480
|
* }
|
|
474
481
|
* })
|
|
475
482
|
*/
|
|
@@ -6,7 +6,14 @@ import * as Chrt from "../../../../index.js";
|
|
|
6
6
|
* @example
|
|
7
7
|
* {
|
|
8
8
|
* location: {
|
|
9
|
-
* type: "Feature"
|
|
9
|
+
* type: "Feature",
|
|
10
|
+
* geometry: {
|
|
11
|
+
* type: "GeometryCollection",
|
|
12
|
+
* geometries: [{
|
|
13
|
+
* type: "LineString",
|
|
14
|
+
* coordinates: [[]]
|
|
15
|
+
* }]
|
|
16
|
+
* }
|
|
10
17
|
* }
|
|
11
18
|
* }
|
|
12
19
|
*/
|
|
@@ -43,7 +43,14 @@ export declare class Driver {
|
|
|
43
43
|
* task_group_id: "task_group_id",
|
|
44
44
|
* timestamp: "2024-01-15T09:30:00Z",
|
|
45
45
|
* location: {
|
|
46
|
-
* type: "Feature"
|
|
46
|
+
* type: "Feature",
|
|
47
|
+
* geometry: {
|
|
48
|
+
* type: "GeometryCollection",
|
|
49
|
+
* geometries: [{
|
|
50
|
+
* type: "LineString",
|
|
51
|
+
* coordinates: [[]]
|
|
52
|
+
* }]
|
|
53
|
+
* }
|
|
47
54
|
* }
|
|
48
55
|
* })
|
|
49
56
|
*/
|
|
@@ -68,7 +68,14 @@ class Driver {
|
|
|
68
68
|
* task_group_id: "task_group_id",
|
|
69
69
|
* timestamp: "2024-01-15T09:30:00Z",
|
|
70
70
|
* location: {
|
|
71
|
-
* type: "Feature"
|
|
71
|
+
* type: "Feature",
|
|
72
|
+
* geometry: {
|
|
73
|
+
* type: "GeometryCollection",
|
|
74
|
+
* geometries: [{
|
|
75
|
+
* type: "LineString",
|
|
76
|
+
* coordinates: [[]]
|
|
77
|
+
* }]
|
|
78
|
+
* }
|
|
72
79
|
* }
|
|
73
80
|
* })
|
|
74
81
|
*/
|
package/dist/cjs/api/resources/tracking/resources/driver/client/requests/DriverUpdateReq.d.ts
CHANGED
|
@@ -8,7 +8,14 @@ import * as Chrt from "../../../../../../index.js";
|
|
|
8
8
|
* task_group_id: "task_group_id",
|
|
9
9
|
* timestamp: "2024-01-15T09:30:00Z",
|
|
10
10
|
* location: {
|
|
11
|
-
* type: "Feature"
|
|
11
|
+
* type: "Feature",
|
|
12
|
+
* geometry: {
|
|
13
|
+
* type: "GeometryCollection",
|
|
14
|
+
* geometries: [{
|
|
15
|
+
* type: "LineString",
|
|
16
|
+
* coordinates: [[]]
|
|
17
|
+
* }]
|
|
18
|
+
* }
|
|
12
19
|
* }
|
|
13
20
|
* }
|
|
14
21
|
*/
|
|
@@ -175,6 +175,22 @@ export declare class SessionByDevice {
|
|
|
175
175
|
*/
|
|
176
176
|
terminate(request: Chrt.tracking.SessionByDeviceTerminateRequest, requestOptions?: SessionByDevice.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
177
177
|
private __terminate;
|
|
178
|
+
/**
|
|
179
|
+
* Mark data points as outliers or non-outliers. Uses atomic delete + insert strategy for time-series collection updates.
|
|
180
|
+
*
|
|
181
|
+
* @param {Chrt.tracking.SessionByDeviceMarkOutliersRequest1} request
|
|
182
|
+
* @param {SessionByDevice.RequestOptions} requestOptions - Request-specific configuration.
|
|
183
|
+
*
|
|
184
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
185
|
+
*
|
|
186
|
+
* @example
|
|
187
|
+
* await client.tracking.sessionByDevice.outlier({
|
|
188
|
+
* tracking_session_by_device_data_point_ids: ["tracking_session_by_device_data_point_ids"],
|
|
189
|
+
* outlier: true
|
|
190
|
+
* })
|
|
191
|
+
*/
|
|
192
|
+
outlier(request: Chrt.tracking.SessionByDeviceMarkOutliersRequest1, requestOptions?: SessionByDevice.RequestOptions): core.HttpResponsePromise<Chrt.SessionByDeviceMarkOutliersResponse1>;
|
|
193
|
+
private __outlier;
|
|
178
194
|
/**
|
|
179
195
|
* Delete a terminated session and all associated timeseries data.
|
|
180
196
|
*
|
|
@@ -691,6 +691,74 @@ class SessionByDevice {
|
|
|
691
691
|
}
|
|
692
692
|
});
|
|
693
693
|
}
|
|
694
|
+
/**
|
|
695
|
+
* Mark data points as outliers or non-outliers. Uses atomic delete + insert strategy for time-series collection updates.
|
|
696
|
+
*
|
|
697
|
+
* @param {Chrt.tracking.SessionByDeviceMarkOutliersRequest1} request
|
|
698
|
+
* @param {SessionByDevice.RequestOptions} requestOptions - Request-specific configuration.
|
|
699
|
+
*
|
|
700
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
701
|
+
*
|
|
702
|
+
* @example
|
|
703
|
+
* await client.tracking.sessionByDevice.outlier({
|
|
704
|
+
* tracking_session_by_device_data_point_ids: ["tracking_session_by_device_data_point_ids"],
|
|
705
|
+
* outlier: true
|
|
706
|
+
* })
|
|
707
|
+
*/
|
|
708
|
+
outlier(request, requestOptions) {
|
|
709
|
+
return core.HttpResponsePromise.fromPromise(this.__outlier(request, requestOptions));
|
|
710
|
+
}
|
|
711
|
+
__outlier(request, requestOptions) {
|
|
712
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
713
|
+
var _a, _b, _c, _d;
|
|
714
|
+
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);
|
|
715
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
716
|
+
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/outlier"),
|
|
717
|
+
method: "POST",
|
|
718
|
+
headers: _headers,
|
|
719
|
+
contentType: "application/json",
|
|
720
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
721
|
+
requestType: "json",
|
|
722
|
+
body: request,
|
|
723
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
724
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
725
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
726
|
+
});
|
|
727
|
+
if (_response.ok) {
|
|
728
|
+
return {
|
|
729
|
+
data: _response.body,
|
|
730
|
+
rawResponse: _response.rawResponse,
|
|
731
|
+
};
|
|
732
|
+
}
|
|
733
|
+
if (_response.error.reason === "status-code") {
|
|
734
|
+
switch (_response.error.statusCode) {
|
|
735
|
+
case 422:
|
|
736
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
737
|
+
default:
|
|
738
|
+
throw new errors.ChrtError({
|
|
739
|
+
statusCode: _response.error.statusCode,
|
|
740
|
+
body: _response.error.body,
|
|
741
|
+
rawResponse: _response.rawResponse,
|
|
742
|
+
});
|
|
743
|
+
}
|
|
744
|
+
}
|
|
745
|
+
switch (_response.error.reason) {
|
|
746
|
+
case "non-json":
|
|
747
|
+
throw new errors.ChrtError({
|
|
748
|
+
statusCode: _response.error.statusCode,
|
|
749
|
+
body: _response.error.rawBody,
|
|
750
|
+
rawResponse: _response.rawResponse,
|
|
751
|
+
});
|
|
752
|
+
case "timeout":
|
|
753
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /tracking/session_by_device/outlier.");
|
|
754
|
+
case "unknown":
|
|
755
|
+
throw new errors.ChrtError({
|
|
756
|
+
message: _response.error.errorMessage,
|
|
757
|
+
rawResponse: _response.rawResponse,
|
|
758
|
+
});
|
|
759
|
+
}
|
|
760
|
+
});
|
|
761
|
+
}
|
|
694
762
|
/**
|
|
695
763
|
* Delete a terminated session and all associated timeseries data.
|
|
696
764
|
*
|
|
@@ -849,7 +917,7 @@ class SessionByDevice {
|
|
|
849
917
|
}
|
|
850
918
|
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);
|
|
851
919
|
const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
|
|
852
|
-
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/session_by_device/
|
|
920
|
+
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/session_by_device/data_points_public"),
|
|
853
921
|
method: "GET",
|
|
854
922
|
headers: _headers,
|
|
855
923
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -883,7 +951,7 @@ class SessionByDevice {
|
|
|
883
951
|
rawResponse: _response.rawResponse,
|
|
884
952
|
});
|
|
885
953
|
case "timeout":
|
|
886
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/session_by_device/
|
|
954
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/session_by_device/data_points_public.");
|
|
887
955
|
case "unknown":
|
|
888
956
|
throw new errors.ChrtError({
|
|
889
957
|
message: _response.error.errorMessage,
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* tracking_session_by_device_data_point_ids: ["tracking_session_by_device_data_point_ids"],
|
|
8
|
+
* outlier: true
|
|
9
|
+
* }
|
|
10
|
+
*/
|
|
11
|
+
export interface SessionByDeviceMarkOutliersRequest1 {
|
|
12
|
+
tracking_session_by_device_data_point_ids: string[];
|
|
13
|
+
outlier: boolean;
|
|
14
|
+
}
|
package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export { type SessionByDeviceStartRequest } from "./SessionByDeviceStartRequest.
|
|
|
7
7
|
export { type SessionByDevicePauseRecordingRequest } from "./SessionByDevicePauseRecordingRequest.js";
|
|
8
8
|
export { type SessionByDeviceResumeRecordingRequest } from "./SessionByDeviceResumeRecordingRequest.js";
|
|
9
9
|
export { type SessionByDeviceTerminateRequest } from "./SessionByDeviceTerminateRequest.js";
|
|
10
|
+
export { type SessionByDeviceMarkOutliersRequest1 } from "./SessionByDeviceMarkOutliersRequest1.js";
|
|
10
11
|
export { type SessionByDeviceDeleteRequest } from "./SessionByDeviceDeleteRequest.js";
|
|
11
12
|
export { type SessionByDeviceLastSeenPublicRequest } from "./SessionByDeviceLastSeenPublicRequest.js";
|
|
12
13
|
export { type SessionByDeviceDataPointsPublicRequest } from "./SessionByDeviceDataPointsPublicRequest.js";
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Chrt from "../index.js";
|
|
5
|
-
export type
|
|
6
|
-
export declare namespace
|
|
5
|
+
export type Geometry = Chrt.Geometry.GeometryCollection | Chrt.Geometry.LineString | Chrt.Geometry.MultiLineString | Chrt.Geometry.MultiPoint | Chrt.Geometry.MultiPolygon | Chrt.Geometry.Point | Chrt.Geometry.Polygon;
|
|
6
|
+
export declare namespace Geometry {
|
|
7
7
|
interface GeometryCollection extends Chrt.GeometryCollection {
|
|
8
8
|
type: "GeometryCollection";
|
|
9
9
|
}
|
|
@@ -4,11 +4,15 @@
|
|
|
4
4
|
import * as Chrt from "../index.js";
|
|
5
5
|
/**
|
|
6
6
|
* GeoJSON Feature with typed properties for locations
|
|
7
|
+
*
|
|
8
|
+
* The geometry field is strongly typed as Geometry (union of all geometry types)
|
|
9
|
+
* but remains optional to match the base Feature class specification.
|
|
10
|
+
* To ensure geometry is always present, validate it at runtime or make it required.
|
|
7
11
|
*/
|
|
8
12
|
export interface LocationFeature {
|
|
9
13
|
bbox?: unknown[];
|
|
10
14
|
type: "Feature";
|
|
11
|
-
geometry
|
|
15
|
+
geometry: Chrt.Geometry;
|
|
12
16
|
properties?: Chrt.LocationProperties | null;
|
|
13
17
|
id?: LocationFeature.Id | null;
|
|
14
18
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.OutlierLabellerEnum = void 0;
|
|
7
|
+
exports.OutlierLabellerEnum = {
|
|
8
|
+
Movingpandas: "movingpandas",
|
|
9
|
+
User: "user",
|
|
10
|
+
};
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
import * as Chrt from "../index.js";
|
|
4
5
|
export interface TrackingCargoByDeviceDataPointMetadata1 {
|
|
5
6
|
device_id: string;
|
|
6
7
|
cargo_id: string;
|
|
7
8
|
task_group_id: string;
|
|
9
|
+
outlier?: boolean | null;
|
|
10
|
+
outlier_labeller?: Chrt.OutlierLabellerEnum | null;
|
|
8
11
|
}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
import * as Chrt from "../index.js";
|
|
4
5
|
export interface TrackingCargoByDriverDataPointMetadata1 {
|
|
5
6
|
driver_id: string;
|
|
6
7
|
cargo_id: string;
|
|
7
8
|
task_group_id: string;
|
|
9
|
+
outlier?: boolean | null;
|
|
10
|
+
outlier_labeller?: Chrt.OutlierLabellerEnum | null;
|
|
8
11
|
}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
import * as Chrt from "../index.js";
|
|
4
5
|
export interface TrackingSessionByDeviceDataPointMetadata1 {
|
|
5
6
|
session_id: string;
|
|
7
|
+
outlier?: boolean | null;
|
|
8
|
+
outlier_labeller?: Chrt.OutlierLabellerEnum | null;
|
|
6
9
|
}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
import * as Chrt from "../index.js";
|
|
4
5
|
export interface TrackingTaskGroupByDriverDataPointMetadata1 {
|
|
5
6
|
driver_id: string;
|
|
6
7
|
task_group_id: string;
|
|
8
|
+
outlier?: boolean | null;
|
|
9
|
+
outlier_labeller?: Chrt.OutlierLabellerEnum | null;
|
|
7
10
|
}
|
|
@@ -34,9 +34,8 @@ export * from "./LineItem1.js";
|
|
|
34
34
|
export * from "./LineItemClientCreate1.js";
|
|
35
35
|
export * from "./LineItemEnum1.js";
|
|
36
36
|
export * from "./LineString.js";
|
|
37
|
-
export * from "./
|
|
37
|
+
export * from "./Geometry.js";
|
|
38
38
|
export * from "./LocationFeature.js";
|
|
39
|
-
export * from "./LocationFeatureOutputGeometry.js";
|
|
40
39
|
export * from "./LocationProperties.js";
|
|
41
40
|
export * from "./Milestone1.js";
|
|
42
41
|
export * from "./MilestoneClientCreate1.js";
|
|
@@ -58,6 +57,7 @@ export * from "./OrderStatusEnum1.js";
|
|
|
58
57
|
export * from "./OrgMemberDetails.js";
|
|
59
58
|
export * from "./OrgMembersAndDrivers.js";
|
|
60
59
|
export * from "./OrgPublicData2.js";
|
|
60
|
+
export * from "./OutlierLabellerEnum.js";
|
|
61
61
|
export * from "./PaymentPreviewResponse.js";
|
|
62
62
|
export * from "./PayoutStatusEnum.js";
|
|
63
63
|
export * from "./Point.js";
|
|
@@ -68,6 +68,7 @@ export * from "./PriceNameEnum.js";
|
|
|
68
68
|
export * from "./RouteTypeEnum1.js";
|
|
69
69
|
export * from "./Session1.js";
|
|
70
70
|
export * from "./SessionByDeviceDeleteResponse1.js";
|
|
71
|
+
export * from "./SessionByDeviceMarkOutliersResponse1.js";
|
|
71
72
|
export * from "./ShipperContactInfo1.js";
|
|
72
73
|
export * from "./ShipperContactInfoClientCreate1.js";
|
|
73
74
|
export * from "./ShipperNotificationEventEnum.js";
|
|
@@ -50,9 +50,8 @@ __exportStar(require("./LineItem1.js"), exports);
|
|
|
50
50
|
__exportStar(require("./LineItemClientCreate1.js"), exports);
|
|
51
51
|
__exportStar(require("./LineItemEnum1.js"), exports);
|
|
52
52
|
__exportStar(require("./LineString.js"), exports);
|
|
53
|
-
__exportStar(require("./
|
|
53
|
+
__exportStar(require("./Geometry.js"), exports);
|
|
54
54
|
__exportStar(require("./LocationFeature.js"), exports);
|
|
55
|
-
__exportStar(require("./LocationFeatureOutputGeometry.js"), exports);
|
|
56
55
|
__exportStar(require("./LocationProperties.js"), exports);
|
|
57
56
|
__exportStar(require("./Milestone1.js"), exports);
|
|
58
57
|
__exportStar(require("./MilestoneClientCreate1.js"), exports);
|
|
@@ -74,6 +73,7 @@ __exportStar(require("./OrderStatusEnum1.js"), exports);
|
|
|
74
73
|
__exportStar(require("./OrgMemberDetails.js"), exports);
|
|
75
74
|
__exportStar(require("./OrgMembersAndDrivers.js"), exports);
|
|
76
75
|
__exportStar(require("./OrgPublicData2.js"), exports);
|
|
76
|
+
__exportStar(require("./OutlierLabellerEnum.js"), exports);
|
|
77
77
|
__exportStar(require("./PaymentPreviewResponse.js"), exports);
|
|
78
78
|
__exportStar(require("./PayoutStatusEnum.js"), exports);
|
|
79
79
|
__exportStar(require("./Point.js"), exports);
|
|
@@ -84,6 +84,7 @@ __exportStar(require("./PriceNameEnum.js"), exports);
|
|
|
84
84
|
__exportStar(require("./RouteTypeEnum1.js"), exports);
|
|
85
85
|
__exportStar(require("./Session1.js"), exports);
|
|
86
86
|
__exportStar(require("./SessionByDeviceDeleteResponse1.js"), exports);
|
|
87
|
+
__exportStar(require("./SessionByDeviceMarkOutliersResponse1.js"), exports);
|
|
87
88
|
__exportStar(require("./ShipperContactInfo1.js"), exports);
|
|
88
89
|
__exportStar(require("./ShipperContactInfoClientCreate1.js"), exports);
|
|
89
90
|
__exportStar(require("./ShipperNotificationEventEnum.js"), exports);
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.
|
|
1
|
+
export declare const SDK_VERSION = "1.271.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": "1.
|
|
36
|
-
"User-Agent": "@chrt-inc/typescript-sdk/1.
|
|
35
|
+
"X-Fern-SDK-Version": "1.271.0",
|
|
36
|
+
"User-Agent": "@chrt-inc/typescript-sdk/1.271.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) });
|
|
@@ -131,7 +131,14 @@ export declare class Drivers {
|
|
|
131
131
|
* @example
|
|
132
132
|
* await client.drivers.lastSeen({
|
|
133
133
|
* location: {
|
|
134
|
-
* type: "Feature"
|
|
134
|
+
* type: "Feature",
|
|
135
|
+
* geometry: {
|
|
136
|
+
* type: "GeometryCollection",
|
|
137
|
+
* geometries: [{
|
|
138
|
+
* type: "LineString",
|
|
139
|
+
* coordinates: [[]]
|
|
140
|
+
* }]
|
|
141
|
+
* }
|
|
135
142
|
* }
|
|
136
143
|
* })
|
|
137
144
|
*/
|
|
@@ -433,7 +433,14 @@ export class Drivers {
|
|
|
433
433
|
* @example
|
|
434
434
|
* await client.drivers.lastSeen({
|
|
435
435
|
* location: {
|
|
436
|
-
* type: "Feature"
|
|
436
|
+
* type: "Feature",
|
|
437
|
+
* geometry: {
|
|
438
|
+
* type: "GeometryCollection",
|
|
439
|
+
* geometries: [{
|
|
440
|
+
* type: "LineString",
|
|
441
|
+
* coordinates: [[]]
|
|
442
|
+
* }]
|
|
443
|
+
* }
|
|
437
444
|
* }
|
|
438
445
|
* })
|
|
439
446
|
*/
|
|
@@ -6,7 +6,14 @@ import * as Chrt from "../../../../index.mjs";
|
|
|
6
6
|
* @example
|
|
7
7
|
* {
|
|
8
8
|
* location: {
|
|
9
|
-
* type: "Feature"
|
|
9
|
+
* type: "Feature",
|
|
10
|
+
* geometry: {
|
|
11
|
+
* type: "GeometryCollection",
|
|
12
|
+
* geometries: [{
|
|
13
|
+
* type: "LineString",
|
|
14
|
+
* coordinates: [[]]
|
|
15
|
+
* }]
|
|
16
|
+
* }
|
|
10
17
|
* }
|
|
11
18
|
* }
|
|
12
19
|
*/
|
|
@@ -43,7 +43,14 @@ export declare class Driver {
|
|
|
43
43
|
* task_group_id: "task_group_id",
|
|
44
44
|
* timestamp: "2024-01-15T09:30:00Z",
|
|
45
45
|
* location: {
|
|
46
|
-
* type: "Feature"
|
|
46
|
+
* type: "Feature",
|
|
47
|
+
* geometry: {
|
|
48
|
+
* type: "GeometryCollection",
|
|
49
|
+
* geometries: [{
|
|
50
|
+
* type: "LineString",
|
|
51
|
+
* coordinates: [[]]
|
|
52
|
+
* }]
|
|
53
|
+
* }
|
|
47
54
|
* }
|
|
48
55
|
* })
|
|
49
56
|
*/
|
|
@@ -32,7 +32,14 @@ export class Driver {
|
|
|
32
32
|
* task_group_id: "task_group_id",
|
|
33
33
|
* timestamp: "2024-01-15T09:30:00Z",
|
|
34
34
|
* location: {
|
|
35
|
-
* type: "Feature"
|
|
35
|
+
* type: "Feature",
|
|
36
|
+
* geometry: {
|
|
37
|
+
* type: "GeometryCollection",
|
|
38
|
+
* geometries: [{
|
|
39
|
+
* type: "LineString",
|
|
40
|
+
* coordinates: [[]]
|
|
41
|
+
* }]
|
|
42
|
+
* }
|
|
36
43
|
* }
|
|
37
44
|
* })
|
|
38
45
|
*/
|
package/dist/esm/api/resources/tracking/resources/driver/client/requests/DriverUpdateReq.d.mts
CHANGED
|
@@ -8,7 +8,14 @@ import * as Chrt from "../../../../../../index.mjs";
|
|
|
8
8
|
* task_group_id: "task_group_id",
|
|
9
9
|
* timestamp: "2024-01-15T09:30:00Z",
|
|
10
10
|
* location: {
|
|
11
|
-
* type: "Feature"
|
|
11
|
+
* type: "Feature",
|
|
12
|
+
* geometry: {
|
|
13
|
+
* type: "GeometryCollection",
|
|
14
|
+
* geometries: [{
|
|
15
|
+
* type: "LineString",
|
|
16
|
+
* coordinates: [[]]
|
|
17
|
+
* }]
|
|
18
|
+
* }
|
|
12
19
|
* }
|
|
13
20
|
* }
|
|
14
21
|
*/
|
|
@@ -175,6 +175,22 @@ export declare class SessionByDevice {
|
|
|
175
175
|
*/
|
|
176
176
|
terminate(request: Chrt.tracking.SessionByDeviceTerminateRequest, requestOptions?: SessionByDevice.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
177
177
|
private __terminate;
|
|
178
|
+
/**
|
|
179
|
+
* Mark data points as outliers or non-outliers. Uses atomic delete + insert strategy for time-series collection updates.
|
|
180
|
+
*
|
|
181
|
+
* @param {Chrt.tracking.SessionByDeviceMarkOutliersRequest1} request
|
|
182
|
+
* @param {SessionByDevice.RequestOptions} requestOptions - Request-specific configuration.
|
|
183
|
+
*
|
|
184
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
185
|
+
*
|
|
186
|
+
* @example
|
|
187
|
+
* await client.tracking.sessionByDevice.outlier({
|
|
188
|
+
* tracking_session_by_device_data_point_ids: ["tracking_session_by_device_data_point_ids"],
|
|
189
|
+
* outlier: true
|
|
190
|
+
* })
|
|
191
|
+
*/
|
|
192
|
+
outlier(request: Chrt.tracking.SessionByDeviceMarkOutliersRequest1, requestOptions?: SessionByDevice.RequestOptions): core.HttpResponsePromise<Chrt.SessionByDeviceMarkOutliersResponse1>;
|
|
193
|
+
private __outlier;
|
|
178
194
|
/**
|
|
179
195
|
* Delete a terminated session and all associated timeseries data.
|
|
180
196
|
*
|
|
@@ -655,6 +655,74 @@ export class SessionByDevice {
|
|
|
655
655
|
}
|
|
656
656
|
});
|
|
657
657
|
}
|
|
658
|
+
/**
|
|
659
|
+
* Mark data points as outliers or non-outliers. Uses atomic delete + insert strategy for time-series collection updates.
|
|
660
|
+
*
|
|
661
|
+
* @param {Chrt.tracking.SessionByDeviceMarkOutliersRequest1} request
|
|
662
|
+
* @param {SessionByDevice.RequestOptions} requestOptions - Request-specific configuration.
|
|
663
|
+
*
|
|
664
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
665
|
+
*
|
|
666
|
+
* @example
|
|
667
|
+
* await client.tracking.sessionByDevice.outlier({
|
|
668
|
+
* tracking_session_by_device_data_point_ids: ["tracking_session_by_device_data_point_ids"],
|
|
669
|
+
* outlier: true
|
|
670
|
+
* })
|
|
671
|
+
*/
|
|
672
|
+
outlier(request, requestOptions) {
|
|
673
|
+
return core.HttpResponsePromise.fromPromise(this.__outlier(request, requestOptions));
|
|
674
|
+
}
|
|
675
|
+
__outlier(request, requestOptions) {
|
|
676
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
677
|
+
var _a, _b, _c, _d;
|
|
678
|
+
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);
|
|
679
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
680
|
+
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/outlier"),
|
|
681
|
+
method: "POST",
|
|
682
|
+
headers: _headers,
|
|
683
|
+
contentType: "application/json",
|
|
684
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
685
|
+
requestType: "json",
|
|
686
|
+
body: request,
|
|
687
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
688
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
689
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
690
|
+
});
|
|
691
|
+
if (_response.ok) {
|
|
692
|
+
return {
|
|
693
|
+
data: _response.body,
|
|
694
|
+
rawResponse: _response.rawResponse,
|
|
695
|
+
};
|
|
696
|
+
}
|
|
697
|
+
if (_response.error.reason === "status-code") {
|
|
698
|
+
switch (_response.error.statusCode) {
|
|
699
|
+
case 422:
|
|
700
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
701
|
+
default:
|
|
702
|
+
throw new errors.ChrtError({
|
|
703
|
+
statusCode: _response.error.statusCode,
|
|
704
|
+
body: _response.error.body,
|
|
705
|
+
rawResponse: _response.rawResponse,
|
|
706
|
+
});
|
|
707
|
+
}
|
|
708
|
+
}
|
|
709
|
+
switch (_response.error.reason) {
|
|
710
|
+
case "non-json":
|
|
711
|
+
throw new errors.ChrtError({
|
|
712
|
+
statusCode: _response.error.statusCode,
|
|
713
|
+
body: _response.error.rawBody,
|
|
714
|
+
rawResponse: _response.rawResponse,
|
|
715
|
+
});
|
|
716
|
+
case "timeout":
|
|
717
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /tracking/session_by_device/outlier.");
|
|
718
|
+
case "unknown":
|
|
719
|
+
throw new errors.ChrtError({
|
|
720
|
+
message: _response.error.errorMessage,
|
|
721
|
+
rawResponse: _response.rawResponse,
|
|
722
|
+
});
|
|
723
|
+
}
|
|
724
|
+
});
|
|
725
|
+
}
|
|
658
726
|
/**
|
|
659
727
|
* Delete a terminated session and all associated timeseries data.
|
|
660
728
|
*
|
|
@@ -813,7 +881,7 @@ export class SessionByDevice {
|
|
|
813
881
|
}
|
|
814
882
|
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);
|
|
815
883
|
const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
|
|
816
|
-
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/session_by_device/
|
|
884
|
+
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/session_by_device/data_points_public"),
|
|
817
885
|
method: "GET",
|
|
818
886
|
headers: _headers,
|
|
819
887
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -847,7 +915,7 @@ export class SessionByDevice {
|
|
|
847
915
|
rawResponse: _response.rawResponse,
|
|
848
916
|
});
|
|
849
917
|
case "timeout":
|
|
850
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/session_by_device/
|
|
918
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/session_by_device/data_points_public.");
|
|
851
919
|
case "unknown":
|
|
852
920
|
throw new errors.ChrtError({
|
|
853
921
|
message: _response.error.errorMessage,
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* tracking_session_by_device_data_point_ids: ["tracking_session_by_device_data_point_ids"],
|
|
8
|
+
* outlier: true
|
|
9
|
+
* }
|
|
10
|
+
*/
|
|
11
|
+
export interface SessionByDeviceMarkOutliersRequest1 {
|
|
12
|
+
tracking_session_by_device_data_point_ids: string[];
|
|
13
|
+
outlier: boolean;
|
|
14
|
+
}
|
package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/index.d.mts
CHANGED
|
@@ -7,6 +7,7 @@ export { type SessionByDeviceStartRequest } from "./SessionByDeviceStartRequest.
|
|
|
7
7
|
export { type SessionByDevicePauseRecordingRequest } from "./SessionByDevicePauseRecordingRequest.mjs";
|
|
8
8
|
export { type SessionByDeviceResumeRecordingRequest } from "./SessionByDeviceResumeRecordingRequest.mjs";
|
|
9
9
|
export { type SessionByDeviceTerminateRequest } from "./SessionByDeviceTerminateRequest.mjs";
|
|
10
|
+
export { type SessionByDeviceMarkOutliersRequest1 } from "./SessionByDeviceMarkOutliersRequest1.mjs";
|
|
10
11
|
export { type SessionByDeviceDeleteRequest } from "./SessionByDeviceDeleteRequest.mjs";
|
|
11
12
|
export { type SessionByDeviceLastSeenPublicRequest } from "./SessionByDeviceLastSeenPublicRequest.mjs";
|
|
12
13
|
export { type SessionByDeviceDataPointsPublicRequest } from "./SessionByDeviceDataPointsPublicRequest.mjs";
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Chrt from "../index.mjs";
|
|
5
|
-
export type
|
|
6
|
-
export declare namespace
|
|
5
|
+
export type Geometry = Chrt.Geometry.GeometryCollection | Chrt.Geometry.LineString | Chrt.Geometry.MultiLineString | Chrt.Geometry.MultiPoint | Chrt.Geometry.MultiPolygon | Chrt.Geometry.Point | Chrt.Geometry.Polygon;
|
|
6
|
+
export declare namespace Geometry {
|
|
7
7
|
interface GeometryCollection extends Chrt.GeometryCollection {
|
|
8
8
|
type: "GeometryCollection";
|
|
9
9
|
}
|
|
@@ -4,11 +4,15 @@
|
|
|
4
4
|
import * as Chrt from "../index.mjs";
|
|
5
5
|
/**
|
|
6
6
|
* GeoJSON Feature with typed properties for locations
|
|
7
|
+
*
|
|
8
|
+
* The geometry field is strongly typed as Geometry (union of all geometry types)
|
|
9
|
+
* but remains optional to match the base Feature class specification.
|
|
10
|
+
* To ensure geometry is always present, validate it at runtime or make it required.
|
|
7
11
|
*/
|
|
8
12
|
export interface LocationFeature {
|
|
9
13
|
bbox?: unknown[];
|
|
10
14
|
type: "Feature";
|
|
11
|
-
geometry
|
|
15
|
+
geometry: Chrt.Geometry;
|
|
12
16
|
properties?: Chrt.LocationProperties | null;
|
|
13
17
|
id?: LocationFeature.Id | null;
|
|
14
18
|
}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
import * as Chrt from "../index.mjs";
|
|
4
5
|
export interface TrackingCargoByDeviceDataPointMetadata1 {
|
|
5
6
|
device_id: string;
|
|
6
7
|
cargo_id: string;
|
|
7
8
|
task_group_id: string;
|
|
9
|
+
outlier?: boolean | null;
|
|
10
|
+
outlier_labeller?: Chrt.OutlierLabellerEnum | null;
|
|
8
11
|
}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
import * as Chrt from "../index.mjs";
|
|
4
5
|
export interface TrackingCargoByDriverDataPointMetadata1 {
|
|
5
6
|
driver_id: string;
|
|
6
7
|
cargo_id: string;
|
|
7
8
|
task_group_id: string;
|
|
9
|
+
outlier?: boolean | null;
|
|
10
|
+
outlier_labeller?: Chrt.OutlierLabellerEnum | null;
|
|
8
11
|
}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
import * as Chrt from "../index.mjs";
|
|
4
5
|
export interface TrackingSessionByDeviceDataPointMetadata1 {
|
|
5
6
|
session_id: string;
|
|
7
|
+
outlier?: boolean | null;
|
|
8
|
+
outlier_labeller?: Chrt.OutlierLabellerEnum | null;
|
|
6
9
|
}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
import * as Chrt from "../index.mjs";
|
|
4
5
|
export interface TrackingTaskGroupByDriverDataPointMetadata1 {
|
|
5
6
|
driver_id: string;
|
|
6
7
|
task_group_id: string;
|
|
8
|
+
outlier?: boolean | null;
|
|
9
|
+
outlier_labeller?: Chrt.OutlierLabellerEnum | null;
|
|
7
10
|
}
|
|
@@ -34,9 +34,8 @@ export * from "./LineItem1.mjs";
|
|
|
34
34
|
export * from "./LineItemClientCreate1.mjs";
|
|
35
35
|
export * from "./LineItemEnum1.mjs";
|
|
36
36
|
export * from "./LineString.mjs";
|
|
37
|
-
export * from "./
|
|
37
|
+
export * from "./Geometry.mjs";
|
|
38
38
|
export * from "./LocationFeature.mjs";
|
|
39
|
-
export * from "./LocationFeatureOutputGeometry.mjs";
|
|
40
39
|
export * from "./LocationProperties.mjs";
|
|
41
40
|
export * from "./Milestone1.mjs";
|
|
42
41
|
export * from "./MilestoneClientCreate1.mjs";
|
|
@@ -58,6 +57,7 @@ export * from "./OrderStatusEnum1.mjs";
|
|
|
58
57
|
export * from "./OrgMemberDetails.mjs";
|
|
59
58
|
export * from "./OrgMembersAndDrivers.mjs";
|
|
60
59
|
export * from "./OrgPublicData2.mjs";
|
|
60
|
+
export * from "./OutlierLabellerEnum.mjs";
|
|
61
61
|
export * from "./PaymentPreviewResponse.mjs";
|
|
62
62
|
export * from "./PayoutStatusEnum.mjs";
|
|
63
63
|
export * from "./Point.mjs";
|
|
@@ -68,6 +68,7 @@ export * from "./PriceNameEnum.mjs";
|
|
|
68
68
|
export * from "./RouteTypeEnum1.mjs";
|
|
69
69
|
export * from "./Session1.mjs";
|
|
70
70
|
export * from "./SessionByDeviceDeleteResponse1.mjs";
|
|
71
|
+
export * from "./SessionByDeviceMarkOutliersResponse1.mjs";
|
|
71
72
|
export * from "./ShipperContactInfo1.mjs";
|
|
72
73
|
export * from "./ShipperContactInfoClientCreate1.mjs";
|
|
73
74
|
export * from "./ShipperNotificationEventEnum.mjs";
|
|
@@ -34,9 +34,8 @@ export * from "./LineItem1.mjs";
|
|
|
34
34
|
export * from "./LineItemClientCreate1.mjs";
|
|
35
35
|
export * from "./LineItemEnum1.mjs";
|
|
36
36
|
export * from "./LineString.mjs";
|
|
37
|
-
export * from "./
|
|
37
|
+
export * from "./Geometry.mjs";
|
|
38
38
|
export * from "./LocationFeature.mjs";
|
|
39
|
-
export * from "./LocationFeatureOutputGeometry.mjs";
|
|
40
39
|
export * from "./LocationProperties.mjs";
|
|
41
40
|
export * from "./Milestone1.mjs";
|
|
42
41
|
export * from "./MilestoneClientCreate1.mjs";
|
|
@@ -58,6 +57,7 @@ export * from "./OrderStatusEnum1.mjs";
|
|
|
58
57
|
export * from "./OrgMemberDetails.mjs";
|
|
59
58
|
export * from "./OrgMembersAndDrivers.mjs";
|
|
60
59
|
export * from "./OrgPublicData2.mjs";
|
|
60
|
+
export * from "./OutlierLabellerEnum.mjs";
|
|
61
61
|
export * from "./PaymentPreviewResponse.mjs";
|
|
62
62
|
export * from "./PayoutStatusEnum.mjs";
|
|
63
63
|
export * from "./Point.mjs";
|
|
@@ -68,6 +68,7 @@ export * from "./PriceNameEnum.mjs";
|
|
|
68
68
|
export * from "./RouteTypeEnum1.mjs";
|
|
69
69
|
export * from "./Session1.mjs";
|
|
70
70
|
export * from "./SessionByDeviceDeleteResponse1.mjs";
|
|
71
|
+
export * from "./SessionByDeviceMarkOutliersResponse1.mjs";
|
|
71
72
|
export * from "./ShipperContactInfo1.mjs";
|
|
72
73
|
export * from "./ShipperContactInfoClientCreate1.mjs";
|
|
73
74
|
export * from "./ShipperNotificationEventEnum.mjs";
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.
|
|
1
|
+
export declare const SDK_VERSION = "1.271.0";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "1.
|
|
1
|
+
export const SDK_VERSION = "1.271.0";
|
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -802,6 +802,15 @@ Updates the driver's last known location and timestamp for tracking purposes.
|
|
|
802
802
|
await client.drivers.lastSeen({
|
|
803
803
|
location: {
|
|
804
804
|
type: "Feature",
|
|
805
|
+
geometry: {
|
|
806
|
+
type: "GeometryCollection",
|
|
807
|
+
geometries: [
|
|
808
|
+
{
|
|
809
|
+
type: "LineString",
|
|
810
|
+
coordinates: [[]],
|
|
811
|
+
},
|
|
812
|
+
],
|
|
813
|
+
},
|
|
805
814
|
},
|
|
806
815
|
});
|
|
807
816
|
```
|
|
@@ -8921,6 +8930,15 @@ await client.tracking.driver.update({
|
|
|
8921
8930
|
timestamp: "2024-01-15T09:30:00Z",
|
|
8922
8931
|
location: {
|
|
8923
8932
|
type: "Feature",
|
|
8933
|
+
geometry: {
|
|
8934
|
+
type: "GeometryCollection",
|
|
8935
|
+
geometries: [
|
|
8936
|
+
{
|
|
8937
|
+
type: "LineString",
|
|
8938
|
+
coordinates: [[]],
|
|
8939
|
+
},
|
|
8940
|
+
],
|
|
8941
|
+
},
|
|
8924
8942
|
},
|
|
8925
8943
|
});
|
|
8926
8944
|
```
|
|
@@ -9599,6 +9617,72 @@ await client.tracking.sessionByDevice.terminate({
|
|
|
9599
9617
|
</dl>
|
|
9600
9618
|
</details>
|
|
9601
9619
|
|
|
9620
|
+
<details><summary><code>client.tracking.sessionByDevice.<a href="/src/api/resources/tracking/resources/sessionByDevice/client/Client.ts">outlier</a>({ ...params }) -> Chrt.SessionByDeviceMarkOutliersResponse1</code></summary>
|
|
9621
|
+
<dl>
|
|
9622
|
+
<dd>
|
|
9623
|
+
|
|
9624
|
+
#### 📝 Description
|
|
9625
|
+
|
|
9626
|
+
<dl>
|
|
9627
|
+
<dd>
|
|
9628
|
+
|
|
9629
|
+
<dl>
|
|
9630
|
+
<dd>
|
|
9631
|
+
|
|
9632
|
+
Mark data points as outliers or non-outliers. Uses atomic delete + insert strategy for time-series collection updates.
|
|
9633
|
+
|
|
9634
|
+
</dd>
|
|
9635
|
+
</dl>
|
|
9636
|
+
</dd>
|
|
9637
|
+
</dl>
|
|
9638
|
+
|
|
9639
|
+
#### 🔌 Usage
|
|
9640
|
+
|
|
9641
|
+
<dl>
|
|
9642
|
+
<dd>
|
|
9643
|
+
|
|
9644
|
+
<dl>
|
|
9645
|
+
<dd>
|
|
9646
|
+
|
|
9647
|
+
```typescript
|
|
9648
|
+
await client.tracking.sessionByDevice.outlier({
|
|
9649
|
+
tracking_session_by_device_data_point_ids: ["tracking_session_by_device_data_point_ids"],
|
|
9650
|
+
outlier: true,
|
|
9651
|
+
});
|
|
9652
|
+
```
|
|
9653
|
+
|
|
9654
|
+
</dd>
|
|
9655
|
+
</dl>
|
|
9656
|
+
</dd>
|
|
9657
|
+
</dl>
|
|
9658
|
+
|
|
9659
|
+
#### ⚙️ Parameters
|
|
9660
|
+
|
|
9661
|
+
<dl>
|
|
9662
|
+
<dd>
|
|
9663
|
+
|
|
9664
|
+
<dl>
|
|
9665
|
+
<dd>
|
|
9666
|
+
|
|
9667
|
+
**request:** `Chrt.tracking.SessionByDeviceMarkOutliersRequest1`
|
|
9668
|
+
|
|
9669
|
+
</dd>
|
|
9670
|
+
</dl>
|
|
9671
|
+
|
|
9672
|
+
<dl>
|
|
9673
|
+
<dd>
|
|
9674
|
+
|
|
9675
|
+
**requestOptions:** `SessionByDevice.RequestOptions`
|
|
9676
|
+
|
|
9677
|
+
</dd>
|
|
9678
|
+
</dl>
|
|
9679
|
+
</dd>
|
|
9680
|
+
</dl>
|
|
9681
|
+
|
|
9682
|
+
</dd>
|
|
9683
|
+
</dl>
|
|
9684
|
+
</details>
|
|
9685
|
+
|
|
9602
9686
|
<details><summary><code>client.tracking.sessionByDevice.<a href="/src/api/resources/tracking/resources/sessionByDevice/client/Client.ts">delete</a>({ ...params }) -> Chrt.SessionByDeviceDeleteResponse1</code></summary>
|
|
9603
9687
|
<dl>
|
|
9604
9688
|
<dd>
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as Chrt from "../index.js";
|
|
5
|
-
export type LocationFeatureOutputGeometry = Chrt.LocationFeatureOutputGeometry.GeometryCollection | Chrt.LocationFeatureOutputGeometry.LineString | Chrt.LocationFeatureOutputGeometry.MultiLineString | Chrt.LocationFeatureOutputGeometry.MultiPoint | Chrt.LocationFeatureOutputGeometry.MultiPolygon | Chrt.LocationFeatureOutputGeometry.Point | Chrt.LocationFeatureOutputGeometry.Polygon;
|
|
6
|
-
export declare namespace LocationFeatureOutputGeometry {
|
|
7
|
-
interface GeometryCollection extends Chrt.GeometryCollection {
|
|
8
|
-
type: "GeometryCollection";
|
|
9
|
-
}
|
|
10
|
-
interface LineString extends Chrt.LineString {
|
|
11
|
-
type: "LineString";
|
|
12
|
-
}
|
|
13
|
-
interface MultiLineString extends Chrt.MultiLineString {
|
|
14
|
-
type: "MultiLineString";
|
|
15
|
-
}
|
|
16
|
-
interface MultiPoint extends Chrt.MultiPoint {
|
|
17
|
-
type: "MultiPoint";
|
|
18
|
-
}
|
|
19
|
-
interface MultiPolygon extends Chrt.MultiPolygon {
|
|
20
|
-
type: "MultiPolygon";
|
|
21
|
-
}
|
|
22
|
-
interface Point extends Chrt.Point {
|
|
23
|
-
type: "Point";
|
|
24
|
-
}
|
|
25
|
-
interface Polygon extends Chrt.Polygon {
|
|
26
|
-
type: "Polygon";
|
|
27
|
-
}
|
|
28
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as Chrt from "../index.mjs";
|
|
5
|
-
export type LocationFeatureOutputGeometry = Chrt.LocationFeatureOutputGeometry.GeometryCollection | Chrt.LocationFeatureOutputGeometry.LineString | Chrt.LocationFeatureOutputGeometry.MultiLineString | Chrt.LocationFeatureOutputGeometry.MultiPoint | Chrt.LocationFeatureOutputGeometry.MultiPolygon | Chrt.LocationFeatureOutputGeometry.Point | Chrt.LocationFeatureOutputGeometry.Polygon;
|
|
6
|
-
export declare namespace LocationFeatureOutputGeometry {
|
|
7
|
-
interface GeometryCollection extends Chrt.GeometryCollection {
|
|
8
|
-
type: "GeometryCollection";
|
|
9
|
-
}
|
|
10
|
-
interface LineString extends Chrt.LineString {
|
|
11
|
-
type: "LineString";
|
|
12
|
-
}
|
|
13
|
-
interface MultiLineString extends Chrt.MultiLineString {
|
|
14
|
-
type: "MultiLineString";
|
|
15
|
-
}
|
|
16
|
-
interface MultiPoint extends Chrt.MultiPoint {
|
|
17
|
-
type: "MultiPoint";
|
|
18
|
-
}
|
|
19
|
-
interface MultiPolygon extends Chrt.MultiPolygon {
|
|
20
|
-
type: "MultiPolygon";
|
|
21
|
-
}
|
|
22
|
-
interface Point extends Chrt.Point {
|
|
23
|
-
type: "Point";
|
|
24
|
-
}
|
|
25
|
-
interface Polygon extends Chrt.Polygon {
|
|
26
|
-
type: "Polygon";
|
|
27
|
-
}
|
|
28
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|