@thera-hr/api-sdk 0.0.2732 → 0.0.2737

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 (215) hide show
  1. package/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +1 -1
  2. package/api/resources/api/resources/services/resources/file/client/Client.js +4 -4
  3. package/api/resources/api/resources/test/resources/invoices/client/Client.js +1 -1
  4. package/api/resources/api/resources/thera/client/Client.d.ts +3 -0
  5. package/api/resources/api/resources/thera/client/Client.js +9 -4
  6. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.d.ts +2 -1
  7. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +64 -14
  8. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/GetWithdrawalMethodCurrenciesRequest.d.ts +7 -0
  9. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/GetWithdrawalMethodCurrenciesRequest.js +5 -0
  10. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/SetAutoWithdrawalRequest.d.ts +6 -0
  11. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/SetAutoWithdrawalRequest.js +5 -0
  12. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/index.d.ts +2 -0
  13. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/SetAutoWithdrawalResponse.d.ts +5 -0
  14. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/SetAutoWithdrawalResponse.js +5 -0
  15. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodsRequest.d.ts +2 -0
  16. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/WorkerWithdrawalTransaction.d.ts +3 -0
  17. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +1 -0
  18. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +1 -0
  19. package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +1 -1
  20. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyApiResponse.d.ts +1 -0
  21. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateCompanyRequest.d.ts +1 -0
  22. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateEmployment.d.ts +10 -0
  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/disbursementWebhookApi/client/Client.js +1 -1
  26. package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +3 -3
  27. package/api/resources/api/resources/thera/resources/index.d.ts +1 -0
  28. package/api/resources/api/resources/thera/resources/index.js +2 -1
  29. package/api/resources/api/resources/thera/resources/misc/client/Client.d.ts +17 -0
  30. package/api/resources/api/resources/thera/resources/misc/client/Client.js +17 -0
  31. package/api/resources/api/resources/thera/resources/misc/client/index.d.ts +1 -0
  32. package/api/resources/api/resources/thera/resources/misc/client/index.js +2 -0
  33. package/api/resources/api/resources/thera/resources/misc/index.d.ts +2 -0
  34. package/api/resources/api/resources/thera/resources/misc/index.js +18 -0
  35. package/api/resources/api/resources/thera/resources/misc/resources/index.d.ts +3 -0
  36. package/api/resources/api/resources/thera/resources/misc/resources/index.js +32 -0
  37. package/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.d.ts +21 -0
  38. package/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +109 -0
  39. package/api/resources/api/resources/thera/resources/misc/resources/misc/client/index.d.ts +1 -0
  40. package/api/resources/api/resources/thera/resources/misc/resources/misc/client/index.js +17 -0
  41. package/api/resources/api/resources/thera/resources/misc/resources/misc/client/requests/DailyCronRequest.d.ts +6 -0
  42. package/api/resources/api/resources/thera/resources/misc/resources/misc/client/requests/DailyCronRequest.js +5 -0
  43. package/api/resources/api/resources/thera/resources/misc/resources/misc/client/requests/index.d.ts +1 -0
  44. package/api/resources/api/resources/thera/resources/misc/resources/misc/client/requests/index.js +2 -0
  45. package/api/resources/api/resources/thera/resources/misc/resources/misc/index.d.ts +2 -0
  46. package/api/resources/api/resources/thera/resources/misc/resources/misc/index.js +18 -0
  47. package/api/resources/api/resources/thera/resources/misc/resources/misc/types/AutoWithdrawalResults.d.ts +8 -0
  48. package/api/resources/api/resources/thera/resources/misc/resources/misc/types/AutoWithdrawalResults.js +5 -0
  49. package/api/resources/api/resources/thera/resources/misc/resources/misc/types/DailyCronResponse.d.ts +7 -0
  50. package/api/resources/api/resources/thera/resources/misc/resources/misc/types/DailyCronResponse.js +5 -0
  51. package/api/resources/api/resources/thera/resources/misc/resources/misc/types/TriggeredWithdrawal.d.ts +11 -0
  52. package/api/resources/api/resources/thera/resources/misc/resources/misc/types/TriggeredWithdrawal.js +5 -0
  53. package/api/resources/api/resources/thera/resources/misc/resources/misc/types/index.d.ts +3 -0
  54. package/api/resources/api/resources/thera/resources/misc/resources/misc/types/index.js +19 -0
  55. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +1 -1
  56. package/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +1 -1
  57. package/api/resources/db/resources/employment/types/Employment.d.ts +2 -0
  58. package/api/resources/db/resources/user/types/BankTransfer.d.ts +1 -0
  59. package/api/resources/db/resources/user/types/CompanySettings.d.ts +1 -0
  60. package/api/resources/db/resources/user/types/WithdrawalMethodAccountType.d.ts +9 -0
  61. package/api/resources/db/resources/user/types/WithdrawalMethodAccountType.js +11 -0
  62. package/api/resources/db/resources/user/types/index.d.ts +1 -0
  63. package/api/resources/db/resources/user/types/index.js +1 -0
  64. package/dist/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +1 -1
  65. package/dist/api/resources/api/resources/services/resources/file/client/Client.js +4 -4
  66. package/dist/api/resources/api/resources/test/resources/invoices/client/Client.js +1 -1
  67. package/dist/api/resources/api/resources/thera/client/Client.d.ts +3 -0
  68. package/dist/api/resources/api/resources/thera/client/Client.js +9 -4
  69. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.d.ts +2 -1
  70. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +64 -14
  71. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/GetWithdrawalMethodCurrenciesRequest.d.ts +7 -0
  72. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/GetWithdrawalMethodCurrenciesRequest.js +5 -0
  73. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/SetAutoWithdrawalRequest.d.ts +6 -0
  74. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/SetAutoWithdrawalRequest.js +5 -0
  75. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/index.d.ts +2 -0
  76. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/SetAutoWithdrawalResponse.d.ts +5 -0
  77. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/SetAutoWithdrawalResponse.js +5 -0
  78. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodsRequest.d.ts +2 -0
  79. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/WorkerWithdrawalTransaction.d.ts +3 -0
  80. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +1 -0
  81. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +1 -0
  82. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +1 -1
  83. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyApiResponse.d.ts +1 -0
  84. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateCompanyRequest.d.ts +1 -0
  85. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateEmployment.d.ts +10 -0
  86. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +1 -1
  87. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +2 -2
  88. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
  89. package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +3 -3
  90. package/dist/api/resources/api/resources/thera/resources/index.d.ts +1 -0
  91. package/dist/api/resources/api/resources/thera/resources/index.js +2 -1
  92. package/dist/api/resources/api/resources/thera/resources/misc/client/Client.d.ts +17 -0
  93. package/dist/api/resources/api/resources/thera/resources/misc/client/Client.js +17 -0
  94. package/dist/api/resources/api/resources/thera/resources/misc/client/index.d.ts +1 -0
  95. package/dist/api/resources/api/resources/thera/resources/misc/client/index.js +2 -0
  96. package/dist/api/resources/api/resources/thera/resources/misc/index.d.ts +2 -0
  97. package/dist/api/resources/api/resources/thera/resources/misc/index.js +18 -0
  98. package/dist/api/resources/api/resources/thera/resources/misc/resources/index.d.ts +3 -0
  99. package/dist/api/resources/api/resources/thera/resources/misc/resources/index.js +32 -0
  100. package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.d.ts +21 -0
  101. package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +109 -0
  102. package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/index.d.ts +1 -0
  103. package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/index.js +17 -0
  104. package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/requests/DailyCronRequest.d.ts +6 -0
  105. package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/requests/DailyCronRequest.js +5 -0
  106. package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/requests/index.d.ts +1 -0
  107. package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/requests/index.js +2 -0
  108. package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/index.d.ts +2 -0
  109. package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/index.js +18 -0
  110. package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/types/AutoWithdrawalResults.d.ts +8 -0
  111. package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/types/AutoWithdrawalResults.js +5 -0
  112. package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/types/DailyCronResponse.d.ts +7 -0
  113. package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/types/DailyCronResponse.js +5 -0
  114. package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/types/TriggeredWithdrawal.d.ts +11 -0
  115. package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/types/TriggeredWithdrawal.js +5 -0
  116. package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/types/index.d.ts +3 -0
  117. package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/types/index.js +19 -0
  118. package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +1 -1
  119. package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +1 -1
  120. package/dist/api/resources/db/resources/employment/types/Employment.d.ts +2 -0
  121. package/dist/api/resources/db/resources/user/types/BankTransfer.d.ts +1 -0
  122. package/dist/api/resources/db/resources/user/types/CompanySettings.d.ts +1 -0
  123. package/dist/api/resources/db/resources/user/types/WithdrawalMethodAccountType.d.ts +9 -0
  124. package/dist/api/resources/db/resources/user/types/WithdrawalMethodAccountType.js +11 -0
  125. package/dist/api/resources/db/resources/user/types/index.d.ts +1 -0
  126. package/dist/api/resources/db/resources/user/types/index.js +1 -0
  127. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/SetAutoWithdrawalRequest.d.ts +12 -0
  128. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/SetAutoWithdrawalRequest.js +33 -0
  129. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/index.d.ts +1 -0
  130. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/index.js +3 -1
  131. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/SetAutoWithdrawalResponse.d.ts +11 -0
  132. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/SetAutoWithdrawalResponse.js +31 -0
  133. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodsRequest.d.ts +1 -0
  134. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodsRequest.js +3 -0
  135. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/WorkerWithdrawalTransaction.d.ts +2 -0
  136. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/WorkerWithdrawalTransaction.js +11 -0
  137. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +1 -0
  138. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +1 -0
  139. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyApiResponse.d.ts +1 -0
  140. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyApiResponse.js +1 -0
  141. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateCompanyRequest.d.ts +1 -0
  142. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateCompanyRequest.js +1 -0
  143. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateEmployment.d.ts +2 -0
  144. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateEmployment.js +2 -0
  145. package/dist/serialization/resources/api/resources/thera/resources/index.d.ts +1 -0
  146. package/dist/serialization/resources/api/resources/thera/resources/index.js +2 -1
  147. package/dist/serialization/resources/api/resources/thera/resources/misc/index.d.ts +1 -0
  148. package/dist/serialization/resources/api/resources/thera/resources/misc/index.js +17 -0
  149. package/dist/serialization/resources/api/resources/thera/resources/misc/resources/index.d.ts +2 -0
  150. package/dist/serialization/resources/api/resources/thera/resources/misc/resources/index.js +31 -0
  151. package/dist/serialization/resources/api/resources/thera/resources/misc/resources/misc/index.d.ts +1 -0
  152. package/dist/serialization/resources/api/resources/thera/resources/misc/resources/misc/index.js +17 -0
  153. package/dist/serialization/resources/api/resources/thera/resources/misc/resources/misc/types/AutoWithdrawalResults.d.ts +13 -0
  154. package/dist/serialization/resources/api/resources/thera/resources/misc/resources/misc/types/AutoWithdrawalResults.js +43 -0
  155. package/dist/serialization/resources/api/resources/thera/resources/misc/resources/misc/types/DailyCronResponse.d.ts +12 -0
  156. package/dist/serialization/resources/api/resources/thera/resources/misc/resources/misc/types/DailyCronResponse.js +42 -0
  157. package/dist/serialization/resources/api/resources/thera/resources/misc/resources/misc/types/TriggeredWithdrawal.d.ts +17 -0
  158. package/dist/serialization/resources/api/resources/thera/resources/misc/resources/misc/types/TriggeredWithdrawal.js +38 -0
  159. package/dist/serialization/resources/api/resources/thera/resources/misc/resources/misc/types/index.d.ts +3 -0
  160. package/dist/serialization/resources/api/resources/thera/resources/misc/resources/misc/types/index.js +19 -0
  161. package/dist/serialization/resources/db/resources/employment/types/Employment.d.ts +2 -0
  162. package/dist/serialization/resources/db/resources/employment/types/Employment.js +2 -0
  163. package/dist/serialization/resources/db/resources/user/types/BankTransfer.d.ts +1 -0
  164. package/dist/serialization/resources/db/resources/user/types/BankTransfer.js +1 -0
  165. package/dist/serialization/resources/db/resources/user/types/CompanySettings.d.ts +1 -0
  166. package/dist/serialization/resources/db/resources/user/types/CompanySettings.js +1 -0
  167. package/dist/serialization/resources/db/resources/user/types/WithdrawalMethodAccountType.d.ts +10 -0
  168. package/dist/serialization/resources/db/resources/user/types/WithdrawalMethodAccountType.js +31 -0
  169. package/dist/serialization/resources/db/resources/user/types/index.d.ts +1 -0
  170. package/dist/serialization/resources/db/resources/user/types/index.js +1 -0
  171. package/package.json +1 -1
  172. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/SetAutoWithdrawalRequest.d.ts +12 -0
  173. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/SetAutoWithdrawalRequest.js +33 -0
  174. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/index.d.ts +1 -0
  175. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/index.js +3 -1
  176. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/SetAutoWithdrawalResponse.d.ts +11 -0
  177. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/SetAutoWithdrawalResponse.js +31 -0
  178. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodsRequest.d.ts +1 -0
  179. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/WithdrawalMethodsRequest.js +3 -0
  180. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/WorkerWithdrawalTransaction.d.ts +2 -0
  181. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/WorkerWithdrawalTransaction.js +11 -0
  182. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +1 -0
  183. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +1 -0
  184. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyApiResponse.d.ts +1 -0
  185. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyApiResponse.js +1 -0
  186. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateCompanyRequest.d.ts +1 -0
  187. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateCompanyRequest.js +1 -0
  188. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateEmployment.d.ts +2 -0
  189. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateEmployment.js +2 -0
  190. package/serialization/resources/api/resources/thera/resources/index.d.ts +1 -0
  191. package/serialization/resources/api/resources/thera/resources/index.js +2 -1
  192. package/serialization/resources/api/resources/thera/resources/misc/index.d.ts +1 -0
  193. package/serialization/resources/api/resources/thera/resources/misc/index.js +17 -0
  194. package/serialization/resources/api/resources/thera/resources/misc/resources/index.d.ts +2 -0
  195. package/serialization/resources/api/resources/thera/resources/misc/resources/index.js +31 -0
  196. package/serialization/resources/api/resources/thera/resources/misc/resources/misc/index.d.ts +1 -0
  197. package/serialization/resources/api/resources/thera/resources/misc/resources/misc/index.js +17 -0
  198. package/serialization/resources/api/resources/thera/resources/misc/resources/misc/types/AutoWithdrawalResults.d.ts +13 -0
  199. package/serialization/resources/api/resources/thera/resources/misc/resources/misc/types/AutoWithdrawalResults.js +43 -0
  200. package/serialization/resources/api/resources/thera/resources/misc/resources/misc/types/DailyCronResponse.d.ts +12 -0
  201. package/serialization/resources/api/resources/thera/resources/misc/resources/misc/types/DailyCronResponse.js +42 -0
  202. package/serialization/resources/api/resources/thera/resources/misc/resources/misc/types/TriggeredWithdrawal.d.ts +17 -0
  203. package/serialization/resources/api/resources/thera/resources/misc/resources/misc/types/TriggeredWithdrawal.js +38 -0
  204. package/serialization/resources/api/resources/thera/resources/misc/resources/misc/types/index.d.ts +3 -0
  205. package/serialization/resources/api/resources/thera/resources/misc/resources/misc/types/index.js +19 -0
  206. package/serialization/resources/db/resources/employment/types/Employment.d.ts +2 -0
  207. package/serialization/resources/db/resources/employment/types/Employment.js +2 -0
  208. package/serialization/resources/db/resources/user/types/BankTransfer.d.ts +1 -0
  209. package/serialization/resources/db/resources/user/types/BankTransfer.js +1 -0
  210. package/serialization/resources/db/resources/user/types/CompanySettings.d.ts +1 -0
  211. package/serialization/resources/db/resources/user/types/CompanySettings.js +1 -0
  212. package/serialization/resources/db/resources/user/types/WithdrawalMethodAccountType.d.ts +10 -0
  213. package/serialization/resources/db/resources/user/types/WithdrawalMethodAccountType.js +31 -0
  214. package/serialization/resources/db/resources/user/types/index.d.ts +1 -0
  215. package/serialization/resources/db/resources/user/types/index.js +1 -0
