@thera-hr/api-sdk 0.0.1-prerelease2886-dev-2 → 0.0.1-prerelease2886-staging

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 (146) hide show
  1. package/api/resources/api/client/Client.d.ts +3 -0
  2. package/api/resources/api/client/Client.js +9 -4
  3. package/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +1 -1
  4. package/api/resources/api/resources/dev/resources/dev/client/Client.js +1 -1
  5. package/api/resources/api/resources/external/client/Client.d.ts +19 -0
  6. package/api/resources/api/resources/external/client/Client.js +17 -0
  7. package/api/resources/api/resources/external/client/index.d.ts +1 -0
  8. package/api/resources/api/resources/external/client/index.js +2 -0
  9. package/api/resources/api/resources/external/index.d.ts +2 -0
  10. package/api/resources/api/resources/external/index.js +18 -0
  11. package/api/resources/api/resources/external/resources/externalApi/client/Client.d.ts +79 -0
  12. package/api/resources/api/resources/external/resources/externalApi/client/Client.js +166 -0
  13. package/api/resources/api/resources/external/resources/externalApi/client/index.d.ts +1 -0
  14. package/api/resources/api/resources/external/resources/externalApi/client/index.js +2 -0
  15. package/api/resources/api/resources/external/resources/externalApi/index.d.ts +2 -0
  16. package/api/resources/api/resources/external/resources/externalApi/index.js +18 -0
  17. package/api/resources/api/resources/external/resources/externalApi/types/ExternalCreateContractorRequestV2.d.ts +23 -0
  18. package/api/resources/api/resources/external/resources/externalApi/types/ExternalCreateContractorRequestV2.js +5 -0
  19. package/api/resources/api/resources/external/resources/externalApi/types/ExternalSuccessResponseV2.d.ts +6 -0
  20. package/api/resources/api/resources/external/resources/externalApi/types/ExternalSuccessResponseV2.js +5 -0
  21. package/api/resources/api/resources/external/resources/externalApi/types/index.d.ts +2 -0
  22. package/api/resources/api/resources/external/resources/externalApi/types/index.js +18 -0
  23. package/api/resources/api/resources/external/resources/index.d.ts +2 -0
  24. package/api/resources/api/resources/external/resources/index.js +41 -0
  25. package/api/resources/api/resources/index.d.ts +1 -0
  26. package/api/resources/api/resources/index.js +2 -1
  27. package/api/resources/api/resources/services/resources/file/client/Client.js +5 -5
  28. package/api/resources/api/resources/thera/resources/accounting/resources/accountingApi/client/Client.js +4 -4
  29. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +33 -33
  30. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.js +23 -23
  31. package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.d.ts +8 -1
  32. package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +26 -19
  33. package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +3 -3
  34. package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +3 -3
  35. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +7 -7
  36. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
  37. package/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +3 -3
  38. package/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +2 -2
  39. package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +5 -5
  40. package/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.d.ts +10 -0
  41. package/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.js +54 -2
  42. package/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/GetLatestEorEmployeeEmailResponse.d.ts +7 -0
  43. package/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/GetLatestEorEmployeeEmailResponse.js +5 -0
  44. package/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/index.d.ts +1 -0
  45. package/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/index.js +1 -0
  46. package/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +7 -7
  47. package/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.js +1 -1
  48. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +3 -3
  49. package/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +14 -14
  50. package/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.js +9 -9
  51. package/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +10 -10
  52. package/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
  53. package/dist/api/resources/api/client/Client.d.ts +3 -0
  54. package/dist/api/resources/api/client/Client.js +9 -4
  55. package/dist/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +1 -1
  56. package/dist/api/resources/api/resources/dev/resources/dev/client/Client.js +1 -1
  57. package/dist/api/resources/api/resources/external/client/Client.d.ts +19 -0
  58. package/dist/api/resources/api/resources/external/client/Client.js +17 -0
  59. package/dist/api/resources/api/resources/external/client/index.d.ts +1 -0
  60. package/dist/api/resources/api/resources/external/client/index.js +2 -0
  61. package/dist/api/resources/api/resources/external/index.d.ts +2 -0
  62. package/dist/api/resources/api/resources/external/index.js +18 -0
  63. package/dist/api/resources/api/resources/external/resources/externalApi/client/Client.d.ts +79 -0
  64. package/dist/api/resources/api/resources/external/resources/externalApi/client/Client.js +166 -0
  65. package/dist/api/resources/api/resources/external/resources/externalApi/client/index.d.ts +1 -0
  66. package/dist/api/resources/api/resources/external/resources/externalApi/client/index.js +2 -0
  67. package/dist/api/resources/api/resources/external/resources/externalApi/index.d.ts +2 -0
  68. package/dist/api/resources/api/resources/external/resources/externalApi/index.js +18 -0
  69. package/dist/api/resources/api/resources/external/resources/externalApi/types/ExternalCreateContractorRequestV2.d.ts +23 -0
  70. package/dist/api/resources/api/resources/external/resources/externalApi/types/ExternalCreateContractorRequestV2.js +5 -0
  71. package/dist/api/resources/api/resources/external/resources/externalApi/types/ExternalSuccessResponseV2.d.ts +6 -0
  72. package/dist/api/resources/api/resources/external/resources/externalApi/types/ExternalSuccessResponseV2.js +5 -0
  73. package/dist/api/resources/api/resources/external/resources/externalApi/types/index.d.ts +2 -0
  74. package/dist/api/resources/api/resources/external/resources/externalApi/types/index.js +18 -0
  75. package/dist/api/resources/api/resources/external/resources/index.d.ts +2 -0
  76. package/dist/api/resources/api/resources/external/resources/index.js +41 -0
  77. package/dist/api/resources/api/resources/index.d.ts +1 -0
  78. package/dist/api/resources/api/resources/index.js +2 -1
  79. package/dist/api/resources/api/resources/services/resources/file/client/Client.js +5 -5
  80. package/dist/api/resources/api/resources/thera/resources/accounting/resources/accountingApi/client/Client.js +4 -4
  81. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +33 -33
  82. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.js +23 -23
  83. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.d.ts +8 -1
  84. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +26 -19
  85. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +3 -3
  86. package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +3 -3
  87. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +7 -7
  88. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
  89. package/dist/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +3 -3
  90. package/dist/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +2 -2
  91. package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +5 -5
  92. package/dist/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.d.ts +10 -0
  93. package/dist/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.js +54 -2
  94. package/dist/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/GetLatestEorEmployeeEmailResponse.d.ts +7 -0
  95. package/dist/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/GetLatestEorEmployeeEmailResponse.js +5 -0
  96. package/dist/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/index.d.ts +1 -0
  97. package/dist/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/index.js +1 -0
  98. package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +7 -7
  99. package/dist/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.js +1 -1
  100. package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +3 -3
  101. package/dist/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +14 -14
  102. package/dist/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.js +9 -9
  103. package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +10 -10
  104. package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
  105. package/dist/serialization/resources/api/resources/external/index.d.ts +1 -0
  106. package/dist/serialization/resources/api/resources/external/index.js +17 -0
  107. package/dist/serialization/resources/api/resources/external/resources/externalApi/index.d.ts +1 -0
  108. package/dist/serialization/resources/api/resources/external/resources/externalApi/index.js +17 -0
  109. package/dist/serialization/resources/api/resources/external/resources/externalApi/types/ExternalCreateContractorRequestV2.d.ts +32 -0
  110. package/dist/serialization/resources/api/resources/external/resources/externalApi/types/ExternalCreateContractorRequestV2.js +63 -0
  111. package/dist/serialization/resources/api/resources/external/resources/externalApi/types/ExternalSuccessResponseV2.d.ts +12 -0
  112. package/dist/serialization/resources/api/resources/external/resources/externalApi/types/ExternalSuccessResponseV2.js +43 -0
  113. package/dist/serialization/resources/api/resources/external/resources/externalApi/types/index.d.ts +2 -0
  114. package/dist/serialization/resources/api/resources/external/resources/externalApi/types/index.js +18 -0
  115. package/dist/serialization/resources/api/resources/external/resources/index.d.ts +2 -0
  116. package/dist/serialization/resources/api/resources/external/resources/index.js +41 -0
  117. package/dist/serialization/resources/api/resources/index.d.ts +1 -0
  118. package/dist/serialization/resources/api/resources/index.js +2 -1
  119. package/dist/serialization/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/GetLatestEorEmployeeEmailResponse.d.ts +13 -0
  120. package/dist/serialization/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/GetLatestEorEmployeeEmailResponse.js +44 -0
  121. package/dist/serialization/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/index.d.ts +1 -0
  122. package/dist/serialization/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/index.js +1 -0
  123. package/dist/version.d.ts +1 -1
  124. package/dist/version.js +1 -1
  125. package/package.json +1 -1
  126. package/reference.md +164 -1
  127. package/serialization/resources/api/resources/external/index.d.ts +1 -0
  128. package/serialization/resources/api/resources/external/index.js +17 -0
  129. package/serialization/resources/api/resources/external/resources/externalApi/index.d.ts +1 -0
  130. package/serialization/resources/api/resources/external/resources/externalApi/index.js +17 -0
  131. package/serialization/resources/api/resources/external/resources/externalApi/types/ExternalCreateContractorRequestV2.d.ts +32 -0
  132. package/serialization/resources/api/resources/external/resources/externalApi/types/ExternalCreateContractorRequestV2.js +63 -0
  133. package/serialization/resources/api/resources/external/resources/externalApi/types/ExternalSuccessResponseV2.d.ts +12 -0
  134. package/serialization/resources/api/resources/external/resources/externalApi/types/ExternalSuccessResponseV2.js +43 -0
  135. package/serialization/resources/api/resources/external/resources/externalApi/types/index.d.ts +2 -0
  136. package/serialization/resources/api/resources/external/resources/externalApi/types/index.js +18 -0
  137. package/serialization/resources/api/resources/external/resources/index.d.ts +2 -0
  138. package/serialization/resources/api/resources/external/resources/index.js +41 -0
  139. package/serialization/resources/api/resources/index.d.ts +1 -0
  140. package/serialization/resources/api/resources/index.js +2 -1
  141. package/serialization/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/GetLatestEorEmployeeEmailResponse.d.ts +13 -0
  142. package/serialization/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/GetLatestEorEmployeeEmailResponse.js +44 -0
  143. package/serialization/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/index.d.ts +1 -0
  144. package/serialization/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/index.js +1 -0
  145. package/version.d.ts +1 -1
  146. package/version.js +1 -1
