@thera-hr/api-sdk 0.0.1002 → 0.0.1061

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 (366) hide show
  1. package/api/resources/api/client/Client.d.ts +3 -0
  2. package/api/resources/api/client/Client.js +5 -0
  3. package/api/resources/api/resources/gusto/resources/index.d.ts +2 -0
  4. package/{dist/api/resources/db/resources/test → api/resources/api/resources/gusto}/resources/index.js +3 -3
  5. package/api/resources/api/resources/gusto/resources/oauthToken/types/GrantType.d.ts +8 -0
  6. package/{dist/api/resources/db/resources/test/resources/employment/types/FernMilestoneStatus.js → api/resources/api/resources/gusto/resources/oauthToken/types/GrantType.js} +4 -4
  7. package/api/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthRefreshAccessTokenRequest.d.ts +11 -0
  8. package/api/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthRefreshTokenResponse.d.ts +11 -0
  9. package/api/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthStrictAccessTokenRequest.d.ts +11 -0
  10. package/api/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthStrictTokenResponse.d.ts +10 -0
  11. package/api/resources/api/resources/gusto/resources/oauthToken/types/index.d.ts +5 -0
  12. package/api/resources/api/resources/gusto/resources/oauthToken/types/index.js +21 -0
  13. package/api/resources/api/resources/index.d.ts +3 -1
  14. package/api/resources/api/resources/index.js +4 -2
  15. package/api/resources/api/resources/services/index.d.ts +1 -1
  16. package/api/resources/api/resources/services/index.js +1 -1
  17. package/api/resources/api/resources/services/resources/file/client/Client.d.ts +1 -0
  18. package/api/resources/api/resources/services/resources/file/client/Client.js +43 -2
  19. package/api/resources/api/resources/services/resources/file/index.d.ts +1 -0
  20. package/api/resources/api/resources/services/resources/file/index.js +1 -0
  21. package/api/resources/api/resources/services/resources/file/types/LoadGenericDocumentFromEmploymentResponse.d.ts +6 -0
  22. package/api/resources/api/resources/services/resources/file/types/index.d.ts +1 -0
  23. package/api/resources/api/resources/services/resources/file/types/index.js +17 -0
  24. package/api/resources/api/resources/services/resources/index.d.ts +1 -0
  25. package/api/resources/api/resources/services/resources/index.js +1 -0
  26. package/api/resources/api/resources/test/resources/invoices/client/Client.js +1 -1
  27. package/api/resources/api/resources/thera/client/Client.d.ts +17 -0
  28. package/api/resources/api/resources/thera/client/Client.js +18 -0
  29. package/api/resources/api/resources/thera/client/index.d.ts +1 -0
  30. package/api/resources/api/resources/thera/client/index.js +2 -0
  31. package/api/resources/api/resources/thera/index.d.ts +2 -0
  32. package/api/resources/api/resources/thera/index.js +18 -0
  33. package/api/resources/api/resources/thera/resources/authentication/client/Client.d.ts +17 -0
  34. package/api/resources/api/resources/thera/resources/authentication/client/Client.js +18 -0
  35. package/api/resources/api/resources/thera/resources/authentication/client/index.d.ts +1 -0
  36. package/api/resources/api/resources/thera/resources/authentication/client/index.js +2 -0
  37. package/api/resources/api/resources/thera/resources/authentication/index.d.ts +2 -0
  38. package/api/resources/api/resources/thera/resources/authentication/index.js +18 -0
  39. package/api/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/client/Client.d.ts +17 -0
  40. package/api/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/client/Client.js +91 -0
  41. package/api/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/client/index.d.ts +1 -0
  42. package/api/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/client/index.js +2 -0
  43. package/api/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/index.d.ts +2 -0
  44. package/api/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/index.js +18 -0
  45. package/api/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/types/GustoAccessTokenResponse.d.ts +9 -0
  46. package/api/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/types/index.d.ts +1 -0
  47. package/api/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/types/index.js +17 -0
  48. package/api/resources/api/resources/thera/resources/authentication/resources/index.d.ts +2 -0
  49. package/api/resources/api/resources/thera/resources/authentication/resources/index.js +31 -0
  50. package/api/resources/api/resources/thera/resources/index.d.ts +1 -0
  51. package/{serialization/resources/db/resources/test/resources/employment/types/FernMilestoneStatus.js → api/resources/api/resources/thera/resources/index.js} +2 -6
  52. package/api/resources/db/resources/employment/types/EmploymentDocuments.d.ts +2 -1
  53. package/{dist/api/resources/db/resources/test/resources/employment/types/FernReimbursement.d.ts → api/resources/db/resources/employment/types/GenericEmploymentDocument.d.ts} +2 -2
  54. package/api/resources/db/resources/employment/types/index.d.ts +1 -0
  55. package/api/resources/db/resources/employment/types/index.js +1 -0
  56. package/api/resources/db/resources/gustoAuth/types/GustoAuth.d.ts +9 -0
  57. package/api/resources/db/resources/gustoAuth/types/index.d.ts +1 -0
  58. package/api/resources/db/resources/gustoAuth/types/index.js +17 -0
  59. package/api/resources/db/resources/index.d.ts +2 -1
  60. package/api/resources/db/resources/index.js +3 -2
  61. package/dist/api/resources/api/client/Client.d.ts +3 -0
  62. package/dist/api/resources/api/client/Client.js +5 -0
  63. package/dist/api/resources/api/resources/gusto/resources/index.d.ts +2 -0
  64. package/dist/{serialization/resources/db/resources/test → api/resources/api/resources/gusto}/resources/index.js +3 -3
  65. package/dist/api/resources/api/resources/gusto/resources/oauthToken/types/GrantType.d.ts +8 -0
  66. package/{api/resources/db/resources/test/resources/employment/types/FernEmploymentStatus.js → dist/api/resources/api/resources/gusto/resources/oauthToken/types/GrantType.js} +4 -4
  67. package/dist/api/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthRefreshAccessTokenRequest.d.ts +11 -0
  68. package/dist/api/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthRefreshTokenResponse.d.ts +11 -0
  69. package/dist/api/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthStrictAccessTokenRequest.d.ts +11 -0
  70. package/dist/api/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthStrictTokenResponse.d.ts +10 -0
  71. package/dist/api/resources/api/resources/gusto/resources/oauthToken/types/index.d.ts +5 -0
  72. package/dist/api/resources/api/resources/gusto/resources/oauthToken/types/index.js +21 -0
  73. package/dist/api/resources/api/resources/index.d.ts +3 -1
  74. package/dist/api/resources/api/resources/index.js +4 -2
  75. package/dist/api/resources/api/resources/services/index.d.ts +1 -1
  76. package/dist/api/resources/api/resources/services/index.js +1 -1
  77. package/dist/api/resources/api/resources/services/resources/file/client/Client.d.ts +1 -0
  78. package/dist/api/resources/api/resources/services/resources/file/client/Client.js +43 -2
  79. package/dist/api/resources/api/resources/services/resources/file/index.d.ts +1 -0
  80. package/dist/api/resources/api/resources/services/resources/file/index.js +1 -0
  81. package/dist/api/resources/api/resources/services/resources/file/types/LoadGenericDocumentFromEmploymentResponse.d.ts +6 -0
  82. package/dist/api/resources/api/resources/services/resources/file/types/index.d.ts +1 -0
  83. package/dist/api/resources/api/resources/services/resources/file/types/index.js +17 -0
  84. package/dist/api/resources/api/resources/services/resources/index.d.ts +1 -0
  85. package/dist/api/resources/api/resources/services/resources/index.js +1 -0
  86. package/dist/api/resources/api/resources/test/resources/invoices/client/Client.js +1 -1
  87. package/dist/api/resources/api/resources/thera/client/Client.d.ts +17 -0
  88. package/dist/api/resources/api/resources/thera/client/Client.js +18 -0
  89. package/dist/api/resources/api/resources/thera/client/index.d.ts +1 -0
  90. package/dist/api/resources/api/resources/thera/client/index.js +2 -0
  91. package/dist/api/resources/api/resources/thera/index.d.ts +2 -0
  92. package/dist/api/resources/api/resources/thera/index.js +18 -0
  93. package/dist/api/resources/api/resources/thera/resources/authentication/client/Client.d.ts +17 -0
  94. package/dist/api/resources/api/resources/thera/resources/authentication/client/Client.js +18 -0
  95. package/dist/api/resources/api/resources/thera/resources/authentication/client/index.d.ts +1 -0
  96. package/dist/api/resources/api/resources/thera/resources/authentication/client/index.js +2 -0
  97. package/dist/api/resources/api/resources/thera/resources/authentication/index.d.ts +2 -0
  98. package/dist/api/resources/api/resources/thera/resources/authentication/index.js +18 -0
  99. package/dist/api/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/client/Client.d.ts +17 -0
  100. package/dist/api/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/client/Client.js +91 -0
  101. package/dist/api/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/client/index.d.ts +1 -0
  102. package/dist/api/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/client/index.js +2 -0
  103. package/dist/api/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/index.d.ts +2 -0
  104. package/dist/api/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/index.js +18 -0
  105. package/dist/api/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/types/GustoAccessTokenResponse.d.ts +9 -0
  106. package/dist/api/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/types/index.d.ts +1 -0
  107. package/dist/api/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/types/index.js +17 -0
  108. package/dist/api/resources/api/resources/thera/resources/authentication/resources/index.d.ts +2 -0
  109. package/dist/api/resources/api/resources/thera/resources/authentication/resources/index.js +31 -0
  110. package/dist/api/resources/api/resources/thera/resources/index.d.ts +1 -0
  111. package/dist/{serialization/resources/db/resources/test/resources/employment/types/FernMilestoneStatus.js → api/resources/api/resources/thera/resources/index.js} +2 -6
  112. package/dist/api/resources/db/resources/employment/types/EmploymentDocuments.d.ts +2 -1
  113. package/{api/resources/db/resources/test/resources/employment/types/FernReimbursement.d.ts → dist/api/resources/db/resources/employment/types/GenericEmploymentDocument.d.ts} +2 -2
  114. package/dist/api/resources/db/resources/employment/types/index.d.ts +1 -0
  115. package/dist/api/resources/db/resources/employment/types/index.js +1 -0
  116. package/dist/api/resources/db/resources/gustoAuth/types/GustoAuth.d.ts +9 -0
  117. package/dist/api/resources/db/resources/gustoAuth/types/index.d.ts +1 -0
  118. package/dist/api/resources/db/resources/gustoAuth/types/index.js +17 -0
  119. package/dist/api/resources/db/resources/index.d.ts +2 -1
  120. package/dist/api/resources/db/resources/index.js +3 -2
  121. package/dist/serialization/resources/api/resources/gusto/resources/index.d.ts +2 -0
  122. package/{api/resources/db/resources/test → dist/serialization/resources/api/resources/gusto}/resources/index.js +3 -3
  123. package/dist/serialization/resources/api/resources/gusto/resources/oauthToken/index.d.ts +1 -0
  124. package/dist/serialization/resources/api/resources/gusto/resources/oauthToken/index.js +17 -0
  125. package/{serialization/resources/db/resources/test/resources/employment/types/FernWageType.d.ts → dist/serialization/resources/api/resources/gusto/resources/oauthToken/types/GrantType.d.ts} +3 -3
  126. package/{serialization/resources/db/resources/test/resources/employment/types/FernWageType.js → dist/serialization/resources/api/resources/gusto/resources/oauthToken/types/GrantType.js} +2 -2
  127. package/dist/serialization/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthRefreshAccessTokenRequest.d.ts +16 -0
  128. package/dist/serialization/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthRefreshAccessTokenRequest.js +37 -0
  129. package/dist/serialization/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthRefreshTokenResponse.d.ts +17 -0
  130. package/{serialization/resources/db/resources/test/resources/employment/types/FernEmploymentW2PayrollDetails.js → dist/serialization/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthRefreshTokenResponse.js} +8 -3
  131. package/dist/serialization/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthStrictAccessTokenRequest.d.ts +16 -0
  132. package/dist/serialization/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthStrictAccessTokenRequest.js +37 -0
  133. package/dist/serialization/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthStrictTokenResponse.d.ts +16 -0
  134. package/dist/serialization/resources/{db/resources/test/resources/employment/types/FernFrequency.js → api/resources/gusto/resources/oauthToken/types/GustoOAuthStrictTokenResponse.js} +7 -8
  135. package/dist/serialization/resources/api/resources/gusto/resources/oauthToken/types/index.d.ts +5 -0
  136. package/dist/serialization/resources/api/resources/gusto/resources/oauthToken/types/index.js +21 -0
  137. package/dist/serialization/resources/api/resources/index.d.ts +3 -1
  138. package/dist/serialization/resources/api/resources/index.js +4 -2
  139. package/dist/serialization/resources/api/resources/services/resources/file/index.d.ts +1 -0
  140. package/dist/serialization/resources/api/resources/services/resources/file/index.js +1 -0
  141. package/dist/serialization/resources/api/resources/services/resources/file/types/LoadGenericDocumentFromEmploymentResponse.d.ts +12 -0
  142. package/dist/serialization/resources/{db/resources/test/resources/employment/types/FernPerPaycheckFrequency.js → api/resources/services/resources/file/types/LoadGenericDocumentFromEmploymentResponse.js} +3 -3
  143. package/dist/serialization/resources/api/resources/services/resources/file/types/index.d.ts +1 -0
  144. package/dist/serialization/resources/api/resources/services/resources/file/types/index.js +17 -0
  145. package/dist/serialization/resources/api/resources/services/resources/index.d.ts +1 -0
  146. package/dist/serialization/resources/api/resources/services/resources/index.js +1 -0
  147. package/dist/serialization/resources/api/resources/thera/resources/authentication/index.d.ts +1 -0
  148. package/dist/serialization/resources/api/resources/thera/resources/authentication/index.js +17 -0
  149. package/dist/serialization/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/index.d.ts +1 -0
  150. package/dist/serialization/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/index.js +17 -0
  151. package/dist/serialization/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/types/GustoAccessTokenResponse.d.ts +14 -0
  152. package/dist/serialization/resources/{db/resources/test/resources/employment/types/FernEmploymentW2PayrollDetails.js → api/resources/thera/resources/authentication/resources/gustoAuthentication/types/GustoAccessTokenResponse.js} +6 -4
  153. package/dist/serialization/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/types/index.d.ts +1 -0
  154. package/dist/serialization/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/types/index.js +17 -0
  155. package/dist/serialization/resources/api/resources/thera/resources/authentication/resources/index.d.ts +2 -0
  156. package/dist/serialization/resources/api/resources/thera/resources/authentication/resources/index.js +31 -0
  157. package/dist/serialization/resources/api/resources/thera/resources/index.d.ts +1 -0
  158. package/dist/serialization/resources/api/resources/thera/resources/index.js +27 -0
  159. package/dist/serialization/resources/db/resources/employment/types/EmploymentDocuments.d.ts +1 -1
  160. package/dist/serialization/resources/db/resources/employment/types/EmploymentDocuments.js +1 -1
  161. package/dist/serialization/resources/db/resources/employment/types/GenericEmploymentDocument.d.ts +13 -0
  162. package/{serialization/resources/db/resources/test/resources/employment/types/FernReimbursement.js → dist/serialization/resources/db/resources/employment/types/GenericEmploymentDocument.js} +4 -4
  163. package/dist/serialization/resources/db/resources/employment/types/index.d.ts +1 -0
  164. package/dist/serialization/resources/db/resources/employment/types/index.js +1 -0
  165. package/dist/serialization/resources/db/resources/gustoAuth/index.d.ts +1 -0
  166. package/dist/serialization/resources/db/resources/gustoAuth/index.js +17 -0
  167. package/dist/serialization/resources/db/resources/gustoAuth/types/GustoAuth.d.ts +15 -0
  168. package/dist/serialization/resources/db/resources/{test/resources/employment/types/FernDeduction.js → gustoAuth/types/GustoAuth.js} +7 -4
  169. package/dist/serialization/resources/db/resources/gustoAuth/types/index.d.ts +1 -0
  170. package/dist/serialization/resources/db/resources/gustoAuth/types/index.js +17 -0
  171. package/dist/serialization/resources/db/resources/index.d.ts +2 -1
  172. package/dist/serialization/resources/db/resources/index.js +3 -2
  173. package/package.json +1 -1
  174. package/serialization/resources/api/resources/gusto/index.d.ts +1 -0
  175. package/serialization/resources/api/resources/gusto/index.js +17 -0
  176. package/serialization/resources/api/resources/gusto/resources/index.d.ts +2 -0
  177. package/serialization/resources/{db/resources/test → api/resources/gusto}/resources/index.js +3 -3
  178. package/serialization/resources/api/resources/gusto/resources/oauthToken/index.d.ts +1 -0
  179. package/serialization/resources/api/resources/gusto/resources/oauthToken/index.js +17 -0
  180. package/{dist/serialization/resources/db/resources/test/resources/employment/types/FernWageType.d.ts → serialization/resources/api/resources/gusto/resources/oauthToken/types/GrantType.d.ts} +3 -3
  181. package/{dist/serialization/resources/db/resources/test/resources/employment/types/FernWageType.js → serialization/resources/api/resources/gusto/resources/oauthToken/types/GrantType.js} +2 -2
  182. package/serialization/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthRefreshAccessTokenRequest.d.ts +16 -0
  183. package/serialization/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthRefreshAccessTokenRequest.js +37 -0
  184. package/serialization/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthRefreshTokenResponse.d.ts +17 -0
  185. package/serialization/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthRefreshTokenResponse.js +38 -0
  186. package/serialization/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthStrictAccessTokenRequest.d.ts +16 -0
  187. package/serialization/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthStrictAccessTokenRequest.js +37 -0
  188. package/serialization/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthStrictTokenResponse.d.ts +16 -0
  189. package/serialization/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthStrictTokenResponse.js +37 -0
  190. package/serialization/resources/api/resources/gusto/resources/oauthToken/types/index.d.ts +5 -0
  191. package/serialization/resources/api/resources/gusto/resources/oauthToken/types/index.js +21 -0
  192. package/serialization/resources/api/resources/index.d.ts +3 -1
  193. package/serialization/resources/api/resources/index.js +4 -2
  194. package/serialization/resources/api/resources/services/resources/file/index.d.ts +1 -0
  195. package/serialization/resources/api/resources/services/resources/file/index.js +1 -0
  196. package/serialization/resources/api/resources/services/resources/file/types/LoadGenericDocumentFromEmploymentResponse.d.ts +12 -0
  197. package/{dist/serialization/resources/db/resources/test/resources/employment/types/FernReimbursement.js → serialization/resources/api/resources/services/resources/file/types/LoadGenericDocumentFromEmploymentResponse.js} +3 -4
  198. package/serialization/resources/api/resources/services/resources/file/types/index.d.ts +1 -0
  199. package/serialization/resources/api/resources/services/resources/file/types/index.js +17 -0
  200. package/serialization/resources/api/resources/services/resources/index.d.ts +1 -0
  201. package/serialization/resources/api/resources/services/resources/index.js +1 -0
  202. package/serialization/resources/api/resources/thera/index.d.ts +1 -0
  203. package/serialization/resources/api/resources/thera/index.js +17 -0
  204. package/serialization/resources/api/resources/thera/resources/authentication/index.d.ts +1 -0
  205. package/serialization/resources/api/resources/thera/resources/authentication/index.js +17 -0
  206. package/serialization/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/index.d.ts +1 -0
  207. package/serialization/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/index.js +17 -0
  208. package/serialization/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/types/GustoAccessTokenResponse.d.ts +14 -0
  209. package/{dist/serialization/resources/db/resources/test/resources/employment/types/FernEarning.js → serialization/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/types/GustoAccessTokenResponse.js} +6 -9
  210. package/serialization/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/types/index.d.ts +1 -0
  211. package/serialization/resources/api/resources/thera/resources/authentication/resources/gustoAuthentication/types/index.js +17 -0
  212. package/serialization/resources/api/resources/thera/resources/authentication/resources/index.d.ts +2 -0
  213. package/serialization/resources/api/resources/thera/resources/authentication/resources/index.js +31 -0
  214. package/serialization/resources/api/resources/thera/resources/index.d.ts +1 -0
  215. package/serialization/resources/api/resources/thera/resources/index.js +27 -0
  216. package/serialization/resources/db/resources/employment/types/EmploymentDocuments.d.ts +1 -1
  217. package/serialization/resources/db/resources/employment/types/EmploymentDocuments.js +1 -1
  218. package/serialization/resources/db/resources/employment/types/GenericEmploymentDocument.d.ts +13 -0
  219. package/serialization/resources/db/resources/{test/resources/employment/types/FernDeduction.js → employment/types/GenericEmploymentDocument.js} +5 -4
  220. package/serialization/resources/db/resources/employment/types/index.d.ts +1 -0
  221. package/serialization/resources/db/resources/employment/types/index.js +1 -0
  222. package/serialization/resources/db/resources/gustoAuth/index.d.ts +1 -0
  223. package/serialization/resources/db/resources/gustoAuth/index.js +17 -0
  224. package/serialization/resources/db/resources/gustoAuth/types/GustoAuth.d.ts +15 -0
  225. package/serialization/resources/db/resources/gustoAuth/types/GustoAuth.js +36 -0
  226. package/serialization/resources/db/resources/gustoAuth/types/index.d.ts +1 -0
  227. package/serialization/resources/db/resources/gustoAuth/types/index.js +17 -0
  228. package/serialization/resources/db/resources/index.d.ts +2 -1
  229. package/serialization/resources/db/resources/index.js +3 -2
  230. package/api/resources/db/resources/test/resources/employment/types/FernContractDocumentType.d.ts +0 -9
  231. package/api/resources/db/resources/test/resources/employment/types/FernContractDocumentType.js +0 -11
  232. package/api/resources/db/resources/test/resources/employment/types/FernDeduction.d.ts +0 -6
  233. package/api/resources/db/resources/test/resources/employment/types/FernEarning.d.ts +0 -10
  234. package/api/resources/db/resources/test/resources/employment/types/FernEmployment.d.ts +0 -26
  235. package/api/resources/db/resources/test/resources/employment/types/FernEmploymentStatus.d.ts +0 -8
  236. package/api/resources/db/resources/test/resources/employment/types/FernEmploymentType.d.ts +0 -8
  237. package/api/resources/db/resources/test/resources/employment/types/FernEmploymentType.js +0 -10
  238. package/api/resources/db/resources/test/resources/employment/types/FernEmploymentW2PayrollDetails.d.ts +0 -7
  239. package/api/resources/db/resources/test/resources/employment/types/FernFrequency.d.ts +0 -10
  240. package/api/resources/db/resources/test/resources/employment/types/FernMilestone.d.ts +0 -11
  241. package/api/resources/db/resources/test/resources/employment/types/FernMilestoneDetails.d.ts +0 -7
  242. package/api/resources/db/resources/test/resources/employment/types/FernMilestoneStatus.d.ts +0 -8
  243. package/api/resources/db/resources/test/resources/employment/types/FernMilestoneStatus.js +0 -10
  244. package/api/resources/db/resources/test/resources/employment/types/FernPerPaycheckFrequency.d.ts +0 -6
  245. package/api/resources/db/resources/test/resources/employment/types/FernRecurrence.d.ts +0 -8
  246. package/api/resources/db/resources/test/resources/employment/types/FernRecurrenceDetails.d.ts +0 -14
  247. package/api/resources/db/resources/test/resources/employment/types/FernWageType.d.ts +0 -9
  248. package/api/resources/db/resources/test/resources/employment/types/FernWageType.js +0 -11
  249. package/api/resources/db/resources/test/resources/employment/types/index.d.ts +0 -16
  250. package/api/resources/db/resources/test/resources/employment/types/index.js +0 -32
  251. package/api/resources/db/resources/test/resources/index.d.ts +0 -2
  252. package/dist/api/resources/db/resources/test/resources/employment/types/FernContractDocumentType.d.ts +0 -9
  253. package/dist/api/resources/db/resources/test/resources/employment/types/FernContractDocumentType.js +0 -11
  254. package/dist/api/resources/db/resources/test/resources/employment/types/FernDeduction.d.ts +0 -6
  255. package/dist/api/resources/db/resources/test/resources/employment/types/FernEarning.d.ts +0 -10
  256. package/dist/api/resources/db/resources/test/resources/employment/types/FernEmployment.d.ts +0 -26
  257. package/dist/api/resources/db/resources/test/resources/employment/types/FernEmploymentStatus.d.ts +0 -8
  258. package/dist/api/resources/db/resources/test/resources/employment/types/FernEmploymentStatus.js +0 -10
  259. package/dist/api/resources/db/resources/test/resources/employment/types/FernEmploymentType.d.ts +0 -8
  260. package/dist/api/resources/db/resources/test/resources/employment/types/FernEmploymentType.js +0 -10
  261. package/dist/api/resources/db/resources/test/resources/employment/types/FernEmploymentW2PayrollDetails.d.ts +0 -7
  262. package/dist/api/resources/db/resources/test/resources/employment/types/FernFrequency.d.ts +0 -10
  263. package/dist/api/resources/db/resources/test/resources/employment/types/FernMilestone.d.ts +0 -11
  264. package/dist/api/resources/db/resources/test/resources/employment/types/FernMilestone.js +0 -5
  265. package/dist/api/resources/db/resources/test/resources/employment/types/FernMilestoneDetails.d.ts +0 -7
  266. package/dist/api/resources/db/resources/test/resources/employment/types/FernMilestoneDetails.js +0 -5
  267. package/dist/api/resources/db/resources/test/resources/employment/types/FernMilestoneStatus.d.ts +0 -8
  268. package/dist/api/resources/db/resources/test/resources/employment/types/FernPerPaycheckFrequency.d.ts +0 -6
  269. package/dist/api/resources/db/resources/test/resources/employment/types/FernPerPaycheckFrequency.js +0 -5
  270. package/dist/api/resources/db/resources/test/resources/employment/types/FernRecurrence.d.ts +0 -8
  271. package/dist/api/resources/db/resources/test/resources/employment/types/FernRecurrence.js +0 -5
  272. package/dist/api/resources/db/resources/test/resources/employment/types/FernRecurrenceDetails.d.ts +0 -14
  273. package/dist/api/resources/db/resources/test/resources/employment/types/FernRecurrenceDetails.js +0 -5
  274. package/dist/api/resources/db/resources/test/resources/employment/types/FernReimbursement.js +0 -5
  275. package/dist/api/resources/db/resources/test/resources/employment/types/FernWageType.d.ts +0 -9
  276. package/dist/api/resources/db/resources/test/resources/employment/types/FernWageType.js +0 -11
  277. package/dist/api/resources/db/resources/test/resources/employment/types/index.d.ts +0 -16
  278. package/dist/api/resources/db/resources/test/resources/employment/types/index.js +0 -32
  279. package/dist/api/resources/db/resources/test/resources/index.d.ts +0 -2
  280. package/dist/serialization/resources/db/resources/test/resources/employment/types/FernContractDocumentType.d.ts +0 -10
  281. package/dist/serialization/resources/db/resources/test/resources/employment/types/FernContractDocumentType.js +0 -31
  282. package/dist/serialization/resources/db/resources/test/resources/employment/types/FernDeduction.d.ts +0 -12
  283. package/dist/serialization/resources/db/resources/test/resources/employment/types/FernEarning.d.ts +0 -13
  284. package/dist/serialization/resources/db/resources/test/resources/employment/types/FernEmployment.d.ts +0 -31
  285. package/dist/serialization/resources/db/resources/test/resources/employment/types/FernEmployment.js +0 -52
  286. package/dist/serialization/resources/db/resources/test/resources/employment/types/FernEmploymentStatus.d.ts +0 -10
  287. package/dist/serialization/resources/db/resources/test/resources/employment/types/FernEmploymentStatus.js +0 -31
  288. package/dist/serialization/resources/db/resources/test/resources/employment/types/FernEmploymentType.d.ts +0 -10
  289. package/dist/serialization/resources/db/resources/test/resources/employment/types/FernEmploymentType.js +0 -31
  290. package/dist/serialization/resources/db/resources/test/resources/employment/types/FernEmploymentW2PayrollDetails.d.ts +0 -12
  291. package/dist/serialization/resources/db/resources/test/resources/employment/types/FernFrequency.d.ts +0 -13
  292. package/dist/serialization/resources/db/resources/test/resources/employment/types/FernMilestone.d.ts +0 -16
  293. package/dist/serialization/resources/db/resources/test/resources/employment/types/FernMilestone.js +0 -37
  294. package/dist/serialization/resources/db/resources/test/resources/employment/types/FernMilestoneDetails.d.ts +0 -12
  295. package/dist/serialization/resources/db/resources/test/resources/employment/types/FernMilestoneDetails.js +0 -33
  296. package/dist/serialization/resources/db/resources/test/resources/employment/types/FernMilestoneStatus.d.ts +0 -10
  297. package/dist/serialization/resources/db/resources/test/resources/employment/types/FernPerPaycheckFrequency.d.ts +0 -12
  298. package/dist/serialization/resources/db/resources/test/resources/employment/types/FernRecurrence.d.ts +0 -13
  299. package/dist/serialization/resources/db/resources/test/resources/employment/types/FernRecurrence.js +0 -34
  300. package/dist/serialization/resources/db/resources/test/resources/employment/types/FernRecurrenceDetails.d.ts +0 -17
  301. package/dist/serialization/resources/db/resources/test/resources/employment/types/FernRecurrenceDetails.js +0 -41
  302. package/dist/serialization/resources/db/resources/test/resources/employment/types/FernReimbursement.d.ts +0 -13
  303. package/dist/serialization/resources/db/resources/test/resources/employment/types/index.d.ts +0 -16
  304. package/dist/serialization/resources/db/resources/test/resources/employment/types/index.js +0 -32
  305. package/dist/serialization/resources/db/resources/test/resources/index.d.ts +0 -2
  306. package/serialization/resources/db/resources/test/resources/employment/types/FernContractDocumentType.d.ts +0 -10
  307. package/serialization/resources/db/resources/test/resources/employment/types/FernContractDocumentType.js +0 -31
  308. package/serialization/resources/db/resources/test/resources/employment/types/FernDeduction.d.ts +0 -12
  309. package/serialization/resources/db/resources/test/resources/employment/types/FernEarning.d.ts +0 -13
  310. package/serialization/resources/db/resources/test/resources/employment/types/FernEarning.js +0 -38
  311. package/serialization/resources/db/resources/test/resources/employment/types/FernEmployment.d.ts +0 -31
  312. package/serialization/resources/db/resources/test/resources/employment/types/FernEmployment.js +0 -52
  313. package/serialization/resources/db/resources/test/resources/employment/types/FernEmploymentStatus.d.ts +0 -10
  314. package/serialization/resources/db/resources/test/resources/employment/types/FernEmploymentStatus.js +0 -31
  315. package/serialization/resources/db/resources/test/resources/employment/types/FernEmploymentType.d.ts +0 -10
  316. package/serialization/resources/db/resources/test/resources/employment/types/FernEmploymentType.js +0 -31
  317. package/serialization/resources/db/resources/test/resources/employment/types/FernEmploymentW2PayrollDetails.d.ts +0 -12
  318. package/serialization/resources/db/resources/test/resources/employment/types/FernFrequency.d.ts +0 -13
  319. package/serialization/resources/db/resources/test/resources/employment/types/FernFrequency.js +0 -38
  320. package/serialization/resources/db/resources/test/resources/employment/types/FernMilestone.d.ts +0 -16
  321. package/serialization/resources/db/resources/test/resources/employment/types/FernMilestone.js +0 -37
  322. package/serialization/resources/db/resources/test/resources/employment/types/FernMilestoneDetails.d.ts +0 -12
  323. package/serialization/resources/db/resources/test/resources/employment/types/FernMilestoneDetails.js +0 -33
  324. package/serialization/resources/db/resources/test/resources/employment/types/FernMilestoneStatus.d.ts +0 -10
  325. package/serialization/resources/db/resources/test/resources/employment/types/FernPerPaycheckFrequency.d.ts +0 -12
  326. package/serialization/resources/db/resources/test/resources/employment/types/FernPerPaycheckFrequency.js +0 -33
  327. package/serialization/resources/db/resources/test/resources/employment/types/FernRecurrence.d.ts +0 -13
  328. package/serialization/resources/db/resources/test/resources/employment/types/FernRecurrence.js +0 -34
  329. package/serialization/resources/db/resources/test/resources/employment/types/FernRecurrenceDetails.d.ts +0 -17
  330. package/serialization/resources/db/resources/test/resources/employment/types/FernRecurrenceDetails.js +0 -41
  331. package/serialization/resources/db/resources/test/resources/employment/types/FernReimbursement.d.ts +0 -13
  332. package/serialization/resources/db/resources/test/resources/employment/types/index.d.ts +0 -16
  333. package/serialization/resources/db/resources/test/resources/employment/types/index.js +0 -32
  334. package/serialization/resources/db/resources/test/resources/index.d.ts +0 -2
  335. /package/api/resources/{db/resources/test → api/resources/gusto}/index.d.ts +0 -0
  336. /package/api/resources/{db/resources/test → api/resources/gusto}/index.js +0 -0
  337. /package/api/resources/{db/resources/test/resources/employment → api/resources/gusto/resources/oauthToken}/index.d.ts +0 -0
  338. /package/api/resources/{db/resources/test/resources/employment → api/resources/gusto/resources/oauthToken}/index.js +0 -0
  339. /package/api/resources/{db/resources/test/resources/employment/types/FernDeduction.js → api/resources/gusto/resources/oauthToken/types/GustoOAuthRefreshAccessTokenRequest.js} +0 -0
  340. /package/api/resources/{db/resources/test/resources/employment/types/FernEarning.js → api/resources/gusto/resources/oauthToken/types/GustoOAuthRefreshTokenResponse.js} +0 -0
  341. /package/api/resources/{db/resources/test/resources/employment/types/FernEmployment.js → api/resources/gusto/resources/oauthToken/types/GustoOAuthStrictAccessTokenRequest.js} +0 -0
  342. /package/api/resources/{db/resources/test/resources/employment/types/FernEmploymentW2PayrollDetails.js → api/resources/gusto/resources/oauthToken/types/GustoOAuthStrictTokenResponse.js} +0 -0
  343. /package/api/resources/{db/resources/test/resources/employment/types/FernFrequency.js → api/resources/services/resources/file/types/LoadGenericDocumentFromEmploymentResponse.js} +0 -0
  344. /package/api/resources/{db/resources/test/resources/employment/types/FernMilestone.js → api/resources/thera/resources/authentication/resources/gustoAuthentication/types/GustoAccessTokenResponse.js} +0 -0
  345. /package/api/resources/db/resources/{test/resources/employment/types/FernMilestoneDetails.js → employment/types/GenericEmploymentDocument.js} +0 -0
  346. /package/{dist/api/resources/db/resources/test/resources/employment → api/resources/db/resources/gustoAuth}/index.d.ts +0 -0
  347. /package/{dist/api/resources/db/resources/test/resources/employment → api/resources/db/resources/gustoAuth}/index.js +0 -0
  348. /package/api/resources/db/resources/{test/resources/employment/types/FernPerPaycheckFrequency.js → gustoAuth/types/GustoAuth.js} +0 -0
  349. /package/dist/api/resources/{db/resources/test → api/resources/gusto}/index.d.ts +0 -0
  350. /package/dist/api/resources/{db/resources/test → api/resources/gusto}/index.js +0 -0
  351. /package/dist/{serialization/resources/db/resources/test/resources/employment → api/resources/api/resources/gusto/resources/oauthToken}/index.d.ts +0 -0
  352. /package/dist/{serialization/resources/db/resources/test/resources/employment → api/resources/api/resources/gusto/resources/oauthToken}/index.js +0 -0
  353. /package/{api/resources/db/resources/test/resources/employment/types/FernRecurrence.js → dist/api/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthRefreshAccessTokenRequest.js} +0 -0
  354. /package/{api/resources/db/resources/test/resources/employment/types/FernRecurrenceDetails.js → dist/api/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthRefreshTokenResponse.js} +0 -0
  355. /package/{api/resources/db/resources/test/resources/employment/types/FernReimbursement.js → dist/api/resources/api/resources/gusto/resources/oauthToken/types/GustoOAuthStrictAccessTokenRequest.js} +0 -0
  356. /package/dist/api/resources/{db/resources/test/resources/employment/types/FernDeduction.js → api/resources/gusto/resources/oauthToken/types/GustoOAuthStrictTokenResponse.js} +0 -0
  357. /package/dist/api/resources/{db/resources/test/resources/employment/types/FernEarning.js → api/resources/services/resources/file/types/LoadGenericDocumentFromEmploymentResponse.js} +0 -0
  358. /package/dist/api/resources/{db/resources/test/resources/employment/types/FernEmployment.js → api/resources/thera/resources/authentication/resources/gustoAuthentication/types/GustoAccessTokenResponse.js} +0 -0
  359. /package/dist/api/resources/db/resources/{test/resources/employment/types/FernEmploymentW2PayrollDetails.js → employment/types/GenericEmploymentDocument.js} +0 -0
  360. /package/{serialization/resources/db/resources/test/resources/employment → dist/api/resources/db/resources/gustoAuth}/index.d.ts +0 -0
  361. /package/{serialization/resources/db/resources/test/resources/employment → dist/api/resources/db/resources/gustoAuth}/index.js +0 -0
  362. /package/dist/api/resources/db/resources/{test/resources/employment/types/FernFrequency.js → gustoAuth/types/GustoAuth.js} +0 -0
  363. /package/dist/serialization/resources/{db/resources/test → api/resources/gusto}/index.d.ts +0 -0
  364. /package/dist/serialization/resources/{db/resources/test → api/resources/gusto}/index.js +0 -0
  365. /package/{serialization/resources/db/resources/test → dist/serialization/resources/api/resources/thera}/index.d.ts +0 -0
  366. /package/{serialization/resources/db/resources/test → dist/serialization/resources/api/resources/thera}/index.js +0 -0
