@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.
Files changed (139) hide show
  1. package/api/resources/api/resources/services/resources/file/client/Client.js +4 -4
  2. package/api/resources/api/resources/test/resources/invoices/client/Client.js +1 -1
  3. package/api/resources/api/resources/thera/client/Client.d.ts +3 -0
  4. package/api/resources/api/resources/thera/client/Client.js +7 -2
  5. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +4 -4
  6. package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.d.ts +1 -1
  7. package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +2 -2
  8. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateContractor.d.ts +1 -1
  9. package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +1 -1
  10. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.d.ts +1 -1
  11. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +2 -2
  12. package/api/resources/api/resources/thera/resources/employment/client/Client.d.ts +17 -0
  13. package/api/resources/api/resources/thera/resources/employment/client/Client.js +17 -0
  14. package/api/resources/api/resources/thera/resources/employment/client/index.d.ts +1 -0
  15. package/api/resources/api/resources/thera/resources/employment/client/index.js +2 -0
  16. package/api/resources/api/resources/thera/resources/employment/index.d.ts +2 -0
  17. package/api/resources/api/resources/thera/resources/employment/index.js +18 -0
  18. package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.d.ts +20 -0
  19. package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +109 -0
  20. package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/index.d.ts +1 -0
  21. package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/index.js +2 -0
  22. package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/index.d.ts +2 -0
  23. package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/index.js +18 -0
  24. package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/types/ContractEstimateRequest.d.ts +9 -0
  25. package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/types/ContractEstimateRequest.js +5 -0
  26. package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/types/CreateContractEstimateRequest.d.ts +8 -0
  27. package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/types/CreateContractEstimateRequest.js +5 -0
  28. package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/types/CreateContractEstimateResponse.d.ts +10 -0
  29. package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/types/CreateContractEstimateResponse.js +5 -0
  30. package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/types/PayCycleEstimate.d.ts +8 -0
  31. package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/types/PayCycleEstimate.js +5 -0
  32. package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/types/PayCycleEstimateRequest.d.ts +11 -0
  33. package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/types/PayCycleEstimateRequest.js +5 -0
  34. package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/types/ProRata.d.ts +9 -0
  35. package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/types/ProRata.js +5 -0
  36. package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/types/index.d.ts +6 -0
  37. package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/types/index.js +22 -0
  38. package/api/resources/api/resources/thera/resources/employment/resources/index.d.ts +2 -0
  39. package/api/resources/api/resources/thera/resources/employment/resources/index.js +31 -0
  40. package/api/resources/api/resources/thera/resources/index.d.ts +1 -0
  41. package/api/resources/api/resources/thera/resources/index.js +2 -1
  42. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +1 -1
  43. package/api/resources/db/resources/user/types/EmployeeInformation.d.ts +1 -0
  44. package/dist/api/resources/api/resources/services/resources/file/client/Client.js +4 -4
  45. package/dist/api/resources/api/resources/test/resources/invoices/client/Client.js +1 -1
  46. package/dist/api/resources/api/resources/thera/client/Client.d.ts +3 -0
  47. package/dist/api/resources/api/resources/thera/client/Client.js +7 -2
  48. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +4 -4
  49. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.d.ts +1 -1
  50. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +2 -2
  51. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateContractor.d.ts +1 -1
  52. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +1 -1
  53. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.d.ts +1 -1
  54. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +2 -2
  55. package/dist/api/resources/api/resources/thera/resources/employment/client/Client.d.ts +17 -0
  56. package/dist/api/resources/api/resources/thera/resources/employment/client/Client.js +17 -0
  57. package/dist/api/resources/api/resources/thera/resources/employment/client/index.d.ts +1 -0
  58. package/dist/api/resources/api/resources/thera/resources/employment/client/index.js +2 -0
  59. package/dist/api/resources/api/resources/thera/resources/employment/index.d.ts +2 -0
  60. package/dist/api/resources/api/resources/thera/resources/employment/index.js +18 -0
  61. package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.d.ts +20 -0
  62. package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +109 -0
  63. package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/index.d.ts +1 -0
  64. package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/index.js +2 -0
  65. package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/index.d.ts +2 -0
  66. package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/index.js +18 -0
  67. package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/types/ContractEstimateRequest.d.ts +9 -0
  68. package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/types/ContractEstimateRequest.js +5 -0
  69. package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/types/CreateContractEstimateRequest.d.ts +8 -0
  70. package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/types/CreateContractEstimateRequest.js +5 -0
  71. package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/types/CreateContractEstimateResponse.d.ts +10 -0
  72. package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/types/CreateContractEstimateResponse.js +5 -0
  73. package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/types/PayCycleEstimate.d.ts +8 -0
  74. package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/types/PayCycleEstimate.js +5 -0
  75. package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/types/PayCycleEstimateRequest.d.ts +11 -0
  76. package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/types/PayCycleEstimateRequest.js +5 -0
  77. package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/types/ProRata.d.ts +9 -0
  78. package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/types/ProRata.js +5 -0
  79. package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/types/index.d.ts +6 -0
  80. package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/types/index.js +22 -0
  81. package/dist/api/resources/api/resources/thera/resources/employment/resources/index.d.ts +2 -0
  82. package/dist/api/resources/api/resources/thera/resources/employment/resources/index.js +31 -0
  83. package/dist/api/resources/api/resources/thera/resources/index.d.ts +1 -0
  84. package/dist/api/resources/api/resources/thera/resources/index.js +2 -1
  85. package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +1 -1
  86. package/dist/api/resources/db/resources/user/types/EmployeeInformation.d.ts +1 -0
  87. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateContractor.d.ts +1 -1
  88. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateContractor.js +1 -1
  89. package/dist/serialization/resources/api/resources/thera/resources/employment/index.d.ts +1 -0
  90. package/dist/serialization/resources/api/resources/thera/resources/employment/index.js +17 -0
  91. package/dist/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/index.d.ts +1 -0
  92. package/dist/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/index.js +17 -0
  93. package/dist/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/types/ContractEstimateRequest.d.ts +14 -0
  94. package/dist/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/types/ContractEstimateRequest.js +44 -0
  95. package/dist/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/types/CreateContractEstimateRequest.d.ts +13 -0
  96. package/dist/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/types/CreateContractEstimateRequest.js +43 -0
  97. package/dist/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/types/CreateContractEstimateResponse.d.ts +13 -0
  98. package/dist/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/types/CreateContractEstimateResponse.js +45 -0
  99. package/dist/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/types/PayCycleEstimate.d.ts +14 -0
  100. package/dist/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/types/PayCycleEstimate.js +35 -0
  101. package/dist/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/types/PayCycleEstimateRequest.d.ts +15 -0
  102. package/dist/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/types/PayCycleEstimateRequest.js +45 -0
  103. package/dist/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/types/ProRata.d.ts +14 -0
  104. package/dist/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/types/ProRata.js +35 -0
  105. package/dist/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/types/index.d.ts +6 -0
  106. package/dist/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/types/index.js +22 -0
  107. package/dist/serialization/resources/api/resources/thera/resources/employment/resources/index.d.ts +2 -0
  108. package/dist/serialization/resources/api/resources/thera/resources/employment/resources/index.js +31 -0
  109. package/dist/serialization/resources/api/resources/thera/resources/index.d.ts +1 -0
  110. package/dist/serialization/resources/api/resources/thera/resources/index.js +2 -1
  111. package/dist/serialization/resources/db/resources/user/types/EmployeeInformation.d.ts +1 -0
  112. package/dist/serialization/resources/db/resources/user/types/EmployeeInformation.js +1 -0
  113. package/package.json +1 -1
  114. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateContractor.d.ts +1 -1
  115. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateContractor.js +1 -1
  116. package/serialization/resources/api/resources/thera/resources/employment/index.d.ts +1 -0
  117. package/serialization/resources/api/resources/thera/resources/employment/index.js +17 -0
  118. package/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/index.d.ts +1 -0
  119. package/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/index.js +17 -0
  120. package/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/types/ContractEstimateRequest.d.ts +14 -0
  121. package/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/types/ContractEstimateRequest.js +44 -0
  122. package/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/types/CreateContractEstimateRequest.d.ts +13 -0
  123. package/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/types/CreateContractEstimateRequest.js +43 -0
  124. package/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/types/CreateContractEstimateResponse.d.ts +13 -0
  125. package/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/types/CreateContractEstimateResponse.js +45 -0
  126. package/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/types/PayCycleEstimate.d.ts +14 -0
  127. package/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/types/PayCycleEstimate.js +35 -0
  128. package/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/types/PayCycleEstimateRequest.d.ts +15 -0
  129. package/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/types/PayCycleEstimateRequest.js +45 -0
  130. package/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/types/ProRata.d.ts +14 -0
  131. package/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/types/ProRata.js +35 -0
  132. package/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/types/index.d.ts +6 -0
  133. package/serialization/resources/api/resources/thera/resources/employment/resources/employmentApi/types/index.js +22 -0
  134. package/serialization/resources/api/resources/thera/resources/employment/resources/index.d.ts +2 -0
  135. package/serialization/resources/api/resources/thera/resources/employment/resources/index.js +31 -0
  136. package/serialization/resources/api/resources/thera/resources/index.d.ts +1 -0
  137. package/serialization/resources/api/resources/thera/resources/index.js +2 -1
  138. package/serialization/resources/db/resources/user/types/EmployeeInformation.d.ts +1 -0
  139. 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,6 @@
1
+ export * from "./CreateContractEstimateRequest";
2
+ export * from "./ContractEstimateRequest";
3
+ export * from "./PayCycleEstimateRequest";
4
+ export * from "./CreateContractEstimateResponse";
5
+ export * from "./PayCycleEstimate";
6
+ export * from "./ProRata";
@@ -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,2 @@
1
+ export * as employmentApi from "./employmentApi";
2
+ export * from "./employmentApi/types";
@@ -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);
@@ -2,4 +2,5 @@ export * as address from "./address";
2
2
  export * as bank from "./bank";
3
3
  export * as company from "./company";
4
4
  export * as disbursement from "./disbursement";
5
+ export * as employment from "./employment";
5
6
  export * as payroll from "./payroll";
@@ -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; })),