@thera-hr/api-sdk 0.0.2099 → 0.0.2108
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/client/Client.d.ts +0 -3
- package/api/resources/api/client/Client.js +6 -11
- package/api/resources/api/resources/index.d.ts +0 -1
- package/api/resources/api/resources/index.js +1 -2
- package/api/resources/api/resources/services/resources/file/client/Client.js +4 -4
- package/api/resources/api/resources/test/resources/invoices/client/Client.js +1 -1
- package/api/resources/api/resources/thera/client/Client.d.ts +0 -3
- package/api/resources/api/resources/thera/client/Client.js +0 -5
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +10 -10
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.d.ts +1 -1
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +2 -2
- package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +1 -1
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +2 -2
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
- package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +2 -2
- 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/payroll/resources/oncycleApi/client/Client.js +1 -1
- package/api/resources/db/resources/user/types/EmployeeInformation.d.ts +0 -2
- package/api/resources/db/resources/user/types/index.d.ts +0 -5
- package/api/resources/db/resources/user/types/index.js +0 -5
- package/dist/api/resources/api/client/Client.d.ts +0 -3
- package/dist/api/resources/api/client/Client.js +6 -11
- package/dist/api/resources/api/resources/index.d.ts +0 -1
- package/dist/api/resources/api/resources/index.js +1 -2
- package/dist/api/resources/api/resources/services/resources/file/client/Client.js +4 -4
- package/dist/api/resources/api/resources/test/resources/invoices/client/Client.js +1 -1
- package/dist/api/resources/api/resources/thera/client/Client.d.ts +0 -3
- package/dist/api/resources/api/resources/thera/client/Client.js +0 -5
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +10 -10
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.d.ts +1 -1
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +2 -2
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +1 -1
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +2 -2
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
- package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +2 -2
- 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/payroll/resources/oncycleApi/client/Client.js +1 -1
- package/dist/api/resources/db/resources/user/types/EmployeeInformation.d.ts +0 -2
- package/dist/api/resources/db/resources/user/types/index.d.ts +0 -5
- package/dist/api/resources/db/resources/user/types/index.js +0 -5
- package/dist/serialization/resources/api/resources/index.d.ts +0 -1
- package/dist/serialization/resources/api/resources/index.js +1 -2
- package/dist/serialization/resources/db/resources/user/types/EmployeeInformation.d.ts +0 -1
- package/dist/serialization/resources/db/resources/user/types/EmployeeInformation.js +0 -1
- package/dist/serialization/resources/db/resources/user/types/index.d.ts +0 -5
- package/dist/serialization/resources/db/resources/user/types/index.js +0 -5
- package/package.json +1 -1
- package/serialization/resources/api/resources/index.d.ts +0 -1
- package/serialization/resources/api/resources/index.js +1 -2
- package/serialization/resources/db/resources/user/types/EmployeeInformation.d.ts +0 -1
- package/serialization/resources/db/resources/user/types/EmployeeInformation.js +0 -1
- package/serialization/resources/db/resources/user/types/index.d.ts +0 -5
- package/serialization/resources/db/resources/user/types/index.js +0 -5
- package/api/resources/api/resources/aiprise/client/Client.d.ts +0 -17
- package/api/resources/api/resources/aiprise/client/Client.js +0 -17
- package/api/resources/api/resources/aiprise/client/index.d.ts +0 -1
- package/api/resources/api/resources/aiprise/client/index.js +0 -2
- package/api/resources/api/resources/aiprise/index.d.ts +0 -2
- package/api/resources/api/resources/aiprise/index.js +0 -18
- package/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.d.ts +0 -20
- package/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +0 -104
- package/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/index.d.ts +0 -1
- package/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/index.js +0 -2
- package/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/index.d.ts +0 -2
- package/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/index.js +0 -18
- package/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/types/AiPriseVerificationCallback.d.ts +0 -12
- package/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/types/AiPriseVerificationCallback.js +0 -5
- package/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/types/AiPriseVerificationIdInfo.d.ts +0 -8
- package/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/types/AiPriseVerificationIdInfo.js +0 -5
- package/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/types/AiPriseVerificationResultStatus.d.ts +0 -10
- package/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/types/AiPriseVerificationResultStatus.js +0 -12
- package/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/types/AiPriseVerificationSummary.d.ts +0 -7
- package/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/types/AiPriseVerificationSummary.js +0 -5
- package/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/types/index.d.ts +0 -4
- package/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/types/index.js +0 -20
- package/api/resources/api/resources/aiprise/resources/index.d.ts +0 -2
- package/api/resources/api/resources/aiprise/resources/index.js +0 -31
- package/api/resources/api/resources/thera/resources/user/client/Client.d.ts +0 -17
- package/api/resources/api/resources/thera/resources/user/client/Client.js +0 -17
- package/api/resources/api/resources/thera/resources/user/client/index.d.ts +0 -1
- package/api/resources/api/resources/thera/resources/user/client/index.js +0 -2
- package/api/resources/api/resources/thera/resources/user/index.d.ts +0 -2
- package/api/resources/api/resources/thera/resources/user/index.js +0 -18
- package/api/resources/api/resources/thera/resources/user/resources/index.d.ts +0 -2
- package/api/resources/api/resources/thera/resources/user/resources/index.js +0 -31
- package/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.d.ts +0 -20
- package/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +0 -111
- package/api/resources/api/resources/thera/resources/user/resources/userApi/client/index.d.ts +0 -1
- package/api/resources/api/resources/thera/resources/user/resources/userApi/client/index.js +0 -17
- package/api/resources/api/resources/thera/resources/user/resources/userApi/client/requests/GetUserRequest.d.ts +0 -6
- package/api/resources/api/resources/thera/resources/user/resources/userApi/client/requests/GetUserRequest.js +0 -5
- package/api/resources/api/resources/thera/resources/user/resources/userApi/client/requests/index.d.ts +0 -1
- package/api/resources/api/resources/thera/resources/user/resources/userApi/client/requests/index.js +0 -2
- package/api/resources/api/resources/thera/resources/user/resources/userApi/index.d.ts +0 -1
- package/api/resources/api/resources/thera/resources/user/resources/userApi/index.js +0 -17
- package/api/resources/db/resources/user/types/AiPriseVerificationResult.d.ts +0 -8
- package/api/resources/db/resources/user/types/AiPriseVerificationResult.js +0 -5
- package/api/resources/db/resources/user/types/AiPriseVerificationStatus.d.ts +0 -10
- package/api/resources/db/resources/user/types/AiPriseVerificationStatus.js +0 -12
- package/api/resources/db/resources/user/types/KycDocument.d.ts +0 -11
- package/api/resources/db/resources/user/types/KycDocument.js +0 -5
- package/api/resources/db/resources/user/types/KycDocumentFile.d.ts +0 -8
- package/api/resources/db/resources/user/types/KycDocumentFile.js +0 -5
- package/api/resources/db/resources/user/types/KycDocumentType.d.ts +0 -11
- package/api/resources/db/resources/user/types/KycDocumentType.js +0 -13
- package/dist/api/resources/api/resources/aiprise/client/Client.d.ts +0 -17
- package/dist/api/resources/api/resources/aiprise/client/Client.js +0 -17
- package/dist/api/resources/api/resources/aiprise/client/index.d.ts +0 -1
- package/dist/api/resources/api/resources/aiprise/client/index.js +0 -2
- package/dist/api/resources/api/resources/aiprise/index.d.ts +0 -2
- package/dist/api/resources/api/resources/aiprise/index.js +0 -18
- package/dist/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.d.ts +0 -20
- package/dist/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +0 -104
- package/dist/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/index.d.ts +0 -1
- package/dist/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/index.js +0 -2
- package/dist/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/index.d.ts +0 -2
- package/dist/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/index.js +0 -18
- package/dist/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/types/AiPriseVerificationCallback.d.ts +0 -12
- package/dist/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/types/AiPriseVerificationCallback.js +0 -5
- package/dist/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/types/AiPriseVerificationIdInfo.d.ts +0 -8
- package/dist/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/types/AiPriseVerificationIdInfo.js +0 -5
- package/dist/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/types/AiPriseVerificationResultStatus.d.ts +0 -10
- package/dist/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/types/AiPriseVerificationResultStatus.js +0 -12
- package/dist/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/types/AiPriseVerificationSummary.d.ts +0 -7
- package/dist/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/types/AiPriseVerificationSummary.js +0 -5
- package/dist/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/types/index.d.ts +0 -4
- package/dist/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/types/index.js +0 -20
- package/dist/api/resources/api/resources/aiprise/resources/index.d.ts +0 -2
- package/dist/api/resources/api/resources/aiprise/resources/index.js +0 -31
- package/dist/api/resources/api/resources/thera/resources/user/client/Client.d.ts +0 -17
- package/dist/api/resources/api/resources/thera/resources/user/client/Client.js +0 -17
- package/dist/api/resources/api/resources/thera/resources/user/client/index.d.ts +0 -1
- package/dist/api/resources/api/resources/thera/resources/user/client/index.js +0 -2
- package/dist/api/resources/api/resources/thera/resources/user/index.d.ts +0 -2
- package/dist/api/resources/api/resources/thera/resources/user/index.js +0 -18
- package/dist/api/resources/api/resources/thera/resources/user/resources/index.d.ts +0 -2
- package/dist/api/resources/api/resources/thera/resources/user/resources/index.js +0 -31
- package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.d.ts +0 -20
- package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +0 -111
- package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/client/index.d.ts +0 -1
- package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/client/index.js +0 -17
- package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/client/requests/GetUserRequest.d.ts +0 -6
- package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/client/requests/GetUserRequest.js +0 -5
- package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/client/requests/index.d.ts +0 -1
- package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/client/requests/index.js +0 -2
- package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/index.d.ts +0 -1
- package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/index.js +0 -17
- package/dist/api/resources/db/resources/user/types/AiPriseVerificationResult.d.ts +0 -8
- package/dist/api/resources/db/resources/user/types/AiPriseVerificationResult.js +0 -5
- package/dist/api/resources/db/resources/user/types/AiPriseVerificationStatus.d.ts +0 -10
- package/dist/api/resources/db/resources/user/types/AiPriseVerificationStatus.js +0 -12
- package/dist/api/resources/db/resources/user/types/KycDocument.d.ts +0 -11
- package/dist/api/resources/db/resources/user/types/KycDocument.js +0 -5
- package/dist/api/resources/db/resources/user/types/KycDocumentFile.d.ts +0 -8
- package/dist/api/resources/db/resources/user/types/KycDocumentFile.js +0 -5
- package/dist/api/resources/db/resources/user/types/KycDocumentType.d.ts +0 -11
- package/dist/api/resources/db/resources/user/types/KycDocumentType.js +0 -13
- package/dist/serialization/resources/api/resources/aiprise/index.d.ts +0 -1
- package/dist/serialization/resources/api/resources/aiprise/index.js +0 -17
- package/dist/serialization/resources/api/resources/aiprise/resources/aipriseWebhookApi/index.d.ts +0 -1
- package/dist/serialization/resources/api/resources/aiprise/resources/aipriseWebhookApi/index.js +0 -17
- package/dist/serialization/resources/api/resources/aiprise/resources/aipriseWebhookApi/types/AiPriseVerificationCallback.d.ts +0 -16
- package/dist/serialization/resources/api/resources/aiprise/resources/aipriseWebhookApi/types/AiPriseVerificationCallback.js +0 -46
- package/dist/serialization/resources/api/resources/aiprise/resources/aipriseWebhookApi/types/AiPriseVerificationIdInfo.d.ts +0 -14
- package/dist/serialization/resources/api/resources/aiprise/resources/aipriseWebhookApi/types/AiPriseVerificationIdInfo.js +0 -35
- package/dist/serialization/resources/api/resources/aiprise/resources/aipriseWebhookApi/types/AiPriseVerificationResultStatus.d.ts +0 -10
- package/dist/serialization/resources/api/resources/aiprise/resources/aipriseWebhookApi/types/AiPriseVerificationResultStatus.js +0 -31
- package/dist/serialization/resources/api/resources/aiprise/resources/aipriseWebhookApi/types/AiPriseVerificationSummary.d.ts +0 -12
- package/dist/serialization/resources/api/resources/aiprise/resources/aipriseWebhookApi/types/AiPriseVerificationSummary.js +0 -42
- package/dist/serialization/resources/api/resources/aiprise/resources/aipriseWebhookApi/types/index.d.ts +0 -4
- package/dist/serialization/resources/api/resources/aiprise/resources/aipriseWebhookApi/types/index.js +0 -20
- package/dist/serialization/resources/api/resources/aiprise/resources/index.d.ts +0 -2
- package/dist/serialization/resources/api/resources/aiprise/resources/index.js +0 -31
- package/dist/serialization/resources/db/resources/user/types/AiPriseVerificationResult.d.ts +0 -13
- package/dist/serialization/resources/db/resources/user/types/AiPriseVerificationResult.js +0 -43
- package/dist/serialization/resources/db/resources/user/types/AiPriseVerificationStatus.d.ts +0 -10
- package/dist/serialization/resources/db/resources/user/types/AiPriseVerificationStatus.js +0 -31
- package/dist/serialization/resources/db/resources/user/types/KycDocument.d.ts +0 -15
- package/dist/serialization/resources/db/resources/user/types/KycDocument.js +0 -45
- package/dist/serialization/resources/db/resources/user/types/KycDocumentFile.d.ts +0 -14
- package/dist/serialization/resources/db/resources/user/types/KycDocumentFile.js +0 -35
- package/dist/serialization/resources/db/resources/user/types/KycDocumentType.d.ts +0 -10
- package/dist/serialization/resources/db/resources/user/types/KycDocumentType.js +0 -31
- package/serialization/resources/api/resources/aiprise/index.d.ts +0 -1
- package/serialization/resources/api/resources/aiprise/index.js +0 -17
- package/serialization/resources/api/resources/aiprise/resources/aipriseWebhookApi/index.d.ts +0 -1
- package/serialization/resources/api/resources/aiprise/resources/aipriseWebhookApi/index.js +0 -17
- package/serialization/resources/api/resources/aiprise/resources/aipriseWebhookApi/types/AiPriseVerificationCallback.d.ts +0 -16
- package/serialization/resources/api/resources/aiprise/resources/aipriseWebhookApi/types/AiPriseVerificationCallback.js +0 -46
- package/serialization/resources/api/resources/aiprise/resources/aipriseWebhookApi/types/AiPriseVerificationIdInfo.d.ts +0 -14
- package/serialization/resources/api/resources/aiprise/resources/aipriseWebhookApi/types/AiPriseVerificationIdInfo.js +0 -35
- package/serialization/resources/api/resources/aiprise/resources/aipriseWebhookApi/types/AiPriseVerificationResultStatus.d.ts +0 -10
- package/serialization/resources/api/resources/aiprise/resources/aipriseWebhookApi/types/AiPriseVerificationResultStatus.js +0 -31
- package/serialization/resources/api/resources/aiprise/resources/aipriseWebhookApi/types/AiPriseVerificationSummary.d.ts +0 -12
- package/serialization/resources/api/resources/aiprise/resources/aipriseWebhookApi/types/AiPriseVerificationSummary.js +0 -42
- package/serialization/resources/api/resources/aiprise/resources/aipriseWebhookApi/types/index.d.ts +0 -4
- package/serialization/resources/api/resources/aiprise/resources/aipriseWebhookApi/types/index.js +0 -20
- package/serialization/resources/api/resources/aiprise/resources/index.d.ts +0 -2
- package/serialization/resources/api/resources/aiprise/resources/index.js +0 -31
- package/serialization/resources/db/resources/user/types/AiPriseVerificationResult.d.ts +0 -13
- package/serialization/resources/db/resources/user/types/AiPriseVerificationResult.js +0 -43
- package/serialization/resources/db/resources/user/types/AiPriseVerificationStatus.d.ts +0 -10
- package/serialization/resources/db/resources/user/types/AiPriseVerificationStatus.js +0 -31
- package/serialization/resources/db/resources/user/types/KycDocument.d.ts +0 -15
- package/serialization/resources/db/resources/user/types/KycDocument.js +0 -45
- package/serialization/resources/db/resources/user/types/KycDocumentFile.d.ts +0 -14
- package/serialization/resources/db/resources/user/types/KycDocumentFile.js +0 -35
- package/serialization/resources/db/resources/user/types/KycDocumentType.d.ts +0 -10
- package/serialization/resources/db/resources/user/types/KycDocumentType.js +0 -31
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as core from "../../../../core";
|
|
5
|
-
import { Aiprise } from "../resources/aiprise/client/Client";
|
|
6
5
|
import { Services } from "../resources/services/client/Client";
|
|
7
6
|
import { Test } from "../resources/test/client/Client";
|
|
8
7
|
import { Thera } from "../resources/thera/client/Client";
|
|
@@ -15,8 +14,6 @@ export declare namespace Api {
|
|
|
15
14
|
export declare class Api {
|
|
16
15
|
protected readonly _options: Api.Options;
|
|
17
16
|
constructor(_options: Api.Options);
|
|
18
|
-
protected _aiprise: Aiprise | undefined;
|
|
19
|
-
get aiprise(): Aiprise;
|
|
20
17
|
protected _services: Services | undefined;
|
|
21
18
|
get services(): Services;
|
|
22
19
|
protected _test: Test | undefined;
|
|
@@ -4,29 +4,24 @@
|
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.Api = void 0;
|
|
7
|
-
const Client_1 = require("../resources/
|
|
8
|
-
const Client_2 = require("../resources/
|
|
9
|
-
const Client_3 = require("../resources/
|
|
10
|
-
const Client_4 = require("../resources/thera/client/Client");
|
|
7
|
+
const Client_1 = require("../resources/services/client/Client");
|
|
8
|
+
const Client_2 = require("../resources/test/client/Client");
|
|
9
|
+
const Client_3 = require("../resources/thera/client/Client");
|
|
11
10
|
class Api {
|
|
12
11
|
constructor(_options) {
|
|
13
12
|
this._options = _options;
|
|
14
13
|
}
|
|
15
|
-
get aiprise() {
|
|
16
|
-
var _a;
|
|
17
|
-
return ((_a = this._aiprise) !== null && _a !== void 0 ? _a : (this._aiprise = new Client_1.Aiprise(this._options)));
|
|
18
|
-
}
|
|
19
14
|
get services() {
|
|
20
15
|
var _a;
|
|
21
|
-
return ((_a = this._services) !== null && _a !== void 0 ? _a : (this._services = new
|
|
16
|
+
return ((_a = this._services) !== null && _a !== void 0 ? _a : (this._services = new Client_1.Services(this._options)));
|
|
22
17
|
}
|
|
23
18
|
get test() {
|
|
24
19
|
var _a;
|
|
25
|
-
return ((_a = this._test) !== null && _a !== void 0 ? _a : (this._test = new
|
|
20
|
+
return ((_a = this._test) !== null && _a !== void 0 ? _a : (this._test = new Client_2.Test(this._options)));
|
|
26
21
|
}
|
|
27
22
|
get thera() {
|
|
28
23
|
var _a;
|
|
29
|
-
return ((_a = this._thera) !== null && _a !== void 0 ? _a : (this._thera = new
|
|
24
|
+
return ((_a = this._thera) !== null && _a !== void 0 ? _a : (this._thera = new Client_3.Thera(this._options)));
|
|
30
25
|
}
|
|
31
26
|
}
|
|
32
27
|
exports.Api = Api;
|
|
@@ -23,8 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.zeal = exports.thera = exports.test = exports.services = exports.response = exports.request =
|
|
27
|
-
exports.aiprise = __importStar(require("./aiprise"));
|
|
26
|
+
exports.zeal = exports.thera = exports.test = exports.services = exports.response = exports.request = void 0;
|
|
28
27
|
exports.request = __importStar(require("./request"));
|
|
29
28
|
exports.response = __importStar(require("./response"));
|
|
30
29
|
exports.services = __importStar(require("./services"));
|
|
@@ -56,7 +56,7 @@ class File_ {
|
|
|
56
56
|
Authorization: yield this._getAuthorizationHeader(),
|
|
57
57
|
"X-Fern-Language": "JavaScript",
|
|
58
58
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
59
|
-
"X-Fern-SDK-Version": "0.0.
|
|
59
|
+
"X-Fern-SDK-Version": "0.0.2108",
|
|
60
60
|
},
|
|
61
61
|
contentType: "application/json",
|
|
62
62
|
body: yield serializers.api.services.AttachDocumentToEmploymentRequest.jsonOrThrow(request, {
|
|
@@ -97,7 +97,7 @@ class File_ {
|
|
|
97
97
|
Authorization: yield this._getAuthorizationHeader(),
|
|
98
98
|
"X-Fern-Language": "JavaScript",
|
|
99
99
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
100
|
-
"X-Fern-SDK-Version": "0.0.
|
|
100
|
+
"X-Fern-SDK-Version": "0.0.2108",
|
|
101
101
|
},
|
|
102
102
|
contentType: "application/json",
|
|
103
103
|
body: yield serializers.api.services.DeleteDocumentFromEmploymentRequest.jsonOrThrow(request, {
|
|
@@ -138,7 +138,7 @@ class File_ {
|
|
|
138
138
|
Authorization: yield this._getAuthorizationHeader(),
|
|
139
139
|
"X-Fern-Language": "JavaScript",
|
|
140
140
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
141
|
-
"X-Fern-SDK-Version": "0.0.
|
|
141
|
+
"X-Fern-SDK-Version": "0.0.2108",
|
|
142
142
|
},
|
|
143
143
|
contentType: "application/json",
|
|
144
144
|
timeoutMs: 60000,
|
|
@@ -181,7 +181,7 @@ class File_ {
|
|
|
181
181
|
Authorization: yield this._getAuthorizationHeader(),
|
|
182
182
|
"X-Fern-Language": "JavaScript",
|
|
183
183
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
184
|
-
"X-Fern-SDK-Version": "0.0.
|
|
184
|
+
"X-Fern-SDK-Version": "0.0.2108",
|
|
185
185
|
},
|
|
186
186
|
contentType: "application/json",
|
|
187
187
|
timeoutMs: 60000,
|
|
@@ -56,7 +56,7 @@ class Invoices {
|
|
|
56
56
|
Authorization: yield this._getAuthorizationHeader(),
|
|
57
57
|
"X-Fern-Language": "JavaScript",
|
|
58
58
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
59
|
-
"X-Fern-SDK-Version": "0.0.
|
|
59
|
+
"X-Fern-SDK-Version": "0.0.2108",
|
|
60
60
|
},
|
|
61
61
|
contentType: "application/json",
|
|
62
62
|
body: yield serializers.api.test.VoidInvoiceRequest.jsonOrThrow(request, {
|
|
@@ -7,7 +7,6 @@ import { Company } from "../resources/company/client/Client";
|
|
|
7
7
|
import { Disbursement } from "../resources/disbursement/client/Client";
|
|
8
8
|
import { Employment } from "../resources/employment/client/Client";
|
|
9
9
|
import { Payroll } from "../resources/payroll/client/Client";
|
|
10
|
-
import { User } from "../resources/user/client/Client";
|
|
11
10
|
export declare namespace Thera {
|
|
12
11
|
interface Options {
|
|
13
12
|
environment: core.Supplier<string>;
|
|
@@ -27,6 +26,4 @@ export declare class Thera {
|
|
|
27
26
|
get employment(): Employment;
|
|
28
27
|
protected _payroll: Payroll | undefined;
|
|
29
28
|
get payroll(): Payroll;
|
|
30
|
-
protected _user: User | undefined;
|
|
31
|
-
get user(): User;
|
|
32
29
|
}
|
|
@@ -9,7 +9,6 @@ const Client_2 = require("../resources/company/client/Client");
|
|
|
9
9
|
const Client_3 = require("../resources/disbursement/client/Client");
|
|
10
10
|
const Client_4 = require("../resources/employment/client/Client");
|
|
11
11
|
const Client_5 = require("../resources/payroll/client/Client");
|
|
12
|
-
const Client_6 = require("../resources/user/client/Client");
|
|
13
12
|
class Thera {
|
|
14
13
|
constructor(_options) {
|
|
15
14
|
this._options = _options;
|
|
@@ -34,9 +33,5 @@ class Thera {
|
|
|
34
33
|
var _a;
|
|
35
34
|
return ((_a = this._payroll) !== null && _a !== void 0 ? _a : (this._payroll = new Client_5.Payroll(this._options)));
|
|
36
35
|
}
|
|
37
|
-
get user() {
|
|
38
|
-
var _a;
|
|
39
|
-
return ((_a = this._user) !== null && _a !== void 0 ? _a : (this._user = new Client_6.User(this._options)));
|
|
40
|
-
}
|
|
41
36
|
}
|
|
42
37
|
exports.Thera = Thera;
|
|
@@ -65,7 +65,7 @@ class BankApi {
|
|
|
65
65
|
Authorization: yield this._getAuthorizationHeader(),
|
|
66
66
|
"X-Fern-Language": "JavaScript",
|
|
67
67
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
68
|
-
"X-Fern-SDK-Version": "0.0.
|
|
68
|
+
"X-Fern-SDK-Version": "0.0.2108",
|
|
69
69
|
},
|
|
70
70
|
contentType: "application/json",
|
|
71
71
|
queryParameters: _queryParams,
|
|
@@ -112,7 +112,7 @@ class BankApi {
|
|
|
112
112
|
Authorization: yield this._getAuthorizationHeader(),
|
|
113
113
|
"X-Fern-Language": "JavaScript",
|
|
114
114
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
115
|
-
"X-Fern-SDK-Version": "0.0.
|
|
115
|
+
"X-Fern-SDK-Version": "0.0.2108",
|
|
116
116
|
},
|
|
117
117
|
contentType: "application/json",
|
|
118
118
|
body: yield serializers.api.thera.bank.VerifyAccountSignupRequest.jsonOrThrow(request, {
|
|
@@ -156,7 +156,7 @@ class BankApi {
|
|
|
156
156
|
Authorization: yield this._getAuthorizationHeader(),
|
|
157
157
|
"X-Fern-Language": "JavaScript",
|
|
158
158
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
159
|
-
"X-Fern-SDK-Version": "0.0.
|
|
159
|
+
"X-Fern-SDK-Version": "0.0.2108",
|
|
160
160
|
},
|
|
161
161
|
contentType: "application/json",
|
|
162
162
|
timeoutMs: 60000,
|
|
@@ -197,7 +197,7 @@ class BankApi {
|
|
|
197
197
|
Authorization: yield this._getAuthorizationHeader(),
|
|
198
198
|
"X-Fern-Language": "JavaScript",
|
|
199
199
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
200
|
-
"X-Fern-SDK-Version": "0.0.
|
|
200
|
+
"X-Fern-SDK-Version": "0.0.2108",
|
|
201
201
|
},
|
|
202
202
|
contentType: "application/json",
|
|
203
203
|
body: yield serializers.api.thera.bank.VerifyMicrodepositRequest.jsonOrThrow(request, {
|
|
@@ -241,7 +241,7 @@ class BankApi {
|
|
|
241
241
|
Authorization: yield this._getAuthorizationHeader(),
|
|
242
242
|
"X-Fern-Language": "JavaScript",
|
|
243
243
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
244
|
-
"X-Fern-SDK-Version": "0.0.
|
|
244
|
+
"X-Fern-SDK-Version": "0.0.2108",
|
|
245
245
|
},
|
|
246
246
|
contentType: "application/json",
|
|
247
247
|
body: yield serializers.api.thera.bank.WithdrawalMethodsRequest.jsonOrThrow(request, {
|
|
@@ -290,7 +290,7 @@ class BankApi {
|
|
|
290
290
|
Authorization: yield this._getAuthorizationHeader(),
|
|
291
291
|
"X-Fern-Language": "JavaScript",
|
|
292
292
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
293
|
-
"X-Fern-SDK-Version": "0.0.
|
|
293
|
+
"X-Fern-SDK-Version": "0.0.2108",
|
|
294
294
|
},
|
|
295
295
|
contentType: "application/json",
|
|
296
296
|
body: yield serializers.api.thera.bank.WithdrawalMethodsRequest.jsonOrThrow(request, {
|
|
@@ -336,7 +336,7 @@ class BankApi {
|
|
|
336
336
|
Authorization: yield this._getAuthorizationHeader(),
|
|
337
337
|
"X-Fern-Language": "JavaScript",
|
|
338
338
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
339
|
-
"X-Fern-SDK-Version": "0.0.
|
|
339
|
+
"X-Fern-SDK-Version": "0.0.2108",
|
|
340
340
|
},
|
|
341
341
|
contentType: "application/json",
|
|
342
342
|
timeoutMs: 60000,
|
|
@@ -379,7 +379,7 @@ class BankApi {
|
|
|
379
379
|
Authorization: yield this._getAuthorizationHeader(),
|
|
380
380
|
"X-Fern-Language": "JavaScript",
|
|
381
381
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
382
|
-
"X-Fern-SDK-Version": "0.0.
|
|
382
|
+
"X-Fern-SDK-Version": "0.0.2108",
|
|
383
383
|
},
|
|
384
384
|
contentType: "application/json",
|
|
385
385
|
body: yield serializers.api.thera.bank.InitiateWorkerWithdrawalRequest.jsonOrThrow(request, {
|
|
@@ -425,7 +425,7 @@ class BankApi {
|
|
|
425
425
|
Authorization: yield this._getAuthorizationHeader(),
|
|
426
426
|
"X-Fern-Language": "JavaScript",
|
|
427
427
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
428
|
-
"X-Fern-SDK-Version": "0.0.
|
|
428
|
+
"X-Fern-SDK-Version": "0.0.2108",
|
|
429
429
|
},
|
|
430
430
|
contentType: "application/json",
|
|
431
431
|
timeoutMs: 60000,
|
|
@@ -468,7 +468,7 @@ class BankApi {
|
|
|
468
468
|
Authorization: yield this._getAuthorizationHeader(),
|
|
469
469
|
"X-Fern-Language": "JavaScript",
|
|
470
470
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
471
|
-
"X-Fern-SDK-Version": "0.0.
|
|
471
|
+
"X-Fern-SDK-Version": "0.0.2108",
|
|
472
472
|
},
|
|
473
473
|
contentType: "application/json",
|
|
474
474
|
timeoutMs: 60000,
|
package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export declare class CompanyApi {
|
|
|
13
13
|
protected readonly _options: CompanyApi.Options;
|
|
14
14
|
constructor(_options: CompanyApi.Options);
|
|
15
15
|
/**
|
|
16
|
-
* Invite Contractor or Create Contract
|
|
16
|
+
* In Staging. Invite Contractor or Create Contract
|
|
17
17
|
*/
|
|
18
18
|
inviteContractor(request: TheraApi.api.thera.company.InviteContractorReq): Promise<TheraApi.api.thera.company.InviteContractorResponse>;
|
|
19
19
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js
CHANGED
|
@@ -49,7 +49,7 @@ class CompanyApi {
|
|
|
49
49
|
this._options = _options;
|
|
50
50
|
}
|
|
51
51
|
/**
|
|
52
|
-
* Invite Contractor or Create Contract
|
|
52
|
+
* In Staging. Invite Contractor or Create Contract
|
|
53
53
|
*/
|
|
54
54
|
inviteContractor(request) {
|
|
55
55
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -65,7 +65,7 @@ class CompanyApi {
|
|
|
65
65
|
Authorization: yield this._getAuthorizationHeader(),
|
|
66
66
|
"X-Fern-Language": "JavaScript",
|
|
67
67
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
68
|
-
"X-Fern-SDK-Version": "0.0.
|
|
68
|
+
"X-Fern-SDK-Version": "0.0.2108",
|
|
69
69
|
},
|
|
70
70
|
contentType: "application/json",
|
|
71
71
|
queryParameters: _queryParams,
|
|
@@ -59,7 +59,7 @@ class CompanyW2PayrollApi {
|
|
|
59
59
|
Authorization: yield this._getAuthorizationHeader(),
|
|
60
60
|
"X-Fern-Language": "JavaScript",
|
|
61
61
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
62
|
-
"X-Fern-SDK-Version": "0.0.
|
|
62
|
+
"X-Fern-SDK-Version": "0.0.2108",
|
|
63
63
|
},
|
|
64
64
|
contentType: "application/json",
|
|
65
65
|
body: yield serializers.api.thera.company.OnboardW2PayrollRequest.jsonOrThrow(request, {
|
|
@@ -59,7 +59,7 @@ class DisbursementApi {
|
|
|
59
59
|
Authorization: yield this._getAuthorizationHeader(),
|
|
60
60
|
"X-Fern-Language": "JavaScript",
|
|
61
61
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
62
|
-
"X-Fern-SDK-Version": "0.0.
|
|
62
|
+
"X-Fern-SDK-Version": "0.0.2108",
|
|
63
63
|
},
|
|
64
64
|
contentType: "application/json",
|
|
65
65
|
body: yield serializers.api.thera.disbursement.CreateDisbursementRequest.jsonOrThrow(request, {
|
|
@@ -103,7 +103,7 @@ class DisbursementApi {
|
|
|
103
103
|
Authorization: yield this._getAuthorizationHeader(),
|
|
104
104
|
"X-Fern-Language": "JavaScript",
|
|
105
105
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
106
|
-
"X-Fern-SDK-Version": "0.0.
|
|
106
|
+
"X-Fern-SDK-Version": "0.0.2108",
|
|
107
107
|
},
|
|
108
108
|
contentType: "application/json",
|
|
109
109
|
timeoutMs: 60000,
|
|
@@ -60,7 +60,7 @@ class DisbursementWebhookApi {
|
|
|
60
60
|
Authorization: yield this._getAuthorizationHeader(),
|
|
61
61
|
"X-Fern-Language": "JavaScript",
|
|
62
62
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
63
|
-
"X-Fern-SDK-Version": "0.0.
|
|
63
|
+
"X-Fern-SDK-Version": "0.0.2108",
|
|
64
64
|
"Thera-Webhook-Signature-Header": theraWebhookSignatureHeader,
|
|
65
65
|
},
|
|
66
66
|
contentType: "application/json",
|
|
@@ -59,7 +59,7 @@ class EmploymentApi {
|
|
|
59
59
|
Authorization: yield this._getAuthorizationHeader(),
|
|
60
60
|
"X-Fern-Language": "JavaScript",
|
|
61
61
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
62
|
-
"X-Fern-SDK-Version": "0.0.
|
|
62
|
+
"X-Fern-SDK-Version": "0.0.2108",
|
|
63
63
|
},
|
|
64
64
|
contentType: "application/json",
|
|
65
65
|
body: yield serializers.api.thera.employment.CreateContractEstimateRequest.jsonOrThrow(request, {
|
|
@@ -108,7 +108,7 @@ class EmploymentApi {
|
|
|
108
108
|
Authorization: yield this._getAuthorizationHeader(),
|
|
109
109
|
"X-Fern-Language": "JavaScript",
|
|
110
110
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
111
|
-
"X-Fern-SDK-Version": "0.0.
|
|
111
|
+
"X-Fern-SDK-Version": "0.0.2108",
|
|
112
112
|
},
|
|
113
113
|
contentType: "application/json",
|
|
114
114
|
timeoutMs: 60000,
|
|
@@ -23,11 +23,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.
|
|
26
|
+
exports.payroll = exports.employment = exports.disbursement = exports.company = exports.common = exports.bank = void 0;
|
|
27
27
|
exports.bank = __importStar(require("./bank"));
|
|
28
28
|
exports.common = __importStar(require("./common"));
|
|
29
29
|
exports.company = __importStar(require("./company"));
|
|
30
30
|
exports.disbursement = __importStar(require("./disbursement"));
|
|
31
31
|
exports.employment = __importStar(require("./employment"));
|
|
32
32
|
exports.payroll = __importStar(require("./payroll"));
|
|
33
|
-
exports.user = __importStar(require("./user"));
|
package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js
CHANGED
|
@@ -59,7 +59,7 @@ class OncycleApi {
|
|
|
59
59
|
Authorization: yield this._getAuthorizationHeader(),
|
|
60
60
|
"X-Fern-Language": "JavaScript",
|
|
61
61
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
62
|
-
"X-Fern-SDK-Version": "0.0.
|
|
62
|
+
"X-Fern-SDK-Version": "0.0.2108",
|
|
63
63
|
},
|
|
64
64
|
contentType: "application/json",
|
|
65
65
|
timeoutMs: 60000,
|
|
@@ -14,6 +14,4 @@ export interface EmployeeInformation {
|
|
|
14
14
|
/** The Thera payment system that the user will using. 1 is Stripe Express, 2 is Payments V2 (Wise, etc.). This will match the `paymentsVersion` of the `Company` that invites the contractor to the platform. */
|
|
15
15
|
paymentsVersion: number;
|
|
16
16
|
settingsByCompanyId: Record<string, TheraApi.db.CompanySettings>;
|
|
17
|
-
/** If null or empty list, means user doesn't have kyc info. */
|
|
18
|
-
kycInformation: TheraApi.db.KycDocument[];
|
|
19
17
|
}
|
|
@@ -3,11 +3,6 @@ export * from "./ComplianceDocument";
|
|
|
3
3
|
export * from "./ComplianceInformation";
|
|
4
4
|
export * from "./EmployeeOnboardingStatus";
|
|
5
5
|
export * from "./EmployeeInformation";
|
|
6
|
-
export * from "./KycDocumentType";
|
|
7
|
-
export * from "./KycDocument";
|
|
8
|
-
export * from "./KycDocumentFile";
|
|
9
|
-
export * from "./AiPriseVerificationResult";
|
|
10
|
-
export * from "./AiPriseVerificationStatus";
|
|
11
6
|
export * from "./CompanySettings";
|
|
12
7
|
export * from "./WithdrawalMethod";
|
|
13
8
|
export * from "./BankTransfer";
|
|
@@ -19,11 +19,6 @@ __exportStar(require("./ComplianceDocument"), exports);
|
|
|
19
19
|
__exportStar(require("./ComplianceInformation"), exports);
|
|
20
20
|
__exportStar(require("./EmployeeOnboardingStatus"), exports);
|
|
21
21
|
__exportStar(require("./EmployeeInformation"), exports);
|
|
22
|
-
__exportStar(require("./KycDocumentType"), exports);
|
|
23
|
-
__exportStar(require("./KycDocument"), exports);
|
|
24
|
-
__exportStar(require("./KycDocumentFile"), exports);
|
|
25
|
-
__exportStar(require("./AiPriseVerificationResult"), exports);
|
|
26
|
-
__exportStar(require("./AiPriseVerificationStatus"), exports);
|
|
27
22
|
__exportStar(require("./CompanySettings"), exports);
|
|
28
23
|
__exportStar(require("./WithdrawalMethod"), exports);
|
|
29
24
|
__exportStar(require("./BankTransfer"), exports);
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as core from "../../../../core";
|
|
5
|
-
import { Aiprise } from "../resources/aiprise/client/Client";
|
|
6
5
|
import { Services } from "../resources/services/client/Client";
|
|
7
6
|
import { Test } from "../resources/test/client/Client";
|
|
8
7
|
import { Thera } from "../resources/thera/client/Client";
|
|
@@ -15,8 +14,6 @@ export declare namespace Api {
|
|
|
15
14
|
export declare class Api {
|
|
16
15
|
protected readonly _options: Api.Options;
|
|
17
16
|
constructor(_options: Api.Options);
|
|
18
|
-
protected _aiprise: Aiprise | undefined;
|
|
19
|
-
get aiprise(): Aiprise;
|
|
20
17
|
protected _services: Services | undefined;
|
|
21
18
|
get services(): Services;
|
|
22
19
|
protected _test: Test | undefined;
|
|
@@ -4,29 +4,24 @@
|
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.Api = void 0;
|
|
7
|
-
const Client_1 = require("../resources/
|
|
8
|
-
const Client_2 = require("../resources/
|
|
9
|
-
const Client_3 = require("../resources/
|
|
10
|
-
const Client_4 = require("../resources/thera/client/Client");
|
|
7
|
+
const Client_1 = require("../resources/services/client/Client");
|
|
8
|
+
const Client_2 = require("../resources/test/client/Client");
|
|
9
|
+
const Client_3 = require("../resources/thera/client/Client");
|
|
11
10
|
class Api {
|
|
12
11
|
constructor(_options) {
|
|
13
12
|
this._options = _options;
|
|
14
13
|
}
|
|
15
|
-
get aiprise() {
|
|
16
|
-
var _a;
|
|
17
|
-
return ((_a = this._aiprise) !== null && _a !== void 0 ? _a : (this._aiprise = new Client_1.Aiprise(this._options)));
|
|
18
|
-
}
|
|
19
14
|
get services() {
|
|
20
15
|
var _a;
|
|
21
|
-
return ((_a = this._services) !== null && _a !== void 0 ? _a : (this._services = new
|
|
16
|
+
return ((_a = this._services) !== null && _a !== void 0 ? _a : (this._services = new Client_1.Services(this._options)));
|
|
22
17
|
}
|
|
23
18
|
get test() {
|
|
24
19
|
var _a;
|
|
25
|
-
return ((_a = this._test) !== null && _a !== void 0 ? _a : (this._test = new
|
|
20
|
+
return ((_a = this._test) !== null && _a !== void 0 ? _a : (this._test = new Client_2.Test(this._options)));
|
|
26
21
|
}
|
|
27
22
|
get thera() {
|
|
28
23
|
var _a;
|
|
29
|
-
return ((_a = this._thera) !== null && _a !== void 0 ? _a : (this._thera = new
|
|
24
|
+
return ((_a = this._thera) !== null && _a !== void 0 ? _a : (this._thera = new Client_3.Thera(this._options)));
|
|
30
25
|
}
|
|
31
26
|
}
|
|
32
27
|
exports.Api = Api;
|
|
@@ -23,8 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.zeal = exports.thera = exports.test = exports.services = exports.response = exports.request =
|
|
27
|
-
exports.aiprise = __importStar(require("./aiprise"));
|
|
26
|
+
exports.zeal = exports.thera = exports.test = exports.services = exports.response = exports.request = void 0;
|
|
28
27
|
exports.request = __importStar(require("./request"));
|
|
29
28
|
exports.response = __importStar(require("./response"));
|
|
30
29
|
exports.services = __importStar(require("./services"));
|
|
@@ -56,7 +56,7 @@ class File_ {
|
|
|
56
56
|
Authorization: yield this._getAuthorizationHeader(),
|
|
57
57
|
"X-Fern-Language": "JavaScript",
|
|
58
58
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
59
|
-
"X-Fern-SDK-Version": "0.0.
|
|
59
|
+
"X-Fern-SDK-Version": "0.0.2108",
|
|
60
60
|
},
|
|
61
61
|
contentType: "application/json",
|
|
62
62
|
body: yield serializers.api.services.AttachDocumentToEmploymentRequest.jsonOrThrow(request, {
|
|
@@ -97,7 +97,7 @@ class File_ {
|
|
|
97
97
|
Authorization: yield this._getAuthorizationHeader(),
|
|
98
98
|
"X-Fern-Language": "JavaScript",
|
|
99
99
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
100
|
-
"X-Fern-SDK-Version": "0.0.
|
|
100
|
+
"X-Fern-SDK-Version": "0.0.2108",
|
|
101
101
|
},
|
|
102
102
|
contentType: "application/json",
|
|
103
103
|
body: yield serializers.api.services.DeleteDocumentFromEmploymentRequest.jsonOrThrow(request, {
|
|
@@ -138,7 +138,7 @@ class File_ {
|
|
|
138
138
|
Authorization: yield this._getAuthorizationHeader(),
|
|
139
139
|
"X-Fern-Language": "JavaScript",
|
|
140
140
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
141
|
-
"X-Fern-SDK-Version": "0.0.
|
|
141
|
+
"X-Fern-SDK-Version": "0.0.2108",
|
|
142
142
|
},
|
|
143
143
|
contentType: "application/json",
|
|
144
144
|
timeoutMs: 60000,
|
|
@@ -181,7 +181,7 @@ class File_ {
|
|
|
181
181
|
Authorization: yield this._getAuthorizationHeader(),
|
|
182
182
|
"X-Fern-Language": "JavaScript",
|
|
183
183
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
184
|
-
"X-Fern-SDK-Version": "0.0.
|
|
184
|
+
"X-Fern-SDK-Version": "0.0.2108",
|
|
185
185
|
},
|
|
186
186
|
contentType: "application/json",
|
|
187
187
|
timeoutMs: 60000,
|
|
@@ -56,7 +56,7 @@ class Invoices {
|
|
|
56
56
|
Authorization: yield this._getAuthorizationHeader(),
|
|
57
57
|
"X-Fern-Language": "JavaScript",
|
|
58
58
|
"X-Fern-SDK-Name": "@thera-hr/api-sdk",
|
|
59
|
-
"X-Fern-SDK-Version": "0.0.
|
|
59
|
+
"X-Fern-SDK-Version": "0.0.2108",
|
|
60
60
|
},
|
|
61
61
|
contentType: "application/json",
|
|
62
62
|
body: yield serializers.api.test.VoidInvoiceRequest.jsonOrThrow(request, {
|
|
@@ -7,7 +7,6 @@ import { Company } from "../resources/company/client/Client";
|
|
|
7
7
|
import { Disbursement } from "../resources/disbursement/client/Client";
|
|
8
8
|
import { Employment } from "../resources/employment/client/Client";
|
|
9
9
|
import { Payroll } from "../resources/payroll/client/Client";
|
|
10
|
-
import { User } from "../resources/user/client/Client";
|
|
11
10
|
export declare namespace Thera {
|
|
12
11
|
interface Options {
|
|
13
12
|
environment: core.Supplier<string>;
|
|
@@ -27,6 +26,4 @@ export declare class Thera {
|
|
|
27
26
|
get employment(): Employment;
|
|
28
27
|
protected _payroll: Payroll | undefined;
|
|
29
28
|
get payroll(): Payroll;
|
|
30
|
-
protected _user: User | undefined;
|
|
31
|
-
get user(): User;
|
|
32
29
|
}
|
|
@@ -9,7 +9,6 @@ const Client_2 = require("../resources/company/client/Client");
|
|
|
9
9
|
const Client_3 = require("../resources/disbursement/client/Client");
|
|
10
10
|
const Client_4 = require("../resources/employment/client/Client");
|
|
11
11
|
const Client_5 = require("../resources/payroll/client/Client");
|
|
12
|
-
const Client_6 = require("../resources/user/client/Client");
|
|
13
12
|
class Thera {
|
|
14
13
|
constructor(_options) {
|
|
15
14
|
this._options = _options;
|
|
@@ -34,9 +33,5 @@ class Thera {
|
|
|
34
33
|
var _a;
|
|
35
34
|
return ((_a = this._payroll) !== null && _a !== void 0 ? _a : (this._payroll = new Client_5.Payroll(this._options)));
|
|
36
35
|
}
|
|
37
|
-
get user() {
|
|
38
|
-
var _a;
|
|
39
|
-
return ((_a = this._user) !== null && _a !== void 0 ? _a : (this._user = new Client_6.User(this._options)));
|
|
40
|
-
}
|
|
41
36
|
}
|
|
42
37
|
exports.Thera = Thera;
|