@chrt-inc/typescript-sdk 1.1020.0 → 1.1025.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.
Files changed (90) hide show
  1. package/dist/cjs/Client.js +2 -2
  2. package/dist/cjs/api/resources/orgs/resources/connections/client/Client.d.ts +18 -1
  3. package/dist/cjs/api/resources/orgs/resources/connections/client/Client.js +75 -6
  4. package/dist/cjs/api/resources/orgs/resources/connections/client/requests/ConnectionsListShippersForCoordinatorV1Request.d.ts +4 -1
  5. package/dist/cjs/api/resources/orgs/resources/connections/client/requests/ShipperCoordinatorUpdateKnownShipperReq.d.ts +12 -0
  6. package/dist/cjs/api/resources/orgs/resources/connections/client/requests/ShipperCoordinatorUpdateKnownShipperReq.js +5 -0
  7. package/dist/cjs/api/resources/orgs/resources/connections/client/requests/index.d.ts +1 -0
  8. package/dist/cjs/api/resources/orgs/resources/publicData/client/Client.d.ts +3 -0
  9. package/dist/cjs/api/resources/orgs/resources/publicData/client/Client.js +5 -0
  10. package/dist/cjs/api/resources/orgs/resources/publicData/index.d.ts +1 -0
  11. package/dist/cjs/api/resources/orgs/resources/publicData/index.js +1 -0
  12. package/dist/cjs/api/resources/orgs/resources/publicData/resources/index.d.ts +2 -0
  13. package/dist/cjs/api/resources/orgs/resources/publicData/resources/index.js +41 -0
  14. package/dist/cjs/api/resources/orgs/resources/publicData/resources/s3Object/client/Client.d.ts +86 -0
  15. package/dist/cjs/api/resources/orgs/resources/publicData/resources/s3Object/client/Client.js +319 -0
  16. package/dist/cjs/api/resources/orgs/resources/publicData/resources/s3Object/client/index.d.ts +2 -0
  17. package/dist/cjs/api/resources/orgs/resources/publicData/resources/s3Object/client/index.js +17 -0
  18. package/dist/cjs/api/resources/orgs/resources/publicData/resources/s3Object/client/requests/BodyPostOrgPublicDataS3ObjectAddV1.d.ts +13 -0
  19. package/dist/cjs/api/resources/orgs/resources/publicData/resources/s3Object/client/requests/BodyPostOrgPublicDataS3ObjectAddV1.js +5 -0
  20. package/dist/cjs/api/resources/orgs/resources/publicData/resources/s3Object/client/requests/index.d.ts +1 -0
  21. package/dist/cjs/api/resources/orgs/resources/publicData/resources/s3Object/client/requests/index.js +2 -0
  22. package/dist/cjs/api/resources/orgs/resources/publicData/resources/s3Object/index.d.ts +1 -0
  23. package/dist/cjs/api/resources/orgs/resources/publicData/resources/s3Object/index.js +17 -0
  24. package/dist/cjs/api/resources/tracking/resources/devices/client/Client.d.ts +47 -1
  25. package/dist/cjs/api/resources/tracking/resources/devices/client/Client.js +195 -1
  26. package/dist/cjs/api/resources/tracking/resources/devices/client/requests/DevicesForCargoV1Request.d.ts +12 -0
  27. package/dist/cjs/api/resources/tracking/resources/devices/client/requests/DevicesForCargoV1Request.js +5 -0
  28. package/dist/cjs/api/resources/tracking/resources/devices/client/requests/DevicesLinkToCargoV1Request.d.ts +14 -0
  29. package/dist/cjs/api/resources/tracking/resources/devices/client/requests/DevicesLinkToCargoV1Request.js +5 -0
  30. package/dist/cjs/api/resources/tracking/resources/devices/client/requests/DevicesUnlinkFromCargoV1Request.d.ts +12 -0
  31. package/dist/cjs/api/resources/tracking/resources/devices/client/requests/DevicesUnlinkFromCargoV1Request.js +5 -0
  32. package/dist/cjs/api/resources/tracking/resources/devices/client/requests/index.d.ts +3 -0
  33. package/dist/cjs/api/types/DeviceForCargoRes.d.ts +17 -0
  34. package/dist/cjs/api/types/DeviceForCargoRes.js +5 -0
  35. package/dist/cjs/api/types/OrgPublicData1.d.ts +1 -0
  36. package/dist/cjs/api/types/OrgPublicDataS3ObjectMetadata1.d.ts +21 -0
  37. package/dist/cjs/api/types/OrgPublicDataS3ObjectMetadata1.js +5 -0
  38. package/dist/cjs/api/types/ShipperCoordinatorConnection1.d.ts +4 -0
  39. package/dist/cjs/api/types/SpecialHandlingCodeEnum1.d.ts +63 -1
  40. package/dist/cjs/api/types/SpecialHandlingCodeEnum1.js +62 -0
  41. package/dist/cjs/api/types/index.d.ts +2 -0
  42. package/dist/cjs/api/types/index.js +2 -0
  43. package/dist/cjs/version.d.ts +1 -1
  44. package/dist/cjs/version.js +1 -1
  45. package/dist/esm/Client.mjs +2 -2
  46. package/dist/esm/api/resources/orgs/resources/connections/client/Client.d.mts +18 -1
  47. package/dist/esm/api/resources/orgs/resources/connections/client/Client.mjs +75 -6
  48. package/dist/esm/api/resources/orgs/resources/connections/client/requests/ConnectionsListShippersForCoordinatorV1Request.d.mts +4 -1
  49. package/dist/esm/api/resources/orgs/resources/connections/client/requests/ShipperCoordinatorUpdateKnownShipperReq.d.mts +12 -0
  50. package/dist/esm/api/resources/orgs/resources/connections/client/requests/ShipperCoordinatorUpdateKnownShipperReq.mjs +4 -0
  51. package/dist/esm/api/resources/orgs/resources/connections/client/requests/index.d.mts +1 -0
  52. package/dist/esm/api/resources/orgs/resources/publicData/client/Client.d.mts +3 -0
  53. package/dist/esm/api/resources/orgs/resources/publicData/client/Client.mjs +5 -0
  54. package/dist/esm/api/resources/orgs/resources/publicData/index.d.mts +1 -0
  55. package/dist/esm/api/resources/orgs/resources/publicData/index.mjs +1 -0
  56. package/dist/esm/api/resources/orgs/resources/publicData/resources/index.d.mts +2 -0
  57. package/dist/esm/api/resources/orgs/resources/publicData/resources/index.mjs +2 -0
  58. package/dist/esm/api/resources/orgs/resources/publicData/resources/s3Object/client/Client.d.mts +86 -0
  59. package/dist/esm/api/resources/orgs/resources/publicData/resources/s3Object/client/Client.mjs +282 -0
  60. package/dist/esm/api/resources/orgs/resources/publicData/resources/s3Object/client/index.d.mts +2 -0
  61. package/dist/esm/api/resources/orgs/resources/publicData/resources/s3Object/client/index.mjs +1 -0
  62. package/dist/esm/api/resources/orgs/resources/publicData/resources/s3Object/client/requests/BodyPostOrgPublicDataS3ObjectAddV1.d.mts +13 -0
  63. package/dist/esm/api/resources/orgs/resources/publicData/resources/s3Object/client/requests/BodyPostOrgPublicDataS3ObjectAddV1.mjs +4 -0
  64. package/dist/esm/api/resources/orgs/resources/publicData/resources/s3Object/client/requests/index.d.mts +1 -0
  65. package/dist/esm/api/resources/orgs/resources/publicData/resources/s3Object/client/requests/index.mjs +1 -0
  66. package/dist/esm/api/resources/orgs/resources/publicData/resources/s3Object/index.d.mts +1 -0
  67. package/dist/esm/api/resources/orgs/resources/publicData/resources/s3Object/index.mjs +1 -0
  68. package/dist/esm/api/resources/tracking/resources/devices/client/Client.d.mts +47 -1
  69. package/dist/esm/api/resources/tracking/resources/devices/client/Client.mjs +195 -1
  70. package/dist/esm/api/resources/tracking/resources/devices/client/requests/DevicesForCargoV1Request.d.mts +12 -0
  71. package/dist/esm/api/resources/tracking/resources/devices/client/requests/DevicesForCargoV1Request.mjs +4 -0
  72. package/dist/esm/api/resources/tracking/resources/devices/client/requests/DevicesLinkToCargoV1Request.d.mts +14 -0
  73. package/dist/esm/api/resources/tracking/resources/devices/client/requests/DevicesLinkToCargoV1Request.mjs +4 -0
  74. package/dist/esm/api/resources/tracking/resources/devices/client/requests/DevicesUnlinkFromCargoV1Request.d.mts +12 -0
  75. package/dist/esm/api/resources/tracking/resources/devices/client/requests/DevicesUnlinkFromCargoV1Request.mjs +4 -0
  76. package/dist/esm/api/resources/tracking/resources/devices/client/requests/index.d.mts +3 -0
  77. package/dist/esm/api/types/DeviceForCargoRes.d.mts +17 -0
  78. package/dist/esm/api/types/DeviceForCargoRes.mjs +4 -0
  79. package/dist/esm/api/types/OrgPublicData1.d.mts +1 -0
  80. package/dist/esm/api/types/OrgPublicDataS3ObjectMetadata1.d.mts +21 -0
  81. package/dist/esm/api/types/OrgPublicDataS3ObjectMetadata1.mjs +4 -0
  82. package/dist/esm/api/types/ShipperCoordinatorConnection1.d.mts +4 -0
  83. package/dist/esm/api/types/SpecialHandlingCodeEnum1.d.mts +63 -1
  84. package/dist/esm/api/types/SpecialHandlingCodeEnum1.mjs +62 -0
  85. package/dist/esm/api/types/index.d.mts +2 -0
  86. package/dist/esm/api/types/index.mjs +2 -0
  87. package/dist/esm/version.d.mts +1 -1
  88. package/dist/esm/version.mjs +1 -1
  89. package/package.json +1 -1
  90. package/reference.md +527 -1
