@thera-hr/api-sdk 0.0.2950 → 0.0.2985

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 (241) 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/test/resources/invoices/client/Client.js +1 -1
  4. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.d.ts +4 -0
  5. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +65 -15
  6. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/GetWithdrawalMinimumByCurrencyRequest.d.ts +6 -0
  7. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/GetWithdrawalMinimumByCurrencyRequest.js +5 -0
  8. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/index.d.ts +1 -0
  9. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetWithdrawalMinimumByCurrencyResponse.d.ts +6 -0
  10. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetWithdrawalMinimumByCurrencyResponse.js +5 -0
  11. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +1 -0
  12. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +1 -0
  13. package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.d.ts +28 -0
  14. package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +338 -1
  15. package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/AddOrgAdminsRequest.d.ts +8 -0
  16. package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/AddOrgAdminsRequest.js +5 -0
  17. package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/ChangeContractTeamRequest.d.ts +6 -0
  18. package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/ChangeContractTeamRequest.js +5 -0
  19. package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/CreateTeamRequest.d.ts +8 -0
  20. package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/CreateTeamRequest.js +5 -0
  21. package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/EditManagerRolesRequest.d.ts +8 -0
  22. package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/EditManagerRolesRequest.js +5 -0
  23. package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/InviteManagerRequest.d.ts +12 -0
  24. package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/InviteManagerRequest.js +5 -0
  25. package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/index.d.ts +5 -0
  26. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/AddOrgAdminsResponse.d.ts +5 -0
  27. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/AddOrgAdminsResponse.js +5 -0
  28. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/ChangeContractTeamResponse.d.ts +5 -0
  29. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/ChangeContractTeamResponse.js +5 -0
  30. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateEmployment.d.ts +1 -0
  31. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateTeamRequestManager.d.ts +8 -0
  32. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateTeamRequestManager.js +5 -0
  33. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateTeamResponse.d.ts +5 -0
  34. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateTeamResponse.js +5 -0
  35. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/EditManagerRolesResponse.d.ts +5 -0
  36. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/EditManagerRolesResponse.js +5 -0
  37. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/GetManagersResponse.d.ts +7 -0
  38. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/GetManagersResponse.js +5 -0
  39. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/InviteManagerResponse.d.ts +5 -0
  40. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/InviteManagerResponse.js +5 -0
  41. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/Manager.d.ts +9 -0
  42. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/Manager.js +5 -0
  43. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/OrgAdmin.d.ts +6 -0
  44. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/OrgAdmin.js +5 -0
  45. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/OrgRole.d.ts +7 -0
  46. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/OrgRole.js +9 -0
  47. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/OrgRoleAndDetails.d.ts +10 -0
  48. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/OrgRoleAndDetails.js +5 -0
  49. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/RemoveManagerResponse.d.ts +5 -0
  50. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/RemoveManagerResponse.js +5 -0
  51. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamRole.d.ts +9 -0
  52. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamRole.js +11 -0
  53. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamRoleAndDetails.d.ts +10 -0
  54. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamRoleAndDetails.js +5 -0
  55. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/index.d.ts +14 -0
  56. package/api/resources/api/resources/thera/resources/company/resources/companyApi/types/index.js +14 -0
  57. package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +1 -1
  58. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +2 -2
  59. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
  60. package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +3 -3
  61. package/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +1 -1
  62. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +1 -1
  63. package/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +1 -1
  64. package/api/resources/db/resources/employment/types/Employment.d.ts +1 -0
  65. package/dist/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +1 -1
  66. package/dist/api/resources/api/resources/services/resources/file/client/Client.js +4 -4
  67. package/dist/api/resources/api/resources/test/resources/invoices/client/Client.js +1 -1
  68. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.d.ts +4 -0
  69. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +65 -15
  70. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/GetWithdrawalMinimumByCurrencyRequest.d.ts +6 -0
  71. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/GetWithdrawalMinimumByCurrencyRequest.js +5 -0
  72. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/index.d.ts +1 -0
  73. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetWithdrawalMinimumByCurrencyResponse.d.ts +6 -0
  74. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetWithdrawalMinimumByCurrencyResponse.js +5 -0
  75. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +1 -0
  76. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +1 -0
  77. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.d.ts +28 -0
  78. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +338 -1
  79. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/AddOrgAdminsRequest.d.ts +8 -0
  80. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/AddOrgAdminsRequest.js +5 -0
  81. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/ChangeContractTeamRequest.d.ts +6 -0
  82. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/ChangeContractTeamRequest.js +5 -0
  83. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/CreateTeamRequest.d.ts +8 -0
  84. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/CreateTeamRequest.js +5 -0
  85. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/EditManagerRolesRequest.d.ts +8 -0
  86. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/EditManagerRolesRequest.js +5 -0
  87. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/InviteManagerRequest.d.ts +12 -0
  88. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/InviteManagerRequest.js +5 -0
  89. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/index.d.ts +5 -0
  90. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/AddOrgAdminsResponse.d.ts +5 -0
  91. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/AddOrgAdminsResponse.js +5 -0
  92. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/ChangeContractTeamResponse.d.ts +5 -0
  93. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/ChangeContractTeamResponse.js +5 -0
  94. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateEmployment.d.ts +1 -0
  95. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateTeamRequestManager.d.ts +8 -0
  96. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateTeamRequestManager.js +5 -0
  97. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateTeamResponse.d.ts +5 -0
  98. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateTeamResponse.js +5 -0
  99. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/EditManagerRolesResponse.d.ts +5 -0
  100. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/EditManagerRolesResponse.js +5 -0
  101. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/GetManagersResponse.d.ts +7 -0
  102. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/GetManagersResponse.js +5 -0
  103. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/InviteManagerResponse.d.ts +5 -0
  104. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/InviteManagerResponse.js +5 -0
  105. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/Manager.d.ts +9 -0
  106. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/Manager.js +5 -0
  107. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/OrgAdmin.d.ts +6 -0
  108. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/OrgAdmin.js +5 -0
  109. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/OrgRole.d.ts +7 -0
  110. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/OrgRole.js +9 -0
  111. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/OrgRoleAndDetails.d.ts +10 -0
  112. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/OrgRoleAndDetails.js +5 -0
  113. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/RemoveManagerResponse.d.ts +5 -0
  114. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/RemoveManagerResponse.js +5 -0
  115. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamRole.d.ts +9 -0
  116. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamRole.js +11 -0
  117. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamRoleAndDetails.d.ts +10 -0
  118. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamRoleAndDetails.js +5 -0
  119. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/index.d.ts +14 -0
  120. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/types/index.js +14 -0
  121. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +1 -1
  122. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +2 -2
  123. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
  124. package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +3 -3
  125. package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +1 -1
  126. package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +1 -1
  127. package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +1 -1
  128. package/dist/api/resources/db/resources/employment/types/Employment.d.ts +1 -0
  129. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetWithdrawalMinimumByCurrencyResponse.d.ts +12 -0
  130. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetWithdrawalMinimumByCurrencyResponse.js +33 -0
  131. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +1 -0
  132. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +1 -0
  133. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/client/index.d.ts +1 -0
  134. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/client/index.js +17 -0
  135. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/AddOrgAdminsRequest.d.ts +13 -0
  136. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/AddOrgAdminsRequest.js +43 -0
  137. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/ChangeContractTeamRequest.d.ts +12 -0
  138. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/ChangeContractTeamRequest.js +33 -0
  139. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/CreateTeamRequest.d.ts +13 -0
  140. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/CreateTeamRequest.js +43 -0
  141. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/EditManagerRolesRequest.d.ts +13 -0
  142. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/EditManagerRolesRequest.js +45 -0
  143. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/InviteManagerRequest.d.ts +16 -0
  144. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/InviteManagerRequest.js +48 -0
  145. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/index.d.ts +5 -0
  146. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/index.js +13 -0
  147. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/index.d.ts +1 -0
  148. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/index.js +1 -0
  149. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/AddOrgAdminsResponse.d.ts +11 -0
  150. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/AddOrgAdminsResponse.js +31 -0
  151. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/ChangeContractTeamResponse.d.ts +11 -0
  152. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/ChangeContractTeamResponse.js +31 -0
  153. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateEmployment.d.ts +1 -0
  154. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateEmployment.js +1 -0
  155. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateTeamRequestManager.d.ts +13 -0
  156. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateTeamRequestManager.js +43 -0
  157. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateTeamResponse.d.ts +11 -0
  158. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateTeamResponse.js +31 -0
  159. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/EditManagerRolesResponse.d.ts +11 -0
  160. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/EditManagerRolesResponse.js +31 -0
  161. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/GetManagersResponse.d.ts +12 -0
  162. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/GetManagersResponse.js +42 -0
  163. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/InviteManagerResponse.d.ts +11 -0
  164. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/InviteManagerResponse.js +31 -0
  165. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/Manager.d.ts +14 -0
  166. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/Manager.js +46 -0
  167. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/OrgAdmin.d.ts +12 -0
  168. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/OrgAdmin.js +33 -0
  169. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/OrgRole.d.ts +10 -0
  170. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/OrgRole.js +31 -0
  171. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/OrgRoleAndDetails.d.ts +12 -0
  172. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/OrgRoleAndDetails.js +42 -0
  173. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/RemoveManagerResponse.d.ts +11 -0
  174. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/RemoveManagerResponse.js +31 -0
  175. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamRole.d.ts +10 -0
  176. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamRole.js +31 -0
  177. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamRoleAndDetails.d.ts +12 -0
  178. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamRoleAndDetails.js +42 -0
  179. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/index.d.ts +14 -0
  180. package/dist/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/index.js +14 -0
  181. package/dist/serialization/resources/api/resources/thera/resources/company/resources/index.d.ts +1 -0
  182. package/dist/serialization/resources/api/resources/thera/resources/company/resources/index.js +1 -0
  183. package/dist/serialization/resources/db/resources/employment/types/Employment.d.ts +1 -0
  184. package/dist/serialization/resources/db/resources/employment/types/Employment.js +1 -0
  185. package/package.json +1 -1
  186. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetWithdrawalMinimumByCurrencyResponse.d.ts +12 -0
  187. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetWithdrawalMinimumByCurrencyResponse.js +33 -0
  188. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +1 -0
  189. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +1 -0
  190. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/client/index.d.ts +1 -0
  191. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/client/index.js +17 -0
  192. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/AddOrgAdminsRequest.d.ts +13 -0
  193. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/AddOrgAdminsRequest.js +43 -0
  194. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/ChangeContractTeamRequest.d.ts +12 -0
  195. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/ChangeContractTeamRequest.js +33 -0
  196. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/CreateTeamRequest.d.ts +13 -0
  197. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/CreateTeamRequest.js +43 -0
  198. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/EditManagerRolesRequest.d.ts +13 -0
  199. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/EditManagerRolesRequest.js +45 -0
  200. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/InviteManagerRequest.d.ts +16 -0
  201. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/InviteManagerRequest.js +48 -0
  202. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/index.d.ts +5 -0
  203. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/client/requests/index.js +13 -0
  204. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/index.d.ts +1 -0
  205. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/index.js +1 -0
  206. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/AddOrgAdminsResponse.d.ts +11 -0
  207. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/AddOrgAdminsResponse.js +31 -0
  208. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/ChangeContractTeamResponse.d.ts +11 -0
  209. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/ChangeContractTeamResponse.js +31 -0
  210. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateEmployment.d.ts +1 -0
  211. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateEmployment.js +1 -0
  212. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateTeamRequestManager.d.ts +13 -0
  213. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateTeamRequestManager.js +43 -0
  214. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateTeamResponse.d.ts +11 -0
  215. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/CreateTeamResponse.js +31 -0
  216. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/EditManagerRolesResponse.d.ts +11 -0
  217. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/EditManagerRolesResponse.js +31 -0
  218. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/GetManagersResponse.d.ts +12 -0
  219. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/GetManagersResponse.js +42 -0
  220. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/InviteManagerResponse.d.ts +11 -0
  221. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/InviteManagerResponse.js +31 -0
  222. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/Manager.d.ts +14 -0
  223. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/Manager.js +46 -0
  224. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/OrgAdmin.d.ts +12 -0
  225. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/OrgAdmin.js +33 -0
  226. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/OrgRole.d.ts +10 -0
  227. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/OrgRole.js +31 -0
  228. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/OrgRoleAndDetails.d.ts +12 -0
  229. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/OrgRoleAndDetails.js +42 -0
  230. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/RemoveManagerResponse.d.ts +11 -0
  231. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/RemoveManagerResponse.js +31 -0
  232. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamRole.d.ts +10 -0
  233. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamRole.js +31 -0
  234. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamRoleAndDetails.d.ts +12 -0
  235. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/TeamRoleAndDetails.js +42 -0
  236. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/index.d.ts +14 -0
  237. package/serialization/resources/api/resources/thera/resources/company/resources/companyApi/types/index.js +14 -0
  238. package/serialization/resources/api/resources/thera/resources/company/resources/index.d.ts +1 -0
  239. package/serialization/resources/api/resources/thera/resources/company/resources/index.js +1 -0
  240. package/serialization/resources/db/resources/employment/types/Employment.d.ts +1 -0
  241. package/serialization/resources/db/resources/employment/types/Employment.js +1 -0
