@chrt-inc/typescript-sdk 1.595.0 → 1.601.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.d.ts +3 -0
- package/dist/cjs/Client.js +9 -4
- package/dist/cjs/api/resources/index.d.ts +1 -0
- package/dist/cjs/api/resources/index.js +2 -1
- package/dist/cjs/api/resources/trackingIntegrations/client/Client.d.ts +23 -0
- package/dist/cjs/api/resources/trackingIntegrations/client/Client.js +17 -0
- package/dist/cjs/api/resources/trackingIntegrations/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/trackingIntegrations/client/index.js +2 -0
- package/dist/cjs/api/resources/trackingIntegrations/index.d.ts +2 -0
- package/dist/cjs/api/resources/trackingIntegrations/index.js +18 -0
- package/dist/cjs/api/resources/trackingIntegrations/resources/index.d.ts +1 -0
- package/dist/cjs/api/resources/trackingIntegrations/resources/index.js +37 -0
- package/dist/cjs/api/resources/trackingIntegrations/resources/tive/client/Client.d.ts +29 -0
- package/dist/cjs/api/resources/trackingIntegrations/resources/tive/client/Client.js +27 -0
- package/dist/cjs/api/resources/trackingIntegrations/resources/tive/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/trackingIntegrations/resources/tive/client/index.js +2 -0
- package/dist/cjs/api/resources/trackingIntegrations/resources/tive/index.d.ts +2 -0
- package/dist/cjs/api/resources/trackingIntegrations/resources/tive/index.js +18 -0
- package/dist/cjs/api/resources/trackingIntegrations/resources/tive/resources/devices/client/Client.d.ts +71 -0
- package/dist/cjs/api/resources/trackingIntegrations/resources/tive/resources/devices/client/Client.js +226 -0
- package/dist/cjs/api/resources/trackingIntegrations/resources/tive/resources/devices/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/trackingIntegrations/resources/tive/resources/devices/client/index.js +17 -0
- package/dist/cjs/api/resources/trackingIntegrations/resources/tive/resources/devices/client/requests/DevicesGetV1Request.d.ts +12 -0
- package/dist/cjs/api/resources/trackingIntegrations/resources/tive/resources/devices/client/requests/DevicesGetV1Request.js +5 -0
- package/dist/cjs/api/resources/trackingIntegrations/resources/tive/resources/devices/client/requests/DevicesListV1Request.d.ts +33 -0
- package/dist/cjs/api/resources/trackingIntegrations/resources/tive/resources/devices/client/requests/DevicesListV1Request.js +5 -0
- package/dist/cjs/api/resources/trackingIntegrations/resources/tive/resources/devices/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/trackingIntegrations/resources/tive/resources/devices/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/trackingIntegrations/resources/tive/resources/devices/index.d.ts +1 -0
- package/dist/cjs/api/resources/trackingIntegrations/resources/tive/resources/devices/index.js +17 -0
- package/dist/cjs/api/resources/trackingIntegrations/resources/tive/resources/index.d.ts +6 -0
- package/dist/cjs/api/resources/trackingIntegrations/resources/tive/resources/index.js +45 -0
- package/dist/cjs/api/resources/trackingIntegrations/resources/tive/resources/shipments/client/Client.d.ts +71 -0
- package/dist/cjs/api/resources/trackingIntegrations/resources/tive/resources/shipments/client/Client.js +226 -0
- package/dist/cjs/api/resources/trackingIntegrations/resources/tive/resources/shipments/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/trackingIntegrations/resources/tive/resources/shipments/client/index.js +17 -0
- package/dist/cjs/api/resources/trackingIntegrations/resources/tive/resources/shipments/client/requests/ShipmentsGetV1Request.d.ts +12 -0
- package/dist/cjs/api/resources/trackingIntegrations/resources/tive/resources/shipments/client/requests/ShipmentsGetV1Request.js +5 -0
- package/dist/cjs/api/resources/trackingIntegrations/resources/tive/resources/shipments/client/requests/ShipmentsListV1Request.d.ts +33 -0
- package/dist/cjs/api/resources/trackingIntegrations/resources/tive/resources/shipments/client/requests/ShipmentsListV1Request.js +5 -0
- package/dist/cjs/api/resources/trackingIntegrations/resources/tive/resources/shipments/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/trackingIntegrations/resources/tive/resources/shipments/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/trackingIntegrations/resources/tive/resources/shipments/index.d.ts +1 -0
- package/dist/cjs/api/resources/trackingIntegrations/resources/tive/resources/shipments/index.js +17 -0
- package/dist/cjs/api/resources/trackingIntegrations/resources/tive/resources/timeseries/client/Client.d.ts +81 -0
- package/dist/cjs/api/resources/trackingIntegrations/resources/tive/resources/timeseries/client/Client.js +267 -0
- package/dist/cjs/api/resources/trackingIntegrations/resources/tive/resources/timeseries/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/trackingIntegrations/resources/tive/resources/timeseries/client/index.js +17 -0
- package/dist/cjs/api/resources/trackingIntegrations/resources/tive/resources/timeseries/client/requests/TimeseriesDataPointsV1Request.d.ts +16 -0
- package/dist/cjs/api/resources/trackingIntegrations/resources/tive/resources/timeseries/client/requests/TimeseriesDataPointsV1Request.js +5 -0
- package/dist/cjs/api/resources/trackingIntegrations/resources/tive/resources/timeseries/client/requests/TimeseriesLastSeenV1Request.d.ts +12 -0
- package/dist/cjs/api/resources/trackingIntegrations/resources/tive/resources/timeseries/client/requests/TimeseriesLastSeenV1Request.js +5 -0
- package/dist/cjs/api/resources/trackingIntegrations/resources/tive/resources/timeseries/client/requests/TimeseriesSyncV1Request.d.ts +12 -0
- package/dist/cjs/api/resources/trackingIntegrations/resources/tive/resources/timeseries/client/requests/TimeseriesSyncV1Request.js +5 -0
- package/dist/cjs/api/resources/trackingIntegrations/resources/tive/resources/timeseries/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/resources/trackingIntegrations/resources/tive/resources/timeseries/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/trackingIntegrations/resources/tive/resources/timeseries/index.d.ts +1 -0
- package/dist/cjs/api/resources/trackingIntegrations/resources/tive/resources/timeseries/index.js +17 -0
- package/dist/cjs/api/types/TiveDataPoint1.d.ts +22 -0
- package/dist/cjs/api/types/TiveDataPoint1.js +5 -0
- package/dist/cjs/api/types/TiveDataPointMetadata1.d.ts +8 -0
- package/dist/cjs/api/types/TiveDataPointMetadata1.js +5 -0
- package/dist/cjs/api/types/TiveDevice1.d.ts +17 -0
- package/dist/cjs/api/types/TiveDevice1.js +5 -0
- package/dist/cjs/api/types/TiveDeviceListRes.d.ts +8 -0
- package/dist/cjs/api/types/TiveDeviceListRes.js +5 -0
- package/dist/cjs/api/types/TiveDeviceSortByEnum.d.ts +8 -0
- package/dist/cjs/api/types/TiveDeviceSortByEnum.js +10 -0
- package/dist/cjs/api/types/TiveShipment1.d.ts +15 -0
- package/dist/cjs/api/types/TiveShipment1.js +5 -0
- package/dist/cjs/api/types/TiveShipmentListRes.d.ts +8 -0
- package/dist/cjs/api/types/TiveShipmentListRes.js +5 -0
- package/dist/cjs/api/types/TiveShipmentSortByEnum.d.ts +8 -0
- package/dist/cjs/api/types/TiveShipmentSortByEnum.js +10 -0
- package/dist/cjs/api/types/TiveTimeseriesRes.d.ts +7 -0
- package/dist/cjs/api/types/TiveTimeseriesRes.js +5 -0
- package/dist/cjs/api/types/TiveTimeseriesSyncRes.d.ts +9 -0
- package/dist/cjs/api/types/TiveTimeseriesSyncRes.js +5 -0
- package/dist/cjs/api/types/index.d.ts +10 -0
- package/dist/cjs/api/types/index.js +10 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.d.mts +3 -0
- package/dist/esm/Client.mjs +7 -2
- package/dist/esm/api/resources/index.d.mts +1 -0
- package/dist/esm/api/resources/index.mjs +1 -0
- package/dist/esm/api/resources/trackingIntegrations/client/Client.d.mts +23 -0
- package/dist/esm/api/resources/trackingIntegrations/client/Client.mjs +13 -0
- package/dist/esm/api/resources/trackingIntegrations/client/index.d.mts +1 -0
- package/dist/esm/api/resources/trackingIntegrations/client/index.mjs +1 -0
- package/dist/esm/api/resources/trackingIntegrations/index.d.mts +2 -0
- package/dist/esm/api/resources/trackingIntegrations/index.mjs +2 -0
- package/dist/esm/api/resources/trackingIntegrations/resources/index.d.mts +1 -0
- package/dist/esm/api/resources/trackingIntegrations/resources/index.mjs +1 -0
- package/dist/esm/api/resources/trackingIntegrations/resources/tive/client/Client.d.mts +29 -0
- package/dist/esm/api/resources/trackingIntegrations/resources/tive/client/Client.mjs +23 -0
- package/dist/esm/api/resources/trackingIntegrations/resources/tive/client/index.d.mts +1 -0
- package/dist/esm/api/resources/trackingIntegrations/resources/tive/client/index.mjs +1 -0
- package/dist/esm/api/resources/trackingIntegrations/resources/tive/index.d.mts +2 -0
- package/dist/esm/api/resources/trackingIntegrations/resources/tive/index.mjs +2 -0
- package/dist/esm/api/resources/trackingIntegrations/resources/tive/resources/devices/client/Client.d.mts +71 -0
- package/dist/esm/api/resources/trackingIntegrations/resources/tive/resources/devices/client/Client.mjs +189 -0
- package/dist/esm/api/resources/trackingIntegrations/resources/tive/resources/devices/client/index.d.mts +2 -0
- package/dist/esm/api/resources/trackingIntegrations/resources/tive/resources/devices/client/index.mjs +1 -0
- package/dist/esm/api/resources/trackingIntegrations/resources/tive/resources/devices/client/requests/DevicesGetV1Request.d.mts +12 -0
- package/dist/esm/api/resources/trackingIntegrations/resources/tive/resources/devices/client/requests/DevicesGetV1Request.mjs +4 -0
- package/dist/esm/api/resources/trackingIntegrations/resources/tive/resources/devices/client/requests/DevicesListV1Request.d.mts +33 -0
- package/dist/esm/api/resources/trackingIntegrations/resources/tive/resources/devices/client/requests/DevicesListV1Request.mjs +4 -0
- package/dist/esm/api/resources/trackingIntegrations/resources/tive/resources/devices/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/trackingIntegrations/resources/tive/resources/devices/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/trackingIntegrations/resources/tive/resources/devices/index.d.mts +1 -0
- package/dist/esm/api/resources/trackingIntegrations/resources/tive/resources/devices/index.mjs +1 -0
- package/dist/esm/api/resources/trackingIntegrations/resources/tive/resources/index.d.mts +6 -0
- package/dist/esm/api/resources/trackingIntegrations/resources/tive/resources/index.mjs +6 -0
- package/dist/esm/api/resources/trackingIntegrations/resources/tive/resources/shipments/client/Client.d.mts +71 -0
- package/dist/esm/api/resources/trackingIntegrations/resources/tive/resources/shipments/client/Client.mjs +189 -0
- package/dist/esm/api/resources/trackingIntegrations/resources/tive/resources/shipments/client/index.d.mts +2 -0
- package/dist/esm/api/resources/trackingIntegrations/resources/tive/resources/shipments/client/index.mjs +1 -0
- package/dist/esm/api/resources/trackingIntegrations/resources/tive/resources/shipments/client/requests/ShipmentsGetV1Request.d.mts +12 -0
- package/dist/esm/api/resources/trackingIntegrations/resources/tive/resources/shipments/client/requests/ShipmentsGetV1Request.mjs +4 -0
- package/dist/esm/api/resources/trackingIntegrations/resources/tive/resources/shipments/client/requests/ShipmentsListV1Request.d.mts +33 -0
- package/dist/esm/api/resources/trackingIntegrations/resources/tive/resources/shipments/client/requests/ShipmentsListV1Request.mjs +4 -0
- package/dist/esm/api/resources/trackingIntegrations/resources/tive/resources/shipments/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/trackingIntegrations/resources/tive/resources/shipments/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/trackingIntegrations/resources/tive/resources/shipments/index.d.mts +1 -0
- package/dist/esm/api/resources/trackingIntegrations/resources/tive/resources/shipments/index.mjs +1 -0
- package/dist/esm/api/resources/trackingIntegrations/resources/tive/resources/timeseries/client/Client.d.mts +81 -0
- package/dist/esm/api/resources/trackingIntegrations/resources/tive/resources/timeseries/client/Client.mjs +230 -0
- package/dist/esm/api/resources/trackingIntegrations/resources/tive/resources/timeseries/client/index.d.mts +2 -0
- package/dist/esm/api/resources/trackingIntegrations/resources/tive/resources/timeseries/client/index.mjs +1 -0
- package/dist/esm/api/resources/trackingIntegrations/resources/tive/resources/timeseries/client/requests/TimeseriesDataPointsV1Request.d.mts +16 -0
- package/dist/esm/api/resources/trackingIntegrations/resources/tive/resources/timeseries/client/requests/TimeseriesDataPointsV1Request.mjs +4 -0
- package/dist/esm/api/resources/trackingIntegrations/resources/tive/resources/timeseries/client/requests/TimeseriesLastSeenV1Request.d.mts +12 -0
- package/dist/esm/api/resources/trackingIntegrations/resources/tive/resources/timeseries/client/requests/TimeseriesLastSeenV1Request.mjs +4 -0
- package/dist/esm/api/resources/trackingIntegrations/resources/tive/resources/timeseries/client/requests/TimeseriesSyncV1Request.d.mts +12 -0
- package/dist/esm/api/resources/trackingIntegrations/resources/tive/resources/timeseries/client/requests/TimeseriesSyncV1Request.mjs +4 -0
- package/dist/esm/api/resources/trackingIntegrations/resources/tive/resources/timeseries/client/requests/index.d.mts +3 -0
- package/dist/esm/api/resources/trackingIntegrations/resources/tive/resources/timeseries/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/trackingIntegrations/resources/tive/resources/timeseries/index.d.mts +1 -0
- package/dist/esm/api/resources/trackingIntegrations/resources/tive/resources/timeseries/index.mjs +1 -0
- package/dist/esm/api/types/TiveDataPoint1.d.mts +22 -0
- package/dist/esm/api/types/TiveDataPoint1.mjs +4 -0
- package/dist/esm/api/types/TiveDataPointMetadata1.d.mts +8 -0
- package/dist/esm/api/types/TiveDataPointMetadata1.mjs +4 -0
- package/dist/esm/api/types/TiveDevice1.d.mts +17 -0
- package/dist/esm/api/types/TiveDevice1.mjs +4 -0
- package/dist/esm/api/types/TiveDeviceListRes.d.mts +8 -0
- package/dist/esm/api/types/TiveDeviceListRes.mjs +4 -0
- package/dist/esm/api/types/TiveDeviceSortByEnum.d.mts +8 -0
- package/dist/esm/api/types/TiveDeviceSortByEnum.mjs +7 -0
- package/dist/esm/api/types/TiveShipment1.d.mts +15 -0
- package/dist/esm/api/types/TiveShipment1.mjs +4 -0
- package/dist/esm/api/types/TiveShipmentListRes.d.mts +8 -0
- package/dist/esm/api/types/TiveShipmentListRes.mjs +4 -0
- package/dist/esm/api/types/TiveShipmentSortByEnum.d.mts +8 -0
- package/dist/esm/api/types/TiveShipmentSortByEnum.mjs +7 -0
- package/dist/esm/api/types/TiveTimeseriesRes.d.mts +7 -0
- package/dist/esm/api/types/TiveTimeseriesRes.mjs +4 -0
- package/dist/esm/api/types/TiveTimeseriesSyncRes.d.mts +9 -0
- package/dist/esm/api/types/TiveTimeseriesSyncRes.mjs +4 -0
- package/dist/esm/api/types/index.d.mts +10 -0
- package/dist/esm/api/types/index.mjs +10 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +477 -0
package/dist/esm/Client.d.mts
CHANGED
|
@@ -11,6 +11,7 @@ import { Integrations } from "./api/resources/integrations/client/Client.mjs";
|
|
|
11
11
|
import { Notifications } from "./api/resources/notifications/client/Client.mjs";
|
|
12
12
|
import { Shipping } from "./api/resources/shipping/client/Client.mjs";
|
|
13
13
|
import { Tracking } from "./api/resources/tracking/client/Client.mjs";
|
|
14
|
+
import { TrackingIntegrations } from "./api/resources/trackingIntegrations/client/Client.mjs";
|
|
14
15
|
import { Users } from "./api/resources/users/client/Client.mjs";
|
|
15
16
|
export declare namespace ChrtClient {
|
|
16
17
|
interface Options {
|
|
@@ -45,6 +46,7 @@ export declare class ChrtClient {
|
|
|
45
46
|
protected _notifications: Notifications | undefined;
|
|
46
47
|
protected _shipping: Shipping | undefined;
|
|
47
48
|
protected _tracking: Tracking | undefined;
|
|
49
|
+
protected _trackingIntegrations: TrackingIntegrations | undefined;
|
|
48
50
|
protected _users: Users | undefined;
|
|
49
51
|
constructor(_options?: ChrtClient.Options);
|
|
50
52
|
get orgs(): Orgs;
|
|
@@ -55,5 +57,6 @@ export declare class ChrtClient {
|
|
|
55
57
|
get notifications(): Notifications;
|
|
56
58
|
get shipping(): Shipping;
|
|
57
59
|
get tracking(): Tracking;
|
|
60
|
+
get trackingIntegrations(): TrackingIntegrations;
|
|
58
61
|
get users(): Users;
|
|
59
62
|
}
|
package/dist/esm/Client.mjs
CHANGED
|
@@ -11,14 +11,15 @@ import { Integrations } from "./api/resources/integrations/client/Client.mjs";
|
|
|
11
11
|
import { Notifications } from "./api/resources/notifications/client/Client.mjs";
|
|
12
12
|
import { Shipping } from "./api/resources/shipping/client/Client.mjs";
|
|
13
13
|
import { Tracking } from "./api/resources/tracking/client/Client.mjs";
|
|
14
|
+
import { TrackingIntegrations } from "./api/resources/trackingIntegrations/client/Client.mjs";
|
|
14
15
|
import { Users } from "./api/resources/users/client/Client.mjs";
|
|
15
16
|
export class ChrtClient {
|
|
16
17
|
constructor(_options = {}) {
|
|
17
18
|
this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
|
|
18
19
|
"X-Fern-Language": "JavaScript",
|
|
19
20
|
"X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
|
|
20
|
-
"X-Fern-SDK-Version": "1.
|
|
21
|
-
"User-Agent": "@chrt-inc/typescript-sdk/1.
|
|
21
|
+
"X-Fern-SDK-Version": "1.601.0",
|
|
22
|
+
"User-Agent": "@chrt-inc/typescript-sdk/1.601.0",
|
|
22
23
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
23
24
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
24
25
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -55,6 +56,10 @@ export class ChrtClient {
|
|
|
55
56
|
var _a;
|
|
56
57
|
return ((_a = this._tracking) !== null && _a !== void 0 ? _a : (this._tracking = new Tracking(this._options)));
|
|
57
58
|
}
|
|
59
|
+
get trackingIntegrations() {
|
|
60
|
+
var _a;
|
|
61
|
+
return ((_a = this._trackingIntegrations) !== null && _a !== void 0 ? _a : (this._trackingIntegrations = new TrackingIntegrations(this._options)));
|
|
62
|
+
}
|
|
58
63
|
get users() {
|
|
59
64
|
var _a;
|
|
60
65
|
return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new Users(this._options)));
|
|
@@ -6,6 +6,7 @@ export * as integrations from "./integrations/index.mjs";
|
|
|
6
6
|
export * as notifications from "./notifications/index.mjs";
|
|
7
7
|
export * as shipping from "./shipping/index.mjs";
|
|
8
8
|
export * as tracking from "./tracking/index.mjs";
|
|
9
|
+
export * as trackingIntegrations from "./trackingIntegrations/index.mjs";
|
|
9
10
|
export * as users from "./users/index.mjs";
|
|
10
11
|
export * from "./orgs/client/requests/index.mjs";
|
|
11
12
|
export * from "./utils/client/requests/index.mjs";
|
|
@@ -6,6 +6,7 @@ export * as integrations from "./integrations/index.mjs";
|
|
|
6
6
|
export * as notifications from "./notifications/index.mjs";
|
|
7
7
|
export * as shipping from "./shipping/index.mjs";
|
|
8
8
|
export * as tracking from "./tracking/index.mjs";
|
|
9
|
+
export * as trackingIntegrations from "./trackingIntegrations/index.mjs";
|
|
9
10
|
export * as users from "./users/index.mjs";
|
|
10
11
|
export * from "./orgs/client/requests/index.mjs";
|
|
11
12
|
export * from "./utils/client/requests/index.mjs";
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as environments from "../../../../environments.mjs";
|
|
5
|
+
import * as core from "../../../../core/index.mjs";
|
|
6
|
+
import { Tive } from "../resources/tive/client/Client.mjs";
|
|
7
|
+
export declare namespace TrackingIntegrations {
|
|
8
|
+
interface Options {
|
|
9
|
+
environment?: core.Supplier<environments.ChrtEnvironment | string>;
|
|
10
|
+
/** Specify a custom URL to connect the client to. */
|
|
11
|
+
baseUrl?: core.Supplier<string>;
|
|
12
|
+
token?: core.Supplier<core.BearerToken | undefined>;
|
|
13
|
+
/** Additional headers to include in requests. */
|
|
14
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
15
|
+
fetcher?: core.FetchFunction;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
export declare class TrackingIntegrations {
|
|
19
|
+
protected readonly _options: TrackingIntegrations.Options;
|
|
20
|
+
protected _tive: Tive | undefined;
|
|
21
|
+
constructor(_options?: TrackingIntegrations.Options);
|
|
22
|
+
get tive(): Tive;
|
|
23
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import { Tive } from "../resources/tive/client/Client.mjs";
|
|
5
|
+
export class TrackingIntegrations {
|
|
6
|
+
constructor(_options = {}) {
|
|
7
|
+
this._options = _options;
|
|
8
|
+
}
|
|
9
|
+
get tive() {
|
|
10
|
+
var _a;
|
|
11
|
+
return ((_a = this._tive) !== null && _a !== void 0 ? _a : (this._tive = new Tive(this._options)));
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as tive from "./tive/index.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as tive from "./tive/index.mjs";
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as environments from "../../../../../../environments.mjs";
|
|
5
|
+
import * as core from "../../../../../../core/index.mjs";
|
|
6
|
+
import { Devices } from "../resources/devices/client/Client.mjs";
|
|
7
|
+
import { Shipments } from "../resources/shipments/client/Client.mjs";
|
|
8
|
+
import { Timeseries } from "../resources/timeseries/client/Client.mjs";
|
|
9
|
+
export declare namespace Tive {
|
|
10
|
+
interface Options {
|
|
11
|
+
environment?: core.Supplier<environments.ChrtEnvironment | string>;
|
|
12
|
+
/** Specify a custom URL to connect the client to. */
|
|
13
|
+
baseUrl?: core.Supplier<string>;
|
|
14
|
+
token?: core.Supplier<core.BearerToken | undefined>;
|
|
15
|
+
/** Additional headers to include in requests. */
|
|
16
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
17
|
+
fetcher?: core.FetchFunction;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
export declare class Tive {
|
|
21
|
+
protected readonly _options: Tive.Options;
|
|
22
|
+
protected _devices: Devices | undefined;
|
|
23
|
+
protected _shipments: Shipments | undefined;
|
|
24
|
+
protected _timeseries: Timeseries | undefined;
|
|
25
|
+
constructor(_options?: Tive.Options);
|
|
26
|
+
get devices(): Devices;
|
|
27
|
+
get shipments(): Shipments;
|
|
28
|
+
get timeseries(): Timeseries;
|
|
29
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import { Devices } from "../resources/devices/client/Client.mjs";
|
|
5
|
+
import { Shipments } from "../resources/shipments/client/Client.mjs";
|
|
6
|
+
import { Timeseries } from "../resources/timeseries/client/Client.mjs";
|
|
7
|
+
export class Tive {
|
|
8
|
+
constructor(_options = {}) {
|
|
9
|
+
this._options = _options;
|
|
10
|
+
}
|
|
11
|
+
get devices() {
|
|
12
|
+
var _a;
|
|
13
|
+
return ((_a = this._devices) !== null && _a !== void 0 ? _a : (this._devices = new Devices(this._options)));
|
|
14
|
+
}
|
|
15
|
+
get shipments() {
|
|
16
|
+
var _a;
|
|
17
|
+
return ((_a = this._shipments) !== null && _a !== void 0 ? _a : (this._shipments = new Shipments(this._options)));
|
|
18
|
+
}
|
|
19
|
+
get timeseries() {
|
|
20
|
+
var _a;
|
|
21
|
+
return ((_a = this._timeseries) !== null && _a !== void 0 ? _a : (this._timeseries = new Timeseries(this._options)));
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as environments from "../../../../../../../../environments.mjs";
|
|
5
|
+
import * as core from "../../../../../../../../core/index.mjs";
|
|
6
|
+
import * as Chrt from "../../../../../../../index.mjs";
|
|
7
|
+
export declare namespace Devices {
|
|
8
|
+
interface Options {
|
|
9
|
+
environment?: core.Supplier<environments.ChrtEnvironment | string>;
|
|
10
|
+
/** Specify a custom URL to connect the client to. */
|
|
11
|
+
baseUrl?: core.Supplier<string>;
|
|
12
|
+
token?: core.Supplier<core.BearerToken | undefined>;
|
|
13
|
+
/** Additional headers to include in requests. */
|
|
14
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
15
|
+
fetcher?: core.FetchFunction;
|
|
16
|
+
}
|
|
17
|
+
interface RequestOptions {
|
|
18
|
+
/** The maximum time to wait for a response in seconds. */
|
|
19
|
+
timeoutInSeconds?: number;
|
|
20
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
21
|
+
maxRetries?: number;
|
|
22
|
+
/** A hook to abort the request. */
|
|
23
|
+
abortSignal?: AbortSignal;
|
|
24
|
+
/** Additional query string parameters to include in the request. */
|
|
25
|
+
queryParams?: Record<string, unknown>;
|
|
26
|
+
/** Additional headers to include in the request. */
|
|
27
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
export declare class Devices {
|
|
31
|
+
protected readonly _options: Devices.Options;
|
|
32
|
+
constructor(_options?: Devices.Options);
|
|
33
|
+
/**
|
|
34
|
+
* Lists Tive devices with filtering, sorting, and pagination. Scoped to the caller's organization. | authz: min_org_role=operator | () -> (TiveDeviceListRes)
|
|
35
|
+
*
|
|
36
|
+
* @param {Chrt.trackingIntegrations.tive.DevicesListV1Request} request
|
|
37
|
+
* @param {Devices.RequestOptions} requestOptions - Request-specific configuration.
|
|
38
|
+
*
|
|
39
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* await client.trackingIntegrations.tive.devices.listV1({
|
|
43
|
+
* sort_by: "chrt_created_at_timestamp",
|
|
44
|
+
* sort_order: "asc",
|
|
45
|
+
* page: 1,
|
|
46
|
+
* page_size: 1,
|
|
47
|
+
* filter_tive_account_id: 1,
|
|
48
|
+
* filter_tive_device_id: "filter_tive_device_id",
|
|
49
|
+
* filter_chrt_created_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
50
|
+
* filter_chrt_created_at_timestamp_lte: "2024-01-15T09:30:00Z"
|
|
51
|
+
* })
|
|
52
|
+
*/
|
|
53
|
+
listV1(request?: Chrt.trackingIntegrations.tive.DevicesListV1Request, requestOptions?: Devices.RequestOptions): core.HttpResponsePromise<Chrt.TiveDeviceListRes>;
|
|
54
|
+
private __listV1;
|
|
55
|
+
/**
|
|
56
|
+
* Retrieves a single Tive device by its ID. Scoped to the caller's organization. | authz: min_org_role=operator | () -> (TiveDevice1)
|
|
57
|
+
*
|
|
58
|
+
* @param {Chrt.trackingIntegrations.tive.DevicesGetV1Request} request
|
|
59
|
+
* @param {Devices.RequestOptions} requestOptions - Request-specific configuration.
|
|
60
|
+
*
|
|
61
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
62
|
+
*
|
|
63
|
+
* @example
|
|
64
|
+
* await client.trackingIntegrations.tive.devices.getV1({
|
|
65
|
+
* tive_device_id: "tive_device_id"
|
|
66
|
+
* })
|
|
67
|
+
*/
|
|
68
|
+
getV1(request: Chrt.trackingIntegrations.tive.DevicesGetV1Request, requestOptions?: Devices.RequestOptions): core.HttpResponsePromise<Chrt.TiveDevice1>;
|
|
69
|
+
private __getV1;
|
|
70
|
+
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
71
|
+
}
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
5
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
6
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
7
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
8
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
9
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
10
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
import * as environments from "../../../../../../../../environments.mjs";
|
|
14
|
+
import * as core from "../../../../../../../../core/index.mjs";
|
|
15
|
+
import * as Chrt from "../../../../../../../index.mjs";
|
|
16
|
+
import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../../../../../core/headers.mjs";
|
|
17
|
+
import * as errors from "../../../../../../../../errors/index.mjs";
|
|
18
|
+
export class Devices {
|
|
19
|
+
constructor(_options = {}) {
|
|
20
|
+
this._options = _options;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Lists Tive devices with filtering, sorting, and pagination. Scoped to the caller's organization. | authz: min_org_role=operator | () -> (TiveDeviceListRes)
|
|
24
|
+
*
|
|
25
|
+
* @param {Chrt.trackingIntegrations.tive.DevicesListV1Request} request
|
|
26
|
+
* @param {Devices.RequestOptions} requestOptions - Request-specific configuration.
|
|
27
|
+
*
|
|
28
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* await client.trackingIntegrations.tive.devices.listV1({
|
|
32
|
+
* sort_by: "chrt_created_at_timestamp",
|
|
33
|
+
* sort_order: "asc",
|
|
34
|
+
* page: 1,
|
|
35
|
+
* page_size: 1,
|
|
36
|
+
* filter_tive_account_id: 1,
|
|
37
|
+
* filter_tive_device_id: "filter_tive_device_id",
|
|
38
|
+
* filter_chrt_created_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
39
|
+
* filter_chrt_created_at_timestamp_lte: "2024-01-15T09:30:00Z"
|
|
40
|
+
* })
|
|
41
|
+
*/
|
|
42
|
+
listV1(request = {}, requestOptions) {
|
|
43
|
+
return core.HttpResponsePromise.fromPromise(this.__listV1(request, requestOptions));
|
|
44
|
+
}
|
|
45
|
+
__listV1() {
|
|
46
|
+
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
47
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
48
|
+
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, filter_tive_account_id: filterTiveAccountId, filter_tive_device_id: filterTiveDeviceId, filter_chrt_created_at_timestamp_gte: filterChrtCreatedAtTimestampGte, filter_chrt_created_at_timestamp_lte: filterChrtCreatedAtTimestampLte, } = request;
|
|
49
|
+
const _queryParams = {};
|
|
50
|
+
if (sortBy !== undefined) {
|
|
51
|
+
_queryParams["sort_by"] = sortBy;
|
|
52
|
+
}
|
|
53
|
+
if (sortOrder !== undefined) {
|
|
54
|
+
_queryParams["sort_order"] = sortOrder;
|
|
55
|
+
}
|
|
56
|
+
if (page !== undefined) {
|
|
57
|
+
_queryParams["page"] = (_a = page === null || page === void 0 ? void 0 : page.toString()) !== null && _a !== void 0 ? _a : null;
|
|
58
|
+
}
|
|
59
|
+
if (pageSize !== undefined) {
|
|
60
|
+
_queryParams["page_size"] = (_b = pageSize === null || pageSize === void 0 ? void 0 : pageSize.toString()) !== null && _b !== void 0 ? _b : null;
|
|
61
|
+
}
|
|
62
|
+
if (filterTiveAccountId !== undefined) {
|
|
63
|
+
_queryParams["filter_tive_account_id"] = (_c = filterTiveAccountId === null || filterTiveAccountId === void 0 ? void 0 : filterTiveAccountId.toString()) !== null && _c !== void 0 ? _c : null;
|
|
64
|
+
}
|
|
65
|
+
if (filterTiveDeviceId !== undefined) {
|
|
66
|
+
_queryParams["filter_tive_device_id"] = filterTiveDeviceId;
|
|
67
|
+
}
|
|
68
|
+
if (filterChrtCreatedAtTimestampGte !== undefined) {
|
|
69
|
+
_queryParams["filter_chrt_created_at_timestamp_gte"] = filterChrtCreatedAtTimestampGte;
|
|
70
|
+
}
|
|
71
|
+
if (filterChrtCreatedAtTimestampLte !== undefined) {
|
|
72
|
+
_queryParams["filter_chrt_created_at_timestamp_lte"] = filterChrtCreatedAtTimestampLte;
|
|
73
|
+
}
|
|
74
|
+
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);
|
|
75
|
+
const _response = yield ((_e = this._options.fetcher) !== null && _e !== void 0 ? _e : core.fetcher)({
|
|
76
|
+
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_integrations/tive/devices/list/v1"),
|
|
77
|
+
method: "GET",
|
|
78
|
+
headers: _headers,
|
|
79
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
80
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
81
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
82
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
83
|
+
});
|
|
84
|
+
if (_response.ok) {
|
|
85
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
86
|
+
}
|
|
87
|
+
if (_response.error.reason === "status-code") {
|
|
88
|
+
switch (_response.error.statusCode) {
|
|
89
|
+
case 422:
|
|
90
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
91
|
+
default:
|
|
92
|
+
throw new errors.ChrtError({
|
|
93
|
+
statusCode: _response.error.statusCode,
|
|
94
|
+
body: _response.error.body,
|
|
95
|
+
rawResponse: _response.rawResponse,
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
switch (_response.error.reason) {
|
|
100
|
+
case "non-json":
|
|
101
|
+
throw new errors.ChrtError({
|
|
102
|
+
statusCode: _response.error.statusCode,
|
|
103
|
+
body: _response.error.rawBody,
|
|
104
|
+
rawResponse: _response.rawResponse,
|
|
105
|
+
});
|
|
106
|
+
case "timeout":
|
|
107
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking_integrations/tive/devices/list/v1.");
|
|
108
|
+
case "unknown":
|
|
109
|
+
throw new errors.ChrtError({
|
|
110
|
+
message: _response.error.errorMessage,
|
|
111
|
+
rawResponse: _response.rawResponse,
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Retrieves a single Tive device by its ID. Scoped to the caller's organization. | authz: min_org_role=operator | () -> (TiveDevice1)
|
|
118
|
+
*
|
|
119
|
+
* @param {Chrt.trackingIntegrations.tive.DevicesGetV1Request} request
|
|
120
|
+
* @param {Devices.RequestOptions} requestOptions - Request-specific configuration.
|
|
121
|
+
*
|
|
122
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
123
|
+
*
|
|
124
|
+
* @example
|
|
125
|
+
* await client.trackingIntegrations.tive.devices.getV1({
|
|
126
|
+
* tive_device_id: "tive_device_id"
|
|
127
|
+
* })
|
|
128
|
+
*/
|
|
129
|
+
getV1(request, requestOptions) {
|
|
130
|
+
return core.HttpResponsePromise.fromPromise(this.__getV1(request, requestOptions));
|
|
131
|
+
}
|
|
132
|
+
__getV1(request, requestOptions) {
|
|
133
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
134
|
+
var _a, _b, _c, _d;
|
|
135
|
+
const { tive_device_id: tiveDeviceId } = request;
|
|
136
|
+
const _queryParams = {};
|
|
137
|
+
_queryParams["tive_device_id"] = tiveDeviceId;
|
|
138
|
+
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);
|
|
139
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
140
|
+
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_integrations/tive/devices/get/v1"),
|
|
141
|
+
method: "GET",
|
|
142
|
+
headers: _headers,
|
|
143
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
144
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
145
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
146
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
147
|
+
});
|
|
148
|
+
if (_response.ok) {
|
|
149
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
150
|
+
}
|
|
151
|
+
if (_response.error.reason === "status-code") {
|
|
152
|
+
switch (_response.error.statusCode) {
|
|
153
|
+
case 422:
|
|
154
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
155
|
+
default:
|
|
156
|
+
throw new errors.ChrtError({
|
|
157
|
+
statusCode: _response.error.statusCode,
|
|
158
|
+
body: _response.error.body,
|
|
159
|
+
rawResponse: _response.rawResponse,
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
switch (_response.error.reason) {
|
|
164
|
+
case "non-json":
|
|
165
|
+
throw new errors.ChrtError({
|
|
166
|
+
statusCode: _response.error.statusCode,
|
|
167
|
+
body: _response.error.rawBody,
|
|
168
|
+
rawResponse: _response.rawResponse,
|
|
169
|
+
});
|
|
170
|
+
case "timeout":
|
|
171
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking_integrations/tive/devices/get/v1.");
|
|
172
|
+
case "unknown":
|
|
173
|
+
throw new errors.ChrtError({
|
|
174
|
+
message: _response.error.errorMessage,
|
|
175
|
+
rawResponse: _response.rawResponse,
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
_getAuthorizationHeader() {
|
|
181
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
182
|
+
const bearer = yield core.Supplier.get(this._options.token);
|
|
183
|
+
if (bearer != null) {
|
|
184
|
+
return `Bearer ${bearer}`;
|
|
185
|
+
}
|
|
186
|
+
return undefined;
|
|
187
|
+
});
|
|
188
|
+
}
|
|
189
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests/index.mjs";
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Chrt from "../../../../../../../../index.mjs";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* sort_by: "chrt_created_at_timestamp",
|
|
9
|
+
* sort_order: "asc",
|
|
10
|
+
* page: 1,
|
|
11
|
+
* page_size: 1,
|
|
12
|
+
* filter_tive_account_id: 1,
|
|
13
|
+
* filter_tive_device_id: "filter_tive_device_id",
|
|
14
|
+
* filter_chrt_created_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
15
|
+
* filter_chrt_created_at_timestamp_lte: "2024-01-15T09:30:00Z"
|
|
16
|
+
* }
|
|
17
|
+
*/
|
|
18
|
+
export interface DevicesListV1Request {
|
|
19
|
+
/** Field to sort by */
|
|
20
|
+
sort_by?: Chrt.TiveDeviceSortByEnum | null;
|
|
21
|
+
/** Sort order (asc or desc) */
|
|
22
|
+
sort_order?: Chrt.SortOrderEnum | null;
|
|
23
|
+
page?: number | null;
|
|
24
|
+
page_size?: number | null;
|
|
25
|
+
/** Filter by Tive account ID */
|
|
26
|
+
filter_tive_account_id?: number | null;
|
|
27
|
+
/** Filter by Tive device ID (exact match) */
|
|
28
|
+
filter_tive_device_id?: string | null;
|
|
29
|
+
/** Filter by chrt_created_at_timestamp >= value */
|
|
30
|
+
filter_chrt_created_at_timestamp_gte?: string | null;
|
|
31
|
+
/** Filter by chrt_created_at_timestamp <= value */
|
|
32
|
+
filter_chrt_created_at_timestamp_lte?: string | null;
|
|
33
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/esm/api/resources/trackingIntegrations/resources/tive/resources/devices/index.d.mts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client/index.mjs";
|
package/dist/esm/api/resources/trackingIntegrations/resources/tive/resources/devices/index.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client/index.mjs";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * as devices from "./devices/index.mjs";
|
|
2
|
+
export * as shipments from "./shipments/index.mjs";
|
|
3
|
+
export * as timeseries from "./timeseries/index.mjs";
|
|
4
|
+
export * from "./devices/client/requests/index.mjs";
|
|
5
|
+
export * from "./shipments/client/requests/index.mjs";
|
|
6
|
+
export * from "./timeseries/client/requests/index.mjs";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * as devices from "./devices/index.mjs";
|
|
2
|
+
export * as shipments from "./shipments/index.mjs";
|
|
3
|
+
export * as timeseries from "./timeseries/index.mjs";
|
|
4
|
+
export * from "./devices/client/requests/index.mjs";
|
|
5
|
+
export * from "./shipments/client/requests/index.mjs";
|
|
6
|
+
export * from "./timeseries/client/requests/index.mjs";
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as environments from "../../../../../../../../environments.mjs";
|
|
5
|
+
import * as core from "../../../../../../../../core/index.mjs";
|
|
6
|
+
import * as Chrt from "../../../../../../../index.mjs";
|
|
7
|
+
export declare namespace Shipments {
|
|
8
|
+
interface Options {
|
|
9
|
+
environment?: core.Supplier<environments.ChrtEnvironment | string>;
|
|
10
|
+
/** Specify a custom URL to connect the client to. */
|
|
11
|
+
baseUrl?: core.Supplier<string>;
|
|
12
|
+
token?: core.Supplier<core.BearerToken | undefined>;
|
|
13
|
+
/** Additional headers to include in requests. */
|
|
14
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
15
|
+
fetcher?: core.FetchFunction;
|
|
16
|
+
}
|
|
17
|
+
interface RequestOptions {
|
|
18
|
+
/** The maximum time to wait for a response in seconds. */
|
|
19
|
+
timeoutInSeconds?: number;
|
|
20
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
21
|
+
maxRetries?: number;
|
|
22
|
+
/** A hook to abort the request. */
|
|
23
|
+
abortSignal?: AbortSignal;
|
|
24
|
+
/** Additional query string parameters to include in the request. */
|
|
25
|
+
queryParams?: Record<string, unknown>;
|
|
26
|
+
/** Additional headers to include in the request. */
|
|
27
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
export declare class Shipments {
|
|
31
|
+
protected readonly _options: Shipments.Options;
|
|
32
|
+
constructor(_options?: Shipments.Options);
|
|
33
|
+
/**
|
|
34
|
+
* Lists Tive shipments with filtering, sorting, and pagination. Scoped to the caller's organization. | authz: min_org_role=operator | () -> (TiveShipmentListRes)
|
|
35
|
+
*
|
|
36
|
+
* @param {Chrt.trackingIntegrations.tive.ShipmentsListV1Request} request
|
|
37
|
+
* @param {Shipments.RequestOptions} requestOptions - Request-specific configuration.
|
|
38
|
+
*
|
|
39
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* await client.trackingIntegrations.tive.shipments.listV1({
|
|
43
|
+
* sort_by: "chrt_created_at_timestamp",
|
|
44
|
+
* sort_order: "asc",
|
|
45
|
+
* page: 1,
|
|
46
|
+
* page_size: 1,
|
|
47
|
+
* filter_tive_device_object_id: "filter_tive_device_object_id",
|
|
48
|
+
* filter_tive_shipment_id: "filter_tive_shipment_id",
|
|
49
|
+
* filter_chrt_created_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
50
|
+
* filter_chrt_created_at_timestamp_lte: "2024-01-15T09:30:00Z"
|
|
51
|
+
* })
|
|
52
|
+
*/
|
|
53
|
+
listV1(request?: Chrt.trackingIntegrations.tive.ShipmentsListV1Request, requestOptions?: Shipments.RequestOptions): core.HttpResponsePromise<Chrt.TiveShipmentListRes>;
|
|
54
|
+
private __listV1;
|
|
55
|
+
/**
|
|
56
|
+
* Retrieves a single Tive shipment by its ID. Scoped to the caller's organization. | authz: min_org_role=operator | () -> (TiveShipment1)
|
|
57
|
+
*
|
|
58
|
+
* @param {Chrt.trackingIntegrations.tive.ShipmentsGetV1Request} request
|
|
59
|
+
* @param {Shipments.RequestOptions} requestOptions - Request-specific configuration.
|
|
60
|
+
*
|
|
61
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
62
|
+
*
|
|
63
|
+
* @example
|
|
64
|
+
* await client.trackingIntegrations.tive.shipments.getV1({
|
|
65
|
+
* tive_shipment_id: "tive_shipment_id"
|
|
66
|
+
* })
|
|
67
|
+
*/
|
|
68
|
+
getV1(request: Chrt.trackingIntegrations.tive.ShipmentsGetV1Request, requestOptions?: Shipments.RequestOptions): core.HttpResponsePromise<Chrt.TiveShipment1>;
|
|
69
|
+
private __getV1;
|
|
70
|
+
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
71
|
+
}
|