@thera-hr/api-sdk 0.0.1503 → 0.0.1520

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 (269) hide show
  1. package/Client.d.ts +3 -3
  2. package/Client.js +4 -5
  3. package/api/resources/api/client/Client.d.ts +3 -3
  4. package/api/resources/api/client/Client.js +8 -9
  5. package/api/resources/api/resources/services/client/Client.d.ts +3 -3
  6. package/api/resources/api/resources/services/client/Client.js +4 -5
  7. package/api/resources/api/resources/services/resources/file/client/Client.d.ts +3 -3
  8. package/api/resources/api/resources/services/resources/file/client/Client.js +167 -149
  9. package/api/resources/api/resources/test/client/Client.d.ts +3 -3
  10. package/api/resources/api/resources/test/client/Client.js +4 -5
  11. package/api/resources/api/resources/test/resources/invoices/client/Client.d.ts +3 -3
  12. package/api/resources/api/resources/test/resources/invoices/client/Client.js +60 -48
  13. package/api/resources/api/resources/thera/client/Client.d.ts +3 -3
  14. package/api/resources/api/resources/thera/client/Client.js +10 -11
  15. package/api/resources/api/resources/thera/resources/bank/client/Client.d.ts +3 -3
  16. package/api/resources/api/resources/thera/resources/bank/client/Client.js +4 -5
  17. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.d.ts +3 -3
  18. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +168 -150
  19. package/api/resources/api/resources/thera/resources/company/client/Client.d.ts +3 -3
  20. package/api/resources/api/resources/thera/resources/company/client/Client.js +6 -7
  21. package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.d.ts +4 -4
  22. package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +66 -49
  23. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/InviteContractorResponse.d.ts +8 -0
  24. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/index.d.ts +1 -0
  25. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/index.js +1 -0
  26. package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.d.ts +3 -3
  27. package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +55 -43
  28. package/api/resources/api/resources/thera/resources/disbursement/client/Client.d.ts +3 -3
  29. package/api/resources/api/resources/thera/resources/disbursement/client/Client.js +4 -5
  30. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.d.ts +3 -3
  31. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +57 -45
  32. package/api/resources/api/resources/thera/resources/payroll/client/Client.d.ts +3 -3
  33. package/api/resources/api/resources/thera/resources/payroll/client/Client.js +4 -5
  34. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.d.ts +3 -3
  35. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +57 -45
  36. package/api/resources/db/resources/user/types/ComplianceDocumentType.d.ts +3 -1
  37. package/api/resources/db/resources/user/types/ComplianceDocumentType.js +2 -0
  38. package/api/resources/db/resources/user/types/EmployeeInformation.d.ts +3 -2
  39. package/api/resources/db/resources/user/types/{FernUser.d.ts → User.d.ts} +1 -1
  40. package/api/resources/db/resources/user/types/index.d.ts +1 -2
  41. package/api/resources/db/resources/user/types/index.js +1 -2
  42. package/core/fetcher/Fetcher.d.ts +5 -4
  43. package/core/fetcher/Fetcher.js +82 -66
  44. package/core/fetcher/Supplier.js +11 -2
  45. package/core/fetcher/index.d.ts +3 -2
  46. package/core/index.d.ts +1 -1
  47. package/core/index.js +1 -1
  48. package/core/schemas/builders/date/date.js +1 -4
  49. package/core/schemas/builders/lazy/index.d.ts +2 -1
  50. package/core/schemas/builders/lazy/lazy.js +21 -13
  51. package/core/schemas/builders/lazy/lazyObject.js +11 -11
  52. package/core/schemas/builders/list/list.js +51 -41
  53. package/core/schemas/builders/object/index.d.ts +3 -2
  54. package/core/schemas/builders/object/object.js +148 -140
  55. package/core/schemas/builders/object-like/getObjectLikeUtils.js +17 -17
  56. package/core/schemas/builders/object-like/index.d.ts +1 -1
  57. package/core/schemas/builders/record/index.d.ts +1 -1
  58. package/core/schemas/builders/record/record.js +80 -75
  59. package/core/schemas/builders/schema-utils/JsonError.js +0 -1
  60. package/core/schemas/builders/schema-utils/ParseError.js +0 -1
  61. package/core/schemas/builders/schema-utils/getSchemaUtils.js +23 -20
  62. package/core/schemas/builders/schema-utils/index.d.ts +2 -1
  63. package/core/schemas/builders/set/set.js +18 -11
  64. package/core/schemas/builders/undiscriminated-union/index.d.ts +1 -1
  65. package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +34 -26
  66. package/core/schemas/builders/union/index.d.ts +3 -2
  67. package/core/schemas/builders/union/union.js +93 -75
  68. package/core/schemas/index.d.ts +1 -1
  69. package/core/schemas/utils/createIdentitySchemaCreator.js +1 -4
  70. package/core/schemas/utils/maybeSkipValidation.js +14 -9
  71. package/dist/Client.d.ts +3 -3
  72. package/dist/Client.js +4 -5
  73. package/dist/api/resources/api/client/Client.d.ts +3 -3
  74. package/dist/api/resources/api/client/Client.js +8 -9
  75. package/dist/api/resources/api/resources/services/client/Client.d.ts +3 -3
  76. package/dist/api/resources/api/resources/services/client/Client.js +4 -5
  77. package/dist/api/resources/api/resources/services/resources/file/client/Client.d.ts +3 -3
  78. package/dist/api/resources/api/resources/services/resources/file/client/Client.js +167 -149
  79. package/dist/api/resources/api/resources/test/client/Client.d.ts +3 -3
  80. package/dist/api/resources/api/resources/test/client/Client.js +4 -5
  81. package/dist/api/resources/api/resources/test/resources/invoices/client/Client.d.ts +3 -3
  82. package/dist/api/resources/api/resources/test/resources/invoices/client/Client.js +60 -48
  83. package/dist/api/resources/api/resources/thera/client/Client.d.ts +3 -3
  84. package/dist/api/resources/api/resources/thera/client/Client.js +10 -11
  85. package/dist/api/resources/api/resources/thera/resources/bank/client/Client.d.ts +3 -3
  86. package/dist/api/resources/api/resources/thera/resources/bank/client/Client.js +4 -5
  87. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.d.ts +3 -3
  88. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +168 -150
  89. package/dist/api/resources/api/resources/thera/resources/company/client/Client.d.ts +3 -3
  90. package/dist/api/resources/api/resources/thera/resources/company/client/Client.js +6 -7
  91. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.d.ts +4 -4
  92. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +66 -49
  93. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/InviteContractorResponse.d.ts +8 -0
  94. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/index.d.ts +1 -0
  95. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/index.js +1 -0
  96. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.d.ts +3 -3
  97. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +55 -43
  98. package/dist/api/resources/api/resources/thera/resources/disbursement/client/Client.d.ts +3 -3
  99. package/dist/api/resources/api/resources/thera/resources/disbursement/client/Client.js +4 -5
  100. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.d.ts +3 -3
  101. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +57 -45
  102. package/dist/api/resources/api/resources/thera/resources/payroll/client/Client.d.ts +3 -3
  103. package/dist/api/resources/api/resources/thera/resources/payroll/client/Client.js +4 -5
  104. package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.d.ts +3 -3
  105. package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +57 -45
  106. package/dist/api/resources/db/resources/user/types/ComplianceDocumentType.d.ts +3 -1
  107. package/dist/api/resources/db/resources/user/types/ComplianceDocumentType.js +2 -0
  108. package/dist/api/resources/db/resources/user/types/EmployeeInformation.d.ts +3 -2
  109. package/dist/api/resources/db/resources/user/types/{FernUser.d.ts → User.d.ts} +1 -1
  110. package/dist/api/resources/db/resources/user/types/index.d.ts +1 -2
  111. package/dist/api/resources/db/resources/user/types/index.js +1 -2
  112. package/dist/core/fetcher/Fetcher.d.ts +5 -4
  113. package/dist/core/fetcher/Fetcher.js +82 -66
  114. package/dist/core/fetcher/Supplier.js +11 -2
  115. package/dist/core/fetcher/index.d.ts +3 -2
  116. package/dist/core/index.d.ts +1 -1
  117. package/dist/core/index.js +1 -1
  118. package/dist/core/schemas/builders/date/date.js +1 -4
  119. package/dist/core/schemas/builders/lazy/index.d.ts +2 -1
  120. package/dist/core/schemas/builders/lazy/lazy.js +21 -13
  121. package/dist/core/schemas/builders/lazy/lazyObject.js +11 -11
  122. package/dist/core/schemas/builders/list/list.js +51 -41
  123. package/dist/core/schemas/builders/object/index.d.ts +3 -2
  124. package/dist/core/schemas/builders/object/object.js +148 -140
  125. package/dist/core/schemas/builders/object-like/getObjectLikeUtils.js +17 -17
  126. package/dist/core/schemas/builders/object-like/index.d.ts +1 -1
  127. package/dist/core/schemas/builders/record/index.d.ts +1 -1
  128. package/dist/core/schemas/builders/record/record.js +80 -75
  129. package/dist/core/schemas/builders/schema-utils/JsonError.js +0 -1
  130. package/dist/core/schemas/builders/schema-utils/ParseError.js +0 -1
  131. package/dist/core/schemas/builders/schema-utils/getSchemaUtils.js +23 -20
  132. package/dist/core/schemas/builders/schema-utils/index.d.ts +2 -1
  133. package/dist/core/schemas/builders/set/set.js +18 -11
  134. package/dist/core/schemas/builders/undiscriminated-union/index.d.ts +1 -1
  135. package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +34 -26
  136. package/dist/core/schemas/builders/union/index.d.ts +3 -2
  137. package/dist/core/schemas/builders/union/union.js +93 -75
  138. package/dist/core/schemas/index.d.ts +1 -1
  139. package/dist/core/schemas/utils/createIdentitySchemaCreator.js +1 -4
  140. package/dist/core/schemas/utils/maybeSkipValidation.js +14 -9
  141. package/dist/errors/TheraApiError.js +14 -3
  142. package/dist/serialization/resources/api/resources/request/resources/thera/resources/disbursement/types/CreateDisbursementDetail.js +11 -2
  143. package/dist/serialization/resources/api/resources/request/resources/thera/resources/disbursement/types/CreateDisbursementRequest.js +10 -1
  144. package/dist/serialization/resources/api/resources/request/resources/thera/resources/document/types/CreateDocumentDetail.js +10 -1
  145. package/dist/serialization/resources/api/resources/request/resources/thera/resources/document/types/CreateDocumentRequest.js +10 -1
  146. package/dist/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/deduction/types/AdditionalFields.js +10 -1
  147. package/dist/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/deduction/types/Deduction.js +13 -4
  148. package/dist/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/deduction/types/EmployeeContribution.js +10 -1
  149. package/dist/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/deduction/types/EmployerContribution.js +10 -1
  150. package/dist/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/employee/types/Disbursement.js +10 -1
  151. package/dist/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/employee/types/EmployeeCheck.js +14 -5
  152. package/dist/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/reportingPeriod/types/ReportingPeriod.js +10 -1
  153. package/dist/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/shift/types/Shift.js +12 -3
  154. package/dist/serialization/resources/api/resources/request/resources/zeal/resources/deduction/resources/create/types/CreateDeduction.js +10 -1
  155. package/dist/serialization/resources/api/resources/request/resources/zeal/resources/deduction/resources/create/types/CreateDeductionDetails.js +11 -2
  156. package/dist/serialization/resources/api/resources/request/resources/zeal/resources/employee/resources/employee/types/ZealEmployee.js +10 -1
  157. package/dist/serialization/resources/api/resources/test/resources/invoices/types/DemoFernInvoice.js +11 -2
  158. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateContractor.js +10 -1
  159. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateEmployment.js +15 -6
  160. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateMilestoneDetails.js +10 -1
  161. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/InviteContractorRequest.js +11 -2
  162. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/InviteContractorResponse.d.ts +13 -0
  163. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/InviteContractorResponse.js +43 -0
  164. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/index.d.ts +1 -0
  165. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/index.js +1 -0
  166. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/OnboardW2PayrollRequest.js +11 -2
  167. package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/types/InvoiceWebhookEvent.js +10 -1
  168. package/dist/serialization/resources/api/resources/zeal/resources/company/resources/create/types/ZealCreateCompanyResponse.js +10 -1
  169. package/dist/serialization/resources/db/resources/document/types/FernDocument.js +11 -2
  170. package/dist/serialization/resources/db/resources/document/types/FernRecipient.js +10 -1
  171. package/dist/serialization/resources/db/resources/employment/types/Earning.js +10 -1
  172. package/dist/serialization/resources/db/resources/employment/types/Employment.js +19 -10
  173. package/dist/serialization/resources/db/resources/employment/types/EmploymentDocuments.js +10 -1
  174. package/dist/serialization/resources/db/resources/employment/types/EmploymentW2PayrollDetails.js +10 -1
  175. package/dist/serialization/resources/db/resources/employment/types/EorDetails.js +10 -1
  176. package/dist/serialization/resources/db/resources/employment/types/Frequency.js +10 -1
  177. package/dist/serialization/resources/db/resources/employment/types/Milestone.js +10 -1
  178. package/dist/serialization/resources/db/resources/employment/types/MilestoneDetails.js +10 -1
  179. package/dist/serialization/resources/db/resources/employment/types/ModifyRecurrencesRequest.js +10 -1
  180. package/dist/serialization/resources/db/resources/employment/types/Recurrence.js +11 -2
  181. package/dist/serialization/resources/db/resources/employment/types/RecurrenceDetails.js +11 -2
  182. package/dist/serialization/resources/db/resources/employment/types/RecurrenceModifications.js +11 -2
  183. package/dist/serialization/resources/db/resources/payment/resources/invoice/types/FernInvoice.js +11 -2
  184. package/dist/serialization/resources/db/resources/user/types/ComplianceDocument.js +10 -1
  185. package/dist/serialization/resources/db/resources/user/types/ComplianceDocumentType.d.ts +1 -1
  186. package/dist/serialization/resources/db/resources/user/types/ComplianceDocumentType.js +10 -1
  187. package/dist/serialization/resources/db/resources/user/types/ComplianceInformation.js +10 -1
  188. package/dist/serialization/resources/db/resources/user/types/EmployeeInformation.d.ts +3 -2
  189. package/dist/serialization/resources/db/resources/user/types/EmployeeInformation.js +13 -3
  190. package/{serialization/resources/db/resources/user/types/FernUser.d.ts → dist/serialization/resources/db/resources/user/types/User.d.ts} +2 -2
  191. package/dist/serialization/resources/db/resources/user/types/{FernUser.js → User.js} +12 -3
  192. package/dist/serialization/resources/db/resources/user/types/index.d.ts +1 -2
  193. package/dist/serialization/resources/db/resources/user/types/index.js +1 -2
  194. package/dist/serialization/resources/model/resources/thera/resources/employment/types/BiWeeklyPayCycleEnd.js +10 -1
  195. package/dist/serialization/resources/model/resources/thera/resources/employment/types/MonthlyPayCycleEnd.js +11 -2
  196. package/dist/serialization/resources/model/resources/thera/resources/employment/types/PayCycle.js +10 -1
  197. package/dist/serialization/resources/model/resources/thera/resources/employment/types/PayCycleEnd.js +13 -4
  198. package/dist/serialization/resources/model/resources/thera/resources/employment/types/SemiMonthlyPayCycleEnd.js +10 -1
  199. package/dist/serialization/resources/model/resources/thera/resources/employment/types/WeeklyPayCycleEnd.js +10 -1
  200. package/errors/TheraApiError.js +14 -3
  201. package/package.json +3 -3
  202. package/serialization/resources/api/resources/request/resources/thera/resources/disbursement/types/CreateDisbursementDetail.js +11 -2
  203. package/serialization/resources/api/resources/request/resources/thera/resources/disbursement/types/CreateDisbursementRequest.js +10 -1
  204. package/serialization/resources/api/resources/request/resources/thera/resources/document/types/CreateDocumentDetail.js +10 -1
  205. package/serialization/resources/api/resources/request/resources/thera/resources/document/types/CreateDocumentRequest.js +10 -1
  206. package/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/deduction/types/AdditionalFields.js +10 -1
  207. package/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/deduction/types/Deduction.js +13 -4
  208. package/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/deduction/types/EmployeeContribution.js +10 -1
  209. package/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/deduction/types/EmployerContribution.js +10 -1
  210. package/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/employee/types/Disbursement.js +10 -1
  211. package/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/employee/types/EmployeeCheck.js +14 -5
  212. package/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/reportingPeriod/types/ReportingPeriod.js +10 -1
  213. package/serialization/resources/api/resources/request/resources/zeal/resources/check/resources/shift/types/Shift.js +12 -3
  214. package/serialization/resources/api/resources/request/resources/zeal/resources/deduction/resources/create/types/CreateDeduction.js +10 -1
  215. package/serialization/resources/api/resources/request/resources/zeal/resources/deduction/resources/create/types/CreateDeductionDetails.js +11 -2
  216. package/serialization/resources/api/resources/request/resources/zeal/resources/employee/resources/employee/types/ZealEmployee.js +10 -1
  217. package/serialization/resources/api/resources/test/resources/invoices/types/DemoFernInvoice.js +11 -2
  218. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateContractor.js +10 -1
  219. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateEmployment.js +15 -6
  220. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateMilestoneDetails.js +10 -1
  221. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/InviteContractorRequest.js +11 -2
  222. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/InviteContractorResponse.d.ts +13 -0
  223. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/InviteContractorResponse.js +43 -0
  224. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/index.d.ts +1 -0
  225. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/index.js +1 -0
  226. package/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/OnboardW2PayrollRequest.js +11 -2
  227. package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/types/InvoiceWebhookEvent.js +10 -1
  228. package/serialization/resources/api/resources/zeal/resources/company/resources/create/types/ZealCreateCompanyResponse.js +10 -1
  229. package/serialization/resources/db/resources/document/types/FernDocument.js +11 -2
  230. package/serialization/resources/db/resources/document/types/FernRecipient.js +10 -1
  231. package/serialization/resources/db/resources/employment/types/Earning.js +10 -1
  232. package/serialization/resources/db/resources/employment/types/Employment.js +19 -10
  233. package/serialization/resources/db/resources/employment/types/EmploymentDocuments.js +10 -1
  234. package/serialization/resources/db/resources/employment/types/EmploymentW2PayrollDetails.js +10 -1
  235. package/serialization/resources/db/resources/employment/types/EorDetails.js +10 -1
  236. package/serialization/resources/db/resources/employment/types/Frequency.js +10 -1
  237. package/serialization/resources/db/resources/employment/types/Milestone.js +10 -1
  238. package/serialization/resources/db/resources/employment/types/MilestoneDetails.js +10 -1
  239. package/serialization/resources/db/resources/employment/types/ModifyRecurrencesRequest.js +10 -1
  240. package/serialization/resources/db/resources/employment/types/Recurrence.js +11 -2
  241. package/serialization/resources/db/resources/employment/types/RecurrenceDetails.js +11 -2
  242. package/serialization/resources/db/resources/employment/types/RecurrenceModifications.js +11 -2
  243. package/serialization/resources/db/resources/payment/resources/invoice/types/FernInvoice.js +11 -2
  244. package/serialization/resources/db/resources/user/types/ComplianceDocument.js +10 -1
  245. package/serialization/resources/db/resources/user/types/ComplianceDocumentType.d.ts +1 -1
  246. package/serialization/resources/db/resources/user/types/ComplianceDocumentType.js +10 -1
  247. package/serialization/resources/db/resources/user/types/ComplianceInformation.js +10 -1
  248. package/serialization/resources/db/resources/user/types/EmployeeInformation.d.ts +3 -2
  249. package/serialization/resources/db/resources/user/types/EmployeeInformation.js +13 -3
  250. package/{dist/serialization/resources/db/resources/user/types/FernUser.d.ts → serialization/resources/db/resources/user/types/User.d.ts} +2 -2
  251. package/serialization/resources/db/resources/user/types/{FernUser.js → User.js} +12 -3
  252. package/serialization/resources/db/resources/user/types/index.d.ts +1 -2
  253. package/serialization/resources/db/resources/user/types/index.js +1 -2
  254. package/serialization/resources/model/resources/thera/resources/employment/types/BiWeeklyPayCycleEnd.js +10 -1
  255. package/serialization/resources/model/resources/thera/resources/employment/types/MonthlyPayCycleEnd.js +11 -2
  256. package/serialization/resources/model/resources/thera/resources/employment/types/PayCycle.js +10 -1
  257. package/serialization/resources/model/resources/thera/resources/employment/types/PayCycleEnd.js +13 -4
  258. package/serialization/resources/model/resources/thera/resources/employment/types/SemiMonthlyPayCycleEnd.js +10 -1
  259. package/serialization/resources/model/resources/thera/resources/employment/types/WeeklyPayCycleEnd.js +10 -1
  260. package/api/resources/db/resources/user/types/EmployeeInformationAddress.d.ts +0 -11
  261. package/dist/api/resources/db/resources/user/types/EmployeeInformationAddress.d.ts +0 -11
  262. package/dist/serialization/resources/db/resources/user/types/EmployeeInformationAddress.d.ts +0 -17
  263. package/dist/serialization/resources/db/resources/user/types/EmployeeInformationAddress.js +0 -38
  264. package/serialization/resources/db/resources/user/types/EmployeeInformationAddress.d.ts +0 -17
  265. package/serialization/resources/db/resources/user/types/EmployeeInformationAddress.js +0 -38
  266. /package/api/resources/{db/resources/user/types/EmployeeInformationAddress.js → api/resources/thera/resources/company/resources/companyApi/types/InviteContractorResponse.js} +0 -0
  267. /package/api/resources/db/resources/user/types/{FernUser.js → User.js} +0 -0
  268. /package/dist/api/resources/{db/resources/user/types/EmployeeInformationAddress.js → api/resources/thera/resources/company/resources/companyApi/types/InviteContractorResponse.js} +0 -0
  269. /package/dist/api/resources/db/resources/user/types/{FernUser.js → User.js} +0 -0
