@thera-hr/api-sdk 0.0.1331 → 0.0.1427

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 (259) 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 +0 -3
  6. package/api/resources/api/resources/thera/client/Client.js +6 -11
  7. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.d.ts +1 -5
  8. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +5 -49
  9. package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +1 -1
  10. package/api/resources/api/resources/thera/resources/index.d.ts +0 -1
  11. package/api/resources/api/resources/thera/resources/index.js +1 -2
  12. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +1 -1
  13. package/api/resources/db/resources/employment/types/BiWeeklyPayCycleEnd.d.ts +7 -0
  14. package/api/resources/db/resources/employment/types/DayOfWeek.d.ts +13 -0
  15. package/api/resources/db/resources/employment/types/DayOfWeek.js +15 -0
  16. package/api/resources/db/resources/employment/types/Employment.d.ts +1 -0
  17. package/api/resources/db/resources/employment/types/FifteenthAndEndOfMonth.d.ts +5 -0
  18. package/api/resources/db/resources/employment/types/LastDayOfMonth.d.ts +5 -0
  19. package/api/resources/db/resources/employment/types/MonthlyPayCycleEnd.d.ts +18 -0
  20. package/api/resources/db/resources/employment/types/PayCycle.d.ts +11 -0
  21. package/api/resources/db/resources/employment/types/PayCycleEnd.d.ts +21 -0
  22. package/api/resources/db/resources/employment/types/SemiMonthlyPayCycleEnd.d.ts +14 -0
  23. package/api/resources/db/resources/employment/types/WeeklyPayCycleEnd.d.ts +7 -0
  24. package/api/resources/db/resources/employment/types/index.d.ts +9 -0
  25. package/api/resources/db/resources/employment/types/index.js +9 -0
  26. package/api/resources/db/resources/index.d.ts +0 -2
  27. package/api/resources/db/resources/index.js +1 -3
  28. package/dist/api/resources/api/resources/index.d.ts +0 -1
  29. package/dist/api/resources/api/resources/index.js +1 -2
  30. package/dist/api/resources/api/resources/services/resources/file/client/Client.js +4 -4
  31. package/dist/api/resources/api/resources/test/resources/invoices/client/Client.js +1 -1
  32. package/dist/api/resources/api/resources/thera/client/Client.d.ts +0 -3
  33. package/dist/api/resources/api/resources/thera/client/Client.js +6 -11
  34. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.d.ts +1 -5
  35. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +5 -49
  36. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +1 -1
  37. package/dist/api/resources/api/resources/thera/resources/index.d.ts +0 -1
  38. package/dist/api/resources/api/resources/thera/resources/index.js +1 -2
  39. package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +1 -1
  40. package/dist/api/resources/db/resources/employment/types/BiWeeklyPayCycleEnd.d.ts +7 -0
  41. package/dist/api/resources/db/resources/employment/types/DayOfWeek.d.ts +13 -0
  42. package/dist/api/resources/db/resources/employment/types/DayOfWeek.js +15 -0
  43. package/dist/api/resources/db/resources/employment/types/Employment.d.ts +1 -0
  44. package/dist/api/resources/db/resources/employment/types/FifteenthAndEndOfMonth.d.ts +5 -0
  45. package/dist/api/resources/db/resources/employment/types/LastDayOfMonth.d.ts +5 -0
  46. package/dist/api/resources/db/resources/employment/types/MonthlyPayCycleEnd.d.ts +18 -0
  47. package/dist/api/resources/db/resources/employment/types/PayCycle.d.ts +11 -0
  48. package/dist/api/resources/db/resources/employment/types/PayCycle.js +5 -0
  49. package/dist/api/resources/db/resources/employment/types/PayCycleEnd.d.ts +21 -0
  50. package/dist/api/resources/db/resources/employment/types/PayCycleEnd.js +5 -0
  51. package/dist/api/resources/db/resources/employment/types/SemiMonthlyPayCycleEnd.d.ts +14 -0
  52. package/dist/api/resources/db/resources/employment/types/SemiMonthlyPayCycleEnd.js +5 -0
  53. package/dist/api/resources/db/resources/employment/types/WeeklyPayCycleEnd.d.ts +7 -0
  54. package/dist/api/resources/db/resources/employment/types/WeeklyPayCycleEnd.js +5 -0
  55. package/dist/api/resources/db/resources/employment/types/index.d.ts +9 -0
  56. package/dist/api/resources/db/resources/employment/types/index.js +9 -0
  57. package/dist/api/resources/db/resources/index.d.ts +0 -2
  58. package/dist/api/resources/db/resources/index.js +1 -3
  59. package/dist/serialization/resources/api/resources/index.d.ts +0 -1
  60. package/dist/serialization/resources/api/resources/index.js +1 -2
  61. package/dist/serialization/resources/api/resources/thera/resources/index.d.ts +0 -1
  62. package/dist/serialization/resources/api/resources/thera/resources/index.js +1 -2
  63. package/dist/serialization/resources/db/resources/employment/types/BiWeeklyPayCycleEnd.d.ts +12 -0
  64. package/dist/serialization/resources/db/resources/{gustoAuth/types/GustoAuth.js → employment/types/BiWeeklyPayCycleEnd.js} +3 -6
  65. package/dist/serialization/resources/db/resources/employment/types/DayOfWeek.d.ts +10 -0
  66. package/dist/serialization/resources/db/resources/employment/types/DayOfWeek.js +31 -0
  67. package/dist/serialization/resources/db/resources/employment/types/Employment.d.ts +1 -0
  68. package/dist/serialization/resources/db/resources/employment/types/Employment.js +1 -0
  69. package/dist/serialization/resources/db/resources/employment/types/FifteenthAndEndOfMonth.d.ts +11 -0
  70. package/{serialization/resources/api/resources/gusto/resources/oauthToken/types/GrantType.js → dist/serialization/resources/db/resources/employment/types/FifteenthAndEndOfMonth.js} +3 -3
  71. package/dist/serialization/resources/db/resources/employment/types/LastDayOfMonth.d.ts +11 -0
  72. package/dist/serialization/resources/{api/resources/gusto/resources/oauthToken/types/GrantType.js → db/resources/employment/types/LastDayOfMonth.js} +3 -3
  73. package/dist/serialization/resources/db/resources/employment/types/MonthlyPayCycleEnd.d.ts +21 -0
  74. package/dist/serialization/resources/{api/resources/gusto/resources/oauthToken/types/GustoOAuthRefreshTokenResponse.js → db/resources/employment/types/MonthlyPayCycleEnd.js} +15 -9
  75. package/dist/serialization/resources/db/resources/employment/types/PayCycle.d.ts +15 -0
  76. package/dist/serialization/resources/db/resources/employment/types/PayCycle.js +36 -0
  77. package/dist/serialization/resources/db/resources/employment/types/PayCycleEnd.d.ts +24 -0
  78. package/dist/serialization/resources/{api/resources/gusto/resources/oauthToken/types/GustoOAuthStrictAccessTokenRequest.js → db/resources/employment/types/PayCycleEnd.js} +16 -8
  79. package/dist/serialization/resources/db/resources/employment/types/SemiMonthlyPayCycleEnd.d.ts +17 -0
  80. package/{serialization/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/types/GustoAccessTokenResponse.js → dist/serialization/resources/db/resources/employment/types/SemiMonthlyPayCycleEnd.js} +12 -6
  81. package/dist/serialization/resources/db/resources/employment/types/WeeklyPayCycleEnd.d.ts +12 -0
  82. package/{serialization/resources/db/resources/gustoAuth/types/GustoAuth.js → dist/serialization/resources/db/resources/employment/types/WeeklyPayCycleEnd.js} +3 -6
  83. package/dist/serialization/resources/db/resources/employment/types/index.d.ts +9 -0
  84. package/dist/serialization/resources/db/resources/employment/types/index.js +9 -0
  85. package/dist/serialization/resources/db/resources/index.d.ts +0 -2
  86. package/dist/serialization/resources/db/resources/index.js +1 -3
  87. package/package.json +1 -1
  88. package/serialization/resources/api/resources/index.d.ts +0 -1
  89. package/serialization/resources/api/resources/index.js +1 -2
  90. package/serialization/resources/api/resources/thera/resources/index.d.ts +0 -1
  91. package/serialization/resources/api/resources/thera/resources/index.js +1 -2
  92. package/serialization/resources/db/resources/employment/types/BiWeeklyPayCycleEnd.d.ts +12 -0
  93. package/serialization/resources/db/resources/employment/types/BiWeeklyPayCycleEnd.js +33 -0
  94. package/serialization/resources/db/resources/employment/types/DayOfWeek.d.ts +10 -0
  95. package/serialization/resources/db/resources/employment/types/DayOfWeek.js +31 -0
  96. package/serialization/resources/db/resources/employment/types/Employment.d.ts +1 -0
  97. package/serialization/resources/db/resources/employment/types/Employment.js +1 -0
  98. package/serialization/resources/db/resources/employment/types/FifteenthAndEndOfMonth.d.ts +11 -0
  99. package/serialization/resources/db/resources/employment/types/FifteenthAndEndOfMonth.js +31 -0
  100. package/serialization/resources/db/resources/employment/types/LastDayOfMonth.d.ts +11 -0
  101. package/serialization/resources/db/resources/employment/types/LastDayOfMonth.js +31 -0
  102. package/serialization/resources/db/resources/employment/types/MonthlyPayCycleEnd.d.ts +21 -0
  103. package/serialization/resources/db/resources/employment/types/MonthlyPayCycleEnd.js +44 -0
  104. package/serialization/resources/db/resources/employment/types/PayCycle.d.ts +15 -0
  105. package/serialization/resources/db/resources/employment/types/PayCycle.js +36 -0
  106. package/serialization/resources/db/resources/employment/types/PayCycleEnd.d.ts +24 -0
  107. package/serialization/resources/db/resources/employment/types/PayCycleEnd.js +45 -0
  108. package/serialization/resources/db/resources/employment/types/SemiMonthlyPayCycleEnd.d.ts +17 -0
  109. package/{dist/serialization/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/types/GustoAccessTokenResponse.js → serialization/resources/db/resources/employment/types/SemiMonthlyPayCycleEnd.js} +12 -6
  110. package/serialization/resources/db/resources/employment/types/WeeklyPayCycleEnd.d.ts +12 -0
  111. package/serialization/resources/db/resources/employment/types/WeeklyPayCycleEnd.js +33 -0
  112. package/serialization/resources/db/resources/employment/types/index.d.ts +9 -0
  113. package/serialization/resources/db/resources/employment/types/index.js +9 -0
  114. package/serialization/resources/db/resources/index.d.ts +0 -2
  115. package/serialization/resources/db/resources/index.js +1 -3
  116. package/api/resources/api/resources/gusto/index.d.ts +0 -1
  117. package/api/resources/api/resources/gusto/index.js +0 -17
  118. package/api/resources/api/resources/gusto/resources/index.d.ts +0 -2
  119. package/api/resources/api/resources/gusto/resources/index.js +0 -31
  120. package/api/resources/api/resources/gusto/resources/oauthToken/index.d.ts +0 -1
  121. package/api/resources/api/resources/gusto/resources/oauthToken/index.js +0 -17
  122. package/api/resources/api/resources/gusto/resources/oauthToken/types/GrantType.d.ts +0 -8
  123. package/api/resources/api/resources/gusto/resources/oauthToken/types/GrantType.js +0 -10
  124. package/api/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthRefreshAccessTokenRequest.d.ts +0 -11
  125. package/api/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthRefreshTokenResponse.d.ts +0 -11
  126. package/api/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthStrictAccessTokenRequest.d.ts +0 -11
  127. package/api/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthStrictTokenResponse.d.ts +0 -10
  128. package/api/resources/api/resources/gusto/resources/oauthToken/types/index.d.ts +0 -5
  129. package/api/resources/api/resources/gusto/resources/oauthToken/types/index.js +0 -21
  130. package/api/resources/api/resources/thera/resources/authentication/client/Client.d.ts +0 -17
  131. package/api/resources/api/resources/thera/resources/authentication/client/Client.js +0 -18
  132. package/api/resources/api/resources/thera/resources/authentication/client/index.d.ts +0 -1
  133. package/api/resources/api/resources/thera/resources/authentication/client/index.js +0 -2
  134. package/api/resources/api/resources/thera/resources/authentication/index.d.ts +0 -2
  135. package/api/resources/api/resources/thera/resources/authentication/index.js +0 -18
  136. package/api/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/client/Client.d.ts +0 -17
  137. package/api/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/client/Client.js +0 -91
  138. package/api/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/client/index.d.ts +0 -1
  139. package/api/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/client/index.js +0 -2
  140. package/api/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/index.d.ts +0 -2
  141. package/api/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/index.js +0 -18
  142. package/api/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/types/GustoAccessTokenResponse.d.ts +0 -9
  143. package/api/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/types/index.d.ts +0 -1
  144. package/api/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/types/index.js +0 -17
  145. package/api/resources/api/resources/thera/resources/authentication/resources/index.d.ts +0 -2
  146. package/api/resources/api/resources/thera/resources/authentication/resources/index.js +0 -31
  147. package/api/resources/db/resources/gustoAuth/index.d.ts +0 -1
  148. package/api/resources/db/resources/gustoAuth/index.js +0 -17
  149. package/api/resources/db/resources/gustoAuth/types/GustoAuth.d.ts +0 -9
  150. package/api/resources/db/resources/gustoAuth/types/index.d.ts +0 -1
  151. package/api/resources/db/resources/gustoAuth/types/index.js +0 -17
  152. package/dist/api/resources/api/resources/gusto/index.d.ts +0 -1
  153. package/dist/api/resources/api/resources/gusto/index.js +0 -17
  154. package/dist/api/resources/api/resources/gusto/resources/index.d.ts +0 -2
  155. package/dist/api/resources/api/resources/gusto/resources/index.js +0 -31
  156. package/dist/api/resources/api/resources/gusto/resources/oauthToken/index.d.ts +0 -1
  157. package/dist/api/resources/api/resources/gusto/resources/oauthToken/index.js +0 -17
  158. package/dist/api/resources/api/resources/gusto/resources/oauthToken/types/GrantType.d.ts +0 -8
  159. package/dist/api/resources/api/resources/gusto/resources/oauthToken/types/GrantType.js +0 -10
  160. package/dist/api/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthRefreshAccessTokenRequest.d.ts +0 -11
  161. package/dist/api/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthRefreshTokenResponse.d.ts +0 -11
  162. package/dist/api/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthStrictAccessTokenRequest.d.ts +0 -11
  163. package/dist/api/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthStrictTokenResponse.d.ts +0 -10
  164. package/dist/api/resources/api/resources/gusto/resources/oauthToken/types/index.d.ts +0 -5
  165. package/dist/api/resources/api/resources/gusto/resources/oauthToken/types/index.js +0 -21
  166. package/dist/api/resources/api/resources/thera/resources/authentication/client/Client.d.ts +0 -17
  167. package/dist/api/resources/api/resources/thera/resources/authentication/client/Client.js +0 -18
  168. package/dist/api/resources/api/resources/thera/resources/authentication/client/index.d.ts +0 -1
  169. package/dist/api/resources/api/resources/thera/resources/authentication/client/index.js +0 -2
  170. package/dist/api/resources/api/resources/thera/resources/authentication/index.d.ts +0 -2
  171. package/dist/api/resources/api/resources/thera/resources/authentication/index.js +0 -18
  172. package/dist/api/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/client/Client.d.ts +0 -17
  173. package/dist/api/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/client/Client.js +0 -91
  174. package/dist/api/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/client/index.d.ts +0 -1
  175. package/dist/api/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/client/index.js +0 -2
  176. package/dist/api/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/index.d.ts +0 -2
  177. package/dist/api/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/index.js +0 -18
  178. package/dist/api/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/types/GustoAccessTokenResponse.d.ts +0 -9
  179. package/dist/api/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/types/index.d.ts +0 -1
  180. package/dist/api/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/types/index.js +0 -17
  181. package/dist/api/resources/api/resources/thera/resources/authentication/resources/index.d.ts +0 -2
  182. package/dist/api/resources/api/resources/thera/resources/authentication/resources/index.js +0 -31
  183. package/dist/api/resources/db/resources/gustoAuth/index.d.ts +0 -1
  184. package/dist/api/resources/db/resources/gustoAuth/index.js +0 -17
  185. package/dist/api/resources/db/resources/gustoAuth/types/GustoAuth.d.ts +0 -9
  186. package/dist/api/resources/db/resources/gustoAuth/types/index.d.ts +0 -1
  187. package/dist/api/resources/db/resources/gustoAuth/types/index.js +0 -17
  188. package/dist/serialization/resources/api/resources/gusto/index.d.ts +0 -1
  189. package/dist/serialization/resources/api/resources/gusto/index.js +0 -17
  190. package/dist/serialization/resources/api/resources/gusto/resources/index.d.ts +0 -2
  191. package/dist/serialization/resources/api/resources/gusto/resources/index.js +0 -31
  192. package/dist/serialization/resources/api/resources/gusto/resources/oauthToken/index.d.ts +0 -1
  193. package/dist/serialization/resources/api/resources/gusto/resources/oauthToken/index.js +0 -17
  194. package/dist/serialization/resources/api/resources/gusto/resources/oauthToken/types/GrantType.d.ts +0 -10
  195. package/dist/serialization/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthRefreshAccessTokenRequest.d.ts +0 -16
  196. package/dist/serialization/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthRefreshAccessTokenRequest.js +0 -37
  197. package/dist/serialization/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthRefreshTokenResponse.d.ts +0 -17
  198. package/dist/serialization/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthStrictAccessTokenRequest.d.ts +0 -16
  199. package/dist/serialization/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthStrictTokenResponse.d.ts +0 -16
  200. package/dist/serialization/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthStrictTokenResponse.js +0 -37
  201. package/dist/serialization/resources/api/resources/gusto/resources/oauthToken/types/index.d.ts +0 -5
  202. package/dist/serialization/resources/api/resources/gusto/resources/oauthToken/types/index.js +0 -21
  203. package/dist/serialization/resources/api/resources/thera/resources/authentication/index.d.ts +0 -1
  204. package/dist/serialization/resources/api/resources/thera/resources/authentication/index.js +0 -17
  205. package/dist/serialization/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/index.d.ts +0 -1
  206. package/dist/serialization/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/index.js +0 -17
  207. package/dist/serialization/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/types/GustoAccessTokenResponse.d.ts +0 -14
  208. package/dist/serialization/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/types/index.d.ts +0 -1
  209. package/dist/serialization/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/types/index.js +0 -17
  210. package/dist/serialization/resources/api/resources/thera/resources/authentication/resources/index.d.ts +0 -2
  211. package/dist/serialization/resources/api/resources/thera/resources/authentication/resources/index.js +0 -31
  212. package/dist/serialization/resources/db/resources/gustoAuth/index.d.ts +0 -1
  213. package/dist/serialization/resources/db/resources/gustoAuth/index.js +0 -17
  214. package/dist/serialization/resources/db/resources/gustoAuth/types/GustoAuth.d.ts +0 -15
  215. package/dist/serialization/resources/db/resources/gustoAuth/types/index.d.ts +0 -1
  216. package/dist/serialization/resources/db/resources/gustoAuth/types/index.js +0 -17
  217. package/serialization/resources/api/resources/gusto/index.d.ts +0 -1
  218. package/serialization/resources/api/resources/gusto/index.js +0 -17
  219. package/serialization/resources/api/resources/gusto/resources/index.d.ts +0 -2
  220. package/serialization/resources/api/resources/gusto/resources/index.js +0 -31
  221. package/serialization/resources/api/resources/gusto/resources/oauthToken/index.d.ts +0 -1
  222. package/serialization/resources/api/resources/gusto/resources/oauthToken/index.js +0 -17
  223. package/serialization/resources/api/resources/gusto/resources/oauthToken/types/GrantType.d.ts +0 -10
  224. package/serialization/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthRefreshAccessTokenRequest.d.ts +0 -16
  225. package/serialization/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthRefreshAccessTokenRequest.js +0 -37
  226. package/serialization/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthRefreshTokenResponse.d.ts +0 -17
  227. package/serialization/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthRefreshTokenResponse.js +0 -38
  228. package/serialization/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthStrictAccessTokenRequest.d.ts +0 -16
  229. package/serialization/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthStrictAccessTokenRequest.js +0 -37
  230. package/serialization/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthStrictTokenResponse.d.ts +0 -16
  231. package/serialization/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthStrictTokenResponse.js +0 -37
  232. package/serialization/resources/api/resources/gusto/resources/oauthToken/types/index.d.ts +0 -5
  233. package/serialization/resources/api/resources/gusto/resources/oauthToken/types/index.js +0 -21
  234. package/serialization/resources/api/resources/thera/resources/authentication/index.d.ts +0 -1
  235. package/serialization/resources/api/resources/thera/resources/authentication/index.js +0 -17
  236. package/serialization/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/index.d.ts +0 -1
  237. package/serialization/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/index.js +0 -17
  238. package/serialization/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/types/GustoAccessTokenResponse.d.ts +0 -14
  239. package/serialization/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/types/index.d.ts +0 -1
  240. package/serialization/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/types/index.js +0 -17
  241. package/serialization/resources/api/resources/thera/resources/authentication/resources/index.d.ts +0 -2
  242. package/serialization/resources/api/resources/thera/resources/authentication/resources/index.js +0 -31
  243. package/serialization/resources/db/resources/gustoAuth/index.d.ts +0 -1
  244. package/serialization/resources/db/resources/gustoAuth/index.js +0 -17
  245. package/serialization/resources/db/resources/gustoAuth/types/GustoAuth.d.ts +0 -15
  246. package/serialization/resources/db/resources/gustoAuth/types/index.d.ts +0 -1
  247. package/serialization/resources/db/resources/gustoAuth/types/index.js +0 -17
  248. /package/api/resources/{api/resources/gusto/resources/oauthToken/types/GustoOAuthRefreshAccessTokenRequest.js → db/resources/employment/types/BiWeeklyPayCycleEnd.js} +0 -0
  249. /package/api/resources/{api/resources/gusto/resources/oauthToken/types/GustoOAuthRefreshTokenResponse.js → db/resources/employment/types/FifteenthAndEndOfMonth.js} +0 -0
  250. /package/api/resources/{api/resources/gusto/resources/oauthToken/types/GustoOAuthStrictAccessTokenRequest.js → db/resources/employment/types/LastDayOfMonth.js} +0 -0
  251. /package/api/resources/{api/resources/gusto/resources/oauthToken/types/GustoOAuthStrictTokenResponse.js → db/resources/employment/types/MonthlyPayCycleEnd.js} +0 -0
  252. /package/api/resources/{api/resources/thera/resources/authentication/resources/gustoAuthentication/types/GustoAccessTokenResponse.js → db/resources/employment/types/PayCycle.js} +0 -0
  253. /package/api/resources/db/resources/{gustoAuth/types/GustoAuth.js → employment/types/PayCycleEnd.js} +0 -0
  254. /package/{dist/api/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthRefreshAccessTokenRequest.js → api/resources/db/resources/employment/types/SemiMonthlyPayCycleEnd.js} +0 -0
  255. /package/{dist/api/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthRefreshTokenResponse.js → api/resources/db/resources/employment/types/WeeklyPayCycleEnd.js} +0 -0
  256. /package/dist/api/resources/{api/resources/gusto/resources/oauthToken/types/GustoOAuthStrictAccessTokenRequest.js → db/resources/employment/types/BiWeeklyPayCycleEnd.js} +0 -0
  257. /package/dist/api/resources/{api/resources/gusto/resources/oauthToken/types/GustoOAuthStrictTokenResponse.js → db/resources/employment/types/FifteenthAndEndOfMonth.js} +0 -0
  258. /package/dist/api/resources/{api/resources/thera/resources/authentication/resources/gustoAuthentication/types/GustoAccessTokenResponse.js → db/resources/employment/types/LastDayOfMonth.js} +0 -0
  259. /package/dist/api/resources/db/resources/{gustoAuth/types/GustoAuth.js → employment/types/MonthlyPayCycleEnd.js} +0 -0
