@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
@@ -4,6 +4,7 @@
4
4
  import * as core from "../../../../core";
5
5
  import { Services } from "../resources/services/client/Client";
6
6
  import { Test } from "../resources/test/client/Client";
7
+ import { Thera } from "../resources/thera/client/Client";
7
8
  export declare namespace Api {
8
9
  interface Options {
9
10
  environment: string;
@@ -17,4 +18,6 @@ export declare class Api {
17
18
  get services(): Services;
18
19
  protected _test: Test | undefined;
19
20
  get test(): Test;
21
+ protected _thera: Thera | undefined;
22
+ get thera(): Thera;
20
23
  }
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.Api = void 0;
7
7
  const Client_1 = require("../resources/services/client/Client");
8
8
  const Client_2 = require("../resources/test/client/Client");
9
+ const Client_3 = require("../resources/thera/client/Client");
9
10
  class Api {
10
11
  options;
11
12
  constructor(options) {
@@ -19,5 +20,9 @@ class Api {
19
20
  get test() {
20
21
  return (this._test ??= new Client_2.Test(this.options));
21
22
  }
23
+ _thera;
24
+ get thera() {
25
+ return (this._thera ??= new Client_3.Thera(this.options));
26
+ }
22
27
  }
23
28
  exports.Api = Api;
@@ -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,8 @@
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
+ };
@@ -3,8 +3,8 @@
3
3
  * This file was auto-generated by Fern from our API Definition.
4
4
  */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.FernMilestoneStatus = void 0;
7
- exports.FernMilestoneStatus = {
8
- Created: "CREATED",
9
- Complete: "COMPLETE",
6
+ exports.GrantType = void 0;
7
+ exports.GrantType = {
8
+ RefreshToken: "refresh_token",
9
+ StrictAccess: "strict_access",
10
10
  };
@@ -0,0 +1,11 @@
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
+ }
@@ -0,0 +1,11 @@
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
+ }
@@ -0,0 +1,11 @@
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
+ }
@@ -0,0 +1,10 @@
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
+ }
@@ -0,0 +1,5 @@
1
+ export * from "./GrantType";
2
+ export * from "./GustoOAuthStrictAccessTokenRequest";
3
+ export * from "./GustoOAuthRefreshAccessTokenRequest";
4
+ export * from "./GustoOAuthStrictTokenResponse";
5
+ export * from "./GustoOAuthRefreshTokenResponse";
@@ -0,0 +1,21 @@
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,4 +1,6 @@
1
+ export * as gusto from "./gusto";
1
2
  export * as request from "./request";
2
3
  export * as response from "./response";
3
- export * as test from "./test";
4
4
  export * as services from "./services";
5
+ export * as test from "./test";
6
+ export * as thera from "./thera";
@@ -23,8 +23,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.services = exports.test = exports.response = exports.request = void 0;
26
+ exports.thera = exports.test = exports.services = exports.response = exports.request = exports.gusto = void 0;
27
+ exports.gusto = __importStar(require("./gusto"));
27
28
  exports.request = __importStar(require("./request"));
28
29
  exports.response = __importStar(require("./response"));
29
- exports.test = __importStar(require("./test"));
30
30
  exports.services = __importStar(require("./services"));
31
+ exports.test = __importStar(require("./test"));
32
+ exports.thera = __importStar(require("./thera"));
@@ -1,2 +1,2 @@
1
- export * from "./client";
2
1
  export * from "./resources";
2
+ export * from "./client";
@@ -14,5 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./client"), exports);
18
17
  __exportStar(require("./resources"), exports);
18
+ __exportStar(require("./client"), exports);
@@ -14,5 +14,6 @@ export declare class File_ {
14
14
  constructor(options: File_.Options);
15
15
  attachDocumentToEmployment(contractId: string, request: TheraApi.api.services.AttachDocumentToEmploymentRequest): Promise<void>;
16
16
  deleteDocumentFromEmployment(contractId: string, s3Key: string, request: TheraApi.api.services.DeleteDocumentFromEmploymentRequest): Promise<void>;
17
+ loadGenericDocumentFromEmployment(contractId: string, s3Key: string): Promise<TheraApi.api.services.LoadGenericDocumentFromEmploymentResponse>;
17
18
  protected _getAuthorizationHeader(): Promise<string | undefined>;
18
19
  }
@@ -47,7 +47,7 @@ class File_ {
47
47
  Authorization: await this._getAuthorizationHeader(),
48
48
  "X-Fern-Language": "JavaScript",
49
49
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
50
- "X-Fern-SDK-Version": "0.0.1002",
50
+ "X-Fern-SDK-Version": "0.0.1061",
51
51
  },
52
52
  contentType: "application/json",
