@thera-hr/api-sdk 0.0.4274 → 0.0.4483

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 (397) hide show
  1. package/Client.d.ts +3 -0
  2. package/api/resources/api/client/Client.d.ts +3 -0
  3. package/api/resources/api/resources/aiprise/client/Client.d.ts +3 -0
  4. package/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.d.ts +4 -1
  5. package/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +3 -3
  6. package/api/resources/api/resources/index.d.ts +1 -0
  7. package/api/resources/api/resources/index.js +2 -1
  8. package/api/resources/api/resources/oneschema/index.d.ts +1 -0
  9. package/api/resources/api/resources/oneschema/index.js +17 -0
  10. package/api/resources/api/resources/oneschema/resources/index.d.ts +2 -0
  11. package/api/resources/api/resources/oneschema/resources/index.js +31 -0
  12. package/api/resources/api/resources/oneschema/resources/model/index.d.ts +1 -0
  13. package/api/resources/api/resources/oneschema/resources/model/index.js +17 -0
  14. package/api/resources/api/resources/{thera/resources/disbursement/resources/disbursementApi/types/CreateInvoiceCsvColumn.d.ts → oneschema/resources/model/types/OneSchemaCsvColumn.d.ts} +1 -1
  15. package/api/resources/api/resources/oneschema/resources/model/types/index.d.ts +1 -0
  16. package/api/resources/api/resources/oneschema/resources/model/types/index.js +17 -0
  17. package/api/resources/api/resources/services/client/Client.d.ts +3 -0
  18. package/api/resources/api/resources/services/resources/file/client/Client.d.ts +7 -4
  19. package/api/resources/api/resources/services/resources/file/client/Client.js +12 -12
  20. package/api/resources/api/resources/thera/client/Client.d.ts +6 -0
  21. package/api/resources/api/resources/thera/client/Client.js +17 -12
  22. package/api/resources/api/resources/thera/resources/bank/client/Client.d.ts +3 -0
  23. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.d.ts +24 -19
  24. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +149 -58
  25. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/GetWithdrawalMethodCurrenciesRequest.d.ts +1 -0
  26. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetPayInDetailsResponse.d.ts +18 -0
  27. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetPayInHistoryResponse.d.ts +7 -0
  28. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/HistoricalInvoice.d.ts +24 -0
  29. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/HistoricalPayIn.d.ts +10 -0
  30. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/HistoricalPayIn.js +5 -0
  31. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/SingleWithdrawalMethodResponse.d.ts +1 -0
  32. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodsRequest.d.ts +1 -0
  33. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +4 -0
  34. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +4 -0
  35. package/api/resources/api/resources/thera/resources/company/client/Client.d.ts +3 -0
  36. package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.d.ts +16 -13
  37. package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +41 -47
  38. package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/index.d.ts +0 -1
  39. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateCompanyRequest.d.ts +1 -1
  40. package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.d.ts +4 -1
  41. package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +3 -3
  42. package/api/resources/api/resources/thera/resources/contractor/client/Client.d.ts +20 -0
  43. package/api/resources/api/resources/thera/resources/contractor/client/Client.js +17 -0
  44. package/api/resources/api/resources/thera/resources/contractor/client/index.d.ts +1 -0
  45. package/api/resources/api/resources/thera/resources/contractor/client/index.js +2 -0
  46. package/api/resources/api/resources/thera/resources/contractor/index.d.ts +2 -0
  47. package/api/resources/api/resources/thera/resources/contractor/index.js +18 -0
  48. package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.d.ts +20 -0
  49. package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +101 -0
  50. package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/index.d.ts +1 -0
  51. package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/index.js +17 -0
  52. package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/requests/CreateContractorsCsvRequest.d.ts +8 -0
  53. package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/requests/CreateContractorsCsvRequest.js +5 -0
  54. package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/requests/index.d.ts +1 -0
  55. package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/requests/index.js +2 -0
  56. package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/index.d.ts +2 -0
  57. package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/index.js +18 -0
  58. package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/CreateContractorsCsvRecord.d.ts +24 -0
  59. package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/CreateContractorsCsvRecord.js +5 -0
  60. package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/InvoiceCycle.d.ts +10 -0
  61. package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/InvoiceCycle.js +12 -0
  62. package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/PaymentFrequency.d.ts +10 -0
  63. package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/PaymentFrequency.js +12 -0
  64. package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/index.d.ts +3 -0
  65. package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/index.js +19 -0
  66. package/api/resources/api/resources/thera/resources/contractor/resources/index.d.ts +3 -0
  67. package/api/resources/api/resources/thera/resources/contractor/resources/index.js +32 -0
  68. package/api/resources/api/resources/thera/resources/disbursement/client/Client.d.ts +3 -0
  69. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.d.ts +6 -3
  70. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +9 -9
  71. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/requests/CreateInvoiceCsvRequest.d.ts +1 -1
  72. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/index.d.ts +0 -1
  73. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/index.js +0 -1
  74. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.d.ts +4 -1
  75. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +3 -3
  76. package/api/resources/api/resources/thera/resources/email/client/Client.d.ts +3 -0
  77. package/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.d.ts +4 -1
  78. package/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +3 -3
  79. package/api/resources/api/resources/thera/resources/employment/client/Client.d.ts +3 -0
  80. package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.d.ts +6 -3
  81. package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +9 -9
  82. package/api/resources/api/resources/thera/resources/index.d.ts +1 -0
  83. package/api/resources/api/resources/thera/resources/index.js +2 -1
  84. package/api/resources/api/resources/thera/resources/misc/client/Client.d.ts +3 -0
  85. package/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.d.ts +4 -1
  86. package/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +3 -3
  87. package/api/resources/api/resources/thera/resources/payroll/client/Client.d.ts +3 -0
  88. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.d.ts +4 -1
  89. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +3 -3
  90. package/api/resources/api/resources/thera/resources/user/client/Client.d.ts +3 -0
  91. package/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.d.ts +4 -1
  92. package/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
  93. package/api/resources/db/resources/company/types/PayCycleType.d.ts +10 -0
  94. package/api/resources/db/resources/company/types/PayCycleType.js +12 -0
  95. package/api/resources/db/resources/company/types/Team.d.ts +1 -1
  96. package/api/resources/db/resources/company/types/index.d.ts +1 -0
  97. package/api/resources/db/resources/company/types/index.js +1 -0
  98. package/api/resources/db/resources/generic/types/GenericType.d.ts +0 -5
  99. package/api/resources/db/resources/index.d.ts +2 -0
  100. package/api/resources/db/resources/index.js +3 -1
  101. package/api/resources/db/resources/invoice/index.d.ts +1 -0
  102. package/api/resources/db/resources/invoice/index.js +17 -0
  103. package/api/resources/db/resources/invoice/types/InvoiceType.d.ts +13 -0
  104. package/api/resources/db/resources/invoice/types/InvoiceType.js +15 -0
  105. package/api/resources/db/resources/invoice/types/index.d.ts +1 -0
  106. package/api/resources/db/resources/invoice/types/index.js +17 -0
  107. package/api/resources/db/resources/user/types/AiPriseVerificationResult.d.ts +2 -1
  108. package/api/resources/db/resources/user/types/BankTransfer.d.ts +2 -1
  109. package/api/resources/db/resources/user/types/PoweredBy.d.ts +8 -0
  110. package/api/resources/db/resources/user/types/PoweredBy.js +10 -0
  111. package/api/resources/db/resources/user/types/index.d.ts +1 -0
  112. package/api/resources/db/resources/user/types/index.js +1 -0
  113. package/core/fetcher/Fetcher.d.ts +2 -2
  114. package/core/index.d.ts +1 -1
  115. package/core/index.js +4 -4
  116. package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +5 -5
  117. package/dist/Client.d.ts +3 -0
  118. package/dist/api/resources/api/client/Client.d.ts +3 -0
  119. package/dist/api/resources/api/resources/aiprise/client/Client.d.ts +3 -0
  120. package/dist/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.d.ts +4 -1
  121. package/dist/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +3 -3
  122. package/dist/api/resources/api/resources/index.d.ts +1 -0
  123. package/dist/api/resources/api/resources/index.js +2 -1
  124. package/dist/api/resources/api/resources/oneschema/index.d.ts +1 -0
  125. package/dist/api/resources/api/resources/oneschema/index.js +17 -0
  126. package/dist/api/resources/api/resources/oneschema/resources/index.d.ts +2 -0
  127. package/dist/api/resources/api/resources/oneschema/resources/index.js +31 -0
  128. package/dist/api/resources/api/resources/oneschema/resources/model/index.d.ts +1 -0
  129. package/dist/api/resources/api/resources/oneschema/resources/model/index.js +17 -0
  130. package/dist/api/resources/api/resources/{thera/resources/disbursement/resources/disbursementApi/types/CreateInvoiceCsvColumn.d.ts → oneschema/resources/model/types/OneSchemaCsvColumn.d.ts} +1 -1
  131. package/dist/api/resources/api/resources/oneschema/resources/model/types/OneSchemaCsvColumn.js +5 -0
  132. package/dist/api/resources/api/resources/oneschema/resources/model/types/index.d.ts +1 -0
  133. package/dist/api/resources/api/resources/oneschema/resources/model/types/index.js +17 -0
  134. package/dist/api/resources/api/resources/services/client/Client.d.ts +3 -0
  135. package/dist/api/resources/api/resources/services/resources/file/client/Client.d.ts +7 -4
  136. package/dist/api/resources/api/resources/services/resources/file/client/Client.js +12 -12
  137. package/dist/api/resources/api/resources/thera/client/Client.d.ts +6 -0
  138. package/dist/api/resources/api/resources/thera/client/Client.js +17 -12
  139. package/dist/api/resources/api/resources/thera/resources/bank/client/Client.d.ts +3 -0
  140. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.d.ts +24 -19
  141. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +149 -58
  142. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/GetWithdrawalMethodCurrenciesRequest.d.ts +1 -0
  143. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetPayInDetailsResponse.d.ts +18 -0
  144. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetPayInDetailsResponse.js +5 -0
  145. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetPayInHistoryResponse.d.ts +7 -0
  146. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetPayInHistoryResponse.js +5 -0
  147. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/HistoricalInvoice.d.ts +24 -0
  148. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/HistoricalInvoice.js +5 -0
  149. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/HistoricalPayIn.d.ts +10 -0
  150. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/HistoricalPayIn.js +5 -0
  151. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/SingleWithdrawalMethodResponse.d.ts +1 -0
  152. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodsRequest.d.ts +1 -0
  153. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +4 -0
  154. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +4 -0
  155. package/dist/api/resources/api/resources/thera/resources/company/client/Client.d.ts +3 -0
  156. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.d.ts +16 -13
  157. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +41 -47
  158. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/index.d.ts +0 -1
  159. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateCompanyRequest.d.ts +1 -1
  160. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.d.ts +4 -1
  161. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +3 -3
  162. package/dist/api/resources/api/resources/thera/resources/contractor/client/Client.d.ts +20 -0
  163. package/dist/api/resources/api/resources/thera/resources/contractor/client/Client.js +17 -0
  164. package/dist/api/resources/api/resources/thera/resources/contractor/client/index.d.ts +1 -0
  165. package/dist/api/resources/api/resources/thera/resources/contractor/client/index.js +2 -0
  166. package/dist/api/resources/api/resources/thera/resources/contractor/index.d.ts +2 -0
  167. package/dist/api/resources/api/resources/thera/resources/contractor/index.js +18 -0
  168. package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.d.ts +20 -0
  169. package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +101 -0
  170. package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/index.d.ts +1 -0
  171. package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/index.js +17 -0
  172. package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/requests/CreateContractorsCsvRequest.d.ts +8 -0
  173. package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/requests/CreateContractorsCsvRequest.js +5 -0
  174. package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/requests/index.d.ts +1 -0
  175. package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/requests/index.js +2 -0
  176. package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/index.d.ts +2 -0
  177. package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/index.js +18 -0
  178. package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/CreateContractorsCsvRecord.d.ts +24 -0
  179. package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/CreateContractorsCsvRecord.js +5 -0
  180. package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/InvoiceCycle.d.ts +10 -0
  181. package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/InvoiceCycle.js +12 -0
  182. package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/PaymentFrequency.d.ts +10 -0
  183. package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/PaymentFrequency.js +12 -0
  184. package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/index.d.ts +3 -0
  185. package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/index.js +19 -0
  186. package/dist/api/resources/api/resources/thera/resources/contractor/resources/index.d.ts +3 -0
  187. package/dist/api/resources/api/resources/thera/resources/contractor/resources/index.js +32 -0
  188. package/dist/api/resources/api/resources/thera/resources/disbursement/client/Client.d.ts +3 -0
  189. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.d.ts +6 -3
  190. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +9 -9
  191. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/requests/CreateInvoiceCsvRequest.d.ts +1 -1
  192. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/index.d.ts +0 -1
  193. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/index.js +0 -1
  194. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.d.ts +4 -1
  195. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +3 -3
  196. package/dist/api/resources/api/resources/thera/resources/email/client/Client.d.ts +3 -0
  197. package/dist/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.d.ts +4 -1
  198. package/dist/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +3 -3
  199. package/dist/api/resources/api/resources/thera/resources/employment/client/Client.d.ts +3 -0
  200. package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.d.ts +6 -3
  201. package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +9 -9
  202. package/dist/api/resources/api/resources/thera/resources/index.d.ts +1 -0
  203. package/dist/api/resources/api/resources/thera/resources/index.js +2 -1
  204. package/dist/api/resources/api/resources/thera/resources/misc/client/Client.d.ts +3 -0
  205. package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.d.ts +4 -1
  206. package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +3 -3
  207. package/dist/api/resources/api/resources/thera/resources/payroll/client/Client.d.ts +3 -0
  208. package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.d.ts +4 -1
  209. package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +3 -3
  210. package/dist/api/resources/api/resources/thera/resources/user/client/Client.d.ts +3 -0
  211. package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.d.ts +4 -1
  212. package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
  213. package/dist/api/resources/db/resources/company/types/PayCycleType.d.ts +10 -0
  214. package/dist/api/resources/db/resources/company/types/PayCycleType.js +12 -0
  215. package/dist/api/resources/db/resources/company/types/Team.d.ts +1 -1
  216. package/dist/api/resources/db/resources/company/types/index.d.ts +1 -0
  217. package/dist/api/resources/db/resources/company/types/index.js +1 -0
  218. package/dist/api/resources/db/resources/generic/types/GenericType.d.ts +0 -5
  219. package/dist/api/resources/db/resources/index.d.ts +2 -0
  220. package/dist/api/resources/db/resources/index.js +3 -1
  221. package/dist/api/resources/db/resources/invoice/index.d.ts +1 -0
  222. package/dist/api/resources/db/resources/invoice/index.js +17 -0
  223. package/dist/api/resources/db/resources/invoice/types/InvoiceType.d.ts +13 -0
  224. package/dist/api/resources/db/resources/invoice/types/InvoiceType.js +15 -0
  225. package/dist/api/resources/db/resources/invoice/types/index.d.ts +1 -0
  226. package/dist/api/resources/db/resources/invoice/types/index.js +17 -0
  227. package/dist/api/resources/db/resources/user/types/AiPriseVerificationResult.d.ts +2 -1
  228. package/dist/api/resources/db/resources/user/types/BankTransfer.d.ts +2 -1
  229. package/dist/api/resources/db/resources/user/types/PoweredBy.d.ts +8 -0
  230. package/dist/api/resources/db/resources/user/types/PoweredBy.js +10 -0
  231. package/dist/api/resources/db/resources/user/types/index.d.ts +1 -0
  232. package/dist/api/resources/db/resources/user/types/index.js +1 -0
  233. package/dist/core/fetcher/Fetcher.d.ts +2 -2
  234. package/dist/core/index.d.ts +1 -1
  235. package/dist/core/index.js +4 -4
  236. package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +5 -5
  237. package/dist/serialization/resources/api/resources/index.d.ts +1 -0
  238. package/dist/serialization/resources/api/resources/index.js +2 -1
  239. package/dist/serialization/resources/api/resources/oneschema/index.d.ts +1 -0
  240. package/dist/serialization/resources/api/resources/oneschema/index.js +17 -0
  241. package/dist/serialization/resources/api/resources/oneschema/resources/index.d.ts +2 -0
  242. package/dist/serialization/resources/api/resources/oneschema/resources/index.js +31 -0
  243. package/dist/serialization/resources/api/resources/oneschema/resources/model/index.d.ts +1 -0
  244. package/dist/serialization/resources/api/resources/oneschema/resources/model/index.js +17 -0
  245. package/dist/serialization/resources/api/resources/oneschema/resources/model/types/OneSchemaCsvColumn.d.ts +16 -0
  246. package/dist/serialization/resources/api/resources/{thera/resources/disbursement/resources/disbursementApi/types/CreateInvoiceCsvColumn.js → oneschema/resources/model/types/OneSchemaCsvColumn.js} +3 -3
  247. package/dist/serialization/resources/api/resources/oneschema/resources/model/types/index.d.ts +1 -0
  248. package/dist/serialization/resources/api/resources/oneschema/resources/model/types/index.js +17 -0
  249. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetPayInDetailsResponse.d.ts +22 -0
  250. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetPayInDetailsResponse.js +52 -0
  251. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetPayInHistoryResponse.d.ts +12 -0
  252. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetPayInHistoryResponse.js +42 -0
  253. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/HistoricalInvoice.d.ts +29 -0
  254. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/HistoricalInvoice.js +59 -0
  255. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/HistoricalPayIn.d.ts +16 -0
  256. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/HistoricalPayIn.js +37 -0
  257. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/SingleWithdrawalMethodResponse.d.ts +1 -0
  258. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/SingleWithdrawalMethodResponse.js +3 -0
  259. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodsRequest.d.ts +1 -0
  260. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodsRequest.js +1 -0
  261. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +4 -0
  262. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +4 -0
  263. package/dist/serialization/resources/api/resources/thera/resources/contractor/index.d.ts +1 -0
  264. package/dist/serialization/resources/api/resources/thera/resources/contractor/index.js +17 -0
  265. package/dist/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/index.d.ts +1 -0
  266. package/dist/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/index.js +17 -0
  267. package/dist/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/requests/CreateContractorsCsvRequest.d.ts +13 -0
  268. package/dist/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/requests/CreateContractorsCsvRequest.js +43 -0
  269. package/dist/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/requests/index.d.ts +1 -0
  270. package/dist/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/requests/index.js +5 -0
  271. package/dist/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/index.d.ts +2 -0
  272. package/dist/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/index.js +18 -0
  273. package/dist/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/CreateContractorsCsvRecord.d.ts +29 -0
  274. package/dist/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/CreateContractorsCsvRecord.js +61 -0
  275. package/dist/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/InvoiceCycle.d.ts +10 -0
  276. package/dist/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/InvoiceCycle.js +31 -0
  277. package/dist/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/PaymentFrequency.d.ts +10 -0
  278. package/dist/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/PaymentFrequency.js +31 -0
  279. package/dist/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/index.d.ts +3 -0
  280. package/dist/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/index.js +19 -0
  281. package/dist/serialization/resources/api/resources/thera/resources/contractor/resources/index.d.ts +3 -0
  282. package/dist/serialization/resources/api/resources/thera/resources/contractor/resources/index.js +32 -0
  283. package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/requests/CreateInvoiceCsvRequest.d.ts +1 -1
  284. package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/requests/CreateInvoiceCsvRequest.js +1 -1
  285. package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/index.d.ts +0 -1
  286. package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/index.js +0 -1
  287. package/dist/serialization/resources/api/resources/thera/resources/index.d.ts +1 -0
  288. package/dist/serialization/resources/api/resources/thera/resources/index.js +2 -1
  289. package/dist/serialization/resources/db/resources/company/types/PayCycleType.d.ts +10 -0
  290. package/dist/serialization/resources/db/resources/company/types/PayCycleType.js +31 -0
  291. package/dist/serialization/resources/db/resources/company/types/Team.d.ts +1 -1
  292. package/dist/serialization/resources/db/resources/company/types/Team.js +1 -1
  293. package/dist/serialization/resources/db/resources/company/types/index.d.ts +1 -0
  294. package/dist/serialization/resources/db/resources/company/types/index.js +1 -0
  295. package/dist/serialization/resources/db/resources/generic/types/GenericType.d.ts +0 -1
  296. package/dist/serialization/resources/db/resources/generic/types/GenericType.js +0 -1
  297. package/dist/serialization/resources/db/resources/index.d.ts +2 -0
  298. package/dist/serialization/resources/db/resources/index.js +3 -1
  299. package/dist/serialization/resources/db/resources/invoice/index.d.ts +1 -0
  300. package/dist/serialization/resources/db/resources/invoice/index.js +17 -0
  301. package/dist/serialization/resources/db/resources/invoice/types/InvoiceType.d.ts +10 -0
  302. package/dist/serialization/resources/db/resources/invoice/types/InvoiceType.js +31 -0
  303. package/dist/serialization/resources/db/resources/invoice/types/index.d.ts +1 -0
  304. package/dist/serialization/resources/db/resources/invoice/types/index.js +17 -0
  305. package/dist/serialization/resources/db/resources/user/types/AiPriseVerificationResult.d.ts +1 -1
  306. package/dist/serialization/resources/db/resources/user/types/AiPriseVerificationResult.js +1 -1
  307. package/dist/serialization/resources/db/resources/user/types/BankTransfer.d.ts +2 -1
  308. package/dist/serialization/resources/db/resources/user/types/BankTransfer.js +2 -1
  309. package/dist/serialization/resources/db/resources/user/types/PoweredBy.d.ts +10 -0
  310. package/dist/serialization/resources/db/resources/user/types/PoweredBy.js +31 -0
  311. package/dist/serialization/resources/db/resources/user/types/index.d.ts +1 -0
  312. package/dist/serialization/resources/db/resources/user/types/index.js +1 -0
  313. package/package.json +2 -2
  314. package/serialization/resources/api/resources/index.d.ts +1 -0
  315. package/serialization/resources/api/resources/index.js +2 -1
  316. package/serialization/resources/api/resources/oneschema/index.d.ts +1 -0
  317. package/serialization/resources/api/resources/oneschema/index.js +17 -0
  318. package/serialization/resources/api/resources/oneschema/resources/index.d.ts +2 -0
  319. package/serialization/resources/api/resources/oneschema/resources/index.js +31 -0
  320. package/serialization/resources/api/resources/oneschema/resources/model/index.d.ts +1 -0
  321. package/serialization/resources/api/resources/oneschema/resources/model/index.js +17 -0
  322. package/serialization/resources/api/resources/oneschema/resources/model/types/OneSchemaCsvColumn.d.ts +16 -0
  323. package/serialization/resources/api/resources/{thera/resources/disbursement/resources/disbursementApi/types/CreateInvoiceCsvColumn.js → oneschema/resources/model/types/OneSchemaCsvColumn.js} +3 -3
  324. package/serialization/resources/api/resources/oneschema/resources/model/types/index.d.ts +1 -0
  325. package/serialization/resources/api/resources/oneschema/resources/model/types/index.js +17 -0
  326. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetPayInDetailsResponse.d.ts +22 -0
  327. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetPayInDetailsResponse.js +52 -0
  328. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetPayInHistoryResponse.d.ts +12 -0
  329. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetPayInHistoryResponse.js +42 -0
  330. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/HistoricalInvoice.d.ts +29 -0
  331. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/HistoricalInvoice.js +59 -0
  332. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/HistoricalPayIn.d.ts +16 -0
  333. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/HistoricalPayIn.js +37 -0
  334. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/SingleWithdrawalMethodResponse.d.ts +1 -0
  335. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/SingleWithdrawalMethodResponse.js +3 -0
  336. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodsRequest.d.ts +1 -0
  337. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodsRequest.js +1 -0
  338. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +4 -0
  339. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +4 -0
  340. package/serialization/resources/api/resources/thera/resources/contractor/index.d.ts +1 -0
  341. package/serialization/resources/api/resources/thera/resources/contractor/index.js +17 -0
  342. package/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/index.d.ts +1 -0
  343. package/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/index.js +17 -0
  344. package/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/requests/CreateContractorsCsvRequest.d.ts +13 -0
  345. package/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/requests/CreateContractorsCsvRequest.js +43 -0
  346. package/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/requests/index.d.ts +1 -0
  347. package/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/requests/index.js +5 -0
  348. package/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/index.d.ts +2 -0
  349. package/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/index.js +18 -0
  350. package/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/CreateContractorsCsvRecord.d.ts +29 -0
  351. package/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/CreateContractorsCsvRecord.js +61 -0
  352. package/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/InvoiceCycle.d.ts +10 -0
  353. package/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/InvoiceCycle.js +31 -0
  354. package/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/PaymentFrequency.d.ts +10 -0
  355. package/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/PaymentFrequency.js +31 -0
  356. package/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/index.d.ts +3 -0
  357. package/serialization/resources/api/resources/thera/resources/contractor/resources/contractorApi/types/index.js +19 -0
  358. package/serialization/resources/api/resources/thera/resources/contractor/resources/index.d.ts +3 -0
  359. package/serialization/resources/api/resources/thera/resources/contractor/resources/index.js +32 -0
  360. package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/requests/CreateInvoiceCsvRequest.d.ts +1 -1
  361. package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/requests/CreateInvoiceCsvRequest.js +1 -1
  362. package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/index.d.ts +0 -1
  363. package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/index.js +0 -1
  364. package/serialization/resources/api/resources/thera/resources/index.d.ts +1 -0
  365. package/serialization/resources/api/resources/thera/resources/index.js +2 -1
  366. package/serialization/resources/db/resources/company/types/PayCycleType.d.ts +10 -0
  367. package/serialization/resources/db/resources/company/types/PayCycleType.js +31 -0
  368. package/serialization/resources/db/resources/company/types/Team.d.ts +1 -1
  369. package/serialization/resources/db/resources/company/types/Team.js +1 -1
  370. package/serialization/resources/db/resources/company/types/index.d.ts +1 -0
  371. package/serialization/resources/db/resources/company/types/index.js +1 -0
  372. package/serialization/resources/db/resources/generic/types/GenericType.d.ts +0 -1
  373. package/serialization/resources/db/resources/generic/types/GenericType.js +0 -1
  374. package/serialization/resources/db/resources/index.d.ts +2 -0
  375. package/serialization/resources/db/resources/index.js +3 -1
  376. package/serialization/resources/db/resources/invoice/index.d.ts +1 -0
  377. package/serialization/resources/db/resources/invoice/index.js +17 -0
  378. package/serialization/resources/db/resources/invoice/types/InvoiceType.d.ts +10 -0
  379. package/serialization/resources/db/resources/invoice/types/InvoiceType.js +31 -0
  380. package/serialization/resources/db/resources/invoice/types/index.d.ts +1 -0
  381. package/serialization/resources/db/resources/invoice/types/index.js +17 -0
  382. package/serialization/resources/db/resources/user/types/AiPriseVerificationResult.d.ts +1 -1
  383. package/serialization/resources/db/resources/user/types/AiPriseVerificationResult.js +1 -1
  384. package/serialization/resources/db/resources/user/types/BankTransfer.d.ts +2 -1
  385. package/serialization/resources/db/resources/user/types/BankTransfer.js +2 -1
  386. package/serialization/resources/db/resources/user/types/PoweredBy.d.ts +10 -0
  387. package/serialization/resources/db/resources/user/types/PoweredBy.js +31 -0
  388. package/serialization/resources/db/resources/user/types/index.d.ts +1 -0
  389. package/serialization/resources/db/resources/user/types/index.js +1 -0
  390. package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/InviteContractorReq.d.ts +0 -8
  391. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/InviteContractorReq.d.ts +0 -8
  392. package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateInvoiceCsvColumn.d.ts +0 -16
  393. package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateInvoiceCsvColumn.d.ts +0 -16
  394. /package/api/resources/api/resources/{thera/resources/company/resources/companyApi/client/requests/InviteContractorReq.js → oneschema/resources/model/types/OneSchemaCsvColumn.js} +0 -0
  395. /package/api/resources/api/resources/thera/resources/{disbursement/resources/disbursementApi/types/CreateInvoiceCsvColumn.js → bank/resources/bankApi/types/GetPayInDetailsResponse.js} +0 -0
  396. /package/{dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/InviteContractorReq.js → api/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetPayInHistoryResponse.js} +0 -0
  397. /package/{dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateInvoiceCsvColumn.js → api/resources/api/resources/thera/resources/bank/resources/bankApi/types/HistoricalInvoice.js} +0 -0
