@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
@@ -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.WeeklyPayCycleEnd = void 0;
30
+ const core = __importStar(require("../../../../../../core"));
31
+ exports.WeeklyPayCycleEnd = core.serialization.object({
32
+ dayOfWeek: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).db.DayOfWeek),
33
+ });
@@ -21,3 +21,12 @@ export * from "./GenericEmploymentDocument";
21
21
  export * from "./ModifyRecurrencesRequest";
22
22
  export * from "./RecurrenceModifications";
23
23
  export * from "./ModifyRecurrencesResponse";
24
+ export * from "./PayCycle";
25
+ export * from "./PayCycleEnd";
26
+ export * from "./WeeklyPayCycleEnd";
27
+ export * from "./BiWeeklyPayCycleEnd";
28
+ export * from "./MonthlyPayCycleEnd";
29
+ export * from "./SemiMonthlyPayCycleEnd";
30
+ export * from "./FifteenthAndEndOfMonth";
31
+ export * from "./LastDayOfMonth";
32
+ export * from "./DayOfWeek";
@@ -37,3 +37,12 @@ __exportStar(require("./GenericEmploymentDocument"), exports);
37
37
  __exportStar(require("./ModifyRecurrencesRequest"), exports);
38
38
  __exportStar(require("./RecurrenceModifications"), exports);
39
39
  __exportStar(require("./ModifyRecurrencesResponse"), exports);
40
+ __exportStar(require("./PayCycle"), exports);
41
+ __exportStar(require("./PayCycleEnd"), exports);
42
+ __exportStar(require("./WeeklyPayCycleEnd"), exports);
43
+ __exportStar(require("./BiWeeklyPayCycleEnd"), exports);
44
+ __exportStar(require("./MonthlyPayCycleEnd"), exports);
45
+ __exportStar(require("./SemiMonthlyPayCycleEnd"), exports);
46
+ __exportStar(require("./FifteenthAndEndOfMonth"), exports);
47
+ __exportStar(require("./LastDayOfMonth"), exports);
48
+ __exportStar(require("./DayOfWeek"), exports);
@@ -2,8 +2,6 @@ export * as document from "./document";
2
2
  export * from "./document/types";
3
3
  export * as employment from "./employment";
4
4
  export * from "./employment/types";
5
- export * as gustoAuth from "./gustoAuth";
6
- export * from "./gustoAuth/types";
7
5
  export * as payment from "./payment";
8
6
  export * as user from "./user";
9
7
  export * from "./user/types";
@@ -26,13 +26,11 @@ 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.user = exports.payment = exports.gustoAuth = exports.employment = exports.document = void 0;
29
+ exports.user = exports.payment = exports.employment = exports.document = void 0;
30
30
  exports.document = __importStar(require("./document"));
31
31
  __exportStar(require("./document/types"), exports);
32
32
  exports.employment = __importStar(require("./employment"));
33
33
  __exportStar(require("./employment/types"), exports);
34
- exports.gustoAuth = __importStar(require("./gustoAuth"));
35
- __exportStar(require("./gustoAuth/types"), exports);
36
34
  exports.payment = __importStar(require("./payment"));
37
35
  exports.user = __importStar(require("./user"));
38
36
  __exportStar(require("./user/types"), exports);
