@thera-hr/api-sdk 0.0.3790 → 0.0.3795

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 +20 -40
  5. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/VerifyAccountSignupRequest.d.ts +0 -1
  6. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/index.d.ts +0 -3
  7. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/CompleteAccountSignupRequest.d.ts +0 -1
  8. package/{dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests → api/resources/api/resources/thera/resources/bank/resources/bankApi/types}/VerifyMicrodepositRequest.d.ts +0 -1
  9. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +1 -0
  10. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +1 -0
  11. package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.d.ts +0 -16
  12. package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +8 -195
  13. package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/index.d.ts +0 -1
  14. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyApiResponse.d.ts +0 -1
  15. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/Flags.d.ts +0 -1
  16. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/Manager.d.ts +2 -1
  17. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamRole.d.ts +4 -4
  18. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamRole.js +3 -3
  19. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/index.d.ts +0 -7
  20. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/index.js +0 -7
  21. package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +1 -1
  22. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +3 -3
  23. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateInvoiceCsvColumn.d.ts +1 -1
  24. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateInvoiceCsvRecord.d.ts +1 -3
  25. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
  26. package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +3 -3
  27. package/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +1 -1
  28. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +1 -1
  29. package/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +1 -1
  30. package/api/resources/db/resources/contract/types/Contract.d.ts +0 -1
  31. package/dist/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +1 -1
  32. package/dist/api/resources/api/resources/services/resources/file/client/Client.js +4 -4
  33. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.d.ts +2 -2
  34. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +20 -40
  35. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/VerifyAccountSignupRequest.d.ts +0 -1
  36. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/index.d.ts +0 -3
  37. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/CompleteAccountSignupRequest.d.ts +0 -1
  38. package/{api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests → dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types}/VerifyMicrodepositRequest.d.ts +0 -1
  39. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +1 -0
  40. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +1 -0
  41. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.d.ts +0 -16
  42. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +8 -195
  43. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/index.d.ts +0 -1
  44. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyApiResponse.d.ts +0 -1
  45. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/Flags.d.ts +0 -1
  46. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/Manager.d.ts +2 -1
  47. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamRole.d.ts +4 -4
  48. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamRole.js +3 -3
  49. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/index.d.ts +0 -7
  50. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/index.js +0 -7
  51. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +1 -1
  52. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +3 -3
  53. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateInvoiceCsvColumn.d.ts +1 -1
  54. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateInvoiceCsvRecord.d.ts +1 -3
  55. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
  56. package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +3 -3
  57. package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +1 -1
  58. package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +1 -1
  59. package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +1 -1
  60. package/dist/api/resources/db/resources/contract/types/Contract.d.ts +0 -1
  61. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/index.d.ts +0 -4
  62. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/index.js +1 -9
  63. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/CompleteAccountSignupRequest.d.ts +0 -1
  64. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/CompleteAccountSignupRequest.js +0 -1
  65. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/VerifyMicrodepositRequest.d.ts +13 -0
  66. package/{serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests → dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types}/VerifyMicrodepositRequest.js +1 -2
  67. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +1 -0
  68. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +1 -0
  69. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/index.d.ts +0 -1
  70. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/index.js +1 -3
  71. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyApiResponse.d.ts +0 -1
  72. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyApiResponse.js +0 -1
  73. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/Flags.d.ts +0 -1
  74. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/Flags.js +0 -1
  75. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/Manager.d.ts +2 -1
  76. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/Manager.js +4 -1
  77. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamRole.d.ts +1 -1
  78. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamRole.js +1 -1
  79. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/index.d.ts +0 -7
  80. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/index.js +0 -7
  81. package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateInvoiceCsvColumn.d.ts +1 -1
  82. package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateInvoiceCsvColumn.js +1 -1
  83. package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateInvoiceCsvRecord.d.ts +1 -3
  84. package/dist/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateInvoiceCsvRecord.js +1 -3
  85. package/dist/serialization/resources/db/resources/contract/types/Contract.d.ts +0 -1
  86. package/dist/serialization/resources/db/resources/contract/types/Contract.js +0 -1
  87. package/package.json +1 -1
  88. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/index.d.ts +0 -4
  89. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/index.js +1 -9
  90. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/CompleteAccountSignupRequest.d.ts +0 -1
  91. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/CompleteAccountSignupRequest.js +0 -1
  92. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/VerifyMicrodepositRequest.d.ts +13 -0
  93. package/{dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests → serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types}/VerifyMicrodepositRequest.js +1 -2
  94. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +1 -0
  95. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +1 -0
  96. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/index.d.ts +0 -1
  97. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/index.js +1 -3
  98. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyApiResponse.d.ts +0 -1
  99. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyApiResponse.js +0 -1
  100. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/Flags.d.ts +0 -1
  101. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/Flags.js +0 -1
  102. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/Manager.d.ts +2 -1
  103. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/Manager.js +4 -1
  104. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamRole.d.ts +1 -1
  105. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamRole.js +1 -1
  106. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/index.d.ts +0 -7
  107. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/index.js +0 -7
  108. package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateInvoiceCsvColumn.d.ts +1 -1
  109. package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateInvoiceCsvColumn.js +1 -1
  110. package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateInvoiceCsvRecord.d.ts +1 -3
  111. package/serialization/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/types/CreateInvoiceCsvRecord.js +1 -3
  112. package/serialization/resources/db/resources/contract/types/Contract.d.ts +0 -1
  113. package/serialization/resources/db/resources/contract/types/Contract.js +0 -1
  114. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/CreateStripePaymentMethodFromPlaidRequest.d.ts +0 -6
  115. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/CreateStripePaymentMethodFromPlaidRequest.js +0 -5
  116. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/SendMicroDepositRequest.d.ts +0 -6
  117. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/SendMicroDepositRequest.js +0 -5
  118. package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/EditTeamRequest.d.ts +0 -6
  119. package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/EditTeamRequest.js +0 -5
  120. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyPermissions.d.ts +0 -8
  121. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyPermissions.js +0 -5
  122. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/DeleteTeamResponse.d.ts +0 -5
  123. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/DeleteTeamResponse.js +0 -5
  124. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/EditTeamResponse.d.ts +0 -5
  125. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/EditTeamResponse.js +0 -5
  126. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/GetAllCompanyPermissionsForUserResponse.d.ts +0 -7
  127. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/GetAllCompanyPermissionsForUserResponse.js +0 -5
  128. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/GetTeamsResponse.d.ts +0 -7
  129. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/GetTeamsResponse.js +0 -5
  130. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/Team.d.ts +0 -6
  131. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/Team.js +0 -5
  132. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamAndDetails.d.ts +0 -9
  133. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamAndDetails.js +0 -5
  134. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/CreateStripePaymentMethodFromPlaidRequest.d.ts +0 -6
  135. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/CreateStripePaymentMethodFromPlaidRequest.js +0 -5
  136. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/SendMicroDepositRequest.d.ts +0 -6
  137. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/SendMicroDepositRequest.js +0 -5
  138. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/EditTeamRequest.d.ts +0 -6
  139. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/EditTeamRequest.js +0 -5
  140. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyPermissions.d.ts +0 -8
  141. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyPermissions.js +0 -5
  142. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/DeleteTeamResponse.d.ts +0 -5
  143. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/DeleteTeamResponse.js +0 -5
  144. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/EditTeamResponse.d.ts +0 -5
  145. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/EditTeamResponse.js +0 -5
  146. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/GetAllCompanyPermissionsForUserResponse.d.ts +0 -7
  147. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/GetAllCompanyPermissionsForUserResponse.js +0 -5
  148. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/GetTeamsResponse.d.ts +0 -7
  149. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/GetTeamsResponse.js +0 -5
  150. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/Team.d.ts +0 -6
  151. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/Team.js +0 -5
  152. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamAndDetails.d.ts +0 -9
  153. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamAndDetails.js +0 -5
  154. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/CreateStripePaymentMethodFromPlaidRequest.d.ts +0 -12
  155. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/CreateStripePaymentMethodFromPlaidRequest.js +0 -33
  156. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/SendMicroDepositRequest.d.ts +0 -12
  157. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/SendMicroDepositRequest.js +0 -33
  158. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/VerifyAccountSignupRequest.d.ts +0 -12
  159. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/VerifyAccountSignupRequest.js +0 -33
  160. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/VerifyMicrodepositRequest.d.ts +0 -14
  161. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/EditTeamRequest.d.ts +0 -12
  162. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/EditTeamRequest.js +0 -33
  163. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyPermissions.d.ts +0 -13
  164. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyPermissions.js +0 -43
  165. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/DeleteTeamResponse.d.ts +0 -11
  166. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/DeleteTeamResponse.js +0 -31
  167. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/EditTeamResponse.d.ts +0 -11
  168. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/EditTeamResponse.js +0 -31
  169. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/GetAllCompanyPermissionsForUserResponse.d.ts +0 -12
  170. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/GetAllCompanyPermissionsForUserResponse.js +0 -42
  171. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/GetTeamsResponse.d.ts +0 -12
  172. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/GetTeamsResponse.js +0 -42
  173. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/Team.d.ts +0 -12
  174. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/Team.js +0 -33
  175. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamAndDetails.d.ts +0 -14
  176. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamAndDetails.js +0 -44
  177. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/CreateStripePaymentMethodFromPlaidRequest.d.ts +0 -12
  178. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/CreateStripePaymentMethodFromPlaidRequest.js +0 -33
  179. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/SendMicroDepositRequest.d.ts +0 -12
  180. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/SendMicroDepositRequest.js +0 -33
  181. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/VerifyAccountSignupRequest.d.ts +0 -12
  182. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/VerifyAccountSignupRequest.js +0 -33
  183. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/VerifyMicrodepositRequest.d.ts +0 -14
  184. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/EditTeamRequest.d.ts +0 -12
  185. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/EditTeamRequest.js +0 -33
  186. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyPermissions.d.ts +0 -13
  187. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CompanyPermissions.js +0 -43
  188. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/DeleteTeamResponse.d.ts +0 -11
  189. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/DeleteTeamResponse.js +0 -31
  190. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/EditTeamResponse.d.ts +0 -11
  191. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/EditTeamResponse.js +0 -31
  192. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/GetAllCompanyPermissionsForUserResponse.d.ts +0 -12
  193. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/GetAllCompanyPermissionsForUserResponse.js +0 -42
  194. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/GetTeamsResponse.d.ts +0 -12
  195. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/GetTeamsResponse.js +0 -42
  196. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/Team.d.ts +0 -12
  197. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/Team.js +0 -33
  198. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamAndDetails.d.ts +0 -14
  199. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamAndDetails.js +0 -44
  200. /package/api/resources/api/resources/thera/resources/bank/resources/bankApi/{client/requests → types}/VerifyMicrodepositRequest.js +0 -0
  201. /package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/{client/requests → types}/VerifyMicrodepositRequest.js +0 -0
