@chrt-inc/typescript-sdk 1.983.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/InvoiceLineItemExportListItem.d.ts +4 -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/InvoiceLineItemExportListItem.d.mts +4 -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
package/dist/cjs/Client.js
CHANGED
|
@@ -60,8 +60,8 @@ class ChrtClient {
|
|
|
60
60
|
this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
|
|
61
61
|
"X-Fern-Language": "JavaScript",
|
|
62
62
|
"X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
|
|
63
|
-
"X-Fern-SDK-Version": "1.
|
|
64
|
-
"User-Agent": "@chrt-inc/typescript-sdk/1.
|
|
63
|
+
"X-Fern-SDK-Version": "1.990.0",
|
|
64
|
+
"User-Agent": "@chrt-inc/typescript-sdk/1.990.0",
|
|
65
65
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
66
66
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
67
67
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -31,7 +31,7 @@ export declare class BidThreads {
|
|
|
31
31
|
protected readonly _options: BidThreads.Options;
|
|
32
32
|
constructor(_options?: BidThreads.Options);
|
|
33
33
|
/**
|
|
34
|
-
*
|
|
34
|
+
* 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)
|
|
35
35
|
*
|
|
36
36
|
* @param {string} bidThreadId
|
|
37
37
|
* @param {Chrt.BidAppendReq} request
|
|
@@ -58,7 +58,7 @@ export declare class BidThreads {
|
|
|
58
58
|
byIdV1(bidThreadId: string, requestOptions?: BidThreads.RequestOptions): core.HttpResponsePromise<Chrt.BidThread1>;
|
|
59
59
|
private __byIdV1;
|
|
60
60
|
/**
|
|
61
|
-
*
|
|
61
|
+
* Confirms a pending bidder acceptance and awards at its recorded price. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (bool)
|
|
62
62
|
*
|
|
63
63
|
* @param {string} bidThreadId
|
|
64
64
|
* @param {BidThreads.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -71,7 +71,7 @@ export declare class BidThreads {
|
|
|
71
71
|
confirmAcceptV1(bidThreadId: string, requestOptions?: BidThreads.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
72
72
|
private __confirmAcceptV1;
|
|
73
73
|
/**
|
|
74
|
-
*
|
|
74
|
+
* Adds a counteroffer to an open negotiation. | authz: allowed_org_types=[provider], min_org_role=member | (BidAppendReq) -> (bool)
|
|
75
75
|
*
|
|
76
76
|
* @param {string} bidThreadId
|
|
77
77
|
* @param {Chrt.BidAppendReq} request
|
|
@@ -85,7 +85,7 @@ export declare class BidThreads {
|
|
|
85
85
|
counterV1(bidThreadId: string, request: Chrt.BidAppendReq, requestOptions?: BidThreads.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
86
86
|
private __counterV1;
|
|
87
87
|
/**
|
|
88
|
-
* Opens a
|
|
88
|
+
* Opens a bid thread with an offer, acceptance, or denial. | authz: allowed_org_types=[provider], min_org_role=member | (BidThreadClientCreate1) -> (PydanticObjectId)
|
|
89
89
|
*
|
|
90
90
|
* @param {Chrt.listing.BidThreadClientCreate1} request
|
|
91
91
|
* @param {BidThreads.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -101,7 +101,7 @@ export declare class BidThreads {
|
|
|
101
101
|
createV1(request: Chrt.listing.BidThreadClientCreate1, requestOptions?: BidThreads.RequestOptions): core.HttpResponsePromise<string>;
|
|
102
102
|
private __createV1;
|
|
103
103
|
/**
|
|
104
|
-
*
|
|
104
|
+
* Declines an open negotiation and closes its thread. | authz: allowed_org_types=[provider], min_org_role=member | (BidAppendReq) -> (bool)
|
|
105
105
|
*
|
|
106
106
|
* @param {string} bidThreadId
|
|
107
107
|
* @param {Chrt.BidAppendReq} request
|
|
@@ -168,7 +168,7 @@ export declare class BidThreads {
|
|
|
168
168
|
listForListingV1(listingId: string, request?: Chrt.listing.BidThreadsListForListingV1Request, requestOptions?: BidThreads.RequestOptions): core.HttpResponsePromise<Chrt.BidThreadListRes>;
|
|
169
169
|
private __listForListingV1;
|
|
170
170
|
/**
|
|
171
|
-
*
|
|
171
|
+
* Withdraws the bidder's offer and closes its thread. | authz: allowed_org_types=[provider], min_org_role=member | (BidAppendReq) -> (bool)
|
|
172
172
|
*
|
|
173
173
|
* @param {string} bidThreadId
|
|
174
174
|
* @param {Chrt.BidAppendReq} request
|
|
@@ -56,7 +56,7 @@ class BidThreads {
|
|
|
56
56
|
this._options = _options;
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
|
-
*
|
|
59
|
+
* 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)
|
|
60
60
|
*
|
|
61
61
|
* @param {string} bidThreadId
|
|
62
62
|
* @param {Chrt.BidAppendReq} request
|
|
@@ -178,7 +178,7 @@ class BidThreads {
|
|
|
178
178
|
});
|
|
179
179
|
}
|
|
180
180
|
/**
|
|
181
|
-
*
|
|
181
|
+
* Confirms a pending bidder acceptance and awards at its recorded price. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (bool)
|
|
182
182
|
*
|
|
183
183
|
* @param {string} bidThreadId
|
|
184
184
|
* @param {BidThreads.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -237,7 +237,7 @@ class BidThreads {
|
|
|
237
237
|
});
|
|
238
238
|
}
|
|
239
239
|
/**
|
|
240
|
-
*
|
|
240
|
+
* Adds a counteroffer to an open negotiation. | authz: allowed_org_types=[provider], min_org_role=member | (BidAppendReq) -> (bool)
|
|
241
241
|
*
|
|
242
242
|
* @param {string} bidThreadId
|
|
243
243
|
* @param {Chrt.BidAppendReq} request
|
|
@@ -300,7 +300,7 @@ class BidThreads {
|
|
|
300
300
|
});
|
|
301
301
|
}
|
|
302
302
|
/**
|
|
303
|
-
* Opens a
|
|
303
|
+
* Opens a bid thread with an offer, acceptance, or denial. | authz: allowed_org_types=[provider], min_org_role=member | (BidThreadClientCreate1) -> (PydanticObjectId)
|
|
304
304
|
*
|
|
305
305
|
* @param {Chrt.listing.BidThreadClientCreate1} request
|
|
306
306
|
* @param {BidThreads.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -365,7 +365,7 @@ class BidThreads {
|
|
|
365
365
|
});
|
|
366
366
|
}
|
|
367
367
|
/**
|
|
368
|
-
*
|
|
368
|
+
* Declines an open negotiation and closes its thread. | authz: allowed_org_types=[provider], min_org_role=member | (BidAppendReq) -> (bool)
|
|
369
369
|
*
|
|
370
370
|
* @param {string} bidThreadId
|
|
371
371
|
* @param {Chrt.BidAppendReq} request
|
|
@@ -659,7 +659,7 @@ class BidThreads {
|
|
|
659
659
|
});
|
|
660
660
|
}
|
|
661
661
|
/**
|
|
662
|
-
*
|
|
662
|
+
* Withdraws the bidder's offer and closes its thread. | authz: allowed_org_types=[provider], min_org_role=member | (BidAppendReq) -> (bool)
|
|
663
663
|
*
|
|
664
664
|
* @param {string} bidThreadId
|
|
665
665
|
* @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.
|
|
@@ -299,7 +299,7 @@ class DriverBiddingGroups {
|
|
|
299
299
|
});
|
|
300
300
|
}
|
|
301
301
|
/**
|
|
302
|
-
* Lists driver bidding groups owned by the caller's org with filtering, sorting, and
|
|
302
|
+
* 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)
|
|
303
303
|
*
|
|
304
304
|
* @param {Chrt.listing.DriverBiddingGroupsListByOrgV1Request} request
|
|
305
305
|
* @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.
|
|
@@ -299,7 +299,7 @@ class OrgBiddingGroups {
|
|
|
299
299
|
});
|
|
300
300
|
}
|
|
301
301
|
/**
|
|
302
|
-
* Lists org bidding groups owned by the caller's org with filtering, sorting, and
|
|
302
|
+
* 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)
|
|
303
303
|
*
|
|
304
304
|
* @param {Chrt.listing.OrgBiddingGroupsListByOrgV1Request} request
|
|
305
305
|
* @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"]
|
|
@@ -116,7 +116,7 @@ class Departments {
|
|
|
116
116
|
});
|
|
117
117
|
}
|
|
118
118
|
/**
|
|
119
|
-
* Lists department configurations for the caller's organization. | authz: min_org_role=operator | () -> (DepartmentListRes)
|
|
119
|
+
* Lists department configurations for the caller's organization with filtering, sorting, pagination, and Atlas Search. | authz: min_org_role=operator | () -> (DepartmentListRes)
|
|
120
120
|
*
|
|
121
121
|
* @param {Chrt.operations.DepartmentsListV1Request} request
|
|
122
122
|
* @param {Departments.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -127,6 +127,7 @@ class Departments {
|
|
|
127
127
|
* await client.operations.departments.listV1({
|
|
128
128
|
* sort_by: "created_at",
|
|
129
129
|
* sort_order: "asc",
|
|
130
|
+
* search: "search",
|
|
130
131
|
* page: 1,
|
|
131
132
|
* page_size: 1,
|
|
132
133
|
* filter_department_type: ["aerospace"]
|
|
@@ -138,7 +139,7 @@ class Departments {
|
|
|
138
139
|
__listV1() {
|
|
139
140
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
140
141
|
var _a, _b, _c, _d, _e, _f;
|
|
141
|
-
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, filter_department_type: filterDepartmentType, } = request;
|
|
142
|
+
const { sort_by: sortBy, sort_order: sortOrder, search, page, page_size: pageSize, filter_department_type: filterDepartmentType, } = request;
|
|
142
143
|
const _queryParams = {};
|
|
143
144
|
if (sortBy !== undefined) {
|
|
144
145
|
_queryParams["sort_by"] = sortBy;
|
|
@@ -146,6 +147,9 @@ class Departments {
|
|
|
146
147
|
if (sortOrder !== undefined) {
|
|
147
148
|
_queryParams["sort_order"] = sortOrder;
|
|
148
149
|
}
|
|
150
|
+
if (search !== undefined) {
|
|
151
|
+
_queryParams["search"] = search;
|
|
152
|
+
}
|
|
149
153
|
if (page !== undefined) {
|
|
150
154
|
_queryParams["page"] = (_a = page === null || page === void 0 ? void 0 : page.toString()) !== null && _a !== void 0 ? _a : null;
|
|
151
155
|
}
|
|
@@ -7,6 +7,7 @@ import * as Chrt from "../../../../../../index.js";
|
|
|
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
|
|
@@ -56,7 +56,7 @@ class OperationsTaskLists {
|
|
|
56
56
|
this._options = _options;
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
|
-
* 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
|
|
59
|
+
* 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])
|
|
60
60
|
*
|
|
61
61
|
* @param {string} taskListId
|
|
62
62
|
* @param {string} orderId
|
|
@@ -68,6 +68,7 @@ class OperationsTaskLists {
|
|
|
68
68
|
* @example
|
|
69
69
|
* await client.operations.operationsTaskLists.applyToOrderV1("task_list_id", "order_id", {
|
|
70
70
|
* department_id: "department_id",
|
|
71
|
+
* entry_tag: "entry_tag",
|
|
71
72
|
* initial_deadline_timestamp: "2024-01-15T09:30:00Z"
|
|
72
73
|
* })
|
|
73
74
|
*/
|
|
@@ -77,11 +78,14 @@ class OperationsTaskLists {
|
|
|
77
78
|
__applyToOrderV1(taskListId_1, orderId_1) {
|
|
78
79
|
return __awaiter(this, arguments, void 0, function* (taskListId, orderId, request = {}, requestOptions) {
|
|
79
80
|
var _a, _b, _c, _d;
|
|
80
|
-
const { department_id: departmentId, initial_deadline_timestamp: initialDeadlineTimestamp } = request;
|
|
81
|
+
const { department_id: departmentId, entry_tag: entryTag, initial_deadline_timestamp: initialDeadlineTimestamp, } = request;
|
|
81
82
|
const _queryParams = {};
|
|
82
83
|
if (departmentId !== undefined) {
|
|
83
84
|
_queryParams["department_id"] = departmentId;
|
|
84
85
|
}
|
|
86
|
+
if (entryTag !== undefined) {
|
|
87
|
+
_queryParams["entry_tag"] = entryTag;
|
|
88
|
+
}
|
|
85
89
|
if (initialDeadlineTimestamp !== undefined) {
|
|
86
90
|
_queryParams["initial_deadline_timestamp"] = initialDeadlineTimestamp;
|
|
87
91
|
}
|
|
@@ -445,7 +449,7 @@ class OperationsTaskLists {
|
|
|
445
449
|
});
|
|
446
450
|
}
|
|
447
451
|
/**
|
|
448
|
-
* Lists OperationsTaskLists for the caller's organization with filtering, sorting, and
|
|
452
|
+
* Lists OperationsTaskLists for the caller's organization with filtering, sorting, pagination, and Atlas Search. | authz: min_org_role=operator | () -> (OperationsTaskListListRes)
|
|
449
453
|
*
|
|
450
454
|
* @param {Chrt.operations.OperationsTaskListsListV1Request} request
|
|
451
455
|
* @param {OperationsTaskLists.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -456,6 +460,7 @@ class OperationsTaskLists {
|
|
|
456
460
|
* await client.operations.operationsTaskLists.listV1({
|
|
457
461
|
* sort_by: "created_at_timestamp",
|
|
458
462
|
* sort_order: "asc",
|
|
463
|
+
* search: "search",
|
|
459
464
|
* page: 1,
|
|
460
465
|
* page_size: 1,
|
|
461
466
|
* filter_archived: true
|
|
@@ -467,7 +472,7 @@ class OperationsTaskLists {
|
|
|
467
472
|
__listV1() {
|
|
468
473
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
469
474
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
470
|
-
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, filter_archived: filterArchived, } = request;
|
|
475
|
+
const { sort_by: sortBy, sort_order: sortOrder, search, page, page_size: pageSize, filter_archived: filterArchived, } = request;
|
|
471
476
|
const _queryParams = {};
|
|
472
477
|
if (sortBy !== undefined) {
|
|
473
478
|
_queryParams["sort_by"] = sortBy;
|
|
@@ -475,6 +480,9 @@ class OperationsTaskLists {
|
|
|
475
480
|
if (sortOrder !== undefined) {
|
|
476
481
|
_queryParams["sort_order"] = sortOrder;
|
|
477
482
|
}
|
|
483
|
+
if (search !== undefined) {
|
|
484
|
+
_queryParams["search"] = search;
|
|
485
|
+
}
|
|
478
486
|
if (page !== undefined) {
|
|
479
487
|
_queryParams["page"] = (_a = page === null || page === void 0 ? void 0 : page.toString()) !== null && _a !== void 0 ? _a : null;
|
|
480
488
|
}
|
|
@@ -527,7 +535,7 @@ class OperationsTaskLists {
|
|
|
527
535
|
});
|
|
528
536
|
}
|
|
529
537
|
/**
|
|
530
|
-
* 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. |
|
|
538
|
+
* 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)
|
|
531
539
|
*
|
|
532
540
|
* @param {string} taskListId
|
|
533
541
|
* @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.js";
|
|
|
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.
|
|
@@ -271,6 +271,7 @@ class OperationsTasks {
|
|
|
271
271
|
* filter_status: ["not_started"],
|
|
272
272
|
* filter_assigned_user_id: "filter_assigned_user_id",
|
|
273
273
|
* filter_source_task_list_id: "filter_source_task_list_id",
|
|
274
|
+
* filter_entry_tag: "filter_entry_tag",
|
|
274
275
|
* filter_deadline_gte: "2024-01-15T09:30:00Z",
|
|
275
276
|
* filter_deadline_lte: "2024-01-15T09:30:00Z"
|
|
276
277
|
* })
|
|
@@ -281,7 +282,7 @@ class OperationsTasks {
|
|
|
281
282
|
__expandedListV1() {
|
|
282
283
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
283
284
|
var _a, _b, _c, _d, _e, _f;
|
|
284
|
-
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, filter_order_ids: filterOrderIds, filter_order_short_id: filterOrderShortId, filter_order_off_chrt_reference_id: filterOrderOffChrtReferenceId, 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;
|
|
285
|
+
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, filter_order_ids: filterOrderIds, filter_order_short_id: filterOrderShortId, filter_order_off_chrt_reference_id: filterOrderOffChrtReferenceId, filter_department_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;
|
|
285
286
|
const _queryParams = {};
|
|
286
287
|
if (sortBy !== undefined) {
|
|
287
288
|
_queryParams["sort_by"] = sortBy;
|
|
@@ -337,6 +338,9 @@ class OperationsTasks {
|
|
|
337
338
|
if (filterSourceTaskListId !== undefined) {
|
|
338
339
|
_queryParams["filter_source_task_list_id"] = filterSourceTaskListId;
|
|
339
340
|
}
|
|
341
|
+
if (filterEntryTag !== undefined) {
|
|
342
|
+
_queryParams["filter_entry_tag"] = filterEntryTag;
|
|
343
|
+
}
|
|
340
344
|
if (filterDeadlineGte !== undefined) {
|
|
341
345
|
_queryParams["filter_deadline_gte"] = filterDeadlineGte;
|
|
342
346
|
}
|
|
@@ -386,7 +390,7 @@ class OperationsTasks {
|
|
|
386
390
|
});
|
|
387
391
|
}
|
|
388
392
|
/**
|
|
389
|
-
* Lists OperationsTasks for the caller's organization, with order ids / order short id / order off-CHRT reference id / department / type / status / assignee / source task list / deadline filtering, sorting, and pagination. | authz: min_org_role=operator | () -> (OperationsTaskListRes)
|
|
393
|
+
* Lists OperationsTasks for the caller's organization, with order ids / order short id / order off-CHRT reference id / department / type / status / assignee / source task list / entry tag / deadline filtering, sorting, and pagination. | authz: min_org_role=operator | () -> (OperationsTaskListRes)
|
|
390
394
|
*
|
|
391
395
|
* @param {Chrt.operations.OperationsTasksListV1Request} request
|
|
392
396
|
* @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -408,6 +412,7 @@ class OperationsTasks {
|
|
|
408
412
|
* filter_status: ["not_started"],
|
|
409
413
|
* filter_assigned_user_id: "filter_assigned_user_id",
|
|
410
414
|
* filter_source_task_list_id: "filter_source_task_list_id",
|
|
415
|
+
* filter_entry_tag: "filter_entry_tag",
|
|
411
416
|
* filter_deadline_gte: "2024-01-15T09:30:00Z",
|
|
412
417
|
* filter_deadline_lte: "2024-01-15T09:30:00Z"
|
|
413
418
|
* })
|
|
@@ -418,7 +423,7 @@ class OperationsTasks {
|
|
|
418
423
|
__listV1() {
|
|
419
424
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
420
425
|
var _a, _b, _c, _d, _e, _f;
|
|
421
|
-
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, filter_order_ids: filterOrderIds, filter_order_short_id: filterOrderShortId, filter_order_off_chrt_reference_id: filterOrderOffChrtReferenceId, 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;
|
|
426
|
+
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, filter_order_ids: filterOrderIds, filter_order_short_id: filterOrderShortId, filter_order_off_chrt_reference_id: filterOrderOffChrtReferenceId, 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;
|
|
422
427
|
const _queryParams = {};
|
|
423
428
|
if (sortBy !== undefined) {
|
|
424
429
|
_queryParams["sort_by"] = sortBy;
|
|
@@ -474,6 +479,9 @@ class OperationsTasks {
|
|
|
474
479
|
if (filterSourceTaskListId !== undefined) {
|
|
475
480
|
_queryParams["filter_source_task_list_id"] = filterSourceTaskListId;
|
|
476
481
|
}
|
|
482
|
+
if (filterEntryTag !== undefined) {
|
|
483
|
+
_queryParams["filter_entry_tag"] = filterEntryTag;
|
|
484
|
+
}
|
|
477
485
|
if (filterDeadlineGte !== undefined) {
|
|
478
486
|
_queryParams["filter_deadline_gte"] = filterDeadlineGte;
|
|
479
487
|
}
|
|
@@ -658,7 +666,74 @@ class OperationsTasks {
|
|
|
658
666
|
});
|
|
659
667
|
}
|
|
660
668
|
/**
|
|
661
|
-
*
|
|
669
|
+
* Assigns or clears one department on selected tasks across orders. Missing and other-org tasks are skipped. | authz: min_org_role=operator | (OperationsTasksUpdateDepartmentManyReq) -> (OperationsTasksUpdateDepartmentManyRes)
|
|
670
|
+
*
|
|
671
|
+
* @param {Chrt.operations.OperationsTasksUpdateDepartmentManyReq} request
|
|
672
|
+
* @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
|
|
673
|
+
*
|
|
674
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
675
|
+
*
|
|
676
|
+
* @example
|
|
677
|
+
* await client.operations.operationsTasks.updateDepartmentManyV1({
|
|
678
|
+
* operations_task_ids: ["operations_task_ids"]
|
|
679
|
+
* })
|
|
680
|
+
*/
|
|
681
|
+
updateDepartmentManyV1(request, requestOptions) {
|
|
682
|
+
return core.HttpResponsePromise.fromPromise(this.__updateDepartmentManyV1(request, requestOptions));
|
|
683
|
+
}
|
|
684
|
+
__updateDepartmentManyV1(request, requestOptions) {
|
|
685
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
686
|
+
var _a, _b, _c, _d;
|
|
687
|
+
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
688
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
689
|
+
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"),
|
|
690
|
+
method: "PATCH",
|
|
691
|
+
headers: _headers,
|
|
692
|
+
contentType: "application/json",
|
|
693
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
694
|
+
requestType: "json",
|
|
695
|
+
body: request,
|
|
696
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
697
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
698
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
699
|
+
});
|
|
700
|
+
if (_response.ok) {
|
|
701
|
+
return {
|
|
702
|
+
data: _response.body,
|
|
703
|
+
rawResponse: _response.rawResponse,
|
|
704
|
+
};
|
|
705
|
+
}
|
|
706
|
+
if (_response.error.reason === "status-code") {
|
|
707
|
+
switch (_response.error.statusCode) {
|
|
708
|
+
case 422:
|
|
709
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
710
|
+
default:
|
|
711
|
+
throw new errors.ChrtError({
|
|
712
|
+
statusCode: _response.error.statusCode,
|
|
713
|
+
body: _response.error.body,
|
|
714
|
+
rawResponse: _response.rawResponse,
|
|
715
|
+
});
|
|
716
|
+
}
|
|
717
|
+
}
|
|
718
|
+
switch (_response.error.reason) {
|
|
719
|
+
case "non-json":
|
|
720
|
+
throw new errors.ChrtError({
|
|
721
|
+
statusCode: _response.error.statusCode,
|
|
722
|
+
body: _response.error.rawBody,
|
|
723
|
+
rawResponse: _response.rawResponse,
|
|
724
|
+
});
|
|
725
|
+
case "timeout":
|
|
726
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /operations/operations_tasks/update_department_many/v1.");
|
|
727
|
+
case "unknown":
|
|
728
|
+
throw new errors.ChrtError({
|
|
729
|
+
message: _response.error.errorMessage,
|
|
730
|
+
rawResponse: _response.rawResponse,
|
|
731
|
+
});
|
|
732
|
+
}
|
|
733
|
+
});
|
|
734
|
+
}
|
|
735
|
+
/**
|
|
736
|
+
* Creates a new OperationsTask on an Order where the caller is coordinator or executor. Uses the explicit department_id or leaves the task unassigned. | authz_personas=[coordinator_org_operators, order_executor_org_operators] | (OperationsTaskClientCreate1) -> (PydanticObjectId)
|
|
662
737
|
*
|
|
663
738
|
* @param {Chrt.operations.OperationsTaskClientCreate1} request
|
|
664
739
|
* @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -15,6 +15,7 @@ import * as Chrt from "../../../../../../index.js";
|
|
|
15
15
|
export interface OperationsTaskClientCreate1 {
|
|
16
16
|
assigned_user_ids?: string[];
|
|
17
17
|
deadline_timestamp?: string;
|
|
18
|
+
department_id?: string | null;
|
|
18
19
|
description: string;
|
|
19
20
|
order_id: string;
|
|
20
21
|
schema_version: number;
|
|
@@ -18,6 +18,7 @@ import * as Chrt from "../../../../../../index.js";
|
|
|
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 */
|