@@ -0,0 +1,18 @@
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);
@@ -0,0 +1,17 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as core from "../../../../../../../../../../core";
5
+ import * 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
+ }
@@ -0,0 +1,91 @@
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.1061",
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;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export * from "./types";
2
+ export * from "./client";
@@ -0,0 +1,18 @@
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);
@@ -0,0 +1,9 @@
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
+ }
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./GustoAccessTokenResponse"), exports);
@@ -0,0 +1,2 @@
1
+ export * as gustoAuthentication from "./gustoAuthentication";
2
+ export * from "./gustoAuthentication/types";
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
26
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.gustoAuthentication = void 0;
30
+ exports.gustoAuthentication = __importStar(require("./gustoAuthentication"));
31
+ __exportStar(require("./gustoAuthentication/types"), exports);
@@ -0,0 +1 @@
1
+ export * as authentication from "./authentication";
@@ -1,7 +1,4 @@
1
1
  "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
3
  if (k2 === undefined) k2 = k;
7
4
  var desc = Object.getOwnPropertyDescriptor(m, k);
@@ -26,6 +23,5 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
23
  return result;
27
24
  };
28
25
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.FernMilestoneStatus = void 0;
30
- const core = __importStar(require("../../../../../../../../core"));
31
- exports.FernMilestoneStatus = core.serialization.enum_(["CREATED", "COMPLETE"]);
26
+ exports.authentication = void 0;
27
+ exports.authentication = __importStar(require("./authentication"));
@@ -1,7 +1,8 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as TheraApi from "../../../../..";
4
5
  export interface EmploymentDocuments {
5
6
  /** Keys are S3 Keys, values are names that the UI can display */
6
- generic: Record<string, string>;
7
+ generic: Record<string, TheraApi.db.GenericEmploymentDocument>;
7
8
  }
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export interface FernReimbursement {
5
- amount: number;
4
+ export interface GenericEmploymentDocument {
6
5
  name: string;
6
+ uploadDate: string;
7
7
  }
@@ -15,6 +15,7 @@ export * from "./WageType";
15
15
  export * from "./EmploymentStatus";
16
16
  export * from "./Employment";
17
17
  export * from "./EmploymentDocuments";
18
+ export * from "./GenericEmploymentDocument";
18
19
  export * from "./ModifyRecurrencesRequest";
19
20
  export * from "./RecurrenceModifications";
20
21
  export * from "./ModifyRecurrencesResponse";
@@ -31,6 +31,7 @@ __exportStar(require("./WageType"), exports);
31
31
  __exportStar(require("./EmploymentStatus"), exports);
32
32
  __exportStar(require("./Employment"), exports);
33
33
  __exportStar(require("./EmploymentDocuments"), exports);
34
+ __exportStar(require("./GenericEmploymentDocument"), exports);
34
35
  __exportStar(require("./ModifyRecurrencesRequest"), exports);
35
36
  __exportStar(require("./RecurrenceModifications"), exports);
36
37
  __exportStar(require("./ModifyRecurrencesResponse"), exports);
@@ -0,0 +1,9 @@
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
+ }
@@ -0,0 +1 @@
1
+ export * from "./GustoAuth";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./GustoAuth"), exports);
@@ -2,7 +2,8 @@ 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";
5
7
  export * as payment from "./payment";