@@ -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.misc = void 0;
30
+ exports.misc = __importStar(require("./misc"));
31
+ __exportStar(require("./misc/types"), exports);
@@ -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);
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../../../../../..";
5
+ import * as TheraApi from "../../../../../../../../../../api";
6
+ import * as core from "../../../../../../../../../../core";
7
+ export declare const AutoWithdrawalResults: core.serialization.ObjectSchema<serializers.api.thera.misc.AutoWithdrawalResults.Raw, TheraApi.api.thera.misc.AutoWithdrawalResults>;
8
+ export declare namespace AutoWithdrawalResults {
9
+ interface Raw {
10
+ succeededWithdrawals: serializers.api.thera.misc.TriggeredWithdrawal.Raw[];
11
+ failedWithdrawals: serializers.api.thera.misc.TriggeredWithdrawal.Raw[];
12
+ }
13
+ }
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
29
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
30
+ return new (P || (P = Promise))(function (resolve, reject) {
31
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
32
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
33
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
34
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
35
+ });
36
+ };
37
+ Object.defineProperty(exports, "__esModule", { value: true });
38
+ exports.AutoWithdrawalResults = void 0;
39
+ const core = __importStar(require("../../../../../../../../../../core"));
40
+ exports.AutoWithdrawalResults = core.serialization.object({
41
+ succeededWithdrawals: core.serialization.list(core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../../../../../..")))).api.thera.misc.TriggeredWithdrawal; }))),
42
+ failedWithdrawals: core.serialization.list(core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../../../../../..")))).api.thera.misc.TriggeredWithdrawal; }))),
43
+ });
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../../../../../..";
5
+ import * as TheraApi from "../../../../../../../../../../api";
6
+ import * as core from "../../../../../../../../../../core";
7
+ export declare const DailyCronResponse: core.serialization.ObjectSchema<serializers.api.thera.misc.DailyCronResponse.Raw, TheraApi.api.thera.misc.DailyCronResponse>;
8
+ export declare namespace DailyCronResponse {
9
+ interface Raw {
10
+ autoWithdrawalResult: serializers.api.thera.misc.AutoWithdrawalResults.Raw;
11
+ }
12
+ }
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
29
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
30
+ return new (P || (P = Promise))(function (resolve, reject) {
31
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
32
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
33
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
34
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
35
+ });
36
+ };
37
+ Object.defineProperty(exports, "__esModule", { value: true });
38
+ exports.DailyCronResponse = void 0;
39
+ const core = __importStar(require("../../../../../../../../../../core"));
40
+ exports.DailyCronResponse = core.serialization.object({
41
+ autoWithdrawalResult: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../../../../../..")))).api.thera.misc.AutoWithdrawalResults; })),
42
+ });
@@ -0,0 +1,17 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../../../../../..";
5
+ import * as TheraApi from "../../../../../../../../../../api";
6
+ import * as core from "../../../../../../../../../../core";
7
+ export declare const TriggeredWithdrawal: core.serialization.ObjectSchema<serializers.api.thera.misc.TriggeredWithdrawal.Raw, TheraApi.api.thera.misc.TriggeredWithdrawal>;
8
+ export declare namespace TriggeredWithdrawal {
9
+ interface Raw {
10
+ userId: string;
11
+ amount: number;
12
+ currency: string;
13
+ companyId: string;
14
+ withdrawalMethodId: string;
15
+ errorDetails: Record<string, unknown>;
16
+ }
17
+ }
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.TriggeredWithdrawal = void 0;
30
+ const core = __importStar(require("../../../../../../../../../../core"));
31
+ exports.TriggeredWithdrawal = core.serialization.object({
32
+ userId: core.serialization.string(),
33
+ amount: core.serialization.number(),
34
+ currency: core.serialization.string(),
35
+ companyId: core.serialization.string(),
36
+ withdrawalMethodId: core.serialization.string(),
37
+ errorDetails: core.serialization.record(core.serialization.string(), core.serialization.unknown()),
38
+ });
@@ -0,0 +1,3 @@
1
+ export * from "./DailyCronResponse";
2
+ export * from "./AutoWithdrawalResults";
3
+ export * from "./TriggeredWithdrawal";
@@ -0,0 +1,19 @@
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("./DailyCronResponse"), exports);
18
+ __exportStar(require("./AutoWithdrawalResults"), exports);
19
+ __exportStar(require("./TriggeredWithdrawal"), exports);
@@ -29,5 +29,7 @@ export declare namespace Employment {
29
29
  documents: serializers.db.EmploymentDocuments.Raw;
30
30
  payCycle: serializers.model.thera.PayCycle.Raw;
31
31
  contractType: serializers.model.thera.ContractType.Raw;
32
+ workerCanSubmitWork?: boolean | null;
33
+ clientCanSubmitWork?: boolean | null;
32
34
  }
