@chrt-inc/typescript-sdk 1.435.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.
@@ -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.435.0",
71
- "User-Agent": "@chrt-inc/typescript-sdk/1.435.0",
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
- let _headers = (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
466
- const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
467
- url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ChrtEnvironment.Local, "tracking/devices/list/v1"),
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),
@@ -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
  }
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.435.0";
1
+ export declare const SDK_VERSION = "1.436.0";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "1.435.0";
4
+ exports.SDK_VERSION = "1.436.0";
@@ -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.435.0",
35
- "User-Agent": "@chrt-inc/typescript-sdk/1.435.0",
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
- let _headers = mergeHeaders((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
430
- const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
431
- url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ChrtEnvironment.Local, "tracking/devices/list/v1"),
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),
@@ -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
  }
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.435.0";
1
+ export declare const SDK_VERSION = "1.436.0";
@@ -1 +1 @@
1
- export const SDK_VERSION = "1.435.0";
1
+ export const SDK_VERSION = "1.436.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chrt-inc/typescript-sdk",
3
- "version": "1.435.0",
3
+ "version": "1.436.0",
4
4
  "private": false,
5
5
  "repository": "github:chrt-inc/typescript-sdk",
6
6
  "type": "commonjs",
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