@@ -67,7 +67,7 @@ class Devices {
67
67
  this._options = _options;
68
68
  }
69
69
  /**
70
- * Archives a device by setting archived=True. Device must not have an active session — terminate it first. | auth: api_key | () -> (bool)
70
+ * Archives a device without an active session or cargo. Terminate or unlink tracking first. | auth: api_key | () -> (bool)
71
71
  *
72
72
  * @param {Chrt.tracking.DevicesArchiveV1Request} request
73
73
  * @param {Devices.RequestOptions} requestOptions - Request-specific configuration.
@@ -130,6 +130,70 @@ class Devices {
130
130
  }
131
131
  });
132
132
  }
133
+ /**
134
+ * Lists devices currently or previously linked to a cargo, ordered by MAC address. Access follows the cargo's order. | authz_personas=[coordinator_org_operators, shipper_org_operators, executor_org_operators, driver_for_executor] | () -> (list[DeviceForCargoRes])
135
+ *
136
+ * @param {Chrt.tracking.DevicesForCargoV1Request} request
137
+ * @param {Devices.RequestOptions} requestOptions - Request-specific configuration.
138
+ *
139
+ * @throws {@link Chrt.UnprocessableEntityError}
140
+ *
141
+ * @example
142
+ * await client.tracking.devices.forCargoV1({
143
+ * cargo_id: "cargo_id"
144
+ * })
145
+ */
146
+ forCargoV1(request, requestOptions) {
147
+ return core.HttpResponsePromise.fromPromise(this.__forCargoV1(request, requestOptions));
148
+ }
149
+ __forCargoV1(request, requestOptions) {
150
+ return __awaiter(this, void 0, void 0, function* () {
151
+ var _a, _b, _c, _d;
152
+ const { cargo_id: cargoId } = request;
153
+ const _queryParams = {};
154
+ _queryParams["cargo_id"] = cargoId;
155
+ 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);
156
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
157
+ 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/devices/for_cargo/v1"),
158
+ method: "GET",
159
+ headers: _headers,
160
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
161
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
162
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
163
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
164
+ });
165
+ if (_response.ok) {
166
+ return { data: _response.body, rawResponse: _response.rawResponse };
167
+ }
168
+ if (_response.error.reason === "status-code") {
169
+ switch (_response.error.statusCode) {
170
+ case 422:
171
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
172
+ default:
173
+ throw new errors.ChrtError({
174
+ statusCode: _response.error.statusCode,
175
+ body: _response.error.body,
176
+ rawResponse: _response.rawResponse,
177
+ });
178
+ }
179
+ }
180
+ switch (_response.error.reason) {
181
+ case "non-json":
182
+ throw new errors.ChrtError({
183
+ statusCode: _response.error.statusCode,
184
+ body: _response.error.rawBody,
185
+ rawResponse: _response.rawResponse,
186
+ });
187
+ case "timeout":
188
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/devices/for_cargo/v1.");
189
+ case "unknown":
190
+ throw new errors.ChrtError({
191
+ message: _response.error.errorMessage,
192
+ rawResponse: _response.rawResponse,
193
+ });
194
+ }
195
+ });
196
+ }
133
197
  /**
134
198
  * Retrieves a single device by its ID with expanded sessions and cargos. Access restricted to the caller's organization or shared organizations. | auth: api_key | authz: min_org_role=operator | () -> (DeviceExpandedRes)
135
199
  *
@@ -194,6 +258,72 @@ class Devices {
194
258
  }
195
259
  });
196
260
  }
261
+ /**
262
+ * Links an owned device to cargo and activates its tracker. Relinking the same cargo reactivates a stopped tracker. | authz: min_org_role=operator | authz_personas=[coordinator_org_operators, shipper_org_operators, executor_org_operators] | () -> (bool)
263
+ *
264
+ * @param {Chrt.tracking.DevicesLinkToCargoV1Request} request
265
+ * @param {Devices.RequestOptions} requestOptions - Request-specific configuration.
266
+ *
267
+ * @throws {@link Chrt.UnprocessableEntityError}
268
+ *
269
+ * @example
270
+ * await client.tracking.devices.linkToCargoV1({
271
+ * device_id: "device_id",
272
+ * cargo_id: "cargo_id"
273
+ * })
274
+ */
275
+ linkToCargoV1(request, requestOptions) {
276
+ return core.HttpResponsePromise.fromPromise(this.__linkToCargoV1(request, requestOptions));
277
+ }
278
+ __linkToCargoV1(request, requestOptions) {
279
+ return __awaiter(this, void 0, void 0, function* () {
280
+ var _a, _b, _c, _d;
281
+ const { device_id: deviceId, cargo_id: cargoId } = request;
282
+ const _queryParams = {};
283
+ _queryParams["device_id"] = deviceId;
284
+ _queryParams["cargo_id"] = cargoId;
285
+ 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);
286
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
287
+ 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/devices/link_to_cargo/v1"),
288
+ method: "POST",
289
+ headers: _headers,
290
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
291
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
292
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
293
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
294
+ });
295
+ if (_response.ok) {
296
+ return { data: _response.body, rawResponse: _response.rawResponse };
297
+ }
298
+ if (_response.error.reason === "status-code") {
299
+ switch (_response.error.statusCode) {
300
+ case 422:
301
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
302
+ default:
303
+ throw new errors.ChrtError({
304
+ statusCode: _response.error.statusCode,
305
+ body: _response.error.body,
306
+ rawResponse: _response.rawResponse,
307
+ });
308
+ }
309
+ }
310
+ switch (_response.error.reason) {
311
+ case "non-json":
312
+ throw new errors.ChrtError({
313
+ statusCode: _response.error.statusCode,
314
+ body: _response.error.rawBody,
315
+ rawResponse: _response.rawResponse,
316
+ });
317
+ case "timeout":
318
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /tracking/devices/link_to_cargo/v1.");
319
+ case "unknown":
320
+ throw new errors.ChrtError({
321
+ message: _response.error.errorMessage,
322
+ rawResponse: _response.rawResponse,
323
+ });
324
+ }
325
+ });
326
+ }
197
327
  /**
198
328
  * Lists devices with filtering, sorting, and pagination. Use org_scope to restrict to owned, shared, or both (default). | auth: api_key | authz: min_org_role=operator | () -> (DeviceListRes)
199
329
  *
@@ -546,6 +676,70 @@ class Devices {
546
676
  }
547
677
  });
548
678
  }
679
+ /**
680
+ * Unlinks an owned device from its cargo and deactivates its tracker. Returns false when the device is not linked to cargo. | authz: min_org_role=operator | () -> (bool)
681
+ *
682
+ * @param {Chrt.tracking.DevicesUnlinkFromCargoV1Request} request
683
+ * @param {Devices.RequestOptions} requestOptions - Request-specific configuration.
684
+ *
685
+ * @throws {@link Chrt.UnprocessableEntityError}
686
+ *
687
+ * @example
688
+ * await client.tracking.devices.unlinkFromCargoV1({
689
+ * device_id: "device_id"
690
+ * })
691
+ */
692
+ unlinkFromCargoV1(request, requestOptions) {
693
+ return core.HttpResponsePromise.fromPromise(this.__unlinkFromCargoV1(request, requestOptions));
694
+ }
695
+ __unlinkFromCargoV1(request, requestOptions) {
696
+ return __awaiter(this, void 0, void 0, function* () {
697
+ var _a, _b, _c, _d;
698
+ const { device_id: deviceId } = request;
699
+ const _queryParams = {};
700
+ _queryParams["device_id"] = deviceId;
701
+ 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);
702
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
703
+ 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/devices/unlink_from_cargo/v1"),
704
+ method: "POST",
705
+ headers: _headers,
706
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
707
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
708
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
709
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
710
+ });
711
+ if (_response.ok) {
712
+ return { data: _response.body, rawResponse: _response.rawResponse };
713
+ }
714
+ if (_response.error.reason === "status-code") {
715
+ switch (_response.error.statusCode) {
716
+ case 422:
717
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
718
+ default:
719
+ throw new errors.ChrtError({
720
+ statusCode: _response.error.statusCode,
721
+ body: _response.error.body,
722
+ rawResponse: _response.rawResponse,
723
+ });
724
+ }
725
+ }
726
+ switch (_response.error.reason) {
727
+ case "non-json":
728
+ throw new errors.ChrtError({
729
+ statusCode: _response.error.statusCode,
730
+ body: _response.error.rawBody,
731
+ rawResponse: _response.rawResponse,
732
+ });
733
+ case "timeout":
734
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /tracking/devices/unlink_from_cargo/v1.");
735
+ case "unknown":
736
+ throw new errors.ChrtError({
737
+ message: _response.error.errorMessage,
738
+ rawResponse: _response.rawResponse,
739
+ });
740
+ }
741
+ });
742
+ }
549
743
  /**
550
744
  * Unpauses a device. Closes the open pause time window. | auth: api_key | () -> (bool)
551
745
  *
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * cargo_id: "cargo_id"
8
+ * }
9
+ */
10
+ export interface DevicesForCargoV1Request {
11
+ cargo_id: string;
12
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * device_id: "device_id",
8
+ * cargo_id: "cargo_id"
9
+ * }
10
+ */
11
+ export interface DevicesLinkToCargoV1Request {
12
+ device_id: string;
13
+ cargo_id: string;
14
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * device_id: "device_id"
8
+ * }
9
+ */
10
+ export interface DevicesUnlinkFromCargoV1Request {
11
+ device_id: string;
12
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,9 +1,12 @@
1
1
  export { type DevicesArchiveV1Request } from "./DevicesArchiveV1Request.js";
2
+ export { type DevicesForCargoV1Request } from "./DevicesForCargoV1Request.js";
2
3
  export { type DevicesGetV1Request } from "./DevicesGetV1Request.js";
4
+ export { type DevicesLinkToCargoV1Request } from "./DevicesLinkToCargoV1Request.js";
3
5
  export { type DevicesListV1Request } from "./DevicesListV1Request.js";
4
6
  export { type DevicesPauseV1Request } from "./DevicesPauseV1Request.js";
5
7
  export { type DeviceClientCreate1 } from "./DeviceClientCreate1.js";
6
8
  export { type DevicesTypeaheadV1Request } from "./DevicesTypeaheadV1Request.js";
9
+ export { type DevicesUnlinkFromCargoV1Request } from "./DevicesUnlinkFromCargoV1Request.js";
7
10
  export { type DevicesUnpauseV1Request } from "./DevicesUnpauseV1Request.js";
8
11
  export { type DeviceClientUpdate1 } from "./DeviceClientUpdate1.js";
9
12
  export { type DevicesUpdateSharedOrgsReq1 } from "./DevicesUpdateSharedOrgsReq1.js";
@@ -0,0 +1,17 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.js";
5
+ /**
6
+ * A device as seen by the cargo's order parties, who may not own or share the device.
7
+ *
8
+ * NOTE - excludes device_token (the webhook secret), location, and owner-only fields.
9
+ */
10
+ export interface DeviceForCargoRes {
11
+ device_id: string;
12
+ device_mac_address: string;
13
+ is_currently_linked: boolean;
14
+ last_seen_at_timestamp?: string | null;
15
+ last_seen_battery_level?: string | null;
16
+ type?: Chrt.TrackingDeviceTypeEnum1 | null;
17
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -12,6 +12,7 @@ export interface OrgPublicData1 {
12
12
  name: string;
13
13
  /** Must be a string starting with `org_` */
14
14
  org_id: string;
15
+ org_public_data_s3_object_metadata_ids?: string[];
15
16
  org_type: Chrt.OrgTypeEnum;
16
17
  phone_number?: string | null;
17
18
  schema_version: number;
@@ -0,0 +1,21 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface OrgPublicDataS3ObjectMetadata1 {
5
+ _id: string;
6
+ ai_generated_description?: string | null;
7
+ blurhash?: string | null;
8
+ /** MIME type of the uploaded file (e.g., 'image/jpeg', 'application/pdf') */
9
+ content_type?: string | null;
10
+ /** Original filename of the uploaded file */
11
+ filename?: string | null;
12
+ org_public_data_id: string;
13
+ s3_key_prefix?: "orgs/org_public_data_s3_object_metadata";
14
+ schema_version: number;
15
+ uploaded_at_timestamp: string;
16
+ /** Must be a string starting with `org_` */
17
+ uploaded_by_org_id: string;
18
+ /** Must be a string starting with `user_` */
19
+ uploaded_by_user_id: string;
20
+ user_generated_description?: string | null;
21
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -7,6 +7,10 @@ export interface ShipperCoordinatorConnection1 {
7
7
  coordinator_default_department_id?: string | null;
8
8
  /** Must be a string starting with `org_` */
9
9
  coordinator_org_id: string;
10
+ known_shipper?: boolean | null;
11
+ known_shipper_last_edited_at_timestamp?: string | null;
12
+ /** Must be a string starting with `user_` */
13
+ known_shipper_last_edited_by_user_id?: string | null;
10
14
  off_chrt_shipper_org_data_id?: string | null;
11
15
  schema_version: number;
12
16
  shipper_customer_id_for_coordinator_stripe_connect_account?: string | null;
@@ -1,61 +1,105 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type SpecialHandlingCodeEnum1 = "ACT" | "AOG" | "ATT" | "AVI" | "BIG" | "BUP" | "CAO" | "CAT" | "COL" | "COM" | "CRT" | "DIP" | "EAP" | "EAT" | "EAW" | "ECC" | "ECP" | "ELI" | "ELM" | "EMD" | "ERT" | "FIL" | "FRI" | "FRO" | "GOH" | "HEA" | "HEG" | "HUM" | "ICE" | "LHO" | "LIC" | "MAG" | "MAL" | "MUW" | "NSC" | "NWP" | "OBX" | "OHG" | "PAC" | "PEA" | "PEF" | "PEM" | "PEP" | "PER" | "PES" | "PIL" | "PIP" | "QRT" | "RAC" | "RBI" | "RBM" | "RCL" | "RCM" | "RCX" | "RDS" | "REQ" | "REX" | "RFG" | "RFL" | "RFS" | "RFW" | "RGX" | "RIS" | "RLI" | "RLM" | "RMD" | "RNG" | "ROP" | "ROX" | "RPB" | "RPG" | "RRE" | "RRW" | "RRY" | "RSB" | "RSC" | "RXB" | "RXC" | "RXD" | "RXE" | "RXG" | "RXS" | "SCO" | "SHL" | "SHR" | "SPF" | "SPX" | "SUR" | "SWP" | "VAL" | "VOL" | "VUN" | "WET" | "XPS";
4
+ export type SpecialHandlingCodeEnum1 = "ACT" | "AGC" | "ALO" | "AOG" | "ATT" | "AVI" | "AXA" | "BIG" | "BSA" | "BUP" | "CAO" | "CAT" | "CC" | "COF" | "COL" | "COM" | "COU" | "CRT" | "CSL" | "CUR" | "DDX" | "DGD" | "DGR" | "DIC" | "DIP" | "DIR" | "DNS" | "EAP" | "EAT" | "EAW" | "EBI" | "EBM" | "ECC" | "ECP" | "ELI" | "ELM" | "EMD" | "ERT" | "EXC" | "FIL" | "FRA" | "FRC" | "FRI" | "FRO" | "FTR" | "GCR" | "GLD" | "GOB" | "GOH" | "HEA" | "HEG" | "HNT" | "HST" | "HUM" | "IAT" | "IBS" | "ICE" | "IMP" | "LHO" | "LIC" | "MAG" | "MAL" | "MDC" | "MEX" | "MUW" | "NSC" | "NST" | "NWP" | "OBX" | "OHG" | "PAC" | "PAX" | "PEA" | "PEB" | "PED" | "PEF" | "PEL" | "PEM" | "PEP" | "PER" | "PES" | "PHY" | "PIL" | "PIP" | "PPR" | "PRI" | "PRO" | "PXD" | "PXS" | "QRT" | "QWT" | "RAC" | "RBI" | "RBM" | "RCL" | "RCM" | "RCS" | "RCX" | "RDS" | "REQ" | "REX" | "RFG" | "RFL" | "RFS" | "RFW" | "RGX" | "RIS" | "RLI" | "RLM" | "RMD" | "RNG" | "ROP" | "ROX" | "RPB" | "RPG" | "RRE" | "RRW" | "RRY" | "RSB" | "RSC" | "RXB" | "RXC" | "RXD" | "RXE" | "RXG" | "RXS" | "SBU" | "SCO" | "SEC" | "SEN" | "SHL" | "SHR" | "SMC" | "SML" | "SMU" | "SPF" | "SPX" | "SSS" | "SUR" | "SVC" | "SWP" | "TRC" | "TRU" | "TTS" | "TTT" | "UCB" | "UKS" | "ULD" | "UNKN" | "VAL" | "VEH" | "VIC" | "VOL" | "VUN" | "WET" | "XPS";
5
5
  export declare const SpecialHandlingCodeEnum1: {
6
6
  readonly Act: "ACT";
7
+ readonly Agc: "AGC";
8
+ readonly Alo: "ALO";
7
9
  readonly Aog: "AOG";
8
10
  readonly Att: "ATT";
9
11
  readonly Avi: "AVI";
12
+ readonly Axa: "AXA";
10
13
  readonly Big: "BIG";
14
+ readonly Bsa: "BSA";
11
15
  readonly Bup: "BUP";
12
16
  readonly Cao: "CAO";
13
17
  readonly Cat: "CAT";
18
+ readonly Cc: "CC";
19
+ readonly Cof: "COF";
14
20
  readonly Col: "COL";
15
21
  readonly Com: "COM";
22
+ readonly Cou: "COU";
16
23
  readonly Crt: "CRT";
24
+ readonly Csl: "CSL";
25
+ readonly Cur: "CUR";
26
+ readonly Ddx: "DDX";
27
+ readonly Dgd: "DGD";
28
+ readonly Dgr: "DGR";
29
+ readonly Dic: "DIC";
17
30
  readonly Dip: "DIP";
31
+ readonly Dir: "DIR";
32
+ readonly Dns: "DNS";
18
33
  readonly Eap: "EAP";
19
34
  readonly Eat: "EAT";
20
35
  readonly Eaw: "EAW";
36
+ readonly Ebi: "EBI";
37
+ readonly Ebm: "EBM";
21
38
  readonly Ecc: "ECC";
22
39
  readonly Ecp: "ECP";
23
40
  readonly Eli: "ELI";
24
41
  readonly Elm: "ELM";
25
42
  readonly Emd: "EMD";
26
43
  readonly Ert: "ERT";
44
+ readonly Exc: "EXC";
27
45
  readonly Fil: "FIL";
46
+ readonly Fra: "FRA";
47
+ readonly Frc: "FRC";
28
48
  readonly Fri: "FRI";
29
49
  readonly Fro: "FRO";
50
+ readonly Ftr: "FTR";
51
+ readonly Gcr: "GCR";
52
+ readonly Gld: "GLD";
53
+ readonly Gob: "GOB";
30
54
  readonly Goh: "GOH";
31
55
  readonly Hea: "HEA";
32
56
  readonly Heg: "HEG";
57
+ readonly Hnt: "HNT";
58
+ readonly Hst: "HST";
33
59
  readonly Hum: "HUM";
60
+ readonly Iat: "IAT";
61
+ readonly Ibs: "IBS";
34
62
  readonly Ice: "ICE";
63
+ readonly Imp: "IMP";
35
64
  readonly Lho: "LHO";
36
65
  readonly Lic: "LIC";
37
66
  readonly Mag: "MAG";
38
67
  readonly Mal: "MAL";
68
+ readonly Mdc: "MDC";
69
+ readonly Mex: "MEX";
39
70
  readonly Muw: "MUW";
40
71
  readonly Nsc: "NSC";
72
+ readonly Nst: "NST";
41
73
  readonly Nwp: "NWP";
42
74
  readonly Obx: "OBX";
43
75
  readonly Ohg: "OHG";
44
76
  readonly Pac: "PAC";
77
+ readonly Pax: "PAX";
45
78
  readonly Pea: "PEA";
79
+ readonly Peb: "PEB";
80
+ readonly Ped: "PED";
46
81
  readonly Pef: "PEF";
82
+ readonly Pel: "PEL";
47
83
  readonly Pem: "PEM";
48
84
  readonly Pep: "PEP";
49
85
  readonly Per: "PER";
50
86
  readonly Pes: "PES";
87
+ readonly Phy: "PHY";
51
88
  readonly Pil: "PIL";
52
89
  readonly Pip: "PIP";
90
+ readonly Ppr: "PPR";
91
+ readonly Pri: "PRI";
92
+ readonly Pro: "PRO";
93
+ readonly Pxd: "PXD";
94
+ readonly Pxs: "PXS";
53
95
  readonly Qrt: "QRT";
96
+ readonly Qwt: "QWT";
54
97
  readonly Rac: "RAC";
55
98
  readonly Rbi: "RBI";
56
99
  readonly Rbm: "RBM";
57
100
  readonly Rcl: "RCL";
58
101
  readonly Rcm: "RCM";
102
+ readonly Rcs: "RCS";
59
103
  readonly Rcx: "RCX";
60
104
  readonly Rds: "RDS";
61
105
  readonly Req: "REQ";
@@ -85,14 +129,32 @@ export declare const SpecialHandlingCodeEnum1: {
85
129
  readonly Rxe: "RXE";
86
130
  readonly Rxg: "RXG";
87
131
  readonly Rxs: "RXS";
132
+ readonly Sbu: "SBU";
88
133
  readonly Sco: "SCO";
134
+ readonly Sec: "SEC";
135
+ readonly Sen: "SEN";
89
136
  readonly Shl: "SHL";
90
137
  readonly Shr: "SHR";
138
+ readonly Smc: "SMC";
139
+ readonly Sml: "SML";
140
+ readonly Smu: "SMU";
91
141
  readonly Spf: "SPF";
92
142
  readonly Spx: "SPX";
143
+ readonly Sss: "SSS";
93
144
  readonly Sur: "SUR";
145
+ readonly Svc: "SVC";
94
146
  readonly Swp: "SWP";
147
+ readonly Trc: "TRC";
148
+ readonly Tru: "TRU";
149
+ readonly Tts: "TTS";
150
+ readonly Ttt: "TTT";
151
+ readonly Ucb: "UCB";
152
+ readonly Uks: "UKS";
153
+ readonly Uld: "ULD";
154
+ readonly Unkn: "UNKN";
95
155
  readonly Val: "VAL";
156
+ readonly Veh: "VEH";
157
+ readonly Vic: "VIC";
96
158
  readonly Vol: "VOL";
97
159
  readonly Vun: "VUN";
98
160
  readonly Wet: "WET";
@@ -6,58 +6,102 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.SpecialHandlingCodeEnum1 = void 0;
7
7
  exports.SpecialHandlingCodeEnum1 = {
8
8
  Act: "ACT",
9
+ Agc: "AGC",
10
+ Alo: "ALO",
9
11
  Aog: "AOG",
10
12
  Att: "ATT",
11
13
  Avi: "AVI",
14
+ Axa: "AXA",
12
15
  Big: "BIG",
16
+ Bsa: "BSA",
13
17
  Bup: "BUP",
14
18
  Cao: "CAO",
15
19
  Cat: "CAT",
20
+ Cc: "CC",
21
+ Cof: "COF",
16
22
  Col: "COL",
17
23
  Com: "COM",
24
+ Cou: "COU",
18
25
  Crt: "CRT",
26
+ Csl: "CSL",
27
+ Cur: "CUR",
28
+ Ddx: "DDX",
29
+ Dgd: "DGD",
30
+ Dgr: "DGR",
31
+ Dic: "DIC",
19
32
  Dip: "DIP",
33
+ Dir: "DIR",
34
+ Dns: "DNS",
20
35
  Eap: "EAP",
21
36
  Eat: "EAT",
22
37
  Eaw: "EAW",
38
+ Ebi: "EBI",
39
+ Ebm: "EBM",
23
40
  Ecc: "ECC",
24
41
  Ecp: "ECP",
25
42
  Eli: "ELI",
26
43
  Elm: "ELM",
27
44
  Emd: "EMD",
28
45
  Ert: "ERT",
46
+ Exc: "EXC",
29
47
  Fil: "FIL",
48
+ Fra: "FRA",
49
+ Frc: "FRC",
30
50
  Fri: "FRI",
31
51
  Fro: "FRO",
52
+ Ftr: "FTR",
53
+ Gcr: "GCR",
54
+ Gld: "GLD",
55
+ Gob: "GOB",
32
56
  Goh: "GOH",
33
57
  Hea: "HEA",
34
58
  Heg: "HEG",
59
+ Hnt: "HNT",
60
+ Hst: "HST",
35
61
  Hum: "HUM",
62
+ Iat: "IAT",
63
+ Ibs: "IBS",
36
64
  Ice: "ICE",
65
+ Imp: "IMP",
37
66
  Lho: "LHO",
38
67
  Lic: "LIC",
39
68
  Mag: "MAG",
40
69
  Mal: "MAL",
70
+ Mdc: "MDC",
71
+ Mex: "MEX",
41
72
  Muw: "MUW",
42
73
  Nsc: "NSC",
74
+ Nst: "NST",
43
75
  Nwp: "NWP",
44
76
  Obx: "OBX",
45
77
  Ohg: "OHG",
46
78
  Pac: "PAC",
79
+ Pax: "PAX",
47
80
  Pea: "PEA",
81
+ Peb: "PEB",
82
+ Ped: "PED",
48
83
  Pef: "PEF",
84
+ Pel: "PEL",
49
85
  Pem: "PEM",
50
86
  Pep: "PEP",
51
87
  Per: "PER",
52
88
  Pes: "PES",
89
+ Phy: "PHY",
53
90
  Pil: "PIL",
54
91
  Pip: "PIP",
92
+ Ppr: "PPR",
93
+ Pri: "PRI",
94
+ Pro: "PRO",
95
+ Pxd: "PXD",
96
+ Pxs: "PXS",
55
97
  Qrt: "QRT",
98
+ Qwt: "QWT",
56
99
  Rac: "RAC",
57
100
  Rbi: "RBI",
58
101
  Rbm: "RBM",
59
102
  Rcl: "RCL",
60
103
  Rcm: "RCM",
104
+ Rcs: "RCS",
61
105
  Rcx: "RCX",
62
106
  Rds: "RDS",
63
107
  Req: "REQ",
@@ -87,14 +131,32 @@ exports.SpecialHandlingCodeEnum1 = {
87
131
  Rxe: "RXE",
88
132
  Rxg: "RXG",
89
133
  Rxs: "RXS",
134
+ Sbu: "SBU",
90
135
  Sco: "SCO",
136
+ Sec: "SEC",
137
+ Sen: "SEN",
91
138
  Shl: "SHL",
92
139
  Shr: "SHR",
140
+ Smc: "SMC",
141
+ Sml: "SML",
142
+ Smu: "SMU",
93
143
  Spf: "SPF",
94
144
  Spx: "SPX",
145
+ Sss: "SSS",
95
146
  Sur: "SUR",
147
+ Svc: "SVC",
96
148
  Swp: "SWP",
149
+ Trc: "TRC",
150
+ Tru: "TRU",
151
+ Tts: "TTS",
152
+ Ttt: "TTT",
153
+ Ucb: "UCB",
154
+ Uks: "UKS",
155
+ Uld: "ULD",
156
+ Unkn: "UNKN",
97
157
  Val: "VAL",
158
+ Veh: "VEH",
159
+ Vic: "VIC",
98
160
  Vol: "VOL",
99
161
  Vun: "VUN",
100
162
  Wet: "WET",