33
35
  }
@@ -60,4 +60,6 @@ exports.Employment = core.serialization.object({
60
60
  documents: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../..")))).db.EmploymentDocuments; })),
61
61
  payCycle: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../..")))).model.thera.PayCycle; })),
62
62
  contractType: core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../..")))).model.thera.ContractType; })),
63
+ workerCanSubmitWork: core.serialization.boolean().optional(),
64
+ clientCanSubmitWork: core.serialization.boolean().optional(),
63
65
  });
@@ -14,5 +14,6 @@ export declare namespace BankTransfer {
14
14
  accountHolderName: string;
15
15
  details: Record<string, string>;
16
16
  wiseRecipientAccountId: number;
17
+ accountType: serializers.db.WithdrawalMethodAccountType.Raw;
17
18
  }
18
19
  }
@@ -45,4 +45,5 @@ exports.BankTransfer = core.serialization.object({
45
45
  accountHolderName: core.serialization.string(),
46
46
  details: core.serialization.record(core.serialization.string(), core.serialization.string()),
47
47
  wiseRecipientAccountId: core.serialization.number(),
48
+ accountType: core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../..")))).db.WithdrawalMethodAccountType; })),
48
49
  });
@@ -8,5 +8,6 @@ export declare const CompanySettings: core.serialization.ObjectSchema<serializer
8
8
  export declare namespace CompanySettings {
9
9
  interface Raw {
10
10
  accountIdsByCurrency: Record<string, string>;
11
+ autoWithdrawalsOn: boolean;
11
12
  }
12
13
  }
