@thera-hr/api-sdk 0.0.1644 → 0.0.1672

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 (219) hide show
  1. package/api/resources/api/resources/services/resources/file/client/Client.js +4 -4
  2. package/api/resources/api/resources/test/resources/invoices/client/Client.js +1 -1
  3. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.d.ts +2 -0
  4. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +96 -4
  5. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/SaveWithdrawalMethodResponse.d.ts +7 -0
  6. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/SingleWithdrawalMethodResponse.d.ts +9 -0
  7. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/ValidationAsyncParam.d.ts +8 -0
  8. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodField.d.ts +8 -0
  9. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodGroup.d.ts +18 -0
  10. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodGroup.js +5 -0
  11. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodValidationAsync.d.ts +8 -0
  12. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodValidationAsync.js +5 -0
  13. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodValuesAllowed.d.ts +7 -0
  14. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodValuesAllowed.js +5 -0
  15. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodsRequest.d.ts +11 -0
  16. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodsRequest.js +5 -0
  17. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +8 -0
  18. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +8 -0
  19. package/api/resources/api/resources/thera/resources/common/resources/common/types/Address.js +5 -0
  20. package/api/resources/api/resources/thera/resources/common/resources/index.d.ts +2 -0
  21. package/{dist/api/resources/api/resources/thera/resources/address → api/resources/api/resources/thera/resources/common}/resources/index.js +3 -3
  22. package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +1 -1
  23. package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +1 -1
  24. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +2 -2
  25. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateDisbursementDetail.d.ts +6 -3
  26. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateOffCycleInvoiceDetail.d.ts +11 -0
  27. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateOffCycleInvoiceDetail.js +5 -0
  28. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/{CreateInvoiceDetail.d.ts → CreateOnCycleInvoiceDetail.d.ts} +5 -1
  29. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateOnCycleInvoiceDetail.js +5 -0
  30. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/index.d.ts +2 -1
  31. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/index.js +2 -1
  32. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
  33. package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.d.ts +2 -2
  34. package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +4 -4
  35. package/api/resources/api/resources/thera/resources/index.d.ts +1 -1
  36. package/api/resources/api/resources/thera/resources/index.js +2 -2
  37. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +1 -1
  38. package/api/resources/db/resources/user/types/BankTransfer.d.ts +12 -0
  39. package/api/resources/db/resources/user/types/BankTransfer.js +5 -0
  40. package/api/resources/db/resources/user/types/EmployeeInformation.d.ts +2 -1
  41. package/api/resources/db/resources/user/types/WithdrawalMethod.d.ts +10 -0
  42. package/api/resources/db/resources/user/types/WithdrawalMethod.js +5 -0
  43. package/api/resources/db/resources/user/types/index.d.ts +2 -0
  44. package/api/resources/db/resources/user/types/index.js +2 -0
  45. package/dist/api/resources/api/resources/services/resources/file/client/Client.js +4 -4
  46. package/dist/api/resources/api/resources/test/resources/invoices/client/Client.js +1 -1
  47. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.d.ts +2 -0
  48. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +96 -4
  49. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/SaveWithdrawalMethodResponse.d.ts +7 -0
  50. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/SaveWithdrawalMethodResponse.js +5 -0
  51. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/SingleWithdrawalMethodResponse.d.ts +9 -0
  52. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/SingleWithdrawalMethodResponse.js +5 -0
  53. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/ValidationAsyncParam.d.ts +8 -0
  54. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/ValidationAsyncParam.js +5 -0
  55. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodField.d.ts +8 -0
  56. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodField.js +5 -0
  57. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodGroup.d.ts +18 -0
  58. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodGroup.js +5 -0
  59. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodValidationAsync.d.ts +8 -0
  60. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodValidationAsync.js +5 -0
  61. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodValuesAllowed.d.ts +7 -0
  62. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodValuesAllowed.js +5 -0
  63. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodsRequest.d.ts +11 -0
  64. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodsRequest.js +5 -0
  65. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +8 -0
  66. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +8 -0
  67. package/dist/api/resources/api/resources/thera/resources/common/resources/common/types/Address.js +5 -0
  68. package/dist/api/resources/api/resources/thera/resources/common/resources/index.d.ts +2 -0
  69. package/{serialization/resources/api/resources/thera/resources/address → dist/api/resources/api/resources/thera/resources/common}/resources/index.js +3 -3
  70. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +1 -1
  71. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +1 -1
  72. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +2 -2
  73. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateDisbursementDetail.d.ts +6 -3
  74. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateOffCycleInvoiceDetail.d.ts +11 -0
  75. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateOffCycleInvoiceDetail.js +5 -0
  76. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/{CreateInvoiceDetail.d.ts → CreateOnCycleInvoiceDetail.d.ts} +5 -1
  77. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateOnCycleInvoiceDetail.js +5 -0
  78. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/index.d.ts +2 -1
  79. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/index.js +2 -1
  80. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
  81. package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.d.ts +2 -2
  82. package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +4 -4
  83. package/dist/api/resources/api/resources/thera/resources/index.d.ts +1 -1
  84. package/dist/api/resources/api/resources/thera/resources/index.js +2 -2
  85. package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +1 -1
  86. package/dist/api/resources/db/resources/user/types/BankTransfer.d.ts +12 -0
  87. package/dist/api/resources/db/resources/user/types/BankTransfer.js +5 -0
  88. package/dist/api/resources/db/resources/user/types/EmployeeInformation.d.ts +2 -1
  89. package/dist/api/resources/db/resources/user/types/WithdrawalMethod.d.ts +10 -0
  90. package/dist/api/resources/db/resources/user/types/WithdrawalMethod.js +5 -0
  91. package/dist/api/resources/db/resources/user/types/index.d.ts +2 -0
  92. package/dist/api/resources/db/resources/user/types/index.js +2 -0
  93. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/getSupportedWithdrawalMethods.d.ts +10 -0
  94. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/getSupportedWithdrawalMethods.js +40 -0
  95. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/index.d.ts +1 -0
  96. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/index.js +27 -0
  97. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/index.d.ts +1 -0
  98. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/index.js +1 -0
  99. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/SaveWithdrawalMethodResponse.d.ts +12 -0
  100. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/SaveWithdrawalMethodResponse.js +42 -0
  101. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/SingleWithdrawalMethodResponse.d.ts +14 -0
  102. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/SingleWithdrawalMethodResponse.js +44 -0
  103. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/ValidationAsyncParam.d.ts +14 -0
  104. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/ValidationAsyncParam.js +35 -0
  105. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodField.d.ts +13 -0
  106. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodField.js +43 -0
  107. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodGroup.d.ts +23 -0
  108. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodGroup.js +53 -0
  109. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodValidationAsync.d.ts +13 -0
  110. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodValidationAsync.js +43 -0
  111. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodValuesAllowed.d.ts +13 -0
  112. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodValuesAllowed.js +34 -0
  113. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodsRequest.d.ts +16 -0
  114. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodsRequest.js +46 -0
  115. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +8 -0
  116. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +8 -0
  117. package/{serialization/resources/api/resources/thera/resources/address/resources/address → dist/serialization/resources/api/resources/thera/resources/common/resources/common}/types/Address.d.ts +1 -1
  118. package/dist/serialization/resources/api/resources/thera/resources/common/resources/index.d.ts +2 -0
  119. package/{api/resources/api/resources/thera/resources/address → dist/serialization/resources/api/resources/thera/resources/common}/resources/index.js +3 -3
  120. package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateDisbursementDetail.d.ts +6 -3
  121. package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateDisbursementDetail.js +2 -1
  122. package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateOffCycleInvoiceDetail.d.ts +14 -0
  123. package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateOffCycleInvoiceDetail.js +35 -0
  124. package/{serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateInvoiceDetail.d.ts → dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateOnCycleInvoiceDetail.d.ts} +3 -2
  125. package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/{CreateInvoiceDetail.js → CreateOnCycleInvoiceDetail.js} +3 -2
  126. package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/index.d.ts +2 -1
  127. package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/index.js +2 -1
  128. package/dist/serialization/resources/api/resources/thera/resources/index.d.ts +1 -1
  129. package/dist/serialization/resources/api/resources/thera/resources/index.js +2 -2
  130. package/dist/serialization/resources/db/resources/user/types/BankTransfer.d.ts +17 -0
  131. package/dist/serialization/resources/db/resources/user/types/BankTransfer.js +47 -0
  132. package/dist/serialization/resources/db/resources/user/types/EmployeeInformation.d.ts +2 -1
  133. package/dist/serialization/resources/db/resources/user/types/EmployeeInformation.js +2 -1
  134. package/dist/serialization/resources/db/resources/user/types/WithdrawalMethod.d.ts +13 -0
  135. package/dist/serialization/resources/db/resources/user/types/WithdrawalMethod.js +47 -0
  136. package/dist/serialization/resources/db/resources/user/types/index.d.ts +2 -0
  137. package/dist/serialization/resources/db/resources/user/types/index.js +2 -0
  138. package/package.json +1 -1
  139. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/getSupportedWithdrawalMethods.d.ts +10 -0
  140. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/getSupportedWithdrawalMethods.js +40 -0
  141. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/index.d.ts +1 -0
  142. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/index.js +27 -0
  143. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/index.d.ts +1 -0
  144. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/index.js +1 -0
  145. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/SaveWithdrawalMethodResponse.d.ts +12 -0
  146. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/SaveWithdrawalMethodResponse.js +42 -0
  147. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/SingleWithdrawalMethodResponse.d.ts +14 -0
  148. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/SingleWithdrawalMethodResponse.js +44 -0
  149. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/ValidationAsyncParam.d.ts +14 -0
  150. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/ValidationAsyncParam.js +35 -0
  151. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodField.d.ts +13 -0
  152. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodField.js +43 -0
  153. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodGroup.d.ts +23 -0
  154. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodGroup.js +53 -0
  155. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodValidationAsync.d.ts +13 -0
  156. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodValidationAsync.js +43 -0
  157. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodValuesAllowed.d.ts +13 -0
  158. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodValuesAllowed.js +34 -0
  159. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodsRequest.d.ts +16 -0
  160. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodsRequest.js +46 -0
  161. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +8 -0
  162. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +8 -0
  163. package/{dist/serialization/resources/api/resources/thera/resources/address/resources/address → serialization/resources/api/resources/thera/resources/common/resources/common}/types/Address.d.ts +1 -1
  164. package/serialization/resources/api/resources/thera/resources/common/resources/index.d.ts +2 -0
  165. package/{dist/serialization/resources/api/resources/thera/resources/address → serialization/resources/api/resources/thera/resources/common}/resources/index.js +3 -3
  166. package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateDisbursementDetail.d.ts +6 -3
  167. package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateDisbursementDetail.js +2 -1
  168. package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateOffCycleInvoiceDetail.d.ts +14 -0
  169. package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateOffCycleInvoiceDetail.js +35 -0
  170. package/{dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateInvoiceDetail.d.ts → serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateOnCycleInvoiceDetail.d.ts} +3 -2
  171. package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/{CreateInvoiceDetail.js → CreateOnCycleInvoiceDetail.js} +3 -2
  172. package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/index.d.ts +2 -1
  173. package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/index.js +2 -1
  174. package/serialization/resources/api/resources/thera/resources/index.d.ts +1 -1
  175. package/serialization/resources/api/resources/thera/resources/index.js +2 -2
  176. package/serialization/resources/db/resources/user/types/BankTransfer.d.ts +17 -0
  177. package/serialization/resources/db/resources/user/types/BankTransfer.js +47 -0
  178. package/serialization/resources/db/resources/user/types/EmployeeInformation.d.ts +2 -1
  179. package/serialization/resources/db/resources/user/types/EmployeeInformation.js +2 -1
  180. package/serialization/resources/db/resources/user/types/WithdrawalMethod.d.ts +13 -0
  181. package/serialization/resources/db/resources/user/types/WithdrawalMethod.js +47 -0
  182. package/serialization/resources/db/resources/user/types/index.d.ts +2 -0
  183. package/serialization/resources/db/resources/user/types/index.js +2 -0
  184. package/api/resources/api/resources/thera/resources/address/resources/index.d.ts +0 -2
  185. package/dist/api/resources/api/resources/thera/resources/address/resources/index.d.ts +0 -2
  186. package/dist/serialization/resources/api/resources/thera/resources/address/resources/index.d.ts +0 -2
  187. package/serialization/resources/api/resources/thera/resources/address/resources/index.d.ts +0 -2
  188. /package/api/resources/api/resources/thera/resources/{address/resources/address/types/Address.js → bank/resources/bankApi/types/SaveWithdrawalMethodResponse.js} +0 -0
  189. /package/api/resources/api/resources/thera/resources/{disbursement/resources/disbursementApi/types/CreateInvoiceDetail.js → bank/resources/bankApi/types/SingleWithdrawalMethodResponse.js} +0 -0
  190. /package/{dist/api/resources/api/resources/thera/resources/address/resources/address/types/Address.js → api/resources/api/resources/thera/resources/bank/resources/bankApi/types/ValidationAsyncParam.js} +0 -0
  191. /package/{dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateInvoiceDetail.js → api/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodField.js} +0 -0
  192. /package/api/resources/api/resources/thera/resources/{address → common}/index.d.ts +0 -0
  193. /package/api/resources/api/resources/thera/resources/{address → common}/index.js +0 -0
  194. /package/api/resources/api/resources/thera/resources/{address/resources/address → common/resources/common}/index.d.ts +0 -0
  195. /package/api/resources/api/resources/thera/resources/{address/resources/address → common/resources/common}/index.js +0 -0
  196. /package/api/resources/api/resources/thera/resources/{address/resources/address → common/resources/common}/types/Address.d.ts +0 -0
  197. /package/api/resources/api/resources/thera/resources/{address/resources/address → common/resources/common}/types/index.d.ts +0 -0
  198. /package/api/resources/api/resources/thera/resources/{address/resources/address → common/resources/common}/types/index.js +0 -0
  199. /package/dist/api/resources/api/resources/thera/resources/{address → common}/index.d.ts +0 -0
  200. /package/dist/api/resources/api/resources/thera/resources/{address → common}/index.js +0 -0
  201. /package/dist/api/resources/api/resources/thera/resources/{address/resources/address → common/resources/common}/index.d.ts +0 -0
  202. /package/dist/api/resources/api/resources/thera/resources/{address/resources/address → common/resources/common}/index.js +0 -0
  203. /package/dist/api/resources/api/resources/thera/resources/{address/resources/address → common/resources/common}/types/Address.d.ts +0 -0
  204. /package/dist/api/resources/api/resources/thera/resources/{address/resources/address → common/resources/common}/types/index.d.ts +0 -0
  205. /package/dist/api/resources/api/resources/thera/resources/{address/resources/address → common/resources/common}/types/index.js +0 -0
  206. /package/dist/serialization/resources/api/resources/thera/resources/{address → common}/index.d.ts +0 -0
  207. /package/dist/serialization/resources/api/resources/thera/resources/{address → common}/index.js +0 -0
  208. /package/dist/serialization/resources/api/resources/thera/resources/{address/resources/address → common/resources/common}/index.d.ts +0 -0
  209. /package/dist/serialization/resources/api/resources/thera/resources/{address/resources/address → common/resources/common}/index.js +0 -0
  210. /package/dist/serialization/resources/api/resources/thera/resources/{address/resources/address → common/resources/common}/types/Address.js +0 -0
  211. /package/dist/serialization/resources/api/resources/thera/resources/{address/resources/address → common/resources/common}/types/index.d.ts +0 -0
  212. /package/dist/serialization/resources/api/resources/thera/resources/{address/resources/address → common/resources/common}/types/index.js +0 -0
  213. /package/serialization/resources/api/resources/thera/resources/{address → common}/index.d.ts +0 -0
  214. /package/serialization/resources/api/resources/thera/resources/{address → common}/index.js +0 -0
  215. /package/serialization/resources/api/resources/thera/resources/{address/resources/address → common/resources/common}/index.d.ts +0 -0
  216. /package/serialization/resources/api/resources/thera/resources/{address/resources/address → common/resources/common}/index.js +0 -0
  217. /package/serialization/resources/api/resources/thera/resources/{address/resources/address → common/resources/common}/types/Address.js +0 -0
  218. /package/serialization/resources/api/resources/thera/resources/{address/resources/address → common/resources/common}/types/index.d.ts +0 -0
  219. /package/serialization/resources/api/resources/thera/resources/{address/resources/address → common/resources/common}/types/index.js +0 -0
