@thera-hr/api-sdk 0.0.1-prerelease2888-dev-3 → 0.0.1-prerelease2890-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 (182) hide show
  1. package/api/resources/api/client/Client.d.ts +0 -3
  2. package/api/resources/api/client/Client.js +4 -9
  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/index.d.ts +0 -1
  6. package/api/resources/api/resources/index.js +1 -2
  7. package/api/resources/api/resources/services/resources/file/client/Client.js +5 -5
  8. package/api/resources/api/resources/thera/resources/accounting/resources/accountingApi/client/Client.js +4 -4
  9. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +33 -33
  10. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.js +23 -23
  11. package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.d.ts +1 -8
  12. package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +19 -26
  13. package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +3 -3
  14. package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +3 -3
  15. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +7 -7
  16. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
  17. package/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +3 -3
  18. package/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +2 -2
  19. package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +5 -5
  20. package/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.d.ts +14 -4
  21. package/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.js +61 -9
  22. package/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/{GetEorEmployeeByUserIdResponse.d.ts → GetEorEmployeeByEmailResponse.d.ts} +1 -1
  23. package/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/GetLatestEorEmployeeEmailResponse.d.ts +7 -0
  24. package/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/index.d.ts +2 -1
  25. package/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/index.js +2 -1
  26. package/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.d.ts +25 -0
  27. package/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +77 -6
  28. package/api/resources/api/resources/thera/resources/misc/resources/misc/client/requests/FilloutEorEmployeeRequest.d.ts +27 -0
  29. package/api/resources/api/resources/thera/resources/misc/resources/misc/client/requests/index.d.ts +1 -0
  30. package/api/resources/api/resources/{external/resources/externalApi/types/ExternalCreateContractorRequestV2.d.ts → thera/resources/misc/resources/misc/types/FilloutEorEmployeeWebhookRequest.d.ts} +9 -6
  31. package/{dist/api/resources/api/resources/external/resources/externalApi/types/ExternalSuccessResponseV2.d.ts → api/resources/api/resources/thera/resources/misc/resources/misc/types/FilloutEorEmployeeWebhookResponse.d.ts} +2 -2
  32. package/api/resources/api/resources/thera/resources/misc/resources/misc/types/index.d.ts +2 -0
  33. package/api/resources/api/resources/thera/resources/misc/resources/misc/types/index.js +2 -0
  34. package/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.js +1 -1
  35. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +3 -3
  36. package/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +14 -14
  37. package/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.d.ts +2 -1
  38. package/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.js +15 -11
  39. package/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/requests/GetAllTimeTrackingRequest.d.ts +3 -1
  40. package/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +10 -10
  41. package/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
  42. package/dist/api/resources/api/client/Client.d.ts +0 -3
  43. package/dist/api/resources/api/client/Client.js +4 -9
  44. package/dist/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +1 -1
  45. package/dist/api/resources/api/resources/dev/resources/dev/client/Client.js +1 -1
  46. package/dist/api/resources/api/resources/index.d.ts +0 -1
  47. package/dist/api/resources/api/resources/index.js +1 -2
  48. package/dist/api/resources/api/resources/services/resources/file/client/Client.js +5 -5
  49. package/dist/api/resources/api/resources/thera/resources/accounting/resources/accountingApi/client/Client.js +4 -4
  50. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +33 -33
  51. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.js +23 -23
  52. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.d.ts +1 -8
  53. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +19 -26
  54. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +3 -3
  55. package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +3 -3
  56. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +7 -7
  57. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
  58. package/dist/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +3 -3
  59. package/dist/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +2 -2
  60. package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +5 -5
  61. package/dist/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.d.ts +14 -4
  62. package/dist/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.js +61 -9
  63. package/dist/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/{GetEorEmployeeByUserIdResponse.d.ts → GetEorEmployeeByEmailResponse.d.ts} +1 -1
  64. package/dist/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/GetLatestEorEmployeeEmailResponse.d.ts +7 -0
  65. package/dist/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/index.d.ts +2 -1
  66. package/dist/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/index.js +2 -1
  67. package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.d.ts +25 -0
  68. package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +77 -6
  69. package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/requests/FilloutEorEmployeeRequest.d.ts +27 -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/{external/resources/externalApi/types/ExternalCreateContractorRequestV2.d.ts → thera/resources/misc/resources/misc/types/FilloutEorEmployeeWebhookRequest.d.ts} +9 -6
  72. package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/types/FilloutEorEmployeeWebhookRequest.js +5 -0
  73. package/{api/resources/api/resources/external/resources/externalApi/types/ExternalSuccessResponseV2.d.ts → dist/api/resources/api/resources/thera/resources/misc/resources/misc/types/FilloutEorEmployeeWebhookResponse.d.ts} +2 -2
  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.d.ts +2 -1
  81. package/dist/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.js +15 -11
  82. package/dist/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/requests/GetAllTimeTrackingRequest.d.ts +3 -1
  83. package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +10 -10
  84. package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
  85. package/dist/serialization/resources/api/resources/index.d.ts +0 -1
  86. package/dist/serialization/resources/api/resources/index.js +1 -2
  87. package/dist/serialization/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/{GetEorEmployeeByUserIdResponse.d.ts → GetEorEmployeeByEmailResponse.d.ts} +2 -2
  88. package/dist/serialization/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/{GetEorEmployeeByUserIdResponse.js → GetEorEmployeeByEmailResponse.js} +2 -2
  89. package/dist/serialization/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/GetLatestEorEmployeeEmailResponse.d.ts +13 -0
  90. package/dist/serialization/resources/api/resources/{external/resources/externalApi/types/AddEorUser.js → thera/resources/eor/resources/eorTrackerApi/types/GetLatestEorEmployeeEmailResponse.js} +4 -6
  91. package/dist/serialization/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/index.d.ts +2 -1
  92. package/dist/serialization/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/index.js +2 -1
  93. package/dist/serialization/resources/api/resources/thera/resources/misc/resources/misc/types/FilloutEorEmployeeWebhookRequest.d.ts +23 -0
  94. package/dist/serialization/resources/api/resources/{external/resources/externalApi/types/ExternalCreateContractorRequestV2.js → thera/resources/misc/resources/misc/types/FilloutEorEmployeeWebhookRequest.js} +11 -10
  95. package/dist/serialization/resources/api/resources/thera/resources/misc/resources/misc/types/FilloutEorEmployeeWebhookResponse.d.ts +12 -0
  96. package/{serialization/resources/api/resources/external/resources/externalApi/types/ExternalSuccessResponseV2.js → dist/serialization/resources/api/resources/thera/resources/misc/resources/misc/types/FilloutEorEmployeeWebhookResponse.js} +4 -4
  97. package/dist/serialization/resources/api/resources/thera/resources/misc/resources/misc/types/index.d.ts +2 -0
  98. package/dist/serialization/resources/api/resources/thera/resources/misc/resources/misc/types/index.js +2 -0
  99. package/dist/version.d.ts +1 -1
  100. package/dist/version.js +1 -1
  101. package/package.json +1 -1
  102. package/reference.md +147 -94
  103. package/serialization/resources/api/resources/index.d.ts +0 -1
  104. package/serialization/resources/api/resources/index.js +1 -2
  105. package/serialization/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/{GetEorEmployeeByUserIdResponse.d.ts → GetEorEmployeeByEmailResponse.d.ts} +2 -2
  106. package/serialization/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/{GetEorEmployeeByUserIdResponse.js → GetEorEmployeeByEmailResponse.js} +2 -2
  107. package/serialization/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/GetLatestEorEmployeeEmailResponse.d.ts +13 -0
  108. package/serialization/resources/api/resources/{external/resources/externalApi/types/AddEorUser.js → thera/resources/eor/resources/eorTrackerApi/types/GetLatestEorEmployeeEmailResponse.js} +4 -6
  109. package/serialization/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/index.d.ts +2 -1
  110. package/serialization/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/types/index.js +2 -1
  111. package/serialization/resources/api/resources/thera/resources/misc/resources/misc/types/FilloutEorEmployeeWebhookRequest.d.ts +23 -0
  112. package/serialization/resources/api/resources/{external/resources/externalApi/types/ExternalCreateContractorRequestV2.js → thera/resources/misc/resources/misc/types/FilloutEorEmployeeWebhookRequest.js} +11 -10
  113. package/serialization/resources/api/resources/thera/resources/misc/resources/misc/types/FilloutEorEmployeeWebhookResponse.d.ts +12 -0
  114. package/{dist/serialization/resources/api/resources/external/resources/externalApi/types/ExternalSuccessResponseV2.js → serialization/resources/api/resources/thera/resources/misc/resources/misc/types/FilloutEorEmployeeWebhookResponse.js} +4 -4
  115. package/serialization/resources/api/resources/thera/resources/misc/resources/misc/types/index.d.ts +2 -0
  116. package/serialization/resources/api/resources/thera/resources/misc/resources/misc/types/index.js +2 -0
  117. package/version.d.ts +1 -1
  118. package/version.js +1 -1
  119. package/api/resources/api/resources/external/client/Client.d.ts +0 -19
  120. package/api/resources/api/resources/external/client/Client.js +0 -17
  121. package/api/resources/api/resources/external/client/index.d.ts +0 -1
  122. package/api/resources/api/resources/external/client/index.js +0 -2
  123. package/api/resources/api/resources/external/index.d.ts +0 -2
  124. package/api/resources/api/resources/external/index.js +0 -18
  125. package/api/resources/api/resources/external/resources/externalApi/client/Client.d.ts +0 -68
  126. package/api/resources/api/resources/external/resources/externalApi/client/Client.js +0 -155
  127. package/api/resources/api/resources/external/resources/externalApi/client/index.d.ts +0 -1
  128. package/api/resources/api/resources/external/resources/externalApi/client/index.js +0 -2
  129. package/api/resources/api/resources/external/resources/externalApi/index.d.ts +0 -2
  130. package/api/resources/api/resources/external/resources/externalApi/index.js +0 -18
  131. package/api/resources/api/resources/external/resources/externalApi/types/AddEorUser.d.ts +0 -9
  132. package/api/resources/api/resources/external/resources/externalApi/types/index.d.ts +0 -3
  133. package/api/resources/api/resources/external/resources/externalApi/types/index.js +0 -19
  134. package/api/resources/api/resources/external/resources/index.d.ts +0 -2
  135. package/api/resources/api/resources/external/resources/index.js +0 -41
  136. package/dist/api/resources/api/resources/external/client/Client.d.ts +0 -19
  137. package/dist/api/resources/api/resources/external/client/Client.js +0 -17
  138. package/dist/api/resources/api/resources/external/client/index.d.ts +0 -1
  139. package/dist/api/resources/api/resources/external/client/index.js +0 -2
  140. package/dist/api/resources/api/resources/external/index.d.ts +0 -2
  141. package/dist/api/resources/api/resources/external/index.js +0 -18
  142. package/dist/api/resources/api/resources/external/resources/externalApi/client/Client.d.ts +0 -68
  143. package/dist/api/resources/api/resources/external/resources/externalApi/client/Client.js +0 -155
  144. package/dist/api/resources/api/resources/external/resources/externalApi/client/index.d.ts +0 -1
  145. package/dist/api/resources/api/resources/external/resources/externalApi/client/index.js +0 -2
  146. package/dist/api/resources/api/resources/external/resources/externalApi/index.d.ts +0 -2
  147. package/dist/api/resources/api/resources/external/resources/externalApi/index.js +0 -18
  148. package/dist/api/resources/api/resources/external/resources/externalApi/types/AddEorUser.d.ts +0 -9
  149. package/dist/api/resources/api/resources/external/resources/externalApi/types/index.d.ts +0 -3
  150. package/dist/api/resources/api/resources/external/resources/externalApi/types/index.js +0 -19
  151. package/dist/api/resources/api/resources/external/resources/index.d.ts +0 -2
  152. package/dist/api/resources/api/resources/external/resources/index.js +0 -41
  153. package/dist/serialization/resources/api/resources/external/index.d.ts +0 -1
  154. package/dist/serialization/resources/api/resources/external/index.js +0 -17
  155. package/dist/serialization/resources/api/resources/external/resources/externalApi/index.d.ts +0 -1
  156. package/dist/serialization/resources/api/resources/external/resources/externalApi/index.js +0 -17
  157. package/dist/serialization/resources/api/resources/external/resources/externalApi/types/AddEorUser.d.ts +0 -15
  158. package/dist/serialization/resources/api/resources/external/resources/externalApi/types/ExternalCreateContractorRequestV2.d.ts +0 -22
  159. package/dist/serialization/resources/api/resources/external/resources/externalApi/types/ExternalSuccessResponseV2.d.ts +0 -12
  160. package/dist/serialization/resources/api/resources/external/resources/externalApi/types/index.d.ts +0 -3
  161. package/dist/serialization/resources/api/resources/external/resources/externalApi/types/index.js +0 -19
  162. package/dist/serialization/resources/api/resources/external/resources/index.d.ts +0 -2
  163. package/dist/serialization/resources/api/resources/external/resources/index.js +0 -41
  164. package/serialization/resources/api/resources/external/index.d.ts +0 -1
  165. package/serialization/resources/api/resources/external/index.js +0 -17
  166. package/serialization/resources/api/resources/external/resources/externalApi/index.d.ts +0 -1
  167. package/serialization/resources/api/resources/external/resources/externalApi/index.js +0 -17
  168. package/serialization/resources/api/resources/external/resources/externalApi/types/AddEorUser.d.ts +0 -15
  169. package/serialization/resources/api/resources/external/resources/externalApi/types/ExternalCreateContractorRequestV2.d.ts +0 -22
  170. package/serialization/resources/api/resources/external/resources/externalApi/types/ExternalSuccessResponseV2.d.ts +0 -12
  171. package/serialization/resources/api/resources/external/resources/externalApi/types/index.d.ts +0 -3
  172. package/serialization/resources/api/resources/external/resources/externalApi/types/index.js +0 -19
  173. package/serialization/resources/api/resources/external/resources/index.d.ts +0 -2
  174. package/serialization/resources/api/resources/external/resources/index.js +0 -41
  175. /package/api/resources/api/resources/{external/resources/externalApi/types/AddEorUser.js → thera/resources/eor/resources/eorTrackerApi/types/GetEorEmployeeByEmailResponse.js} +0 -0
  176. /package/api/resources/api/resources/{external/resources/externalApi/types/ExternalCreateContractorRequestV2.js → thera/resources/eor/resources/eorTrackerApi/types/GetLatestEorEmployeeEmailResponse.js} +0 -0
  177. /package/api/resources/api/resources/{external/resources/externalApi/types/ExternalSuccessResponseV2.js → thera/resources/misc/resources/misc/client/requests/FilloutEorEmployeeRequest.js} +0 -0
  178. /package/api/resources/api/resources/thera/resources/{eor/resources/eorTrackerApi/types/GetEorEmployeeByUserIdResponse.js → misc/resources/misc/types/FilloutEorEmployeeWebhookRequest.js} +0 -0
  179. /package/{dist/api/resources/api/resources/external/resources/externalApi/types/AddEorUser.js → api/resources/api/resources/thera/resources/misc/resources/misc/types/FilloutEorEmployeeWebhookResponse.js} +0 -0
  180. /package/dist/api/resources/api/resources/{external/resources/externalApi/types/ExternalCreateContractorRequestV2.js → thera/resources/eor/resources/eorTrackerApi/types/GetEorEmployeeByEmailResponse.js} +0 -0
  181. /package/dist/api/resources/api/resources/{external/resources/externalApi/types/ExternalSuccessResponseV2.js → thera/resources/eor/resources/eorTrackerApi/types/GetLatestEorEmployeeEmailResponse.js} +0 -0
  182. /package/dist/api/resources/api/resources/thera/resources/{eor/resources/eorTrackerApi/types/GetEorEmployeeByUserIdResponse.js → misc/resources/misc/client/requests/FilloutEorEmployeeRequest.js} +0 -0
