@thera-hr/api-sdk 0.0.1-prerelease3467-dev-4 → 0.0.1-prerelease3476-dev-2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (98) 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.d.ts +7 -0
  20. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +14 -7
  21. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/requests/CreateInvoiceCsvRequest.d.ts +8 -0
  22. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
  23. package/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +3 -3
  24. package/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +2 -2
  25. package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +5 -5
  26. package/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.js +3 -3
  27. package/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/client/Client.js +3 -3
  28. package/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +8 -8
  29. package/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/Client.js +11 -11
  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.js +5 -5
  32. package/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/Client.js +7 -7
  33. package/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +15 -15
  34. package/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.js +9 -9
  35. package/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +11 -11
  36. package/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
  37. package/dist/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +1 -1
  38. package/dist/api/resources/api/resources/dev/resources/dev/client/Client.js +1 -1
  39. package/dist/api/resources/api/resources/external/resources/externalApi/client/Client.js +1 -1
  40. package/dist/api/resources/api/resources/services/resources/file/client/Client.js +5 -5
  41. package/dist/api/resources/api/resources/thera/resources/accounting/resources/accountingApi/client/Client.js +4 -4
  42. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +37 -37
  43. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.js +24 -24
  44. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +18 -18
  45. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.d.ts +45 -0
  46. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +106 -5
  47. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/requests/CreatePayrollCsvRequest.d.ts +48 -0
  48. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/requests/CreatePayrollCsvRequest.js +5 -0
  49. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/requests/index.d.ts +1 -0
  50. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/CreatePayrollCsvRecord.d.ts +27 -0
  51. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/CreatePayrollCsvRecord.js +5 -0
  52. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/index.d.ts +1 -0
  53. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/index.js +1 -0
  54. package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +3 -3
  55. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.d.ts +7 -0
  56. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +14 -7
  57. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/requests/CreateInvoiceCsvRequest.d.ts +8 -0
  58. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
  59. package/dist/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +3 -3
  60. package/dist/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +2 -2
  61. package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +5 -5
  62. package/dist/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.js +3 -3
  63. package/dist/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/client/Client.js +3 -3
  64. package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +8 -8
  65. package/dist/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/Client.js +11 -11
  66. package/dist/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.js +1 -1
  67. package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +5 -5
  68. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/Client.js +7 -7
  69. package/dist/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +15 -15
  70. package/dist/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.js +9 -9
  71. package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +11 -11
  72. package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
  73. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/requests/CreatePayrollCsvRequest.d.ts +15 -0
  74. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/requests/CreatePayrollCsvRequest.js +46 -0
  75. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/requests/index.d.ts +1 -0
  76. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/requests/index.js +3 -1
  77. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/CreatePayrollCsvRecord.d.ts +33 -0
  78. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/CreatePayrollCsvRecord.js +64 -0
  79. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/index.d.ts +1 -0
  80. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/index.js +1 -0
  81. package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/requests/CreateInvoiceCsvRequest.d.ts +2 -0
  82. package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/requests/CreateInvoiceCsvRequest.js +2 -0
  83. package/dist/version.d.ts +1 -1
  84. package/dist/version.js +1 -1
  85. package/package.json +1 -1
  86. package/reference.md +109 -0
  87. package/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/requests/CreatePayrollCsvRequest.d.ts +15 -0
  88. package/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/requests/CreatePayrollCsvRequest.js +46 -0
  89. package/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/requests/index.d.ts +1 -0
  90. package/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/requests/index.js +3 -1
  91. package/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/CreatePayrollCsvRecord.d.ts +33 -0
  92. package/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/CreatePayrollCsvRecord.js +64 -0
  93. package/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/index.d.ts +1 -0
  94. package/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/index.js +1 -0
  95. package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/requests/CreateInvoiceCsvRequest.d.ts +2 -0
  96. package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/requests/CreateInvoiceCsvRequest.js +2 -0
  97. package/version.d.ts +1 -1
  98. package/version.js +1 -1
@@ -81,7 +81,7 @@ class TimetrackingApi {
81
81
  const _response = yield core.fetcher({
82
82
  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)}/users/${encodeURIComponent(userId)}/time-tracking/entries`),
83
83
  method: "POST",
84
- 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-prerelease3467-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3467-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
84
+ 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-prerelease3476-dev-2", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3476-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
85
85
  contentType: "application/json",
86
86
  requestType: "json",
87
87
  body: serializers.api.thera.timetracking.CreateTimeEntryRequest.jsonOrThrow(request, {
@@ -144,7 +144,7 @@ class TimetrackingApi {
144
144
  const _response = yield core.fetcher({
145
145
  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)}/users/${encodeURIComponent(userId)}/time-tracking/start`),