@@ -56,7 +56,7 @@ 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.1644",
59
+ "X-Fern-SDK-Version": "0.0.1672",
60
60
  },
61
61
  contentType: "application/json",
62
62
  body: yield serializers.api.services.AttachDocumentToEmploymentRequest.jsonOrThrow(request, {
@@ -97,7 +97,7 @@ 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.1644",
100
+ "X-Fern-SDK-Version": "0.0.1672",
101
101
  },
102
102
  contentType: "application/json",
103
103
  body: yield serializers.api.services.DeleteDocumentFromEmploymentRequest.jsonOrThrow(request, {
@@ -138,7 +138,7 @@ 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.1644",
141
+ "X-Fern-SDK-Version": "0.0.1672",
142
142
  },
143
143
  contentType: "application/json",
144
144
  timeoutMs: 60000,
@@ -181,7 +181,7 @@ class File_ {
181
181
  Authorization: yield this._getAuthorizationHeader(),
182
182
  "X-Fern-Language": "JavaScript",
183
183
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
184
- "X-Fern-SDK-Version": "0.0.1644",
184
+ "X-Fern-SDK-Version": "0.0.1672",
185
185
  },
186
186
  contentType: "application/json",
187
187
  timeoutMs: 60000,
@@ -56,7 +56,7 @@ class Invoices {
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.1644",
59
+ "X-Fern-SDK-Version": "0.0.1672",
60
60
  },
61
61
  contentType: "application/json",
62
62
  body: yield serializers.api.test.VoidInvoiceRequest.jsonOrThrow(request, {
@@ -28,5 +28,7 @@ export declare class BankApi {
28
28
  * Verify Microdeposit for company's bank account during W2 onboarding for Zeal API
29
29
  */
30
30
  verifyMicrodeposit(request: TheraApi.api.thera.bank.VerifyMicrodepositRequest): Promise<void>;
31
+ getSupportedWithdrawalMethods(request: TheraApi.api.thera.bank.WithdrawalMethodsRequest): Promise<TheraApi.api.thera.bank.SingleWithdrawalMethodResponse[]>;
32
+ saveWithdrawalMethod(userId: string, request: TheraApi.api.thera.bank.WithdrawalMethodsRequest): Promise<TheraApi.api.thera.bank.SaveWithdrawalMethodResponse>;
31
33
  protected _getAuthorizationHeader(): Promise<string | undefined>;
32
34
  }
@@ -65,7 +65,7 @@ class BankApi {
65
65
  Authorization: yield this._getAuthorizationHeader(),
66
66
  "X-Fern-Language": "JavaScript",
67
67
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
68
- "X-Fern-SDK-Version": "0.0.1644",
68
+ "X-Fern-SDK-Version": "0.0.1672",
69
69
  },
70
70
  contentType: "application/json",
71
71
  queryParameters: _queryParams,
@@ -112,7 +112,7 @@ class BankApi {
112
112
  Authorization: yield this._getAuthorizationHeader(),
113
113
  "X-Fern-Language": "JavaScript",
114
114
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
115
- "X-Fern-SDK-Version": "0.0.1644",
115
+ "X-Fern-SDK-Version": "0.0.1672",
116
116
  },
117
117
  contentType: "application/json",
118
118
  body: yield serializers.api.thera.bank.VerifyAccountSignupRequest.jsonOrThrow(request, {
@@ -156,7 +156,7 @@ class BankApi {
156
156
  Authorization: yield this._getAuthorizationHeader(),
157
157
  "X-Fern-Language": "JavaScript",
158
158
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
159
- "X-Fern-SDK-Version": "0.0.1644",
159
+ "X-Fern-SDK-Version": "0.0.1672",
160
160
  },
161
161
  contentType: "application/json",
162
162
  timeoutMs: 60000,
@@ -197,7 +197,7 @@ class BankApi {
197
197
  Authorization: yield this._getAuthorizationHeader(),
198
198
  "X-Fern-Language": "JavaScript",
199
199
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
200
- "X-Fern-SDK-Version": "0.0.1644",
200
+ "X-Fern-SDK-Version": "0.0.1672",
201
201
  },
202
202
  contentType: "application/json",
203
203
  body: yield serializers.api.thera.bank.VerifyMicrodepositRequest.jsonOrThrow(request, {
@@ -229,6 +229,98 @@ class BankApi {
229
229
  }
230
230
  });
231
231
  }
232
+ getSupportedWithdrawalMethods(request) {
233
+ return __awaiter(this, void 0, void 0, function* () {
234
+ const _response = yield core.fetcher({
235
+ url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), "worker/supported-withdrawal-methods"),
236
+ method: "POST",
237
+ headers: {
238
+ Authorization: yield this._getAuthorizationHeader(),
239
+ "X-Fern-Language": "JavaScript",
240
+ "X-Fern-SDK-Name": "@thera-hr/api-sdk",
241
+ "X-Fern-SDK-Version": "0.0.1672",
242
+ },
243
+ contentType: "application/json",
244
+ body: yield serializers.api.thera.bank.WithdrawalMethodsRequest.jsonOrThrow(request, {
245
+ unrecognizedObjectKeys: "strip",
246
+ }),
247
+ timeoutMs: 60000,
248
+ });
249
+ if (_response.ok) {
250
+ return yield serializers.api.thera.bank.bankApi.getSupportedWithdrawalMethods.Response.parseOrThrow(_response.body, {
251
+ unrecognizedObjectKeys: "passthrough",
252
+ allowUnrecognizedUnionMembers: true,
253
+ allowUnrecognizedEnumValues: true,
254
+ breadcrumbsPrefix: ["response"],
255
+ });
256
+ }
257
+ if (_response.error.reason === "status-code") {
258
+ throw new errors.TheraApiError({
259
+ statusCode: _response.error.statusCode,
260
+ body: _response.error.body,
261
+ });
262
+ }
263
+ switch (_response.error.reason) {
264
+ case "non-json":
265
+ throw new errors.TheraApiError({
266
+ statusCode: _response.error.statusCode,
267
+ body: _response.error.rawBody,
268
+ });
269
+ case "timeout":
270
+ throw new errors.TheraApiTimeoutError();
271
+ case "unknown":
272
+ throw new errors.TheraApiError({
273
+ message: _response.error.errorMessage,
274
+ });
275
+ }
276
+ });
277
+ }
278
+ saveWithdrawalMethod(userId, request) {
279
+ return __awaiter(this, void 0, void 0, function* () {
280
+ const _response = yield core.fetcher({
281
+ url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `worker/${userId}/withdrawal-method`),
282
+ method: "POST",
283
+ headers: {
284
+ Authorization: yield this._getAuthorizationHeader(),
285
+ "X-Fern-Language": "JavaScript",
286
+ "X-Fern-SDK-Name": "@thera-hr/api-sdk",
287
+ "X-Fern-SDK-Version": "0.0.1672",
288
+ },
289
+ contentType: "application/json",
290
+ body: yield serializers.api.thera.bank.WithdrawalMethodsRequest.jsonOrThrow(request, {
291
+ unrecognizedObjectKeys: "strip",
292
+ }),
293
+ timeoutMs: 60000,
294
+ });
295
+ if (_response.ok) {
296
+ return yield serializers.api.thera.bank.SaveWithdrawalMethodResponse.parseOrThrow(_response.body, {
297
+ unrecognizedObjectKeys: "passthrough",
298
+ allowUnrecognizedUnionMembers: true,
299
+ allowUnrecognizedEnumValues: true,
300
+ breadcrumbsPrefix: ["response"],
301
+ });
302
+ }
303
+ if (_response.error.reason === "status-code") {
304
+ throw new errors.TheraApiError({
305
+ statusCode: _response.error.statusCode,
306
+ body: _response.error.body,
307
+ });
308
+ }
309
+ switch (_response.error.reason) {
310
+ case "non-json":
311
+ throw new errors.TheraApiError({
312
+ statusCode: _response.error.statusCode,
313
+ body: _response.error.rawBody,
314
+ });
315
+ case "timeout":
316
+ throw new errors.TheraApiTimeoutError();
317
+ case "unknown":
318
+ throw new errors.TheraApiError({
319
+ message: _response.error.errorMessage,
320
+ });
321
+ }
322
+ });
323
+ }
232
324
  _getAuthorizationHeader() {
233
325
  return __awaiter(this, void 0, void 0, function* () {
234
326
  const bearer = yield core.Supplier.get(this._options.token);
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as TheraApi from "../../../../../../../../..";
5
+ export interface SaveWithdrawalMethodResponse {
6
+ withdrawalMethods: Record<string, TheraApi.db.WithdrawalMethod>;
7
+ }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as TheraApi from "../../../../../../../../..";
5
+ export interface SingleWithdrawalMethodResponse {
6
+ type: string;
7
+ title: string;
8
+ fields: TheraApi.api.thera.bank.WithdrawalMethodField[];
9
+ }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface ValidationAsyncParam {
5
+ key: string;
6
+ parameterName: string;
7
+ required: boolean;
8
+ }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as TheraApi from "../../../../../../../../..";
5
+ export interface WithdrawalMethodField {
6
+ name: string;
7
+ group: TheraApi.api.thera.bank.WithdrawalMethodGroup[];
8
+ }
@@ -0,0 +1,18 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as TheraApi from "../../../../../../../../..";
5
+ export interface WithdrawalMethodGroup {
6
+ key: string;
7
+ name: string;
8
+ type: string;
9
+ refreshRequirementsOnChange: boolean;
10
+ required: boolean;
11
+ displayFormat: string;
12
+ example: string;
13
+ minLength: number;
14
+ maxLength: number;
15
+ validationRegexp: string;
16
+ validationAsync: TheraApi.api.thera.bank.WithdrawalMethodValidationAsync;
17
+ valuesAllowed: TheraApi.api.thera.bank.WithdrawalMethodValuesAllowed[];
18
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as TheraApi from "../../../../../../../../..";
5
+ export interface WithdrawalMethodValidationAsync {
6
+ key: string;
7
+ params: TheraApi.api.thera.bank.ValidationAsyncParam[];
8
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface WithdrawalMethodValuesAllowed {
5
+ key: string;
6
+ name: string;
7
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as TheraApi from "../../../../../../../../..";
5
+ export interface WithdrawalMethodsRequest {
6
+ currency: string;
7
+ recipientAddress: TheraApi.api.thera.common.Address;
8
+ type: string;
9
+ accountHolderName: string;
10
+ details: Record<string, string>;
11
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -2,3 +2,11 @@ export * from "./VerifyMicrodepositRequest";
2
2
  export * from "./VerifyAccountSignupRequest";
3
3
  export * from "./GetSandboxPublicKey";
4
4
  export * from "./GetBankAccountSignupKey";
5
+ export * from "./WithdrawalMethodsRequest";
6
+ export * from "./SingleWithdrawalMethodResponse";
7
+ export * from "./WithdrawalMethodField";
8
+ export * from "./WithdrawalMethodGroup";
9
+ export * from "./WithdrawalMethodValidationAsync";
10
+ export * from "./ValidationAsyncParam";
11
+ export * from "./WithdrawalMethodValuesAllowed";
12
+ export * from "./SaveWithdrawalMethodResponse";
@@ -18,3 +18,11 @@ __exportStar(require("./VerifyMicrodepositRequest"), exports);
18
18
  __exportStar(require("./VerifyAccountSignupRequest"), exports);
19
19
  __exportStar(require("./GetSandboxPublicKey"), exports);
20
20
  __exportStar(require("./GetBankAccountSignupKey"), exports);
21
+ __exportStar(require("./WithdrawalMethodsRequest"), exports);
22
+ __exportStar(require("./SingleWithdrawalMethodResponse"), exports);
23
+ __exportStar(require("./WithdrawalMethodField"), exports);
24
+ __exportStar(require("./WithdrawalMethodGroup"), exports);
25
+ __exportStar(require("./WithdrawalMethodValidationAsync"), exports);
26
+ __exportStar(require("./ValidationAsyncParam"), exports);
27
+ __exportStar(require("./WithdrawalMethodValuesAllowed"), exports);
28
+ __exportStar(require("./SaveWithdrawalMethodResponse"), exports);
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export * as common from "./common";
2
+ export * from "./common/types";
@@ -26,6 +26,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
26
26
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.address = void 0;
30
- exports.address = __importStar(require("./address"));
31
- __exportStar(require("./address/types"), exports);
29
+ exports.common = void 0;
30
+ exports.common = __importStar(require("./common"));
31
+ __exportStar(require("./common/types"), exports);
@@ -65,7 +65,7 @@ class CompanyApi {
65
65
  Authorization: yield this._getAuthorizationHeader(),
66
66
  "X-Fern-Language": "JavaScript",
67
67
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
68
- "X-Fern-SDK-Version": "0.0.1644",
68
+ "X-Fern-SDK-Version": "0.0.1672",
69
69
  },
70
70
  contentType: "application/json",
71
71
  queryParameters: _queryParams,
@@ -59,7 +59,7 @@ class CompanyW2PayrollApi {
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.1644",
62
+ "X-Fern-SDK-Version": "0.0.1672",
63
63
  },
64
64
  contentType: "application/json",
65
65
  body: yield serializers.api.thera.company.OnboardW2PayrollRequest.jsonOrThrow(request, {
@@ -59,7 +59,7 @@ class DisbursementApi {
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.1644",
62
+ "X-Fern-SDK-Version": "0.0.1672",
63
63
  },
64
64
  contentType: "application/json",
65
65
  body: yield serializers.api.thera.disbursement.CreateDisbursementRequest.jsonOrThrow(request, {
@@ -103,7 +103,7 @@ class DisbursementApi {
103
103
  Authorization: yield this._getAuthorizationHeader(),
104
104
  "X-Fern-Language": "JavaScript",
105
105
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
106
- "X-Fern-SDK-Version": "0.0.1644",
106
+ "X-Fern-SDK-Version": "0.0.1672",
107
107
  },
108
108
  contentType: "application/json",
109
109
  timeoutMs: 60000,
@@ -2,12 +2,15 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as TheraApi from "../../../../../../../../..";
5
- export declare type CreateDisbursementDetail = TheraApi.api.thera.disbursement.CreateDisbursementDetail.Invoice | TheraApi.api.thera.disbursement.CreateDisbursementDetail.Expense;
5
+ export declare type CreateDisbursementDetail = TheraApi.api.thera.disbursement.CreateDisbursementDetail.OnCycleInvoice | TheraApi.api.thera.disbursement.CreateDisbursementDetail.Expense | TheraApi.api.thera.disbursement.CreateDisbursementDetail.OffCycleInvoice;
6
6
  export declare namespace CreateDisbursementDetail {
7
- interface Invoice extends TheraApi.api.thera.disbursement.CreateInvoiceDetail {
8
- type: "invoice";
7
+ interface OnCycleInvoice extends TheraApi.api.thera.disbursement.CreateOnCycleInvoiceDetail {
8
+ type: "onCycleInvoice";
9
9
  }
10
10
  interface Expense extends TheraApi.api.thera.disbursement.CreateExpenseDetail {
11
11
  type: "expense";
12
12
  }
13
+ interface OffCycleInvoice extends TheraApi.api.thera.disbursement.CreateOffCycleInvoiceDetail {
14
+ type: "offCycleInvoice";
15
+ }
13
16
  }
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * The date for this invoice is auto-generated in BE.
6
+ */
7
+ export interface CreateOffCycleInvoiceDetail {
8
+ description?: string;
9
+ uploadedFileId?: string;
10
+ amount: number;
11
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -2,11 +2,15 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as TheraApi from "../../../../../../../../..";
5
- export interface CreateInvoiceDetail {
5
+ export interface CreateOnCycleInvoiceDetail {
6
6
  /** Null/empty if doesn't exist, for example in Fixed Rate contract */
7
7
  workUnit?: TheraApi.api.thera.disbursement.InvoiceWorkUnit;
8
8
  rate: number;
9
9
  amount: number;
10
+ /** Represents start date of a cycle */
10
11
  startDate: string;
12
+ /** Represents end date of a cycle */
11
13
  endDate: string;
14
+ /** This represents the Submission Date or any selectable single date. Present if it's an one-off invoice */
15
+ date?: string;
12
16
  }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +1,7 @@
1
1
  export * from "./InvoiceWorkUnitType";
2
2
  export * from "./InvoiceWorkUnit";
3
- export * from "./CreateInvoiceDetail";
3
+ export * from "./CreateOnCycleInvoiceDetail";
4
4
  export * from "./CreateExpenseDetail";
5
+ export * from "./CreateOffCycleInvoiceDetail";
5
6
  export * from "./CreateDisbursementDetail";
6
7
  export * from "./CreateDisbursementRequest";
@@ -16,7 +16,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./InvoiceWorkUnitType"), exports);
18
18
  __exportStar(require("./InvoiceWorkUnit"), exports);
19
- __exportStar(require("./CreateInvoiceDetail"), exports);
19
+ __exportStar(require("./CreateOnCycleInvoiceDetail"), exports);
20
20
  __exportStar(require("./CreateExpenseDetail"), exports);
21
+ __exportStar(require("./CreateOffCycleInvoiceDetail"), exports);
21
22
  __exportStar(require("./CreateDisbursementDetail"), exports);
22
23
  __exportStar(require("./CreateDisbursementRequest"), exports);
@@ -60,7 +60,7 @@ class DisbursementWebhookApi {
60
60
  Authorization: yield this._getAuthorizationHeader(),
61
61
  "X-Fern-Language": "JavaScript",
62
62
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
63
- "X-Fern-SDK-Version": "0.0.1644",
63
+ "X-Fern-SDK-Version": "0.0.1672",
64
64
  "Thera-Webhook-Signature-Header": theraWebhookSignatureHeader,
65
65
  },
66
66
  contentType: "application/json",
@@ -13,11 +13,11 @@ export declare class EmploymentApi {
13
13
  protected readonly _options: EmploymentApi.Options;
14
14
  constructor(_options: EmploymentApi.Options);
15
15
  /**
16
- * [Staging] Get estimate for this contract (cycle date, list of cycles, etc) based on provided paycycle
16
+ * Get estimate for this contract (cycle date, list of cycles, etc) based on provided paycycle
17
17
  */
18
18
  estimateContract(request: TheraApi.api.thera.employment.CreateContractEstimateRequest): Promise<TheraApi.api.thera.employment.CreateContractEstimateResponse>;
19
19
  /**
20
- * [Staging]. Get Current Cycle for this contract
20
+ * Get Current Cycle for this contract
21
21
  */
22
22
  getCurrentPayCycle(contractId: string): Promise<TheraApi.api.thera.employment.GetCurrentPayCycleResponse>;
23
23
  protected _getAuthorizationHeader(): Promise<string | undefined>;
@@ -48,7 +48,7 @@ class EmploymentApi {
48
48
  this._options = _options;
49
49
  }
50
50
  /**
51
- * [Staging] Get estimate for this contract (cycle date, list of cycles, etc) based on provided paycycle
51
+ * Get estimate for this contract (cycle date, list of cycles, etc) based on provided paycycle
52
52
  */
53
53
  estimateContract(request) {
54
54
  return __awaiter(this, void 0, void 0, function* () {
@@ -59,7 +59,7 @@ class EmploymentApi {
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.1644",
62
+ "X-Fern-SDK-Version": "0.0.1672",
63
63
  },
64
64
  contentType: "application/json",
65
65
  body: yield serializers.api.thera.employment.CreateContractEstimateRequest.jsonOrThrow(request, {
@@ -97,7 +97,7 @@ class EmploymentApi {
97
97
  });
98
98
  }
99
99
  /**
100
- * [Staging]. Get Current Cycle for this contract
100
+ * Get Current Cycle for this contract
101
101
  */
102
102
  getCurrentPayCycle(contractId) {
103
103
  return __awaiter(this, void 0, void 0, function* () {
@@ -108,7 +108,7 @@ class EmploymentApi {
108
108
  Authorization: yield this._getAuthorizationHeader(),
109
109
  "X-Fern-Language": "JavaScript",
110
110
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
111
- "X-Fern-SDK-Version": "0.0.1644",
111
+ "X-Fern-SDK-Version": "0.0.1672",
112
112
  },
113
113
  contentType: "application/json",
114
114
  timeoutMs: 60000,
@@ -1,5 +1,5 @@
1
- export * as address from "./address";
2
1
  export * as bank from "./bank";
2
+ export * as common from "./common";
3
3
  export * as company from "./company";
4
4
  export * as disbursement from "./disbursement";
5
5
  export * as employment from "./employment";
@@ -23,9 +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.payroll = exports.employment = exports.disbursement = exports.company = exports.bank = exports.address = void 0;
27
- exports.address = __importStar(require("./address"));
26
+ exports.payroll = exports.employment = exports.disbursement = exports.company = exports.common = exports.bank = void 0;
28
27
  exports.bank = __importStar(require("./bank"));
28
+ exports.common = __importStar(require("./common"));
29
29
  exports.company = __importStar(require("./company"));
30
30
  exports.disbursement = __importStar(require("./disbursement"));
31
31
  exports.employment = __importStar(require("./employment"));
@@ -59,7 +59,7 @@ class OncycleApi {
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.1644",
62
+ "X-Fern-SDK-Version": "0.0.1672",
63
63
  },
64
64
  contentType: "application/json",
65
65
  timeoutMs: 60000,
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as TheraApi from "../../../../..";
5
+ export interface BankTransfer {
6
+ recipientAddress: TheraApi.api.thera.common.Address;
7
+ currency: string;
8
+ methodType: string;
9
+ accountHolderName: string;
10
+ details: Record<string, string>;
11
+ wiseRecipientAccountId: number;
12
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -7,7 +7,8 @@ export interface EmployeeInformation {
7
7
  onboardingStatus: TheraApi.db.EmployeeOnboardingStatus;
8
8
  employeeOnboardingStatus: TheraApi.db.EmployeeOnboardingStatus;
9
9
  country: string;
10
- address: TheraApi.api.thera.address.Address;
10
+ address: TheraApi.api.thera.common.Address;
11
11
  complianceInformation: TheraApi.db.ComplianceInformation;
12
12
  w8BenFileS3Key: string;
13
+ withdrawalMethods: Record<string, TheraApi.db.WithdrawalMethod>;
13
14
  }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as TheraApi from "../../../../..";
5
+ export declare type WithdrawalMethod = TheraApi.db.WithdrawalMethod.BankTransfer;
6
+ export declare namespace WithdrawalMethod {
7
+ interface BankTransfer extends TheraApi.db.BankTransfer {
8
+ type: "bankTransfer";
9
+ }
10
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });