@thera-hr/api-sdk 0.0.1-prerelease2892-dev-3 → 0.0.1-prerelease2892-dev-2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (118) hide show
  1. package/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +1 -1
  2. package/api/resources/api/resources/dev/resources/dev/client/Client.js +1 -1
  3. package/api/resources/api/resources/external/resources/externalApi/client/Client.d.ts +1 -0
  4. package/api/resources/api/resources/external/resources/externalApi/client/Client.js +2 -1
  5. package/api/resources/api/resources/external/resources/externalApi/types/ExternalCreateContractorRequestV2.d.ts +2 -0
  6. package/api/resources/api/resources/services/resources/file/client/Client.js +5 -5
  7. package/api/resources/api/resources/thera/resources/accounting/resources/accountingApi/client/Client.js +4 -4
  8. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +33 -33
  9. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.js +23 -23
  10. package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +18 -18
  11. package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +3 -3
  12. package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +3 -3
  13. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +7 -7
  14. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
  15. package/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +3 -3
  16. package/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +2 -2
  17. package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +5 -5
  18. package/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.d.ts +14 -4
  19. package/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.js +61 -9
  20. package/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/{GetEorEmployeeByUserIdResponse.d.ts → GetEorEmployeeByEmailResponse.d.ts} +1 -1
  21. package/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/GetLatestEorEmployeeEmailResponse.d.ts +7 -0
  22. package/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/index.d.ts +2 -1
  23. package/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/index.js +2 -1
  24. package/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.d.ts +25 -0
  25. package/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +77 -6
  26. package/api/resources/api/resources/thera/resources/misc/resources/misc/client/requests/FilloutEorEmployeeRequest.d.ts +27 -0
  27. package/api/resources/api/resources/thera/resources/misc/resources/misc/client/requests/FilloutEorEmployeeRequest.js +5 -0
  28. package/api/resources/api/resources/thera/resources/misc/resources/misc/client/requests/index.d.ts +1 -0
  29. package/api/resources/api/resources/thera/resources/misc/resources/misc/types/FilloutEorEmployeeWebhookRequest.d.ts +17 -0
  30. package/api/resources/api/resources/thera/resources/misc/resources/misc/types/FilloutEorEmployeeWebhookRequest.js +5 -0
  31. package/api/resources/api/resources/thera/resources/misc/resources/misc/types/FilloutEorEmployeeWebhookResponse.d.ts +6 -0
  32. package/api/resources/api/resources/thera/resources/misc/resources/misc/types/FilloutEorEmployeeWebhookResponse.js +5 -0
  33. package/api/resources/api/resources/thera/resources/misc/resources/misc/types/index.d.ts +2 -0
  34. package/api/resources/api/resources/thera/resources/misc/resources/misc/types/index.js +2 -0
  35. package/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.js +1 -1
  36. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +3 -3
  37. package/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +14 -14
  38. package/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.js +9 -9
  39. package/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +10 -10
  40. package/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
  41. package/dist/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +1 -1
  42. package/dist/api/resources/api/resources/dev/resources/dev/client/Client.js +1 -1
  43. package/dist/api/resources/api/resources/external/resources/externalApi/client/Client.d.ts +1 -0
  44. package/dist/api/resources/api/resources/external/resources/externalApi/client/Client.js +2 -1
  45. package/dist/api/resources/api/resources/external/resources/externalApi/types/ExternalCreateContractorRequestV2.d.ts +2 -0
  46. package/dist/api/resources/api/resources/services/resources/file/client/Client.js +5 -5
  47. package/dist/api/resources/api/resources/thera/resources/accounting/resources/accountingApi/client/Client.js +4 -4
  48. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +33 -33
  49. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.js +23 -23
  50. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +18 -18
  51. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +3 -3
  52. package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +3 -3
  53. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +7 -7
  54. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
  55. package/dist/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +3 -3
  56. package/dist/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +2 -2
  57. package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +5 -5
  58. package/dist/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.d.ts +14 -4
  59. package/dist/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.js +61 -9
  60. package/dist/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/{GetEorEmployeeByUserIdResponse.d.ts → GetEorEmployeeByEmailResponse.d.ts} +1 -1
  61. package/dist/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/GetEorEmployeeByEmailResponse.js +5 -0
  62. package/dist/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/GetLatestEorEmployeeEmailResponse.d.ts +7 -0
  63. package/dist/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/GetLatestEorEmployeeEmailResponse.js +5 -0
  64. package/dist/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/index.d.ts +2 -1
  65. package/dist/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/index.js +2 -1
  66. package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.d.ts +25 -0
  67. package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +77 -6
  68. package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/requests/FilloutEorEmployeeRequest.d.ts +27 -0
  69. package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/requests/FilloutEorEmployeeRequest.js +5 -0
  70. package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/requests/index.d.ts +1 -0
  71. package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/types/FilloutEorEmployeeWebhookRequest.d.ts +17 -0
  72. package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/types/FilloutEorEmployeeWebhookRequest.js +5 -0
  73. package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/types/FilloutEorEmployeeWebhookResponse.d.ts +6 -0
  74. package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/types/FilloutEorEmployeeWebhookResponse.js +5 -0
  75. package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/types/index.d.ts +2 -0
  76. package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/types/index.js +2 -0
  77. package/dist/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.js +1 -1
  78. package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +3 -3
  79. package/dist/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +14 -14
  80. package/dist/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.js +9 -9
  81. package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +10 -10
  82. package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
  83. package/dist/serialization/resources/api/resources/external/resources/externalApi/types/ExternalCreateContractorRequestV2.d.ts +1 -0
  84. package/dist/serialization/resources/api/resources/external/resources/externalApi/types/ExternalCreateContractorRequestV2.js +1 -0
  85. package/dist/serialization/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/{GetEorEmployeeByUserIdResponse.d.ts → GetEorEmployeeByEmailResponse.d.ts} +2 -2
  86. package/dist/serialization/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/{GetEorEmployeeByUserIdResponse.js → GetEorEmployeeByEmailResponse.js} +2 -2
  87. package/dist/serialization/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/GetLatestEorEmployeeEmailResponse.d.ts +13 -0
  88. package/dist/serialization/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/GetLatestEorEmployeeEmailResponse.js +44 -0
  89. package/dist/serialization/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/index.d.ts +2 -1
  90. package/dist/serialization/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/index.js +2 -1
  91. package/dist/serialization/resources/api/resources/thera/resources/misc/resources/misc/types/FilloutEorEmployeeWebhookRequest.d.ts +23 -0
  92. package/dist/serialization/resources/api/resources/thera/resources/misc/resources/misc/types/FilloutEorEmployeeWebhookRequest.js +54 -0
  93. package/dist/serialization/resources/api/resources/thera/resources/misc/resources/misc/types/FilloutEorEmployeeWebhookResponse.d.ts +12 -0
  94. package/dist/serialization/resources/api/resources/thera/resources/misc/resources/misc/types/FilloutEorEmployeeWebhookResponse.js +43 -0
  95. package/dist/serialization/resources/api/resources/thera/resources/misc/resources/misc/types/index.d.ts +2 -0
  96. package/dist/serialization/resources/api/resources/thera/resources/misc/resources/misc/types/index.js +2 -0
  97. package/dist/version.d.ts +1 -1
  98. package/dist/version.js +1 -1
  99. package/package.json +1 -1
  100. package/reference.md +146 -4
  101. package/serialization/resources/api/resources/external/resources/externalApi/types/ExternalCreateContractorRequestV2.d.ts +1 -0
  102. package/serialization/resources/api/resources/external/resources/externalApi/types/ExternalCreateContractorRequestV2.js +1 -0
  103. package/serialization/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/{GetEorEmployeeByUserIdResponse.d.ts → GetEorEmployeeByEmailResponse.d.ts} +2 -2
  104. package/serialization/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/{GetEorEmployeeByUserIdResponse.js → GetEorEmployeeByEmailResponse.js} +2 -2
  105. package/serialization/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/GetLatestEorEmployeeEmailResponse.d.ts +13 -0
  106. package/serialization/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/GetLatestEorEmployeeEmailResponse.js +44 -0
  107. package/serialization/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/index.d.ts +2 -1
  108. package/serialization/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/index.js +2 -1
  109. package/serialization/resources/api/resources/thera/resources/misc/resources/misc/types/FilloutEorEmployeeWebhookRequest.d.ts +23 -0
  110. package/serialization/resources/api/resources/thera/resources/misc/resources/misc/types/FilloutEorEmployeeWebhookRequest.js +54 -0
  111. package/serialization/resources/api/resources/thera/resources/misc/resources/misc/types/FilloutEorEmployeeWebhookResponse.d.ts +12 -0
  112. package/serialization/resources/api/resources/thera/resources/misc/resources/misc/types/FilloutEorEmployeeWebhookResponse.js +43 -0
  113. package/serialization/resources/api/resources/thera/resources/misc/resources/misc/types/index.d.ts +2 -0
  114. package/serialization/resources/api/resources/thera/resources/misc/resources/misc/types/index.js +2 -0
  115. package/version.d.ts +1 -1
  116. package/version.js +1 -1
  117. /package/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/{GetEorEmployeeByUserIdResponse.js → GetEorEmployeeByEmailResponse.js} +0 -0
  118. /package/{dist/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/GetEorEmployeeByUserIdResponse.js → api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/GetLatestEorEmployeeEmailResponse.js} +0 -0
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.FilloutEorEmployeeWebhookRequest = void 0;
40
+ const core = __importStar(require("../../../../../../../../../../core"));
41
+ const WageType_1 = require("../../../../../../../../model/resources/thera/resources/contract/types/WageType");
42
+ exports.FilloutEorEmployeeWebhookRequest = core.serialization.object({
43
+ firstName: core.serialization.string(),
44
+ lastName: core.serialization.string(),
45
+ email: core.serialization.string(),
46
+ country: core.serialization.string(),
47
+ companyId: core.serialization.property("companyID", core.serialization.string()),
48
+ teamId: core.serialization.string().optional(),
49
+ jobTitle: core.serialization.string(),
50
+ startDate: core.serialization.string(),
51
+ rate: core.serialization.number(),
52
+ wageType: WageType_1.WageType,
53
+ currency: core.serialization.string(),
54
+ });
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../../../../../../index";
5
+ import * as TheraApi from "../../../../../../../../../../api/index";
6
+ import * as core from "../../../../../../../../../../core";
7
+ export declare const FilloutEorEmployeeWebhookResponse: core.serialization.ObjectSchema<serializers.api.thera.misc.FilloutEorEmployeeWebhookResponse.Raw, TheraApi.api.thera.misc.FilloutEorEmployeeWebhookResponse>;
8
+ export declare namespace FilloutEorEmployeeWebhookResponse {
9
+ interface Raw {
10
+ message: string;
11
+ }
12
+ }
@@ -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 () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.FilloutEorEmployeeWebhookResponse = void 0;
40
+ const core = __importStar(require("../../../../../../../../../../core"));
41
+ exports.FilloutEorEmployeeWebhookResponse = core.serialization.object({
42
+ message: core.serialization.string(),
43
+ });
@@ -2,3 +2,5 @@ export * from "./DailyCronResponse";
2
2
  export * from "./AutoWithdrawalResults";
