@chrt-inc/typescript-sdk 1.433.0 → 1.436.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/resources/devices/client/Client.d.ts +2 -1
- package/dist/cjs/api/resources/tracking/resources/devices/client/Client.js +10 -6
- package/dist/cjs/api/resources/tracking/resources/devices/client/requests/DevicesListV1Request.d.ts +4 -1
- 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/resources/devices/client/Client.d.mts +2 -1
- package/dist/esm/api/resources/tracking/resources/devices/client/Client.mjs +10 -6
- package/dist/esm/api/resources/tracking/resources/devices/client/requests/DevicesListV1Request.d.mts +4 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +1 -0
package/dist/cjs/Client.js
CHANGED
|
@@ -67,8 +67,8 @@ class ChrtClient {
|
|
|
67
67
|
this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
|
|
68
68
|
"X-Fern-Language": "JavaScript",
|
|
69
69
|
"X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
|
|
70
|
-
"X-Fern-SDK-Version": "1.
|
|
71
|
-
"User-Agent": "@chrt-inc/typescript-sdk/1.
|
|
70
|
+
"X-Fern-SDK-Version": "1.436.0",
|
|
71
|
+
"User-Agent": "@chrt-inc/typescript-sdk/1.436.0",
|
|
72
72
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
73
73
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
74
74
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -128,7 +128,8 @@ export declare class Devices {
|
|
|
128
128
|
* filter_registered_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
129
129
|
* filter_registered_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
130
130
|
* filter_last_seen_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
131
|
-
* filter_last_seen_at_timestamp_lte: "2024-01-15T09:30:00Z"
|
|
131
|
+
* filter_last_seen_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
132
|
+
* filter_archived: true
|
|
132
133
|
* })
|
|
133
134
|
*/
|
|
134
135
|
listV1(request?: Chrt.tracking.DevicesListV1Request, requestOptions?: Devices.RequestOptions): core.HttpResponsePromise<Chrt.DeviceListRes>;
|
|
@@ -412,7 +412,8 @@ class Devices {
|
|
|
412
412
|
* filter_registered_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
413
413
|
* filter_registered_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
414
414
|
* filter_last_seen_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
415
|
-
* filter_last_seen_at_timestamp_lte: "2024-01-15T09:30:00Z"
|
|
415
|
+
* filter_last_seen_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
416
|
+
* filter_archived: true
|
|
416
417
|
* })
|
|
417
418
|
*/
|
|
418
419
|
listV1(request = {}, requestOptions) {
|
|
@@ -420,8 +421,8 @@ class Devices {
|
|
|
420
421
|
}
|
|
421
422
|
__listV1() {
|
|
422
423
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
423
|
-
var _a, _b, _c, _d, _e, _f;
|
|
424
|
-
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, org_scope: orgScope, filter_off_chrt_reference_id: filterOffChrtReferenceId, filter_type: filterType, filter_active_cargo_id: filterActiveCargoId, filter_active_session_id: filterActiveSessionId, filter_registered_at_timestamp_gte: filterRegisteredAtTimestampGte, filter_registered_at_timestamp_lte: filterRegisteredAtTimestampLte, filter_last_seen_at_timestamp_gte: filterLastSeenAtTimestampGte, filter_last_seen_at_timestamp_lte: filterLastSeenAtTimestampLte, } = request;
|
|
424
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
425
|
+
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, org_scope: orgScope, filter_off_chrt_reference_id: filterOffChrtReferenceId, filter_type: filterType, filter_active_cargo_id: filterActiveCargoId, filter_active_session_id: filterActiveSessionId, filter_registered_at_timestamp_gte: filterRegisteredAtTimestampGte, filter_registered_at_timestamp_lte: filterRegisteredAtTimestampLte, filter_last_seen_at_timestamp_gte: filterLastSeenAtTimestampGte, filter_last_seen_at_timestamp_lte: filterLastSeenAtTimestampLte, filter_archived: filterArchived, } = request;
|
|
425
426
|
const _queryParams = {};
|
|
426
427
|
if (sortBy !== undefined) {
|
|
427
428
|
_queryParams["sort_by"] = sortBy;
|
|
@@ -462,9 +463,12 @@ class Devices {
|
|
|
462
463
|
if (filterLastSeenAtTimestampLte !== undefined) {
|
|
463
464
|
_queryParams["filter_last_seen_at_timestamp_lte"] = filterLastSeenAtTimestampLte;
|
|
464
465
|
}
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
466
|
+
if (filterArchived !== undefined) {
|
|
467
|
+
_queryParams["filter_archived"] = (_c = filterArchived === null || filterArchived === void 0 ? void 0 : filterArchived.toString()) !== null && _c !== void 0 ? _c : null;
|
|
468
|
+
}
|
|
469
|
+
let _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);
|
|
470
|
+
const _response = yield ((_e = this._options.fetcher) !== null && _e !== void 0 ? _e : core.fetcher)({
|
|
471
|
+
url: core.url.join((_g = (_f = (yield core.Supplier.get(this._options.baseUrl))) !== null && _f !== void 0 ? _f : (yield core.Supplier.get(this._options.environment))) !== null && _g !== void 0 ? _g : environments.ChrtEnvironment.Local, "tracking/devices/list/v1"),
|
|
468
472
|
method: "GET",
|
|
469
473
|
headers: _headers,
|
|
470
474
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
package/dist/cjs/api/resources/tracking/resources/devices/client/requests/DevicesListV1Request.d.ts
CHANGED
|
@@ -17,7 +17,8 @@ import * as Chrt from "../../../../../../index.js";
|
|
|
17
17
|
* filter_registered_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
18
18
|
* filter_registered_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
19
19
|
* filter_last_seen_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
20
|
-
* filter_last_seen_at_timestamp_lte: "2024-01-15T09:30:00Z"
|
|
20
|
+
* filter_last_seen_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
21
|
+
* filter_archived: true
|
|
21
22
|
* }
|
|
22
23
|
*/
|
|
23
24
|
export interface DevicesListV1Request {
|
|
@@ -45,4 +46,6 @@ export interface DevicesListV1Request {
|
|
|
45
46
|
filter_last_seen_at_timestamp_gte?: string | null;
|
|
46
47
|
/** Filter by last_seen_at_timestamp <= value */
|
|
47
48
|
filter_last_seen_at_timestamp_lte?: string | null;
|
|
49
|
+
/** Filter by archived status */
|
|
50
|
+
filter_archived?: boolean | null;
|
|
48
51
|
}
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.
|
|
1
|
+
export declare const SDK_VERSION = "1.436.0";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/Client.mjs
CHANGED
|
@@ -31,8 +31,8 @@ export class ChrtClient {
|
|
|
31
31
|
this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
|
|
32
32
|
"X-Fern-Language": "JavaScript",
|
|
33
33
|
"X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
|
|
34
|
-
"X-Fern-SDK-Version": "1.
|
|
35
|
-
"User-Agent": "@chrt-inc/typescript-sdk/1.
|
|
34
|
+
"X-Fern-SDK-Version": "1.436.0",
|
|
35
|
+
"User-Agent": "@chrt-inc/typescript-sdk/1.436.0",
|
|
36
36
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
37
37
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
38
38
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -128,7 +128,8 @@ export declare class Devices {
|
|
|
128
128
|
* filter_registered_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
129
129
|
* filter_registered_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
130
130
|
* filter_last_seen_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
131
|
-
* filter_last_seen_at_timestamp_lte: "2024-01-15T09:30:00Z"
|
|
131
|
+
* filter_last_seen_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
132
|
+
* filter_archived: true
|
|
132
133
|
* })
|
|
133
134
|
*/
|
|
134
135
|
listV1(request?: Chrt.tracking.DevicesListV1Request, requestOptions?: Devices.RequestOptions): core.HttpResponsePromise<Chrt.DeviceListRes>;
|
|
@@ -376,7 +376,8 @@ export class Devices {
|
|
|
376
376
|
* filter_registered_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
377
377
|
* filter_registered_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
378
378
|
* filter_last_seen_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
379
|
-
* filter_last_seen_at_timestamp_lte: "2024-01-15T09:30:00Z"
|
|
379
|
+
* filter_last_seen_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
380
|
+
* filter_archived: true
|
|
380
381
|
* })
|
|
381
382
|
*/
|
|
382
383
|
listV1(request = {}, requestOptions) {
|
|
@@ -384,8 +385,8 @@ export class Devices {
|
|
|
384
385
|
}
|
|
385
386
|
__listV1() {
|
|
386
387
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
387
|
-
var _a, _b, _c, _d, _e, _f;
|
|
388
|
-
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, org_scope: orgScope, filter_off_chrt_reference_id: filterOffChrtReferenceId, filter_type: filterType, filter_active_cargo_id: filterActiveCargoId, filter_active_session_id: filterActiveSessionId, filter_registered_at_timestamp_gte: filterRegisteredAtTimestampGte, filter_registered_at_timestamp_lte: filterRegisteredAtTimestampLte, filter_last_seen_at_timestamp_gte: filterLastSeenAtTimestampGte, filter_last_seen_at_timestamp_lte: filterLastSeenAtTimestampLte, } = request;
|
|
388
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
389
|
+
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, org_scope: orgScope, filter_off_chrt_reference_id: filterOffChrtReferenceId, filter_type: filterType, filter_active_cargo_id: filterActiveCargoId, filter_active_session_id: filterActiveSessionId, filter_registered_at_timestamp_gte: filterRegisteredAtTimestampGte, filter_registered_at_timestamp_lte: filterRegisteredAtTimestampLte, filter_last_seen_at_timestamp_gte: filterLastSeenAtTimestampGte, filter_last_seen_at_timestamp_lte: filterLastSeenAtTimestampLte, filter_archived: filterArchived, } = request;
|
|
389
390
|
const _queryParams = {};
|
|
390
391
|
if (sortBy !== undefined) {
|
|
391
392
|
_queryParams["sort_by"] = sortBy;
|
|
@@ -426,9 +427,12 @@ export class Devices {
|
|
|
426
427
|
if (filterLastSeenAtTimestampLte !== undefined) {
|
|
427
428
|
_queryParams["filter_last_seen_at_timestamp_lte"] = filterLastSeenAtTimestampLte;
|
|
428
429
|
}
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
430
|
+
if (filterArchived !== undefined) {
|
|
431
|
+
_queryParams["filter_archived"] = (_c = filterArchived === null || filterArchived === void 0 ? void 0 : filterArchived.toString()) !== null && _c !== void 0 ? _c : null;
|
|
432
|
+
}
|
|
433
|
+
let _headers = mergeHeaders((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
434
|
+
const _response = yield ((_e = this._options.fetcher) !== null && _e !== void 0 ? _e : core.fetcher)({
|
|
435
|
+
url: core.url.join((_g = (_f = (yield core.Supplier.get(this._options.baseUrl))) !== null && _f !== void 0 ? _f : (yield core.Supplier.get(this._options.environment))) !== null && _g !== void 0 ? _g : environments.ChrtEnvironment.Local, "tracking/devices/list/v1"),
|
|
432
436
|
method: "GET",
|
|
433
437
|
headers: _headers,
|
|
434
438
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
package/dist/esm/api/resources/tracking/resources/devices/client/requests/DevicesListV1Request.d.mts
CHANGED
|
@@ -17,7 +17,8 @@ import * as Chrt from "../../../../../../index.mjs";
|
|
|
17
17
|
* filter_registered_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
18
18
|
* filter_registered_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
19
19
|
* filter_last_seen_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
20
|
-
* filter_last_seen_at_timestamp_lte: "2024-01-15T09:30:00Z"
|
|
20
|
+
* filter_last_seen_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
21
|
+
* filter_archived: true
|
|
21
22
|
* }
|
|
22
23
|
*/
|
|
23
24
|
export interface DevicesListV1Request {
|
|
@@ -45,4 +46,6 @@ export interface DevicesListV1Request {
|
|
|
45
46
|
filter_last_seen_at_timestamp_gte?: string | null;
|
|
46
47
|
/** Filter by last_seen_at_timestamp <= value */
|
|
47
48
|
filter_last_seen_at_timestamp_lte?: string | null;
|
|
49
|
+
/** Filter by archived status */
|
|
50
|
+
filter_archived?: boolean | null;
|
|
48
51
|
}
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.
|
|
1
|
+
export declare const SDK_VERSION = "1.436.0";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "1.
|
|
1
|
+
export const SDK_VERSION = "1.436.0";
|
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -13409,6 +13409,7 @@ await client.tracking.devices.listV1({
|
|
|
13409
13409
|
filter_registered_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
13410
13410
|
filter_last_seen_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
13411
13411
|
filter_last_seen_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
13412
|
+
filter_archived: true,
|
|
13412
13413
|
});
|
|
13413
13414
|
```
|
|
13414
13415
|
|