@thera-hr/api-sdk 0.0.1284 → 0.0.1424

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 (325) hide show
  1. package/api/resources/api/resources/index.d.ts +0 -1
  2. package/api/resources/api/resources/index.js +1 -2
  3. package/api/resources/api/resources/services/resources/file/client/Client.js +4 -4
  4. package/api/resources/api/resources/test/resources/invoices/client/Client.js +1 -1
  5. package/api/resources/api/resources/thera/client/Client.d.ts +3 -3
  6. package/api/resources/api/resources/thera/client/Client.js +4 -4
  7. package/api/resources/api/resources/thera/resources/bank/client/Client.d.ts +17 -0
  8. package/api/resources/api/resources/thera/resources/bank/client/Client.js +18 -0
  9. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.d.ts +32 -0
  10. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +224 -0
  11. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/index.d.ts +1 -0
  12. package/{dist/api/resources/api/resources/gusto/resources/oauthToken → api/resources/api/resources/thera/resources/bank/resources/bankApi/client}/index.js +1 -1
  13. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/GenerateBankSignupRequest.d.ts +6 -0
  14. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/index.d.ts +1 -0
  15. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetBankAccountSignupKey.d.ts +6 -0
  16. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetSandboxPublicKey.d.ts +6 -0
  17. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/VerifyAccountSignupRequest.d.ts +6 -0
  18. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/VerifyMicrodepositRequest.d.ts +7 -0
  19. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +4 -0
  20. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +20 -0
  21. package/api/resources/api/resources/thera/resources/bank/resources/index.d.ts +3 -0
  22. package/api/resources/api/resources/thera/resources/{authentication → bank}/resources/index.js +4 -3
  23. package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.d.ts +1 -1
  24. package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +2 -2
  25. package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/OnboardW2PayrollUpdateCompany.d.ts +0 -2
  26. package/api/resources/api/resources/thera/resources/index.d.ts +1 -1
  27. package/api/resources/api/resources/thera/resources/index.js +2 -2
  28. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.d.ts +1 -1
  29. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +2 -2
  30. package/api/resources/db/resources/employment/types/BiWeeklyPayCycleEnd.d.ts +7 -0
  31. package/api/resources/db/resources/employment/types/DayOfWeek.d.ts +13 -0
  32. package/api/resources/db/resources/employment/types/DayOfWeek.js +15 -0
  33. package/api/resources/db/resources/employment/types/Employment.d.ts +1 -0
  34. package/api/resources/db/resources/employment/types/FifteenthAndEndOfMonth.d.ts +5 -0
  35. package/api/resources/db/resources/employment/types/LastDayOfMonth.d.ts +5 -0
  36. package/api/resources/db/resources/employment/types/MonthlyPayCycleEnd.d.ts +18 -0
  37. package/api/resources/db/resources/employment/types/PayCycle.d.ts +11 -0
  38. package/api/resources/db/resources/employment/types/PayCycleEnd.d.ts +21 -0
  39. package/api/resources/db/resources/employment/types/SemiMonthlyPayCycleEnd.d.ts +14 -0
  40. package/api/resources/db/resources/employment/types/WeeklyPayCycleEnd.d.ts +7 -0
  41. package/api/resources/db/resources/employment/types/WeeklyPayCycleEnd.js +5 -0
  42. package/api/resources/db/resources/employment/types/index.d.ts +9 -0
  43. package/api/resources/db/resources/employment/types/index.js +9 -0
  44. package/api/resources/db/resources/index.d.ts +0 -2
  45. package/api/resources/db/resources/index.js +1 -3
  46. package/dist/api/resources/api/resources/index.d.ts +0 -1
  47. package/dist/api/resources/api/resources/index.js +1 -2
  48. package/dist/api/resources/api/resources/services/resources/file/client/Client.js +4 -4
  49. package/dist/api/resources/api/resources/test/resources/invoices/client/Client.js +1 -1
  50. package/dist/api/resources/api/resources/thera/client/Client.d.ts +3 -3
  51. package/dist/api/resources/api/resources/thera/client/Client.js +4 -4
  52. package/dist/api/resources/api/resources/thera/resources/bank/client/Client.d.ts +17 -0
  53. package/dist/api/resources/api/resources/thera/resources/bank/client/Client.js +18 -0
  54. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.d.ts +32 -0
  55. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +224 -0
  56. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/index.d.ts +1 -0
  57. package/dist/api/resources/{db/resources/gustoAuth → api/resources/thera/resources/bank/resources/bankApi/client}/index.js +1 -1
  58. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/GenerateBankSignupRequest.d.ts +6 -0
  59. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/GenerateBankSignupRequest.js +5 -0
  60. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/index.d.ts +1 -0
  61. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetBankAccountSignupKey.d.ts +6 -0
  62. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetBankAccountSignupKey.js +5 -0
  63. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetSandboxPublicKey.d.ts +6 -0
  64. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetSandboxPublicKey.js +5 -0
  65. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/VerifyAccountSignupRequest.d.ts +6 -0
  66. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/VerifyAccountSignupRequest.js +5 -0
  67. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/VerifyMicrodepositRequest.d.ts +7 -0
  68. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/VerifyMicrodepositRequest.js +5 -0
  69. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +4 -0
  70. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +20 -0
  71. package/dist/api/resources/api/resources/thera/resources/bank/resources/index.d.ts +3 -0
  72. package/dist/api/resources/api/resources/thera/resources/{authentication → bank}/resources/index.js +4 -3
  73. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.d.ts +1 -1
  74. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +2 -2
  75. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/OnboardW2PayrollUpdateCompany.d.ts +0 -2
  76. package/dist/api/resources/api/resources/thera/resources/index.d.ts +1 -1
  77. package/dist/api/resources/api/resources/thera/resources/index.js +2 -2
  78. package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.d.ts +1 -1
  79. package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +2 -2
  80. package/dist/api/resources/db/resources/employment/types/BiWeeklyPayCycleEnd.d.ts +7 -0
  81. package/dist/api/resources/db/resources/employment/types/BiWeeklyPayCycleEnd.js +5 -0
  82. package/dist/api/resources/db/resources/employment/types/DayOfWeek.d.ts +13 -0
  83. package/dist/api/resources/db/resources/employment/types/DayOfWeek.js +15 -0
  84. package/dist/api/resources/db/resources/employment/types/Employment.d.ts +1 -0
  85. package/dist/api/resources/db/resources/employment/types/FifteenthAndEndOfMonth.d.ts +5 -0
  86. package/dist/api/resources/db/resources/employment/types/FifteenthAndEndOfMonth.js +5 -0
  87. package/dist/api/resources/db/resources/employment/types/LastDayOfMonth.d.ts +5 -0
  88. package/dist/api/resources/db/resources/employment/types/LastDayOfMonth.js +5 -0
  89. package/dist/api/resources/db/resources/employment/types/MonthlyPayCycleEnd.d.ts +18 -0
  90. package/dist/api/resources/db/resources/employment/types/MonthlyPayCycleEnd.js +5 -0
  91. package/dist/api/resources/db/resources/employment/types/PayCycle.d.ts +11 -0
  92. package/dist/api/resources/db/resources/employment/types/PayCycle.js +5 -0
  93. package/dist/api/resources/db/resources/employment/types/PayCycleEnd.d.ts +21 -0
  94. package/dist/api/resources/db/resources/employment/types/PayCycleEnd.js +5 -0
  95. package/dist/api/resources/db/resources/employment/types/SemiMonthlyPayCycleEnd.d.ts +14 -0
  96. package/dist/api/resources/db/resources/employment/types/SemiMonthlyPayCycleEnd.js +5 -0
  97. package/dist/api/resources/db/resources/employment/types/WeeklyPayCycleEnd.d.ts +7 -0
  98. package/dist/api/resources/db/resources/employment/types/WeeklyPayCycleEnd.js +5 -0
  99. package/dist/api/resources/db/resources/employment/types/index.d.ts +9 -0
  100. package/dist/api/resources/db/resources/employment/types/index.js +9 -0
  101. package/dist/api/resources/db/resources/index.d.ts +0 -2
  102. package/dist/api/resources/db/resources/index.js +1 -3
  103. package/dist/serialization/resources/api/resources/index.d.ts +0 -1
  104. package/dist/serialization/resources/api/resources/index.js +1 -2
  105. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetBankAccountSignupKey.d.ts +12 -0
  106. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetBankAccountSignupKey.js +33 -0
  107. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetSandboxPublicKey.d.ts +12 -0
  108. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetSandboxPublicKey.js +33 -0
  109. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/VerifyAccountSignupRequest.d.ts +12 -0
  110. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/VerifyAccountSignupRequest.js +33 -0
  111. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/VerifyMicrodepositRequest.d.ts +13 -0
  112. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/VerifyMicrodepositRequest.js +34 -0
  113. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +4 -0
  114. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +20 -0
  115. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/index.d.ts +2 -0
  116. package/dist/serialization/resources/api/resources/{gusto → thera/resources/bank}/resources/index.js +3 -3
  117. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/OnboardW2PayrollUpdateCompany.d.ts +0 -1
  118. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/OnboardW2PayrollUpdateCompany.js +0 -1
  119. package/dist/serialization/resources/api/resources/thera/resources/index.d.ts +1 -1
  120. package/dist/serialization/resources/api/resources/thera/resources/index.js +2 -2
  121. package/dist/serialization/resources/db/resources/employment/types/BiWeeklyPayCycleEnd.d.ts +12 -0
  122. package/dist/serialization/resources/db/resources/{gustoAuth/types/GustoAuth.js → employment/types/BiWeeklyPayCycleEnd.js} +3 -6
  123. package/dist/serialization/resources/db/resources/employment/types/DayOfWeek.d.ts +10 -0
  124. package/dist/serialization/resources/db/resources/employment/types/DayOfWeek.js +31 -0
  125. package/dist/serialization/resources/db/resources/employment/types/Employment.d.ts +1 -0
  126. package/dist/serialization/resources/db/resources/employment/types/Employment.js +1 -0
  127. package/dist/serialization/resources/db/resources/employment/types/FifteenthAndEndOfMonth.d.ts +11 -0
  128. package/{serialization/resources/api/resources/gusto/resources/oauthToken/types/GrantType.js → dist/serialization/resources/db/resources/employment/types/FifteenthAndEndOfMonth.js} +3 -3
  129. package/dist/serialization/resources/db/resources/employment/types/LastDayOfMonth.d.ts +11 -0
  130. package/dist/serialization/resources/{api/resources/gusto/resources/oauthToken/types/GrantType.js → db/resources/employment/types/LastDayOfMonth.js} +3 -3
  131. package/dist/serialization/resources/db/resources/employment/types/MonthlyPayCycleEnd.d.ts +21 -0
  132. package/dist/serialization/resources/{api/resources/gusto/resources/oauthToken/types/GustoOAuthRefreshTokenResponse.js → db/resources/employment/types/MonthlyPayCycleEnd.js} +15 -9
  133. package/dist/serialization/resources/db/resources/employment/types/PayCycle.d.ts +15 -0
  134. package/dist/serialization/resources/db/resources/employment/types/PayCycle.js +36 -0
  135. package/dist/serialization/resources/db/resources/employment/types/PayCycleEnd.d.ts +24 -0
  136. package/dist/serialization/resources/{api/resources/gusto/resources/oauthToken/types/GustoOAuthStrictAccessTokenRequest.js → db/resources/employment/types/PayCycleEnd.js} +16 -8
  137. package/dist/serialization/resources/db/resources/employment/types/SemiMonthlyPayCycleEnd.d.ts +17 -0
  138. package/{serialization/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/types/GustoAccessTokenResponse.js → dist/serialization/resources/db/resources/employment/types/SemiMonthlyPayCycleEnd.js} +12 -6
  139. package/dist/serialization/resources/db/resources/employment/types/WeeklyPayCycleEnd.d.ts +12 -0
  140. package/{serialization/resources/db/resources/gustoAuth/types/GustoAuth.js → dist/serialization/resources/db/resources/employment/types/WeeklyPayCycleEnd.js} +3 -6
  141. package/dist/serialization/resources/db/resources/employment/types/index.d.ts +9 -0
  142. package/dist/serialization/resources/db/resources/employment/types/index.js +9 -0
  143. package/dist/serialization/resources/db/resources/index.d.ts +0 -2
  144. package/dist/serialization/resources/db/resources/index.js +1 -3
  145. package/package.json +3 -3
  146. package/serialization/resources/api/resources/index.d.ts +0 -1
  147. package/serialization/resources/api/resources/index.js +1 -2
  148. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetBankAccountSignupKey.d.ts +12 -0
  149. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetBankAccountSignupKey.js +33 -0
  150. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetSandboxPublicKey.d.ts +12 -0
  151. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetSandboxPublicKey.js +33 -0
  152. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/VerifyAccountSignupRequest.d.ts +12 -0
  153. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/VerifyAccountSignupRequest.js +33 -0
  154. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/VerifyMicrodepositRequest.d.ts +13 -0
  155. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/VerifyMicrodepositRequest.js +34 -0
  156. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +4 -0
  157. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +20 -0
  158. package/serialization/resources/api/resources/thera/resources/bank/resources/index.d.ts +2 -0
  159. package/{dist/api/resources/api/resources/gusto → serialization/resources/api/resources/thera/resources/bank}/resources/index.js +3 -3
  160. package/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/OnboardW2PayrollUpdateCompany.d.ts +0 -1
  161. package/serialization/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/types/OnboardW2PayrollUpdateCompany.js +0 -1
  162. package/serialization/resources/api/resources/thera/resources/index.d.ts +1 -1
  163. package/serialization/resources/api/resources/thera/resources/index.js +2 -2
  164. package/serialization/resources/db/resources/employment/types/BiWeeklyPayCycleEnd.d.ts +12 -0
  165. package/serialization/resources/db/resources/employment/types/BiWeeklyPayCycleEnd.js +33 -0
  166. package/serialization/resources/db/resources/employment/types/DayOfWeek.d.ts +10 -0
  167. package/serialization/resources/db/resources/employment/types/DayOfWeek.js +31 -0
  168. package/serialization/resources/db/resources/employment/types/Employment.d.ts +1 -0
  169. package/serialization/resources/db/resources/employment/types/Employment.js +1 -0
  170. package/serialization/resources/db/resources/employment/types/FifteenthAndEndOfMonth.d.ts +11 -0
  171. package/serialization/resources/db/resources/employment/types/FifteenthAndEndOfMonth.js +31 -0
  172. package/serialization/resources/db/resources/employment/types/LastDayOfMonth.d.ts +11 -0
  173. package/serialization/resources/db/resources/employment/types/LastDayOfMonth.js +31 -0
  174. package/serialization/resources/db/resources/employment/types/MonthlyPayCycleEnd.d.ts +21 -0
  175. package/serialization/resources/db/resources/employment/types/MonthlyPayCycleEnd.js +44 -0
  176. package/serialization/resources/db/resources/employment/types/PayCycle.d.ts +15 -0
  177. package/serialization/resources/db/resources/employment/types/PayCycle.js +36 -0
  178. package/serialization/resources/db/resources/employment/types/PayCycleEnd.d.ts +24 -0
  179. package/serialization/resources/db/resources/employment/types/PayCycleEnd.js +45 -0
  180. package/serialization/resources/db/resources/employment/types/SemiMonthlyPayCycleEnd.d.ts +17 -0
  181. package/{dist/serialization/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/types/GustoAccessTokenResponse.js → serialization/resources/db/resources/employment/types/SemiMonthlyPayCycleEnd.js} +12 -6
  182. package/serialization/resources/db/resources/employment/types/WeeklyPayCycleEnd.d.ts +12 -0
  183. package/serialization/resources/db/resources/employment/types/WeeklyPayCycleEnd.js +33 -0
  184. package/serialization/resources/db/resources/employment/types/index.d.ts +9 -0
  185. package/serialization/resources/db/resources/employment/types/index.js +9 -0
  186. package/serialization/resources/db/resources/index.d.ts +0 -2
  187. package/serialization/resources/db/resources/index.js +1 -3
  188. package/api/resources/api/resources/gusto/resources/index.d.ts +0 -2
  189. package/api/resources/api/resources/gusto/resources/index.js +0 -31
  190. package/api/resources/api/resources/gusto/resources/oauthToken/types/GrantType.d.ts +0 -8
  191. package/api/resources/api/resources/gusto/resources/oauthToken/types/GrantType.js +0 -10
  192. package/api/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthRefreshAccessTokenRequest.d.ts +0 -11
  193. package/api/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthRefreshTokenResponse.d.ts +0 -11
  194. package/api/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthStrictAccessTokenRequest.d.ts +0 -11
  195. package/api/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthStrictTokenResponse.d.ts +0 -10
  196. package/api/resources/api/resources/gusto/resources/oauthToken/types/index.d.ts +0 -5
  197. package/api/resources/api/resources/gusto/resources/oauthToken/types/index.js +0 -21
  198. package/api/resources/api/resources/thera/resources/authentication/client/Client.d.ts +0 -17
  199. package/api/resources/api/resources/thera/resources/authentication/client/Client.js +0 -18
  200. package/api/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/client/Client.d.ts +0 -17
  201. package/api/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/client/Client.js +0 -91
  202. package/api/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/types/GustoAccessTokenResponse.d.ts +0 -9
  203. package/api/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/types/index.d.ts +0 -1
  204. package/api/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/types/index.js +0 -17
  205. package/api/resources/api/resources/thera/resources/authentication/resources/index.d.ts +0 -2
  206. package/api/resources/db/resources/gustoAuth/types/GustoAuth.d.ts +0 -9
  207. package/api/resources/db/resources/gustoAuth/types/index.d.ts +0 -1
  208. package/api/resources/db/resources/gustoAuth/types/index.js +0 -17
  209. package/dist/api/resources/api/resources/gusto/resources/index.d.ts +0 -2
  210. package/dist/api/resources/api/resources/gusto/resources/oauthToken/index.d.ts +0 -1
  211. package/dist/api/resources/api/resources/gusto/resources/oauthToken/types/GrantType.d.ts +0 -8
  212. package/dist/api/resources/api/resources/gusto/resources/oauthToken/types/GrantType.js +0 -10
  213. package/dist/api/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthRefreshAccessTokenRequest.d.ts +0 -11
  214. package/dist/api/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthRefreshTokenResponse.d.ts +0 -11
  215. package/dist/api/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthStrictAccessTokenRequest.d.ts +0 -11
  216. package/dist/api/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthStrictTokenResponse.d.ts +0 -10
  217. package/dist/api/resources/api/resources/gusto/resources/oauthToken/types/index.d.ts +0 -5
  218. package/dist/api/resources/api/resources/gusto/resources/oauthToken/types/index.js +0 -21
  219. package/dist/api/resources/api/resources/thera/resources/authentication/client/Client.d.ts +0 -17
  220. package/dist/api/resources/api/resources/thera/resources/authentication/client/Client.js +0 -18
  221. package/dist/api/resources/api/resources/thera/resources/authentication/client/index.d.ts +0 -1
  222. package/dist/api/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/client/Client.d.ts +0 -17
  223. package/dist/api/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/client/Client.js +0 -91
  224. package/dist/api/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/client/index.d.ts +0 -1
  225. package/dist/api/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/types/GustoAccessTokenResponse.d.ts +0 -9
  226. package/dist/api/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/types/index.d.ts +0 -1
  227. package/dist/api/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/types/index.js +0 -17
  228. package/dist/api/resources/api/resources/thera/resources/authentication/resources/index.d.ts +0 -2
  229. package/dist/api/resources/db/resources/gustoAuth/index.d.ts +0 -1
  230. package/dist/api/resources/db/resources/gustoAuth/types/GustoAuth.d.ts +0 -9
  231. package/dist/api/resources/db/resources/gustoAuth/types/index.d.ts +0 -1
  232. package/dist/api/resources/db/resources/gustoAuth/types/index.js +0 -17
  233. package/dist/serialization/resources/api/resources/gusto/index.d.ts +0 -1
  234. package/dist/serialization/resources/api/resources/gusto/index.js +0 -17
  235. package/dist/serialization/resources/api/resources/gusto/resources/index.d.ts +0 -2
  236. package/dist/serialization/resources/api/resources/gusto/resources/oauthToken/index.d.ts +0 -1
  237. package/dist/serialization/resources/api/resources/gusto/resources/oauthToken/index.js +0 -17
  238. package/dist/serialization/resources/api/resources/gusto/resources/oauthToken/types/GrantType.d.ts +0 -10
  239. package/dist/serialization/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthRefreshAccessTokenRequest.d.ts +0 -16
  240. package/dist/serialization/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthRefreshAccessTokenRequest.js +0 -37
  241. package/dist/serialization/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthRefreshTokenResponse.d.ts +0 -17
  242. package/dist/serialization/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthStrictAccessTokenRequest.d.ts +0 -16
  243. package/dist/serialization/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthStrictTokenResponse.d.ts +0 -16
  244. package/dist/serialization/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthStrictTokenResponse.js +0 -37
  245. package/dist/serialization/resources/api/resources/gusto/resources/oauthToken/types/index.d.ts +0 -5
  246. package/dist/serialization/resources/api/resources/gusto/resources/oauthToken/types/index.js +0 -21
  247. package/dist/serialization/resources/api/resources/thera/resources/authentication/index.d.ts +0 -1
  248. package/dist/serialization/resources/api/resources/thera/resources/authentication/index.js +0 -17
  249. package/dist/serialization/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/index.d.ts +0 -1
  250. package/dist/serialization/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/index.js +0 -17
  251. package/dist/serialization/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/types/GustoAccessTokenResponse.d.ts +0 -14
  252. package/dist/serialization/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/types/index.d.ts +0 -1
  253. package/dist/serialization/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/types/index.js +0 -17
  254. package/dist/serialization/resources/api/resources/thera/resources/authentication/resources/index.d.ts +0 -2
  255. package/dist/serialization/resources/api/resources/thera/resources/authentication/resources/index.js +0 -31
  256. package/dist/serialization/resources/db/resources/gustoAuth/index.d.ts +0 -1
  257. package/dist/serialization/resources/db/resources/gustoAuth/index.js +0 -17
  258. package/dist/serialization/resources/db/resources/gustoAuth/types/GustoAuth.d.ts +0 -15
  259. package/dist/serialization/resources/db/resources/gustoAuth/types/index.d.ts +0 -1
  260. package/dist/serialization/resources/db/resources/gustoAuth/types/index.js +0 -17
  261. package/serialization/resources/api/resources/gusto/index.d.ts +0 -1
  262. package/serialization/resources/api/resources/gusto/index.js +0 -17
  263. package/serialization/resources/api/resources/gusto/resources/index.d.ts +0 -2
  264. package/serialization/resources/api/resources/gusto/resources/index.js +0 -31
  265. package/serialization/resources/api/resources/gusto/resources/oauthToken/index.d.ts +0 -1
  266. package/serialization/resources/api/resources/gusto/resources/oauthToken/index.js +0 -17
  267. package/serialization/resources/api/resources/gusto/resources/oauthToken/types/GrantType.d.ts +0 -10
  268. package/serialization/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthRefreshAccessTokenRequest.d.ts +0 -16
  269. package/serialization/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthRefreshAccessTokenRequest.js +0 -37
  270. package/serialization/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthRefreshTokenResponse.d.ts +0 -17
  271. package/serialization/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthRefreshTokenResponse.js +0 -38
  272. package/serialization/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthStrictAccessTokenRequest.d.ts +0 -16
  273. package/serialization/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthStrictAccessTokenRequest.js +0 -37
  274. package/serialization/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthStrictTokenResponse.d.ts +0 -16
  275. package/serialization/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthStrictTokenResponse.js +0 -37
  276. package/serialization/resources/api/resources/gusto/resources/oauthToken/types/index.d.ts +0 -5
  277. package/serialization/resources/api/resources/gusto/resources/oauthToken/types/index.js +0 -21
  278. package/serialization/resources/api/resources/thera/resources/authentication/index.d.ts +0 -1
  279. package/serialization/resources/api/resources/thera/resources/authentication/index.js +0 -17
  280. package/serialization/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/index.d.ts +0 -1
  281. package/serialization/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/index.js +0 -17
  282. package/serialization/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/types/GustoAccessTokenResponse.d.ts +0 -14
  283. package/serialization/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/types/index.d.ts +0 -1
  284. package/serialization/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/types/index.js +0 -17
  285. package/serialization/resources/api/resources/thera/resources/authentication/resources/index.d.ts +0 -2
  286. package/serialization/resources/api/resources/thera/resources/authentication/resources/index.js +0 -31
  287. package/serialization/resources/db/resources/gustoAuth/index.d.ts +0 -1
  288. package/serialization/resources/db/resources/gustoAuth/index.js +0 -17
  289. package/serialization/resources/db/resources/gustoAuth/types/GustoAuth.d.ts +0 -15
  290. package/serialization/resources/db/resources/gustoAuth/types/index.d.ts +0 -1
  291. package/serialization/resources/db/resources/gustoAuth/types/index.js +0 -17
  292. /package/api/resources/api/resources/thera/resources/{authentication → bank}/client/index.d.ts +0 -0
  293. /package/api/resources/api/resources/thera/resources/{authentication → bank}/client/index.js +0 -0
  294. /package/api/resources/api/resources/thera/resources/{authentication → bank}/index.d.ts +0 -0
  295. /package/api/resources/api/resources/thera/resources/{authentication → bank}/index.js +0 -0
  296. /package/api/resources/api/resources/{gusto/resources/oauthToken/types/GustoOAuthRefreshAccessTokenRequest.js → thera/resources/bank/resources/bankApi/client/requests/GenerateBankSignupRequest.js} +0 -0
  297. /package/api/resources/api/resources/thera/resources/{authentication/resources/gustoAuthentication/client → bank/resources/bankApi/client/requests}/index.js +0 -0
  298. /package/api/resources/api/resources/thera/resources/{authentication/resources/gustoAuthentication → bank/resources/bankApi}/index.d.ts +0 -0
  299. /package/api/resources/api/resources/thera/resources/{authentication/resources/gustoAuthentication → bank/resources/bankApi}/index.js +0 -0
  300. /package/api/resources/api/resources/{gusto/resources/oauthToken/types/GustoOAuthRefreshTokenResponse.js → thera/resources/bank/resources/bankApi/types/GetBankAccountSignupKey.js} +0 -0
  301. /package/api/resources/api/resources/{gusto/resources/oauthToken/types/GustoOAuthStrictAccessTokenRequest.js → thera/resources/bank/resources/bankApi/types/GetSandboxPublicKey.js} +0 -0
  302. /package/api/resources/api/resources/{gusto/resources/oauthToken/types/GustoOAuthStrictTokenResponse.js → thera/resources/bank/resources/bankApi/types/VerifyAccountSignupRequest.js} +0 -0
  303. /package/api/resources/api/resources/thera/resources/{authentication/resources/gustoAuthentication/types/GustoAccessTokenResponse.js → bank/resources/bankApi/types/VerifyMicrodepositRequest.js} +0 -0
  304. /package/api/resources/db/resources/{gustoAuth/types/GustoAuth.js → employment/types/BiWeeklyPayCycleEnd.js} +0 -0
  305. /package/{dist/api/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthRefreshAccessTokenRequest.js → api/resources/db/resources/employment/types/FifteenthAndEndOfMonth.js} +0 -0
  306. /package/{dist/api/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthRefreshTokenResponse.js → api/resources/db/resources/employment/types/LastDayOfMonth.js} +0 -0
  307. /package/{dist/api/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthStrictAccessTokenRequest.js → api/resources/db/resources/employment/types/MonthlyPayCycleEnd.js} +0 -0
  308. /package/{dist/api/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthStrictTokenResponse.js → api/resources/db/resources/employment/types/PayCycle.js} +0 -0
  309. /package/{dist/api/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/types/GustoAccessTokenResponse.js → api/resources/db/resources/employment/types/PayCycleEnd.js} +0 -0
  310. /package/{dist/api/resources/db/resources/gustoAuth/types/GustoAuth.js → api/resources/db/resources/employment/types/SemiMonthlyPayCycleEnd.js} +0 -0
  311. /package/{api/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication → dist/api/resources/api/resources/thera/resources/bank}/client/index.d.ts +0 -0
  312. /package/dist/api/resources/api/resources/thera/resources/{authentication → bank}/client/index.js +0 -0
  313. /package/dist/api/resources/api/resources/thera/resources/{authentication → bank}/index.d.ts +0 -0
  314. /package/dist/api/resources/api/resources/thera/resources/{authentication → bank}/index.js +0 -0
  315. /package/dist/api/resources/api/resources/thera/resources/{authentication/resources/gustoAuthentication/client → bank/resources/bankApi/client/requests}/index.js +0 -0
  316. /package/dist/api/resources/api/resources/thera/resources/{authentication/resources/gustoAuthentication → bank/resources/bankApi}/index.d.ts +0 -0
  317. /package/dist/api/resources/api/resources/thera/resources/{authentication/resources/gustoAuthentication → bank/resources/bankApi}/index.js +0 -0
  318. /package/{api/resources/api/resources/gusto → dist/serialization/resources/api/resources/thera/resources/bank}/index.d.ts +0 -0
  319. /package/{api/resources/api/resources/gusto → dist/serialization/resources/api/resources/thera/resources/bank}/index.js +0 -0
  320. /package/{api/resources/api/resources/gusto/resources/oauthToken → dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi}/index.d.ts +0 -0
  321. /package/{api/resources/api/resources/gusto/resources/oauthToken → dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi}/index.js +0 -0
  322. /package/{dist/api/resources/api/resources/gusto → serialization/resources/api/resources/thera/resources/bank}/index.d.ts +0 -0
  323. /package/{dist/api/resources/api/resources/gusto → serialization/resources/api/resources/thera/resources/bank}/index.js +0 -0
  324. /package/{api/resources/db/resources/gustoAuth → serialization/resources/api/resources/thera/resources/bank/resources/bankApi}/index.d.ts +0 -0
  325. /package/{api/resources/db/resources/gustoAuth → serialization/resources/api/resources/thera/resources/bank/resources/bankApi}/index.js +0 -0