3
3
  export * from "./TriggeredWithdrawal";
4
4
  export * from "./ContractRenewalCronResponse";
5
+ export * from "./FilloutEorEmployeeWebhookResponse";
6
+ export * from "./FilloutEorEmployeeWebhookRequest";
@@ -18,3 +18,5 @@ __exportStar(require("./DailyCronResponse"), exports);
18
18
  __exportStar(require("./AutoWithdrawalResults"), exports);
19
19
  __exportStar(require("./TriggeredWithdrawal"), exports);
20
20
  __exportStar(require("./ContractRenewalCronResponse"), exports);
21
+ __exportStar(require("./FilloutEorEmployeeWebhookResponse"), exports);
22
+ __exportStar(require("./FilloutEorEmployeeWebhookRequest"), exports);
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.0.1-prerelease2892-dev-3";
1
+ export declare const SDK_VERSION = "0.0.1-prerelease2892-dev-2";
package/dist/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "0.0.1-prerelease2892-dev-3";
4
+ exports.SDK_VERSION = "0.0.1-prerelease2892-dev-2";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thera-hr/api-sdk",
3
- "version": "0.0.1-prerelease2892-dev-3",
3
+ "version": "0.0.1-prerelease2892-dev-2",
4
4
  "private": false,
5
5
  "repository": "https://github.com/CarbonNYC/thera-typescript-sdk",
