@chrt-inc/typescript-sdk 1.772.0 → 1.794.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/billing/resources/lineItemGroups/client/Client.d.ts +35 -0
- package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/Client.js +133 -0
- package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/requests/SharedTaskGroupMileageCreateForProviderPayDriverClientReq.d.ts +23 -0
- package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/requests/SharedTaskGroupMileageCreateForProviderPayProviderClientReq.d.ts +24 -0
- package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/requests/SharedTaskGroupMileageCreateForProviderPayProviderClientReq.js +5 -0
- package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/Client.d.ts +46 -9
- package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/Client.js +148 -16
- package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListClientCreate1.d.ts +1 -1
- package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListReorderEntries1.d.ts +1 -1
- package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/shipping/resources/drivers/client/Client.d.ts +4 -4
- package/dist/cjs/api/resources/shipping/resources/drivers/client/Client.js +11 -3
- package/dist/cjs/api/resources/shipping/resources/drivers/client/requests/DriversListV1Request.d.ts +2 -0
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/requests/OrdersNewDraftReq.d.ts +2 -0
- package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientCreate1.d.ts +1 -0
- package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientUpdate1.d.ts +1 -0
- package/dist/cjs/api/types/Driver1.d.ts +0 -1
- package/dist/cjs/api/types/DriverListRes.d.ts +1 -1
- package/dist/cjs/api/types/DriverWithActiveTaskGroupIds1.d.ts +35 -0
- package/dist/cjs/api/types/DriverWithActiveTaskGroupIds1.js +5 -0
- package/dist/cjs/api/types/LineItem1.d.ts +1 -0
- package/dist/cjs/api/types/OperationsTaskListEntry1.d.ts +4 -12
- package/dist/cjs/api/types/OperationsTaskListEntryClientCreate1.d.ts +15 -0
- package/dist/cjs/api/types/OperationsTaskListEntryClientCreate1.js +5 -0
- package/dist/cjs/api/types/OrderDraftValidationRequirements.d.ts +1 -0
- package/dist/cjs/api/types/OrderManifestValidationRequirements.d.ts +1 -0
- package/dist/cjs/api/types/OrderTemplate1.d.ts +1 -0
- package/dist/cjs/api/types/OrderTemplateCore1.d.ts +1 -0
- package/dist/cjs/api/types/OrgMembersAndDrivers.d.ts +1 -1
- package/dist/cjs/api/types/index.d.ts +2 -0
- package/dist/cjs/api/types/index.js +2 -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/billing/resources/lineItemGroups/client/Client.d.mts +35 -0
- package/dist/esm/api/resources/billing/resources/lineItemGroups/client/Client.mjs +133 -0
- package/dist/esm/api/resources/billing/resources/lineItemGroups/client/requests/SharedTaskGroupMileageCreateForProviderPayDriverClientReq.d.mts +23 -0
- package/dist/esm/api/resources/billing/resources/lineItemGroups/client/requests/SharedTaskGroupMileageCreateForProviderPayProviderClientReq.d.mts +24 -0
- package/dist/esm/api/resources/billing/resources/lineItemGroups/client/requests/SharedTaskGroupMileageCreateForProviderPayProviderClientReq.mjs +4 -0
- package/dist/esm/api/resources/billing/resources/lineItemGroups/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/Client.d.mts +46 -9
- package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/Client.mjs +148 -16
- package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListClientCreate1.d.mts +1 -1
- package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListReorderEntries1.d.mts +1 -1
- package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/shipping/resources/drivers/client/Client.d.mts +4 -4
- package/dist/esm/api/resources/shipping/resources/drivers/client/Client.mjs +11 -3
- package/dist/esm/api/resources/shipping/resources/drivers/client/requests/DriversListV1Request.d.mts +2 -0
- package/dist/esm/api/resources/shipping/resources/orderDrafts/client/requests/OrdersNewDraftReq.d.mts +2 -0
- package/dist/esm/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientCreate1.d.mts +1 -0
- package/dist/esm/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientUpdate1.d.mts +1 -0
- package/dist/esm/api/types/Driver1.d.mts +0 -1
- package/dist/esm/api/types/DriverListRes.d.mts +1 -1
- package/dist/esm/api/types/DriverWithActiveTaskGroupIds1.d.mts +35 -0
- package/dist/esm/api/types/DriverWithActiveTaskGroupIds1.mjs +4 -0
- package/dist/esm/api/types/LineItem1.d.mts +1 -0
- package/dist/esm/api/types/OperationsTaskListEntry1.d.mts +4 -12
- package/dist/esm/api/types/OperationsTaskListEntryClientCreate1.d.mts +15 -0
- package/dist/esm/api/types/OperationsTaskListEntryClientCreate1.mjs +4 -0
- package/dist/esm/api/types/OrderDraftValidationRequirements.d.mts +1 -0
- package/dist/esm/api/types/OrderManifestValidationRequirements.d.mts +1 -0
- package/dist/esm/api/types/OrderTemplate1.d.mts +1 -0
- package/dist/esm/api/types/OrderTemplateCore1.d.mts +1 -0
- package/dist/esm/api/types/OrgMembersAndDrivers.d.mts +1 -1
- package/dist/esm/api/types/index.d.mts +2 -0
- package/dist/esm/api/types/index.mjs +2 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +304 -11
- package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListSetEntries1.d.ts +0 -11
- package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListSetEntries1.d.mts +0 -11
- /package/dist/cjs/api/resources/{operations/resources/operationsTaskLists/client/requests/OperationsTaskListSetEntries1.js → billing/resources/lineItemGroups/client/requests/SharedTaskGroupMileageCreateForProviderPayDriverClientReq.js} +0 -0
- /package/dist/esm/api/resources/{operations/resources/operationsTaskLists/client/requests/OperationsTaskListSetEntries1.mjs → billing/resources/lineItemGroups/client/requests/SharedTaskGroupMileageCreateForProviderPayDriverClientReq.mjs} +0 -0
|
@@ -576,7 +576,7 @@ class Drivers {
|
|
|
576
576
|
});
|
|
577
577
|
}
|
|
578
578
|
/**
|
|
579
|
-
* Retrieves driver information for the caller within their organization. | () -> (
|
|
579
|
+
* Retrieves driver information for the caller within their organization. | () -> (DriverWithActiveTaskGroupIds1)
|
|
580
580
|
*
|
|
581
581
|
* @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
|
|
582
582
|
*
|
|
@@ -627,7 +627,7 @@ class Drivers {
|
|
|
627
627
|
});
|
|
628
628
|
}
|
|
629
629
|
/**
|
|
630
|
-
* Retrieves detailed driver information by driver ID within the organization. | () -> (
|
|
630
|
+
* Retrieves detailed driver information by driver ID within the organization. | () -> (DriverWithActiveTaskGroupIds1)
|
|
631
631
|
*
|
|
632
632
|
* @param {string} driverId
|
|
633
633
|
* @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -808,7 +808,7 @@ class Drivers {
|
|
|
808
808
|
__listV1() {
|
|
809
809
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
810
810
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
811
|
-
const { sort_order: sortOrder, page, page_size: pageSize, search, filter_available_according_to_driver: filterAvailableAccordingToDriver, filter_available_according_to_operators: filterAvailableAccordingToOperators, } = request;
|
|
811
|
+
const { sort_order: sortOrder, page, page_size: pageSize, search, filter_available_according_to_driver: filterAvailableAccordingToDriver, filter_available_according_to_operators: filterAvailableAccordingToOperators, filter_status: filterStatus, } = request;
|
|
812
812
|
const _queryParams = {};
|
|
813
813
|
if (sortOrder !== undefined) {
|
|
814
814
|
_queryParams["sort_order"] = sortOrder;
|
|
@@ -829,6 +829,14 @@ class Drivers {
|
|
|
829
829
|
_queryParams["filter_available_according_to_operators"] =
|
|
830
830
|
(_d = filterAvailableAccordingToOperators === null || filterAvailableAccordingToOperators === void 0 ? void 0 : filterAvailableAccordingToOperators.toString()) !== null && _d !== void 0 ? _d : null;
|
|
831
831
|
}
|
|
832
|
+
if (filterStatus !== undefined) {
|
|
833
|
+
if (Array.isArray(filterStatus)) {
|
|
834
|
+
_queryParams["filter_status"] = filterStatus.map((item) => item);
|
|
835
|
+
}
|
|
836
|
+
else {
|
|
837
|
+
_queryParams["filter_status"] = filterStatus;
|
|
838
|
+
}
|
|
839
|
+
}
|
|
832
840
|
let _headers = (0, headers_js_1.mergeHeaders)((_e = this._options) === null || _e === void 0 ? void 0 : _e.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
833
841
|
const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
|
|
834
842
|
url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.ChrtEnvironment.Local, "shipping/drivers/list/v1"),
|
package/dist/cjs/api/resources/shipping/resources/drivers/client/requests/DriversListV1Request.d.ts
CHANGED
|
@@ -24,4 +24,6 @@ export interface DriversListV1Request {
|
|
|
24
24
|
filter_available_according_to_driver?: boolean | null;
|
|
25
25
|
/** Filter by operator-set availability */
|
|
26
26
|
filter_available_according_to_operators?: boolean | null;
|
|
27
|
+
/** Filter by driver state (UNASSIGNED / ASSIGNED / IN_PROGRESS) */
|
|
28
|
+
filter_status?: (Chrt.DriverStatusEnum | null) | (Chrt.DriverStatusEnum | null)[];
|
|
27
29
|
}
|
package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/requests/OrdersNewDraftReq.d.ts
CHANGED
|
@@ -15,6 +15,8 @@ export interface OrdersNewDraftReq {
|
|
|
15
15
|
/** Must be a URL-safe string of 1-64 characters. Allowed characters: A-Z, a-z, 0-9, '.', '_', '~', '-' (RFC 3986 unreserved). */
|
|
16
16
|
off_chrt_reference_id?: string | null;
|
|
17
17
|
department_id?: string | null;
|
|
18
|
+
/** OperationsTaskList ids to apply to the coordinator's Case at draft creation; foreign/stale ids are skipped without failing the draft. */
|
|
19
|
+
task_list_ids?: string[];
|
|
18
20
|
/** Optional key, unique per caller org, that makes draft creation idempotent: re-sending the same key returns the already-created draft instead of creating a duplicate. */
|
|
19
21
|
creation_idempotency_key?: string | null;
|
|
20
22
|
/** Seed content for the OrderThread's first user turn (text + long-lived references). Agentic builds supply it; click-ops leaves it None for a blank seed turn. */
|
|
@@ -20,6 +20,7 @@ export interface OrderTemplateClientCreate1 {
|
|
|
20
20
|
/** Must be a string starting with `org_` */
|
|
21
21
|
coordinator_org_id?: string | null;
|
|
22
22
|
department_id?: string | null;
|
|
23
|
+
task_list_ids?: string[];
|
|
23
24
|
name: string;
|
|
24
25
|
description?: string | null;
|
|
25
26
|
off_chrt_reference_id_str?: string | null;
|
|
@@ -19,6 +19,7 @@ export interface OrderTemplateClientUpdate1 {
|
|
|
19
19
|
/** Must be a string starting with `org_` */
|
|
20
20
|
coordinator_org_id?: string | null;
|
|
21
21
|
department_id?: string | null;
|
|
22
|
+
task_list_ids?: string[];
|
|
22
23
|
description__set_to_None?: boolean;
|
|
23
24
|
text__set_to_None?: boolean;
|
|
24
25
|
off_chrt_reference_id_str__set_to_None?: boolean;
|
|
@@ -21,7 +21,6 @@ export interface Driver1 {
|
|
|
21
21
|
available_according_to_operators?: boolean;
|
|
22
22
|
waiting?: boolean;
|
|
23
23
|
auto_assign_enabled?: boolean;
|
|
24
|
-
active_task_group_ids?: string[];
|
|
25
24
|
last_seen_at_location?: Chrt.LocationFeature | null;
|
|
26
25
|
last_seen_at_timestamp?: string | null;
|
|
27
26
|
last_seen_at_location_city?: string | null;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Chrt from "../index.js";
|
|
5
|
+
/**
|
|
6
|
+
* Driver read DTO: persisted Driver1 plus the derived active task group IDs.
|
|
7
|
+
*
|
|
8
|
+
* The field is computed per request from shipping.task_groups so the JSON shape
|
|
9
|
+
* stays identical to when active_task_group_ids was persisted on the driver.
|
|
10
|
+
*/
|
|
11
|
+
export interface DriverWithActiveTaskGroupIds1 {
|
|
12
|
+
schema_version: number;
|
|
13
|
+
email_address_primary?: string | null;
|
|
14
|
+
email_address_secondary?: string | null;
|
|
15
|
+
phone_number_primary?: string | null;
|
|
16
|
+
phone_number_secondary?: string | null;
|
|
17
|
+
first_name?: string | null;
|
|
18
|
+
last_name?: string | null;
|
|
19
|
+
vehicle_types?: Chrt.VehicleTypeEnum[];
|
|
20
|
+
_id: string;
|
|
21
|
+
/** Must be a string starting with `org_` */
|
|
22
|
+
org_id: string;
|
|
23
|
+
/** Must be a string starting with `user_` */
|
|
24
|
+
user_id: string;
|
|
25
|
+
status?: Chrt.DriverStatusEnum;
|
|
26
|
+
available_according_to_driver?: boolean;
|
|
27
|
+
available_according_to_operators?: boolean;
|
|
28
|
+
waiting?: boolean;
|
|
29
|
+
auto_assign_enabled?: boolean;
|
|
30
|
+
last_seen_at_location?: Chrt.LocationFeature | null;
|
|
31
|
+
last_seen_at_timestamp?: string | null;
|
|
32
|
+
last_seen_at_location_city?: string | null;
|
|
33
|
+
last_seen_at_location_large_city?: string | null;
|
|
34
|
+
active_task_group_ids?: string[];
|
|
35
|
+
}
|
|
@@ -26,6 +26,7 @@ export interface LineItem1 {
|
|
|
26
26
|
ad_hoc__status?: Chrt.LineItemStatusEnum | null;
|
|
27
27
|
rate_sheet_id?: string | null;
|
|
28
28
|
pro_forma__bid_thread_id?: string | null;
|
|
29
|
+
line_item_calculation_id?: string | null;
|
|
29
30
|
created_at_timestamp?: string;
|
|
30
31
|
line_item_s3_object_metadata_ids?: string[];
|
|
31
32
|
}
|
|
@@ -3,23 +3,15 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as Chrt from "../index.js";
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* The deadline is computed from (`deadline_anchor`, `deadline_offset_seconds`):
|
|
11
|
-
* `FROM_FIRST_TASK` => the first entry's resolved deadline + offset;
|
|
12
|
-
* `FROM_PREVIOUS_TASK` => the previous entry's resolved deadline + offset (the
|
|
13
|
-
* first entry's "previous" is `apply_time`). The first entry itself anchors to
|
|
14
|
-
* `apply_time` (or the apply-time `initial_deadline_timestamp` pin). Defaults to
|
|
15
|
-
* `FROM_PREVIOUS_TASK` + 1200s, which reproduces the 20-min positional stagger.
|
|
16
|
-
* `deadline_offset_seconds` may be negative.
|
|
6
|
+
* A stored Task List entry: client content plus a server-assigned stable
|
|
7
|
+
* `uuid`. The `uuid` keys the edit / remove / reorder routes (entries are not
|
|
8
|
+
* unique by `task_type` — a list can repeat a type).
|
|
17
9
|
*/
|
|
18
10
|
export interface OperationsTaskListEntry1 {
|
|
19
|
-
id?: string;
|
|
20
11
|
task_type: Chrt.OperationsTaskTypeEnum;
|
|
21
12
|
title: string;
|
|
22
13
|
description: string;
|
|
23
14
|
deadline_anchor?: Chrt.DeadlineAnchorEnum;
|
|
24
15
|
deadline_offset_seconds?: number;
|
|
16
|
+
uuid?: string;
|
|
25
17
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Chrt from "../index.js";
|
|
5
|
+
/**
|
|
6
|
+
* Entry content the client supplies — at list-create time and via the add /
|
|
7
|
+
* edit entry routes. Carries no identity: the server assigns the `uuid`.
|
|
8
|
+
*/
|
|
9
|
+
export interface OperationsTaskListEntryClientCreate1 {
|
|
10
|
+
task_type: Chrt.OperationsTaskTypeEnum;
|
|
11
|
+
title: string;
|
|
12
|
+
description: string;
|
|
13
|
+
deadline_anchor?: Chrt.DeadlineAnchorEnum;
|
|
14
|
+
deadline_offset_seconds?: number;
|
|
15
|
+
}
|
|
@@ -9,6 +9,7 @@ export interface OrderDraftValidationRequirements {
|
|
|
9
9
|
task_groups_have_valid_task_sequence?: boolean | null;
|
|
10
10
|
tasks_have_valid_cargo?: boolean | null;
|
|
11
11
|
cargos_have_valid_lifecycle?: boolean | null;
|
|
12
|
+
at_least_one_task_has_time_window?: boolean | null;
|
|
12
13
|
order_has_shipper?: boolean | null;
|
|
13
14
|
order_has_coordinator?: boolean | null;
|
|
14
15
|
}
|
|
@@ -8,6 +8,7 @@ export interface OrderManifestValidationRequirements {
|
|
|
8
8
|
task_groups_have_valid_task_sequence?: boolean | null;
|
|
9
9
|
tasks_have_valid_cargo?: boolean | null;
|
|
10
10
|
cargos_have_valid_lifecycle?: boolean | null;
|
|
11
|
+
at_least_one_task_has_time_window?: boolean | null;
|
|
11
12
|
order_has_shipper?: boolean | null;
|
|
12
13
|
order_has_coordinator?: boolean | null;
|
|
13
14
|
}
|
|
@@ -13,6 +13,7 @@ export interface OrderTemplate1 {
|
|
|
13
13
|
/** Must be a string starting with `org_` */
|
|
14
14
|
coordinator_org_id?: string | null;
|
|
15
15
|
department_id?: string | null;
|
|
16
|
+
task_list_ids?: string[];
|
|
16
17
|
name: string;
|
|
17
18
|
description?: string | null;
|
|
18
19
|
off_chrt_reference_id_str?: string | null;
|
|
@@ -146,6 +146,7 @@ export * from "./DriverStatsRes.js";
|
|
|
146
146
|
export * from "./DriverStatusEnum.js";
|
|
147
147
|
export * from "./DriverUpdateAvailabilityReq.js";
|
|
148
148
|
export * from "./DriverUpdateRes.js";
|
|
149
|
+
export * from "./DriverWithActiveTaskGroupIds1.js";
|
|
149
150
|
export * from "./FirebaseCloudMessagingTokenData1.js";
|
|
150
151
|
export * from "./FlightAwareAlertFlight.js";
|
|
151
152
|
export * from "./FlightAwareAlertPayload.js";
|
|
@@ -229,6 +230,7 @@ export * from "./OperationsTask1.js";
|
|
|
229
230
|
export * from "./OperationsTaskComment1.js";
|
|
230
231
|
export * from "./OperationsTaskList1.js";
|
|
231
232
|
export * from "./OperationsTaskListEntry1.js";
|
|
233
|
+
export * from "./OperationsTaskListEntryClientCreate1.js";
|
|
232
234
|
export * from "./OperationsTaskListListRes.js";
|
|
233
235
|
export * from "./OperationsTaskListRemoveFromCaseRes1.js";
|
|
234
236
|
export * from "./OperationsTaskListRes.js";
|
|
@@ -162,6 +162,7 @@ __exportStar(require("./DriverStatsRes.js"), exports);
|
|
|
162
162
|
__exportStar(require("./DriverStatusEnum.js"), exports);
|
|
163
163
|
__exportStar(require("./DriverUpdateAvailabilityReq.js"), exports);
|
|
164
164
|
__exportStar(require("./DriverUpdateRes.js"), exports);
|
|
165
|
+
__exportStar(require("./DriverWithActiveTaskGroupIds1.js"), exports);
|
|
165
166
|
__exportStar(require("./FirebaseCloudMessagingTokenData1.js"), exports);
|
|
166
167
|
__exportStar(require("./FlightAwareAlertFlight.js"), exports);
|
|
167
168
|
__exportStar(require("./FlightAwareAlertPayload.js"), exports);
|
|
@@ -245,6 +246,7 @@ __exportStar(require("./OperationsTask1.js"), exports);
|
|
|
245
246
|
__exportStar(require("./OperationsTaskComment1.js"), exports);
|
|
246
247
|
__exportStar(require("./OperationsTaskList1.js"), exports);
|
|
247
248
|
__exportStar(require("./OperationsTaskListEntry1.js"), exports);
|
|
249
|
+
__exportStar(require("./OperationsTaskListEntryClientCreate1.js"), exports);
|
|
248
250
|
__exportStar(require("./OperationsTaskListListRes.js"), exports);
|
|
249
251
|
__exportStar(require("./OperationsTaskListRemoveFromCaseRes1.js"), exports);
|
|
250
252
|
__exportStar(require("./OperationsTaskListRes.js"), exports);
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.
|
|
1
|
+
export declare const SDK_VERSION = "1.794.0";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/Client.mjs
CHANGED
|
@@ -20,8 +20,8 @@ export class ChrtClient {
|
|
|
20
20
|
this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
|
|
21
21
|
"X-Fern-Language": "JavaScript",
|
|
22
22
|
"X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
|
|
23
|
-
"X-Fern-SDK-Version": "1.
|
|
24
|
-
"User-Agent": "@chrt-inc/typescript-sdk/1.
|
|
23
|
+
"X-Fern-SDK-Version": "1.794.0",
|
|
24
|
+
"User-Agent": "@chrt-inc/typescript-sdk/1.794.0",
|
|
25
25
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
26
26
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
27
27
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -268,5 +268,40 @@ export declare class LineItemGroups {
|
|
|
268
268
|
*/
|
|
269
269
|
fromRateSheetCreateForProviderPayDriverV1(request: Chrt.CreateLigFromRateSheetForVectorClientReq, requestOptions?: LineItemGroups.RequestOptions): core.HttpResponsePromise<Chrt.LineItemGroup1>;
|
|
270
270
|
private __fromRateSheetCreateForProviderPayDriverV1;
|
|
271
|
+
/**
|
|
272
|
+
* Prices a single driver's combined trip across several task groups once. Recomputes route mileage from the ordered task locations (plus optional start/end legs), applies the CHRT-ground rate sheet, and atomically creates an OrderGroup-anchored LineItemGroup, its mileage LineItems, and the LineItemCalculation that records how the charges were derived. The LIG is detached on create (task_group_id is None) — attach to a Statement afterwards. | authz: allowed_org_types=[provider], min_org_role=operator | (SharedTaskGroupMileageCreateForProviderPayDriverClientReq) -> (LineItemGroup1)
|
|
273
|
+
*
|
|
274
|
+
* @param {Chrt.billing.SharedTaskGroupMileageCreateForProviderPayDriverClientReq} request
|
|
275
|
+
* @param {LineItemGroups.RequestOptions} requestOptions - Request-specific configuration.
|
|
276
|
+
*
|
|
277
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
278
|
+
*
|
|
279
|
+
* @example
|
|
280
|
+
* await client.billing.lineItemGroups.sharedTaskGroupMileageCreateV1({
|
|
281
|
+
* order_group_id: "order_group_id",
|
|
282
|
+
* rate_sheet_id: "rate_sheet_id",
|
|
283
|
+
* payment_destination_driver_id: "payment_destination_driver_id",
|
|
284
|
+
* task_ids: ["task_ids"]
|
|
285
|
+
* })
|
|
286
|
+
*/
|
|
287
|
+
sharedTaskGroupMileageCreateV1(request: Chrt.billing.SharedTaskGroupMileageCreateForProviderPayDriverClientReq, requestOptions?: LineItemGroups.RequestOptions): core.HttpResponsePromise<Chrt.LineItemGroup1>;
|
|
288
|
+
private __sharedTaskGroupMileageCreateV1;
|
|
289
|
+
/**
|
|
290
|
+
* Prices a single agent's combined trip across several task groups once, on the provider_pay_provider vector — a coordinator paying the executor (commonly an off-chrt agent) that ran the route. Recomputes route mileage from the ordered task locations (plus optional start/end legs), applies the CHRT-ground rate sheet, and atomically creates an OrderGroup-anchored LineItemGroup, its mileage LineItems, and the LineItemCalculation that records how the charges were derived. The LIG is detached on create (task_group_id is None) — attach to a Statement afterwards. | authz: allowed_org_types=[provider], min_org_role=operator | (SharedTaskGroupMileageCreateForProviderPayProviderClientReq) -> (LineItemGroup1)
|
|
291
|
+
*
|
|
292
|
+
* @param {Chrt.billing.SharedTaskGroupMileageCreateForProviderPayProviderClientReq} request
|
|
293
|
+
* @param {LineItemGroups.RequestOptions} requestOptions - Request-specific configuration.
|
|
294
|
+
*
|
|
295
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
296
|
+
*
|
|
297
|
+
* @example
|
|
298
|
+
* await client.billing.lineItemGroups.sharedTaskGroupMileageCreateForProviderPayProviderV1({
|
|
299
|
+
* order_group_id: "order_group_id",
|
|
300
|
+
* rate_sheet_id: "rate_sheet_id",
|
|
301
|
+
* task_ids: ["task_ids"]
|
|
302
|
+
* })
|
|
303
|
+
*/
|
|
304
|
+
sharedTaskGroupMileageCreateForProviderPayProviderV1(request: Chrt.billing.SharedTaskGroupMileageCreateForProviderPayProviderClientReq, requestOptions?: LineItemGroups.RequestOptions): core.HttpResponsePromise<Chrt.LineItemGroup1>;
|
|
305
|
+
private __sharedTaskGroupMileageCreateForProviderPayProviderV1;
|
|
271
306
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
272
307
|
}
|
|
@@ -1021,6 +1021,139 @@ export class LineItemGroups {
|
|
|
1021
1021
|
}
|
|
1022
1022
|
});
|
|
1023
1023
|
}
|
|
1024
|
+
/**
|
|
1025
|
+
* Prices a single driver's combined trip across several task groups once. Recomputes route mileage from the ordered task locations (plus optional start/end legs), applies the CHRT-ground rate sheet, and atomically creates an OrderGroup-anchored LineItemGroup, its mileage LineItems, and the LineItemCalculation that records how the charges were derived. The LIG is detached on create (task_group_id is None) — attach to a Statement afterwards. | authz: allowed_org_types=[provider], min_org_role=operator | (SharedTaskGroupMileageCreateForProviderPayDriverClientReq) -> (LineItemGroup1)
|
|
1026
|
+
*
|
|
1027
|
+
* @param {Chrt.billing.SharedTaskGroupMileageCreateForProviderPayDriverClientReq} request
|
|
1028
|
+
* @param {LineItemGroups.RequestOptions} requestOptions - Request-specific configuration.
|
|
1029
|
+
*
|
|
1030
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
1031
|
+
*
|
|
1032
|
+
* @example
|
|
1033
|
+
* await client.billing.lineItemGroups.sharedTaskGroupMileageCreateV1({
|
|
1034
|
+
* order_group_id: "order_group_id",
|
|
1035
|
+
* rate_sheet_id: "rate_sheet_id",
|
|
1036
|
+
* payment_destination_driver_id: "payment_destination_driver_id",
|
|
1037
|
+
* task_ids: ["task_ids"]
|
|
1038
|
+
* })
|
|
1039
|
+
*/
|
|
1040
|
+
sharedTaskGroupMileageCreateV1(request, requestOptions) {
|
|
1041
|
+
return core.HttpResponsePromise.fromPromise(this.__sharedTaskGroupMileageCreateV1(request, requestOptions));
|
|
1042
|
+
}
|
|
1043
|
+
__sharedTaskGroupMileageCreateV1(request, requestOptions) {
|
|
1044
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1045
|
+
var _a, _b, _c, _d;
|
|
1046
|
+
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);
|
|
1047
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
1048
|
+
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, "billing/line_item_groups/shared_task_group_mileage/create/v1"),
|
|
1049
|
+
method: "POST",
|
|
1050
|
+
headers: _headers,
|
|
1051
|
+
contentType: "application/json",
|
|
1052
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
1053
|
+
requestType: "json",
|
|
1054
|
+
body: request,
|
|
1055
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
1056
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
1057
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1058
|
+
});
|
|
1059
|
+
if (_response.ok) {
|
|
1060
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
1061
|
+
}
|
|
1062
|
+
if (_response.error.reason === "status-code") {
|
|
1063
|
+
switch (_response.error.statusCode) {
|
|
1064
|
+
case 422:
|
|
1065
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
1066
|
+
default:
|
|
1067
|
+
throw new errors.ChrtError({
|
|
1068
|
+
statusCode: _response.error.statusCode,
|
|
1069
|
+
body: _response.error.body,
|
|
1070
|
+
rawResponse: _response.rawResponse,
|
|
1071
|
+
});
|
|
1072
|
+
}
|
|
1073
|
+
}
|
|
1074
|
+
switch (_response.error.reason) {
|
|
1075
|
+
case "non-json":
|
|
1076
|
+
throw new errors.ChrtError({
|
|
1077
|
+
statusCode: _response.error.statusCode,
|
|
1078
|
+
body: _response.error.rawBody,
|
|
1079
|
+
rawResponse: _response.rawResponse,
|
|
1080
|
+
});
|
|
1081
|
+
case "timeout":
|
|
1082
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /billing/line_item_groups/shared_task_group_mileage/create/v1.");
|
|
1083
|
+
case "unknown":
|
|
1084
|
+
throw new errors.ChrtError({
|
|
1085
|
+
message: _response.error.errorMessage,
|
|
1086
|
+
rawResponse: _response.rawResponse,
|
|
1087
|
+
});
|
|
1088
|
+
}
|
|
1089
|
+
});
|
|
1090
|
+
}
|
|
1091
|
+
/**
|
|
1092
|
+
* Prices a single agent's combined trip across several task groups once, on the provider_pay_provider vector — a coordinator paying the executor (commonly an off-chrt agent) that ran the route. Recomputes route mileage from the ordered task locations (plus optional start/end legs), applies the CHRT-ground rate sheet, and atomically creates an OrderGroup-anchored LineItemGroup, its mileage LineItems, and the LineItemCalculation that records how the charges were derived. The LIG is detached on create (task_group_id is None) — attach to a Statement afterwards. | authz: allowed_org_types=[provider], min_org_role=operator | (SharedTaskGroupMileageCreateForProviderPayProviderClientReq) -> (LineItemGroup1)
|
|
1093
|
+
*
|
|
1094
|
+
* @param {Chrt.billing.SharedTaskGroupMileageCreateForProviderPayProviderClientReq} request
|
|
1095
|
+
* @param {LineItemGroups.RequestOptions} requestOptions - Request-specific configuration.
|
|
1096
|
+
*
|
|
1097
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
1098
|
+
*
|
|
1099
|
+
* @example
|
|
1100
|
+
* await client.billing.lineItemGroups.sharedTaskGroupMileageCreateForProviderPayProviderV1({
|
|
1101
|
+
* order_group_id: "order_group_id",
|
|
1102
|
+
* rate_sheet_id: "rate_sheet_id",
|
|
1103
|
+
* task_ids: ["task_ids"]
|
|
1104
|
+
* })
|
|
1105
|
+
*/
|
|
1106
|
+
sharedTaskGroupMileageCreateForProviderPayProviderV1(request, requestOptions) {
|
|
1107
|
+
return core.HttpResponsePromise.fromPromise(this.__sharedTaskGroupMileageCreateForProviderPayProviderV1(request, requestOptions));
|
|
1108
|
+
}
|
|
1109
|
+
__sharedTaskGroupMileageCreateForProviderPayProviderV1(request, requestOptions) {
|
|
1110
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1111
|
+
var _a, _b, _c, _d;
|
|
1112
|
+
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);
|
|
1113
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
1114
|
+
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, "billing/line_item_groups/shared_task_group_mileage/create_for_provider_pay_provider/v1"),
|
|
1115
|
+
method: "POST",
|
|
1116
|
+
headers: _headers,
|
|
1117
|
+
contentType: "application/json",
|
|
1118
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
1119
|
+
requestType: "json",
|
|
1120
|
+
body: request,
|
|
1121
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
1122
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
1123
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1124
|
+
});
|
|
1125
|
+
if (_response.ok) {
|
|
1126
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
1127
|
+
}
|
|
1128
|
+
if (_response.error.reason === "status-code") {
|
|
1129
|
+
switch (_response.error.statusCode) {
|
|
1130
|
+
case 422:
|
|
1131
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
1132
|
+
default:
|
|
1133
|
+
throw new errors.ChrtError({
|
|
1134
|
+
statusCode: _response.error.statusCode,
|
|
1135
|
+
body: _response.error.body,
|
|
1136
|
+
rawResponse: _response.rawResponse,
|
|
1137
|
+
});
|
|
1138
|
+
}
|
|
1139
|
+
}
|
|
1140
|
+
switch (_response.error.reason) {
|
|
1141
|
+
case "non-json":
|
|
1142
|
+
throw new errors.ChrtError({
|
|
1143
|
+
statusCode: _response.error.statusCode,
|
|
1144
|
+
body: _response.error.rawBody,
|
|
1145
|
+
rawResponse: _response.rawResponse,
|
|
1146
|
+
});
|
|
1147
|
+
case "timeout":
|
|
1148
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /billing/line_item_groups/shared_task_group_mileage/create_for_provider_pay_provider/v1.");
|
|
1149
|
+
case "unknown":
|
|
1150
|
+
throw new errors.ChrtError({
|
|
1151
|
+
message: _response.error.errorMessage,
|
|
1152
|
+
rawResponse: _response.rawResponse,
|
|
1153
|
+
});
|
|
1154
|
+
}
|
|
1155
|
+
});
|
|
1156
|
+
}
|
|
1024
1157
|
_getAuthorizationHeader() {
|
|
1025
1158
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1026
1159
|
const bearer = yield core.Supplier.get(this._options.token);
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Chrt from "../../../../../../index.mjs";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* order_group_id: "order_group_id",
|
|
9
|
+
* rate_sheet_id: "rate_sheet_id",
|
|
10
|
+
* payment_destination_driver_id: "payment_destination_driver_id",
|
|
11
|
+
* task_ids: ["task_ids"]
|
|
12
|
+
* }
|
|
13
|
+
*/
|
|
14
|
+
export interface SharedTaskGroupMileageCreateForProviderPayDriverClientReq {
|
|
15
|
+
order_group_id: string;
|
|
16
|
+
rate_sheet_id: string;
|
|
17
|
+
payment_destination_driver_id: string;
|
|
18
|
+
task_ids: string[];
|
|
19
|
+
start_location?: Chrt.LocationFeature | null;
|
|
20
|
+
start_location_label?: string | null;
|
|
21
|
+
end_location?: Chrt.LocationFeature | null;
|
|
22
|
+
end_location_label?: string | null;
|
|
23
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Chrt from "../../../../../../index.mjs";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* order_group_id: "order_group_id",
|
|
9
|
+
* rate_sheet_id: "rate_sheet_id",
|
|
10
|
+
* task_ids: ["task_ids"]
|
|
11
|
+
* }
|
|
12
|
+
*/
|
|
13
|
+
export interface SharedTaskGroupMileageCreateForProviderPayProviderClientReq {
|
|
14
|
+
order_group_id: string;
|
|
15
|
+
rate_sheet_id: string;
|
|
16
|
+
/** Must be a string starting with `org_` */
|
|
17
|
+
executor_org_id?: string | null;
|
|
18
|
+
off_chrt_executor_org_id?: string | null;
|
|
19
|
+
task_ids: string[];
|
|
20
|
+
start_location?: Chrt.LocationFeature | null;
|
|
21
|
+
start_location_label?: string | null;
|
|
22
|
+
end_location?: Chrt.LocationFeature | null;
|
|
23
|
+
end_location_label?: string | null;
|
|
24
|
+
}
|
|
@@ -1,2 +1,4 @@
|
|
|
1
1
|
export { type LineItemGroupsListV1Request } from "./LineItemGroupsListV1Request.mjs";
|
|
2
2
|
export { type LineItemGroupAdHocCreateClientReq } from "./LineItemGroupAdHocCreateClientReq.mjs";
|
|
3
|
+
export { type SharedTaskGroupMileageCreateForProviderPayDriverClientReq } from "./SharedTaskGroupMileageCreateForProviderPayDriverClientReq.mjs";
|
|
4
|
+
export { type SharedTaskGroupMileageCreateForProviderPayProviderClientReq } from "./SharedTaskGroupMileageCreateForProviderPayProviderClientReq.mjs";
|
|
@@ -93,21 +93,58 @@ export declare class OperationsTaskLists {
|
|
|
93
93
|
createV1(request: Chrt.operations.OperationsTaskListClientCreate1, requestOptions?: OperationsTaskLists.RequestOptions): core.HttpResponsePromise<string>;
|
|
94
94
|
private __createV1;
|
|
95
95
|
/**
|
|
96
|
-
*
|
|
96
|
+
* Appends a new entry to an OperationsTaskList's `entries` array. The server assigns a fresh UUID and returns it. Order is load-bearing for from_previous_task-anchored deadlines. | authz: min_org_role=operator | (OperationsTaskListEntryClientCreate1) -> (str)
|
|
97
97
|
*
|
|
98
98
|
* @param {string} taskListId
|
|
99
|
-
* @param {Chrt.
|
|
99
|
+
* @param {Chrt.OperationsTaskListEntryClientCreate1} request
|
|
100
100
|
* @param {OperationsTaskLists.RequestOptions} requestOptions - Request-specific configuration.
|
|
101
101
|
*
|
|
102
102
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
103
103
|
*
|
|
104
104
|
* @example
|
|
105
|
-
* await client.operations.operationsTaskLists.
|
|
105
|
+
* await client.operations.operationsTaskLists.addEntryV1("task_list_id", {
|
|
106
|
+
* task_type: "review_order_details",
|
|
107
|
+
* title: "title",
|
|
108
|
+
* description: "description"
|
|
109
|
+
* })
|
|
110
|
+
*/
|
|
111
|
+
addEntryV1(taskListId: string, request: Chrt.OperationsTaskListEntryClientCreate1, requestOptions?: OperationsTaskLists.RequestOptions): core.HttpResponsePromise<string>;
|
|
112
|
+
private __addEntryV1;
|
|
113
|
+
/**
|
|
114
|
+
* Replaces the entry with the given uuid in an OperationsTaskList's `entries` array. The stored uuid is preserved regardless of the request body. 404 if no entry matches. | authz: min_org_role=operator | (OperationsTaskListEntryClientCreate1) -> (bool)
|
|
115
|
+
*
|
|
116
|
+
* @param {string} taskListId
|
|
117
|
+
* @param {string} entryUuid
|
|
118
|
+
* @param {Chrt.OperationsTaskListEntryClientCreate1} request
|
|
119
|
+
* @param {OperationsTaskLists.RequestOptions} requestOptions - Request-specific configuration.
|
|
120
|
+
*
|
|
121
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
122
|
+
*
|
|
123
|
+
* @example
|
|
124
|
+
* await client.operations.operationsTaskLists.editEntryV1("task_list_id", "entry_uuid", {
|
|
125
|
+
* task_type: "review_order_details",
|
|
126
|
+
* title: "title",
|
|
127
|
+
* description: "description"
|
|
128
|
+
* })
|
|
129
|
+
*/
|
|
130
|
+
editEntryV1(taskListId: string, entryUuid: string, request: Chrt.OperationsTaskListEntryClientCreate1, requestOptions?: OperationsTaskLists.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
131
|
+
private __editEntryV1;
|
|
132
|
+
/**
|
|
133
|
+
* Removes the entry with the given uuid from an OperationsTaskList's `entries` array, closing the gap in order. 404 if no entry matches. | authz: min_org_role=operator | () -> (bool)
|
|
134
|
+
*
|
|
135
|
+
* @param {string} taskListId
|
|
136
|
+
* @param {string} entryUuid
|
|
137
|
+
* @param {OperationsTaskLists.RequestOptions} requestOptions - Request-specific configuration.
|
|
138
|
+
*
|
|
139
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
140
|
+
*
|
|
141
|
+
* @example
|
|
142
|
+
* await client.operations.operationsTaskLists.removeEntryV1("task_list_id", "entry_uuid")
|
|
106
143
|
*/
|
|
107
|
-
|
|
108
|
-
private
|
|
144
|
+
removeEntryV1(taskListId: string, entryUuid: string, requestOptions?: OperationsTaskLists.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
145
|
+
private __removeEntryV1;
|
|
109
146
|
/**
|
|
110
|
-
* Reorders an OperationsTaskList's existing entries. `
|
|
147
|
+
* Reorders an OperationsTaskList's existing entries. `entry_uuids` must be an exact permutation of the list's current entry uuids (every uuid present, no extras, no duplicates), so a reorder can never drop, add, or mutate an entry. | authz: min_org_role=operator | (OperationsTaskListReorderEntries1) -> (bool)
|
|
111
148
|
*
|
|
112
149
|
* @param {string} taskListId
|
|
113
150
|
* @param {Chrt.operations.OperationsTaskListReorderEntries1} request
|
|
@@ -173,9 +210,9 @@ export declare class OperationsTaskLists {
|
|
|
173
210
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
174
211
|
*
|
|
175
212
|
* @example
|
|
176
|
-
* await client.operations.operationsTaskLists.
|
|
213
|
+
* await client.operations.operationsTaskLists.removeNotStartedTasksFromCaseV1("task_list_id", "case_id")
|
|
177
214
|
*/
|
|
178
|
-
|
|
179
|
-
private
|
|
215
|
+
removeNotStartedTasksFromCaseV1(taskListId: string, caseId: string, requestOptions?: OperationsTaskLists.RequestOptions): core.HttpResponsePromise<Chrt.OperationsTaskListRemoveFromCaseRes1>;
|
|
216
|
+
private __removeNotStartedTasksFromCaseV1;
|
|
180
217
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
181
218
|
}
|