package/Client.d.ts CHANGED
@@ -8,6 +8,9 @@ export declare namespace TheraApiClient {
8
8
  environment: core.Supplier<string>;
9
9
  token?: core.Supplier<core.BearerToken | undefined>;
10
10
  }
11
+ interface RequestOptions {
12
+ timeoutInSeconds?: number;
13
+ }
11
14
  }
12
15
  export declare class TheraApiClient {
13
16
  protected readonly _options: TheraApiClient.Options;
@@ -10,6 +10,9 @@ export declare namespace Api {
10
10
  environment: core.Supplier<string>;
11
11
  token?: core.Supplier<core.BearerToken | undefined>;
12
12
  }
13
+ interface RequestOptions {
14
+ timeoutInSeconds?: number;
15
+ }
13
16
  }
14
17
  export declare class Api {
15
18
  protected readonly _options: Api.Options;
@@ -8,6 +8,9 @@ export declare namespace Aiprise {
8
8
  environment: core.Supplier<string>;
9
9
  token?: core.Supplier<core.BearerToken | undefined>;
10
10
  }
11
+ interface RequestOptions {
12
+ timeoutInSeconds?: number;
13
+ }
11
14
  }
12
15
  export declare class Aiprise {
13
16
  protected readonly _options: Aiprise.Options;
@@ -8,6 +8,9 @@ export declare namespace AipriseWebhookApi {
8
8
  environment: core.Supplier<string>;
9
9
  token?: core.Supplier<core.BearerToken | undefined>;
10
10
  }
11
+ interface RequestOptions {
12
+ timeoutInSeconds?: number;
13
+ }
11
14
  }
