@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
package/dist/cjs/Client.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ import { Integrations } from "./api/resources/integrations/client/Client.js";
|
|
|
11
11
|
import { Notifications } from "./api/resources/notifications/client/Client.js";
|
|
12
12
|
import { Shipping } from "./api/resources/shipping/client/Client.js";
|
|
13
13
|
import { Tracking } from "./api/resources/tracking/client/Client.js";
|
|
14
|
+
import { TrackingIntegrations } from "./api/resources/trackingIntegrations/client/Client.js";
|
|
14
15
|
import { Users } from "./api/resources/users/client/Client.js";
|
|
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/cjs/Client.js
CHANGED
|
@@ -47,14 +47,15 @@ const Client_js_5 = require("./api/resources/integrations/client/Client.js");
|
|
|
47
47
|
const Client_js_6 = require("./api/resources/notifications/client/Client.js");
|
|
48
48
|
const Client_js_7 = require("./api/resources/shipping/client/Client.js");
|
|
49
49
|
const Client_js_8 = require("./api/resources/tracking/client/Client.js");
|
|
50
|
-
const Client_js_9 = require("./api/resources/
|
|
50
|
+
const Client_js_9 = require("./api/resources/trackingIntegrations/client/Client.js");
|
|
51
|
+
const Client_js_10 = require("./api/resources/users/client/Client.js");
|
|
51
52
|
class ChrtClient {
|
|
52
53
|
constructor(_options = {}) {
|
|
53
54
|
this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
|
|
54
55
|
"X-Fern-Language": "JavaScript",
|
|
55
56
|
"X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
|
|
56
|
-
"X-Fern-SDK-Version": "1.
|
|
57
|
-
"User-Agent": "@chrt-inc/typescript-sdk/1.
|
|
57
|
+
"X-Fern-SDK-Version": "1.597.0",
|
|
58
|
+
"User-Agent": "@chrt-inc/typescript-sdk/1.597.0",
|
|
58
59
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
59
60
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
60
61
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -91,9 +92,13 @@ class ChrtClient {
|
|
|
91
92
|
var _a;
|
|
92
93
|
return ((_a = this._tracking) !== null && _a !== void 0 ? _a : (this._tracking = new Client_js_8.Tracking(this._options)));
|
|
93
94
|
}
|
|
95
|
+
get trackingIntegrations() {
|
|
96
|
+
var _a;
|
|
97
|
+
return ((_a = this._trackingIntegrations) !== null && _a !== void 0 ? _a : (this._trackingIntegrations = new Client_js_9.TrackingIntegrations(this._options)));
|
|
98
|
+
}
|
|
94
99
|
get users() {
|
|
95
100
|
var _a;
|
|
96
|
-
return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new
|
|
101
|
+
return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new Client_js_10.Users(this._options)));
|
|
97
102
|
}
|
|
98
103
|
}
|
|
99
104
|
exports.ChrtClient = ChrtClient;
|
|
@@ -6,6 +6,7 @@ export * as integrations from "./integrations/index.js";
|
|
|
6
6
|
export * as notifications from "./notifications/index.js";
|
|
7
7
|
export * as shipping from "./shipping/index.js";
|
|
8
8
|
export * as tracking from "./tracking/index.js";
|
|
9
|
+
export * as trackingIntegrations from "./trackingIntegrations/index.js";
|
|
9
10
|
export * as users from "./users/index.js";
|
|
10
11
|
export * from "./orgs/client/requests/index.js";
|
|
11
12
|
export * from "./utils/client/requests/index.js";
|
|
@@ -36,7 +36,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.users = exports.tracking = exports.shipping = exports.notifications = exports.integrations = exports.billing = exports.analytics = exports.utils = exports.orgs = void 0;
|
|
39
|
+
exports.users = exports.trackingIntegrations = exports.tracking = exports.shipping = exports.notifications = exports.integrations = exports.billing = exports.analytics = exports.utils = exports.orgs = void 0;
|
|
40
40
|
exports.orgs = __importStar(require("./orgs/index.js"));
|
|
41
41
|
exports.utils = __importStar(require("./utils/index.js"));
|
|
42
42
|
exports.analytics = __importStar(require("./analytics/index.js"));
|
|
@@ -45,6 +45,7 @@ exports.integrations = __importStar(require("./integrations/index.js"));
|
|
|
45
45
|
exports.notifications = __importStar(require("./notifications/index.js"));
|
|
46
46
|
exports.shipping = __importStar(require("./shipping/index.js"));
|
|
47
47
|
exports.tracking = __importStar(require("./tracking/index.js"));
|
|
48
|
+
exports.trackingIntegrations = __importStar(require("./trackingIntegrations/index.js"));
|
|
48
49
|
exports.users = __importStar(require("./users/index.js"));
|
|
49
50
|
__exportStar(require("./orgs/client/requests/index.js"), exports);
|
|
50
51
|
__exportStar(require("./utils/client/requests/index.js"), exports);
|
package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/expanded/client/Client.d.ts
CHANGED
|
@@ -45,7 +45,7 @@ export declare class Expanded {
|
|
|
45
45
|
retrieveV1(orderRef: string, request: Chrt.OrderAndTaskGroupExpandedReq, requestOptions?: Expanded.RequestOptions): core.HttpResponsePromise<Chrt.OrderDraftExpanded>;
|
|
46
46
|
private __retrieveV1;
|
|
47
47
|
/**
|
|
48
|
-
* Lists expanded draft orders for the organization with filtering, sorting, and
|
|
48
|
+
* Lists expanded draft orders for the organization with filtering, sorting, pagination, and optional search. | (OrderAndTaskGroupExpandedReq) -> (OrderDraftExpandedListRes)
|
|
49
49
|
*
|
|
50
50
|
* @param {Chrt.shipping.orderDrafts.ExpandedListV1Request} request
|
|
51
51
|
* @param {Expanded.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -58,6 +58,7 @@ export declare class Expanded {
|
|
|
58
58
|
* sort_order: "asc",
|
|
59
59
|
* page: 1,
|
|
60
60
|
* page_size: 1,
|
|
61
|
+
* search: "search",
|
|
61
62
|
* filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
62
63
|
* filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
63
64
|
* body: {}
|
|
@@ -65,5 +66,21 @@ export declare class Expanded {
|
|
|
65
66
|
*/
|
|
66
67
|
listV1(request: Chrt.shipping.orderDrafts.ExpandedListV1Request, requestOptions?: Expanded.RequestOptions): core.HttpResponsePromise<Chrt.OrderDraftExpandedListRes>;
|
|
67
68
|
private __listV1;
|
|
69
|
+
/**
|
|
70
|
+
* Returns distinct short_id and off_chrt_reference_id values matching the query via case-insensitive regex. Searches draft orders created by the caller's org. | authz: min_org_role=operator | () -> (list[OrderTypeaheadResult])
|
|
71
|
+
*
|
|
72
|
+
* @param {Chrt.shipping.orderDrafts.ExpandedTypeaheadV1Request} request
|
|
73
|
+
* @param {Expanded.RequestOptions} requestOptions - Request-specific configuration.
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
76
|
+
*
|
|
77
|
+
* @example
|
|
78
|
+
* await client.shipping.orderDrafts.expanded.typeaheadV1({
|
|
79
|
+
* query: "query",
|
|
80
|
+
* limit: 1
|
|
81
|
+
* })
|
|
82
|
+
*/
|
|
83
|
+
typeaheadV1(request: Chrt.shipping.orderDrafts.ExpandedTypeaheadV1Request, requestOptions?: Expanded.RequestOptions): core.HttpResponsePromise<Chrt.OrderTypeaheadResult[]>;
|
|
84
|
+
private __typeaheadV1;
|
|
68
85
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
69
86
|
}
|
package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/expanded/client/Client.js
CHANGED
|
@@ -119,7 +119,7 @@ class Expanded {
|
|
|
119
119
|
});
|
|
120
120
|
}
|
|
121
121
|
/**
|
|
122
|
-
* Lists expanded draft orders for the organization with filtering, sorting, and
|
|
122
|
+
* Lists expanded draft orders for the organization with filtering, sorting, pagination, and optional search. | (OrderAndTaskGroupExpandedReq) -> (OrderDraftExpandedListRes)
|
|
123
123
|
*
|
|
124
124
|
* @param {Chrt.shipping.orderDrafts.ExpandedListV1Request} request
|
|
125
125
|
* @param {Expanded.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -132,6 +132,7 @@ class Expanded {
|
|
|
132
132
|
* sort_order: "asc",
|
|
133
133
|
* page: 1,
|
|
134
134
|
* page_size: 1,
|
|
135
|
+
* search: "search",
|
|
135
136
|
* filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
136
137
|
* filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
137
138
|
* body: {}
|
|
@@ -143,7 +144,7 @@ class Expanded {
|
|
|
143
144
|
__listV1(request, requestOptions) {
|
|
144
145
|
return __awaiter(this, void 0, void 0, function* () {
|
|
145
146
|
var _a, _b, _c, _d, _e, _f;
|
|
146
|
-
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, filter_draft_started_at_timestamp_lte: filterDraftStartedAtTimestampLte, filter_draft_started_at_timestamp_gte: filterDraftStartedAtTimestampGte, body: _body, } = request;
|
|
147
|
+
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, filter_draft_started_at_timestamp_lte: filterDraftStartedAtTimestampLte, filter_draft_started_at_timestamp_gte: filterDraftStartedAtTimestampGte, body: _body, } = request;
|
|
147
148
|
const _queryParams = {};
|
|
148
149
|
if (sortBy !== undefined) {
|
|
149
150
|
_queryParams["sort_by"] = sortBy;
|
|
@@ -157,6 +158,9 @@ class Expanded {
|
|
|
157
158
|
if (pageSize !== undefined) {
|
|
158
159
|
_queryParams["page_size"] = (_b = pageSize === null || pageSize === void 0 ? void 0 : pageSize.toString()) !== null && _b !== void 0 ? _b : null;
|
|
159
160
|
}
|
|
161
|
+
if (search !== undefined) {
|
|
162
|
+
_queryParams["search"] = search;
|
|
163
|
+
}
|
|
160
164
|
if (filterDraftStartedAtTimestampLte !== undefined) {
|
|
161
165
|
_queryParams["filter_draft_started_at_timestamp_lte"] = filterDraftStartedAtTimestampLte;
|
|
162
166
|
}
|
|
@@ -208,6 +212,74 @@ class Expanded {
|
|
|
208
212
|
}
|
|
209
213
|
});
|
|
210
214
|
}
|
|
215
|
+
/**
|
|
216
|
+
* Returns distinct short_id and off_chrt_reference_id values matching the query via case-insensitive regex. Searches draft orders created by the caller's org. | authz: min_org_role=operator | () -> (list[OrderTypeaheadResult])
|
|
217
|
+
*
|
|
218
|
+
* @param {Chrt.shipping.orderDrafts.ExpandedTypeaheadV1Request} request
|
|
219
|
+
* @param {Expanded.RequestOptions} requestOptions - Request-specific configuration.
|
|
220
|
+
*
|
|
221
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
222
|
+
*
|
|
223
|
+
* @example
|
|
224
|
+
* await client.shipping.orderDrafts.expanded.typeaheadV1({
|
|
225
|
+
* query: "query",
|
|
226
|
+
* limit: 1
|
|
227
|
+
* })
|
|
228
|
+
*/
|
|
229
|
+
typeaheadV1(request, requestOptions) {
|
|
230
|
+
return core.HttpResponsePromise.fromPromise(this.__typeaheadV1(request, requestOptions));
|
|
231
|
+
}
|
|
232
|
+
__typeaheadV1(request, requestOptions) {
|
|
233
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
234
|
+
var _a, _b, _c, _d, _e;
|
|
235
|
+
const { query, limit } = request;
|
|
236
|
+
const _queryParams = {};
|
|
237
|
+
_queryParams["query"] = query;
|
|
238
|
+
if (limit !== undefined) {
|
|
239
|
+
_queryParams["limit"] = (_a = limit === null || limit === void 0 ? void 0 : limit.toString()) !== null && _a !== void 0 ? _a : null;
|
|
240
|
+
}
|
|
241
|
+
let _headers = (0, headers_js_1.mergeHeaders)((_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
242
|
+
const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
|
|
243
|
+
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.ChrtEnvironment.Local, "shipping/order_drafts/expanded/typeahead/v1"),
|
|
244
|
+
method: "GET",
|
|
245
|
+
headers: _headers,
|
|
246
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
247
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
248
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
249
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
250
|
+
});
|
|
251
|
+
if (_response.ok) {
|
|
252
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
253
|
+
}
|
|
254
|
+
if (_response.error.reason === "status-code") {
|
|
255
|
+
switch (_response.error.statusCode) {
|
|
256
|
+
case 422:
|
|
257
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
258
|
+
default:
|
|
259
|
+
throw new errors.ChrtError({
|
|
260
|
+
statusCode: _response.error.statusCode,
|
|
261
|
+
body: _response.error.body,
|
|
262
|
+
rawResponse: _response.rawResponse,
|
|
263
|
+
});
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
switch (_response.error.reason) {
|
|
267
|
+
case "non-json":
|
|
268
|
+
throw new errors.ChrtError({
|
|
269
|
+
statusCode: _response.error.statusCode,
|
|
270
|
+
body: _response.error.rawBody,
|
|
271
|
+
rawResponse: _response.rawResponse,
|
|
272
|
+
});
|
|
273
|
+
case "timeout":
|
|
274
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /shipping/order_drafts/expanded/typeahead/v1.");
|
|
275
|
+
case "unknown":
|
|
276
|
+
throw new errors.ChrtError({
|
|
277
|
+
message: _response.error.errorMessage,
|
|
278
|
+
rawResponse: _response.rawResponse,
|
|
279
|
+
});
|
|
280
|
+
}
|
|
281
|
+
});
|
|
282
|
+
}
|
|
211
283
|
_getAuthorizationHeader() {
|
|
212
284
|
return __awaiter(this, void 0, void 0, function* () {
|
|
213
285
|
const bearer = yield core.Supplier.get(this._options.token);
|
|
@@ -9,6 +9,7 @@ import * as Chrt from "../../../../../../../../index.js";
|
|
|
9
9
|
* sort_order: "asc",
|
|
10
10
|
* page: 1,
|
|
11
11
|
* page_size: 1,
|
|
12
|
+
* search: "search",
|
|
12
13
|
* filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
13
14
|
* filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
14
15
|
* body: {}
|
|
@@ -20,6 +21,8 @@ export interface ExpandedListV1Request {
|
|
|
20
21
|
sort_order?: Chrt.SortOrderEnum | null;
|
|
21
22
|
page?: number | null;
|
|
22
23
|
page_size?: number | null;
|
|
24
|
+
/** Full-text search query (searches order short_id and off_chrt_reference_id) */
|
|
25
|
+
search?: string | null;
|
|
23
26
|
filter_draft_started_at_timestamp_lte?: string | null;
|
|
24
27
|
filter_draft_started_at_timestamp_gte?: string | null;
|
|
25
28
|
body: Chrt.OrderAndTaskGroupExpandedReq;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* query: "query",
|
|
8
|
+
* limit: 1
|
|
9
|
+
* }
|
|
10
|
+
*/
|
|
11
|
+
export interface ExpandedTypeaheadV1Request {
|
|
12
|
+
/** Typeahead search query */
|
|
13
|
+
query: string;
|
|
14
|
+
/** Max results per field */
|
|
15
|
+
limit?: number | null;
|
|
16
|
+
}
|
package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.ts
CHANGED
|
@@ -125,7 +125,7 @@ export declare class Expanded {
|
|
|
125
125
|
listForShipperOperatorsV1(request: Chrt.shipping.orders.ExpandedListForShipperOperatorsV1Request, requestOptions?: Expanded.RequestOptions): core.HttpResponsePromise<Chrt.OrdersExpandedListRes>;
|
|
126
126
|
private __listForShipperOperatorsV1;
|
|
127
127
|
/**
|
|
128
|
-
* Returns distinct
|
|
128
|
+
* Returns distinct short_id and off_chrt_reference_id values matching the query via case-insensitive regex. Searches non-draft orders visible to the caller's org. | authz: allowed_org_types=[forwarder, shipper], min_org_role=operator | () -> (list[OrderTypeaheadResult])
|
|
129
129
|
*
|
|
130
130
|
* @param {Chrt.shipping.orders.ExpandedTypeaheadV1Request} request
|
|
131
131
|
* @param {Expanded.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -138,7 +138,7 @@ export declare class Expanded {
|
|
|
138
138
|
* limit: 1
|
|
139
139
|
* })
|
|
140
140
|
*/
|
|
141
|
-
typeaheadV1(request: Chrt.shipping.orders.ExpandedTypeaheadV1Request, requestOptions?: Expanded.RequestOptions): core.HttpResponsePromise<
|
|
141
|
+
typeaheadV1(request: Chrt.shipping.orders.ExpandedTypeaheadV1Request, requestOptions?: Expanded.RequestOptions): core.HttpResponsePromise<Chrt.OrderTypeaheadResult[]>;
|
|
142
142
|
private __typeaheadV1;
|
|
143
143
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
144
144
|
}
|
package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.js
CHANGED
|
@@ -474,7 +474,7 @@ class Expanded {
|
|
|
474
474
|
});
|
|
475
475
|
}
|
|
476
476
|
/**
|
|
477
|
-
* Returns distinct
|
|
477
|
+
* Returns distinct short_id and off_chrt_reference_id values matching the query via case-insensitive regex. Searches non-draft orders visible to the caller's org. | authz: allowed_org_types=[forwarder, shipper], min_org_role=operator | () -> (list[OrderTypeaheadResult])
|
|
478
478
|
*
|
|
479
479
|
* @param {Chrt.shipping.orders.ExpandedTypeaheadV1Request} request
|
|
480
480
|
* @param {Expanded.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -51,7 +51,7 @@ export declare class Tasks {
|
|
|
51
51
|
addToTaskGroupV1(taskGroupId: string, request: Chrt.shipping.AddTaskToGroupReq, requestOptions?: Tasks.RequestOptions): core.HttpResponsePromise<string>;
|
|
52
52
|
private __addToTaskGroupV1;
|
|
53
53
|
/**
|
|
54
|
-
* Updates a task. Operational fields require STAGED status (lig_owner_operators). order_placer_comments can be edited on any non-DRAFT task (order_creator_org_operators). | (TaskClientUpdate1) -> (PydanticObjectId)
|
|
54
|
+
* Updates a task. Operational fields (location, action, time_windows) require STAGED status (lig_owner_operators). order_placer_comments can be edited on any non-DRAFT task (order_creator_org_operators). directory_entry_ids can be edited on STAGED/IN_PROGRESS orders for tasks still in STAGED status (order_creator_org_operators OR lig_owner_operators). | (TaskClientUpdate1) -> (PydanticObjectId)
|
|
55
55
|
*
|
|
56
56
|
* @param {string} taskId
|
|
57
57
|
* @param {Chrt.TaskClientUpdate1} request
|
|
@@ -125,7 +125,7 @@ class Tasks {
|
|
|
125
125
|
});
|
|
126
126
|
}
|
|
127
127
|
/**
|
|
128
|
-
* Updates a task. Operational fields require STAGED status (lig_owner_operators). order_placer_comments can be edited on any non-DRAFT task (order_creator_org_operators). | (TaskClientUpdate1) -> (PydanticObjectId)
|
|
128
|
+
* Updates a task. Operational fields (location, action, time_windows) require STAGED status (lig_owner_operators). order_placer_comments can be edited on any non-DRAFT task (order_creator_org_operators). directory_entry_ids can be edited on STAGED/IN_PROGRESS orders for tasks still in STAGED status (order_creator_org_operators OR lig_owner_operators). | (TaskClientUpdate1) -> (PydanticObjectId)
|
|
129
129
|
*
|
|
130
130
|
* @param {string} taskId
|
|
131
131
|
* @param {Chrt.TaskClientUpdate1} request
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as environments from "../../../../environments.js";
|
|
5
|
+
import * as core from "../../../../core/index.js";
|
|
6
|
+
import { Tive } from "../resources/tive/client/Client.js";
|
|
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,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.TrackingIntegrations = void 0;
|
|
7
|
+
const Client_js_1 = require("../resources/tive/client/Client.js");
|
|
8
|
+
class TrackingIntegrations {
|
|
9
|
+
constructor(_options = {}) {
|
|
10
|
+
this._options = _options;
|
|
11
|
+
}
|
|
12
|
+
get tive() {
|
|
13
|
+
var _a;
|
|
14
|
+
return ((_a = this._tive) !== null && _a !== void 0 ? _a : (this._tive = new Client_js_1.Tive(this._options)));
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.TrackingIntegrations = TrackingIntegrations;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./client/index.js"), exports);
|
|
18
|
+
__exportStar(require("./resources/index.js"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as tive from "./tive/index.js";
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.tive = void 0;
|
|
37
|
+
exports.tive = __importStar(require("./tive/index.js"));
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as environments from "../../../../../../environments.js";
|
|
5
|
+
import * as core from "../../../../../../core/index.js";
|
|
6
|
+
import { Devices } from "../resources/devices/client/Client.js";
|
|
7
|
+
import { Shipments } from "../resources/shipments/client/Client.js";
|
|
8
|
+
import { Timeseries } from "../resources/timeseries/client/Client.js";
|
|
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,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.Tive = void 0;
|
|
7
|
+
const Client_js_1 = require("../resources/devices/client/Client.js");
|
|
8
|
+
const Client_js_2 = require("../resources/shipments/client/Client.js");
|
|
9
|
+
const Client_js_3 = require("../resources/timeseries/client/Client.js");
|
|
10
|
+
class Tive {
|
|
11
|
+
constructor(_options = {}) {
|
|
12
|
+
this._options = _options;
|
|
13
|
+
}
|
|
14
|
+
get devices() {
|
|
15
|
+
var _a;
|
|
16
|
+
return ((_a = this._devices) !== null && _a !== void 0 ? _a : (this._devices = new Client_js_1.Devices(this._options)));
|
|
17
|
+
}
|
|
18
|
+
get shipments() {
|
|
19
|
+
var _a;
|
|
20
|
+
return ((_a = this._shipments) !== null && _a !== void 0 ? _a : (this._shipments = new Client_js_2.Shipments(this._options)));
|
|
21
|
+
}
|
|
22
|
+
get timeseries() {
|
|
23
|
+
var _a;
|
|
24
|
+
return ((_a = this._timeseries) !== null && _a !== void 0 ? _a : (this._timeseries = new Client_js_3.Timeseries(this._options)));
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
exports.Tive = Tive;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./client/index.js"), exports);
|
|
18
|
+
__exportStar(require("./resources/index.js"), exports);
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as environments from "../../../../../../../../environments.js";
|
|
5
|
+
import * as core from "../../../../../../../../core/index.js";
|
|
6
|
+
import * as Chrt from "../../../../../../../index.js";
|
|
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
|
+
}
|