@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
|
@@ -30,6 +30,59 @@ export declare namespace Cargos {
|
|
|
30
30
|
export declare class Cargos {
|
|
31
31
|
protected readonly _options: Cargos.Options;
|
|
32
32
|
constructor(_options?: Cargos.Options);
|
|
33
|
+
/**
|
|
34
|
+
* Adds cargo to a non-DRAFT order. Cargo added to a terminal order starts terminal; otherwise it starts STAGED. | authz_personas=[coordinator_org_operators] | (CargoAddToOrderReq) -> (PydanticObjectId)
|
|
35
|
+
*
|
|
36
|
+
* @param {Chrt.shipping.CargoAddToOrderReq} request
|
|
37
|
+
* @param {Cargos.RequestOptions} requestOptions - Request-specific configuration.
|
|
38
|
+
*
|
|
39
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* await client.shipping.cargos.addV1({
|
|
43
|
+
* cargo: {
|
|
44
|
+
* cargo_type: "spare_parts",
|
|
45
|
+
* schema_version: 1
|
|
46
|
+
* },
|
|
47
|
+
* order_id: "order_id"
|
|
48
|
+
* })
|
|
49
|
+
*/
|
|
50
|
+
addV1(request: Chrt.shipping.CargoAddToOrderReq, requestOptions?: Cargos.RequestOptions): core.HttpResponsePromise<string>;
|
|
51
|
+
private __addV1;
|
|
52
|
+
/**
|
|
53
|
+
* Associates cargo with a task on a non-DRAFT order, then derives cargo status from all associated tasks in the order's task sequence. | authz_personas=[coordinator_org_operators] | (CargoAssociateWithTaskReq) -> (bool)
|
|
54
|
+
*
|
|
55
|
+
* @param {Chrt.shipping.CargoAssociateWithTaskReq} request
|
|
56
|
+
* @param {Cargos.RequestOptions} requestOptions - Request-specific configuration.
|
|
57
|
+
*
|
|
58
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* await client.shipping.cargos.associateWithTaskV1({
|
|
62
|
+
* cargo_id: "cargo_id",
|
|
63
|
+
* order_id: "order_id",
|
|
64
|
+
* task_id: "task_id"
|
|
65
|
+
* })
|
|
66
|
+
*/
|
|
67
|
+
associateWithTaskV1(request: Chrt.shipping.CargoAssociateWithTaskReq, requestOptions?: Cargos.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
68
|
+
private __associateWithTaskV1;
|
|
69
|
+
/**
|
|
70
|
+
* Removes a cargo association from a task on a non-DRAFT order, then derives cargo status from the remaining associated tasks in the order's task sequence. | authz_personas=[coordinator_org_operators] | (CargoUnassociateWithTaskReq) -> (bool)
|
|
71
|
+
*
|
|
72
|
+
* @param {Chrt.shipping.CargoUnassociateWithTaskReq} request
|
|
73
|
+
* @param {Cargos.RequestOptions} requestOptions - Request-specific configuration.
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
76
|
+
*
|
|
77
|
+
* @example
|
|
78
|
+
* await client.shipping.cargos.unassociateWithTaskV1({
|
|
79
|
+
* cargo_id: "cargo_id",
|
|
80
|
+
* order_id: "order_id",
|
|
81
|
+
* task_id: "task_id"
|
|
82
|
+
* })
|
|
83
|
+
*/
|
|
84
|
+
unassociateWithTaskV1(request: Chrt.shipping.CargoUnassociateWithTaskReq, requestOptions?: Cargos.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
85
|
+
private __unassociateWithTaskV1;
|
|
33
86
|
/**
|
|
34
87
|
* Updates cargo details and synchronizes its parent order's AWB list. Cargo must be in STAGED, IN_TRANSIT, DELIVERED, SKIPPED, or EXCEPTION status. | authz_personas=[lig_owner_operators] | (CargoClientUpdate1) -> (PydanticObjectId)
|
|
35
88
|
*
|
|
@@ -19,6 +19,206 @@ export class Cargos {
|
|
|
19
19
|
constructor(_options = {}) {
|
|
20
20
|
this._options = _options;
|
|
21
21
|
}
|
|
22
|
+
/**
|
|
23
|
+
* Adds cargo to a non-DRAFT order. Cargo added to a terminal order starts terminal; otherwise it starts STAGED. | authz_personas=[coordinator_org_operators] | (CargoAddToOrderReq) -> (PydanticObjectId)
|
|
24
|
+
*
|
|
25
|
+
* @param {Chrt.shipping.CargoAddToOrderReq} request
|
|
26
|
+
* @param {Cargos.RequestOptions} requestOptions - Request-specific configuration.
|
|
27
|
+
*
|
|
28
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* await client.shipping.cargos.addV1({
|
|
32
|
+
* cargo: {
|
|
33
|
+
* cargo_type: "spare_parts",
|
|
34
|
+
* schema_version: 1
|
|
35
|
+
* },
|
|
36
|
+
* order_id: "order_id"
|
|
37
|
+
* })
|
|
38
|
+
*/
|
|
39
|
+
addV1(request, requestOptions) {
|
|
40
|
+
return core.HttpResponsePromise.fromPromise(this.__addV1(request, requestOptions));
|
|
41
|
+
}
|
|
42
|
+
__addV1(request, requestOptions) {
|
|
43
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
44
|
+
var _a, _b, _c, _d;
|
|
45
|
+
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);
|
|
46
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
47
|
+
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, "shipping/cargos/add/v1"),
|
|
48
|
+
method: "POST",
|
|
49
|
+
headers: _headers,
|
|
50
|
+
contentType: "application/json",
|
|
51
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
52
|
+
requestType: "json",
|
|
53
|
+
body: request,
|
|
54
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
55
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
56
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
57
|
+
});
|
|
58
|
+
if (_response.ok) {
|
|
59
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
60
|
+
}
|
|
61
|
+
if (_response.error.reason === "status-code") {
|
|
62
|
+
switch (_response.error.statusCode) {
|
|
63
|
+
case 422:
|
|
64
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
65
|
+
default:
|
|
66
|
+
throw new errors.ChrtError({
|
|
67
|
+
statusCode: _response.error.statusCode,
|
|
68
|
+
body: _response.error.body,
|
|
69
|
+
rawResponse: _response.rawResponse,
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
switch (_response.error.reason) {
|
|
74
|
+
case "non-json":
|
|
75
|
+
throw new errors.ChrtError({
|
|
76
|
+
statusCode: _response.error.statusCode,
|
|
77
|
+
body: _response.error.rawBody,
|
|
78
|
+
rawResponse: _response.rawResponse,
|
|
79
|
+
});
|
|
80
|
+
case "timeout":
|
|
81
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /shipping/cargos/add/v1.");
|
|
82
|
+
case "unknown":
|
|
83
|
+
throw new errors.ChrtError({
|
|
84
|
+
message: _response.error.errorMessage,
|
|
85
|
+
rawResponse: _response.rawResponse,
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Associates cargo with a task on a non-DRAFT order, then derives cargo status from all associated tasks in the order's task sequence. | authz_personas=[coordinator_org_operators] | (CargoAssociateWithTaskReq) -> (bool)
|
|
92
|
+
*
|
|
93
|
+
* @param {Chrt.shipping.CargoAssociateWithTaskReq} request
|
|
94
|
+
* @param {Cargos.RequestOptions} requestOptions - Request-specific configuration.
|
|
95
|
+
*
|
|
96
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
97
|
+
*
|
|
98
|
+
* @example
|
|
99
|
+
* await client.shipping.cargos.associateWithTaskV1({
|
|
100
|
+
* cargo_id: "cargo_id",
|
|
101
|
+
* order_id: "order_id",
|
|
102
|
+
* task_id: "task_id"
|
|
103
|
+
* })
|
|
104
|
+
*/
|
|
105
|
+
associateWithTaskV1(request, requestOptions) {
|
|
106
|
+
return core.HttpResponsePromise.fromPromise(this.__associateWithTaskV1(request, requestOptions));
|
|
107
|
+
}
|
|
108
|
+
__associateWithTaskV1(request, requestOptions) {
|
|
109
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
110
|
+
var _a, _b, _c, _d;
|
|
111
|
+
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);
|
|
112
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
113
|
+
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, "shipping/cargos/associate_with_task/v1"),
|
|
114
|
+
method: "POST",
|
|
115
|
+
headers: _headers,
|
|
116
|
+
contentType: "application/json",
|
|
117
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
118
|
+
requestType: "json",
|
|
119
|
+
body: request,
|
|
120
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
121
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
122
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
123
|
+
});
|
|
124
|
+
if (_response.ok) {
|
|
125
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
126
|
+
}
|
|
127
|
+
if (_response.error.reason === "status-code") {
|
|
128
|
+
switch (_response.error.statusCode) {
|
|
129
|
+
case 422:
|
|
130
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
131
|
+
default:
|
|
132
|
+
throw new errors.ChrtError({
|
|
133
|
+
statusCode: _response.error.statusCode,
|
|
134
|
+
body: _response.error.body,
|
|
135
|
+
rawResponse: _response.rawResponse,
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
switch (_response.error.reason) {
|
|
140
|
+
case "non-json":
|
|
141
|
+
throw new errors.ChrtError({
|
|
142
|
+
statusCode: _response.error.statusCode,
|
|
143
|
+
body: _response.error.rawBody,
|
|
144
|
+
rawResponse: _response.rawResponse,
|
|
145
|
+
});
|
|
146
|
+
case "timeout":
|
|
147
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /shipping/cargos/associate_with_task/v1.");
|
|
148
|
+
case "unknown":
|
|
149
|
+
throw new errors.ChrtError({
|
|
150
|
+
message: _response.error.errorMessage,
|
|
151
|
+
rawResponse: _response.rawResponse,
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
});
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* Removes a cargo association from a task on a non-DRAFT order, then derives cargo status from the remaining associated tasks in the order's task sequence. | authz_personas=[coordinator_org_operators] | (CargoUnassociateWithTaskReq) -> (bool)
|
|
158
|
+
*
|
|
159
|
+
* @param {Chrt.shipping.CargoUnassociateWithTaskReq} request
|
|
160
|
+
* @param {Cargos.RequestOptions} requestOptions - Request-specific configuration.
|
|
161
|
+
*
|
|
162
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
163
|
+
*
|
|
164
|
+
* @example
|
|
165
|
+
* await client.shipping.cargos.unassociateWithTaskV1({
|
|
166
|
+
* cargo_id: "cargo_id",
|
|
167
|
+
* order_id: "order_id",
|
|
168
|
+
* task_id: "task_id"
|
|
169
|
+
* })
|
|
170
|
+
*/
|
|
171
|
+
unassociateWithTaskV1(request, requestOptions) {
|
|
172
|
+
return core.HttpResponsePromise.fromPromise(this.__unassociateWithTaskV1(request, requestOptions));
|
|
173
|
+
}
|
|
174
|
+
__unassociateWithTaskV1(request, requestOptions) {
|
|
175
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
176
|
+
var _a, _b, _c, _d;
|
|
177
|
+
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);
|
|
178
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
179
|
+
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, "shipping/cargos/unassociate_with_task/v1"),
|
|
180
|
+
method: "POST",
|
|
181
|
+
headers: _headers,
|
|
182
|
+
contentType: "application/json",
|
|
183
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
184
|
+
requestType: "json",
|
|
185
|
+
body: request,
|
|
186
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
187
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
188
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
189
|
+
});
|
|
190
|
+
if (_response.ok) {
|
|
191
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
192
|
+
}
|
|
193
|
+
if (_response.error.reason === "status-code") {
|
|
194
|
+
switch (_response.error.statusCode) {
|
|
195
|
+
case 422:
|
|
196
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
197
|
+
default:
|
|
198
|
+
throw new errors.ChrtError({
|
|
199
|
+
statusCode: _response.error.statusCode,
|
|
200
|
+
body: _response.error.body,
|
|
201
|
+
rawResponse: _response.rawResponse,
|
|
202
|
+
});
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
switch (_response.error.reason) {
|
|
206
|
+
case "non-json":
|
|
207
|
+
throw new errors.ChrtError({
|
|
208
|
+
statusCode: _response.error.statusCode,
|
|
209
|
+
body: _response.error.rawBody,
|
|
210
|
+
rawResponse: _response.rawResponse,
|
|
211
|
+
});
|
|
212
|
+
case "timeout":
|
|
213
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /shipping/cargos/unassociate_with_task/v1.");
|
|
214
|
+
case "unknown":
|
|
215
|
+
throw new errors.ChrtError({
|
|
216
|
+
message: _response.error.errorMessage,
|
|
217
|
+
rawResponse: _response.rawResponse,
|
|
218
|
+
});
|
|
219
|
+
}
|
|
220
|
+
});
|
|
221
|
+
}
|
|
22
222
|
/**
|
|
23
223
|
* Updates cargo details and synchronizes its parent order's AWB list. Cargo must be in STAGED, IN_TRANSIT, DELIVERED, SKIPPED, or EXCEPTION status. | authz_personas=[lig_owner_operators] | (CargoClientUpdate1) -> (PydanticObjectId)
|
|
24
224
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from "./requests/index.mjs";
|
package/dist/esm/api/resources/shipping/resources/cargos/client/requests/CargoAddToOrderReq.d.mts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Chrt from "../../../../../../index.mjs";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* cargo: {
|
|
9
|
+
* cargo_type: "spare_parts",
|
|
10
|
+
* schema_version: 1
|
|
11
|
+
* },
|
|
12
|
+
* order_id: "order_id"
|
|
13
|
+
* }
|
|
14
|
+
*/
|
|
15
|
+
export interface CargoAddToOrderReq {
|
|
16
|
+
cargo: Chrt.CargoClientCreate1;
|
|
17
|
+
order_id: string;
|
|
18
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* cargo_id: "cargo_id",
|
|
8
|
+
* order_id: "order_id",
|
|
9
|
+
* task_id: "task_id"
|
|
10
|
+
* }
|
|
11
|
+
*/
|
|
12
|
+
export interface CargoAssociateWithTaskReq {
|
|
13
|
+
cargo_id: string;
|
|
14
|
+
order_id: string;
|
|
15
|
+
task_id: string;
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* cargo_id: "cargo_id",
|
|
8
|
+
* order_id: "order_id",
|
|
9
|
+
* task_id: "task_id"
|
|
10
|
+
* }
|
|
11
|
+
*/
|
|
12
|
+
export interface CargoUnassociateWithTaskReq {
|
|
13
|
+
cargo_id: string;
|
|
14
|
+
order_id: string;
|
|
15
|
+
task_id: string;
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -10,6 +10,7 @@ export * as ordersAndOrderGroups from "./ordersAndOrderGroups/index.mjs";
|
|
|
10
10
|
export * as taskArtifacts from "./taskArtifacts/index.mjs";
|
|
11
11
|
export * as taskGroups from "./taskGroups/index.mjs";
|
|
12
12
|
export * as tasks from "./tasks/index.mjs";
|
|
13
|
+
export * from "./cargos/client/requests/index.mjs";
|
|
13
14
|
export * from "./drivers/client/requests/index.mjs";
|
|
14
15
|
export * from "./orderGroups/client/requests/index.mjs";
|
|
15
16
|
export * from "./orderSchedules/client/requests/index.mjs";
|
|
@@ -10,6 +10,7 @@ export * as ordersAndOrderGroups from "./ordersAndOrderGroups/index.mjs";
|
|
|
10
10
|
export * as taskArtifacts from "./taskArtifacts/index.mjs";
|
|
11
11
|
export * as taskGroups from "./taskGroups/index.mjs";
|
|
12
12
|
export * as tasks from "./tasks/index.mjs";
|
|
13
|
+
export * from "./cargos/client/requests/index.mjs";
|
|
13
14
|
export * from "./drivers/client/requests/index.mjs";
|
|
14
15
|
export * from "./orderGroups/client/requests/index.mjs";
|
|
15
16
|
export * from "./orderSchedules/client/requests/index.mjs";
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as environments from "../../../../environments.mjs";
|
|
5
5
|
import * as core from "../../../../core/index.mjs";
|
|
6
|
+
import { Reelables } from "../resources/reelables/client/Client.mjs";
|
|
6
7
|
import { Tive } from "../resources/tive/client/Client.mjs";
|
|
7
8
|
export declare namespace TrackingIntegrations {
|
|
8
9
|
interface Options {
|
|
@@ -17,7 +18,9 @@ export declare namespace TrackingIntegrations {
|
|
|
17
18
|
}
|
|
18
19
|
export declare class TrackingIntegrations {
|
|
19
20
|
protected readonly _options: TrackingIntegrations.Options;
|
|
21
|
+
protected _reelables: Reelables | undefined;
|
|
20
22
|
protected _tive: Tive | undefined;
|
|
21
23
|
constructor(_options?: TrackingIntegrations.Options);
|
|
24
|
+
get reelables(): Reelables;
|
|
22
25
|
get tive(): Tive;
|
|
23
26
|
}
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
import { Reelables } from "../resources/reelables/client/Client.mjs";
|
|
4
5
|
import { Tive } from "../resources/tive/client/Client.mjs";
|
|
5
6
|
export class TrackingIntegrations {
|
|
6
7
|
constructor(_options = {}) {
|
|
7
8
|
this._options = _options;
|
|
8
9
|
}
|
|
10
|
+
get reelables() {
|
|
11
|
+
var _a;
|
|
12
|
+
return ((_a = this._reelables) !== null && _a !== void 0 ? _a : (this._reelables = new Reelables(this._options)));
|
|
13
|
+
}
|
|
9
14
|
get tive() {
|
|
10
15
|
var _a;
|
|
11
16
|
return ((_a = this._tive) !== null && _a !== void 0 ? _a : (this._tive = new Tive(this._options)));
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as environments from "../../../../../../environments.mjs";
|
|
5
|
+
import * as core from "../../../../../../core/index.mjs";
|
|
6
|
+
import { Assets } from "../resources/assets/client/Client.mjs";
|
|
7
|
+
import { Timeseries } from "../resources/timeseries/client/Client.mjs";
|
|
8
|
+
import { Workspaces } from "../resources/workspaces/client/Client.mjs";
|
|
9
|
+
export declare namespace Reelables {
|
|
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 Reelables {
|
|
21
|
+
protected readonly _options: Reelables.Options;
|
|
22
|
+
protected _assets: Assets | undefined;
|
|
23
|
+
protected _timeseries: Timeseries | undefined;
|
|
24
|
+
protected _workspaces: Workspaces | undefined;
|
|
25
|
+
constructor(_options?: Reelables.Options);
|
|
26
|
+
get assets(): Assets;
|
|
27
|
+
get timeseries(): Timeseries;
|
|
28
|
+
get workspaces(): Workspaces;
|
|
29
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import { Assets } from "../resources/assets/client/Client.mjs";
|
|
5
|
+
import { Timeseries } from "../resources/timeseries/client/Client.mjs";
|
|
6
|
+
import { Workspaces } from "../resources/workspaces/client/Client.mjs";
|
|
7
|
+
export class Reelables {
|
|
8
|
+
constructor(_options = {}) {
|
|
9
|
+
this._options = _options;
|
|
10
|
+
}
|
|
11
|
+
get assets() {
|
|
12
|
+
var _a;
|
|
13
|
+
return ((_a = this._assets) !== null && _a !== void 0 ? _a : (this._assets = new Assets(this._options)));
|
|
14
|
+
}
|
|
15
|
+
get timeseries() {
|
|
16
|
+
var _a;
|
|
17
|
+
return ((_a = this._timeseries) !== null && _a !== void 0 ? _a : (this._timeseries = new Timeseries(this._options)));
|
|
18
|
+
}
|
|
19
|
+
get workspaces() {
|
|
20
|
+
var _a;
|
|
21
|
+
return ((_a = this._workspaces) !== null && _a !== void 0 ? _a : (this._workspaces = new Workspaces(this._options)));
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,93 @@
|
|
|
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 Assets {
|
|
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 Assets {
|
|
31
|
+
protected readonly _options: Assets.Options;
|
|
32
|
+
constructor(_options?: Assets.Options);
|
|
33
|
+
/**
|
|
34
|
+
* Refreshes and retrieves a Reelables asset by its external ID. | authz: min_org_role=operator | () -> (ReelablesAsset1)
|
|
35
|
+
*
|
|
36
|
+
* @param {string} assetId
|
|
37
|
+
* @param {Assets.RequestOptions} requestOptions - Request-specific configuration.
|
|
38
|
+
*
|
|
39
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* await client.trackingIntegrations.reelables.assets.getV1("asset_id")
|
|
43
|
+
*/
|
|
44
|
+
getV1(assetId: string, requestOptions?: Assets.RequestOptions): core.HttpResponsePromise<Chrt.ReelablesAsset1>;
|
|
45
|
+
private __getV1;
|
|
46
|
+
/**
|
|
47
|
+
* Lists cached Reelables assets for a workspace. | authz: min_org_role=operator | () -> (ReelablesAssetListRes)
|
|
48
|
+
*
|
|
49
|
+
* @param {string} workspaceId
|
|
50
|
+
* @param {Chrt.trackingIntegrations.reelables.AssetsListV1Request} request
|
|
51
|
+
* @param {Assets.RequestOptions} requestOptions - Request-specific configuration.
|
|
52
|
+
*
|
|
53
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* await client.trackingIntegrations.reelables.assets.listV1("workspace_id", {
|
|
57
|
+
* sort_by: "asset_id",
|
|
58
|
+
* sort_order: "asc",
|
|
59
|
+
* page: 1,
|
|
60
|
+
* page_size: 1
|
|
61
|
+
* })
|
|
62
|
+
*/
|
|
63
|
+
listV1(workspaceId: string, request?: Chrt.trackingIntegrations.reelables.AssetsListV1Request, requestOptions?: Assets.RequestOptions): core.HttpResponsePromise<Chrt.ReelablesAssetListRes>;
|
|
64
|
+
private __listV1;
|
|
65
|
+
/**
|
|
66
|
+
* Synchronizes all Reelables assets for a cached workspace. | authz: min_org_role=operator | () -> (ReelablesAssetSyncRes)
|
|
67
|
+
*
|
|
68
|
+
* @param {string} workspaceId
|
|
69
|
+
* @param {Assets.RequestOptions} requestOptions - Request-specific configuration.
|
|
70
|
+
*
|
|
71
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
72
|
+
*
|
|
73
|
+
* @example
|
|
74
|
+
* await client.trackingIntegrations.reelables.assets.syncV1("workspace_id")
|
|
75
|
+
*/
|
|
76
|
+
syncV1(workspaceId: string, requestOptions?: Assets.RequestOptions): core.HttpResponsePromise<Chrt.ReelablesAssetSyncRes>;
|
|
77
|
+
private __syncV1;
|
|
78
|
+
/**
|
|
79
|
+
* Updates a Reelables asset, applying name changes upstream before updating CHRT. | authz: min_org_role=operator | (ReelablesAssetClientUpdate1) -> (ReelablesAsset1)
|
|
80
|
+
*
|
|
81
|
+
* @param {string} assetId
|
|
82
|
+
* @param {Chrt.trackingIntegrations.reelables.ReelablesAssetClientUpdate1} request
|
|
83
|
+
* @param {Assets.RequestOptions} requestOptions - Request-specific configuration.
|
|
84
|
+
*
|
|
85
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
86
|
+
*
|
|
87
|
+
* @example
|
|
88
|
+
* await client.trackingIntegrations.reelables.assets.updateV1("asset_id")
|
|
89
|
+
*/
|
|
90
|
+
updateV1(assetId: string, request?: Chrt.trackingIntegrations.reelables.ReelablesAssetClientUpdate1, requestOptions?: Assets.RequestOptions): core.HttpResponsePromise<Chrt.ReelablesAsset1>;
|
|
91
|
+
private __updateV1;
|
|
92
|
+
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
93
|
+
}
|