@chrt-inc/typescript-sdk 1.976.0 → 1.983.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/billingNew/resources/invoiceLineItems/client/Client.d.ts +21 -2
- package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/Client.js +75 -2
- package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/InvoiceLineItemClientUpdate1.d.ts +2 -0
- package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/InvoiceLineItemsCurrencyConversionUpdateManyReq.d.ts +1 -1
- package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/ReceivablesAcrossOrdersCurrencyConversionUpdateReq.d.ts +18 -0
- package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/index.d.ts +1 -0
- package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/index.js +1 -0
- package/dist/cjs/api/resources/billingNew/resources/{invoices → invoiceLineItems}/resources/export/client/Client.d.ts +6 -6
- package/dist/cjs/api/resources/billingNew/resources/{invoices → invoiceLineItems}/resources/export/client/Client.js +27 -13
- package/dist/cjs/api/resources/billingNew/resources/{invoices/resources/export/client/requests/ExportListV1Request.d.ts → invoiceLineItems/resources/export/client/requests/InvoiceLineItemExportListReq.d.ts} +4 -2
- package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/resources/export/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/billingNew/resources/invoices/client/Client.d.ts +0 -3
- package/dist/cjs/api/resources/billingNew/resources/invoices/client/Client.js +0 -5
- package/dist/cjs/api/resources/billingNew/resources/invoices/index.d.ts +0 -1
- package/dist/cjs/api/resources/billingNew/resources/invoices/index.js +0 -1
- package/dist/cjs/api/types/InvoiceLineItemExportListItem.d.ts +46 -0
- package/dist/cjs/api/types/{InvoiceExportListRes.d.ts → InvoiceLineItemExportListRes.d.ts} +2 -2
- package/dist/cjs/api/types/InvoiceLineItemExportListRes.js +5 -0
- package/dist/cjs/api/types/ReceivablesAcrossOrdersCurrencyConversionOrderRes.d.ts +18 -0
- package/dist/cjs/api/types/ReceivablesAcrossOrdersCurrencyConversionOrderRes.js +14 -0
- package/dist/cjs/api/types/index.d.ts +3 -2
- package/dist/cjs/api/types/index.js +3 -2
- 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/billingNew/resources/invoiceLineItems/client/Client.d.mts +21 -2
- package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/Client.mjs +75 -2
- package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/InvoiceLineItemClientUpdate1.d.mts +2 -0
- package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/InvoiceLineItemsCurrencyConversionUpdateManyReq.d.mts +1 -1
- package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/ReceivablesAcrossOrdersCurrencyConversionUpdateReq.d.mts +18 -0
- package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/index.d.mts +1 -0
- package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/index.mjs +1 -0
- package/dist/esm/api/resources/billingNew/resources/{invoices → invoiceLineItems}/resources/export/client/Client.d.mts +6 -6
- package/dist/esm/api/resources/billingNew/resources/{invoices → invoiceLineItems}/resources/export/client/Client.mjs +27 -13
- package/dist/esm/api/resources/billingNew/resources/{invoices/resources/export/client/requests/ExportListV1Request.d.mts → invoiceLineItems/resources/export/client/requests/InvoiceLineItemExportListReq.d.mts} +4 -2
- package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/resources/export/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/billingNew/resources/invoices/client/Client.d.mts +0 -3
- package/dist/esm/api/resources/billingNew/resources/invoices/client/Client.mjs +0 -5
- package/dist/esm/api/resources/billingNew/resources/invoices/index.d.mts +0 -1
- package/dist/esm/api/resources/billingNew/resources/invoices/index.mjs +0 -1
- package/dist/esm/api/types/InvoiceLineItemExportListItem.d.mts +46 -0
- package/dist/esm/api/types/{InvoiceExportListRes.d.mts → InvoiceLineItemExportListRes.d.mts} +2 -2
- package/dist/esm/api/types/InvoiceLineItemExportListRes.mjs +4 -0
- package/dist/esm/api/types/ReceivablesAcrossOrdersCurrencyConversionOrderRes.d.mts +18 -0
- package/dist/esm/api/types/ReceivablesAcrossOrdersCurrencyConversionOrderRes.mjs +11 -0
- package/dist/esm/api/types/index.d.mts +3 -2
- package/dist/esm/api/types/index.mjs +3 -2
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +74 -15
- package/dist/cjs/api/resources/billingNew/resources/invoices/resources/export/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/types/InvoiceExportListItem.d.ts +0 -46
- package/dist/esm/api/resources/billingNew/resources/invoices/resources/export/client/requests/index.d.mts +0 -1
- package/dist/esm/api/types/InvoiceExportListItem.d.mts +0 -46
- /package/dist/cjs/api/resources/billingNew/resources/{invoices/resources/export/client/requests/ExportListV1Request.js → invoiceLineItems/client/requests/ReceivablesAcrossOrdersCurrencyConversionUpdateReq.js} +0 -0
- /package/dist/cjs/api/resources/billingNew/resources/{invoices → invoiceLineItems}/resources/export/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/billingNew/resources/{invoices → invoiceLineItems}/resources/export/client/index.js +0 -0
- /package/dist/cjs/api/{types/InvoiceExportListItem.js → resources/billingNew/resources/invoiceLineItems/resources/export/client/requests/InvoiceLineItemExportListReq.js} +0 -0
- /package/dist/cjs/api/resources/billingNew/resources/{invoices → invoiceLineItems}/resources/export/client/requests/index.js +0 -0
- /package/dist/cjs/api/resources/billingNew/resources/{invoices → invoiceLineItems}/resources/export/index.d.ts +0 -0
- /package/dist/cjs/api/resources/billingNew/resources/{invoices → invoiceLineItems}/resources/export/index.js +0 -0
- /package/dist/cjs/api/resources/billingNew/resources/{invoices → invoiceLineItems}/resources/index.d.ts +0 -0
- /package/dist/cjs/api/resources/billingNew/resources/{invoices → invoiceLineItems}/resources/index.js +0 -0
- /package/dist/cjs/api/types/{InvoiceExportListRes.js → InvoiceLineItemExportListItem.js} +0 -0
- /package/dist/esm/api/resources/billingNew/resources/{invoices/resources/export/client/requests/ExportListV1Request.mjs → invoiceLineItems/client/requests/ReceivablesAcrossOrdersCurrencyConversionUpdateReq.mjs} +0 -0
- /package/dist/esm/api/resources/billingNew/resources/{invoices → invoiceLineItems}/resources/export/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/billingNew/resources/{invoices → invoiceLineItems}/resources/export/client/index.mjs +0 -0
- /package/dist/esm/api/{types/InvoiceExportListItem.mjs → resources/billingNew/resources/invoiceLineItems/resources/export/client/requests/InvoiceLineItemExportListReq.mjs} +0 -0
- /package/dist/esm/api/resources/billingNew/resources/{invoices → invoiceLineItems}/resources/export/client/requests/index.mjs +0 -0
- /package/dist/esm/api/resources/billingNew/resources/{invoices → invoiceLineItems}/resources/export/index.d.mts +0 -0
- /package/dist/esm/api/resources/billingNew/resources/{invoices → invoiceLineItems}/resources/export/index.mjs +0 -0
- /package/dist/esm/api/resources/billingNew/resources/{invoices → invoiceLineItems}/resources/index.d.mts +0 -0
- /package/dist/esm/api/resources/billingNew/resources/{invoices → invoiceLineItems}/resources/index.mjs +0 -0
- /package/dist/esm/api/types/{InvoiceExportListRes.mjs → InvoiceLineItemExportListItem.mjs} +0 -0
package/dist/cjs/Client.js
CHANGED
|
@@ -60,8 +60,8 @@ class ChrtClient {
|
|
|
60
60
|
this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
|
|
61
61
|
"X-Fern-Language": "JavaScript",
|
|
62
62
|
"X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
|
|
63
|
-
"X-Fern-SDK-Version": "1.
|
|
64
|
-
"User-Agent": "@chrt-inc/typescript-sdk/1.
|
|
63
|
+
"X-Fern-SDK-Version": "1.983.0",
|
|
64
|
+
"User-Agent": "@chrt-inc/typescript-sdk/1.983.0",
|
|
65
65
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
66
66
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
67
67
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
import * as environments from "../../../../../../environments.js";
|
|
5
5
|
import * as core from "../../../../../../core/index.js";
|
|
6
6
|
import * as Chrt from "../../../../../index.js";
|
|
7
|
+
import { Export } from "../resources/export/client/Client.js";
|
|
7
8
|
export declare namespace InvoiceLineItems {
|
|
8
9
|
interface Options {
|
|
9
10
|
environment?: core.Supplier<environments.ChrtEnvironment | string>;
|
|
@@ -29,7 +30,9 @@ export declare namespace InvoiceLineItems {
|
|
|
29
30
|
}
|
|
30
31
|
export declare class InvoiceLineItems {
|
|
31
32
|
protected readonly _options: InvoiceLineItems.Options;
|
|
33
|
+
protected _export: Export | undefined;
|
|
32
34
|
constructor(_options?: InvoiceLineItems.Options);
|
|
35
|
+
get export(): Export;
|
|
33
36
|
/**
|
|
34
37
|
* Creates account-split ad-hoc line items and attaches them to matching draft invoices. | authz: allowed_org_types=[provider], min_org_role=operator | (AdHocInvoiceLineItemsReq) -> (list[InvoiceLineItem1])
|
|
35
38
|
*
|
|
@@ -285,7 +288,23 @@ export declare class InvoiceLineItems {
|
|
|
285
288
|
recalculateTaxesV1(request: Chrt.billingNew.RecalculateOrderTaxInvoiceLineItemsReq, requestOptions?: InvoiceLineItems.RequestOptions): core.HttpResponsePromise<Chrt.InvoiceLineItem1[]>;
|
|
286
289
|
private __recalculateTaxesV1;
|
|
287
290
|
/**
|
|
288
|
-
* Applies
|
|
291
|
+
* Applies one currency conversion independently to each selected order and reports each outcome. | authz: allowed_org_types=[provider], min_org_role=operator | (ReceivablesAcrossOrdersCurrencyConversionUpdateReq) -> (list[ReceivablesAcrossOrdersCurrencyConversionOrderRes])
|
|
292
|
+
*
|
|
293
|
+
* @param {Chrt.billingNew.ReceivablesAcrossOrdersCurrencyConversionUpdateReq} request
|
|
294
|
+
* @param {InvoiceLineItems.RequestOptions} requestOptions - Request-specific configuration.
|
|
295
|
+
*
|
|
296
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
297
|
+
*
|
|
298
|
+
* @example
|
|
299
|
+
* await client.billingNew.invoiceLineItems.updateCurrencyConversionForReceivablesAcrossOrdersV1({
|
|
300
|
+
* order_ids: ["order_ids"],
|
|
301
|
+
* target_currency_code: "USD"
|
|
302
|
+
* })
|
|
303
|
+
*/
|
|
304
|
+
updateCurrencyConversionForReceivablesAcrossOrdersV1(request: Chrt.billingNew.ReceivablesAcrossOrdersCurrencyConversionUpdateReq, requestOptions?: InvoiceLineItems.RequestOptions): core.HttpResponsePromise<Chrt.ReceivablesAcrossOrdersCurrencyConversionOrderRes[]>;
|
|
305
|
+
private __updateCurrencyConversionForReceivablesAcrossOrdersV1;
|
|
306
|
+
/**
|
|
307
|
+
* Applies, reverts, or skips one currency conversion from original source values and moves attached items to the matching draft invoice. | authz: allowed_org_types=[provider], min_org_role=operator | (InvoiceLineItemsCurrencyConversionUpdateManyReq) -> (list[InvoiceLineItem1])
|
|
289
308
|
*
|
|
290
309
|
* @param {Chrt.billingNew.InvoiceLineItemsCurrencyConversionUpdateManyReq} request
|
|
291
310
|
* @param {InvoiceLineItems.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -301,7 +320,7 @@ export declare class InvoiceLineItems {
|
|
|
301
320
|
updateCurrencyConversionManyV1(request: Chrt.billingNew.InvoiceLineItemsCurrencyConversionUpdateManyReq, requestOptions?: InvoiceLineItems.RequestOptions): core.HttpResponsePromise<Chrt.InvoiceLineItem1[]>;
|
|
302
321
|
private __updateCurrencyConversionManyV1;
|
|
303
322
|
/**
|
|
304
|
-
* Updates an owner-scoped line item's source fields,
|
|
323
|
+
* Updates an owner-scoped line item's source fields, including its caller-owned shipper account when not rate-sheet-derived, and rebuilds its draft invoice when attached. | authz: allowed_org_types=[provider], min_org_role=operator | (InvoiceLineItemClientUpdate1) -> (InvoiceLineItem1)
|
|
305
324
|
*
|
|
306
325
|
* @param {string} invoiceLineItemId
|
|
307
326
|
* @param {Chrt.billingNew.InvoiceLineItemClientUpdate1} request
|
|
@@ -51,10 +51,15 @@ const core = __importStar(require("../../../../../../core/index.js"));
|
|
|
51
51
|
const Chrt = __importStar(require("../../../../../index.js"));
|
|
52
52
|
const headers_js_1 = require("../../../../../../core/headers.js");
|
|
53
53
|
const errors = __importStar(require("../../../../../../errors/index.js"));
|
|
54
|
+
const Client_js_1 = require("../resources/export/client/Client.js");
|
|
54
55
|
class InvoiceLineItems {
|
|
55
56
|
constructor(_options = {}) {
|
|
56
57
|
this._options = _options;
|
|
57
58
|
}
|
|
59
|
+
get export() {
|
|
60
|
+
var _a;
|
|
61
|
+
return ((_a = this._export) !== null && _a !== void 0 ? _a : (this._export = new Client_js_1.Export(this._options)));
|
|
62
|
+
}
|
|
58
63
|
/**
|
|
59
64
|
* Creates account-split ad-hoc line items and attaches them to matching draft invoices. | authz: allowed_org_types=[provider], min_org_role=operator | (AdHocInvoiceLineItemsReq) -> (list[InvoiceLineItem1])
|
|
60
65
|
*
|
|
@@ -989,7 +994,75 @@ class InvoiceLineItems {
|
|
|
989
994
|
});
|
|
990
995
|
}
|
|
991
996
|
/**
|
|
992
|
-
* Applies
|
|
997
|
+
* Applies one currency conversion independently to each selected order and reports each outcome. | authz: allowed_org_types=[provider], min_org_role=operator | (ReceivablesAcrossOrdersCurrencyConversionUpdateReq) -> (list[ReceivablesAcrossOrdersCurrencyConversionOrderRes])
|
|
998
|
+
*
|
|
999
|
+
* @param {Chrt.billingNew.ReceivablesAcrossOrdersCurrencyConversionUpdateReq} request
|
|
1000
|
+
* @param {InvoiceLineItems.RequestOptions} requestOptions - Request-specific configuration.
|
|
1001
|
+
*
|
|
1002
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
1003
|
+
*
|
|
1004
|
+
* @example
|
|
1005
|
+
* await client.billingNew.invoiceLineItems.updateCurrencyConversionForReceivablesAcrossOrdersV1({
|
|
1006
|
+
* order_ids: ["order_ids"],
|
|
1007
|
+
* target_currency_code: "USD"
|
|
1008
|
+
* })
|
|
1009
|
+
*/
|
|
1010
|
+
updateCurrencyConversionForReceivablesAcrossOrdersV1(request, requestOptions) {
|
|
1011
|
+
return core.HttpResponsePromise.fromPromise(this.__updateCurrencyConversionForReceivablesAcrossOrdersV1(request, requestOptions));
|
|
1012
|
+
}
|
|
1013
|
+
__updateCurrencyConversionForReceivablesAcrossOrdersV1(request, requestOptions) {
|
|
1014
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1015
|
+
var _a, _b, _c, _d;
|
|
1016
|
+
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);
|
|
1017
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
1018
|
+
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_new/invoice_line_items/update_currency_conversion_for_receivables_across_orders/v1"),
|
|
1019
|
+
method: "PATCH",
|
|
1020
|
+
headers: _headers,
|
|
1021
|
+
contentType: "application/json",
|
|
1022
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
1023
|
+
requestType: "json",
|
|
1024
|
+
body: request,
|
|
1025
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
1026
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
1027
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1028
|
+
});
|
|
1029
|
+
if (_response.ok) {
|
|
1030
|
+
return {
|
|
1031
|
+
data: _response.body,
|
|
1032
|
+
rawResponse: _response.rawResponse,
|
|
1033
|
+
};
|
|
1034
|
+
}
|
|
1035
|
+
if (_response.error.reason === "status-code") {
|
|
1036
|
+
switch (_response.error.statusCode) {
|
|
1037
|
+
case 422:
|
|
1038
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
1039
|
+
default:
|
|
1040
|
+
throw new errors.ChrtError({
|
|
1041
|
+
statusCode: _response.error.statusCode,
|
|
1042
|
+
body: _response.error.body,
|
|
1043
|
+
rawResponse: _response.rawResponse,
|
|
1044
|
+
});
|
|
1045
|
+
}
|
|
1046
|
+
}
|
|
1047
|
+
switch (_response.error.reason) {
|
|
1048
|
+
case "non-json":
|
|
1049
|
+
throw new errors.ChrtError({
|
|
1050
|
+
statusCode: _response.error.statusCode,
|
|
1051
|
+
body: _response.error.rawBody,
|
|
1052
|
+
rawResponse: _response.rawResponse,
|
|
1053
|
+
});
|
|
1054
|
+
case "timeout":
|
|
1055
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /billing_new/invoice_line_items/update_currency_conversion_for_receivables_across_orders/v1.");
|
|
1056
|
+
case "unknown":
|
|
1057
|
+
throw new errors.ChrtError({
|
|
1058
|
+
message: _response.error.errorMessage,
|
|
1059
|
+
rawResponse: _response.rawResponse,
|
|
1060
|
+
});
|
|
1061
|
+
}
|
|
1062
|
+
});
|
|
1063
|
+
}
|
|
1064
|
+
/**
|
|
1065
|
+
* Applies, reverts, or skips one currency conversion from original source values and moves attached items to the matching draft invoice. | authz: allowed_org_types=[provider], min_org_role=operator | (InvoiceLineItemsCurrencyConversionUpdateManyReq) -> (list[InvoiceLineItem1])
|
|
993
1066
|
*
|
|
994
1067
|
* @param {Chrt.billingNew.InvoiceLineItemsCurrencyConversionUpdateManyReq} request
|
|
995
1068
|
* @param {InvoiceLineItems.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -1054,7 +1127,7 @@ class InvoiceLineItems {
|
|
|
1054
1127
|
});
|
|
1055
1128
|
}
|
|
1056
1129
|
/**
|
|
1057
|
-
* Updates an owner-scoped line item's source fields,
|
|
1130
|
+
* Updates an owner-scoped line item's source fields, including its caller-owned shipper account when not rate-sheet-derived, and rebuilds its draft invoice when attached. | authz: allowed_org_types=[provider], min_org_role=operator | (InvoiceLineItemClientUpdate1) -> (InvoiceLineItem1)
|
|
1058
1131
|
*
|
|
1059
1132
|
* @param {string} invoiceLineItemId
|
|
1060
1133
|
* @param {Chrt.billingNew.InvoiceLineItemClientUpdate1} request
|
|
@@ -12,6 +12,8 @@ export interface InvoiceLineItemClientUpdate1 {
|
|
|
12
12
|
export_ref__sage__item_id__set_to_None?: boolean;
|
|
13
13
|
invoice_type?: Chrt.InvoiceTypeEnum1 | null;
|
|
14
14
|
quantity?: number | null;
|
|
15
|
+
shipper_account_id?: string | null;
|
|
16
|
+
shipper_account_id__set_to_None?: boolean;
|
|
15
17
|
source_currency_code?: Chrt.BillingCurrencyCodeEnum1 | null;
|
|
16
18
|
source_unit_price?: number | null;
|
|
17
19
|
unit?: Chrt.InvoiceLineItemUnitEnum1 | null;
|
|
@@ -10,7 +10,7 @@ import * as Chrt from "../../../../../../index.js";
|
|
|
10
10
|
* }
|
|
11
11
|
*/
|
|
12
12
|
export interface InvoiceLineItemsCurrencyConversionUpdateManyReq {
|
|
13
|
-
/** Units of target_currency_code per one unit of the line items' original source currency -- their currency_conversion.source_currency_code if already converted, otherwise their current currency_code. Always relative to that original source, never to an intermediate converted currency, so conversions never compound. Omitted when target_currency_code is the original source currency, which reverts
|
|
13
|
+
/** Units of target_currency_code per one unit of the line items' original source currency -- their currency_conversion.source_currency_code if already converted, otherwise their current currency_code. Always relative to that original source, never to an intermediate converted currency, so conversions never compound. Omitted when target_currency_code is the original source currency, which reverts converted items and leaves unconverted items unchanged. */
|
|
14
14
|
conversion_rate?: number | null;
|
|
15
15
|
description?: string | null;
|
|
16
16
|
invoice_line_item_ids: string[];
|
|
@@ -0,0 +1,18 @@
|
|
|
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_ids: ["order_ids"],
|
|
9
|
+
* target_currency_code: "USD"
|
|
10
|
+
* }
|
|
11
|
+
*/
|
|
12
|
+
export interface ReceivablesAcrossOrdersCurrencyConversionUpdateReq {
|
|
13
|
+
/** Units of target_currency_code per one unit of the order's sole original source currency different from the target. Target-currency items are reverted or left unchanged without applying this rate. */
|
|
14
|
+
conversion_rate?: number | null;
|
|
15
|
+
description?: string | null;
|
|
16
|
+
order_ids: string[];
|
|
17
|
+
target_currency_code: Chrt.BillingCurrencyCodeEnum1;
|
|
18
|
+
}
|
package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/index.d.ts
CHANGED
|
@@ -5,5 +5,6 @@ export { type CreateInvoiceLineItemsFromLineItemsReq } from "./CreateInvoiceLine
|
|
|
5
5
|
export { type InvoiceLineItemsDeleteManyReq } from "./InvoiceLineItemsDeleteManyReq.js";
|
|
6
6
|
export { type InvoiceLineItemsListV1Request } from "./InvoiceLineItemsListV1Request.js";
|
|
7
7
|
export { type RecalculateOrderTaxInvoiceLineItemsReq } from "./RecalculateOrderTaxInvoiceLineItemsReq.js";
|
|
8
|
+
export { type ReceivablesAcrossOrdersCurrencyConversionUpdateReq } from "./ReceivablesAcrossOrdersCurrencyConversionUpdateReq.js";
|
|
8
9
|
export { type InvoiceLineItemsCurrencyConversionUpdateManyReq } from "./InvoiceLineItemsCurrencyConversionUpdateManyReq.js";
|
|
9
10
|
export { type InvoiceLineItemClientUpdate1 } from "./InvoiceLineItemClientUpdate1.js";
|
|
@@ -31,21 +31,21 @@ export declare class Export {
|
|
|
31
31
|
protected readonly _options: Export.Options;
|
|
32
32
|
constructor(_options?: Export.Options);
|
|
33
33
|
/**
|
|
34
|
-
* Lists up to 1,000
|
|
34
|
+
* Lists up to 1,000 accounts-receivable and accounts-payable line items for the selected Orders, with shipment context. | authz: allowed_org_types=[provider], min_org_role=operator | (InvoiceLineItemExportListReq) -> (InvoiceLineItemExportListRes)
|
|
35
35
|
*
|
|
36
|
-
* @param {
|
|
37
|
-
* @param {Chrt.billingNew.invoices.ExportListV1Request} request
|
|
36
|
+
* @param {Chrt.billingNew.invoiceLineItems.InvoiceLineItemExportListReq} request
|
|
38
37
|
* @param {Export.RequestOptions} requestOptions - Request-specific configuration.
|
|
39
38
|
*
|
|
40
39
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
41
40
|
*
|
|
42
41
|
* @example
|
|
43
|
-
* await client.billingNew.
|
|
42
|
+
* await client.billingNew.invoiceLineItems.export.listV1({
|
|
44
43
|
* page: 1,
|
|
45
|
-
* page_size: 1
|
|
44
|
+
* page_size: 1,
|
|
45
|
+
* order_ids: ["order_ids"]
|
|
46
46
|
* })
|
|
47
47
|
*/
|
|
48
|
-
listV1(
|
|
48
|
+
listV1(request: Chrt.billingNew.invoiceLineItems.InvoiceLineItemExportListReq, requestOptions?: Export.RequestOptions): core.HttpResponsePromise<Chrt.InvoiceLineItemExportListRes>;
|
|
49
49
|
private __listV1;
|
|
50
50
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
51
51
|
}
|
|
@@ -44,6 +44,17 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
44
44
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
45
45
|
});
|
|
46
46
|
};
|
|
47
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
48
|
+
var t = {};
|
|
49
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
50
|
+
t[p] = s[p];
|
|
51
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
52
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
53
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
54
|
+
t[p[i]] = s[p[i]];
|
|
55
|
+
}
|
|
56
|
+
return t;
|
|
57
|
+
};
|
|
47
58
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
59
|
exports.Export = void 0;
|
|
49
60
|
const environments = __importStar(require("../../../../../../../../environments.js"));
|
|
@@ -56,27 +67,27 @@ class Export {
|
|
|
56
67
|
this._options = _options;
|
|
57
68
|
}
|
|
58
69
|
/**
|
|
59
|
-
* Lists up to 1,000
|
|
70
|
+
* Lists up to 1,000 accounts-receivable and accounts-payable line items for the selected Orders, with shipment context. | authz: allowed_org_types=[provider], min_org_role=operator | (InvoiceLineItemExportListReq) -> (InvoiceLineItemExportListRes)
|
|
60
71
|
*
|
|
61
|
-
* @param {
|
|
62
|
-
* @param {Chrt.billingNew.invoices.ExportListV1Request} request
|
|
72
|
+
* @param {Chrt.billingNew.invoiceLineItems.InvoiceLineItemExportListReq} request
|
|
63
73
|
* @param {Export.RequestOptions} requestOptions - Request-specific configuration.
|
|
64
74
|
*
|
|
65
75
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
66
76
|
*
|
|
67
77
|
* @example
|
|
68
|
-
* await client.billingNew.
|
|
78
|
+
* await client.billingNew.invoiceLineItems.export.listV1({
|
|
69
79
|
* page: 1,
|
|
70
|
-
* page_size: 1
|
|
80
|
+
* page_size: 1,
|
|
81
|
+
* order_ids: ["order_ids"]
|
|
71
82
|
* })
|
|
72
83
|
*/
|
|
73
|
-
listV1(
|
|
74
|
-
return core.HttpResponsePromise.fromPromise(this.__listV1(
|
|
84
|
+
listV1(request, requestOptions) {
|
|
85
|
+
return core.HttpResponsePromise.fromPromise(this.__listV1(request, requestOptions));
|
|
75
86
|
}
|
|
76
|
-
__listV1(
|
|
77
|
-
return __awaiter(this,
|
|
87
|
+
__listV1(request, requestOptions) {
|
|
88
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
78
89
|
var _a, _b, _c, _d, _e, _f;
|
|
79
|
-
const { page, page_size: pageSize } = request;
|
|
90
|
+
const { page, page_size: pageSize } = request, _body = __rest(request, ["page", "page_size"]);
|
|
80
91
|
const _queryParams = {};
|
|
81
92
|
if (page !== undefined) {
|
|
82
93
|
_queryParams["page"] = (_a = page === null || page === void 0 ? void 0 : page.toString()) !== null && _a !== void 0 ? _a : null;
|
|
@@ -86,10 +97,13 @@ class Export {
|
|
|
86
97
|
}
|
|
87
98
|
let _headers = (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
88
99
|
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
89
|
-
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ChrtEnvironment.Local,
|
|
90
|
-
method: "
|
|
100
|
+
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ChrtEnvironment.Local, "billing_new/invoice_line_items/export/list/v1"),
|
|
101
|
+
method: "POST",
|
|
91
102
|
headers: _headers,
|
|
103
|
+
contentType: "application/json",
|
|
92
104
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
105
|
+
requestType: "json",
|
|
106
|
+
body: _body,
|
|
93
107
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
94
108
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
95
109
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -117,7 +131,7 @@ class Export {
|
|
|
117
131
|
rawResponse: _response.rawResponse,
|
|
118
132
|
});
|
|
119
133
|
case "timeout":
|
|
120
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
134
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /billing_new/invoice_line_items/export/list/v1.");
|
|
121
135
|
case "unknown":
|
|
122
136
|
throw new errors.ChrtError({
|
|
123
137
|
message: _response.error.errorMessage,
|
|
@@ -5,10 +5,12 @@
|
|
|
5
5
|
* @example
|
|
6
6
|
* {
|
|
7
7
|
* page: 1,
|
|
8
|
-
* page_size: 1
|
|
8
|
+
* page_size: 1,
|
|
9
|
+
* order_ids: ["order_ids"]
|
|
9
10
|
* }
|
|
10
11
|
*/
|
|
11
|
-
export interface
|
|
12
|
+
export interface InvoiceLineItemExportListReq {
|
|
12
13
|
page?: number | null;
|
|
13
14
|
page_size?: number | null;
|
|
15
|
+
order_ids: string[];
|
|
14
16
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { type InvoiceLineItemExportListReq } from "./InvoiceLineItemExportListReq.js";
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
import * as environments from "../../../../../../environments.js";
|
|
5
5
|
import * as core from "../../../../../../core/index.js";
|
|
6
6
|
import * as Chrt from "../../../../../index.js";
|
|
7
|
-
import { Export } from "../resources/export/client/Client.js";
|
|
8
7
|
export declare namespace Invoices {
|
|
9
8
|
interface Options {
|
|
10
9
|
environment?: core.Supplier<environments.ChrtEnvironment | string>;
|
|
@@ -30,9 +29,7 @@ export declare namespace Invoices {
|
|
|
30
29
|
}
|
|
31
30
|
export declare class Invoices {
|
|
32
31
|
protected readonly _options: Invoices.Options;
|
|
33
|
-
protected _export: Export | undefined;
|
|
34
32
|
constructor(_options?: Invoices.Options);
|
|
35
|
-
get export(): Export;
|
|
36
33
|
/**
|
|
37
34
|
* Approves a draft invoice owned by the caller's organization. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (Invoice1)
|
|
38
35
|
*
|
|
@@ -51,15 +51,10 @@ const core = __importStar(require("../../../../../../core/index.js"));
|
|
|
51
51
|
const Chrt = __importStar(require("../../../../../index.js"));
|
|
52
52
|
const headers_js_1 = require("../../../../../../core/headers.js");
|
|
53
53
|
const errors = __importStar(require("../../../../../../errors/index.js"));
|
|
54
|
-
const Client_js_1 = require("../resources/export/client/Client.js");
|
|
55
54
|
class Invoices {
|
|
56
55
|
constructor(_options = {}) {
|
|
57
56
|
this._options = _options;
|
|
58
57
|
}
|
|
59
|
-
get export() {
|
|
60
|
-
var _a;
|
|
61
|
-
return ((_a = this._export) !== null && _a !== void 0 ? _a : (this._export = new Client_js_1.Export(this._options)));
|
|
62
|
-
}
|
|
63
58
|
/**
|
|
64
59
|
* Approves a draft invoice owned by the caller's organization. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (Invoice1)
|
|
65
60
|
*
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Chrt from "../index.js";
|
|
5
|
+
export interface InvoiceLineItemExportListItem {
|
|
6
|
+
account_name?: string | null;
|
|
7
|
+
airlines?: string[];
|
|
8
|
+
awb_numbers?: string[];
|
|
9
|
+
billing_period_end_at_timestamp?: string | null;
|
|
10
|
+
billing_period_start_at_timestamp?: string | null;
|
|
11
|
+
cargo_descriptions?: string[];
|
|
12
|
+
cargo_quantity?: number | null;
|
|
13
|
+
cargo_types?: string[];
|
|
14
|
+
counterparty_name?: string | null;
|
|
15
|
+
currency_code: Chrt.BillingCurrencyCodeEnum1;
|
|
16
|
+
delivery_address?: string | null;
|
|
17
|
+
delivery_location_name?: string | null;
|
|
18
|
+
delivery_status?: string | null;
|
|
19
|
+
delivery_stop_number?: number | null;
|
|
20
|
+
delivery_stops_on_order?: number | null;
|
|
21
|
+
destination_iata?: string | null;
|
|
22
|
+
flight_numbers?: string[];
|
|
23
|
+
invoice_approval_timestamp?: string | null;
|
|
24
|
+
invoice_line_item_id: string;
|
|
25
|
+
invoice_line_item_status: Chrt.InvoiceLineItemStatusEnum1;
|
|
26
|
+
invoice_number?: string | null;
|
|
27
|
+
invoice_status?: Chrt.InvoiceStatusEnum1 | null;
|
|
28
|
+
invoice_type: Chrt.InvoiceTypeEnum1;
|
|
29
|
+
/** IATA Air Waybill number: 3-digit airline prefix + 8-digit serial, e.g. '020-12345678'. */
|
|
30
|
+
line_item_awb_number?: string | null;
|
|
31
|
+
line_item_description: string;
|
|
32
|
+
line_item_quantity: number;
|
|
33
|
+
line_item_total_amount: number;
|
|
34
|
+
line_item_type: Chrt.InvoiceLineItemTypeEnum1;
|
|
35
|
+
line_item_unit?: Chrt.InvoiceLineItemUnitEnum1 | null;
|
|
36
|
+
line_item_unit_price: number;
|
|
37
|
+
mileage_estimated?: number | null;
|
|
38
|
+
off_chrt_reference_id?: string | null;
|
|
39
|
+
order_placer_comments?: string | null;
|
|
40
|
+
order_short_id?: string | null;
|
|
41
|
+
origin_iata?: string | null;
|
|
42
|
+
pod_at_timestamp?: string | null;
|
|
43
|
+
pod_name?: string | null;
|
|
44
|
+
tax_percentage?: number | null;
|
|
45
|
+
weight_pounds?: number | null;
|
|
46
|
+
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Chrt from "../index.js";
|
|
5
|
-
export interface
|
|
6
|
-
items: Chrt.
|
|
5
|
+
export interface InvoiceLineItemExportListRes {
|
|
6
|
+
items: Chrt.InvoiceLineItemExportListItem[];
|
|
7
7
|
total_count: number;
|
|
8
8
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Chrt from "../index.js";
|
|
5
|
+
export interface ReceivablesAcrossOrdersCurrencyConversionOrderRes {
|
|
6
|
+
converted_invoice_line_items?: Chrt.InvoiceLineItem1[];
|
|
7
|
+
failure_reason?: string | null;
|
|
8
|
+
order_id: string;
|
|
9
|
+
status: ReceivablesAcrossOrdersCurrencyConversionOrderRes.Status;
|
|
10
|
+
}
|
|
11
|
+
export declare namespace ReceivablesAcrossOrdersCurrencyConversionOrderRes {
|
|
12
|
+
type Status = "succeeded" | "failed" | "no_receivables";
|
|
13
|
+
const Status: {
|
|
14
|
+
readonly Succeeded: "succeeded";
|
|
15
|
+
readonly Failed: "failed";
|
|
16
|
+
readonly NoReceivables: "no_receivables";
|
|
17
|
+
};
|
|
18
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.ReceivablesAcrossOrdersCurrencyConversionOrderRes = void 0;
|
|
7
|
+
var ReceivablesAcrossOrdersCurrencyConversionOrderRes;
|
|
8
|
+
(function (ReceivablesAcrossOrdersCurrencyConversionOrderRes) {
|
|
9
|
+
ReceivablesAcrossOrdersCurrencyConversionOrderRes.Status = {
|
|
10
|
+
Succeeded: "succeeded",
|
|
11
|
+
Failed: "failed",
|
|
12
|
+
NoReceivables: "no_receivables",
|
|
13
|
+
};
|
|
14
|
+
})(ReceivablesAcrossOrdersCurrencyConversionOrderRes || (exports.ReceivablesAcrossOrdersCurrencyConversionOrderRes = ReceivablesAcrossOrdersCurrencyConversionOrderRes = {}));
|
|
@@ -256,8 +256,6 @@ export * from "./InternalDelegationJwtRes.js";
|
|
|
256
256
|
export * from "./Invoice1.js";
|
|
257
257
|
export * from "./InvoiceExpandedListItem.js";
|
|
258
258
|
export * from "./InvoiceExpandedRes.js";
|
|
259
|
-
export * from "./InvoiceExportListItem.js";
|
|
260
|
-
export * from "./InvoiceExportListRes.js";
|
|
261
259
|
export * from "./InvoiceLineItem1.js";
|
|
262
260
|
export * from "./InvoiceLineItemAmountTransformation1.js";
|
|
263
261
|
export * from "./InvoiceLineItemAmountTransformationTypeEnum1.js";
|
|
@@ -265,6 +263,8 @@ export * from "./InvoiceLineItemClientCreate1.js";
|
|
|
265
263
|
export * from "./InvoiceLineItemCurrencyConversion1.js";
|
|
266
264
|
export * from "./InvoiceLineItemExpandedListItem.js";
|
|
267
265
|
export * from "./InvoiceLineItemExpandedRes.js";
|
|
266
|
+
export * from "./InvoiceLineItemExportListItem.js";
|
|
267
|
+
export * from "./InvoiceLineItemExportListRes.js";
|
|
268
268
|
export * from "./InvoiceLineItemListRes.js";
|
|
269
269
|
export * from "./InvoiceLineItemServerCreate1.js";
|
|
270
270
|
export * from "./InvoiceLineItemSortByEnum.js";
|
|
@@ -443,6 +443,7 @@ export * from "./Position2D.js";
|
|
|
443
443
|
export * from "./Position3D.js";
|
|
444
444
|
export * from "./ProFormaLineItem1.js";
|
|
445
445
|
export * from "./ProFormaLineItemProvenanceEnum1.js";
|
|
446
|
+
export * from "./ReceivablesAcrossOrdersCurrencyConversionOrderRes.js";
|
|
446
447
|
export * from "./ReelablesAsset1.js";
|
|
447
448
|
export * from "./ReelablesAssetListRes.js";
|
|
448
449
|
export * from "./ReelablesAssetPausedTimeWindow1.js";
|
|
@@ -272,8 +272,6 @@ __exportStar(require("./InternalDelegationJwtRes.js"), exports);
|
|
|
272
272
|
__exportStar(require("./Invoice1.js"), exports);
|
|
273
273
|
__exportStar(require("./InvoiceExpandedListItem.js"), exports);
|
|
274
274
|
__exportStar(require("./InvoiceExpandedRes.js"), exports);
|
|
275
|
-
__exportStar(require("./InvoiceExportListItem.js"), exports);
|
|
276
|
-
__exportStar(require("./InvoiceExportListRes.js"), exports);
|
|
277
275
|
__exportStar(require("./InvoiceLineItem1.js"), exports);
|
|
278
276
|
__exportStar(require("./InvoiceLineItemAmountTransformation1.js"), exports);
|
|
279
277
|
__exportStar(require("./InvoiceLineItemAmountTransformationTypeEnum1.js"), exports);
|
|
@@ -281,6 +279,8 @@ __exportStar(require("./InvoiceLineItemClientCreate1.js"), exports);
|
|
|
281
279
|
__exportStar(require("./InvoiceLineItemCurrencyConversion1.js"), exports);
|
|
282
280
|
__exportStar(require("./InvoiceLineItemExpandedListItem.js"), exports);
|
|
283
281
|
__exportStar(require("./InvoiceLineItemExpandedRes.js"), exports);
|
|
282
|
+
__exportStar(require("./InvoiceLineItemExportListItem.js"), exports);
|
|
283
|
+
__exportStar(require("./InvoiceLineItemExportListRes.js"), exports);
|
|
284
284
|
__exportStar(require("./InvoiceLineItemListRes.js"), exports);
|
|
285
285
|
__exportStar(require("./InvoiceLineItemServerCreate1.js"), exports);
|
|
286
286
|
__exportStar(require("./InvoiceLineItemSortByEnum.js"), exports);
|
|
@@ -459,6 +459,7 @@ __exportStar(require("./Position2D.js"), exports);
|
|
|
459
459
|
__exportStar(require("./Position3D.js"), exports);
|
|
460
460
|
__exportStar(require("./ProFormaLineItem1.js"), exports);
|
|
461
461
|
__exportStar(require("./ProFormaLineItemProvenanceEnum1.js"), exports);
|
|
462
|
+
__exportStar(require("./ReceivablesAcrossOrdersCurrencyConversionOrderRes.js"), exports);
|
|
462
463
|
__exportStar(require("./ReelablesAsset1.js"), exports);
|
|
463
464
|
__exportStar(require("./ReelablesAssetListRes.js"), exports);
|
|
464
465
|
__exportStar(require("./ReelablesAssetPausedTimeWindow1.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.983.0";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/Client.mjs
CHANGED
|
@@ -24,8 +24,8 @@ export class ChrtClient {
|
|
|
24
24
|
this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
|
|
25
25
|
"X-Fern-Language": "JavaScript",
|
|
26
26
|
"X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
|
|
27
|
-
"X-Fern-SDK-Version": "1.
|
|
28
|
-
"User-Agent": "@chrt-inc/typescript-sdk/1.
|
|
27
|
+
"X-Fern-SDK-Version": "1.983.0",
|
|
28
|
+
"User-Agent": "@chrt-inc/typescript-sdk/1.983.0",
|
|
29
29
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
30
30
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
31
31
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|