@thera-hr/api-sdk 0.0.1-prerelease3205-dev-3 → 0.0.1-prerelease3205-dev

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/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +1 -1
  2. package/api/resources/api/resources/dev/resources/dev/client/Client.js +1 -1
  3. package/api/resources/api/resources/external/resources/externalApi/client/Client.js +1 -1
  4. package/api/resources/api/resources/services/resources/file/client/Client.js +5 -5
  5. package/api/resources/api/resources/thera/resources/accounting/resources/accountingApi/client/Client.js +4 -4
  6. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +37 -37
  7. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.js +24 -24
  8. package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +18 -18
  9. package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.d.ts +45 -0
  10. package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +106 -5
  11. package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/requests/CreatePayrollCsvRequest.d.ts +48 -0
  12. package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/requests/CreatePayrollCsvRequest.js +5 -0
  13. package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/requests/index.d.ts +1 -0
  14. package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/CreatePayrollCsvRecord.d.ts +27 -0
  15. package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/CreatePayrollCsvRecord.js +5 -0
  16. package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/index.d.ts +1 -0
  17. package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/index.js +1 -0
  18. package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +3 -3
  19. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +7 -7
  20. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
  21. package/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +3 -3
  22. package/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +2 -2
  23. package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +5 -5
  24. package/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.js +3 -3
  25. package/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/client/Client.js +3 -3
  26. package/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +8 -8
  27. package/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/Client.js +11 -11
  28. package/api/resources/api/resources/thera/resources/payroll/resources/index.d.ts +1 -0
  29. package/api/resources/api/resources/thera/resources/payroll/resources/index.js +1 -0
  30. package/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.js +1 -1
  31. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.d.ts +14 -0
  32. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +58 -5
  33. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/index.d.ts +1 -1
  34. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/index.js +15 -0
  35. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/requests/AddEmployeeToOncycleChecksRequest.d.ts +12 -0
  36. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/requests/AddEmployeeToOncycleChecksRequest.js +5 -0
  37. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/requests/index.d.ts +1 -0
  38. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/requests/index.js +2 -0
  39. package/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/Client.js +7 -7
  40. package/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +15 -15
  41. package/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.js +9 -9
  42. package/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +11 -11
  43. package/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
  44. package/api/resources/db/resources/company/types/Flags.d.ts +2 -0
  45. package/api/resources/db/resources/user/types/BridgeUserDetails.d.ts +1 -0
  46. package/dist/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +1 -1
  47. package/dist/api/resources/api/resources/dev/resources/dev/client/Client.js +1 -1
  48. package/dist/api/resources/api/resources/external/resources/externalApi/client/Client.js +1 -1
  49. package/dist/api/resources/api/resources/services/resources/file/client/Client.js +5 -5
  50. package/dist/api/resources/api/resources/thera/resources/accounting/resources/accountingApi/client/Client.js +4 -4
  51. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +37 -37
  52. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.js +24 -24
  53. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +18 -18
  54. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.d.ts +45 -0
  55. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +106 -5
  56. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/requests/CreatePayrollCsvRequest.d.ts +48 -0
  57. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/requests/CreatePayrollCsvRequest.js +5 -0
  58. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/requests/index.d.ts +1 -0
  59. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/CreatePayrollCsvRecord.d.ts +27 -0
  60. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/CreatePayrollCsvRecord.js +5 -0
  61. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/index.d.ts +1 -0
  62. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/index.js +1 -0
  63. package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +3 -3
  64. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +7 -7
  65. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
  66. package/dist/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +3 -3
  67. package/dist/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +2 -2
  68. package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +5 -5
  69. package/dist/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.js +3 -3
  70. package/dist/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/client/Client.js +3 -3
  71. package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +8 -8
  72. package/dist/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/Client.js +11 -11
  73. package/dist/api/resources/api/resources/thera/resources/payroll/resources/index.d.ts +1 -0
  74. package/dist/api/resources/api/resources/thera/resources/payroll/resources/index.js +1 -0
  75. package/dist/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.js +1 -1
  76. package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.d.ts +14 -0
  77. package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +58 -5
  78. package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/index.d.ts +1 -1
  79. package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/index.js +15 -0
  80. package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/requests/AddEmployeeToOncycleChecksRequest.d.ts +12 -0
  81. package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/requests/AddEmployeeToOncycleChecksRequest.js +5 -0
  82. package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/requests/index.d.ts +1 -0
  83. package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/requests/index.js +2 -0
  84. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/Client.js +7 -7
  85. package/dist/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +15 -15
  86. package/dist/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.js +9 -9
  87. package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +11 -11
  88. package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
  89. package/dist/api/resources/db/resources/company/types/Flags.d.ts +2 -0
  90. package/dist/api/resources/db/resources/user/types/BridgeUserDetails.d.ts +1 -0
  91. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/requests/CreatePayrollCsvRequest.d.ts +15 -0
  92. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/requests/CreatePayrollCsvRequest.js +46 -0
  93. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/requests/index.d.ts +1 -0
  94. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/requests/index.js +3 -1
  95. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/CreatePayrollCsvRecord.d.ts +33 -0
  96. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/CreatePayrollCsvRecord.js +64 -0
  97. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/index.d.ts +1 -0
  98. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/index.js +1 -0
  99. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/index.d.ts +1 -0
  100. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/index.js +1 -0
  101. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/index.d.ts +1 -0
  102. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/index.js +4 -0
  103. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/requests/AddEmployeeToOncycleChecksRequest.d.ts +12 -0
  104. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/requests/AddEmployeeToOncycleChecksRequest.js +43 -0
  105. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/requests/index.d.ts +1 -0
  106. package/dist/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/requests/index.js +5 -0
  107. package/dist/serialization/resources/db/resources/company/types/Flags.d.ts +2 -0
  108. package/dist/serialization/resources/db/resources/company/types/Flags.js +2 -0
  109. package/dist/serialization/resources/db/resources/user/types/BridgeUserDetails.d.ts +1 -0
  110. package/dist/serialization/resources/db/resources/user/types/BridgeUserDetails.js +1 -0
  111. package/dist/version.d.ts +1 -1
  112. package/dist/version.js +1 -1
  113. package/package.json +1 -1
  114. package/reference.md +179 -0
  115. package/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/requests/CreatePayrollCsvRequest.d.ts +15 -0
  116. package/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/requests/CreatePayrollCsvRequest.js +46 -0
  117. package/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/requests/index.d.ts +1 -0
  118. package/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/requests/index.js +3 -1
  119. package/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/CreatePayrollCsvRecord.d.ts +33 -0
  120. package/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/CreatePayrollCsvRecord.js +64 -0
  121. package/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/index.d.ts +1 -0
  122. package/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/index.js +1 -0
  123. package/serialization/resources/api/resources/thera/resources/payroll/resources/index.d.ts +1 -0
  124. package/serialization/resources/api/resources/thera/resources/payroll/resources/index.js +1 -0
  125. package/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/index.d.ts +1 -0
  126. package/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/index.js +4 -0
  127. package/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/requests/AddEmployeeToOncycleChecksRequest.d.ts +12 -0
  128. package/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/requests/AddEmployeeToOncycleChecksRequest.js +43 -0
  129. package/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/requests/index.d.ts +1 -0
  130. package/serialization/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/requests/index.js +5 -0
  131. package/serialization/resources/db/resources/company/types/Flags.d.ts +2 -0
  132. package/serialization/resources/db/resources/company/types/Flags.js +2 -0
  133. package/serialization/resources/db/resources/user/types/BridgeUserDetails.d.ts +1 -0
  134. package/serialization/resources/db/resources/user/types/BridgeUserDetails.js +1 -0
  135. package/version.d.ts +1 -1
  136. package/version.js +1 -1