12
15
  export declare class AipriseWebhookApi {
13
16
  protected readonly _options: AipriseWebhookApi.Options;
@@ -15,6 +18,6 @@ export declare class AipriseWebhookApi {
15
18
  /**
16
19
  * Not to be used by FE. AiPrise calls this API automatically.
17
20
  */
18
- verify(request: TheraApi.api.aiprise.AiPriseVerificationCallback): Promise<void>;
21
+ verify(request: TheraApi.api.aiprise.AiPriseVerificationCallback, requestOptions?: AipriseWebhookApi.RequestOptions): Promise<void>;
19
22
  protected _getAuthorizationHeader(): Promise<string | undefined>;
20
23
  }
@@ -50,7 +50,7 @@ class AipriseWebhookApi {
50
50
  /**
51
51
  * Not to be used by FE. AiPrise calls this API automatically.
52
52
  */
53
- verify(request) {
53
+ verify(request, requestOptions) {
54
54
  return __awaiter(this, void 0, void 0, function* () {
55
55
  const _response = yield core.fetcher({
56
56
  url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), "/aiprise/webhook/verification/callback"),
@@ -59,13 +59,13 @@ class AipriseWebhookApi {
59
59
  Authorization: yield this._getAuthorizationHeader(),
60
60
  "X-Fern-Language": "JavaScript",
61
61
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
62
- "X-Fern-SDK-Version": "0.0.4274",
62
+ "X-Fern-SDK-Version": "0.0.4483",
63
63
  },
64
64
  contentType: "application/json",
65
65
  body: yield serializers.api.aiprise.AiPriseVerificationCallback.jsonOrThrow(request, {
66
66
  unrecognizedObjectKeys: "strip",
67
67
  }),
68
- timeoutMs: 60000,
68
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
69
69
  });
70
70
  if (_response.ok) {
71
71
  return;
@@ -1,4 +1,5 @@
1
1
  export * as aiprise from "./aiprise";
2
+ export * as oneschema from "./oneschema";
2
3
  export * as request from "./request";
3
4
  export * as response from "./response";
4
5
  export * as services from "./services";
@@ -23,8 +23,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.zeal = exports.thera = exports.services = exports.response = exports.request = exports.aiprise = void 0;
26
+ exports.zeal = exports.thera = exports.services = exports.response = exports.request = exports.oneschema = exports.aiprise = void 0;
27
27
  exports.aiprise = __importStar(require("./aiprise"));
28
+ exports.oneschema = __importStar(require("./oneschema"));
28
29
  exports.request = __importStar(require("./request"));
29
30
  exports.response = __importStar(require("./response"));
30
31
  exports.services = __importStar(require("./services"));
@@ -0,0 +1 @@
1
+ export * from "./resources";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./resources"), exports);
@@ -0,0 +1,2 @@
1
+ export * as model from "./model";
2
+ export * from "./model/types";
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
26
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.model = void 0;
30
+ exports.model = __importStar(require("./model"));
31
+ __exportStar(require("./model/types"), exports);
@@ -0,0 +1 @@
1
+ export * from "./types";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./types"), exports);
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export interface CreateInvoiceCsvColumn {
4
+ export interface OneSchemaCsvColumn {
5
5
  sheetColumnName: string;
6
6
  templateColumnName: string;
7
7
  templateColumnKey: string;
@@ -0,0 +1 @@
1
+ export * from "./OneSchemaCsvColumn";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./OneSchemaCsvColumn"), exports);
@@ -8,6 +8,9 @@ export declare namespace Services {
8
8
  environment: core.Supplier<string>;
9
9
  token?: core.Supplier<core.BearerToken | undefined>;
10
10
  }
11
+ interface RequestOptions {
12
+ timeoutInSeconds?: number;
13
+ }
11
14
  }
12
15
  export declare class Services {
13
16
  protected readonly _options: Services.Options;
@@ -8,13 +8,16 @@ export declare namespace File_ {
8
8
  environment: core.Supplier<string>;
9
9
  token?: core.Supplier<core.BearerToken | undefined>;
10
10
  }
11
+ interface RequestOptions {
12
+ timeoutInSeconds?: number;
13
+ }
11
14
  }
12
15
  export declare class File_ {
13
16
  protected readonly _options: File_.Options;
14
17
  constructor(_options: File_.Options);
15
- attachDocumentToEmployment(contractId: string, request: TheraApi.api.services.AttachDocumentToEmploymentRequest): Promise<void>;
16
- deleteDocumentFromEmployment(contractId: string, s3Key: string, request: TheraApi.api.services.DeleteDocumentFromEmploymentRequest): Promise<void>;
17
- loadGenericDocumentFromEmployment(contractId: string, s3Key: string): Promise<TheraApi.api.services.LoadGenericDocumentFromEmploymentResponse>;
18
- loadPayslipFromEorEmployment(contractId: string, s3Key: string): Promise<TheraApi.api.services.LoadPayslipForEorEmployeeResponse>;
18
+ attachDocumentToEmployment(contractId: string, request: TheraApi.api.services.AttachDocumentToEmploymentRequest, requestOptions?: File_.RequestOptions): Promise<void>;
19
+ deleteDocumentFromEmployment(contractId: string, s3Key: string, request: TheraApi.api.services.DeleteDocumentFromEmploymentRequest, requestOptions?: File_.RequestOptions): Promise<void>;
20
+ loadGenericDocumentFromEmployment(contractId: string, s3Key: string, requestOptions?: File_.RequestOptions): Promise<TheraApi.api.services.LoadGenericDocumentFromEmploymentResponse>;
21
+ loadPayslipFromEorEmployment(contractId: string, s3Key: string, requestOptions?: File_.RequestOptions): Promise<TheraApi.api.services.LoadPayslipForEorEmployeeResponse>;
19
22
  protected _getAuthorizationHeader(): Promise<string | undefined>;
20
23
  }
@@ -47,7 +47,7 @@ class File_ {
47
47
  constructor(_options) {
48
48
  this._options = _options;
49
49
  }
50
- attachDocumentToEmployment(contractId, request) {
50
+ attachDocumentToEmployment(contractId, request, requestOptions) {
51
51
  return __awaiter(this, void 0, void 0, function* () {
52
52
  const _response = yield core.fetcher({
53
53
  url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `/contracts/${contractId}/generic-document`),
@@ -56,13 +56,13 @@ class File_ {
56
56
  Authorization: yield this._getAuthorizationHeader(),
57
57
  "X-Fern-Language": "JavaScript",
58
58
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
59
- "X-Fern-SDK-Version": "0.0.4274",
59
+ "X-Fern-SDK-Version": "0.0.4483",
60
60
  },
61
61
  contentType: "application/json",
62
62
  body: yield serializers.api.services.AttachDocumentToEmploymentRequest.jsonOrThrow(request, {
63
63
  unrecognizedObjectKeys: "strip",
64
64
  }),
65
- timeoutMs: 60000,
65
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
66
66
  });
67
67
  if (_response.ok) {
68
68
  return;
@@ -88,7 +88,7 @@ class File_ {
88
88
  }
89
89
  });
90
90
  }
91
- deleteDocumentFromEmployment(contractId, s3Key, request) {
91
+ deleteDocumentFromEmployment(contractId, s3Key, request, requestOptions) {
92
92
  return __awaiter(this, void 0, void 0, function* () {
93
93
  const _response = yield core.fetcher({
94
94
  url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `/contracts/${contractId}/generic-document/${s3Key}`),
@@ -97,13 +97,13 @@ class File_ {
97
97
  Authorization: yield this._getAuthorizationHeader(),
98
98
  "X-Fern-Language": "JavaScript",
99
99
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
100
- "X-Fern-SDK-Version": "0.0.4274",
100
+ "X-Fern-SDK-Version": "0.0.4483",
101
101
  },
102
102
  contentType: "application/json",
103
103
  body: yield serializers.api.services.DeleteDocumentFromEmploymentRequest.jsonOrThrow(request, {
104
104
  unrecognizedObjectKeys: "strip",
105
105
  }),
106
- timeoutMs: 60000,
106
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
107
107
  });
108
108
  if (_response.ok) {
109
109
  return;
@@ -129,7 +129,7 @@ class File_ {
129
129
  }
130
130
  });
131
131
  }
132
- loadGenericDocumentFromEmployment(contractId, s3Key) {
132
+ loadGenericDocumentFromEmployment(contractId, s3Key, requestOptions) {
133
133
  return __awaiter(this, void 0, void 0, function* () {
134
134
  const _response = yield core.fetcher({
135
135
  url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `/contracts/${contractId}/generic-document/${s3Key}/file-url`),
@@ -138,10 +138,10 @@ class File_ {
138
138
  Authorization: yield this._getAuthorizationHeader(),
139
139
  "X-Fern-Language": "JavaScript",
140
140
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
141
- "X-Fern-SDK-Version": "0.0.4274",
141
+ "X-Fern-SDK-Version": "0.0.4483",
142
142
  },
143
143
  contentType: "application/json",
144
- timeoutMs: 60000,
144
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
145
145
  });
146
146
  if (_response.ok) {
147
147
  return yield serializers.api.services.LoadGenericDocumentFromEmploymentResponse.parseOrThrow(_response.body, {
@@ -173,7 +173,7 @@ class File_ {
173
173
  }
174
174
  });
175
175
  }
176
- loadPayslipFromEorEmployment(contractId, s3Key) {
176
+ loadPayslipFromEorEmployment(contractId, s3Key, requestOptions) {
177
177
  return __awaiter(this, void 0, void 0, function* () {
178
178
  const _response = yield core.fetcher({
179
179
  url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `/contracts/eor/${contractId}/payslips/${s3Key}/fileUrl`),
@@ -182,10 +182,10 @@ class File_ {
182
182
  Authorization: yield this._getAuthorizationHeader(),
183
183
  "X-Fern-Language": "JavaScript",
184
184
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
185
- "X-Fern-SDK-Version": "0.0.4274",
185
+ "X-Fern-SDK-Version": "0.0.4483",
186
186
  },
187
187
  contentType: "application/json",
188
- timeoutMs: 60000,
188
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
189
189
  });
190
190
  if (_response.ok) {
191
191
  return yield serializers.api.services.LoadPayslipForEorEmployeeResponse.parseOrThrow(_response.body, {
@@ -4,6 +4,7 @@
4
4
  import * as core from "../../../../../../core";
5
5
  import { Bank } from "../resources/bank/client/Client";
6
6
  import { Company } from "../resources/company/client/Client";
7
+ import { Contractor } from "../resources/contractor/client/Client";
7
8
  import { Disbursement } from "../resources/disbursement/client/Client";
8
9
  import { Email } from "../resources/email/client/Client";
9
10
  import { Employment } from "../resources/employment/client/Client";
@@ -15,6 +16,9 @@ export declare namespace Thera {
15
16
  environment: core.Supplier<string>;
16
17
  token?: core.Supplier<core.BearerToken | undefined>;
17
18
  }
19
+ interface RequestOptions {
20
+ timeoutInSeconds?: number;
21
+ }
18
22
  }
19
23
  export declare class Thera {
20
24
  protected readonly _options: Thera.Options;
@@ -23,6 +27,8 @@ export declare class Thera {
23
27
  get bank(): Bank;
24
28
  protected _company: Company | undefined;
25
29
  get company(): Company;
30
+ protected _contractor: Contractor | undefined;
31
+ get contractor(): Contractor;
26
32
  protected _disbursement: Disbursement | undefined;
27
33
  get disbursement(): Disbursement;
28
34
  protected _email: Email | undefined;
@@ -6,12 +6,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.Thera = void 0;
7
7
  const Client_1 = require("../resources/bank/client/Client");
8
8
  const Client_2 = require("../resources/company/client/Client");
9
- const Client_3 = require("../resources/disbursement/client/Client");
10
- const Client_4 = require("../resources/email/client/Client");
11
- const Client_5 = require("../resources/employment/client/Client");
12
- const Client_6 = require("../resources/misc/client/Client");
13
- const Client_7 = require("../resources/payroll/client/Client");
14
- const Client_8 = require("../resources/user/client/Client");
9
+ const Client_3 = require("../resources/contractor/client/Client");
10
+ const Client_4 = require("../resources/disbursement/client/Client");
11
+ const Client_5 = require("../resources/email/client/Client");
12
+ const Client_6 = require("../resources/employment/client/Client");
13
+ const Client_7 = require("../resources/misc/client/Client");
14
+ const Client_8 = require("../resources/payroll/client/Client");
15
+ const Client_9 = require("../resources/user/client/Client");
15
16
  class Thera {
16
17
  constructor(_options) {
17
18
  this._options = _options;
@@ -24,29 +25,33 @@ class Thera {
24
25
  var _a;
25
26
  return ((_a = this._company) !== null && _a !== void 0 ? _a : (this._company = new Client_2.Company(this._options)));
26
27
  }
28
+ get contractor() {
29
+ var _a;
30
+ return ((_a = this._contractor) !== null && _a !== void 0 ? _a : (this._contractor = new Client_3.Contractor(this._options)));
31
+ }
27
32
  get disbursement() {
28
33
  var _a;
29
- return ((_a = this._disbursement) !== null && _a !== void 0 ? _a : (this._disbursement = new Client_3.Disbursement(this._options)));
34
+ return ((_a = this._disbursement) !== null && _a !== void 0 ? _a : (this._disbursement = new Client_4.Disbursement(this._options)));
30
35
  }
31
36
  get email() {
32
37
  var _a;
33
- return ((_a = this._email) !== null && _a !== void 0 ? _a : (this._email = new Client_4.Email(this._options)));
38
+ return ((_a = this._email) !== null && _a !== void 0 ? _a : (this._email = new Client_5.Email(this._options)));
34
39
  }
35
40
  get employment() {
36
41
  var _a;
37
- return ((_a = this._employment) !== null && _a !== void 0 ? _a : (this._employment = new Client_5.Employment(this._options)));
42
+ return ((_a = this._employment) !== null && _a !== void 0 ? _a : (this._employment = new Client_6.Employment(this._options)));
38
43
  }
39
44
  get misc() {
40
45
  var _a;
41
- return ((_a = this._misc) !== null && _a !== void 0 ? _a : (this._misc = new Client_6.Misc(this._options)));
46
+ return ((_a = this._misc) !== null && _a !== void 0 ? _a : (this._misc = new Client_7.Misc(this._options)));
42
47
  }
43
48
  get payroll() {
44
49
  var _a;
45
- return ((_a = this._payroll) !== null && _a !== void 0 ? _a : (this._payroll = new Client_7.Payroll(this._options)));
50
+ return ((_a = this._payroll) !== null && _a !== void 0 ? _a : (this._payroll = new Client_8.Payroll(this._options)));
46
51
  }
47
52
  get user() {
48
53
  var _a;
49
- return ((_a = this._user) !== null && _a !== void 0 ? _a : (this._user = new Client_8.User(this._options)));
54
+ return ((_a = this._user) !== null && _a !== void 0 ? _a : (this._user = new Client_9.User(this._options)));
50
55
  }
51
56
  }
52
57
  exports.Thera = Thera;
@@ -8,6 +8,9 @@ export declare namespace Bank {
8
8
  environment: core.Supplier<string>;
9
9
  token?: core.Supplier<core.BearerToken | undefined>;
10
10
  }
11
+ interface RequestOptions {
12
+ timeoutInSeconds?: number;
13
+ }
11
14
  }
12
15
  export declare class Bank {
13
16
  protected readonly _options: Bank.Options;
@@ -8,6 +8,9 @@ export declare namespace BankApi {
8
8
  environment: core.Supplier<string>;
9
9
  token?: core.Supplier<core.BearerToken | undefined>;
10
10
  }
11
+ interface RequestOptions {
12
+ timeoutInSeconds?: number;
13
+ }
11
14
  }
12
15
  export declare class BankApi {
13
16
  protected readonly _options: BankApi.Options;
@@ -15,51 +18,53 @@ export declare class BankApi {
15
18
  /**
16
19
  * Get Plaid Bank Account Details (employer/admin's bank account status). Contains Status, etc
17
20
  */
18
- getPlaidBankDetails(companyId: string): Promise<TheraApi.api.thera.bank.GetBankAccountDetailsResponse | undefined>;
19
- generatePlaidUpdateFlowLinkToken(request: TheraApi.api.thera.bank.PlaidUpdateFlowLinkTokenRequest): Promise<TheraApi.api.thera.bank.PlaidUpdateFlowLinkTokenResponse>;
21
+ getPlaidBankDetails(companyId: string, requestOptions?: BankApi.RequestOptions): Promise<TheraApi.api.thera.bank.GetBankAccountDetailsResponse | undefined>;
22
+ generatePlaidUpdateFlowLinkToken(request: TheraApi.api.thera.bank.PlaidUpdateFlowLinkTokenRequest, requestOptions?: BankApi.RequestOptions): Promise<TheraApi.api.thera.bank.PlaidUpdateFlowLinkTokenResponse>;
20
23
  /**
21
24
  * Get Plaid's link-token
22
25
  */
23
- generateBankSignup(request?: TheraApi.api.thera.bank.GenerateBankSignupRequest): Promise<TheraApi.api.thera.bank.GetBankAccountSignupKey>;
26
+ generateBankSignup(request?: TheraApi.api.thera.bank.GenerateBankSignupRequest, requestOptions?: BankApi.RequestOptions): Promise<TheraApi.api.thera.bank.GetBankAccountSignupKey>;
24
27
  /**
25
28
  * Calling this API to signify that company's bank account has been provided to Plaid
26
29
  */
27
- completeBankSignup(request: TheraApi.api.thera.bank.CompleteAccountSignupRequest): Promise<void>;
30
+ completeBankSignup(request: TheraApi.api.thera.bank.CompleteAccountSignupRequest, requestOptions?: BankApi.RequestOptions): Promise<void>;
28
31
  /**
29
32
  * Used for Manual Verification. Calling this API to check in Plaid if the account has been verified
30
33
  */
31
- verifyBankSignup(request?: TheraApi.api.thera.bank.VerifyAccountSignupRequest): Promise<TheraApi.api.thera.bank.GetBankAccountVerificationToken>;
34
+ verifyBankSignup(request?: TheraApi.api.thera.bank.VerifyAccountSignupRequest, requestOptions?: BankApi.RequestOptions): Promise<TheraApi.api.thera.bank.GetBankAccountVerificationToken>;
32
35
  /**
33
36
  * Update Zeal's bank account with info from Plaid & send microdeposit to company's bank account during W2 onboarding for Zeal API
34
37
  */
35
- sendMicrodeposit(request?: TheraApi.api.thera.bank.SendMicroDepositRequest): Promise<void>;
38
+ sendMicrodeposit(request?: TheraApi.api.thera.bank.SendMicroDepositRequest, requestOptions?: BankApi.RequestOptions): Promise<void>;
36
39
  /**
37
40
  * Verify Microdeposit for company's bank account during W2 onboarding for Zeal API
38
41
  */
39
- verifyMicrodeposit(request: TheraApi.api.thera.bank.VerifyMicrodepositRequest): Promise<void>;
42
+ verifyMicrodeposit(request: TheraApi.api.thera.bank.VerifyMicrodepositRequest, requestOptions?: BankApi.RequestOptions): Promise<void>;
40
43
  /**
41
44
  * Get the Supported Currencies for Each Withdrawal Method
42
45
  */
43
- getWithdrawalMethodCurrencies(request: TheraApi.api.thera.bank.GetWithdrawalMethodCurrenciesRequest): Promise<TheraApi.api.thera.bank.GetWithdrawalMethodCurrenciesResponse>;
46
+ getWithdrawalMethodCurrencies(request: TheraApi.api.thera.bank.GetWithdrawalMethodCurrenciesRequest, requestOptions?: BankApi.RequestOptions): Promise<TheraApi.api.thera.bank.GetWithdrawalMethodCurrenciesResponse>;
44
47
  /**
45
48
  * Get the minimum amount that must be withdrawn for a given currency to avoid incurring silly fees.
46
49
  */
47
- getWithdrawalMinimumByCurrency(request: TheraApi.api.thera.bank.GetWithdrawalMinimumByCurrencyRequest): Promise<TheraApi.api.thera.bank.GetWithdrawalMinimumByCurrencyResponse>;
50
+ getWithdrawalMinimumByCurrency(request: TheraApi.api.thera.bank.GetWithdrawalMinimumByCurrencyRequest, requestOptions?: BankApi.RequestOptions): Promise<TheraApi.api.thera.bank.GetWithdrawalMinimumByCurrencyResponse>;
48
51
  /**
49
52
  * This endpoint should be used to dynamically create a form that allows a worker to enter their withdrawal method information. The user should initially be prompted to provide their `currency`. FE should then pass this with user's address that we've already saved in their `employeeInformation` for `recipientAddress`, and the user's first name and last name for `accountHolderName`. A response will be returned a list of `type`s that the user should select from, then provide the corresponding `details` for in the form. This is the same response returned by [this endpoint] (https://docs.wise.com/api-docs/api-reference/recipient#account-requirements) in Wise. These `details` should continue to be posted to this endpoint whenever a field with `refreshRequirementsOnChange = true` is changed to get the most up to date requirements, just like the Wise endpoint.
50
53
  */
51
- getSupportedWithdrawalMethods(request: TheraApi.api.thera.bank.WithdrawalMethodsRequest): Promise<TheraApi.api.thera.bank.SingleWithdrawalMethodResponse[]>;
54
+ getSupportedWithdrawalMethods(request: TheraApi.api.thera.bank.WithdrawalMethodsRequest, requestOptions?: BankApi.RequestOptions): Promise<TheraApi.api.thera.bank.SingleWithdrawalMethodResponse[]>;
52
55
  /**
53
56
  * After gathering all the dynamic fields required for the `Get Supported Withdrawal Methods`, they should be submitted here in order to save the payment method.
54
57
  */
55
- saveWithdrawalMethod(userId: string, request: TheraApi.api.thera.bank.WithdrawalMethodsRequest): Promise<TheraApi.api.thera.bank.SaveWithdrawalMethodResponse>;
56
- deleteWithdrawalMethod(userId: string, withdrawalMethodId: string): Promise<TheraApi.api.thera.bank.DeleteWithdrawalMethodResponse>;
57
- editWithdrawalMethod(userId: string, withdrawalMethodId: string, request: TheraApi.api.thera.bank.EditWithdrawalMethodRequest): Promise<TheraApi.api.thera.bank.EditWithdrawalMethodResponse>;
58
- initiateWorkerWithdrawal(userId: string, companyId: string, request: TheraApi.api.thera.bank.InitiateWorkerWithdrawalRequest): Promise<TheraApi.api.thera.bank.InitiateWorkerWithdrawalResponse>;
59
- getWorkerBalance(userId: string, companyId: string): Promise<TheraApi.api.thera.bank.GetWorkerBalancesResponse>;
60
- getWorkerTransactions(userId: string, companyId: string): Promise<TheraApi.api.thera.bank.GetWorkerTransactionsResponse>;
61
- getCurrencyConversion(request: TheraApi.api.thera.bank.GetCurrencyConversionRequest): Promise<TheraApi.api.thera.bank.GetCurrencyConversionResponse>;
62
- setAutoWithdrawals(userId: string, companyId: string, request: TheraApi.api.thera.bank.SetAutoWithdrawalRequest): Promise<TheraApi.api.thera.bank.SetAutoWithdrawalResponse>;
63
- createStripePaymentMethodFromPlaid(request?: TheraApi.api.thera.bank.CreateStripePaymentMethodFromPlaidRequest): Promise<void>;
58
+ saveWithdrawalMethod(userId: string, request: TheraApi.api.thera.bank.WithdrawalMethodsRequest, requestOptions?: BankApi.RequestOptions): Promise<TheraApi.api.thera.bank.SaveWithdrawalMethodResponse>;
59
+ deleteWithdrawalMethod(userId: string, withdrawalMethodId: string, requestOptions?: BankApi.RequestOptions): Promise<TheraApi.api.thera.bank.DeleteWithdrawalMethodResponse>;
60
+ editWithdrawalMethod(userId: string, withdrawalMethodId: string, request: TheraApi.api.thera.bank.EditWithdrawalMethodRequest, requestOptions?: BankApi.RequestOptions): Promise<TheraApi.api.thera.bank.EditWithdrawalMethodResponse>;
61
+ initiateWorkerWithdrawal(userId: string, companyId: string, request: TheraApi.api.thera.bank.InitiateWorkerWithdrawalRequest, requestOptions?: BankApi.RequestOptions): Promise<TheraApi.api.thera.bank.InitiateWorkerWithdrawalResponse>;
62
+ getWorkerBalance(userId: string, companyId: string, requestOptions?: BankApi.RequestOptions): Promise<TheraApi.api.thera.bank.GetWorkerBalancesResponse>;
63
+ getWorkerTransactions(userId: string, companyId: string, requestOptions?: BankApi.RequestOptions): Promise<TheraApi.api.thera.bank.GetWorkerTransactionsResponse>;
64
+ getPayInHistory(companyId: string, requestOptions?: BankApi.RequestOptions): Promise<TheraApi.api.thera.bank.GetPayInHistoryResponse>;
65
+ getPayInDetails(companyId: string, payInId: string, requestOptions?: BankApi.RequestOptions): Promise<TheraApi.api.thera.bank.GetPayInDetailsResponse>;
66
+ getCurrencyConversion(request: TheraApi.api.thera.bank.GetCurrencyConversionRequest, requestOptions?: BankApi.RequestOptions): Promise<TheraApi.api.thera.bank.GetCurrencyConversionResponse>;
67
+ setAutoWithdrawals(userId: string, companyId: string, request: TheraApi.api.thera.bank.SetAutoWithdrawalRequest, requestOptions?: BankApi.RequestOptions): Promise<TheraApi.api.thera.bank.SetAutoWithdrawalResponse>;
68
+ createStripePaymentMethodFromPlaid(request?: TheraApi.api.thera.bank.CreateStripePaymentMethodFromPlaidRequest, requestOptions?: BankApi.RequestOptions): Promise<void>;
64
69
  protected _getAuthorizationHeader(): Promise<string | undefined>;
65
70
  }