@chrt-inc/typescript-sdk 1.772.0 → 1.788.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 +18 -0
- package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/Client.js +67 -0
- package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/requests/LineItemGroupSharedTaskGroupMileageCreateClientReq.d.ts +23 -0
- package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/requests/index.d.ts +1 -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/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/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/OrderTemplate1.d.ts +1 -0
- package/dist/cjs/api/types/OrderTemplateCore1.d.ts +1 -0
- package/dist/cjs/api/types/index.d.ts +1 -0
- package/dist/cjs/api/types/index.js +1 -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 +18 -0
- package/dist/esm/api/resources/billing/resources/lineItemGroups/client/Client.mjs +67 -0
- package/dist/esm/api/resources/billing/resources/lineItemGroups/client/requests/LineItemGroupSharedTaskGroupMileageCreateClientReq.d.mts +23 -0
- package/dist/esm/api/resources/billing/resources/lineItemGroups/client/requests/index.d.mts +1 -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/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/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/OrderTemplate1.d.mts +1 -0
- package/dist/esm/api/types/OrderTemplateCore1.d.mts +1 -0
- package/dist/esm/api/types/index.d.mts +1 -0
- package/dist/esm/api/types/index.mjs +1 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +233 -7
- 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/LineItemGroupSharedTaskGroupMileageCreateClientReq.js} +0 -0
- /package/dist/esm/api/resources/{operations/resources/operationsTaskLists/client/requests/OperationsTaskListSetEntries1.mjs → billing/resources/lineItemGroups/client/requests/LineItemGroupSharedTaskGroupMileageCreateClientReq.mjs} +0 -0
package/dist/cjs/Client.js
CHANGED
|
@@ -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.
|
|
60
|
-
"User-Agent": "@chrt-inc/typescript-sdk/1.
|
|
59
|
+
"X-Fern-SDK-Version": "1.788.0",
|
|
60
|
+
"User-Agent": "@chrt-inc/typescript-sdk/1.788.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,23 @@ 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 | (LineItemGroupSharedTaskGroupMileageCreateClientReq) -> (LineItemGroup1)
|
|
273
|
+
*
|
|
274
|
+
* @param {Chrt.billing.LineItemGroupSharedTaskGroupMileageCreateClientReq} 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.LineItemGroupSharedTaskGroupMileageCreateClientReq, requestOptions?: LineItemGroups.RequestOptions): core.HttpResponsePromise<Chrt.LineItemGroup1>;
|
|
288
|
+
private __sharedTaskGroupMileageCreateV1;
|
|
271
289
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
272
290
|
}
|
|
@@ -1057,6 +1057,73 @@ 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 | (LineItemGroupSharedTaskGroupMileageCreateClientReq) -> (LineItemGroup1)
|
|
1062
|
+
*
|
|
1063
|
+
* @param {Chrt.billing.LineItemGroupSharedTaskGroupMileageCreateClientReq} 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
|
+
}
|
|
1060
1127
|
_getAuthorizationHeader() {
|
|
1061
1128
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1062
1129
|
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 LineItemGroupSharedTaskGroupMileageCreateClientReq {
|
|
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
|
+
}
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
export { type LineItemGroupsListV1Request } from "./LineItemGroupsListV1Request.js";
|
|
2
2
|
export { type LineItemGroupAdHocCreateClientReq } from "./LineItemGroupAdHocCreateClientReq.js";
|
|
3
|
+
export { type LineItemGroupSharedTaskGroupMileageCreateClientReq } from "./LineItemGroupSharedTaskGroupMileageCreateClientReq.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
|
-
*
|
|
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
|
}
|
|
@@ -325,26 +325,30 @@ class OperationsTaskLists {
|
|
|
325
325
|
});
|
|
326
326
|
}
|
|
327
327
|
/**
|
|
328
|
-
*
|
|
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.
|
|
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.
|
|
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
|
-
|
|
340
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
343
|
+
addEntryV1(taskListId, request, requestOptions) {
|
|
344
|
+
return core.HttpResponsePromise.fromPromise(this.__addEntryV1(taskListId, request, requestOptions));
|
|
341
345
|
}
|
|
342
|
-
|
|
343
|
-
return __awaiter(this,
|
|
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/
|
|
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/
|
|
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. `
|
|
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.
|
|
781
|
+
* await client.operations.operationsTaskLists.removeNotStartedTasksFromCaseV1("task_list_id", "case_id")
|
|
650
782
|
*/
|
|
651
|
-
|
|
652
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
783
|
+
removeNotStartedTasksFromCaseV1(taskListId, caseId, requestOptions) {
|
|
784
|
+
return core.HttpResponsePromise.fromPromise(this.__removeNotStartedTasksFromCaseV1(taskListId, caseId, requestOptions));
|
|
653
785
|
}
|
|
654
|
-
|
|
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/
|
|
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/
|
|
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,
|
package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/requests/index.d.ts
CHANGED
|
@@ -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";
|
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;
|
|
@@ -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
|
+
}
|
|
@@ -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;
|
|
@@ -229,6 +229,7 @@ export * from "./OperationsTask1.js";
|
|
|
229
229
|
export * from "./OperationsTaskComment1.js";
|
|
230
230
|
export * from "./OperationsTaskList1.js";
|
|
231
231
|
export * from "./OperationsTaskListEntry1.js";
|
|
232
|
+
export * from "./OperationsTaskListEntryClientCreate1.js";
|
|
232
233
|
export * from "./OperationsTaskListListRes.js";
|
|
233
234
|
export * from "./OperationsTaskListRemoveFromCaseRes1.js";
|
|
234
235
|
export * from "./OperationsTaskListRes.js";
|
|
@@ -245,6 +245,7 @@ __exportStar(require("./OperationsTask1.js"), exports);
|
|
|
245
245
|
__exportStar(require("./OperationsTaskComment1.js"), exports);
|
|
246
246
|
__exportStar(require("./OperationsTaskList1.js"), exports);
|
|
247
247
|
__exportStar(require("./OperationsTaskListEntry1.js"), exports);
|
|
248
|
+
__exportStar(require("./OperationsTaskListEntryClientCreate1.js"), exports);
|
|
248
249
|
__exportStar(require("./OperationsTaskListListRes.js"), exports);
|
|
249
250
|
__exportStar(require("./OperationsTaskListRemoveFromCaseRes1.js"), exports);
|
|
250
251
|
__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.788.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.788.0",
|
|
24
|
+
"User-Agent": "@chrt-inc/typescript-sdk/1.788.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) });
|