@chrt-inc/typescript-sdk 1.887.0 → 1.891.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.js +2 -2
- package/dist/cjs/api/resources/orgs/resources/accounts/client/Client.d.ts +1 -0
- package/dist/cjs/api/resources/orgs/resources/accounts/client/Client.js +5 -1
- package/dist/cjs/api/resources/orgs/resources/accounts/client/requests/AccountsListV1Request.d.ts +3 -0
- package/dist/cjs/api/resources/orgs/resources/contacts/client/Client.d.ts +30 -0
- package/dist/cjs/api/resources/orgs/resources/contacts/client/Client.js +125 -0
- package/dist/cjs/api/resources/orgs/resources/contacts/client/requests/ContactAccountAddReq.d.ts +12 -0
- package/dist/cjs/api/resources/orgs/resources/contacts/client/requests/ContactAccountAddReq.js +5 -0
- package/dist/cjs/api/resources/orgs/resources/contacts/client/requests/ContactClientCreate1.d.ts +1 -1
- package/dist/cjs/api/resources/orgs/resources/contacts/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/shipping/resources/cargos/client/Client.d.ts +53 -0
- package/dist/cjs/api/resources/shipping/resources/cargos/client/Client.js +200 -0
- package/dist/cjs/api/resources/shipping/resources/cargos/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/shipping/resources/cargos/client/index.js +15 -0
- package/dist/cjs/api/resources/shipping/resources/cargos/client/requests/CargoAddToOrderReq.d.ts +18 -0
- package/dist/cjs/api/resources/shipping/resources/cargos/client/requests/CargoAddToOrderReq.js +5 -0
- package/dist/cjs/api/resources/shipping/resources/cargos/client/requests/CargoAssociateWithTaskReq.d.ts +16 -0
- package/dist/cjs/api/resources/shipping/resources/cargos/client/requests/CargoAssociateWithTaskReq.js +5 -0
- package/dist/cjs/api/resources/shipping/resources/cargos/client/requests/CargoUnassociateWithTaskReq.d.ts +16 -0
- package/dist/cjs/api/resources/shipping/resources/cargos/client/requests/CargoUnassociateWithTaskReq.js +5 -0
- package/dist/cjs/api/resources/shipping/resources/cargos/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/resources/shipping/resources/cargos/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/shipping/resources/index.d.ts +1 -0
- package/dist/cjs/api/resources/shipping/resources/index.js +1 -0
- package/dist/cjs/api/resources/trackingIntegrations/client/Client.d.ts +3 -0
- package/dist/cjs/api/resources/trackingIntegrations/client/Client.js +7 -2
- package/dist/cjs/api/resources/trackingIntegrations/resources/index.d.ts +1 -0
- package/dist/cjs/api/resources/trackingIntegrations/resources/index.js +2 -1
- package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/client/Client.d.ts +29 -0
- package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/client/Client.js +27 -0
- package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/client/index.js +2 -0
- package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/index.d.ts +2 -0
- package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/index.js +18 -0
- package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/assets/client/Client.d.ts +93 -0
- package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/assets/client/Client.js +328 -0
- package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/assets/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/assets/client/index.js +17 -0
- package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/assets/client/requests/AssetsListV1Request.d.ts +21 -0
- package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/assets/client/requests/AssetsListV1Request.js +5 -0
- package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/assets/client/requests/ReelablesAssetClientUpdate1.d.ts +14 -0
- package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/assets/client/requests/ReelablesAssetClientUpdate1.js +5 -0
- package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/assets/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/assets/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/assets/index.d.ts +1 -0
- package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/assets/index.js +17 -0
- package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/index.d.ts +6 -0
- package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/index.js +45 -0
- package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/timeseries/client/Client.d.ts +51 -0
- package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/timeseries/client/Client.js +135 -0
- package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/timeseries/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/timeseries/client/index.js +17 -0
- package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/timeseries/client/requests/TimeseriesDataPointsV1Request.d.ts +14 -0
- package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/timeseries/client/requests/TimeseriesDataPointsV1Request.js +5 -0
- package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/timeseries/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/timeseries/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/timeseries/index.d.ts +1 -0
- package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/timeseries/index.js +17 -0
- package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/workspaces/client/Client.d.ts +62 -0
- package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/workspaces/client/Client.js +197 -0
- package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/workspaces/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/workspaces/client/index.js +17 -0
- package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/workspaces/client/requests/WorkspacesListV1Request.d.ts +21 -0
- package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/workspaces/client/requests/WorkspacesListV1Request.js +5 -0
- package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/workspaces/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/workspaces/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/workspaces/index.d.ts +1 -0
- package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/workspaces/index.js +17 -0
- package/dist/cjs/api/types/Contact1.d.ts +1 -1
- package/dist/cjs/api/types/ReelablesAsset1.d.ts +22 -0
- package/dist/cjs/api/types/ReelablesAsset1.js +5 -0
- package/dist/cjs/api/types/ReelablesAssetListRes.d.ts +8 -0
- package/dist/cjs/api/types/ReelablesAssetListRes.js +5 -0
- package/dist/cjs/api/types/ReelablesAssetSortByEnum.d.ts +8 -0
- package/dist/cjs/api/types/ReelablesAssetSortByEnum.js +10 -0
- package/dist/cjs/api/types/ReelablesAssetSyncRes.d.ts +8 -0
- package/dist/cjs/api/types/ReelablesAssetSyncRes.js +5 -0
- package/dist/cjs/api/types/ReelablesDataPoint1.d.ts +12 -0
- package/dist/cjs/api/types/ReelablesDataPoint1.js +5 -0
- package/dist/cjs/api/types/ReelablesDataPointMetadata1.d.ts +6 -0
- package/dist/cjs/api/types/ReelablesDataPointMetadata1.js +5 -0
- package/dist/cjs/api/types/ReelablesLabel1.d.ts +9 -0
- package/dist/cjs/api/types/ReelablesLabel1.js +5 -0
- package/dist/cjs/api/types/ReelablesTimeseriesRes.d.ts +7 -0
- package/dist/cjs/api/types/ReelablesTimeseriesRes.js +5 -0
- package/dist/cjs/api/types/ReelablesWorkspace1.d.ts +13 -0
- package/dist/cjs/api/types/ReelablesWorkspace1.js +5 -0
- package/dist/cjs/api/types/ReelablesWorkspaceListRes.d.ts +8 -0
- package/dist/cjs/api/types/ReelablesWorkspaceListRes.js +5 -0
- package/dist/cjs/api/types/ReelablesWorkspaceSortByEnum.d.ts +4 -0
- package/dist/cjs/api/types/ReelablesWorkspaceSortByEnum.js +5 -0
- package/dist/cjs/api/types/ReelablesWorkspaceSyncRes.d.ts +9 -0
- package/dist/cjs/api/types/ReelablesWorkspaceSyncRes.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.mjs +2 -2
- package/dist/esm/api/resources/orgs/resources/accounts/client/Client.d.mts +1 -0
- package/dist/esm/api/resources/orgs/resources/accounts/client/Client.mjs +5 -1
- package/dist/esm/api/resources/orgs/resources/accounts/client/requests/AccountsListV1Request.d.mts +3 -0
- package/dist/esm/api/resources/orgs/resources/contacts/client/Client.d.mts +30 -0
- package/dist/esm/api/resources/orgs/resources/contacts/client/Client.mjs +125 -0
- package/dist/esm/api/resources/orgs/resources/contacts/client/requests/ContactAccountAddReq.d.mts +12 -0
- package/dist/esm/api/resources/orgs/resources/contacts/client/requests/ContactAccountAddReq.mjs +4 -0
- package/dist/esm/api/resources/orgs/resources/contacts/client/requests/ContactClientCreate1.d.mts +1 -1
- package/dist/esm/api/resources/orgs/resources/contacts/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/shipping/resources/cargos/client/Client.d.mts +53 -0
- package/dist/esm/api/resources/shipping/resources/cargos/client/Client.mjs +200 -0
- package/dist/esm/api/resources/shipping/resources/cargos/client/index.d.mts +1 -0
- package/dist/esm/api/resources/shipping/resources/cargos/client/index.mjs +1 -1
- package/dist/esm/api/resources/shipping/resources/cargos/client/requests/CargoAddToOrderReq.d.mts +18 -0
- package/dist/esm/api/resources/shipping/resources/cargos/client/requests/CargoAddToOrderReq.mjs +4 -0
- package/dist/esm/api/resources/shipping/resources/cargos/client/requests/CargoAssociateWithTaskReq.d.mts +16 -0
- package/dist/esm/api/resources/shipping/resources/cargos/client/requests/CargoAssociateWithTaskReq.mjs +4 -0
- package/dist/esm/api/resources/shipping/resources/cargos/client/requests/CargoUnassociateWithTaskReq.d.mts +16 -0
- package/dist/esm/api/resources/shipping/resources/cargos/client/requests/CargoUnassociateWithTaskReq.mjs +4 -0
- package/dist/esm/api/resources/shipping/resources/cargos/client/requests/index.d.mts +3 -0
- package/dist/esm/api/resources/shipping/resources/cargos/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/shipping/resources/index.d.mts +1 -0
- package/dist/esm/api/resources/shipping/resources/index.mjs +1 -0
- package/dist/esm/api/resources/trackingIntegrations/client/Client.d.mts +3 -0
- package/dist/esm/api/resources/trackingIntegrations/client/Client.mjs +5 -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/reelables/client/Client.d.mts +29 -0
- package/dist/esm/api/resources/trackingIntegrations/resources/reelables/client/Client.mjs +23 -0
- package/dist/esm/api/resources/trackingIntegrations/resources/reelables/client/index.d.mts +1 -0
- package/dist/esm/api/resources/trackingIntegrations/resources/reelables/client/index.mjs +1 -0
- package/dist/esm/api/resources/trackingIntegrations/resources/reelables/index.d.mts +2 -0
- package/dist/esm/api/resources/trackingIntegrations/resources/reelables/index.mjs +2 -0
- package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/assets/client/Client.d.mts +93 -0
- package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/assets/client/Client.mjs +291 -0
- package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/assets/client/index.d.mts +2 -0
- package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/assets/client/index.mjs +1 -0
- package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/assets/client/requests/AssetsListV1Request.d.mts +21 -0
- package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/assets/client/requests/AssetsListV1Request.mjs +4 -0
- package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/assets/client/requests/ReelablesAssetClientUpdate1.d.mts +14 -0
- package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/assets/client/requests/ReelablesAssetClientUpdate1.mjs +4 -0
- package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/assets/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/assets/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/assets/index.d.mts +1 -0
- package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/assets/index.mjs +1 -0
- package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/index.d.mts +6 -0
- package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/index.mjs +6 -0
- package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/timeseries/client/Client.d.mts +51 -0
- package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/timeseries/client/Client.mjs +98 -0
- package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/timeseries/client/index.d.mts +2 -0
- package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/timeseries/client/index.mjs +1 -0
- package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/timeseries/client/requests/TimeseriesDataPointsV1Request.d.mts +14 -0
- package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/timeseries/client/requests/TimeseriesDataPointsV1Request.mjs +4 -0
- package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/timeseries/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/timeseries/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/timeseries/index.d.mts +1 -0
- package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/timeseries/index.mjs +1 -0
- package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/workspaces/client/Client.d.mts +62 -0
- package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/workspaces/client/Client.mjs +160 -0
- package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/workspaces/client/index.d.mts +2 -0
- package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/workspaces/client/index.mjs +1 -0
- package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/workspaces/client/requests/WorkspacesListV1Request.d.mts +21 -0
- package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/workspaces/client/requests/WorkspacesListV1Request.mjs +4 -0
- package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/workspaces/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/workspaces/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/workspaces/index.d.mts +1 -0
- package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/workspaces/index.mjs +1 -0
- package/dist/esm/api/types/Contact1.d.mts +1 -1
- package/dist/esm/api/types/ReelablesAsset1.d.mts +22 -0
- package/dist/esm/api/types/ReelablesAsset1.mjs +4 -0
- package/dist/esm/api/types/ReelablesAssetListRes.d.mts +8 -0
- package/dist/esm/api/types/ReelablesAssetListRes.mjs +4 -0
- package/dist/esm/api/types/ReelablesAssetSortByEnum.d.mts +8 -0
- package/dist/esm/api/types/ReelablesAssetSortByEnum.mjs +7 -0
- package/dist/esm/api/types/ReelablesAssetSyncRes.d.mts +8 -0
- package/dist/esm/api/types/ReelablesAssetSyncRes.mjs +4 -0
- package/dist/esm/api/types/ReelablesDataPoint1.d.mts +12 -0
- package/dist/esm/api/types/ReelablesDataPoint1.mjs +4 -0
- package/dist/esm/api/types/ReelablesDataPointMetadata1.d.mts +6 -0
- package/dist/esm/api/types/ReelablesDataPointMetadata1.mjs +4 -0
- package/dist/esm/api/types/ReelablesLabel1.d.mts +9 -0
- package/dist/esm/api/types/ReelablesLabel1.mjs +4 -0
- package/dist/esm/api/types/ReelablesTimeseriesRes.d.mts +7 -0
- package/dist/esm/api/types/ReelablesTimeseriesRes.mjs +4 -0
- package/dist/esm/api/types/ReelablesWorkspace1.d.mts +13 -0
- package/dist/esm/api/types/ReelablesWorkspace1.mjs +4 -0
- package/dist/esm/api/types/ReelablesWorkspaceListRes.d.mts +8 -0
- package/dist/esm/api/types/ReelablesWorkspaceListRes.mjs +4 -0
- package/dist/esm/api/types/ReelablesWorkspaceSortByEnum.d.mts +4 -0
- package/dist/esm/api/types/ReelablesWorkspaceSortByEnum.mjs +4 -0
- package/dist/esm/api/types/ReelablesWorkspaceSyncRes.d.mts +9 -0
- package/dist/esm/api/types/ReelablesWorkspaceSyncRes.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 +888 -64
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Chrt from "../../../../../../../../index.js";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* sort_by: "name",
|
|
9
|
+
* sort_order: "asc",
|
|
10
|
+
* page: 1,
|
|
11
|
+
* page_size: 1
|
|
12
|
+
* }
|
|
13
|
+
*/
|
|
14
|
+
export interface WorkspacesListV1Request {
|
|
15
|
+
/** Field to sort by */
|
|
16
|
+
sort_by?: Chrt.ReelablesWorkspaceSortByEnum | null;
|
|
17
|
+
/** Sort order (asc or desc) */
|
|
18
|
+
sort_order?: Chrt.SortOrderEnum | null;
|
|
19
|
+
page?: number | null;
|
|
20
|
+
page_size?: number | null;
|
|
21
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { type WorkspacesListV1Request } from "./WorkspacesListV1Request.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client/index.js";
|
|
@@ -0,0 +1,17 @@
|
|
|
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);
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Chrt from "../index.js";
|
|
5
|
+
export interface ReelablesAsset1 {
|
|
6
|
+
_id: string;
|
|
7
|
+
asset_id: string;
|
|
8
|
+
created_at_timestamp?: string | null;
|
|
9
|
+
destination_geofence_location?: Chrt.LocationFeature | null;
|
|
10
|
+
destination_geofence_radius_miles?: number;
|
|
11
|
+
label?: Chrt.ReelablesLabel1 | null;
|
|
12
|
+
last_seen_at_location?: Chrt.LocationFeature | null;
|
|
13
|
+
last_seen_at_location_city?: string | null;
|
|
14
|
+
last_seen_at_location_large_city?: string | null;
|
|
15
|
+
last_seen_at_timestamp?: string | null;
|
|
16
|
+
name: string;
|
|
17
|
+
/** Must be a string starting with `org_` */
|
|
18
|
+
org_id: string;
|
|
19
|
+
schema_version: number;
|
|
20
|
+
synced_at_timestamp?: string | null;
|
|
21
|
+
workspace_id: string;
|
|
22
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
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.ReelablesAssetSortByEnum = void 0;
|
|
7
|
+
exports.ReelablesAssetSortByEnum = {
|
|
8
|
+
AssetId: "asset_id",
|
|
9
|
+
Name: "name",
|
|
10
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Chrt from "../index.js";
|
|
5
|
+
export interface ReelablesDataPoint1 {
|
|
6
|
+
_id: string;
|
|
7
|
+
accuracy_meters?: number | null;
|
|
8
|
+
location: Chrt.LocationFeature;
|
|
9
|
+
metadata: Chrt.ReelablesDataPointMetadata1;
|
|
10
|
+
schema_version: number;
|
|
11
|
+
timestamp: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export interface ReelablesWorkspace1 {
|
|
5
|
+
_id: string;
|
|
6
|
+
assets_synced_at_timestamp?: string | null;
|
|
7
|
+
created_at_timestamp: string;
|
|
8
|
+
name: string;
|
|
9
|
+
/** Must be a string starting with `org_` */
|
|
10
|
+
org_id: string;
|
|
11
|
+
schema_version: number;
|
|
12
|
+
workspace_id: string;
|
|
13
|
+
}
|
|
@@ -352,6 +352,18 @@ export * from "./Position3D.js";
|
|
|
352
352
|
export * from "./ProFormaLineItem1.js";
|
|
353
353
|
export * from "./RateSheetMapping1.js";
|
|
354
354
|
export * from "./RateSheetMappingListRes.js";
|
|
355
|
+
export * from "./ReelablesAsset1.js";
|
|
356
|
+
export * from "./ReelablesAssetListRes.js";
|
|
357
|
+
export * from "./ReelablesAssetSortByEnum.js";
|
|
358
|
+
export * from "./ReelablesAssetSyncRes.js";
|
|
359
|
+
export * from "./ReelablesDataPoint1.js";
|
|
360
|
+
export * from "./ReelablesDataPointMetadata1.js";
|
|
361
|
+
export * from "./ReelablesLabel1.js";
|
|
362
|
+
export * from "./ReelablesTimeseriesRes.js";
|
|
363
|
+
export * from "./ReelablesWorkspace1.js";
|
|
364
|
+
export * from "./ReelablesWorkspaceListRes.js";
|
|
365
|
+
export * from "./ReelablesWorkspaceSortByEnum.js";
|
|
366
|
+
export * from "./ReelablesWorkspaceSyncRes.js";
|
|
355
367
|
export * from "./ScanPayloadKindEnum.js";
|
|
356
368
|
export * from "./ScheduleCalendarSpec.js";
|
|
357
369
|
export * from "./ScheduleIntervalSpec.js";
|
|
@@ -368,6 +368,18 @@ __exportStar(require("./Position3D.js"), exports);
|
|
|
368
368
|
__exportStar(require("./ProFormaLineItem1.js"), exports);
|
|
369
369
|
__exportStar(require("./RateSheetMapping1.js"), exports);
|
|
370
370
|
__exportStar(require("./RateSheetMappingListRes.js"), exports);
|
|
371
|
+
__exportStar(require("./ReelablesAsset1.js"), exports);
|
|
372
|
+
__exportStar(require("./ReelablesAssetListRes.js"), exports);
|
|
373
|
+
__exportStar(require("./ReelablesAssetSortByEnum.js"), exports);
|
|
374
|
+
__exportStar(require("./ReelablesAssetSyncRes.js"), exports);
|
|
375
|
+
__exportStar(require("./ReelablesDataPoint1.js"), exports);
|
|
376
|
+
__exportStar(require("./ReelablesDataPointMetadata1.js"), exports);
|
|
377
|
+
__exportStar(require("./ReelablesLabel1.js"), exports);
|
|
378
|
+
__exportStar(require("./ReelablesTimeseriesRes.js"), exports);
|
|
379
|
+
__exportStar(require("./ReelablesWorkspace1.js"), exports);
|
|
380
|
+
__exportStar(require("./ReelablesWorkspaceListRes.js"), exports);
|
|
381
|
+
__exportStar(require("./ReelablesWorkspaceSortByEnum.js"), exports);
|
|
382
|
+
__exportStar(require("./ReelablesWorkspaceSyncRes.js"), exports);
|
|
371
383
|
__exportStar(require("./ScanPayloadKindEnum.js"), exports);
|
|
372
384
|
__exportStar(require("./ScheduleCalendarSpec.js"), exports);
|
|
373
385
|
__exportStar(require("./ScheduleIntervalSpec.js"), exports);
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.
|
|
1
|
+
export declare const SDK_VERSION = "1.891.0";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/Client.mjs
CHANGED
|
@@ -21,8 +21,8 @@ export class ChrtClient {
|
|
|
21
21
|
this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
|
|
22
22
|
"X-Fern-Language": "JavaScript",
|
|
23
23
|
"X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
|
|
24
|
-
"X-Fern-SDK-Version": "1.
|
|
25
|
-
"User-Agent": "@chrt-inc/typescript-sdk/1.
|
|
24
|
+
"X-Fern-SDK-Version": "1.891.0",
|
|
25
|
+
"User-Agent": "@chrt-inc/typescript-sdk/1.891.0",
|
|
26
26
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
27
27
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
28
28
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -57,6 +57,7 @@ export declare class Accounts {
|
|
|
57
57
|
* @example
|
|
58
58
|
* await client.orgs.accounts.listV1({
|
|
59
59
|
* search: "search",
|
|
60
|
+
* filter_account_id: "filter_account_id",
|
|
60
61
|
* filter_org_id: "filter_org_id",
|
|
61
62
|
* filter_off_chrt_org_data_id: "filter_off_chrt_org_data_id",
|
|
62
63
|
* sort_by: "name",
|
|
@@ -95,6 +95,7 @@ export class Accounts {
|
|
|
95
95
|
* @example
|
|
96
96
|
* await client.orgs.accounts.listV1({
|
|
97
97
|
* search: "search",
|
|
98
|
+
* filter_account_id: "filter_account_id",
|
|
98
99
|
* filter_org_id: "filter_org_id",
|
|
99
100
|
* filter_off_chrt_org_data_id: "filter_off_chrt_org_data_id",
|
|
100
101
|
* sort_by: "name",
|
|
@@ -109,11 +110,14 @@ export class Accounts {
|
|
|
109
110
|
__listV1() {
|
|
110
111
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
111
112
|
var _a, _b, _c, _d, _e, _f;
|
|
112
|
-
const { search, filter_org_id: filterOrgId, filter_off_chrt_org_data_id: filterOffChrtOrgDataId, sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, } = request;
|
|
113
|
+
const { search, filter_account_id: filterAccountId, filter_org_id: filterOrgId, filter_off_chrt_org_data_id: filterOffChrtOrgDataId, sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, } = request;
|
|
113
114
|
const _queryParams = {};
|
|
114
115
|
if (search !== undefined) {
|
|
115
116
|
_queryParams["search"] = search;
|
|
116
117
|
}
|
|
118
|
+
if (filterAccountId !== undefined) {
|
|
119
|
+
_queryParams["filter_account_id"] = filterAccountId;
|
|
120
|
+
}
|
|
117
121
|
if (filterOrgId !== undefined) {
|
|
118
122
|
_queryParams["filter_org_id"] = filterOrgId;
|
|
119
123
|
}
|
package/dist/esm/api/resources/orgs/resources/accounts/client/requests/AccountsListV1Request.d.mts
CHANGED
|
@@ -6,6 +6,7 @@ import * as Chrt from "../../../../../../index.mjs";
|
|
|
6
6
|
* @example
|
|
7
7
|
* {
|
|
8
8
|
* search: "search",
|
|
9
|
+
* filter_account_id: "filter_account_id",
|
|
9
10
|
* filter_org_id: "filter_org_id",
|
|
10
11
|
* filter_off_chrt_org_data_id: "filter_off_chrt_org_data_id",
|
|
11
12
|
* sort_by: "name",
|
|
@@ -17,6 +18,8 @@ import * as Chrt from "../../../../../../index.mjs";
|
|
|
17
18
|
export interface AccountsListV1Request {
|
|
18
19
|
/** Full-text account name search query */
|
|
19
20
|
search?: string | null;
|
|
21
|
+
/** Filter by account ID */
|
|
22
|
+
filter_account_id?: string | null;
|
|
20
23
|
/** Filter by associated on-CHRT shipper organization */
|
|
21
24
|
filter_org_id?: string | null;
|
|
22
25
|
/** Filter by associated off-CHRT shipper organization data */
|
|
@@ -30,6 +30,36 @@ export declare namespace Contacts {
|
|
|
30
30
|
export declare class Contacts {
|
|
31
31
|
protected readonly _options: Contacts.Options;
|
|
32
32
|
constructor(_options?: Contacts.Options);
|
|
33
|
+
/**
|
|
34
|
+
* Associates an account from the contact's organization. | authz: min_org_role=operator | (ContactAccountAddReq) -> (bool)
|
|
35
|
+
*
|
|
36
|
+
* @param {string} contactId
|
|
37
|
+
* @param {Chrt.orgs.ContactAccountAddReq} request
|
|
38
|
+
* @param {Contacts.RequestOptions} requestOptions - Request-specific configuration.
|
|
39
|
+
*
|
|
40
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* await client.orgs.contacts.accountAddV1("contact_id", {
|
|
44
|
+
* account_id: "account_id"
|
|
45
|
+
* })
|
|
46
|
+
*/
|
|
47
|
+
accountAddV1(contactId: string, request: Chrt.orgs.ContactAccountAddReq, requestOptions?: Contacts.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
48
|
+
private __accountAddV1;
|
|
49
|
+
/**
|
|
50
|
+
* Removes an account association from an organization-created contact. | authz: min_org_role=operator | () -> (bool)
|
|
51
|
+
*
|
|
52
|
+
* @param {string} contactId
|
|
53
|
+
* @param {string} accountId
|
|
54
|
+
* @param {Contacts.RequestOptions} requestOptions - Request-specific configuration.
|
|
55
|
+
*
|
|
56
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
57
|
+
*
|
|
58
|
+
* @example
|
|
59
|
+
* await client.orgs.contacts.accountRemoveV1("contact_id", "account_id")
|
|
60
|
+
*/
|
|
61
|
+
accountRemoveV1(contactId: string, accountId: string, requestOptions?: Contacts.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
62
|
+
private __accountRemoveV1;
|
|
33
63
|
/**
|
|
34
64
|
* Creates an organization-created contact. | authz: min_org_role=operator | (ContactClientCreate1) -> (PydanticObjectId)
|
|
35
65
|
*
|
|
@@ -19,6 +19,131 @@ export class Contacts {
|
|
|
19
19
|
constructor(_options = {}) {
|
|
20
20
|
this._options = _options;
|
|
21
21
|
}
|
|
22
|
+
/**
|
|
23
|
+
* Associates an account from the contact's organization. | authz: min_org_role=operator | (ContactAccountAddReq) -> (bool)
|
|
24
|
+
*
|
|
25
|
+
* @param {string} contactId
|
|
26
|
+
* @param {Chrt.orgs.ContactAccountAddReq} request
|
|
27
|
+
* @param {Contacts.RequestOptions} requestOptions - Request-specific configuration.
|
|
28
|
+
*
|
|
29
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* await client.orgs.contacts.accountAddV1("contact_id", {
|
|
33
|
+
* account_id: "account_id"
|
|
34
|
+
* })
|
|
35
|
+
*/
|
|
36
|
+
accountAddV1(contactId, request, requestOptions) {
|
|
37
|
+
return core.HttpResponsePromise.fromPromise(this.__accountAddV1(contactId, request, requestOptions));
|
|
38
|
+
}
|
|
39
|
+
__accountAddV1(contactId, request, requestOptions) {
|
|
40
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
41
|
+
var _a, _b, _c, _d;
|
|
42
|
+
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);
|
|
43
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
44
|
+
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, `orgs/contacts/accounts/add/v1/${encodeURIComponent(contactId)}`),
|
|
45
|
+
method: "POST",
|
|
46
|
+
headers: _headers,
|
|
47
|
+
contentType: "application/json",
|
|
48
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
49
|
+
requestType: "json",
|
|
50
|
+
body: request,
|
|
51
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
52
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
53
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
54
|
+
});
|
|
55
|
+
if (_response.ok) {
|
|
56
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
57
|
+
}
|
|
58
|
+
if (_response.error.reason === "status-code") {
|
|
59
|
+
switch (_response.error.statusCode) {
|
|
60
|
+
case 422:
|
|
61
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
62
|
+
default:
|
|
63
|
+
throw new errors.ChrtError({
|
|
64
|
+
statusCode: _response.error.statusCode,
|
|
65
|
+
body: _response.error.body,
|
|
66
|
+
rawResponse: _response.rawResponse,
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
switch (_response.error.reason) {
|
|
71
|
+
case "non-json":
|
|
72
|
+
throw new errors.ChrtError({
|
|
73
|
+
statusCode: _response.error.statusCode,
|
|
74
|
+
body: _response.error.rawBody,
|
|
75
|
+
rawResponse: _response.rawResponse,
|
|
76
|
+
});
|
|
77
|
+
case "timeout":
|
|
78
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /orgs/contacts/accounts/add/v1/{contact_id}.");
|
|
79
|
+
case "unknown":
|
|
80
|
+
throw new errors.ChrtError({
|
|
81
|
+
message: _response.error.errorMessage,
|
|
82
|
+
rawResponse: _response.rawResponse,
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Removes an account association from an organization-created contact. | authz: min_org_role=operator | () -> (bool)
|
|
89
|
+
*
|
|
90
|
+
* @param {string} contactId
|
|
91
|
+
* @param {string} accountId
|
|
92
|
+
* @param {Contacts.RequestOptions} requestOptions - Request-specific configuration.
|
|
93
|
+
*
|
|
94
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
95
|
+
*
|
|
96
|
+
* @example
|
|
97
|
+
* await client.orgs.contacts.accountRemoveV1("contact_id", "account_id")
|
|
98
|
+
*/
|
|
99
|
+
accountRemoveV1(contactId, accountId, requestOptions) {
|
|
100
|
+
return core.HttpResponsePromise.fromPromise(this.__accountRemoveV1(contactId, accountId, requestOptions));
|
|
101
|
+
}
|
|
102
|
+
__accountRemoveV1(contactId, accountId, requestOptions) {
|
|
103
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
104
|
+
var _a, _b, _c, _d;
|
|
105
|
+
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);
|
|
106
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
107
|
+
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, `orgs/contacts/accounts/remove/v1/${encodeURIComponent(contactId)}/${encodeURIComponent(accountId)}`),
|
|
108
|
+
method: "DELETE",
|
|
109
|
+
headers: _headers,
|
|
110
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
111
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
112
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
113
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
114
|
+
});
|
|
115
|
+
if (_response.ok) {
|
|
116
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
117
|
+
}
|
|
118
|
+
if (_response.error.reason === "status-code") {
|
|
119
|
+
switch (_response.error.statusCode) {
|
|
120
|
+
case 422:
|
|
121
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
122
|
+
default:
|
|
123
|
+
throw new errors.ChrtError({
|
|
124
|
+
statusCode: _response.error.statusCode,
|
|
125
|
+
body: _response.error.body,
|
|
126
|
+
rawResponse: _response.rawResponse,
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
switch (_response.error.reason) {
|
|
131
|
+
case "non-json":
|
|
132
|
+
throw new errors.ChrtError({
|
|
133
|
+
statusCode: _response.error.statusCode,
|
|
134
|
+
body: _response.error.rawBody,
|
|
135
|
+
rawResponse: _response.rawResponse,
|
|
136
|
+
});
|
|
137
|
+
case "timeout":
|
|
138
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling DELETE /orgs/contacts/accounts/remove/v1/{contact_id}/{account_id}.");
|
|
139
|
+
case "unknown":
|
|
140
|
+
throw new errors.ChrtError({
|
|
141
|
+
message: _response.error.errorMessage,
|
|
142
|
+
rawResponse: _response.rawResponse,
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
});
|
|
146
|
+
}
|
|
22
147
|
/**
|
|
23
148
|
* Creates an organization-created contact. | authz: min_org_role=operator | (ContactClientCreate1) -> (PydanticObjectId)
|
|
24
149
|
*
|
package/dist/esm/api/resources/orgs/resources/contacts/client/requests/ContactClientCreate1.d.mts
CHANGED
|
@@ -10,7 +10,7 @@ import * as Chrt from "../../../../../../index.mjs";
|
|
|
10
10
|
* }
|
|
11
11
|
*/
|
|
12
12
|
export interface ContactClientCreate1 {
|
|
13
|
-
|
|
13
|
+
account_ids?: string[];
|
|
14
14
|
email_address?: string | null;
|
|
15
15
|
job_title?: string | null;
|
|
16
16
|
location?: Chrt.LocationFeature | null;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export { type ContactAccountAddReq } from "./ContactAccountAddReq.mjs";
|
|
1
2
|
export { type ContactClientCreate1 } from "./ContactClientCreate1.mjs";
|
|
2
3
|
export { type ContactsListV1Request } from "./ContactsListV1Request.mjs";
|
|
3
4
|
export { type ContactClientUpdate1 } from "./ContactClientUpdate1.mjs";
|