@@ -1,2 +0,0 @@
1
- export * as oauthToken from "./oauthToken";
2
- export * from "./oauthToken/types";
@@ -1,31 +0,0 @@
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.oauthToken = void 0;
30
- exports.oauthToken = __importStar(require("./oauthToken"));
31
- __exportStar(require("./oauthToken/types"), exports);
@@ -1,8 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export declare type GrantType = "refresh_token" | "strict_access";
5
- export declare const GrantType: {
6
- readonly RefreshToken: "refresh_token";
7
- readonly StrictAccess: "strict_access";
8
- };
@@ -1,10 +0,0 @@
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.GrantType = void 0;
7
- exports.GrantType = {
8
- RefreshToken: "refresh_token",
9
- StrictAccess: "strict_access",
10
- };
@@ -1,11 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as TheraApi from "../../../../../../..";
5
- export interface GustoOAuthRefreshAccessTokenRequest {
6
- refreshToken: string;
7
- grantType: TheraApi.api.gusto.GrantType;
8
- clientId: string;
9
- clientSecret: string;
10
- redirectUri: string;
11
- }
@@ -1,11 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface GustoOAuthRefreshTokenResponse {
5
- accessToken: string;
6
- tokenType: string;
7
- createdAt: number;
8
- expiresIn: number;
9
- refreshToken: string;
10
- scope: string;
11
- }
@@ -1,11 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as TheraApi from "../../../../../../..";
5
- export interface GustoOAuthStrictAccessTokenRequest {
6
- accessToken: string;
7
- grantType: TheraApi.api.gusto.GrantType;
8
- clientId: string;
9
- clientSecret: string;
10
- redirectUri: string;
11
- }
@@ -1,10 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface GustoOAuthStrictTokenResponse {
5
- accessToken: string;
6
- refreshToken: string;
7
- tokenType: string;
8
- resourceType: string;
9
- resourceUuid: string;
10
- }
@@ -1,5 +0,0 @@
1
- export * from "./GrantType";
2
- export * from "./GustoOAuthStrictAccessTokenRequest";
3
- export * from "./GustoOAuthRefreshAccessTokenRequest";
4
- export * from "./GustoOAuthStrictTokenResponse";
5
- export * from "./GustoOAuthRefreshTokenResponse";
@@ -1,21 +0,0 @@
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("./GrantType"), exports);
18
- __exportStar(require("./GustoOAuthStrictAccessTokenRequest"), exports);
19
- __exportStar(require("./GustoOAuthRefreshAccessTokenRequest"), exports);
20
- __exportStar(require("./GustoOAuthStrictTokenResponse"), exports);
21
- __exportStar(require("./GustoOAuthRefreshTokenResponse"), exports);
@@ -1,17 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as core from "../../../../../../../../core";
5
- import { GustoAuthentication } from "../resources/gustoAuthentication/client/Client";
6
- export declare namespace Authentication {
7
- interface Options {
8
- environment: string;
9
- token: core.Supplier<core.BearerToken>;
10
- }
11
- }
12
- export declare class Authentication {
13
- protected readonly options: Authentication.Options;
14
- constructor(options: Authentication.Options);
15
- protected _gustoAuthentication: GustoAuthentication | undefined;
16
- get gustoAuthentication(): GustoAuthentication;
17
- }
@@ -1,18 +0,0 @@
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.Authentication = void 0;
7
- const Client_1 = require("../resources/gustoAuthentication/client/Client");
8
- class Authentication {
9
- options;
10
- constructor(options) {
11
- this.options = options;
12
- }
13
- _gustoAuthentication;
14
- get gustoAuthentication() {
15
- return (this._gustoAuthentication ??= new Client_1.GustoAuthentication(this.options));
16
- }
17
- }
18
- exports.Authentication = Authentication;
@@ -1,17 +0,0 @@
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 GustoAuthentication {
7
- interface Options {
8
- environment: string;
9
- token: core.Supplier<core.BearerToken>;
10
- }
11
- }
12
- export declare class GustoAuthentication {
13
- protected readonly options: GustoAuthentication.Options;
14
- constructor(options: GustoAuthentication.Options);
15
- gustoAccessToken(theraCompanyId: string): Promise<TheraApi.api.thera.authentication.GustoAccessTokenResponse>;
16
- protected _getAuthorizationHeader(): Promise<string | undefined>;
17
- }
@@ -1,91 +0,0 @@
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.GustoAuthentication = void 0;
33
- const core = __importStar(require("../../../../../../../../../../core"));
34
- const url_join_1 = __importDefault(require("url-join"));
35
- const serializers = __importStar(require("../../../../../../../../../../serialization"));
36
- const errors = __importStar(require("../../../../../../../../../../errors"));
37
- class GustoAuthentication {
38
- options;
39
- constructor(options) {
40
- this.options = options;
41
- }
42
- async gustoAccessToken(theraCompanyId) {
43
- const _response = await core.fetcher({
44
- url: (0, url_join_1.default)(this.options.environment, `/gusto-access-token/${theraCompanyId}`),
45
- method: "GET",
46
- headers: {
47
- Authorization: await this._getAuthorizationHeader(),
48
- "X-Fern-Language": "JavaScript",
49
- "X-Fern-SDK-Name": "@thera-hr/api-sdk",
50
- "X-Fern-SDK-Version": "0.0.1284",
51
- },
52
- contentType: "application/json",
53
- timeoutMs: 60000,
54
- });
55
- if (_response.ok) {
56
- return await serializers.api.thera.authentication.GustoAccessTokenResponse.parseOrThrow(_response.body, {
57
- unrecognizedObjectKeys: "passthrough",
58
- allowUnrecognizedUnionMembers: true,
59
- allowUnrecognizedEnumValues: true,
60
- breadcrumbsPrefix: ["response"],
61
- });
62
- }
63
- if (_response.error.reason === "status-code") {
64
- throw new errors.TheraApiError({
65
- statusCode: _response.error.statusCode,
66
- body: _response.error.body,
67
- });
68
- }
69
- switch (_response.error.reason) {
70
- case "non-json":
71
- throw new errors.TheraApiError({
72
- statusCode: _response.error.statusCode,
73
- body: _response.error.rawBody,
74
- });
75
- case "timeout":
76
- throw new errors.TheraApiTimeoutError();
77
- case "unknown":
78
- throw new errors.TheraApiError({
79
- message: _response.error.errorMessage,
80
- });
81
- }
82
- }
83
- async _getAuthorizationHeader() {
84
- const bearer = await core.Supplier.get(this.options.token);
85
- if (bearer != null) {
86
- return `Bearer ${bearer}`;
87
- }
88
- return undefined;
89
- }
90
- }
91
- exports.GustoAuthentication = GustoAuthentication;
@@ -1,9 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface GustoAccessTokenResponse {
5
- /** The ID of Gusto Company */
6
- gustoCompanyId: string;
7
- accessToken: string;
8
- accessTokenExpiration: Date;
9
- }
@@ -1,17 +0,0 @@
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("./GustoAccessTokenResponse"), exports);
@@ -1,2 +0,0 @@
1
- export * as gustoAuthentication from "./gustoAuthentication";
2
- export * from "./gustoAuthentication/types";
@@ -1,9 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface GustoAuth {
5
- gustoCompanyId: string;
6
- accessToken: string;
7
- refreshToken: string;
8
- accessTokenExpiration: Date;
9
- }
@@ -1 +0,0 @@
1
- export * from "./GustoAuth";
@@ -1,17 +0,0 @@
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("./GustoAuth"), exports);
@@ -1,2 +0,0 @@
1
- export * as oauthToken from "./oauthToken";
2
- export * from "./oauthToken/types";
@@ -1 +0,0 @@
1
- export * from "./types";
@@ -1,8 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export declare type GrantType = "refresh_token" | "strict_access";
5
- export declare const GrantType: {
6
- readonly RefreshToken: "refresh_token";
7
- readonly StrictAccess: "strict_access";
8
- };
@@ -1,10 +0,0 @@
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.GrantType = void 0;
7
- exports.GrantType = {
8
- RefreshToken: "refresh_token",
9
- StrictAccess: "strict_access",
10
- };
@@ -1,11 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as TheraApi from "../../../../../../..";
5
- export interface GustoOAuthRefreshAccessTokenRequest {
6
- refreshToken: string;
7
- grantType: TheraApi.api.gusto.GrantType;
8
- clientId: string;
9
- clientSecret: string;
10
- redirectUri: string;
11
- }
@@ -1,11 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface GustoOAuthRefreshTokenResponse {
5
- accessToken: string;
6
- tokenType: string;
7
- createdAt: number;
8
- expiresIn: number;
9
- refreshToken: string;
10
- scope: string;
11
- }
@@ -1,11 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as TheraApi from "../../../../../../..";
5
- export interface GustoOAuthStrictAccessTokenRequest {
6
- accessToken: string;
7
- grantType: TheraApi.api.gusto.GrantType;
8
- clientId: string;
9
- clientSecret: string;
10
- redirectUri: string;
11
- }
@@ -1,10 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface GustoOAuthStrictTokenResponse {
5
- accessToken: string;
6
- refreshToken: string;
7
- tokenType: string;
8
- resourceType: string;
9
- resourceUuid: string;
10
- }
@@ -1,5 +0,0 @@
1
- export * from "./GrantType";
2
- export * from "./GustoOAuthStrictAccessTokenRequest";
3
- export * from "./GustoOAuthRefreshAccessTokenRequest";
4
- export * from "./GustoOAuthStrictTokenResponse";
5
- export * from "./GustoOAuthRefreshTokenResponse";
@@ -1,21 +0,0 @@
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("./GrantType"), exports);
18
- __exportStar(require("./GustoOAuthStrictAccessTokenRequest"), exports);
19
- __exportStar(require("./GustoOAuthRefreshAccessTokenRequest"), exports);
20
- __exportStar(require("./GustoOAuthStrictTokenResponse"), exports);
21
- __exportStar(require("./GustoOAuthRefreshTokenResponse"), exports);
@@ -1,17 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as core from "../../../../../../../../core";
5
- import { GustoAuthentication } from "../resources/gustoAuthentication/client/Client";
6
- export declare namespace Authentication {
7
- interface Options {
8
- environment: string;
9
- token: core.Supplier<core.BearerToken>;
10
- }
11
- }
12
- export declare class Authentication {
13
- protected readonly options: Authentication.Options;
14
- constructor(options: Authentication.Options);
15
- protected _gustoAuthentication: GustoAuthentication | undefined;
16
- get gustoAuthentication(): GustoAuthentication;
17
- }
@@ -1,18 +0,0 @@
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.Authentication = void 0;
7
- const Client_1 = require("../resources/gustoAuthentication/client/Client");
8
- class Authentication {
9
- options;
10
- constructor(options) {
11
- this.options = options;
12
- }
13
- _gustoAuthentication;
14
- get gustoAuthentication() {
15
- return (this._gustoAuthentication ??= new Client_1.GustoAuthentication(this.options));
16
- }
17
- }
18
- exports.Authentication = Authentication;
@@ -1,17 +0,0 @@
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 GustoAuthentication {
7
- interface Options {
8
- environment: string;
9
- token: core.Supplier<core.BearerToken>;
10
- }
11
- }
12
- export declare class GustoAuthentication {
13
- protected readonly options: GustoAuthentication.Options;
14
- constructor(options: GustoAuthentication.Options);
15
- gustoAccessToken(theraCompanyId: string): Promise<TheraApi.api.thera.authentication.GustoAccessTokenResponse>;
16
- protected _getAuthorizationHeader(): Promise<string | undefined>;
17
- }