146
146
  method: "POST",
147
- 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-prerelease3467-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3467-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
147
+ 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-prerelease3476-dev-2", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3476-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
148
148
  contentType: "application/json",
149
149
  requestType: "json",
150
150
  body: serializers.api.thera.timetracking.StartTimeTrackingRequest.jsonOrThrow(request, {
@@ -205,7 +205,7 @@ class TimetrackingApi {
205
205
  const _response = yield core.fetcher({
206
206
  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)}/users/${encodeURIComponent(userId)}/time-tracking/stop`),
207
207
  method: "POST",
208
- 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-prerelease3467-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3467-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
208
+ 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-prerelease3476-dev-2", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3476-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
209
209
  contentType: "application/json",
210
210
  requestType: "json",
211
211
  body: serializers.api.thera.timetracking.StopTimeTrackingRequest.jsonOrThrow(request, {
@@ -269,7 +269,7 @@ class TimetrackingApi {
269
269
  const _response = yield core.fetcher({
270
270
  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)}/users/${encodeURIComponent(userId)}/time-tracking/${encodeURIComponent(entryId)}`),
271
271
  method: "PUT",
272
- 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-prerelease3467-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3467-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
272
+ 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-prerelease3476-dev-2", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3476-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
273
273
  contentType: "application/json",
274
274
  requestType: "json",
275
275
  body: serializers.api.thera.timetracking.UpdateTimeTrackingRequest.jsonOrThrow(request, {
@@ -326,7 +326,7 @@ class TimetrackingApi {
326
326
  const _response = yield core.fetcher({
327
327
  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)}/users/${encodeURIComponent(userId)}/time-tracking/${encodeURIComponent(entryId)}`),
328
328
  method: "DELETE",
329
- 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-prerelease3467-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3467-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
329
+ 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-prerelease3476-dev-2", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3476-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
330
330
  contentType: "application/json",
331
331
  requestType: "json",
332
332
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -385,7 +385,7 @@ class TimetrackingApi {
385
385
  const _response = yield core.fetcher({
386
386
  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)}/users/${encodeURIComponent(userId)}/time-tracking`),
387
387
  method: "GET",
388
- 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-prerelease3467-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3467-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
388
+ 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-prerelease3476-dev-2", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3476-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
389
389
  contentType: "application/json",
390
390
  queryParameters: _queryParams,
391
391
  requestType: "json",
@@ -439,7 +439,7 @@ class TimetrackingApi {
439
439
  const _response = yield core.fetcher({
440
440
  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/${encodeURIComponent(invoiceId)}/time-tracking`),
441
441
  method: "GET",
442
- 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-prerelease3467-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3467-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
442
+ 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-prerelease3476-dev-2", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3476-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
443
443
  contentType: "application/json",
444
444
  requestType: "json",
445
445
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -496,7 +496,7 @@ class TimetrackingApi {
496
496
  const _response = yield core.fetcher({
497
497
  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)}/users/${encodeURIComponent(userId)}/time-tracking/bulk-update`),
498
498
  method: "POST",
499
- 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-prerelease3467-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3467-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
499
+ 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-prerelease3476-dev-2", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3476-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
500
500
  contentType: "application/json",
501
501
  requestType: "json",
502
502
  body: serializers.api.thera.timetracking.BulkTimeEntryUpdateRequest.jsonOrThrow(request, {
@@ -560,7 +560,7 @@ class TimetrackingApi {
560
560
  const _response = yield core.fetcher({
561
561
  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)}/users/${encodeURIComponent(userId)}/time-tracking/history`),
562
562
  method: "GET",
563
- 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-prerelease3467-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3467-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
563
+ 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-prerelease3476-dev-2", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3476-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
564
564
  contentType: "application/json",
565
565
  queryParameters: _queryParams,
566
566
  requestType: "json",
@@ -113,7 +113,7 @@ class TpApi {
113
113
  const _response = yield core.fetcher({
114
114
  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`),
115
115
  method: "POST",
116
- 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-prerelease3467-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3467-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
116
+ 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-prerelease3476-dev-2", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3476-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
117
117
  contentType: "application/json",
118
118
  requestType: "json",
119
119
  body: serializers.api.thera.tp.AddCompanyBankingDetailsRequest.jsonOrThrow(request, {
@@ -167,7 +167,7 @@ class TpApi {
167
167
  const _response = yield core.fetcher({
168
168
  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"),
169
169
  method: "GET",
170
- 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-prerelease3467-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3467-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
170
+ 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-prerelease3476-dev-2", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3476-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
171
171
  contentType: "application/json",
172
172
  requestType: "json",
173
173
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -229,7 +229,7 @@ class TpApi {
229
229
  const _response = yield core.fetcher({
230
230
  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`),
231
231
  method: "POST",
232
- 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-prerelease3467-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3467-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
232
+ 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-prerelease3476-dev-2", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3476-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
233
233
  contentType: "application/json",
234
234
  requestType: "json",
235
235
  body: serializers.api.thera.tp.ProcessFundsTransfer.jsonOrThrow(request, {
@@ -281,7 +281,7 @@ class TpApi {
281
281
  const _response = yield core.fetcher({
282
282
  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`),
283
283
  method: "POST",
284
- 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-prerelease3467-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3467-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
284
+ 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-prerelease3476-dev-2", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3476-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
285
285
  contentType: "application/json",
286
286
  requestType: "json",
287
287
  body: serializers.api.thera.tp.CreateCounterPartyForBankingRequest.jsonOrThrow(request, {
@@ -330,7 +330,7 @@ class TpApi {
330
330
  const _response = yield core.fetcher({
331
331
  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`),
332
332
  method: "GET",
333
- 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-prerelease3467-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3467-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
333
+ 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-prerelease3476-dev-2", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3476-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
334
334
  contentType: "application/json",
335
335
  requestType: "json",
336
336
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -385,7 +385,7 @@ class TpApi {
385
385
  const _response = yield core.fetcher({
386
386
  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)}`),
387
387
  method: "GET",
388
- 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-prerelease3467-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3467-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
388
+ 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-prerelease3476-dev-2", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3476-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
389
389
  contentType: "application/json",
390
390
  queryParameters: _queryParams,
391
391
  requestType: "json",
@@ -436,7 +436,7 @@ class TpApi {
436
436
  const _response = yield core.fetcher({
437
437
  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`),
438
438
  method: "POST",
439
- 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-prerelease3467-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3467-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
439
+ 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-prerelease3476-dev-2", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3476-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
440
440
  contentType: "application/json",
441
441
  requestType: "json",
442
442
  body: serializers.api.thera.tp.TransferFundsToOmnibusAccount.jsonOrThrow(request, {
@@ -486,7 +486,7 @@ class TpApi {
486
486
  const _response = yield core.fetcher({
487
487
  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)}`),
488
488
  method: "GET",
489
- 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-prerelease3467-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3467-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
489
+ 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-prerelease3476-dev-2", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3476-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
490
490
  contentType: "application/json",
491
491
  requestType: "json",
492
492
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -539,7 +539,7 @@ class TpApi {
539
539
  const _response = yield core.fetcher({
540
540
  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)}`),
541
541
  method: "GET",
542
- 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-prerelease3467-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3467-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
542
+ 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-prerelease3476-dev-2", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3476-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
543
543
  contentType: "application/json",
544
544
  requestType: "json",
545
545
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -603,7 +603,7 @@ class TpApi {
603
603
  const _response = yield core.fetcher({
604
604
  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"),
605
605
  method: "POST",
606
- 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-prerelease3467-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3467-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
606
+ 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-prerelease3476-dev-2", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3476-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
607
607
  contentType: "application/json",
608
608
  queryParameters: _queryParams,
609
609
  requestType: "json",
@@ -681,7 +681,7 @@ class TpApi {
681
681
  const _response = yield core.fetcher({
682
682
  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)}/withdraw-funds`),
683
683
  method: "POST",
684
- 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-prerelease3467-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3467-dev-4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
684
+ 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-prerelease3476-dev-2", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3476-dev-2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
685
685
  contentType: "application/json",
686
686
  requestType: "json",
687
687
  body: serializers.api.thera.tp.WithdrawalTheraCash.jsonOrThrow(request, {
@@ -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-prerelease3467-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3467-dev-4", "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-prerelease3476-dev-2", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3476-dev-2", "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-prerelease3467-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3467-dev-4", "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-prerelease3476-dev-2", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3476-dev-2", "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-prerelease3467-dev-4", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3467-dev-4", "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-prerelease3476-dev-2", "User-Agent": "@thera-hr/api-sdk/0.0.1-prerelease3476-dev-2", "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,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../../../../../../../index";
5
+ import * as TheraApi from "../../../../../../../../../../../api/index";
6
+ import * as core from "../../../../../../../../../../../core";
7
+ import { OneSchemaCsvColumn } from "../../../../../../../oneschema/resources/model/types/OneSchemaCsvColumn";
8
+ import { CreatePayrollCsvRecord } from "../../types/CreatePayrollCsvRecord";
9
+ export declare const CreatePayrollCsvRequest: core.serialization.Schema<serializers.api.thera.company.CreatePayrollCsvRequest.Raw, Omit<TheraApi.api.thera.company.CreatePayrollCsvRequest, "preview">>;
10
+ export declare namespace CreatePayrollCsvRequest {
11
+ interface Raw {
12
+ columns: OneSchemaCsvColumn.Raw[];
13
+ records: CreatePayrollCsvRecord.Raw[];
14
+ }
15
+ }
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.CreatePayrollCsvRequest = void 0;
40
+ const core = __importStar(require("../../../../../../../../../../../core"));
41
+ const OneSchemaCsvColumn_1 = require("../../../../../../../oneschema/resources/model/types/OneSchemaCsvColumn");
42
+ const CreatePayrollCsvRecord_1 = require("../../types/CreatePayrollCsvRecord");
43
+ exports.CreatePayrollCsvRequest = core.serialization.object({
44
+ columns: core.serialization.list(OneSchemaCsvColumn_1.OneSchemaCsvColumn),
45
+ records: core.serialization.list(CreatePayrollCsvRecord_1.CreatePayrollCsvRecord),
46
+ });
@@ -1 +1,2 @@
1
1
  export { ToggleW2PayrollOnboardingFlowCompleteRequest } from "./ToggleW2PayrollOnboardingFlowCompleteRequest";
2
+ export { CreatePayrollCsvRequest } from "./CreatePayrollCsvRequest";
@@ -1,5 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ToggleW2PayrollOnboardingFlowCompleteRequest = void 0;
3
+ exports.CreatePayrollCsvRequest = exports.ToggleW2PayrollOnboardingFlowCompleteRequest = void 0;
4
4
  var ToggleW2PayrollOnboardingFlowCompleteRequest_1 = require("./ToggleW2PayrollOnboardingFlowCompleteRequest");
5
5
  Object.defineProperty(exports, "ToggleW2PayrollOnboardingFlowCompleteRequest", { enumerable: true, get: function () { return ToggleW2PayrollOnboardingFlowCompleteRequest_1.ToggleW2PayrollOnboardingFlowCompleteRequest; } });
6
+ var CreatePayrollCsvRequest_1 = require("./CreatePayrollCsvRequest");
7
+ Object.defineProperty(exports, "CreatePayrollCsvRequest", { enumerable: true, get: function () { return CreatePayrollCsvRequest_1.CreatePayrollCsvRequest; } });
@@ -0,0 +1,33 @@
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 CreatePayrollCsvRecord: core.serialization.ObjectSchema<serializers.api.thera.company.CreatePayrollCsvRecord.Raw, TheraApi.api.thera.company.CreatePayrollCsvRecord>;
8
+ export declare namespace CreatePayrollCsvRecord {
9
+ interface Raw {
10
+ email?: string | null;
11
+ contract_id?: string | null;
12
+ user_id?: string | null;
13
+ regular_hours?: number | null;
14
+ overtime_hours?: number | null;
15
+ double_overtime_hours?: number | null;
16
+ paid_holiday_hours?: number | null;
17
+ pto_hours?: number | null;
18
+ sick_hours?: number | null;
19
+ rest_and_recovery_hours?: number | null;
20
+ non_productive_hours?: number | null;
21
+ bonus?: number | null;
22
+ commission?: number | null;
23
+ severance?: number | null;
24
+ cash_tips?: number | null;
25
+ paycheck_tips?: number | null;
26
+ group_term_life?: number | null;
27
+ other_imputed?: number | null;
28
+ non_hourly_regular?: number | null;
29
+ "2_percent_shareholder_benefits"?: number | null;
30
+ "2_percent_shareholder_hsa"?: number | null;
31
+ $custom?: Record<string, string> | null;
32
+ }
33
+ }
@@ -0,0 +1,64 @@
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.CreatePayrollCsvRecord = void 0;
40
+ const core = __importStar(require("../../../../../../../../../../core"));
41
+ exports.CreatePayrollCsvRecord = core.serialization.object({
42
+ email: core.serialization.string().optional(),
43
+ contractId: core.serialization.property("contract_id", core.serialization.string().optional()),
44
+ userId: core.serialization.property("user_id", core.serialization.string().optional()),
45
+ regularHours: core.serialization.property("regular_hours", core.serialization.number().optional()),
46
+ overtimeHours: core.serialization.property("overtime_hours", core.serialization.number().optional()),
47
+ doubleOvertimeHours: core.serialization.property("double_overtime_hours", core.serialization.number().optional()),
48
+ paidHolidayHours: core.serialization.property("paid_holiday_hours", core.serialization.number().optional()),
49
+ ptoHours: core.serialization.property("pto_hours", core.serialization.number().optional()),
50
+ sickHours: core.serialization.property("sick_hours", core.serialization.number().optional()),
51
+ restAndRecoveryHours: core.serialization.property("rest_and_recovery_hours", core.serialization.number().optional()),
52
+ nonProductiveHours: core.serialization.property("non_productive_hours", core.serialization.number().optional()),
53
+ bonus: core.serialization.number().optional(),
54
+ commission: core.serialization.number().optional(),
55
+ severance: core.serialization.number().optional(),
56
+ cashTips: core.serialization.property("cash_tips", core.serialization.number().optional()),
57
+ paycheckTips: core.serialization.property("paycheck_tips", core.serialization.number().optional()),
58
+ groupTermLife: core.serialization.property("group_term_life", core.serialization.number().optional()),
59
+ otherImputed: core.serialization.property("other_imputed", core.serialization.number().optional()),
60
+ nonHourlyRegular: core.serialization.property("non_hourly_regular", core.serialization.number().optional()),
61
+ "2PercentShareholderBenefits": core.serialization.property("2_percent_shareholder_benefits", core.serialization.number().optional()),
62
+ "2PercentShareholderHsa": core.serialization.property("2_percent_shareholder_hsa", core.serialization.number().optional()),
63
+ custom: core.serialization.property("$custom", core.serialization.record(core.serialization.string(), core.serialization.string()).optional()),
64
+ });
@@ -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);
@@ -4,10 +4,12 @@
4
4
  import * as serializers from "../../../../../../../../../../index";
5
5
  import * as TheraApi from "../../../../../../../../../../../api/index";
6
6
  import * as core from "../../../../../../../../../../../core";
7
+ import { OneSchemaCsvColumn } from "../../../../../../../oneschema/resources/model/types/OneSchemaCsvColumn";
7
8
  import { CreateInvoiceCsvRecord } from "../../types/CreateInvoiceCsvRecord";
8
9
  export declare const CreateInvoiceCsvRequest: core.serialization.Schema<serializers.api.thera.disbursement.CreateInvoiceCsvRequest.Raw, Omit<TheraApi.api.thera.disbursement.CreateInvoiceCsvRequest, "preview">>;
9
10
  export declare namespace CreateInvoiceCsvRequest {
10
11
  interface Raw {
12
+ columns: OneSchemaCsvColumn.Raw[];
11
13
  records: CreateInvoiceCsvRecord.Raw[];
12
14
  }
13
15
  }
@@ -38,7 +38,9 @@ var __importStar = (this && this.__importStar) || (function () {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.CreateInvoiceCsvRequest = void 0;
40
40
  const core = __importStar(require("../../../../../../../../../../../core"));
41
+ const OneSchemaCsvColumn_1 = require("../../../../../../../oneschema/resources/model/types/OneSchemaCsvColumn");
41
42
  const CreateInvoiceCsvRecord_1 = require("../../types/CreateInvoiceCsvRecord");
42
43
  exports.CreateInvoiceCsvRequest = core.serialization.object({
44
+ columns: core.serialization.list(OneSchemaCsvColumn_1.OneSchemaCsvColumn),
43
45
  records: core.serialization.list(CreateInvoiceCsvRecord_1.CreateInvoiceCsvRecord),
44
46
  });
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.0.1-prerelease3467-dev-4";
1
+ export declare const SDK_VERSION = "0.0.1-prerelease3476-dev-2";
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-prerelease3467-dev-4";
4
+ exports.SDK_VERSION = "0.0.1-prerelease3476-dev-2";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thera-hr/api-sdk",
3
- "version": "0.0.1-prerelease3467-dev-4",
3
+ "version": "0.0.1-prerelease3476-dev-2",
4
4
  "private": false,
5
5
  "repository": "https://github.com/CarbonNYC/thera-typescript-sdk",
6
6
  "main": "./index.js",
package/reference.md CHANGED
@@ -6642,6 +6642,106 @@ await client.api.thera.company.companyW2PayrollApi.deletePayrollItem("string", "
6642
6642
  </dl>
6643
6643
  </details>
6644
6644
 
6645
+ <details><summary><code>client.api.thera.company.companyW2PayrollApi.<a href="/src/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.ts">uploadCsvPayroll</a>(companyId, checkPayScheduleId, { ...params }) -> unknown</code></summary>
6646
+ <dl>
6647
+ <dd>
6648
+
6649
+ #### 🔌 Usage
6650
+
6651
+ <dl>
6652
+ <dd>
6653
+
6654
+ <dl>
6655
+ <dd>
6656
+
6657
+ ```typescript
6658
+ await client.api.thera.company.companyW2PayrollApi.uploadCsvPayroll("string", "string", {
6659
+ preview: true,
6660
+ columns: [{
6661
+ sheetColumnName: "string",
6662
+ templateColumnName: "string",
6663
+ templateColumnKey: "string",
6664
+ isCustom: true,
6665
+ customColumnName: "string"
6666
+ }],
6667
+ records: [{
6668
+ email: "string",
6669
+ contractId: "string",
6670
+ userId: "string",
6671
+ regularHours: 1.1,
6672
+ overtimeHours: 1.1,
6673
+ doubleOvertimeHours: 1.1,
6674
+ paidHolidayHours: 1.1,
6675
+ ptoHours: 1.1,
6676
+ sickHours: 1.1,
6677
+ restAndRecoveryHours: 1.1,
6678
+ nonProductiveHours: 1.1,
6679
+ bonus: 1.1,
6680
+ commission: 1.1,
6681
+ severance: 1.1,
6682
+ cashTips: 1.1,
6683
+ paycheckTips: 1.1,
6684
+ groupTermLife: 1.1,
6685
+ otherImputed: 1.1,
6686
+ nonHourlyRegular: 1.1,
6687
+ 2PercentShareholderBenefits: 1.1,
6688
+ 2PercentShareholderHsa: 1.1,
6689
+ custom: {
6690
+ "string": "string"
6691
+ }
6692
+ }]
6693
+ });
6694
+
6695
+ ```
6696
+
6697
+ </dd>
6698
+ </dl>
6699
+ </dd>
6700
+ </dl>
6701
+
6702
+ #### ⚙️ Parameters
6703
+
6704
+ <dl>
6705
+ <dd>
6706
+
6707
+ <dl>
6708
+ <dd>
6709
+
6710
+ **companyId:** `string`
6711
+
6712
+ </dd>
6713
+ </dl>
6714
+
6715
+ <dl>
6716
+ <dd>
6717
+
6718
+ **checkPayScheduleId:** `string`
6719
+
6720
+ </dd>
6721
+ </dl>
6722
+
6723
+ <dl>
6724
+ <dd>
6725
+
6726
+ **request:** `TheraApi.api.thera.company.CreatePayrollCsvRequest`
6727
+
6728
+ </dd>
6729
+ </dl>
6730
+
6731
+ <dl>
6732
+ <dd>
6733
+
6734
+ **requestOptions:** `CompanyW2PayrollApi.RequestOptions`
6735
+
6736
+ </dd>
6737
+ </dl>
6738
+ </dd>
6739
+ </dl>
6740
+
6741
+ </dd>
6742
+ </dl>
6743
+ </details>
6744
+
6645
6745
  ## Contractor API
6646
6746
 
6647
6747
  <details><summary><code>client.api.thera.contractor.contractorApi.<a href="/src/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.ts">getUsContractorsTaxInfo</a>(companyId, { ...params }) -> TheraApi.GetUsContractorsTaxInfoResponse</code></summary>
@@ -6881,6 +6981,15 @@ await client.api.thera.contractor.contractorApi.onboardContractorsCsv("string",
6881
6981
  ```typescript
6882
6982
  await client.api.thera.disbursement.disbursementApi.uploadCsvInvoice("string", {
6883
6983
  preview: true,
6984
+ columns: [
6985
+ {
6986
+ sheetColumnName: "string",
6987
+ templateColumnName: "string",
6988
+ templateColumnKey: "string",
6989
+ isCustom: true,
6990
+ customColumnName: "string",
6991
+ },
6992
+ ],
6884
6993
  records: [
6885
6994
  {
6886
6995
  email: "string",