6
6
  "main": "./index.js",
package/reference.md CHANGED
@@ -197,6 +197,7 @@ await client.api.external.externalApi.createContractorV2({
197
197
  lastName: "string",
198
198
  country: "string",
199
199
  currency: "string",
200
+ rate: 1000000,
200
201
  wageType: "HOURLY",
201
202
  payCycle: {
202
203
  timezone: "string",
@@ -7689,7 +7690,70 @@ await client.api.thera.eor.eorTrackerApi.getEorTracker("string");
7689
7690
  </dl>
7690
7691
  </details>
7691
7692
 
7692
- <details><summary><code>client.api.thera.eor.eorTrackerApi.<a href="/src/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.ts">getEorEmployeeByUserId</a>(employeeUserId) -> TheraApi.GetEorEmployeeByUserIdResponse</code></summary>
7693
+ <details><summary><code>client.api.thera.eor.eorTrackerApi.<a href="/src/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.ts">getEorEmployeeByEmail</a>(email) -> TheraApi.GetEorEmployeeByEmailResponse</code></summary>
7694
+ <dl>
7695
+ <dd>
7696
+
7697
+ #### 📝 Description
7698
+
7699
+ <dl>
7700
+ <dd>
7701
+
7702
+ <dl>
7703
+ <dd>
7704
+
7705
+ Gets EOR employee data from Airtable for a specific employee email
7706
+
7707
+ </dd>
7708
+ </dl>
7709
+ </dd>
7710
+ </dl>
7711
+
7712
+ #### 🔌 Usage
7713
+
7714
+ <dl>
7715
+ <dd>
7716
+
7717
+ <dl>
7718
+ <dd>
7719
+
7720
+ ```typescript
7721
+ await client.api.thera.eor.eorTrackerApi.getEorEmployeeByEmail("string");
7722
+ ```
7723
+
7724
+ </dd>
7725
+ </dl>
7726
+ </dd>
7727
+ </dl>
7728
+
7729
+ #### ⚙️ Parameters
7730
+
7731
+ <dl>
7732
+ <dd>
7733
+
7734
+ <dl>
7735
+ <dd>
7736
+
7737
+ **email:** `string`
7738
+
7739
+ </dd>
7740
+ </dl>
7741
+
7742
+ <dl>
7743
+ <dd>
7744
+
7745
+ **requestOptions:** `EorTrackerApi.RequestOptions`
7746
+
7747
+ </dd>
7748
+ </dl>
7749
+ </dd>
7750
+ </dl>
7751
+
7752
+ </dd>
7753
+ </dl>
7754
+ </details>
7755
+
7756
+ <details><summary><code>client.api.thera.eor.eorTrackerApi.<a href="/src/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.ts">getLatestEorEmployeeEmailByCompanyId</a>(companyId) -> TheraApi.GetLatestEorEmployeeEmailResponse</code></summary>
7693
7757
  <dl>
7694
7758
  <dd>
7695
7759
 
@@ -7701,7 +7765,7 @@ await client.api.thera.eor.eorTrackerApi.getEorTracker("string");
7701
7765
  <dl>
7702
7766
  <dd>
7703
7767
 
7704
- Gets EOR employee data from Airtable for a specific employee user ID
7768
+ Gets the email field of the latest EOR employee record added to Airtable for a specific company ID
7705
7769
 
7706
7770
  </dd>
7707
7771
  </dl>
@@ -7717,7 +7781,7 @@ Gets EOR employee data from Airtable for a specific employee user ID
7717
7781
  <dd>
7718
7782
 
7719
7783
  ```typescript
7720
- await client.api.thera.eor.eorTrackerApi.getEorEmployeeByUserId("string");
7784
+ await client.api.thera.eor.eorTrackerApi.getLatestEorEmployeeEmailByCompanyId("string");
7721
7785
  ```
7722
7786
 
7723
7787
  </dd>
@@ -7733,7 +7797,7 @@ await client.api.thera.eor.eorTrackerApi.getEorEmployeeByUserId("string");
7733
7797
  <dl>
7734
7798
  <dd>
7735
7799
 
7736
- **employeeUserId:** `string`
7800
+ **companyId:** `string`
7737
7801
 
7738
7802
  </dd>
7739
7803
  </dl>
@@ -8144,6 +8208,84 @@ await client.api.thera.misc.misc.processAchTpInvoices({
8144
8208
  </dl>
8145
8209
  </details>
8146
8210
 
8211
+ <details><summary><code>client.api.thera.misc.misc.<a href="/src/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.ts">filloutEorEmployeeWebhook</a>({ ...params }) -> TheraApi.FilloutEorEmployeeWebhookResponse</code></summary>
8212
+ <dl>
8213
+ <dd>
8214
+
8215
+ #### 📝 Description
8216
+
8217
+ <dl>
8218
+ <dd>
8219
+
8220
+ <dl>
8221
+ <dd>
8222
+
8223
+ Webhook endpoint that receives submissions from Fillout forms to create EOR employees. This endpoint accepts the same request structure as the AddEorEmployeeRequest.
8224
+
8225
+ </dd>
8226
+ </dl>
8227
+ </dd>
8228
+ </dl>
8229
+
8230
+ #### 🔌 Usage
8231
+
8232
+ <dl>
8233
+ <dd>
8234
+
8235
+ <dl>
8236
+ <dd>
8237
+
8238
+ ```typescript
8239
+ await client.api.thera.misc.misc.filloutEorEmployeeWebhook({
8240
+ theraWebhookSignatureHeader: "string",
8241
+ body: {
8242
+ firstName: "string",
8243
+ lastName: "string",
8244
+ email: "string",
8245
+ country: "string",
8246
+ companyId: "string",
8247
+ teamId: "string",
8248
+ jobTitle: "string",
8249
+ startDate: "2023-01-15",
8250
+ rate: 1.1,
8251
+ wageType: "HOURLY",
8252
+ currency: "string",
8253
+ },
8254
+ });
8255
+ ```
8256
+
8257
+ </dd>
8258
+ </dl>
8259
+ </dd>
8260
+ </dl>
8261
+
8262
+ #### ⚙️ Parameters
8263
+
8264
+ <dl>
8265
+ <dd>
8266
+
8267
+ <dl>
8268
+ <dd>
8269
+
8270
+ **request:** `TheraApi.api.thera.misc.FilloutEorEmployeeRequest`
8271
+
8272
+ </dd>
8273
+ </dl>
8274
+
8275
+ <dl>
8276
+ <dd>
8277
+
8278
+ **requestOptions:** `Misc.RequestOptions`
8279
+
8280
+ </dd>
8281
+ </dl>
8282
+ </dd>
8283
+ </dl>
8284
+
8285
+ </dd>
8286
+ </dl>
8287
+ </details>
8288
+
8147
8289
  ## Offcycle API
8148
8290
 
8149
8291
  <details><summary><code>client.api.thera.payroll.offcycleApi.<a href="/src/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.ts">getCurrentOffCycleChecks</a>(companyId) -> TheraApi.CheckPayrollResponse | undefined</code></summary>
@@ -15,6 +15,7 @@ export declare namespace ExternalCreateContractorRequestV2 {
15
15
  lastName: string;
16
16
  country: string;
17
17
  currency: string;
18
+ rate?: number | null;
18
19
  wageType: WageType.Raw;
19
20
  payCycle: PayCycle.Raw;
20
21
  contractType: ContractType.Raw;
@@ -47,6 +47,7 @@ exports.ExternalCreateContractorRequestV2 = core.serialization.object({
47
47
  lastName: core.serialization.string(),
48
48
  country: core.serialization.string(),
49
49
  currency: core.serialization.string(),
50
+ rate: core.serialization.number().optional(),
50
51
  wageType: WageType_1.WageType,
51
52
  payCycle: PayCycle_1.PayCycle,
52
53
  contractType: ContractType_1.ContractType,
@@ -4,8 +4,8 @@
4
4
  import * as serializers from "../../../../../../../../../index";
5
5
  import * as TheraApi from "../../../../../../../../../../api/index";
6
6
  import * as core from "../../../../../../../../../../core";
7
- export declare const GetEorEmployeeByUserIdResponse: core.serialization.ObjectSchema<serializers.api.thera.eor.GetEorEmployeeByUserIdResponse.Raw, TheraApi.api.thera.eor.GetEorEmployeeByUserIdResponse>;
8
- export declare namespace GetEorEmployeeByUserIdResponse {
7
+ export declare const GetEorEmployeeByEmailResponse: core.serialization.ObjectSchema<serializers.api.thera.eor.GetEorEmployeeByEmailResponse.Raw, TheraApi.api.thera.eor.GetEorEmployeeByEmailResponse>;
8
+ export declare namespace GetEorEmployeeByEmailResponse {
9
9
  interface Raw {
10
10
  employee: Record<string, unknown>;
11
11
  }
@@ -36,8 +36,8 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.GetEorEmployeeByUserIdResponse = void 0;
39
+ exports.GetEorEmployeeByEmailResponse = void 0;
40
40
  const core = __importStar(require("../../../../../../../../../../core"));
41
- exports.GetEorEmployeeByUserIdResponse = core.serialization.object({
41
+ exports.GetEorEmployeeByEmailResponse = core.serialization.object({
42
42
  employee: core.serialization.record(core.serialization.string(), core.serialization.unknown()),
43
43
  });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../../../../../../index";
5
+ import * as TheraApi from "../../../../../../../../../../api/index";
6
+ import * as core from "../../../../../../../../../../core";
7
+ export declare const GetLatestEorEmployeeEmailResponse: core.serialization.ObjectSchema<serializers.api.thera.eor.GetLatestEorEmployeeEmailResponse.Raw, TheraApi.api.thera.eor.GetLatestEorEmployeeEmailResponse>;
8
+ export declare namespace GetLatestEorEmployeeEmailResponse {
9
+ interface Raw {
10
+ email: string;
11
+ userId: string;
12
+ }
13
+ }
@@ -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 () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.GetLatestEorEmployeeEmailResponse = void 0;
40
+ const core = __importStar(require("../../../../../../../../../../core"));
41
+ exports.GetLatestEorEmployeeEmailResponse = core.serialization.object({
42
+ email: core.serialization.string(),
43
+ userId: core.serialization.string(),
44
+ });
@@ -1,2 +1,3 @@
1
1
  export * from "./GetEorTrackerResponse";
2
- export * from "./GetEorEmployeeByUserIdResponse";
2
+ export * from "./GetEorEmployeeByEmailResponse";
3
+ export * from "./GetLatestEorEmployeeEmailResponse";
@@ -15,4 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./GetEorTrackerResponse"), exports);
18
- __exportStar(require("./GetEorEmployeeByUserIdResponse"), exports);
18
+ __exportStar(require("./GetEorEmployeeByEmailResponse"), exports);
19
+ __exportStar(require("./GetLatestEorEmployeeEmailResponse"), exports);
@@ -0,0 +1,23 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../../../../../../index";
5
+ import * as TheraApi from "../../../../../../../../../../api/index";
6
+ import * as core from "../../../../../../../../../../core";
7
+ import { WageType } from "../../../../../../../../model/resources/thera/resources/contract/types/WageType";
8
+ export declare const FilloutEorEmployeeWebhookRequest: core.serialization.ObjectSchema<serializers.api.thera.misc.FilloutEorEmployeeWebhookRequest.Raw, TheraApi.api.thera.misc.FilloutEorEmployeeWebhookRequest>;
9
+ export declare namespace FilloutEorEmployeeWebhookRequest {
10
+ interface Raw {
11
+ firstName: string;
12
+ lastName: string;
13
+ email: string;
14
+ country: string;
15
+ companyID: string;
16
+ teamId?: string | null;
17
+ jobTitle: string;
18
+ startDate: string;
19
+ rate: number;
20
+ wageType: WageType.Raw;
21
+ currency: string;
22
+ }
23
+ }
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.FilloutEorEmployeeWebhookRequest = void 0;
40
+ const core = __importStar(require("../../../../../../../../../../core"));
41
+ const WageType_1 = require("../../../../../../../../model/resources/thera/resources/contract/types/WageType");
42
+ exports.FilloutEorEmployeeWebhookRequest = core.serialization.object({
43
+ firstName: core.serialization.string(),
44
+ lastName: core.serialization.string(),
45
+ email: core.serialization.string(),
46
+ country: core.serialization.string(),
47
+ companyId: core.serialization.property("companyID", core.serialization.string()),
48
+ teamId: core.serialization.string().optional(),
49
+ jobTitle: core.serialization.string(),
50
+ startDate: core.serialization.string(),
51
+ rate: core.serialization.number(),
52
+ wageType: WageType_1.WageType,
53
+ currency: core.serialization.string(),
54
+ });
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../../../../../../index";
5
+ import * as TheraApi from "../../../../../../../../../../api/index";
6
+ import * as core from "../../../../../../../../../../core";
7
+ export declare const FilloutEorEmployeeWebhookResponse: core.serialization.ObjectSchema<serializers.api.thera.misc.FilloutEorEmployeeWebhookResponse.Raw, TheraApi.api.thera.misc.FilloutEorEmployeeWebhookResponse>;
8
+ export declare namespace FilloutEorEmployeeWebhookResponse {
9
+ interface Raw {
10
+ message: string;
11
+ }
12
+ }
@@ -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 () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.FilloutEorEmployeeWebhookResponse = void 0;
40
+ const core = __importStar(require("../../../../../../../../../../core"));
41
+ exports.FilloutEorEmployeeWebhookResponse = core.serialization.object({
42
+ message: core.serialization.string(),
43
+ });
@@ -2,3 +2,5 @@ export * from "./DailyCronResponse";
2
2
  export * from "./AutoWithdrawalResults";
3
3
  export * from "./TriggeredWithdrawal";
4
4
  export * from "./ContractRenewalCronResponse";
5
+ export * from "./FilloutEorEmployeeWebhookResponse";
6
+ export * from "./FilloutEorEmployeeWebhookRequest";
@@ -18,3 +18,5 @@ __exportStar(require("./DailyCronResponse"), exports);
18
18
  __exportStar(require("./AutoWithdrawalResults"), exports);
19
19
  __exportStar(require("./TriggeredWithdrawal"), exports);
20
20
  __exportStar(require("./ContractRenewalCronResponse"), exports);
21
+ __exportStar(require("./FilloutEorEmployeeWebhookResponse"), exports);
22
+ __exportStar(require("./FilloutEorEmployeeWebhookRequest"), exports);
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.0.1-prerelease2892-dev-3";
1
+ export declare const SDK_VERSION = "0.0.1-prerelease2892-dev-2";
package/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "0.0.1-prerelease2892-dev-3";
4
+ exports.SDK_VERSION = "0.0.1-prerelease2892-dev-2";