@thera-hr/api-sdk 0.0.1-prerelease2623-dev-2 → 0.0.1-prerelease2623-production

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 (261) hide show
  1. package/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +1 -1
  2. package/api/resources/api/resources/dev/resources/dev/client/Client.js +1 -1
  3. package/api/resources/api/resources/services/resources/file/client/Client.js +5 -5
  4. package/api/resources/api/resources/thera/client/Client.d.ts +0 -6
  5. package/api/resources/api/resources/thera/client/Client.js +20 -30
  6. package/api/resources/api/resources/thera/resources/accounting/resources/accountingApi/client/Client.js +4 -4
  7. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +31 -31
  8. package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +18 -18
  9. package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +3 -3
  10. package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +3 -3
  11. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +7 -7
  12. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
  13. package/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +3 -3
  14. package/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +2 -2
  15. package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +5 -5
  16. package/api/resources/api/resources/thera/resources/index.d.ts +0 -2
  17. package/api/resources/api/resources/thera/resources/index.js +1 -3
  18. package/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +5 -5
  19. package/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.js +1 -1
  20. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +3 -3
  21. package/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +14 -14
  22. package/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.js +9 -9
  23. package/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +10 -10
  24. package/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
  25. package/dist/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +1 -1
  26. package/dist/api/resources/api/resources/dev/resources/dev/client/Client.js +1 -1
  27. package/dist/api/resources/api/resources/services/resources/file/client/Client.js +5 -5
  28. package/dist/api/resources/api/resources/thera/client/Client.d.ts +0 -6
  29. package/dist/api/resources/api/resources/thera/client/Client.js +20 -30
  30. package/dist/api/resources/api/resources/thera/resources/accounting/resources/accountingApi/client/Client.js +4 -4
  31. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +31 -31
  32. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +18 -18
  33. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +3 -3
  34. package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +3 -3
  35. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +7 -7
  36. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
  37. package/dist/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +3 -3
  38. package/dist/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +2 -2
  39. package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +5 -5
  40. package/dist/api/resources/api/resources/thera/resources/index.d.ts +0 -2
  41. package/dist/api/resources/api/resources/thera/resources/index.js +1 -3
  42. package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +5 -5
  43. package/dist/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.js +1 -1
  44. package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +3 -3
  45. package/dist/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +14 -14
  46. package/dist/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.js +9 -9
  47. package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +10 -10
  48. package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
  49. package/dist/serialization/resources/api/resources/thera/resources/index.d.ts +0 -2
  50. package/dist/serialization/resources/api/resources/thera/resources/index.js +1 -3
  51. package/package.json +1 -1
  52. package/serialization/resources/api/resources/thera/resources/index.d.ts +0 -2
  53. package/serialization/resources/api/resources/thera/resources/index.js +1 -3
  54. package/api/resources/api/resources/thera/resources/customtheradocuments/client/Client.d.ts +0 -22
  55. package/api/resources/api/resources/thera/resources/customtheradocuments/client/Client.js +0 -17
  56. package/api/resources/api/resources/thera/resources/customtheradocuments/client/index.d.ts +0 -1
  57. package/api/resources/api/resources/thera/resources/customtheradocuments/client/index.js +0 -2
  58. package/api/resources/api/resources/thera/resources/customtheradocuments/index.d.ts +0 -2
  59. package/api/resources/api/resources/thera/resources/customtheradocuments/index.js +0 -18
  60. package/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/client/Client.d.ts +0 -91
  61. package/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/client/Client.js +0 -374
  62. package/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/client/index.d.ts +0 -1
  63. package/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/client/index.js +0 -17
  64. package/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/client/requests/ListDocumentsRequest.d.ts +0 -15
  65. package/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/client/requests/ListDocumentsRequest.js +0 -5
  66. package/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/client/requests/index.d.ts +0 -1
  67. package/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/client/requests/index.js +0 -2
  68. package/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/index.d.ts +0 -2
  69. package/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/index.js +0 -18
  70. package/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/CreateDocumentRequest.d.ts +0 -8
  71. package/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/CreateDocumentRequest.js +0 -5
  72. package/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/CustomTheraDocument.d.ts +0 -19
  73. package/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/CustomTheraDocument.js +0 -5
  74. package/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/DocumentListResponse.d.ts +0 -7
  75. package/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/DocumentListResponse.js +0 -5
  76. package/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/DocumentStatus.d.ts +0 -11
  77. package/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/DocumentStatus.js +0 -13
  78. package/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/UpdateDocumentRequest.d.ts +0 -7
  79. package/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/UpdateDocumentRequest.js +0 -5
  80. package/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/index.d.ts +0 -5
  81. package/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/index.js +0 -21
  82. package/api/resources/api/resources/thera/resources/customtheradocuments/resources/index.d.ts +0 -3
  83. package/api/resources/api/resources/thera/resources/customtheradocuments/resources/index.js +0 -32
  84. package/api/resources/api/resources/thera/resources/customtheratemplates/client/Client.d.ts +0 -22
  85. package/api/resources/api/resources/thera/resources/customtheratemplates/client/Client.js +0 -17
  86. package/api/resources/api/resources/thera/resources/customtheratemplates/client/index.d.ts +0 -1
  87. package/api/resources/api/resources/thera/resources/customtheratemplates/client/index.js +0 -2
  88. package/api/resources/api/resources/thera/resources/customtheratemplates/index.d.ts +0 -2
  89. package/api/resources/api/resources/thera/resources/customtheratemplates/index.js +0 -18
  90. package/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/client/Client.d.ts +0 -83
  91. package/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/client/Client.js +0 -360
  92. package/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/client/index.d.ts +0 -1
  93. package/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/client/index.js +0 -17
  94. package/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/client/requests/ListTemplatesRequest.d.ts +0 -12
  95. package/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/client/requests/ListTemplatesRequest.js +0 -5
  96. package/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/client/requests/index.d.ts +0 -1
  97. package/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/client/requests/index.js +0 -2
  98. package/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/index.d.ts +0 -2
  99. package/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/index.js +0 -18
  100. package/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/CreateTemplateRequest.d.ts +0 -9
  101. package/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/CreateTemplateRequest.js +0 -5
  102. package/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/CreateTemplateResponse.d.ts +0 -7
  103. package/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/CreateTemplateResponse.js +0 -5
  104. package/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/CreateTemplateSessionResponse.d.ts +0 -7
  105. package/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/CreateTemplateSessionResponse.js +0 -5
  106. package/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/FieldType.d.ts +0 -12
  107. package/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/FieldType.js +0 -14
  108. package/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/Template.d.ts +0 -16
  109. package/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/Template.js +0 -5
  110. package/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/TemplateField.d.ts +0 -11
  111. package/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/TemplateField.js +0 -5
  112. package/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/TemplateListResponse.d.ts +0 -7
  113. package/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/TemplateListResponse.js +0 -5
  114. package/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/index.d.ts +0 -7
  115. package/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/index.js +0 -23
  116. package/api/resources/api/resources/thera/resources/customtheratemplates/resources/index.d.ts +0 -3
  117. package/api/resources/api/resources/thera/resources/customtheratemplates/resources/index.js +0 -32
  118. package/dist/api/resources/api/resources/thera/resources/customtheradocuments/client/Client.d.ts +0 -22
  119. package/dist/api/resources/api/resources/thera/resources/customtheradocuments/client/Client.js +0 -17
  120. package/dist/api/resources/api/resources/thera/resources/customtheradocuments/client/index.d.ts +0 -1
  121. package/dist/api/resources/api/resources/thera/resources/customtheradocuments/client/index.js +0 -2
  122. package/dist/api/resources/api/resources/thera/resources/customtheradocuments/index.d.ts +0 -2
  123. package/dist/api/resources/api/resources/thera/resources/customtheradocuments/index.js +0 -18
  124. package/dist/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/client/Client.d.ts +0 -91
  125. package/dist/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/client/Client.js +0 -374
  126. package/dist/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/client/index.d.ts +0 -1
  127. package/dist/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/client/index.js +0 -17
  128. package/dist/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/client/requests/ListDocumentsRequest.d.ts +0 -15
  129. package/dist/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/client/requests/ListDocumentsRequest.js +0 -5
  130. package/dist/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/client/requests/index.d.ts +0 -1
  131. package/dist/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/client/requests/index.js +0 -2
  132. package/dist/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/index.d.ts +0 -2
  133. package/dist/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/index.js +0 -18
  134. package/dist/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/CreateDocumentRequest.d.ts +0 -8
  135. package/dist/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/CreateDocumentRequest.js +0 -5
  136. package/dist/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/CustomTheraDocument.d.ts +0 -19
  137. package/dist/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/CustomTheraDocument.js +0 -5
  138. package/dist/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/DocumentListResponse.d.ts +0 -7
  139. package/dist/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/DocumentListResponse.js +0 -5
  140. package/dist/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/DocumentStatus.d.ts +0 -11
  141. package/dist/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/DocumentStatus.js +0 -13
  142. package/dist/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/UpdateDocumentRequest.d.ts +0 -7
  143. package/dist/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/UpdateDocumentRequest.js +0 -5
  144. package/dist/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/index.d.ts +0 -5
  145. package/dist/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/index.js +0 -21
  146. package/dist/api/resources/api/resources/thera/resources/customtheradocuments/resources/index.d.ts +0 -3
  147. package/dist/api/resources/api/resources/thera/resources/customtheradocuments/resources/index.js +0 -32
  148. package/dist/api/resources/api/resources/thera/resources/customtheratemplates/client/Client.d.ts +0 -22
  149. package/dist/api/resources/api/resources/thera/resources/customtheratemplates/client/Client.js +0 -17
  150. package/dist/api/resources/api/resources/thera/resources/customtheratemplates/client/index.d.ts +0 -1
  151. package/dist/api/resources/api/resources/thera/resources/customtheratemplates/client/index.js +0 -2
  152. package/dist/api/resources/api/resources/thera/resources/customtheratemplates/index.d.ts +0 -2
  153. package/dist/api/resources/api/resources/thera/resources/customtheratemplates/index.js +0 -18
  154. package/dist/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/client/Client.d.ts +0 -83
  155. package/dist/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/client/Client.js +0 -360
  156. package/dist/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/client/index.d.ts +0 -1
  157. package/dist/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/client/index.js +0 -17
  158. package/dist/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/client/requests/ListTemplatesRequest.d.ts +0 -12
  159. package/dist/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/client/requests/ListTemplatesRequest.js +0 -5
  160. package/dist/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/client/requests/index.d.ts +0 -1
  161. package/dist/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/client/requests/index.js +0 -2
  162. package/dist/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/index.d.ts +0 -2
  163. package/dist/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/index.js +0 -18
  164. package/dist/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/CreateTemplateRequest.d.ts +0 -9
  165. package/dist/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/CreateTemplateRequest.js +0 -5
  166. package/dist/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/CreateTemplateResponse.d.ts +0 -7
  167. package/dist/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/CreateTemplateResponse.js +0 -5
  168. package/dist/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/CreateTemplateSessionResponse.d.ts +0 -7
  169. package/dist/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/CreateTemplateSessionResponse.js +0 -5
  170. package/dist/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/FieldType.d.ts +0 -12
  171. package/dist/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/FieldType.js +0 -14
  172. package/dist/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/Template.d.ts +0 -16
  173. package/dist/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/Template.js +0 -5
  174. package/dist/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/TemplateField.d.ts +0 -11
  175. package/dist/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/TemplateField.js +0 -5
  176. package/dist/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/TemplateListResponse.d.ts +0 -7
  177. package/dist/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/TemplateListResponse.js +0 -5
  178. package/dist/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/index.d.ts +0 -7
  179. package/dist/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/index.js +0 -23
  180. package/dist/api/resources/api/resources/thera/resources/customtheratemplates/resources/index.d.ts +0 -3
  181. package/dist/api/resources/api/resources/thera/resources/customtheratemplates/resources/index.js +0 -32
  182. package/dist/serialization/resources/api/resources/thera/resources/customtheradocuments/index.d.ts +0 -1
  183. package/dist/serialization/resources/api/resources/thera/resources/customtheradocuments/index.js +0 -17
  184. package/dist/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/index.d.ts +0 -1
  185. package/dist/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/index.js +0 -17
  186. package/dist/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/CreateDocumentRequest.d.ts +0 -14
  187. package/dist/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/CreateDocumentRequest.js +0 -35
  188. package/dist/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/CustomTheraDocument.d.ts +0 -25
  189. package/dist/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/CustomTheraDocument.js +0 -46
  190. package/dist/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/DocumentListResponse.d.ts +0 -13
  191. package/dist/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/DocumentListResponse.js +0 -34
  192. package/dist/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/DocumentStatus.d.ts +0 -10
  193. package/dist/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/DocumentStatus.js +0 -31
  194. package/dist/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/UpdateDocumentRequest.d.ts +0 -13
  195. package/dist/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/UpdateDocumentRequest.js +0 -34
  196. package/dist/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/index.d.ts +0 -5
  197. package/dist/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/index.js +0 -21
  198. package/dist/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/index.d.ts +0 -2
  199. package/dist/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/index.js +0 -31
  200. package/dist/serialization/resources/api/resources/thera/resources/customtheratemplates/index.d.ts +0 -1
  201. package/dist/serialization/resources/api/resources/thera/resources/customtheratemplates/index.js +0 -17
  202. package/dist/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/index.d.ts +0 -1
  203. package/dist/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/index.js +0 -17
  204. package/dist/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/CreateTemplateRequest.d.ts +0 -15
  205. package/dist/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/CreateTemplateRequest.js +0 -36
  206. package/dist/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/CreateTemplateResponse.d.ts +0 -13
  207. package/dist/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/CreateTemplateResponse.js +0 -34
  208. package/dist/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/CreateTemplateSessionResponse.d.ts +0 -13
  209. package/dist/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/CreateTemplateSessionResponse.js +0 -34
  210. package/dist/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/FieldType.d.ts +0 -10
  211. package/dist/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/FieldType.js +0 -31
  212. package/dist/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/Template.d.ts +0 -22
  213. package/dist/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/Template.js +0 -43
  214. package/dist/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/TemplateField.d.ts +0 -17
  215. package/dist/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/TemplateField.js +0 -38
  216. package/dist/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/TemplateListResponse.d.ts +0 -13
  217. package/dist/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/TemplateListResponse.js +0 -34
  218. package/dist/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/index.d.ts +0 -7
  219. package/dist/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/index.js +0 -23
  220. package/dist/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/index.d.ts +0 -2
  221. package/dist/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/index.js +0 -31
  222. package/serialization/resources/api/resources/thera/resources/customtheradocuments/index.d.ts +0 -1
  223. package/serialization/resources/api/resources/thera/resources/customtheradocuments/index.js +0 -17
  224. package/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/index.d.ts +0 -1
  225. package/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/index.js +0 -17
  226. package/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/CreateDocumentRequest.d.ts +0 -14
  227. package/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/CreateDocumentRequest.js +0 -35
  228. package/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/CustomTheraDocument.d.ts +0 -25
  229. package/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/CustomTheraDocument.js +0 -46
  230. package/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/DocumentListResponse.d.ts +0 -13
  231. package/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/DocumentListResponse.js +0 -34
  232. package/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/DocumentStatus.d.ts +0 -10
  233. package/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/DocumentStatus.js +0 -31
  234. package/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/UpdateDocumentRequest.d.ts +0 -13
  235. package/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/UpdateDocumentRequest.js +0 -34
  236. package/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/index.d.ts +0 -5
  237. package/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/index.js +0 -21
  238. package/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/index.d.ts +0 -2
  239. package/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/index.js +0 -31
  240. package/serialization/resources/api/resources/thera/resources/customtheratemplates/index.d.ts +0 -1
  241. package/serialization/resources/api/resources/thera/resources/customtheratemplates/index.js +0 -17
  242. package/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/index.d.ts +0 -1
  243. package/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/index.js +0 -17
  244. package/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/CreateTemplateRequest.d.ts +0 -15
  245. package/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/CreateTemplateRequest.js +0 -36
  246. package/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/CreateTemplateResponse.d.ts +0 -13
  247. package/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/CreateTemplateResponse.js +0 -34
  248. package/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/CreateTemplateSessionResponse.d.ts +0 -13
  249. package/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/CreateTemplateSessionResponse.js +0 -34
  250. package/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/FieldType.d.ts +0 -10
  251. package/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/FieldType.js +0 -31
  252. package/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/Template.d.ts +0 -22
  253. package/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/Template.js +0 -43
  254. package/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/TemplateField.d.ts +0 -17
  255. package/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/TemplateField.js +0 -38
  256. package/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/TemplateListResponse.d.ts +0 -13
  257. package/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/TemplateListResponse.js +0 -34
  258. package/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/index.d.ts +0 -7
  259. package/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/index.js +0 -23
  260. package/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/index.d.ts +0 -2
  261. package/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/index.js +0 -31