@@ -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.2950",
68
+ "X-Fern-SDK-Version": "0.0.2985",
69
69
  },
70
70
  contentType: "application/json",
71
71
  queryParameters: _queryParams,
@@ -103,6 +103,343 @@ class CompanyApi {
103
103
  }
104
104
  });
105
105
  }
106
+ /**
107
+ * Invite manager to the platform
108
+ */
109
+ inviteManager(companyId, request) {
110
+ return __awaiter(this, void 0, void 0, function* () {
111
+ const _response = yield core.fetcher({
112
+ url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `companies/${companyId}/managers`),
113
+ method: "POST",
114
+ headers: {
115
+ Authorization: yield this._getAuthorizationHeader(),
116
+ "X-Fern-Language": "JavaScript",
117
+ "X-Fern-SDK-Name": "@thera-hr/api-sdk",
118
+ "X-Fern-SDK-Version": "0.0.2985",
119
+ },
120
+ contentType: "application/json",
121
+ body: yield serializers.api.thera.company.InviteManagerRequest.jsonOrThrow(request, {
122
+ unrecognizedObjectKeys: "strip",
123
+ }),
124
+ timeoutMs: 60000,
125
+ });
126
+ if (_response.ok) {
127
+ return yield serializers.api.thera.company.InviteManagerResponse.parseOrThrow(_response.body, {
128
+ unrecognizedObjectKeys: "passthrough",
129
+ allowUnrecognizedUnionMembers: true,
130
+ allowUnrecognizedEnumValues: true,
131
+ breadcrumbsPrefix: ["response"],
132
+ });
133
+ }
134
+ if (_response.error.reason === "status-code") {
135
+ throw new errors.TheraApiError({
136
+ statusCode: _response.error.statusCode,
137
+ body: _response.error.body,
138
+ });
139
+ }
140
+ switch (_response.error.reason) {
141
+ case "non-json":
142
+ throw new errors.TheraApiError({
143
+ statusCode: _response.error.statusCode,
144
+ body: _response.error.rawBody,
145
+ });
146
+ case "timeout":
147
+ throw new errors.TheraApiTimeoutError();
148
+ case "unknown":
149
+ throw new errors.TheraApiError({
150
+ message: _response.error.errorMessage,
151
+ });
152
+ }
153
+ });
154
+ }
155
+ /**
156
+ * < Edit the teams / roles that the manager belongs to. If no team role is provided, their role is removed for that team.
157
+ */
158
+ editManagerRoles(userId, companyId, request) {
159
+ return __awaiter(this, void 0, void 0, function* () {
160
+ const _response = yield core.fetcher({
161
+ url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `companies/${companyId}/managers/${userId}`),
162
+ method: "POST",
163
+ headers: {
164
+ Authorization: yield this._getAuthorizationHeader(),
165
+ "X-Fern-Language": "JavaScript",
166
+ "X-Fern-SDK-Name": "@thera-hr/api-sdk",
167
+ "X-Fern-SDK-Version": "0.0.2985",
168
+ },
169
+ contentType: "application/json",
170
+ body: yield serializers.api.thera.company.EditManagerRolesRequest.jsonOrThrow(request, {
171
+ unrecognizedObjectKeys: "strip",
172
+ }),
173
+ timeoutMs: 60000,
174
+ });
175
+ if (_response.ok) {
176
+ return yield serializers.api.thera.company.EditManagerRolesResponse.parseOrThrow(_response.body, {
177
+ unrecognizedObjectKeys: "passthrough",
178
+ allowUnrecognizedUnionMembers: true,
179
+ allowUnrecognizedEnumValues: true,
180
+ breadcrumbsPrefix: ["response"],
181
+ });
182
+ }
183
+ if (_response.error.reason === "status-code") {
184
+ throw new errors.TheraApiError({
185
+ statusCode: _response.error.statusCode,
186
+ body: _response.error.body,
187
+ });
188
+ }
189
+ switch (_response.error.reason) {
190
+ case "non-json":
191
+ throw new errors.TheraApiError({
192
+ statusCode: _response.error.statusCode,
193
+ body: _response.error.rawBody,
194
+ });
195
+ case "timeout":
196
+ throw new errors.TheraApiTimeoutError();
197
+ case "unknown":
198
+ throw new errors.TheraApiError({
199
+ message: _response.error.errorMessage,
200
+ });
201
+ }
202
+ });
203
+ }
204
+ /**
205
+ * < Edit org admins, with ultimate admin permissions across the platform. These users must already be managers of the org.
206
+ */
207
+ editOrgAdmins(companyId, request) {
208
+ return __awaiter(this, void 0, void 0, function* () {
209
+ const _response = yield core.fetcher({
210
+ url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `companies/${companyId}/admins`),
211
+ method: "POST",
212
+ headers: {
213
+ Authorization: yield this._getAuthorizationHeader(),
214
+ "X-Fern-Language": "JavaScript",
215
+ "X-Fern-SDK-Name": "@thera-hr/api-sdk",
216
+ "X-Fern-SDK-Version": "0.0.2985",
217
+ },
218
+ contentType: "application/json",
219
+ body: yield serializers.api.thera.company.AddOrgAdminsRequest.jsonOrThrow(request, {
220
+ unrecognizedObjectKeys: "strip",
221
+ }),
222
+ timeoutMs: 60000,
223
+ });
224
+ if (_response.ok) {
225
+ return yield serializers.api.thera.company.AddOrgAdminsResponse.parseOrThrow(_response.body, {
226
+ unrecognizedObjectKeys: "passthrough",
227
+ allowUnrecognizedUnionMembers: true,
228
+ allowUnrecognizedEnumValues: true,
229
+ breadcrumbsPrefix: ["response"],
230
+ });
231
+ }
232
+ if (_response.error.reason === "status-code") {
233
+ throw new errors.TheraApiError({
234
+ statusCode: _response.error.statusCode,
235
+ body: _response.error.body,
236
+ });
237
+ }
238
+ switch (_response.error.reason) {
239
+ case "non-json":
240
+ throw new errors.TheraApiError({
241
+ statusCode: _response.error.statusCode,
242
+ body: _response.error.rawBody,
243
+ });
244
+ case "timeout":
245
+ throw new errors.TheraApiTimeoutError();
246
+ case "unknown":
247
+ throw new errors.TheraApiError({
248
+ message: _response.error.errorMessage,
249
+ });
250
+ }
251
+ });
252
+ }
253
+ /**
254
+ * < Removes a manager from the org entirely, revoking all team and org level roles.
255
+ */
256
+ removeManager(companyId, userId) {
257
+ return __awaiter(this, void 0, void 0, function* () {
258
+ const _response = yield core.fetcher({
259
+ url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `companies/${companyId}/managers/${userId}`),
260
+ method: "DELETE",
261
+ headers: {
262
+ Authorization: yield this._getAuthorizationHeader(),
263
+ "X-Fern-Language": "JavaScript",
264
+ "X-Fern-SDK-Name": "@thera-hr/api-sdk",
265
+ "X-Fern-SDK-Version": "0.0.2985",
266
+ },
267
+ contentType: "application/json",
268
+ timeoutMs: 60000,
269
+ });
270
+ if (_response.ok) {
271
+ return yield serializers.api.thera.company.RemoveManagerResponse.parseOrThrow(_response.body, {
272
+ unrecognizedObjectKeys: "passthrough",
273
+ allowUnrecognizedUnionMembers: true,
274
+ allowUnrecognizedEnumValues: true,
275
+ breadcrumbsPrefix: ["response"],
276
+ });
277
+ }
278
+ if (_response.error.reason === "status-code") {
279
+ throw new errors.TheraApiError({
280
+ statusCode: _response.error.statusCode,
281
+ body: _response.error.body,
282
+ });
283
+ }
284
+ switch (_response.error.reason) {
285
+ case "non-json":
286
+ throw new errors.TheraApiError({
287
+ statusCode: _response.error.statusCode,
288
+ body: _response.error.rawBody,
289
+ });
290
+ case "timeout":
291
+ throw new errors.TheraApiTimeoutError();
292
+ case "unknown":
293
+ throw new errors.TheraApiError({
294
+ message: _response.error.errorMessage,
295
+ });
296
+ }
297
+ });
298
+ }
299
+ /**
300
+ * < Add org admins, with ultimate admin permissions across the platform. These users must already be managers of the org.
301
+ */
302
+ changeContractTeam(companyId, contractId, request) {
303
+ return __awaiter(this, void 0, void 0, function* () {
304
+ const _response = yield core.fetcher({
305
+ url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `companies/${companyId}/contracts/${contractId}/team`),
306
+ method: "POST",
307
+ headers: {
308
+ Authorization: yield this._getAuthorizationHeader(),
309
+ "X-Fern-Language": "JavaScript",
310
+ "X-Fern-SDK-Name": "@thera-hr/api-sdk",
311
+ "X-Fern-SDK-Version": "0.0.2985",
312
+ },
313
+ contentType: "application/json",
314
+ body: yield serializers.api.thera.company.ChangeContractTeamRequest.jsonOrThrow(request, {
315
+ unrecognizedObjectKeys: "strip",
316
+ }),
317
+ timeoutMs: 60000,
318
+ });
319
+ if (_response.ok) {
320
+ return yield serializers.api.thera.company.ChangeContractTeamResponse.parseOrThrow(_response.body, {
321
+ unrecognizedObjectKeys: "passthrough",
322
+ allowUnrecognizedUnionMembers: true,
323
+ allowUnrecognizedEnumValues: true,
324
+ breadcrumbsPrefix: ["response"],
325
+ });
326
+ }
327
+ if (_response.error.reason === "status-code") {
328
+ throw new errors.TheraApiError({
329
+ statusCode: _response.error.statusCode,
330
+ body: _response.error.body,
331
+ });
332
+ }
333
+ switch (_response.error.reason) {
334
+ case "non-json":
335
+ throw new errors.TheraApiError({
336
+ statusCode: _response.error.statusCode,
337
+ body: _response.error.rawBody,
338
+ });
339
+ case "timeout":
340
+ throw new errors.TheraApiTimeoutError();
341
+ case "unknown":
342
+ throw new errors.TheraApiError({
343
+ message: _response.error.errorMessage,
344
+ });
345
+ }
346
+ });
347
+ }
348
+ /**
349
+ * Get all of the managers for a company
350
+ */
351
+ getManagers(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}/managers`),
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.2985",
361
+ },
362
+ contentType: "application/json",
363
+ timeoutMs: 60000,
364
+ });
365
+ if (_response.ok) {
366
+ return yield serializers.api.thera.company.GetManagersResponse.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
+ /**
395
+ * Create a team within a company. At least one Team Admin must be added.
396
+ */
397
+ createTeam(companyId, request) {
398
+ return __awaiter(this, void 0, void 0, function* () {
399
+ const _response = yield core.fetcher({
400
+ url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `companies/${companyId}/teams`),
401
+ method: "POST",
402
+ headers: {
403
+ Authorization: yield this._getAuthorizationHeader(),
404
+ "X-Fern-Language": "JavaScript",
405
+ "X-Fern-SDK-Name": "@thera-hr/api-sdk",
406
+ "X-Fern-SDK-Version": "0.0.2985",
407
+ },
408
+ contentType: "application/json",
409
+ body: yield serializers.api.thera.company.CreateTeamRequest.jsonOrThrow(request, {
410
+ unrecognizedObjectKeys: "strip",
411
+ }),
412
+ timeoutMs: 60000,
413
+ });
414
+ if (_response.ok) {
415
+ return yield serializers.api.thera.company.CreateTeamResponse.parseOrThrow(_response.body, {
416
+ unrecognizedObjectKeys: "passthrough",
417
+ allowUnrecognizedUnionMembers: true,
418
+ allowUnrecognizedEnumValues: true,
419
+ breadcrumbsPrefix: ["response"],
420
+ });
421
+ }
422
+ if (_response.error.reason === "status-code") {
423
+ throw new errors.TheraApiError({
424
+ statusCode: _response.error.statusCode,
425
+ body: _response.error.body,
426
+ });
427
+ }
428
+ switch (_response.error.reason) {
429
+ case "non-json":
430
+ throw new errors.TheraApiError({
431
+ statusCode: _response.error.statusCode,
432
+ body: _response.error.rawBody,
433
+ });
434
+ case "timeout":
435
+ throw new errors.TheraApiTimeoutError();
436
+ case "unknown":
437
+ throw new errors.TheraApiError({
438
+ message: _response.error.errorMessage,
439
+ });
440
+ }
441
+ });
442
+ }
106
443
  _getAuthorizationHeader() {
107
444
  return __awaiter(this, void 0, void 0, function* () {
108
445
  const bearer = yield core.Supplier.get(this._options.token);
@@ -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 AddOrgAdminsRequest {
6
+ adminsToAdd: TheraApi.api.thera.company.OrgAdmin[];
7
+ adminsToRemove: TheraApi.api.thera.company.OrgAdmin[];
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,6 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface ChangeContractTeamRequest {
5
+ teamId: 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,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as TheraApi from "../../../../../../../../../..";
5
+ export interface CreateTeamRequest {
6
+ name: string;
7
+ managers: TheraApi.api.thera.company.CreateTeamRequestManager[];
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,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as TheraApi from "../../../../../../../../../..";
5
+ export interface EditManagerRolesRequest {
6
+ teamId: string;
7
+ role?: TheraApi.api.thera.company.TeamRoleAndDetails;
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,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as TheraApi from "../../../../../../../../../..";
5
+ export interface InviteManagerRequest {
6
+ firstName: string;
7
+ lastName: string;
8
+ email: string;
9
+ /** Keys are teamId */
10
+ teams: Record<string, TheraApi.api.thera.company.TeamRoleAndDetails>;
11
+ orgAdmin?: TheraApi.api.thera.company.OrgRoleAndDetails;
12
+ }
@@ -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 +1,6 @@
1
1
  export { InviteContractorReq } from "./InviteContractorReq";
2
+ export { InviteManagerRequest } from "./InviteManagerRequest";
3
+ export { EditManagerRolesRequest } from "./EditManagerRolesRequest";
4
+ export { AddOrgAdminsRequest } from "./AddOrgAdminsRequest";
5
+ export { ChangeContractTeamRequest } from "./ChangeContractTeamRequest";
6
+ export { CreateTeamRequest } from "./CreateTeamRequest";
@@ -0,0 +1,5 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface AddOrgAdminsResponse {
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 ChangeContractTeamResponse {
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 });
@@ -27,4 +27,5 @@ export interface CreateEmployment {
27
27
  *
28
28
  */
29
29
  clientCanSubmitWork?: boolean;
30
+ teamId?: string;
30
31
  }
@@ -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 CreateTeamRequestManager {
6
+ userId: string;
7
+ role: TheraApi.api.thera.company.TeamRoleAndDetails;
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 CreateTeamResponse {
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 EditManagerRolesResponse {
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,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as TheraApi from "../../../../../../../../..";
5
+ export interface GetManagersResponse {
6
+ managers: TheraApi.api.thera.company.Manager[];
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,5 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface InviteManagerResponse {
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,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as TheraApi from "../../../../../../../../..";
5
+ export interface Manager {
6
+ user: TheraApi.db.User;
7
+ teams: Record<string, TheraApi.api.thera.company.TeamRoleAndDetails>;
8
+ orgAdmin?: TheraApi.api.thera.company.OrgRoleAndDetails;
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 });
@@ -0,0 +1,6 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface OrgAdmin {
5
+ userId: 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,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export declare type OrgRole = "ADMIN";
5
+ export declare const OrgRole: {
6
+ readonly Admin: "ADMIN";
7
+ };
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.OrgRole = void 0;
7
+ exports.OrgRole = {
8
+ Admin: "ADMIN",
9
+ };
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as TheraApi from "../../../../../../../../..";
5
+ /**
6
+ * We may allow granular changes to roles so creating this wrapper type to future-proof
7
+ */
8
+ export interface OrgRoleAndDetails {
9
+ role: TheraApi.api.thera.company.OrgRole;
10
+ }
@@ -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 RemoveManagerResponse {
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,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export declare type TeamRole = "ADMIN" | "PEOPLE_MANAGER" | "VIEWER_SENSITIVE";
5
+ export declare const TeamRole: {
6
+ readonly Admin: "ADMIN";
7
+ readonly PeopleManager: "PEOPLE_MANAGER";
8
+ readonly ViewerSensitive: "VIEWER_SENSITIVE";
9
+ };