@@ -44,6 +44,17 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
44
44
  step((generator = generator.apply(thisArg, _arguments || [])).next());
45
45
  });
46
46
  };
47
+ var __rest = (this && this.__rest) || function (s, e) {
48
+ var t = {};
49
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
50
+ t[p] = s[p];
51
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
52
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
53
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
54
+ t[p[i]] = s[p[i]];
55
+ }
56
+ return t;
57
+ };
47
58
  var __importDefault = (this && this.__importDefault) || function (mod) {
48
59
  return (mod && mod.__esModule) ? mod : { "default": mod };
49
60
  };
@@ -79,7 +90,7 @@ class CompanyW2PayrollApi {
79
90
  const _response = yield core.fetcher({
80
91
  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/w2Payroll"),
81
92
  method: "POST",
82
- 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-prerelease3205-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3205-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
93
+ 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-prerelease3205-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3205-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
83
94
  contentType: "application/json",
84
95
  requestType: "json",
85
96
  body: serializers.api.thera.company.OnboardW2PayrollRequest.jsonOrThrow(request, {
@@ -138,7 +149,7 @@ class CompanyW2PayrollApi {
138
149
  const _response = yield core.fetcher({
139
150
  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)}/w2/toggle-onboarding-flow-complete`),
140
151
  method: "POST",
141
- 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-prerelease3205-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3205-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
152
+ 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-prerelease3205-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3205-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
142
153
  contentType: "application/json",
143
154
  requestType: "json",
144
155
  body: serializers.api.thera.company.ToggleW2PayrollOnboardingFlowCompleteRequest.jsonOrThrow(request, {
@@ -203,7 +214,7 @@ class CompanyW2PayrollApi {
203
214
  const _response = yield core.fetcher({
204
215
  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)}/w2/payroll/setup`),
205
216
  method: "POST",
206
- 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-prerelease3205-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3205-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
217
+ 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-prerelease3205-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3205-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
207
218
  contentType: "application/json",
208
219
  requestType: "json",
209
220
  body: serializers.api.thera.company.SetupW2PayrollRequest.jsonOrThrow(request, {
@@ -254,7 +265,7 @@ class CompanyW2PayrollApi {
254
265
  const _response = yield core.fetcher({
255
266
  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)}/w2/payroll_items/${encodeURIComponent(payrollItemId)}/reimbursements`),
256
267
  method: "PUT",
257
- 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-prerelease3205-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3205-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
268
+ 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-prerelease3205-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3205-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
258
269
  contentType: "application/json",
259
270
  requestType: "json",
260
271
  body: request,
@@ -300,7 +311,7 @@ class CompanyW2PayrollApi {
300
311
  const _response = yield core.fetcher({
301
312
  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)}/w2/payroll_items/${encodeURIComponent(payrollItemId)}`),
302
313
  method: "DELETE",
303
- 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-prerelease3205-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3205-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
314
+ 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-prerelease3205-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3205-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
304
315
  contentType: "application/json",
305
316
  requestType: "json",
306
317
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -331,6 +342,96 @@ class CompanyW2PayrollApi {
331
342
  }
332
343
  });
333
344
  }
345
+ /**
346
+ * @param {string} companyId
347
+ * @param {string} checkPayScheduleId
348
+ * @param {TheraApi.api.thera.company.CreatePayrollCsvRequest} request
349
+ * @param {CompanyW2PayrollApi.RequestOptions} requestOptions - Request-specific configuration.
350
+ *
351
+ * @example
352
+ * await client.api.thera.company.companyW2PayrollApi.uploadCsvPayroll("string", "string", {
353
+ * preview: true,
354
+ * columns: [{
355
+ * sheetColumnName: "string",
356
+ * templateColumnName: "string",
357
+ * templateColumnKey: "string",
358
+ * isCustom: true,
359
+ * customColumnName: "string"
360
+ * }],
361
+ * records: [{
362
+ * email: "string",
363
+ * contractId: "string",
364
+ * userId: "string",
365
+ * regularHours: 1.1,
366
+ * overtimeHours: 1.1,
367
+ * doubleOvertimeHours: 1.1,
368
+ * paidHolidayHours: 1.1,
369
+ * ptoHours: 1.1,
370
+ * sickHours: 1.1,
371
+ * restAndRecoveryHours: 1.1,
372
+ * nonProductiveHours: 1.1,
373
+ * bonus: 1.1,
374
+ * commission: 1.1,
375
+ * severance: 1.1,
376
+ * cashTips: 1.1,
377
+ * paycheckTips: 1.1,
378
+ * groupTermLife: 1.1,
379
+ * otherImputed: 1.1,
380
+ * nonHourlyRegular: 1.1,
381
+ * 2PercentShareholderBenefits: 1.1,
382
+ * 2PercentShareholderHsa: 1.1,
383
+ * custom: {
384
+ * "string": "string"
385
+ * }
386
+ * }]
387
+ * })
388
+ */
389
+ uploadCsvPayroll(companyId, checkPayScheduleId, request, requestOptions) {
390
+ return __awaiter(this, void 0, void 0, function* () {
391
+ var _a;
392
+ const { preview } = request, _body = __rest(request, ["preview"]);
393
+ const _queryParams = {};
394
+ if (preview != null) {
395
+ _queryParams["preview"] = preview.toString();
396
+ }
397
+ const _response = yield core.fetcher({
398
+ 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)}/w2-payroll/pay-schedules/${encodeURIComponent(checkPayScheduleId)}/csv`),
399
+ method: "POST",
400
+ 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-prerelease3205-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3205-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
401
+ contentType: "application/json",
402
+ queryParameters: _queryParams,
403
+ requestType: "json",
404
+ body: serializers.api.thera.company.CreatePayrollCsvRequest.jsonOrThrow(_body, {
405
+ unrecognizedObjectKeys: "strip",
406
+ }),
407
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
408
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
409
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
410
+ });
411
+ if (_response.ok) {
412
+ return _response.body;
413
+ }
414
+ if (_response.error.reason === "status-code") {
415
+ throw new errors.TheraApiError({
416
+ statusCode: _response.error.statusCode,
417
+ body: _response.error.body,
418
+ });
419
+ }
420
+ switch (_response.error.reason) {
421
+ case "non-json":
422
+ throw new errors.TheraApiError({
423
+ statusCode: _response.error.statusCode,
424
+ body: _response.error.rawBody,
425
+ });
426
+ case "timeout":
427
+ throw new errors.TheraApiTimeoutError("Timeout exceeded when calling POST /companies/{companyId}/w2-payroll/pay-schedules/{checkPayScheduleId}/csv.");
428
+ case "unknown":
429
+ throw new errors.TheraApiError({
430
+ message: _response.error.errorMessage,
431
+ });
432
+ }
433
+ });
434
+ }
334
435
  _getAuthorizationHeader() {
335
436
  return __awaiter(this, void 0, void 0, function* () {
336
437
  const bearer = yield core.Supplier.get(this._options.token);
@@ -0,0 +1,48 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as TheraApi from "../../../../../../../../../../index";
5
+ /**
6
+ * @example
7
+ * {
8
+ * preview: true,
9
+ * columns: [{
10
+ * sheetColumnName: "string",
11
+ * templateColumnName: "string",
12
+ * templateColumnKey: "string",
13
+ * isCustom: true,
14
+ * customColumnName: "string"
15
+ * }],
16
+ * records: [{
17
+ * email: "string",
18
+ * contractId: "string",
19
+ * userId: "string",
20
+ * regularHours: 1.1,
21
+ * overtimeHours: 1.1,
22
+ * doubleOvertimeHours: 1.1,
23
+ * paidHolidayHours: 1.1,
24
+ * ptoHours: 1.1,
25
+ * sickHours: 1.1,
26
+ * restAndRecoveryHours: 1.1,
27
+ * nonProductiveHours: 1.1,
28
+ * bonus: 1.1,
29
+ * commission: 1.1,
30
+ * severance: 1.1,
31
+ * cashTips: 1.1,
32
+ * paycheckTips: 1.1,
33
+ * groupTermLife: 1.1,
34
+ * otherImputed: 1.1,
35
+ * nonHourlyRegular: 1.1,
36
+ * 2PercentShareholderBenefits: 1.1,
37
+ * 2PercentShareholderHsa: 1.1,
38
+ * custom: {
39
+ * "string": "string"
40
+ * }
41
+ * }]
42
+ * }
43
+ */
44
+ export interface CreatePayrollCsvRequest {
45
+ preview?: boolean;
46
+ columns: TheraApi.api.oneschema.OneSchemaCsvColumn[];
47
+ records: TheraApi.api.thera.company.CreatePayrollCsvRecord[];
48
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +1,2 @@
1
1
  export { type ToggleW2PayrollOnboardingFlowCompleteRequest } from "./ToggleW2PayrollOnboardingFlowCompleteRequest";
2
+ export { type CreatePayrollCsvRequest } from "./CreatePayrollCsvRequest";
@@ -0,0 +1,27 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface CreatePayrollCsvRecord {
5
+ email?: string;
6
+ contractId?: string;
7
+ userId?: string;
8
+ regularHours?: number;
9
+ overtimeHours?: number;
10
+ doubleOvertimeHours?: number;
11
+ paidHolidayHours?: number;
12
+ ptoHours?: number;
13
+ sickHours?: number;
14
+ restAndRecoveryHours?: number;
15
+ nonProductiveHours?: number;
16
+ bonus?: number;
17
+ commission?: number;
18
+ severance?: number;
19
+ cashTips?: number;
20
+ paycheckTips?: number;
21
+ groupTermLife?: number;
22
+ otherImputed?: number;
23
+ nonHourlyRegular?: number;
24
+ "2PercentShareholderBenefits"?: number;
25
+ "2PercentShareholderHsa"?: number;
26
+ custom?: Record<string, string>;
27
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -4,3 +4,4 @@ export * from "./OnboardW2PayrollRequest";
4
4
  export * from "./OnboardW2PayrollUpdateCompany";
5
5
  export * from "./OnboardW2PayrollSettings";
6
6
  export * from "./OnboardW2PayrollResponse";
7
+ export * from "./CreatePayrollCsvRecord";
@@ -20,3 +20,4 @@ __exportStar(require("./OnboardW2PayrollRequest"), exports);
20
20
  __exportStar(require("./OnboardW2PayrollUpdateCompany"), exports);
21
21
  __exportStar(require("./OnboardW2PayrollSettings"), exports);
22
22
  __exportStar(require("./OnboardW2PayrollResponse"), exports);
23
+ __exportStar(require("./CreatePayrollCsvRecord"), exports);
@@ -87,7 +87,7 @@ class ContractorApi {
87
87
  const _response = yield core.fetcher({
88
88
  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)}/us-contractors/tax-info`),
89
89
  method: "GET",
90
- 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-prerelease3205-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3205-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
90
+ 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-prerelease3205-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3205-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
91
91
  contentType: "application/json",
92
92
  queryParameters: _queryParams,
93
93
  requestType: "json",
@@ -143,7 +143,7 @@ class ContractorApi {
143
143
  const _response = yield core.fetcher({
144
144
  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)}/us-contractors/${encodeURIComponent(userId)}/tax-info`),
145
145
  method: "PUT",
146
- 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-prerelease3205-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3205-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
146
+ 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-prerelease3205-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3205-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
147
147
  contentType: "application/json",
148
148
  requestType: "json",
149
149
  body: serializers.api.thera.contractor.UpdateUsContractorsTaxInfoRequest.jsonOrThrow(request, {
@@ -237,7 +237,7 @@ class ContractorApi {
237
237
  const _response = yield core.fetcher({
238
238
  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)}/contractors/csv`),
239
239
  method: "POST",
240
- 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-prerelease3205-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3205-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
240
+ 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-prerelease3205-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3205-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
241
241
  contentType: "application/json",
242
242
  queryParameters: _queryParams,
243
243
  requestType: "json",
@@ -110,7 +110,7 @@ class DisbursementApi {
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)}/invoices/csv`),
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-prerelease3205-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3205-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-prerelease3205-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3205-dev", "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
  queryParameters: _queryParams,
116
116
  requestType: "json",
@@ -177,7 +177,7 @@ class DisbursementApi {
177
177
  const _response = yield core.fetcher({
178
178
  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)), "disbursement"),
179
179
  method: "POST",
180
- 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-prerelease3205-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3205-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
180
+ 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-prerelease3205-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3205-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
181
181
  contentType: "application/json",
182
182
  requestType: "json",
183
183
  body: serializers.api.thera.disbursement.CreateDisbursementRequest.jsonOrThrow(request, {
@@ -226,7 +226,7 @@ class DisbursementApi {
226
226
  const _response = yield core.fetcher({
227
227
  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)), `disbursement/invoices/${encodeURIComponent(invoiceId)}/approve`),
228
228
  method: "POST",
229
- 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-prerelease3205-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3205-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
229
+ 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-prerelease3205-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3205-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
230
230
  contentType: "application/json",
231
231
  requestType: "json",
232
232
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -277,7 +277,7 @@ class DisbursementApi {
277
277
  const _response = yield core.fetcher({
278
278
  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)), `disbursement/invoices/${encodeURIComponent(invoiceId)}`),
279
279
  method: "PATCH",
280
- 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-prerelease3205-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3205-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
+ 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-prerelease3205-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3205-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
281
281
  contentType: "application/json",
282
282
  requestType: "json",
283
283
  body: serializers.api.thera.disbursement.EditInvoiceRequest.jsonOrThrow(request, {
@@ -333,7 +333,7 @@ class DisbursementApi {
333
333
  const _response = yield core.fetcher({
334
334
  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)), `disbursement/invoices/${encodeURIComponent(invoiceId)}/deduction`),
335
335
  method: "POST",
336
- 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-prerelease3205-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3205-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
336
+ 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-prerelease3205-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3205-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
337
337
  contentType: "application/json",
338
338
  requestType: "json",
339
339
  body: serializers.api.thera.disbursement.CreateInvoiceDeductionRequest.jsonOrThrow(request, {
@@ -383,7 +383,7 @@ class DisbursementApi {
383
383
  const _response = yield core.fetcher({
384
384
  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)), `disbursement/invoices/${encodeURIComponent(invoiceId)}/deduction/${encodeURIComponent(deductionId)}`),
385
385
  method: "DELETE",
386
- 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-prerelease3205-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3205-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
386
+ 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-prerelease3205-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3205-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
387
387
  contentType: "application/json",
388
388
  requestType: "json",
389
389
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -445,7 +445,7 @@ class DisbursementApi {
445
445
  const _response = yield core.fetcher({
446
446
  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)}/invoices/csv`),
447
447
  method: "GET",
448
- 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-prerelease3205-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3205-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
448
+ 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-prerelease3205-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3205-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
449
449
  contentType: "application/json",
450
450
  queryParameters: _queryParams,
451
451
  requestType: "json",
@@ -78,7 +78,7 @@ class DisbursementWebhookApi {
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)), "webhook/disbursement/invoice"),
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-prerelease3205-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3205-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "Thera-Webhook-Signature-Header": theraWebhookSignatureHeader }, 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-prerelease3205-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3205-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "Thera-Webhook-Signature-Header": theraWebhookSignatureHeader }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
82
82
  contentType: "application/json",
