@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.
Files changed (76) hide show
  1. package/dist/cjs/Client.js +2 -2
  2. package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/Client.d.ts +35 -0
  3. package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/Client.js +133 -0
  4. package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/requests/SharedTaskGroupMileageCreateForProviderPayDriverClientReq.d.ts +23 -0
  5. package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/requests/SharedTaskGroupMileageCreateForProviderPayProviderClientReq.d.ts +24 -0
  6. package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/requests/SharedTaskGroupMileageCreateForProviderPayProviderClientReq.js +5 -0
  7. package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/requests/index.d.ts +2 -0
  8. package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/Client.d.ts +46 -9
  9. package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/Client.js +148 -16
  10. package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListClientCreate1.d.ts +1 -1
  11. package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListReorderEntries1.d.ts +1 -1
  12. package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/requests/index.d.ts +0 -1
  13. package/dist/cjs/api/resources/shipping/resources/drivers/client/Client.d.ts +4 -4
  14. package/dist/cjs/api/resources/shipping/resources/drivers/client/Client.js +11 -3
  15. package/dist/cjs/api/resources/shipping/resources/drivers/client/requests/DriversListV1Request.d.ts +2 -0
  16. package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/requests/OrdersNewDraftReq.d.ts +2 -0
  17. package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientCreate1.d.ts +1 -0
  18. package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientUpdate1.d.ts +1 -0
  19. package/dist/cjs/api/types/Driver1.d.ts +0 -1
  20. package/dist/cjs/api/types/DriverListRes.d.ts +1 -1
  21. package/dist/cjs/api/types/DriverWithActiveTaskGroupIds1.d.ts +35 -0
  22. package/dist/cjs/api/types/DriverWithActiveTaskGroupIds1.js +5 -0
  23. package/dist/cjs/api/types/LineItem1.d.ts +1 -0
  24. package/dist/cjs/api/types/OperationsTaskListEntry1.d.ts +4 -12
  25. package/dist/cjs/api/types/OperationsTaskListEntryClientCreate1.d.ts +15 -0
  26. package/dist/cjs/api/types/OperationsTaskListEntryClientCreate1.js +5 -0
  27. package/dist/cjs/api/types/OrderDraftValidationRequirements.d.ts +1 -0
  28. package/dist/cjs/api/types/OrderManifestValidationRequirements.d.ts +1 -0
  29. package/dist/cjs/api/types/OrderTemplate1.d.ts +1 -0
  30. package/dist/cjs/api/types/OrderTemplateCore1.d.ts +1 -0
  31. package/dist/cjs/api/types/OrgMembersAndDrivers.d.ts +1 -1
  32. package/dist/cjs/api/types/index.d.ts +2 -0
  33. package/dist/cjs/api/types/index.js +2 -0
  34. package/dist/cjs/version.d.ts +1 -1
  35. package/dist/cjs/version.js +1 -1
  36. package/dist/esm/Client.mjs +2 -2
  37. package/dist/esm/api/resources/billing/resources/lineItemGroups/client/Client.d.mts +35 -0
  38. package/dist/esm/api/resources/billing/resources/lineItemGroups/client/Client.mjs +133 -0
  39. package/dist/esm/api/resources/billing/resources/lineItemGroups/client/requests/SharedTaskGroupMileageCreateForProviderPayDriverClientReq.d.mts +23 -0
  40. package/dist/esm/api/resources/billing/resources/lineItemGroups/client/requests/SharedTaskGroupMileageCreateForProviderPayProviderClientReq.d.mts +24 -0
  41. package/dist/esm/api/resources/billing/resources/lineItemGroups/client/requests/SharedTaskGroupMileageCreateForProviderPayProviderClientReq.mjs +4 -0
  42. package/dist/esm/api/resources/billing/resources/lineItemGroups/client/requests/index.d.mts +2 -0
  43. package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/Client.d.mts +46 -9
  44. package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/Client.mjs +148 -16
  45. package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListClientCreate1.d.mts +1 -1
  46. package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListReorderEntries1.d.mts +1 -1
  47. package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/requests/index.d.mts +0 -1
  48. package/dist/esm/api/resources/shipping/resources/drivers/client/Client.d.mts +4 -4
  49. package/dist/esm/api/resources/shipping/resources/drivers/client/Client.mjs +11 -3
  50. package/dist/esm/api/resources/shipping/resources/drivers/client/requests/DriversListV1Request.d.mts +2 -0
  51. package/dist/esm/api/resources/shipping/resources/orderDrafts/client/requests/OrdersNewDraftReq.d.mts +2 -0
  52. package/dist/esm/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientCreate1.d.mts +1 -0
  53. package/dist/esm/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientUpdate1.d.mts +1 -0
  54. package/dist/esm/api/types/Driver1.d.mts +0 -1
  55. package/dist/esm/api/types/DriverListRes.d.mts +1 -1
  56. package/dist/esm/api/types/DriverWithActiveTaskGroupIds1.d.mts +35 -0
  57. package/dist/esm/api/types/DriverWithActiveTaskGroupIds1.mjs +4 -0
  58. package/dist/esm/api/types/LineItem1.d.mts +1 -0
  59. package/dist/esm/api/types/OperationsTaskListEntry1.d.mts +4 -12
  60. package/dist/esm/api/types/OperationsTaskListEntryClientCreate1.d.mts +15 -0
  61. package/dist/esm/api/types/OperationsTaskListEntryClientCreate1.mjs +4 -0
  62. package/dist/esm/api/types/OrderDraftValidationRequirements.d.mts +1 -0
  63. package/dist/esm/api/types/OrderManifestValidationRequirements.d.mts +1 -0
  64. package/dist/esm/api/types/OrderTemplate1.d.mts +1 -0
  65. package/dist/esm/api/types/OrderTemplateCore1.d.mts +1 -0
  66. package/dist/esm/api/types/OrgMembersAndDrivers.d.mts +1 -1
  67. package/dist/esm/api/types/index.d.mts +2 -0
  68. package/dist/esm/api/types/index.mjs +2 -0
  69. package/dist/esm/version.d.mts +1 -1
  70. package/dist/esm/version.mjs +1 -1
  71. package/package.json +1 -1
  72. package/reference.md +304 -11
  73. package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListSetEntries1.d.ts +0 -11
  74. package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListSetEntries1.d.mts +0 -11
  75. /package/dist/cjs/api/resources/{operations/resources/operationsTaskLists/client/requests/OperationsTaskListSetEntries1.js → billing/resources/lineItemGroups/client/requests/SharedTaskGroupMileageCreateForProviderPayDriverClientReq.js} +0 -0
  76. /package/dist/esm/api/resources/{operations/resources/operationsTaskLists/client/requests/OperationsTaskListSetEntries1.mjs → billing/resources/lineItemGroups/client/requests/SharedTaskGroupMileageCreateForProviderPayDriverClientReq.mjs} +0 -0
