@paid-ai/paid-node 1.6.0 → 1.7.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/costs/client/Client.js +2 -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/costs/client/Client.mjs +2 -2
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
package/dist/cjs/Client.js
CHANGED
|
@@ -55,8 +55,8 @@ class PaidClient {
|
|
|
55
55
|
this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
|
|
56
56
|
"X-Fern-Language": "JavaScript",
|
|
57
57
|
"X-Fern-SDK-Name": "@paid-ai/paid-node",
|
|
58
|
-
"X-Fern-SDK-Version": "1.
|
|
59
|
-
"User-Agent": "@paid-ai/paid-node/1.
|
|
58
|
+
"X-Fern-SDK-Version": "1.7.0",
|
|
59
|
+
"User-Agent": "@paid-ai/paid-node/1.7.0",
|
|
60
60
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
61
61
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
62
62
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -83,7 +83,7 @@ class Costs {
|
|
|
83
83
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
84
84
|
const _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);
|
|
85
85
|
const _response = yield core.fetcher({
|
|
86
|
-
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.PaidEnvironment.Default, "
|
|
86
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.PaidEnvironment.Default, "costs/bulk"),
|
|
87
87
|
method: "POST",
|
|
88
88
|
headers: _headers,
|
|
89
89
|
contentType: "application/json",
|
|
@@ -121,7 +121,7 @@ class Costs {
|
|
|
121
121
|
rawResponse: _response.rawResponse,
|
|
122
122
|
});
|
|
123
123
|
case "timeout":
|
|
124
|
-
throw new errors.PaidTimeoutError("Timeout exceeded when calling POST /
|
|
124
|
+
throw new errors.PaidTimeoutError("Timeout exceeded when calling POST /costs/bulk.");
|
|
125
125
|
case "unknown":
|
|
126
126
|
throw new errors.PaidError({
|
|
127
127
|
message: _response.error.errorMessage,
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.
|
|
1
|
+
export declare const SDK_VERSION = "1.7.0";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/Client.mjs
CHANGED
|
@@ -19,8 +19,8 @@ export class PaidClient {
|
|
|
19
19
|
this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
|
|
20
20
|
"X-Fern-Language": "JavaScript",
|
|
21
21
|
"X-Fern-SDK-Name": "@paid-ai/paid-node",
|
|
22
|
-
"X-Fern-SDK-Version": "1.
|
|
23
|
-
"User-Agent": "@paid-ai/paid-node/1.
|
|
22
|
+
"X-Fern-SDK-Version": "1.7.0",
|
|
23
|
+
"User-Agent": "@paid-ai/paid-node/1.7.0",
|
|
24
24
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
25
25
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
26
26
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -47,7 +47,7 @@ export class Costs {
|
|
|
47
47
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
48
48
|
const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
49
49
|
const _response = yield core.fetcher({
|
|
50
|
-
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.PaidEnvironment.Default, "
|
|
50
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.PaidEnvironment.Default, "costs/bulk"),
|
|
51
51
|
method: "POST",
|
|
52
52
|
headers: _headers,
|
|
53
53
|
contentType: "application/json",
|
|
@@ -85,7 +85,7 @@ export class Costs {
|
|
|
85
85
|
rawResponse: _response.rawResponse,
|
|
86
86
|
});
|
|
87
87
|
case "timeout":
|
|
88
|
-
throw new errors.PaidTimeoutError("Timeout exceeded when calling POST /
|
|
88
|
+
throw new errors.PaidTimeoutError("Timeout exceeded when calling POST /costs/bulk.");
|
|
89
89
|
case "unknown":
|
|
90
90
|
throw new errors.PaidError({
|
|
91
91
|
message: _response.error.errorMessage,
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.
|
|
1
|
+
export declare const SDK_VERSION = "1.7.0";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "1.
|
|
1
|
+
export const SDK_VERSION = "1.7.0";
|