@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
|
@@ -17,7 +17,7 @@ import * as Chrt from "../../../../../../index.mjs";
|
|
|
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)
|
|
@@ -507,7 +507,7 @@ export class BidThreads {
|
|
|
507
507
|
});
|
|
508
508
|
}
|
|
509
509
|
/**
|
|
510
|
-
* Lists
|
|
510
|
+
* 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)
|
|
511
511
|
*
|
|
512
512
|
* @param {string} listingId
|
|
513
513
|
* @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
|
|
@@ -230,7 +230,7 @@ export class OperationsTasks {
|
|
|
230
230
|
* filter_order_ids: ["filter_order_ids"],
|
|
231
231
|
* filter_order_short_id: "filter_order_short_id",
|
|
232
232
|
* filter_order_off_chrt_reference_id: "filter_order_off_chrt_reference_id",
|
|
233
|
-
*
|
|
233
|
+
* filter_department_ids: ["filter_department_ids"],
|
|
234
234
|
* filter_task_type: ["review_order_details"],
|
|
235
235
|
* filter_status: ["not_started"],
|
|
236
236
|
* filter_assigned_user_id: "filter_assigned_user_id",
|
|
@@ -246,7 +246,7 @@ export class OperationsTasks {
|
|
|
246
246
|
__expandedListV1() {
|
|
247
247
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
248
248
|
var _a, _b, _c, _d, _e, _f;
|
|
249
|
-
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,
|
|
249
|
+
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;
|
|
250
250
|
const _queryParams = {};
|
|
251
251
|
if (sortBy !== undefined) {
|
|
252
252
|
_queryParams["sort_by"] = sortBy;
|
|
@@ -277,8 +277,13 @@ export class OperationsTasks {
|
|
|
277
277
|
if (filterOrderOffChrtReferenceId !== undefined) {
|
|
278
278
|
_queryParams["filter_order_off_chrt_reference_id"] = filterOrderOffChrtReferenceId;
|
|
279
279
|
}
|
|
280
|
-
if (
|
|
281
|
-
|
|
280
|
+
if (filterDepartmentIds !== undefined) {
|
|
281
|
+
if (Array.isArray(filterDepartmentIds)) {
|
|
282
|
+
_queryParams["filter_department_ids"] = filterDepartmentIds.map((item) => item);
|
|
283
|
+
}
|
|
284
|
+
else {
|
|
285
|
+
_queryParams["filter_department_ids"] = filterDepartmentIds;
|
|
286
|
+
}
|
|
282
287
|
}
|
|
283
288
|
if (filterTaskType !== undefined) {
|
|
284
289
|
if (Array.isArray(filterTaskType)) {
|
|
@@ -371,7 +376,7 @@ export class OperationsTasks {
|
|
|
371
376
|
* filter_order_ids: ["filter_order_ids"],
|
|
372
377
|
* filter_order_short_id: "filter_order_short_id",
|
|
373
378
|
* filter_order_off_chrt_reference_id: "filter_order_off_chrt_reference_id",
|
|
374
|
-
*
|
|
379
|
+
* filter_department_ids: ["filter_department_ids"],
|
|
375
380
|
* filter_task_type: ["review_order_details"],
|
|
376
381
|
* filter_status: ["not_started"],
|
|
377
382
|
* filter_assigned_user_id: "filter_assigned_user_id",
|
|
@@ -387,7 +392,7 @@ export class OperationsTasks {
|
|
|
387
392
|
__listV1() {
|
|
388
393
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
389
394
|
var _a, _b, _c, _d, _e, _f;
|
|
390
|
-
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,
|
|
395
|
+
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;
|
|
391
396
|
const _queryParams = {};
|
|
392
397
|
if (sortBy !== undefined) {
|
|
393
398
|
_queryParams["sort_by"] = sortBy;
|
|
@@ -418,8 +423,13 @@ export class OperationsTasks {
|
|
|
418
423
|
if (filterOrderOffChrtReferenceId !== undefined) {
|
|
419
424
|
_queryParams["filter_order_off_chrt_reference_id"] = filterOrderOffChrtReferenceId;
|
|
420
425
|
}
|
|
421
|
-
if (
|
|
422
|
-
|
|
426
|
+
if (filterDepartmentIds !== undefined) {
|
|
427
|
+
if (Array.isArray(filterDepartmentIds)) {
|
|
428
|
+
_queryParams["filter_department_ids"] = filterDepartmentIds.map((item) => item);
|
|
429
|
+
}
|
|
430
|
+
else {
|
|
431
|
+
_queryParams["filter_department_ids"] = filterDepartmentIds;
|
|
432
|
+
}
|
|
423
433
|
}
|
|
424
434
|
if (filterTaskType !== undefined) {
|
|
425
435
|
if (Array.isArray(filterTaskType)) {
|
|
@@ -629,6 +639,74 @@ export class OperationsTasks {
|
|
|
629
639
|
}
|
|
630
640
|
});
|
|
631
641
|
}
|
|
642
|
+
/**
|
|
643
|
+
* 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])
|
|
644
|
+
*
|
|
645
|
+
* @param {Chrt.operations.OperationsTasksTypeaheadV1Request} request
|
|
646
|
+
* @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
|
|
647
|
+
*
|
|
648
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
649
|
+
*
|
|
650
|
+
* @example
|
|
651
|
+
* await client.operations.operationsTasks.typeaheadV1({
|
|
652
|
+
* query: "query",
|
|
653
|
+
* limit: 1
|
|
654
|
+
* })
|
|
655
|
+
*/
|
|
656
|
+
typeaheadV1(request, requestOptions) {
|
|
657
|
+
return core.HttpResponsePromise.fromPromise(this.__typeaheadV1(request, requestOptions));
|
|
658
|
+
}
|
|
659
|
+
__typeaheadV1(request, requestOptions) {
|
|
660
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
661
|
+
var _a, _b, _c, _d, _e;
|
|
662
|
+
const { query, limit } = request;
|
|
663
|
+
const _queryParams = {};
|
|
664
|
+
_queryParams["query"] = query;
|
|
665
|
+
if (limit !== undefined) {
|
|
666
|
+
_queryParams["limit"] = (_a = limit === null || limit === void 0 ? void 0 : limit.toString()) !== null && _a !== void 0 ? _a : null;
|
|
667
|
+
}
|
|
668
|
+
let _headers = mergeHeaders((_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
669
|
+
const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
|
|
670
|
+
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"),
|
|
671
|
+
method: "GET",
|
|
672
|
+
headers: _headers,
|
|
673
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
674
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
675
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
676
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
677
|
+
});
|
|
678
|
+
if (_response.ok) {
|
|
679
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
680
|
+
}
|
|
681
|
+
if (_response.error.reason === "status-code") {
|
|
682
|
+
switch (_response.error.statusCode) {
|
|
683
|
+
case 422:
|
|
684
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
685
|
+
default:
|
|
686
|
+
throw new errors.ChrtError({
|
|
687
|
+
statusCode: _response.error.statusCode,
|
|
688
|
+
body: _response.error.body,
|
|
689
|
+
rawResponse: _response.rawResponse,
|
|
690
|
+
});
|
|
691
|
+
}
|
|
692
|
+
}
|
|
693
|
+
switch (_response.error.reason) {
|
|
694
|
+
case "non-json":
|
|
695
|
+
throw new errors.ChrtError({
|
|
696
|
+
statusCode: _response.error.statusCode,
|
|
697
|
+
body: _response.error.rawBody,
|
|
698
|
+
rawResponse: _response.rawResponse,
|
|
699
|
+
});
|
|
700
|
+
case "timeout":
|
|
701
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /operations/operations_tasks/typeahead/v1.");
|
|
702
|
+
case "unknown":
|
|
703
|
+
throw new errors.ChrtError({
|
|
704
|
+
message: _response.error.errorMessage,
|
|
705
|
+
rawResponse: _response.rawResponse,
|
|
706
|
+
});
|
|
707
|
+
}
|
|
708
|
+
});
|
|
709
|
+
}
|
|
632
710
|
/**
|
|
633
711
|
* Assigns or clears one department on selected tasks across orders. Missing and other-org tasks are skipped. | authz: min_org_role=operator | (OperationsTasksUpdateDepartmentManyReq) -> (OperationsTasksUpdateDepartmentManyRes)
|
|
634
712
|
*
|
|
@@ -883,7 +961,7 @@ export class OperationsTasks {
|
|
|
883
961
|
});
|
|
884
962
|
}
|
|
885
963
|
/**
|
|
886
|
-
* Updates editable fields (task_type, title, description, deadline_timestamp, assigned_user_ids) on an OperationsTask. | authz: min_org_role=operator | (OperationsTaskClientUpdate1) -> (bool)
|
|
964
|
+
* 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)
|
|
887
965
|
*
|
|
888
966
|
* @param {string} taskId
|
|
889
967
|
* @param {Chrt.operations.OperationsTaskClientUpdate1} request
|
|
@@ -9,7 +9,11 @@ import * as Chrt from "../../../../../../index.mjs";
|
|
|
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.mjs";
|
|
|
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.mjs";
|
|
|
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/esm/api/resources/operations/resources/operationsTasks/client/requests/index.d.mts
CHANGED
|
@@ -4,6 +4,7 @@ export { type OperationsTasksExpandedListV1Request } from "./OperationsTasksExpa
|
|
|
4
4
|
export { type OperationsTasksListV1Request } from "./OperationsTasksListV1Request.mjs";
|
|
5
5
|
export { type OperationsTasksSetDeadlineTimestampsReq1 } from "./OperationsTasksSetDeadlineTimestampsReq1.mjs";
|
|
6
6
|
export { type OperationsTasksSetStatusReq1 } from "./OperationsTasksSetStatusReq1.mjs";
|
|
7
|
+
export { type OperationsTasksTypeaheadV1Request } from "./OperationsTasksTypeaheadV1Request.mjs";
|
|
7
8
|
export { type OperationsTasksUpdateDepartmentManyReq } from "./OperationsTasksUpdateDepartmentManyReq.mjs";
|
|
8
9
|
export { type OperationsTaskClientCreate1 } from "./OperationsTaskClientCreate1.mjs";
|
|
9
10
|
export { type OperationsTaskClientUpdate1 } from "./OperationsTaskClientUpdate1.mjs";
|
|
@@ -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,
|
|
@@ -280,6 +280,9 @@ export class Drivers {
|
|
|
280
280
|
* page: 1,
|
|
281
281
|
* page_size: 1,
|
|
282
282
|
* search: "search",
|
|
283
|
+
* filter_waiting: true,
|
|
284
|
+
* filter_auto_assign_enabled: true,
|
|
285
|
+
* filter_vehicle_type: ["sedan"],
|
|
283
286
|
* filter_by_driver_id: "filter_by_driver_id",
|
|
284
287
|
* filter_archived: true,
|
|
285
288
|
* filter_available_according_to_driver: true,
|
|
@@ -292,8 +295,8 @@ export class Drivers {
|
|
|
292
295
|
}
|
|
293
296
|
__listV1() {
|
|
294
297
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
295
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
296
|
-
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;
|
|
298
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
299
|
+
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;
|
|
297
300
|
const _queryParams = {};
|
|
298
301
|
if (sortOrder !== undefined) {
|
|
299
302
|
_queryParams["sort_order"] = sortOrder;
|
|
@@ -307,18 +310,32 @@ export class Drivers {
|
|
|
307
310
|
if (search !== undefined) {
|
|
308
311
|
_queryParams["search"] = search;
|
|
309
312
|
}
|
|
313
|
+
if (filterWaiting !== undefined) {
|
|
314
|
+
_queryParams["filter_waiting"] = (_c = filterWaiting === null || filterWaiting === void 0 ? void 0 : filterWaiting.toString()) !== null && _c !== void 0 ? _c : null;
|
|
315
|
+
}
|
|
316
|
+
if (filterAutoAssignEnabled !== undefined) {
|
|
317
|
+
_queryParams["filter_auto_assign_enabled"] = (_d = filterAutoAssignEnabled === null || filterAutoAssignEnabled === void 0 ? void 0 : filterAutoAssignEnabled.toString()) !== null && _d !== void 0 ? _d : null;
|
|
318
|
+
}
|
|
319
|
+
if (filterVehicleType !== undefined) {
|
|
320
|
+
if (Array.isArray(filterVehicleType)) {
|
|
321
|
+
_queryParams["filter_vehicle_type"] = filterVehicleType.map((item) => item);
|
|
322
|
+
}
|
|
323
|
+
else {
|
|
324
|
+
_queryParams["filter_vehicle_type"] = filterVehicleType;
|
|
325
|
+
}
|
|
326
|
+
}
|
|
310
327
|
if (filterByDriverId !== undefined) {
|
|
311
328
|
_queryParams["filter_by_driver_id"] = filterByDriverId;
|
|
312
329
|
}
|
|
313
330
|
if (filterArchived !== undefined) {
|
|
314
|
-
_queryParams["filter_archived"] = (
|
|
331
|
+
_queryParams["filter_archived"] = (_e = filterArchived === null || filterArchived === void 0 ? void 0 : filterArchived.toString()) !== null && _e !== void 0 ? _e : null;
|
|
315
332
|
}
|
|
316
333
|
if (filterAvailableAccordingToDriver !== undefined) {
|
|
317
|
-
_queryParams["filter_available_according_to_driver"] = (
|
|
334
|
+
_queryParams["filter_available_according_to_driver"] = (_f = filterAvailableAccordingToDriver === null || filterAvailableAccordingToDriver === void 0 ? void 0 : filterAvailableAccordingToDriver.toString()) !== null && _f !== void 0 ? _f : null;
|
|
318
335
|
}
|
|
319
336
|
if (filterAvailableAccordingToOperators !== undefined) {
|
|
320
337
|
_queryParams["filter_available_according_to_operators"] =
|
|
321
|
-
(
|
|
338
|
+
(_g = filterAvailableAccordingToOperators === null || filterAvailableAccordingToOperators === void 0 ? void 0 : filterAvailableAccordingToOperators.toString()) !== null && _g !== void 0 ? _g : null;
|
|
322
339
|
}
|
|
323
340
|
if (filterStatus !== undefined) {
|
|
324
341
|
if (Array.isArray(filterStatus)) {
|
|
@@ -328,9 +345,9 @@ export class Drivers {
|
|
|
328
345
|
_queryParams["filter_status"] = filterStatus;
|
|
329
346
|
}
|
|
330
347
|
}
|
|
331
|
-
let _headers = mergeHeaders((
|
|
332
|
-
const _response = yield ((
|
|
333
|
-
url: core.url.join((
|
|
348
|
+
let _headers = mergeHeaders((_h = this._options) === null || _h === void 0 ? void 0 : _h.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
349
|
+
const _response = yield ((_j = this._options.fetcher) !== null && _j !== void 0 ? _j : core.fetcher)({
|
|
350
|
+
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"),
|
|
334
351
|
method: "GET",
|
|
335
352
|
headers: _headers,
|
|
336
353
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
package/dist/esm/api/resources/shipping/resources/drivers/client/requests/DriversListV1Request.d.mts
CHANGED
|
@@ -9,6 +9,9 @@ import * as Chrt from "../../../../../../index.mjs";
|
|
|
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",
|
|
@@ -232,7 +232,7 @@ export class OrderTemplatesNew {
|
|
|
232
232
|
});
|
|
233
233
|
}
|
|
234
234
|
/**
|
|
235
|
-
* Lists order templates with filtering, sorting, pagination, full-text search, and party/account expansion. | authz: min_org_role=operator | () -> (OrderTemplateNewListRes)
|
|
235
|
+
* Lists order templates with filtering, sorting, pagination, full-text search, and party/account/department expansion. | authz: min_org_role=operator | () -> (OrderTemplateNewListRes)
|
|
236
236
|
*
|
|
237
237
|
* @param {Chrt.shipping.OrderTemplatesNewListV1Request} request
|
|
238
238
|
* @param {OrderTemplatesNew.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -248,7 +248,7 @@ export class OrderTemplatesNew {
|
|
|
248
248
|
* search: "search",
|
|
249
249
|
* filter_archived: true,
|
|
250
250
|
* filter_owned_by_user_id: "filter_owned_by_user_id",
|
|
251
|
-
*
|
|
251
|
+
* filter_coordinator_labels: ["filter_coordinator_labels"],
|
|
252
252
|
* filter_executor_org_id: "filter_executor_org_id",
|
|
253
253
|
* filter_off_chrt_executor_org_data_id: "filter_off_chrt_executor_org_data_id",
|
|
254
254
|
* filter_shipper_org_id: "filter_shipper_org_id",
|
|
@@ -268,7 +268,7 @@ export class OrderTemplatesNew {
|
|
|
268
268
|
__listV1() {
|
|
269
269
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
270
270
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
271
|
-
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, filter_archived: filterArchived, filter_owned_by_user_id: filterOwnedByUserId,
|
|
271
|
+
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;
|
|
272
272
|
const _queryParams = {};
|
|
273
273
|
if (sortBy !== undefined) {
|
|
274
274
|
_queryParams["sort_by"] = sortBy;
|
|
@@ -291,8 +291,13 @@ export class OrderTemplatesNew {
|
|
|
291
291
|
if (filterOwnedByUserId !== undefined) {
|
|
292
292
|
_queryParams["filter_owned_by_user_id"] = filterOwnedByUserId;
|
|
293
293
|
}
|
|
294
|
-
if (
|
|
295
|
-
|
|
294
|
+
if (filterCoordinatorLabels !== undefined) {
|
|
295
|
+
if (Array.isArray(filterCoordinatorLabels)) {
|
|
296
|
+
_queryParams["filter_coordinator_labels"] = filterCoordinatorLabels.map((item) => item);
|
|
297
|
+
}
|
|
298
|
+
else {
|
|
299
|
+
_queryParams["filter_coordinator_labels"] = filterCoordinatorLabels;
|
|
300
|
+
}
|
|
296
301
|
}
|
|
297
302
|
if (filterExecutorOrgId !== undefined) {
|
|
298
303
|
_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.mjs";
|
|
|
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.mjs";
|
|
|
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
|
*
|