@@ -56,8 +56,8 @@ class ChrtClient {
56
56
  this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
57
57
  "X-Fern-Language": "JavaScript",
58
58
  "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
59
- "X-Fern-SDK-Version": "1.772.0",
60
- "User-Agent": "@chrt-inc/typescript-sdk/1.772.0",
59
+ "X-Fern-SDK-Version": "1.794.0",
60
+ "User-Agent": "@chrt-inc/typescript-sdk/1.794.0",
61
61
  "X-Fern-Runtime": core.RUNTIME.type,
62
62
  "X-Fern-Runtime-Version": core.RUNTIME.version,
63
63
  }, _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
  }
@@ -1057,6 +1057,139 @@ class LineItemGroups {
1057
1057
  }
1058
1058
  });
1059
1059
  }
1060
+ /**
1061
+ * 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)
1062
+ *
1063
+ * @param {Chrt.billing.SharedTaskGroupMileageCreateForProviderPayDriverClientReq} request
1064
+ * @param {LineItemGroups.RequestOptions} requestOptions - Request-specific configuration.
1065
+ *
1066
+ * @throws {@link Chrt.UnprocessableEntityError}
1067
+ *
1068
+ * @example
1069
+ * await client.billing.lineItemGroups.sharedTaskGroupMileageCreateV1({
1070
+ * order_group_id: "order_group_id",
1071
+ * rate_sheet_id: "rate_sheet_id",
1072
+ * payment_destination_driver_id: "payment_destination_driver_id",
1073
+ * task_ids: ["task_ids"]
1074
+ * })
1075
+ */
1076
+ sharedTaskGroupMileageCreateV1(request, requestOptions) {
1077
+ return core.HttpResponsePromise.fromPromise(this.__sharedTaskGroupMileageCreateV1(request, requestOptions));
1078
+ }
1079
+ __sharedTaskGroupMileageCreateV1(request, requestOptions) {
1080
+ return __awaiter(this, void 0, void 0, function* () {
1081
+ var _a, _b, _c, _d;
1082
+ 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);
1083
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
1084
+ 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"),
1085
+ method: "POST",
1086
+ headers: _headers,
1087
+ contentType: "application/json",
1088
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
1089
+ requestType: "json",
1090
+ body: request,
1091
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
1092
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
1093
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1094
+ });
1095
+ if (_response.ok) {
1096
+ return { data: _response.body, rawResponse: _response.rawResponse };
1097
+ }
1098
+ if (_response.error.reason === "status-code") {
1099
+ switch (_response.error.statusCode) {
1100
+ case 422:
1101
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
1102
+ default:
1103
+ throw new errors.ChrtError({
1104
+ statusCode: _response.error.statusCode,
1105
+ body: _response.error.body,
1106
+ rawResponse: _response.rawResponse,
1107
+ });
1108
+ }
1109
+ }
1110
+ switch (_response.error.reason) {
1111
+ case "non-json":
1112
+ throw new errors.ChrtError({
1113
+ statusCode: _response.error.statusCode,
1114
+ body: _response.error.rawBody,
1115
+ rawResponse: _response.rawResponse,
1116
+ });
1117
+ case "timeout":
1118
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /billing/line_item_groups/shared_task_group_mileage/create/v1.");
1119
+ case "unknown":
1120
+ throw new errors.ChrtError({
1121
+ message: _response.error.errorMessage,
1122
+ rawResponse: _response.rawResponse,
1123
+ });
1124
+ }
1125
+ });
1126
+ }
1127
+ /**
1128
+ * 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)
1129
+ *
1130
+ * @param {Chrt.billing.SharedTaskGroupMileageCreateForProviderPayProviderClientReq} request
1131
+ * @param {LineItemGroups.RequestOptions} requestOptions - Request-specific configuration.
1132
+ *
1133
+ * @throws {@link Chrt.UnprocessableEntityError}
1134
+ *
1135
+ * @example
1136
+ * await client.billing.lineItemGroups.sharedTaskGroupMileageCreateForProviderPayProviderV1({
1137
+ * order_group_id: "order_group_id",
1138
+ * rate_sheet_id: "rate_sheet_id",
1139
+ * task_ids: ["task_ids"]
1140
+ * })
1141
+ */
1142
+ sharedTaskGroupMileageCreateForProviderPayProviderV1(request, requestOptions) {
1143
+ return core.HttpResponsePromise.fromPromise(this.__sharedTaskGroupMileageCreateForProviderPayProviderV1(request, requestOptions));
1144
+ }
1145
+ __sharedTaskGroupMileageCreateForProviderPayProviderV1(request, requestOptions) {
1146
+ return __awaiter(this, void 0, void 0, function* () {
1147
+ var _a, _b, _c, _d;
1148
+ 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);
1149
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
1150
+ 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"),
1151
+ method: "POST",
1152
+ headers: _headers,
1153
+ contentType: "application/json",
1154
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
1155
+ requestType: "json",
1156
+ body: request,
1157
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
1158
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
1159
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1160
+ });
1161
+ if (_response.ok) {
1162
+ return { data: _response.body, rawResponse: _response.rawResponse };
1163
+ }
1164
+ if (_response.error.reason === "status-code") {
1165
+ switch (_response.error.statusCode) {
1166
+ case 422:
1167
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
1168
+ default:
1169
+ throw new errors.ChrtError({
1170
+ statusCode: _response.error.statusCode,
1171
+ body: _response.error.body,
1172
+ rawResponse: _response.rawResponse,
1173
+ });
1174
+ }
1175
+ }
1176
+ switch (_response.error.reason) {
1177
+ case "non-json":
1178
+ throw new errors.ChrtError({
1179
+ statusCode: _response.error.statusCode,
1180
+ body: _response.error.rawBody,
1181
+ rawResponse: _response.rawResponse,
1182
+ });
1183
+ case "timeout":
1184
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /billing/line_item_groups/shared_task_group_mileage/create_for_provider_pay_provider/v1.");
1185
+ case "unknown":
1186
+ throw new errors.ChrtError({
1187
+ message: _response.error.errorMessage,
1188
+ rawResponse: _response.rawResponse,
1189
+ });
1190
+ }
1191
+ });
1192
+ }
1060
1193
  _getAuthorizationHeader() {
1061
1194
  return __awaiter(this, void 0, void 0, function* () {
1062
1195
  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.js";
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.js";
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
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +1,4 @@
1
1
  export { type LineItemGroupsListV1Request } from "./LineItemGroupsListV1Request.js";
2
2
  export { type LineItemGroupAdHocCreateClientReq } from "./LineItemGroupAdHocCreateClientReq.js";
3
+ export { type SharedTaskGroupMileageCreateForProviderPayDriverClientReq } from "./SharedTaskGroupMileageCreateForProviderPayDriverClientReq.js";
4
+ export { type SharedTaskGroupMileageCreateForProviderPayProviderClientReq } from "./SharedTaskGroupMileageCreateForProviderPayProviderClientReq.js";
@@ -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
- * Replaces an OperationsTaskList's `entries` array wholesale covering add, remove, reorder, and edit in one operation. Order is load-bearing for from_previous_task-anchored deadlines. | authz: min_org_role=operator | (OperationsTaskListSetEntries1) -> (bool)
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.operations.OperationsTaskListSetEntries1} request
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.setEntriesV1("task_list_id")
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
- setEntriesV1(taskListId: string, request?: Chrt.operations.OperationsTaskListSetEntries1, requestOptions?: OperationsTaskLists.RequestOptions): core.HttpResponsePromise<boolean>;
108
- private __setEntriesV1;
144
+ removeEntryV1(taskListId: string, entryUuid: string, requestOptions?: OperationsTaskLists.RequestOptions): core.HttpResponsePromise<boolean>;
145
+ private __removeEntryV1;
109
146
  /**
110
- * Reorders an OperationsTaskList's existing entries. `entry_ids` must be an exact permutation of the list's current entry ids (every id present, no extras, no duplicates), so a reorder can never drop, add, or mutate an entry. | authz: min_org_role=operator | (OperationsTaskListReorderEntries1) -> (bool)
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.removeFromCaseV1("task_list_id", "case_id")
213
+ * await client.operations.operationsTaskLists.removeNotStartedTasksFromCaseV1("task_list_id", "case_id")
177
214
  */
178
- removeFromCaseV1(taskListId: string, caseId: string, requestOptions?: OperationsTaskLists.RequestOptions): core.HttpResponsePromise<Chrt.OperationsTaskListRemoveFromCaseRes1>;
179
- private __removeFromCaseV1;
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
  }
@@ -325,26 +325,30 @@ class OperationsTaskLists {
325
325
  });
