@thera-hr/api-sdk 0.0.1-prerelease2882-dev-3 → 0.0.1-prerelease2883-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 (136) 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/ExternalSuccessResponse.d.ts +6 -0
  22. package/api/resources/api/resources/external/resources/externalApi/types/ExternalSuccessResponse.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/bridge/resources/bridgeApi/client/Client.js +23 -23
  33. package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.d.ts +8 -1
  34. package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +26 -19
  35. package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +3 -3
  36. package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +3 -3
  37. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +7 -7
  38. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
  39. package/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +3 -3
  40. package/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +2 -2
  41. package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +5 -5
  42. package/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.js +2 -2
  43. package/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +6 -6
  44. package/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.js +1 -1
  45. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +3 -3
  46. package/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +14 -14
  47. package/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.js +9 -9
  48. package/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +10 -10
  49. package/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
  50. package/dist/api/resources/api/client/Client.d.ts +3 -0
  51. package/dist/api/resources/api/client/Client.js +9 -4
  52. package/dist/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +1 -1
  53. package/dist/api/resources/api/resources/dev/resources/dev/client/Client.js +1 -1
  54. package/dist/api/resources/api/resources/external/client/Client.d.ts +19 -0
  55. package/dist/api/resources/api/resources/external/client/Client.js +17 -0
  56. package/dist/api/resources/api/resources/external/client/index.d.ts +1 -0
  57. package/dist/api/resources/api/resources/external/client/index.js +2 -0
  58. package/dist/api/resources/api/resources/external/index.d.ts +2 -0
  59. package/dist/api/resources/api/resources/external/index.js +18 -0
  60. package/dist/api/resources/api/resources/external/resources/externalApi/client/Client.d.ts +68 -0
  61. package/dist/api/resources/api/resources/external/resources/externalApi/client/Client.js +155 -0
  62. package/dist/api/resources/api/resources/external/resources/externalApi/client/index.d.ts +1 -0
  63. package/dist/api/resources/api/resources/external/resources/externalApi/client/index.js +2 -0
  64. package/dist/api/resources/api/resources/external/resources/externalApi/index.d.ts +2 -0
  65. package/dist/api/resources/api/resources/external/resources/externalApi/index.js +18 -0
  66. package/dist/api/resources/api/resources/external/resources/externalApi/types/AddEorUser.d.ts +9 -0
  67. package/dist/api/resources/api/resources/external/resources/externalApi/types/AddEorUser.js +5 -0
  68. package/dist/api/resources/api/resources/external/resources/externalApi/types/ExternalCreateContractorRequestV2.d.ts +14 -0
  69. package/dist/api/resources/api/resources/external/resources/externalApi/types/ExternalCreateContractorRequestV2.js +5 -0
  70. package/dist/api/resources/api/resources/external/resources/externalApi/types/ExternalSuccessResponse.d.ts +6 -0
  71. package/dist/api/resources/api/resources/external/resources/externalApi/types/ExternalSuccessResponse.js +5 -0
  72. package/dist/api/resources/api/resources/external/resources/externalApi/types/index.d.ts +3 -0
  73. package/dist/api/resources/api/resources/external/resources/externalApi/types/index.js +19 -0
  74. package/dist/api/resources/api/resources/external/resources/index.d.ts +2 -0
  75. package/dist/api/resources/api/resources/external/resources/index.js +41 -0
  76. package/dist/api/resources/api/resources/index.d.ts +1 -0
  77. package/dist/api/resources/api/resources/index.js +2 -1
  78. package/dist/api/resources/api/resources/services/resources/file/client/Client.js +5 -5
  79. package/dist/api/resources/api/resources/thera/resources/accounting/resources/accountingApi/client/Client.js +4 -4
  80. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +33 -33
  81. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.js +23 -23
  82. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.d.ts +8 -1
  83. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +26 -19
  84. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +3 -3
  85. package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +3 -3
  86. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +7 -7
  87. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
  88. package/dist/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +3 -3
  89. package/dist/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +2 -2
  90. package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +5 -5
  91. package/dist/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.js +2 -2
  92. package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +6 -6
  93. package/dist/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.js +1 -1
  94. package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +3 -3
  95. package/dist/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +14 -14
  96. package/dist/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.js +9 -9
  97. package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +10 -10
  98. package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
  99. package/dist/serialization/resources/api/resources/external/index.d.ts +1 -0
  100. package/dist/serialization/resources/api/resources/external/index.js +17 -0
  101. package/dist/serialization/resources/api/resources/external/resources/externalApi/index.d.ts +1 -0
  102. package/dist/serialization/resources/api/resources/external/resources/externalApi/index.js +17 -0
  103. package/dist/serialization/resources/api/resources/external/resources/externalApi/types/AddEorUser.d.ts +15 -0
  104. package/dist/serialization/resources/api/resources/external/resources/externalApi/types/AddEorUser.js +46 -0
  105. package/dist/serialization/resources/api/resources/external/resources/externalApi/types/ExternalCreateContractorRequestV2.d.ts +22 -0
  106. package/dist/serialization/resources/api/resources/external/resources/externalApi/types/ExternalCreateContractorRequestV2.js +53 -0
  107. package/dist/serialization/resources/api/resources/external/resources/externalApi/types/ExternalSuccessResponse.d.ts +12 -0
  108. package/dist/serialization/resources/api/resources/external/resources/externalApi/types/ExternalSuccessResponse.js +43 -0
  109. package/dist/serialization/resources/api/resources/external/resources/externalApi/types/index.d.ts +3 -0
  110. package/dist/serialization/resources/api/resources/external/resources/externalApi/types/index.js +19 -0
  111. package/dist/serialization/resources/api/resources/external/resources/index.d.ts +2 -0
  112. package/dist/serialization/resources/api/resources/external/resources/index.js +41 -0
  113. package/dist/serialization/resources/api/resources/index.d.ts +1 -0
  114. package/dist/serialization/resources/api/resources/index.js +2 -1
  115. package/dist/version.d.ts +1 -1
  116. package/dist/version.js +1 -1
  117. package/package.json +1 -1
  118. package/reference.md +90 -1
  119. package/serialization/resources/api/resources/external/index.d.ts +1 -0
  120. package/serialization/resources/api/resources/external/index.js +17 -0
  121. package/serialization/resources/api/resources/external/resources/externalApi/index.d.ts +1 -0
  122. package/serialization/resources/api/resources/external/resources/externalApi/index.js +17 -0
  123. package/serialization/resources/api/resources/external/resources/externalApi/types/AddEorUser.d.ts +15 -0
  124. package/serialization/resources/api/resources/external/resources/externalApi/types/AddEorUser.js +46 -0
  125. package/serialization/resources/api/resources/external/resources/externalApi/types/ExternalCreateContractorRequestV2.d.ts +22 -0
  126. package/serialization/resources/api/resources/external/resources/externalApi/types/ExternalCreateContractorRequestV2.js +53 -0
  127. package/serialization/resources/api/resources/external/resources/externalApi/types/ExternalSuccessResponse.d.ts +12 -0
  128. package/serialization/resources/api/resources/external/resources/externalApi/types/ExternalSuccessResponse.js +43 -0
  129. package/serialization/resources/api/resources/external/resources/externalApi/types/index.d.ts +3 -0
  130. package/serialization/resources/api/resources/external/resources/externalApi/types/index.js +19 -0
  131. package/serialization/resources/api/resources/external/resources/index.d.ts +2 -0
  132. package/serialization/resources/api/resources/external/resources/index.js +41 -0
  133. package/serialization/resources/api/resources/index.d.ts +1 -0
  134. package/serialization/resources/api/resources/index.js +2 -1
  135. package/version.d.ts +1 -1
  136. package/version.js +1 -1
