@thera-hr/api-sdk 0.0.1-prerelease3557-dev → 0.0.1-prerelease3557-dev-4
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/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +1 -1
- package/api/resources/api/resources/dev/resources/dev/client/Client.js +1 -1
- package/api/resources/api/resources/external/resources/externalApi/client/Client.js +1 -1
- package/api/resources/api/resources/services/resources/file/client/Client.js +5 -5
- package/api/resources/api/resources/thera/resources/accounting/resources/accountingApi/client/Client.js +4 -4
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +37 -37
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.d.ts +21 -0
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.js +129 -27
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardPinUrl.d.ts +6 -0
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardPinUrl.js +5 -0
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/EphemeralKeyRequest.d.ts +6 -0
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/EphemeralKeyRequest.js +5 -0
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.d.ts +2 -0
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.js +2 -0
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +18 -18
- package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +6 -6
- package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +3 -3
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +7 -7
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
- package/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +3 -3
- package/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +2 -2
- package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +5 -5
- package/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.js +3 -3
- package/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/client/Client.js +3 -3
- package/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +9 -9
- package/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/Client.js +11 -11
- package/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.js +1 -1
- package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +5 -5
- package/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/Client.js +7 -7
- package/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +15 -15
- package/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.js +9 -9
- package/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +11 -11
- package/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
- package/api/resources/db/resources/user/types/CardAccountDetails.d.ts +1 -0
- package/api/resources/db/resources/user/types/CardExpInfo.d.ts +8 -0
- package/api/resources/db/resources/user/types/CardExpInfo.js +5 -0
- package/api/resources/db/resources/user/types/index.d.ts +1 -0
- package/api/resources/db/resources/user/types/index.js +1 -0
- package/dist/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +1 -1
- package/dist/api/resources/api/resources/dev/resources/dev/client/Client.js +1 -1
- package/dist/api/resources/api/resources/external/resources/externalApi/client/Client.js +1 -1
- package/dist/api/resources/api/resources/services/resources/file/client/Client.js +5 -5
- package/dist/api/resources/api/resources/thera/resources/accounting/resources/accountingApi/client/Client.js +4 -4
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +37 -37
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.d.ts +21 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.js +129 -27
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardPinUrl.d.ts +6 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardPinUrl.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/EphemeralKeyRequest.d.ts +6 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/EphemeralKeyRequest.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.d.ts +2 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.js +2 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +18 -18
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +6 -6
- package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +3 -3
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +7 -7
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
- package/dist/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +3 -3
- package/dist/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +2 -2
- package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +5 -5
- package/dist/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.js +3 -3
- package/dist/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/client/Client.js +3 -3
- package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +9 -9
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/Client.js +11 -11
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.js +1 -1
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +5 -5
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/Client.js +7 -7
- package/dist/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +15 -15
- package/dist/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.js +9 -9
- package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +11 -11
- package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
- package/dist/api/resources/db/resources/user/types/CardAccountDetails.d.ts +1 -0
- package/dist/api/resources/db/resources/user/types/CardExpInfo.d.ts +8 -0
- package/dist/api/resources/db/resources/user/types/CardExpInfo.js +5 -0
- package/dist/api/resources/db/resources/user/types/index.d.ts +1 -0
- package/dist/api/resources/db/resources/user/types/index.js +1 -0
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardPinUrl.d.ts +12 -0
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardPinUrl.js +43 -0
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/EphemeralKeyRequest.d.ts +12 -0
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/EphemeralKeyRequest.js +43 -0
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.d.ts +2 -0
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.js +2 -0
- package/dist/serialization/resources/db/resources/user/types/CardAccountDetails.d.ts +2 -0
- package/dist/serialization/resources/db/resources/user/types/CardAccountDetails.js +2 -0
- package/dist/serialization/resources/db/resources/user/types/CardExpInfo.d.ts +14 -0
- package/dist/serialization/resources/db/resources/user/types/CardExpInfo.js +45 -0
- package/dist/serialization/resources/db/resources/user/types/index.d.ts +1 -0
- package/dist/serialization/resources/db/resources/user/types/index.js +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +122 -0
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardPinUrl.d.ts +12 -0
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/CardPinUrl.js +43 -0
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/EphemeralKeyRequest.d.ts +12 -0
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/EphemeralKeyRequest.js +43 -0
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.d.ts +2 -0
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.js +2 -0
- package/serialization/resources/db/resources/user/types/CardAccountDetails.d.ts +2 -0
- package/serialization/resources/db/resources/user/types/CardAccountDetails.js +2 -0
- package/serialization/resources/db/resources/user/types/CardExpInfo.d.ts +14 -0
- package/serialization/resources/db/resources/user/types/CardExpInfo.js +45 -0
- package/serialization/resources/db/resources/user/types/index.d.ts +1 -0
- package/serialization/resources/db/resources/user/types/index.js +1 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.js
CHANGED
|
@@ -71,7 +71,7 @@ class BridgeApi {
|
|
|
71
71
|
const _response = yield core.fetcher({
|
|
72
72
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), "/bridge/customers/tos_links"),
|
|
73
73
|
method: "POST",
|
|
74
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3557-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3557-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
74
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3557-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3557-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
75
75
|
contentType: "application/json",
|
|
76
76
|
requestType: "json",
|
|
77
77
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -171,7 +171,7 @@ class BridgeApi {
|
|
|
171
171
|
const _response = yield core.fetcher({
|
|
172
172
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), "/bridge/customers"),
|
|
173
173
|
method: "POST",
|
|
174
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3557-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3557-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
174
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3557-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3557-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
175
175
|
contentType: "application/json",
|
|
176
176
|
requestType: "json",
|
|
177
177
|
body: serializers.api.thera.bridge.CreateCustomer.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -224,7 +224,7 @@ class BridgeApi {
|
|
|
224
224
|
const _response = yield core.fetcher({
|
|
225
225
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `/bridge/customers/${encodeURIComponent(userId)}/kyc-link`),
|
|
226
226
|
method: "GET",
|
|
227
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3557-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3557-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
227
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3557-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3557-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
228
228
|
contentType: "application/json",
|
|
229
229
|
requestType: "json",
|
|
230
230
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -282,7 +282,7 @@ class BridgeApi {
|
|
|
282
282
|
const _response = yield core.fetcher({
|
|
283
283
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `/bridge/external-accounts/${encodeURIComponent(customerId)}/accounts`),
|
|
284
284
|
method: "POST",
|
|
285
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3557-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3557-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
285
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3557-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3557-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
286
286
|
contentType: "application/json",
|
|
287
287
|
requestType: "json",
|
|
288
288
|
body: serializers.api.thera.bridge.ExternalAccount.jsonOrThrow(request, {
|
|
@@ -337,7 +337,7 @@ class BridgeApi {
|
|
|
337
337
|
const _response = yield core.fetcher({
|
|
338
338
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `/bridge/customers/${encodeURIComponent(customerId)}`),
|
|
339
339
|
method: "GET",
|
|
340
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3557-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3557-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
340
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3557-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3557-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
341
341
|
contentType: "application/json",
|
|
342
342
|
requestType: "json",
|
|
343
343
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -388,7 +388,7 @@ class BridgeApi {
|
|
|
388
388
|
const _response = yield core.fetcher({
|
|
389
389
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), "/bridge/customers"),
|
|
390
390
|
method: "GET",
|
|
391
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3557-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3557-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
391
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3557-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3557-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
392
392
|
contentType: "application/json",
|
|
393
393
|
requestType: "json",
|
|
394
394
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -446,7 +446,7 @@ class BridgeApi {
|
|
|
446
446
|
const _response = yield core.fetcher({
|
|
447
447
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), "/bridge/payments/crypto"),
|
|
448
448
|
method: "POST",
|
|
449
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3557-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3557-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
449
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3557-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3557-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
450
450
|
contentType: "application/json",
|
|
451
451
|
requestType: "json",
|
|
452
452
|
body: serializers.api.thera.bridge.CryptoPayout.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -499,7 +499,7 @@ class BridgeApi {
|
|
|
499
499
|
const _response = yield core.fetcher({
|
|
500
500
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `/bridge/payments/crypto/${encodeURIComponent(transactionId)}`),
|
|
501
501
|
method: "GET",
|
|
502
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3557-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3557-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
502
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3557-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3557-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
503
503
|
contentType: "application/json",
|
|
504
504
|
requestType: "json",
|
|
505
505
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -554,7 +554,7 @@ class BridgeApi {
|
|
|
554
554
|
const _response = yield core.fetcher({
|
|
555
555
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), "/bridge/wallets"),
|
|
556
556
|
method: "POST",
|
|
557
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3557-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3557-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
557
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3557-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3557-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
558
558
|
contentType: "application/json",
|
|
559
559
|
requestType: "json",
|
|
560
560
|
body: serializers.api.thera.bridge.CreateWalletRequest.jsonOrThrow(request, {
|
|
@@ -609,7 +609,7 @@ class BridgeApi {
|
|
|
609
609
|
const _response = yield core.fetcher({
|
|
610
610
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `/bridge/wallets/${encodeURIComponent(walletId)}`),
|
|
611
611
|
method: "GET",
|
|
612
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3557-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3557-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
612
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3557-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3557-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
613
613
|
contentType: "application/json",
|
|
614
614
|
requestType: "json",
|
|
615
615
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -661,7 +661,7 @@ class BridgeApi {
|
|
|
661
661
|
const _response = yield core.fetcher({
|
|
662
662
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `/bridge/customers/${encodeURIComponent(customerId)}/wallets`),
|
|
663
663
|
method: "GET",
|
|
664
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3557-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3557-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
664
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3557-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3557-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
665
665
|
contentType: "application/json",
|
|
666
666
|
requestType: "json",
|
|
667
667
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -713,7 +713,7 @@ class BridgeApi {
|
|
|
713
713
|
const _response = yield core.fetcher({
|
|
714
714
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `/bridge/wallets/${encodeURIComponent(walletId)}/history`),
|
|
715
715
|
method: "GET",
|
|
716
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3557-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3557-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
716
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3557-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3557-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
717
717
|
contentType: "application/json",
|
|
718
718
|
requestType: "json",
|
|
719
719
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -772,7 +772,7 @@ class BridgeApi {
|
|
|
772
772
|
const _response = yield core.fetcher({
|
|
773
773
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), "/bridge/wallets/transfer"),
|
|
774
774
|
method: "POST",
|
|
775
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3557-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3557-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
775
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3557-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3557-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
776
776
|
contentType: "application/json",
|
|
777
777
|
requestType: "json",
|
|
778
778
|
body: serializers.api.thera.bridge.TransferFundsRequest.jsonOrThrow(request, {
|
|
@@ -827,7 +827,7 @@ class BridgeApi {
|
|
|
827
827
|
const _response = yield core.fetcher({
|
|
828
828
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `/bridge/external-accounts/${encodeURIComponent(accountId)}`),
|
|
829
829
|
method: "GET",
|
|
830
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3557-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3557-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
830
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3557-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3557-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
831
831
|
contentType: "application/json",
|
|
832
832
|
requestType: "json",
|
|
833
833
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -879,7 +879,7 @@ class BridgeApi {
|
|
|
879
879
|
const _response = yield core.fetcher({
|
|
880
880
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `/bridge/${encodeURIComponent(customerId)}/external-accounts`),
|
|
881
881
|
method: "GET",
|
|
882
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3557-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3557-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
882
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3557-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3557-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
883
883
|
contentType: "application/json",
|
|
884
884
|
requestType: "json",
|
|
885
885
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -935,7 +935,7 @@ class BridgeApi {
|
|
|
935
935
|
const _response = yield core.fetcher({
|
|
936
936
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `/bridge/external-accounts/${encodeURIComponent(accountId)}`),
|
|
937
937
|
method: "PUT",
|
|
938
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3557-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3557-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
938
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3557-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3557-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
939
939
|
contentType: "application/json",
|
|
940
940
|
requestType: "json",
|
|
941
941
|
body: serializers.api.thera.bridge.UpdateExternalAccountRequest.jsonOrThrow(request, {
|
|
@@ -990,7 +990,7 @@ class BridgeApi {
|
|
|
990
990
|
const _response = yield core.fetcher({
|
|
991
991
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `/bridge/external-accounts/${encodeURIComponent(accountId)}`),
|
|
992
992
|
method: "DELETE",
|
|
993
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3557-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3557-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
993
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3557-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3557-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
994
994
|
contentType: "application/json",
|
|
995
995
|
requestType: "json",
|
|
996
996
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1036,7 +1036,7 @@ class BridgeApi {
|
|
|
1036
1036
|
const _response = yield core.fetcher({
|
|
1037
1037
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `/bridge/external-accounts/${encodeURIComponent(accountId)}/reactivate`),
|
|
1038
1038
|
method: "POST",
|
|
1039
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3557-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3557-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1039
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3557-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3557-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1040
1040
|
contentType: "application/json",
|
|
1041
1041
|
requestType: "json",
|
|
1042
1042
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1107,7 +1107,7 @@ class BridgeApi {
|
|
|
1107
1107
|
const _response = yield core.fetcher({
|
|
1108
1108
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), "/bridge/transfers"),
|
|
1109
1109
|
method: "POST",
|
|
1110
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3557-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3557-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1110
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3557-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3557-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1111
1111
|
contentType: "application/json",
|
|
1112
1112
|
requestType: "json",
|
|
1113
1113
|
body: serializers.api.thera.bridge.Transfer.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -1160,7 +1160,7 @@ class BridgeApi {
|
|
|
1160
1160
|
const _response = yield core.fetcher({
|
|
1161
1161
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `/bridge/transfers/${encodeURIComponent(transactionId)}`),
|
|
1162
1162
|
method: "GET",
|
|
1163
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3557-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3557-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1163
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3557-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3557-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1164
1164
|
contentType: "application/json",
|
|
1165
1165
|
requestType: "json",
|
|
1166
1166
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1212,7 +1212,7 @@ class BridgeApi {
|
|
|
1212
1212
|
const _response = yield core.fetcher({
|
|
1213
1213
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `/bridge/${encodeURIComponent(customerId)}/transfers`),
|
|
1214
1214
|
method: "GET",
|
|
1215
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3557-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3557-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1215
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3557-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3557-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1216
1216
|
contentType: "application/json",
|
|
1217
1217
|
requestType: "json",
|
|
1218
1218
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1264,7 +1264,7 @@ class BridgeApi {
|
|
|
1264
1264
|
const _response = yield core.fetcher({
|
|
1265
1265
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `/bridge/users/${encodeURIComponent(userId)}/virtual-accounts`),
|
|
1266
1266
|
method: "POST",
|
|
1267
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3557-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3557-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1267
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3557-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3557-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1268
1268
|
contentType: "application/json",
|
|
1269
1269
|
requestType: "json",
|
|
1270
1270
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1316,7 +1316,7 @@ class BridgeApi {
|
|
|
1316
1316
|
const _response = yield core.fetcher({
|
|
1317
1317
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `/bridge/users/${encodeURIComponent(userId)}/virtual-accounts`),
|
|
1318
1318
|
method: "GET",
|
|
1319
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3557-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3557-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1319
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3557-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3557-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1320
1320
|
contentType: "application/json",
|
|
1321
1321
|
requestType: "json",
|
|
1322
1322
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1368,7 +1368,7 @@ class BridgeApi {
|
|
|
1368
1368
|
const _response = yield core.fetcher({
|
|
1369
1369
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `/bridge/users/${encodeURIComponent(userId)}/virtual-accounts-history`),
|
|
1370
1370
|
method: "GET",
|
|
1371
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3557-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3557-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1371
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3557-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3557-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1372
1372
|
contentType: "application/json",
|
|
1373
1373
|
requestType: "json",
|
|
1374
1374
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1420,7 +1420,7 @@ class BridgeApi {
|
|
|
1420
1420
|
const _response = yield core.fetcher({
|
|
1421
1421
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `/bridge/users/${encodeURIComponent(userId)}/card-accounts`),
|
|
1422
1422
|
method: "POST",
|
|
1423
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3557-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3557-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1423
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3557-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3557-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1424
1424
|
contentType: "application/json",
|
|
1425
1425
|
requestType: "json",
|
|
1426
1426
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1471,7 +1471,7 @@ class BridgeApi {
|
|
|
1471
1471
|
const _response = yield core.fetcher({
|
|
1472
1472
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `/bridge/customers/${encodeURIComponent(customerId)}/card-account/${encodeURIComponent(cardAccountId)}`),
|
|
1473
1473
|
method: "GET",
|
|
1474
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3557-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3557-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1474
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3557-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3557-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1475
1475
|
contentType: "application/json",
|
|
1476
1476
|
requestType: "json",
|
|
1477
1477
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1522,7 +1522,7 @@ class BridgeApi {
|
|
|
1522
1522
|
const _response = yield core.fetcher({
|
|
1523
1523
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `/bridge/customers/${encodeURIComponent(customerId)}/card-accounts/${encodeURIComponent(cardAccountId)}/transactions`),
|
|
1524
1524
|
method: "GET",
|
|
1525
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3557-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3557-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1525
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3557-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3557-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1526
1526
|
contentType: "application/json",
|
|
1527
1527
|
requestType: "json",
|
|
1528
1528
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1559,6 +1559,108 @@ class BridgeApi {
|
|
|
1559
1559
|
}
|
|
1560
1560
|
});
|
|
1561
1561
|
}
|
|
1562
|
+
/**
|
|
1563
|
+
* @param {string} customerId
|
|
1564
|
+
* @param {string} cardAccountId
|
|
1565
|
+
* @param {BridgeApi.RequestOptions} requestOptions - Request-specific configuration.
|
|
1566
|
+
*
|
|
1567
|
+
* @example
|
|
1568
|
+
* await client.api.thera.bridge.bridgeApi.cardPinUpdate("string", "string")
|
|
1569
|
+
*/
|
|
1570
|
+
cardPinUpdate(customerId, cardAccountId, requestOptions) {
|
|
1571
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1572
|
+
var _a;
|
|
1573
|
+
const _response = yield core.fetcher({
|
|
1574
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `/bridge/customers/${encodeURIComponent(customerId)}/card-accounts/${encodeURIComponent(cardAccountId)}/generate-pin`),
|
|
1575
|
+
method: "GET",
|
|
1576
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3557-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3557-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1577
|
+
contentType: "application/json",
|
|
1578
|
+
requestType: "json",
|
|
1579
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
1580
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
1581
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1582
|
+
});
|
|
1583
|
+
if (_response.ok) {
|
|
1584
|
+
return serializers.api.thera.bridge.CardPinUrl.parseOrThrow(_response.body, {
|
|
1585
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1586
|
+
allowUnrecognizedUnionMembers: true,
|
|
1587
|
+
allowUnrecognizedEnumValues: true,
|
|
1588
|
+
skipValidation: true,
|
|
1589
|
+
breadcrumbsPrefix: ["response"],
|
|
1590
|
+
});
|
|
1591
|
+
}
|
|
1592
|
+
if (_response.error.reason === "status-code") {
|
|
1593
|
+
throw new errors.TheraApiError({
|
|
1594
|
+
statusCode: _response.error.statusCode,
|
|
1595
|
+
body: _response.error.body,
|
|
1596
|
+
});
|
|
1597
|
+
}
|
|
1598
|
+
switch (_response.error.reason) {
|
|
1599
|
+
case "non-json":
|
|
1600
|
+
throw new errors.TheraApiError({
|
|
1601
|
+
statusCode: _response.error.statusCode,
|
|
1602
|
+
body: _response.error.rawBody,
|
|
1603
|
+
});
|
|
1604
|
+
case "timeout":
|
|
1605
|
+
throw new errors.TheraApiTimeoutError("Timeout exceeded when calling GET /bridge/customers/{customerId}/card-accounts/{cardAccountId}/generate-pin.");
|
|
1606
|
+
case "unknown":
|
|
1607
|
+
throw new errors.TheraApiError({
|
|
1608
|
+
message: _response.error.errorMessage,
|
|
1609
|
+
});
|
|
1610
|
+
}
|
|
1611
|
+
});
|
|
1612
|
+
}
|
|
1613
|
+
/**
|
|
1614
|
+
* @param {string} customerId
|
|
1615
|
+
* @param {string} cardAccountId
|
|
1616
|
+
* @param {TheraApi.api.thera.bridge.EphemeralKeyRequest} request
|
|
1617
|
+
* @param {BridgeApi.RequestOptions} requestOptions - Request-specific configuration.
|
|
1618
|
+
*
|
|
1619
|
+
* @example
|
|
1620
|
+
* await client.api.thera.bridge.bridgeApi.createEphemeralKey("string", "string", {
|
|
1621
|
+
* clientNonce: "string"
|
|
1622
|
+
* })
|
|
1623
|
+
*/
|
|
1624
|
+
createEphemeralKey(customerId, cardAccountId, request, requestOptions) {
|
|
1625
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1626
|
+
var _a;
|
|
1627
|
+
const _response = yield core.fetcher({
|
|
1628
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `/bridge/customers/${encodeURIComponent(customerId)}/card-accounts/${encodeURIComponent(cardAccountId)}/ephemeralKey`),
|
|
1629
|
+
method: "POST",
|
|
1630
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease3557-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3557-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1631
|
+
contentType: "application/json",
|
|
1632
|
+
requestType: "json",
|
|
1633
|
+
body: serializers.api.thera.bridge.EphemeralKeyRequest.jsonOrThrow(request, {
|
|
1634
|
+
unrecognizedObjectKeys: "strip",
|
|
1635
|
+
}),
|
|
1636
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
1637
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
1638
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1639
|
+
});
|
|
1640
|
+
if (_response.ok) {
|
|
1641
|
+
return _response.body;
|
|
1642
|
+
}
|
|
1643
|
+
if (_response.error.reason === "status-code") {
|
|
1644
|
+
throw new errors.TheraApiError({
|
|
1645
|
+
statusCode: _response.error.statusCode,
|
|
1646
|
+
body: _response.error.body,
|
|
1647
|
+
});
|
|
1648
|
+
}
|
|
1649
|
+
switch (_response.error.reason) {
|
|
1650
|
+
case "non-json":
|
|
1651
|
+
throw new errors.TheraApiError({
|
|
1652
|
+
statusCode: _response.error.statusCode,
|
|
1653
|
+
body: _response.error.rawBody,
|
|
1654
|
+
});
|
|
1655
|
+
case "timeout":
|
|
1656
|
+
throw new errors.TheraApiTimeoutError("Timeout exceeded when calling POST /bridge/customers/{customerId}/card-accounts/{cardAccountId}/ephemeralKey.");
|
|
1657
|
+
case "unknown":
|
|
1658
|
+
throw new errors.TheraApiError({
|
|
1659
|
+
message: _response.error.errorMessage,
|
|
1660
|
+
});
|
|
1661
|
+
}
|
|
1662
|
+
});
|
|
1663
|
+
}
|
|
1562
1664
|
_getAuthorizationHeader() {
|
|
1563
1665
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1564
1666
|
const bearer = yield core.Supplier.get(this._options.token);
|
package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.js
CHANGED
|
@@ -75,3 +75,5 @@ __exportStar(require("./TransactionCategory"), exports);
|
|
|
75
75
|
__exportStar(require("./TransactionCurrency"), exports);
|
|
76
76
|
__exportStar(require("./CreateCardRequest"), exports);
|
|
77
77
|
__exportStar(require("./CryptoCardAccount"), exports);
|
|
78
|
+
__exportStar(require("./CardPinUrl"), exports);
|
|
79
|
+
__exportStar(require("./EphemeralKeyRequest"), exports);
|