@@ -0,0 +1,18 @@
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("./ExternalCreateContractorRequestV2"), exports);
18
+ __exportStar(require("./ExternalSuccessResponseV2"), exports);
@@ -0,0 +1,2 @@
1
+ export * as externalApi from "./externalApi";
2
+ export * from "./externalApi/types";
@@ -0,0 +1,41 @@
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 () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
+ };
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.externalApi = void 0;
40
+ exports.externalApi = __importStar(require("./externalApi"));
41
+ __exportStar(require("./externalApi/types"), exports);
@@ -1,5 +1,6 @@
1
1
  export * as aiprise from "./aiprise";
2
2
  export * as dev from "./dev";
3
+ export * as external from "./external";
3
4
  export * as oneschema from "./oneschema";
4
5
  export * as request from "./request";
5
6
  export * as response from "./response";
@@ -33,9 +33,10 @@ var __importStar = (this && this.__importStar) || (function () {
33
33
  };
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.zeal = exports.thera = exports.services = exports.response = exports.request = exports.oneschema = exports.dev = exports.aiprise = void 0;
36
+ exports.zeal = exports.thera = exports.services = exports.response = exports.request = exports.oneschema = exports.external = exports.dev = exports.aiprise = void 0;
37
37
  exports.aiprise = __importStar(require("./aiprise"));
38
38
  exports.dev = __importStar(require("./dev"));
39
+ exports.external = __importStar(require("./external"));
39
40
  exports.oneschema = __importStar(require("./oneschema"));
40
41
  exports.request = __importStar(require("./request"));
41
42
  exports.response = __importStar(require("./response"));
@@ -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
2
  export * from "./GetEorEmployeeByEmailResponse";
3
+ export * from "./GetLatestEorEmployeeEmailResponse";
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./GetEorTrackerResponse"), exports);
18
18
  __exportStar(require("./GetEorEmployeeByEmailResponse"), exports);
19
+ __exportStar(require("./GetLatestEorEmployeeEmailResponse"), exports);
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.0.1-prerelease2886-dev-2";
1
+ export declare const SDK_VERSION = "0.0.1-prerelease2886-staging";
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-prerelease2886-dev-2";
4
+ exports.SDK_VERSION = "0.0.1-prerelease2886-staging";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thera-hr/api-sdk",
3
- "version": "0.0.1-prerelease2886-dev-2",
3
+ "version": "0.0.1-prerelease2886-staging",
4
4
  "private": false,
5
5
  "repository": "https://github.com/CarbonNYC/thera-typescript-sdk",
6
6
  "main": "./index.js",
package/reference.md CHANGED
@@ -176,6 +176,99 @@ await client.api.dev.dev.uploadEor({
176
176
  </dl>
177
177
  </details>
178
178
 
179
+ ## Api External ExternalApi
180
+
181
+ <details><summary><code>client.api.external.externalApi.<a href="/src/api/resources/api/resources/external/resources/externalApi/client/Client.ts">createContractorV2</a>({ ...params }) -> TheraApi.ExternalSuccessResponseV2</code></summary>
182
+ <dl>
183
+ <dd>
184
+
185
+ #### 🔌 Usage
186
+
187
+ <dl>
188
+ <dd>
189
+
190
+ <dl>
191
+ <dd>
192
+
193
+ ```typescript
194
+ await client.api.external.externalApi.createContractorV2({
195
+ email: "string",
196
+ firstName: "string",
197
+ lastName: "string",
198
+ country: "string",
199
+ currency: "string",
200
+ rate: 1000000,
201
+ wageType: "HOURLY",
202
+ payCycle: {
203
+ timezone: "string",
204
+ cycleStartDate: "2023-01-15",
205
+ cycleEnd: {
206
+ type: "weekly",
207
+ },
208
+ paymentDueDays: 1,
209
+ firstPayDate: "2023-01-15",
210
+ lastPayDate: "2023-01-15",
211
+ firstPayTotal: 1000000,
212
+ lastPayTotal: 1000000,
213
+ itemRecurrencesById: {
214
+ string: {
215
+ itemType: "EXPENSE",
216
+ description: "string",
217
+ amount: 1000000,
218
+ firstInvoiceDate: "2023-01-15",
219
+ paymentCurrency: "string",
220
+ deletedDateTime: {
221
+ key: "value",
222
+ },
223
+ },
224
+ },
225
+ },
226
+ contractType: "FIXED_RATE",
227
+ contractName: "string",
228
+ contractDocumentType: "NO_CONTRACT",
229
+ companySigningAuthorityUserId: "string",
230
+ verificationSetting: {
231
+ kycEnabled: true,
232
+ complianceEnabled: true,
233
+ },
234
+ clientCanSubmitWork: true,
235
+ workerCanSubmitWork: true,
236
+ scopeOfWork: "string",
237
+ });
238
+ ```
239
+
240
+ </dd>
241
+ </dl>
242
+ </dd>
243
+ </dl>
244
+
245
+ #### ⚙️ Parameters
246
+
247
+ <dl>
248
+ <dd>
249
+
250
+ <dl>
251
+ <dd>
252
+
253
+ **request:** `TheraApi.ExternalCreateContractorRequestV2`
254
+
255
+ </dd>
256
+ </dl>
257
+
258
+ <dl>
259
+ <dd>
260
+
261
+ **requestOptions:** `ExternalApi.RequestOptions`
262
+
263
+ </dd>
264
+ </dl>
265
+ </dd>
266
+ </dl>
267
+
268
+ </dd>
269
+ </dl>
270
+ </details>
271
+
179
272
  ## Api Services File
180
273
 
181
274
  <details><summary><code>client.api.services.file.<a href="/src/api/resources/api/resources/services/resources/file/client/Client.ts">attachDocumentToEmployment</a>(contractId, { ...params }) -> void</code></summary>
@@ -4645,7 +4738,14 @@ await client.api.thera.company.companyApi.inviteContractor({
4645
4738
  lastPayTotal: 1000000,
4646
4739
  itemRecurrencesById: {
4647
4740
  string: {
4648
- key: "value",
4741
+ itemType: "EXPENSE",
4742
+ description: "string",
4743
+ amount: 1000000,
4744
+ firstInvoiceDate: "2023-01-15",
4745
+ paymentCurrency: "string",
4746
+ deletedDateTime: {
4747
+ key: "value",
4748
+ },
4649
4749
  },
4650
4750
  },
4651
4751
  },
@@ -7663,6 +7763,69 @@ await client.api.thera.eor.eorTrackerApi.getEorEmployeeByEmail("string");
7663
7763
  </dl>
7664
7764
  </details>
7665
7765
 
7766
+ <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>
7767
+ <dl>
7768
+ <dd>
7769
+
7770
+ #### 📝 Description
7771
+
7772
+ <dl>
7773
+ <dd>
7774
+
7775
+ <dl>
7776
+ <dd>
7777
+
7778
+ Gets the email field of the latest EOR employee record added to Airtable for a specific company ID
7779
+
7780
+ </dd>
7781
+ </dl>
7782
+ </dd>
7783
+ </dl>
7784
+
7785
+ #### 🔌 Usage
7786
+
7787
+ <dl>
7788
+ <dd>
7789
+
7790
+ <dl>
7791
+ <dd>
7792
+
7793
+ ```typescript
7794
+ await client.api.thera.eor.eorTrackerApi.getLatestEorEmployeeEmailByCompanyId("string");
7795
+ ```
7796
+
7797
+ </dd>
7798
+ </dl>
7799
+ </dd>
7800
+ </dl>
7801
+
7802
+ #### ⚙️ Parameters
7803
+
7804
+ <dl>
7805
+ <dd>
7806
+
7807
+ <dl>
7808
+ <dd>
7809
+
7810
+ **companyId:** `string`
7811
+
7812
+ </dd>
7813
+ </dl>
7814
+
7815
+ <dl>
7816
+ <dd>
7817
+
7818
+ **requestOptions:** `EorTrackerApi.RequestOptions`
7819
+
7820
+ </dd>
7821
+ </dl>
7822
+ </dd>
7823
+ </dl>
7824
+
7825
+ </dd>
7826
+ </dl>
7827
+ </details>
7828
+
7666
7829
  ## Miscellaneous API
7667
7830
 
7668
7831
  <details><summary><code>client.api.thera.misc.misc.<a href="/src/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.ts">regularCron</a>({ ...params }) -> TheraApi.DailyCronResponse</code></summary>
@@ -0,0 +1 @@
1
+ export * from "./resources";
@@ -0,0 +1,17 @@
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("./resources"), exports);
@@ -0,0 +1,17 @@
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("./types"), exports);
@@ -0,0 +1,32 @@
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
+ import { PayCycle } from "../../../../../../model/resources/thera/resources/contract/types/PayCycle";
9
+ import { ContractType } from "../../../../../../model/resources/thera/resources/contract/types/ContractType";
10
+ import { ContractDocumentType } from "../../../../../../model/resources/thera/resources/contract/types/ContractDocumentType";
11
+ import { VerificationSetting } from "../../../../../../model/resources/thera/resources/setting/types/VerificationSetting";
12
+ export declare const ExternalCreateContractorRequestV2: core.serialization.ObjectSchema<serializers.api.external.ExternalCreateContractorRequestV2.Raw, TheraApi.api.external.ExternalCreateContractorRequestV2>;
13
+ export declare namespace ExternalCreateContractorRequestV2 {
14
+ interface Raw {
15
+ email: string;
16
+ firstName: string;
17
+ lastName: string;
18
+ country: string;
19
+ currency: string;
20
+ rate?: number | null;
21
+ wageType: WageType.Raw;
22
+ payCycle: PayCycle.Raw;
23
+ contractType: ContractType.Raw;
24
+ contractName: string;
25
+ contractDocumentType: ContractDocumentType.Raw;
26
+ companySigningAuthorityUserId?: string | null;
27
+ verificationSetting: VerificationSetting.Raw;
28
+ clientCanSubmitWork?: boolean | null;
29
+ workerCanSubmitWork?: boolean | null;
30
+ scopeOfWork?: string | null;
31
+ }
32
+ }
@@ -0,0 +1,63 @@
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.ExternalCreateContractorRequestV2 = void 0;
40
+ const core = __importStar(require("../../../../../../../../core"));
41
+ const WageType_1 = require("../../../../../../model/resources/thera/resources/contract/types/WageType");
42
+ const PayCycle_1 = require("../../../../../../model/resources/thera/resources/contract/types/PayCycle");
43
+ const ContractType_1 = require("../../../../../../model/resources/thera/resources/contract/types/ContractType");
44
+ const ContractDocumentType_1 = require("../../../../../../model/resources/thera/resources/contract/types/ContractDocumentType");
45
+ const VerificationSetting_1 = require("../../../../../../model/resources/thera/resources/setting/types/VerificationSetting");
46
+ exports.ExternalCreateContractorRequestV2 = core.serialization.object({
47
+ email: core.serialization.string(),
48
+ firstName: core.serialization.string(),
49
+ lastName: core.serialization.string(),
50
+ country: core.serialization.string(),
51
+ currency: core.serialization.string(),
52
+ rate: core.serialization.number().optional(),
53
+ wageType: WageType_1.WageType,
54
+ payCycle: PayCycle_1.PayCycle,
55
+ contractType: ContractType_1.ContractType,
56
+ contractName: core.serialization.string(),
57
+ contractDocumentType: ContractDocumentType_1.ContractDocumentType,
58
+ companySigningAuthorityUserId: core.serialization.string().optional(),
59
+ verificationSetting: VerificationSetting_1.VerificationSetting,
60
+ clientCanSubmitWork: core.serialization.boolean().optional(),
61
+ workerCanSubmitWork: core.serialization.boolean().optional(),
62
+ scopeOfWork: core.serialization.string().optional(),
63
+ });
@@ -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 ExternalSuccessResponseV2: core.serialization.ObjectSchema<serializers.api.external.ExternalSuccessResponseV2.Raw, TheraApi.api.external.ExternalSuccessResponseV2>;
8
+ export declare namespace ExternalSuccessResponseV2 {
9
+ interface Raw {
10
+ success: boolean;
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.ExternalSuccessResponseV2 = void 0;
40
+ const core = __importStar(require("../../../../../../../../core"));
41
+ exports.ExternalSuccessResponseV2 = core.serialization.object({
42
+ success: core.serialization.boolean(),
43
+ });
@@ -0,0 +1,2 @@
1
+ export * from "./ExternalCreateContractorRequestV2";
2
+ export * from "./ExternalSuccessResponseV2";
@@ -0,0 +1,18 @@
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("./ExternalCreateContractorRequestV2"), exports);
18
+ __exportStar(require("./ExternalSuccessResponseV2"), exports);
@@ -0,0 +1,2 @@
1
+ export * as externalApi from "./externalApi";
2
+ export * from "./externalApi/types";
@@ -0,0 +1,41 @@
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 () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
+ };
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.externalApi = void 0;
40
+ exports.externalApi = __importStar(require("./externalApi"));
41
+ __exportStar(require("./externalApi/types"), exports);
@@ -1,5 +1,6 @@
1
1
  export * as aiprise from "./aiprise";
2
2
  export * as dev from "./dev";
3
+ export * as external from "./external";
3
4
  export * as oneschema from "./oneschema";
4
5
  export * as request from "./request";
5
6
  export * as response from "./response";
@@ -33,9 +33,10 @@ var __importStar = (this && this.__importStar) || (function () {
33
33
  };
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.zeal = exports.thera = exports.services = exports.response = exports.request = exports.oneschema = exports.dev = exports.aiprise = void 0;
36
+ exports.zeal = exports.thera = exports.services = exports.response = exports.request = exports.oneschema = exports.external = exports.dev = exports.aiprise = void 0;
37
37
  exports.aiprise = __importStar(require("./aiprise"));
38
38
  exports.dev = __importStar(require("./dev"));
39
+ exports.external = __importStar(require("./external"));
39
40
  exports.oneschema = __importStar(require("./oneschema"));
40
41
  exports.request = __importStar(require("./request"));
41
42
  exports.response = __importStar(require("./response"));