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

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 (186) 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 +68 -0
  12. package/api/resources/api/resources/external/resources/externalApi/client/Client.js +155 -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/AddEorUser.d.ts +9 -0
  18. package/api/resources/api/resources/external/resources/externalApi/types/AddEorUser.js +5 -0
  19. package/api/resources/api/resources/external/resources/externalApi/types/ExternalCreateContractorRequestV2.d.ts +14 -0
  20. package/api/resources/api/resources/external/resources/externalApi/types/ExternalCreateContractorRequestV2.js +5 -0
  21. package/api/resources/api/resources/external/resources/externalApi/types/ExternalSuccessResponseV2.d.ts +6 -0
  22. package/api/resources/api/resources/external/resources/externalApi/types/ExternalSuccessResponseV2.js +5 -0
  23. package/api/resources/api/resources/external/resources/externalApi/types/index.d.ts +3 -0
  24. package/api/resources/api/resources/external/resources/externalApi/types/index.js +19 -0
  25. package/api/resources/api/resources/external/resources/index.d.ts +2 -0
  26. package/api/resources/api/resources/external/resources/index.js +41 -0
  27. package/api/resources/api/resources/index.d.ts +1 -0
  28. package/api/resources/api/resources/index.js +2 -1
  29. package/api/resources/api/resources/services/resources/file/client/Client.js +5 -5
  30. package/api/resources/api/resources/thera/resources/accounting/resources/accountingApi/client/Client.js +4 -4
  31. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +33 -33
  32. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/AuBecsDebitPaymentMethodResponse.d.ts +9 -0
  33. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/AuBecsDebitPaymentMethodResponse.js +5 -0
  34. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/PaymentMethodDetailsResponse.d.ts +4 -1
  35. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +1 -0
  36. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +1 -0
  37. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.js +23 -23
  38. package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.d.ts +8 -1
  39. package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +26 -19
  40. package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +3 -3
  41. package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +3 -3
  42. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +7 -7
  43. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
  44. package/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +3 -3
  45. package/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +2 -2
  46. package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +5 -5
  47. package/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.js +2 -2
  48. package/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +6 -6
  49. package/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.js +1 -1
  50. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +3 -3
  51. package/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +14 -14
  52. package/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.js +9 -9
  53. package/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +10 -10
  54. package/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
  55. package/api/resources/db/resources/company/types/TpCompanyInformation.d.ts +0 -1
  56. package/api/resources/db/resources/paymentMethod/types/StripeAuBecsDebitPaymentMethodDetails.d.ts +10 -0
  57. package/api/resources/db/resources/paymentMethod/types/StripeAuBecsDebitPaymentMethodDetails.js +5 -0
  58. package/api/resources/db/resources/paymentMethod/types/StripeFcPaymentMethod.d.ts +4 -1
  59. package/api/resources/db/resources/paymentMethod/types/index.d.ts +1 -0
  60. package/api/resources/db/resources/paymentMethod/types/index.js +1 -0
  61. package/dist/api/resources/api/client/Client.d.ts +3 -0
  62. package/dist/api/resources/api/client/Client.js +9 -4
  63. package/dist/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +1 -1
  64. package/dist/api/resources/api/resources/dev/resources/dev/client/Client.js +1 -1
  65. package/dist/api/resources/api/resources/external/client/Client.d.ts +19 -0
  66. package/dist/api/resources/api/resources/external/client/Client.js +17 -0
  67. package/dist/api/resources/api/resources/external/client/index.d.ts +1 -0
  68. package/dist/api/resources/api/resources/external/client/index.js +2 -0
  69. package/dist/api/resources/api/resources/external/index.d.ts +2 -0
  70. package/dist/api/resources/api/resources/external/index.js +18 -0
  71. package/dist/api/resources/api/resources/external/resources/externalApi/client/Client.d.ts +68 -0
  72. package/dist/api/resources/api/resources/external/resources/externalApi/client/Client.js +155 -0
  73. package/dist/api/resources/api/resources/external/resources/externalApi/client/index.d.ts +1 -0
  74. package/dist/api/resources/api/resources/external/resources/externalApi/client/index.js +2 -0
  75. package/dist/api/resources/api/resources/external/resources/externalApi/index.d.ts +2 -0
  76. package/dist/api/resources/api/resources/external/resources/externalApi/index.js +18 -0
  77. package/dist/api/resources/api/resources/external/resources/externalApi/types/AddEorUser.d.ts +9 -0
  78. package/dist/api/resources/api/resources/external/resources/externalApi/types/AddEorUser.js +5 -0
  79. package/dist/api/resources/api/resources/external/resources/externalApi/types/ExternalCreateContractorRequestV2.d.ts +14 -0
  80. package/dist/api/resources/api/resources/external/resources/externalApi/types/ExternalCreateContractorRequestV2.js +5 -0
  81. package/dist/api/resources/api/resources/external/resources/externalApi/types/ExternalSuccessResponseV2.d.ts +6 -0
  82. package/dist/api/resources/api/resources/external/resources/externalApi/types/ExternalSuccessResponseV2.js +5 -0
  83. package/dist/api/resources/api/resources/external/resources/externalApi/types/index.d.ts +3 -0
  84. package/dist/api/resources/api/resources/external/resources/externalApi/types/index.js +19 -0
  85. package/dist/api/resources/api/resources/external/resources/index.d.ts +2 -0
  86. package/dist/api/resources/api/resources/external/resources/index.js +41 -0
  87. package/dist/api/resources/api/resources/index.d.ts +1 -0
  88. package/dist/api/resources/api/resources/index.js +2 -1
  89. package/dist/api/resources/api/resources/services/resources/file/client/Client.js +5 -5
  90. package/dist/api/resources/api/resources/thera/resources/accounting/resources/accountingApi/client/Client.js +4 -4
  91. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +33 -33
  92. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/AuBecsDebitPaymentMethodResponse.d.ts +9 -0
  93. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/AuBecsDebitPaymentMethodResponse.js +5 -0
  94. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/PaymentMethodDetailsResponse.d.ts +4 -1
  95. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +1 -0
  96. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +1 -0
  97. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.js +23 -23
  98. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.d.ts +8 -1
  99. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +26 -19
  100. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +3 -3
  101. package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +3 -3
  102. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +7 -7
  103. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
  104. package/dist/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +3 -3
  105. package/dist/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +2 -2
  106. package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +5 -5
  107. package/dist/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.js +2 -2
  108. package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +6 -6
  109. package/dist/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.js +1 -1
  110. package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +3 -3
  111. package/dist/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +14 -14
  112. package/dist/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.js +9 -9
  113. package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +10 -10
  114. package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
  115. package/dist/api/resources/db/resources/company/types/TpCompanyInformation.d.ts +0 -1
  116. package/dist/api/resources/db/resources/paymentMethod/types/StripeAuBecsDebitPaymentMethodDetails.d.ts +10 -0
  117. package/dist/api/resources/db/resources/paymentMethod/types/StripeAuBecsDebitPaymentMethodDetails.js +5 -0
  118. package/dist/api/resources/db/resources/paymentMethod/types/StripeFcPaymentMethod.d.ts +4 -1
  119. package/dist/api/resources/db/resources/paymentMethod/types/index.d.ts +1 -0
  120. package/dist/api/resources/db/resources/paymentMethod/types/index.js +1 -0
  121. package/dist/serialization/resources/api/resources/external/index.d.ts +1 -0
  122. package/dist/serialization/resources/api/resources/external/index.js +17 -0
  123. package/dist/serialization/resources/api/resources/external/resources/externalApi/index.d.ts +1 -0
  124. package/dist/serialization/resources/api/resources/external/resources/externalApi/index.js +17 -0
  125. package/dist/serialization/resources/api/resources/external/resources/externalApi/types/AddEorUser.d.ts +15 -0
  126. package/dist/serialization/resources/api/resources/external/resources/externalApi/types/AddEorUser.js +46 -0
  127. package/dist/serialization/resources/api/resources/external/resources/externalApi/types/ExternalCreateContractorRequestV2.d.ts +22 -0
  128. package/dist/serialization/resources/api/resources/external/resources/externalApi/types/ExternalCreateContractorRequestV2.js +53 -0
  129. package/dist/serialization/resources/api/resources/external/resources/externalApi/types/ExternalSuccessResponseV2.d.ts +12 -0
  130. package/dist/serialization/resources/api/resources/external/resources/externalApi/types/ExternalSuccessResponseV2.js +43 -0
  131. package/dist/serialization/resources/api/resources/external/resources/externalApi/types/index.d.ts +3 -0
  132. package/dist/serialization/resources/api/resources/external/resources/externalApi/types/index.js +19 -0
  133. package/dist/serialization/resources/api/resources/external/resources/index.d.ts +2 -0
  134. package/dist/serialization/resources/api/resources/external/resources/index.js +41 -0
  135. package/dist/serialization/resources/api/resources/index.d.ts +1 -0
  136. package/dist/serialization/resources/api/resources/index.js +2 -1
  137. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/AuBecsDebitPaymentMethodResponse.d.ts +15 -0
  138. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/AuBecsDebitPaymentMethodResponse.js +46 -0
  139. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/PaymentMethodDetailsResponse.d.ts +5 -1
  140. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/PaymentMethodDetailsResponse.js +2 -0
  141. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +1 -0
  142. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +1 -0
  143. package/dist/serialization/resources/db/resources/company/types/TpCompanyInformation.d.ts +0 -1
  144. package/dist/serialization/resources/db/resources/company/types/TpCompanyInformation.js +0 -1
  145. package/dist/serialization/resources/db/resources/paymentMethod/types/StripeAuBecsDebitPaymentMethodDetails.d.ts +16 -0
  146. package/dist/serialization/resources/db/resources/paymentMethod/types/StripeAuBecsDebitPaymentMethodDetails.js +47 -0
  147. package/dist/serialization/resources/db/resources/paymentMethod/types/StripeFcPaymentMethod.d.ts +5 -1
  148. package/dist/serialization/resources/db/resources/paymentMethod/types/StripeFcPaymentMethod.js +2 -0
  149. package/dist/serialization/resources/db/resources/paymentMethod/types/index.d.ts +1 -0
  150. package/dist/serialization/resources/db/resources/paymentMethod/types/index.js +1 -0
  151. package/dist/version.d.ts +1 -1
  152. package/dist/version.js +1 -1
  153. package/package.json +1 -1
  154. package/reference.md +90 -1
  155. package/serialization/resources/api/resources/external/index.d.ts +1 -0
  156. package/serialization/resources/api/resources/external/index.js +17 -0
  157. package/serialization/resources/api/resources/external/resources/externalApi/index.d.ts +1 -0
  158. package/serialization/resources/api/resources/external/resources/externalApi/index.js +17 -0
  159. package/serialization/resources/api/resources/external/resources/externalApi/types/AddEorUser.d.ts +15 -0
  160. package/serialization/resources/api/resources/external/resources/externalApi/types/AddEorUser.js +46 -0
  161. package/serialization/resources/api/resources/external/resources/externalApi/types/ExternalCreateContractorRequestV2.d.ts +22 -0
  162. package/serialization/resources/api/resources/external/resources/externalApi/types/ExternalCreateContractorRequestV2.js +53 -0
  163. package/serialization/resources/api/resources/external/resources/externalApi/types/ExternalSuccessResponseV2.d.ts +12 -0
  164. package/serialization/resources/api/resources/external/resources/externalApi/types/ExternalSuccessResponseV2.js +43 -0
  165. package/serialization/resources/api/resources/external/resources/externalApi/types/index.d.ts +3 -0
  166. package/serialization/resources/api/resources/external/resources/externalApi/types/index.js +19 -0
  167. package/serialization/resources/api/resources/external/resources/index.d.ts +2 -0
  168. package/serialization/resources/api/resources/external/resources/index.js +41 -0
  169. package/serialization/resources/api/resources/index.d.ts +1 -0
  170. package/serialization/resources/api/resources/index.js +2 -1
  171. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/AuBecsDebitPaymentMethodResponse.d.ts +15 -0
  172. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/AuBecsDebitPaymentMethodResponse.js +46 -0
  173. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/PaymentMethodDetailsResponse.d.ts +5 -1
  174. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/PaymentMethodDetailsResponse.js +2 -0
  175. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +1 -0
  176. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +1 -0
  177. package/serialization/resources/db/resources/company/types/TpCompanyInformation.d.ts +0 -1
  178. package/serialization/resources/db/resources/company/types/TpCompanyInformation.js +0 -1
  179. package/serialization/resources/db/resources/paymentMethod/types/StripeAuBecsDebitPaymentMethodDetails.d.ts +16 -0
  180. package/serialization/resources/db/resources/paymentMethod/types/StripeAuBecsDebitPaymentMethodDetails.js +47 -0
  181. package/serialization/resources/db/resources/paymentMethod/types/StripeFcPaymentMethod.d.ts +5 -1
  182. package/serialization/resources/db/resources/paymentMethod/types/StripeFcPaymentMethod.js +2 -0
  183. package/serialization/resources/db/resources/paymentMethod/types/index.d.ts +1 -0
  184. package/serialization/resources/db/resources/paymentMethod/types/index.js +1 -0
  185. package/version.d.ts +1 -1
  186. package/version.js +1 -1
