@thera-hr/api-sdk 0.0.1-prerelease2916-dev-3 → 0.0.1-prerelease2972-staging
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +1 -1
- package/api/resources/api/resources/dev/resources/dev/client/Client.js +1 -1
- package/api/resources/api/resources/external/resources/externalApi/client/Client.js +1 -1
- package/api/resources/api/resources/services/resources/file/client/Client.js +5 -5
- package/api/resources/api/resources/thera/resources/accounting/resources/accountingApi/client/Client.js +4 -4
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +33 -33
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/AuBecsDebitPaymentMethodResponse.d.ts +9 -0
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/AuBecsDebitPaymentMethodResponse.js +5 -0
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/HistoricPaymentDetail.d.ts +4 -1
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/PaymentMethodDetailsResponse.d.ts +4 -1
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/W2SubscriptionPayIn.d.ts +8 -0
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/W2SubscriptionPayIn.js +5 -0
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +2 -0
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +2 -0
- 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 +3 -3
- package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +3 -3
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +7 -7
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
- package/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +3 -3
- package/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +2 -2
- package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +5 -5
- package/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.js +3 -3
- package/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +7 -7
- package/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.js +1 -1
- package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +3 -3
- package/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +14 -14
- package/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.js +9 -9
- package/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.d.ts +23 -26
- package/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +33 -36
- package/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/requests/AddCompanyBankingDetailsRequest.d.ts +23 -26
- package/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
- package/api/resources/db/resources/company/types/CompanyBankingDetails.d.ts +1 -1
- package/api/resources/db/resources/paymentMethod/types/StripeAuBecsDebitPaymentMethodDetails.d.ts +10 -0
- package/api/resources/db/resources/paymentMethod/types/StripeAuBecsDebitPaymentMethodDetails.js +5 -0
- package/api/resources/db/resources/paymentMethod/types/StripeFcPaymentMethod.d.ts +4 -1
- package/api/resources/db/resources/paymentMethod/types/index.d.ts +1 -0
- package/api/resources/db/resources/paymentMethod/types/index.js +1 -0
- package/dist/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +1 -1
- package/dist/api/resources/api/resources/dev/resources/dev/client/Client.js +1 -1
- package/dist/api/resources/api/resources/external/resources/externalApi/client/Client.js +1 -1
- package/dist/api/resources/api/resources/services/resources/file/client/Client.js +5 -5
- package/dist/api/resources/api/resources/thera/resources/accounting/resources/accountingApi/client/Client.js +4 -4
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +33 -33
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/AuBecsDebitPaymentMethodResponse.d.ts +9 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/AuBecsDebitPaymentMethodResponse.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/HistoricPaymentDetail.d.ts +4 -1
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/PaymentMethodDetailsResponse.d.ts +4 -1
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/W2SubscriptionPayIn.d.ts +8 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/W2SubscriptionPayIn.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +2 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +2 -0
- 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 +3 -3
- package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +3 -3
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +7 -7
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
- package/dist/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +3 -3
- package/dist/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +2 -2
- package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +5 -5
- package/dist/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.js +3 -3
- package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +7 -7
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.js +1 -1
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +3 -3
- package/dist/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +14 -14
- package/dist/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.js +9 -9
- package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.d.ts +23 -26
- package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +33 -36
- package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/requests/AddCompanyBankingDetailsRequest.d.ts +23 -26
- package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
- package/dist/api/resources/db/resources/company/types/CompanyBankingDetails.d.ts +1 -1
- package/dist/api/resources/db/resources/paymentMethod/types/StripeAuBecsDebitPaymentMethodDetails.d.ts +10 -0
- package/dist/api/resources/db/resources/paymentMethod/types/StripeAuBecsDebitPaymentMethodDetails.js +5 -0
- package/dist/api/resources/db/resources/paymentMethod/types/StripeFcPaymentMethod.d.ts +4 -1
- package/dist/api/resources/db/resources/paymentMethod/types/index.d.ts +1 -0
- package/dist/api/resources/db/resources/paymentMethod/types/index.js +1 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/AuBecsDebitPaymentMethodResponse.d.ts +15 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/AuBecsDebitPaymentMethodResponse.js +46 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/HistoricPaymentDetail.d.ts +5 -1
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/HistoricPaymentDetail.js +2 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/PaymentMethodDetailsResponse.d.ts +5 -1
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/PaymentMethodDetailsResponse.js +2 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/W2SubscriptionPayIn.d.ts +14 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/W2SubscriptionPayIn.js +45 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +2 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +2 -0
- package/dist/serialization/resources/db/resources/company/types/CompanyBankingDetails.d.ts +2 -1
- package/dist/serialization/resources/db/resources/company/types/CompanyBankingDetails.js +2 -1
- package/dist/serialization/resources/db/resources/paymentMethod/types/StripeAuBecsDebitPaymentMethodDetails.d.ts +16 -0
- package/dist/serialization/resources/db/resources/paymentMethod/types/StripeAuBecsDebitPaymentMethodDetails.js +47 -0
- package/dist/serialization/resources/db/resources/paymentMethod/types/StripeFcPaymentMethod.d.ts +5 -1
- package/dist/serialization/resources/db/resources/paymentMethod/types/StripeFcPaymentMethod.js +2 -0
- package/dist/serialization/resources/db/resources/paymentMethod/types/index.d.ts +1 -0
- package/dist/serialization/resources/db/resources/paymentMethod/types/index.js +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +22 -25
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/AuBecsDebitPaymentMethodResponse.d.ts +15 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/AuBecsDebitPaymentMethodResponse.js +46 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/HistoricPaymentDetail.d.ts +5 -1
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/HistoricPaymentDetail.js +2 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/PaymentMethodDetailsResponse.d.ts +5 -1
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/PaymentMethodDetailsResponse.js +2 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/W2SubscriptionPayIn.d.ts +14 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/W2SubscriptionPayIn.js +45 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +2 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +2 -0
- package/serialization/resources/db/resources/company/types/CompanyBankingDetails.d.ts +2 -1
- package/serialization/resources/db/resources/company/types/CompanyBankingDetails.js +2 -1
- package/serialization/resources/db/resources/paymentMethod/types/StripeAuBecsDebitPaymentMethodDetails.d.ts +16 -0
- package/serialization/resources/db/resources/paymentMethod/types/StripeAuBecsDebitPaymentMethodDetails.js +47 -0
- package/serialization/resources/db/resources/paymentMethod/types/StripeFcPaymentMethod.d.ts +5 -1
- package/serialization/resources/db/resources/paymentMethod/types/StripeFcPaymentMethod.js +2 -0
- package/serialization/resources/db/resources/paymentMethod/types/index.d.ts +1 -0
- package/serialization/resources/db/resources/paymentMethod/types/index.js +1 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -81,7 +81,7 @@ class TimetrackingApi {
|
|
|
81
81
|
const _response = yield core.fetcher({
|
|
82
82
|
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)}/users/${encodeURIComponent(userId)}/time-tracking/entries`),
|
|
83
83
|
method: "POST",
|
|
84
|
-
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-
|
|
84
|
+
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-prerelease2972-staging", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2972-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
85
85
|
contentType: "application/json",
|
|
86
86
|
requestType: "json",
|
|
87
87
|
body: serializers.api.thera.timetracking.CreateTimeEntryRequest.jsonOrThrow(request, {
|
|
@@ -144,7 +144,7 @@ class TimetrackingApi {
|
|
|
144
144
|
const _response = yield core.fetcher({
|
|
145
145
|
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)}/users/${encodeURIComponent(userId)}/time-tracking/start`),
|
|
146
146
|
method: "POST",
|
|
147
|
-
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-
|
|
147
|
+
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-prerelease2972-staging", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2972-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
148
148
|
contentType: "application/json",
|
|
149
149
|
requestType: "json",
|
|
150
150
|
body: serializers.api.thera.timetracking.StartTimeTrackingRequest.jsonOrThrow(request, {
|
|
@@ -205,7 +205,7 @@ class TimetrackingApi {
|
|
|
205
205
|
const _response = yield core.fetcher({
|
|
206
206
|
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)}/users/${encodeURIComponent(userId)}/time-tracking/stop`),
|
|
207
207
|
method: "POST",
|
|
208
|
-
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-
|
|
208
|
+
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-prerelease2972-staging", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2972-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
209
209
|
contentType: "application/json",
|
|
210
210
|
requestType: "json",
|
|
211
211
|
body: serializers.api.thera.timetracking.StopTimeTrackingRequest.jsonOrThrow(request, {
|
|
@@ -269,7 +269,7 @@ class TimetrackingApi {
|
|
|
269
269
|
const _response = yield core.fetcher({
|
|
270
270
|
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)}/users/${encodeURIComponent(userId)}/time-tracking/${encodeURIComponent(entryId)}`),
|
|
271
271
|
method: "PUT",
|
|
272
|
-
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-
|
|
272
|
+
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-prerelease2972-staging", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2972-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
273
273
|
contentType: "application/json",
|
|
274
274
|
requestType: "json",
|
|
275
275
|
body: serializers.api.thera.timetracking.UpdateTimeTrackingRequest.jsonOrThrow(request, {
|
|
@@ -326,7 +326,7 @@ class TimetrackingApi {
|
|
|
326
326
|
const _response = yield core.fetcher({
|
|
327
327
|
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)}/users/${encodeURIComponent(userId)}/time-tracking/${encodeURIComponent(entryId)}`),
|
|
328
328
|
method: "DELETE",
|
|
329
|
-
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-
|
|
329
|
+
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-prerelease2972-staging", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2972-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
330
330
|
contentType: "application/json",
|
|
331
331
|
requestType: "json",
|
|
332
332
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -385,7 +385,7 @@ class TimetrackingApi {
|
|
|
385
385
|
const _response = yield core.fetcher({
|
|
386
386
|
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)}/users/${encodeURIComponent(userId)}/time-tracking`),
|
|
387
387
|
method: "GET",
|
|
388
|
-
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-
|
|
388
|
+
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-prerelease2972-staging", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2972-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
389
389
|
contentType: "application/json",
|
|
390
390
|
queryParameters: _queryParams,
|
|
391
391
|
requestType: "json",
|
|
@@ -439,7 +439,7 @@ class TimetrackingApi {
|
|
|
439
439
|
const _response = yield core.fetcher({
|
|
440
440
|
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)}/invoices/${encodeURIComponent(invoiceId)}/time-tracking`),
|
|
441
441
|
method: "GET",
|
|
442
|
-
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-
|
|
442
|
+
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-prerelease2972-staging", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2972-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
443
443
|
contentType: "application/json",
|
|
444
444
|
requestType: "json",
|
|
445
445
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -496,7 +496,7 @@ class TimetrackingApi {
|
|
|
496
496
|
const _response = yield core.fetcher({
|
|
497
497
|
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)}/users/${encodeURIComponent(userId)}/time-tracking/bulk-update`),
|
|
498
498
|
method: "POST",
|
|
499
|
-
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-
|
|
499
|
+
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-prerelease2972-staging", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2972-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
500
500
|
contentType: "application/json",
|
|
501
501
|
requestType: "json",
|
|
502
502
|
body: serializers.api.thera.timetracking.BulkTimeEntryUpdateRequest.jsonOrThrow(request, {
|
|
@@ -560,7 +560,7 @@ class TimetrackingApi {
|
|
|
560
560
|
const _response = yield core.fetcher({
|
|
561
561
|
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)}/users/${encodeURIComponent(userId)}/time-tracking/history`),
|
|
562
562
|
method: "GET",
|
|
563
|
-
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-
|
|
563
|
+
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-prerelease2972-staging", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2972-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
564
564
|
contentType: "application/json",
|
|
565
565
|
queryParameters: _queryParams,
|
|
566
566
|
requestType: "json",
|
package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.d.ts
CHANGED
|
@@ -39,32 +39,29 @@ export declare class TpApi {
|
|
|
39
39
|
* legalStructure: "ccorp",
|
|
40
40
|
* naics: "string",
|
|
41
41
|
* callerUserBeneficiaryInformation: {
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
*
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
*
|
|
61
|
-
*
|
|
62
|
-
*
|
|
63
|
-
*
|
|
64
|
-
*
|
|
65
|
-
* title: "string",
|
|
66
|
-
* isControlPerson: true
|
|
67
|
-
* }
|
|
42
|
+
* dateOfBirth: "2023-01-15",
|
|
43
|
+
* emailAddress: "string",
|
|
44
|
+
* firstName: "string",
|
|
45
|
+
* lastName: "string",
|
|
46
|
+
* middleName: {
|
|
47
|
+
* "key": "value"
|
|
48
|
+
* },
|
|
49
|
+
* phoneNumber: "string",
|
|
50
|
+
* mailingAddress: {
|
|
51
|
+
* "key": "value"
|
|
52
|
+
* },
|
|
53
|
+
* physicalAddress: {
|
|
54
|
+
* city: "string",
|
|
55
|
+
* country: "string",
|
|
56
|
+
* line1: "string",
|
|
57
|
+
* line2: "string",
|
|
58
|
+
* postalCode: "string",
|
|
59
|
+
* state: "string"
|
|
60
|
+
* },
|
|
61
|
+
* tin: "string",
|
|
62
|
+
* ownershipPercentage: 1,
|
|
63
|
+
* title: "string",
|
|
64
|
+
* isControlPerson: true
|
|
68
65
|
* },
|
|
69
66
|
* beneficiaries: [{
|
|
70
67
|
* "key": "value"
|
package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js
CHANGED
|
@@ -72,32 +72,29 @@ class TpApi {
|
|
|
72
72
|
* legalStructure: "ccorp",
|
|
73
73
|
* naics: "string",
|
|
74
74
|
* callerUserBeneficiaryInformation: {
|
|
75
|
-
*
|
|
76
|
-
*
|
|
77
|
-
*
|
|
78
|
-
*
|
|
79
|
-
*
|
|
80
|
-
*
|
|
81
|
-
*
|
|
82
|
-
*
|
|
83
|
-
*
|
|
84
|
-
*
|
|
85
|
-
*
|
|
86
|
-
*
|
|
87
|
-
*
|
|
88
|
-
*
|
|
89
|
-
*
|
|
90
|
-
*
|
|
91
|
-
*
|
|
92
|
-
*
|
|
93
|
-
*
|
|
94
|
-
*
|
|
95
|
-
*
|
|
96
|
-
*
|
|
97
|
-
*
|
|
98
|
-
* title: "string",
|
|
99
|
-
* isControlPerson: true
|
|
100
|
-
* }
|
|
75
|
+
* dateOfBirth: "2023-01-15",
|
|
76
|
+
* emailAddress: "string",
|
|
77
|
+
* firstName: "string",
|
|
78
|
+
* lastName: "string",
|
|
79
|
+
* middleName: {
|
|
80
|
+
* "key": "value"
|
|
81
|
+
* },
|
|
82
|
+
* phoneNumber: "string",
|
|
83
|
+
* mailingAddress: {
|
|
84
|
+
* "key": "value"
|
|
85
|
+
* },
|
|
86
|
+
* physicalAddress: {
|
|
87
|
+
* city: "string",
|
|
88
|
+
* country: "string",
|
|
89
|
+
* line1: "string",
|
|
90
|
+
* line2: "string",
|
|
91
|
+
* postalCode: "string",
|
|
92
|
+
* state: "string"
|
|
93
|
+
* },
|
|
94
|
+
* tin: "string",
|
|
95
|
+
* ownershipPercentage: 1,
|
|
96
|
+
* title: "string",
|
|
97
|
+
* isControlPerson: true
|
|
101
98
|
* },
|
|
102
99
|
* beneficiaries: [{
|
|
103
100
|
* "key": "value"
|
|
@@ -113,7 +110,7 @@ class TpApi {
|
|
|
113
110
|
const _response = yield core.fetcher({
|
|
114
111
|
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`),
|
|
115
112
|
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": "0.0.1-
|
|
113
|
+
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-prerelease2972-staging", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2972-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
117
114
|
contentType: "application/json",
|
|
118
115
|
requestType: "json",
|
|
119
116
|
body: serializers.api.thera.tp.AddCompanyBankingDetailsRequest.jsonOrThrow(request, {
|
|
@@ -167,7 +164,7 @@ class TpApi {
|
|
|
167
164
|
const _response = yield core.fetcher({
|
|
168
165
|
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"),
|
|
169
166
|
method: "GET",
|
|
170
|
-
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-
|
|
167
|
+
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-prerelease2972-staging", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2972-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
171
168
|
contentType: "application/json",
|
|
172
169
|
requestType: "json",
|
|
173
170
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -228,7 +225,7 @@ class TpApi {
|
|
|
228
225
|
const _response = yield core.fetcher({
|
|
229
226
|
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`),
|
|
230
227
|
method: "POST",
|
|
231
|
-
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-
|
|
228
|
+
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-prerelease2972-staging", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2972-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
232
229
|
contentType: "application/json",
|
|
233
230
|
requestType: "json",
|
|
234
231
|
body: serializers.api.thera.tp.ProcessFundsTransfer.jsonOrThrow(request, {
|
|
@@ -280,7 +277,7 @@ class TpApi {
|
|
|
280
277
|
const _response = yield core.fetcher({
|
|
281
278
|
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`),
|
|
282
279
|
method: "POST",
|
|
283
|
-
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-
|
|
280
|
+
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-prerelease2972-staging", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2972-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
284
281
|
contentType: "application/json",
|
|
285
282
|
requestType: "json",
|
|
286
283
|
body: serializers.api.thera.tp.CreateCounterPartyForBankingRequest.jsonOrThrow(request, {
|
|
@@ -329,7 +326,7 @@ class TpApi {
|
|
|
329
326
|
const _response = yield core.fetcher({
|
|
330
327
|
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`),
|
|
331
328
|
method: "GET",
|
|
332
|
-
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-
|
|
329
|
+
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-prerelease2972-staging", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2972-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
333
330
|
contentType: "application/json",
|
|
334
331
|
requestType: "json",
|
|
335
332
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -384,7 +381,7 @@ class TpApi {
|
|
|
384
381
|
const _response = yield core.fetcher({
|
|
385
382
|
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)}`),
|
|
386
383
|
method: "GET",
|
|
387
|
-
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-
|
|
384
|
+
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-prerelease2972-staging", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2972-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
388
385
|
contentType: "application/json",
|
|
389
386
|
queryParameters: _queryParams,
|
|
390
387
|
requestType: "json",
|
|
@@ -435,7 +432,7 @@ class TpApi {
|
|
|
435
432
|
const _response = yield core.fetcher({
|
|
436
433
|
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`),
|
|
437
434
|
method: "POST",
|
|
438
|
-
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-
|
|
435
|
+
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-prerelease2972-staging", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2972-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
439
436
|
contentType: "application/json",
|
|
440
437
|
requestType: "json",
|
|
441
438
|
body: serializers.api.thera.tp.TransferFundsToOmnibusAccount.jsonOrThrow(request, {
|
|
@@ -485,7 +482,7 @@ class TpApi {
|
|
|
485
482
|
const _response = yield core.fetcher({
|
|
486
483
|
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)}`),
|
|
487
484
|
method: "GET",
|
|
488
|
-
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-
|
|
485
|
+
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-prerelease2972-staging", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2972-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
489
486
|
contentType: "application/json",
|
|
490
487
|
requestType: "json",
|
|
491
488
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -538,7 +535,7 @@ class TpApi {
|
|
|
538
535
|
const _response = yield core.fetcher({
|
|
539
536
|
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)}`),
|
|
540
537
|
method: "GET",
|
|
541
|
-
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-
|
|
538
|
+
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-prerelease2972-staging", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2972-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
542
539
|
contentType: "application/json",
|
|
543
540
|
requestType: "json",
|
|
544
541
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -602,7 +599,7 @@ class TpApi {
|
|
|
602
599
|
const _response = yield core.fetcher({
|
|
603
600
|
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"),
|
|
604
601
|
method: "POST",
|
|
605
|
-
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-
|
|
602
|
+
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-prerelease2972-staging", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2972-staging", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
606
603
|
contentType: "application/json",
|
|
607
604
|
queryParameters: _queryParams,
|
|
608
605
|
requestType: "json",
|
|
@@ -11,32 +11,29 @@ import * as TheraApi from "../../../../../../../../../../index";
|
|
|
11
11
|
* legalStructure: "ccorp",
|
|
12
12
|
* naics: "string",
|
|
13
13
|
* callerUserBeneficiaryInformation: {
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
* title: "string",
|
|
38
|
-
* isControlPerson: true
|
|
39
|
-
* }
|
|
14
|
+
* dateOfBirth: "2023-01-15",
|
|
15
|
+
* emailAddress: "string",
|
|
16
|
+
* firstName: "string",
|
|
17
|
+
* lastName: "string",
|
|
18
|
+
* middleName: {
|
|
19
|
+
* "key": "value"
|
|
20
|
+
* },
|
|
21
|
+
* phoneNumber: "string",
|
|
22
|
+
* mailingAddress: {
|
|
23
|
+
* "key": "value"
|
|
24
|
+
* },
|
|
25
|
+
* physicalAddress: {
|
|
26
|
+
* city: "string",
|
|
27
|
+
* country: "string",
|
|
28
|
+
* line1: "string",
|
|
29
|
+
* line2: "string",
|
|
30
|
+
* postalCode: "string",
|
|
31
|
+
* state: "string"
|
|
32
|
+
* },
|
|
33
|
+
* tin: "string",
|
|
34
|
+
* ownershipPercentage: 1,
|
|
35
|
+
* title: "string",
|
|
36
|
+
* isControlPerson: true
|
|
40
37
|
* },
|
|
41
38
|
* beneficiaries: [{
|
|
42
39
|
* "key": "value"
|
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-
|
|
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-prerelease2972-staging", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2972-staging", "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-
|
|
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-prerelease2972-staging", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2972-staging", "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-
|
|
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-prerelease2972-staging", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2972-staging", "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",
|
|
@@ -12,7 +12,7 @@ export interface CompanyBankingDetails {
|
|
|
12
12
|
* Whoever is filling out the onboarding form must fill out beneficiary information even if they don't
|
|
13
13
|
* own 25% or more of the company.
|
|
14
14
|
*/
|
|
15
|
-
callerUserBeneficiaryInformation: TheraApi.db.
|
|
15
|
+
callerUserBeneficiaryInformation: TheraApi.db.CompanyBeneficiary;
|
|
16
16
|
/**
|
|
17
17
|
* Must include anyone with 25% or greater ownership (excluding the caller user, since they will be covered
|
|
18
18
|
* by the field `callerUserBeneficiaryInformation`).
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as TheraApi from "../../../../../index";
|
|
5
|
+
export interface StripeAuBecsDebitPaymentMethodDetails {
|
|
6
|
+
bsbNumber: string;
|
|
7
|
+
fingerprint: string;
|
|
8
|
+
last4: string;
|
|
9
|
+
verificationStatus: TheraApi.db.StripeBankAccountVerificationStatus;
|
|
10
|
+
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as TheraApi from "../../../../../index";
|
|
5
|
-
export type StripeFcPaymentMethod = TheraApi.db.StripeFcPaymentMethod.UsBankAccount | TheraApi.db.StripeFcPaymentMethod.Card | TheraApi.db.StripeFcPaymentMethod.Sepa | TheraApi.db.StripeFcPaymentMethod.AcssDebit;
|
|
5
|
+
export type StripeFcPaymentMethod = TheraApi.db.StripeFcPaymentMethod.UsBankAccount | TheraApi.db.StripeFcPaymentMethod.Card | TheraApi.db.StripeFcPaymentMethod.Sepa | TheraApi.db.StripeFcPaymentMethod.AcssDebit | TheraApi.db.StripeFcPaymentMethod.AuBecsDebit;
|
|
6
6
|
export declare namespace StripeFcPaymentMethod {
|
|
7
7
|
interface UsBankAccount extends TheraApi.db.StripeUsBankAccountPaymentMethodDetails {
|
|
8
8
|
type: "usBankAccount";
|
|
@@ -16,4 +16,7 @@ export declare namespace StripeFcPaymentMethod {
|
|
|
16
16
|
interface AcssDebit extends TheraApi.db.StripeAcssDebitAccountPaymentMethodDetails {
|
|
17
17
|
type: "acssDebit";
|
|
18
18
|
}
|
|
19
|
+
interface AuBecsDebit extends TheraApi.db.StripeAuBecsDebitPaymentMethodDetails {
|
|
20
|
+
type: "auBecsDebit";
|
|
21
|
+
}
|
|
19
22
|
}
|
|
@@ -8,5 +8,6 @@ export * from "./StripeFcPaymentMethod";
|
|
|
8
8
|
export * from "./StripeSepaPaymentMethodDetails";
|
|
9
9
|
export * from "./StripeUsBankAccountPaymentMethodDetails";
|
|
10
10
|
export * from "./StripeAcssDebitAccountPaymentMethodDetails";
|
|
11
|
+
export * from "./StripeAuBecsDebitPaymentMethodDetails";
|
|
11
12
|
export * from "./StripeBankAccountVerificationStatus";
|
|
12
13
|
export * from "./StripeCardPaymentMethodDetails";
|
|
@@ -24,5 +24,6 @@ __exportStar(require("./StripeFcPaymentMethod"), exports);
|
|
|
24
24
|
__exportStar(require("./StripeSepaPaymentMethodDetails"), exports);
|
|
25
25
|
__exportStar(require("./StripeUsBankAccountPaymentMethodDetails"), exports);
|
|
26
26
|
__exportStar(require("./StripeAcssDebitAccountPaymentMethodDetails"), exports);
|
|
27
|
+
__exportStar(require("./StripeAuBecsDebitPaymentMethodDetails"), exports);
|
|
27
28
|
__exportStar(require("./StripeBankAccountVerificationStatus"), exports);
|
|
28
29
|
__exportStar(require("./StripeCardPaymentMethodDetails"), exports);
|
|
@@ -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 { StripeUsBankAccountStatusResponse } from "./StripeUsBankAccountStatusResponse";
|
|
8
|
+
export declare const AuBecsDebitPaymentMethodResponse: core.serialization.ObjectSchema<serializers.api.thera.bank.AuBecsDebitPaymentMethodResponse.Raw, TheraApi.api.thera.bank.AuBecsDebitPaymentMethodResponse>;
|
|
9
|
+
export declare namespace AuBecsDebitPaymentMethodResponse {
|
|
10
|
+
interface Raw {
|
|
11
|
+
last4: string;
|
|
12
|
+
bsbNumber: string;
|
|
13
|
+
status: StripeUsBankAccountStatusResponse.Raw;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.AuBecsDebitPaymentMethodResponse = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../../../../../../../core"));
|
|
41
|
+
const StripeUsBankAccountStatusResponse_1 = require("./StripeUsBankAccountStatusResponse");
|
|
42
|
+
exports.AuBecsDebitPaymentMethodResponse = core.serialization.object({
|
|
43
|
+
last4: core.serialization.string(),
|
|
44
|
+
bsbNumber: core.serialization.string(),
|
|
45
|
+
status: StripeUsBankAccountStatusResponse_1.StripeUsBankAccountStatusResponse,
|
|
46
|
+
});
|
|
@@ -6,13 +6,17 @@ import * as TheraApi from "../../../../../../../../../../api/index";
|
|
|
6
6
|
import * as core from "../../../../../../../../../../core";
|
|
7
7
|
import { InvoicePayment } from "./InvoicePayment";
|
|
8
8
|
import { EorPayIn } from "./EorPayIn";
|
|
9
|
+
import { W2SubscriptionPayIn } from "./W2SubscriptionPayIn";
|
|
9
10
|
export declare const HistoricPaymentDetail: core.serialization.Schema<serializers.api.thera.bank.HistoricPaymentDetail.Raw, TheraApi.api.thera.bank.HistoricPaymentDetail>;
|
|
10
11
|
export declare namespace HistoricPaymentDetail {
|
|
11
|
-
type Raw = HistoricPaymentDetail.InvoicePayment | HistoricPaymentDetail.EorPayIn;
|
|
12
|
+
type Raw = HistoricPaymentDetail.InvoicePayment | HistoricPaymentDetail.EorPayIn | HistoricPaymentDetail.W2SubscriptionFee;
|
|
12
13
|
interface InvoicePayment extends InvoicePayment.Raw {
|
|
13
14
|
type: "invoicePayment";
|
|
14
15
|
}
|
|
15
16
|
interface EorPayIn extends EorPayIn.Raw {
|
|
16
17
|
type: "eorPayIn";
|
|
17
18
|
}
|
|
19
|
+
interface W2SubscriptionFee extends W2SubscriptionPayIn.Raw {
|
|
20
|
+
type: "w2SubscriptionFee";
|
|
21
|
+
}
|
|
18
22
|
}
|
|
@@ -40,10 +40,12 @@ exports.HistoricPaymentDetail = void 0;
|
|
|
40
40
|
const core = __importStar(require("../../../../../../../../../../core"));
|
|
41
41
|
const InvoicePayment_1 = require("./InvoicePayment");
|
|
42
42
|
const EorPayIn_1 = require("./EorPayIn");
|
|
43
|
+
const W2SubscriptionPayIn_1 = require("./W2SubscriptionPayIn");
|
|
43
44
|
exports.HistoricPaymentDetail = core.serialization
|
|
44
45
|
.union("type", {
|
|
45
46
|
invoicePayment: InvoicePayment_1.InvoicePayment,
|
|
46
47
|
eorPayIn: EorPayIn_1.EorPayIn,
|
|
48
|
+
w2SubscriptionFee: W2SubscriptionPayIn_1.W2SubscriptionPayIn,
|
|
47
49
|
})
|
|
48
50
|
.transform({
|
|
49
51
|
transform: (value) => value,
|
|
@@ -8,9 +8,10 @@ import { CardPaymentMethodResponse } from "./CardPaymentMethodResponse";
|
|
|
8
8
|
import { UsBankAccountPaymentMethodResponse } from "./UsBankAccountPaymentMethodResponse";
|
|
9
9
|
import { SepaPaymentMethodResponse } from "./SepaPaymentMethodResponse";
|
|
10
10
|
import { AcssDebitPaymentMethodResponse } from "./AcssDebitPaymentMethodResponse";
|
|
11
|
+
import { AuBecsDebitPaymentMethodResponse } from "./AuBecsDebitPaymentMethodResponse";
|
|
11
12
|
export declare const PaymentMethodDetailsResponse: core.serialization.Schema<serializers.api.thera.bank.PaymentMethodDetailsResponse.Raw, TheraApi.api.thera.bank.PaymentMethodDetailsResponse>;
|
|
12
13
|
export declare namespace PaymentMethodDetailsResponse {
|
|
13
|
-
type Raw = PaymentMethodDetailsResponse.Card | PaymentMethodDetailsResponse.UsBankAccount | PaymentMethodDetailsResponse.SepaBankAccount | PaymentMethodDetailsResponse.AcssDebit;
|
|
14
|
+
type Raw = PaymentMethodDetailsResponse.Card | PaymentMethodDetailsResponse.UsBankAccount | PaymentMethodDetailsResponse.SepaBankAccount | PaymentMethodDetailsResponse.AcssDebit | PaymentMethodDetailsResponse.AuBecsDebit;
|
|
14
15
|
interface Card extends CardPaymentMethodResponse.Raw {
|
|
15
16
|
type: "card";
|
|
16
17
|
}
|
|
@@ -23,4 +24,7 @@ export declare namespace PaymentMethodDetailsResponse {
|
|
|
23
24
|
interface AcssDebit extends AcssDebitPaymentMethodResponse.Raw {
|
|
24
25
|
type: "acssDebit";
|
|
25
26
|
}
|
|
27
|
+
interface AuBecsDebit extends AuBecsDebitPaymentMethodResponse.Raw {
|
|
28
|
+
type: "auBecsDebit";
|
|
29
|
+
}
|
|
26
30
|
}
|
|
@@ -42,12 +42,14 @@ const CardPaymentMethodResponse_1 = require("./CardPaymentMethodResponse");
|
|
|
42
42
|
const UsBankAccountPaymentMethodResponse_1 = require("./UsBankAccountPaymentMethodResponse");
|
|
43
43
|
const SepaPaymentMethodResponse_1 = require("./SepaPaymentMethodResponse");
|
|
44
44
|
const AcssDebitPaymentMethodResponse_1 = require("./AcssDebitPaymentMethodResponse");
|
|
45
|
+
const AuBecsDebitPaymentMethodResponse_1 = require("./AuBecsDebitPaymentMethodResponse");
|
|
45
46
|
exports.PaymentMethodDetailsResponse = core.serialization
|
|
46
47
|
.union("type", {
|
|
47
48
|
card: CardPaymentMethodResponse_1.CardPaymentMethodResponse,
|
|
48
49
|
usBankAccount: UsBankAccountPaymentMethodResponse_1.UsBankAccountPaymentMethodResponse,
|
|
49
50
|
sepaBankAccount: SepaPaymentMethodResponse_1.SepaPaymentMethodResponse,
|
|
50
51
|
acssDebit: AcssDebitPaymentMethodResponse_1.AcssDebitPaymentMethodResponse,
|
|
52
|
+
auBecsDebit: AuBecsDebitPaymentMethodResponse_1.AuBecsDebitPaymentMethodResponse,
|
|
51
53
|
})
|
|
52
54
|
.transform({
|
|
53
55
|
transform: (value) => value,
|