@chrt-inc/typescript-sdk 1.984.0 → 1.990.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/listing/resources/bidThreads/client/Client.d.ts +6 -6
- package/dist/cjs/api/resources/listing/resources/bidThreads/client/Client.js +6 -6
- 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 +19 -2
- package/dist/cjs/api/resources/operations/resources/operationsTasks/client/Client.js +79 -4
- 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/OperationsTasksExpandedListV1Request.d.ts +3 -0
- package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksListV1Request.d.ts +3 -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 +1 -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 +29 -0
- package/dist/cjs/api/resources/shipping/resources/drivers/client/Client.js +146 -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 +6 -0
- package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/client/requests/OrderTemplateNewClientCreate1.d.ts +1 -1
- package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/client/requests/OrderTemplateNewClientUpdate1.d.ts +1 -2
- package/dist/cjs/api/resources/shipping/resources/orders/client/Client.d.ts +7 -6
- package/dist/cjs/api/resources/shipping/resources/orders/client/Client.js +14 -10
- 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/OrdersUpdateDepartmentsReq.d.ts +10 -0
- package/dist/cjs/api/resources/shipping/resources/orders/client/requests/OrdersUpdateDepartmentsReq.js +5 -0
- package/dist/cjs/api/resources/shipping/resources/orders/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/client/requests/OrdersOpenDraftReq.d.ts +1 -1
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.js +17 -7
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForProviderOperatorsV1Request.d.ts +6 -5
- 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/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/OperationsTasksUpdateDepartmentManyRes.d.ts +7 -0
- package/dist/cjs/api/types/OperationsTasksUpdateDepartmentManyRes.js +5 -0
- package/dist/cjs/api/types/Order1.d.ts +1 -1
- package/dist/cjs/api/types/OrderAndTaskGroupExpandedReq.d.ts +2 -2
- package/dist/cjs/api/types/OrderExpandedForProvider.d.ts +1 -1
- package/dist/cjs/api/types/OrderLimitedForProvider1.d.ts +1 -1
- package/dist/cjs/api/types/OrderTaskGroupExecutorDetails1.d.ts +1 -1
- package/dist/cjs/api/types/OrderTemplateNew1.d.ts +1 -1
- package/dist/cjs/api/types/OrderTemplateNewCore1.d.ts +1 -1
- package/dist/cjs/api/types/OrderTemplateNewExpanded1.d.ts +1 -1
- 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/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 +3 -0
- package/dist/cjs/api/types/index.js +3 -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/listing/resources/bidThreads/client/Client.d.mts +6 -6
- package/dist/esm/api/resources/listing/resources/bidThreads/client/Client.mjs +6 -6
- 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 +19 -2
- package/dist/esm/api/resources/operations/resources/operationsTasks/client/Client.mjs +79 -4
- 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/OperationsTasksExpandedListV1Request.d.mts +3 -0
- package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksListV1Request.d.mts +3 -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 +1 -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 +29 -0
- package/dist/esm/api/resources/shipping/resources/drivers/client/Client.mjs +146 -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 +6 -0
- package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/client/requests/OrderTemplateNewClientCreate1.d.mts +1 -1
- package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/client/requests/OrderTemplateNewClientUpdate1.d.mts +1 -2
- package/dist/esm/api/resources/shipping/resources/orders/client/Client.d.mts +7 -6
- package/dist/esm/api/resources/shipping/resources/orders/client/Client.mjs +14 -10
- 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/index.d.mts +1 -1
- package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/client/requests/OrdersOpenDraftReq.d.mts +1 -1
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.mjs +17 -7
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForProviderOperatorsV1Request.d.mts +6 -5
- 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/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/OperationsTasksUpdateDepartmentManyRes.d.mts +7 -0
- package/dist/esm/api/types/OperationsTasksUpdateDepartmentManyRes.mjs +4 -0
- package/dist/esm/api/types/Order1.d.mts +1 -1
- package/dist/esm/api/types/OrderAndTaskGroupExpandedReq.d.mts +2 -2
- package/dist/esm/api/types/OrderExpandedForProvider.d.mts +1 -1
- package/dist/esm/api/types/OrderLimitedForProvider1.d.mts +1 -1
- package/dist/esm/api/types/OrderTaskGroupExecutorDetails1.d.mts +1 -1
- package/dist/esm/api/types/OrderTemplateNew1.d.mts +1 -1
- package/dist/esm/api/types/OrderTemplateNewCore1.d.mts +1 -1
- package/dist/esm/api/types/OrderTemplateNewExpanded1.d.mts +1 -1
- 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/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 +3 -0
- package/dist/esm/api/types/index.mjs +3 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +225 -26
- /package/dist/cjs/api/resources/{shipping/resources/orders/client/requests/OrdersUpdateDepartmentReq.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/OperationsTasksUpdateDepartmentManyReq.mjs} +0 -0
|
@@ -20,7 +20,7 @@ export class BidThreads {
|
|
|
20
20
|
this._options = _options;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* Accepts an offer; lister acceptance awards immediately, while bidder acceptance follows the listing's auto-award setting. | authz: allowed_org_types=[provider], min_org_role=member; lister min_org_role=operator | (BidAppendReq) -> (bool)
|
|
24
24
|
*
|
|
25
25
|
* @param {string} bidThreadId
|
|
26
26
|
* @param {Chrt.BidAppendReq} request
|
|
@@ -142,7 +142,7 @@ export class BidThreads {
|
|
|
142
142
|
});
|
|
143
143
|
}
|
|
144
144
|
/**
|
|
145
|
-
*
|
|
145
|
+
* Confirms a pending bidder acceptance and awards at its recorded price. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (bool)
|
|
146
146
|
*
|
|
147
147
|
* @param {string} bidThreadId
|
|
148
148
|
* @param {BidThreads.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -201,7 +201,7 @@ export class BidThreads {
|
|
|
201
201
|
});
|
|
202
202
|
}
|
|
203
203
|
/**
|
|
204
|
-
*
|
|
204
|
+
* Adds a counteroffer to an open negotiation. | authz: allowed_org_types=[provider], min_org_role=member | (BidAppendReq) -> (bool)
|
|
205
205
|
*
|
|
206
206
|
* @param {string} bidThreadId
|
|
207
207
|
* @param {Chrt.BidAppendReq} request
|
|
@@ -264,7 +264,7 @@ export class BidThreads {
|
|
|
264
264
|
});
|
|
265
265
|
}
|
|
266
266
|
/**
|
|
267
|
-
* Opens a
|
|
267
|
+
* Opens a bid thread with an offer, acceptance, or denial. | authz: allowed_org_types=[provider], min_org_role=member | (BidThreadClientCreate1) -> (PydanticObjectId)
|
|
268
268
|
*
|
|
269
269
|
* @param {Chrt.listing.BidThreadClientCreate1} request
|
|
270
270
|
* @param {BidThreads.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -329,7 +329,7 @@ export class BidThreads {
|
|
|
329
329
|
});
|
|
330
330
|
}
|
|
331
331
|
/**
|
|
332
|
-
*
|
|
332
|
+
* Declines an open negotiation and closes its thread. | authz: allowed_org_types=[provider], min_org_role=member | (BidAppendReq) -> (bool)
|
|
333
333
|
*
|
|
334
334
|
* @param {string} bidThreadId
|
|
335
335
|
* @param {Chrt.BidAppendReq} request
|
|
@@ -623,7 +623,7 @@ export class BidThreads {
|
|
|
623
623
|
});
|
|
624
624
|
}
|
|
625
625
|
/**
|
|
626
|
-
*
|
|
626
|
+
* Withdraws the bidder's offer and closes its thread. | authz: allowed_org_types=[provider], min_org_role=member | (BidAppendReq) -> (bool)
|
|
627
627
|
*
|
|
628
628
|
* @param {string} bidThreadId
|
|
629
629
|
* @param {Chrt.BidAppendReq} request
|
|
@@ -87,7 +87,7 @@ export declare class DriverBiddingGroups {
|
|
|
87
87
|
deleteV1(groupId: string, requestOptions?: DriverBiddingGroups.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
88
88
|
private __deleteV1;
|
|
89
89
|
/**
|
|
90
|
-
* Lists driver bidding groups owned by the caller's org with filtering, sorting, and
|
|
90
|
+
* Lists driver bidding groups owned by the caller's org with filtering, sorting, pagination, and member driver profiles. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (DriverBiddingGroupListRes)
|
|
91
91
|
*
|
|
92
92
|
* @param {Chrt.listing.DriverBiddingGroupsListByOrgV1Request} request
|
|
93
93
|
* @param {DriverBiddingGroups.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -263,7 +263,7 @@ export class DriverBiddingGroups {
|
|
|
263
263
|
});
|
|
264
264
|
}
|
|
265
265
|
/**
|
|
266
|
-
* Lists driver bidding groups owned by the caller's org with filtering, sorting, and
|
|
266
|
+
* Lists driver bidding groups owned by the caller's org with filtering, sorting, pagination, and member driver profiles. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (DriverBiddingGroupListRes)
|
|
267
267
|
*
|
|
268
268
|
* @param {Chrt.listing.DriverBiddingGroupsListByOrgV1Request} request
|
|
269
269
|
* @param {DriverBiddingGroups.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -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. */
|
|
@@ -99,6 +99,7 @@ export declare class OperationsTasks {
|
|
|
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.
|
|
@@ -128,6 +129,7 @@ export declare class OperationsTasks {
|
|
|
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,22 @@ 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
|
+
* Assigns or clears one department on selected tasks across orders. Missing and other-org tasks are skipped. | authz: min_org_role=operator | (OperationsTasksUpdateDepartmentManyReq) -> (OperationsTasksUpdateDepartmentManyRes)
|
|
175
|
+
*
|
|
176
|
+
* @param {Chrt.operations.OperationsTasksUpdateDepartmentManyReq} request
|
|
177
|
+
* @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
|
|
178
|
+
*
|
|
179
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
180
|
+
*
|
|
181
|
+
* @example
|
|
182
|
+
* await client.operations.operationsTasks.updateDepartmentManyV1({
|
|
183
|
+
* operations_task_ids: ["operations_task_ids"]
|
|
184
|
+
* })
|
|
185
|
+
*/
|
|
186
|
+
updateDepartmentManyV1(request: Chrt.operations.OperationsTasksUpdateDepartmentManyReq, requestOptions?: OperationsTasks.RequestOptions): core.HttpResponsePromise<Chrt.OperationsTasksUpdateDepartmentManyRes>;
|
|
187
|
+
private __updateDepartmentManyV1;
|
|
188
|
+
/**
|
|
189
|
+
* 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
190
|
*
|
|
174
191
|
* @param {Chrt.operations.OperationsTaskClientCreate1} request
|
|
175
192
|
* @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -235,6 +235,7 @@ export class OperationsTasks {
|
|
|
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, filter_department_id: filterDepartmentId, filter_task_type: filterTaskType, filter_status: filterStatus, filter_assigned_user_id: filterAssignedUserId, filter_source_task_list_id: filterSourceTaskListId, filter_deadline_gte: filterDeadlineGte, filter_deadline_lte: filterDeadlineLte, } = request;
|
|
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_id: filterDepartmentId, 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;
|
|
@@ -301,6 +302,9 @@ export class OperationsTasks {
|
|
|
301
302
|
if (filterSourceTaskListId !== undefined) {
|
|
302
303
|
_queryParams["filter_source_task_list_id"] = filterSourceTaskListId;
|
|
303
304
|
}
|
|
305
|
+
if (filterEntryTag !== undefined) {
|
|
306
|
+
_queryParams["filter_entry_tag"] = filterEntryTag;
|
|
307
|
+
}
|
|
304
308
|
if (filterDeadlineGte !== undefined) {
|
|
305
309
|
_queryParams["filter_deadline_gte"] = filterDeadlineGte;
|
|
306
310
|
}
|
|
@@ -350,7 +354,7 @@ export class OperationsTasks {
|
|
|
350
354
|
});
|
|
351
355
|
}
|
|
352
356
|
/**
|
|
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)
|
|
357
|
+
* 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
358
|
*
|
|
355
359
|
* @param {Chrt.operations.OperationsTasksListV1Request} request
|
|
356
360
|
* @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -372,6 +376,7 @@ export class OperationsTasks {
|
|
|
372
376
|
* filter_status: ["not_started"],
|
|
373
377
|
* filter_assigned_user_id: "filter_assigned_user_id",
|
|
374
378
|
* filter_source_task_list_id: "filter_source_task_list_id",
|
|
379
|
+
* filter_entry_tag: "filter_entry_tag",
|
|
375
380
|
* filter_deadline_gte: "2024-01-15T09:30:00Z",
|
|
376
381
|
* filter_deadline_lte: "2024-01-15T09:30:00Z"
|
|
377
382
|
* })
|
|
@@ -382,7 +387,7 @@ export class OperationsTasks {
|
|
|
382
387
|
__listV1() {
|
|
383
388
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
384
389
|
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, filter_department_id: filterDepartmentId, filter_task_type: filterTaskType, filter_status: filterStatus, filter_assigned_user_id: filterAssignedUserId, filter_source_task_list_id: filterSourceTaskListId, filter_deadline_gte: filterDeadlineGte, filter_deadline_lte: filterDeadlineLte, } = request;
|
|
390
|
+
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, filter_order_ids: filterOrderIds, filter_order_short_id: filterOrderShortId, filter_order_off_chrt_reference_id: filterOrderOffChrtReferenceId, filter_department_id: filterDepartmentId, 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
391
|
const _queryParams = {};
|
|
387
392
|
if (sortBy !== undefined) {
|
|
388
393
|
_queryParams["sort_by"] = sortBy;
|
|
@@ -438,6 +443,9 @@ export class OperationsTasks {
|
|
|
438
443
|
if (filterSourceTaskListId !== undefined) {
|
|
439
444
|
_queryParams["filter_source_task_list_id"] = filterSourceTaskListId;
|
|
440
445
|
}
|
|
446
|
+
if (filterEntryTag !== undefined) {
|
|
447
|
+
_queryParams["filter_entry_tag"] = filterEntryTag;
|
|
448
|
+
}
|
|
441
449
|
if (filterDeadlineGte !== undefined) {
|
|
442
450
|
_queryParams["filter_deadline_gte"] = filterDeadlineGte;
|
|
443
451
|
}
|
|
@@ -622,7 +630,74 @@ export class OperationsTasks {
|
|
|
622
630
|
});
|
|
623
631
|
}
|
|
624
632
|
/**
|
|
625
|
-
*
|
|
633
|
+
* Assigns or clears one department on selected tasks across orders. Missing and other-org tasks are skipped. | authz: min_org_role=operator | (OperationsTasksUpdateDepartmentManyReq) -> (OperationsTasksUpdateDepartmentManyRes)
|
|
634
|
+
*
|
|
635
|
+
* @param {Chrt.operations.OperationsTasksUpdateDepartmentManyReq} request
|
|
636
|
+
* @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
|
|
637
|
+
*
|
|
638
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
639
|
+
*
|
|
640
|
+
* @example
|
|
641
|
+
* await client.operations.operationsTasks.updateDepartmentManyV1({
|
|
642
|
+
* operations_task_ids: ["operations_task_ids"]
|
|
643
|
+
* })
|
|
644
|
+
*/
|
|
645
|
+
updateDepartmentManyV1(request, requestOptions) {
|
|
646
|
+
return core.HttpResponsePromise.fromPromise(this.__updateDepartmentManyV1(request, requestOptions));
|
|
647
|
+
}
|
|
648
|
+
__updateDepartmentManyV1(request, requestOptions) {
|
|
649
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
650
|
+
var _a, _b, _c, _d;
|
|
651
|
+
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);
|
|
652
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
653
|
+
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"),
|
|
654
|
+
method: "PATCH",
|
|
655
|
+
headers: _headers,
|
|
656
|
+
contentType: "application/json",
|
|
657
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
658
|
+
requestType: "json",
|
|
659
|
+
body: request,
|
|
660
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
661
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
662
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
663
|
+
});
|
|
664
|
+
if (_response.ok) {
|
|
665
|
+
return {
|
|
666
|
+
data: _response.body,
|
|
667
|
+
rawResponse: _response.rawResponse,
|
|
668
|
+
};
|
|
669
|
+
}
|
|
670
|
+
if (_response.error.reason === "status-code") {
|
|
671
|
+
switch (_response.error.statusCode) {
|
|
672
|
+
case 422:
|
|
673
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
674
|
+
default:
|
|
675
|
+
throw new errors.ChrtError({
|
|
676
|
+
statusCode: _response.error.statusCode,
|
|
677
|
+
body: _response.error.body,
|
|
678
|
+
rawResponse: _response.rawResponse,
|
|
679
|
+
});
|
|
680
|
+
}
|
|
681
|
+
}
|
|
682
|
+
switch (_response.error.reason) {
|
|
683
|
+
case "non-json":
|
|
684
|
+
throw new errors.ChrtError({
|
|
685
|
+
statusCode: _response.error.statusCode,
|
|
686
|
+
body: _response.error.rawBody,
|
|
687
|
+
rawResponse: _response.rawResponse,
|
|
688
|
+
});
|
|
689
|
+
case "timeout":
|
|
690
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /operations/operations_tasks/update_department_many/v1.");
|
|
691
|
+
case "unknown":
|
|
692
|
+
throw new errors.ChrtError({
|
|
693
|
+
message: _response.error.errorMessage,
|
|
694
|
+
rawResponse: _response.rawResponse,
|
|
695
|
+
});
|
|
696
|
+
}
|
|
697
|
+
});
|
|
698
|
+
}
|
|
699
|
+
/**
|
|
700
|
+
* 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
701
|
*
|
|
627
702
|
* @param {Chrt.operations.OperationsTaskClientCreate1} request
|
|
628
703
|
* @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -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;
|
|
@@ -18,6 +18,7 @@ import * as Chrt from "../../../../../../index.mjs";
|
|
|
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
|
* }
|
|
@@ -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 */
|
|
@@ -18,6 +18,7 @@ import * as Chrt from "../../../../../../index.mjs";
|
|
|
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
|
* }
|
|
@@ -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 */
|
|
@@ -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/esm/api/resources/operations/resources/operationsTasks/client/requests/index.d.mts
CHANGED
|
@@ -4,5 +4,6 @@ export { type OperationsTasksExpandedListV1Request } from "./OperationsTasksExpa
|
|
|
4
4
|
export { type OperationsTasksListV1Request } from "./OperationsTasksListV1Request.mjs";
|
|
5
5
|
export { type OperationsTasksSetDeadlineTimestampsReq1 } from "./OperationsTasksSetDeadlineTimestampsReq1.mjs";
|
|
6
6
|
export { type OperationsTasksSetStatusReq1 } from "./OperationsTasksSetStatusReq1.mjs";
|
|
7
|
+
export { type OperationsTasksUpdateDepartmentManyReq } from "./OperationsTasksUpdateDepartmentManyReq.mjs";
|
|
7
8
|
export { type OperationsTaskClientCreate1 } from "./OperationsTaskClientCreate1.mjs";
|
|
8
9
|
export { type OperationsTaskClientUpdate1 } from "./OperationsTaskClientUpdate1.mjs";
|
|
@@ -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,
|