@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
|
@@ -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 OperationsTasksListV1Request {
|
|
|
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. */
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* query: "query",
|
|
8
|
+
* limit: 1
|
|
9
|
+
* }
|
|
10
|
+
*/
|
|
11
|
+
export interface OperationsTasksTypeaheadV1Request {
|
|
12
|
+
/** Typeahead search query */
|
|
13
|
+
query: string;
|
|
14
|
+
/** Max results per field */
|
|
15
|
+
limit?: number | null;
|
|
16
|
+
}
|
package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export { type OperationsTasksExpandedListV1Request } from "./OperationsTasksExpa
|
|
|
4
4
|
export { type OperationsTasksListV1Request } from "./OperationsTasksListV1Request.js";
|
|
5
5
|
export { type OperationsTasksSetDeadlineTimestampsReq1 } from "./OperationsTasksSetDeadlineTimestampsReq1.js";
|
|
6
6
|
export { type OperationsTasksSetStatusReq1 } from "./OperationsTasksSetStatusReq1.js";
|
|
7
|
+
export { type OperationsTasksTypeaheadV1Request } from "./OperationsTasksTypeaheadV1Request.js";
|
|
7
8
|
export { type OperationsTasksUpdateDepartmentManyReq } from "./OperationsTasksUpdateDepartmentManyReq.js";
|
|
8
9
|
export { type OperationsTaskClientCreate1 } from "./OperationsTaskClientCreate1.js";
|
|
9
10
|
export { type OperationsTaskClientUpdate1 } from "./OperationsTaskClientUpdate1.js";
|
|
@@ -31,7 +31,7 @@ export declare class S3Objects {
|
|
|
31
31
|
protected readonly _options: S3Objects.Options;
|
|
32
32
|
constructor(_options?: S3Objects.Options);
|
|
33
33
|
/**
|
|
34
|
-
* Uploads a file to the caller's OrderInternalMessages for this order (lazy-creates the messages doc).
|
|
34
|
+
* Uploads a file to the caller's OrderInternalMessages for this order (lazy-creates the messages doc). Retains uploaded files; previews require a clean malware scan. | authz_personas=[coordinator_org_operators, order_executor_org_operators] | (UploadFile) -> (OrderInternalMessageS3ObjectMetadata1)
|
|
35
35
|
*
|
|
36
36
|
* @param {string} orderId
|
|
37
37
|
* @param {Chrt.operations.orderInternalMessages.BodyPostOrderInternalMessagesS3ObjectsAddV1} request
|
|
@@ -75,7 +75,11 @@ export declare class S3Objects {
|
|
|
75
75
|
private __getS3ObjectMetadataV1;
|
|
76
76
|
/**
|
|
77
77
|
* Streams an order internal messages S3 object file from storage. | authz: min_org_role=operator | () -> (binary)
|
|
78
|
+
* @throws {@link Chrt.ForbiddenError}
|
|
79
|
+
* @throws {@link Chrt.NotFoundError}
|
|
78
80
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
81
|
+
* @throws {@link Chrt.LockedError}
|
|
82
|
+
* @throws {@link Chrt.ServiceUnavailableError}
|
|
79
83
|
*/
|
|
80
84
|
getV1(orderInternalMessageS3ObjectMetadataId: string, requestOptions?: S3Objects.RequestOptions): core.HttpResponsePromise<core.BinaryResponse>;
|
|
81
85
|
private __getV1;
|
|
@@ -56,7 +56,7 @@ class S3Objects {
|
|
|
56
56
|
this._options = _options;
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
|
-
* Uploads a file to the caller's OrderInternalMessages for this order (lazy-creates the messages doc).
|
|
59
|
+
* Uploads a file to the caller's OrderInternalMessages for this order (lazy-creates the messages doc). Retains uploaded files; previews require a clean malware scan. | authz_personas=[coordinator_org_operators, order_executor_org_operators] | (UploadFile) -> (OrderInternalMessageS3ObjectMetadata1)
|
|
60
60
|
*
|
|
61
61
|
* @param {string} orderId
|
|
62
62
|
* @param {Chrt.operations.orderInternalMessages.BodyPostOrderInternalMessagesS3ObjectsAddV1} request
|
|
@@ -250,7 +250,11 @@ class S3Objects {
|
|
|
250
250
|
}
|
|
251
251
|
/**
|
|
252
252
|
* Streams an order internal messages S3 object file from storage. | authz: min_org_role=operator | () -> (binary)
|
|
253
|
+
* @throws {@link Chrt.ForbiddenError}
|
|
254
|
+
* @throws {@link Chrt.NotFoundError}
|
|
253
255
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
256
|
+
* @throws {@link Chrt.LockedError}
|
|
257
|
+
* @throws {@link Chrt.ServiceUnavailableError}
|
|
254
258
|
*/
|
|
255
259
|
getV1(orderInternalMessageS3ObjectMetadataId, requestOptions) {
|
|
256
260
|
return core.HttpResponsePromise.fromPromise(this.__getV1(orderInternalMessageS3ObjectMetadataId, requestOptions));
|
|
@@ -274,8 +278,16 @@ class S3Objects {
|
|
|
274
278
|
}
|
|
275
279
|
if (_response.error.reason === "status-code") {
|
|
276
280
|
switch (_response.error.statusCode) {
|
|
281
|
+
case 403:
|
|
282
|
+
throw new Chrt.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
283
|
+
case 404:
|
|
284
|
+
throw new Chrt.NotFoundError(_response.error.body, _response.rawResponse);
|
|
277
285
|
case 422:
|
|
278
286
|
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
287
|
+
case 423:
|
|
288
|
+
throw new Chrt.LockedError(_response.error.body, _response.rawResponse);
|
|
289
|
+
case 503:
|
|
290
|
+
throw new Chrt.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
279
291
|
default:
|
|
280
292
|
throw new errors.ChrtError({
|
|
281
293
|
statusCode: _response.error.statusCode,
|
|
@@ -31,7 +31,7 @@ export declare class S3Object {
|
|
|
31
31
|
protected readonly _options: S3Object.Options;
|
|
32
32
|
constructor(_options?: S3Object.Options);
|
|
33
33
|
/**
|
|
34
|
-
* Uploads a file to an organization compliance document.
|
|
34
|
+
* Uploads a file to an organization compliance document. Retains uploaded files; previews require a clean malware scan. | authz: allowed_org_types=[provider], min_org_role=administrator | (UploadFile) -> (OrgComplianceDocumentS3ObjectMetadata1)
|
|
35
35
|
*
|
|
36
36
|
* @param {string} orgComplianceDocumentId
|
|
37
37
|
* @param {Chrt.orgs.complianceDocuments.BodyPostOrgComplianceDocumentsS3ObjectAddV1} request
|
|
@@ -75,7 +75,11 @@ export declare class S3Object {
|
|
|
75
75
|
private __getS3ObjectMetadataV1;
|
|
76
76
|
/**
|
|
77
77
|
* Streams an organization compliance document S3 object file from storage. | authz: allowed_org_types=[provider], min_org_role=administrator | () -> (binary)
|
|
78
|
+
* @throws {@link Chrt.ForbiddenError}
|
|
79
|
+
* @throws {@link Chrt.NotFoundError}
|
|
78
80
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
81
|
+
* @throws {@link Chrt.LockedError}
|
|
82
|
+
* @throws {@link Chrt.ServiceUnavailableError}
|
|
79
83
|
*/
|
|
80
84
|
getV1(orgComplianceDocumentS3ObjectMetadataId: string, requestOptions?: S3Object.RequestOptions): core.HttpResponsePromise<core.BinaryResponse>;
|
|
81
85
|
private __getV1;
|
|
@@ -56,7 +56,7 @@ class S3Object {
|
|
|
56
56
|
this._options = _options;
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
|
-
* Uploads a file to an organization compliance document.
|
|
59
|
+
* Uploads a file to an organization compliance document. Retains uploaded files; previews require a clean malware scan. | authz: allowed_org_types=[provider], min_org_role=administrator | (UploadFile) -> (OrgComplianceDocumentS3ObjectMetadata1)
|
|
60
60
|
*
|
|
61
61
|
* @param {string} orgComplianceDocumentId
|
|
62
62
|
* @param {Chrt.orgs.complianceDocuments.BodyPostOrgComplianceDocumentsS3ObjectAddV1} request
|
|
@@ -250,7 +250,11 @@ class S3Object {
|
|
|
250
250
|
}
|
|
251
251
|
/**
|
|
252
252
|
* Streams an organization compliance document S3 object file from storage. | authz: allowed_org_types=[provider], min_org_role=administrator | () -> (binary)
|
|
253
|
+
* @throws {@link Chrt.ForbiddenError}
|
|
254
|
+
* @throws {@link Chrt.NotFoundError}
|
|
253
255
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
256
|
+
* @throws {@link Chrt.LockedError}
|
|
257
|
+
* @throws {@link Chrt.ServiceUnavailableError}
|
|
254
258
|
*/
|
|
255
259
|
getV1(orgComplianceDocumentS3ObjectMetadataId, requestOptions) {
|
|
256
260
|
return core.HttpResponsePromise.fromPromise(this.__getV1(orgComplianceDocumentS3ObjectMetadataId, requestOptions));
|
|
@@ -274,8 +278,16 @@ class S3Object {
|
|
|
274
278
|
}
|
|
275
279
|
if (_response.error.reason === "status-code") {
|
|
276
280
|
switch (_response.error.statusCode) {
|
|
281
|
+
case 403:
|
|
282
|
+
throw new Chrt.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
283
|
+
case 404:
|
|
284
|
+
throw new Chrt.NotFoundError(_response.error.body, _response.rawResponse);
|
|
277
285
|
case 422:
|
|
278
286
|
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
287
|
+
case 423:
|
|
288
|
+
throw new Chrt.LockedError(_response.error.body, _response.rawResponse);
|
|
289
|
+
case 503:
|
|
290
|
+
throw new Chrt.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
279
291
|
default:
|
|
280
292
|
throw new errors.ChrtError({
|
|
281
293
|
statusCode: _response.error.statusCode,
|
|
@@ -96,6 +96,9 @@ export declare class Drivers {
|
|
|
96
96
|
* page: 1,
|
|
97
97
|
* page_size: 1,
|
|
98
98
|
* search: "search",
|
|
99
|
+
* filter_waiting: true,
|
|
100
|
+
* filter_auto_assign_enabled: true,
|
|
101
|
+
* filter_vehicle_type: ["sedan"],
|
|
99
102
|
* filter_by_driver_id: "filter_by_driver_id",
|
|
100
103
|
* filter_archived: true,
|
|
101
104
|
* filter_available_according_to_driver: true,
|
|
@@ -316,6 +316,9 @@ class Drivers {
|
|
|
316
316
|
* page: 1,
|
|
317
317
|
* page_size: 1,
|
|
318
318
|
* search: "search",
|
|
319
|
+
* filter_waiting: true,
|
|
320
|
+
* filter_auto_assign_enabled: true,
|
|
321
|
+
* filter_vehicle_type: ["sedan"],
|
|
319
322
|
* filter_by_driver_id: "filter_by_driver_id",
|
|
320
323
|
* filter_archived: true,
|
|
321
324
|
* filter_available_according_to_driver: true,
|
|
@@ -328,8 +331,8 @@ class Drivers {
|
|
|
328
331
|
}
|
|
329
332
|
__listV1() {
|
|
330
333
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
331
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
332
|
-
const { sort_order: sortOrder, page, page_size: pageSize, search, filter_by_driver_id: filterByDriverId, filter_archived: filterArchived, filter_available_according_to_driver: filterAvailableAccordingToDriver, filter_available_according_to_operators: filterAvailableAccordingToOperators, filter_status: filterStatus, } = request;
|
|
334
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
335
|
+
const { sort_order: sortOrder, page, page_size: pageSize, search, filter_waiting: filterWaiting, filter_auto_assign_enabled: filterAutoAssignEnabled, filter_vehicle_type: filterVehicleType, filter_by_driver_id: filterByDriverId, filter_archived: filterArchived, filter_available_according_to_driver: filterAvailableAccordingToDriver, filter_available_according_to_operators: filterAvailableAccordingToOperators, filter_status: filterStatus, } = request;
|
|
333
336
|
const _queryParams = {};
|
|
334
337
|
if (sortOrder !== undefined) {
|
|
335
338
|
_queryParams["sort_order"] = sortOrder;
|
|
@@ -343,18 +346,32 @@ class Drivers {
|
|
|
343
346
|
if (search !== undefined) {
|
|
344
347
|
_queryParams["search"] = search;
|
|
345
348
|
}
|
|
349
|
+
if (filterWaiting !== undefined) {
|
|
350
|
+
_queryParams["filter_waiting"] = (_c = filterWaiting === null || filterWaiting === void 0 ? void 0 : filterWaiting.toString()) !== null && _c !== void 0 ? _c : null;
|
|
351
|
+
}
|
|
352
|
+
if (filterAutoAssignEnabled !== undefined) {
|
|
353
|
+
_queryParams["filter_auto_assign_enabled"] = (_d = filterAutoAssignEnabled === null || filterAutoAssignEnabled === void 0 ? void 0 : filterAutoAssignEnabled.toString()) !== null && _d !== void 0 ? _d : null;
|
|
354
|
+
}
|
|
355
|
+
if (filterVehicleType !== undefined) {
|
|
356
|
+
if (Array.isArray(filterVehicleType)) {
|
|
357
|
+
_queryParams["filter_vehicle_type"] = filterVehicleType.map((item) => item);
|
|
358
|
+
}
|
|
359
|
+
else {
|
|
360
|
+
_queryParams["filter_vehicle_type"] = filterVehicleType;
|
|
361
|
+
}
|
|
362
|
+
}
|
|
346
363
|
if (filterByDriverId !== undefined) {
|
|
347
364
|
_queryParams["filter_by_driver_id"] = filterByDriverId;
|
|
348
365
|
}
|
|
349
366
|
if (filterArchived !== undefined) {
|
|
350
|
-
_queryParams["filter_archived"] = (
|
|
367
|
+
_queryParams["filter_archived"] = (_e = filterArchived === null || filterArchived === void 0 ? void 0 : filterArchived.toString()) !== null && _e !== void 0 ? _e : null;
|
|
351
368
|
}
|
|
352
369
|
if (filterAvailableAccordingToDriver !== undefined) {
|
|
353
|
-
_queryParams["filter_available_according_to_driver"] = (
|
|
370
|
+
_queryParams["filter_available_according_to_driver"] = (_f = filterAvailableAccordingToDriver === null || filterAvailableAccordingToDriver === void 0 ? void 0 : filterAvailableAccordingToDriver.toString()) !== null && _f !== void 0 ? _f : null;
|
|
354
371
|
}
|
|
355
372
|
if (filterAvailableAccordingToOperators !== undefined) {
|
|
356
373
|
_queryParams["filter_available_according_to_operators"] =
|
|
357
|
-
(
|
|
374
|
+
(_g = filterAvailableAccordingToOperators === null || filterAvailableAccordingToOperators === void 0 ? void 0 : filterAvailableAccordingToOperators.toString()) !== null && _g !== void 0 ? _g : null;
|
|
358
375
|
}
|
|
359
376
|
if (filterStatus !== undefined) {
|
|
360
377
|
if (Array.isArray(filterStatus)) {
|
|
@@ -364,9 +381,9 @@ class Drivers {
|
|
|
364
381
|
_queryParams["filter_status"] = filterStatus;
|
|
365
382
|
}
|
|
366
383
|
}
|
|
367
|
-
let _headers = (0, headers_js_1.mergeHeaders)((
|
|
368
|
-
const _response = yield ((
|
|
369
|
-
url: core.url.join((
|
|
384
|
+
let _headers = (0, headers_js_1.mergeHeaders)((_h = this._options) === null || _h === void 0 ? void 0 : _h.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
385
|
+
const _response = yield ((_j = this._options.fetcher) !== null && _j !== void 0 ? _j : core.fetcher)({
|
|
386
|
+
url: core.url.join((_l = (_k = (yield core.Supplier.get(this._options.baseUrl))) !== null && _k !== void 0 ? _k : (yield core.Supplier.get(this._options.environment))) !== null && _l !== void 0 ? _l : environments.ChrtEnvironment.Local, "shipping/drivers/list/v1"),
|
|
370
387
|
method: "GET",
|
|
371
388
|
headers: _headers,
|
|
372
389
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
package/dist/cjs/api/resources/shipping/resources/drivers/client/requests/DriversListV1Request.d.ts
CHANGED
|
@@ -9,6 +9,9 @@ import * as Chrt from "../../../../../../index.js";
|
|
|
9
9
|
* page: 1,
|
|
10
10
|
* page_size: 1,
|
|
11
11
|
* search: "search",
|
|
12
|
+
* filter_waiting: true,
|
|
13
|
+
* filter_auto_assign_enabled: true,
|
|
14
|
+
* filter_vehicle_type: ["sedan"],
|
|
12
15
|
* filter_by_driver_id: "filter_by_driver_id",
|
|
13
16
|
* filter_archived: true,
|
|
14
17
|
* filter_available_according_to_driver: true,
|
|
@@ -23,6 +26,12 @@ export interface DriversListV1Request {
|
|
|
23
26
|
page_size?: number | null;
|
|
24
27
|
/** Full-text search query */
|
|
25
28
|
search?: string | null;
|
|
29
|
+
/** Filter by waiting status */
|
|
30
|
+
filter_waiting?: boolean | null;
|
|
31
|
+
/** Filter by automatic assignment consent */
|
|
32
|
+
filter_auto_assign_enabled?: boolean | null;
|
|
33
|
+
/** Filter by any matching vehicle type */
|
|
34
|
+
filter_vehicle_type?: (Chrt.VehicleTypeEnum | null) | (Chrt.VehicleTypeEnum | null)[];
|
|
26
35
|
/** Filter by driver ID */
|
|
27
36
|
filter_by_driver_id?: string | null;
|
|
28
37
|
/** Select archived drivers instead of active drivers */
|
|
@@ -31,7 +31,7 @@ export declare class S3Object {
|
|
|
31
31
|
protected readonly _options: S3Object.Options;
|
|
32
32
|
constructor(_options?: S3Object.Options);
|
|
33
33
|
/**
|
|
34
|
-
* Uploads a file to a driver compliance document.
|
|
34
|
+
* Uploads a file to a driver compliance document. Retains uploaded files; previews require a clean malware scan. | authz: allowed_org_types=[provider], min_org_role=administrator | (UploadFile) -> (DriverComplianceDocumentS3ObjectMetadata1)
|
|
35
35
|
*
|
|
36
36
|
* @param {string} driverComplianceDocumentId
|
|
37
37
|
* @param {Chrt.shipping.drivers.complianceDocuments.BodyPostDriverComplianceDocumentsS3ObjectAddV1} request
|
|
@@ -75,7 +75,11 @@ export declare class S3Object {
|
|
|
75
75
|
private __getS3ObjectMetadataV1;
|
|
76
76
|
/**
|
|
77
77
|
* Streams a driver compliance document S3 object file from storage. | authz: allowed_org_types=[provider], min_org_role=administrator | () -> (binary)
|
|
78
|
+
* @throws {@link Chrt.ForbiddenError}
|
|
79
|
+
* @throws {@link Chrt.NotFoundError}
|
|
78
80
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
81
|
+
* @throws {@link Chrt.LockedError}
|
|
82
|
+
* @throws {@link Chrt.ServiceUnavailableError}
|
|
79
83
|
*/
|
|
80
84
|
getV1(driverComplianceDocumentS3ObjectMetadataId: string, requestOptions?: S3Object.RequestOptions): core.HttpResponsePromise<core.BinaryResponse>;
|
|
81
85
|
private __getV1;
|
|
@@ -56,7 +56,7 @@ class S3Object {
|
|
|
56
56
|
this._options = _options;
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
|
-
* Uploads a file to a driver compliance document.
|
|
59
|
+
* Uploads a file to a driver compliance document. Retains uploaded files; previews require a clean malware scan. | authz: allowed_org_types=[provider], min_org_role=administrator | (UploadFile) -> (DriverComplianceDocumentS3ObjectMetadata1)
|
|
60
60
|
*
|
|
61
61
|
* @param {string} driverComplianceDocumentId
|
|
62
62
|
* @param {Chrt.shipping.drivers.complianceDocuments.BodyPostDriverComplianceDocumentsS3ObjectAddV1} request
|
|
@@ -250,7 +250,11 @@ class S3Object {
|
|
|
250
250
|
}
|
|
251
251
|
/**
|
|
252
252
|
* Streams a driver compliance document S3 object file from storage. | authz: allowed_org_types=[provider], min_org_role=administrator | () -> (binary)
|
|
253
|
+
* @throws {@link Chrt.ForbiddenError}
|
|
254
|
+
* @throws {@link Chrt.NotFoundError}
|
|
253
255
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
256
|
+
* @throws {@link Chrt.LockedError}
|
|
257
|
+
* @throws {@link Chrt.ServiceUnavailableError}
|
|
254
258
|
*/
|
|
255
259
|
getV1(driverComplianceDocumentS3ObjectMetadataId, requestOptions) {
|
|
256
260
|
return core.HttpResponsePromise.fromPromise(this.__getV1(driverComplianceDocumentS3ObjectMetadataId, requestOptions));
|
|
@@ -274,8 +278,16 @@ class S3Object {
|
|
|
274
278
|
}
|
|
275
279
|
if (_response.error.reason === "status-code") {
|
|
276
280
|
switch (_response.error.statusCode) {
|
|
281
|
+
case 403:
|
|
282
|
+
throw new Chrt.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
283
|
+
case 404:
|
|
284
|
+
throw new Chrt.NotFoundError(_response.error.body, _response.rawResponse);
|
|
277
285
|
case 422:
|
|
278
286
|
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
287
|
+
case 423:
|
|
288
|
+
throw new Chrt.LockedError(_response.error.body, _response.rawResponse);
|
|
289
|
+
case 503:
|
|
290
|
+
throw new Chrt.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
279
291
|
default:
|
|
280
292
|
throw new errors.ChrtError({
|
|
281
293
|
statusCode: _response.error.statusCode,
|
|
@@ -88,7 +88,7 @@ export declare class OrderTemplatesNew {
|
|
|
88
88
|
resolveDateparserV1(request: Chrt.shipping.OrderTemplateNewDateparserResolveReq, requestOptions?: OrderTemplatesNew.RequestOptions): core.HttpResponsePromise<Chrt.OrderTemplateNewDateparserResolveRes>;
|
|
89
89
|
private __resolveDateparserV1;
|
|
90
90
|
/**
|
|
91
|
-
* Lists order templates with filtering, sorting, pagination, full-text search, and party/account expansion. | authz: min_org_role=operator | () -> (OrderTemplateNewListRes)
|
|
91
|
+
* Lists order templates with filtering, sorting, pagination, full-text search, and party/account/department expansion. | authz: min_org_role=operator | () -> (OrderTemplateNewListRes)
|
|
92
92
|
*
|
|
93
93
|
* @param {Chrt.shipping.OrderTemplatesNewListV1Request} request
|
|
94
94
|
* @param {OrderTemplatesNew.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -104,7 +104,7 @@ export declare class OrderTemplatesNew {
|
|
|
104
104
|
* search: "search",
|
|
105
105
|
* filter_archived: true,
|
|
106
106
|
* filter_owned_by_user_id: "filter_owned_by_user_id",
|
|
107
|
-
*
|
|
107
|
+
* filter_coordinator_labels: ["filter_coordinator_labels"],
|
|
108
108
|
* filter_executor_org_id: "filter_executor_org_id",
|
|
109
109
|
* filter_off_chrt_executor_org_data_id: "filter_off_chrt_executor_org_data_id",
|
|
110
110
|
* filter_shipper_org_id: "filter_shipper_org_id",
|
|
@@ -268,7 +268,7 @@ class OrderTemplatesNew {
|
|
|
268
268
|
});
|
|
269
269
|
}
|
|
270
270
|
/**
|
|
271
|
-
* Lists order templates with filtering, sorting, pagination, full-text search, and party/account expansion. | authz: min_org_role=operator | () -> (OrderTemplateNewListRes)
|
|
271
|
+
* Lists order templates with filtering, sorting, pagination, full-text search, and party/account/department expansion. | authz: min_org_role=operator | () -> (OrderTemplateNewListRes)
|
|
272
272
|
*
|
|
273
273
|
* @param {Chrt.shipping.OrderTemplatesNewListV1Request} request
|
|
274
274
|
* @param {OrderTemplatesNew.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -284,7 +284,7 @@ class OrderTemplatesNew {
|
|
|
284
284
|
* search: "search",
|
|
285
285
|
* filter_archived: true,
|
|
286
286
|
* filter_owned_by_user_id: "filter_owned_by_user_id",
|
|
287
|
-
*
|
|
287
|
+
* filter_coordinator_labels: ["filter_coordinator_labels"],
|
|
288
288
|
* filter_executor_org_id: "filter_executor_org_id",
|
|
289
289
|
* filter_off_chrt_executor_org_data_id: "filter_off_chrt_executor_org_data_id",
|
|
290
290
|
* filter_shipper_org_id: "filter_shipper_org_id",
|
|
@@ -304,7 +304,7 @@ class OrderTemplatesNew {
|
|
|
304
304
|
__listV1() {
|
|
305
305
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
306
306
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
307
|
-
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, filter_archived: filterArchived, filter_owned_by_user_id: filterOwnedByUserId,
|
|
307
|
+
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, filter_archived: filterArchived, filter_owned_by_user_id: filterOwnedByUserId, filter_coordinator_labels: filterCoordinatorLabels, filter_executor_org_id: filterExecutorOrgId, filter_off_chrt_executor_org_data_id: filterOffChrtExecutorOrgDataId, filter_shipper_org_id: filterShipperOrgId, filter_off_chrt_shipper_org_data_id: filterOffChrtShipperOrgDataId, filter_coordinator_shipper_account_ids: filterCoordinatorShipperAccountIds, filter_created_at_timestamp_gte: filterCreatedAtTimestampGte, filter_created_at_timestamp_lte: filterCreatedAtTimestampLte, filter_last_edited_at_timestamp_gte: filterLastEditedAtTimestampGte, filter_last_edited_at_timestamp_lte: filterLastEditedAtTimestampLte, filter_last_used_at_timestamp_gte: filterLastUsedAtTimestampGte, filter_last_used_at_timestamp_lte: filterLastUsedAtTimestampLte, } = request;
|
|
308
308
|
const _queryParams = {};
|
|
309
309
|
if (sortBy !== undefined) {
|
|
310
310
|
_queryParams["sort_by"] = sortBy;
|
|
@@ -327,8 +327,13 @@ class OrderTemplatesNew {
|
|
|
327
327
|
if (filterOwnedByUserId !== undefined) {
|
|
328
328
|
_queryParams["filter_owned_by_user_id"] = filterOwnedByUserId;
|
|
329
329
|
}
|
|
330
|
-
if (
|
|
331
|
-
|
|
330
|
+
if (filterCoordinatorLabels !== undefined) {
|
|
331
|
+
if (Array.isArray(filterCoordinatorLabels)) {
|
|
332
|
+
_queryParams["filter_coordinator_labels"] = filterCoordinatorLabels.map((item) => item);
|
|
333
|
+
}
|
|
334
|
+
else {
|
|
335
|
+
_queryParams["filter_coordinator_labels"] = filterCoordinatorLabels;
|
|
336
|
+
}
|
|
332
337
|
}
|
|
333
338
|
if (filterExecutorOrgId !== undefined) {
|
|
334
339
|
_queryParams["filter_executor_org_id"] = filterExecutorOrgId;
|
|
@@ -13,7 +13,7 @@ export interface OrderTemplateNewClientCreate1 {
|
|
|
13
13
|
cargos?: Chrt.OrderTemplateNewCargo1[];
|
|
14
14
|
coordinator_assigned_user_ids?: string[];
|
|
15
15
|
coordinator_department_ids?: string[];
|
|
16
|
-
|
|
16
|
+
coordinator_labels?: string[];
|
|
17
17
|
/** Must be a string starting with `org_` */
|
|
18
18
|
coordinator_org_id?: string | null;
|
|
19
19
|
description?: string | null;
|
|
@@ -9,8 +9,7 @@ import * as Chrt from "../../../../../../index.js";
|
|
|
9
9
|
export interface OrderTemplateNewClientUpdate1 {
|
|
10
10
|
coordinator_assigned_user_ids?: string[];
|
|
11
11
|
coordinator_department_ids?: string[];
|
|
12
|
-
|
|
13
|
-
coordinator_label__set_to_None?: boolean;
|
|
12
|
+
coordinator_labels?: string[];
|
|
14
13
|
/** Must be a string starting with `org_` */
|
|
15
14
|
coordinator_org_id?: string | null;
|
|
16
15
|
coordinator_org_id__set_to_None?: boolean;
|
|
@@ -12,7 +12,7 @@ import * as Chrt from "../../../../../../index.js";
|
|
|
12
12
|
* search: "search",
|
|
13
13
|
* filter_archived: true,
|
|
14
14
|
* filter_owned_by_user_id: "filter_owned_by_user_id",
|
|
15
|
-
*
|
|
15
|
+
* filter_coordinator_labels: ["filter_coordinator_labels"],
|
|
16
16
|
* filter_executor_org_id: "filter_executor_org_id",
|
|
17
17
|
* filter_off_chrt_executor_org_data_id: "filter_off_chrt_executor_org_data_id",
|
|
18
18
|
* filter_shipper_org_id: "filter_shipper_org_id",
|
|
@@ -39,8 +39,8 @@ export interface OrderTemplatesNewListV1Request {
|
|
|
39
39
|
filter_archived?: boolean | null;
|
|
40
40
|
/** Filter by the user that created the template. */
|
|
41
41
|
filter_owned_by_user_id?: string | null;
|
|
42
|
-
/** Filter by coordinator
|
|
43
|
-
|
|
42
|
+
/** Filter by any of the supplied coordinator labels (exact match). */
|
|
43
|
+
filter_coordinator_labels?: (string | null) | (string | null)[];
|
|
44
44
|
/** Filter by an on-CHRT executor organization ID. */
|
|
45
45
|
filter_executor_org_id?: string | null;
|
|
46
46
|
/** Filter by an off-CHRT executor organization data ID. */
|
|
@@ -202,7 +202,7 @@ export declare class Orders {
|
|
|
202
202
|
taskGroupOrderingV1(orderId: string, request: Chrt.shipping.OrdersTaskGroupOrderingReq, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
203
203
|
private __taskGroupOrderingV1;
|
|
204
204
|
/**
|
|
205
|
-
* Returns distinct label values matching the query for orders where the caller is coordinator (
|
|
205
|
+
* Returns distinct label values matching the query for orders where the caller is coordinator (coordinator_labels) or executor (task_group_details.executor_labels). | authz: allowed_org_types=[provider], min_org_role=operator | () -> (list[str])
|
|
206
206
|
*
|
|
207
207
|
* @param {Chrt.shipping.OrdersTypeaheadLabelV1Request} request
|
|
208
208
|
* @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -291,19 +291,19 @@ export declare class Orders {
|
|
|
291
291
|
updateDraftV1(orderId: string, request?: Chrt.shipping.OrdersUpdateDraftReq, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<Chrt.OrdersUpdateDraftRes>;
|
|
292
292
|
private __updateDraftV1;
|
|
293
293
|
/**
|
|
294
|
-
*
|
|
294
|
+
* Replaces labels for the caller's role on the order. Coordinator writes coordinator_labels; executor writes executor_labels on matching task_group_details rows. | authz_personas=[coordinator_org_operators, order_executor_org_operators] | (OrdersUpdateLabelsReq) -> (bool)
|
|
295
295
|
*
|
|
296
296
|
* @param {string} orderId
|
|
297
|
-
* @param {Chrt.shipping.
|
|
297
|
+
* @param {Chrt.shipping.OrdersUpdateLabelsReq} request
|
|
298
298
|
* @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
|
|
299
299
|
*
|
|
300
300
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
301
301
|
*
|
|
302
302
|
* @example
|
|
303
|
-
* await client.shipping.orders.
|
|
303
|
+
* await client.shipping.orders.updateLabelsV1("order_id")
|
|
304
304
|
*/
|
|
305
|
-
|
|
306
|
-
private
|
|
305
|
+
updateLabelsV1(orderId: string, request?: Chrt.shipping.OrdersUpdateLabelsReq, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
306
|
+
private __updateLabelsV1;
|
|
307
307
|
/**
|
|
308
308
|
* Updates off_chrt_reference_id on an order. Drafts require the creating org's operator; operational orders require the order creator org's operator. | authz_personas=[draft_creator_org_operator, order_creator_org_operators] | (OrdersUpdateOffChrtReferenceIdReq) -> (OrdersUpdateOffChrtReferenceIdRes)
|
|
309
309
|
*
|
|
@@ -726,7 +726,7 @@ class Orders {
|
|
|
726
726
|
});
|
|
727
727
|
}
|
|
728
728
|
/**
|
|
729
|
-
* Returns distinct label values matching the query for orders where the caller is coordinator (
|
|
729
|
+
* Returns distinct label values matching the query for orders where the caller is coordinator (coordinator_labels) or executor (task_group_details.executor_labels). | authz: allowed_org_types=[provider], min_org_role=operator | () -> (list[str])
|
|
730
730
|
*
|
|
731
731
|
* @param {Chrt.shipping.OrdersTypeaheadLabelV1Request} request
|
|
732
732
|
* @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -1112,26 +1112,26 @@ class Orders {
|
|
|
1112
1112
|
});
|
|
1113
1113
|
}
|
|
1114
1114
|
/**
|
|
1115
|
-
*
|
|
1115
|
+
* Replaces labels for the caller's role on the order. Coordinator writes coordinator_labels; executor writes executor_labels on matching task_group_details rows. | authz_personas=[coordinator_org_operators, order_executor_org_operators] | (OrdersUpdateLabelsReq) -> (bool)
|
|
1116
1116
|
*
|
|
1117
1117
|
* @param {string} orderId
|
|
1118
|
-
* @param {Chrt.shipping.
|
|
1118
|
+
* @param {Chrt.shipping.OrdersUpdateLabelsReq} request
|
|
1119
1119
|
* @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
|
|
1120
1120
|
*
|
|
1121
1121
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
1122
1122
|
*
|
|
1123
1123
|
* @example
|
|
1124
|
-
* await client.shipping.orders.
|
|
1124
|
+
* await client.shipping.orders.updateLabelsV1("order_id")
|
|
1125
1125
|
*/
|
|
1126
|
-
|
|
1127
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
1126
|
+
updateLabelsV1(orderId, request = {}, requestOptions) {
|
|
1127
|
+
return core.HttpResponsePromise.fromPromise(this.__updateLabelsV1(orderId, request, requestOptions));
|
|
1128
1128
|
}
|
|
1129
|
-
|
|
1129
|
+
__updateLabelsV1(orderId_1) {
|
|
1130
1130
|
return __awaiter(this, arguments, void 0, function* (orderId, request = {}, requestOptions) {
|
|
1131
1131
|
var _a, _b, _c, _d;
|
|
1132
1132
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
1133
1133
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
1134
|
-
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/orders/
|
|
1134
|
+
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/orders/update_labels/v1/${encodeURIComponent(orderId)}`),
|
|
1135
1135
|
method: "PATCH",
|
|
1136
1136
|
headers: _headers,
|
|
1137
1137
|
contentType: "application/json",
|
|
@@ -1165,7 +1165,7 @@ class Orders {
|
|
|
1165
1165
|
rawResponse: _response.rawResponse,
|
|
1166
1166
|
});
|
|
1167
1167
|
case "timeout":
|
|
1168
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /shipping/orders/
|
|
1168
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /shipping/orders/update_labels/v1/{order_id}.");
|
|
1169
1169
|
case "unknown":
|
|
1170
1170
|
throw new errors.ChrtError({
|
|
1171
1171
|
message: _response.error.errorMessage,
|
|
@@ -8,5 +8,5 @@ export { type OrdersTypeaheadV1Request } from "./OrdersTypeaheadV1Request.js";
|
|
|
8
8
|
export { type OrdersUnassignReq } from "./OrdersUnassignReq.js";
|
|
9
9
|
export { type OrdersUpdateDepartmentsReq } from "./OrdersUpdateDepartmentsReq.js";
|
|
10
10
|
export { type OrdersUpdateDraftReq } from "./OrdersUpdateDraftReq.js";
|
|
11
|
-
export { type
|
|
11
|
+
export { type OrdersUpdateLabelsReq } from "./OrdersUpdateLabelsReq.js";
|
|
12
12
|
export { type OrdersUpdateOffChrtReferenceIdReq } from "./OrdersUpdateOffChrtReferenceIdReq.js";
|
|
@@ -12,7 +12,7 @@ export interface OrdersOpenDraftReq {
|
|
|
12
12
|
/** Optional key, unique per caller org, that makes draft creation idempotent: re-sending the same key returns the already-created draft instead of creating a duplicate. */
|
|
13
13
|
creation_idempotency_key?: string | null;
|
|
14
14
|
department_ids?: string[];
|
|
15
|
-
|
|
15
|
+
labels?: string[];
|
|
16
16
|
/** Must be a URL-safe string of 1-64 characters. Allowed characters: A-Z, a-z, 0-9, '.', '_', '~', '-' (RFC 3986 unreserved). */
|
|
17
17
|
off_chrt_reference_id?: string | null;
|
|
18
18
|
off_chrt_shipper_org_data_id?: string | null;
|
package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.ts
CHANGED
|
@@ -100,7 +100,7 @@ export declare class Expanded {
|
|
|
100
100
|
* filter_coordinator_shipper_account_ids: ["filter_coordinator_shipper_account_ids"],
|
|
101
101
|
* filter_coordinator_department_ids: ["filter_coordinator_department_ids"],
|
|
102
102
|
* filter_coordinator_assigned_user_ids: ["filter_coordinator_assigned_user_ids"],
|
|
103
|
-
*
|
|
103
|
+
* filter_coordinator_labels: ["filter_coordinator_labels"],
|
|
104
104
|
* body: {}
|
|
105
105
|
* })
|
|
106
106
|
*/
|