@thera-hr/api-sdk 0.0.1-prerelease2997-dev-anthony → 0.0.1-prerelease2999-dev-anthony
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +1 -1
- package/api/resources/api/resources/dev/resources/dev/client/Client.js +1 -1
- package/api/resources/api/resources/external/resources/externalApi/client/Client.js +1 -1
- package/api/resources/api/resources/services/resources/file/client/Client.js +5 -5
- package/api/resources/api/resources/thera/resources/accounting/resources/accountingApi/client/Client.js +4 -4
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +33 -33
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/HistoricPaymentDetail.d.ts +4 -1
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/PaymentMethodDetailsResponse.d.ts +1 -4
- 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/index.d.ts +1 -1
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +1 -1
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.d.ts +10 -0
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.js +75 -23
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletHistory.d.ts +13 -0
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletHistoryDestination.d.ts +7 -0
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletHistoryResponse.d.ts +8 -0
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletHistorySource.d.ts +7 -0
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletHistorySource.js +5 -0
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.d.ts +4 -0
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.js +4 -0
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +18 -18
- package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +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 +5 -1
- package/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +15 -11
- package/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/requests/AddCompanyBankingDetailsRequest.d.ts +3 -0
- package/api/resources/api/resources/thera/resources/tp/resources/tpApi/types/ProcessFundsTransfer.d.ts +1 -0
- package/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
- package/api/resources/db/resources/company/types/CompanyBeneficiary.d.ts +1 -0
- package/api/resources/db/resources/company/types/TpCompanyInformation.d.ts +1 -0
- package/api/resources/db/resources/paymentMethod/types/StripeFcPaymentMethod.d.ts +1 -4
- package/api/resources/db/resources/paymentMethod/types/index.d.ts +0 -1
- package/api/resources/db/resources/paymentMethod/types/index.js +0 -1
- 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/HistoricPaymentDetail.d.ts +4 -1
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/PaymentMethodDetailsResponse.d.ts +1 -4
- 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 +1 -1
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +1 -1
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.d.ts +10 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.js +75 -23
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletHistory.d.ts +13 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletHistory.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletHistoryDestination.d.ts +7 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletHistoryDestination.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletHistoryResponse.d.ts +8 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletHistoryResponse.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletHistorySource.d.ts +7 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletHistorySource.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.d.ts +4 -0
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.js +4 -0
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +18 -18
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +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 +5 -1
- package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +15 -11
- package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/requests/AddCompanyBankingDetailsRequest.d.ts +3 -0
- package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/types/ProcessFundsTransfer.d.ts +1 -0
- package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
- package/dist/api/resources/db/resources/company/types/CompanyBeneficiary.d.ts +1 -0
- package/dist/api/resources/db/resources/company/types/TpCompanyInformation.d.ts +1 -0
- package/dist/api/resources/db/resources/paymentMethod/types/StripeFcPaymentMethod.d.ts +1 -4
- package/dist/api/resources/db/resources/paymentMethod/types/index.d.ts +0 -1
- package/dist/api/resources/db/resources/paymentMethod/types/index.js +0 -1
- 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 +1 -5
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/PaymentMethodDetailsResponse.js +0 -2
- 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/{AuBecsDebitPaymentMethodResponse.js → W2SubscriptionPayIn.js} +5 -6
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +1 -1
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +1 -1
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletHistory.d.ts +20 -0
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletHistory.js +51 -0
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletHistoryDestination.d.ts +13 -0
- package/{serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/AuBecsDebitPaymentMethodResponse.js → dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletHistoryDestination.js} +4 -6
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletHistoryResponse.d.ts +14 -0
- package/dist/serialization/resources/{db/resources/paymentMethod/types/StripeAuBecsDebitPaymentMethodDetails.js → api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletHistoryResponse.js} +6 -8
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletHistorySource.d.ts +13 -0
- package/{serialization/resources/db/resources/paymentMethod/types/StripeAuBecsDebitPaymentMethodDetails.js → dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletHistorySource.js} +5 -8
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.d.ts +4 -0
- package/dist/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.js +4 -0
- package/dist/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/ProcessFundsTransfer.d.ts +1 -0
- package/dist/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/ProcessFundsTransfer.js +1 -0
- package/dist/serialization/resources/db/resources/company/types/CompanyBeneficiary.d.ts +1 -0
- package/dist/serialization/resources/db/resources/company/types/CompanyBeneficiary.js +1 -0
- package/dist/serialization/resources/db/resources/company/types/TpCompanyInformation.d.ts +1 -0
- package/dist/serialization/resources/db/resources/company/types/TpCompanyInformation.js +1 -0
- package/dist/serialization/resources/db/resources/paymentMethod/types/StripeFcPaymentMethod.d.ts +1 -5
- package/dist/serialization/resources/db/resources/paymentMethod/types/StripeFcPaymentMethod.js +0 -2
- package/dist/serialization/resources/db/resources/paymentMethod/types/index.d.ts +0 -1
- package/dist/serialization/resources/db/resources/paymentMethod/types/index.js +0 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +67 -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 +1 -5
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/PaymentMethodDetailsResponse.js +0 -2
- 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 +1 -1
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +1 -1
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletHistory.d.ts +20 -0
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletHistory.js +51 -0
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletHistoryDestination.d.ts +13 -0
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletHistoryDestination.js +44 -0
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletHistoryResponse.d.ts +14 -0
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletHistoryResponse.js +45 -0
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletHistorySource.d.ts +13 -0
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletHistorySource.js +44 -0
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.d.ts +4 -0
- package/serialization/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/index.js +4 -0
- package/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/ProcessFundsTransfer.d.ts +1 -0
- package/serialization/resources/api/resources/thera/resources/tp/resources/tpApi/types/ProcessFundsTransfer.js +1 -0
- package/serialization/resources/db/resources/company/types/CompanyBeneficiary.d.ts +1 -0
- package/serialization/resources/db/resources/company/types/CompanyBeneficiary.js +1 -0
- package/serialization/resources/db/resources/company/types/TpCompanyInformation.d.ts +1 -0
- package/serialization/resources/db/resources/company/types/TpCompanyInformation.js +1 -0
- package/serialization/resources/db/resources/paymentMethod/types/StripeFcPaymentMethod.d.ts +1 -5
- package/serialization/resources/db/resources/paymentMethod/types/StripeFcPaymentMethod.js +0 -2
- package/serialization/resources/db/resources/paymentMethod/types/index.d.ts +0 -1
- package/serialization/resources/db/resources/paymentMethod/types/index.js +0 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/AuBecsDebitPaymentMethodResponse.d.ts +0 -9
- package/api/resources/db/resources/paymentMethod/types/StripeAuBecsDebitPaymentMethodDetails.d.ts +0 -10
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/AuBecsDebitPaymentMethodResponse.d.ts +0 -9
- package/dist/api/resources/db/resources/paymentMethod/types/StripeAuBecsDebitPaymentMethodDetails.d.ts +0 -10
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/AuBecsDebitPaymentMethodResponse.d.ts +0 -15
- package/dist/serialization/resources/db/resources/paymentMethod/types/StripeAuBecsDebitPaymentMethodDetails.d.ts +0 -16
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/AuBecsDebitPaymentMethodResponse.d.ts +0 -15
- package/serialization/resources/db/resources/paymentMethod/types/StripeAuBecsDebitPaymentMethodDetails.d.ts +0 -16
- /package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/{AuBecsDebitPaymentMethodResponse.js → W2SubscriptionPayIn.js} +0 -0
- /package/api/resources/{db/resources/paymentMethod/types/StripeAuBecsDebitPaymentMethodDetails.js → api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletHistory.js} +0 -0
- /package/{dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/AuBecsDebitPaymentMethodResponse.js → api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletHistoryDestination.js} +0 -0
- /package/{dist/api/resources/db/resources/paymentMethod/types/StripeAuBecsDebitPaymentMethodDetails.js → api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/types/WalletHistoryResponse.js} +0 -0
|
@@ -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-prerelease2999-dev-anthony", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2999-dev-anthony", "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-prerelease2999-dev-anthony", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2999-dev-anthony", "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-prerelease2999-dev-anthony", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2999-dev-anthony", "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-prerelease2999-dev-anthony", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2999-dev-anthony", "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-prerelease2999-dev-anthony", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2999-dev-anthony", "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-prerelease2999-dev-anthony", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2999-dev-anthony", "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-prerelease2999-dev-anthony", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2999-dev-anthony", "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-prerelease2999-dev-anthony", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2999-dev-anthony", "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-prerelease2999-dev-anthony", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2999-dev-anthony", "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
|
@@ -61,6 +61,9 @@ export declare class TpApi {
|
|
|
61
61
|
* tin: "string",
|
|
62
62
|
* ownershipPercentage: 1,
|
|
63
63
|
* title: "string",
|
|
64
|
+
* makeOrgAdmin: {
|
|
65
|
+
* "key": "value"
|
|
66
|
+
* },
|
|
64
67
|
* isControlPerson: true
|
|
65
68
|
* },
|
|
66
69
|
* beneficiaries: [{
|
|
@@ -95,7 +98,8 @@ export declare class TpApi {
|
|
|
95
98
|
* direction: "string",
|
|
96
99
|
* paymentMethodId: "string",
|
|
97
100
|
* secCode: "string",
|
|
98
|
-
* service: "string"
|
|
101
|
+
* service: "string",
|
|
102
|
+
* revenueAmount: "string"
|
|
99
103
|
* })
|
|
100
104
|
*/
|
|
101
105
|
processTreasuryPrimePayment(companyId: string, request: TheraApi.api.thera.tp.ProcessFundsTransfer, requestOptions?: TpApi.RequestOptions): Promise<unknown>;
|
package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js
CHANGED
|
@@ -94,6 +94,9 @@ class TpApi {
|
|
|
94
94
|
* tin: "string",
|
|
95
95
|
* ownershipPercentage: 1,
|
|
96
96
|
* title: "string",
|
|
97
|
+
* makeOrgAdmin: {
|
|
98
|
+
* "key": "value"
|
|
99
|
+
* },
|
|
97
100
|
* isControlPerson: true
|
|
98
101
|
* },
|
|
99
102
|
* beneficiaries: [{
|
|
@@ -110,7 +113,7 @@ class TpApi {
|
|
|
110
113
|
const _response = yield core.fetcher({
|
|
111
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)), `companies/${encodeURIComponent(companyId)}/banking-details`),
|
|
112
115
|
method: "POST",
|
|
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-
|
|
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-prerelease2999-dev-anthony", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2999-dev-anthony", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
114
117
|
contentType: "application/json",
|
|
115
118
|
requestType: "json",
|
|
116
119
|
body: serializers.api.thera.tp.AddCompanyBankingDetailsRequest.jsonOrThrow(request, {
|
|
@@ -164,7 +167,7 @@ class TpApi {
|
|
|
164
167
|
const _response = yield core.fetcher({
|
|
165
168
|
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"),
|
|
166
169
|
method: "GET",
|
|
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-
|
|
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-prerelease2999-dev-anthony", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2999-dev-anthony", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
168
171
|
contentType: "application/json",
|
|
169
172
|
requestType: "json",
|
|
170
173
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -215,7 +218,8 @@ class TpApi {
|
|
|
215
218
|
* direction: "string",
|
|
216
219
|
* paymentMethodId: "string",
|
|
217
220
|
* secCode: "string",
|
|
218
|
-
* service: "string"
|
|
221
|
+
* service: "string",
|
|
222
|
+
* revenueAmount: "string"
|
|
219
223
|
* })
|
|
220
224
|
*/
|
|
221
225
|
processTreasuryPrimePayment(companyId, request, requestOptions) {
|
|
@@ -224,7 +228,7 @@ class TpApi {
|
|
|
224
228
|
const _response = yield core.fetcher({
|
|
225
229
|
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`),
|
|
226
230
|
method: "POST",
|
|
227
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-
|
|
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-prerelease2999-dev-anthony", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2999-dev-anthony", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
228
232
|
contentType: "application/json",
|
|
229
233
|
requestType: "json",
|
|
230
234
|
body: serializers.api.thera.tp.ProcessFundsTransfer.jsonOrThrow(request, {
|
|
@@ -276,7 +280,7 @@ class TpApi {
|
|
|
276
280
|
const _response = yield core.fetcher({
|
|
277
281
|
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`),
|
|
278
282
|
method: "POST",
|
|
279
|
-
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-
|
|
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-prerelease2999-dev-anthony", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2999-dev-anthony", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
280
284
|
contentType: "application/json",
|
|
281
285
|
requestType: "json",
|
|
282
286
|
body: serializers.api.thera.tp.CreateCounterPartyForBankingRequest.jsonOrThrow(request, {
|
|
@@ -325,7 +329,7 @@ class TpApi {
|
|
|
325
329
|
const _response = yield core.fetcher({
|
|
326
330
|
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`),
|
|
327
331
|
method: "GET",
|
|
328
|
-
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-
|
|
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-prerelease2999-dev-anthony", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2999-dev-anthony", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
329
333
|
contentType: "application/json",
|
|
330
334
|
requestType: "json",
|
|
331
335
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -380,7 +384,7 @@ class TpApi {
|
|
|
380
384
|
const _response = yield core.fetcher({
|
|
381
385
|
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)}`),
|
|
382
386
|
method: "GET",
|
|
383
|
-
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-
|
|
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-prerelease2999-dev-anthony", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2999-dev-anthony", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
384
388
|
contentType: "application/json",
|
|
385
389
|
queryParameters: _queryParams,
|
|
386
390
|
requestType: "json",
|
|
@@ -431,7 +435,7 @@ class TpApi {
|
|
|
431
435
|
const _response = yield core.fetcher({
|
|
432
436
|
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`),
|
|
433
437
|
method: "POST",
|
|
434
|
-
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-
|
|
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-prerelease2999-dev-anthony", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2999-dev-anthony", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
435
439
|
contentType: "application/json",
|
|
436
440
|
requestType: "json",
|
|
437
441
|
body: serializers.api.thera.tp.TransferFundsToOmnibusAccount.jsonOrThrow(request, {
|
|
@@ -481,7 +485,7 @@ class TpApi {
|
|
|
481
485
|
const _response = yield core.fetcher({
|
|
482
486
|
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)}`),
|
|
483
487
|
method: "GET",
|
|
484
|
-
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-
|
|
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-prerelease2999-dev-anthony", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2999-dev-anthony", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
485
489
|
contentType: "application/json",
|
|
486
490
|
requestType: "json",
|
|
487
491
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -534,7 +538,7 @@ class TpApi {
|
|
|
534
538
|
const _response = yield core.fetcher({
|
|
535
539
|
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)}`),
|
|
536
540
|
method: "GET",
|
|
537
|
-
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-
|
|
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-prerelease2999-dev-anthony", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2999-dev-anthony", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
538
542
|
contentType: "application/json",
|
|
539
543
|
requestType: "json",
|
|
540
544
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -598,7 +602,7 @@ class TpApi {
|
|
|
598
602
|
const _response = yield core.fetcher({
|
|
599
603
|
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"),
|
|
600
604
|
method: "POST",
|
|
601
|
-
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-
|
|
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-prerelease2999-dev-anthony", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2999-dev-anthony", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
602
606
|
contentType: "application/json",
|
|
603
607
|
queryParameters: _queryParams,
|
|
604
608
|
requestType: "json",
|
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-prerelease2999-dev-anthony", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2999-dev-anthony", "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-prerelease2999-dev-anthony", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2999-dev-anthony", "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-prerelease2999-dev-anthony", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2999-dev-anthony", "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",
|
|
@@ -17,6 +17,7 @@ export interface CompanyBeneficiary {
|
|
|
17
17
|
tin: string;
|
|
18
18
|
ownershipPercentage: number;
|
|
19
19
|
title: string;
|
|
20
|
+
makeOrgAdmin?: boolean;
|
|
20
21
|
/**
|
|
21
22
|
* Person with significant responsibility to control, manage or direct the business. Exactly one person must be
|
|
22
23
|
* given this role at the company.
|
|
@@ -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;
|
|
6
6
|
export declare namespace StripeFcPaymentMethod {
|
|
7
7
|
interface UsBankAccount extends TheraApi.db.StripeUsBankAccountPaymentMethodDetails {
|
|
8
8
|
type: "usBankAccount";
|
|
@@ -16,7 +16,4 @@ 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
|
-
}
|
|
22
19
|
}
|
|
@@ -8,6 +8,5 @@ export * from "./StripeFcPaymentMethod";
|
|
|
8
8
|
export * from "./StripeSepaPaymentMethodDetails";
|
|
9
9
|
export * from "./StripeUsBankAccountPaymentMethodDetails";
|
|
10
10
|
export * from "./StripeAcssDebitAccountPaymentMethodDetails";
|
|
11
|
-
export * from "./StripeAuBecsDebitPaymentMethodDetails";
|
|
12
11
|
export * from "./StripeBankAccountVerificationStatus";
|
|
13
12
|
export * from "./StripeCardPaymentMethodDetails";
|
|
@@ -24,6 +24,5 @@ __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);
|
|
28
27
|
__exportStar(require("./StripeBankAccountVerificationStatus"), exports);
|
|
29
28
|
__exportStar(require("./StripeCardPaymentMethodDetails"), exports);
|
|
@@ -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,10 +8,9 @@ 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";
|
|
12
11
|
export declare const PaymentMethodDetailsResponse: core.serialization.Schema<serializers.api.thera.bank.PaymentMethodDetailsResponse.Raw, TheraApi.api.thera.bank.PaymentMethodDetailsResponse>;
|
|
13
12
|
export declare namespace PaymentMethodDetailsResponse {
|
|
14
|
-
type Raw = PaymentMethodDetailsResponse.Card | PaymentMethodDetailsResponse.UsBankAccount | PaymentMethodDetailsResponse.SepaBankAccount | PaymentMethodDetailsResponse.AcssDebit
|
|
13
|
+
type Raw = PaymentMethodDetailsResponse.Card | PaymentMethodDetailsResponse.UsBankAccount | PaymentMethodDetailsResponse.SepaBankAccount | PaymentMethodDetailsResponse.AcssDebit;
|
|
15
14
|
interface Card extends CardPaymentMethodResponse.Raw {
|
|
16
15
|
type: "card";
|
|
17
16
|
}
|
|
@@ -24,7 +23,4 @@ export declare namespace PaymentMethodDetailsResponse {
|
|
|
24
23
|
interface AcssDebit extends AcssDebitPaymentMethodResponse.Raw {
|
|
25
24
|
type: "acssDebit";
|
|
26
25
|
}
|
|
27
|
-
interface AuBecsDebit extends AuBecsDebitPaymentMethodResponse.Raw {
|
|
28
|
-
type: "auBecsDebit";
|
|
29
|
-
}
|
|
30
26
|
}
|
|
@@ -42,14 +42,12 @@ 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");
|
|
46
45
|
exports.PaymentMethodDetailsResponse = core.serialization
|
|
47
46
|
.union("type", {
|
|
48
47
|
card: CardPaymentMethodResponse_1.CardPaymentMethodResponse,
|
|
49
48
|
usBankAccount: UsBankAccountPaymentMethodResponse_1.UsBankAccountPaymentMethodResponse,
|
|
50
49
|
sepaBankAccount: SepaPaymentMethodResponse_1.SepaPaymentMethodResponse,
|
|
51
50
|
acssDebit: AcssDebitPaymentMethodResponse_1.AcssDebitPaymentMethodResponse,
|
|
52
|
-
auBecsDebit: AuBecsDebitPaymentMethodResponse_1.AuBecsDebitPaymentMethodResponse,
|
|
53
51
|
})
|
|
54
52
|
.transform({
|
|
55
53
|
transform: (value) => value,
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../../../../../../../index";
|
|
5
|
+
import * as TheraApi from "../../../../../../../../../../api/index";
|
|
6
|
+
import * as core from "../../../../../../../../../../core";
|
|
7
|
+
export declare const W2SubscriptionPayIn: core.serialization.ObjectSchema<serializers.api.thera.bank.W2SubscriptionPayIn.Raw, TheraApi.api.thera.bank.W2SubscriptionPayIn>;
|
|
8
|
+
export declare namespace W2SubscriptionPayIn {
|
|
9
|
+
interface Raw {
|
|
10
|
+
companySubscriptionMonthlyFeeAmount: number;
|
|
11
|
+
companySubscriptionPerEmployeeMonthlyFeeAmount: number;
|
|
12
|
+
numberOfEmployeeCharged: number;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -36,11 +36,10 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
39
|
+
exports.W2SubscriptionPayIn = void 0;
|
|
40
40
|
const core = __importStar(require("../../../../../../../../../../core"));
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
status: StripeUsBankAccountStatusResponse_1.StripeUsBankAccountStatusResponse,
|
|
41
|
+
exports.W2SubscriptionPayIn = core.serialization.object({
|
|
42
|
+
companySubscriptionMonthlyFeeAmount: core.serialization.number(),
|
|
43
|
+
companySubscriptionPerEmployeeMonthlyFeeAmount: core.serialization.number(),
|
|
44
|
+
numberOfEmployeeCharged: core.serialization.number(),
|
|
46
45
|
});
|
|
@@ -8,7 +8,6 @@ export * from "./PaymentMethodProvider";
|
|
|
8
8
|
export * from "./PaymentMethodDetailsResponse";
|
|
9
9
|
export * from "./SepaPaymentMethodResponse";
|
|
10
10
|
export * from "./AcssDebitPaymentMethodResponse";
|
|
11
|
-
export * from "./AuBecsDebitPaymentMethodResponse";
|
|
12
11
|
export * from "./CardPaymentMethodResponse";
|
|
13
12
|
export * from "./UsBankAccountPaymentMethodResponse";
|
|
14
13
|
export * from "./UsBankAccountProviderDetails";
|
|
@@ -44,6 +43,7 @@ export * from "./GetPayInHistoryResponse";
|
|
|
44
43
|
export * from "./HistoricalPayIn";
|
|
45
44
|
export * from "./HistoricPayment";
|
|
46
45
|
export * from "./HistoricPaymentDetail";
|
|
46
|
+
export * from "./W2SubscriptionPayIn";
|
|
47
47
|
export * from "./EorPayIn";
|
|
48
48
|
export * from "./InvoicePayment";
|
|
49
49
|
export * from "./GetPayInDetailsResponse";
|
|
@@ -24,7 +24,6 @@ __exportStar(require("./PaymentMethodProvider"), exports);
|
|
|
24
24
|
__exportStar(require("./PaymentMethodDetailsResponse"), exports);
|
|
25
25
|
__exportStar(require("./SepaPaymentMethodResponse"), exports);
|
|
26
26
|
__exportStar(require("./AcssDebitPaymentMethodResponse"), exports);
|
|
27
|
-
__exportStar(require("./AuBecsDebitPaymentMethodResponse"), exports);
|
|
28
27
|
__exportStar(require("./CardPaymentMethodResponse"), exports);
|
|
29
28
|
__exportStar(require("./UsBankAccountPaymentMethodResponse"), exports);
|
|
30
29
|
__exportStar(require("./UsBankAccountProviderDetails"), exports);
|
|
@@ -60,6 +59,7 @@ __exportStar(require("./GetPayInHistoryResponse"), exports);
|
|
|
60
59
|
__exportStar(require("./HistoricalPayIn"), exports);
|
|
61
60
|
__exportStar(require("./HistoricPayment"), exports);
|
|
62
61
|
__exportStar(require("./HistoricPaymentDetail"), exports);
|
|
62
|
+
__exportStar(require("./W2SubscriptionPayIn"), exports);
|
|
63
63
|
__exportStar(require("./EorPayIn"), exports);
|
|
64
64
|
__exportStar(require("./InvoicePayment"), exports);
|
|
65
65
|
__exportStar(require("./GetPayInDetailsResponse"), exports);
|
|
@@ -0,0 +1,20 @@
|
|
|
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 { WalletHistorySource } from "./WalletHistorySource";
|
|
8
|
+
import { WalletHistoryDestination } from "./WalletHistoryDestination";
|
|
9
|
+
export declare const WalletHistory: core.serialization.ObjectSchema<serializers.api.thera.bridge.WalletHistory.Raw, TheraApi.api.thera.bridge.WalletHistory>;
|
|
10
|
+
export declare namespace WalletHistory {
|
|
11
|
+
interface Raw {
|
|
12
|
+
amount?: string | null;
|
|
13
|
+
developer_fee?: string | null;
|
|
14
|
+
created_at?: string | null;
|
|
15
|
+
updated_at?: string | null;
|
|
16
|
+
customer_id?: string | null;
|
|
17
|
+
source: WalletHistorySource.Raw;
|
|
18
|
+
destination: WalletHistoryDestination.Raw;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
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.WalletHistory = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../../../../../../../core"));
|
|
41
|
+
const WalletHistorySource_1 = require("./WalletHistorySource");
|
|
42
|
+
const WalletHistoryDestination_1 = require("./WalletHistoryDestination");
|
|
43
|
+
exports.WalletHistory = core.serialization.object({
|
|
44
|
+
amount: core.serialization.string().optional(),
|
|
45
|
+
developerFee: core.serialization.property("developer_fee", core.serialization.string().optional()),
|
|
46
|
+
createdAt: core.serialization.property("created_at", core.serialization.string().optional()),
|
|
47
|
+
updatedAt: core.serialization.property("updated_at", core.serialization.string().optional()),
|
|
48
|
+
customerId: core.serialization.property("customer_id", core.serialization.string().optional()),
|
|
49
|
+
source: WalletHistorySource_1.WalletHistorySource,
|
|
50
|
+
destination: WalletHistoryDestination_1.WalletHistoryDestination,
|
|
51
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../../../../../../../index";
|
|
5
|
+
import * as TheraApi from "../../../../../../../../../../api/index";
|
|
6
|
+
import * as core from "../../../../../../../../../../core";
|
|
7
|
+
export declare const WalletHistoryDestination: core.serialization.ObjectSchema<serializers.api.thera.bridge.WalletHistoryDestination.Raw, TheraApi.api.thera.bridge.WalletHistoryDestination>;
|
|
8
|
+
export declare namespace WalletHistoryDestination {
|
|
9
|
+
interface Raw {
|
|
10
|
+
currency?: string | null;
|
|
11
|
+
payment_rail?: string | null;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -36,11 +36,9 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
39
|
+
exports.WalletHistoryDestination = void 0;
|
|
40
40
|
const core = __importStar(require("../../../../../../../../../../core"));
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
bsbNumber: core.serialization.string(),
|
|
45
|
-
status: StripeUsBankAccountStatusResponse_1.StripeUsBankAccountStatusResponse,
|
|
41
|
+
exports.WalletHistoryDestination = core.serialization.object({
|
|
42
|
+
currency: core.serialization.string().optional(),
|
|
43
|
+
paymentRail: core.serialization.property("payment_rail", core.serialization.string().optional()),
|
|
46
44
|
});
|
|
@@ -0,0 +1,14 @@
|
|
|
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 { WalletHistory } from "./WalletHistory";
|
|
8
|
+
export declare const WalletHistoryResponse: core.serialization.ObjectSchema<serializers.api.thera.bridge.WalletHistoryResponse.Raw, TheraApi.api.thera.bridge.WalletHistoryResponse>;
|
|
9
|
+
export declare namespace WalletHistoryResponse {
|
|
10
|
+
interface Raw {
|
|
11
|
+
count: number;
|
|
12
|
+
data: WalletHistory.Raw[];
|
|
13
|
+
}
|
|
14
|
+
}
|