53
53
  body: await serializers.api.services.AttachDocumentToEmploymentRequest.jsonOrThrow(request, {
@@ -86,7 +86,7 @@ class File_ {
86
86
  Authorization: await this._getAuthorizationHeader(),
87
87
  "X-Fern-Language": "JavaScript",
88
88
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
89
- "X-Fern-SDK-Version": "0.0.1002",
89
+ "X-Fern-SDK-Version": "0.0.1061",
90
90
  },
91
91
  contentType: "application/json",
92
92
  body: await serializers.api.services.DeleteDocumentFromEmploymentRequest.jsonOrThrow(request, {
@@ -117,6 +117,47 @@ class File_ {
117
117
  });
118
118
  }
119
119
  }
120
+ async loadGenericDocumentFromEmployment(contractId, s3Key) {
121
+ const _response = await core.fetcher({
122
+ url: (0, url_join_1.default)(this.options.environment, `/contracts/${contractId}/generic-document/${s3Key}/file-url`),
123
+ method: "GET",
124
+ headers: {
125
+ Authorization: await this._getAuthorizationHeader(),
126
+ "X-Fern-Language": "JavaScript",
127
+ "X-Fern-SDK-Name": "@thera-hr/api-sdk",
128
+ "X-Fern-SDK-Version": "0.0.1061",
129
+ },
130
+ contentType: "application/json",
131
+ timeoutMs: 60000,
132
+ });
133
+ if (_response.ok) {
134
+ return await serializers.api.services.LoadGenericDocumentFromEmploymentResponse.parseOrThrow(_response.body, {
135
+ unrecognizedObjectKeys: "passthrough",
136
+ allowUnrecognizedUnionMembers: true,
137
+ allowUnrecognizedEnumValues: true,
138
+ breadcrumbsPrefix: ["response"],
139
+ });
140
+ }
141
+ if (_response.error.reason === "status-code") {
142
+ throw new errors.TheraApiError({
143
+ statusCode: _response.error.statusCode,
144
+ body: _response.error.body,
145
+ });
146
+ }
147
+ switch (_response.error.reason) {
148
+ case "non-json":
149
+ throw new errors.TheraApiError({
150
+ statusCode: _response.error.statusCode,
151
+ body: _response.error.rawBody,
152
+ });
153
+ case "timeout":
154
+ throw new errors.TheraApiTimeoutError();
155
+ case "unknown":
156
+ throw new errors.TheraApiError({
157
+ message: _response.error.errorMessage,
158
+ });
159
+ }
160
+ }
120
161
  async _getAuthorizationHeader() {
121
162
  const bearer = await core.Supplier.get(this.options.token);
122
163
  if (bearer != null) {
@@ -1 +1,2 @@
1
+ export * from "./types";
1
2
  export * from "./client";
@@ -14,4 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./types"), exports);
17
18
  __exportStar(require("./client"), exports);
@@ -0,0 +1,6 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface LoadGenericDocumentFromEmploymentResponse {
5
+ url: string;
6
+ }
@@ -0,0 +1 @@
1
+ export * from "./LoadGenericDocumentFromEmploymentResponse";
@@ -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("./LoadGenericDocumentFromEmploymentResponse"), exports);
@@ -1,2 +1,3 @@
1
1
  export * as file from "./file";
2
+ export * from "./file/types";
2
3
  export * from "./file/client/requests";
@@ -28,4 +28,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.file = void 0;
30
30
  exports.file = __importStar(require("./file"));
31
+ __exportStar(require("./file/types"), exports);
31
32
  __exportStar(require("./file/client/requests"), exports);
@@ -47,7 +47,7 @@ class Invoices {
47
47
  Authorization: await this._getAuthorizationHeader(),
48
48
  "X-Fern-Language": "JavaScript",
49
49
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
50
- "X-Fern-SDK-Version": "0.0.1002",
50
+ "X-Fern-SDK-Version": "0.0.1061",
51
51
  },
52
52
  contentType: "application/json",
53
53
  body: await serializers.api.test.VoidInvoiceRequest.jsonOrThrow(request, {
@@ -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 { Authentication } from "../resources/authentication/client/Client";
6
+ export declare namespace Thera {
7
+ interface Options {
8
+ environment: string;
9
+ token: core.Supplier<core.BearerToken>;
10
+ }
11
+ }
12
+ export declare class Thera {
13
+ protected readonly options: Thera.Options;
14
+ constructor(options: Thera.Options);
15
+ protected _authentication: Authentication | undefined;
16
+ get authentication(): Authentication;
17
+ }
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.Thera = void 0;
7
+ const Client_1 = require("../resources/authentication/client/Client");
8
+ class Thera {
9
+ options;
10
+ constructor(options) {
11
+ this.options = options;
12
+ }
13
+ _authentication;
14
+ get authentication() {
15
+ return (this._authentication ??= new Client_1.Authentication(this.options));
16
+ }
17
+ }
18
+ exports.Thera = Thera;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export * from "./resources";
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("./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 { 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
+ }
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.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;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export * from "./resources";
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("./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
+ }