@thera-hr/api-sdk 0.0.1-prerelease3577-dev-3 → 0.0.1-prerelease3577-dev
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.js +24 -24
- 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.d.ts +0 -37
- package/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +11 -186
- package/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/requests/index.d.ts +0 -1
- package/api/resources/api/resources/thera/resources/tp/resources/tpApi/types/index.d.ts +0 -3
- package/api/resources/api/resources/thera/resources/tp/resources/tpApi/types/index.js +0 -3
- package/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
- package/api/resources/db/resources/company/types/Company.d.ts +1 -0
- package/api/resources/db/resources/company/types/StripeAccountInfo.d.ts +7 -0
- package/api/resources/db/resources/company/types/StripeMultipleAccountCustomerInfo.d.ts +9 -0
- package/api/resources/db/resources/company/types/index.d.ts +2 -0
- package/api/resources/db/resources/company/types/index.js +2 -0
- package/api/resources/db/resources/paymentMethod/types/CompanyPaymentMethod.d.ts +1 -0
- package/api/resources/db/resources/paymentMethod/types/PlaidPostVerificationPaymentMethodDetails.d.ts +2 -0
- package/api/resources/db/resources/paymentMethod/types/StripeAccountType.d.ts +9 -0
- package/api/resources/db/resources/paymentMethod/types/StripeAccountType.js +11 -0
- 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 +37 -37
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.js +24 -24
- 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.d.ts +0 -37
- package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +11 -186
- package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/requests/index.d.ts +0 -1
- package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/types/index.d.ts +0 -3
- package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/types/index.js +0 -3
- package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
- package/dist/api/resources/db/resources/company/types/Company.d.ts +1 -0
- package/dist/api/resources/db/resources/company/types/StripeAccountInfo.d.ts +7 -0
- package/dist/api/resources/db/resources/company/types/StripeMultipleAccountCustomerInfo.d.ts +9 -0
- package/dist/api/resources/db/resources/company/types/index.d.ts +2 -0
- package/dist/api/resources/db/resources/company/types/index.js +2 -0
- package/dist/api/resources/db/resources/paymentMethod/types/CompanyPaymentMethod.d.ts +1 -0
- package/dist/api/resources/db/resources/paymentMethod/types/PlaidPostVerificationPaymentMethodDetails.d.ts +2 -0
- package/dist/api/resources/db/resources/paymentMethod/types/StripeAccountType.d.ts +9 -0
- package/dist/api/resources/db/resources/paymentMethod/types/StripeAccountType.js +11 -0
- 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/tp/resources/tpApi/types/index.d.ts +0 -3
- package/dist/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/index.js +0 -3
- package/dist/serialization/resources/db/resources/company/types/Company.d.ts +2 -0
- package/dist/serialization/resources/db/resources/company/types/Company.js +2 -0
- package/dist/serialization/resources/db/resources/company/types/StripeAccountInfo.d.ts +13 -0
- package/{serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/AchTransferListResponse.js → dist/serialization/resources/db/resources/company/types/StripeAccountInfo.js} +5 -7
- package/dist/serialization/resources/db/resources/company/types/StripeMultipleAccountCustomerInfo.d.ts +15 -0
- package/dist/serialization/resources/{api/resources/thera/resources/tp/resources/tpApi/types/AchTransferListResponse.js → db/resources/company/types/StripeMultipleAccountCustomerInfo.js} +7 -7
- package/dist/serialization/resources/db/resources/company/types/index.d.ts +2 -0
- package/dist/serialization/resources/db/resources/company/types/index.js +2 -0
- package/dist/serialization/resources/db/resources/paymentMethod/types/CompanyPaymentMethod.d.ts +1 -0
- package/dist/serialization/resources/db/resources/paymentMethod/types/CompanyPaymentMethod.js +1 -0
- package/dist/serialization/resources/db/resources/paymentMethod/types/PlaidPostVerificationPaymentMethodDetails.d.ts +2 -0
- package/dist/serialization/resources/db/resources/paymentMethod/types/PlaidPostVerificationPaymentMethodDetails.js +2 -0
- package/dist/serialization/resources/db/resources/paymentMethod/types/StripeAccountType.d.ts +10 -0
- package/dist/serialization/resources/db/resources/paymentMethod/types/StripeAccountType.js +41 -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 -217
- package/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/index.d.ts +0 -3
- package/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/index.js +0 -3
- package/serialization/resources/db/resources/company/types/Company.d.ts +2 -0
- package/serialization/resources/db/resources/company/types/Company.js +2 -0
- package/serialization/resources/db/resources/company/types/StripeAccountInfo.d.ts +13 -0
- package/serialization/resources/{api/resources/thera/resources/tp/resources/tpApi/types/AchTransferSummary.js → db/resources/company/types/StripeAccountInfo.js} +5 -12
- package/serialization/resources/db/resources/company/types/StripeMultipleAccountCustomerInfo.d.ts +15 -0
- package/{dist/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/AchTransferSummary.js → serialization/resources/db/resources/company/types/StripeMultipleAccountCustomerInfo.js} +7 -12
- package/serialization/resources/db/resources/company/types/index.d.ts +2 -0
- package/serialization/resources/db/resources/company/types/index.js +2 -0
- package/serialization/resources/db/resources/paymentMethod/types/CompanyPaymentMethod.d.ts +1 -0
- package/serialization/resources/db/resources/paymentMethod/types/CompanyPaymentMethod.js +1 -0
- package/serialization/resources/db/resources/paymentMethod/types/PlaidPostVerificationPaymentMethodDetails.d.ts +2 -0
- package/serialization/resources/db/resources/paymentMethod/types/PlaidPostVerificationPaymentMethodDetails.js +2 -0
- package/serialization/resources/db/resources/paymentMethod/types/StripeAccountType.d.ts +10 -0
- package/serialization/resources/db/resources/paymentMethod/types/StripeAccountType.js +41 -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/tp/resources/tpApi/client/requests/ListAchTransfersRequest.d.ts +0 -16
- package/api/resources/api/resources/thera/resources/tp/resources/tpApi/types/AchTransferDetail.d.ts +0 -22
- package/api/resources/api/resources/thera/resources/tp/resources/tpApi/types/AchTransferListResponse.d.ts +0 -9
- package/api/resources/api/resources/thera/resources/tp/resources/tpApi/types/AchTransferSummary.d.ts +0 -14
- package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/requests/ListAchTransfersRequest.d.ts +0 -16
- package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/requests/ListAchTransfersRequest.js +0 -5
- package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/types/AchTransferDetail.d.ts +0 -22
- package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/types/AchTransferDetail.js +0 -5
- package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/types/AchTransferListResponse.d.ts +0 -9
- package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/types/AchTransferListResponse.js +0 -5
- package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/types/AchTransferSummary.d.ts +0 -14
- package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/types/AchTransferSummary.js +0 -5
- package/dist/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/AchTransferDetail.d.ts +0 -28
- package/dist/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/AchTransferDetail.js +0 -59
- package/dist/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/AchTransferListResponse.d.ts +0 -15
- package/dist/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/AchTransferSummary.d.ts +0 -20
- package/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/AchTransferDetail.d.ts +0 -28
- package/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/AchTransferDetail.js +0 -59
- package/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/AchTransferListResponse.d.ts +0 -15
- package/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/AchTransferSummary.d.ts +0 -20
- /package/api/resources/{api/resources/thera/resources/tp/resources/tpApi/client/requests/ListAchTransfersRequest.js → db/resources/company/types/StripeAccountInfo.js} +0 -0
- /package/api/resources/{api/resources/thera/resources/tp/resources/tpApi/types/AchTransferDetail.js → db/resources/company/types/StripeMultipleAccountCustomerInfo.js} +0 -0
- /package/{api/resources/api/resources/thera/resources/tp/resources/tpApi/types/AchTransferListResponse.js → dist/api/resources/db/resources/company/types/StripeAccountInfo.js} +0 -0
- /package/{api/resources/api/resources/thera/resources/tp/resources/tpApi/types/AchTransferSummary.js → dist/api/resources/db/resources/company/types/StripeMultipleAccountCustomerInfo.js} +0 -0
package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js
CHANGED
|
@@ -127,7 +127,7 @@ class TpApi {
|
|
|
127
127
|
const _response = yield core.fetcher({
|
|
128
128
|
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)}/banking-details`),
|
|
129
129
|
method: "POST",
|
|
130
|
-
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-prerelease3577-dev
|
|
130
|
+
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-prerelease3577-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3577-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
131
131
|
contentType: "application/json",
|
|
132
132
|
requestType: "json",
|
|
133
133
|
body: serializers.api.thera.tp.AddCompanyBankingDetailsRequest.jsonOrThrow(request, {
|
|
@@ -181,7 +181,7 @@ class TpApi {
|
|
|
181
181
|
const _response = yield core.fetcher({
|
|
182
182
|
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)), "naics-codes"),
|
|
183
183
|
method: "GET",
|
|
184
|
-
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-prerelease3577-dev
|
|
184
|
+
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-prerelease3577-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3577-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
185
185
|
contentType: "application/json",
|
|
186
186
|
requestType: "json",
|
|
187
187
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -243,7 +243,7 @@ class TpApi {
|
|
|
243
243
|
const _response = yield core.fetcher({
|
|
244
244
|
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)}/process-funds`),
|
|
245
245
|
method: "POST",
|
|
246
|
-
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-prerelease3577-dev
|
|
246
|
+
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-prerelease3577-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3577-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
247
247
|
contentType: "application/json",
|
|
248
248
|
requestType: "json",
|
|
249
249
|
body: serializers.api.thera.tp.ProcessFundsTransfer.jsonOrThrow(request, {
|
|
@@ -295,7 +295,7 @@ class TpApi {
|
|
|
295
295
|
const _response = yield core.fetcher({
|
|
296
296
|
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)}/create-counterparty`),
|
|
297
297
|
method: "POST",
|
|
298
|
-
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-prerelease3577-dev
|
|
298
|
+
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-prerelease3577-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3577-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
299
299
|
contentType: "application/json",
|
|
300
300
|
requestType: "json",
|
|
301
301
|
body: serializers.api.thera.tp.CreateCounterPartyForBankingRequest.jsonOrThrow(request, {
|
|
@@ -344,7 +344,7 @@ class TpApi {
|
|
|
344
344
|
const _response = yield core.fetcher({
|
|
345
345
|
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)}/fetch-accounts`),
|
|
346
346
|
method: "GET",
|
|
347
|
-
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-prerelease3577-dev
|
|
347
|
+
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-prerelease3577-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3577-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
348
348
|
contentType: "application/json",
|
|
349
349
|
requestType: "json",
|
|
350
350
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -399,7 +399,7 @@ class TpApi {
|
|
|
399
399
|
const _response = yield core.fetcher({
|
|
400
400
|
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)}/fetch-accounts/${encodeURIComponent(accountId)}`),
|
|
401
401
|
method: "GET",
|
|
402
|
-
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-prerelease3577-dev
|
|
402
|
+
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-prerelease3577-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3577-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
403
403
|
contentType: "application/json",
|
|
404
404
|
queryParameters: _queryParams,
|
|
405
405
|
requestType: "json",
|
|
@@ -450,7 +450,7 @@ class TpApi {
|
|
|
450
450
|
const _response = yield core.fetcher({
|
|
451
451
|
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)}/transfer-fbo-omnibus`),
|
|
452
452
|
method: "POST",
|
|
453
|
-
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-prerelease3577-dev
|
|
453
|
+
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-prerelease3577-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3577-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
454
454
|
contentType: "application/json",
|
|
455
455
|
requestType: "json",
|
|
456
456
|
body: serializers.api.thera.tp.TransferFundsToOmnibusAccount.jsonOrThrow(request, {
|
|
@@ -500,7 +500,7 @@ class TpApi {
|
|
|
500
500
|
const _response = yield core.fetcher({
|
|
501
501
|
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)}/fetch-transactions/${encodeURIComponent(accountId)}`),
|
|
502
502
|
method: "GET",
|
|
503
|
-
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-prerelease3577-dev
|
|
503
|
+
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-prerelease3577-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3577-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
504
504
|
contentType: "application/json",
|
|
505
505
|
requestType: "json",
|
|
506
506
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -553,7 +553,7 @@ class TpApi {
|
|
|
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)), `companies/${encodeURIComponent(companyId)}/tp-transaction/${encodeURIComponent(transactionId)}`),
|
|
555
555
|
method: "GET",
|
|
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-prerelease3577-dev
|
|
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-prerelease3577-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3577-dev", "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
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -617,7 +617,7 @@ class TpApi {
|
|
|
617
617
|
const _response = yield core.fetcher({
|
|
618
618
|
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)), "webhook/tp/external-transfer-funds"),
|
|
619
619
|
method: "POST",
|
|
620
|
-
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-prerelease3577-dev
|
|
620
|
+
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-prerelease3577-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3577-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
621
621
|
contentType: "application/json",
|
|
622
622
|
queryParameters: _queryParams,
|
|
623
623
|
requestType: "json",
|
|
@@ -695,7 +695,7 @@ class TpApi {
|
|
|
695
695
|
const _response = yield core.fetcher({
|
|
696
696
|
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)}/withdraw-funds`),
|
|
697
697
|
method: "POST",
|
|
698
|
-
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-prerelease3577-dev
|
|
698
|
+
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-prerelease3577-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3577-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
699
699
|
contentType: "application/json",
|
|
700
700
|
requestType: "json",
|
|
701
701
|
body: serializers.api.thera.tp.WithdrawalTheraCash.jsonOrThrow(request, {
|
|
@@ -729,181 +729,6 @@ class TpApi {
|
|
|
729
729
|
}
|
|
730
730
|
});
|
|
731
731
|
}
|
|
732
|
-
/**
|
|
733
|
-
* Get a list of ACH transfers for a company with optional filtering. Use status parameter to filter by specific status (e.g., 'error', 'canceled', 'returned' for failed transfers)
|
|
734
|
-
*
|
|
735
|
-
* @param {string} companyId
|
|
736
|
-
* @param {TheraApi.api.thera.tp.ListAchTransfersRequest} request
|
|
737
|
-
* @param {TpApi.RequestOptions} requestOptions - Request-specific configuration.
|
|
738
|
-
*
|
|
739
|
-
* @example
|
|
740
|
-
* await client.api.thera.tp.tpApi.listAchTransfers("string", {
|
|
741
|
-
* status: "string",
|
|
742
|
-
* fromDate: "string",
|
|
743
|
-
* toDate: "string"
|
|
744
|
-
* })
|
|
745
|
-
*/
|
|
746
|
-
listAchTransfers(companyId_1) {
|
|
747
|
-
return __awaiter(this, arguments, void 0, function* (companyId, request = {}, requestOptions) {
|
|
748
|
-
var _a;
|
|
749
|
-
const { status, fromDate, toDate } = request;
|
|
750
|
-
const _queryParams = {};
|
|
751
|
-
if (status != null) {
|
|
752
|
-
_queryParams["status"] = status;
|
|
753
|
-
}
|
|
754
|
-
if (fromDate != null) {
|
|
755
|
-
_queryParams["fromDate"] = fromDate;
|
|
756
|
-
}
|
|
757
|
-
if (toDate != null) {
|
|
758
|
-
_queryParams["toDate"] = toDate;
|
|
759
|
-
}
|
|
760
|
-
const _response = yield core.fetcher({
|
|
761
|
-
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)}/ach-transfers`),
|
|
762
|
-
method: "GET",
|
|
763
|
-
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-prerelease3577-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3577-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
764
|
-
contentType: "application/json",
|
|
765
|
-
queryParameters: _queryParams,
|
|
766
|
-
requestType: "json",
|
|
767
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
768
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
769
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
770
|
-
});
|
|
771
|
-
if (_response.ok) {
|
|
772
|
-
return serializers.api.thera.tp.AchTransferListResponse.parseOrThrow(_response.body, {
|
|
773
|
-
unrecognizedObjectKeys: "passthrough",
|
|
774
|
-
allowUnrecognizedUnionMembers: true,
|
|
775
|
-
allowUnrecognizedEnumValues: true,
|
|
776
|
-
skipValidation: true,
|
|
777
|
-
breadcrumbsPrefix: ["response"],
|
|
778
|
-
});
|
|
779
|
-
}
|
|
780
|
-
if (_response.error.reason === "status-code") {
|
|
781
|
-
throw new errors.TheraApiError({
|
|
782
|
-
statusCode: _response.error.statusCode,
|
|
783
|
-
body: _response.error.body,
|
|
784
|
-
});
|
|
785
|
-
}
|
|
786
|
-
switch (_response.error.reason) {
|
|
787
|
-
case "non-json":
|
|
788
|
-
throw new errors.TheraApiError({
|
|
789
|
-
statusCode: _response.error.statusCode,
|
|
790
|
-
body: _response.error.rawBody,
|
|
791
|
-
});
|
|
792
|
-
case "timeout":
|
|
793
|
-
throw new errors.TheraApiTimeoutError("Timeout exceeded when calling GET /companies/{companyId}/ach-transfers.");
|
|
794
|
-
case "unknown":
|
|
795
|
-
throw new errors.TheraApiError({
|
|
796
|
-
message: _response.error.errorMessage,
|
|
797
|
-
});
|
|
798
|
-
}
|
|
799
|
-
});
|
|
800
|
-
}
|
|
801
|
-
/**
|
|
802
|
-
* Retrieve detailed information about a specific ACH transfer
|
|
803
|
-
*
|
|
804
|
-
* @param {string} companyId
|
|
805
|
-
* @param {string} achId
|
|
806
|
-
* @param {TpApi.RequestOptions} requestOptions - Request-specific configuration.
|
|
807
|
-
*
|
|
808
|
-
* @example
|
|
809
|
-
* await client.api.thera.tp.tpApi.getAchTransferDetails("string", "string")
|
|
810
|
-
*/
|
|
811
|
-
getAchTransferDetails(companyId, achId, requestOptions) {
|
|
812
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
813
|
-
var _a;
|
|
814
|
-
const _response = yield core.fetcher({
|
|
815
|
-
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)}/ach-transfers/${encodeURIComponent(achId)}`),
|
|
816
|
-
method: "GET",
|
|
817
|
-
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-prerelease3577-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3577-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
818
|
-
contentType: "application/json",
|
|
819
|
-
requestType: "json",
|
|
820
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
821
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
822
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
823
|
-
});
|
|
824
|
-
if (_response.ok) {
|
|
825
|
-
return serializers.api.thera.tp.AchTransferDetail.parseOrThrow(_response.body, {
|
|
826
|
-
unrecognizedObjectKeys: "passthrough",
|
|
827
|
-
allowUnrecognizedUnionMembers: true,
|
|
828
|
-
allowUnrecognizedEnumValues: true,
|
|
829
|
-
skipValidation: true,
|
|
830
|
-
breadcrumbsPrefix: ["response"],
|
|
831
|
-
});
|
|
832
|
-
}
|
|
833
|
-
if (_response.error.reason === "status-code") {
|
|
834
|
-
throw new errors.TheraApiError({
|
|
835
|
-
statusCode: _response.error.statusCode,
|
|
836
|
-
body: _response.error.body,
|
|
837
|
-
});
|
|
838
|
-
}
|
|
839
|
-
switch (_response.error.reason) {
|
|
840
|
-
case "non-json":
|
|
841
|
-
throw new errors.TheraApiError({
|
|
842
|
-
statusCode: _response.error.statusCode,
|
|
843
|
-
body: _response.error.rawBody,
|
|
844
|
-
});
|
|
845
|
-
case "timeout":
|
|
846
|
-
throw new errors.TheraApiTimeoutError("Timeout exceeded when calling GET /companies/{companyId}/ach-transfers/{achId}.");
|
|
847
|
-
case "unknown":
|
|
848
|
-
throw new errors.TheraApiError({
|
|
849
|
-
message: _response.error.errorMessage,
|
|
850
|
-
});
|
|
851
|
-
}
|
|
852
|
-
});
|
|
853
|
-
}
|
|
854
|
-
/**
|
|
855
|
-
* Creates a new ACH transfer with the same parameters as a failed one
|
|
856
|
-
*
|
|
857
|
-
* @param {string} companyId
|
|
858
|
-
* @param {string} achId
|
|
859
|
-
* @param {TpApi.RequestOptions} requestOptions - Request-specific configuration.
|
|
860
|
-
*
|
|
861
|
-
* @example
|
|
862
|
-
* await client.api.thera.tp.tpApi.retryAchTransfer("string", "string")
|
|
863
|
-
*/
|
|
864
|
-
retryAchTransfer(companyId, achId, requestOptions) {
|
|
865
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
866
|
-
var _a;
|
|
867
|
-
const _response = yield core.fetcher({
|
|
868
|
-
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)}/ach-transfers/${encodeURIComponent(achId)}/retry`),
|
|
869
|
-
method: "POST",
|
|
870
|
-
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-prerelease3577-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3577-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
871
|
-
contentType: "application/json",
|
|
872
|
-
requestType: "json",
|
|
873
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
874
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
875
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
876
|
-
});
|
|
877
|
-
if (_response.ok) {
|
|
878
|
-
return serializers.api.thera.tp.AchTransferDetail.parseOrThrow(_response.body, {
|
|
879
|
-
unrecognizedObjectKeys: "passthrough",
|
|
880
|
-
allowUnrecognizedUnionMembers: true,
|
|
881
|
-
allowUnrecognizedEnumValues: true,
|
|
882
|
-
skipValidation: true,
|
|
883
|
-
breadcrumbsPrefix: ["response"],
|
|
884
|
-
});
|
|
885
|
-
}
|
|
886
|
-
if (_response.error.reason === "status-code") {
|
|
887
|
-
throw new errors.TheraApiError({
|
|
888
|
-
statusCode: _response.error.statusCode,
|
|
889
|
-
body: _response.error.body,
|
|
890
|
-
});
|
|
891
|
-
}
|
|
892
|
-
switch (_response.error.reason) {
|
|
893
|
-
case "non-json":
|
|
894
|
-
throw new errors.TheraApiError({
|
|
895
|
-
statusCode: _response.error.statusCode,
|
|
896
|
-
body: _response.error.rawBody,
|
|
897
|
-
});
|
|
898
|
-
case "timeout":
|
|
899
|
-
throw new errors.TheraApiTimeoutError("Timeout exceeded when calling POST /companies/{companyId}/ach-transfers/{achId}/retry.");
|
|
900
|
-
case "unknown":
|
|
901
|
-
throw new errors.TheraApiError({
|
|
902
|
-
message: _response.error.errorMessage,
|
|
903
|
-
});
|
|
904
|
-
}
|
|
905
|
-
});
|
|
906
|
-
}
|
|
907
732
|
_getAuthorizationHeader() {
|
|
908
733
|
return __awaiter(this, void 0, void 0, function* () {
|
|
909
734
|
const bearer = yield core.Supplier.get(this._options.token);
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
export { type AddCompanyBankingDetailsRequest } from "./AddCompanyBankingDetailsRequest";
|
|
2
2
|
export { type TpAccountRequest } from "./TpAccountRequest";
|
|
3
3
|
export { type ExternalTransferFundRequest } from "./ExternalTransferFundRequest";
|
|
4
|
-
export { type ListAchTransfersRequest } from "./ListAchTransfersRequest";
|
package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/types/index.d.ts
CHANGED
|
@@ -3,9 +3,6 @@ export * from "./GetIndustryCodesResponse";
|
|
|
3
3
|
export * from "./IndustryCodes";
|
|
4
4
|
export * from "./SubmitCompanyBeneficiariesResponse";
|
|
5
5
|
export * from "./ProcessFundsTransfer";
|
|
6
|
-
export * from "./AchTransferListResponse";
|
|
7
|
-
export * from "./AchTransferSummary";
|
|
8
|
-
export * from "./AchTransferDetail";
|
|
9
6
|
export * from "./WithdrawalTheraCash";
|
|
10
7
|
export * from "./WithdrawalAch";
|
|
11
8
|
export * from "./WithdrawalWire";
|
|
@@ -19,9 +19,6 @@ __exportStar(require("./GetIndustryCodesResponse"), exports);
|
|
|
19
19
|
__exportStar(require("./IndustryCodes"), exports);
|
|
20
20
|
__exportStar(require("./SubmitCompanyBeneficiariesResponse"), exports);
|
|
21
21
|
__exportStar(require("./ProcessFundsTransfer"), exports);
|
|
22
|
-
__exportStar(require("./AchTransferListResponse"), exports);
|
|
23
|
-
__exportStar(require("./AchTransferSummary"), exports);
|
|
24
|
-
__exportStar(require("./AchTransferDetail"), exports);
|
|
25
22
|
__exportStar(require("./WithdrawalTheraCash"), exports);
|
|
26
23
|
__exportStar(require("./WithdrawalAch"), exports);
|
|
27
24
|
__exportStar(require("./WithdrawalWire"), exports);
|
package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js
CHANGED
|
@@ -78,7 +78,7 @@ class UserApi {
|
|
|
78
78
|
const _response = yield core.fetcher({
|
|
79
79
|
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/${encodeURIComponent(companyId)}/user/${encodeURIComponent(userId)}`),
|
|
80
80
|
method: "POST",
|
|
81
|
-
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-prerelease3577-dev
|
|
81
|
+
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-prerelease3577-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3577-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
82
82
|
contentType: "application/json",
|
|
83
83
|
requestType: "json",
|
|
84
84
|
body: serializers.api.thera.user.SetUserComplianceSettingsRequest.jsonOrThrow(request, {
|
|
@@ -139,7 +139,7 @@ class UserApi {
|
|
|
139
139
|
const _response = yield core.fetcher({
|
|
140
140
|
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/${encodeURIComponent(companyId)}/user`),
|
|
141
141
|
method: "GET",
|
|
142
|
-
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-prerelease3577-dev
|
|
142
|
+
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-prerelease3577-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3577-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
143
143
|
contentType: "application/json",
|
|
144
144
|
queryParameters: _queryParams,
|
|
145
145
|
requestType: "json",
|
|
@@ -197,7 +197,7 @@ class UserApi {
|
|
|
197
197
|
const _response = yield core.fetcher({
|
|
198
198
|
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)), "user"),
|
|
199
199
|
method: "GET",
|
|
200
|
-
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-prerelease3577-dev
|
|
200
|
+
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-prerelease3577-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3577-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
201
201
|
contentType: "application/json",
|
|
202
202
|
queryParameters: _queryParams,
|
|
203
203
|
requestType: "json",
|
|
@@ -36,6 +36,7 @@ export interface Company {
|
|
|
36
36
|
ledgerAccountIdsByCurrency: Record<string, string>;
|
|
37
37
|
v2LedgerAccountIdsByCurrency: Record<string, string>;
|
|
38
38
|
teamsById: Record<string, TheraApi.db.Team>;
|
|
39
|
+
stripeMultipleAccountInfo?: TheraApi.db.StripeMultipleAccountCustomerInfo;
|
|
39
40
|
/** URLs for the business website(s). At least one is required for banking companies. */
|
|
40
41
|
urls: string[];
|
|
41
42
|
companyDescription?: string;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as TheraApi from "../../../../../index";
|
|
5
|
+
export interface StripeMultipleAccountCustomerInfo {
|
|
6
|
+
mainAccount: TheraApi.db.StripeAccountInfo;
|
|
7
|
+
revenueAccount: TheraApi.db.StripeAccountInfo;
|
|
8
|
+
eorAccount: TheraApi.db.StripeAccountInfo;
|
|
9
|
+
}
|
|
@@ -53,3 +53,5 @@ export * from "./HolidayDate";
|
|
|
53
53
|
export * from "./UserHolidaysResponse";
|
|
54
54
|
export * from "./AssociateUsersToHolidayPolicyResponse";
|
|
55
55
|
export * from "./DeleteCustomHolidayResponse";
|
|
56
|
+
export * from "./StripeMultipleAccountCustomerInfo";
|
|
57
|
+
export * from "./StripeAccountInfo";
|
|
@@ -69,3 +69,5 @@ __exportStar(require("./HolidayDate"), exports);
|
|
|
69
69
|
__exportStar(require("./UserHolidaysResponse"), exports);
|
|
70
70
|
__exportStar(require("./AssociateUsersToHolidayPolicyResponse"), exports);
|
|
71
71
|
__exportStar(require("./DeleteCustomHolidayResponse"), exports);
|
|
72
|
+
__exportStar(require("./StripeMultipleAccountCustomerInfo"), exports);
|
|
73
|
+
__exportStar(require("./StripeAccountInfo"), exports);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
import * as TheraApi from "../../../../../index";
|
|
4
5
|
export interface PlaidPostVerificationPaymentMethodDetails {
|
|
5
6
|
stripePaymentMethodId: string;
|
|
6
7
|
/**
|
|
@@ -23,4 +24,5 @@ export interface PlaidPostVerificationPaymentMethodDetails {
|
|
|
23
24
|
checkBankAccountId?: string;
|
|
24
25
|
accountNumber: string;
|
|
25
26
|
routingNumber: string;
|
|
27
|
+
accountType?: TheraApi.db.StripeAccountType;
|
|
26
28
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export type StripeAccountType = "MAIN" | "REVENUE" | "EOR";
|
|
5
|
+
export declare const StripeAccountType: {
|
|
6
|
+
readonly Main: "MAIN";
|
|
7
|
+
readonly Revenue: "REVENUE";
|
|
8
|
+
readonly Eor: "EOR";
|
|
9
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.StripeAccountType = void 0;
|
|
7
|
+
exports.StripeAccountType = {
|
|
8
|
+
Main: "MAIN",
|
|
9
|
+
Revenue: "REVENUE",
|
|
10
|
+
Eor: "EOR",
|
|
11
|
+
};
|
|
@@ -10,3 +10,4 @@ export * from "./StripeUsBankAccountPaymentMethodDetails";
|
|
|
10
10
|
export * from "./StripeAcssDebitAccountPaymentMethodDetails";
|
|
11
11
|
export * from "./StripeBankAccountVerificationStatus";
|
|
12
12
|
export * from "./StripeCardPaymentMethodDetails";
|
|
13
|
+
export * from "./StripeAccountType";
|
|
@@ -26,3 +26,4 @@ __exportStar(require("./StripeUsBankAccountPaymentMethodDetails"), exports);
|
|
|
26
26
|
__exportStar(require("./StripeAcssDebitAccountPaymentMethodDetails"), exports);
|
|
27
27
|
__exportStar(require("./StripeBankAccountVerificationStatus"), exports);
|
|
28
28
|
__exportStar(require("./StripeCardPaymentMethodDetails"), exports);
|
|
29
|
+
__exportStar(require("./StripeAccountType"), exports);
|
|
@@ -3,9 +3,6 @@ export * from "./GetIndustryCodesResponse";
|
|
|
3
3
|
export * from "./IndustryCodes";
|
|
4
4
|
export * from "./SubmitCompanyBeneficiariesResponse";
|
|
5
5
|
export * from "./ProcessFundsTransfer";
|
|
6
|
-
export * from "./AchTransferListResponse";
|
|
7
|
-
export * from "./AchTransferSummary";
|
|
8
|
-
export * from "./AchTransferDetail";
|
|
9
6
|
export * from "./WithdrawalTheraCash";
|
|
10
7
|
export * from "./WithdrawalAch";
|
|
11
8
|
export * from "./WithdrawalWire";
|
package/dist/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/index.js
CHANGED
|
@@ -19,9 +19,6 @@ __exportStar(require("./GetIndustryCodesResponse"), exports);
|
|
|
19
19
|
__exportStar(require("./IndustryCodes"), exports);
|
|
20
20
|
__exportStar(require("./SubmitCompanyBeneficiariesResponse"), exports);
|
|
21
21
|
__exportStar(require("./ProcessFundsTransfer"), exports);
|
|
22
|
-
__exportStar(require("./AchTransferListResponse"), exports);
|
|
23
|
-
__exportStar(require("./AchTransferSummary"), exports);
|
|
24
|
-
__exportStar(require("./AchTransferDetail"), exports);
|
|
25
22
|
__exportStar(require("./WithdrawalTheraCash"), exports);
|
|
26
23
|
__exportStar(require("./WithdrawalAch"), exports);
|
|
27
24
|
__exportStar(require("./WithdrawalWire"), exports);
|
|
@@ -12,6 +12,7 @@ import { Flags } from "./Flags";
|
|
|
12
12
|
import { CompanySettings } from "./CompanySettings";
|
|
13
13
|
import { BankAccountResponseMetadata } from "./BankAccountResponseMetadata";
|
|
14
14
|
import { Team } from "./Team";
|
|
15
|
+
import { StripeMultipleAccountCustomerInfo } from "./StripeMultipleAccountCustomerInfo";
|
|
15
16
|
import { TpCompanyInformation } from "./TpCompanyInformation";
|
|
16
17
|
import { MercoaCompanyDetails } from "./MercoaCompanyDetails";
|
|
17
18
|
import { CompanyAccountingInformation } from "./CompanyAccountingInformation";
|
|
@@ -43,6 +44,7 @@ export declare namespace Company {
|
|
|
43
44
|
ledgerAccountIdsByCurrency: Record<string, string>;
|
|
44
45
|
v2LedgerAccountIdsByCurrency: Record<string, string>;
|
|
45
46
|
teamsById: Record<string, Team.Raw>;
|
|
47
|
+
stripeMultipleAccountInfo?: StripeMultipleAccountCustomerInfo.Raw | null;
|
|
46
48
|
urls: string[];
|
|
47
49
|
companyDescription?: string | null;
|
|
48
50
|
tp?: TpCompanyInformation.Raw | null;
|
|
@@ -46,6 +46,7 @@ const Flags_1 = require("./Flags");
|
|
|
46
46
|
const CompanySettings_1 = require("./CompanySettings");
|
|
47
47
|
const BankAccountResponseMetadata_1 = require("./BankAccountResponseMetadata");
|
|
48
48
|
const Team_1 = require("./Team");
|
|
49
|
+
const StripeMultipleAccountCustomerInfo_1 = require("./StripeMultipleAccountCustomerInfo");
|
|
49
50
|
const TpCompanyInformation_1 = require("./TpCompanyInformation");
|
|
50
51
|
const MercoaCompanyDetails_1 = require("./MercoaCompanyDetails");
|
|
51
52
|
const CompanyAccountingInformation_1 = require("./CompanyAccountingInformation");
|
|
@@ -75,6 +76,7 @@ exports.Company = core.serialization.object({
|
|
|
75
76
|
ledgerAccountIdsByCurrency: core.serialization.record(core.serialization.string(), core.serialization.string()),
|
|
76
77
|
v2LedgerAccountIdsByCurrency: core.serialization.record(core.serialization.string(), core.serialization.string()),
|
|
77
78
|
teamsById: core.serialization.record(core.serialization.string(), Team_1.Team),
|
|
79
|
+
stripeMultipleAccountInfo: StripeMultipleAccountCustomerInfo_1.StripeMultipleAccountCustomerInfo.optional(),
|
|
78
80
|
urls: core.serialization.list(core.serialization.string()),
|
|
79
81
|
companyDescription: core.serialization.string().optional(),
|
|
80
82
|
tp: TpCompanyInformation_1.TpCompanyInformation.optional(),
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../../../index";
|
|
5
|
+
import * as TheraApi from "../../../../../../api/index";
|
|
6
|
+
import * as core from "../../../../../../core";
|
|
7
|
+
export declare const StripeAccountInfo: core.serialization.ObjectSchema<serializers.db.StripeAccountInfo.Raw, TheraApi.db.StripeAccountInfo>;
|
|
8
|
+
export declare namespace StripeAccountInfo {
|
|
9
|
+
interface Raw {
|
|
10
|
+
stripeCustomerId: string;
|
|
11
|
+
defaultPaymentMethodId: string;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -36,11 +36,9 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
40
|
-
const core = __importStar(require("
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
totalCount: core.serialization.number(),
|
|
45
|
-
failedCount: core.serialization.number().optional(),
|
|
39
|
+
exports.StripeAccountInfo = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../../../core"));
|
|
41
|
+
exports.StripeAccountInfo = core.serialization.object({
|
|
42
|
+
stripeCustomerId: core.serialization.string(),
|
|
43
|
+
defaultPaymentMethodId: core.serialization.string(),
|
|
46
44
|
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../../../index";
|
|
5
|
+
import * as TheraApi from "../../../../../../api/index";
|
|
6
|
+
import * as core from "../../../../../../core";
|
|
7
|
+
import { StripeAccountInfo } from "./StripeAccountInfo";
|
|
8
|
+
export declare const StripeMultipleAccountCustomerInfo: core.serialization.ObjectSchema<serializers.db.StripeMultipleAccountCustomerInfo.Raw, TheraApi.db.StripeMultipleAccountCustomerInfo>;
|
|
9
|
+
export declare namespace StripeMultipleAccountCustomerInfo {
|
|
10
|
+
interface Raw {
|
|
11
|
+
mainAccount: StripeAccountInfo.Raw;
|
|
12
|
+
revenueAccount: StripeAccountInfo.Raw;
|
|
13
|
+
eorAccount: StripeAccountInfo.Raw;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -36,11 +36,11 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
40
|
-
const core = __importStar(require("
|
|
41
|
-
const
|
|
42
|
-
exports.
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
39
|
+
exports.StripeMultipleAccountCustomerInfo = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../../../core"));
|
|
41
|
+
const StripeAccountInfo_1 = require("./StripeAccountInfo");
|
|
42
|
+
exports.StripeMultipleAccountCustomerInfo = core.serialization.object({
|
|
43
|
+
mainAccount: StripeAccountInfo_1.StripeAccountInfo,
|
|
44
|
+
revenueAccount: StripeAccountInfo_1.StripeAccountInfo,
|
|
45
|
+
eorAccount: StripeAccountInfo_1.StripeAccountInfo,
|
|
46
46
|
});
|
|
@@ -53,3 +53,5 @@ export * from "./HolidayDate";
|
|
|
53
53
|
export * from "./UserHolidaysResponse";
|
|
54
54
|
export * from "./AssociateUsersToHolidayPolicyResponse";
|
|
55
55
|
export * from "./DeleteCustomHolidayResponse";
|
|
56
|
+
export * from "./StripeMultipleAccountCustomerInfo";
|
|
57
|
+
export * from "./StripeAccountInfo";
|
|
@@ -69,3 +69,5 @@ __exportStar(require("./HolidayDate"), exports);
|
|
|
69
69
|
__exportStar(require("./UserHolidaysResponse"), exports);
|
|
70
70
|
__exportStar(require("./AssociateUsersToHolidayPolicyResponse"), exports);
|
|
71
71
|
__exportStar(require("./DeleteCustomHolidayResponse"), exports);
|
|
72
|
+
__exportStar(require("./StripeMultipleAccountCustomerInfo"), exports);
|
|
73
|
+
__exportStar(require("./StripeAccountInfo"), exports);
|
package/dist/serialization/resources/db/resources/paymentMethod/types/CompanyPaymentMethod.js
CHANGED
|
@@ -50,4 +50,5 @@ exports.CompanyPaymentMethod = core.serialization.object({
|
|
|
50
50
|
details: PaymentMethodDetails_1.PaymentMethodDetails,
|
|
51
51
|
deletionDetails: CompanyPaymentMethodDeletionDetails_1.CompanyPaymentMethodDeletionDetails.optional(),
|
|
52
52
|
stripeMandateStatus: StripeMandateStatus_1.StripeMandateStatus.optional(),
|
|
53
|
+
stripeCustomerId: core.serialization.string().optional(),
|
|
53
54
|
});
|