@@ -110,7 +110,7 @@ class TpApi {
110
110
  const _response = yield core.fetcher({
111
111
  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)), `companies/${encodeURIComponent(companyId)}/banking-details`),
112
112
  method: "POST",
113
- 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-prerelease2882-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2882-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
113
+ 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-prerelease2883-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2883-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
114
114
  contentType: "application/json",
115
115
  requestType: "json",
116
116
  body: serializers.api.thera.tp.AddCompanyBankingDetailsRequest.jsonOrThrow(request, {
@@ -164,7 +164,7 @@ class TpApi {
164
164
  const _response = yield core.fetcher({
165
165
  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)), "naics-codes"),
166
166
  method: "GET",
167
- 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-prerelease2882-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2882-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
167
+ 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-prerelease2883-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2883-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
168
168
  contentType: "application/json",
169
169
  requestType: "json",
170
170
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -224,7 +224,7 @@ class TpApi {
224
224
  const _response = yield core.fetcher({
225
225
  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)), `companies/${encodeURIComponent(companyId)}/process-funds`),
226
226
  method: "POST",
227
- 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-prerelease2882-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2882-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
227
+ 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-prerelease2883-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2883-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
228
228
  contentType: "application/json",
229
229
  requestType: "json",
230
230
  body: serializers.api.thera.tp.ProcessFundsTransfer.jsonOrThrow(request, {
@@ -276,7 +276,7 @@ class TpApi {
276
276
  const _response = yield core.fetcher({
277
277
  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)), `companies/${encodeURIComponent(companyId)}/create-counterparty`),
278
278
  method: "POST",
279
- 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-prerelease2882-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2882-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
279
+ 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-prerelease2883-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2883-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
280
280
  contentType: "application/json",
281
281
  requestType: "json",
282
282
  body: serializers.api.thera.tp.CreateCounterPartyForBankingRequest.jsonOrThrow(request, {
@@ -325,7 +325,7 @@ class TpApi {
325
325
  const _response = yield core.fetcher({
326
326
  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)), `companies/${encodeURIComponent(companyId)}/fetch-accounts`),
327
327
  method: "GET",
328
- 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-prerelease2882-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2882-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
328
+ 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-prerelease2883-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2883-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
329
329
  contentType: "application/json",
330
330
  requestType: "json",
331
331
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -380,7 +380,7 @@ class TpApi {
380
380
  const _response = yield core.fetcher({
381
381
  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)), `companies/${encodeURIComponent(companyId)}/fetch-accounts/${encodeURIComponent(accountId)}`),
382
382
  method: "GET",
383
- 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-prerelease2882-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2882-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
383
+ 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-prerelease2883-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2883-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
384
384
  contentType: "application/json",
385
385
  queryParameters: _queryParams,
386
386
  requestType: "json",
@@ -431,7 +431,7 @@ class TpApi {
431
431
  const _response = yield core.fetcher({
432
432
  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)), `companies/${encodeURIComponent(companyId)}/transfer-fbo-omnibus`),
433
433
  method: "POST",
434
- 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-prerelease2882-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2882-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
434
+ 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-prerelease2883-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2883-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
435
435
  contentType: "application/json",
436
436
  requestType: "json",
437
437
  body: serializers.api.thera.tp.TransferFundsToOmnibusAccount.jsonOrThrow(request, {
@@ -481,7 +481,7 @@ class TpApi {
481
481
  const _response = yield core.fetcher({
482
482
  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)), `companies/${encodeURIComponent(companyId)}/fetch-transactions/${encodeURIComponent(accountId)}`),
483
483
  method: "GET",
484
- 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-prerelease2882-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2882-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
484
+ 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-prerelease2883-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2883-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
485
485
  contentType: "application/json",
486
486
  requestType: "json",
487
487
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -534,7 +534,7 @@ class TpApi {
534
534
  const _response = yield core.fetcher({
535
535
  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)), `companies/${encodeURIComponent(companyId)}/tp-transaction/${encodeURIComponent(transactionId)}`),
536
536
  method: "GET",
537
- 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-prerelease2882-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2882-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
537
+ 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-prerelease2883-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2883-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
538
538
  contentType: "application/json",
539
539
  requestType: "json",
540
540
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -598,7 +598,7 @@ class TpApi {
598
598
  const _response = yield core.fetcher({
599
599
  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)), "webhook/tp/external-transfer-funds"),
600
600
  method: "POST",
601
- 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-prerelease2882-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2882-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
601
+ 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-prerelease2883-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2883-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
602
602
  contentType: "application/json",
603
603
  queryParameters: _queryParams,
604
604
  requestType: "json",
@@ -78,7 +78,7 @@ class UserApi {
78
78
  const _response = yield core.fetcher({
79
79
  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)), `company/${encodeURIComponent(companyId)}/user/${encodeURIComponent(userId)}`),
80
80
  method: "POST",
81
- 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-prerelease2882-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2882-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
81
+ 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-prerelease2883-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2883-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
82
82
  contentType: "application/json",
83
83
  requestType: "json",
84
84
  body: serializers.api.thera.user.SetUserComplianceSettingsRequest.jsonOrThrow(request, {
@@ -139,7 +139,7 @@ class UserApi {
139
139
  const _response = yield core.fetcher({
140
140
  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)), `company/${encodeURIComponent(companyId)}/user`),
141
141
  method: "GET",
142
- 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-prerelease2882-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2882-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
142
+ 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-prerelease2883-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2883-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
143
143
  contentType: "application/json",
144
144
  queryParameters: _queryParams,
145
145
  requestType: "json",
@@ -197,7 +197,7 @@ class UserApi {
197
197
  const _response = yield core.fetcher({
198
198
  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)), "user"),
199
199
  method: "GET",
200
- 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-prerelease2882-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2882-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
200
+ 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-prerelease2883-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease2883-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
201
201
  contentType: "application/json",
202
202
  queryParameters: _queryParams,
203
203
  requestType: "json",
@@ -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 ExternalSuccessResponse: core.serialization.ObjectSchema<serializers.api.external.ExternalSuccessResponse.Raw, TheraApi.api.external.ExternalSuccessResponse>;
8
+ export declare namespace ExternalSuccessResponse {
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.ExternalSuccessResponse = void 0;
40
+ const core = __importStar(require("../../../../../../../../core"));
41
+ exports.ExternalSuccessResponse = core.serialization.object({
42
+ success: core.serialization.boolean(),
43
+ });
@@ -0,0 +1,3 @@
1
+ export * from "./ExternalCreateContractorRequestV2";
2
+ export * from "./AddEorUser";
3
+ export * from "./ExternalSuccessResponse";
@@ -0,0 +1,19 @@
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("./ExternalSuccessResponse"), exports);
@@ -0,0 +1,2 @@
1
+ export * as externalApi from "./externalApi";
2
+ export * from "./externalApi/types";
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
+ };
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.externalApi = void 0;
40
+ exports.externalApi = __importStar(require("./externalApi"));
41
+ __exportStar(require("./externalApi/types"), exports);
@@ -1,5 +1,6 @@
1
1
  export * as aiprise from "./aiprise";
2
2
  export * as dev from "./dev";
3
+ export * as external from "./external";
3
4
  export * as oneschema from "./oneschema";
4
5
  export * as request from "./request";
5
6
  export * as response from "./response";
@@ -33,9 +33,10 @@ var __importStar = (this && this.__importStar) || (function () {
33
33
  };
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.zeal = exports.thera = exports.services = exports.response = exports.request = exports.oneschema = exports.dev = exports.aiprise = void 0;
36
+ exports.zeal = exports.thera = exports.services = exports.response = exports.request = exports.oneschema = exports.external = exports.dev = exports.aiprise = void 0;
37
37
  exports.aiprise = __importStar(require("./aiprise"));
38
38
  exports.dev = __importStar(require("./dev"));
39
+ exports.external = __importStar(require("./external"));
39
40
  exports.oneschema = __importStar(require("./oneschema"));
40
41
  exports.request = __importStar(require("./request"));
41
42
  exports.response = __importStar(require("./response"));
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.0.1-prerelease2882-dev-3";
1
+ export declare const SDK_VERSION = "0.0.1-prerelease2883-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-prerelease2882-dev-3";
4
+ exports.SDK_VERSION = "0.0.1-prerelease2883-dev-3";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thera-hr/api-sdk",
3
- "version": "0.0.1-prerelease2882-dev-3",
3
+ "version": "0.0.1-prerelease2883-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.ExternalSuccessResponse</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);