@@ -30,4 +30,5 @@ exports.CompanySettings = void 0;
30
30
  const core = __importStar(require("../../../../../../core"));
31
31
  exports.CompanySettings = core.serialization.object({
32
32
  accountIdsByCurrency: core.serialization.record(core.serialization.string(), core.serialization.string()),
33
+ autoWithdrawalsOn: core.serialization.boolean(),
33
34
  });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../..";
5
+ import * as TheraApi from "../../../../../../api";
6
+ import * as core from "../../../../../../core";
7
+ export declare const WithdrawalMethodAccountType: core.serialization.Schema<serializers.db.WithdrawalMethodAccountType.Raw, TheraApi.db.WithdrawalMethodAccountType>;
8
+ export declare namespace WithdrawalMethodAccountType {
9
+ type Raw = "BANK_TRANSFER" | "WISE" | "PAYONEER";
10
+ }
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.WithdrawalMethodAccountType = void 0;
30
+ const core = __importStar(require("../../../../../../core"));
31
+ exports.WithdrawalMethodAccountType = core.serialization.enum_(["BANK_TRANSFER", "WISE", "PAYONEER"]);
@@ -11,4 +11,5 @@ export * from "./AiPriseVerificationStatus";
11
11
  export * from "./CompanySettings";
12
12
  export * from "./WithdrawalMethod";