@@ -1,17 +0,0 @@
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.Customtheratemplates = void 0;
7
- const Client_1 = require("../resources/customtheratemplatesApi/client/Client");
8
- class Customtheratemplates {
9
- constructor(_options) {
10
- this._options = _options;
11
- }
12
- get customtheratemplatesApi() {
13
- var _a;
14
- return ((_a = this._customtheratemplatesApi) !== null && _a !== void 0 ? _a : (this._customtheratemplatesApi = new Client_1.CustomtheratemplatesApi(this._options)));
15
- }
16
- }
17
- exports.Customtheratemplates = Customtheratemplates;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- export * from "./resources";
2
- export * from "./client";
@@ -1,18 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./resources"), exports);
18
- __exportStar(require("./client"), exports);
@@ -1,83 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as core from "../../../../../../../../../../core";
5
- import * as TheraApi from "../../../../../../../../../index";
6
- export declare namespace CustomtheratemplatesApi {
7
- interface Options {
8
- environment: core.Supplier<string>;
9
- token?: core.Supplier<core.BearerToken | undefined>;
10
- }
11
- interface RequestOptions {
12
- timeoutInSeconds?: number;
13
- maxRetries?: number;
14
- abortSignal?: AbortSignal;
15
- }
16
- }
17
- export declare class CustomtheratemplatesApi {
18
- protected readonly _options: CustomtheratemplatesApi.Options;
19
- constructor(_options: CustomtheratemplatesApi.Options);
20
- /**
21
- * Upload and create a new template
22
- *
23
- * @param {string} companyId
24
- * @param {TheraApi.api.thera.customtheratemplates.CreateTemplateRequest} request
25
- * @param {CustomtheratemplatesApi.RequestOptions} requestOptions - Request-specific configuration.
26
- *
27
- * @example
28
- * await client.api.thera.customtheratemplates.customtheratemplatesApi.uploadTemplate("string", {
29
- * name: "string",
30
- * category: "string",
31
- * file: "string",
32
- * filename: "string"
33
- * })
34
- */
35
- uploadTemplate(companyId: string, request: TheraApi.api.thera.customtheratemplates.CreateTemplateRequest, requestOptions?: CustomtheratemplatesApi.RequestOptions): Promise<TheraApi.api.thera.customtheratemplates.CreateTemplateResponse>;
36
- /**
37
- * Create a template editing session
38
- *
39
- * @param {string} companyId
40
- * @param {string} templateId
41
- * @param {CustomtheratemplatesApi.RequestOptions} requestOptions - Request-specific configuration.
42
- *
43
- * @example
44
- * await client.api.thera.customtheratemplates.customtheratemplatesApi.createTemplateSession("string", "string")
45
- */
46
- createTemplateSession(companyId: string, templateId: string, requestOptions?: CustomtheratemplatesApi.RequestOptions): Promise<TheraApi.api.thera.customtheratemplates.CreateTemplateSessionResponse>;
47
- /**
48
- * List all templates for a company
49
- *
50
- * @param {string} companyId
51
- * @param {TheraApi.api.thera.customtheratemplates.ListTemplatesRequest} request
52
- * @param {CustomtheratemplatesApi.RequestOptions} requestOptions - Request-specific configuration.
53
- *
54
- * @example
55
- * await client.api.thera.customtheratemplates.customtheratemplatesApi.listTemplates("string", {
56
- * category: "string"
57
- * })
58
- */
59
- listTemplates(companyId: string, request?: TheraApi.api.thera.customtheratemplates.ListTemplatesRequest, requestOptions?: CustomtheratemplatesApi.RequestOptions): Promise<TheraApi.api.thera.customtheratemplates.TemplateListResponse>;
60
- /**
61
- * Get a specific template details
62
- *
63
- * @param {string} companyId
64
- * @param {string} templateId
65
- * @param {CustomtheratemplatesApi.RequestOptions} requestOptions - Request-specific configuration.
66
- *
67
- * @example
68
- * await client.api.thera.customtheratemplates.customtheratemplatesApi.getTemplate("string", "string")
69
- */
70
- getTemplate(companyId: string, templateId: string, requestOptions?: CustomtheratemplatesApi.RequestOptions): Promise<TheraApi.api.thera.customtheratemplates.Template>;
71
- /**
72
- * Delete a template
73
- *
74
- * @param {string} templateId
75
- * @param {string} companyId
76
- * @param {CustomtheratemplatesApi.RequestOptions} requestOptions - Request-specific configuration.
77
- *
78
- * @example
79
- * await client.api.thera.customtheratemplates.customtheratemplatesApi.deleteTemplate("string", "string")
80
- */
81
- deleteTemplate(templateId: string, companyId: string, requestOptions?: CustomtheratemplatesApi.RequestOptions): Promise<void>;
82
- protected _getAuthorizationHeader(): Promise<string | undefined>;
83
- }
@@ -1,360 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || function (mod) {
22
- if (mod && mod.__esModule) return mod;
23
- var result = {};
24
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
- __setModuleDefault(result, mod);
26
- return result;
27
- };
28
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
29
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
30
- return new (P || (P = Promise))(function (resolve, reject) {
31
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
32
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
33
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
34
- step((generator = generator.apply(thisArg, _arguments || [])).next());
35
- });
36
- };
37
- var __importDefault = (this && this.__importDefault) || function (mod) {
38
- return (mod && mod.__esModule) ? mod : { "default": mod };
39
- };
40
- Object.defineProperty(exports, "__esModule", { value: true });
41
- exports.CustomtheratemplatesApi = void 0;
42
- const core = __importStar(require("../../../../../../../../../../core"));
43
- const serializers = __importStar(require("../../../../../../../../../../serialization/index"));
44
- const url_join_1 = __importDefault(require("url-join"));
45
- const errors = __importStar(require("../../../../../../../../../../errors/index"));
46
- class CustomtheratemplatesApi {
47
- constructor(_options) {
48
- this._options = _options;
49
- }
50
- /**
51
- * Upload and create a new template
52
- *
53
- * @param {string} companyId
54
- * @param {TheraApi.api.thera.customtheratemplates.CreateTemplateRequest} request
55
- * @param {CustomtheratemplatesApi.RequestOptions} requestOptions - Request-specific configuration.
56
- *
57
- * @example
58
- * await client.api.thera.customtheratemplates.customtheratemplatesApi.uploadTemplate("string", {
59
- * name: "string",
60
- * category: "string",
61
- * file: "string",
62
- * filename: "string"
63
- * })
64
- */
65
- uploadTemplate(companyId, request, requestOptions) {
66
- return __awaiter(this, void 0, void 0, function* () {
67
- const _response = yield core.fetcher({
68
- url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `companies/${encodeURIComponent(companyId)}/templates/upload`),
69
- method: "POST",
70
- headers: {
71
- Authorization: yield this._getAuthorizationHeader(),
72
- "X-Fern-Language": "JavaScript",
73
- "X-Fern-SDK-Name": "@thera-hr/api-sdk",
74
- "X-Fern-SDK-Version": "0.0.1-prerelease2623-dev-2",
75
- "X-Fern-Runtime": core.RUNTIME.type,
76
- "X-Fern-Runtime-Version": core.RUNTIME.version,
77
- },
78
- contentType: "application/json",
79
- body: yield serializers.api.thera.customtheratemplates.CreateTemplateRequest.jsonOrThrow(request, {
80
- unrecognizedObjectKeys: "strip",
81
- }),
82
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
83
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
84
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
85
- });
86
- if (_response.ok) {
87
- return yield serializers.api.thera.customtheratemplates.CreateTemplateResponse.parseOrThrow(_response.body, {
88
- unrecognizedObjectKeys: "passthrough",
89
- allowUnrecognizedUnionMembers: true,
90
- allowUnrecognizedEnumValues: true,
91
- skipValidation: true,
92
- breadcrumbsPrefix: ["response"],
93
- });
94
- }
95
- if (_response.error.reason === "status-code") {
96
- throw new errors.TheraApiError({
97
- statusCode: _response.error.statusCode,
98
- body: _response.error.body,
99
- });
100
- }
101
- switch (_response.error.reason) {
102
- case "non-json":
103
- throw new errors.TheraApiError({
104
- statusCode: _response.error.statusCode,
105
- body: _response.error.rawBody,
106
- });
107
- case "timeout":
108
- throw new errors.TheraApiTimeoutError();
109
- case "unknown":
110
- throw new errors.TheraApiError({
111
- message: _response.error.errorMessage,
112
- });
113
- }
114
- });
115
- }
116
- /**
117
- * Create a template editing session
118
- *
119
- * @param {string} companyId
120
- * @param {string} templateId
121
- * @param {CustomtheratemplatesApi.RequestOptions} requestOptions - Request-specific configuration.
122
- *
123
- * @example
124
- * await client.api.thera.customtheratemplates.customtheratemplatesApi.createTemplateSession("string", "string")
125
- */
126
- createTemplateSession(companyId, templateId, requestOptions) {
127
- return __awaiter(this, void 0, void 0, function* () {
128
- const _response = yield core.fetcher({
129
- url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `companies/${encodeURIComponent(companyId)}/templates/${encodeURIComponent(templateId)}/session`),
130
- method: "POST",
131
- headers: {
132
- Authorization: yield this._getAuthorizationHeader(),
133
- "X-Fern-Language": "JavaScript",
134
- "X-Fern-SDK-Name": "@thera-hr/api-sdk",
135
- "X-Fern-SDK-Version": "0.0.1-prerelease2623-dev-2",
136
- "X-Fern-Runtime": core.RUNTIME.type,
137
- "X-Fern-Runtime-Version": core.RUNTIME.version,
138
- },
139
- contentType: "application/json",
140
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
141
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
142
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
143
- });
144
- if (_response.ok) {
145
- return yield serializers.api.thera.customtheratemplates.CreateTemplateSessionResponse.parseOrThrow(_response.body, {
146
- unrecognizedObjectKeys: "passthrough",
147
- allowUnrecognizedUnionMembers: true,
148
- allowUnrecognizedEnumValues: true,
149
- skipValidation: true,
150
- breadcrumbsPrefix: ["response"],
151
- });
152
- }
153
- if (_response.error.reason === "status-code") {
154
- throw new errors.TheraApiError({
155
- statusCode: _response.error.statusCode,
156
- body: _response.error.body,
157
- });
158
- }
159
- switch (_response.error.reason) {
160
- case "non-json":
161
- throw new errors.TheraApiError({
162
- statusCode: _response.error.statusCode,
163
- body: _response.error.rawBody,
164
- });
165
- case "timeout":
166
- throw new errors.TheraApiTimeoutError();
167
- case "unknown":
168
- throw new errors.TheraApiError({
169
- message: _response.error.errorMessage,
170
- });
171
- }
172
- });
173
- }
174
- /**
175
- * List all templates for a company
176
- *
177
- * @param {string} companyId
178
- * @param {TheraApi.api.thera.customtheratemplates.ListTemplatesRequest} request
179
- * @param {CustomtheratemplatesApi.RequestOptions} requestOptions - Request-specific configuration.
180
- *
181
- * @example
182
- * await client.api.thera.customtheratemplates.customtheratemplatesApi.listTemplates("string", {
183
- * category: "string"
184
- * })
185
- */
186
- listTemplates(companyId, request = {}, requestOptions) {
187
- return __awaiter(this, void 0, void 0, function* () {
188
- const { category } = request;
189
- const _queryParams = {};
190
- if (category != null) {
191
- _queryParams["category"] = category;
192
- }
193
- const _response = yield core.fetcher({
194
- url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `companies/${encodeURIComponent(companyId)}/templates`),
195
- method: "GET",
196
- headers: {
197
- Authorization: yield this._getAuthorizationHeader(),
198
- "X-Fern-Language": "JavaScript",
199
- "X-Fern-SDK-Name": "@thera-hr/api-sdk",
200
- "X-Fern-SDK-Version": "0.0.1-prerelease2623-dev-2",
201
- "X-Fern-Runtime": core.RUNTIME.type,
202
- "X-Fern-Runtime-Version": core.RUNTIME.version,
203
- },
204
- contentType: "application/json",
205
- queryParameters: _queryParams,
206
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
207
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
208
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
209
- });
210
- if (_response.ok) {
211
- return yield serializers.api.thera.customtheratemplates.TemplateListResponse.parseOrThrow(_response.body, {
212
- unrecognizedObjectKeys: "passthrough",
213
- allowUnrecognizedUnionMembers: true,
214
- allowUnrecognizedEnumValues: true,
215
- skipValidation: true,
216
- breadcrumbsPrefix: ["response"],
217
- });
218
- }
219
- if (_response.error.reason === "status-code") {
220
- throw new errors.TheraApiError({
221
- statusCode: _response.error.statusCode,
222
- body: _response.error.body,
223
- });
224
- }
225
- switch (_response.error.reason) {
226
- case "non-json":
227
- throw new errors.TheraApiError({
228
- statusCode: _response.error.statusCode,
229
- body: _response.error.rawBody,
230
- });
231
- case "timeout":
232
- throw new errors.TheraApiTimeoutError();
233
- case "unknown":
234
- throw new errors.TheraApiError({
235
- message: _response.error.errorMessage,
236
- });
237
- }
238
- });
239
- }
240
- /**
241
- * Get a specific template details
242
- *
243
- * @param {string} companyId
244
- * @param {string} templateId
245
- * @param {CustomtheratemplatesApi.RequestOptions} requestOptions - Request-specific configuration.
246
- *
247
- * @example
248
- * await client.api.thera.customtheratemplates.customtheratemplatesApi.getTemplate("string", "string")
249
- */
250
- getTemplate(companyId, templateId, requestOptions) {
251
- return __awaiter(this, void 0, void 0, function* () {
252
- const _response = yield core.fetcher({
253
- url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `companies/${encodeURIComponent(companyId)}/templates/${encodeURIComponent(templateId)}`),
254
- method: "GET",
255
- headers: {
256
- Authorization: yield this._getAuthorizationHeader(),
257
- "X-Fern-Language": "JavaScript",
258
- "X-Fern-SDK-Name": "@thera-hr/api-sdk",
259
- "X-Fern-SDK-Version": "0.0.1-prerelease2623-dev-2",
260
- "X-Fern-Runtime": core.RUNTIME.type,
261
- "X-Fern-Runtime-Version": core.RUNTIME.version,
262
- },
263
- contentType: "application/json",
264
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
265
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
266
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
267
- });
268
- if (_response.ok) {
269
- return yield serializers.api.thera.customtheratemplates.Template.parseOrThrow(_response.body, {
270
- unrecognizedObjectKeys: "passthrough",
271
- allowUnrecognizedUnionMembers: true,
272
- allowUnrecognizedEnumValues: true,
273
- skipValidation: true,
274
- breadcrumbsPrefix: ["response"],
275
- });
276
- }
277
- if (_response.error.reason === "status-code") {
278
- throw new errors.TheraApiError({
279
- statusCode: _response.error.statusCode,
280
- body: _response.error.body,
281
- });
282
- }
283
- switch (_response.error.reason) {
284
- case "non-json":
285
- throw new errors.TheraApiError({
286
- statusCode: _response.error.statusCode,
287
- body: _response.error.rawBody,
288
- });
289
- case "timeout":
290
- throw new errors.TheraApiTimeoutError();
291
- case "unknown":
292
- throw new errors.TheraApiError({
293
- message: _response.error.errorMessage,
294
- });
295
- }
296
- });
297
- }
298
- /**
299
- * Delete a template
300
- *
301
- * @param {string} templateId
302
- * @param {string} companyId
303
- * @param {CustomtheratemplatesApi.RequestOptions} requestOptions - Request-specific configuration.
304
- *
305
- * @example
306
- * await client.api.thera.customtheratemplates.customtheratemplatesApi.deleteTemplate("string", "string")
307
- */
308
- deleteTemplate(templateId, companyId, requestOptions) {
309
- return __awaiter(this, void 0, void 0, function* () {
310
- const _response = yield core.fetcher({
311
- url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `companies/${encodeURIComponent(companyId)}/templates/${encodeURIComponent(templateId)}`),
312
- method: "DELETE",
313
- headers: {
314
- Authorization: yield this._getAuthorizationHeader(),
315
- "X-Fern-Language": "JavaScript",
316
- "X-Fern-SDK-Name": "@thera-hr/api-sdk",
317
- "X-Fern-SDK-Version": "0.0.1-prerelease2623-dev-2",
318
- "X-Fern-Runtime": core.RUNTIME.type,
319
- "X-Fern-Runtime-Version": core.RUNTIME.version,
320
- },
321
- contentType: "application/json",
322
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
323
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
324
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
325
- });
326
- if (_response.ok) {
327
- return;
328
- }
329
- if (_response.error.reason === "status-code") {
330
- throw new errors.TheraApiError({
331
- statusCode: _response.error.statusCode,
332
- body: _response.error.body,
333
- });
334
- }
335
- switch (_response.error.reason) {
336
- case "non-json":
337
- throw new errors.TheraApiError({
338
- statusCode: _response.error.statusCode,
339
- body: _response.error.rawBody,
340
- });
341
- case "timeout":
342
- throw new errors.TheraApiTimeoutError();
343
- case "unknown":
344
- throw new errors.TheraApiError({
345
- message: _response.error.errorMessage,
346
- });
347
- }
348
- });
349
- }
350
- _getAuthorizationHeader() {
351
- return __awaiter(this, void 0, void 0, function* () {
352
- const bearer = yield core.Supplier.get(this._options.token);
353
- if (bearer != null) {
354
- return `Bearer ${bearer}`;
355
- }
356
- return undefined;
357
- });
358
- }
359
- }
360
- exports.CustomtheratemplatesApi = CustomtheratemplatesApi;
@@ -1,17 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./requests"), exports);
@@ -1,12 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- /**
5
- * @example
6
- * {
7
- * category: "string"
8
- * }
9
- */
10
- export interface ListTemplatesRequest {
11
- category?: string;
12
- }
@@ -1,5 +0,0 @@
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 +0,0 @@
1
- export { type ListTemplatesRequest } from "./ListTemplatesRequest";
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- export * from "./types";
2
- export * from "./client";
@@ -1,18 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./types"), exports);
18
- __exportStar(require("./client"), exports);
@@ -1,9 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface CreateTemplateRequest {
5
- name: string;
6
- category: string;
7
- file: string;
8
- filename: string;
9
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface CreateTemplateResponse {
5
- templateId: string;
6
- pandaDocTemplateId: string;
7
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface CreateTemplateSessionResponse {
5
- sessionId: string;
6
- expiresIn: number;
7
- }
@@ -1,5 +0,0 @@
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,12 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export declare type FieldType = "TEXT" | "NUMBER" | "DATE" | "SIGNATURE" | "CHECKBOX" | "DROPDOWN";
5
- export declare const FieldType: {
6
- readonly Text: "TEXT";
7
- readonly Number: "NUMBER";
8
- readonly Date: "DATE";
9
- readonly Signature: "SIGNATURE";
10
- readonly Checkbox: "CHECKBOX";
11
- readonly Dropdown: "DROPDOWN";
12
- };
@@ -1,14 +0,0 @@
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.FieldType = void 0;
7
- exports.FieldType = {
8
- Text: "TEXT",
9
- Number: "NUMBER",
10
- Date: "DATE",
11
- Signature: "SIGNATURE",
12
- Checkbox: "CHECKBOX",
13
- Dropdown: "DROPDOWN",
14
- };