6
- export * as test from "./test";
7
8
  export * as user from "./user";
8
9
  export * from "./user/types";
@@ -26,12 +26,13 @@ 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.test = exports.payment = exports.employment = exports.document = void 0;
29
+ exports.user = exports.payment = exports.gustoAuth = 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);
34
36
  exports.payment = __importStar(require("./payment"));
35
- exports.test = __importStar(require("./test"));
36
37
  exports.user = __importStar(require("./user"));
37
38
  __exportStar(require("./user/types"), exports);
@@ -0,0 +1,2 @@
1
+ export * as oauthToken from "./oauthToken";
2
+ export * from "./oauthToken/types";
@@ -26,6 +26,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
26
26
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.employment = void 0;
30
- exports.employment = __importStar(require("./employment"));
31
- __exportStar(require("./employment/types"), exports);
29
+ exports.oauthToken = void 0;
30
+ exports.oauthToken = __importStar(require("./oauthToken"));
31
+ __exportStar(require("./oauthToken/types"), exports);
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./types"), exports);
@@ -4,7 +4,7 @@
4
4
  import * as serializers from "../../../../../../..";
5
5
  import * as TheraApi from "../../../../../../../../api";
6
6
  import * as core from "../../../../../../../../core";
7
- export declare const FernWageType: core.serialization.Schema<serializers.db.test.FernWageType.Raw, TheraApi.db.test.FernWageType>;
8
- export declare namespace FernWageType {
9
- type Raw = "HOURLY" | "MONTHLY" | "MILESTONE";
7
+ export declare const GrantType: core.serialization.Schema<serializers.api.gusto.GrantType.Raw, TheraApi.api.gusto.GrantType>;
8
+ export declare namespace GrantType {
9
+ type Raw = "refresh_token" | "strict_access";
10
10
  }
@@ -26,6 +26,6 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.FernWageType = void 0;
29
+ exports.GrantType = void 0;
30
30
  const core = __importStar(require("../../../../../../../../core"));
31
- exports.FernWageType = core.serialization.enum_(["HOURLY", "MONTHLY", "MILESTONE"]);
31
+ exports.GrantType = core.serialization.enum_(["refresh_token", "strict_access"]);
@@ -0,0 +1,16 @@
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 GustoOAuthRefreshAccessTokenRequest: core.serialization.ObjectSchema<serializers.api.gusto.GustoOAuthRefreshAccessTokenRequest.Raw, TheraApi.api.gusto.GustoOAuthRefreshAccessTokenRequest>;
8
+ export declare namespace GustoOAuthRefreshAccessTokenRequest {
9
+ interface Raw {
10
+ refresh_token: string;
11
+ grant_type: serializers.api.gusto.GrantType.Raw;
12
+ client_id: string;
13
+ client_secret: string;
14
+ redirect_uri: string;
15
+ }
16
+ }
@@ -0,0 +1,37 @@
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.GustoOAuthRefreshAccessTokenRequest = void 0;
30
+ const core = __importStar(require("../../../../../../../../core"));
31
+ exports.GustoOAuthRefreshAccessTokenRequest = core.serialization.object({
32
+ refreshToken: core.serialization.property("refresh_token", core.serialization.string()),
33
+ grantType: core.serialization.property("grant_type", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../../../..")))).api.gusto.GrantType)),
34
+ clientId: core.serialization.property("client_id", core.serialization.string()),
35
+ clientSecret: core.serialization.property("client_secret", core.serialization.string()),
36
+ redirectUri: core.serialization.property("redirect_uri", core.serialization.string()),
37
+ });
@@ -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 GustoOAuthRefreshTokenResponse: core.serialization.ObjectSchema<serializers.api.gusto.GustoOAuthRefreshTokenResponse.Raw, TheraApi.api.gusto.GustoOAuthRefreshTokenResponse>;
8
+ export declare namespace GustoOAuthRefreshTokenResponse {
9
+ interface Raw {
10
+ access_token: string;
11
+ token_type: string;
12
+ created_at: number;
13
+ expires_in: number;
14
+ refresh_token: string;
15
+ scope: string;
16
+ }
17
+ }
@@ -26,8 +26,13 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.FernEmploymentW2PayrollDetails = void 0;
29
+ exports.GustoOAuthRefreshTokenResponse = void 0;
30
30
  const core = __importStar(require("../../../../../../../../core"));
31
- exports.FernEmploymentW2PayrollDetails = core.serialization.object({
32
- recurrences: core.serialization.record(core.serialization.string(), core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../../../..")))).db.test.FernRecurrence)),
31
+ exports.GustoOAuthRefreshTokenResponse = core.serialization.object({
32
+ accessToken: core.serialization.property("access_token", core.serialization.string()),
33
+ tokenType: core.serialization.property("token_type", core.serialization.string()),
34
+ createdAt: core.serialization.property("created_at", core.serialization.number()),
35
+ expiresIn: core.serialization.property("expires_in", core.serialization.number()),
36
+ refreshToken: core.serialization.property("refresh_token", core.serialization.string()),
37
+ scope: core.serialization.string(),
33
38
  });
@@ -0,0 +1,16 @@
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 GustoOAuthStrictAccessTokenRequest: core.serialization.ObjectSchema<serializers.api.gusto.GustoOAuthStrictAccessTokenRequest.Raw, TheraApi.api.gusto.GustoOAuthStrictAccessTokenRequest>;
8
+ export declare namespace GustoOAuthStrictAccessTokenRequest {
9
+ interface Raw {
10
+ access_token: string;
11
+ grant_type: serializers.api.gusto.GrantType.Raw;
12
+ client_id: string;
13
+ client_secret: string;
14
+ redirect_uri: string;
15
+ }
16
+ }
@@ -0,0 +1,37 @@
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.GustoOAuthStrictAccessTokenRequest = void 0;
30
+ const core = __importStar(require("../../../../../../../../core"));
31
+ exports.GustoOAuthStrictAccessTokenRequest = core.serialization.object({
32
+ accessToken: core.serialization.property("access_token", core.serialization.string()),
33
+ grantType: core.serialization.property("grant_type", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../../../..")))).api.gusto.GrantType)),
34
+ clientId: core.serialization.property("client_id", core.serialization.string()),
35
+ clientSecret: core.serialization.property("client_secret", core.serialization.string()),
36
+ redirectUri: core.serialization.property("redirect_uri", core.serialization.string()),
37
+ });
@@ -0,0 +1,16 @@
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 GustoOAuthStrictTokenResponse: core.serialization.ObjectSchema<serializers.api.gusto.GustoOAuthStrictTokenResponse.Raw, TheraApi.api.gusto.GustoOAuthStrictTokenResponse>;
8
+ export declare namespace GustoOAuthStrictTokenResponse {
9
+ interface Raw {
10
+ access_token: string;
11
+ refresh_token: string;
12
+ token_type: string;
13
+ resource_type: string;
14
+ resource_uuid: string;
15
+ }
16
+ }
@@ -26,13 +26,12 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.FernFrequency = void 0;
29
+ exports.GustoOAuthStrictTokenResponse = void 0;
30
30
  const core = __importStar(require("../../../../../../../../core"));
31
- exports.FernFrequency = core.serialization
32
- .union("type", {
33
- perPaycheck: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../../../..")))).db.test.FernPerPaycheckFrequency),
34
- })
35
- .transform({
36
- transform: (value) => value,
37
- untransform: (value) => value,
31
+ exports.GustoOAuthStrictTokenResponse = core.serialization.object({
32
+ accessToken: core.serialization.property("access_token", core.serialization.string()),
33
+ refreshToken: core.serialization.property("refresh_token", core.serialization.string()),
34
+ tokenType: core.serialization.property("token_type", core.serialization.string()),
35
+ resourceType: core.serialization.property("resource_type", core.serialization.string()),
36
+ resourceUuid: core.serialization.property("resource_uuid", core.serialization.string()),
38
37
  });
@@ -0,0 +1,5 @@
1
+ export * from "./GrantType";
2
+ export * from "./GustoOAuthStrictAccessTokenRequest";
3
+ export * from "./GustoOAuthRefreshAccessTokenRequest";
4
+ export * from "./GustoOAuthStrictTokenResponse";
5
+ export * from "./GustoOAuthRefreshTokenResponse";