@chrt-inc/typescript-sdk 1.990.0 → 1.992.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/Client.js +2 -2
- package/dist/cjs/api/resources/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/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/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/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/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/index.d.ts +4 -0
- package/dist/cjs/api/types/index.js +4 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.mjs +2 -2
- package/dist/esm/api/resources/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/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/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/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/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/index.d.mts +4 -0
- package/dist/esm/api/types/index.mjs +4 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +85 -14
- /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.992.0",
|
|
64
|
+
"User-Agent": "@chrt-inc/typescript-sdk/1.992.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) });
|
|
@@ -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. */
|
|
@@ -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";
|
|
@@ -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 */
|
|
@@ -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. */
|