@thera-hr/api-sdk 0.0.3679 → 0.0.3790

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 (201) hide show
  1. package/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +1 -1
  2. package/api/resources/api/resources/services/resources/file/client/Client.js +4 -4
  3. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.d.ts +2 -2
  4. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +40 -20
  5. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/CreateStripePaymentMethodFromPlaidRequest.d.ts +6 -0
  6. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/SendMicroDepositRequest.d.ts +6 -0
  7. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/VerifyAccountSignupRequest.d.ts +1 -0
  8. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/{types → client/requests}/VerifyMicrodepositRequest.d.ts +1 -0
  9. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/VerifyMicrodepositRequest.js +5 -0
  10. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/index.d.ts +3 -0
  11. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/CompleteAccountSignupRequest.d.ts +1 -0
  12. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +0 -1
  13. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +0 -1
  14. package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.d.ts +16 -0
  15. package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +195 -8
  16. package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/EditTeamRequest.d.ts +6 -0
  17. package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/EditTeamRequest.js +5 -0
  18. package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/index.d.ts +1 -0
  19. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyApiResponse.d.ts +1 -0
  20. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyPermissions.d.ts +8 -0
  21. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyPermissions.js +5 -0
  22. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/DeleteTeamResponse.d.ts +5 -0
  23. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/DeleteTeamResponse.js +5 -0
  24. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/EditTeamResponse.d.ts +5 -0
  25. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/EditTeamResponse.js +5 -0
  26. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/Flags.d.ts +1 -0
  27. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/GetAllCompanyPermissionsForUserResponse.d.ts +7 -0
  28. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/GetAllCompanyPermissionsForUserResponse.js +5 -0
  29. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/GetTeamsResponse.d.ts +7 -0
  30. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/GetTeamsResponse.js +5 -0
  31. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/Manager.d.ts +1 -2
  32. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/Team.d.ts +6 -0
  33. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/Team.js +5 -0
  34. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamAndDetails.d.ts +9 -0
  35. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamAndDetails.js +5 -0
  36. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamRole.d.ts +4 -4
  37. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamRole.js +3 -3
  38. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/index.d.ts +7 -0
  39. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/index.js +7 -0
  40. package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +1 -1
  41. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +3 -3
  42. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateInvoiceCsvColumn.d.ts +1 -1
  43. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateInvoiceCsvRecord.d.ts +3 -1
  44. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
  45. package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +3 -3
  46. package/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +1 -1
  47. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +1 -1
  48. package/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +1 -1
  49. package/api/resources/db/resources/contract/types/Contract.d.ts +1 -0
  50. package/dist/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +1 -1
  51. package/dist/api/resources/api/resources/services/resources/file/client/Client.js +4 -4
  52. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.d.ts +2 -2
  53. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +40 -20
  54. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/CreateStripePaymentMethodFromPlaidRequest.d.ts +6 -0
  55. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/CreateStripePaymentMethodFromPlaidRequest.js +5 -0
  56. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/SendMicroDepositRequest.d.ts +6 -0
  57. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/SendMicroDepositRequest.js +5 -0
  58. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/VerifyAccountSignupRequest.d.ts +1 -0
  59. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/{types → client/requests}/VerifyMicrodepositRequest.d.ts +1 -0
  60. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/VerifyMicrodepositRequest.js +5 -0
  61. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/index.d.ts +3 -0
  62. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/CompleteAccountSignupRequest.d.ts +1 -0
  63. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +0 -1
  64. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +0 -1
  65. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.d.ts +16 -0
  66. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +195 -8
  67. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/EditTeamRequest.d.ts +6 -0
  68. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/EditTeamRequest.js +5 -0
  69. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/index.d.ts +1 -0
  70. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyApiResponse.d.ts +1 -0
  71. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyPermissions.d.ts +8 -0
  72. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyPermissions.js +5 -0
  73. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/DeleteTeamResponse.d.ts +5 -0
  74. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/DeleteTeamResponse.js +5 -0
  75. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/EditTeamResponse.d.ts +5 -0
  76. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/EditTeamResponse.js +5 -0
  77. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/Flags.d.ts +1 -0
  78. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/GetAllCompanyPermissionsForUserResponse.d.ts +7 -0
  79. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/GetAllCompanyPermissionsForUserResponse.js +5 -0
  80. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/GetTeamsResponse.d.ts +7 -0
  81. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/GetTeamsResponse.js +5 -0
  82. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/Manager.d.ts +1 -2
  83. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/Team.d.ts +6 -0
  84. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/Team.js +5 -0
  85. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamAndDetails.d.ts +9 -0
  86. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamAndDetails.js +5 -0
  87. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamRole.d.ts +4 -4
  88. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamRole.js +3 -3
  89. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/index.d.ts +7 -0
  90. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/index.js +7 -0
  91. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +1 -1
  92. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +3 -3
  93. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateInvoiceCsvColumn.d.ts +1 -1
  94. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateInvoiceCsvRecord.d.ts +3 -1
  95. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
  96. package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +3 -3
  97. package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +1 -1
  98. package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +1 -1
  99. package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +1 -1
  100. package/dist/api/resources/db/resources/contract/types/Contract.d.ts +1 -0
  101. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/CreateStripePaymentMethodFromPlaidRequest.d.ts +12 -0
  102. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/CreateStripePaymentMethodFromPlaidRequest.js +33 -0
  103. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/SendMicroDepositRequest.d.ts +12 -0
  104. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/SendMicroDepositRequest.js +33 -0
  105. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/VerifyAccountSignupRequest.d.ts +12 -0
  106. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/VerifyAccountSignupRequest.js +33 -0
  107. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/VerifyMicrodepositRequest.d.ts +14 -0
  108. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/{types → client/requests}/VerifyMicrodepositRequest.js +2 -1
  109. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/index.d.ts +4 -0
  110. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/index.js +9 -1
  111. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/CompleteAccountSignupRequest.d.ts +1 -0
  112. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/CompleteAccountSignupRequest.js +1 -0
  113. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +0 -1
  114. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +0 -1
  115. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/EditTeamRequest.d.ts +12 -0
  116. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/EditTeamRequest.js +33 -0
  117. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/index.d.ts +1 -0
  118. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/index.js +3 -1
  119. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyApiResponse.d.ts +1 -0
  120. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyApiResponse.js +1 -0
  121. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyPermissions.d.ts +13 -0
  122. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyPermissions.js +43 -0
  123. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/DeleteTeamResponse.d.ts +11 -0
  124. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/DeleteTeamResponse.js +31 -0
  125. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/EditTeamResponse.d.ts +11 -0
  126. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/EditTeamResponse.js +31 -0
  127. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/Flags.d.ts +1 -0
  128. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/Flags.js +1 -0
  129. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/GetAllCompanyPermissionsForUserResponse.d.ts +12 -0
  130. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/GetAllCompanyPermissionsForUserResponse.js +42 -0
  131. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/GetTeamsResponse.d.ts +12 -0
  132. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/GetTeamsResponse.js +42 -0
  133. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/Manager.d.ts +1 -2
  134. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/Manager.js +1 -4
  135. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/Team.d.ts +12 -0
  136. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/Team.js +33 -0
  137. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamAndDetails.d.ts +14 -0
  138. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamAndDetails.js +44 -0
  139. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamRole.d.ts +1 -1
  140. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamRole.js +1 -1
  141. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/index.d.ts +7 -0
  142. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/index.js +7 -0
  143. package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateInvoiceCsvColumn.d.ts +1 -1
  144. package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateInvoiceCsvColumn.js +1 -1
  145. package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateInvoiceCsvRecord.d.ts +3 -1
  146. package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateInvoiceCsvRecord.js +3 -1
  147. package/dist/serialization/resources/db/resources/contract/types/Contract.d.ts +1 -0
  148. package/dist/serialization/resources/db/resources/contract/types/Contract.js +1 -0
  149. package/package.json +1 -1
  150. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/CreateStripePaymentMethodFromPlaidRequest.d.ts +12 -0
  151. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/CreateStripePaymentMethodFromPlaidRequest.js +33 -0
  152. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/SendMicroDepositRequest.d.ts +12 -0
  153. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/SendMicroDepositRequest.js +33 -0
  154. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/VerifyAccountSignupRequest.d.ts +12 -0
  155. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/VerifyAccountSignupRequest.js +33 -0
  156. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/VerifyMicrodepositRequest.d.ts +14 -0
  157. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/{types → client/requests}/VerifyMicrodepositRequest.js +2 -1
  158. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/index.d.ts +4 -0
  159. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/index.js +9 -1
  160. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/CompleteAccountSignupRequest.d.ts +1 -0
  161. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/CompleteAccountSignupRequest.js +1 -0
  162. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +0 -1
  163. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +0 -1
  164. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/EditTeamRequest.d.ts +12 -0
  165. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/EditTeamRequest.js +33 -0
  166. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/index.d.ts +1 -0
  167. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/index.js +3 -1
  168. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyApiResponse.d.ts +1 -0
  169. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyApiResponse.js +1 -0
  170. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyPermissions.d.ts +13 -0
  171. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyPermissions.js +43 -0
  172. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/DeleteTeamResponse.d.ts +11 -0
  173. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/DeleteTeamResponse.js +31 -0
  174. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/EditTeamResponse.d.ts +11 -0
  175. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/EditTeamResponse.js +31 -0
  176. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/Flags.d.ts +1 -0
  177. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/Flags.js +1 -0
  178. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/GetAllCompanyPermissionsForUserResponse.d.ts +12 -0
  179. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/GetAllCompanyPermissionsForUserResponse.js +42 -0
  180. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/GetTeamsResponse.d.ts +12 -0
  181. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/GetTeamsResponse.js +42 -0
  182. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/Manager.d.ts +1 -2
  183. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/Manager.js +1 -4
  184. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/Team.d.ts +12 -0
  185. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/Team.js +33 -0
  186. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamAndDetails.d.ts +14 -0
  187. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamAndDetails.js +44 -0
  188. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamRole.d.ts +1 -1
  189. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamRole.js +1 -1
  190. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/index.d.ts +7 -0
  191. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/index.js +7 -0
  192. package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateInvoiceCsvColumn.d.ts +1 -1
  193. package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateInvoiceCsvColumn.js +1 -1
  194. package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateInvoiceCsvRecord.d.ts +3 -1
  195. package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateInvoiceCsvRecord.js +3 -1
  196. package/serialization/resources/db/resources/contract/types/Contract.d.ts +1 -0
  197. package/serialization/resources/db/resources/contract/types/Contract.js +1 -0
  198. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/VerifyMicrodepositRequest.d.ts +0 -13
  199. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/VerifyMicrodepositRequest.d.ts +0 -13
  200. /package/api/resources/api/resources/thera/resources/bank/resources/bankApi/{types/VerifyMicrodepositRequest.js → client/requests/CreateStripePaymentMethodFromPlaidRequest.js} +0 -0
  201. /package/{dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/VerifyMicrodepositRequest.js → api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/SendMicroDepositRequest.js} +0 -0
