@thera-hr/api-sdk 0.0.1-prerelease2995-dev-2 → 0.0.1-prerelease2997-dev-anthony
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 +33 -33
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/AuBecsDebitPaymentMethodResponse.d.ts +9 -0
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/HistoricPaymentDetail.d.ts +1 -4
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/PaymentMethodDetailsResponse.d.ts +4 -1
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +1 -1
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +1 -1
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.d.ts +0 -10
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.js +23 -75
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.d.ts +0 -4
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.js +0 -4
- 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 +3 -3
- 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/misc/resources/misc/client/Client.js +7 -7
- 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 +3 -3
- package/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +14 -14
- 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.d.ts +1 -5
- package/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +11 -15
- package/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/requests/AddCompanyBankingDetailsRequest.d.ts +0 -3
- package/api/resources/api/resources/thera/resources/tp/resources/tpApi/types/ProcessFundsTransfer.d.ts +0 -1
- package/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
- package/api/resources/db/resources/company/types/CompanyBeneficiary.d.ts +0 -1
- package/api/resources/db/resources/company/types/TpCompanyInformation.d.ts +0 -1
- package/api/resources/db/resources/paymentMethod/types/StripeAuBecsDebitPaymentMethodDetails.d.ts +10 -0
- package/api/resources/db/resources/paymentMethod/types/StripeFcPaymentMethod.d.ts +4 -1
- package/api/resources/db/resources/paymentMethod/types/index.d.ts +1 -0
- package/api/resources/db/resources/paymentMethod/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 +33 -33
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/AuBecsDebitPaymentMethodResponse.d.ts +9 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/HistoricPaymentDetail.d.ts +1 -4
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/PaymentMethodDetailsResponse.d.ts +4 -1
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +1 -1
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +1 -1
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.d.ts +0 -10
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.js +23 -75
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.d.ts +0 -4
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.js +0 -4
- 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 +3 -3
- 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/misc/resources/misc/client/Client.js +7 -7
- 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 +3 -3
- package/dist/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +14 -14
- 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.d.ts +1 -5
- package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +11 -15
- package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/requests/AddCompanyBankingDetailsRequest.d.ts +0 -3
- package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/types/ProcessFundsTransfer.d.ts +0 -1
- package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
- package/dist/api/resources/db/resources/company/types/CompanyBeneficiary.d.ts +0 -1
- package/dist/api/resources/db/resources/company/types/TpCompanyInformation.d.ts +0 -1
- package/dist/api/resources/db/resources/paymentMethod/types/StripeAuBecsDebitPaymentMethodDetails.d.ts +10 -0
- package/dist/api/resources/db/resources/paymentMethod/types/StripeFcPaymentMethod.d.ts +4 -1
- package/dist/api/resources/db/resources/paymentMethod/types/index.d.ts +1 -0
- package/dist/api/resources/db/resources/paymentMethod/types/index.js +1 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/AuBecsDebitPaymentMethodResponse.d.ts +15 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/{W2SubscriptionPayIn.js → AuBecsDebitPaymentMethodResponse.js} +6 -5
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/HistoricPaymentDetail.d.ts +1 -5
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/HistoricPaymentDetail.js +0 -2
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/PaymentMethodDetailsResponse.d.ts +5 -1
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/PaymentMethodDetailsResponse.js +2 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +1 -1
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +1 -1
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.d.ts +0 -4
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.js +0 -4
- package/dist/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/ProcessFundsTransfer.d.ts +0 -1
- package/dist/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/ProcessFundsTransfer.js +0 -1
- package/dist/serialization/resources/db/resources/company/types/CompanyBeneficiary.d.ts +0 -1
- package/dist/serialization/resources/db/resources/company/types/CompanyBeneficiary.js +0 -1
- package/dist/serialization/resources/db/resources/company/types/TpCompanyInformation.d.ts +0 -1
- package/dist/serialization/resources/db/resources/company/types/TpCompanyInformation.js +0 -1
- package/dist/serialization/resources/db/resources/paymentMethod/types/StripeAuBecsDebitPaymentMethodDetails.d.ts +16 -0
- package/dist/serialization/resources/{api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletHistoryDestination.js → db/resources/paymentMethod/types/StripeAuBecsDebitPaymentMethodDetails.js} +8 -5
- package/dist/serialization/resources/db/resources/paymentMethod/types/StripeFcPaymentMethod.d.ts +5 -1
- package/dist/serialization/resources/db/resources/paymentMethod/types/StripeFcPaymentMethod.js +2 -0
- package/dist/serialization/resources/db/resources/paymentMethod/types/index.d.ts +1 -0
- package/dist/serialization/resources/db/resources/paymentMethod/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 +0 -67
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/AuBecsDebitPaymentMethodResponse.d.ts +15 -0
- package/{dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletHistorySource.js → serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/AuBecsDebitPaymentMethodResponse.js} +6 -4
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/HistoricPaymentDetail.d.ts +1 -5
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/HistoricPaymentDetail.js +0 -2
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/PaymentMethodDetailsResponse.d.ts +5 -1
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/PaymentMethodDetailsResponse.js +2 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +1 -1
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +1 -1
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.d.ts +0 -4
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.js +0 -4
- package/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/ProcessFundsTransfer.d.ts +0 -1
- package/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/ProcessFundsTransfer.js +0 -1
- package/serialization/resources/db/resources/company/types/CompanyBeneficiary.d.ts +0 -1
- package/serialization/resources/db/resources/company/types/CompanyBeneficiary.js +0 -1
- package/serialization/resources/db/resources/company/types/TpCompanyInformation.d.ts +0 -1
- package/serialization/resources/db/resources/company/types/TpCompanyInformation.js +0 -1
- package/serialization/resources/db/resources/paymentMethod/types/StripeAuBecsDebitPaymentMethodDetails.d.ts +16 -0
- package/{dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletHistoryResponse.js → serialization/resources/db/resources/paymentMethod/types/StripeAuBecsDebitPaymentMethodDetails.js} +8 -6
- package/serialization/resources/db/resources/paymentMethod/types/StripeFcPaymentMethod.d.ts +5 -1
- package/serialization/resources/db/resources/paymentMethod/types/StripeFcPaymentMethod.js +2 -0
- package/serialization/resources/db/resources/paymentMethod/types/index.d.ts +1 -0
- package/serialization/resources/db/resources/paymentMethod/types/index.js +1 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/W2SubscriptionPayIn.d.ts +0 -8
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletHistory.d.ts +0 -13
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletHistoryDestination.d.ts +0 -7
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletHistoryResponse.d.ts +0 -8
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletHistorySource.d.ts +0 -7
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletHistorySource.js +0 -5
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/W2SubscriptionPayIn.d.ts +0 -8
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/W2SubscriptionPayIn.js +0 -5
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletHistory.d.ts +0 -13
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletHistory.js +0 -5
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletHistoryDestination.d.ts +0 -7
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletHistoryDestination.js +0 -5
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletHistoryResponse.d.ts +0 -8
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletHistoryResponse.js +0 -5
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletHistorySource.d.ts +0 -7
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletHistorySource.js +0 -5
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/W2SubscriptionPayIn.d.ts +0 -14
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletHistory.d.ts +0 -20
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletHistory.js +0 -51
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletHistoryDestination.d.ts +0 -13
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletHistoryResponse.d.ts +0 -14
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletHistorySource.d.ts +0 -13
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/W2SubscriptionPayIn.d.ts +0 -14
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/W2SubscriptionPayIn.js +0 -45
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletHistory.d.ts +0 -20
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletHistory.js +0 -51
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletHistoryDestination.d.ts +0 -13
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletHistoryDestination.js +0 -44
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletHistoryResponse.d.ts +0 -14
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletHistoryResponse.js +0 -45
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletHistorySource.d.ts +0 -13
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletHistorySource.js +0 -44
- /package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/{W2SubscriptionPayIn.js → AuBecsDebitPaymentMethodResponse.js} +0 -0
- /package/api/resources/{api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletHistory.js → db/resources/paymentMethod/types/StripeAuBecsDebitPaymentMethodDetails.js} +0 -0
- /package/{api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletHistoryDestination.js → dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/AuBecsDebitPaymentMethodResponse.js} +0 -0
- /package/{api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletHistoryResponse.js → dist/api/resources/db/resources/paymentMethod/types/StripeAuBecsDebitPaymentMethodDetails.js} +0 -0
package/dist/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-
|
|
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-prerelease2997-dev-anthony", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2997-dev-anthony", "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-
|
|
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-prerelease2997-dev-anthony", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2997-dev-anthony", "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-
|
|
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-prerelease2997-dev-anthony", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2997-dev-anthony", "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,
|
|
@@ -281,7 +281,7 @@ class BridgeApi {
|
|
|
281
281
|
const _response = yield core.fetcher({
|
|
282
282
|
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`),
|
|
283
283
|
method: "POST",
|
|
284
|
-
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-
|
|
284
|
+
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-prerelease2997-dev-anthony", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2997-dev-anthony", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
285
285
|
contentType: "application/json",
|
|
286
286
|
requestType: "json",
|
|
287
287
|
body: serializers.api.thera.bridge.ExternalAccount.jsonOrThrow(request, {
|
|
@@ -336,7 +336,7 @@ class BridgeApi {
|
|
|
336
336
|
const _response = yield core.fetcher({
|
|
337
337
|
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)}`),
|
|
338
338
|
method: "GET",
|
|
339
|
-
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-
|
|
339
|
+
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-prerelease2997-dev-anthony", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2997-dev-anthony", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
340
340
|
contentType: "application/json",
|
|
341
341
|
requestType: "json",
|
|
342
342
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -387,7 +387,7 @@ class BridgeApi {
|
|
|
387
387
|
const _response = yield core.fetcher({
|
|
388
388
|
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"),
|
|
389
389
|
method: "GET",
|
|
390
|
-
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-
|
|
390
|
+
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-prerelease2997-dev-anthony", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2997-dev-anthony", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
391
391
|
contentType: "application/json",
|
|
392
392
|
requestType: "json",
|
|
393
393
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -445,7 +445,7 @@ class BridgeApi {
|
|
|
445
445
|
const _response = yield core.fetcher({
|
|
446
446
|
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"),
|
|
447
447
|
method: "POST",
|
|
448
|
-
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-
|
|
448
|
+
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-prerelease2997-dev-anthony", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2997-dev-anthony", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
449
449
|
contentType: "application/json",
|
|
450
450
|
requestType: "json",
|
|
451
451
|
body: serializers.api.thera.bridge.CryptoPayout.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -498,7 +498,7 @@ class BridgeApi {
|
|
|
498
498
|
const _response = yield core.fetcher({
|
|
499
499
|
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)}`),
|
|
500
500
|
method: "GET",
|
|
501
|
-
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-
|
|
501
|
+
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-prerelease2997-dev-anthony", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2997-dev-anthony", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
502
502
|
contentType: "application/json",
|
|
503
503
|
requestType: "json",
|
|
504
504
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -553,7 +553,7 @@ class BridgeApi {
|
|
|
553
553
|
const _response = yield core.fetcher({
|
|
554
554
|
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"),
|
|
555
555
|
method: "POST",
|
|
556
|
-
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-
|
|
556
|
+
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-prerelease2997-dev-anthony", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2997-dev-anthony", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
557
557
|
contentType: "application/json",
|
|
558
558
|
requestType: "json",
|
|
559
559
|
body: serializers.api.thera.bridge.CreateWalletRequest.jsonOrThrow(request, {
|
|
@@ -608,7 +608,7 @@ class BridgeApi {
|
|
|
608
608
|
const _response = yield core.fetcher({
|
|
609
609
|
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)}`),
|
|
610
610
|
method: "GET",
|
|
611
|
-
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-
|
|
611
|
+
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-prerelease2997-dev-anthony", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2997-dev-anthony", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
612
612
|
contentType: "application/json",
|
|
613
613
|
requestType: "json",
|
|
614
614
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -660,7 +660,7 @@ class BridgeApi {
|
|
|
660
660
|
const _response = yield core.fetcher({
|
|
661
661
|
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`),
|
|
662
662
|
method: "GET",
|
|
663
|
-
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-
|
|
663
|
+
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-prerelease2997-dev-anthony", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2997-dev-anthony", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
664
664
|
contentType: "application/json",
|
|
665
665
|
requestType: "json",
|
|
666
666
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -697,58 +697,6 @@ class BridgeApi {
|
|
|
697
697
|
}
|
|
698
698
|
});
|
|
699
699
|
}
|
|
700
|
-
/**
|
|
701
|
-
* Retrieves all wallets associated with a customer.
|
|
702
|
-
*
|
|
703
|
-
* @param {string} walletId
|
|
704
|
-
* @param {BridgeApi.RequestOptions} requestOptions - Request-specific configuration.
|
|
705
|
-
*
|
|
706
|
-
* @example
|
|
707
|
-
* await client.api.thera.bridge.bridgeApi.walletsTransactionHistory("string")
|
|
708
|
-
*/
|
|
709
|
-
walletsTransactionHistory(walletId, requestOptions) {
|
|
710
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
711
|
-
var _a;
|
|
712
|
-
const _response = yield core.fetcher({
|
|
713
|
-
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`),
|
|
714
|
-
method: "GET",
|
|
715
|
-
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-prerelease2995-dev-2", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2995-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
716
|
-
contentType: "application/json",
|
|
717
|
-
requestType: "json",
|
|
718
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
719
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
720
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
721
|
-
});
|
|
722
|
-
if (_response.ok) {
|
|
723
|
-
return serializers.api.thera.bridge.WalletHistoryResponse.parseOrThrow(_response.body, {
|
|
724
|
-
unrecognizedObjectKeys: "passthrough",
|
|
725
|
-
allowUnrecognizedUnionMembers: true,
|
|
726
|
-
allowUnrecognizedEnumValues: true,
|
|
727
|
-
skipValidation: true,
|
|
728
|
-
breadcrumbsPrefix: ["response"],
|
|
729
|
-
});
|
|
730
|
-
}
|
|
731
|
-
if (_response.error.reason === "status-code") {
|
|
732
|
-
throw new errors.TheraApiError({
|
|
733
|
-
statusCode: _response.error.statusCode,
|
|
734
|
-
body: _response.error.body,
|
|
735
|
-
});
|
|
736
|
-
}
|
|
737
|
-
switch (_response.error.reason) {
|
|
738
|
-
case "non-json":
|
|
739
|
-
throw new errors.TheraApiError({
|
|
740
|
-
statusCode: _response.error.statusCode,
|
|
741
|
-
body: _response.error.rawBody,
|
|
742
|
-
});
|
|
743
|
-
case "timeout":
|
|
744
|
-
throw new errors.TheraApiTimeoutError("Timeout exceeded when calling GET /bridge/wallets/{walletId}/history.");
|
|
745
|
-
case "unknown":
|
|
746
|
-
throw new errors.TheraApiError({
|
|
747
|
-
message: _response.error.errorMessage,
|
|
748
|
-
});
|
|
749
|
-
}
|
|
750
|
-
});
|
|
751
|
-
}
|
|
752
700
|
/**
|
|
753
701
|
* Transfers funds between custodial wallets.
|
|
754
702
|
*
|
|
@@ -771,7 +719,7 @@ class BridgeApi {
|
|
|
771
719
|
const _response = yield core.fetcher({
|
|
772
720
|
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"),
|
|
773
721
|
method: "POST",
|
|
774
|
-
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-
|
|
722
|
+
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-prerelease2997-dev-anthony", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2997-dev-anthony", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
775
723
|
contentType: "application/json",
|
|
776
724
|
requestType: "json",
|
|
777
725
|
body: serializers.api.thera.bridge.TransferFundsRequest.jsonOrThrow(request, {
|
|
@@ -826,7 +774,7 @@ class BridgeApi {
|
|
|
826
774
|
const _response = yield core.fetcher({
|
|
827
775
|
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)}`),
|
|
828
776
|
method: "GET",
|
|
829
|
-
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-
|
|
777
|
+
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-prerelease2997-dev-anthony", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2997-dev-anthony", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
830
778
|
contentType: "application/json",
|
|
831
779
|
requestType: "json",
|
|
832
780
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -878,7 +826,7 @@ class BridgeApi {
|
|
|
878
826
|
const _response = yield core.fetcher({
|
|
879
827
|
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`),
|
|
880
828
|
method: "GET",
|
|
881
|
-
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-
|
|
829
|
+
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-prerelease2997-dev-anthony", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2997-dev-anthony", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
882
830
|
contentType: "application/json",
|
|
883
831
|
requestType: "json",
|
|
884
832
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -934,7 +882,7 @@ class BridgeApi {
|
|
|
934
882
|
const _response = yield core.fetcher({
|
|
935
883
|
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)}`),
|
|
936
884
|
method: "PUT",
|
|
937
|
-
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-
|
|
885
|
+
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-prerelease2997-dev-anthony", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2997-dev-anthony", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
938
886
|
contentType: "application/json",
|
|
939
887
|
requestType: "json",
|
|
940
888
|
body: serializers.api.thera.bridge.UpdateExternalAccountRequest.jsonOrThrow(request, {
|
|
@@ -989,7 +937,7 @@ class BridgeApi {
|
|
|
989
937
|
const _response = yield core.fetcher({
|
|
990
938
|
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)}`),
|
|
991
939
|
method: "DELETE",
|
|
992
|
-
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-
|
|
940
|
+
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-prerelease2997-dev-anthony", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2997-dev-anthony", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
993
941
|
contentType: "application/json",
|
|
994
942
|
requestType: "json",
|
|
995
943
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1035,7 +983,7 @@ class BridgeApi {
|
|
|
1035
983
|
const _response = yield core.fetcher({
|
|
1036
984
|
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`),
|
|
1037
985
|
method: "POST",
|
|
1038
|
-
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-
|
|
986
|
+
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-prerelease2997-dev-anthony", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2997-dev-anthony", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1039
987
|
contentType: "application/json",
|
|
1040
988
|
requestType: "json",
|
|
1041
989
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1105,7 +1053,7 @@ class BridgeApi {
|
|
|
1105
1053
|
const _response = yield core.fetcher({
|
|
1106
1054
|
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"),
|
|
1107
1055
|
method: "POST",
|
|
1108
|
-
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-
|
|
1056
|
+
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-prerelease2997-dev-anthony", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2997-dev-anthony", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1109
1057
|
contentType: "application/json",
|
|
1110
1058
|
requestType: "json",
|
|
1111
1059
|
body: serializers.api.thera.bridge.Transfer.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -1158,7 +1106,7 @@ class BridgeApi {
|
|
|
1158
1106
|
const _response = yield core.fetcher({
|
|
1159
1107
|
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)}`),
|
|
1160
1108
|
method: "GET",
|
|
1161
|
-
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-
|
|
1109
|
+
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-prerelease2997-dev-anthony", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2997-dev-anthony", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1162
1110
|
contentType: "application/json",
|
|
1163
1111
|
requestType: "json",
|
|
1164
1112
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1210,7 +1158,7 @@ class BridgeApi {
|
|
|
1210
1158
|
const _response = yield core.fetcher({
|
|
1211
1159
|
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`),
|
|
1212
1160
|
method: "GET",
|
|
1213
|
-
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-
|
|
1161
|
+
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-prerelease2997-dev-anthony", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2997-dev-anthony", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1214
1162
|
contentType: "application/json",
|
|
1215
1163
|
requestType: "json",
|
|
1216
1164
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1262,7 +1210,7 @@ class BridgeApi {
|
|
|
1262
1210
|
const _response = yield core.fetcher({
|
|
1263
1211
|
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`),
|
|
1264
1212
|
method: "POST",
|
|
1265
|
-
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-
|
|
1213
|
+
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-prerelease2997-dev-anthony", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2997-dev-anthony", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1266
1214
|
contentType: "application/json",
|
|
1267
1215
|
requestType: "json",
|
|
1268
1216
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1314,7 +1262,7 @@ class BridgeApi {
|
|
|
1314
1262
|
const _response = yield core.fetcher({
|
|
1315
1263
|
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`),
|
|
1316
1264
|
method: "GET",
|
|
1317
|
-
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-
|
|
1265
|
+
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-prerelease2997-dev-anthony", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2997-dev-anthony", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1318
1266
|
contentType: "application/json",
|
|
1319
1267
|
requestType: "json",
|
|
1320
1268
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1366,7 +1314,7 @@ class BridgeApi {
|
|
|
1366
1314
|
const _response = yield core.fetcher({
|
|
1367
1315
|
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`),
|
|
1368
1316
|
method: "GET",
|
|
1369
|
-
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-
|
|
1317
|
+
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-prerelease2997-dev-anthony", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2997-dev-anthony", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1370
1318
|
contentType: "application/json",
|
|
1371
1319
|
requestType: "json",
|
|
1372
1320
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.d.ts
CHANGED
|
@@ -35,7 +35,3 @@ export * from "./CreateVirtualAccountDestination";
|
|
|
35
35
|
export * from "./VirtualAccountHistoryResponse";
|
|
36
36
|
export * from "./VirtualAccountHistory";
|
|
37
37
|
export * from "./VirtualAccountHistorySource";
|
|
38
|
-
export * from "./WalletHistory";
|
|
39
|
-
export * from "./WalletHistorySource";
|
|
40
|
-
export * from "./WalletHistoryDestination";
|
|
41
|
-
export * from "./WalletHistoryResponse";
|
package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.js
CHANGED
|
@@ -51,7 +51,3 @@ __exportStar(require("./CreateVirtualAccountDestination"), exports);
|
|
|
51
51
|
__exportStar(require("./VirtualAccountHistoryResponse"), exports);
|
|
52
52
|
__exportStar(require("./VirtualAccountHistory"), exports);
|
|
53
53
|
__exportStar(require("./VirtualAccountHistorySource"), exports);
|
|
54
|
-
__exportStar(require("./WalletHistory"), exports);
|
|
55
|
-
__exportStar(require("./WalletHistorySource"), exports);
|
|
56
|
-
__exportStar(require("./WalletHistoryDestination"), exports);
|
|
57
|
-
__exportStar(require("./WalletHistoryResponse"), exports);
|
|
@@ -75,7 +75,7 @@ class CompanyApi {
|
|
|
75
75
|
const _response = yield core.fetcher({
|
|
76
76
|
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)), `companies/${encodeURIComponent(companyId)}/monite/token`),
|
|
77
77
|
method: "POST",
|
|
78
|
-
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-
|
|
78
|
+
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-prerelease2997-dev-anthony", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2997-dev-anthony", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
79
79
|
contentType: "application/json",
|
|
80
80
|
requestType: "json",
|
|
81
81
|
body: serializers.api.thera.company.GetMoniteTokenRequest.jsonOrThrow(request, {
|
|
@@ -134,7 +134,7 @@ class CompanyApi {
|
|
|
134
134
|
const _response = yield core.fetcher({
|
|
135
135
|
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)), `companies/${encodeURIComponent(companyId)}/mercoa/token`),
|
|
136
136
|
method: "POST",
|
|
137
|
-
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-
|
|
137
|
+
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-prerelease2997-dev-anthony", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2997-dev-anthony", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
138
138
|
contentType: "application/json",
|
|
139
139
|
requestType: "json",
|
|
140
140
|
body: serializers.api.thera.company.GetMercoaTokenRequest.jsonOrThrow(request, {
|
|
@@ -262,7 +262,7 @@ class CompanyApi {
|
|
|
262
262
|
const _response = yield core.fetcher({
|
|
263
263
|
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)), "companies/employees"),
|
|
264
264
|
method: "POST",
|
|
265
|
-
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-
|
|
265
|
+
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-prerelease2997-dev-anthony", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2997-dev-anthony", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
266
266
|
contentType: "application/json",
|
|
267
267
|
requestType: "json",
|
|
268
268
|
body: serializers.api.thera.company.InviteContractorRequest.jsonOrThrow(request, {
|
|
@@ -331,7 +331,7 @@ class CompanyApi {
|
|
|
331
331
|
const _response = yield core.fetcher({
|
|
332
332
|
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)), `companies/${encodeURIComponent(companyId)}/managers`),
|
|
333
333
|
method: "POST",
|
|
334
|
-
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-
|
|
334
|
+
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-prerelease2997-dev-anthony", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2997-dev-anthony", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
335
335
|
contentType: "application/json",
|
|
336
336
|
requestType: "json",
|
|
337
337
|
body: serializers.api.thera.company.InviteManagerRequest.jsonOrThrow(request, {
|
|
@@ -398,7 +398,7 @@ class CompanyApi {
|
|
|
398
398
|
const _response = yield core.fetcher({
|
|
399
399
|
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)), `companies/${encodeURIComponent(companyId)}/managers/${encodeURIComponent(userId)}`),
|
|
400
400
|
method: "POST",
|
|
401
|
-
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-
|
|
401
|
+
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-prerelease2997-dev-anthony", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2997-dev-anthony", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
402
402
|
contentType: "application/json",
|
|
403
403
|
requestType: "json",
|
|
404
404
|
body: serializers.api.thera.company.EditManagerRolesRequest.jsonOrThrow(request, {
|
|
@@ -468,7 +468,7 @@ class CompanyApi {
|
|
|
468
468
|
const _response = yield core.fetcher({
|
|
469
469
|
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)), `companies/${encodeURIComponent(companyId)}/admins`),
|
|
470
470
|
method: "POST",
|
|
471
|
-
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-
|
|
471
|
+
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-prerelease2997-dev-anthony", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2997-dev-anthony", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
472
472
|
contentType: "application/json",
|
|
473
473
|
requestType: "json",
|
|
474
474
|
body: serializers.api.thera.company.EditOrgRolesRequest.jsonOrThrow(request, {
|
|
@@ -524,7 +524,7 @@ class CompanyApi {
|
|
|
524
524
|
const _response = yield core.fetcher({
|
|
525
525
|
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)), `companies/${encodeURIComponent(companyId)}/managers/${encodeURIComponent(userId)}`),
|
|
526
526
|
method: "DELETE",
|
|
527
|
-
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-
|
|
527
|
+
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-prerelease2997-dev-anthony", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2997-dev-anthony", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
528
528
|
contentType: "application/json",
|
|
529
529
|
requestType: "json",
|
|
530
530
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -581,7 +581,7 @@ class CompanyApi {
|
|
|
581
581
|
const _response = yield core.fetcher({
|
|
582
582
|
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)), `companies/${encodeURIComponent(companyId)}/contracts/${encodeURIComponent(contractId)}/team`),
|
|
583
583
|
method: "POST",
|
|
584
|
-
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-
|
|
584
|
+
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-prerelease2997-dev-anthony", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2997-dev-anthony", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
585
585
|
contentType: "application/json",
|
|
586
586
|
requestType: "json",
|
|
587
587
|
body: serializers.api.thera.company.ChangeContractTeamRequest.jsonOrThrow(request, {
|
|
@@ -636,7 +636,7 @@ class CompanyApi {
|
|
|
636
636
|
const _response = yield core.fetcher({
|
|
637
637
|
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)), `companies/${encodeURIComponent(companyId)}/teams`),
|
|
638
638
|
method: "GET",
|
|
639
|
-
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-
|
|
639
|
+
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-prerelease2997-dev-anthony", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2997-dev-anthony", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
640
640
|
contentType: "application/json",
|
|
641
641
|
requestType: "json",
|
|
642
642
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -688,7 +688,7 @@ class CompanyApi {
|
|
|
688
688
|
const _response = yield core.fetcher({
|
|
689
689
|
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)), `companies/${encodeURIComponent(companyId)}/managers`),
|
|
690
690
|
method: "GET",
|
|
691
|
-
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-
|
|
691
|
+
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-prerelease2997-dev-anthony", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2997-dev-anthony", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
692
692
|
contentType: "application/json",
|
|
693
693
|
requestType: "json",
|
|
694
694
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -752,7 +752,7 @@ class CompanyApi {
|
|
|
752
752
|
const _response = yield core.fetcher({
|
|
753
753
|
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)), `companies/${encodeURIComponent(companyId)}/teams`),
|
|
754
754
|
method: "POST",
|
|
755
|
-
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-
|
|
755
|
+
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-prerelease2997-dev-anthony", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2997-dev-anthony", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
756
756
|
contentType: "application/json",
|
|
757
757
|
requestType: "json",
|
|
758
758
|
body: serializers.api.thera.company.CreateTeamRequest.jsonOrThrow(request, {
|
|
@@ -808,7 +808,7 @@ class CompanyApi {
|
|
|
808
808
|
const _response = yield core.fetcher({
|
|
809
809
|
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)), `companies/${encodeURIComponent(companyId)}/teams/${encodeURIComponent(teamId)}`),
|
|
810
810
|
method: "DELETE",
|
|
811
|
-
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-
|
|
811
|
+
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-prerelease2997-dev-anthony", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2997-dev-anthony", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
812
812
|
contentType: "application/json",
|
|
813
813
|
requestType: "json",
|
|
814
814
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -864,7 +864,7 @@ class CompanyApi {
|
|
|
864
864
|
const _response = yield core.fetcher({
|
|
865
865
|
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)), `companies/${encodeURIComponent(companyId)}/teams/${encodeURIComponent(teamId)}`),
|
|
866
866
|
method: "PATCH",
|
|
867
|
-
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-
|
|
867
|
+
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-prerelease2997-dev-anthony", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2997-dev-anthony", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
868
868
|
contentType: "application/json",
|
|
869
869
|
requestType: "json",
|
|
870
870
|
body: serializers.api.thera.company.EditTeamRequest.jsonOrThrow(request, {
|
|
@@ -919,7 +919,7 @@ class CompanyApi {
|
|
|
919
919
|
const _response = yield core.fetcher({
|
|
920
920
|
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)), `users/${encodeURIComponent(userId)}/affiliations`),
|
|
921
921
|
method: "GET",
|
|
922
|
-
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-
|
|
922
|
+
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-prerelease2997-dev-anthony", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2997-dev-anthony", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
923
923
|
contentType: "application/json",
|
|
924
924
|
requestType: "json",
|
|
925
925
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -976,7 +976,7 @@ class CompanyApi {
|
|
|
976
976
|
const _response = yield core.fetcher({
|
|
977
977
|
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)), "check-can-create-account"),
|
|
978
978
|
method: "GET",
|
|
979
|
-
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-
|
|
979
|
+
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-prerelease2997-dev-anthony", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2997-dev-anthony", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
980
980
|
contentType: "application/json",
|
|
981
981
|
queryParameters: _queryParams,
|
|
982
982
|
requestType: "json",
|
|
@@ -1035,7 +1035,7 @@ class CompanyApi {
|
|
|
1035
1035
|
const _response = yield core.fetcher({
|
|
1036
1036
|
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)), `companies/${encodeURIComponent(companyId)}/eor`),
|
|
1037
1037
|
method: "POST",
|
|
1038
|
-
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-
|
|
1038
|
+
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-prerelease2997-dev-anthony", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2997-dev-anthony", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1039
1039
|
contentType: "application/json",
|
|
1040
1040
|
requestType: "json",
|
|
1041
1041
|
body: serializers.api.thera.company.AddEorEmployeeRequest.jsonOrThrow(request, {
|
|
@@ -1098,7 +1098,7 @@ class CompanyApi {
|
|
|
1098
1098
|
const _response = yield core.fetcher({
|
|
1099
1099
|
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)), `companies/${encodeURIComponent(companyId)}/contractors/csv`),
|
|
1100
1100
|
method: "GET",
|
|
1101
|
-
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-
|
|
1101
|
+
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-prerelease2997-dev-anthony", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2997-dev-anthony", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1102
1102
|
contentType: "application/json",
|
|
1103
1103
|
queryParameters: _queryParams,
|
|
1104
1104
|
requestType: "json",
|
|
@@ -1167,7 +1167,7 @@ class CompanyApi {
|
|
|
1167
1167
|
const _response = yield core.fetcher({
|
|
1168
1168
|
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)), `companies/${encodeURIComponent(companyId)}/contracts/csv`),
|
|
1169
1169
|
method: "GET",
|
|
1170
|
-
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-
|
|
1170
|
+
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-prerelease2997-dev-anthony", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2997-dev-anthony", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1171
1171
|
contentType: "application/json",
|
|
1172
1172
|
queryParameters: _queryParams,
|
|
1173
1173
|
requestType: "json",
|
|
@@ -79,7 +79,7 @@ class CompanyW2PayrollApi {
|
|
|
79
79
|
const _response = yield core.fetcher({
|
|
80
80
|
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)), "company/w2Payroll"),
|
|
81
81
|
method: "POST",
|
|
82
|
-
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-
|
|
82
|
+
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-prerelease2997-dev-anthony", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2997-dev-anthony", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
83
83
|
contentType: "application/json",
|
|
84
84
|
requestType: "json",
|
|
85
85
|
body: serializers.api.thera.company.OnboardW2PayrollRequest.jsonOrThrow(request, {
|
|
@@ -138,7 +138,7 @@ class CompanyW2PayrollApi {
|
|
|
138
138
|
const _response = yield core.fetcher({
|
|
139
139
|
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)), `companies/${encodeURIComponent(companyId)}/w2/toggle-onboarding-flow-complete`),
|
|
140
140
|
method: "POST",
|
|
141
|
-
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-
|
|
141
|
+
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-prerelease2997-dev-anthony", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2997-dev-anthony", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
142
142
|
contentType: "application/json",
|
|
143
143
|
requestType: "json",
|
|
144
144
|
body: serializers.api.thera.company.ToggleW2PayrollOnboardingFlowCompleteRequest.jsonOrThrow(request, {
|
|
@@ -203,7 +203,7 @@ class CompanyW2PayrollApi {
|
|
|
203
203
|
const _response = yield core.fetcher({
|
|
204
204
|
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)), `companies/${encodeURIComponent(companyId)}/w2/payroll/setup`),
|
|
205
205
|
method: "POST",
|
|
206
|
-
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-
|
|
206
|
+
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-prerelease2997-dev-anthony", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2997-dev-anthony", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
207
207
|
contentType: "application/json",
|
|
208
208
|
requestType: "json",
|
|
209
209
|
body: serializers.api.thera.company.SetupW2PayrollRequest.jsonOrThrow(request, {
|
|
@@ -87,7 +87,7 @@ class ContractorApi {
|
|
|
87
87
|
const _response = yield core.fetcher({
|
|
88
88
|
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)), `companies/${encodeURIComponent(companyId)}/us-contractors/tax-info`),
|
|
89
89
|
method: "GET",
|
|
90
|
-
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-
|
|
90
|
+
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-prerelease2997-dev-anthony", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2997-dev-anthony", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
91
91
|
contentType: "application/json",
|
|
92
92
|
queryParameters: _queryParams,
|
|
93
93
|
requestType: "json",
|
|
@@ -143,7 +143,7 @@ class ContractorApi {
|
|
|
143
143
|
const _response = yield core.fetcher({
|
|
144
144
|
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)), `companies/${encodeURIComponent(companyId)}/us-contractors/${encodeURIComponent(userId)}/tax-info`),
|
|
145
145
|
method: "PUT",
|
|
146
|
-
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-
|
|
146
|
+
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-prerelease2997-dev-anthony", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2997-dev-anthony", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
147
147
|
contentType: "application/json",
|
|
148
148
|
requestType: "json",
|
|
149
149
|
body: serializers.api.thera.contractor.UpdateUsContractorsTaxInfoRequest.jsonOrThrow(request, {
|
|
@@ -237,7 +237,7 @@ class ContractorApi {
|
|
|
237
237
|
const _response = yield core.fetcher({
|
|
238
238
|
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)), `companies/${encodeURIComponent(companyId)}/contractors/csv`),
|
|
239
239
|
method: "POST",
|
|
240
|
-
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-
|
|
240
|
+
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-prerelease2997-dev-anthony", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2997-dev-anthony", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
241
241
|
contentType: "application/json",
|
|
242
242
|
queryParameters: _queryParams,
|
|
243
243
|
requestType: "json",
|