83
83
  requestType: "json",
84
84
  body: serializers.api.thera.disbursement.InvoiceWebhookEvent.jsonOrThrow(_body, {
@@ -75,7 +75,7 @@ class DocumentApi {
75
75
  const _response = yield core.fetcher({
76
76
  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)), "w9-document"),
77
77
  method: "GET",
78
- 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-prerelease3205-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3205-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
78
+ 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-prerelease3205-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3205-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
79
79
  contentType: "application/json",
80
80
  queryParameters: _queryParams,
81
81
  requestType: "json",
@@ -134,7 +134,7 @@ class DocumentApi {
134
134
  const _response = yield core.fetcher({
135
135
  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)}/1099-nec-document`),
136
136
  method: "GET",
137
- 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-prerelease3205-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3205-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
137
+ 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-prerelease3205-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3205-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
138
138
  contentType: "application/json",
139
139
  queryParameters: _queryParams,
140
140
  requestType: "json",
@@ -190,7 +190,7 @@ class DocumentApi {
190
190
  const _response = yield core.fetcher({
191
191
  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)), "1099-nec-document/file"),
192
192
  method: "POST",
193
- 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-prerelease3205-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3205-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
193
+ 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-prerelease3205-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3205-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
194
194
  contentType: "application/json",
195
195
  requestType: "json",
196
196
  body: serializers.api.thera.document.BulkFileUsIrs1099NecDocumentRequest.jsonOrThrow(request, {
@@ -73,7 +73,7 @@ class EmailApi {
73
73
  const _response = yield core.fetcher({
74
74
  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)), "email/login"),
75
75
  method: "POST",
76
- 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-prerelease3205-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3205-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
76
+ 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-prerelease3205-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3205-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
77
77
  contentType: "application/json",
78
78
  requestType: "json",
79
79
  body: serializers.api.thera.email.SendLoginEmailRequest.jsonOrThrow(request, {
@@ -125,7 +125,7 @@ class EmailApi {
125
125
  const _response = yield core.fetcher({
126
126
  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/${encodeURIComponent(userId)}/update-email`),
127
127
  method: "PUT",
128
- 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-prerelease3205-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3205-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
128
+ 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-prerelease3205-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3205-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
129
129
  contentType: "application/json",
130
130
  requestType: "json",
131
131
  body: serializers.api.thera.email.UpdateEmailRequest.jsonOrThrow(request, {
@@ -74,7 +74,7 @@ class EmploymentApi {
74
74
  const _response = yield core.fetcher({
75
75
  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)), `contracts/${encodeURIComponent(contractId)}/pay-cycle/recurrences/${encodeURIComponent(recurrenceId)}`),
76
76
  method: "DELETE",
77
- 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-prerelease3205-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3205-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
77
+ 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-prerelease3205-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3205-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
78
78
  contentType: "application/json",
79
79
  requestType: "json",
80
80
  body: serializers.api.thera.employment.DeleteContractInvoiceItemRecurrenceRequest.jsonOrThrow(request, {
@@ -140,7 +140,7 @@ class EmploymentApi {
140
140
  const _response = yield core.fetcher({
141
141
  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)), "contracts/estimate"),
142
142
  method: "POST",
143
- 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-prerelease3205-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3205-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
+ 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-prerelease3205-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3205-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
144
144
  contentType: "application/json",
145
145
  requestType: "json",
146
146
  body: serializers.api.thera.employment.CreateContractEstimateRequest.jsonOrThrow(request, {
@@ -195,7 +195,7 @@ class EmploymentApi {
195
195
  const _response = yield core.fetcher({
196
196
  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)), `contracts/${encodeURIComponent(contractId)}`),
197
197
  method: "DELETE",
198
- 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-prerelease3205-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3205-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
198
+ 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-prerelease3205-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3205-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
199
199
  contentType: "application/json",
200
200
  requestType: "json",
201
201
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -244,7 +244,7 @@ class EmploymentApi {
244
244
  const _response = yield core.fetcher({
245
245
  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)), `contracts/${encodeURIComponent(contractId)}/termination-cancellation`),
246
246
  method: "POST",
247
- 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-prerelease3205-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3205-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
247
+ 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-prerelease3205-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3205-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
248
248
  contentType: "application/json",
249
249
  requestType: "json",
250
250
  body: serializers.api.thera.employment.CancelContractTerminationRequest.jsonOrThrow(request, {
@@ -294,7 +294,7 @@ class EmploymentApi {
294
294
  const _response = yield core.fetcher({
295
295
  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)), `contracts/${encodeURIComponent(contractId)}/payCycle/${encodeURIComponent(baseDate)}`),
296
296
  method: "GET",
297
- 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-prerelease3205-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3205-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
297
+ 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-prerelease3205-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3205-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
298
298
  contentType: "application/json",
299
299
  requestType: "json",
300
300
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -72,7 +72,7 @@ class EorTrackerApi {
72
72
  const _response = yield core.fetcher({
73
73
  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)}/eor-tracker`),
74
74
  method: "GET",
75
- 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-prerelease3205-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3205-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
75
+ 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-prerelease3205-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3205-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
76
76
  contentType: "application/json",
77
77
  requestType: "json",
78
78
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -124,7 +124,7 @@ class EorTrackerApi {
124
124
  const _response = yield core.fetcher({
125
125
  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)), `eor-tracker/employee/${encodeURIComponent(email)}`),
126
126
  method: "GET",
127
- 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-prerelease3205-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3205-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
127
+ 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-prerelease3205-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3205-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
128
128
  contentType: "application/json",
129
129
  requestType: "json",
130
130
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -176,7 +176,7 @@ class EorTrackerApi {
176
176
  const _response = yield core.fetcher({
177
177
  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)}/eor-tracker/latest-email`),
178
178
  method: "GET",
179
- 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-prerelease3205-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3205-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
179
+ 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-prerelease3205-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3205-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
180
180
  contentType: "application/json",
181
181
  requestType: "json",
182
182
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -100,7 +100,7 @@ class IncorporationApi {
100
100
  const _response = yield core.fetcher({
101
101
  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)), "incorporation/signup"),
102
102
  method: "POST",
103
- 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-prerelease3205-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3205-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
103
+ 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-prerelease3205-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3205-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
104
104
  contentType: "application/json",
105
105
  requestType: "json",
106
106
  body: serializers.api.thera.incorporation.IncorporationSignupRequest.jsonOrThrow(request, {
@@ -164,7 +164,7 @@ class IncorporationApi {
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)), "incorporation/create-checkout-session"),
166
166
  method: "POST",
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-prerelease3205-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3205-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-prerelease3205-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3205-dev", "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
  body: serializers.api.thera.incorporation.CheckoutSessionRequest.jsonOrThrow(request, {
@@ -219,7 +219,7 @@ class IncorporationApi {
219
219
  const _response = yield core.fetcher({
220
220
  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)), `incorporation/check-payment-status/${encodeURIComponent(sessionId)}`),
221
221
  method: "GET",
222
- 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-prerelease3205-dev-3", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3205-dev-3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
222
+ 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-prerelease3205-dev", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3205-dev", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
223
223
  contentType: "application/json",
224
224
  requestType: "json",
225
225
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,