@chrt-inc/typescript-sdk 1.331.0 → 1.334.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 +41 -36
- package/dist/cjs/api/resources/drivers/client/Client.d.ts +0 -24
- package/dist/cjs/api/resources/drivers/client/Client.js +0 -73
- package/dist/cjs/api/resources/drivers/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/flights/client/Client.d.ts +47 -0
- package/dist/cjs/api/resources/flights/client/Client.js +127 -0
- package/dist/cjs/api/resources/index.d.ts +1 -0
- package/dist/cjs/api/resources/index.js +2 -1
- package/dist/cjs/api/resources/orderDrafts/resources/taskGroup/client/Client.d.ts +5 -7
- package/dist/cjs/api/resources/orderDrafts/resources/taskGroup/client/Client.js +8 -10
- package/dist/cjs/api/resources/orderDrafts/resources/taskGroup/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/taskGroups/client/Client.d.ts +5 -7
- package/dist/cjs/api/resources/taskGroups/client/Client.js +8 -10
- package/dist/cjs/api/resources/taskGroups/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/tracking/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/tracking/client/Client.js +3 -3
- package/dist/cjs/api/resources/tracking/resources/driver/client/Client.d.ts +10 -13
- package/dist/cjs/api/resources/tracking/resources/driver/client/Client.js +9 -12
- package/dist/cjs/api/resources/tracking/resources/driver/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/tracking/resources/driver/client/index.js +0 -15
- package/dist/cjs/api/resources/tracking/resources/index.d.ts +2 -3
- package/dist/cjs/api/resources/tracking/resources/index.js +3 -4
- package/dist/cjs/api/resources/tracking/resources/{sharing → sharingSettings}/client/Client.d.ts +16 -16
- package/dist/cjs/api/resources/tracking/resources/{sharing → sharingSettings}/client/Client.js +17 -17
- package/dist/cjs/api/resources/tracking/resources/sharingSettings/index.d.ts +1 -0
- package/dist/cjs/api/resources/tracking/resources/sharingSettings/index.js +17 -0
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/cargoByDevice/client/Client.js +10 -10
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/cargoByDriver/client/Client.js +8 -8
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/Client.js +10 -10
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/Client.js +8 -8
- package/dist/cjs/api/types/FlightInfoForTaskRes.d.ts +10 -0
- package/dist/cjs/api/types/SetFlightInfoReq.d.ts +9 -0
- package/dist/cjs/api/types/Task1.d.ts +0 -1
- package/dist/cjs/api/types/TaskClientCreate1.d.ts +0 -1
- package/dist/cjs/api/types/TaskClientUpdate1.d.ts +0 -1
- package/dist/cjs/api/types/TaskGroup1.d.ts +1 -0
- package/dist/cjs/api/types/index.d.ts +2 -0
- package/dist/cjs/api/types/index.js +2 -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/drivers/client/Client.d.mts +0 -24
- package/dist/esm/api/resources/drivers/client/Client.mjs +0 -73
- package/dist/esm/api/resources/drivers/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/flights/client/Client.d.mts +47 -0
- package/dist/esm/api/resources/flights/client/Client.mjs +90 -0
- package/dist/esm/api/resources/flights/client/index.mjs +1 -0
- package/dist/esm/api/resources/index.d.mts +1 -0
- package/dist/esm/api/resources/index.mjs +1 -0
- package/dist/esm/api/resources/orderDrafts/resources/taskGroup/client/Client.d.mts +5 -7
- package/dist/esm/api/resources/orderDrafts/resources/taskGroup/client/Client.mjs +8 -10
- package/dist/esm/api/resources/orderDrafts/resources/taskGroup/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/taskGroups/client/Client.d.mts +5 -7
- package/dist/esm/api/resources/taskGroups/client/Client.mjs +8 -10
- package/dist/esm/api/resources/taskGroups/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/tracking/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/tracking/client/Client.mjs +3 -3
- package/dist/esm/api/resources/tracking/resources/driver/client/Client.d.mts +10 -13
- package/dist/esm/api/resources/tracking/resources/driver/client/Client.mjs +9 -12
- package/dist/esm/api/resources/tracking/resources/driver/client/index.d.mts +0 -1
- package/dist/esm/api/resources/tracking/resources/driver/client/index.mjs +1 -1
- package/dist/esm/api/resources/tracking/resources/index.d.mts +2 -3
- package/dist/esm/api/resources/tracking/resources/index.mjs +2 -3
- package/dist/esm/api/resources/tracking/resources/{sharing → sharingSettings}/client/Client.d.mts +16 -16
- package/dist/esm/api/resources/tracking/resources/{sharing → sharingSettings}/client/Client.mjs +15 -15
- package/dist/esm/api/resources/tracking/resources/sharingSettings/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/tracking/resources/sharingSettings/index.d.mts +1 -0
- package/dist/esm/api/resources/tracking/resources/sharingSettings/index.mjs +1 -0
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/cargoByDevice/client/Client.mjs +10 -10
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/cargoByDriver/client/Client.mjs +8 -8
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/Client.mjs +10 -10
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/Client.mjs +8 -8
- package/dist/esm/api/types/FlightInfoForTaskRes.d.mts +10 -0
- package/dist/esm/api/types/SetFlightInfoReq.d.mts +9 -0
- package/dist/esm/api/types/Task1.d.mts +0 -1
- package/dist/esm/api/types/TaskClientCreate1.d.mts +0 -1
- package/dist/esm/api/types/TaskClientUpdate1.d.mts +0 -1
- package/dist/esm/api/types/TaskGroup1.d.mts +1 -0
- package/dist/esm/api/types/index.d.mts +2 -0
- package/dist/esm/api/types/index.mjs +2 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +97 -115
- package/dist/cjs/api/resources/drivers/client/requests/DriverLastSeenReq.d.ts +0 -23
- package/dist/cjs/api/resources/orderDrafts/resources/taskGroup/client/requests/SetFlightNumberDraftReq.d.ts +0 -13
- package/dist/cjs/api/resources/taskGroups/client/requests/SetFlightNumberReq.d.ts +0 -13
- package/dist/cjs/api/resources/taskGroups/client/requests/SetFlightNumberReq.js +0 -5
- package/dist/cjs/api/resources/tracking/resources/driver/client/requests/DriverUpdateReq.d.ts +0 -24
- package/dist/cjs/api/resources/tracking/resources/driver/client/requests/DriverUpdateReq.js +0 -5
- package/dist/cjs/api/resources/tracking/resources/driver/client/requests/index.d.ts +0 -1
- package/dist/esm/api/resources/drivers/client/requests/DriverLastSeenReq.d.mts +0 -23
- package/dist/esm/api/resources/orderDrafts/resources/taskGroup/client/requests/SetFlightNumberDraftReq.d.mts +0 -13
- package/dist/esm/api/resources/taskGroups/client/requests/SetFlightNumberReq.d.mts +0 -13
- package/dist/esm/api/resources/taskGroups/client/requests/SetFlightNumberReq.mjs +0 -4
- package/dist/esm/api/resources/tracking/resources/driver/client/requests/DriverUpdateReq.d.mts +0 -24
- package/dist/esm/api/resources/tracking/resources/driver/client/requests/DriverUpdateReq.mjs +0 -4
- package/dist/esm/api/resources/tracking/resources/driver/client/requests/index.d.mts +0 -1
- /package/dist/{esm/api/resources/tracking/resources/driver/client/requests/index.mjs → cjs/api/resources/flights/client/index.d.ts} +0 -0
- /package/dist/cjs/api/resources/{tracking/resources/driver/client/requests → flights/client}/index.js +0 -0
- /package/dist/cjs/api/resources/{tracking/resources/sharing → flights}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{tracking/resources/sharing → flights}/index.js +0 -0
- /package/dist/cjs/api/resources/tracking/resources/{sharing → sharingSettings}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/tracking/resources/{sharing → sharingSettings}/client/index.js +0 -0
- /package/dist/cjs/api/resources/tracking/resources/{sharing → sharingSettings}/client/requests/CargoByDeviceSharingSettingsUpdateReq.d.ts +0 -0
- /package/dist/cjs/api/resources/tracking/resources/{sharing → sharingSettings}/client/requests/CargoByDeviceSharingSettingsUpdateReq.js +0 -0
- /package/dist/cjs/api/resources/tracking/resources/{sharing → sharingSettings}/client/requests/CargoByDriverSharingSettingsUpdateReq.d.ts +0 -0
- /package/dist/cjs/api/resources/tracking/resources/{sharing → sharingSettings}/client/requests/CargoByDriverSharingSettingsUpdateReq.js +0 -0
- /package/dist/cjs/api/resources/tracking/resources/{sharing → sharingSettings}/client/requests/TaskGroupByDriverSharingSettingsUpdateReq.d.ts +0 -0
- /package/dist/cjs/api/resources/tracking/resources/{sharing → sharingSettings}/client/requests/TaskGroupByDriverSharingSettingsUpdateReq.js +0 -0
- /package/dist/cjs/api/resources/tracking/resources/{sharing → sharingSettings}/client/requests/index.d.ts +0 -0
- /package/dist/cjs/api/resources/tracking/resources/{sharing → sharingSettings}/client/requests/index.js +0 -0
- /package/dist/cjs/api/{resources/drivers/client/requests/DriverLastSeenReq.js → types/FlightInfoForTaskRes.js} +0 -0
- /package/dist/cjs/api/{resources/orderDrafts/resources/taskGroup/client/requests/SetFlightNumberDraftReq.js → types/SetFlightInfoReq.js} +0 -0
- /package/dist/esm/api/resources/{tracking/resources/sharing/client/requests/index.mjs → flights/client/index.d.mts} +0 -0
- /package/dist/esm/api/resources/{tracking/resources/sharing → flights}/index.d.mts +0 -0
- /package/dist/esm/api/resources/{tracking/resources/sharing → flights}/index.mjs +0 -0
- /package/dist/esm/api/resources/tracking/resources/{sharing → sharingSettings}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/tracking/resources/{sharing → sharingSettings}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/tracking/resources/{sharing → sharingSettings}/client/requests/CargoByDeviceSharingSettingsUpdateReq.d.mts +0 -0
- /package/dist/esm/api/resources/tracking/resources/{sharing → sharingSettings}/client/requests/CargoByDeviceSharingSettingsUpdateReq.mjs +0 -0
- /package/dist/esm/api/resources/tracking/resources/{sharing → sharingSettings}/client/requests/CargoByDriverSharingSettingsUpdateReq.d.mts +0 -0
- /package/dist/esm/api/resources/tracking/resources/{sharing → sharingSettings}/client/requests/CargoByDriverSharingSettingsUpdateReq.mjs +0 -0
- /package/dist/esm/api/resources/tracking/resources/{sharing → sharingSettings}/client/requests/TaskGroupByDriverSharingSettingsUpdateReq.d.mts +0 -0
- /package/dist/esm/api/resources/tracking/resources/{sharing → sharingSettings}/client/requests/TaskGroupByDriverSharingSettingsUpdateReq.mjs +0 -0
- /package/dist/esm/api/resources/tracking/resources/{sharing → sharingSettings}/client/requests/index.d.mts +0 -0
- /package/dist/esm/api/{resources/drivers/client/requests/DriverLastSeenReq.mjs → types/FlightInfoForTaskRes.mjs} +0 -0
- /package/dist/esm/api/{resources/orderDrafts/resources/taskGroup/client/requests/SetFlightNumberDraftReq.mjs → types/SetFlightInfoReq.mjs} +0 -0
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
5
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
6
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
7
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
8
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
9
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
10
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
import * as environments from "../../../../environments.mjs";
|
|
14
|
+
import * as core from "../../../../core/index.mjs";
|
|
15
|
+
import * as Chrt from "../../../index.mjs";
|
|
16
|
+
import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../core/headers.mjs";
|
|
17
|
+
import * as errors from "../../../../errors/index.mjs";
|
|
18
|
+
export class Flights {
|
|
19
|
+
constructor(_options = {}) {
|
|
20
|
+
this._options = _options;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Returns flight info from an adjacent FLIGHT task group for TENDER_TO_AIRLINE or RECOVER_FROM_AIRLINE tasks. | authz_personas=[courier_driver, forwarder_org_operators, courier_org_operators, shipper_org_operators] | () -> (FlightInfoForTaskRes)
|
|
24
|
+
*
|
|
25
|
+
* @param {string} taskId
|
|
26
|
+
* @param {Flights.RequestOptions} requestOptions - Request-specific configuration.
|
|
27
|
+
*
|
|
28
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* await client.flights.getFlightInfoForTaskV1("task_id")
|
|
32
|
+
*/
|
|
33
|
+
getFlightInfoForTaskV1(taskId, requestOptions) {
|
|
34
|
+
return core.HttpResponsePromise.fromPromise(this.__getFlightInfoForTaskV1(taskId, requestOptions));
|
|
35
|
+
}
|
|
36
|
+
__getFlightInfoForTaskV1(taskId, requestOptions) {
|
|
37
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
38
|
+
var _a, _b, _c, _d;
|
|
39
|
+
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);
|
|
40
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
41
|
+
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, `flights/flight_info/for_task/v1/${encodeURIComponent(taskId)}`),
|
|
42
|
+
method: "GET",
|
|
43
|
+
headers: _headers,
|
|
44
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
45
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
46
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
47
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
48
|
+
});
|
|
49
|
+
if (_response.ok) {
|
|
50
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
51
|
+
}
|
|
52
|
+
if (_response.error.reason === "status-code") {
|
|
53
|
+
switch (_response.error.statusCode) {
|
|
54
|
+
case 422:
|
|
55
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
56
|
+
default:
|
|
57
|
+
throw new errors.ChrtError({
|
|
58
|
+
statusCode: _response.error.statusCode,
|
|
59
|
+
body: _response.error.body,
|
|
60
|
+
rawResponse: _response.rawResponse,
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
switch (_response.error.reason) {
|
|
65
|
+
case "non-json":
|
|
66
|
+
throw new errors.ChrtError({
|
|
67
|
+
statusCode: _response.error.statusCode,
|
|
68
|
+
body: _response.error.rawBody,
|
|
69
|
+
rawResponse: _response.rawResponse,
|
|
70
|
+
});
|
|
71
|
+
case "timeout":
|
|
72
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /flights/flight_info/for_task/v1/{task_id}.");
|
|
73
|
+
case "unknown":
|
|
74
|
+
throw new errors.ChrtError({
|
|
75
|
+
message: _response.error.errorMessage,
|
|
76
|
+
rawResponse: _response.rawResponse,
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
_getAuthorizationHeader() {
|
|
82
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
83
|
+
const bearer = yield core.Supplier.get(this._options.token);
|
|
84
|
+
if (bearer != null) {
|
|
85
|
+
return `Bearer ${bearer}`;
|
|
86
|
+
}
|
|
87
|
+
return undefined;
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -14,6 +14,7 @@ export * as shipperPayCourierRateSheets from "./shipperPayCourierRateSheets/inde
|
|
|
14
14
|
export * as shipperPayCourierStatements from "./shipperPayCourierStatements/index.mjs";
|
|
15
15
|
export * as orgProfiles from "./orgProfiles/index.mjs";
|
|
16
16
|
export * as dev from "./dev/index.mjs";
|
|
17
|
+
export * as flights from "./flights/index.mjs";
|
|
17
18
|
export * as taskArtifactNotifications from "./taskArtifactNotifications/index.mjs";
|
|
18
19
|
export * as drivers from "./drivers/index.mjs";
|
|
19
20
|
export * as cargos from "./cargos/index.mjs";
|
|
@@ -14,6 +14,7 @@ export * as shipperPayCourierRateSheets from "./shipperPayCourierRateSheets/inde
|
|
|
14
14
|
export * as shipperPayCourierStatements from "./shipperPayCourierStatements/index.mjs";
|
|
15
15
|
export * as orgProfiles from "./orgProfiles/index.mjs";
|
|
16
16
|
export * as dev from "./dev/index.mjs";
|
|
17
|
+
export * as flights from "./flights/index.mjs";
|
|
17
18
|
export * as taskArtifactNotifications from "./taskArtifactNotifications/index.mjs";
|
|
18
19
|
export * as drivers from "./drivers/index.mjs";
|
|
19
20
|
export * as cargos from "./cargos/index.mjs";
|
|
@@ -47,21 +47,19 @@ export declare class TaskGroup {
|
|
|
47
47
|
addV1(request: Chrt.orderDrafts.OrderDraftAddTaskGroupReq, requestOptions?: TaskGroup.RequestOptions): core.HttpResponsePromise<string>;
|
|
48
48
|
private __addV1;
|
|
49
49
|
/**
|
|
50
|
-
* Sets the flight number on a draft task group. | (
|
|
50
|
+
* Sets the flight number and/or fa_flight_id on a draft task group. | (SetFlightInfoReq) -> (bool)
|
|
51
51
|
*
|
|
52
52
|
* @param {string} taskGroupId
|
|
53
|
-
* @param {Chrt.
|
|
53
|
+
* @param {Chrt.SetFlightInfoReq} request
|
|
54
54
|
* @param {TaskGroup.RequestOptions} requestOptions - Request-specific configuration.
|
|
55
55
|
*
|
|
56
56
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
57
57
|
*
|
|
58
58
|
* @example
|
|
59
|
-
* await client.orderDrafts.taskGroup.
|
|
60
|
-
* flight_number: "flight_number"
|
|
61
|
-
* })
|
|
59
|
+
* await client.orderDrafts.taskGroup.setFlightInfoV1("task_group_id", {})
|
|
62
60
|
*/
|
|
63
|
-
|
|
64
|
-
private
|
|
61
|
+
setFlightInfoV1(taskGroupId: string, request: Chrt.SetFlightInfoReq, requestOptions?: TaskGroup.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
62
|
+
private __setFlightInfoV1;
|
|
65
63
|
/**
|
|
66
64
|
* Updates the courier organization assigned to a draft task group. | (UpdateCourierOrgDraftReq) -> (bool)
|
|
67
65
|
*
|
|
@@ -85,28 +85,26 @@ export class TaskGroup {
|
|
|
85
85
|
});
|
|
86
86
|
}
|
|
87
87
|
/**
|
|
88
|
-
* Sets the flight number on a draft task group. | (
|
|
88
|
+
* Sets the flight number and/or fa_flight_id on a draft task group. | (SetFlightInfoReq) -> (bool)
|
|
89
89
|
*
|
|
90
90
|
* @param {string} taskGroupId
|
|
91
|
-
* @param {Chrt.
|
|
91
|
+
* @param {Chrt.SetFlightInfoReq} request
|
|
92
92
|
* @param {TaskGroup.RequestOptions} requestOptions - Request-specific configuration.
|
|
93
93
|
*
|
|
94
94
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
95
95
|
*
|
|
96
96
|
* @example
|
|
97
|
-
* await client.orderDrafts.taskGroup.
|
|
98
|
-
* flight_number: "flight_number"
|
|
99
|
-
* })
|
|
97
|
+
* await client.orderDrafts.taskGroup.setFlightInfoV1("task_group_id", {})
|
|
100
98
|
*/
|
|
101
|
-
|
|
102
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
99
|
+
setFlightInfoV1(taskGroupId, request, requestOptions) {
|
|
100
|
+
return core.HttpResponsePromise.fromPromise(this.__setFlightInfoV1(taskGroupId, request, requestOptions));
|
|
103
101
|
}
|
|
104
|
-
|
|
102
|
+
__setFlightInfoV1(taskGroupId, request, requestOptions) {
|
|
105
103
|
return __awaiter(this, void 0, void 0, function* () {
|
|
106
104
|
var _a, _b, _c, _d;
|
|
107
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);
|
|
108
106
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
109
|
-
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, `oort/order_drafts/task_group/
|
|
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, `oort/order_drafts/task_group/set_flight_info/v1/${encodeURIComponent(taskGroupId)}`),
|
|
110
108
|
method: "PATCH",
|
|
111
109
|
headers: _headers,
|
|
112
110
|
contentType: "application/json",
|
|
@@ -140,7 +138,7 @@ export class TaskGroup {
|
|
|
140
138
|
rawResponse: _response.rawResponse,
|
|
141
139
|
});
|
|
142
140
|
case "timeout":
|
|
143
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /oort/order_drafts/task_group/
|
|
141
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /oort/order_drafts/task_group/set_flight_info/v1/{task_group_id}.");
|
|
144
142
|
case "unknown":
|
|
145
143
|
throw new errors.ChrtError({
|
|
146
144
|
message: _response.error.errorMessage,
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
export { type OrderDraftAddTaskGroupReq } from "./OrderDraftAddTaskGroupReq.mjs";
|
|
2
|
-
export { type SetFlightNumberDraftReq } from "./SetFlightNumberDraftReq.mjs";
|
|
3
2
|
export { type UpdateCourierOrgDraftReq } from "./UpdateCourierOrgDraftReq.mjs";
|
|
4
3
|
export { type SetTaskOrderingDraftReq } from "./SetTaskOrderingDraftReq.mjs";
|
|
@@ -69,21 +69,19 @@ export declare class TaskGroups {
|
|
|
69
69
|
setTaskOrderingV1(taskGroupId: string, request: Chrt.SetTaskOrderingReq, requestOptions?: TaskGroups.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
70
70
|
private __setTaskOrderingV1;
|
|
71
71
|
/**
|
|
72
|
-
* Sets the flight number
|
|
72
|
+
* Sets the flight number and/or fa_flight_id on a task group. | authz_personas=[lig_org_operators] | (SetFlightInfoReq) -> (bool)
|
|
73
73
|
*
|
|
74
74
|
* @param {string} taskGroupId
|
|
75
|
-
* @param {Chrt.
|
|
75
|
+
* @param {Chrt.SetFlightInfoReq} request
|
|
76
76
|
* @param {TaskGroups.RequestOptions} requestOptions - Request-specific configuration.
|
|
77
77
|
*
|
|
78
78
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
79
79
|
*
|
|
80
80
|
* @example
|
|
81
|
-
* await client.taskGroups.
|
|
82
|
-
* flight_number: "flight_number"
|
|
83
|
-
* })
|
|
81
|
+
* await client.taskGroups.setFlightInfoV1("task_group_id", {})
|
|
84
82
|
*/
|
|
85
|
-
|
|
86
|
-
private
|
|
83
|
+
setFlightInfoV1(taskGroupId: string, request: Chrt.SetFlightInfoReq, requestOptions?: TaskGroups.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
84
|
+
private __setFlightInfoV1;
|
|
87
85
|
/**
|
|
88
86
|
* Updates the driver assigned to a task group. | authz_personas=[courier_org_operators] | (UpdateDriverReq) -> (bool)
|
|
89
87
|
*
|
|
@@ -159,28 +159,26 @@ export class TaskGroups {
|
|
|
159
159
|
});
|
|
160
160
|
}
|
|
161
161
|
/**
|
|
162
|
-
* Sets the flight number
|
|
162
|
+
* Sets the flight number and/or fa_flight_id on a task group. | authz_personas=[lig_org_operators] | (SetFlightInfoReq) -> (bool)
|
|
163
163
|
*
|
|
164
164
|
* @param {string} taskGroupId
|
|
165
|
-
* @param {Chrt.
|
|
165
|
+
* @param {Chrt.SetFlightInfoReq} request
|
|
166
166
|
* @param {TaskGroups.RequestOptions} requestOptions - Request-specific configuration.
|
|
167
167
|
*
|
|
168
168
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
169
169
|
*
|
|
170
170
|
* @example
|
|
171
|
-
* await client.taskGroups.
|
|
172
|
-
* flight_number: "flight_number"
|
|
173
|
-
* })
|
|
171
|
+
* await client.taskGroups.setFlightInfoV1("task_group_id", {})
|
|
174
172
|
*/
|
|
175
|
-
|
|
176
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
173
|
+
setFlightInfoV1(taskGroupId, request, requestOptions) {
|
|
174
|
+
return core.HttpResponsePromise.fromPromise(this.__setFlightInfoV1(taskGroupId, request, requestOptions));
|
|
177
175
|
}
|
|
178
|
-
|
|
176
|
+
__setFlightInfoV1(taskGroupId, request, requestOptions) {
|
|
179
177
|
return __awaiter(this, void 0, void 0, function* () {
|
|
180
178
|
var _a, _b, _c, _d;
|
|
181
179
|
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
182
180
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
183
|
-
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, `oort/task_groups/
|
|
181
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `oort/task_groups/set_flight_info/v1/${encodeURIComponent(taskGroupId)}`),
|
|
184
182
|
method: "PATCH",
|
|
185
183
|
headers: _headers,
|
|
186
184
|
contentType: "application/json",
|
|
@@ -214,7 +212,7 @@ export class TaskGroups {
|
|
|
214
212
|
rawResponse: _response.rawResponse,
|
|
215
213
|
});
|
|
216
214
|
case "timeout":
|
|
217
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /oort/task_groups/
|
|
215
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /oort/task_groups/set_flight_info/v1/{task_group_id}.");
|
|
218
216
|
case "unknown":
|
|
219
217
|
throw new errors.ChrtError({
|
|
220
218
|
message: _response.error.errorMessage,
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export { type SetTaskOrderingReq } from "./SetTaskOrderingReq.mjs";
|
|
2
|
-
export { type SetFlightNumberReq } from "./SetFlightNumberReq.mjs";
|
|
3
2
|
export { type UpdateDriverReq } from "./UpdateDriverReq.mjs";
|
|
4
3
|
export { type UpdateCourierOrgReq } from "./UpdateCourierOrgReq.mjs";
|
|
5
4
|
export { type AddMessageReq } from "./AddMessageReq.mjs";
|
|
@@ -6,7 +6,7 @@ import * as core from "../../../../core/index.mjs";
|
|
|
6
6
|
import { Devices } from "../resources/devices/client/Client.mjs";
|
|
7
7
|
import { Driver } from "../resources/driver/client/Client.mjs";
|
|
8
8
|
import { Sessions } from "../resources/sessions/client/Client.mjs";
|
|
9
|
-
import {
|
|
9
|
+
import { SharingSettings } from "../resources/sharingSettings/client/Client.mjs";
|
|
10
10
|
import { Timeseries } from "../resources/timeseries/client/Client.mjs";
|
|
11
11
|
export declare namespace Tracking {
|
|
12
12
|
interface Options {
|
|
@@ -24,12 +24,12 @@ export declare class Tracking {
|
|
|
24
24
|
protected _devices: Devices | undefined;
|
|
25
25
|
protected _driver: Driver | undefined;
|
|
26
26
|
protected _sessions: Sessions | undefined;
|
|
27
|
-
protected
|
|
27
|
+
protected _sharingSettings: SharingSettings | undefined;
|
|
28
28
|
protected _timeseries: Timeseries | undefined;
|
|
29
29
|
constructor(_options?: Tracking.Options);
|
|
30
30
|
get devices(): Devices;
|
|
31
31
|
get driver(): Driver;
|
|
32
32
|
get sessions(): Sessions;
|
|
33
|
-
get
|
|
33
|
+
get sharingSettings(): SharingSettings;
|
|
34
34
|
get timeseries(): Timeseries;
|
|
35
35
|
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { Devices } from "../resources/devices/client/Client.mjs";
|
|
5
5
|
import { Driver } from "../resources/driver/client/Client.mjs";
|
|
6
6
|
import { Sessions } from "../resources/sessions/client/Client.mjs";
|
|
7
|
-
import {
|
|
7
|
+
import { SharingSettings } from "../resources/sharingSettings/client/Client.mjs";
|
|
8
8
|
import { Timeseries } from "../resources/timeseries/client/Client.mjs";
|
|
9
9
|
export class Tracking {
|
|
10
10
|
constructor(_options = {}) {
|
|
@@ -22,9 +22,9 @@ export class Tracking {
|
|
|
22
22
|
var _a;
|
|
23
23
|
return ((_a = this._sessions) !== null && _a !== void 0 ? _a : (this._sessions = new Sessions(this._options)));
|
|
24
24
|
}
|
|
25
|
-
get
|
|
25
|
+
get sharingSettings() {
|
|
26
26
|
var _a;
|
|
27
|
-
return ((_a = this.
|
|
27
|
+
return ((_a = this._sharingSettings) !== null && _a !== void 0 ? _a : (this._sharingSettings = new SharingSettings(this._options)));
|
|
28
28
|
}
|
|
29
29
|
get timeseries() {
|
|
30
30
|
var _a;
|
|
@@ -31,29 +31,26 @@ export declare class Driver {
|
|
|
31
31
|
protected readonly _options: Driver.Options;
|
|
32
32
|
constructor(_options?: Driver.Options);
|
|
33
33
|
/**
|
|
34
|
-
* Records driver location updates. Automatically
|
|
34
|
+
* Records driver location updates. Updates driver's last seen timestamp and location. Automatically records tracking data for all IN_PROGRESS task groups and their associated IN_TRANSIT cargos. | (LocationFeature) -> (DriverUpdateRes)
|
|
35
35
|
*
|
|
36
|
-
* @param {Chrt.
|
|
36
|
+
* @param {Chrt.LocationFeature} request
|
|
37
37
|
* @param {Driver.RequestOptions} requestOptions - Request-specific configuration.
|
|
38
38
|
*
|
|
39
39
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
40
40
|
*
|
|
41
41
|
* @example
|
|
42
42
|
* await client.tracking.driver.updateV1({
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
* type: "
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
* coordinates: [[]]
|
|
51
|
-
* }]
|
|
52
|
-
* }
|
|
43
|
+
* type: "Feature",
|
|
44
|
+
* geometry: {
|
|
45
|
+
* type: "GeometryCollection",
|
|
46
|
+
* geometries: [{
|
|
47
|
+
* type: "LineString",
|
|
48
|
+
* coordinates: [[]]
|
|
49
|
+
* }]
|
|
53
50
|
* }
|
|
54
51
|
* })
|
|
55
52
|
*/
|
|
56
|
-
updateV1(request: Chrt.
|
|
53
|
+
updateV1(request: Chrt.LocationFeature, requestOptions?: Driver.RequestOptions): core.HttpResponsePromise<Chrt.DriverUpdateRes>;
|
|
57
54
|
private __updateV1;
|
|
58
55
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
59
56
|
}
|
|
@@ -20,25 +20,22 @@ export class Driver {
|
|
|
20
20
|
this._options = _options;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
-
* Records driver location updates. Automatically
|
|
23
|
+
* Records driver location updates. Updates driver's last seen timestamp and location. Automatically records tracking data for all IN_PROGRESS task groups and their associated IN_TRANSIT cargos. | (LocationFeature) -> (DriverUpdateRes)
|
|
24
24
|
*
|
|
25
|
-
* @param {Chrt.
|
|
25
|
+
* @param {Chrt.LocationFeature} request
|
|
26
26
|
* @param {Driver.RequestOptions} requestOptions - Request-specific configuration.
|
|
27
27
|
*
|
|
28
28
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
29
29
|
*
|
|
30
30
|
* @example
|
|
31
31
|
* await client.tracking.driver.updateV1({
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
* type: "
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
* coordinates: [[]]
|
|
40
|
-
* }]
|
|
41
|
-
* }
|
|
32
|
+
* type: "Feature",
|
|
33
|
+
* geometry: {
|
|
34
|
+
* type: "GeometryCollection",
|
|
35
|
+
* geometries: [{
|
|
36
|
+
* type: "LineString",
|
|
37
|
+
* coordinates: [[]]
|
|
38
|
+
* }]
|
|
42
39
|
* }
|
|
43
40
|
* })
|
|
44
41
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export {};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
export * as devices from "./devices/index.mjs";
|
|
2
2
|
export * as driver from "./driver/index.mjs";
|
|
3
3
|
export * as sessions from "./sessions/index.mjs";
|
|
4
|
-
export * as
|
|
4
|
+
export * as sharingSettings from "./sharingSettings/index.mjs";
|
|
5
5
|
export * as timeseries from "./timeseries/index.mjs";
|
|
6
6
|
export * from "./devices/client/requests/index.mjs";
|
|
7
|
-
export * from "./driver/client/requests/index.mjs";
|
|
8
7
|
export * from "./sessions/client/requests/index.mjs";
|
|
9
|
-
export * from "./
|
|
8
|
+
export * from "./sharingSettings/client/requests/index.mjs";
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
export * as devices from "./devices/index.mjs";
|
|
2
2
|
export * as driver from "./driver/index.mjs";
|
|
3
3
|
export * as sessions from "./sessions/index.mjs";
|
|
4
|
-
export * as
|
|
4
|
+
export * as sharingSettings from "./sharingSettings/index.mjs";
|
|
5
5
|
export * as timeseries from "./timeseries/index.mjs";
|
|
6
6
|
export * from "./devices/client/requests/index.mjs";
|
|
7
|
-
export * from "./driver/client/requests/index.mjs";
|
|
8
7
|
export * from "./sessions/client/requests/index.mjs";
|
|
9
|
-
export * from "./
|
|
8
|
+
export * from "./sharingSettings/client/requests/index.mjs";
|
package/dist/esm/api/resources/tracking/resources/{sharing → sharingSettings}/client/Client.d.mts
RENAMED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import * as environments from "../../../../../../environments.mjs";
|
|
5
5
|
import * as core from "../../../../../../core/index.mjs";
|
|
6
6
|
import * as Chrt from "../../../../../index.mjs";
|
|
7
|
-
export declare namespace
|
|
7
|
+
export declare namespace SharingSettings {
|
|
8
8
|
interface Options {
|
|
9
9
|
environment?: core.Supplier<environments.ChrtEnvironment | string>;
|
|
10
10
|
/** Specify a custom URL to connect the client to. */
|
|
@@ -27,74 +27,74 @@ export declare namespace Sharing {
|
|
|
27
27
|
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
|
-
export declare class
|
|
31
|
-
protected readonly _options:
|
|
32
|
-
constructor(_options?:
|
|
30
|
+
export declare class SharingSettings {
|
|
31
|
+
protected readonly _options: SharingSettings.Options;
|
|
32
|
+
constructor(_options?: SharingSettings.Options);
|
|
33
33
|
/**
|
|
34
34
|
* Get all tracking datasets and their sharing settings for a given order. | authz_personas=[shipper_org_operators, forwarder_org_operators, courier_org_operators] | () -> (list[TrackingSharingSettingsRes])
|
|
35
35
|
*
|
|
36
36
|
* @param {string} orderIdOrShortId
|
|
37
|
-
* @param {
|
|
37
|
+
* @param {SharingSettings.RequestOptions} requestOptions - Request-specific configuration.
|
|
38
38
|
*
|
|
39
39
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
40
40
|
*
|
|
41
41
|
* @example
|
|
42
|
-
* await client.tracking.
|
|
42
|
+
* await client.tracking.sharingSettings.getSettingsV1("order_id_or_short_id")
|
|
43
43
|
*/
|
|
44
|
-
getSettingsV1(orderIdOrShortId: string, requestOptions?:
|
|
44
|
+
getSettingsV1(orderIdOrShortId: string, requestOptions?: SharingSettings.RequestOptions): core.HttpResponsePromise<Chrt.TrackingSharingSettingsRes[]>;
|
|
45
45
|
private __getSettingsV1;
|
|
46
46
|
/**
|
|
47
47
|
* Updates the sharing settings for a task group by driver tracking dataset. | authz_personas=[forwarder_org_operators, shipper_org_operators, courier_org_operators, courier_driver] | (TaskGroupByDriverSharingSettingsUpdateReq) -> (TaskGroupByDriverSharingSettings1)
|
|
48
48
|
*
|
|
49
49
|
* @param {Chrt.tracking.TaskGroupByDriverSharingSettingsUpdateReq} request
|
|
50
|
-
* @param {
|
|
50
|
+
* @param {SharingSettings.RequestOptions} requestOptions - Request-specific configuration.
|
|
51
51
|
*
|
|
52
52
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
53
53
|
*
|
|
54
54
|
* @example
|
|
55
|
-
* await client.tracking.
|
|
55
|
+
* await client.tracking.sharingSettings.taskGroupByDriverSharingSettingsV1({
|
|
56
56
|
* task_group_id: "task_group_id",
|
|
57
57
|
* driver_id: "driver_id",
|
|
58
58
|
* "public": true
|
|
59
59
|
* })
|
|
60
60
|
*/
|
|
61
|
-
taskGroupByDriverSharingSettingsV1(request: Chrt.tracking.TaskGroupByDriverSharingSettingsUpdateReq, requestOptions?:
|
|
61
|
+
taskGroupByDriverSharingSettingsV1(request: Chrt.tracking.TaskGroupByDriverSharingSettingsUpdateReq, requestOptions?: SharingSettings.RequestOptions): core.HttpResponsePromise<Chrt.TaskGroupByDriverSharingSettings1>;
|
|
62
62
|
private __taskGroupByDriverSharingSettingsV1;
|
|
63
63
|
/**
|
|
64
64
|
* Updates the sharing settings for a cargo by driver tracking dataset. | authz_personas=[forwarder_org_operators, shipper_org_operators, courier_org_operators, courier_driver] | (CargoByDriverSharingSettingsUpdateReq) -> (CargoByDriverSharingSettings1)
|
|
65
65
|
*
|
|
66
66
|
* @param {Chrt.tracking.CargoByDriverSharingSettingsUpdateReq} request
|
|
67
|
-
* @param {
|
|
67
|
+
* @param {SharingSettings.RequestOptions} requestOptions - Request-specific configuration.
|
|
68
68
|
*
|
|
69
69
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
70
70
|
*
|
|
71
71
|
* @example
|
|
72
|
-
* await client.tracking.
|
|
72
|
+
* await client.tracking.sharingSettings.cargoByDriverSettingsV1({
|
|
73
73
|
* task_group_id: "task_group_id",
|
|
74
74
|
* cargo_id: "cargo_id",
|
|
75
75
|
* driver_id: "driver_id",
|
|
76
76
|
* "public": true
|
|
77
77
|
* })
|
|
78
78
|
*/
|
|
79
|
-
cargoByDriverSettingsV1(request: Chrt.tracking.CargoByDriverSharingSettingsUpdateReq, requestOptions?:
|
|
79
|
+
cargoByDriverSettingsV1(request: Chrt.tracking.CargoByDriverSharingSettingsUpdateReq, requestOptions?: SharingSettings.RequestOptions): core.HttpResponsePromise<Chrt.CargoByDriverSharingSettings1>;
|
|
80
80
|
private __cargoByDriverSettingsV1;
|
|
81
81
|
/**
|
|
82
82
|
* Updates the sharing settings for a cargo by device tracking dataset. | authz_personas=[forwarder_org_operators, shipper_org_operators, order_creator_org_operators] | (CargoByDeviceSharingSettingsUpdateReq) -> (CargoByDeviceSharingSettings1)
|
|
83
83
|
*
|
|
84
84
|
* @param {Chrt.tracking.CargoByDeviceSharingSettingsUpdateReq} request
|
|
85
|
-
* @param {
|
|
85
|
+
* @param {SharingSettings.RequestOptions} requestOptions - Request-specific configuration.
|
|
86
86
|
*
|
|
87
87
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
88
88
|
*
|
|
89
89
|
* @example
|
|
90
|
-
* await client.tracking.
|
|
90
|
+
* await client.tracking.sharingSettings.cargoByDeviceSettingsV1({
|
|
91
91
|
* task_group_id: "task_group_id",
|
|
92
92
|
* cargo_id: "cargo_id",
|
|
93
93
|
* device_id: "device_id",
|
|
94
94
|
* "public": true
|
|
95
95
|
* })
|
|
96
96
|
*/
|
|
97
|
-
cargoByDeviceSettingsV1(request: Chrt.tracking.CargoByDeviceSharingSettingsUpdateReq, requestOptions?:
|
|
97
|
+
cargoByDeviceSettingsV1(request: Chrt.tracking.CargoByDeviceSharingSettingsUpdateReq, requestOptions?: SharingSettings.RequestOptions): core.HttpResponsePromise<Chrt.CargoByDeviceSharingSettings1>;
|
|
98
98
|
private __cargoByDeviceSettingsV1;
|
|
99
99
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
100
100
|
}
|