@@ -1,155 +0,0 @@
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
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
39
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
40
- return new (P || (P = Promise))(function (resolve, reject) {
41
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
42
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
43
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
44
- step((generator = generator.apply(thisArg, _arguments || [])).next());
45
- });
46
- };
47
- var __importDefault = (this && this.__importDefault) || function (mod) {
48
- return (mod && mod.__esModule) ? mod : { "default": mod };
49
- };
50
- Object.defineProperty(exports, "__esModule", { value: true });
51
- exports.ExternalApi = void 0;
52
- const core = __importStar(require("../../../../../../../../core"));
53
- const serializers = __importStar(require("../../../../../../../../serialization/index"));
54
- const url_join_1 = __importDefault(require("url-join"));
55
- const errors = __importStar(require("../../../../../../../../errors/index"));
56
- class ExternalApi {
57
- constructor(_options) {
58
- this._options = _options;
59
- }
60
- /**
61
- * @param {TheraApi.api.external.ExternalCreateContractorRequestV2} request
62
- * @param {ExternalApi.RequestOptions} requestOptions - Request-specific configuration.
63
- *
64
- * @example
65
- * await client.api.external.externalApi.createContractorV2({
66
- * email: "string",
67
- * firstName: "string",
68
- * lastName: "string",
69
- * country: "string",
70
- * currency: "string",
71
- * wageType: "HOURLY",
72
- * payCycle: {
73
- * timezone: "string",
74
- * cycleStartDate: "2023-01-15",
75
- * cycleEnd: {
76
- * type: "weekly"
77
- * },
78
- * paymentDueDays: 1,
79
- * firstPayDate: "2023-01-15",
80
- * lastPayDate: "2023-01-15",
81
- * firstPayTotal: 1000000,
82
- * lastPayTotal: 1000000,
83
- * itemRecurrencesById: {
84
- * "string": {
85
- * itemType: "EXPENSE",
86
- * description: "string",
87
- * amount: 1000000,
88
- * firstInvoiceDate: "2023-01-15",
89
- * paymentCurrency: "string",
90
- * deletedDateTime: {
91
- * "key": "value"
92
- * }
93
- * }
94
- * }
95
- * },
96
- * contractType: "FIXED_RATE"
97
- * })
98
- */
99
- createContractorV2(request, requestOptions) {
100
- return __awaiter(this, void 0, void 0, function* () {
101
- var _a;
102
- const _response = yield core.fetcher({
103
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), "/external/v2/contractor"),
104
- method: "POST",
105
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@thera-hr/api-sdk", "X-Fern-SDK-Version": "0.0.1-prerelease2888-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2888-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
106
- contentType: "application/json",
107
- requestType: "json",
108
- body: serializers.api.external.ExternalCreateContractorRequestV2.jsonOrThrow(request, {
109
- unrecognizedObjectKeys: "strip",
110
- }),
111
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
112
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
113
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
114
- });
115
- if (_response.ok) {
116
- return serializers.api.external.ExternalSuccessResponseV2.parseOrThrow(_response.body, {
117
- unrecognizedObjectKeys: "passthrough",
118
- allowUnrecognizedUnionMembers: true,
119
- allowUnrecognizedEnumValues: true,
120
- skipValidation: true,
121
- breadcrumbsPrefix: ["response"],
122
- });
123
- }
124
- if (_response.error.reason === "status-code") {
125
- throw new errors.TheraApiError({
126
- statusCode: _response.error.statusCode,
127
- body: _response.error.body,
128
- });
129
- }
130
- switch (_response.error.reason) {
131
- case "non-json":
132
- throw new errors.TheraApiError({
133
- statusCode: _response.error.statusCode,
134
- body: _response.error.rawBody,
135
- });
136
- case "timeout":
137
- throw new errors.TheraApiTimeoutError("Timeout exceeded when calling POST /external/v2/contractor.");
138
- case "unknown":
139
- throw new errors.TheraApiError({
140
- message: _response.error.errorMessage,
141
- });
142
- }
143
- });
144
- }
145
- _getAuthorizationHeader() {
146
- return __awaiter(this, void 0, void 0, function* () {
147
- const bearer = yield core.Supplier.get(this._options.token);
148
- if (bearer != null) {
149
- return `Bearer ${bearer}`;
150
- }
151
- return undefined;
152
- });
153
- }
154
- }
155
- exports.ExternalApi = ExternalApi;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- export * from "./types";
2
- export * from "./client";
@@ -1,18 +0,0 @@
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);
18
- __exportStar(require("./client"), exports);
@@ -1,9 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface AddEorUser {
5
- firstName: string;
6
- lastName: string;
7
- email: string;
8
- country: string;
9
- }
@@ -1,3 +0,0 @@
1
- export * from "./ExternalCreateContractorRequestV2";
2
- export * from "./AddEorUser";
3
- export * from "./ExternalSuccessResponseV2";
@@ -1,19 +0,0 @@
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("./AddEorUser"), exports);
19
- __exportStar(require("./ExternalSuccessResponseV2"), exports);
@@ -1,2 +0,0 @@
1
- export * as externalApi from "./externalApi";
2
- export * from "./externalApi/types";
@@ -1,41 +0,0 @@
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 +0,0 @@
1
- export * from "./resources";
@@ -1,17 +0,0 @@
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);
@@ -1,17 +0,0 @@
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);
@@ -1,15 +0,0 @@
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
- }
@@ -1,22 +0,0 @@
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
- }
@@ -1,12 +0,0 @@
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
- }
@@ -1,3 +0,0 @@
1
- export * from "./ExternalCreateContractorRequestV2";
2
- export * from "./AddEorUser";
3
- export * from "./ExternalSuccessResponseV2";
@@ -1,19 +0,0 @@
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("./AddEorUser"), exports);
19
- __exportStar(require("./ExternalSuccessResponseV2"), exports);
@@ -1,2 +0,0 @@
1
- export * as externalApi from "./externalApi";
2
- export * from "./externalApi/types";
@@ -1,41 +0,0 @@
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 +0,0 @@
1
- export * from "./resources";
@@ -1,17 +0,0 @@
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);
@@ -1,17 +0,0 @@
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);
@@ -1,15 +0,0 @@
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
- }
@@ -1,22 +0,0 @@
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
- }
@@ -1,12 +0,0 @@
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
- }
@@ -1,3 +0,0 @@
1
- export * from "./ExternalCreateContractorRequestV2";
2
- export * from "./AddEorUser";
3
- export * from "./ExternalSuccessResponseV2";
@@ -1,19 +0,0 @@
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("./AddEorUser"), exports);
19
- __exportStar(require("./ExternalSuccessResponseV2"), exports);
@@ -1,2 +0,0 @@
1
- export * as externalApi from "./externalApi";
2
- export * from "./externalApi/types";
@@ -1,41 +0,0 @@
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);