@@ -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,15 @@
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 { StripeUsBankAccountStatusResponse } from "./StripeUsBankAccountStatusResponse";
8
+ export declare const AuBecsDebitPaymentMethodResponse: core.serialization.ObjectSchema<serializers.api.thera.bank.AuBecsDebitPaymentMethodResponse.Raw, TheraApi.api.thera.bank.AuBecsDebitPaymentMethodResponse>;
9
+ export declare namespace AuBecsDebitPaymentMethodResponse {
10
+ interface Raw {
11
+ last4: string;
12
+ bsbNumber: string;
13
+ status: StripeUsBankAccountStatusResponse.Raw;
14
+ }
15
+ }
@@ -0,0 +1,46 @@
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.AuBecsDebitPaymentMethodResponse = void 0;
40
+ const core = __importStar(require("../../../../../../../../../../core"));
41
+ const StripeUsBankAccountStatusResponse_1 = require("./StripeUsBankAccountStatusResponse");
42
+ exports.AuBecsDebitPaymentMethodResponse = core.serialization.object({
43
+ last4: core.serialization.string(),
44
+ bsbNumber: core.serialization.string(),
45
+ status: StripeUsBankAccountStatusResponse_1.StripeUsBankAccountStatusResponse,
46
+ });
@@ -8,9 +8,10 @@ import { CardPaymentMethodResponse } from "./CardPaymentMethodResponse";
8
8
  import { UsBankAccountPaymentMethodResponse } from "./UsBankAccountPaymentMethodResponse";