package/Client.d.ts CHANGED
@@ -5,13 +5,13 @@ import * as core from "./core";
5
5
  import { Api } from "./api/resources/api/client/Client";
6
6
  export declare namespace TheraApiClient {
7
7
  interface Options {
8
- environment: string;
8
+ environment: core.Supplier<string>;
9
9
  token?: core.Supplier<core.BearerToken | undefined>;
10
10
  }
11
11
  }
12
12
  export declare class TheraApiClient {
13
- protected readonly options: TheraApiClient.Options;
14
- constructor(options: TheraApiClient.Options);
13
+ protected readonly _options: TheraApiClient.Options;
14
+ constructor(_options: TheraApiClient.Options);
15
15
  protected _api: Api | undefined;
16
16
  get api(): Api;
17
17
  }
package/Client.js CHANGED
@@ -6,13 +6,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.TheraApiClient = void 0;
7
7
  const Client_1 = require("./api/resources/api/client/Client");
8
8
  class TheraApiClient {
9
- options;
10
- constructor(options) {
11
- this.options = options;
9
+ constructor(_options) {
10
+ this._options = _options;
12
11
  }
13
- _api;
14
12
  get api() {
15
- return (this._api ??= new Client_1.Api(this.options));
13
+ var _a;
14
+ return ((_a = this._api) !== null && _a !== void 0 ? _a : (this._api = new Client_1.Api(this._options)));
16
15
  }
17
16
  }
18
17
  exports.TheraApiClient = TheraApiClient;
@@ -7,13 +7,13 @@ import { Test } from "../resources/test/client/Client";
7
7
  import { Thera } from "../resources/thera/client/Client";
8
8
  export declare namespace Api {
9
9
  interface Options {
10
- environment: string;
10
+ environment: core.Supplier<string>;
11
11
  token?: core.Supplier<core.BearerToken | undefined>;
12
12
  }
13
13
  }
14
14
  export declare class Api {
15
- protected readonly options: Api.Options;
16
- constructor(options: Api.Options);
15
+ protected readonly _options: Api.Options;
16
+ constructor(_options: Api.Options);
17
17
  protected _services: Services | undefined;
18
18
  get services(): Services;
19
19
  protected _test: Test | undefined;
@@ -8,21 +8,20 @@ const Client_1 = require("../resources/services/client/Client");
8
8
  const Client_2 = require("../resources/test/client/Client");
9
9
  const Client_3 = require("../resources/thera/client/Client");
10
10
  class Api {
11
- options;
12
- constructor(options) {
13
- this.options = options;
11
+ constructor(_options) {
12
+ this._options = _options;
14
13
  }
15
- _services;
16
14
  get services() {
17
- return (this._services ??= new Client_1.Services(this.options));
15
+ var _a;
16
+ return ((_a = this._services) !== null && _a !== void 0 ? _a : (this._services = new Client_1.Services(this._options)));
18
17
  }
19
- _test;
20
18
  get test() {
21
- return (this._test ??= new Client_2.Test(this.options));
19
+ var _a;
20
+ return ((_a = this._test) !== null && _a !== void 0 ? _a : (this._test = new Client_2.Test(this._options)));
22
21
  }
23
- _thera;
24
22
  get thera() {
25
- return (this._thera ??= new Client_3.Thera(this.options));
23
+ var _a;
24
+ return ((_a = this._thera) !== null && _a !== void 0 ? _a : (this._thera = new Client_3.Thera(this._options)));
26
25
  }
27
26
  }
28
27
  exports.Api = Api;
@@ -5,13 +5,13 @@ import * as core from "../../../../../../core";
5
5
  import { File_ } from "../resources/file/client/Client";
6
6
  export declare namespace Services {
7
7
  interface Options {
8
- environment: string;
8
+ environment: core.Supplier<string>;
9
9
  token?: core.Supplier<core.BearerToken | undefined>;
10
10
  }
11
11
  }
12
12
  export declare class Services {
13
- protected readonly options: Services.Options;
14
- constructor(options: Services.Options);
13
+ protected readonly _options: Services.Options;
14
+ constructor(_options: Services.Options);
15
15
  protected _file: File_ | undefined;
16
16
  get file(): File_;
17
17
  }
@@ -6,13 +6,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.Services = void 0;
7
7
  const Client_1 = require("../resources/file/client/Client");
8
8
  class Services {
9
- options;
10
- constructor(options) {
11
- this.options = options;
9
+ constructor(_options) {
10
+ this._options = _options;
12
11
  }
13
- _file;
14
12
  get file() {
15
- return (this._file ??= new Client_1.File_(this.options));
13
+ var _a;
14
+ return ((_a = this._file) !== null && _a !== void 0 ? _a : (this._file = new Client_1.File_(this._options)));
16
15
  }
17
16
  }
18
17
  exports.Services = Services;
@@ -5,13 +5,13 @@ import * as core from "../../../../../../../../core";
5
5
  import * as TheraApi from "../../../../../../..";
6
6
  export declare namespace File_ {
7
7
  interface Options {
8
- environment: string;
8
+ environment: core.Supplier<string>;
9
9
  token?: core.Supplier<core.BearerToken | undefined>;
10
10
  }
11
11
  }
12
12
  export declare class File_ {
13
- protected readonly options: File_.Options;
14
- constructor(options: File_.Options);
13
+ protected readonly _options: File_.Options;
14
+ constructor(_options: File_.Options);
15
15
  attachDocumentToEmployment(contractId: string, request: TheraApi.api.services.AttachDocumentToEmploymentRequest): Promise<void>;
16
16
  deleteDocumentFromEmployment(contractId: string, s3Key: string, request: TheraApi.api.services.DeleteDocumentFromEmploymentRequest): Promise<void>;
17
17
  loadGenericDocumentFromEmployment(contractId: string, s3Key: string): Promise<TheraApi.api.services.LoadGenericDocumentFromEmploymentResponse>;
@@ -25,6 +25,15 @@ var __importStar = (this && this.__importStar) || function (mod) {
25
25
  __setModuleDefault(result, mod);
26
26
  return result;
27
27
  };
28
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
29
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
30
+ return new (P || (P = Promise))(function (resolve, reject) {
31
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
32
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
33
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
34
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
35
+ });
36
+ };
28
37
  var __importDefault = (this && this.__importDefault) || function (mod) {
29
38
  return (mod && mod.__esModule) ? mod : { "default": mod };
30
39
  };
@@ -35,176 +44,185 @@ const serializers = __importStar(require("../../../../../../../../serialization"
35
44
  const url_join_1 = __importDefault(require("url-join"));
36
45
  const errors = __importStar(require("../../../../../../../../errors"));
37
46
  class File_ {
38
- options;
39
- constructor(options) {
40
- this.options = options;
47
+ constructor(_options) {
48
+ this._options = _options;
41
49
  }
42
- async attachDocumentToEmployment(contractId, request) {
43
- const _response = await core.fetcher({
44
- url: (0, url_join_1.default)(this.options.environment, `/contracts/${contractId}/generic-document`),
45
- method: "POST",
46
- headers: {
47
- Authorization: await this._getAuthorizationHeader(),
48
- "X-Fern-Language": "JavaScript",
49
- "X-Fern-SDK-Name": "@thera-hr/api-sdk",
50
- "X-Fern-SDK-Version": "0.0.1503",
51
- },
52
- contentType: "application/json",
53
- body: await serializers.api.services.AttachDocumentToEmploymentRequest.jsonOrThrow(request, {
54
- unrecognizedObjectKeys: "strip",
55
- }),
56
- timeoutMs: 60000,
57
- });
58
- if (_response.ok) {
59
- return;
60
- }
61
- if (_response.error.reason === "status-code") {
62
- throw new errors.TheraApiError({
63
- statusCode: _response.error.statusCode,
64
- body: _response.error.body,
50
+ attachDocumentToEmployment(contractId, request) {
51
+ return __awaiter(this, void 0, void 0, function* () {
52
+ const _response = yield core.fetcher({
53
+ url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `/contracts/${contractId}/generic-document`),
54
+ method: "POST",
55
+ headers: {
56
+ Authorization: yield this._getAuthorizationHeader(),
57
+ "X-Fern-Language": "JavaScript",
58
+ "X-Fern-SDK-Name": "@thera-hr/api-sdk",
59
+ "X-Fern-SDK-Version": "0.0.1520",
60
+ },
61
+ contentType: "application/json",
62
+ body: yield serializers.api.services.AttachDocumentToEmploymentRequest.jsonOrThrow(request, {
63
+ unrecognizedObjectKeys: "strip",
64
+ }),
65
+ timeoutMs: 60000,
65
66
  });
66
- }
67
- switch (_response.error.reason) {
68
- case "non-json":
67
+ if (_response.ok) {
68
+ return;
69
+ }
70
+ if (_response.error.reason === "status-code") {
69
71
  throw new errors.TheraApiError({
70
72
  statusCode: _response.error.statusCode,
71
- body: _response.error.rawBody,
72
- });
73
- case "timeout":
74
- throw new errors.TheraApiTimeoutError();
75
- case "unknown":
76
- throw new errors.TheraApiError({
77
- message: _response.error.errorMessage,
73
+ body: _response.error.body,
78
74
  });
79
- }
80
- }
81
- async deleteDocumentFromEmployment(contractId, s3Key, request) {
82
- const _response = await core.fetcher({
83
- url: (0, url_join_1.default)(this.options.environment, `/contracts/${contractId}/generic-document/${s3Key}`),
84
- method: "DELETE",
85
- headers: {
86
- Authorization: await this._getAuthorizationHeader(),
87
- "X-Fern-Language": "JavaScript",
88
- "X-Fern-SDK-Name": "@thera-hr/api-sdk",
89
- "X-Fern-SDK-Version": "0.0.1503",
90
- },
91
- contentType: "application/json",
92
- body: await serializers.api.services.DeleteDocumentFromEmploymentRequest.jsonOrThrow(request, {
93
- unrecognizedObjectKeys: "strip",
94
- }),
95
- timeoutMs: 60000,
75
+ }
76
+ switch (_response.error.reason) {
77
+ case "non-json":
78
+ throw new errors.TheraApiError({
79
+ statusCode: _response.error.statusCode,
80
+ body: _response.error.rawBody,
81
+ });
82
+ case "timeout":
83
+ throw new errors.TheraApiTimeoutError();
84
+ case "unknown":
85
+ throw new errors.TheraApiError({
86
+ message: _response.error.errorMessage,
87
+ });
88
+ }
96
89
  });
97
- if (_response.ok) {
98
- return;
99
- }
100
- if (_response.error.reason === "status-code") {
101
- throw new errors.TheraApiError({
102
- statusCode: _response.error.statusCode,
103
- body: _response.error.body,
90
+ }
91
+ deleteDocumentFromEmployment(contractId, s3Key, request) {
92
+ return __awaiter(this, void 0, void 0, function* () {
93
+ const _response = yield core.fetcher({
94
+ url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `/contracts/${contractId}/generic-document/${s3Key}`),
95
+ method: "DELETE",
96
+ headers: {
97
+ Authorization: yield this._getAuthorizationHeader(),
98
+ "X-Fern-Language": "JavaScript",
99
+ "X-Fern-SDK-Name": "@thera-hr/api-sdk",
100
+ "X-Fern-SDK-Version": "0.0.1520",
101
+ },
102
+ contentType: "application/json",
103
+ body: yield serializers.api.services.DeleteDocumentFromEmploymentRequest.jsonOrThrow(request, {
104
+ unrecognizedObjectKeys: "strip",
105
+ }),
106
+ timeoutMs: 60000,
104
107
  });
105
- }
106
- switch (_response.error.reason) {
107
- case "non-json":
108
+ if (_response.ok) {
109
+ return;
110
+ }
111
+ if (_response.error.reason === "status-code") {
108
112
  throw new errors.TheraApiError({
109
113
  statusCode: _response.error.statusCode,
110
- body: _response.error.rawBody,
114
+ body: _response.error.body,
111
115
  });
112
- case "timeout":
113
- throw new errors.TheraApiTimeoutError();
114
- case "unknown":
115
- throw new errors.TheraApiError({
116
- message: _response.error.errorMessage,
117
- });
118
- }
119
- }
120
- async loadGenericDocumentFromEmployment(contractId, s3Key) {
121
- const _response = await core.fetcher({
122
- url: (0, url_join_1.default)(this.options.environment, `/contracts/${contractId}/generic-document/${s3Key}/file-url`),
123
- method: "GET",
124
- headers: {
125
- Authorization: await this._getAuthorizationHeader(),
126
- "X-Fern-Language": "JavaScript",
127
- "X-Fern-SDK-Name": "@thera-hr/api-sdk",
128
- "X-Fern-SDK-Version": "0.0.1503",
129
- },
130
- contentType: "application/json",
131
- timeoutMs: 60000,
116
+ }
117
+ switch (_response.error.reason) {
118
+ case "non-json":
119
+ throw new errors.TheraApiError({
120
+ statusCode: _response.error.statusCode,
121
+ body: _response.error.rawBody,
122
+ });
123
+ case "timeout":
124
+ throw new errors.TheraApiTimeoutError();
125
+ case "unknown":
126
+ throw new errors.TheraApiError({
127
+ message: _response.error.errorMessage,
128
+ });
129
+ }
132
130
  });
133
- if (_response.ok) {
134
- return await serializers.api.services.LoadGenericDocumentFromEmploymentResponse.parseOrThrow(_response.body, {
135
- unrecognizedObjectKeys: "passthrough",
136
- allowUnrecognizedUnionMembers: true,
137
- allowUnrecognizedEnumValues: true,
138
- breadcrumbsPrefix: ["response"],
139
- });
140
- }
141
- if (_response.error.reason === "status-code") {
142
- throw new errors.TheraApiError({
143
- statusCode: _response.error.statusCode,
144
- body: _response.error.body,
131
+ }
132
+ loadGenericDocumentFromEmployment(contractId, s3Key) {
133
+ return __awaiter(this, void 0, void 0, function* () {
134
+ const _response = yield core.fetcher({
135
+ url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `/contracts/${contractId}/generic-document/${s3Key}/file-url`),
136
+ method: "GET",
137
+ headers: {
138
+ Authorization: yield this._getAuthorizationHeader(),
139
+ "X-Fern-Language": "JavaScript",
140
+ "X-Fern-SDK-Name": "@thera-hr/api-sdk",
141
+ "X-Fern-SDK-Version": "0.0.1520",
142
+ },
143
+ contentType: "application/json",
144
+ timeoutMs: 60000,
145
145
  });
146
- }
147
- switch (_response.error.reason) {
148
- case "non-json":
149
- throw new errors.TheraApiError({
150
- statusCode: _response.error.statusCode,
151
- body: _response.error.rawBody,
146
+ if (_response.ok) {
147
+ return yield serializers.api.services.LoadGenericDocumentFromEmploymentResponse.parseOrThrow(_response.body, {
148
+ unrecognizedObjectKeys: "passthrough",
149
+ allowUnrecognizedUnionMembers: true,
150
+ allowUnrecognizedEnumValues: true,
151
+ breadcrumbsPrefix: ["response"],
152
152
  });
153
- case "timeout":
154
- throw new errors.TheraApiTimeoutError();
155
- case "unknown":
153
+ }
154
+ if (_response.error.reason === "status-code") {
156
155
  throw new errors.TheraApiError({
157
- message: _response.error.errorMessage,
156
+ statusCode: _response.error.statusCode,
157
+ body: _response.error.body,
158
158
  });
159
- }
160
- }
161
- async loadPayslipFromEorEmployment(contractId, s3Key) {
162
- const _response = await core.fetcher({
163
- url: (0, url_join_1.default)(this.options.environment, `/contracts/eor/${contractId}/payslips/${s3Key}/fileUrl`),
164
- method: "GET",
165
- headers: {
166
- Authorization: await this._getAuthorizationHeader(),
167
- "X-Fern-Language": "JavaScript",
168
- "X-Fern-SDK-Name": "@thera-hr/api-sdk",
169
- "X-Fern-SDK-Version": "0.0.1503",
170
- },
171
- contentType: "application/json",
172
- timeoutMs: 60000,
159
+ }
160
+ switch (_response.error.reason) {
161
+ case "non-json":
162
+ throw new errors.TheraApiError({
163
+ statusCode: _response.error.statusCode,
164
+ body: _response.error.rawBody,
165
+ });
166
+ case "timeout":
167
+ throw new errors.TheraApiTimeoutError();
168
+ case "unknown":
169
+ throw new errors.TheraApiError({
170
+ message: _response.error.errorMessage,
171
+ });
172
+ }
173
173
  });
174
- if (_response.ok) {
175
- return await serializers.api.services.LoadPayslipForEorEmployeeResponse.parseOrThrow(_response.body, {
176
- unrecognizedObjectKeys: "passthrough",
177
- allowUnrecognizedUnionMembers: true,
178
- allowUnrecognizedEnumValues: true,
179
- breadcrumbsPrefix: ["response"],
180
- });
181
- }
182
- if (_response.error.reason === "status-code") {
183
- throw new errors.TheraApiError({
184
- statusCode: _response.error.statusCode,
185
- body: _response.error.body,
174
+ }
175
+ loadPayslipFromEorEmployment(contractId, s3Key) {
176
+ return __awaiter(this, void 0, void 0, function* () {
177
+ const _response = yield core.fetcher({
178
+ url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `/contracts/eor/${contractId}/payslips/${s3Key}/fileUrl`),
179
+ method: "GET",
180
+ headers: {
181
+ Authorization: yield this._getAuthorizationHeader(),
182
+ "X-Fern-Language": "JavaScript",
183
+ "X-Fern-SDK-Name": "@thera-hr/api-sdk",
184
+ "X-Fern-SDK-Version": "0.0.1520",
185
+ },
186
+ contentType: "application/json",
187
+ timeoutMs: 60000,
186
188
  });
187
- }
188
- switch (_response.error.reason) {
189
- case "non-json":
190
- throw new errors.TheraApiError({
191
- statusCode: _response.error.statusCode,
192
- body: _response.error.rawBody,
189
+ if (_response.ok) {
190
+ return yield serializers.api.services.LoadPayslipForEorEmployeeResponse.parseOrThrow(_response.body, {
191
+ unrecognizedObjectKeys: "passthrough",
192
+ allowUnrecognizedUnionMembers: true,
193
+ allowUnrecognizedEnumValues: true,
194
+ breadcrumbsPrefix: ["response"],
193
195
  });
194
- case "timeout":
195
- throw new errors.TheraApiTimeoutError();
196
- case "unknown":
196
+ }
197
+ if (_response.error.reason === "status-code") {
197
198
  throw new errors.TheraApiError({
198
- message: _response.error.errorMessage,
199
+ statusCode: _response.error.statusCode,
200
+ body: _response.error.body,
199
201
  });
200
- }
202
+ }
203
+ switch (_response.error.reason) {
204
+ case "non-json":
205
+ throw new errors.TheraApiError({
206
+ statusCode: _response.error.statusCode,
207
+ body: _response.error.rawBody,
208
+ });
209
+ case "timeout":
210
+ throw new errors.TheraApiTimeoutError();
211
+ case "unknown":
212
+ throw new errors.TheraApiError({
213
+ message: _response.error.errorMessage,
214
+ });
215
+ }
216
+ });
201
217
  }
202
- async _getAuthorizationHeader() {
203
- const bearer = await core.Supplier.get(this.options.token);
204
- if (bearer != null) {
205
- return `Bearer ${bearer}`;
206
- }
207
- return undefined;
218
+ _getAuthorizationHeader() {
219
+ return __awaiter(this, void 0, void 0, function* () {
220
+ const bearer = yield core.Supplier.get(this._options.token);
221
+ if (bearer != null) {
222
+ return `Bearer ${bearer}`;
223
+ }
224
+ return undefined;
225
+ });
208
226
  }
209
227
  }
210
228
  exports.File_ = File_;
@@ -5,13 +5,13 @@ import * as core from "../../../../../../core";
5
5
  import { Invoices } from "../resources/invoices/client/Client";
6
6
  export declare namespace Test {
7
7
  interface Options {
8
- environment: string;
8
+ environment: core.Supplier<string>;
9
9
  token?: core.Supplier<core.BearerToken | undefined>;
10
10
  }
11
11
  }
12
12
  export declare class Test {
13
- protected readonly options: Test.Options;
14
- constructor(options: Test.Options);
13
+ protected readonly _options: Test.Options;
14
+ constructor(_options: Test.Options);
15
15
  protected _invoices: Invoices | undefined;
16
16
  get invoices(): Invoices;
17
17
  }
@@ -6,13 +6,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.Test = void 0;
7
7
  const Client_1 = require("../resources/invoices/client/Client");
8
8
  class Test {
9
- options;
10
- constructor(options) {
11
- this.options = options;
9
+ constructor(_options) {
10
+ this._options = _options;
12
11
  }
13
- _invoices;
14
12
  get invoices() {
15
- return (this._invoices ??= new Client_1.Invoices(this.options));
13
+ var _a;
14
+ return ((_a = this._invoices) !== null && _a !== void 0 ? _a : (this._invoices = new Client_1.Invoices(this._options)));
16
15
  }
17
16
  }
18
17
  exports.Test = Test;
@@ -5,13 +5,13 @@ import * as core from "../../../../../../../../core";
5
5
  import * as TheraApi from "../../../../../../..";
6
6
  export declare namespace Invoices {
7
7
  interface Options {
8
- environment: string;
8
+ environment: core.Supplier<string>;
9
9
  token?: core.Supplier<core.BearerToken | undefined>;
10
10
  }
11
11
  }
12
12
  export declare class Invoices {
13
- protected readonly options: Invoices.Options;
14
- constructor(options: Invoices.Options);
13
+ protected readonly _options: Invoices.Options;
14
+ constructor(_options: Invoices.Options);
15
15
  voidInvoice(invoiceId: TheraApi.api.test.DemoFernInvoiceId, request: TheraApi.api.test.VoidInvoiceRequest): Promise<TheraApi.api.test.DemoFernInvoice>;
16
16
  protected _getAuthorizationHeader(): Promise<string | undefined>;
17
17
  }