@chrt-inc/typescript-sdk 1.594.0 → 1.597.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/shipping/resources/orderDrafts/resources/expanded/client/Client.d.ts +18 -1
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/expanded/client/Client.js +74 -2
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/expanded/client/requests/ExpandedListV1Request.d.ts +3 -0
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/expanded/client/requests/ExpandedTypeaheadV1Request.d.ts +16 -0
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/expanded/client/requests/ExpandedTypeaheadV1Request.js +5 -0
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/expanded/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.js +1 -1
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedTypeaheadV1Request.d.ts +1 -1
- package/dist/cjs/api/resources/shipping/resources/tasks/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/shipping/resources/tasks/client/Client.js +1 -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/OrderTypeaheadFieldEnum.d.ts +8 -0
- package/dist/cjs/api/types/OrderTypeaheadFieldEnum.js +10 -0
- package/dist/cjs/api/types/OrderTypeaheadResult.d.ts +8 -0
- package/dist/cjs/api/types/OrderTypeaheadResult.js +5 -0
- package/dist/cjs/api/types/TaskGroupExpanded.d.ts +7 -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 +12 -0
- package/dist/cjs/api/types/index.js +12 -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/shipping/resources/orderDrafts/resources/expanded/client/Client.d.mts +18 -1
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/expanded/client/Client.mjs +74 -2
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/expanded/client/requests/ExpandedListV1Request.d.mts +3 -0
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/expanded/client/requests/ExpandedTypeaheadV1Request.d.mts +16 -0
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/expanded/client/requests/ExpandedTypeaheadV1Request.mjs +4 -0
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/expanded/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.mjs +1 -1
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedTypeaheadV1Request.d.mts +1 -1
- package/dist/esm/api/resources/shipping/resources/tasks/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/shipping/resources/tasks/client/Client.mjs +1 -1
- 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/OrderTypeaheadFieldEnum.d.mts +8 -0
- package/dist/esm/api/types/OrderTypeaheadFieldEnum.mjs +7 -0
- package/dist/esm/api/types/OrderTypeaheadResult.d.mts +8 -0
- package/dist/esm/api/types/OrderTypeaheadResult.mjs +4 -0
- package/dist/esm/api/types/TaskGroupExpanded.d.mts +7 -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 +12 -0
- package/dist/esm/api/types/index.mjs +12 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +548 -4
|
@@ -0,0 +1,81 @@
|
|
|
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 Timeseries {
|
|
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 Timeseries {
|
|
31
|
+
protected readonly _options: Timeseries.Options;
|
|
32
|
+
constructor(_options?: Timeseries.Options);
|
|
33
|
+
/**
|
|
34
|
+
* Returns the most recent Tive data point for a shipment. Scoped to the caller's organization. | authz: min_org_role=operator | () -> (TiveDataPoint1 | None)
|
|
35
|
+
*
|
|
36
|
+
* @param {Chrt.trackingIntegrations.tive.TimeseriesLastSeenV1Request} request
|
|
37
|
+
* @param {Timeseries.RequestOptions} requestOptions - Request-specific configuration.
|
|
38
|
+
*
|
|
39
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* await client.trackingIntegrations.tive.timeseries.lastSeenV1({
|
|
43
|
+
* tive_shipment_id: "tive_shipment_id"
|
|
44
|
+
* })
|
|
45
|
+
*/
|
|
46
|
+
lastSeenV1(request: Chrt.trackingIntegrations.tive.TimeseriesLastSeenV1Request, requestOptions?: Timeseries.RequestOptions): core.HttpResponsePromise<(Chrt.TiveDataPoint1 | null) | undefined>;
|
|
47
|
+
private __lastSeenV1;
|
|
48
|
+
/**
|
|
49
|
+
* Returns raw Tive data points for a shipment within the given time range. Scoped to the caller's organization. | authz: min_org_role=operator | () -> (TiveTimeseriesRes)
|
|
50
|
+
*
|
|
51
|
+
* @param {Chrt.trackingIntegrations.tive.TimeseriesDataPointsV1Request} request
|
|
52
|
+
* @param {Timeseries.RequestOptions} requestOptions - Request-specific configuration.
|
|
53
|
+
*
|
|
54
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* await client.trackingIntegrations.tive.timeseries.dataPointsV1({
|
|
58
|
+
* tive_shipment_id: "tive_shipment_id",
|
|
59
|
+
* start_timestamp: "2024-01-15T09:30:00Z",
|
|
60
|
+
* end_timestamp: "2024-01-15T09:30:00Z"
|
|
61
|
+
* })
|
|
62
|
+
*/
|
|
63
|
+
dataPointsV1(request: Chrt.trackingIntegrations.tive.TimeseriesDataPointsV1Request, requestOptions?: Timeseries.RequestOptions): core.HttpResponsePromise<Chrt.TiveTimeseriesRes>;
|
|
64
|
+
private __dataPointsV1;
|
|
65
|
+
/**
|
|
66
|
+
* Fetches new Tive tracker data points from the Tive API for a shipment and stores them in our timeseries collection. Uses a high-water-mark strategy with overlap dedup to prevent duplicate inserts. | authz: min_org_role=operator | () -> (TiveTimeseriesSyncRes)
|
|
67
|
+
*
|
|
68
|
+
* @param {Chrt.trackingIntegrations.tive.TimeseriesSyncV1Request} request
|
|
69
|
+
* @param {Timeseries.RequestOptions} requestOptions - Request-specific configuration.
|
|
70
|
+
*
|
|
71
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
72
|
+
*
|
|
73
|
+
* @example
|
|
74
|
+
* await client.trackingIntegrations.tive.timeseries.syncV1({
|
|
75
|
+
* tive_shipment_id: "tive_shipment_id"
|
|
76
|
+
* })
|
|
77
|
+
*/
|
|
78
|
+
syncV1(request: Chrt.trackingIntegrations.tive.TimeseriesSyncV1Request, requestOptions?: Timeseries.RequestOptions): core.HttpResponsePromise<Chrt.TiveTimeseriesSyncRes>;
|
|
79
|
+
private __syncV1;
|
|
80
|
+
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
81
|
+
}
|
|
@@ -0,0 +1,230 @@
|
|
|
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 Timeseries {
|
|
19
|
+
constructor(_options = {}) {
|
|
20
|
+
this._options = _options;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Returns the most recent Tive data point for a shipment. Scoped to the caller's organization. | authz: min_org_role=operator | () -> (TiveDataPoint1 | None)
|
|
24
|
+
*
|
|
25
|
+
* @param {Chrt.trackingIntegrations.tive.TimeseriesLastSeenV1Request} request
|
|
26
|
+
* @param {Timeseries.RequestOptions} requestOptions - Request-specific configuration.
|
|
27
|
+
*
|
|
28
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* await client.trackingIntegrations.tive.timeseries.lastSeenV1({
|
|
32
|
+
* tive_shipment_id: "tive_shipment_id"
|
|
33
|
+
* })
|
|
34
|
+
*/
|
|
35
|
+
lastSeenV1(request, requestOptions) {
|
|
36
|
+
return core.HttpResponsePromise.fromPromise(this.__lastSeenV1(request, requestOptions));
|
|
37
|
+
}
|
|
38
|
+
__lastSeenV1(request, requestOptions) {
|
|
39
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
40
|
+
var _a, _b, _c, _d;
|
|
41
|
+
const { tive_shipment_id: tiveShipmentId } = request;
|
|
42
|
+
const _queryParams = {};
|
|
43
|
+
_queryParams["tive_shipment_id"] = tiveShipmentId;
|
|
44
|
+
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);
|
|
45
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
46
|
+
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/timeseries/last_seen/v1"),
|
|
47
|
+
method: "GET",
|
|
48
|
+
headers: _headers,
|
|
49
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
50
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
51
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
52
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
53
|
+
});
|
|
54
|
+
if (_response.ok) {
|
|
55
|
+
return {
|
|
56
|
+
data: _response.body,
|
|
57
|
+
rawResponse: _response.rawResponse,
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
if (_response.error.reason === "status-code") {
|
|
61
|
+
switch (_response.error.statusCode) {
|
|
62
|
+
case 422:
|
|
63
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
64
|
+
default:
|
|
65
|
+
throw new errors.ChrtError({
|
|
66
|
+
statusCode: _response.error.statusCode,
|
|
67
|
+
body: _response.error.body,
|
|
68
|
+
rawResponse: _response.rawResponse,
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
switch (_response.error.reason) {
|
|
73
|
+
case "non-json":
|
|
74
|
+
throw new errors.ChrtError({
|
|
75
|
+
statusCode: _response.error.statusCode,
|
|
76
|
+
body: _response.error.rawBody,
|
|
77
|
+
rawResponse: _response.rawResponse,
|
|
78
|
+
});
|
|
79
|
+
case "timeout":
|
|
80
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking_integrations/tive/timeseries/last_seen/v1.");
|
|
81
|
+
case "unknown":
|
|
82
|
+
throw new errors.ChrtError({
|
|
83
|
+
message: _response.error.errorMessage,
|
|
84
|
+
rawResponse: _response.rawResponse,
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Returns raw Tive data points for a shipment within the given time range. Scoped to the caller's organization. | authz: min_org_role=operator | () -> (TiveTimeseriesRes)
|
|
91
|
+
*
|
|
92
|
+
* @param {Chrt.trackingIntegrations.tive.TimeseriesDataPointsV1Request} request
|
|
93
|
+
* @param {Timeseries.RequestOptions} requestOptions - Request-specific configuration.
|
|
94
|
+
*
|
|
95
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
96
|
+
*
|
|
97
|
+
* @example
|
|
98
|
+
* await client.trackingIntegrations.tive.timeseries.dataPointsV1({
|
|
99
|
+
* tive_shipment_id: "tive_shipment_id",
|
|
100
|
+
* start_timestamp: "2024-01-15T09:30:00Z",
|
|
101
|
+
* end_timestamp: "2024-01-15T09:30:00Z"
|
|
102
|
+
* })
|
|
103
|
+
*/
|
|
104
|
+
dataPointsV1(request, requestOptions) {
|
|
105
|
+
return core.HttpResponsePromise.fromPromise(this.__dataPointsV1(request, requestOptions));
|
|
106
|
+
}
|
|
107
|
+
__dataPointsV1(request, requestOptions) {
|
|
108
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
109
|
+
var _a, _b, _c, _d;
|
|
110
|
+
const { tive_shipment_id: tiveShipmentId, start_timestamp: startTimestamp, end_timestamp: endTimestamp, } = request;
|
|
111
|
+
const _queryParams = {};
|
|
112
|
+
_queryParams["tive_shipment_id"] = tiveShipmentId;
|
|
113
|
+
_queryParams["start_timestamp"] = startTimestamp;
|
|
114
|
+
_queryParams["end_timestamp"] = endTimestamp;
|
|
115
|
+
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);
|
|
116
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
117
|
+
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/timeseries/data_points/v1"),
|
|
118
|
+
method: "GET",
|
|
119
|
+
headers: _headers,
|
|
120
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
121
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
122
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
123
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
124
|
+
});
|
|
125
|
+
if (_response.ok) {
|
|
126
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
127
|
+
}
|
|
128
|
+
if (_response.error.reason === "status-code") {
|
|
129
|
+
switch (_response.error.statusCode) {
|
|
130
|
+
case 422:
|
|
131
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
132
|
+
default:
|
|
133
|
+
throw new errors.ChrtError({
|
|
134
|
+
statusCode: _response.error.statusCode,
|
|
135
|
+
body: _response.error.body,
|
|
136
|
+
rawResponse: _response.rawResponse,
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
switch (_response.error.reason) {
|
|
141
|
+
case "non-json":
|
|
142
|
+
throw new errors.ChrtError({
|
|
143
|
+
statusCode: _response.error.statusCode,
|
|
144
|
+
body: _response.error.rawBody,
|
|
145
|
+
rawResponse: _response.rawResponse,
|
|
146
|
+
});
|
|
147
|
+
case "timeout":
|
|
148
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking_integrations/tive/timeseries/data_points/v1.");
|
|
149
|
+
case "unknown":
|
|
150
|
+
throw new errors.ChrtError({
|
|
151
|
+
message: _response.error.errorMessage,
|
|
152
|
+
rawResponse: _response.rawResponse,
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* Fetches new Tive tracker data points from the Tive API for a shipment and stores them in our timeseries collection. Uses a high-water-mark strategy with overlap dedup to prevent duplicate inserts. | authz: min_org_role=operator | () -> (TiveTimeseriesSyncRes)
|
|
159
|
+
*
|
|
160
|
+
* @param {Chrt.trackingIntegrations.tive.TimeseriesSyncV1Request} request
|
|
161
|
+
* @param {Timeseries.RequestOptions} requestOptions - Request-specific configuration.
|
|
162
|
+
*
|
|
163
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
164
|
+
*
|
|
165
|
+
* @example
|
|
166
|
+
* await client.trackingIntegrations.tive.timeseries.syncV1({
|
|
167
|
+
* tive_shipment_id: "tive_shipment_id"
|
|
168
|
+
* })
|
|
169
|
+
*/
|
|
170
|
+
syncV1(request, requestOptions) {
|
|
171
|
+
return core.HttpResponsePromise.fromPromise(this.__syncV1(request, requestOptions));
|
|
172
|
+
}
|
|
173
|
+
__syncV1(request, requestOptions) {
|
|
174
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
175
|
+
var _a, _b, _c, _d;
|
|
176
|
+
const { tive_shipment_id: tiveShipmentId } = request;
|
|
177
|
+
const _queryParams = {};
|
|
178
|
+
_queryParams["tive_shipment_id"] = tiveShipmentId;
|
|
179
|
+
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);
|
|
180
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
181
|
+
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/timeseries/sync/v1"),
|
|
182
|
+
method: "POST",
|
|
183
|
+
headers: _headers,
|
|
184
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
185
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
186
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
187
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
188
|
+
});
|
|
189
|
+
if (_response.ok) {
|
|
190
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
191
|
+
}
|
|
192
|
+
if (_response.error.reason === "status-code") {
|
|
193
|
+
switch (_response.error.statusCode) {
|
|
194
|
+
case 422:
|
|
195
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
196
|
+
default:
|
|
197
|
+
throw new errors.ChrtError({
|
|
198
|
+
statusCode: _response.error.statusCode,
|
|
199
|
+
body: _response.error.body,
|
|
200
|
+
rawResponse: _response.rawResponse,
|
|
201
|
+
});
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
switch (_response.error.reason) {
|
|
205
|
+
case "non-json":
|
|
206
|
+
throw new errors.ChrtError({
|
|
207
|
+
statusCode: _response.error.statusCode,
|
|
208
|
+
body: _response.error.rawBody,
|
|
209
|
+
rawResponse: _response.rawResponse,
|
|
210
|
+
});
|
|
211
|
+
case "timeout":
|
|
212
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /tracking_integrations/tive/timeseries/sync/v1.");
|
|
213
|
+
case "unknown":
|
|
214
|
+
throw new errors.ChrtError({
|
|
215
|
+
message: _response.error.errorMessage,
|
|
216
|
+
rawResponse: _response.rawResponse,
|
|
217
|
+
});
|
|
218
|
+
}
|
|
219
|
+
});
|
|
220
|
+
}
|
|
221
|
+
_getAuthorizationHeader() {
|
|
222
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
223
|
+
const bearer = yield core.Supplier.get(this._options.token);
|
|
224
|
+
if (bearer != null) {
|
|
225
|
+
return `Bearer ${bearer}`;
|
|
226
|
+
}
|
|
227
|
+
return undefined;
|
|
228
|
+
});
|
|
229
|
+
}
|
|
230
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests/index.mjs";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* tive_shipment_id: "tive_shipment_id",
|
|
8
|
+
* start_timestamp: "2024-01-15T09:30:00Z",
|
|
9
|
+
* end_timestamp: "2024-01-15T09:30:00Z"
|
|
10
|
+
* }
|
|
11
|
+
*/
|
|
12
|
+
export interface TimeseriesDataPointsV1Request {
|
|
13
|
+
tive_shipment_id: string;
|
|
14
|
+
start_timestamp: string;
|
|
15
|
+
end_timestamp: string;
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/esm/api/resources/trackingIntegrations/resources/tive/resources/timeseries/index.d.mts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client/index.mjs";
|
package/dist/esm/api/resources/trackingIntegrations/resources/tive/resources/timeseries/index.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client/index.mjs";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export type OrderTypeaheadFieldEnum = "off_chrt_reference_id" | "short_id";
|
|
5
|
+
export declare const OrderTypeaheadFieldEnum: {
|
|
6
|
+
readonly OffChrtReferenceId: "off_chrt_reference_id";
|
|
7
|
+
readonly ShortId: "short_id";
|
|
8
|
+
};
|
|
@@ -6,12 +6,19 @@ export interface TaskGroupExpanded {
|
|
|
6
6
|
task_group: Chrt.TaskGroup1;
|
|
7
7
|
tasks_expanded?: Chrt.TaskExpanded[] | null;
|
|
8
8
|
driver?: Chrt.Driver1 | null;
|
|
9
|
+
/** Must be a string starting with `org_` */
|
|
10
|
+
courier_org_id?: string | null;
|
|
9
11
|
courier_org_company_name?: string | null;
|
|
10
12
|
/** Must be a string starting with `@`. May only contain a-z, A-Z, 0-9, _, -. May not be longer than 30 characters. */
|
|
11
13
|
courier_org_handle?: string | null;
|
|
14
|
+
/** Must be a string starting with `org_` */
|
|
15
|
+
forwarder_org_id?: string | null;
|
|
12
16
|
forwarder_org_company_name?: string | null;
|
|
13
17
|
/** Must be a string starting with `@`. May only contain a-z, A-Z, 0-9, _, -. May not be longer than 30 characters. */
|
|
14
18
|
forwarder_org_handle?: string | null;
|
|
19
|
+
/** Must be a string starting with `org_` */
|
|
20
|
+
shipper_org_id?: string | null;
|
|
15
21
|
shipper_org_company_name?: string | null;
|
|
22
|
+
off_chrt_shipper_org_id?: string | null;
|
|
16
23
|
off_chrt_shipper_org_company_name?: string | null;
|
|
17
24
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Chrt from "../index.mjs";
|
|
5
|
+
export interface TiveDataPoint1 {
|
|
6
|
+
schema_version: number;
|
|
7
|
+
timestamp: string;
|
|
8
|
+
metadata: Chrt.TiveDataPointMetadata1;
|
|
9
|
+
location: Chrt.LocationFeature;
|
|
10
|
+
temperature_f?: number | null;
|
|
11
|
+
humidity?: number | null;
|
|
12
|
+
acceleration_g?: number | null;
|
|
13
|
+
acceleration_x?: number | null;
|
|
14
|
+
acceleration_y?: number | null;
|
|
15
|
+
acceleration_z?: number | null;
|
|
16
|
+
light?: number | null;
|
|
17
|
+
motion?: number | null;
|
|
18
|
+
battery?: number | null;
|
|
19
|
+
location_method?: string | null;
|
|
20
|
+
process_time?: string | null;
|
|
21
|
+
_id: string;
|
|
22
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export interface TiveDevice1 {
|
|
5
|
+
schema_version: number;
|
|
6
|
+
_id: string;
|
|
7
|
+
/** Must be a string starting with `org_` */
|
|
8
|
+
org_id: string;
|
|
9
|
+
tive_account_id: number;
|
|
10
|
+
tive_account_name: string;
|
|
11
|
+
tive_device_id: string;
|
|
12
|
+
tive_device_name: string;
|
|
13
|
+
tive_current_shipment_id?: string | null;
|
|
14
|
+
tive_current_public_shipment_id?: string | null;
|
|
15
|
+
chrt_created_at_timestamp: string;
|
|
16
|
+
chrt_updated_at_timestamp: string;
|
|
17
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export type TiveDeviceSortByEnum = "chrt_created_at_timestamp" | "chrt_updated_at_timestamp";
|
|
5
|
+
export declare const TiveDeviceSortByEnum: {
|
|
6
|
+
readonly ChrtCreatedAtTimestamp: "chrt_created_at_timestamp";
|
|
7
|
+
readonly ChrtUpdatedAtTimestamp: "chrt_updated_at_timestamp";
|
|
8
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export interface TiveShipment1 {
|
|
5
|
+
schema_version: number;
|
|
6
|
+
_id: string;
|
|
7
|
+
/** Must be a string starting with `org_` */
|
|
8
|
+
org_id: string;
|
|
9
|
+
tive_device_object_id: string;
|
|
10
|
+
tive_shipment_id: string;
|
|
11
|
+
tive_public_shipment_id?: string | null;
|
|
12
|
+
tive_shipment_status?: Record<string, unknown>;
|
|
13
|
+
chrt_created_at_timestamp: string;
|
|
14
|
+
chrt_updated_at_timestamp: string;
|
|
15
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export type TiveShipmentSortByEnum = "chrt_created_at_timestamp" | "chrt_updated_at_timestamp";
|
|
5
|
+
export declare const TiveShipmentSortByEnum: {
|
|
6
|
+
readonly ChrtCreatedAtTimestamp: "chrt_created_at_timestamp";
|
|
7
|
+
readonly ChrtUpdatedAtTimestamp: "chrt_updated_at_timestamp";
|
|
8
|
+
};
|