@@ -0,0 +1,45 @@
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.PayCycleEnd = void 0;
30
+ const core = __importStar(require("../../../../../../core"));
31
+ exports.PayCycleEnd = core.serialization
32
+ .union("type", {
33
+ weekly: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).db.WeeklyPayCycleEnd),
34
+ biweekly: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).db.BiWeeklyPayCycleEnd),
35
+ monthly: core.serialization.object({
36
+ value: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).db.MonthlyPayCycleEnd),
37
+ }),
38
+ semimonthly: core.serialization.object({
39
+ value: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).db.SemiMonthlyPayCycleEnd),
40
+ }),
41
+ })
42
+ .transform({
43
+ transform: (value) => value,
44
+ untransform: (value) => value,
45
+ });
@@ -0,0 +1,17 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../..";
5
+ import * as TheraApi from "../../../../../../api";
6
+ import * as core from "../../../../../../core";
7
+ export declare const SemiMonthlyPayCycleEnd: core.serialization.Schema<serializers.db.SemiMonthlyPayCycleEnd.Raw, TheraApi.db.SemiMonthlyPayCycleEnd>;
8
+ export declare namespace SemiMonthlyPayCycleEnd {
9
+ type Raw = SemiMonthlyPayCycleEnd.FifteenthAndEndOfMonth | SemiMonthlyPayCycleEnd.DayOfMonth;
10
+ interface FifteenthAndEndOfMonth extends serializers.db.FifteenthAndEndOfMonth.Raw {
11
+ type: "fifteenthAndEndOfMonth";
12
+ }
13
+ interface DayOfMonth {
14
+ type: "dayOfMonth";
15
+ value: number;
16
+ }
17
+ }
@@ -26,10 +26,16 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.GustoAccessTokenResponse = void 0;
30
- const core = __importStar(require("../../../../../../../../../../core"));
31
- exports.GustoAccessTokenResponse = core.serialization.object({
32
- gustoCompanyId: core.serialization.string(),
33
- accessToken: core.serialization.property("access_token", core.serialization.string()),
34
- accessTokenExpiration: core.serialization.property("access_token_expiration", core.serialization.date()),
29
+ exports.SemiMonthlyPayCycleEnd = void 0;
30
+ const core = __importStar(require("../../../../../../core"));
31
+ exports.SemiMonthlyPayCycleEnd = core.serialization
32
+ .union("type", {
33
+ fifteenthAndEndOfMonth: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).db.FifteenthAndEndOfMonth),
34
+ dayOfMonth: core.serialization.object({
35
+ value: core.serialization.number(),
36
+ }),
37
+ })
38
+ .transform({
39
+ transform: (value) => value,
40
+ untransform: (value) => value,
35
41
  });
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../..";
5
+ import * as TheraApi from "../../../../../../api";
6
+ import * as core from "../../../../../../core";
7
+ export declare const WeeklyPayCycleEnd: core.serialization.ObjectSchema<serializers.db.WeeklyPayCycleEnd.Raw, TheraApi.db.WeeklyPayCycleEnd>;
8
+ export declare namespace WeeklyPayCycleEnd {
9
+ interface Raw {
10
+ dayOfWeek: serializers.db.DayOfWeek.Raw;
11
+ }
12
+ }
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.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 +0,0 @@
1
- export * from "./resources";
@@ -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("./resources"), 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 +0,0 @@
1
- export * from "./types";
@@ -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("./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,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- export * from "./resources";
2
- export * from "./client";
@@ -1,18 +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("./resources"), exports);
18
- __exportStar(require("./client"), 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 * 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.1331",
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,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- export * from "./types";
2
- export * from "./client";
@@ -1,18 +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("./types"), exports);
18
- __exportStar(require("./client"), exports);
@@ -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";