13
13
  export * from "./BankTransfer";
14
+ export * from "./WithdrawalMethodAccountType";
14
15
  export * from "./User";
@@ -27,4 +27,5 @@ __exportStar(require("./AiPriseVerificationStatus"), exports);
27
27
  __exportStar(require("./CompanySettings"), exports);
28
28
  __exportStar(require("./WithdrawalMethod"), exports);
29
29
  __exportStar(require("./BankTransfer"), exports);
30
+ __exportStar(require("./WithdrawalMethodAccountType"), exports);
30
31
  __exportStar(require("./User"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thera-hr/api-sdk",
3
- "version": "0.0.2732",
3
+ "version": "0.0.2737",
4
4
  "private": false,
5
5
  "repository": "https://github.com/CarbonNYC/thera-typescript-sdk",
6
6
  "main": "./index.js",
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../../../../../../..";
5
+ import * as TheraApi from "../../../../../../../../../../../api";
6
+ import * as core from "../../../../../../../../../../../core";
7
+ export declare const SetAutoWithdrawalRequest: core.serialization.Schema<serializers.api.thera.bank.SetAutoWithdrawalRequest.Raw, TheraApi.api.thera.bank.SetAutoWithdrawalRequest>;
8
+ export declare namespace SetAutoWithdrawalRequest {
9
+ interface Raw {
10
+ autoWithdrawalsOn: boolean;
11
+ }
12
+ }
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.SetAutoWithdrawalRequest = void 0;
30
+ const core = __importStar(require("../../../../../../../../../../../core"));
31
+ exports.SetAutoWithdrawalRequest = core.serialization.object({
32
+ autoWithdrawalsOn: core.serialization.boolean(),
33
+ });
@@ -1 +1,2 @@
1
1
  export { EditWithdrawalMethodRequest } from "./EditWithdrawalMethodRequest";
2
+ export { SetAutoWithdrawalRequest } from "./SetAutoWithdrawalRequest";
@@ -1,5 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EditWithdrawalMethodRequest = void 0;
3
+ exports.SetAutoWithdrawalRequest = exports.EditWithdrawalMethodRequest = void 0;
4
4
  var EditWithdrawalMethodRequest_1 = require("./EditWithdrawalMethodRequest");
5
5
  Object.defineProperty(exports, "EditWithdrawalMethodRequest", { enumerable: true, get: function () { return EditWithdrawalMethodRequest_1.EditWithdrawalMethodRequest; } });
6
+ var SetAutoWithdrawalRequest_1 = require("./SetAutoWithdrawalRequest");
7
+ Object.defineProperty(exports, "SetAutoWithdrawalRequest", { enumerable: true, get: function () { return SetAutoWithdrawalRequest_1.SetAutoWithdrawalRequest; } });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../../../../../..";
5
+ import * as TheraApi from "../../../../../../../../../../api";
6
+ import * as core from "../../../../../../../../../../core";
7
+ export declare const SetAutoWithdrawalResponse: core.serialization.ObjectSchema<serializers.api.thera.bank.SetAutoWithdrawalResponse.Raw, TheraApi.api.thera.bank.SetAutoWithdrawalResponse>;
8
+ export declare namespace SetAutoWithdrawalResponse {
9
+ interface Raw {
10
+ }
11
+ }
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.SetAutoWithdrawalResponse = void 0;
30
+ const core = __importStar(require("../../../../../../../../../../core"));
31
+ exports.SetAutoWithdrawalResponse = core.serialization.object({});
@@ -7,6 +7,7 @@ import * as core from "../../../../../../../../../../core";
7
7
  export declare const WithdrawalMethodsRequest: core.serialization.ObjectSchema<serializers.api.thera.bank.WithdrawalMethodsRequest.Raw, TheraApi.api.thera.bank.WithdrawalMethodsRequest>;
8
8
  export declare namespace WithdrawalMethodsRequest {
9
9
  interface Raw {
10
+ accountType?: serializers.db.WithdrawalMethodAccountType.Raw | null;
10
11
  currency: string;
11
12
  recipientAddress: serializers.api.thera.common.RequestAddress.Raw;
12
13
  accountHolderName: string;
@@ -38,6 +38,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
38
38
  exports.WithdrawalMethodsRequest = void 0;
39
39
  const core = __importStar(require("../../../../../../../../../../core"));
40
40
  exports.WithdrawalMethodsRequest = core.serialization.object({
41
+ accountType: core.serialization
42
+ .lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../../../../../..")))).db.WithdrawalMethodAccountType; }))
43
+ .optional(),
41
44
  currency: core.serialization.string(),
42
45
  recipientAddress: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../../../../../..")))).api.thera.common.RequestAddress; })),
43
46
  accountHolderName: core.serialization.string(),
@@ -9,5 +9,7 @@ export declare namespace WorkerWithdrawalTransaction {
9
9
  interface Raw {
10
10
  withdrawalMethodTitle: string;
11
11
  withdrawalMethodId: string;
12
+ withdrawalMethodAccountType: serializers.db.WithdrawalMethodAccountType.Raw;
13
+ isAutoWithdrawal: boolean;
12
14
  }
13
15
  }
@@ -25,10 +25,21 @@ var __importStar = (this && this.__importStar) || function (mod) {
25
25
  __setModuleDefault(result, mod);
26
26
  return result;
27
27
  };
28
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
29
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
30
+ return new (P || (P = Promise))(function (resolve, reject) {
31
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
32
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
33
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
34
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
35
+ });
36
+ };
28
37
  Object.defineProperty(exports, "__esModule", { value: true });
29
38
  exports.WorkerWithdrawalTransaction = void 0;
30
39
  const core = __importStar(require("../../../../../../../../../../core"));
31
40
  exports.WorkerWithdrawalTransaction = core.serialization.object({
32
41
  withdrawalMethodTitle: core.serialization.string(),
33
42
  withdrawalMethodId: core.serialization.string(),
43
+ withdrawalMethodAccountType: core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../../../../../..")))).db.WithdrawalMethodAccountType; })),
44
+ isAutoWithdrawal: core.serialization.boolean(),
34
45
  });
@@ -24,4 +24,5 @@ export * from "./WorkerTransaction";
24
24
  export * from "./WorkerTransactionDetails";
25
25
  export * from "./WorkerWithdrawalTransaction";
26
26
  export * from "./WorkerInvoicePaymentTransaction";
27
+ export * from "./SetAutoWithdrawalResponse";
27
28
  export * from "./WorkerTransactionStatus";
@@ -40,4 +40,5 @@ __exportStar(require("./WorkerTransaction"), exports);
40
40
  __exportStar(require("./WorkerTransactionDetails"), exports);
41
41
  __exportStar(require("./WorkerWithdrawalTransaction"), exports);
42
42
  __exportStar(require("./WorkerInvoicePaymentTransaction"), exports);
43
+ __exportStar(require("./SetAutoWithdrawalResponse"), exports);
43
44
  __exportStar(require("./WorkerTransactionStatus"), exports);
@@ -9,6 +9,7 @@ export declare namespace CompanyApiResponse {
9
9
  interface Raw {
10
10
  companyID: string;
11
11
  companyName: string;
12
+ dbaName: string;
12
13
  email: string;
13
14
  stripeCustomerId: string;
14
15
  defaultCurrency: string;
@@ -40,6 +40,7 @@ const core = __importStar(require("../../../../../../../../../../core"));
40
40
  exports.CompanyApiResponse = core.serialization.object({
41
41
  companyId: core.serialization.property("companyID", core.serialization.string()),
42
42
  companyName: core.serialization.string(),
43
+ dbaName: core.serialization.string(),
43
44
  email: core.serialization.string(),
44
45
  stripeCustomerId: core.serialization.string(),
45
46
  defaultCurrency: core.serialization.string(),
@@ -8,6 +8,7 @@ export declare const CreateCompanyRequest: core.serialization.ObjectSchema<seria
8
8
  export declare namespace CreateCompanyRequest {
9
9
  interface Raw {
10
10
  companyName: string;
11
+ dbaName: string;
11
12
  email: string;
12
13
  ein: string;
13
14
  phoneNumber: string;
@@ -39,6 +39,7 @@ exports.CreateCompanyRequest = void 0;
39
39
  const core = __importStar(require("../../../../../../../../../../core"));
40
40
  exports.CreateCompanyRequest = core.serialization.object({
41
41
  companyName: core.serialization.string(),
42
+ dbaName: core.serialization.string(),
42
43
  email: core.serialization.string(),
43
44
  ein: core.serialization.string(),
44
45
  phoneNumber: core.serialization.string(),
@@ -21,5 +21,7 @@ export declare namespace CreateEmployment {
21
21
  companySigningAuthorityUserId: string;
22
22
  contractType: serializers.model.thera.ContractType.Raw;
23
23
  payCycle: serializers.model.thera.PayCycle.Raw;
24
+ workerCanSubmitWork?: boolean | null;
25
+ clientCanSubmitWork?: boolean | null;
24
26
  }
25
27
  }
@@ -52,4 +52,6 @@ exports.CreateEmployment = core.serialization.object({
52
52
  companySigningAuthorityUserId: core.serialization.string(),
53
53
  contractType: core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../../../../../..")))).model.thera.ContractType; })),
54
54
  payCycle: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../../../../../../..")))).model.thera.PayCycle; })),
55
+ workerCanSubmitWork: core.serialization.boolean().optional(),
56
+ clientCanSubmitWork: core.serialization.boolean().optional(),
55
57
  });
@@ -3,4 +3,5 @@ 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";
6
+ export * as misc from "./misc";
6
7
  export * as payroll from "./payroll";
@@ -23,10 +23,11 @@ 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.common = exports.bank = void 0;
26
+ exports.payroll = exports.misc = exports.employment = exports.disbursement = exports.company = exports.common = exports.bank = void 0;
27
27
  exports.bank = __importStar(require("./bank"));
28
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"));
32
+ exports.misc = __importStar(require("./misc"));
32
33
  exports.payroll = __importStar(require("./payroll"));