@thera-hr/api-sdk 0.0.1-prerelease3028-dev-3 → 0.0.1-prerelease3029-dev-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +1 -1
- package/api/resources/api/resources/dev/resources/dev/client/Client.js +1 -1
- package/api/resources/api/resources/external/resources/externalApi/client/Client.js +1 -1
- package/api/resources/api/resources/services/resources/file/client/Client.js +5 -5
- package/api/resources/api/resources/thera/client/Client.d.ts +0 -3
- package/api/resources/api/resources/thera/client/Client.js +12 -17
- package/api/resources/api/resources/thera/resources/accounting/resources/accountingApi/client/Client.js +4 -4
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.d.ts +17 -1
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +103 -35
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/GetPayInHistoryRequest.d.ts +5 -1
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/GetPaymentByTypeRequest.d.ts +12 -0
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/index.d.ts +1 -0
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetPayInHistoryResponse.d.ts +1 -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/index.d.ts +0 -1
- package/api/resources/api/resources/thera/resources/index.js +1 -2
- 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.js +10 -10
- package/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
- package/api/resources/db/resources/company/types/Company.d.ts +0 -1
- package/api/resources/db/resources/company/types/index.d.ts +0 -1
- package/api/resources/db/resources/company/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/client/Client.d.ts +0 -3
- package/dist/api/resources/api/resources/thera/client/Client.js +12 -17
- package/dist/api/resources/api/resources/thera/resources/accounting/resources/accountingApi/client/Client.js +4 -4
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.d.ts +17 -1
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +103 -35
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/GetPayInHistoryRequest.d.ts +5 -1
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/GetPaymentByTypeRequest.d.ts +12 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/index.d.ts +1 -0
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetPayInHistoryResponse.d.ts +1 -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/index.d.ts +0 -1
- package/dist/api/resources/api/resources/thera/resources/index.js +1 -2
- 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.js +10 -10
- package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
- package/dist/api/resources/db/resources/company/types/Company.d.ts +0 -1
- package/dist/api/resources/db/resources/company/types/index.d.ts +0 -1
- package/dist/api/resources/db/resources/company/types/index.js +0 -1
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetPayInHistoryResponse.d.ts +1 -0
- package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetPayInHistoryResponse.js +1 -0
- package/dist/serialization/resources/api/resources/thera/resources/index.d.ts +0 -1
- package/dist/serialization/resources/api/resources/thera/resources/index.js +1 -2
- package/dist/serialization/resources/db/resources/company/types/Company.d.ts +0 -2
- package/dist/serialization/resources/db/resources/company/types/Company.js +0 -2
- package/dist/serialization/resources/db/resources/company/types/index.d.ts +0 -1
- package/dist/serialization/resources/db/resources/company/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 +83 -81
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetPayInHistoryResponse.d.ts +1 -0
- package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetPayInHistoryResponse.js +1 -0
- package/serialization/resources/api/resources/thera/resources/index.d.ts +0 -1
- package/serialization/resources/api/resources/thera/resources/index.js +1 -2
- package/serialization/resources/db/resources/company/types/Company.d.ts +0 -2
- package/serialization/resources/db/resources/company/types/Company.js +0 -2
- package/serialization/resources/db/resources/company/types/index.d.ts +0 -1
- package/serialization/resources/db/resources/company/types/index.js +0 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/resources/api/resources/thera/resources/incorporation/client/Client.d.ts +0 -19
- package/api/resources/api/resources/thera/resources/incorporation/client/Client.js +0 -17
- package/api/resources/api/resources/thera/resources/incorporation/client/index.d.ts +0 -1
- package/api/resources/api/resources/thera/resources/incorporation/client/index.js +0 -2
- package/api/resources/api/resources/thera/resources/incorporation/index.d.ts +0 -2
- package/api/resources/api/resources/thera/resources/incorporation/index.js +0 -18
- package/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/client/Client.d.ts +0 -54
- package/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/client/Client.js +0 -141
- package/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/client/index.d.ts +0 -1
- package/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/client/index.js +0 -2
- package/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/index.d.ts +0 -2
- package/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/index.js +0 -18
- package/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/IncorporationSignupRequest.d.ts +0 -20
- package/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/IncorporationSignupResponse.d.ts +0 -9
- package/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/index.d.ts +0 -2
- package/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/index.js +0 -18
- package/api/resources/api/resources/thera/resources/incorporation/resources/index.d.ts +0 -2
- package/api/resources/api/resources/thera/resources/incorporation/resources/index.js +0 -41
- package/api/resources/db/resources/company/types/IncorporationDetails.d.ts +0 -16
- package/api/resources/db/resources/company/types/IncorporationDetails.js +0 -5
- package/dist/api/resources/api/resources/thera/resources/incorporation/client/Client.d.ts +0 -19
- package/dist/api/resources/api/resources/thera/resources/incorporation/client/Client.js +0 -17
- package/dist/api/resources/api/resources/thera/resources/incorporation/client/index.d.ts +0 -1
- package/dist/api/resources/api/resources/thera/resources/incorporation/client/index.js +0 -2
- package/dist/api/resources/api/resources/thera/resources/incorporation/index.d.ts +0 -2
- package/dist/api/resources/api/resources/thera/resources/incorporation/index.js +0 -18
- package/dist/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/client/Client.d.ts +0 -54
- package/dist/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/client/Client.js +0 -141
- package/dist/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/client/index.d.ts +0 -1
- package/dist/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/client/index.js +0 -2
- package/dist/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/index.d.ts +0 -2
- package/dist/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/index.js +0 -18
- package/dist/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/IncorporationSignupRequest.d.ts +0 -20
- package/dist/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/IncorporationSignupRequest.js +0 -5
- package/dist/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/IncorporationSignupResponse.d.ts +0 -9
- package/dist/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/IncorporationSignupResponse.js +0 -5
- package/dist/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/index.d.ts +0 -2
- package/dist/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/index.js +0 -18
- package/dist/api/resources/api/resources/thera/resources/incorporation/resources/index.d.ts +0 -2
- package/dist/api/resources/api/resources/thera/resources/incorporation/resources/index.js +0 -41
- package/dist/api/resources/db/resources/company/types/IncorporationDetails.d.ts +0 -16
- package/dist/api/resources/db/resources/company/types/IncorporationDetails.js +0 -5
- package/dist/serialization/resources/api/resources/thera/resources/incorporation/index.d.ts +0 -1
- package/dist/serialization/resources/api/resources/thera/resources/incorporation/index.js +0 -17
- package/dist/serialization/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/index.d.ts +0 -1
- package/dist/serialization/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/index.js +0 -17
- package/dist/serialization/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/IncorporationSignupRequest.d.ts +0 -26
- package/dist/serialization/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/IncorporationSignupRequest.js +0 -57
- package/dist/serialization/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/IncorporationSignupResponse.d.ts +0 -15
- package/dist/serialization/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/IncorporationSignupResponse.js +0 -46
- package/dist/serialization/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/index.d.ts +0 -2
- package/dist/serialization/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/index.js +0 -18
- package/dist/serialization/resources/api/resources/thera/resources/incorporation/resources/index.d.ts +0 -2
- package/dist/serialization/resources/api/resources/thera/resources/incorporation/resources/index.js +0 -41
- package/dist/serialization/resources/db/resources/company/types/IncorporationDetails.d.ts +0 -22
- package/dist/serialization/resources/db/resources/company/types/IncorporationDetails.js +0 -53
- package/serialization/resources/api/resources/thera/resources/incorporation/index.d.ts +0 -1
- package/serialization/resources/api/resources/thera/resources/incorporation/index.js +0 -17
- package/serialization/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/index.d.ts +0 -1
- package/serialization/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/index.js +0 -17
- package/serialization/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/IncorporationSignupRequest.d.ts +0 -26
- package/serialization/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/IncorporationSignupRequest.js +0 -57
- package/serialization/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/IncorporationSignupResponse.d.ts +0 -15
- package/serialization/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/IncorporationSignupResponse.js +0 -46
- package/serialization/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/index.d.ts +0 -2
- package/serialization/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/index.js +0 -18
- package/serialization/resources/api/resources/thera/resources/incorporation/resources/index.d.ts +0 -2
- package/serialization/resources/api/resources/thera/resources/incorporation/resources/index.js +0 -41
- package/serialization/resources/db/resources/company/types/IncorporationDetails.d.ts +0 -22
- package/serialization/resources/db/resources/company/types/IncorporationDetails.js +0 -53
- /package/api/resources/api/resources/thera/resources/{incorporation/resources/incorporationApi/types/IncorporationSignupRequest.js → bank/resources/bankApi/client/requests/GetPaymentByTypeRequest.js} +0 -0
- /package/{api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/IncorporationSignupResponse.js → dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/GetPaymentByTypeRequest.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-prerelease3029-dev-2", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3029-dev-2", "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-prerelease3029-dev-2", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3029-dev-2", "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-prerelease3029-dev-2", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3029-dev-2", "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-prerelease3029-dev-2", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3029-dev-2", "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-prerelease3029-dev-2", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3029-dev-2", "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-prerelease3029-dev-2", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3029-dev-2", "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-prerelease3029-dev-2", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3029-dev-2", "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-prerelease3029-dev-2", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3029-dev-2", "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-prerelease3029-dev-2", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3029-dev-2", "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.js
CHANGED
|
@@ -113,7 +113,7 @@ class TpApi {
|
|
|
113
113
|
const _response = yield core.fetcher({
|
|
114
114
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `companies/${encodeURIComponent(companyId)}/banking-details`),
|
|
115
115
|
method: "POST",
|
|
116
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "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-prerelease3029-dev-2", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3029-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
117
117
|
contentType: "application/json",
|
|
118
118
|
requestType: "json",
|
|
119
119
|
body: serializers.api.thera.tp.AddCompanyBankingDetailsRequest.jsonOrThrow(request, {
|
|
@@ -167,7 +167,7 @@ class TpApi {
|
|
|
167
167
|
const _response = yield core.fetcher({
|
|
168
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"),
|
|
169
169
|
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-
|
|
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-prerelease3029-dev-2", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3029-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
171
171
|
contentType: "application/json",
|
|
172
172
|
requestType: "json",
|
|
173
173
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -228,7 +228,7 @@ class TpApi {
|
|
|
228
228
|
const _response = yield core.fetcher({
|
|
229
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`),
|
|
230
230
|
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-
|
|
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-prerelease3029-dev-2", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3029-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
232
232
|
contentType: "application/json",
|
|
233
233
|
requestType: "json",
|
|
234
234
|
body: serializers.api.thera.tp.ProcessFundsTransfer.jsonOrThrow(request, {
|
|
@@ -280,7 +280,7 @@ class TpApi {
|
|
|
280
280
|
const _response = yield core.fetcher({
|
|
281
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`),
|
|
282
282
|
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-
|
|
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-prerelease3029-dev-2", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3029-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
284
284
|
contentType: "application/json",
|
|
285
285
|
requestType: "json",
|
|
286
286
|
body: serializers.api.thera.tp.CreateCounterPartyForBankingRequest.jsonOrThrow(request, {
|
|
@@ -329,7 +329,7 @@ class TpApi {
|
|
|
329
329
|
const _response = yield core.fetcher({
|
|
330
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`),
|
|
331
331
|
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-
|
|
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-prerelease3029-dev-2", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3029-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
333
333
|
contentType: "application/json",
|
|
334
334
|
requestType: "json",
|
|
335
335
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -384,7 +384,7 @@ class TpApi {
|
|
|
384
384
|
const _response = yield core.fetcher({
|
|
385
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)}`),
|
|
386
386
|
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-
|
|
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-prerelease3029-dev-2", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3029-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
388
388
|
contentType: "application/json",
|
|
389
389
|
queryParameters: _queryParams,
|
|
390
390
|
requestType: "json",
|
|
@@ -435,7 +435,7 @@ class TpApi {
|
|
|
435
435
|
const _response = yield core.fetcher({
|
|
436
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`),
|
|
437
437
|
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-
|
|
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-prerelease3029-dev-2", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3029-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
439
439
|
contentType: "application/json",
|
|
440
440
|
requestType: "json",
|
|
441
441
|
body: serializers.api.thera.tp.TransferFundsToOmnibusAccount.jsonOrThrow(request, {
|
|
@@ -485,7 +485,7 @@ class TpApi {
|
|
|
485
485
|
const _response = yield core.fetcher({
|
|
486
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)}`),
|
|
487
487
|
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-
|
|
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-prerelease3029-dev-2", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3029-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
489
489
|
contentType: "application/json",
|
|
490
490
|
requestType: "json",
|
|
491
491
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -538,7 +538,7 @@ class TpApi {
|
|
|
538
538
|
const _response = yield core.fetcher({
|
|
539
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)}`),
|
|
540
540
|
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-
|
|
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-prerelease3029-dev-2", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3029-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
542
542
|
contentType: "application/json",
|
|
543
543
|
requestType: "json",
|
|
544
544
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -602,7 +602,7 @@ class TpApi {
|
|
|
602
602
|
const _response = yield core.fetcher({
|
|
603
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"),
|
|
604
604
|
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-
|
|
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-prerelease3029-dev-2", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3029-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
606
606
|
contentType: "application/json",
|
|
607
607
|
queryParameters: _queryParams,
|
|
608
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-prerelease3029-dev-2", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3029-dev-2", "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-prerelease3029-dev-2", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3029-dev-2", "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-prerelease3029-dev-2", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3029-dev-2", "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",
|
|
@@ -50,5 +50,4 @@ export interface Company {
|
|
|
50
50
|
mercoaCompanyDetails?: TheraApi.db.MercoaCompanyDetails;
|
|
51
51
|
companyAccountingInformation?: TheraApi.db.CompanyAccountingInformation;
|
|
52
52
|
companyBankingDetails?: TheraApi.db.CompanyBankingDetails;
|
|
53
|
-
incorporationDetails?: TheraApi.db.IncorporationDetails;
|
|
54
53
|
}
|
|
@@ -58,4 +58,3 @@ __exportStar(require("./AddCompanyBeneficiary"), exports);
|
|
|
58
58
|
__exportStar(require("./CompanyBeneficiary"), exports);
|
|
59
59
|
__exportStar(require("./CompanyBankingDetails"), exports);
|
|
60
60
|
__exportStar(require("./CompanyLegalStructure"), exports);
|
|
61
|
-
__exportStar(require("./IncorporationDetails"), exports);
|
|
@@ -43,4 +43,5 @@ const HistoricPayment_1 = require("./HistoricPayment");
|
|
|
43
43
|
exports.GetPayInHistoryResponse = core.serialization.object({
|
|
44
44
|
history: core.serialization.list(HistoricalPayIn_1.HistoricalPayIn),
|
|
45
45
|
payments: core.serialization.list(HistoricPayment_1.HistoricPayment),
|
|
46
|
+
nextCursor: core.serialization.string().optional(),
|
|
46
47
|
});
|
|
@@ -9,7 +9,6 @@ export * as document from "./document";
|
|
|
9
9
|
export * as email from "./email";
|
|
10
10
|
export * as employment from "./employment";
|
|
11
11
|
export * as eor from "./eor";
|
|
12
|
-
export * as incorporation from "./incorporation";
|
|
13
12
|
export * as misc from "./misc";
|
|
14
13
|
export * as payroll from "./payroll";
|
|
15
14
|
export * as timeoff from "./timeoff";
|
|
@@ -33,7 +33,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.user = exports.tp = exports.timetracking = exports.timeoff = exports.payroll = exports.misc = exports.
|
|
36
|
+
exports.user = exports.tp = exports.timetracking = exports.timeoff = exports.payroll = exports.misc = exports.eor = exports.employment = exports.email = exports.document = exports.disbursement = exports.contractor = exports.company = exports.common = exports.bridge = exports.bank = exports.accounting = void 0;
|
|
37
37
|
exports.accounting = __importStar(require("./accounting"));
|
|
38
38
|
exports.bank = __importStar(require("./bank"));
|
|
39
39
|
exports.bridge = __importStar(require("./bridge"));
|
|
@@ -45,7 +45,6 @@ exports.document = __importStar(require("./document"));
|
|
|
45
45
|
exports.email = __importStar(require("./email"));
|
|
46
46
|
exports.employment = __importStar(require("./employment"));
|
|
47
47
|
exports.eor = __importStar(require("./eor"));
|
|
48
|
-
exports.incorporation = __importStar(require("./incorporation"));
|
|
49
48
|
exports.misc = __importStar(require("./misc"));
|
|
50
49
|
exports.payroll = __importStar(require("./payroll"));
|
|
51
50
|
exports.timeoff = __importStar(require("./timeoff"));
|
|
@@ -16,7 +16,6 @@ import { TpCompanyInformation } from "./TpCompanyInformation";
|
|
|
16
16
|
import { MercoaCompanyDetails } from "./MercoaCompanyDetails";
|
|
17
17
|
import { CompanyAccountingInformation } from "./CompanyAccountingInformation";
|
|
18
18
|
import { CompanyBankingDetails } from "./CompanyBankingDetails";
|
|
19
|
-
import { IncorporationDetails } from "./IncorporationDetails";
|
|
20
19
|
export declare const Company: core.serialization.ObjectSchema<serializers.db.Company.Raw, TheraApi.db.Company>;
|
|
21
20
|
export declare namespace Company {
|
|
22
21
|
interface Raw {
|
|
@@ -51,6 +50,5 @@ export declare namespace Company {
|
|
|
51
50
|
mercoaCompanyDetails?: MercoaCompanyDetails.Raw | null;
|
|
52
51
|
companyAccountingInformation?: CompanyAccountingInformation.Raw | null;
|
|
53
52
|
companyBankingDetails?: CompanyBankingDetails.Raw | null;
|
|
54
|
-
incorporationDetails?: IncorporationDetails.Raw | null;
|
|
55
53
|
}
|
|
56
54
|
}
|
|
@@ -50,7 +50,6 @@ const TpCompanyInformation_1 = require("./TpCompanyInformation");
|
|
|
50
50
|
const MercoaCompanyDetails_1 = require("./MercoaCompanyDetails");
|
|
51
51
|
const CompanyAccountingInformation_1 = require("./CompanyAccountingInformation");
|
|
52
52
|
const CompanyBankingDetails_1 = require("./CompanyBankingDetails");
|
|
53
|
-
const IncorporationDetails_1 = require("./IncorporationDetails");
|
|
54
53
|
exports.Company = core.serialization.object({
|
|
55
54
|
companyId: core.serialization.property("companyID", core.serialization.string()),
|
|
56
55
|
companyName: core.serialization.string(),
|
|
@@ -83,5 +82,4 @@ exports.Company = core.serialization.object({
|
|
|
83
82
|
mercoaCompanyDetails: MercoaCompanyDetails_1.MercoaCompanyDetails.optional(),
|
|
84
83
|
companyAccountingInformation: CompanyAccountingInformation_1.CompanyAccountingInformation.optional(),
|
|
85
84
|
companyBankingDetails: CompanyBankingDetails_1.CompanyBankingDetails.optional(),
|
|
86
|
-
incorporationDetails: IncorporationDetails_1.IncorporationDetails.optional(),
|
|
87
85
|
});
|
|
@@ -58,4 +58,3 @@ __exportStar(require("./AddCompanyBeneficiary"), exports);
|
|
|
58
58
|
__exportStar(require("./CompanyBeneficiary"), exports);
|
|
59
59
|
__exportStar(require("./CompanyBankingDetails"), exports);
|
|
60
60
|
__exportStar(require("./CompanyLegalStructure"), exports);
|
|
61
|
-
__exportStar(require("./IncorporationDetails"), exports);
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.0.1-
|
|
1
|
+
export declare const SDK_VERSION = "0.0.1-prerelease3029-dev-2";
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -2499,6 +2499,8 @@ await client.api.thera.bank.bankApi.getWorkerWithdrawalDeliveryEstimate("string"
|
|
|
2499
2499
|
await client.api.thera.bank.bankApi.getPayInHistory("string", {
|
|
2500
2500
|
status: "PENDING",
|
|
2501
2501
|
offPlatformOnly: true,
|
|
2502
|
+
pageSize: 1000000,
|
|
2503
|
+
afterCursor: "string",
|
|
2502
2504
|
});
|
|
2503
2505
|
```
|
|
2504
2506
|
|
|
@@ -2965,6 +2967,87 @@ await client.api.thera.bank.bankApi.setAutoApproveInvoiceForTeams("string", {
|
|
|
2965
2967
|
</dl>
|
|
2966
2968
|
</details>
|
|
2967
2969
|
|
|
2970
|
+
<details><summary><code>client.api.thera.bank.bankApi.<a href="/src/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.ts">getPaymentByTypeAndId</a>(companyId, paymentId, { ...params }) -> TheraApi.HistoricPayment</code></summary>
|
|
2971
|
+
<dl>
|
|
2972
|
+
<dd>
|
|
2973
|
+
|
|
2974
|
+
#### 📝 Description
|
|
2975
|
+
|
|
2976
|
+
<dl>
|
|
2977
|
+
<dd>
|
|
2978
|
+
|
|
2979
|
+
<dl>
|
|
2980
|
+
<dd>
|
|
2981
|
+
|
|
2982
|
+
Get a specific W2 subscription or EOR payment by its ID. This endpoint is optimized for direct retrieval without pagination concerns.
|
|
2983
|
+
|
|
2984
|
+
</dd>
|
|
2985
|
+
</dl>
|
|
2986
|
+
</dd>
|
|
2987
|
+
</dl>
|
|
2988
|
+
|
|
2989
|
+
#### 🔌 Usage
|
|
2990
|
+
|
|
2991
|
+
<dl>
|
|
2992
|
+
<dd>
|
|
2993
|
+
|
|
2994
|
+
<dl>
|
|
2995
|
+
<dd>
|
|
2996
|
+
|
|
2997
|
+
```typescript
|
|
2998
|
+
await client.api.thera.bank.bankApi.getPaymentByTypeAndId("string", "string", {
|
|
2999
|
+
paymentType: "string",
|
|
3000
|
+
});
|
|
3001
|
+
```
|
|
3002
|
+
|
|
3003
|
+
</dd>
|
|
3004
|
+
</dl>
|
|
3005
|
+
</dd>
|
|
3006
|
+
</dl>
|
|
3007
|
+
|
|
3008
|
+
#### ⚙️ Parameters
|
|
3009
|
+
|
|
3010
|
+
<dl>
|
|
3011
|
+
<dd>
|
|
3012
|
+
|
|
3013
|
+
<dl>
|
|
3014
|
+
<dd>
|
|
3015
|
+
|
|
3016
|
+
**companyId:** `string`
|
|
3017
|
+
|
|
3018
|
+
</dd>
|
|
3019
|
+
</dl>
|
|
3020
|
+
|
|
3021
|
+
<dl>
|
|
3022
|
+
<dd>
|
|
3023
|
+
|
|
3024
|
+
**paymentId:** `string`
|
|
3025
|
+
|
|
3026
|
+
</dd>
|
|
3027
|
+
</dl>
|
|
3028
|
+
|
|
3029
|
+
<dl>
|
|
3030
|
+
<dd>
|
|
3031
|
+
|
|
3032
|
+
**request:** `TheraApi.api.thera.bank.GetPaymentByTypeRequest`
|
|
3033
|
+
|
|
3034
|
+
</dd>
|
|
3035
|
+
</dl>
|
|
3036
|
+
|
|
3037
|
+
<dl>
|
|
3038
|
+
<dd>
|
|
3039
|
+
|
|
3040
|
+
**requestOptions:** `BankApi.RequestOptions`
|
|
3041
|
+
|
|
3042
|
+
</dd>
|
|
3043
|
+
</dl>
|
|
3044
|
+
</dd>
|
|
3045
|
+
</dl>
|
|
3046
|
+
|
|
3047
|
+
</dd>
|
|
3048
|
+
</dl>
|
|
3049
|
+
</details>
|
|
3050
|
+
|
|
2968
3051
|
## Bridge APIs
|
|
2969
3052
|
|
|
2970
3053
|
<details><summary><code>client.api.thera.bridge.bridgeApi.<a href="/src/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.ts">requestTosLink</a>() -> TheraApi.TosLinkResponse</code></summary>
|
|
@@ -7889,87 +7972,6 @@ await client.api.thera.eor.eorTrackerApi.getLatestEorEmployeeEmailByCompanyId("s
|
|
|
7889
7972
|
</dl>
|
|
7890
7973
|
</details>
|
|
7891
7974
|
|
|
7892
|
-
## Incorporation Integration
|
|
7893
|
-
|
|
7894
|
-
<details><summary><code>client.api.thera.incorporation.incorporationApi.<a href="/src/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/client/Client.ts">incorporationSignup</a>({ ...params }) -> TheraApi.IncorporationSignupResponse</code></summary>
|
|
7895
|
-
<dl>
|
|
7896
|
-
<dd>
|
|
7897
|
-
|
|
7898
|
-
#### 📝 Description
|
|
7899
|
-
|
|
7900
|
-
<dl>
|
|
7901
|
-
<dd>
|
|
7902
|
-
|
|
7903
|
-
<dl>
|
|
7904
|
-
<dd>
|
|
7905
|
-
|
|
7906
|
-
Create a new user account and company for someone who has incorporated
|
|
7907
|
-
|
|
7908
|
-
</dd>
|
|
7909
|
-
</dl>
|
|
7910
|
-
</dd>
|
|
7911
|
-
</dl>
|
|
7912
|
-
|
|
7913
|
-
#### 🔌 Usage
|
|
7914
|
-
|
|
7915
|
-
<dl>
|
|
7916
|
-
<dd>
|
|
7917
|
-
|
|
7918
|
-
<dl>
|
|
7919
|
-
<dd>
|
|
7920
|
-
|
|
7921
|
-
```typescript
|
|
7922
|
-
await client.api.thera.incorporation.incorporationApi.incorporationSignup({
|
|
7923
|
-
businessName: "string",
|
|
7924
|
-
state: "string",
|
|
7925
|
-
firstName: "string",
|
|
7926
|
-
lastName: "string",
|
|
7927
|
-
email: "string",
|
|
7928
|
-
phone: "string",
|
|
7929
|
-
experience: "string",
|
|
7930
|
-
progress: "string",
|
|
7931
|
-
industry: "string",
|
|
7932
|
-
agent: "string",
|
|
7933
|
-
packageType: "string",
|
|
7934
|
-
appointedAgent: true,
|
|
7935
|
-
registrationDate: "string",
|
|
7936
|
-
status: "string",
|
|
7937
|
-
password: "string",
|
|
7938
|
-
});
|
|
7939
|
-
```
|
|
7940
|
-
|
|
7941
|
-
</dd>
|
|
7942
|
-
</dl>
|
|
7943
|
-
</dd>
|
|
7944
|
-
</dl>
|
|
7945
|
-
|
|
7946
|
-
#### ⚙️ Parameters
|
|
7947
|
-
|
|
7948
|
-
<dl>
|
|
7949
|
-
<dd>
|
|
7950
|
-
|
|
7951
|
-
<dl>
|
|
7952
|
-
<dd>
|
|
7953
|
-
|
|
7954
|
-
**request:** `TheraApi.IncorporationSignupRequest`
|
|
7955
|
-
|
|
7956
|
-
</dd>
|
|
7957
|
-
</dl>
|
|
7958
|
-
|
|
7959
|
-
<dl>
|
|
7960
|
-
<dd>
|
|
7961
|
-
|
|
7962
|
-
**requestOptions:** `IncorporationApi.RequestOptions`
|
|
7963
|
-
|
|
7964
|
-
</dd>
|
|
7965
|
-
</dl>
|
|
7966
|
-
</dd>
|
|
7967
|
-
</dl>
|
|
7968
|
-
|
|
7969
|
-
</dd>
|
|
7970
|
-
</dl>
|
|
7971
|
-
</details>
|
|
7972
|
-
|
|
7973
7975
|
## Miscellaneous API
|
|
7974
7976
|
|
|
7975
7977
|
<details><summary><code>client.api.thera.misc.misc.<a href="/src/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.ts">regularCron</a>({ ...params }) -> TheraApi.DailyCronResponse</code></summary>
|
|
@@ -43,4 +43,5 @@ const HistoricPayment_1 = require("./HistoricPayment");
|
|
|
43
43
|
exports.GetPayInHistoryResponse = core.serialization.object({
|
|
44
44
|
history: core.serialization.list(HistoricalPayIn_1.HistoricalPayIn),
|
|
45
45
|
payments: core.serialization.list(HistoricPayment_1.HistoricPayment),
|
|
46
|
+
nextCursor: core.serialization.string().optional(),
|
|
46
47
|
});
|
|
@@ -9,7 +9,6 @@ export * as document from "./document";
|
|
|
9
9
|
export * as email from "./email";
|
|
10
10
|
export * as employment from "./employment";
|
|
11
11
|
export * as eor from "./eor";
|
|
12
|
-
export * as incorporation from "./incorporation";
|
|
13
12
|
export * as misc from "./misc";
|
|
14
13
|
export * as payroll from "./payroll";
|
|
15
14
|
export * as timeoff from "./timeoff";
|
|
@@ -33,7 +33,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.user = exports.tp = exports.timetracking = exports.timeoff = exports.payroll = exports.misc = exports.
|
|
36
|
+
exports.user = exports.tp = exports.timetracking = exports.timeoff = exports.payroll = exports.misc = exports.eor = exports.employment = exports.email = exports.document = exports.disbursement = exports.contractor = exports.company = exports.common = exports.bridge = exports.bank = exports.accounting = void 0;
|
|
37
37
|
exports.accounting = __importStar(require("./accounting"));
|
|
38
38
|
exports.bank = __importStar(require("./bank"));
|
|
39
39
|
exports.bridge = __importStar(require("./bridge"));
|
|
@@ -45,7 +45,6 @@ exports.document = __importStar(require("./document"));
|
|
|
45
45
|
exports.email = __importStar(require("./email"));
|
|
46
46
|
exports.employment = __importStar(require("./employment"));
|
|
47
47
|
exports.eor = __importStar(require("./eor"));
|
|
48
|
-
exports.incorporation = __importStar(require("./incorporation"));
|
|
49
48
|
exports.misc = __importStar(require("./misc"));
|
|
50
49
|
exports.payroll = __importStar(require("./payroll"));
|
|
51
50
|
exports.timeoff = __importStar(require("./timeoff"));
|
|
@@ -16,7 +16,6 @@ import { TpCompanyInformation } from "./TpCompanyInformation";
|
|
|
16
16
|
import { MercoaCompanyDetails } from "./MercoaCompanyDetails";
|
|
17
17
|
import { CompanyAccountingInformation } from "./CompanyAccountingInformation";
|
|
18
18
|
import { CompanyBankingDetails } from "./CompanyBankingDetails";
|
|
19
|
-
import { IncorporationDetails } from "./IncorporationDetails";
|
|
20
19
|
export declare const Company: core.serialization.ObjectSchema<serializers.db.Company.Raw, TheraApi.db.Company>;
|
|
21
20
|
export declare namespace Company {
|
|
22
21
|
interface Raw {
|
|
@@ -51,6 +50,5 @@ export declare namespace Company {
|
|
|
51
50
|
mercoaCompanyDetails?: MercoaCompanyDetails.Raw | null;
|
|
52
51
|
companyAccountingInformation?: CompanyAccountingInformation.Raw | null;
|
|
53
52
|
companyBankingDetails?: CompanyBankingDetails.Raw | null;
|
|
54
|
-
incorporationDetails?: IncorporationDetails.Raw | null;
|
|
55
53
|
}
|
|
56
54
|
}
|
|
@@ -50,7 +50,6 @@ const TpCompanyInformation_1 = require("./TpCompanyInformation");
|
|
|
50
50
|
const MercoaCompanyDetails_1 = require("./MercoaCompanyDetails");
|
|
51
51
|
const CompanyAccountingInformation_1 = require("./CompanyAccountingInformation");
|
|
52
52
|
const CompanyBankingDetails_1 = require("./CompanyBankingDetails");
|
|
53
|
-
const IncorporationDetails_1 = require("./IncorporationDetails");
|
|
54
53
|
exports.Company = core.serialization.object({
|
|
55
54
|
companyId: core.serialization.property("companyID", core.serialization.string()),
|
|
56
55
|
companyName: core.serialization.string(),
|
|
@@ -83,5 +82,4 @@ exports.Company = core.serialization.object({
|
|
|
83
82
|
mercoaCompanyDetails: MercoaCompanyDetails_1.MercoaCompanyDetails.optional(),
|
|
84
83
|
companyAccountingInformation: CompanyAccountingInformation_1.CompanyAccountingInformation.optional(),
|
|
85
84
|
companyBankingDetails: CompanyBankingDetails_1.CompanyBankingDetails.optional(),
|
|
86
|
-
incorporationDetails: IncorporationDetails_1.IncorporationDetails.optional(),
|
|
87
85
|
});
|