@chrt-inc/typescript-sdk 1.990.0 → 1.997.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/errors/ForbiddenError.d.ts +9 -0
- package/dist/cjs/api/errors/ForbiddenError.js +52 -0
- package/dist/cjs/api/errors/LockedError.d.ts +9 -0
- package/dist/cjs/api/errors/LockedError.js +52 -0
- package/dist/cjs/api/errors/NotFoundError.d.ts +9 -0
- package/dist/cjs/api/errors/NotFoundError.js +52 -0
- package/dist/cjs/api/errors/ServiceUnavailableError.d.ts +9 -0
- package/dist/cjs/api/errors/ServiceUnavailableError.js +52 -0
- package/dist/cjs/api/errors/UnprocessableEntityError.d.ts +1 -2
- package/dist/cjs/api/errors/index.d.ts +4 -0
- package/dist/cjs/api/errors/index.js +4 -0
- package/dist/cjs/api/resources/billingNew/resources/orders/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/billingNew/resources/orders/client/Client.js +9 -4
- package/dist/cjs/api/resources/billingNew/resources/orders/client/requests/OrderBillingExpandedListReq.d.ts +3 -3
- package/dist/cjs/api/resources/listing/resources/bidThreads/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/listing/resources/bidThreads/client/Client.js +1 -1
- package/dist/cjs/api/resources/operations/resources/operationsTasks/client/Client.d.ts +19 -3
- package/dist/cjs/api/resources/operations/resources/operationsTasks/client/Client.js +87 -9
- package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/OperationsTaskClientUpdate1.d.ts +4 -0
- package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksExpandedListV1Request.d.ts +3 -3
- package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksListV1Request.d.ts +3 -3
- package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksTypeaheadV1Request.d.ts +16 -0
- package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/operations/resources/orderInternalMessages/resources/s3Objects/client/Client.d.ts +5 -1
- package/dist/cjs/api/resources/operations/resources/orderInternalMessages/resources/s3Objects/client/Client.js +13 -1
- package/dist/cjs/api/resources/orgs/resources/complianceDocuments/resources/s3Object/client/Client.d.ts +5 -1
- package/dist/cjs/api/resources/orgs/resources/complianceDocuments/resources/s3Object/client/Client.js +13 -1
- package/dist/cjs/api/resources/shipping/resources/drivers/client/Client.d.ts +3 -0
- package/dist/cjs/api/resources/shipping/resources/drivers/client/Client.js +25 -8
- package/dist/cjs/api/resources/shipping/resources/drivers/client/requests/DriversListV1Request.d.ts +9 -0
- package/dist/cjs/api/resources/shipping/resources/drivers/resources/complianceDocuments/resources/s3Object/client/Client.d.ts +5 -1
- package/dist/cjs/api/resources/shipping/resources/drivers/resources/complianceDocuments/resources/s3Object/client/Client.js +13 -1
- package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/client/Client.js +10 -5
- package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/client/requests/OrderTemplateNewClientCreate1.d.ts +1 -1
- package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/client/requests/OrderTemplateNewClientUpdate1.d.ts +1 -2
- package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/client/requests/OrderTemplatesNewListV1Request.d.ts +3 -3
- package/dist/cjs/api/resources/shipping/resources/orders/client/Client.d.ts +6 -6
- package/dist/cjs/api/resources/shipping/resources/orders/client/Client.js +9 -9
- package/dist/cjs/api/resources/shipping/resources/orders/client/requests/{OrdersUpdateLabelReq.d.ts → OrdersUpdateLabelsReq.d.ts} +2 -3
- package/dist/cjs/api/resources/shipping/resources/orders/client/requests/OrdersUpdateLabelsReq.js +5 -0
- package/dist/cjs/api/resources/shipping/resources/orders/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/client/requests/OrdersOpenDraftReq.d.ts +1 -1
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.js +9 -4
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForProviderOperatorsV1Request.d.ts +3 -2
- package/dist/cjs/api/resources/shipping/resources/taskArtifacts/resources/s3Object/client/Client.d.ts +5 -1
- package/dist/cjs/api/resources/shipping/resources/taskArtifacts/resources/s3Object/client/Client.js +13 -1
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/s3Object/client/Client.d.ts +5 -1
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/s3Object/client/Client.js +13 -1
- package/dist/cjs/api/resources/tracking/resources/devices/client/Client.d.ts +2 -0
- package/dist/cjs/api/resources/tracking/resources/devices/client/Client.js +9 -1
- package/dist/cjs/api/resources/tracking/resources/devices/client/requests/DevicesListV1Request.d.ts +6 -0
- package/dist/cjs/api/types/BidThreadForListing1.d.ts +19 -0
- package/dist/cjs/api/types/BidThreadForListing1.js +5 -0
- package/dist/cjs/api/types/BidThreadForListingListRes.d.ts +8 -0
- package/dist/cjs/api/types/BidThreadForListingListRes.js +5 -0
- package/dist/cjs/api/types/FileDownloadErrorRes.d.ts +27 -0
- package/dist/cjs/api/types/FileDownloadErrorRes.js +19 -0
- package/dist/cjs/api/types/FileDownloadRequestErrorRes.d.ts +13 -0
- package/dist/cjs/api/types/FileDownloadRequestErrorRes.js +5 -0
- package/dist/cjs/api/types/NotFoundErrorBody.d.ts +5 -0
- package/dist/cjs/api/types/NotFoundErrorBody.js +5 -0
- package/dist/cjs/api/types/OperationsTaskStatusEnum.d.ts +2 -1
- package/dist/cjs/api/types/OperationsTaskStatusEnum.js +1 -0
- package/dist/cjs/api/types/OperationsTaskTypeEnum.d.ts +2 -1
- package/dist/cjs/api/types/OperationsTaskTypeEnum.js +1 -0
- package/dist/cjs/api/types/OperationsTaskTypeaheadFieldEnum.d.ts +4 -0
- package/dist/cjs/api/types/OperationsTaskTypeaheadFieldEnum.js +5 -0
- package/dist/cjs/api/types/OperationsTaskTypeaheadResult.d.ts +8 -0
- package/dist/cjs/api/types/OperationsTaskTypeaheadResult.js +5 -0
- package/dist/cjs/api/types/Order1.d.ts +1 -1
- package/dist/cjs/api/types/OrderBillingExecutor1.d.ts +1 -1
- package/dist/cjs/api/types/OrderBillingExpandedListItem1.d.ts +1 -1
- package/dist/cjs/api/types/OrderLimitedForProvider1.d.ts +1 -1
- package/dist/cjs/api/types/OrderTaskGroupExecutorDetails1.d.ts +1 -1
- package/dist/cjs/api/types/OrderTemplateNew1.d.ts +1 -1
- package/dist/cjs/api/types/OrderTemplateNewCore1.d.ts +1 -1
- package/dist/cjs/api/types/OrderTemplateNewExpanded1.d.ts +2 -1
- package/dist/cjs/api/types/TaskArtifactTypeEnum1.d.ts +2 -1
- package/dist/cjs/api/types/TaskArtifactTypeEnum1.js +1 -0
- package/dist/cjs/api/types/UnprocessableEntityErrorBody.d.ts +5 -0
- package/dist/cjs/api/types/UnprocessableEntityErrorBody.js +5 -0
- package/dist/cjs/api/types/index.d.ts +8 -0
- package/dist/cjs/api/types/index.js +8 -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/errors/ForbiddenError.d.mts +9 -0
- package/dist/esm/api/errors/ForbiddenError.mjs +15 -0
- package/dist/esm/api/errors/LockedError.d.mts +9 -0
- package/dist/esm/api/errors/LockedError.mjs +15 -0
- package/dist/esm/api/errors/NotFoundError.d.mts +9 -0
- package/dist/esm/api/errors/NotFoundError.mjs +15 -0
- package/dist/esm/api/errors/ServiceUnavailableError.d.mts +9 -0
- package/dist/esm/api/errors/ServiceUnavailableError.mjs +15 -0
- package/dist/esm/api/errors/UnprocessableEntityError.d.mts +1 -2
- package/dist/esm/api/errors/index.d.mts +4 -0
- package/dist/esm/api/errors/index.mjs +4 -0
- package/dist/esm/api/resources/billingNew/resources/orders/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/billingNew/resources/orders/client/Client.mjs +9 -4
- package/dist/esm/api/resources/billingNew/resources/orders/client/requests/OrderBillingExpandedListReq.d.mts +3 -3
- package/dist/esm/api/resources/listing/resources/bidThreads/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/listing/resources/bidThreads/client/Client.mjs +1 -1
- package/dist/esm/api/resources/operations/resources/operationsTasks/client/Client.d.mts +19 -3
- package/dist/esm/api/resources/operations/resources/operationsTasks/client/Client.mjs +87 -9
- package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/OperationsTaskClientUpdate1.d.mts +4 -0
- package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksExpandedListV1Request.d.mts +3 -3
- package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksListV1Request.d.mts +3 -3
- package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksTypeaheadV1Request.d.mts +16 -0
- package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/operations/resources/orderInternalMessages/resources/s3Objects/client/Client.d.mts +5 -1
- package/dist/esm/api/resources/operations/resources/orderInternalMessages/resources/s3Objects/client/Client.mjs +13 -1
- package/dist/esm/api/resources/orgs/resources/complianceDocuments/resources/s3Object/client/Client.d.mts +5 -1
- package/dist/esm/api/resources/orgs/resources/complianceDocuments/resources/s3Object/client/Client.mjs +13 -1
- package/dist/esm/api/resources/shipping/resources/drivers/client/Client.d.mts +3 -0
- package/dist/esm/api/resources/shipping/resources/drivers/client/Client.mjs +25 -8
- package/dist/esm/api/resources/shipping/resources/drivers/client/requests/DriversListV1Request.d.mts +9 -0
- package/dist/esm/api/resources/shipping/resources/drivers/resources/complianceDocuments/resources/s3Object/client/Client.d.mts +5 -1
- package/dist/esm/api/resources/shipping/resources/drivers/resources/complianceDocuments/resources/s3Object/client/Client.mjs +13 -1
- package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/client/Client.mjs +10 -5
- package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/client/requests/OrderTemplateNewClientCreate1.d.mts +1 -1
- package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/client/requests/OrderTemplateNewClientUpdate1.d.mts +1 -2
- package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/client/requests/OrderTemplatesNewListV1Request.d.mts +3 -3
- package/dist/esm/api/resources/shipping/resources/orders/client/Client.d.mts +6 -6
- package/dist/esm/api/resources/shipping/resources/orders/client/Client.mjs +9 -9
- package/dist/esm/api/resources/shipping/resources/orders/client/requests/{OrdersUpdateLabelReq.d.mts → OrdersUpdateLabelsReq.d.mts} +2 -3
- package/dist/esm/api/resources/shipping/resources/orders/client/requests/OrdersUpdateLabelsReq.mjs +4 -0
- package/dist/esm/api/resources/shipping/resources/orders/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/client/requests/OrdersOpenDraftReq.d.mts +1 -1
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.mjs +9 -4
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForProviderOperatorsV1Request.d.mts +3 -2
- package/dist/esm/api/resources/shipping/resources/taskArtifacts/resources/s3Object/client/Client.d.mts +5 -1
- package/dist/esm/api/resources/shipping/resources/taskArtifacts/resources/s3Object/client/Client.mjs +13 -1
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/s3Object/client/Client.d.mts +5 -1
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/s3Object/client/Client.mjs +13 -1
- package/dist/esm/api/resources/tracking/resources/devices/client/Client.d.mts +2 -0
- package/dist/esm/api/resources/tracking/resources/devices/client/Client.mjs +9 -1
- package/dist/esm/api/resources/tracking/resources/devices/client/requests/DevicesListV1Request.d.mts +6 -0
- package/dist/esm/api/types/BidThreadForListing1.d.mts +19 -0
- package/dist/esm/api/types/BidThreadForListing1.mjs +4 -0
- package/dist/esm/api/types/BidThreadForListingListRes.d.mts +8 -0
- package/dist/esm/api/types/BidThreadForListingListRes.mjs +4 -0
- package/dist/esm/api/types/FileDownloadErrorRes.d.mts +27 -0
- package/dist/esm/api/types/FileDownloadErrorRes.mjs +16 -0
- package/dist/esm/api/types/FileDownloadRequestErrorRes.d.mts +13 -0
- package/dist/esm/api/types/FileDownloadRequestErrorRes.mjs +4 -0
- package/dist/esm/api/types/NotFoundErrorBody.d.mts +5 -0
- package/dist/esm/api/types/NotFoundErrorBody.mjs +4 -0
- package/dist/esm/api/types/OperationsTaskStatusEnum.d.mts +2 -1
- package/dist/esm/api/types/OperationsTaskStatusEnum.mjs +1 -0
- package/dist/esm/api/types/OperationsTaskTypeEnum.d.mts +2 -1
- package/dist/esm/api/types/OperationsTaskTypeEnum.mjs +1 -0
- package/dist/esm/api/types/OperationsTaskTypeaheadFieldEnum.d.mts +4 -0
- package/dist/esm/api/types/OperationsTaskTypeaheadFieldEnum.mjs +4 -0
- package/dist/esm/api/types/OperationsTaskTypeaheadResult.d.mts +8 -0
- package/dist/esm/api/types/OperationsTaskTypeaheadResult.mjs +4 -0
- package/dist/esm/api/types/Order1.d.mts +1 -1
- package/dist/esm/api/types/OrderBillingExecutor1.d.mts +1 -1
- package/dist/esm/api/types/OrderBillingExpandedListItem1.d.mts +1 -1
- package/dist/esm/api/types/OrderLimitedForProvider1.d.mts +1 -1
- package/dist/esm/api/types/OrderTaskGroupExecutorDetails1.d.mts +1 -1
- package/dist/esm/api/types/OrderTemplateNew1.d.mts +1 -1
- package/dist/esm/api/types/OrderTemplateNewCore1.d.mts +1 -1
- package/dist/esm/api/types/OrderTemplateNewExpanded1.d.mts +2 -1
- package/dist/esm/api/types/TaskArtifactTypeEnum1.d.mts +2 -1
- package/dist/esm/api/types/TaskArtifactTypeEnum1.mjs +1 -0
- package/dist/esm/api/types/UnprocessableEntityErrorBody.d.mts +5 -0
- package/dist/esm/api/types/UnprocessableEntityErrorBody.mjs +4 -0
- package/dist/esm/api/types/index.d.mts +8 -0
- package/dist/esm/api/types/index.mjs +8 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +90 -19
- /package/dist/cjs/api/resources/{shipping/resources/orders/client/requests/OrdersUpdateLabelReq.js → operations/resources/operationsTasks/client/requests/OperationsTasksTypeaheadV1Request.js} +0 -0
- /package/dist/esm/api/resources/{shipping/resources/orders/client/requests/OrdersUpdateLabelReq.mjs → operations/resources/operationsTasks/client/requests/OperationsTasksTypeaheadV1Request.mjs} +0 -0
package/dist/cjs/Client.js
CHANGED
|
@@ -60,8 +60,8 @@ class ChrtClient {
|
|
|
60
60
|
this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
|
|
61
61
|
"X-Fern-Language": "JavaScript",
|
|
62
62
|
"X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
|
|
63
|
-
"X-Fern-SDK-Version": "1.
|
|
64
|
-
"User-Agent": "@chrt-inc/typescript-sdk/1.
|
|
63
|
+
"X-Fern-SDK-Version": "1.997.0",
|
|
64
|
+
"User-Agent": "@chrt-inc/typescript-sdk/1.997.0",
|
|
65
65
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
66
66
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
67
67
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as errors from "../../errors/index.js";
|
|
5
|
+
import * as Chrt from "../index.js";
|
|
6
|
+
import * as core from "../../core/index.js";
|
|
7
|
+
export declare class ForbiddenError extends errors.ChrtError {
|
|
8
|
+
constructor(body: Chrt.FileDownloadRequestErrorRes, rawResponse?: core.RawResponse);
|
|
9
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.ForbiddenError = void 0;
|
|
40
|
+
const errors = __importStar(require("../../errors/index.js"));
|
|
41
|
+
class ForbiddenError extends errors.ChrtError {
|
|
42
|
+
constructor(body, rawResponse) {
|
|
43
|
+
super({
|
|
44
|
+
message: "ForbiddenError",
|
|
45
|
+
statusCode: 403,
|
|
46
|
+
body: body,
|
|
47
|
+
rawResponse: rawResponse,
|
|
48
|
+
});
|
|
49
|
+
Object.setPrototypeOf(this, ForbiddenError.prototype);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
exports.ForbiddenError = ForbiddenError;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as errors from "../../errors/index.js";
|
|
5
|
+
import * as Chrt from "../index.js";
|
|
6
|
+
import * as core from "../../core/index.js";
|
|
7
|
+
export declare class LockedError extends errors.ChrtError {
|
|
8
|
+
constructor(body: Chrt.FileDownloadErrorRes, rawResponse?: core.RawResponse);
|
|
9
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.LockedError = void 0;
|
|
40
|
+
const errors = __importStar(require("../../errors/index.js"));
|
|
41
|
+
class LockedError extends errors.ChrtError {
|
|
42
|
+
constructor(body, rawResponse) {
|
|
43
|
+
super({
|
|
44
|
+
message: "LockedError",
|
|
45
|
+
statusCode: 423,
|
|
46
|
+
body: body,
|
|
47
|
+
rawResponse: rawResponse,
|
|
48
|
+
});
|
|
49
|
+
Object.setPrototypeOf(this, LockedError.prototype);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
exports.LockedError = LockedError;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as errors from "../../errors/index.js";
|
|
5
|
+
import * as Chrt from "../index.js";
|
|
6
|
+
import * as core from "../../core/index.js";
|
|
7
|
+
export declare class NotFoundError extends errors.ChrtError {
|
|
8
|
+
constructor(body: Chrt.NotFoundErrorBody, rawResponse?: core.RawResponse);
|
|
9
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.NotFoundError = void 0;
|
|
40
|
+
const errors = __importStar(require("../../errors/index.js"));
|
|
41
|
+
class NotFoundError extends errors.ChrtError {
|
|
42
|
+
constructor(body, rawResponse) {
|
|
43
|
+
super({
|
|
44
|
+
message: "NotFoundError",
|
|
45
|
+
statusCode: 404,
|
|
46
|
+
body: body,
|
|
47
|
+
rawResponse: rawResponse,
|
|
48
|
+
});
|
|
49
|
+
Object.setPrototypeOf(this, NotFoundError.prototype);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
exports.NotFoundError = NotFoundError;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as errors from "../../errors/index.js";
|
|
5
|
+
import * as Chrt from "../index.js";
|
|
6
|
+
import * as core from "../../core/index.js";
|
|
7
|
+
export declare class ServiceUnavailableError extends errors.ChrtError {
|
|
8
|
+
constructor(body: Chrt.FileDownloadErrorRes, rawResponse?: core.RawResponse);
|
|
9
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.ServiceUnavailableError = void 0;
|
|
40
|
+
const errors = __importStar(require("../../errors/index.js"));
|
|
41
|
+
class ServiceUnavailableError extends errors.ChrtError {
|
|
42
|
+
constructor(body, rawResponse) {
|
|
43
|
+
super({
|
|
44
|
+
message: "ServiceUnavailableError",
|
|
45
|
+
statusCode: 503,
|
|
46
|
+
body: body,
|
|
47
|
+
rawResponse: rawResponse,
|
|
48
|
+
});
|
|
49
|
+
Object.setPrototypeOf(this, ServiceUnavailableError.prototype);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
exports.ServiceUnavailableError = ServiceUnavailableError;
|
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as errors from "../../errors/index.js";
|
|
5
|
-
import * as Chrt from "../index.js";
|
|
6
5
|
import * as core from "../../core/index.js";
|
|
7
6
|
export declare class UnprocessableEntityError extends errors.ChrtError {
|
|
8
|
-
constructor(body
|
|
7
|
+
constructor(body?: unknown, rawResponse?: core.RawResponse);
|
|
9
8
|
}
|
|
@@ -15,3 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./UnprocessableEntityError.js"), exports);
|
|
18
|
+
__exportStar(require("./ForbiddenError.js"), exports);
|
|
19
|
+
__exportStar(require("./NotFoundError.js"), exports);
|
|
20
|
+
__exportStar(require("./LockedError.js"), exports);
|
|
21
|
+
__exportStar(require("./ServiceUnavailableError.js"), exports);
|
|
@@ -71,7 +71,7 @@ export declare class Orders {
|
|
|
71
71
|
* filter_coordinator_shipper_account_ids: ["filter_coordinator_shipper_account_ids"],
|
|
72
72
|
* filter_executor_org_id: "filter_executor_org_id",
|
|
73
73
|
* filter_off_chrt_executor_org_data_id: "filter_off_chrt_executor_org_data_id",
|
|
74
|
-
*
|
|
74
|
+
* filter_coordinator_labels: ["filter_coordinator_labels"],
|
|
75
75
|
* filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
76
76
|
* filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
77
77
|
* filter_staged_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
@@ -163,7 +163,7 @@ class Orders {
|
|
|
163
163
|
* filter_coordinator_shipper_account_ids: ["filter_coordinator_shipper_account_ids"],
|
|
164
164
|
* filter_executor_org_id: "filter_executor_org_id",
|
|
165
165
|
* filter_off_chrt_executor_org_data_id: "filter_off_chrt_executor_org_data_id",
|
|
166
|
-
*
|
|
166
|
+
* filter_coordinator_labels: ["filter_coordinator_labels"],
|
|
167
167
|
* filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
168
168
|
* filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
169
169
|
* filter_staged_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
@@ -184,7 +184,7 @@ class Orders {
|
|
|
184
184
|
__listExpandedForCoordinatorOperatorsV1() {
|
|
185
185
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
186
186
|
var _a, _b, _c, _d, _e, _f;
|
|
187
|
-
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, filter_status: filterStatus, filter_awb_number: filterAwbNumber, filter_shipper_org_id: filterShipperOrgId, filter_off_chrt_shipper_org_data_id: filterOffChrtShipperOrgDataId, filter_coordinator_shipper_account_ids: filterCoordinatorShipperAccountIds, filter_executor_org_id: filterExecutorOrgId, filter_off_chrt_executor_org_data_id: filterOffChrtExecutorOrgDataId,
|
|
187
|
+
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, filter_status: filterStatus, filter_awb_number: filterAwbNumber, filter_shipper_org_id: filterShipperOrgId, filter_off_chrt_shipper_org_data_id: filterOffChrtShipperOrgDataId, filter_coordinator_shipper_account_ids: filterCoordinatorShipperAccountIds, filter_executor_org_id: filterExecutorOrgId, filter_off_chrt_executor_org_data_id: filterOffChrtExecutorOrgDataId, filter_coordinator_labels: filterCoordinatorLabels, filter_draft_started_at_timestamp_gte: filterDraftStartedAtTimestampGte, filter_draft_started_at_timestamp_lte: filterDraftStartedAtTimestampLte, filter_staged_at_timestamp_gte: filterStagedAtTimestampGte, filter_staged_at_timestamp_lte: filterStagedAtTimestampLte, filter_in_progress_at_timestamp_gte: filterInProgressAtTimestampGte, filter_in_progress_at_timestamp_lte: filterInProgressAtTimestampLte, filter_completed_at_timestamp_gte: filterCompletedAtTimestampGte, filter_completed_at_timestamp_lte: filterCompletedAtTimestampLte, filter_cancelled_at_timestamp_gte: filterCancelledAtTimestampGte, filter_cancelled_at_timestamp_lte: filterCancelledAtTimestampLte, filter_exception_at_timestamp_gte: filterExceptionAtTimestampGte, filter_exception_at_timestamp_lte: filterExceptionAtTimestampLte } = request, _body = __rest(request, ["sort_by", "sort_order", "page", "page_size", "search", "filter_status", "filter_awb_number", "filter_shipper_org_id", "filter_off_chrt_shipper_org_data_id", "filter_coordinator_shipper_account_ids", "filter_executor_org_id", "filter_off_chrt_executor_org_data_id", "filter_coordinator_labels", "filter_draft_started_at_timestamp_gte", "filter_draft_started_at_timestamp_lte", "filter_staged_at_timestamp_gte", "filter_staged_at_timestamp_lte", "filter_in_progress_at_timestamp_gte", "filter_in_progress_at_timestamp_lte", "filter_completed_at_timestamp_gte", "filter_completed_at_timestamp_lte", "filter_cancelled_at_timestamp_gte", "filter_cancelled_at_timestamp_lte", "filter_exception_at_timestamp_gte", "filter_exception_at_timestamp_lte"]);
|
|
188
188
|
const _queryParams = {};
|
|
189
189
|
if (sortBy !== undefined) {
|
|
190
190
|
_queryParams["sort_by"] = sortBy;
|
|
@@ -232,8 +232,13 @@ class Orders {
|
|
|
232
232
|
if (filterOffChrtExecutorOrgDataId !== undefined) {
|
|
233
233
|
_queryParams["filter_off_chrt_executor_org_data_id"] = filterOffChrtExecutorOrgDataId;
|
|
234
234
|
}
|
|
235
|
-
if (
|
|
236
|
-
|
|
235
|
+
if (filterCoordinatorLabels !== undefined) {
|
|
236
|
+
if (Array.isArray(filterCoordinatorLabels)) {
|
|
237
|
+
_queryParams["filter_coordinator_labels"] = filterCoordinatorLabels.map((item) => item);
|
|
238
|
+
}
|
|
239
|
+
else {
|
|
240
|
+
_queryParams["filter_coordinator_labels"] = filterCoordinatorLabels;
|
|
241
|
+
}
|
|
237
242
|
}
|
|
238
243
|
if (filterDraftStartedAtTimestampGte !== undefined) {
|
|
239
244
|
_queryParams["filter_draft_started_at_timestamp_gte"] = filterDraftStartedAtTimestampGte;
|
|
@@ -17,7 +17,7 @@ import * as Chrt from "../../../../../../index.js";
|
|
|
17
17
|
* filter_coordinator_shipper_account_ids: ["filter_coordinator_shipper_account_ids"],
|
|
18
18
|
* filter_executor_org_id: "filter_executor_org_id",
|
|
19
19
|
* filter_off_chrt_executor_org_data_id: "filter_off_chrt_executor_org_data_id",
|
|
20
|
-
*
|
|
20
|
+
* filter_coordinator_labels: ["filter_coordinator_labels"],
|
|
21
21
|
* filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
22
22
|
* filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
23
23
|
* filter_staged_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
@@ -55,8 +55,8 @@ export interface OrderBillingExpandedListReq {
|
|
|
55
55
|
filter_executor_org_id?: string | null;
|
|
56
56
|
/** Filter by an off-CHRT executor. */
|
|
57
57
|
filter_off_chrt_executor_org_data_id?: string | null;
|
|
58
|
-
/** Filter by
|
|
59
|
-
|
|
58
|
+
/** Filter by any of the supplied coordinator labels (exact match). */
|
|
59
|
+
filter_coordinator_labels?: (string | null) | (string | null)[];
|
|
60
60
|
filter_draft_started_at_timestamp_gte?: string | null;
|
|
61
61
|
filter_draft_started_at_timestamp_lte?: string | null;
|
|
62
62
|
filter_staged_at_timestamp_gte?: string | null;
|
|
@@ -141,7 +141,7 @@ export declare class BidThreads {
|
|
|
141
141
|
listForBidderV1(request?: Chrt.listing.BidThreadsListForBidderV1Request, requestOptions?: BidThreads.RequestOptions): core.HttpResponsePromise<Chrt.BidThreadListRes>;
|
|
142
142
|
private __listForBidderV1;
|
|
143
143
|
/**
|
|
144
|
-
* Lists
|
|
144
|
+
* Lists bid threads with bidder driver/provider profiles, filtering, sorting, and pagination for the listing's owner. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (BidThreadForListingListRes)
|
|
145
145
|
*
|
|
146
146
|
* @param {string} listingId
|
|
147
147
|
* @param {Chrt.listing.BidThreadsListForListingV1Request} request
|
|
@@ -165,7 +165,7 @@ export declare class BidThreads {
|
|
|
165
165
|
* filter_status_changed_at_timestamp_lte: "2024-01-15T09:30:00Z"
|
|
166
166
|
* })
|
|
167
167
|
*/
|
|
168
|
-
listForListingV1(listingId: string, request?: Chrt.listing.BidThreadsListForListingV1Request, requestOptions?: BidThreads.RequestOptions): core.HttpResponsePromise<Chrt.
|
|
168
|
+
listForListingV1(listingId: string, request?: Chrt.listing.BidThreadsListForListingV1Request, requestOptions?: BidThreads.RequestOptions): core.HttpResponsePromise<Chrt.BidThreadForListingListRes>;
|
|
169
169
|
private __listForListingV1;
|
|
170
170
|
/**
|
|
171
171
|
* Withdraws the bidder's offer and closes its thread. | authz: allowed_org_types=[provider], min_org_role=member | (BidAppendReq) -> (bool)
|
|
@@ -543,7 +543,7 @@ class BidThreads {
|
|
|
543
543
|
});
|
|
544
544
|
}
|
|
545
545
|
/**
|
|
546
|
-
* Lists
|
|
546
|
+
* Lists bid threads with bidder driver/provider profiles, filtering, sorting, and pagination for the listing's owner. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (BidThreadForListingListRes)
|
|
547
547
|
*
|
|
548
548
|
* @param {string} listingId
|
|
549
549
|
* @param {Chrt.listing.BidThreadsListForListingV1Request} request
|
|
@@ -94,7 +94,7 @@ export declare class OperationsTasks {
|
|
|
94
94
|
* filter_order_ids: ["filter_order_ids"],
|
|
95
95
|
* filter_order_short_id: "filter_order_short_id",
|
|
96
96
|
* filter_order_off_chrt_reference_id: "filter_order_off_chrt_reference_id",
|
|
97
|
-
*
|
|
97
|
+
* filter_department_ids: ["filter_department_ids"],
|
|
98
98
|
* filter_task_type: ["review_order_details"],
|
|
99
99
|
* filter_status: ["not_started"],
|
|
100
100
|
* filter_assigned_user_id: "filter_assigned_user_id",
|
|
@@ -124,7 +124,7 @@ export declare class OperationsTasks {
|
|
|
124
124
|
* filter_order_ids: ["filter_order_ids"],
|
|
125
125
|
* filter_order_short_id: "filter_order_short_id",
|
|
126
126
|
* filter_order_off_chrt_reference_id: "filter_order_off_chrt_reference_id",
|
|
127
|
-
*
|
|
127
|
+
* filter_department_ids: ["filter_department_ids"],
|
|
128
128
|
* filter_task_type: ["review_order_details"],
|
|
129
129
|
* filter_status: ["not_started"],
|
|
130
130
|
* filter_assigned_user_id: "filter_assigned_user_id",
|
|
@@ -170,6 +170,22 @@ export declare class OperationsTasks {
|
|
|
170
170
|
*/
|
|
171
171
|
setStatusV1(request: Chrt.operations.OperationsTasksSetStatusReq1, requestOptions?: OperationsTasks.RequestOptions): core.HttpResponsePromise<Chrt.OperationsTasksStatusUpdateRes1>;
|
|
172
172
|
private __setStatusV1;
|
|
173
|
+
/**
|
|
174
|
+
* Returns distinct entry_tag values matching the query via case-insensitive regex. Searches operations tasks within the caller's organization. | authz: min_org_role=operator | () -> (list[OperationsTaskTypeaheadResult])
|
|
175
|
+
*
|
|
176
|
+
* @param {Chrt.operations.OperationsTasksTypeaheadV1Request} request
|
|
177
|
+
* @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
|
|
178
|
+
*
|
|
179
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
180
|
+
*
|
|
181
|
+
* @example
|
|
182
|
+
* await client.operations.operationsTasks.typeaheadV1({
|
|
183
|
+
* query: "query",
|
|
184
|
+
* limit: 1
|
|
185
|
+
* })
|
|
186
|
+
*/
|
|
187
|
+
typeaheadV1(request: Chrt.operations.OperationsTasksTypeaheadV1Request, requestOptions?: OperationsTasks.RequestOptions): core.HttpResponsePromise<Chrt.OperationsTaskTypeaheadResult[]>;
|
|
188
|
+
private __typeaheadV1;
|
|
173
189
|
/**
|
|
174
190
|
* Assigns or clears one department on selected tasks across orders. Missing and other-org tasks are skipped. | authz: min_org_role=operator | (OperationsTasksUpdateDepartmentManyReq) -> (OperationsTasksUpdateDepartmentManyRes)
|
|
175
191
|
*
|
|
@@ -231,7 +247,7 @@ export declare class OperationsTasks {
|
|
|
231
247
|
deleteV1(taskId: string, requestOptions?: OperationsTasks.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
232
248
|
private __deleteV1;
|
|
233
249
|
/**
|
|
234
|
-
* Updates editable fields (task_type, title, description, deadline_timestamp, assigned_user_ids) on an OperationsTask. | authz: min_org_role=operator | (OperationsTaskClientUpdate1) -> (bool)
|
|
250
|
+
* Updates editable fields (task_type, title, description, entry_tag, deadline_timestamp, assigned_user_ids, department_id) on an OperationsTask. | authz: min_org_role=operator | (OperationsTaskClientUpdate1) -> (bool)
|
|
235
251
|
*
|
|
236
252
|
* @param {string} taskId
|
|
237
253
|
* @param {Chrt.operations.OperationsTaskClientUpdate1} request
|
|
@@ -266,7 +266,7 @@ class OperationsTasks {
|
|
|
266
266
|
* filter_order_ids: ["filter_order_ids"],
|
|
267
267
|
* filter_order_short_id: "filter_order_short_id",
|
|
268
268
|
* filter_order_off_chrt_reference_id: "filter_order_off_chrt_reference_id",
|
|
269
|
-
*
|
|
269
|
+
* filter_department_ids: ["filter_department_ids"],
|
|
270
270
|
* filter_task_type: ["review_order_details"],
|
|
271
271
|
* filter_status: ["not_started"],
|
|
272
272
|
* filter_assigned_user_id: "filter_assigned_user_id",
|
|
@@ -282,7 +282,7 @@ class OperationsTasks {
|
|
|
282
282
|
__expandedListV1() {
|
|
283
283
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
284
284
|
var _a, _b, _c, _d, _e, _f;
|
|
285
|
-
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, filter_order_ids: filterOrderIds, filter_order_short_id: filterOrderShortId, filter_order_off_chrt_reference_id: filterOrderOffChrtReferenceId,
|
|
285
|
+
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, filter_order_ids: filterOrderIds, filter_order_short_id: filterOrderShortId, filter_order_off_chrt_reference_id: filterOrderOffChrtReferenceId, filter_department_ids: filterDepartmentIds, filter_task_type: filterTaskType, filter_status: filterStatus, filter_assigned_user_id: filterAssignedUserId, filter_source_task_list_id: filterSourceTaskListId, filter_entry_tag: filterEntryTag, filter_deadline_gte: filterDeadlineGte, filter_deadline_lte: filterDeadlineLte, } = request;
|
|
286
286
|
const _queryParams = {};
|
|
287
287
|
if (sortBy !== undefined) {
|
|
288
288
|
_queryParams["sort_by"] = sortBy;
|
|
@@ -313,8 +313,13 @@ class OperationsTasks {
|
|
|
313
313
|
if (filterOrderOffChrtReferenceId !== undefined) {
|
|
314
314
|
_queryParams["filter_order_off_chrt_reference_id"] = filterOrderOffChrtReferenceId;
|
|
315
315
|
}
|
|
316
|
-
if (
|
|
317
|
-
|
|
316
|
+
if (filterDepartmentIds !== undefined) {
|
|
317
|
+
if (Array.isArray(filterDepartmentIds)) {
|
|
318
|
+
_queryParams["filter_department_ids"] = filterDepartmentIds.map((item) => item);
|
|
319
|
+
}
|
|
320
|
+
else {
|
|
321
|
+
_queryParams["filter_department_ids"] = filterDepartmentIds;
|
|
322
|
+
}
|
|
318
323
|
}
|
|
319
324
|
if (filterTaskType !== undefined) {
|
|
320
325
|
if (Array.isArray(filterTaskType)) {
|
|
@@ -407,7 +412,7 @@ class OperationsTasks {
|
|
|
407
412
|
* filter_order_ids: ["filter_order_ids"],
|
|
408
413
|
* filter_order_short_id: "filter_order_short_id",
|
|
409
414
|
* filter_order_off_chrt_reference_id: "filter_order_off_chrt_reference_id",
|
|
410
|
-
*
|
|
415
|
+
* filter_department_ids: ["filter_department_ids"],
|
|
411
416
|
* filter_task_type: ["review_order_details"],
|
|
412
417
|
* filter_status: ["not_started"],
|
|
413
418
|
* filter_assigned_user_id: "filter_assigned_user_id",
|
|
@@ -423,7 +428,7 @@ class OperationsTasks {
|
|
|
423
428
|
__listV1() {
|
|
424
429
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
425
430
|
var _a, _b, _c, _d, _e, _f;
|
|
426
|
-
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, filter_order_ids: filterOrderIds, filter_order_short_id: filterOrderShortId, filter_order_off_chrt_reference_id: filterOrderOffChrtReferenceId,
|
|
431
|
+
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, filter_order_ids: filterOrderIds, filter_order_short_id: filterOrderShortId, filter_order_off_chrt_reference_id: filterOrderOffChrtReferenceId, filter_department_ids: filterDepartmentIds, filter_task_type: filterTaskType, filter_status: filterStatus, filter_assigned_user_id: filterAssignedUserId, filter_source_task_list_id: filterSourceTaskListId, filter_entry_tag: filterEntryTag, filter_deadline_gte: filterDeadlineGte, filter_deadline_lte: filterDeadlineLte, } = request;
|
|
427
432
|
const _queryParams = {};
|
|
428
433
|
if (sortBy !== undefined) {
|
|
429
434
|
_queryParams["sort_by"] = sortBy;
|
|
@@ -454,8 +459,13 @@ class OperationsTasks {
|
|
|
454
459
|
if (filterOrderOffChrtReferenceId !== undefined) {
|
|
455
460
|
_queryParams["filter_order_off_chrt_reference_id"] = filterOrderOffChrtReferenceId;
|
|
456
461
|
}
|
|
457
|
-
if (
|
|
458
|
-
|
|
462
|
+
if (filterDepartmentIds !== undefined) {
|
|
463
|
+
if (Array.isArray(filterDepartmentIds)) {
|
|
464
|
+
_queryParams["filter_department_ids"] = filterDepartmentIds.map((item) => item);
|
|
465
|
+
}
|
|
466
|
+
else {
|
|
467
|
+
_queryParams["filter_department_ids"] = filterDepartmentIds;
|
|
468
|
+
}
|
|
459
469
|
}
|
|
460
470
|
if (filterTaskType !== undefined) {
|
|
461
471
|
if (Array.isArray(filterTaskType)) {
|
|
@@ -665,6 +675,74 @@ class OperationsTasks {
|
|
|
665
675
|
}
|
|
666
676
|
});
|
|
667
677
|
}
|
|
678
|
+
/**
|
|
679
|
+
* Returns distinct entry_tag values matching the query via case-insensitive regex. Searches operations tasks within the caller's organization. | authz: min_org_role=operator | () -> (list[OperationsTaskTypeaheadResult])
|
|
680
|
+
*
|
|
681
|
+
* @param {Chrt.operations.OperationsTasksTypeaheadV1Request} request
|
|
682
|
+
* @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
|
|
683
|
+
*
|
|
684
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
685
|
+
*
|
|
686
|
+
* @example
|
|
687
|
+
* await client.operations.operationsTasks.typeaheadV1({
|
|
688
|
+
* query: "query",
|
|
689
|
+
* limit: 1
|
|
690
|
+
* })
|
|
691
|
+
*/
|
|
692
|
+
typeaheadV1(request, requestOptions) {
|
|
693
|
+
return core.HttpResponsePromise.fromPromise(this.__typeaheadV1(request, requestOptions));
|
|
694
|
+
}
|
|
695
|
+
__typeaheadV1(request, requestOptions) {
|
|
696
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
697
|
+
var _a, _b, _c, _d, _e;
|
|
698
|
+
const { query, limit } = request;
|
|
699
|
+
const _queryParams = {};
|
|
700
|
+
_queryParams["query"] = query;
|
|
701
|
+
if (limit !== undefined) {
|
|
702
|
+
_queryParams["limit"] = (_a = limit === null || limit === void 0 ? void 0 : limit.toString()) !== null && _a !== void 0 ? _a : null;
|
|
703
|
+
}
|
|
704
|
+
let _headers = (0, headers_js_1.mergeHeaders)((_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
705
|
+
const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
|
|
706
|
+
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.ChrtEnvironment.Local, "operations/operations_tasks/typeahead/v1"),
|
|
707
|
+
method: "GET",
|
|
708
|
+
headers: _headers,
|
|
709
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
710
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
711
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
712
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
713
|
+
});
|
|
714
|
+
if (_response.ok) {
|
|
715
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
716
|
+
}
|
|
717
|
+
if (_response.error.reason === "status-code") {
|
|
718
|
+
switch (_response.error.statusCode) {
|
|
719
|
+
case 422:
|
|
720
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
721
|
+
default:
|
|
722
|
+
throw new errors.ChrtError({
|
|
723
|
+
statusCode: _response.error.statusCode,
|
|
724
|
+
body: _response.error.body,
|
|
725
|
+
rawResponse: _response.rawResponse,
|
|
726
|
+
});
|
|
727
|
+
}
|
|
728
|
+
}
|
|
729
|
+
switch (_response.error.reason) {
|
|
730
|
+
case "non-json":
|
|
731
|
+
throw new errors.ChrtError({
|
|
732
|
+
statusCode: _response.error.statusCode,
|
|
733
|
+
body: _response.error.rawBody,
|
|
734
|
+
rawResponse: _response.rawResponse,
|
|
735
|
+
});
|
|
736
|
+
case "timeout":
|
|
737
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /operations/operations_tasks/typeahead/v1.");
|
|
738
|
+
case "unknown":
|
|
739
|
+
throw new errors.ChrtError({
|
|
740
|
+
message: _response.error.errorMessage,
|
|
741
|
+
rawResponse: _response.rawResponse,
|
|
742
|
+
});
|
|
743
|
+
}
|
|
744
|
+
});
|
|
745
|
+
}
|
|
668
746
|
/**
|
|
669
747
|
* Assigns or clears one department on selected tasks across orders. Missing and other-org tasks are skipped. | authz: min_org_role=operator | (OperationsTasksUpdateDepartmentManyReq) -> (OperationsTasksUpdateDepartmentManyRes)
|
|
670
748
|
*
|
|
@@ -919,7 +997,7 @@ class OperationsTasks {
|
|
|
919
997
|
});
|
|
920
998
|
}
|
|
921
999
|
/**
|
|
922
|
-
* Updates editable fields (task_type, title, description, deadline_timestamp, assigned_user_ids) on an OperationsTask. | authz: min_org_role=operator | (OperationsTaskClientUpdate1) -> (bool)
|
|
1000
|
+
* Updates editable fields (task_type, title, description, entry_tag, deadline_timestamp, assigned_user_ids, department_id) on an OperationsTask. | authz: min_org_role=operator | (OperationsTaskClientUpdate1) -> (bool)
|
|
923
1001
|
*
|
|
924
1002
|
* @param {string} taskId
|
|
925
1003
|
* @param {Chrt.operations.OperationsTaskClientUpdate1} request
|
|
@@ -9,7 +9,11 @@ import * as Chrt from "../../../../../../index.js";
|
|
|
9
9
|
export interface OperationsTaskClientUpdate1 {
|
|
10
10
|
assigned_user_ids?: string[];
|
|
11
11
|
deadline_timestamp?: string | null;
|
|
12
|
+
department_id?: string | null;
|
|
13
|
+
department_id__set_to_None?: boolean;
|
|
12
14
|
description?: string | null;
|
|
15
|
+
entry_tag?: string | null;
|
|
16
|
+
entry_tag__set_to_None?: boolean;
|
|
13
17
|
task_type?: Chrt.OperationsTaskTypeEnum | null;
|
|
14
18
|
title?: string | null;
|
|
15
19
|
}
|
|
@@ -13,7 +13,7 @@ import * as Chrt from "../../../../../../index.js";
|
|
|
13
13
|
* filter_order_ids: ["filter_order_ids"],
|
|
14
14
|
* filter_order_short_id: "filter_order_short_id",
|
|
15
15
|
* filter_order_off_chrt_reference_id: "filter_order_off_chrt_reference_id",
|
|
16
|
-
*
|
|
16
|
+
* filter_department_ids: ["filter_department_ids"],
|
|
17
17
|
* filter_task_type: ["review_order_details"],
|
|
18
18
|
* filter_status: ["not_started"],
|
|
19
19
|
* filter_assigned_user_id: "filter_assigned_user_id",
|
|
@@ -38,8 +38,8 @@ export interface OperationsTasksExpandedListV1Request {
|
|
|
38
38
|
filter_order_short_id?: string | null;
|
|
39
39
|
/** Filter to tasks for this order off-CHRT reference ID */
|
|
40
40
|
filter_order_off_chrt_reference_id?: string | null;
|
|
41
|
-
/** Filter to tasks routed to
|
|
42
|
-
|
|
41
|
+
/** Filter to tasks routed to any of these departments (desk queues) */
|
|
42
|
+
filter_department_ids?: (string | null) | (string | null)[];
|
|
43
43
|
/** Filter by task type(s). Defaults to all types. */
|
|
44
44
|
filter_task_type?: (Chrt.OperationsTaskTypeEnum | null) | (Chrt.OperationsTaskTypeEnum | null)[];
|
|
45
45
|
/** Filter by status(es). Defaults to all statuses. */
|