@@ -0,0 +1,6 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface CreateStripePaymentMethodFromPlaidRequest {
5
+ companyId?: string;
6
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface SendMicroDepositRequest {
5
+ companyId?: string;
6
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -3,4 +3,5 @@
3
3
  */
4
4
  export interface VerifyAccountSignupRequest {
5
5
  redirectUri?: string;
6
+ companyId?: string;
6
7
  }
@@ -4,4 +4,5 @@
4
4
  export interface VerifyMicrodepositRequest {
5
5
  microDepositAmount1: string;
6
6
  microDepositAmount2: string;
7
+ companyId?: string;
7
8
  }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,10 @@
1
1
  export { GenerateBankSignupRequest } from "./GenerateBankSignupRequest";
2
2
  export { VerifyAccountSignupRequest } from "./VerifyAccountSignupRequest";
3
+ export { SendMicroDepositRequest } from "./SendMicroDepositRequest";
4
+ export { VerifyMicrodepositRequest } from "./VerifyMicrodepositRequest";
3
5
  export { GetWithdrawalMethodCurrenciesRequest } from "./GetWithdrawalMethodCurrenciesRequest";
4
6
  export { GetWithdrawalMinimumByCurrencyRequest } from "./GetWithdrawalMinimumByCurrencyRequest";
5
7
  export { EditWithdrawalMethodRequest } from "./EditWithdrawalMethodRequest";
6
8
  export { GetCurrencyConversionRequest } from "./GetCurrencyConversionRequest";
7
9
  export { SetAutoWithdrawalRequest } from "./SetAutoWithdrawalRequest";
10
+ export { CreateStripePaymentMethodFromPlaidRequest } from "./CreateStripePaymentMethodFromPlaidRequest";
@@ -3,4 +3,5 @@
3
3
  */
4
4
  export interface CompleteAccountSignupRequest {
5
5
  publicKey: string;
6
+ companyId?: string;
6
7
  }
@@ -1,4 +1,3 @@
1
- export * from "./VerifyMicrodepositRequest";
2
1
  export * from "./CompleteAccountSignupRequest";
3
2
  export * from "./GetSandboxPublicKey";
4
3
  export * from "./GetBankAccountSignupKey";
@@ -14,7 +14,6 @@ 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("./VerifyMicrodepositRequest"), exports);
18
17
  __exportStar(require("./CompleteAccountSignupRequest"), exports);
19
18
  __exportStar(require("./GetSandboxPublicKey"), exports);
20
19
  __exportStar(require("./GetBankAccountSignupKey"), exports);
@@ -36,6 +36,10 @@ export declare class CompanyApi {
36
36
  * < Add org admins, with ultimate admin permissions across the platform. These users must already be managers of the org.
37
37
  */
38
38
  changeContractTeam(companyId: string, contractId: string, request: TheraApi.api.thera.company.ChangeContractTeamRequest): Promise<TheraApi.api.thera.company.ChangeContractTeamResponse>;
39
+ /**
40
+ * Get all of the teams and their contracts for a company
41
+ */
42
+ getTeams(companyId: string): Promise<TheraApi.api.thera.company.GetTeamsResponse>;
39
43
  /**
40
44
  * Get all of the managers for a company
41
45
  */
@@ -44,5 +48,17 @@ export declare class CompanyApi {
44
48
  * Create a team within a company. At least one Team Admin must be added.
45
49
  */
46
50
  createTeam(companyId: string, request: TheraApi.api.thera.company.CreateTeamRequest): Promise<TheraApi.api.thera.company.CreateTeamResponse>;
51
+ /**
52
+ * Delete a team. All contracts must be removed from this team first
53
+ */
54
+ deleteTeam(companyId: string, teamId: string): Promise<TheraApi.api.thera.company.DeleteTeamResponse>;
55
+ /**
56
+ * Change details related to a team. For now, you can just edit its name.
57
+ */
58
+ editTeam(companyId: string, teamId: string, request: TheraApi.api.thera.company.EditTeamRequest): Promise<TheraApi.api.thera.company.EditTeamResponse>;
59
+ /**
60
+ * Gets all team and org permissions across all orgs for a given user
61
+ */
62
+ getAllCompanyPermissionsForUser(userId: string): Promise<TheraApi.api.thera.company.GetAllCompanyPermissionsForUserResponse>;
47
63
  protected _getAuthorizationHeader(): Promise<string | undefined>;
48
64
  }
@@ -65,7 +65,7 @@ class CompanyApi {
65
65
  Authorization: yield this._getAuthorizationHeader(),
66
66
  "X-Fern-Language": "JavaScript",
67
67
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
68
- "X-Fern-SDK-Version": "0.0.3679",
68
+ "X-Fern-SDK-Version": "0.0.3790",
69
69
  },
70
70
  contentType: "application/json",
71
71
  queryParameters: _queryParams,
@@ -115,7 +115,7 @@ class CompanyApi {
115
115
  Authorization: yield this._getAuthorizationHeader(),
116
116
  "X-Fern-Language": "JavaScript",
117
117
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
118
- "X-Fern-SDK-Version": "0.0.3679",
118
+ "X-Fern-SDK-Version": "0.0.3790",
119
119
  },
120
120
  contentType: "application/json",
121
121
  body: yield serializers.api.thera.company.InviteManagerRequest.jsonOrThrow(request, {
@@ -164,7 +164,7 @@ class CompanyApi {
164
164
  Authorization: yield this._getAuthorizationHeader(),
165
165
  "X-Fern-Language": "JavaScript",
166
166
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
167
- "X-Fern-SDK-Version": "0.0.3679",
167
+ "X-Fern-SDK-Version": "0.0.3790",
168
168
  },
169
169
  contentType: "application/json",
170
170
  body: yield serializers.api.thera.company.EditManagerRolesRequest.jsonOrThrow(request, {
@@ -213,7 +213,7 @@ class CompanyApi {
213
213
  Authorization: yield this._getAuthorizationHeader(),
214
214
  "X-Fern-Language": "JavaScript",
215
215
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
216
- "X-Fern-SDK-Version": "0.0.3679",
216
+ "X-Fern-SDK-Version": "0.0.3790",
217
217
  },
218
218
  contentType: "application/json",
219
219
  body: yield serializers.api.thera.company.EditOrgAdminsRequest.jsonOrThrow(request, {
@@ -262,7 +262,7 @@ class CompanyApi {
262
262
  Authorization: yield this._getAuthorizationHeader(),
263
263
  "X-Fern-Language": "JavaScript",
264
264
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
265
- "X-Fern-SDK-Version": "0.0.3679",
265
+ "X-Fern-SDK-Version": "0.0.3790",
266
266
  },
267
267
  contentType: "application/json",
268
268
  timeoutMs: 60000,
@@ -308,7 +308,7 @@ class CompanyApi {
308
308
  Authorization: yield this._getAuthorizationHeader(),
309
309
  "X-Fern-Language": "JavaScript",
310
310
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
311
- "X-Fern-SDK-Version": "0.0.3679",
311
+ "X-Fern-SDK-Version": "0.0.3790",
312
312
  },
313
313
  contentType: "application/json",
314
314
  body: yield serializers.api.thera.company.ChangeContractTeamRequest.jsonOrThrow(request, {
@@ -345,6 +345,52 @@ class CompanyApi {
345
345
  }
346
346
  });
347
347
  }
348
+ /**
349
+ * Get all of the teams and their contracts for a company
350
+ */
351
+ getTeams(companyId) {
352
+ return __awaiter(this, void 0, void 0, function* () {
353
+ const _response = yield core.fetcher({
354
+ url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `companies/${companyId}/teams`),
355
+ method: "GET",
356
+ headers: {
357
+ Authorization: yield this._getAuthorizationHeader(),
358
+ "X-Fern-Language": "JavaScript",
359
+ "X-Fern-SDK-Name": "@thera-hr/api-sdk",
360
+ "X-Fern-SDK-Version": "0.0.3790",
361
+ },
362
+ contentType: "application/json",
363
+ timeoutMs: 60000,
364
+ });
365
+ if (_response.ok) {
366
+ return yield serializers.api.thera.company.GetTeamsResponse.parseOrThrow(_response.body, {
367
+ unrecognizedObjectKeys: "passthrough",
368
+ allowUnrecognizedUnionMembers: true,
369
+ allowUnrecognizedEnumValues: true,
370
+ breadcrumbsPrefix: ["response"],
371
+ });
372
+ }
373
+ if (_response.error.reason === "status-code") {
374
+ throw new errors.TheraApiError({
375
+ statusCode: _response.error.statusCode,
376
+ body: _response.error.body,
377
+ });
378
+ }
379
+ switch (_response.error.reason) {
380
+ case "non-json":
381
+ throw new errors.TheraApiError({
382
+ statusCode: _response.error.statusCode,
383
+ body: _response.error.rawBody,
384
+ });
385
+ case "timeout":
386
+ throw new errors.TheraApiTimeoutError();
387
+ case "unknown":
388
+ throw new errors.TheraApiError({
389
+ message: _response.error.errorMessage,
390
+ });
391
+ }
392
+ });
393
+ }
348
394
  /**
349
395
  * Get all of the managers for a company
350
396
  */
@@ -357,7 +403,7 @@ class CompanyApi {
357
403
  Authorization: yield this._getAuthorizationHeader(),
358
404
  "X-Fern-Language": "JavaScript",
359
405
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
360
- "X-Fern-SDK-Version": "0.0.3679",
406
+ "X-Fern-SDK-Version": "0.0.3790",
361
407
  },
362
408
  contentType: "application/json",
363
409
  timeoutMs: 60000,
@@ -403,7 +449,7 @@ class CompanyApi {
403
449
  Authorization: yield this._getAuthorizationHeader(),
404
450
  "X-Fern-Language": "JavaScript",
405
451
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
406
- "X-Fern-SDK-Version": "0.0.3679",
452
+ "X-Fern-SDK-Version": "0.0.3790",
407
453
  },
408
454
  contentType: "application/json",
409
455
  body: yield serializers.api.thera.company.CreateTeamRequest.jsonOrThrow(request, {
@@ -440,6 +486,147 @@ class CompanyApi {
440
486
  }
441
487
  });
442
488
  }
489
+ /**
490
+ * Delete a team. All contracts must be removed from this team first
491
+ */
492
+ deleteTeam(companyId, teamId) {
493
+ return __awaiter(this, void 0, void 0, function* () {
494
+ const _response = yield core.fetcher({
495
+ url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `companies/${companyId}/teams/${teamId}`),
496
+ method: "DELETE",
497
+ headers: {
498
+ Authorization: yield this._getAuthorizationHeader(),
499
+ "X-Fern-Language": "JavaScript",
500
+ "X-Fern-SDK-Name": "@thera-hr/api-sdk",
501
+ "X-Fern-SDK-Version": "0.0.3790",
502
+ },
503
+ contentType: "application/json",
504
+ timeoutMs: 60000,
505
+ });
506
+ if (_response.ok) {
507
+ return yield serializers.api.thera.company.DeleteTeamResponse.parseOrThrow(_response.body, {
508
+ unrecognizedObjectKeys: "passthrough",
509
+ allowUnrecognizedUnionMembers: true,
510
+ allowUnrecognizedEnumValues: true,
511
+ breadcrumbsPrefix: ["response"],
512
+ });
513
+ }
514
+ if (_response.error.reason === "status-code") {
515
+ throw new errors.TheraApiError({
516
+ statusCode: _response.error.statusCode,
517
+ body: _response.error.body,
518
+ });
519
+ }
520
+ switch (_response.error.reason) {
521
+ case "non-json":
522
+ throw new errors.TheraApiError({
523
+ statusCode: _response.error.statusCode,
524
+ body: _response.error.rawBody,
525
+ });
526
+ case "timeout":
527
+ throw new errors.TheraApiTimeoutError();
528
+ case "unknown":
529
+ throw new errors.TheraApiError({
530
+ message: _response.error.errorMessage,
531
+ });
532
+ }
533
+ });
534
+ }
535
+ /**
536
+ * Change details related to a team. For now, you can just edit its name.
537
+ */
538
+ editTeam(companyId, teamId, request) {
539
+ return __awaiter(this, void 0, void 0, function* () {
540
+ const _response = yield core.fetcher({
541
+ url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `companies/${companyId}/teams/${teamId}`),
542
+ method: "PATCH",
543
+ headers: {
544
+ Authorization: yield this._getAuthorizationHeader(),
545
+ "X-Fern-Language": "JavaScript",
546
+ "X-Fern-SDK-Name": "@thera-hr/api-sdk",
547
+ "X-Fern-SDK-Version": "0.0.3790",
548
+ },
549
+ contentType: "application/json",
550
+ body: yield serializers.api.thera.company.EditTeamRequest.jsonOrThrow(request, {
551
+ unrecognizedObjectKeys: "strip",
552
+ }),
553
+ timeoutMs: 60000,
554
+ });
555
+ if (_response.ok) {
556
+ return yield serializers.api.thera.company.EditTeamResponse.parseOrThrow(_response.body, {
557
+ unrecognizedObjectKeys: "passthrough",
558
+ allowUnrecognizedUnionMembers: true,
559
+ allowUnrecognizedEnumValues: true,
560
+ breadcrumbsPrefix: ["response"],
561
+ });
562
+ }
563
+ if (_response.error.reason === "status-code") {
564
+ throw new errors.TheraApiError({
565
+ statusCode: _response.error.statusCode,
566
+ body: _response.error.body,
567
+ });
568
+ }
569
+ switch (_response.error.reason) {
570
+ case "non-json":
571
+ throw new errors.TheraApiError({
572
+ statusCode: _response.error.statusCode,
573
+ body: _response.error.rawBody,
574
+ });
575
+ case "timeout":
576
+ throw new errors.TheraApiTimeoutError();
577
+ case "unknown":
578
+ throw new errors.TheraApiError({
579
+ message: _response.error.errorMessage,
580
+ });
581
+ }
582
+ });
583
+ }
584
+ /**
585
+ * Gets all team and org permissions across all orgs for a given user
586
+ */
587
+ getAllCompanyPermissionsForUser(userId) {
588
+ return __awaiter(this, void 0, void 0, function* () {
589
+ const _response = yield core.fetcher({
590
+ url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `users/${userId}/company-permissions`),
591
+ method: "POST",
592
+ headers: {
593
+ Authorization: yield this._getAuthorizationHeader(),
594
+ "X-Fern-Language": "JavaScript",
595
+ "X-Fern-SDK-Name": "@thera-hr/api-sdk",
596
+ "X-Fern-SDK-Version": "0.0.3790",
597
+ },
598
+ contentType: "application/json",
599
+ timeoutMs: 60000,
600
+ });
601
+ if (_response.ok) {
602
+ return yield serializers.api.thera.company.GetAllCompanyPermissionsForUserResponse.parseOrThrow(_response.body, {
603
+ unrecognizedObjectKeys: "passthrough",
604
+ allowUnrecognizedUnionMembers: true,
605
+ allowUnrecognizedEnumValues: true,
606
+ breadcrumbsPrefix: ["response"],
607
+ });
608
+ }
609
+ if (_response.error.reason === "status-code") {
610
+ throw new errors.TheraApiError({
611
+ statusCode: _response.error.statusCode,
612
+ body: _response.error.body,
613
+ });
614
+ }
615
+ switch (_response.error.reason) {
616
+ case "non-json":
617
+ throw new errors.TheraApiError({
618
+ statusCode: _response.error.statusCode,
619
+ body: _response.error.rawBody,
620
+ });
621
+ case "timeout":
622
+ throw new errors.TheraApiTimeoutError();
623
+ case "unknown":
624
+ throw new errors.TheraApiError({
625
+ message: _response.error.errorMessage,
626
+ });
627
+ }
628
+ });
629
+ }
443
630
  _getAuthorizationHeader() {
444
631
  return __awaiter(this, void 0, void 0, function* () {
445
632
  const bearer = yield core.Supplier.get(this._options.token);
@@ -0,0 +1,6 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface EditTeamRequest {
5
+ name: string;
6
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -4,3 +4,4 @@ export { EditManagerRolesRequest } from "./EditManagerRolesRequest";
4
4
  export { EditOrgAdminsRequest } from "./EditOrgAdminsRequest";
5
5
  export { ChangeContractTeamRequest } from "./ChangeContractTeamRequest";
6
6
  export { CreateTeamRequest } from "./CreateTeamRequest";
7
+ export { EditTeamRequest } from "./EditTeamRequest";
@@ -22,4 +22,5 @@ export interface CompanyApiResponse {
22
22
  isZealBankAccountVerified: boolean;
23
23
  settings: TheraApi.api.thera.company.CompanySettings;
24
24
  bankAccount?: TheraApi.api.thera.company.BankAccountResponseMetadata;
25
+ teamsById: Record<string, TheraApi.api.thera.company.Team>;
25
26
  }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as TheraApi from "../../../../../../../../..";
5
+ export interface CompanyPermissions {
6
+ teams: Record<string, TheraApi.api.thera.company.TeamRoleAndDetails>;
7
+ org: TheraApi.api.thera.company.OrgRoleAndDetails;
8
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface DeleteTeamResponse {
5
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface EditTeamResponse {
5
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -5,4 +5,5 @@ export interface Flags {
5
5
  csv: boolean;
6
6
  paymentsVersion: number;
7
7
  allowedPayoutCurrencies: Set<string>;
8
+ permissionsVersion: number;
8
9
  }
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as TheraApi from "../../../../../../../../..";
5
+ export interface GetAllCompanyPermissionsForUserResponse {
6
+ teamPermissionsByCompany: Record<string, TheraApi.api.thera.company.CompanyPermissions>;
7
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as TheraApi from "../../../../../../../../..";
5
+ export interface GetTeamsResponse {
6
+ teams: Record<string, TheraApi.api.thera.company.TeamAndDetails>;
7
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -4,6 +4,5 @@
4
4
  import * as TheraApi from "../../../../../../../../..";
5
5
  export interface Manager {
6
6
  user: TheraApi.db.User;
7
- teams: Record<string, TheraApi.api.thera.company.TeamRoleAndDetails>;
8
- orgAdmin?: TheraApi.api.thera.company.OrgRoleAndDetails;
7
+ companyPermissions: TheraApi.api.thera.company.CompanyPermissions;
9
8
  }
@@ -0,0 +1,6 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface Team {
5
+ name: string;
6
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as TheraApi from "../../../../../../../../..";
5
+ export interface TeamAndDetails {
6
+ team: TheraApi.api.thera.company.Team;
7
+ contractIds: string[];
8
+ managers: Record<string, TheraApi.api.thera.company.TeamRoleAndDetails>;
9
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,9 +1,9 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export declare type TeamRole = "ADMIN" | "PEOPLE_MANAGER" | "VIEWER_SENSITIVE";
4
+ export declare type TeamRole = "ROLE_ADMIN" | "ROLE_PEOPLE_MANAGER" | "ROLE_VIEWER_SENSITIVE";
5
5
  export declare const TeamRole: {
6
- readonly Admin: "ADMIN";
7
- readonly PeopleManager: "PEOPLE_MANAGER";
8
- readonly ViewerSensitive: "VIEWER_SENSITIVE";
6
+ readonly RoleAdmin: "ROLE_ADMIN";
7
+ readonly RolePeopleManager: "ROLE_PEOPLE_MANAGER";
8
+ readonly RoleViewerSensitive: "ROLE_VIEWER_SENSITIVE";
9
9
  };
@@ -5,7 +5,7 @@
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.TeamRole = void 0;
7
7
  exports.TeamRole = {
8
- Admin: "ADMIN",
9
- PeopleManager: "PEOPLE_MANAGER",
10
- ViewerSensitive: "VIEWER_SENSITIVE",
8
+ RoleAdmin: "ROLE_ADMIN",
9
+ RolePeopleManager: "ROLE_PEOPLE_MANAGER",
10
+ RoleViewerSensitive: "ROLE_VIEWER_SENSITIVE",
11
11
  };
@@ -10,9 +10,14 @@ export * from "./EditManagerRolesResponse";
10
10
  export * from "./EditOrgAdminsResponse";
11
11
  export * from "./RemoveManagerResponse";
12
12
  export * from "./ChangeContractTeamResponse";
13
+ export * from "./GetTeamsResponse";
13
14
  export * from "./GetManagersResponse";
14
15
  export * from "./CreateTeamResponse";
16
+ export * from "./DeleteTeamResponse";
17
+ export * from "./EditTeamResponse";
15
18
  export * from "./CreateTeamRequestManager";
19
+ export * from "./GetAllCompanyPermissionsForUserResponse";
20
+ export * from "./CompanyPermissions";
16
21
  export * from "./Manager";
17
22
  export * from "./TeamRole";
18
23
  export * from "./TeamRoleAndDetails";
@@ -21,6 +26,8 @@ export * from "./OrgRoleAndDetails";
21
26
  export * from "./OrgAdmin";
22
27
  export * from "./CreateCompanyRequest";
23
28
  export * from "./CompanyApiResponse";
29
+ export * from "./Team";
30
+ export * from "./TeamAndDetails";
24
31
  export * from "./BankAccountResponseMetadata";
25
32
  export * from "./PlaidVerificationStatus";
26
33
  export * from "./CompanySettings";
@@ -26,9 +26,14 @@ __exportStar(require("./EditManagerRolesResponse"), exports);
26
26
  __exportStar(require("./EditOrgAdminsResponse"), exports);
27
27
  __exportStar(require("./RemoveManagerResponse"), exports);
28
28
  __exportStar(require("./ChangeContractTeamResponse"), exports);
29
+ __exportStar(require("./GetTeamsResponse"), exports);
29
30
  __exportStar(require("./GetManagersResponse"), exports);
30
31
  __exportStar(require("./CreateTeamResponse"), exports);
32
+ __exportStar(require("./DeleteTeamResponse"), exports);
33
+ __exportStar(require("./EditTeamResponse"), exports);
31
34
  __exportStar(require("./CreateTeamRequestManager"), exports);
35
+ __exportStar(require("./GetAllCompanyPermissionsForUserResponse"), exports);
36
+ __exportStar(require("./CompanyPermissions"), exports);
32
37
  __exportStar(require("./Manager"), exports);
33
38
  __exportStar(require("./TeamRole"), exports);
34
39
  __exportStar(require("./TeamRoleAndDetails"), exports);
@@ -37,6 +42,8 @@ __exportStar(require("./OrgRoleAndDetails"), exports);
37
42
  __exportStar(require("./OrgAdmin"), exports);
38
43
  __exportStar(require("./CreateCompanyRequest"), exports);
39
44
  __exportStar(require("./CompanyApiResponse"), exports);
45
+ __exportStar(require("./Team"), exports);
46
+ __exportStar(require("./TeamAndDetails"), exports);
40
47
  __exportStar(require("./BankAccountResponseMetadata"), exports);
41
48
  __exportStar(require("./PlaidVerificationStatus"), exports);
42
49
  __exportStar(require("./CompanySettings"), exports);
@@ -59,7 +59,7 @@ class CompanyW2PayrollApi {
59
59
  Authorization: yield this._getAuthorizationHeader(),
60
60
  "X-Fern-Language": "JavaScript",
61
61
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
62
- "X-Fern-SDK-Version": "0.0.3679",
62
+ "X-Fern-SDK-Version": "0.0.3790",
63
63
  },
64
64
  contentType: "application/json",
65
65
  body: yield serializers.api.thera.company.OnboardW2PayrollRequest.jsonOrThrow(request, {