@@ -59,7 +59,7 @@ class AipriseWebhookApi {
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.3790",
62
+ "X-Fern-SDK-Version": "0.0.3795",
63
63
  },
64
64
  contentType: "application/json",
65
65
  body: yield serializers.api.aiprise.AiPriseVerificationCallback.jsonOrThrow(request, {
@@ -56,7 +56,7 @@ class File_ {
56
56
  Authorization: yield this._getAuthorizationHeader(),
57
57
  "X-Fern-Language": "JavaScript",
58
58
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
59
- "X-Fern-SDK-Version": "0.0.3790",
59
+ "X-Fern-SDK-Version": "0.0.3795",
60
60
  },
61
61
  contentType: "application/json",
62
62
  body: yield serializers.api.services.AttachDocumentToEmploymentRequest.jsonOrThrow(request, {
@@ -97,7 +97,7 @@ class File_ {
97
97
  Authorization: yield this._getAuthorizationHeader(),
98
98
  "X-Fern-Language": "JavaScript",
99
99
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
100
- "X-Fern-SDK-Version": "0.0.3790",
100
+ "X-Fern-SDK-Version": "0.0.3795",
101
101
  },
102
102
  contentType: "application/json",
103
103
  body: yield serializers.api.services.DeleteDocumentFromEmploymentRequest.jsonOrThrow(request, {
@@ -138,7 +138,7 @@ class File_ {
138
138
  Authorization: yield this._getAuthorizationHeader(),
139
139
  "X-Fern-Language": "JavaScript",
140
140
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
141
- "X-Fern-SDK-Version": "0.0.3790",
141
+ "X-Fern-SDK-Version": "0.0.3795",
142
142
  },
143
143
  contentType: "application/json",
144
144
  timeoutMs: 60000,
@@ -181,7 +181,7 @@ class File_ {
181
181
  Authorization: yield this._getAuthorizationHeader(),
182
182
  "X-Fern-Language": "JavaScript",
183
183
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
184
- "X-Fern-SDK-Version": "0.0.3790",
184
+ "X-Fern-SDK-Version": "0.0.3795",
185
185
  },
186
186
  contentType: "application/json",
187
187
  timeoutMs: 60000,
@@ -27,7 +27,7 @@ export declare class BankApi {
27
27
  /**
28
28
  * Update Zeal's bank account with info from Plaid & send microdeposit to company's bank account during W2 onboarding for Zeal API
29
29
  */
30
- sendMicrodeposit(request?: TheraApi.api.thera.bank.SendMicroDepositRequest): Promise<void>;
30
+ sendMicrodeposit(): Promise<void>;
31
31
  /**
32
32
  * Verify Microdeposit for company's bank account during W2 onboarding for Zeal API
33
33
  */
@@ -55,6 +55,6 @@ export declare class BankApi {
55
55
  getWorkerTransactions(userId: string, companyId: string): Promise<TheraApi.api.thera.bank.GetWorkerTransactionsResponse>;
56
56
  getCurrencyConversion(request: TheraApi.api.thera.bank.GetCurrencyConversionRequest): Promise<TheraApi.api.thera.bank.GetCurrencyConversionResponse>;
57
57
  setAutoWithdrawals(userId: string, companyId: string, request: TheraApi.api.thera.bank.SetAutoWithdrawalRequest): Promise<TheraApi.api.thera.bank.SetAutoWithdrawalResponse>;
58
- createStripePaymentMethodFromPlaid(request?: TheraApi.api.thera.bank.CreateStripePaymentMethodFromPlaidRequest): Promise<void>;
58
+ createStripePaymentMethodFromPlaid(): Promise<void>;
59
59
  protected _getAuthorizationHeader(): Promise<string | undefined>;
60
60
  }
@@ -34,17 +34,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
34
34
  step((generator = generator.apply(thisArg, _arguments || [])).next());
35
35
  });
36
36
  };
37
- var __rest = (this && this.__rest) || function (s, e) {
38
- var t = {};
39
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
40
- t[p] = s[p];
41
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
42
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
43
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
44
- t[p[i]] = s[p[i]];
45
- }
46
- return t;
47
- };
48
37
  var __importDefault = (this && this.__importDefault) || function (mod) {
49
38
  return (mod && mod.__esModule) ? mod : { "default": mod };
50
39
  };
@@ -76,7 +65,7 @@ class BankApi {
76
65
  Authorization: yield this._getAuthorizationHeader(),
77
66
  "X-Fern-Language": "JavaScript",
78
67
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
79
- "X-Fern-SDK-Version": "0.0.3790",
68
+ "X-Fern-SDK-Version": "0.0.3795",
80
69
  },
81
70
  contentType: "application/json",
82
71
  queryParameters: _queryParams,
@@ -123,7 +112,7 @@ class BankApi {
123
112
  Authorization: yield this._getAuthorizationHeader(),
124
113
  "X-Fern-Language": "JavaScript",
125
114
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
126
- "X-Fern-SDK-Version": "0.0.3790",
115
+ "X-Fern-SDK-Version": "0.0.3795",
127
116
  },
128
117
  contentType: "application/json",
129
118
  body: yield serializers.api.thera.bank.CompleteAccountSignupRequest.jsonOrThrow(request, {
@@ -160,7 +149,7 @@ class BankApi {
160
149
  */
161
150
  verifyBankSignup(request = {}) {
162
151
  return __awaiter(this, void 0, void 0, function* () {
163
- const { redirectUri } = request, _body = __rest(request, ["redirectUri"]);
152
+ const { redirectUri } = request;
164
153
  const _queryParams = new url_search_params_1.default();
165
154
  if (redirectUri != null) {
166
155
  _queryParams.append("redirectUri", redirectUri);
@@ -172,13 +161,10 @@ class BankApi {
172
161
  Authorization: yield this._getAuthorizationHeader(),
173
162
  "X-Fern-Language": "JavaScript",
174
163
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
175
- "X-Fern-SDK-Version": "0.0.3790",
164
+ "X-Fern-SDK-Version": "0.0.3795",
176
165
  },
177
166
  contentType: "application/json",
178
167
  queryParameters: _queryParams,
179
- body: yield serializers.api.thera.bank.VerifyAccountSignupRequest.jsonOrThrow(_body, {
180
- unrecognizedObjectKeys: "strip",
181
- }),
182
168
  timeoutMs: 60000,
183
169
  });
184
170
  if (_response.ok) {
@@ -213,7 +199,7 @@ class BankApi {
213
199
  /**
214
200
  * Update Zeal's bank account with info from Plaid & send microdeposit to company's bank account during W2 onboarding for Zeal API
215
201
  */
216
- sendMicrodeposit(request = {}) {
202
+ sendMicrodeposit() {
217
203
  return __awaiter(this, void 0, void 0, function* () {
218
204
  const _response = yield core.fetcher({
219
205
  url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), "bank/account/microdeposit/request"),
@@ -222,12 +208,9 @@ class BankApi {
222
208
  Authorization: yield this._getAuthorizationHeader(),
223
209
  "X-Fern-Language": "JavaScript",
224
210
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
225
- "X-Fern-SDK-Version": "0.0.3790",
211
+ "X-Fern-SDK-Version": "0.0.3795",
226
212
  },
227
213
  contentType: "application/json",
228
- body: yield serializers.api.thera.bank.SendMicroDepositRequest.jsonOrThrow(request, {
229
- unrecognizedObjectKeys: "strip",
230
- }),
231
214
  timeoutMs: 60000,
232
215
  });
233
216
  if (_response.ok) {
@@ -266,7 +249,7 @@ class BankApi {
266
249
  Authorization: yield this._getAuthorizationHeader(),
267
250
  "X-Fern-Language": "JavaScript",
268
251
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
269
- "X-Fern-SDK-Version": "0.0.3790",
252
+ "X-Fern-SDK-Version": "0.0.3795",
270
253
  },
271
254
  contentType: "application/json",
272
255
  body: yield serializers.api.thera.bank.VerifyMicrodepositRequest.jsonOrThrow(request, {
@@ -313,7 +296,7 @@ class BankApi {
313
296
  Authorization: yield this._getAuthorizationHeader(),
314
297
  "X-Fern-Language": "JavaScript",
315
298
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
316
- "X-Fern-SDK-Version": "0.0.3790",
299
+ "X-Fern-SDK-Version": "0.0.3795",
317
300
  },
318
301
  contentType: "application/json",
319
302
  queryParameters: _queryParams,
@@ -363,7 +346,7 @@ class BankApi {
363
346
  Authorization: yield this._getAuthorizationHeader(),
364
347
  "X-Fern-Language": "JavaScript",
365
348
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
366
- "X-Fern-SDK-Version": "0.0.3790",
349
+ "X-Fern-SDK-Version": "0.0.3795",
367
350
  },
368
351
  contentType: "application/json",
369
352
  queryParameters: _queryParams,
@@ -410,7 +393,7 @@ class BankApi {
410
393
  Authorization: yield this._getAuthorizationHeader(),
411
394
  "X-Fern-Language": "JavaScript",
412
395
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
413
- "X-Fern-SDK-Version": "0.0.3790",
396
+ "X-Fern-SDK-Version": "0.0.3795",
414
397
  },
415
398
  contentType: "application/json",
416
399
  body: yield serializers.api.thera.bank.WithdrawalMethodsRequest.jsonOrThrow(request, {
@@ -459,7 +442,7 @@ class BankApi {
459
442
  Authorization: yield this._getAuthorizationHeader(),
460
443
  "X-Fern-Language": "JavaScript",
461
444
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
462
- "X-Fern-SDK-Version": "0.0.3790",
445
+ "X-Fern-SDK-Version": "0.0.3795",
463
446
  },
464
447
  contentType: "application/json",
465
448
  body: yield serializers.api.thera.bank.WithdrawalMethodsRequest.jsonOrThrow(request, {
@@ -505,7 +488,7 @@ class BankApi {
505
488
  Authorization: yield this._getAuthorizationHeader(),
506
489
  "X-Fern-Language": "JavaScript",
507
490
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
508
- "X-Fern-SDK-Version": "0.0.3790",
491
+ "X-Fern-SDK-Version": "0.0.3795",
509
492
  },
510
493
  contentType: "application/json",
511
494
  timeoutMs: 60000,
@@ -548,7 +531,7 @@ class BankApi {
548
531
  Authorization: yield this._getAuthorizationHeader(),
549
532
  "X-Fern-Language": "JavaScript",
550
533
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
551
- "X-Fern-SDK-Version": "0.0.3790",
534
+ "X-Fern-SDK-Version": "0.0.3795",
552
535
  },
553
536
  contentType: "application/json",
554
537
  body: yield serializers.api.thera.bank.EditWithdrawalMethodRequest.jsonOrThrow(request, {
@@ -594,7 +577,7 @@ class BankApi {
594
577
  Authorization: yield this._getAuthorizationHeader(),
595
578
  "X-Fern-Language": "JavaScript",
596
579
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
597
- "X-Fern-SDK-Version": "0.0.3790",
580
+ "X-Fern-SDK-Version": "0.0.3795",
598
581
  },
599
582
  contentType: "application/json",
600
583
  body: yield serializers.api.thera.bank.InitiateWorkerWithdrawalRequest.jsonOrThrow(request, {
@@ -640,7 +623,7 @@ class BankApi {
640
623
  Authorization: yield this._getAuthorizationHeader(),
641
624
  "X-Fern-Language": "JavaScript",
642
625
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
643
- "X-Fern-SDK-Version": "0.0.3790",
626
+ "X-Fern-SDK-Version": "0.0.3795",
644
627
  },
645
628
  contentType: "application/json",
646
629
  timeoutMs: 60000,
@@ -683,7 +666,7 @@ class BankApi {
683
666
  Authorization: yield this._getAuthorizationHeader(),
684
667
  "X-Fern-Language": "JavaScript",
685
668
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
686
- "X-Fern-SDK-Version": "0.0.3790",
669
+ "X-Fern-SDK-Version": "0.0.3795",
687
670
  },
688
671
  contentType: "application/json",
689
672
  timeoutMs: 60000,
@@ -731,7 +714,7 @@ class BankApi {
731
714
  Authorization: yield this._getAuthorizationHeader(),
732
715
  "X-Fern-Language": "JavaScript",
733
716
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
734
- "X-Fern-SDK-Version": "0.0.3790",
717
+ "X-Fern-SDK-Version": "0.0.3795",
735
718
  },
736
719
  contentType: "application/json",
737
720
  queryParameters: _queryParams,
@@ -775,7 +758,7 @@ class BankApi {
775
758
  Authorization: yield this._getAuthorizationHeader(),
776
759
  "X-Fern-Language": "JavaScript",
777
760
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
778
- "X-Fern-SDK-Version": "0.0.3790",
761
+ "X-Fern-SDK-Version": "0.0.3795",
779
762
  },
780
763
  contentType: "application/json",
781
764
  body: yield serializers.api.thera.bank.SetAutoWithdrawalRequest.jsonOrThrow(request, {
@@ -812,7 +795,7 @@ class BankApi {
812
795
  }
813
796
  });
814
797
  }
815
- createStripePaymentMethodFromPlaid(request = {}) {
798
+ createStripePaymentMethodFromPlaid() {
816
799
  return __awaiter(this, void 0, void 0, function* () {
817
800
  const _response = yield core.fetcher({
818
801
  url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), "bank/stripe/payment-method"),
@@ -821,12 +804,9 @@ class BankApi {
821
804
  Authorization: yield this._getAuthorizationHeader(),
822
805
  "X-Fern-Language": "JavaScript",
823
806
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
824
- "X-Fern-SDK-Version": "0.0.3790",
807
+ "X-Fern-SDK-Version": "0.0.3795",
825
808
  },
826
809
  contentType: "application/json",
827
- body: yield serializers.api.thera.bank.CreateStripePaymentMethodFromPlaidRequest.jsonOrThrow(request, {
828
- unrecognizedObjectKeys: "strip",
829
- }),
830
810
  timeoutMs: 60000,
831
811
  });
832
812
  if (_response.ok) {
@@ -3,5 +3,4 @@
3
3
  */
4
4
  export interface VerifyAccountSignupRequest {
5
5
  redirectUri?: string;
6
- companyId?: string;
7
6
  }
@@ -1,10 +1,7 @@
1
1
  export { GenerateBankSignupRequest } from "./GenerateBankSignupRequest";
2
2
  export { VerifyAccountSignupRequest } from "./VerifyAccountSignupRequest";
3
- export { SendMicroDepositRequest } from "./SendMicroDepositRequest";
4
- export { VerifyMicrodepositRequest } from "./VerifyMicrodepositRequest";
5
3
  export { GetWithdrawalMethodCurrenciesRequest } from "./GetWithdrawalMethodCurrenciesRequest";
6
4
  export { GetWithdrawalMinimumByCurrencyRequest } from "./GetWithdrawalMinimumByCurrencyRequest";
7
5
  export { EditWithdrawalMethodRequest } from "./EditWithdrawalMethodRequest";
8
6
  export { GetCurrencyConversionRequest } from "./GetCurrencyConversionRequest";
9
7
  export { SetAutoWithdrawalRequest } from "./SetAutoWithdrawalRequest";
10
- export { CreateStripePaymentMethodFromPlaidRequest } from "./CreateStripePaymentMethodFromPlaidRequest";
@@ -3,5 +3,4 @@
3
3
  */
4
4
  export interface CompleteAccountSignupRequest {
5
5
  publicKey: string;
6
- companyId?: string;
7
6
  }
@@ -4,5 +4,4 @@
4
4
  export interface VerifyMicrodepositRequest {
5
5
  microDepositAmount1: string;
6
6
  microDepositAmount2: string;
7
- companyId?: string;
8
7
  }
@@ -1,3 +1,4 @@
1
+ export * from "./VerifyMicrodepositRequest";
1
2
  export * from "./CompleteAccountSignupRequest";
2
3
  export * from "./GetSandboxPublicKey";
3
4
  export * from "./GetBankAccountSignupKey";
@@ -14,6 +14,7 @@ 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);
17
18
  __exportStar(require("./CompleteAccountSignupRequest"), exports);
18
19
  __exportStar(require("./GetSandboxPublicKey"), exports);
19
20
  __exportStar(require("./GetBankAccountSignupKey"), exports);
@@ -36,10 +36,6 @@ 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>;
43
39
  /**
44
40
  * Get all of the managers for a company
45
41
  */
@@ -48,17 +44,5 @@ export declare class CompanyApi {
48
44
  * Create a team within a company. At least one Team Admin must be added.
49
45
  */
50
46
  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>;
63
47
  protected _getAuthorizationHeader(): Promise<string | undefined>;
64
48
  }
@@ -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.3790",
68
+ "X-Fern-SDK-Version": "0.0.3795",
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.3790",
118
+ "X-Fern-SDK-Version": "0.0.3795",
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.3790",
167
+ "X-Fern-SDK-Version": "0.0.3795",
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.3790",
216
+ "X-Fern-SDK-Version": "0.0.3795",
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.3790",
265
+ "X-Fern-SDK-Version": "0.0.3795",
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.3790",
311
+ "X-Fern-SDK-Version": "0.0.3795",
312
312
  },
313
313
  contentType: "application/json",
314
314
  body: yield serializers.api.thera.company.ChangeContractTeamRequest.jsonOrThrow(request, {
@@ -345,52 +345,6 @@ 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
- }
394
348
  /**
395
349
  * Get all of the managers for a company
396
350
  */
@@ -403,7 +357,7 @@ class CompanyApi {
403
357
  Authorization: yield this._getAuthorizationHeader(),
404
358
  "X-Fern-Language": "JavaScript",
405
359
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
406
- "X-Fern-SDK-Version": "0.0.3790",
360
+ "X-Fern-SDK-Version": "0.0.3795",
407
361
  },
408
362
  contentType: "application/json",
409
363
  timeoutMs: 60000,
@@ -449,7 +403,7 @@ class CompanyApi {
449
403
  Authorization: yield this._getAuthorizationHeader(),
450
404
  "X-Fern-Language": "JavaScript",
451
405
  "X-Fern-SDK-Name": "@thera-hr/api-sdk",
452
- "X-Fern-SDK-Version": "0.0.3790",
406
+ "X-Fern-SDK-Version": "0.0.3795",
453
407
  },
454
408
  contentType: "application/json",
455
409
  body: yield serializers.api.thera.company.CreateTeamRequest.jsonOrThrow(request, {
@@ -486,147 +440,6 @@ class CompanyApi {
486
440
  }
487
441
  });
488
442
  }
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
- }
630
443
  _getAuthorizationHeader() {
631
444
  return __awaiter(this, void 0, void 0, function* () {
632
445
  const bearer = yield core.Supplier.get(this._options.token);
@@ -4,4 +4,3 @@ 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,5 +22,4 @@ 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>;
26
25
  }
@@ -5,5 +5,4 @@ export interface Flags {
5
5
  csv: boolean;
6
6
  paymentsVersion: number;
7
7
  allowedPayoutCurrencies: Set<string>;
8
- permissionsVersion: number;
9
8
  }
@@ -4,5 +4,6 @@
4
4
  import * as TheraApi from "../../../../../../../../..";
5
5
  export interface Manager {
6
6
  user: TheraApi.db.User;
7
- companyPermissions: TheraApi.api.thera.company.CompanyPermissions;
7
+ teams: Record<string, TheraApi.api.thera.company.TeamRoleAndDetails>;
8
+ orgAdmin?: TheraApi.api.thera.company.OrgRoleAndDetails;
8
9
  }