@thera-hr/api-sdk 0.0.1520 → 0.0.1547
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/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 +3 -0
- package/api/resources/api/resources/thera/client/Client.js +7 -2
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +4 -4
- 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/companyApi/types/CreateContractor.d.ts +1 -1
- package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +1 -1
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.d.ts +1 -1
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +2 -2
- package/api/resources/api/resources/thera/resources/employment/client/Client.d.ts +17 -0
- package/api/resources/api/resources/thera/resources/employment/client/Client.js +17 -0
- package/api/resources/api/resources/thera/resources/employment/client/index.d.ts +1 -0
- package/api/resources/api/resources/thera/resources/employment/client/index.js +2 -0
- package/api/resources/api/resources/thera/resources/employment/index.d.ts +2 -0
- package/api/resources/api/resources/thera/resources/employment/index.js +18 -0
- package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.d.ts +20 -0
- package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +109 -0
- package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/index.d.ts +1 -0
- package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/index.js +2 -0
- package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/index.d.ts +2 -0
- package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/index.js +18 -0
- package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/types/ContractEstimateRequest.d.ts +9 -0
- package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/types/ContractEstimateRequest.js +5 -0
- package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/types/CreateContractEstimateRequest.d.ts +8 -0
- package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/types/CreateContractEstimateRequest.js +5 -0
- package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/types/CreateContractEstimateResponse.d.ts +10 -0
- package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/types/CreateContractEstimateResponse.js +5 -0
- package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/types/PayCycleEstimate.d.ts +8 -0
- package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/types/PayCycleEstimate.js +5 -0
- package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/types/PayCycleEstimateRequest.d.ts +11 -0
- package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/types/PayCycleEstimateRequest.js +5 -0
- package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/types/ProRata.d.ts +9 -0
- package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/types/ProRata.js +5 -0
- package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/types/index.d.ts +6 -0
- package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/types/index.js +22 -0
- package/api/resources/api/resources/thera/resources/employment/resources/index.d.ts +2 -0
- package/api/resources/api/resources/thera/resources/employment/resources/index.js +31 -0
- package/api/resources/api/resources/thera/resources/index.d.ts +1 -0
- package/api/resources/api/resources/thera/resources/index.js +2 -1
- 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 +1 -0
- 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 +3 -0
- package/dist/api/resources/api/resources/thera/client/Client.js +7 -2
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +4 -4
- 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/companyApi/types/CreateContractor.d.ts +1 -1
- 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/disbursementWebhookApi/client/Client.d.ts +1 -1
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +2 -2
- package/dist/api/resources/api/resources/thera/resources/employment/client/Client.d.ts +17 -0
- package/dist/api/resources/api/resources/thera/resources/employment/client/Client.js +17 -0
- package/dist/api/resources/api/resources/thera/resources/employment/client/index.d.ts +1 -0
- package/dist/api/resources/api/resources/thera/resources/employment/client/index.js +2 -0
- package/dist/api/resources/api/resources/thera/resources/employment/index.d.ts +2 -0
- package/dist/api/resources/api/resources/thera/resources/employment/index.js +18 -0
- package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.d.ts +20 -0
- package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +109 -0
- package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/index.d.ts +1 -0
- package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/index.js +2 -0
- package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/index.d.ts +2 -0
- package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/index.js +18 -0
- package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/types/ContractEstimateRequest.d.ts +9 -0
- package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/types/ContractEstimateRequest.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/types/CreateContractEstimateRequest.d.ts +8 -0
- package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/types/CreateContractEstimateRequest.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/types/CreateContractEstimateResponse.d.ts +10 -0
- package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/types/CreateContractEstimateResponse.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/types/PayCycleEstimate.d.ts +8 -0
- package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/types/PayCycleEstimate.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/types/PayCycleEstimateRequest.d.ts +11 -0
- package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/types/PayCycleEstimateRequest.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/types/ProRata.d.ts +9 -0
- package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/types/ProRata.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/types/index.d.ts +6 -0
- package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/types/index.js +22 -0
- package/dist/api/resources/api/resources/thera/resources/employment/resources/index.d.ts +2 -0
- package/dist/api/resources/api/resources/thera/resources/employment/resources/index.js +31 -0
- package/dist/api/resources/api/resources/thera/resources/index.d.ts +1 -0
- package/dist/api/resources/api/resources/thera/resources/index.js +2 -1
- 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 +1 -0
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateContractor.d.ts +1 -1
- package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateContractor.js +1 -1
- package/dist/serialization/resources/api/resources/thera/resources/employment/index.d.ts +1 -0
- package/dist/serialization/resources/api/resources/thera/resources/employment/index.js +17 -0
- package/dist/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/index.d.ts +1 -0
- package/dist/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/index.js +17 -0
- package/dist/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/types/ContractEstimateRequest.d.ts +14 -0
- package/dist/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/types/ContractEstimateRequest.js +44 -0
- package/dist/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/types/CreateContractEstimateRequest.d.ts +13 -0
- package/dist/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/types/CreateContractEstimateRequest.js +43 -0
- package/dist/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/types/CreateContractEstimateResponse.d.ts +13 -0
- package/dist/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/types/CreateContractEstimateResponse.js +45 -0
- package/dist/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/types/PayCycleEstimate.d.ts +14 -0
- package/dist/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/types/PayCycleEstimate.js +35 -0
- package/dist/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/types/PayCycleEstimateRequest.d.ts +15 -0
- package/dist/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/types/PayCycleEstimateRequest.js +45 -0
- package/dist/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/types/ProRata.d.ts +14 -0
- package/dist/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/types/ProRata.js +35 -0
- package/dist/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/types/index.d.ts +6 -0
- package/dist/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/types/index.js +22 -0
- package/dist/serialization/resources/api/resources/thera/resources/employment/resources/index.d.ts +2 -0
- package/dist/serialization/resources/api/resources/thera/resources/employment/resources/index.js +31 -0
- package/dist/serialization/resources/api/resources/thera/resources/index.d.ts +1 -0
- package/dist/serialization/resources/api/resources/thera/resources/index.js +2 -1
- package/dist/serialization/resources/db/resources/user/types/EmployeeInformation.d.ts +1 -0
- package/dist/serialization/resources/db/resources/user/types/EmployeeInformation.js +1 -0
- package/package.json +1 -1
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateContractor.d.ts +1 -1
- package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateContractor.js +1 -1
- package/serialization/resources/api/resources/thera/resources/employment/index.d.ts +1 -0
- package/serialization/resources/api/resources/thera/resources/employment/index.js +17 -0
- package/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/index.d.ts +1 -0
- package/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/index.js +17 -0
- package/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/types/ContractEstimateRequest.d.ts +14 -0
- package/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/types/ContractEstimateRequest.js +44 -0
- package/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/types/CreateContractEstimateRequest.d.ts +13 -0
- package/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/types/CreateContractEstimateRequest.js +43 -0
- package/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/types/CreateContractEstimateResponse.d.ts +13 -0
- package/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/types/CreateContractEstimateResponse.js +45 -0
- package/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/types/PayCycleEstimate.d.ts +14 -0
- package/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/types/PayCycleEstimate.js +35 -0
- package/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/types/PayCycleEstimateRequest.d.ts +15 -0
- package/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/types/PayCycleEstimateRequest.js +45 -0
- package/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/types/ProRata.d.ts +14 -0
- package/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/types/ProRata.js +35 -0
- package/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/types/index.d.ts +6 -0
- package/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/types/index.js +22 -0
- package/serialization/resources/api/resources/thera/resources/employment/resources/index.d.ts +2 -0
- package/serialization/resources/api/resources/thera/resources/employment/resources/index.js +31 -0
- package/serialization/resources/api/resources/thera/resources/index.d.ts +1 -0
- package/serialization/resources/api/resources/thera/resources/index.js +2 -1
- package/serialization/resources/db/resources/user/types/EmployeeInformation.d.ts +1 -0
- package/serialization/resources/db/resources/user/types/EmployeeInformation.js +1 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../../../../../../..";
|
|
5
|
+
import * as TheraApi from "../../../../../../../../../../api";
|
|
6
|
+
import * as core from "../../../../../../../../../../core";
|
|
7
|
+
export declare const ContractEstimateRequest: core.serialization.ObjectSchema<serializers.api.thera.employment.ContractEstimateRequest.Raw, TheraApi.api.thera.employment.ContractEstimateRequest>;
|
|
8
|
+
export declare namespace ContractEstimateRequest {
|
|
9
|
+
interface Raw {
|
|
10
|
+
contractType: serializers.model.thera.ContractType.Raw;
|
|
11
|
+
wageType: serializers.model.thera.WageType.Raw;
|
|
12
|
+
rate: number;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
29
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
30
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
31
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
32
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
33
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
34
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
|
+
exports.ContractEstimateRequest = void 0;
|
|
39
|
+
const core = __importStar(require("../../../../../../../../../../core"));
|
|
40
|
+
exports.ContractEstimateRequest = core.serialization.object({
|
|
41
|
+
contractType: core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../../../../../..")))).model.thera.ContractType; })),
|
|
42
|
+
wageType: core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../../../../../..")))).model.thera.WageType; })),
|
|
43
|
+
rate: core.serialization.number(),
|
|
44
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../../../../../../..";
|
|
5
|
+
import * as TheraApi from "../../../../../../../../../../api";
|
|
6
|
+
import * as core from "../../../../../../../../../../core";
|
|
7
|
+
export declare const CreateContractEstimateRequest: core.serialization.ObjectSchema<serializers.api.thera.employment.CreateContractEstimateRequest.Raw, TheraApi.api.thera.employment.CreateContractEstimateRequest>;
|
|
8
|
+
export declare namespace CreateContractEstimateRequest {
|
|
9
|
+
interface Raw {
|
|
10
|
+
contractEstimateRequest: serializers.api.thera.employment.ContractEstimateRequest.Raw;
|
|
11
|
+
payCycle: serializers.api.thera.employment.PayCycleEstimateRequest.Raw;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
29
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
30
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
31
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
32
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
33
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
34
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
|
+
exports.CreateContractEstimateRequest = void 0;
|
|
39
|
+
const core = __importStar(require("../../../../../../../../../../core"));
|
|
40
|
+
exports.CreateContractEstimateRequest = core.serialization.object({
|
|
41
|
+
contractEstimateRequest: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../../../../../..")))).api.thera.employment.ContractEstimateRequest; })),
|
|
42
|
+
payCycle: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../../../../../..")))).api.thera.employment.PayCycleEstimateRequest; })),
|
|
43
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../../../../../../..";
|
|
5
|
+
import * as TheraApi from "../../../../../../../../../../api";
|
|
6
|
+
import * as core from "../../../../../../../../../../core";
|
|
7
|
+
export declare const CreateContractEstimateResponse: core.serialization.ObjectSchema<serializers.api.thera.employment.CreateContractEstimateResponse.Raw, TheraApi.api.thera.employment.CreateContractEstimateResponse>;
|
|
8
|
+
export declare namespace CreateContractEstimateResponse {
|
|
9
|
+
interface Raw {
|
|
10
|
+
paymentCycles: serializers.api.thera.employment.PayCycleEstimate.Raw[];
|
|
11
|
+
proRata?: serializers.api.thera.employment.ProRata.Raw | null;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
29
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
30
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
31
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
32
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
33
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
34
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
|
+
exports.CreateContractEstimateResponse = void 0;
|
|
39
|
+
const core = __importStar(require("../../../../../../../../../../core"));
|
|
40
|
+
exports.CreateContractEstimateResponse = core.serialization.object({
|
|
41
|
+
paymentCycles: core.serialization.list(core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../../../../../..")))).api.thera.employment.PayCycleEstimate; }))),
|
|
42
|
+
proRata: core.serialization
|
|
43
|
+
.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../../../../../..")))).api.thera.employment.ProRata; }))
|
|
44
|
+
.optional(),
|
|
45
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../../../../../../..";
|
|
5
|
+
import * as TheraApi from "../../../../../../../../../../api";
|
|
6
|
+
import * as core from "../../../../../../../../../../core";
|
|
7
|
+
export declare const PayCycleEstimate: core.serialization.ObjectSchema<serializers.api.thera.employment.PayCycleEstimate.Raw, TheraApi.api.thera.employment.PayCycleEstimate>;
|
|
8
|
+
export declare namespace PayCycleEstimate {
|
|
9
|
+
interface Raw {
|
|
10
|
+
dueDate: string;
|
|
11
|
+
endDate: string;
|
|
12
|
+
startDate: string;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.PayCycleEstimate = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../../../../../../../core"));
|
|
31
|
+
exports.PayCycleEstimate = core.serialization.object({
|
|
32
|
+
dueDate: core.serialization.string(),
|
|
33
|
+
endDate: core.serialization.string(),
|
|
34
|
+
startDate: core.serialization.string(),
|
|
35
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../../../../../../..";
|
|
5
|
+
import * as TheraApi from "../../../../../../../../../../api";
|
|
6
|
+
import * as core from "../../../../../../../../../../core";
|
|
7
|
+
export declare const PayCycleEstimateRequest: core.serialization.ObjectSchema<serializers.api.thera.employment.PayCycleEstimateRequest.Raw, TheraApi.api.thera.employment.PayCycleEstimateRequest>;
|
|
8
|
+
export declare namespace PayCycleEstimateRequest {
|
|
9
|
+
interface Raw {
|
|
10
|
+
timezone: string;
|
|
11
|
+
cycleStartDate: string;
|
|
12
|
+
cycleEnd: serializers.model.thera.PayCycleEnd.Raw;
|
|
13
|
+
paymentDueDays: number;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
29
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
30
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
31
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
32
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
33
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
34
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
|
+
exports.PayCycleEstimateRequest = void 0;
|
|
39
|
+
const core = __importStar(require("../../../../../../../../../../core"));
|
|
40
|
+
exports.PayCycleEstimateRequest = core.serialization.object({
|
|
41
|
+
timezone: core.serialization.string(),
|
|
42
|
+
cycleStartDate: core.serialization.string(),
|
|
43
|
+
cycleEnd: core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../../../../../..")))).model.thera.PayCycleEnd; })),
|
|
44
|
+
paymentDueDays: core.serialization.number(),
|
|
45
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../../../../../../..";
|
|
5
|
+
import * as TheraApi from "../../../../../../../../../../api";
|
|
6
|
+
import * as core from "../../../../../../../../../../core";
|
|
7
|
+
export declare const ProRata: core.serialization.ObjectSchema<serializers.api.thera.employment.ProRata.Raw, TheraApi.api.thera.employment.ProRata>;
|
|
8
|
+
export declare namespace ProRata {
|
|
9
|
+
interface Raw {
|
|
10
|
+
cycleStartDate: string;
|
|
11
|
+
cycleEndDate: string;
|
|
12
|
+
total: number;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.ProRata = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../../../../../../../core"));
|
|
31
|
+
exports.ProRata = core.serialization.object({
|
|
32
|
+
cycleStartDate: core.serialization.string(),
|
|
33
|
+
cycleEndDate: core.serialization.string(),
|
|
34
|
+
total: core.serialization.number(),
|
|
35
|
+
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./CreateContractEstimateRequest"), exports);
|
|
18
|
+
__exportStar(require("./ContractEstimateRequest"), exports);
|
|
19
|
+
__exportStar(require("./PayCycleEstimateRequest"), exports);
|
|
20
|
+
__exportStar(require("./CreateContractEstimateResponse"), exports);
|
|
21
|
+
__exportStar(require("./PayCycleEstimate"), exports);
|
|
22
|
+
__exportStar(require("./ProRata"), exports);
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
26
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.employmentApi = void 0;
|
|
30
|
+
exports.employmentApi = __importStar(require("./employmentApi"));
|
|
31
|
+
__exportStar(require("./employmentApi/types"), exports);
|
|
@@ -23,9 +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.payroll = exports.disbursement = exports.company = exports.bank = exports.address = void 0;
|
|
26
|
+
exports.payroll = exports.employment = exports.disbursement = exports.company = exports.bank = exports.address = void 0;
|
|
27
27
|
exports.address = __importStar(require("./address"));
|
|
28
28
|
exports.bank = __importStar(require("./bank"));
|
|
29
29
|
exports.company = __importStar(require("./company"));
|
|
30
30
|
exports.disbursement = __importStar(require("./disbursement"));
|
|
31
|
+
exports.employment = __importStar(require("./employment"));
|
|
31
32
|
exports.payroll = __importStar(require("./payroll"));
|
|
@@ -8,6 +8,7 @@ export declare const EmployeeInformation: core.serialization.ObjectSchema<serial
|
|
|
8
8
|
export declare namespace EmployeeInformation {
|
|
9
9
|
interface Raw {
|
|
10
10
|
stripeID: string;
|
|
11
|
+
onboardingStatus: serializers.db.EmployeeOnboardingStatus.Raw;
|
|
11
12
|
employeeOnboardingStatus: serializers.db.EmployeeOnboardingStatus.Raw;
|
|
12
13
|
country: string;
|
|
13
14
|
address: serializers.api.thera.address.Address.Raw;
|
|
@@ -39,6 +39,7 @@ exports.EmployeeInformation = void 0;
|
|
|
39
39
|
const core = __importStar(require("../../../../../../core"));
|
|
40
40
|
exports.EmployeeInformation = core.serialization.object({
|
|
41
41
|
stripeId: core.serialization.property("stripeID", core.serialization.string()),
|
|
42
|
+
onboardingStatus: core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../..")))).db.EmployeeOnboardingStatus; })),
|
|
42
43
|
employeeOnboardingStatus: core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../..")))).db.EmployeeOnboardingStatus; })),
|
|
43
44
|
country: core.serialization.string(),
|
|
44
45
|
address: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../..")))).api.thera.address.Address; })),
|