9
9
  import { SepaPaymentMethodResponse } from "./SepaPaymentMethodResponse";
10
10
  import { AcssDebitPaymentMethodResponse } from "./AcssDebitPaymentMethodResponse";
11
+ import { AuBecsDebitPaymentMethodResponse } from "./AuBecsDebitPaymentMethodResponse";
11
12
  export declare const PaymentMethodDetailsResponse: core.serialization.Schema<serializers.api.thera.bank.PaymentMethodDetailsResponse.Raw, TheraApi.api.thera.bank.PaymentMethodDetailsResponse>;
12
13
  export declare namespace PaymentMethodDetailsResponse {
13
- type Raw = PaymentMethodDetailsResponse.Card | PaymentMethodDetailsResponse.UsBankAccount | PaymentMethodDetailsResponse.SepaBankAccount | PaymentMethodDetailsResponse.AcssDebit;
14
+ type Raw = PaymentMethodDetailsResponse.Card | PaymentMethodDetailsResponse.UsBankAccount | PaymentMethodDetailsResponse.SepaBankAccount | PaymentMethodDetailsResponse.AcssDebit | PaymentMethodDetailsResponse.AuBecsDebit;
14
15
  interface Card extends CardPaymentMethodResponse.Raw {
15
16
  type: "card";
16
17
  }
@@ -23,4 +24,7 @@ export declare namespace PaymentMethodDetailsResponse {
23
24
  interface AcssDebit extends AcssDebitPaymentMethodResponse.Raw {
24
25
  type: "acssDebit";
25
26
  }
27
+ interface AuBecsDebit extends AuBecsDebitPaymentMethodResponse.Raw {
28
+ type: "auBecsDebit";
29
+ }
26
30
  }
@@ -42,12 +42,14 @@ const CardPaymentMethodResponse_1 = require("./CardPaymentMethodResponse");
42
42
  const UsBankAccountPaymentMethodResponse_1 = require("./UsBankAccountPaymentMethodResponse");
43
43
  const SepaPaymentMethodResponse_1 = require("./SepaPaymentMethodResponse");
44
44
  const AcssDebitPaymentMethodResponse_1 = require("./AcssDebitPaymentMethodResponse");
45
+ const AuBecsDebitPaymentMethodResponse_1 = require("./AuBecsDebitPaymentMethodResponse");
45
46
  exports.PaymentMethodDetailsResponse = core.serialization
46
47
  .union("type", {
47
48
  card: CardPaymentMethodResponse_1.CardPaymentMethodResponse,
48
49
  usBankAccount: UsBankAccountPaymentMethodResponse_1.UsBankAccountPaymentMethodResponse,
49
50
  sepaBankAccount: SepaPaymentMethodResponse_1.SepaPaymentMethodResponse,
50
51
  acssDebit: AcssDebitPaymentMethodResponse_1.AcssDebitPaymentMethodResponse,
52
+ auBecsDebit: AuBecsDebitPaymentMethodResponse_1.AuBecsDebitPaymentMethodResponse,
51
53
  })
52
54
  .transform({
53
55
  transform: (value) => value,
@@ -8,6 +8,7 @@ export * from "./PaymentMethodProvider";
8
8
  export * from "./PaymentMethodDetailsResponse";
9
9
  export * from "./SepaPaymentMethodResponse";
10
10
  export * from "./AcssDebitPaymentMethodResponse";
11
+ export * from "./AuBecsDebitPaymentMethodResponse";
11
12
  export * from "./CardPaymentMethodResponse";
12
13
  export * from "./UsBankAccountPaymentMethodResponse";
13
14
  export * from "./UsBankAccountProviderDetails";
@@ -24,6 +24,7 @@ __exportStar(require("./PaymentMethodProvider"), exports);
24
24
  __exportStar(require("./PaymentMethodDetailsResponse"), exports);
25
25
  __exportStar(require("./SepaPaymentMethodResponse"), exports);
26
26
  __exportStar(require("./AcssDebitPaymentMethodResponse"), exports);
27
+ __exportStar(require("./AuBecsDebitPaymentMethodResponse"), exports);
27
28
  __exportStar(require("./CardPaymentMethodResponse"), exports);
28
29
  __exportStar(require("./UsBankAccountPaymentMethodResponse"), exports);
29
30
  __exportStar(require("./UsBankAccountProviderDetails"), exports);
@@ -15,6 +15,5 @@ export declare namespace TpCompanyInformation {
15
15
  depositAccount?: TpDepositAccount.Raw | null;
16
16
  disbursementAccount?: TpDisbursementAccount.Raw | null;
17
17
  payrollFboOnboardingStage: TpCompanyOnboardingStage.Raw;
18
- lastInterestPaidMonth?: string | null;
19
18
  }
20
19
  }
@@ -47,5 +47,4 @@ exports.TpCompanyInformation = core.serialization.object({
47
47
  depositAccount: TpDepositAccount_1.TpDepositAccount.optional(),
48
48
  disbursementAccount: TpDisbursementAccount_1.TpDisbursementAccount.optional(),
49
49
  payrollFboOnboardingStage: TpCompanyOnboardingStage_1.TpCompanyOnboardingStage,
50
- lastInterestPaidMonth: core.serialization.string().optional(),
51
50
  });
@@ -0,0 +1,16 @@
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 { StripeBankAccountVerificationStatus } from "./StripeBankAccountVerificationStatus";
8
+ export declare const StripeAuBecsDebitPaymentMethodDetails: core.serialization.ObjectSchema<serializers.db.StripeAuBecsDebitPaymentMethodDetails.Raw, TheraApi.db.StripeAuBecsDebitPaymentMethodDetails>;
9
+ export declare namespace StripeAuBecsDebitPaymentMethodDetails {
10
+ interface Raw {
11
+ bsbNumber: string;
12
+ fingerprint: string;
13
+ last4: string;
14
+ verificationStatus: StripeBankAccountVerificationStatus.Raw;
15
+ }
16
+ }
@@ -0,0 +1,47 @@
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.StripeAuBecsDebitPaymentMethodDetails = void 0;
40
+ const core = __importStar(require("../../../../../../core"));
41
+ const StripeBankAccountVerificationStatus_1 = require("./StripeBankAccountVerificationStatus");
42
+ exports.StripeAuBecsDebitPaymentMethodDetails = core.serialization.object({
43
+ bsbNumber: core.serialization.string(),
44
+ fingerprint: core.serialization.string(),
45
+ last4: core.serialization.string(),
46
+ verificationStatus: StripeBankAccountVerificationStatus_1.StripeBankAccountVerificationStatus,
47
+ });
@@ -8,9 +8,10 @@ import { StripeUsBankAccountPaymentMethodDetails } from "./StripeUsBankAccountPa
8
8
  import { StripeCardPaymentMethodDetails } from "./StripeCardPaymentMethodDetails";
9
9
  import { StripeSepaPaymentMethodDetails } from "./StripeSepaPaymentMethodDetails";
10
10
  import { StripeAcssDebitAccountPaymentMethodDetails } from "./StripeAcssDebitAccountPaymentMethodDetails";
11
+ import { StripeAuBecsDebitPaymentMethodDetails } from "./StripeAuBecsDebitPaymentMethodDetails";
11
12
  export declare const StripeFcPaymentMethod: core.serialization.Schema<serializers.db.StripeFcPaymentMethod.Raw, TheraApi.db.StripeFcPaymentMethod>;
12
13
  export declare namespace StripeFcPaymentMethod {
13
- type Raw = StripeFcPaymentMethod.UsBankAccount | StripeFcPaymentMethod.Card | StripeFcPaymentMethod.Sepa | StripeFcPaymentMethod.AcssDebit;
14
+ type Raw = StripeFcPaymentMethod.UsBankAccount | StripeFcPaymentMethod.Card | StripeFcPaymentMethod.Sepa | StripeFcPaymentMethod.AcssDebit | StripeFcPaymentMethod.AuBecsDebit;
14
15
  interface UsBankAccount extends StripeUsBankAccountPaymentMethodDetails.Raw {
15
16
  type: "usBankAccount";
16
17
  }
@@ -23,4 +24,7 @@ export declare namespace StripeFcPaymentMethod {
23
24
  interface AcssDebit extends StripeAcssDebitAccountPaymentMethodDetails.Raw {
24
25
  type: "acssDebit";
25
26
  }
27
+ interface AuBecsDebit extends StripeAuBecsDebitPaymentMethodDetails.Raw {
28
+ type: "auBecsDebit";
29
+ }
26
30
  }
@@ -42,12 +42,14 @@ const StripeUsBankAccountPaymentMethodDetails_1 = require("./StripeUsBankAccount
42
42
  const StripeCardPaymentMethodDetails_1 = require("./StripeCardPaymentMethodDetails");
43
43
  const StripeSepaPaymentMethodDetails_1 = require("./StripeSepaPaymentMethodDetails");
44
44
  const StripeAcssDebitAccountPaymentMethodDetails_1 = require("./StripeAcssDebitAccountPaymentMethodDetails");
45
+ const StripeAuBecsDebitPaymentMethodDetails_1 = require("./StripeAuBecsDebitPaymentMethodDetails");
45
46
  exports.StripeFcPaymentMethod = core.serialization
46
47
  .union("type", {
47
48
  usBankAccount: StripeUsBankAccountPaymentMethodDetails_1.StripeUsBankAccountPaymentMethodDetails,
48
49
  card: StripeCardPaymentMethodDetails_1.StripeCardPaymentMethodDetails,
49
50
  sepa: StripeSepaPaymentMethodDetails_1.StripeSepaPaymentMethodDetails,
50
51
  acssDebit: StripeAcssDebitAccountPaymentMethodDetails_1.StripeAcssDebitAccountPaymentMethodDetails,
52
+ auBecsDebit: StripeAuBecsDebitPaymentMethodDetails_1.StripeAuBecsDebitPaymentMethodDetails,
51
53
  })
52
54
  .transform({
53
55
  transform: (value) => value,
@@ -8,5 +8,6 @@ export * from "./StripeFcPaymentMethod";
8
8
  export * from "./StripeSepaPaymentMethodDetails";
9
9
  export * from "./StripeUsBankAccountPaymentMethodDetails";
10
10
  export * from "./StripeAcssDebitAccountPaymentMethodDetails";
11
+ export * from "./StripeAuBecsDebitPaymentMethodDetails";
11
12
  export * from "./StripeBankAccountVerificationStatus";
12
13
  export * from "./StripeCardPaymentMethodDetails";
@@ -24,5 +24,6 @@ __exportStar(require("./StripeFcPaymentMethod"), exports);
24
24
  __exportStar(require("./StripeSepaPaymentMethodDetails"), exports);
25
25
  __exportStar(require("./StripeUsBankAccountPaymentMethodDetails"), exports);
26
26
  __exportStar(require("./StripeAcssDebitAccountPaymentMethodDetails"), exports);
27
+ __exportStar(require("./StripeAuBecsDebitPaymentMethodDetails"), exports);
27
28
  __exportStar(require("./StripeBankAccountVerificationStatus"), exports);
28
29
  __exportStar(require("./StripeCardPaymentMethodDetails"), exports);
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.0.1-prerelease2884-dev-2";
1
+ export declare const SDK_VERSION = "0.0.1-prerelease2885-dev-3";
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-prerelease2884-dev-2";
4
+ exports.SDK_VERSION = "0.0.1-prerelease2885-dev-3";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thera-hr/api-sdk",
3
- "version": "0.0.1-prerelease2884-dev-2",
3
+ "version": "0.0.1-prerelease2885-dev-3",
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,88 @@ 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
+ wageType: "HOURLY",
201
+ payCycle: {
202
+ timezone: "string",
203
+ cycleStartDate: "2023-01-15",
204
+ cycleEnd: {
205
+ type: "weekly",
206
+ },
207
+ paymentDueDays: 1,
208
+ firstPayDate: "2023-01-15",
209
+ lastPayDate: "2023-01-15",
210
+ firstPayTotal: 1000000,
211
+ lastPayTotal: 1000000,
212
+ itemRecurrencesById: {
213
+ string: {
214
+ itemType: "EXPENSE",
215
+ description: "string",
216
+ amount: 1000000,
217
+ firstInvoiceDate: "2023-01-15",
218
+ paymentCurrency: "string",
219
+ deletedDateTime: {
220
+ key: "value",
221
+ },
222
+ },
223
+ },
224
+ },
225
+ contractType: "FIXED_RATE",
226
+ });
227
+ ```
228
+
229
+ </dd>
230
+ </dl>
231
+ </dd>
232
+ </dl>
233
+
234
+ #### ⚙️ Parameters
235
+
236
+ <dl>
237
+ <dd>
238
+
239
+ <dl>
240
+ <dd>
241
+
242
+ **request:** `TheraApi.ExternalCreateContractorRequestV2`
243
+
244
+ </dd>
245
+ </dl>
246
+
247
+ <dl>
248
+ <dd>
249
+
250
+ **requestOptions:** `ExternalApi.RequestOptions`
251
+
252
+ </dd>
253
+ </dl>
254
+ </dd>
255
+ </dl>
256
+
257
+ </dd>
258
+ </dl>
259
+ </details>
260
+
179
261
  ## Api Services File
180
262
 
181
263
  <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 +4727,14 @@ await client.api.thera.company.companyApi.inviteContractor({
4645
4727
  lastPayTotal: 1000000,
4646
4728
  itemRecurrencesById: {
4647
4729
  string: {
4648
- key: "value",
4730
+ itemType: "EXPENSE",
4731
+ description: "string",
4732
+ amount: 1000000,
4733
+ firstInvoiceDate: "2023-01-15",
4734
+ paymentCurrency: "string",
4735
+ deletedDateTime: {
4736
+ key: "value",
4737
+ },
4649
4738
  },
4650
4739
  },
4651
4740
  },
@@ -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,15 @@
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 AddEorUser: core.serialization.ObjectSchema<serializers.api.external.AddEorUser.Raw, TheraApi.api.external.AddEorUser>;
8
+ export declare namespace AddEorUser {
9
+ interface Raw {
10
+ firstName: string;
11
+ lastName: string;
12
+ email: string;
13
+ country: string;
14
+ }
15
+ }
@@ -0,0 +1,46 @@
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.AddEorUser = void 0;
40
+ const core = __importStar(require("../../../../../../../../core"));
41
+ exports.AddEorUser = core.serialization.object({
42
+ firstName: core.serialization.string(),
43
+ lastName: core.serialization.string(),
44
+ email: core.serialization.string(),
45
+ country: core.serialization.string(),
46
+ });
@@ -0,0 +1,22 @@
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
+ export declare const ExternalCreateContractorRequestV2: core.serialization.ObjectSchema<serializers.api.external.ExternalCreateContractorRequestV2.Raw, TheraApi.api.external.ExternalCreateContractorRequestV2>;
11
+ export declare namespace ExternalCreateContractorRequestV2 {
12
+ interface Raw {
13
+ email: string;
14
+ firstName: string;
15
+ lastName: string;
16
+ country: string;
17
+ currency: string;
18
+ wageType: WageType.Raw;
19
+ payCycle: PayCycle.Raw;
20
+ contractType: ContractType.Raw;
21
+ }
22
+ }
@@ -0,0 +1,53 @@
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
+ exports.ExternalCreateContractorRequestV2 = core.serialization.object({
45
+ email: core.serialization.string(),
46
+ firstName: core.serialization.string(),
47
+ lastName: core.serialization.string(),
48
+ country: core.serialization.string(),
49
+ currency: core.serialization.string(),
50
+ wageType: WageType_1.WageType,
51
+ payCycle: PayCycle_1.PayCycle,
52
+ contractType: ContractType_1.ContractType,
53
+ });
@@ -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
+ });