@chrt-inc/typescript-sdk 1.984.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 +8 -8
- package/dist/cjs/api/resources/listing/resources/bidThreads/client/Client.js +7 -7
- package/dist/cjs/api/resources/listing/resources/driverBiddingGroups/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/listing/resources/driverBiddingGroups/client/Client.js +1 -1
- package/dist/cjs/api/resources/listing/resources/orgBiddingGroups/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/listing/resources/orgBiddingGroups/client/Client.js +1 -1
- package/dist/cjs/api/resources/operations/resources/departments/client/Client.d.ts +2 -1
- package/dist/cjs/api/resources/operations/resources/departments/client/Client.js +6 -2
- package/dist/cjs/api/resources/operations/resources/departments/client/requests/DepartmentsListV1Request.d.ts +3 -0
- package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/Client.d.ts +5 -3
- package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/Client.js +13 -5
- package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListsApplyToOrderV1Request.d.ts +4 -1
- package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListsListV1Request.d.ts +3 -0
- package/dist/cjs/api/resources/operations/resources/operationsTasks/client/Client.d.ts +38 -5
- package/dist/cjs/api/resources/operations/resources/operationsTasks/client/Client.js +164 -11
- package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/OperationsTaskClientCreate1.d.ts +1 -0
- 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 +6 -3
- package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksListV1Request.d.ts +6 -3
- package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksTypeaheadV1Request.d.ts +16 -0
- package/dist/cjs/api/resources/{shipping/resources/orders/client/requests/OrdersUpdateDepartmentReq.d.ts → operations/resources/operationsTasks/client/requests/OperationsTasksUpdateDepartmentManyReq.d.ts} +5 -2
- package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/orgs/client/Client.d.ts +2 -1
- package/dist/cjs/api/resources/orgs/client/Client.js +11 -2
- package/dist/cjs/api/resources/orgs/client/requests/OrgsListMembersV1Request.d.ts +3 -0
- package/dist/cjs/api/resources/shipping/resources/drivers/client/Client.d.ts +32 -0
- package/dist/cjs/api/resources/shipping/resources/drivers/client/Client.js +163 -16
- package/dist/cjs/api/resources/shipping/resources/drivers/client/requests/DriversListOrgMembersAndDriversV1Request.d.ts +3 -0
- package/dist/cjs/api/resources/shipping/resources/drivers/client/requests/DriversListV1Request.d.ts +15 -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 +2 -2
- package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/client/requests/OrderTemplateNewClientUpdate1.d.ts +2 -4
- 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 +13 -12
- package/dist/cjs/api/resources/shipping/resources/orders/client/Client.js +23 -19
- package/dist/cjs/api/resources/shipping/resources/orders/client/requests/OrdersAddCoordinatorTaskListToApplyAtOrderStagingV1Request.d.ts +3 -0
- package/dist/cjs/api/resources/shipping/resources/orders/client/requests/{OrdersUpdateLabelReq.d.ts → OrdersUpdateDepartmentsReq.d.ts} +2 -3
- package/dist/cjs/api/resources/shipping/resources/orders/client/requests/OrdersUpdateDepartmentsReq.js +5 -0
- package/dist/{esm/api/resources/shipping/resources/orders/client/requests/OrdersUpdateLabelReq.d.mts → cjs/api/resources/shipping/resources/orders/client/requests/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 +2 -2
- package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/client/requests/OrdersOpenDraftReq.d.ts +2 -2
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.js +25 -10
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForProviderOperatorsV1Request.d.ts +9 -7
- package/dist/cjs/api/resources/shipping/resources/orders/resources/taskGroup/client/Client.d.ts +3 -5
- package/dist/cjs/api/resources/shipping/resources/orders/resources/taskGroup/client/Client.js +5 -7
- package/dist/cjs/api/resources/shipping/resources/orders/resources/taskGroup/client/requests/OrdersSetTaskGroupVehicleTypeReq.d.ts +3 -4
- 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/Driver1.d.ts +1 -0
- package/dist/cjs/api/types/DriverBiddingGroupListItemRes.d.ts +17 -0
- package/dist/cjs/api/types/DriverBiddingGroupListItemRes.js +5 -0
- package/dist/cjs/api/types/DriverBiddingGroupListRes.d.ts +1 -1
- package/dist/cjs/api/types/DriverWithActiveTaskGroupIds1.d.ts +1 -0
- package/dist/cjs/api/types/OperationsTask1.d.ts +1 -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/OperationsTasksUpdateDepartmentManyRes.d.ts +7 -0
- package/dist/cjs/api/types/OperationsTasksUpdateDepartmentManyRes.js +5 -0
- package/dist/cjs/api/types/Order1.d.ts +2 -2
- package/dist/cjs/api/types/OrderAndTaskGroupExpandedReq.d.ts +2 -2
- 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/OrderExpandedForProvider.d.ts +1 -1
- package/dist/cjs/api/types/OrderLimitedForProvider1.d.ts +2 -2
- package/dist/cjs/api/types/OrderTaskGroupExecutorDetails1.d.ts +2 -2
- package/dist/cjs/api/types/OrderTemplateNew1.d.ts +2 -2
- package/dist/cjs/api/types/OrderTemplateNewCore1.d.ts +2 -2
- package/dist/cjs/api/types/OrderTemplateNewExpanded1.d.ts +3 -2
- package/dist/cjs/api/types/OrgBiddingGroupListItemRes.d.ts +17 -0
- package/dist/cjs/api/types/OrgBiddingGroupListItemRes.js +5 -0
- package/dist/cjs/api/types/OrgBiddingGroupListRes.d.ts +1 -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/TaskGroup1.d.ts +1 -1
- package/dist/cjs/api/types/TaskGroupExpanded.d.ts +1 -1
- package/dist/cjs/api/types/TaskListToApplyToOrder1.d.ts +1 -0
- package/dist/cjs/api/types/index.d.ts +7 -0
- package/dist/cjs/api/types/index.js +7 -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 +8 -8
- package/dist/esm/api/resources/listing/resources/bidThreads/client/Client.mjs +7 -7
- package/dist/esm/api/resources/listing/resources/driverBiddingGroups/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/listing/resources/driverBiddingGroups/client/Client.mjs +1 -1
- package/dist/esm/api/resources/listing/resources/orgBiddingGroups/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/listing/resources/orgBiddingGroups/client/Client.mjs +1 -1
- package/dist/esm/api/resources/operations/resources/departments/client/Client.d.mts +2 -1
- package/dist/esm/api/resources/operations/resources/departments/client/Client.mjs +6 -2
- package/dist/esm/api/resources/operations/resources/departments/client/requests/DepartmentsListV1Request.d.mts +3 -0
- package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/Client.d.mts +5 -3
- package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/Client.mjs +13 -5
- package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListsApplyToOrderV1Request.d.mts +4 -1
- package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListsListV1Request.d.mts +3 -0
- package/dist/esm/api/resources/operations/resources/operationsTasks/client/Client.d.mts +38 -5
- package/dist/esm/api/resources/operations/resources/operationsTasks/client/Client.mjs +164 -11
- package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/OperationsTaskClientCreate1.d.mts +1 -0
- 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 +6 -3
- package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksListV1Request.d.mts +6 -3
- package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksTypeaheadV1Request.d.mts +16 -0
- package/dist/esm/api/resources/{shipping/resources/orders/client/requests/OrdersUpdateDepartmentReq.d.mts → operations/resources/operationsTasks/client/requests/OperationsTasksUpdateDepartmentManyReq.d.mts} +5 -2
- package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/orgs/client/Client.d.mts +2 -1
- package/dist/esm/api/resources/orgs/client/Client.mjs +11 -2
- package/dist/esm/api/resources/orgs/client/requests/OrgsListMembersV1Request.d.mts +3 -0
- package/dist/esm/api/resources/shipping/resources/drivers/client/Client.d.mts +32 -0
- package/dist/esm/api/resources/shipping/resources/drivers/client/Client.mjs +163 -16
- package/dist/esm/api/resources/shipping/resources/drivers/client/requests/DriversListOrgMembersAndDriversV1Request.d.mts +3 -0
- package/dist/esm/api/resources/shipping/resources/drivers/client/requests/DriversListV1Request.d.mts +15 -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 +2 -2
- package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/client/requests/OrderTemplateNewClientUpdate1.d.mts +2 -4
- 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 +13 -12
- package/dist/esm/api/resources/shipping/resources/orders/client/Client.mjs +23 -19
- package/dist/esm/api/resources/shipping/resources/orders/client/requests/OrdersAddCoordinatorTaskListToApplyAtOrderStagingV1Request.d.mts +3 -0
- package/dist/esm/api/resources/shipping/resources/orders/client/requests/OrdersUpdateDepartmentsReq.d.mts +10 -0
- package/dist/esm/api/resources/shipping/resources/orders/client/requests/OrdersUpdateDepartmentsReq.mjs +4 -0
- package/dist/esm/api/resources/shipping/resources/orders/client/requests/OrdersUpdateLabelsReq.d.mts +10 -0
- 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 +2 -2
- package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/client/requests/OrdersOpenDraftReq.d.mts +2 -2
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.mjs +25 -10
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForProviderOperatorsV1Request.d.mts +9 -7
- package/dist/esm/api/resources/shipping/resources/orders/resources/taskGroup/client/Client.d.mts +3 -5
- package/dist/esm/api/resources/shipping/resources/orders/resources/taskGroup/client/Client.mjs +5 -7
- package/dist/esm/api/resources/shipping/resources/orders/resources/taskGroup/client/requests/OrdersSetTaskGroupVehicleTypeReq.d.mts +3 -4
- 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/Driver1.d.mts +1 -0
- package/dist/esm/api/types/DriverBiddingGroupListItemRes.d.mts +17 -0
- package/dist/esm/api/types/DriverBiddingGroupListItemRes.mjs +4 -0
- package/dist/esm/api/types/DriverBiddingGroupListRes.d.mts +1 -1
- package/dist/esm/api/types/DriverWithActiveTaskGroupIds1.d.mts +1 -0
- package/dist/esm/api/types/OperationsTask1.d.mts +1 -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/OperationsTasksUpdateDepartmentManyRes.d.mts +7 -0
- package/dist/esm/api/types/OperationsTasksUpdateDepartmentManyRes.mjs +4 -0
- package/dist/esm/api/types/Order1.d.mts +2 -2
- package/dist/esm/api/types/OrderAndTaskGroupExpandedReq.d.mts +2 -2
- 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/OrderExpandedForProvider.d.mts +1 -1
- package/dist/esm/api/types/OrderLimitedForProvider1.d.mts +2 -2
- package/dist/esm/api/types/OrderTaskGroupExecutorDetails1.d.mts +2 -2
- package/dist/esm/api/types/OrderTemplateNew1.d.mts +2 -2
- package/dist/esm/api/types/OrderTemplateNewCore1.d.mts +2 -2
- package/dist/esm/api/types/OrderTemplateNewExpanded1.d.mts +3 -2
- package/dist/esm/api/types/OrgBiddingGroupListItemRes.d.mts +17 -0
- package/dist/esm/api/types/OrgBiddingGroupListItemRes.mjs +4 -0
- package/dist/esm/api/types/OrgBiddingGroupListRes.d.mts +1 -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/TaskGroup1.d.mts +1 -1
- package/dist/esm/api/types/TaskGroupExpanded.d.mts +1 -1
- package/dist/esm/api/types/TaskListToApplyToOrder1.d.mts +1 -0
- package/dist/esm/api/types/index.d.mts +7 -0
- package/dist/esm/api/types/index.mjs +7 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +310 -40
- /package/dist/cjs/api/resources/{shipping/resources/orders/client/requests/OrdersUpdateDepartmentReq.js → operations/resources/operationsTasks/client/requests/OperationsTasksTypeaheadV1Request.js} +0 -0
- /package/dist/cjs/api/resources/{shipping/resources/orders/client/requests/OrdersUpdateLabelReq.js → operations/resources/operationsTasks/client/requests/OperationsTasksUpdateDepartmentManyReq.js} +0 -0
- /package/dist/esm/api/resources/{shipping/resources/orders/client/requests/OrdersUpdateDepartmentReq.mjs → operations/resources/operationsTasks/client/requests/OperationsTasksTypeaheadV1Request.mjs} +0 -0
- /package/dist/esm/api/resources/{shipping/resources/orders/client/requests/OrdersUpdateLabelReq.mjs → operations/resources/operationsTasks/client/requests/OperationsTasksUpdateDepartmentManyReq.mjs} +0 -0
|
@@ -266,11 +266,12 @@ 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",
|
|
273
273
|
* filter_source_task_list_id: "filter_source_task_list_id",
|
|
274
|
+
* filter_entry_tag: "filter_entry_tag",
|
|
274
275
|
* filter_deadline_gte: "2024-01-15T09:30:00Z",
|
|
275
276
|
* filter_deadline_lte: "2024-01-15T09:30:00Z"
|
|
276
277
|
* })
|
|
@@ -281,7 +282,7 @@ class OperationsTasks {
|
|
|
281
282
|
__expandedListV1() {
|
|
282
283
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
283
284
|
var _a, _b, _c, _d, _e, _f;
|
|
284
|
-
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;
|
|
285
286
|
const _queryParams = {};
|
|
286
287
|
if (sortBy !== undefined) {
|
|
287
288
|
_queryParams["sort_by"] = sortBy;
|
|
@@ -312,8 +313,13 @@ class OperationsTasks {
|
|
|
312
313
|
if (filterOrderOffChrtReferenceId !== undefined) {
|
|
313
314
|
_queryParams["filter_order_off_chrt_reference_id"] = filterOrderOffChrtReferenceId;
|
|
314
315
|
}
|
|
315
|
-
if (
|
|
316
|
-
|
|
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
|
+
}
|
|
317
323
|
}
|
|
318
324
|
if (filterTaskType !== undefined) {
|
|
319
325
|
if (Array.isArray(filterTaskType)) {
|
|
@@ -337,6 +343,9 @@ class OperationsTasks {
|
|
|
337
343
|
if (filterSourceTaskListId !== undefined) {
|
|
338
344
|
_queryParams["filter_source_task_list_id"] = filterSourceTaskListId;
|
|
339
345
|
}
|
|
346
|
+
if (filterEntryTag !== undefined) {
|
|
347
|
+
_queryParams["filter_entry_tag"] = filterEntryTag;
|
|
348
|
+
}
|
|
340
349
|
if (filterDeadlineGte !== undefined) {
|
|
341
350
|
_queryParams["filter_deadline_gte"] = filterDeadlineGte;
|
|
342
351
|
}
|
|
@@ -386,7 +395,7 @@ class OperationsTasks {
|
|
|
386
395
|
});
|
|
387
396
|
}
|
|
388
397
|
/**
|
|
389
|
-
* Lists OperationsTasks for the caller's organization, with order ids / order short id / order off-CHRT reference id / department / type / status / assignee / source task list / deadline filtering, sorting, and pagination. | authz: min_org_role=operator | () -> (OperationsTaskListRes)
|
|
398
|
+
* Lists OperationsTasks for the caller's organization, with order ids / order short id / order off-CHRT reference id / department / type / status / assignee / source task list / entry tag / deadline filtering, sorting, and pagination. | authz: min_org_role=operator | () -> (OperationsTaskListRes)
|
|
390
399
|
*
|
|
391
400
|
* @param {Chrt.operations.OperationsTasksListV1Request} request
|
|
392
401
|
* @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -403,11 +412,12 @@ class OperationsTasks {
|
|
|
403
412
|
* filter_order_ids: ["filter_order_ids"],
|
|
404
413
|
* filter_order_short_id: "filter_order_short_id",
|
|
405
414
|
* filter_order_off_chrt_reference_id: "filter_order_off_chrt_reference_id",
|
|
406
|
-
*
|
|
415
|
+
* filter_department_ids: ["filter_department_ids"],
|
|
407
416
|
* filter_task_type: ["review_order_details"],
|
|
408
417
|
* filter_status: ["not_started"],
|
|
409
418
|
* filter_assigned_user_id: "filter_assigned_user_id",
|
|
410
419
|
* filter_source_task_list_id: "filter_source_task_list_id",
|
|
420
|
+
* filter_entry_tag: "filter_entry_tag",
|
|
411
421
|
* filter_deadline_gte: "2024-01-15T09:30:00Z",
|
|
412
422
|
* filter_deadline_lte: "2024-01-15T09:30:00Z"
|
|
413
423
|
* })
|
|
@@ -418,7 +428,7 @@ class OperationsTasks {
|
|
|
418
428
|
__listV1() {
|
|
419
429
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
420
430
|
var _a, _b, _c, _d, _e, _f;
|
|
421
|
-
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;
|
|
422
432
|
const _queryParams = {};
|
|
423
433
|
if (sortBy !== undefined) {
|
|
424
434
|
_queryParams["sort_by"] = sortBy;
|
|
@@ -449,8 +459,13 @@ class OperationsTasks {
|
|
|
449
459
|
if (filterOrderOffChrtReferenceId !== undefined) {
|
|
450
460
|
_queryParams["filter_order_off_chrt_reference_id"] = filterOrderOffChrtReferenceId;
|
|
451
461
|
}
|
|
452
|
-
if (
|
|
453
|
-
|
|
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
|
+
}
|
|
454
469
|
}
|
|
455
470
|
if (filterTaskType !== undefined) {
|
|
456
471
|
if (Array.isArray(filterTaskType)) {
|
|
@@ -474,6 +489,9 @@ class OperationsTasks {
|
|
|
474
489
|
if (filterSourceTaskListId !== undefined) {
|
|
475
490
|
_queryParams["filter_source_task_list_id"] = filterSourceTaskListId;
|
|
476
491
|
}
|
|
492
|
+
if (filterEntryTag !== undefined) {
|
|
493
|
+
_queryParams["filter_entry_tag"] = filterEntryTag;
|
|
494
|
+
}
|
|
477
495
|
if (filterDeadlineGte !== undefined) {
|
|
478
496
|
_queryParams["filter_deadline_gte"] = filterDeadlineGte;
|
|
479
497
|
}
|
|
@@ -658,7 +676,142 @@ class OperationsTasks {
|
|
|
658
676
|
});
|
|
659
677
|
}
|
|
660
678
|
/**
|
|
661
|
-
*
|
|
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
|
+
}
|
|
746
|
+
/**
|
|
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)
|
|
748
|
+
*
|
|
749
|
+
* @param {Chrt.operations.OperationsTasksUpdateDepartmentManyReq} request
|
|
750
|
+
* @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
|
|
751
|
+
*
|
|
752
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
753
|
+
*
|
|
754
|
+
* @example
|
|
755
|
+
* await client.operations.operationsTasks.updateDepartmentManyV1({
|
|
756
|
+
* operations_task_ids: ["operations_task_ids"]
|
|
757
|
+
* })
|
|
758
|
+
*/
|
|
759
|
+
updateDepartmentManyV1(request, requestOptions) {
|
|
760
|
+
return core.HttpResponsePromise.fromPromise(this.__updateDepartmentManyV1(request, requestOptions));
|
|
761
|
+
}
|
|
762
|
+
__updateDepartmentManyV1(request, requestOptions) {
|
|
763
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
764
|
+
var _a, _b, _c, _d;
|
|
765
|
+
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
766
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
767
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "operations/operations_tasks/update_department_many/v1"),
|
|
768
|
+
method: "PATCH",
|
|
769
|
+
headers: _headers,
|
|
770
|
+
contentType: "application/json",
|
|
771
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
772
|
+
requestType: "json",
|
|
773
|
+
body: request,
|
|
774
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
775
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
776
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
777
|
+
});
|
|
778
|
+
if (_response.ok) {
|
|
779
|
+
return {
|
|
780
|
+
data: _response.body,
|
|
781
|
+
rawResponse: _response.rawResponse,
|
|
782
|
+
};
|
|
783
|
+
}
|
|
784
|
+
if (_response.error.reason === "status-code") {
|
|
785
|
+
switch (_response.error.statusCode) {
|
|
786
|
+
case 422:
|
|
787
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
788
|
+
default:
|
|
789
|
+
throw new errors.ChrtError({
|
|
790
|
+
statusCode: _response.error.statusCode,
|
|
791
|
+
body: _response.error.body,
|
|
792
|
+
rawResponse: _response.rawResponse,
|
|
793
|
+
});
|
|
794
|
+
}
|
|
795
|
+
}
|
|
796
|
+
switch (_response.error.reason) {
|
|
797
|
+
case "non-json":
|
|
798
|
+
throw new errors.ChrtError({
|
|
799
|
+
statusCode: _response.error.statusCode,
|
|
800
|
+
body: _response.error.rawBody,
|
|
801
|
+
rawResponse: _response.rawResponse,
|
|
802
|
+
});
|
|
803
|
+
case "timeout":
|
|
804
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /operations/operations_tasks/update_department_many/v1.");
|
|
805
|
+
case "unknown":
|
|
806
|
+
throw new errors.ChrtError({
|
|
807
|
+
message: _response.error.errorMessage,
|
|
808
|
+
rawResponse: _response.rawResponse,
|
|
809
|
+
});
|
|
810
|
+
}
|
|
811
|
+
});
|
|
812
|
+
}
|
|
813
|
+
/**
|
|
814
|
+
* Creates a new OperationsTask on an Order where the caller is coordinator or executor. Uses the explicit department_id or leaves the task unassigned. | authz_personas=[coordinator_org_operators, order_executor_org_operators] | (OperationsTaskClientCreate1) -> (PydanticObjectId)
|
|
662
815
|
*
|
|
663
816
|
* @param {Chrt.operations.OperationsTaskClientCreate1} request
|
|
664
817
|
* @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -844,7 +997,7 @@ class OperationsTasks {
|
|
|
844
997
|
});
|
|
845
998
|
}
|
|
846
999
|
/**
|
|
847
|
-
* 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)
|
|
848
1001
|
*
|
|
849
1002
|
* @param {string} taskId
|
|
850
1003
|
* @param {Chrt.operations.OperationsTaskClientUpdate1} request
|
|
@@ -15,6 +15,7 @@ import * as Chrt from "../../../../../../index.js";
|
|
|
15
15
|
export interface OperationsTaskClientCreate1 {
|
|
16
16
|
assigned_user_ids?: string[];
|
|
17
17
|
deadline_timestamp?: string;
|
|
18
|
+
department_id?: string | null;
|
|
18
19
|
description: string;
|
|
19
20
|
order_id: string;
|
|
20
21
|
schema_version: number;
|
|
@@ -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,11 +13,12 @@ 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",
|
|
20
20
|
* filter_source_task_list_id: "filter_source_task_list_id",
|
|
21
|
+
* filter_entry_tag: "filter_entry_tag",
|
|
21
22
|
* filter_deadline_gte: "2024-01-15T09:30:00Z",
|
|
22
23
|
* filter_deadline_lte: "2024-01-15T09:30:00Z"
|
|
23
24
|
* }
|
|
@@ -37,8 +38,8 @@ export interface OperationsTasksExpandedListV1Request {
|
|
|
37
38
|
filter_order_short_id?: string | null;
|
|
38
39
|
/** Filter to tasks for this order off-CHRT reference ID */
|
|
39
40
|
filter_order_off_chrt_reference_id?: string | null;
|
|
40
|
-
/** Filter to tasks routed to
|
|
41
|
-
|
|
41
|
+
/** Filter to tasks routed to any of these departments (desk queues) */
|
|
42
|
+
filter_department_ids?: (string | null) | (string | null)[];
|
|
42
43
|
/** Filter by task type(s). Defaults to all types. */
|
|
43
44
|
filter_task_type?: (Chrt.OperationsTaskTypeEnum | null) | (Chrt.OperationsTaskTypeEnum | null)[];
|
|
44
45
|
/** Filter by status(es). Defaults to all statuses. */
|
|
@@ -47,6 +48,8 @@ export interface OperationsTasksExpandedListV1Request {
|
|
|
47
48
|
filter_assigned_user_id?: string | null;
|
|
48
49
|
/** Filter to tasks created from this OperationsTaskList */
|
|
49
50
|
filter_source_task_list_id?: string | null;
|
|
51
|
+
/** Filter by exact entry tag (case-sensitive) */
|
|
52
|
+
filter_entry_tag?: string | null;
|
|
50
53
|
/** Filter to tasks with deadline >= this timestamp */
|
|
51
54
|
filter_deadline_gte?: string | null;
|
|
52
55
|
/** Filter to tasks with deadline <= this timestamp */
|
|
@@ -13,11 +13,12 @@ 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",
|
|
20
20
|
* filter_source_task_list_id: "filter_source_task_list_id",
|
|
21
|
+
* filter_entry_tag: "filter_entry_tag",
|
|
21
22
|
* filter_deadline_gte: "2024-01-15T09:30:00Z",
|
|
22
23
|
* filter_deadline_lte: "2024-01-15T09:30:00Z"
|
|
23
24
|
* }
|
|
@@ -37,8 +38,8 @@ export interface OperationsTasksListV1Request {
|
|
|
37
38
|
filter_order_short_id?: string | null;
|
|
38
39
|
/** Filter to tasks for this order off-CHRT reference ID */
|
|
39
40
|
filter_order_off_chrt_reference_id?: string | null;
|
|
40
|
-
/** Filter to tasks routed to
|
|
41
|
-
|
|
41
|
+
/** Filter to tasks routed to any of these departments (desk queues) */
|
|
42
|
+
filter_department_ids?: (string | null) | (string | null)[];
|
|
42
43
|
/** Filter by task type(s). Defaults to all types. */
|
|
43
44
|
filter_task_type?: (Chrt.OperationsTaskTypeEnum | null) | (Chrt.OperationsTaskTypeEnum | null)[];
|
|
44
45
|
/** Filter by status(es). Defaults to all statuses. */
|
|
@@ -47,6 +48,8 @@ export interface OperationsTasksListV1Request {
|
|
|
47
48
|
filter_assigned_user_id?: string | null;
|
|
48
49
|
/** Filter to tasks created from this OperationsTaskList */
|
|
49
50
|
filter_source_task_list_id?: string | null;
|
|
51
|
+
/** Filter by exact entry tag (case-sensitive) */
|
|
52
|
+
filter_entry_tag?: string | null;
|
|
50
53
|
/** Filter to tasks with deadline >= this timestamp */
|
|
51
54
|
filter_deadline_gte?: string | null;
|
|
52
55
|
/** Filter to tasks with deadline <= this timestamp */
|
|
@@ -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
|
+
}
|
|
@@ -3,9 +3,12 @@
|
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* @example
|
|
6
|
-
* {
|
|
6
|
+
* {
|
|
7
|
+
* operations_task_ids: ["operations_task_ids"]
|
|
8
|
+
* }
|
|
7
9
|
*/
|
|
8
|
-
export interface
|
|
10
|
+
export interface OperationsTasksUpdateDepartmentManyReq {
|
|
9
11
|
department_id?: string | null;
|
|
10
12
|
department_id__set_to_None?: boolean;
|
|
13
|
+
operations_task_ids: string[];
|
|
11
14
|
}
|
package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/index.d.ts
CHANGED
|
@@ -4,5 +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";
|
|
8
|
+
export { type OperationsTasksUpdateDepartmentManyReq } from "./OperationsTasksUpdateDepartmentManyReq.js";
|
|
7
9
|
export { type OperationsTaskClientCreate1 } from "./OperationsTaskClientCreate1.js";
|
|
8
10
|
export { type OperationsTaskClientUpdate1 } from "./OperationsTaskClientUpdate1.js";
|
|
@@ -62,7 +62,7 @@ export declare class Orgs {
|
|
|
62
62
|
getInfoV1(requestOptions?: Orgs.RequestOptions): core.HttpResponsePromise<Chrt.OrgInfoResponse>;
|
|
63
63
|
private __getInfoV1;
|
|
64
64
|
/**
|
|
65
|
-
* Lists all members of the caller's organization with their roles and details. Supports search by name, filtering by role, sorting, and pagination. | () -> (OrgMemberListRes)
|
|
65
|
+
* Lists all members of the caller's organization with their roles and details. Supports search by name, filtering by role and user IDs, sorting, and pagination. | () -> (OrgMemberListRes)
|
|
66
66
|
*
|
|
67
67
|
* @param {Chrt.OrgsListMembersV1Request} request
|
|
68
68
|
* @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -72,6 +72,7 @@ export declare class Orgs {
|
|
|
72
72
|
* @example
|
|
73
73
|
* await client.orgs.listMembersV1({
|
|
74
74
|
* filter_role: ["owner"],
|
|
75
|
+
* filter_user_ids: ["filter_user_ids"],
|
|
75
76
|
* sort_by: "first_name",
|
|
76
77
|
* sort_order: "asc",
|
|
77
78
|
* page: 1,
|
|
@@ -142,7 +142,7 @@ class Orgs {
|
|
|
142
142
|
});
|
|
143
143
|
}
|
|
144
144
|
/**
|
|
145
|
-
* Lists all members of the caller's organization with their roles and details. Supports search by name, filtering by role, sorting, and pagination. | () -> (OrgMemberListRes)
|
|
145
|
+
* Lists all members of the caller's organization with their roles and details. Supports search by name, filtering by role and user IDs, sorting, and pagination. | () -> (OrgMemberListRes)
|
|
146
146
|
*
|
|
147
147
|
* @param {Chrt.OrgsListMembersV1Request} request
|
|
148
148
|
* @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -152,6 +152,7 @@ class Orgs {
|
|
|
152
152
|
* @example
|
|
153
153
|
* await client.orgs.listMembersV1({
|
|
154
154
|
* filter_role: ["owner"],
|
|
155
|
+
* filter_user_ids: ["filter_user_ids"],
|
|
155
156
|
* sort_by: "first_name",
|
|
156
157
|
* sort_order: "asc",
|
|
157
158
|
* page: 1,
|
|
@@ -165,7 +166,7 @@ class Orgs {
|
|
|
165
166
|
__listMembersV1() {
|
|
166
167
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
167
168
|
var _a, _b, _c, _d, _e, _f;
|
|
168
|
-
const { filter_role: filterRole, sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, } = request;
|
|
169
|
+
const { filter_role: filterRole, filter_user_ids: filterUserIds, sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, } = request;
|
|
169
170
|
const _queryParams = {};
|
|
170
171
|
if (filterRole !== undefined) {
|
|
171
172
|
if (Array.isArray(filterRole)) {
|
|
@@ -175,6 +176,14 @@ class Orgs {
|
|
|
175
176
|
_queryParams["filter_role"] = filterRole;
|
|
176
177
|
}
|
|
177
178
|
}
|
|
179
|
+
if (filterUserIds !== undefined) {
|
|
180
|
+
if (Array.isArray(filterUserIds)) {
|
|
181
|
+
_queryParams["filter_user_ids"] = filterUserIds.map((item) => item);
|
|
182
|
+
}
|
|
183
|
+
else {
|
|
184
|
+
_queryParams["filter_user_ids"] = filterUserIds;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
178
187
|
if (sortBy !== undefined) {
|
|
179
188
|
_queryParams["sort_by"] = sortBy;
|
|
180
189
|
}
|
|
@@ -6,6 +6,7 @@ import * as Chrt from "../../../../index.js";
|
|
|
6
6
|
* @example
|
|
7
7
|
* {
|
|
8
8
|
* filter_role: ["owner"],
|
|
9
|
+
* filter_user_ids: ["filter_user_ids"],
|
|
9
10
|
* sort_by: "first_name",
|
|
10
11
|
* sort_order: "asc",
|
|
11
12
|
* page: 1,
|
|
@@ -16,6 +17,8 @@ import * as Chrt from "../../../../index.js";
|
|
|
16
17
|
export interface OrgsListMembersV1Request {
|
|
17
18
|
/** Filter by organization role(s) */
|
|
18
19
|
filter_role?: (Chrt.OrgRoleEnum | null) | (Chrt.OrgRoleEnum | null)[];
|
|
20
|
+
/** Filter by user ID(s) */
|
|
21
|
+
filter_user_ids?: (string | null) | (string | null)[];
|
|
19
22
|
/** Field to sort by */
|
|
20
23
|
sort_by?: Chrt.OrgMemberSortByEnum | null;
|
|
21
24
|
/** Sort order (asc or desc) */
|
|
@@ -33,6 +33,19 @@ export declare class Drivers {
|
|
|
33
33
|
protected _complianceDocuments: ComplianceDocuments | undefined;
|
|
34
34
|
constructor(_options?: Drivers.Options);
|
|
35
35
|
get complianceDocuments(): ComplianceDocuments;
|
|
36
|
+
/**
|
|
37
|
+
* Archives a driver after draft, staged, and in-progress assignments are resolved, and denies their open bid threads. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (bool)
|
|
38
|
+
*
|
|
39
|
+
* @param {string} driverId
|
|
40
|
+
* @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
|
|
41
|
+
*
|
|
42
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
* await client.shipping.drivers.archiveV1("driver_id")
|
|
46
|
+
*/
|
|
47
|
+
archiveV1(driverId: string, requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
48
|
+
private __archiveV1;
|
|
36
49
|
/**
|
|
37
50
|
* Creates a new driver profile for the target user (defaults to caller). Drivers can create themselves; operators+ can create any org member. Provider orgs only. | (DriverClientCreate1) -> (PydanticObjectId)
|
|
38
51
|
*
|
|
@@ -83,6 +96,11 @@ export declare class Drivers {
|
|
|
83
96
|
* page: 1,
|
|
84
97
|
* page_size: 1,
|
|
85
98
|
* search: "search",
|
|
99
|
+
* filter_waiting: true,
|
|
100
|
+
* filter_auto_assign_enabled: true,
|
|
101
|
+
* filter_vehicle_type: ["sedan"],
|
|
102
|
+
* filter_by_driver_id: "filter_by_driver_id",
|
|
103
|
+
* filter_archived: true,
|
|
86
104
|
* filter_available_according_to_driver: true,
|
|
87
105
|
* filter_available_according_to_operators: true,
|
|
88
106
|
* filter_status: ["unassigned"]
|
|
@@ -101,6 +119,7 @@ export declare class Drivers {
|
|
|
101
119
|
* @example
|
|
102
120
|
* await client.shipping.drivers.listOrgMembersAndDriversV1({
|
|
103
121
|
* search: "search",
|
|
122
|
+
* filter_archived: true,
|
|
104
123
|
* filter_role: ["owner"],
|
|
105
124
|
* filter_available_according_to_driver: true,
|
|
106
125
|
* filter_available_according_to_operators: true,
|
|
@@ -230,6 +249,19 @@ export declare class Drivers {
|
|
|
230
249
|
*/
|
|
231
250
|
getStatsV1(driverId: string, request: Chrt.shipping.DriverStatsReq, requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<Chrt.DriverStatsRes>;
|
|
232
251
|
private __getStatsV1;
|
|
252
|
+
/**
|
|
253
|
+
* Restores an archived driver with active organization membership. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (bool)
|
|
254
|
+
*
|
|
255
|
+
* @param {string} driverId
|
|
256
|
+
* @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
|
|
257
|
+
*
|
|
258
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
259
|
+
*
|
|
260
|
+
* @example
|
|
261
|
+
* await client.shipping.drivers.unarchiveV1("driver_id")
|
|
262
|
+
*/
|
|
263
|
+
unarchiveV1(driverId: string, requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
264
|
+
private __unarchiveV1;
|
|
233
265
|
/**
|
|
234
266
|
* Updates driver contact details and vehicle type assignments. Provider orgs only; caller must be the driver (self) or an operator+. | (DriverClientUpdate1) -> (bool)
|
|
235
267
|
*
|