@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
|
@@ -87,7 +87,7 @@ export declare class OrgBiddingGroups {
|
|
|
87
87
|
deleteV1(groupId: string, requestOptions?: OrgBiddingGroups.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
88
88
|
private __deleteV1;
|
|
89
89
|
/**
|
|
90
|
-
* Lists org bidding groups owned by the caller's org with filtering, sorting, and
|
|
90
|
+
* Lists org bidding groups owned by the caller's org with filtering, sorting, pagination, and member organization public data. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (OrgBiddingGroupListRes)
|
|
91
91
|
*
|
|
92
92
|
* @param {Chrt.listing.OrgBiddingGroupsListByOrgV1Request} request
|
|
93
93
|
* @param {OrgBiddingGroups.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -263,7 +263,7 @@ export class OrgBiddingGroups {
|
|
|
263
263
|
});
|
|
264
264
|
}
|
|
265
265
|
/**
|
|
266
|
-
* Lists org bidding groups owned by the caller's org with filtering, sorting, and
|
|
266
|
+
* Lists org bidding groups owned by the caller's org with filtering, sorting, pagination, and member organization public data. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (OrgBiddingGroupListRes)
|
|
267
267
|
*
|
|
268
268
|
* @param {Chrt.listing.OrgBiddingGroupsListByOrgV1Request} request
|
|
269
269
|
* @param {OrgBiddingGroups.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -45,7 +45,7 @@ export declare class Departments {
|
|
|
45
45
|
addOperatorV1(departmentId: string, userId: string, requestOptions?: Departments.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
46
46
|
private __addOperatorV1;
|
|
47
47
|
/**
|
|
48
|
-
* Lists department configurations for the caller's organization. | authz: min_org_role=operator | () -> (DepartmentListRes)
|
|
48
|
+
* Lists department configurations for the caller's organization with filtering, sorting, pagination, and Atlas Search. | authz: min_org_role=operator | () -> (DepartmentListRes)
|
|
49
49
|
*
|
|
50
50
|
* @param {Chrt.operations.DepartmentsListV1Request} request
|
|
51
51
|
* @param {Departments.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -56,6 +56,7 @@ export declare class Departments {
|
|
|
56
56
|
* await client.operations.departments.listV1({
|
|
57
57
|
* sort_by: "created_at",
|
|
58
58
|
* sort_order: "asc",
|
|
59
|
+
* search: "search",
|
|
59
60
|
* page: 1,
|
|
60
61
|
* page_size: 1,
|
|
61
62
|
* filter_department_type: ["aerospace"]
|
|
@@ -80,7 +80,7 @@ export class Departments {
|
|
|
80
80
|
});
|
|
81
81
|
}
|
|
82
82
|
/**
|
|
83
|
-
* Lists department configurations for the caller's organization. | authz: min_org_role=operator | () -> (DepartmentListRes)
|
|
83
|
+
* Lists department configurations for the caller's organization with filtering, sorting, pagination, and Atlas Search. | authz: min_org_role=operator | () -> (DepartmentListRes)
|
|
84
84
|
*
|
|
85
85
|
* @param {Chrt.operations.DepartmentsListV1Request} request
|
|
86
86
|
* @param {Departments.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -91,6 +91,7 @@ export class Departments {
|
|
|
91
91
|
* await client.operations.departments.listV1({
|
|
92
92
|
* sort_by: "created_at",
|
|
93
93
|
* sort_order: "asc",
|
|
94
|
+
* search: "search",
|
|
94
95
|
* page: 1,
|
|
95
96
|
* page_size: 1,
|
|
96
97
|
* filter_department_type: ["aerospace"]
|
|
@@ -102,7 +103,7 @@ export class Departments {
|
|
|
102
103
|
__listV1() {
|
|
103
104
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
104
105
|
var _a, _b, _c, _d, _e, _f;
|
|
105
|
-
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, filter_department_type: filterDepartmentType, } = request;
|
|
106
|
+
const { sort_by: sortBy, sort_order: sortOrder, search, page, page_size: pageSize, filter_department_type: filterDepartmentType, } = request;
|
|
106
107
|
const _queryParams = {};
|
|
107
108
|
if (sortBy !== undefined) {
|
|
108
109
|
_queryParams["sort_by"] = sortBy;
|
|
@@ -110,6 +111,9 @@ export class Departments {
|
|
|
110
111
|
if (sortOrder !== undefined) {
|
|
111
112
|
_queryParams["sort_order"] = sortOrder;
|
|
112
113
|
}
|
|
114
|
+
if (search !== undefined) {
|
|
115
|
+
_queryParams["search"] = search;
|
|
116
|
+
}
|
|
113
117
|
if (page !== undefined) {
|
|
114
118
|
_queryParams["page"] = (_a = page === null || page === void 0 ? void 0 : page.toString()) !== null && _a !== void 0 ? _a : null;
|
|
115
119
|
}
|
|
@@ -7,6 +7,7 @@ import * as Chrt from "../../../../../../index.mjs";
|
|
|
7
7
|
* {
|
|
8
8
|
* sort_by: "created_at",
|
|
9
9
|
* sort_order: "asc",
|
|
10
|
+
* search: "search",
|
|
10
11
|
* page: 1,
|
|
11
12
|
* page_size: 1,
|
|
12
13
|
* filter_department_type: ["aerospace"]
|
|
@@ -17,6 +18,8 @@ export interface DepartmentsListV1Request {
|
|
|
17
18
|
sort_by?: Chrt.DepartmentSortByEnum | null;
|
|
18
19
|
/** Sort order (asc or desc) */
|
|
19
20
|
sort_order?: Chrt.SortOrderEnum | null;
|
|
21
|
+
/** Search name and short_id using Atlas Search */
|
|
22
|
+
search?: string | null;
|
|
20
23
|
page?: number | null;
|
|
21
24
|
page_size?: number | null;
|
|
22
25
|
/** Filter by department type(s) */
|
|
@@ -31,7 +31,7 @@ export declare class OperationsTaskLists {
|
|
|
31
31
|
protected readonly _options: OperationsTaskLists.Options;
|
|
32
32
|
constructor(_options?: OperationsTaskLists.Options);
|
|
33
33
|
/**
|
|
34
|
-
* Materializes each entry of an OperationsTaskList into an OperationsTask on the Order (status=not_started, source_task_list_id set). Deadlines resolve per-entry from its anchor+offset; initial_deadline_timestamp, if set, pins the first entry and the chain follows. department_id
|
|
34
|
+
* Materializes each entry of an OperationsTaskList into an OperationsTask on the Order (status=not_started, source_task_list_id set). Deadlines resolve per-entry from its anchor+offset; initial_deadline_timestamp, if set, pins the first entry and the chain follows. department_id explicitly assigns the materialized tasks; omitted leaves them unassigned. No dedup — applying twice creates duplicate tasks. | authz_personas=[coordinator_org_operators, order_executor_org_operators] | () -> (list[PydanticObjectId])
|
|
35
35
|
*
|
|
36
36
|
* @param {string} taskListId
|
|
37
37
|
* @param {string} orderId
|
|
@@ -43,6 +43,7 @@ export declare class OperationsTaskLists {
|
|
|
43
43
|
* @example
|
|
44
44
|
* await client.operations.operationsTaskLists.applyToOrderV1("task_list_id", "order_id", {
|
|
45
45
|
* department_id: "department_id",
|
|
46
|
+
* entry_tag: "entry_tag",
|
|
46
47
|
* initial_deadline_timestamp: "2024-01-15T09:30:00Z"
|
|
47
48
|
* })
|
|
48
49
|
*/
|
|
@@ -127,7 +128,7 @@ export declare class OperationsTaskLists {
|
|
|
127
128
|
reorderEntriesV1(taskListId: string, request?: Chrt.operations.OperationsTaskListReorderEntries1, requestOptions?: OperationsTaskLists.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
128
129
|
private __reorderEntriesV1;
|
|
129
130
|
/**
|
|
130
|
-
* Lists OperationsTaskLists for the caller's organization with filtering, sorting, and
|
|
131
|
+
* Lists OperationsTaskLists for the caller's organization with filtering, sorting, pagination, and Atlas Search. | authz: min_org_role=operator | () -> (OperationsTaskListListRes)
|
|
131
132
|
*
|
|
132
133
|
* @param {Chrt.operations.OperationsTaskListsListV1Request} request
|
|
133
134
|
* @param {OperationsTaskLists.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -138,6 +139,7 @@ export declare class OperationsTaskLists {
|
|
|
138
139
|
* await client.operations.operationsTaskLists.listV1({
|
|
139
140
|
* sort_by: "created_at_timestamp",
|
|
140
141
|
* sort_order: "asc",
|
|
142
|
+
* search: "search",
|
|
141
143
|
* page: 1,
|
|
142
144
|
* page_size: 1,
|
|
143
145
|
* filter_archived: true
|
|
@@ -146,7 +148,7 @@ export declare class OperationsTaskLists {
|
|
|
146
148
|
listV1(request?: Chrt.operations.OperationsTaskListsListV1Request, requestOptions?: OperationsTaskLists.RequestOptions): core.HttpResponsePromise<Chrt.OperationsTaskListListRes>;
|
|
147
149
|
private __listV1;
|
|
148
150
|
/**
|
|
149
|
-
* Removes the OperationsTasks this OperationsTaskList added to the Order (matched by source_task_list_id). Only untouched (not_started) tasks are deleted; started/completed/skipped/cancelled tasks are kept. Returns deleted and kept counts. |
|
|
151
|
+
* Removes the OperationsTasks this OperationsTaskList added to the Order (matched by source_task_list_id). Only untouched (not_started) tasks are deleted; started/completed/skipped/cancelled tasks are kept. Returns deleted and kept counts. | authz_personas=[coordinator_org_operators, order_executor_org_operators] | () -> (OperationsTaskListRemoveFromOrderRes1)
|
|
150
152
|
*
|
|
151
153
|
* @param {string} taskListId
|
|
152
154
|
* @param {string} orderId
|
|
@@ -20,7 +20,7 @@ export class OperationsTaskLists {
|
|
|
20
20
|
this._options = _options;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
-
* Materializes each entry of an OperationsTaskList into an OperationsTask on the Order (status=not_started, source_task_list_id set). Deadlines resolve per-entry from its anchor+offset; initial_deadline_timestamp, if set, pins the first entry and the chain follows. department_id
|
|
23
|
+
* Materializes each entry of an OperationsTaskList into an OperationsTask on the Order (status=not_started, source_task_list_id set). Deadlines resolve per-entry from its anchor+offset; initial_deadline_timestamp, if set, pins the first entry and the chain follows. department_id explicitly assigns the materialized tasks; omitted leaves them unassigned. No dedup — applying twice creates duplicate tasks. | authz_personas=[coordinator_org_operators, order_executor_org_operators] | () -> (list[PydanticObjectId])
|
|
24
24
|
*
|
|
25
25
|
* @param {string} taskListId
|
|
26
26
|
* @param {string} orderId
|
|
@@ -32,6 +32,7 @@ export class OperationsTaskLists {
|
|
|
32
32
|
* @example
|
|
33
33
|
* await client.operations.operationsTaskLists.applyToOrderV1("task_list_id", "order_id", {
|
|
34
34
|
* department_id: "department_id",
|
|
35
|
+
* entry_tag: "entry_tag",
|
|
35
36
|
* initial_deadline_timestamp: "2024-01-15T09:30:00Z"
|
|
36
37
|
* })
|
|
37
38
|
*/
|
|
@@ -41,11 +42,14 @@ export class OperationsTaskLists {
|
|
|
41
42
|
__applyToOrderV1(taskListId_1, orderId_1) {
|
|
42
43
|
return __awaiter(this, arguments, void 0, function* (taskListId, orderId, request = {}, requestOptions) {
|
|
43
44
|
var _a, _b, _c, _d;
|
|
44
|
-
const { department_id: departmentId, initial_deadline_timestamp: initialDeadlineTimestamp } = request;
|
|
45
|
+
const { department_id: departmentId, entry_tag: entryTag, initial_deadline_timestamp: initialDeadlineTimestamp, } = request;
|
|
45
46
|
const _queryParams = {};
|
|
46
47
|
if (departmentId !== undefined) {
|
|
47
48
|
_queryParams["department_id"] = departmentId;
|
|
48
49
|
}
|
|
50
|
+
if (entryTag !== undefined) {
|
|
51
|
+
_queryParams["entry_tag"] = entryTag;
|
|
52
|
+
}
|
|
49
53
|
if (initialDeadlineTimestamp !== undefined) {
|
|
50
54
|
_queryParams["initial_deadline_timestamp"] = initialDeadlineTimestamp;
|
|
51
55
|
}
|
|
@@ -409,7 +413,7 @@ export class OperationsTaskLists {
|
|
|
409
413
|
});
|
|
410
414
|
}
|
|
411
415
|
/**
|
|
412
|
-
* Lists OperationsTaskLists for the caller's organization with filtering, sorting, and
|
|
416
|
+
* Lists OperationsTaskLists for the caller's organization with filtering, sorting, pagination, and Atlas Search. | authz: min_org_role=operator | () -> (OperationsTaskListListRes)
|
|
413
417
|
*
|
|
414
418
|
* @param {Chrt.operations.OperationsTaskListsListV1Request} request
|
|
415
419
|
* @param {OperationsTaskLists.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -420,6 +424,7 @@ export class OperationsTaskLists {
|
|
|
420
424
|
* await client.operations.operationsTaskLists.listV1({
|
|
421
425
|
* sort_by: "created_at_timestamp",
|
|
422
426
|
* sort_order: "asc",
|
|
427
|
+
* search: "search",
|
|
423
428
|
* page: 1,
|
|
424
429
|
* page_size: 1,
|
|
425
430
|
* filter_archived: true
|
|
@@ -431,7 +436,7 @@ export class OperationsTaskLists {
|
|
|
431
436
|
__listV1() {
|
|
432
437
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
433
438
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
434
|
-
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, filter_archived: filterArchived, } = request;
|
|
439
|
+
const { sort_by: sortBy, sort_order: sortOrder, search, page, page_size: pageSize, filter_archived: filterArchived, } = request;
|
|
435
440
|
const _queryParams = {};
|
|
436
441
|
if (sortBy !== undefined) {
|
|
437
442
|
_queryParams["sort_by"] = sortBy;
|
|
@@ -439,6 +444,9 @@ export class OperationsTaskLists {
|
|
|
439
444
|
if (sortOrder !== undefined) {
|
|
440
445
|
_queryParams["sort_order"] = sortOrder;
|
|
441
446
|
}
|
|
447
|
+
if (search !== undefined) {
|
|
448
|
+
_queryParams["search"] = search;
|
|
449
|
+
}
|
|
442
450
|
if (page !== undefined) {
|
|
443
451
|
_queryParams["page"] = (_a = page === null || page === void 0 ? void 0 : page.toString()) !== null && _a !== void 0 ? _a : null;
|
|
444
452
|
}
|
|
@@ -491,7 +499,7 @@ export class OperationsTaskLists {
|
|
|
491
499
|
});
|
|
492
500
|
}
|
|
493
501
|
/**
|
|
494
|
-
* Removes the OperationsTasks this OperationsTaskList added to the Order (matched by source_task_list_id). Only untouched (not_started) tasks are deleted; started/completed/skipped/cancelled tasks are kept. Returns deleted and kept counts. |
|
|
502
|
+
* Removes the OperationsTasks this OperationsTaskList added to the Order (matched by source_task_list_id). Only untouched (not_started) tasks are deleted; started/completed/skipped/cancelled tasks are kept. Returns deleted and kept counts. | authz_personas=[coordinator_org_operators, order_executor_org_operators] | () -> (OperationsTaskListRemoveFromOrderRes1)
|
|
495
503
|
*
|
|
496
504
|
* @param {string} taskListId
|
|
497
505
|
* @param {string} orderId
|
|
@@ -5,12 +5,15 @@
|
|
|
5
5
|
* @example
|
|
6
6
|
* {
|
|
7
7
|
* department_id: "department_id",
|
|
8
|
+
* entry_tag: "entry_tag",
|
|
8
9
|
* initial_deadline_timestamp: "2024-01-15T09:30:00Z"
|
|
9
10
|
* }
|
|
10
11
|
*/
|
|
11
12
|
export interface OperationsTaskListsApplyToOrderV1Request {
|
|
12
|
-
/**
|
|
13
|
+
/** Department for materialized tasks; omitted leaves them unassigned. */
|
|
13
14
|
department_id?: string | null;
|
|
15
|
+
/** Context tag copied onto every generated task */
|
|
16
|
+
entry_tag?: string | null;
|
|
14
17
|
/** If set, pins the first entry's deadline; later FROM_PREVIOUS_TASK entries cascade from it. */
|
|
15
18
|
initial_deadline_timestamp?: string | null;
|
|
16
19
|
}
|
|
@@ -7,6 +7,7 @@ import * as Chrt from "../../../../../../index.mjs";
|
|
|
7
7
|
* {
|
|
8
8
|
* sort_by: "created_at_timestamp",
|
|
9
9
|
* sort_order: "asc",
|
|
10
|
+
* search: "search",
|
|
10
11
|
* page: 1,
|
|
11
12
|
* page_size: 1,
|
|
12
13
|
* filter_archived: true
|
|
@@ -17,6 +18,8 @@ export interface OperationsTaskListsListV1Request {
|
|
|
17
18
|
sort_by?: Chrt.OperationsTaskListSortByEnum | null;
|
|
18
19
|
/** Sort order (asc or desc) */
|
|
19
20
|
sort_order?: Chrt.SortOrderEnum | null;
|
|
21
|
+
/** Search name and description using Atlas Search */
|
|
22
|
+
search?: string | null;
|
|
20
23
|
page?: number | null;
|
|
21
24
|
page_size?: number | null;
|
|
22
25
|
/** Filter by archived flag. None=all, True=archived only, False=unarchived only. */
|
|
@@ -94,11 +94,12 @@ 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",
|
|
101
101
|
* filter_source_task_list_id: "filter_source_task_list_id",
|
|
102
|
+
* filter_entry_tag: "filter_entry_tag",
|
|
102
103
|
* filter_deadline_gte: "2024-01-15T09:30:00Z",
|
|
103
104
|
* filter_deadline_lte: "2024-01-15T09:30:00Z"
|
|
104
105
|
* })
|
|
@@ -106,7 +107,7 @@ export declare class OperationsTasks {
|
|
|
106
107
|
expandedListV1(request?: Chrt.operations.OperationsTasksExpandedListV1Request, requestOptions?: OperationsTasks.RequestOptions): core.HttpResponsePromise<Chrt.OperationsTaskExpandedListRes>;
|
|
107
108
|
private __expandedListV1;
|
|
108
109
|
/**
|
|
109
|
-
* 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)
|
|
110
|
+
* 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)
|
|
110
111
|
*
|
|
111
112
|
* @param {Chrt.operations.OperationsTasksListV1Request} request
|
|
112
113
|
* @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -123,11 +124,12 @@ export declare class OperationsTasks {
|
|
|
123
124
|
* filter_order_ids: ["filter_order_ids"],
|
|
124
125
|
* filter_order_short_id: "filter_order_short_id",
|
|
125
126
|
* filter_order_off_chrt_reference_id: "filter_order_off_chrt_reference_id",
|
|
126
|
-
*
|
|
127
|
+
* filter_department_ids: ["filter_department_ids"],
|
|
127
128
|
* filter_task_type: ["review_order_details"],
|
|
128
129
|
* filter_status: ["not_started"],
|
|
129
130
|
* filter_assigned_user_id: "filter_assigned_user_id",
|
|
130
131
|
* filter_source_task_list_id: "filter_source_task_list_id",
|
|
132
|
+
* filter_entry_tag: "filter_entry_tag",
|
|
131
133
|
* filter_deadline_gte: "2024-01-15T09:30:00Z",
|
|
132
134
|
* filter_deadline_lte: "2024-01-15T09:30:00Z"
|
|
133
135
|
* })
|
|
@@ -169,7 +171,38 @@ export declare class OperationsTasks {
|
|
|
169
171
|
setStatusV1(request: Chrt.operations.OperationsTasksSetStatusReq1, requestOptions?: OperationsTasks.RequestOptions): core.HttpResponsePromise<Chrt.OperationsTasksStatusUpdateRes1>;
|
|
170
172
|
private __setStatusV1;
|
|
171
173
|
/**
|
|
172
|
-
*
|
|
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;
|
|
189
|
+
/**
|
|
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)
|
|
191
|
+
*
|
|
192
|
+
* @param {Chrt.operations.OperationsTasksUpdateDepartmentManyReq} request
|
|
193
|
+
* @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
|
|
194
|
+
*
|
|
195
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
196
|
+
*
|
|
197
|
+
* @example
|
|
198
|
+
* await client.operations.operationsTasks.updateDepartmentManyV1({
|
|
199
|
+
* operations_task_ids: ["operations_task_ids"]
|
|
200
|
+
* })
|
|
201
|
+
*/
|
|
202
|
+
updateDepartmentManyV1(request: Chrt.operations.OperationsTasksUpdateDepartmentManyReq, requestOptions?: OperationsTasks.RequestOptions): core.HttpResponsePromise<Chrt.OperationsTasksUpdateDepartmentManyRes>;
|
|
203
|
+
private __updateDepartmentManyV1;
|
|
204
|
+
/**
|
|
205
|
+
* 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)
|
|
173
206
|
*
|
|
174
207
|
* @param {Chrt.operations.OperationsTaskClientCreate1} request
|
|
175
208
|
* @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -214,7 +247,7 @@ export declare class OperationsTasks {
|
|
|
214
247
|
deleteV1(taskId: string, requestOptions?: OperationsTasks.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
215
248
|
private __deleteV1;
|
|
216
249
|
/**
|
|
217
|
-
* 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)
|
|
218
251
|
*
|
|
219
252
|
* @param {string} taskId
|
|
220
253
|
* @param {Chrt.operations.OperationsTaskClientUpdate1} request
|
|
@@ -230,11 +230,12 @@ 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",
|
|
237
237
|
* filter_source_task_list_id: "filter_source_task_list_id",
|
|
238
|
+
* filter_entry_tag: "filter_entry_tag",
|
|
238
239
|
* filter_deadline_gte: "2024-01-15T09:30:00Z",
|
|
239
240
|
* filter_deadline_lte: "2024-01-15T09:30:00Z"
|
|
240
241
|
* })
|
|
@@ -245,7 +246,7 @@ export class OperationsTasks {
|
|
|
245
246
|
__expandedListV1() {
|
|
246
247
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
247
248
|
var _a, _b, _c, _d, _e, _f;
|
|
248
|
-
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;
|
|
249
250
|
const _queryParams = {};
|
|
250
251
|
if (sortBy !== undefined) {
|
|
251
252
|
_queryParams["sort_by"] = sortBy;
|
|
@@ -276,8 +277,13 @@ export class OperationsTasks {
|
|
|
276
277
|
if (filterOrderOffChrtReferenceId !== undefined) {
|
|
277
278
|
_queryParams["filter_order_off_chrt_reference_id"] = filterOrderOffChrtReferenceId;
|
|
278
279
|
}
|
|
279
|
-
if (
|
|
280
|
-
|
|
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
|
+
}
|
|
281
287
|
}
|
|
282
288
|
if (filterTaskType !== undefined) {
|
|
283
289
|
if (Array.isArray(filterTaskType)) {
|
|
@@ -301,6 +307,9 @@ export class OperationsTasks {
|
|
|
301
307
|
if (filterSourceTaskListId !== undefined) {
|
|
302
308
|
_queryParams["filter_source_task_list_id"] = filterSourceTaskListId;
|
|
303
309
|
}
|
|
310
|
+
if (filterEntryTag !== undefined) {
|
|
311
|
+
_queryParams["filter_entry_tag"] = filterEntryTag;
|
|
312
|
+
}
|
|
304
313
|
if (filterDeadlineGte !== undefined) {
|
|
305
314
|
_queryParams["filter_deadline_gte"] = filterDeadlineGte;
|
|
306
315
|
}
|
|
@@ -350,7 +359,7 @@ export class OperationsTasks {
|
|
|
350
359
|
});
|
|
351
360
|
}
|
|
352
361
|
/**
|
|
353
|
-
* 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)
|
|
362
|
+
* 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)
|
|
354
363
|
*
|
|
355
364
|
* @param {Chrt.operations.OperationsTasksListV1Request} request
|
|
356
365
|
* @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -367,11 +376,12 @@ export class OperationsTasks {
|
|
|
367
376
|
* filter_order_ids: ["filter_order_ids"],
|
|
368
377
|
* filter_order_short_id: "filter_order_short_id",
|
|
369
378
|
* filter_order_off_chrt_reference_id: "filter_order_off_chrt_reference_id",
|
|
370
|
-
*
|
|
379
|
+
* filter_department_ids: ["filter_department_ids"],
|
|
371
380
|
* filter_task_type: ["review_order_details"],
|
|
372
381
|
* filter_status: ["not_started"],
|
|
373
382
|
* filter_assigned_user_id: "filter_assigned_user_id",
|
|
374
383
|
* filter_source_task_list_id: "filter_source_task_list_id",
|
|
384
|
+
* filter_entry_tag: "filter_entry_tag",
|
|
375
385
|
* filter_deadline_gte: "2024-01-15T09:30:00Z",
|
|
376
386
|
* filter_deadline_lte: "2024-01-15T09:30:00Z"
|
|
377
387
|
* })
|
|
@@ -382,7 +392,7 @@ export class OperationsTasks {
|
|
|
382
392
|
__listV1() {
|
|
383
393
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
384
394
|
var _a, _b, _c, _d, _e, _f;
|
|
385
|
-
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;
|
|
386
396
|
const _queryParams = {};
|
|
387
397
|
if (sortBy !== undefined) {
|
|
388
398
|
_queryParams["sort_by"] = sortBy;
|
|
@@ -413,8 +423,13 @@ export class OperationsTasks {
|
|
|
413
423
|
if (filterOrderOffChrtReferenceId !== undefined) {
|
|
414
424
|
_queryParams["filter_order_off_chrt_reference_id"] = filterOrderOffChrtReferenceId;
|
|
415
425
|
}
|
|
416
|
-
if (
|
|
417
|
-
|
|
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
|
+
}
|
|
418
433
|
}
|
|
419
434
|
if (filterTaskType !== undefined) {
|
|
420
435
|
if (Array.isArray(filterTaskType)) {
|
|
@@ -438,6 +453,9 @@ export class OperationsTasks {
|
|
|
438
453
|
if (filterSourceTaskListId !== undefined) {
|
|
439
454
|
_queryParams["filter_source_task_list_id"] = filterSourceTaskListId;
|
|
440
455
|
}
|
|
456
|
+
if (filterEntryTag !== undefined) {
|
|
457
|
+
_queryParams["filter_entry_tag"] = filterEntryTag;
|
|
458
|
+
}
|
|
441
459
|
if (filterDeadlineGte !== undefined) {
|
|
442
460
|
_queryParams["filter_deadline_gte"] = filterDeadlineGte;
|
|
443
461
|
}
|
|
@@ -622,7 +640,142 @@ export class OperationsTasks {
|
|
|
622
640
|
});
|
|
623
641
|
}
|
|
624
642
|
/**
|
|
625
|
-
*
|
|
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
|
+
}
|
|
710
|
+
/**
|
|
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)
|
|
712
|
+
*
|
|
713
|
+
* @param {Chrt.operations.OperationsTasksUpdateDepartmentManyReq} request
|
|
714
|
+
* @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
|
|
715
|
+
*
|
|
716
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
717
|
+
*
|
|
718
|
+
* @example
|
|
719
|
+
* await client.operations.operationsTasks.updateDepartmentManyV1({
|
|
720
|
+
* operations_task_ids: ["operations_task_ids"]
|
|
721
|
+
* })
|
|
722
|
+
*/
|
|
723
|
+
updateDepartmentManyV1(request, requestOptions) {
|
|
724
|
+
return core.HttpResponsePromise.fromPromise(this.__updateDepartmentManyV1(request, requestOptions));
|
|
725
|
+
}
|
|
726
|
+
__updateDepartmentManyV1(request, requestOptions) {
|
|
727
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
728
|
+
var _a, _b, _c, _d;
|
|
729
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
730
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
731
|
+
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"),
|
|
732
|
+
method: "PATCH",
|
|
733
|
+
headers: _headers,
|
|
734
|
+
contentType: "application/json",
|
|
735
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
736
|
+
requestType: "json",
|
|
737
|
+
body: request,
|
|
738
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
739
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
740
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
741
|
+
});
|
|
742
|
+
if (_response.ok) {
|
|
743
|
+
return {
|
|
744
|
+
data: _response.body,
|
|
745
|
+
rawResponse: _response.rawResponse,
|
|
746
|
+
};
|
|
747
|
+
}
|
|
748
|
+
if (_response.error.reason === "status-code") {
|
|
749
|
+
switch (_response.error.statusCode) {
|
|
750
|
+
case 422:
|
|
751
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
752
|
+
default:
|
|
753
|
+
throw new errors.ChrtError({
|
|
754
|
+
statusCode: _response.error.statusCode,
|
|
755
|
+
body: _response.error.body,
|
|
756
|
+
rawResponse: _response.rawResponse,
|
|
757
|
+
});
|
|
758
|
+
}
|
|
759
|
+
}
|
|
760
|
+
switch (_response.error.reason) {
|
|
761
|
+
case "non-json":
|
|
762
|
+
throw new errors.ChrtError({
|
|
763
|
+
statusCode: _response.error.statusCode,
|
|
764
|
+
body: _response.error.rawBody,
|
|
765
|
+
rawResponse: _response.rawResponse,
|
|
766
|
+
});
|
|
767
|
+
case "timeout":
|
|
768
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /operations/operations_tasks/update_department_many/v1.");
|
|
769
|
+
case "unknown":
|
|
770
|
+
throw new errors.ChrtError({
|
|
771
|
+
message: _response.error.errorMessage,
|
|
772
|
+
rawResponse: _response.rawResponse,
|
|
773
|
+
});
|
|
774
|
+
}
|
|
775
|
+
});
|
|
776
|
+
}
|
|
777
|
+
/**
|
|
778
|
+
* 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)
|
|
626
779
|
*
|
|
627
780
|
* @param {Chrt.operations.OperationsTaskClientCreate1} request
|
|
628
781
|
* @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -808,7 +961,7 @@ export class OperationsTasks {
|
|
|
808
961
|
});
|
|
809
962
|
}
|
|
810
963
|
/**
|
|
811
|
-
* 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)
|
|
812
965
|
*
|
|
813
966
|
* @param {string} taskId
|
|
814
967
|
* @param {Chrt.operations.OperationsTaskClientUpdate1} request
|
|
@@ -15,6 +15,7 @@ import * as Chrt from "../../../../../../index.mjs";
|
|
|
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.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
|
}
|