@thera-hr/api-sdk 1.1.1-prerelease2449-dev-4 → 1.1.1-prerelease2467-dev-2
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.d.ts +5 -2
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +49 -40
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/GetWorkerTransactionsRequest.d.ts +12 -0
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/GetWorkerTransactionsRequest.js +5 -0
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/index.d.ts +1 -0
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetWorkerTransactionsResponse.d.ts +1 -0
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.js +29 -29
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +18 -18
- package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +6 -6
- package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +3 -3
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +7 -7
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
- package/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +3 -3
- package/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +2 -2
- package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +5 -5
- package/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.js +3 -3
- package/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/client/Client.js +3 -3
- package/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +9 -9
- package/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/Client.js +11 -11
- package/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.js +1 -1
- package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +5 -5
- package/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/Client.js +7 -7
- package/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +15 -15
- package/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.js +9 -9
- package/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +14 -14
- package/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
- 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.d.ts +5 -2
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +49 -40
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/GetWorkerTransactionsRequest.d.ts +12 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/GetWorkerTransactionsRequest.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/index.d.ts +1 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetWorkerTransactionsResponse.d.ts +1 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.js +29 -29
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +18 -18
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +6 -6
- package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +3 -3
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +7 -7
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
- package/dist/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +3 -3
- package/dist/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +2 -2
- package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +5 -5
- package/dist/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.js +3 -3
- package/dist/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/client/Client.js +3 -3
- package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +9 -9
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/Client.js +11 -11
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.js +1 -1
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +5 -5
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/Client.js +7 -7
- package/dist/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +15 -15
- package/dist/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.js +9 -9
- package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +14 -14
- package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetWorkerTransactionsResponse.d.ts +1 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetWorkerTransactionsResponse.js +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +12 -2
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetWorkerTransactionsResponse.d.ts +1 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetWorkerTransactionsResponse.js +1 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -108,7 +108,7 @@ class AipriseWebhookApi {
|
|
|
108
108
|
const _response = yield core.fetcher({
|
|
109
109
|
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)), "/aiprise/webhook/verification/callback"),
|
|
110
110
|
method: "POST",
|
|
111
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
111
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2467-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2467-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
112
112
|
contentType: "application/json",
|
|
113
113
|
requestType: "json",
|
|
114
114
|
body: serializers.api.aiprise.AiPriseVerificationCallback.jsonOrThrow(request, {
|
|
@@ -87,7 +87,7 @@ class Dev {
|
|
|
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)), "/dev/eor"),
|
|
89
89
|
method: "POST",
|
|
90
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.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": "1.1.1-prerelease2467-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2467-dev-2", "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
|
requestType: "json",
|
|
93
93
|
body: serializers.api.dev.AddEorEmployeeRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -113,7 +113,7 @@ class ExternalApi {
|
|
|
113
113
|
const _response = yield core.fetcher({
|
|
114
114
|
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)), "/external/v2/contractor"),
|
|
115
115
|
method: "POST",
|
|
116
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
116
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2467-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2467-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
117
117
|
contentType: "application/json",
|
|
118
118
|
requestType: "json",
|
|
119
119
|
body: serializers.api.external.ExternalCreateContractorRequestV2.jsonOrThrow(request, {
|
|
@@ -74,7 +74,7 @@ class File_ {
|
|
|
74
74
|
const _response = yield core.fetcher({
|
|
75
75
|
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)), `/contracts/${encodeURIComponent(contractId)}/generic-document`),
|
|
76
76
|
method: "POST",
|
|
77
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
77
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2467-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2467-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
78
78
|
contentType: "application/json",
|
|
79
79
|
requestType: "json",
|
|
80
80
|
body: serializers.api.services.AttachDocumentToEmploymentRequest.jsonOrThrow(request, {
|
|
@@ -125,7 +125,7 @@ class File_ {
|
|
|
125
125
|
const _response = yield core.fetcher({
|
|
126
126
|
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)), `/contracts/${encodeURIComponent(contractId)}/generic-document/${encodeURIComponent(s3Key)}`),
|
|
127
127
|
method: "DELETE",
|
|
128
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
128
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2467-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2467-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
129
129
|
contentType: "application/json",
|
|
130
130
|
requestType: "json",
|
|
131
131
|
body: serializers.api.services.DeleteDocumentFromEmploymentRequest.jsonOrThrow(request, {
|
|
@@ -173,7 +173,7 @@ class File_ {
|
|
|
173
173
|
const _response = yield core.fetcher({
|
|
174
174
|
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)), `/contracts/${encodeURIComponent(contractId)}/generic-document/${encodeURIComponent(s3Key)}/file-url`),
|
|
175
175
|
method: "GET",
|
|
176
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
176
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2467-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2467-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
177
177
|
contentType: "application/json",
|
|
178
178
|
requestType: "json",
|
|
179
179
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -224,7 +224,7 @@ class File_ {
|
|
|
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)), `/contracts/eor/${encodeURIComponent(contractId)}/payslips/${encodeURIComponent(s3Key)}/fileUrl`),
|
|
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": "1.1.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": "1.1.1-prerelease2467-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2467-dev-2", "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,
|
|
@@ -275,7 +275,7 @@ class File_ {
|
|
|
275
275
|
const _response = yield core.fetcher({
|
|
276
276
|
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/eor/pay-in/${encodeURIComponent(s3Key)}/file-url`),
|
|
277
277
|
method: "GET",
|
|
278
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
278
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2467-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2467-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
279
279
|
contentType: "application/json",
|
|
280
280
|
requestType: "json",
|
|
281
281
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -77,7 +77,7 @@ class AccountingApi {
|
|
|
77
77
|
const _response = yield core.fetcher({
|
|
78
78
|
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)}/accounting/settings`),
|
|
79
79
|
method: "PUT",
|
|
80
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
80
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2467-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2467-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
81
81
|
contentType: "application/json",
|
|
82
82
|
requestType: "json",
|
|
83
83
|
body: serializers.api.thera.accounting.ModifyAccountingIntegrationSetting.jsonOrThrow(request, {
|
|
@@ -124,7 +124,7 @@ class AccountingApi {
|
|
|
124
124
|
const _response = yield core.fetcher({
|
|
125
125
|
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)}/accounting/info`),
|
|
126
126
|
method: "GET",
|
|
127
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
127
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2467-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2467-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
128
128
|
contentType: "application/json",
|
|
129
129
|
requestType: "json",
|
|
130
130
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -174,7 +174,7 @@ class AccountingApi {
|
|
|
174
174
|
const _response = yield core.fetcher({
|
|
175
175
|
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)}/accounting/account-mapping`),
|
|
176
176
|
method: "GET",
|
|
177
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
177
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2467-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2467-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
178
178
|
contentType: "application/json",
|
|
179
179
|
requestType: "json",
|
|
180
180
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -227,7 +227,7 @@ class AccountingApi {
|
|
|
227
227
|
const _response = yield core.fetcher({
|
|
228
228
|
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)}/accounting/authorize`),
|
|
229
229
|
method: "POST",
|
|
230
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
230
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2467-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2467-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
231
231
|
contentType: "application/json",
|
|
232
232
|
requestType: "json",
|
|
233
233
|
body: serializers.api.thera.accounting.CompleteAccountingIntegrationAuth.jsonOrThrow(request, {
|
package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.d.ts
CHANGED
|
@@ -394,12 +394,15 @@ export declare class BankApi {
|
|
|
394
394
|
/**
|
|
395
395
|
* @param {string} userId
|
|
396
396
|
* @param {string} companyId
|
|
397
|
+
* @param {TheraApi.api.thera.bank.GetWorkerTransactionsRequest} request
|
|
397
398
|
* @param {BankApi.RequestOptions} requestOptions - Request-specific configuration.
|
|
398
399
|
*
|
|
399
400
|
* @example
|
|
400
|
-
* await client.api.thera.bank.bankApi.getWorkerTransactions("string", "string"
|
|
401
|
+
* await client.api.thera.bank.bankApi.getWorkerTransactions("string", "string", {
|
|
402
|
+
* afterCursor: "string"
|
|
403
|
+
* })
|
|
401
404
|
*/
|
|
402
|
-
getWorkerTransactions(userId: string, companyId: string, requestOptions?: BankApi.RequestOptions): Promise<TheraApi.api.thera.bank.GetWorkerTransactionsResponse>;
|
|
405
|
+
getWorkerTransactions(userId: string, companyId: string, request?: TheraApi.api.thera.bank.GetWorkerTransactionsRequest, requestOptions?: BankApi.RequestOptions): Promise<TheraApi.api.thera.bank.GetWorkerTransactionsResponse>;
|
|
403
406
|
/**
|
|
404
407
|
* @param {string} withdrawalId
|
|
405
408
|
* @param {BankApi.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -83,7 +83,7 @@ class BankApi {
|
|
|
83
83
|
const _response = yield core.fetcher({
|
|
84
84
|
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)}/bank/account`),
|
|
85
85
|
method: "GET",
|
|
86
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
86
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2467-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2467-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
87
87
|
contentType: "application/json",
|
|
88
88
|
requestType: "json",
|
|
89
89
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -142,7 +142,7 @@ class BankApi {
|
|
|
142
142
|
const _response = yield core.fetcher({
|
|
143
143
|
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)), "bank/account/update"),
|
|
144
144
|
method: "POST",
|
|
145
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
145
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2467-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2467-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
146
146
|
contentType: "application/json",
|
|
147
147
|
queryParameters: _queryParams,
|
|
148
148
|
requestType: "json",
|
|
@@ -209,7 +209,7 @@ class BankApi {
|
|
|
209
209
|
const _response = yield core.fetcher({
|
|
210
210
|
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)), "bank/account/signup/link"),
|
|
211
211
|
method: "POST",
|
|
212
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
212
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2467-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2467-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
213
213
|
contentType: "application/json",
|
|
214
214
|
queryParameters: _queryParams,
|
|
215
215
|
requestType: "json",
|
|
@@ -268,7 +268,7 @@ class BankApi {
|
|
|
268
268
|
const _response = yield core.fetcher({
|
|
269
269
|
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)), "bank/account/signup/complete"),
|
|
270
270
|
method: "POST",
|
|
271
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
271
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2467-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2467-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
272
272
|
contentType: "application/json",
|
|
273
273
|
requestType: "json",
|
|
274
274
|
body: serializers.api.thera.bank.CompleteAccountSignupRequest.jsonOrThrow(request, {
|
|
@@ -320,7 +320,7 @@ class BankApi {
|
|
|
320
320
|
const _response = yield core.fetcher({
|
|
321
321
|
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)), "bank/stripe/attach"),
|
|
322
322
|
method: "POST",
|
|
323
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
323
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2467-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2467-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
324
324
|
contentType: "application/json",
|
|
325
325
|
requestType: "json",
|
|
326
326
|
body: serializers.api.thera.bank.ReattachStripeAccountMandateRequest.jsonOrThrow(request, {
|
|
@@ -369,7 +369,7 @@ class BankApi {
|
|
|
369
369
|
const _response = yield core.fetcher({
|
|
370
370
|
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)}/payment-methods`),
|
|
371
371
|
method: "GET",
|
|
372
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
372
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2467-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2467-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
373
373
|
contentType: "application/json",
|
|
374
374
|
requestType: "json",
|
|
375
375
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -422,7 +422,7 @@ class BankApi {
|
|
|
422
422
|
const _response = yield core.fetcher({
|
|
423
423
|
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)}/payment-methods/${encodeURIComponent(paymentMethodId)}`),
|
|
424
424
|
method: "DELETE",
|
|
425
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
425
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2467-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2467-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
426
426
|
contentType: "application/json",
|
|
427
427
|
requestType: "json",
|
|
428
428
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -469,7 +469,7 @@ class BankApi {
|
|
|
469
469
|
const _response = yield core.fetcher({
|
|
470
470
|
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)}/payment-methods/${encodeURIComponent(paymentMethodId)}/select-for-w2`),
|
|
471
471
|
method: "POST",
|
|
472
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
472
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2467-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2467-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
473
473
|
contentType: "application/json",
|
|
474
474
|
requestType: "json",
|
|
475
475
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -524,7 +524,7 @@ class BankApi {
|
|
|
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)), "bank/account/signup/verify"),
|
|
526
526
|
method: "POST",
|
|
527
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.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": "1.1.1-prerelease2467-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2467-dev-2", "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
|
queryParameters: _queryParams,
|
|
530
530
|
requestType: "json",
|
|
@@ -588,7 +588,7 @@ class BankApi {
|
|
|
588
588
|
const _response = yield core.fetcher({
|
|
589
589
|
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)}/autopay`),
|
|
590
590
|
method: "POST",
|
|
591
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
591
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2467-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2467-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
592
592
|
contentType: "application/json",
|
|
593
593
|
requestType: "json",
|
|
594
594
|
body: serializers.api.thera.bank.SetBulkAutoPayForTeamsRequest.jsonOrThrow(request, {
|
|
@@ -642,7 +642,7 @@ class BankApi {
|
|
|
642
642
|
const _response = yield core.fetcher({
|
|
643
643
|
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)}/teams/${encodeURIComponent(teamId)}/autopay`),
|
|
644
644
|
method: "POST",
|
|
645
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
645
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2467-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2467-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
646
646
|
contentType: "application/json",
|
|
647
647
|
requestType: "json",
|
|
648
648
|
body: serializers.api.thera.bank.SetAutoPayRequest.jsonOrThrow(request, {
|
|
@@ -700,7 +700,7 @@ class BankApi {
|
|
|
700
700
|
const _response = yield core.fetcher({
|
|
701
701
|
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)), "worker/supported-withdrawal-method-currencies"),
|
|
702
702
|
method: "GET",
|
|
703
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
703
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2467-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2467-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
704
704
|
contentType: "application/json",
|
|
705
705
|
queryParameters: _queryParams,
|
|
706
706
|
requestType: "json",
|
|
@@ -752,7 +752,7 @@ class BankApi {
|
|
|
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)), "worker/supported-bank-transfer-currencies"),
|
|
754
754
|
method: "GET",
|
|
755
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.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": "1.1.1-prerelease2467-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2467-dev-2", "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
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -814,7 +814,7 @@ class BankApi {
|
|
|
814
814
|
const _response = yield core.fetcher({
|
|
815
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)), `workers/${encodeURIComponent(userId)}/withdrawal-methods/${encodeURIComponent(paymentMethodId)}/withdrawal-limits`),
|
|
816
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": "1.1.1-
|
|
817
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2467-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2467-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
818
818
|
contentType: "application/json",
|
|
819
819
|
queryParameters: _queryParams,
|
|
820
820
|
requestType: "json",
|
|
@@ -873,7 +873,7 @@ class BankApi {
|
|
|
873
873
|
const _response = yield core.fetcher({
|
|
874
874
|
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)), "worker/withdrawal-minimum-by-currency"),
|
|
875
875
|
method: "GET",
|
|
876
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
876
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2467-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2467-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
877
877
|
contentType: "application/json",
|
|
878
878
|
queryParameters: _queryParams,
|
|
879
879
|
requestType: "json",
|
|
@@ -936,7 +936,7 @@ class BankApi {
|
|
|
936
936
|
const _response = yield core.fetcher({
|
|
937
937
|
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)), `workers/${encodeURIComponent(userId)}/withdrawal-methods/${encodeURIComponent(paymentMethodId)}/withdrawal-minimum`),
|
|
938
938
|
method: "GET",
|
|
939
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
939
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2467-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2467-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
940
940
|
contentType: "application/json",
|
|
941
941
|
queryParameters: _queryParams,
|
|
942
942
|
requestType: "json",
|
|
@@ -1009,7 +1009,7 @@ class BankApi {
|
|
|
1009
1009
|
const _response = yield core.fetcher({
|
|
1010
1010
|
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)), "worker/supported-withdrawal-methods"),
|
|
1011
1011
|
method: "POST",
|
|
1012
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
1012
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2467-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2467-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1013
1013
|
contentType: "application/json",
|
|
1014
1014
|
requestType: "json",
|
|
1015
1015
|
body: serializers.api.thera.bank.WithdrawalMethodsRequest.jsonOrThrow(request, {
|
|
@@ -1085,7 +1085,7 @@ class BankApi {
|
|
|
1085
1085
|
const _response = yield core.fetcher({
|
|
1086
1086
|
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)), `worker/${encodeURIComponent(userId)}/withdrawal-method`),
|
|
1087
1087
|
method: "POST",
|
|
1088
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
1088
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2467-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2467-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1089
1089
|
contentType: "application/json",
|
|
1090
1090
|
requestType: "json",
|
|
1091
1091
|
body: serializers.api.thera.bank.WithdrawalMethodsRequest.jsonOrThrow(request, {
|
|
@@ -1139,7 +1139,7 @@ class BankApi {
|
|
|
1139
1139
|
const _response = yield core.fetcher({
|
|
1140
1140
|
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)), `worker/${encodeURIComponent(userId)}/withdrawal-method/${encodeURIComponent(withdrawalMethodId)}`),
|
|
1141
1141
|
method: "DELETE",
|
|
1142
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
1142
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2467-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2467-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1143
1143
|
contentType: "application/json",
|
|
1144
1144
|
requestType: "json",
|
|
1145
1145
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1194,7 +1194,7 @@ class BankApi {
|
|
|
1194
1194
|
const _response = yield core.fetcher({
|
|
1195
1195
|
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)), `worker/${encodeURIComponent(userId)}/withdrawal-method/${encodeURIComponent(withdrawalMethodId)}`),
|
|
1196
1196
|
method: "PATCH",
|
|
1197
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
1197
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2467-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2467-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1198
1198
|
contentType: "application/json",
|
|
1199
1199
|
requestType: "json",
|
|
1200
1200
|
body: serializers.api.thera.bank.EditWithdrawalMethodRequest.jsonOrThrow(request, {
|
|
@@ -1256,7 +1256,7 @@ class BankApi {
|
|
|
1256
1256
|
const _response = yield core.fetcher({
|
|
1257
1257
|
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)}/workers/${encodeURIComponent(userId)}/payout-preview`),
|
|
1258
1258
|
method: "POST",
|
|
1259
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
1259
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2467-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2467-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1260
1260
|
contentType: "application/json",
|
|
1261
1261
|
requestType: "json",
|
|
1262
1262
|
body: serializers.api.thera.bank.InitiateWorkerWithdrawalRequest.jsonOrThrow(request, {
|
|
@@ -1320,7 +1320,7 @@ class BankApi {
|
|
|
1320
1320
|
const _response = yield core.fetcher({
|
|
1321
1321
|
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)}/workers/${encodeURIComponent(userId)}/quote`),
|
|
1322
1322
|
method: "GET",
|
|
1323
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
1323
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2467-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2467-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1324
1324
|
contentType: "application/json",
|
|
1325
1325
|
queryParameters: _queryParams,
|
|
1326
1326
|
requestType: "json",
|
|
@@ -1380,7 +1380,7 @@ class BankApi {
|
|
|
1380
1380
|
const _response = yield core.fetcher({
|
|
1381
1381
|
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)}/workers/${encodeURIComponent(userId)}/withdraw`),
|
|
1382
1382
|
method: "POST",
|
|
1383
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
1383
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2467-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2467-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1384
1384
|
contentType: "application/json",
|
|
1385
1385
|
requestType: "json",
|
|
1386
1386
|
body: serializers.api.thera.bank.InitiateWorkerWithdrawalRequest.jsonOrThrow(request, {
|
|
@@ -1442,7 +1442,7 @@ class BankApi {
|
|
|
1442
1442
|
const _response = yield core.fetcher({
|
|
1443
1443
|
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)}/workers/${encodeURIComponent(userId)}/payout`),
|
|
1444
1444
|
method: "POST",
|
|
1445
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
1445
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2467-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2467-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1446
1446
|
contentType: "application/json",
|
|
1447
1447
|
requestType: "json",
|
|
1448
1448
|
body: serializers.api.thera.bank.InitiateWorkerWithdrawalRequest.jsonOrThrow(request, {
|
|
@@ -1496,7 +1496,7 @@ class BankApi {
|
|
|
1496
1496
|
const _response = yield core.fetcher({
|
|
1497
1497
|
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)}/workers/${encodeURIComponent(userId)}/balances`),
|
|
1498
1498
|
method: "GET",
|
|
1499
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
1499
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2467-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2467-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1500
1500
|
contentType: "application/json",
|
|
1501
1501
|
requestType: "json",
|
|
1502
1502
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1536,19 +1536,28 @@ class BankApi {
|
|
|
1536
1536
|
/**
|
|
1537
1537
|
* @param {string} userId
|
|
1538
1538
|
* @param {string} companyId
|
|
1539
|
+
* @param {TheraApi.api.thera.bank.GetWorkerTransactionsRequest} request
|
|
1539
1540
|
* @param {BankApi.RequestOptions} requestOptions - Request-specific configuration.
|
|
1540
1541
|
*
|
|
1541
1542
|
* @example
|
|
1542
|
-
* await client.api.thera.bank.bankApi.getWorkerTransactions("string", "string"
|
|
1543
|
+
* await client.api.thera.bank.bankApi.getWorkerTransactions("string", "string", {
|
|
1544
|
+
* afterCursor: "string"
|
|
1545
|
+
* })
|
|
1543
1546
|
*/
|
|
1544
|
-
getWorkerTransactions(
|
|
1545
|
-
return __awaiter(this,
|
|
1547
|
+
getWorkerTransactions(userId_1, companyId_1) {
|
|
1548
|
+
return __awaiter(this, arguments, void 0, function* (userId, companyId, request = {}, requestOptions) {
|
|
1546
1549
|
var _a;
|
|
1550
|
+
const { afterCursor } = request;
|
|
1551
|
+
const _queryParams = {};
|
|
1552
|
+
if (afterCursor != null) {
|
|
1553
|
+
_queryParams["afterCursor"] = afterCursor;
|
|
1554
|
+
}
|
|
1547
1555
|
const _response = yield core.fetcher({
|
|
1548
1556
|
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)}/workers/${encodeURIComponent(userId)}/transactions`),
|
|
1549
1557
|
method: "GET",
|
|
1550
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
1558
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2467-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2467-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1551
1559
|
contentType: "application/json",
|
|
1560
|
+
queryParameters: _queryParams,
|
|
1552
1561
|
requestType: "json",
|
|
1553
1562
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
1554
1563
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -1597,7 +1606,7 @@ class BankApi {
|
|
|
1597
1606
|
const _response = yield core.fetcher({
|
|
1598
1607
|
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)), `workers/withdrawals/delivery-estimate/${encodeURIComponent(withdrawalId)}`),
|
|
1599
1608
|
method: "GET",
|
|
1600
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
1609
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2467-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2467-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1601
1610
|
contentType: "application/json",
|
|
1602
1611
|
requestType: "json",
|
|
1603
1612
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1669,7 +1678,7 @@ class BankApi {
|
|
|
1669
1678
|
const _response = yield core.fetcher({
|
|
1670
1679
|
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)}/pay-ins`),
|
|
1671
1680
|
method: "GET",
|
|
1672
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
1681
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2467-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2467-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1673
1682
|
contentType: "application/json",
|
|
1674
1683
|
queryParameters: _queryParams,
|
|
1675
1684
|
requestType: "json",
|
|
@@ -1721,7 +1730,7 @@ class BankApi {
|
|
|
1721
1730
|
const _response = yield core.fetcher({
|
|
1722
1731
|
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)}/pay-ins/${encodeURIComponent(payInId)}`),
|
|
1723
1732
|
method: "GET",
|
|
1724
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
1733
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2467-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2467-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1725
1734
|
contentType: "application/json",
|
|
1726
1735
|
requestType: "json",
|
|
1727
1736
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1776,7 +1785,7 @@ class BankApi {
|
|
|
1776
1785
|
const _response = yield core.fetcher({
|
|
1777
1786
|
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)}/pay-ins/off-platform/${encodeURIComponent(payInId)}`),
|
|
1778
1787
|
method: "DELETE",
|
|
1779
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
1788
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2467-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2467-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1780
1789
|
contentType: "application/json",
|
|
1781
1790
|
requestType: "json",
|
|
1782
1791
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1835,7 +1844,7 @@ class BankApi {
|
|
|
1835
1844
|
const _response = yield core.fetcher({
|
|
1836
1845
|
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)), "currency/convert"),
|
|
1837
1846
|
method: "GET",
|
|
1838
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
1847
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2467-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2467-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1839
1848
|
contentType: "application/json",
|
|
1840
1849
|
queryParameters: _queryParams,
|
|
1841
1850
|
requestType: "json",
|
|
@@ -1890,7 +1899,7 @@ class BankApi {
|
|
|
1890
1899
|
const _response = yield core.fetcher({
|
|
1891
1900
|
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)}/workers/${encodeURIComponent(userId)}/auto-withdrawals`),
|
|
1892
1901
|
method: "POST",
|
|
1893
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
1902
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2467-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2467-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1894
1903
|
contentType: "application/json",
|
|
1895
1904
|
requestType: "json",
|
|
1896
1905
|
body: serializers.api.thera.bank.SetAutoWithdrawalRequest.jsonOrThrow(request, {
|
|
@@ -1945,7 +1954,7 @@ class BankApi {
|
|
|
1945
1954
|
const _response = yield core.fetcher({
|
|
1946
1955
|
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)), "bank/check/payment-method"),
|
|
1947
1956
|
method: "POST",
|
|
1948
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
1957
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2467-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2467-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1949
1958
|
contentType: "application/json",
|
|
1950
1959
|
requestType: "json",
|
|
1951
1960
|
body: serializers.api.thera.bank.CreateCheckPaymentMethodFromPlaidRequest.jsonOrThrow(request, {
|
|
@@ -1995,7 +2004,7 @@ class BankApi {
|
|
|
1995
2004
|
const _response = yield core.fetcher({
|
|
1996
2005
|
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)), "bank/stripe/payment-method"),
|
|
1997
2006
|
method: "POST",
|
|
1998
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
2007
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2467-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2467-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1999
2008
|
contentType: "application/json",
|
|
2000
2009
|
requestType: "json",
|
|
2001
2010
|
body: serializers.api.thera.bank.CreateStripePaymentMethodFromPlaidRequest.jsonOrThrow(request, {
|
|
@@ -2049,7 +2058,7 @@ class BankApi {
|
|
|
2049
2058
|
const _response = yield core.fetcher({
|
|
2050
2059
|
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)}/auto-approve-settings`),
|
|
2051
2060
|
method: "POST",
|
|
2052
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
2061
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2467-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2467-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
2053
2062
|
contentType: "application/json",
|
|
2054
2063
|
requestType: "json",
|
|
2055
2064
|
body: serializers.api.thera.bank.SetBulkAutoApproveInvoiceForTeamsRequest.jsonOrThrow(request, {
|
|
@@ -2105,7 +2114,7 @@ class BankApi {
|
|
|
2105
2114
|
const _response = yield core.fetcher({
|
|
2106
2115
|
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)}/payments/${encodeURIComponent(paymentId)}`),
|
|
2107
2116
|
method: "GET",
|
|
2108
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
2117
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2467-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2467-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
2109
2118
|
contentType: "application/json",
|
|
2110
2119
|
queryParameters: _queryParams,
|
|
2111
2120
|
requestType: "json",
|
|
@@ -2158,7 +2167,7 @@ class BankApi {
|
|
|
2158
2167
|
const _response = yield core.fetcher({
|
|
2159
2168
|
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)}/pay-ins/count`),
|
|
2160
2169
|
method: "GET",
|
|
2161
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-
|
|
2170
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "1.1.1-prerelease2467-dev-2", "User-Agent": "@thera-hr/api-sdk/1.1.1-prerelease2467-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
2162
2171
|
contentType: "application/json",
|
|
2163
2172
|
requestType: "json",
|
|
2164
2173
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|