@@ -1,4 +1,3 @@
1
- export * as gusto from "./gusto";
2
1
  export * as request from "./request";
3
2
  export * as response from "./response";
4
3
  export * as services from "./services";
@@ -23,8 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.zeal = exports.thera = exports.test = exports.services = exports.response = exports.request = exports.gusto = void 0;
27
- exports.gusto = __importStar(require("./gusto"));
26
+ exports.zeal = exports.thera = exports.test = exports.services = exports.response = exports.request = void 0;
28
27
  exports.request = __importStar(require("./request"));
29
28
  exports.response = __importStar(require("./response"));
30
29
  exports.services = __importStar(require("./services"));
@@ -47,7 +47,7 @@ class File_ {
47
47
  Authorization: await this._getAuthorizationHeader(),
48
48
  "X-Fern-Language": "JavaScript",
49
49
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
50
- "X-Fern-SDK-Version": "0.0.1284",
50
+ "X-Fern-SDK-Version": "0.0.1424",
51
51
  },
52
52
  contentType: "application/json",
53
53
  body: await serializers.api.services.AttachDocumentToEmploymentRequest.jsonOrThrow(request, {
@@ -86,7 +86,7 @@ class File_ {
86
86
  Authorization: await this._getAuthorizationHeader(),
87
87
  "X-Fern-Language": "JavaScript",
88
88
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
89
- "X-Fern-SDK-Version": "0.0.1284",
89
+ "X-Fern-SDK-Version": "0.0.1424",
90
90
  },
91
91
  contentType: "application/json",
92
92
  body: await serializers.api.services.DeleteDocumentFromEmploymentRequest.jsonOrThrow(request, {
@@ -125,7 +125,7 @@ class File_ {
125
125
  Authorization: await this._getAuthorizationHeader(),
126
126
  "X-Fern-Language": "JavaScript",
127
127
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
128
- "X-Fern-SDK-Version": "0.0.1284",
128
+ "X-Fern-SDK-Version": "0.0.1424",
129
129
  },
130
130
  contentType: "application/json",
131
131
  timeoutMs: 60000,
@@ -166,7 +166,7 @@ class File_ {
166
166
  Authorization: await this._getAuthorizationHeader(),
167
167
  "X-Fern-Language": "JavaScript",
168
168
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
169
- "X-Fern-SDK-Version": "0.0.1284",
169
+ "X-Fern-SDK-Version": "0.0.1424",
170
170
  },
171
171
  contentType: "application/json",
172
172
  timeoutMs: 60000,
@@ -47,7 +47,7 @@ class Invoices {
47
47
  Authorization: await this._getAuthorizationHeader(),
48
48
  "X-Fern-Language": "JavaScript",
49
49
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
50
- "X-Fern-SDK-Version": "0.0.1284",
50
+ "X-Fern-SDK-Version": "0.0.1424",
51
51
  },
52
52
  contentType: "application/json",
53
53
  body: await serializers.api.test.VoidInvoiceRequest.jsonOrThrow(request, {
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as core from "../../../../../../core";
5
- import { Authentication } from "../resources/authentication/client/Client";
5
+ import { Bank } from "../resources/bank/client/Client";
6
6
  import { Company } from "../resources/company/client/Client";
7
7
  import { Payroll } from "../resources/payroll/client/Client";
8
8
  export declare namespace Thera {
@@ -14,8 +14,8 @@ export declare namespace Thera {
14
14
  export declare class Thera {
15
15
  protected readonly options: Thera.Options;
16
16
  constructor(options: Thera.Options);
17
- protected _authentication: Authentication | undefined;
18
- get authentication(): Authentication;
17
+ protected _bank: Bank | undefined;
18
+ get bank(): Bank;
19
19
  protected _company: Company | undefined;
20
20
  get company(): Company;
21
21
  protected _payroll: Payroll | undefined;
@@ -4,7 +4,7 @@
4
4
  */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.Thera = void 0;
7
- const Client_1 = require("../resources/authentication/client/Client");
7
+ const Client_1 = require("../resources/bank/client/Client");
8
8
  const Client_2 = require("../resources/company/client/Client");
9
9
  const Client_3 = require("../resources/payroll/client/Client");
10
10
  class Thera {
@@ -12,9 +12,9 @@ class Thera {
12
12
  constructor(options) {
13
13
  this.options = options;
14
14
  }
15
- _authentication;
16
- get authentication() {
17
- return (this._authentication ??= new Client_1.Authentication(this.options));
15
+ _bank;
16
+ get bank() {
17
+ return (this._bank ??= new Client_1.Bank(this.options));
18
18
  }
19
19
  _company;
20
20
  get company() {
@@ -0,0 +1,17 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as core from "../../../../../../../../core";
5
+ import { BankApi } from "../resources/bankApi/client/Client";
6
+ export declare namespace Bank {
7
+ interface Options {
8
+ environment: string;
9
+ token: core.Supplier<core.BearerToken>;
10
+ }
11
+ }
12
+ export declare class Bank {
13
+ protected readonly options: Bank.Options;
14
+ constructor(options: Bank.Options);
15
+ protected _bankApi: BankApi | undefined;
16
+ get bankApi(): BankApi;
17
+ }
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.Bank = void 0;
7
+ const Client_1 = require("../resources/bankApi/client/Client");
8
+ class Bank {
9
+ options;
10
+ constructor(options) {
11
+ this.options = options;
12
+ }
13
+ _bankApi;
14
+ get bankApi() {
15
+ return (this._bankApi ??= new Client_1.BankApi(this.options));
16
+ }
17
+ }
18
+ exports.Bank = Bank;
@@ -0,0 +1,32 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as core from "../../../../../../../../../../core";
5
+ import * as TheraApi from "../../../../../../../../..";
6
+ export declare namespace BankApi {
7
+ interface Options {
8
+ environment: string;
9
+ token: core.Supplier<core.BearerToken>;
10
+ }
11
+ }
12
+ export declare class BankApi {
13
+ protected readonly options: BankApi.Options;
14
+ constructor(options: BankApi.Options);
15
+ /**
16
+ * Get Plaid's link-token
17
+ */
18
+ generateBankSignup(request?: TheraApi.api.thera.bank.GenerateBankSignupRequest): Promise<TheraApi.api.thera.bank.GetBankAccountSignupKey>;
19
+ /**
20
+ * Verify that company's bank account has been provided to Plaid
21
+ */
22
+ verifyBankSignup(request: TheraApi.api.thera.bank.VerifyAccountSignupRequest): Promise<void>;
23
+ /**
24
+ * Update Zeal's bank account with info from Plaid & send microdeposit to company's bank account during W2 onboarding for Zeal API
25
+ */
26
+ sendMicrodeposit(): Promise<void>;
27
+ /**
28
+ * Verify Microdeposit for company's bank account during W2 onboarding for Zeal API
29
+ */
30
+ verifyMicrodeposit(request: TheraApi.api.thera.bank.VerifyMicrodepositRequest): Promise<void>;
31
+ protected _getAuthorizationHeader(): Promise<string | undefined>;
32
+ }
@@ -0,0 +1,224 @@
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 __importDefault = (this && this.__importDefault) || function (mod) {
29
+ return (mod && mod.__esModule) ? mod : { "default": mod };
30
+ };
31
+ Object.defineProperty(exports, "__esModule", { value: true });
32
+ exports.BankApi = void 0;
33
+ const core = __importStar(require("../../../../../../../../../../core"));
34
+ const url_search_params_1 = __importDefault(require("@ungap/url-search-params"));
35
+ const url_join_1 = __importDefault(require("url-join"));
36
+ const serializers = __importStar(require("../../../../../../../../../../serialization"));
37
+ const errors = __importStar(require("../../../../../../../../../../errors"));
38
+ class BankApi {
39
+ options;
40
+ constructor(options) {
41
+ this.options = options;
42
+ }
43
+ /**
44
+ * Get Plaid's link-token
45
+ */
46
+ async generateBankSignup(request = {}) {
47
+ const { redirectUri } = request;
48
+ const _queryParams = new url_search_params_1.default();
49
+ if (redirectUri != null) {
50
+ _queryParams.append("redirectUri", redirectUri);
51
+ }
52
+ const _response = await core.fetcher({
53
+ url: (0, url_join_1.default)(this.options.environment, "bank/account/signup/link"),
54
+ method: "POST",
55
+ headers: {
56
+ Authorization: await this._getAuthorizationHeader(),
57
+ "X-Fern-Language": "JavaScript",
58
+ "X-Fern-SDK-Name": "@thera-hr/api-sdk",
59
+ "X-Fern-SDK-Version": "0.0.1424",
60
+ },
61
+ contentType: "application/json",
62
+ queryParameters: _queryParams,
63
+ timeoutMs: 60000,
64
+ });
65
+ if (_response.ok) {
66
+ return await serializers.api.thera.bank.GetBankAccountSignupKey.parseOrThrow(_response.body, {
67
+ unrecognizedObjectKeys: "passthrough",
68
+ allowUnrecognizedUnionMembers: true,
69
+ allowUnrecognizedEnumValues: true,
70
+ breadcrumbsPrefix: ["response"],
71
+ });
72
+ }
73
+ if (_response.error.reason === "status-code") {
74
+ throw new errors.TheraApiError({
75
+ statusCode: _response.error.statusCode,
76
+ body: _response.error.body,
77
+ });
78
+ }
79
+ switch (_response.error.reason) {
80
+ case "non-json":
81
+ throw new errors.TheraApiError({
82
+ statusCode: _response.error.statusCode,
83
+ body: _response.error.rawBody,
84
+ });
85
+ case "timeout":
86
+ throw new errors.TheraApiTimeoutError();
87
+ case "unknown":
88
+ throw new errors.TheraApiError({
89
+ message: _response.error.errorMessage,
90
+ });
91
+ }
92
+ }
93
+ /**
94
+ * Verify that company's bank account has been provided to Plaid
95
+ */
96
+ async verifyBankSignup(request) {
97
+ const _response = await core.fetcher({
98
+ url: (0, url_join_1.default)(this.options.environment, "bank/account/signup/verify"),
99
+ method: "POST",
100
+ headers: {
101
+ Authorization: await this._getAuthorizationHeader(),
102
+ "X-Fern-Language": "JavaScript",
103
+ "X-Fern-SDK-Name": "@thera-hr/api-sdk",
104
+ "X-Fern-SDK-Version": "0.0.1424",
105
+ },
106
+ contentType: "application/json",
107
+ body: await serializers.api.thera.bank.VerifyAccountSignupRequest.jsonOrThrow(request, {
108
+ unrecognizedObjectKeys: "strip",
109
+ }),
110
+ timeoutMs: 60000,
111
+ });
112
+ if (_response.ok) {
113
+ return;
114
+ }
115
+ if (_response.error.reason === "status-code") {
116
+ throw new errors.TheraApiError({
117
+ statusCode: _response.error.statusCode,
118
+ body: _response.error.body,
119
+ });
120
+ }
121
+ switch (_response.error.reason) {
122
+ case "non-json":
123
+ throw new errors.TheraApiError({
124
+ statusCode: _response.error.statusCode,
125
+ body: _response.error.rawBody,
126
+ });
127
+ case "timeout":
128
+ throw new errors.TheraApiTimeoutError();
129
+ case "unknown":
130
+ throw new errors.TheraApiError({
131
+ message: _response.error.errorMessage,
132
+ });
133
+ }
134
+ }
135
+ /**
136
+ * Update Zeal's bank account with info from Plaid & send microdeposit to company's bank account during W2 onboarding for Zeal API
137
+ */
138
+ async sendMicrodeposit() {
139
+ const _response = await core.fetcher({
140
+ url: (0, url_join_1.default)(this.options.environment, "bank/account/microdeposit/request"),
141
+ method: "POST",
142
+ headers: {
143
+ Authorization: await this._getAuthorizationHeader(),
144
+ "X-Fern-Language": "JavaScript",
145
+ "X-Fern-SDK-Name": "@thera-hr/api-sdk",
146
+ "X-Fern-SDK-Version": "0.0.1424",
147
+ },
148
+ contentType: "application/json",
149
+ timeoutMs: 60000,
150
+ });
151
+ if (_response.ok) {
152
+ return;
153
+ }
154
+ if (_response.error.reason === "status-code") {
155
+ throw new errors.TheraApiError({
156
+ statusCode: _response.error.statusCode,
157
+ body: _response.error.body,
158
+ });
159
+ }
160
+ switch (_response.error.reason) {
161
+ case "non-json":
162
+ throw new errors.TheraApiError({
163
+ statusCode: _response.error.statusCode,
164
+ body: _response.error.rawBody,
165
+ });
166
+ case "timeout":
167
+ throw new errors.TheraApiTimeoutError();
168
+ case "unknown":
169
+ throw new errors.TheraApiError({
170
+ message: _response.error.errorMessage,
171
+ });
172
+ }
173
+ }
174
+ /**
175
+ * Verify Microdeposit for company's bank account during W2 onboarding for Zeal API
176
+ */
177
+ async verifyMicrodeposit(request) {
178
+ const _response = await core.fetcher({
179
+ url: (0, url_join_1.default)(this.options.environment, "bank/account/microdeposit/verification"),
180
+ method: "POST",
181
+ headers: {
182
+ Authorization: await this._getAuthorizationHeader(),
183
+ "X-Fern-Language": "JavaScript",
184
+ "X-Fern-SDK-Name": "@thera-hr/api-sdk",
185
+ "X-Fern-SDK-Version": "0.0.1424",
186
+ },
187
+ contentType: "application/json",
188
+ body: await serializers.api.thera.bank.VerifyMicrodepositRequest.jsonOrThrow(request, {
189
+ unrecognizedObjectKeys: "strip",
190
+ }),
191
+ timeoutMs: 60000,
192
+ });
193
+ if (_response.ok) {
194
+ return;
195
+ }
196
+ if (_response.error.reason === "status-code") {
197
+ throw new errors.TheraApiError({
198
+ statusCode: _response.error.statusCode,
199
+ body: _response.error.body,
200
+ });
201
+ }
202
+ switch (_response.error.reason) {
203
+ case "non-json":
204
+ throw new errors.TheraApiError({
205
+ statusCode: _response.error.statusCode,
206
+ body: _response.error.rawBody,
207
+ });
208
+ case "timeout":
209
+ throw new errors.TheraApiTimeoutError();
210
+ case "unknown":
211
+ throw new errors.TheraApiError({
212
+ message: _response.error.errorMessage,
213
+ });
214
+ }
215
+ }
216
+ async _getAuthorizationHeader() {
217
+ const bearer = await core.Supplier.get(this.options.token);
218
+ if (bearer != null) {
219
+ return `Bearer ${bearer}`;
220
+ }
221
+ return undefined;
222
+ }
223
+ }
224
+ exports.BankApi = BankApi;
@@ -14,4 +14,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./types"), exports);
17
+ __exportStar(require("./requests"), exports);
@@ -0,0 +1,6 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface GenerateBankSignupRequest {
5
+ redirectUri?: string;
6
+ }
@@ -0,0 +1 @@
1
+ export { GenerateBankSignupRequest } from "./GenerateBankSignupRequest";
@@ -0,0 +1,6 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface GetBankAccountSignupKey {
5
+ linkToken: string;
6
+ }
@@ -0,0 +1,6 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface GetSandboxPublicKey {
5
+ sandboxPublicKey: string;
6
+ }
@@ -0,0 +1,6 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface VerifyAccountSignupRequest {
5
+ publicKey: string;
6
+ }
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface VerifyMicrodepositRequest {
5
+ microDepositAmount1: string;
6
+ microDepositAmount2: string;
7
+ }
@@ -0,0 +1,4 @@
1
+ export * from "./VerifyMicrodepositRequest";
2
+ export * from "./VerifyAccountSignupRequest";
3
+ export * from "./GetSandboxPublicKey";
4
+ export * from "./GetBankAccountSignupKey";
@@ -0,0 +1,20 @@
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("./VerifyMicrodepositRequest"), exports);
18
+ __exportStar(require("./VerifyAccountSignupRequest"), exports);
19
+ __exportStar(require("./GetSandboxPublicKey"), exports);
20
+ __exportStar(require("./GetBankAccountSignupKey"), exports);
@@ -0,0 +1,3 @@
1
+ export * as bankApi from "./bankApi";
2
+ export * from "./bankApi/types";
3
+ export * from "./bankApi/client/requests";
@@ -26,6 +26,7 @@ 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.gustoAuthentication = void 0;
30
- exports.gustoAuthentication = __importStar(require("./gustoAuthentication"));
31
- __exportStar(require("./gustoAuthentication/types"), exports);
29
+ exports.bankApi = void 0;
30
+ exports.bankApi = __importStar(require("./bankApi"));
31
+ __exportStar(require("./bankApi/types"), exports);
32
+ __exportStar(require("./bankApi/client/requests"), exports);
@@ -13,7 +13,7 @@ export declare class CompanyW2PayrollApi {
13
13
  protected readonly options: CompanyW2PayrollApi.Options;
14
14
  constructor(options: CompanyW2PayrollApi.Options);
15
15
  /**
16
- * IN DEVELOPMENT
16
+ *
17
17
  */
18
18
  onboardW2Payroll(request: TheraApi.api.thera.company.OnboardW2PayrollRequest): Promise<void>;
19
19
  protected _getAuthorizationHeader(): Promise<string | undefined>;
@@ -40,7 +40,7 @@ class CompanyW2PayrollApi {
40
40
  this.options = options;
41
41
  }
42
42
  /**
43
- * IN DEVELOPMENT
43
+ *
44
44
  */
45
45
  async onboardW2Payroll(request) {
46
46
  const _response = await core.fetcher({
@@ -50,7 +50,7 @@ class CompanyW2PayrollApi {
50
50
  Authorization: await this._getAuthorizationHeader(),
51
51
  "X-Fern-Language": "JavaScript",
52
52
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
53
- "X-Fern-SDK-Version": "0.0.1284",
53
+ "X-Fern-SDK-Version": "0.0.1424",
54
54
  },
55
55
  contentType: "application/json",
56
56
  body: await serializers.api.thera.company.OnboardW2PayrollRequest.jsonOrThrow(request, {
@@ -1,11 +1,9 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as TheraApi from "../../../../../../../../..";
5
4
  export interface OnboardW2PayrollUpdateCompany {
6
5
  theraCompanyId: string;
7
6
  businessName: string;
8
7
  businessEin: string;
9
- businessAddress: TheraApi.api.thera.address.Address;
10
8
  businessPhoneNumber: string;
11
9
  }
@@ -1,4 +1,4 @@
1
1
  export * as address from "./address";
2
- export * as authentication from "./authentication";
2
+ export * as bank from "./bank";
3
3
  export * as company from "./company";
4
4
  export * as payroll from "./payroll";
@@ -23,8 +23,8 @@ 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.company = exports.authentication = exports.address = void 0;
26
+ exports.payroll = exports.company = exports.bank = exports.address = void 0;
27
27
  exports.address = __importStar(require("./address"));
28
- exports.authentication = __importStar(require("./authentication"));
28
+ exports.bank = __importStar(require("./bank"));
29
29
  exports.company = __importStar(require("./company"));
30
30
  exports.payroll = __importStar(require("./payroll"));
@@ -13,7 +13,7 @@ export declare class OncycleApi {
13
13
  protected readonly options: OncycleApi.Options;
14
14
  constructor(options: OncycleApi.Options);
15
15
  /**
16
- * IN DEVELOPMENT
16
+ *
17
17
  */
18
18
  approveOncycleChecks(companyId: string): Promise<TheraApi.api.thera.payroll.ApproveOnCycleChecksResponse>;
19
19
  protected _getAuthorizationHeader(): Promise<string | undefined>;
@@ -40,7 +40,7 @@ class OncycleApi {
40
40
  this.options = options;
41
41
  }
42
42
  /**
43
- * IN DEVELOPMENT
43
+ *
44
44
  */
45
45
  async approveOncycleChecks(companyId) {
46
46
  const _response = await core.fetcher({
@@ -50,7 +50,7 @@ class OncycleApi {
50
50
  Authorization: await this._getAuthorizationHeader(),
51
51
  "X-Fern-Language": "JavaScript",
52
52
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
53
- "X-Fern-SDK-Version": "0.0.1284",
53
+ "X-Fern-SDK-Version": "0.0.1424",
54
54
  },
55
55
  contentType: "application/json",
56
56
  timeoutMs: 60000,
@@ -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 BiWeeklyPayCycleEnd {
6
+ dayOfWeek: TheraApi.db.DayOfWeek;
7
+ }
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export declare type DayOfWeek = "MONDAY" | "TUESDAY" | "WEDNESDAY" | "THURSDAY" | "FRIDAY" | "SATURDAY" | "SUNDAY";
5
+ export declare const DayOfWeek: {
6
+ readonly Monday: "MONDAY";
7
+ readonly Tuesday: "TUESDAY";
8
+ readonly Wednesday: "WEDNESDAY";
9
+ readonly Thursday: "THURSDAY";
10
+ readonly Friday: "FRIDAY";
11
+ readonly Saturday: "SATURDAY";
12
+ readonly Sunday: "SUNDAY";
13
+ };
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.DayOfWeek = void 0;
7
+ exports.DayOfWeek = {
8
+ Monday: "MONDAY",
9
+ Tuesday: "TUESDAY",
10
+ Wednesday: "WEDNESDAY",
11
+ Thursday: "THURSDAY",
12
+ Friday: "FRIDAY",
13
+ Saturday: "SATURDAY",
14
+ Sunday: "SUNDAY",
15
+ };
@@ -23,4 +23,5 @@ export interface Employment {
23
23
  eor: TheraApi.db.EorDetails;
24
24
  companySigningAuthorityUserId: string;
25
25
  documents: TheraApi.db.EmploymentDocuments;
26
+ payCycle: TheraApi.db.PayCycle;
26
27
  }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface FifteenthAndEndOfMonth {
5
+ }