326
326
  }
327
327
  /**
328
- * Replaces an OperationsTaskList's `entries` array wholesale covering add, remove, reorder, and edit in one operation. Order is load-bearing for from_previous_task-anchored deadlines. | authz: min_org_role=operator | (OperationsTaskListSetEntries1) -> (bool)
328
+ * 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)
329
329
  *
330
330
  * @param {string} taskListId
331
- * @param {Chrt.operations.OperationsTaskListSetEntries1} request
331
+ * @param {Chrt.OperationsTaskListEntryClientCreate1} request
332
332
  * @param {OperationsTaskLists.RequestOptions} requestOptions - Request-specific configuration.
333
333
  *
334
334
  * @throws {@link Chrt.UnprocessableEntityError}
335
335
  *
336
336
  * @example
337
- * await client.operations.operationsTaskLists.setEntriesV1("task_list_id")
337
+ * await client.operations.operationsTaskLists.addEntryV1("task_list_id", {
338
+ * task_type: "review_order_details",
339
+ * title: "title",
340
+ * description: "description"
341
+ * })
338
342
  */
339
- setEntriesV1(taskListId, request = {}, requestOptions) {
340
- return core.HttpResponsePromise.fromPromise(this.__setEntriesV1(taskListId, request, requestOptions));
343
+ addEntryV1(taskListId, request, requestOptions) {
344
+ return core.HttpResponsePromise.fromPromise(this.__addEntryV1(taskListId, request, requestOptions));
341
345
  }
342
- __setEntriesV1(taskListId_1) {
343
- return __awaiter(this, arguments, void 0, function* (taskListId, request = {}, requestOptions) {
346
+ __addEntryV1(taskListId, request, requestOptions) {
347
+ return __awaiter(this, void 0, void 0, function* () {
344
348
  var _a, _b, _c, _d;
345
349
  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);
346
350
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
347
- 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_task_lists/entries/set/v1/${encodeURIComponent(taskListId)}`),
351
+ 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_task_lists/entries/add/v1/${encodeURIComponent(taskListId)}`),
348
352
  method: "POST",
349
353
  headers: _headers,
350
354
  contentType: "application/json",
@@ -378,7 +382,135 @@ class OperationsTaskLists {
378
382
  rawResponse: _response.rawResponse,
379
383
  });
380
384
  case "timeout":
381
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /operations/operations_task_lists/entries/set/v1/{task_list_id}.");
385
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /operations/operations_task_lists/entries/add/v1/{task_list_id}.");
386
+ case "unknown":
387
+ throw new errors.ChrtError({
388
+ message: _response.error.errorMessage,
389
+ rawResponse: _response.rawResponse,
390
+ });
391
+ }
392
+ });
393
+ }
394
+ /**
395
+ * 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)
396
+ *
397
+ * @param {string} taskListId
398
+ * @param {string} entryUuid
399
+ * @param {Chrt.OperationsTaskListEntryClientCreate1} request
400
+ * @param {OperationsTaskLists.RequestOptions} requestOptions - Request-specific configuration.
401
+ *
402
+ * @throws {@link Chrt.UnprocessableEntityError}
403
+ *
404
+ * @example
405
+ * await client.operations.operationsTaskLists.editEntryV1("task_list_id", "entry_uuid", {
406
+ * task_type: "review_order_details",
407
+ * title: "title",
408
+ * description: "description"
409
+ * })
410
+ */
411
+ editEntryV1(taskListId, entryUuid, request, requestOptions) {
412
+ return core.HttpResponsePromise.fromPromise(this.__editEntryV1(taskListId, entryUuid, request, requestOptions));
413
+ }
414
+ __editEntryV1(taskListId, entryUuid, request, requestOptions) {
415
+ return __awaiter(this, void 0, void 0, function* () {
416
+ var _a, _b, _c, _d;
417
+ 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);
418
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
419
+ 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_task_lists/entries/edit/v1/${encodeURIComponent(taskListId)}/${encodeURIComponent(entryUuid)}`),
420
+ method: "PATCH",
421
+ headers: _headers,
422
+ contentType: "application/json",
423
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
424
+ requestType: "json",
425
+ body: request,
426
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
427
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
428
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
429
+ });
430
+ if (_response.ok) {
431
+ return { data: _response.body, rawResponse: _response.rawResponse };
432
+ }
433
+ if (_response.error.reason === "status-code") {
434
+ switch (_response.error.statusCode) {
435
+ case 422:
436
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
437
+ default:
438
+ throw new errors.ChrtError({
439
+ statusCode: _response.error.statusCode,
440
+ body: _response.error.body,
441
+ rawResponse: _response.rawResponse,
442
+ });
443
+ }
444
+ }
445
+ switch (_response.error.reason) {
446
+ case "non-json":
447
+ throw new errors.ChrtError({
448
+ statusCode: _response.error.statusCode,
449
+ body: _response.error.rawBody,
450
+ rawResponse: _response.rawResponse,
451
+ });
452
+ case "timeout":
453
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /operations/operations_task_lists/entries/edit/v1/{task_list_id}/{entry_uuid}.");
454
+ case "unknown":
455
+ throw new errors.ChrtError({
456
+ message: _response.error.errorMessage,
457
+ rawResponse: _response.rawResponse,
458
+ });
459
+ }
460
+ });
461
+ }
462
+ /**
463
+ * 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)
464
+ *
465
+ * @param {string} taskListId
466
+ * @param {string} entryUuid
467
+ * @param {OperationsTaskLists.RequestOptions} requestOptions - Request-specific configuration.
468
+ *
469
+ * @throws {@link Chrt.UnprocessableEntityError}
470
+ *
471
+ * @example
472
+ * await client.operations.operationsTaskLists.removeEntryV1("task_list_id", "entry_uuid")
473
+ */
474
+ removeEntryV1(taskListId, entryUuid, requestOptions) {
475
+ return core.HttpResponsePromise.fromPromise(this.__removeEntryV1(taskListId, entryUuid, requestOptions));
476
+ }
477
+ __removeEntryV1(taskListId, entryUuid, requestOptions) {
478
+ return __awaiter(this, void 0, void 0, function* () {
479
+ var _a, _b, _c, _d;
480
+ 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);
481
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
482
+ 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_task_lists/entries/remove/v1/${encodeURIComponent(taskListId)}/${encodeURIComponent(entryUuid)}`),
483
+ method: "DELETE",
484
+ headers: _headers,
485
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
486
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
487
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
488
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
489
+ });
490
+ if (_response.ok) {
491
+ return { data: _response.body, rawResponse: _response.rawResponse };
492
+ }
493
+ if (_response.error.reason === "status-code") {
494
+ switch (_response.error.statusCode) {
495
+ case 422:
496
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
497
+ default:
498
+ throw new errors.ChrtError({
499
+ statusCode: _response.error.statusCode,
500
+ body: _response.error.body,
501
+ rawResponse: _response.rawResponse,
502
+ });
503
+ }
504
+ }
505
+ switch (_response.error.reason) {
506
+ case "non-json":
507
+ throw new errors.ChrtError({
508
+ statusCode: _response.error.statusCode,
509
+ body: _response.error.rawBody,
510
+ rawResponse: _response.rawResponse,
511
+ });
512
+ case "timeout":
513
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling DELETE /operations/operations_task_lists/entries/remove/v1/{task_list_id}/{entry_uuid}.");
382
514
  case "unknown":
383
515
  throw new errors.ChrtError({
384
516
  message: _response.error.errorMessage,
@@ -388,7 +520,7 @@ class OperationsTaskLists {
388
520
  });
389
521
  }
390
522
  /**
391
- * Reorders an OperationsTaskList's existing entries. `entry_ids` must be an exact permutation of the list's current entry ids (every id present, no extras, no duplicates), so a reorder can never drop, add, or mutate an entry. | authz: min_org_role=operator | (OperationsTaskListReorderEntries1) -> (bool)
523
+ * 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)
392
524
  *
393
525
  * @param {string} taskListId
394
526
  * @param {Chrt.operations.OperationsTaskListReorderEntries1} request
@@ -646,17 +778,17 @@ class OperationsTaskLists {
646
778
  * @throws {@link Chrt.UnprocessableEntityError}
647
779
  *
648
780
  * @example
649
- * await client.operations.operationsTaskLists.removeFromCaseV1("task_list_id", "case_id")
781
+ * await client.operations.operationsTaskLists.removeNotStartedTasksFromCaseV1("task_list_id", "case_id")
650
782
  */
651
- removeFromCaseV1(taskListId, caseId, requestOptions) {
652
- return core.HttpResponsePromise.fromPromise(this.__removeFromCaseV1(taskListId, caseId, requestOptions));
783
+ removeNotStartedTasksFromCaseV1(taskListId, caseId, requestOptions) {
784
+ return core.HttpResponsePromise.fromPromise(this.__removeNotStartedTasksFromCaseV1(taskListId, caseId, requestOptions));
653
785
  }
654
- __removeFromCaseV1(taskListId, caseId, requestOptions) {
786
+ __removeNotStartedTasksFromCaseV1(taskListId, caseId, requestOptions) {
655
787
  return __awaiter(this, void 0, void 0, function* () {
656
788
  var _a, _b, _c, _d;
657
789
  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);
658
790
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
659
- 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_task_lists/remove_from_case/v1/${encodeURIComponent(taskListId)}/${encodeURIComponent(caseId)}`),
791
+ 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_task_lists/remove_not_started_tasks_from_case/v1/${encodeURIComponent(taskListId)}/${encodeURIComponent(caseId)}`),
660
792
  method: "POST",
661
793
  headers: _headers,
662
794
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
@@ -690,7 +822,7 @@ class OperationsTaskLists {
690
822
  rawResponse: _response.rawResponse,
691
823
  });
692
824
  case "timeout":
693
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /operations/operations_task_lists/remove_from_case/v1/{task_list_id}/{case_id}.");
825
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /operations/operations_task_lists/remove_not_started_tasks_from_case/v1/{task_list_id}/{case_id}.");
694
826
  case "unknown":
695
827
  throw new errors.ChrtError({
696
828
  message: _response.error.errorMessage,
@@ -14,5 +14,5 @@ export interface OperationsTaskListClientCreate1 {
14
14
  name: string;
15
15
  description?: string | null;
16
16
  tags?: string[];
17
- entries?: Chrt.OperationsTaskListEntry1[];
17
+ entries?: Chrt.OperationsTaskListEntryClientCreate1[];
18
18
  }
@@ -6,5 +6,5 @@
6
6
  * {}
7
7
  */
8
8
  export interface OperationsTaskListReorderEntries1 {
9
- entry_ids?: string[];
9
+ entry_uuids?: string[];
10
10
  }
@@ -1,6 +1,5 @@
1
1
  export { type OperationsTaskListsListV1Request } from "./OperationsTaskListsListV1Request.js";
2
2
  export { type OperationsTaskListClientUpdate1 } from "./OperationsTaskListClientUpdate1.js";
3
3
  export { type OperationsTaskListClientCreate1 } from "./OperationsTaskListClientCreate1.js";
4
- export { type OperationsTaskListSetEntries1 } from "./OperationsTaskListSetEntries1.js";
5
4
  export { type OperationsTaskListReorderEntries1 } from "./OperationsTaskListReorderEntries1.js";
6
5
  export { type OperationsTaskListsApplyToCaseV1Request } from "./OperationsTaskListsApplyToCaseV1Request.js";
@@ -152,17 +152,17 @@ export declare class Drivers {
152
152
  deleteSelfReportedHoursAndMileageV1(driverId: string, reportDate: string, requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<boolean>;
153
153
  private __deleteSelfReportedHoursAndMileageV1;
154
154
  /**
155
- * Retrieves driver information for the caller within their organization. | () -> (Driver1)
155
+ * Retrieves driver information for the caller within their organization. | () -> (DriverWithActiveTaskGroupIds1)
156
156
  *
157
157
  * @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
158
158
  *
159
159
  * @example
160
160
  * await client.shipping.drivers.getForCallerV1()
161
161
  */
162
- getForCallerV1(requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<Chrt.Driver1>;
162
+ getForCallerV1(requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<Chrt.DriverWithActiveTaskGroupIds1>;
163
163
  private __getForCallerV1;
164
164
  /**
165
- * Retrieves detailed driver information by driver ID within the organization. | () -> (Driver1)
165
+ * Retrieves detailed driver information by driver ID within the organization. | () -> (DriverWithActiveTaskGroupIds1)
166
166
  *
167
167
  * @param {string} driverId
168
168
  * @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
@@ -172,7 +172,7 @@ export declare class Drivers {
172
172
  * @example
173
173
  * await client.shipping.drivers.getByDriverIdV1("driver_id")
174
174
  */
175
- getByDriverIdV1(driverId: string, requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<Chrt.Driver1>;
175
+ getByDriverIdV1(driverId: string, requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<Chrt.DriverWithActiveTaskGroupIds1>;
176
176
  private __getByDriverIdV1;
177
177
  /**
178
178
  * Lists all organization members paired with their driver information if they are drivers. Supports search by name, filtering, sorting, and pagination. | () -> (OrgMembersAndDriversListRes)