@thera-hr/api-sdk 0.0.1-prerelease2624-dev-2 → 0.0.1-prerelease2624-staging

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 (253) 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 -14
  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/TemplateListResponse.d.ts +0 -7
  111. package/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/TemplateListResponse.js +0 -5
  112. package/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/index.d.ts +0 -6
  113. package/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/index.js +0 -22
  114. package/api/resources/api/resources/thera/resources/customtheratemplates/resources/index.d.ts +0 -3
  115. package/api/resources/api/resources/thera/resources/customtheratemplates/resources/index.js +0 -32
  116. package/dist/api/resources/api/resources/thera/resources/customtheradocuments/client/Client.d.ts +0 -22
  117. package/dist/api/resources/api/resources/thera/resources/customtheradocuments/client/Client.js +0 -17
  118. package/dist/api/resources/api/resources/thera/resources/customtheradocuments/client/index.d.ts +0 -1
  119. package/dist/api/resources/api/resources/thera/resources/customtheradocuments/client/index.js +0 -2
  120. package/dist/api/resources/api/resources/thera/resources/customtheradocuments/index.d.ts +0 -2
  121. package/dist/api/resources/api/resources/thera/resources/customtheradocuments/index.js +0 -18
  122. package/dist/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/client/Client.d.ts +0 -91
  123. package/dist/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/client/Client.js +0 -374
  124. package/dist/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/client/index.d.ts +0 -1
  125. package/dist/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/client/index.js +0 -17
  126. package/dist/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/client/requests/ListDocumentsRequest.d.ts +0 -15
  127. package/dist/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/client/requests/ListDocumentsRequest.js +0 -5
  128. package/dist/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/client/requests/index.d.ts +0 -1
  129. package/dist/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/client/requests/index.js +0 -2
  130. package/dist/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/index.d.ts +0 -2
  131. package/dist/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/index.js +0 -18
  132. package/dist/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/CreateDocumentRequest.d.ts +0 -8
  133. package/dist/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/CreateDocumentRequest.js +0 -5
  134. package/dist/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/CustomTheraDocument.d.ts +0 -19
  135. package/dist/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/CustomTheraDocument.js +0 -5
  136. package/dist/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/DocumentListResponse.d.ts +0 -7
  137. package/dist/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/DocumentListResponse.js +0 -5
  138. package/dist/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/DocumentStatus.d.ts +0 -11
  139. package/dist/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/DocumentStatus.js +0 -13
  140. package/dist/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/UpdateDocumentRequest.d.ts +0 -7
  141. package/dist/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/UpdateDocumentRequest.js +0 -5
  142. package/dist/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/index.d.ts +0 -5
  143. package/dist/api/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/index.js +0 -21
  144. package/dist/api/resources/api/resources/thera/resources/customtheradocuments/resources/index.d.ts +0 -3
  145. package/dist/api/resources/api/resources/thera/resources/customtheradocuments/resources/index.js +0 -32
  146. package/dist/api/resources/api/resources/thera/resources/customtheratemplates/client/Client.d.ts +0 -22
  147. package/dist/api/resources/api/resources/thera/resources/customtheratemplates/client/Client.js +0 -17
  148. package/dist/api/resources/api/resources/thera/resources/customtheratemplates/client/index.d.ts +0 -1
  149. package/dist/api/resources/api/resources/thera/resources/customtheratemplates/client/index.js +0 -2
  150. package/dist/api/resources/api/resources/thera/resources/customtheratemplates/index.d.ts +0 -2
  151. package/dist/api/resources/api/resources/thera/resources/customtheratemplates/index.js +0 -18
  152. package/dist/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/client/Client.d.ts +0 -83
  153. package/dist/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/client/Client.js +0 -360
  154. package/dist/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/client/index.d.ts +0 -1
  155. package/dist/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/client/index.js +0 -17
  156. package/dist/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/client/requests/ListTemplatesRequest.d.ts +0 -12
  157. package/dist/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/client/requests/ListTemplatesRequest.js +0 -5
  158. package/dist/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/client/requests/index.d.ts +0 -1
  159. package/dist/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/client/requests/index.js +0 -2
  160. package/dist/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/index.d.ts +0 -2
  161. package/dist/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/index.js +0 -18
  162. package/dist/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/CreateTemplateRequest.d.ts +0 -9
  163. package/dist/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/CreateTemplateRequest.js +0 -5
  164. package/dist/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/CreateTemplateResponse.d.ts +0 -7
  165. package/dist/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/CreateTemplateResponse.js +0 -5
  166. package/dist/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/CreateTemplateSessionResponse.d.ts +0 -7
  167. package/dist/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/CreateTemplateSessionResponse.js +0 -5
  168. package/dist/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/FieldType.d.ts +0 -12
  169. package/dist/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/FieldType.js +0 -14
  170. package/dist/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/Template.d.ts +0 -14
  171. package/dist/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/Template.js +0 -5
  172. package/dist/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/TemplateListResponse.d.ts +0 -7
  173. package/dist/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/TemplateListResponse.js +0 -5
  174. package/dist/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/index.d.ts +0 -6
  175. package/dist/api/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/index.js +0 -22
  176. package/dist/api/resources/api/resources/thera/resources/customtheratemplates/resources/index.d.ts +0 -3
  177. package/dist/api/resources/api/resources/thera/resources/customtheratemplates/resources/index.js +0 -32
  178. package/dist/serialization/resources/api/resources/thera/resources/customtheradocuments/index.d.ts +0 -1
  179. package/dist/serialization/resources/api/resources/thera/resources/customtheradocuments/index.js +0 -17
  180. package/dist/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/index.d.ts +0 -1
  181. package/dist/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/index.js +0 -17
  182. package/dist/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/CreateDocumentRequest.d.ts +0 -14
  183. package/dist/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/CreateDocumentRequest.js +0 -35
  184. package/dist/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/CustomTheraDocument.d.ts +0 -25
  185. package/dist/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/CustomTheraDocument.js +0 -46
  186. package/dist/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/DocumentListResponse.d.ts +0 -13
  187. package/dist/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/DocumentListResponse.js +0 -34
  188. package/dist/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/DocumentStatus.d.ts +0 -10
  189. package/dist/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/DocumentStatus.js +0 -31
  190. package/dist/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/UpdateDocumentRequest.d.ts +0 -13
  191. package/dist/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/UpdateDocumentRequest.js +0 -34
  192. package/dist/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/index.d.ts +0 -5
  193. package/dist/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/index.js +0 -21
  194. package/dist/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/index.d.ts +0 -2
  195. package/dist/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/index.js +0 -31
  196. package/dist/serialization/resources/api/resources/thera/resources/customtheratemplates/index.d.ts +0 -1
  197. package/dist/serialization/resources/api/resources/thera/resources/customtheratemplates/index.js +0 -17
  198. package/dist/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/index.d.ts +0 -1
  199. package/dist/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/index.js +0 -17
  200. package/dist/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/CreateTemplateRequest.d.ts +0 -15
  201. package/dist/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/CreateTemplateRequest.js +0 -36
  202. package/dist/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/CreateTemplateResponse.d.ts +0 -13
  203. package/dist/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/CreateTemplateResponse.js +0 -34
  204. package/dist/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/CreateTemplateSessionResponse.d.ts +0 -13
  205. package/dist/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/CreateTemplateSessionResponse.js +0 -34
  206. package/dist/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/FieldType.d.ts +0 -10
  207. package/dist/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/FieldType.js +0 -31
  208. package/dist/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/Template.d.ts +0 -20
  209. package/dist/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/Template.js +0 -41
  210. package/dist/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/TemplateListResponse.d.ts +0 -13
  211. package/dist/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/TemplateListResponse.js +0 -34
  212. package/dist/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/index.d.ts +0 -6
  213. package/dist/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/index.js +0 -22
  214. package/dist/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/index.d.ts +0 -2
  215. package/dist/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/index.js +0 -31
  216. package/serialization/resources/api/resources/thera/resources/customtheradocuments/index.d.ts +0 -1
  217. package/serialization/resources/api/resources/thera/resources/customtheradocuments/index.js +0 -17
  218. package/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/index.d.ts +0 -1
  219. package/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/index.js +0 -17
  220. package/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/CreateDocumentRequest.d.ts +0 -14
  221. package/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/CreateDocumentRequest.js +0 -35
  222. package/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/CustomTheraDocument.d.ts +0 -25
  223. package/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/CustomTheraDocument.js +0 -46
  224. package/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/DocumentListResponse.d.ts +0 -13
  225. package/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/DocumentListResponse.js +0 -34
  226. package/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/DocumentStatus.d.ts +0 -10
  227. package/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/DocumentStatus.js +0 -31
  228. package/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/UpdateDocumentRequest.d.ts +0 -13
  229. package/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/UpdateDocumentRequest.js +0 -34
  230. package/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/index.d.ts +0 -5
  231. package/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/customtheradocumentsApi/types/index.js +0 -21
  232. package/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/index.d.ts +0 -2
  233. package/serialization/resources/api/resources/thera/resources/customtheradocuments/resources/index.js +0 -31
  234. package/serialization/resources/api/resources/thera/resources/customtheratemplates/index.d.ts +0 -1
  235. package/serialization/resources/api/resources/thera/resources/customtheratemplates/index.js +0 -17
  236. package/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/index.d.ts +0 -1
  237. package/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/index.js +0 -17
  238. package/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/CreateTemplateRequest.d.ts +0 -15
  239. package/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/CreateTemplateRequest.js +0 -36
  240. package/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/CreateTemplateResponse.d.ts +0 -13
  241. package/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/CreateTemplateResponse.js +0 -34
  242. package/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/CreateTemplateSessionResponse.d.ts +0 -13
  243. package/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/CreateTemplateSessionResponse.js +0 -34
  244. package/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/FieldType.d.ts +0 -10
  245. package/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/FieldType.js +0 -31
  246. package/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/Template.d.ts +0 -20
  247. package/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/Template.js +0 -41
  248. package/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/TemplateListResponse.d.ts +0 -13
  249. package/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/TemplateListResponse.js +0 -34
  250. package/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/index.d.ts +0 -6
  251. package/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/customtheratemplatesApi/types/index.js +0 -22
  252. package/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/index.d.ts +0 -2
  253. package/serialization/resources/api/resources/thera/resources/customtheratemplates/resources/index.js +0 -31
@@ -1,374 +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.CustomtheradocumentsApi = 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 CustomtheradocumentsApi {
47
- constructor(_options) {
48
- this._options = _options;
49
- }
50
- /**
51
- * Create a new document from a template
52
- *
53
- * @param {string} companyId
54
- * @param {TheraApi.api.thera.customtheradocuments.CreateDocumentRequest} request
55
- * @param {CustomtheradocumentsApi.RequestOptions} requestOptions - Request-specific configuration.
56
- *
57
- * @example
58
- * await client.api.thera.customtheradocuments.customtheradocumentsApi.createDocument("string", {
59
- * templateId: "string",
60
- * name: "string",
61
- * fields: {
62
- * "string": "string"
63
- * }
64
- * })
65
- */
66
- createDocument(companyId, request, requestOptions) {
67
- return __awaiter(this, void 0, void 0, function* () {
68
- const _response = yield core.fetcher({
69
- url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `/companies/${encodeURIComponent(companyId)}/documents/`),
70
- method: "POST",
71
- headers: {
72
- Authorization: yield this._getAuthorizationHeader(),
73
- "X-Fern-Language": "JavaScript",
74
- "X-Fern-SDK-Name": "@thera-hr/api-sdk",
75
- "X-Fern-SDK-Version": "0.0.1-prerelease2624-dev-2",
76
- "X-Fern-Runtime": core.RUNTIME.type,
77
- "X-Fern-Runtime-Version": core.RUNTIME.version,
78
- },
79
- contentType: "application/json",
80
- body: yield serializers.api.thera.customtheradocuments.CreateDocumentRequest.jsonOrThrow(request, {
81
- unrecognizedObjectKeys: "strip",
82
- }),
83
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
84
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
85
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
86
- });
87
- if (_response.ok) {
88
- return yield serializers.api.thera.customtheradocuments.CustomTheraDocument.parseOrThrow(_response.body, {
89
- unrecognizedObjectKeys: "passthrough",
90
- allowUnrecognizedUnionMembers: true,
91
- allowUnrecognizedEnumValues: true,
92
- skipValidation: true,
93
- breadcrumbsPrefix: ["response"],
94
- });
95
- }
96
- if (_response.error.reason === "status-code") {
97
- throw new errors.TheraApiError({
98
- statusCode: _response.error.statusCode,
99
- body: _response.error.body,
100
- });
101
- }
102
- switch (_response.error.reason) {
103
- case "non-json":
104
- throw new errors.TheraApiError({
105
- statusCode: _response.error.statusCode,
106
- body: _response.error.rawBody,
107
- });
108
- case "timeout":
109
- throw new errors.TheraApiTimeoutError();
110
- case "unknown":
111
- throw new errors.TheraApiError({
112
- message: _response.error.errorMessage,
113
- });
114
- }
115
- });
116
- }
117
- /**
118
- * Get a specific document details
119
- *
120
- * @param {string} companyId
121
- * @param {string} documentId
122
- * @param {CustomtheradocumentsApi.RequestOptions} requestOptions - Request-specific configuration.
123
- *
124
- * @example
125
- * await client.api.thera.customtheradocuments.customtheradocumentsApi.getDocument("string", "string")
126
- */
127
- getDocument(companyId, documentId, requestOptions) {
128
- return __awaiter(this, void 0, void 0, function* () {
129
- const _response = yield core.fetcher({
130
- url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `/companies/${encodeURIComponent(companyId)}/documents/${encodeURIComponent(documentId)}`),
131
- method: "GET",
132
- headers: {
133
- Authorization: yield this._getAuthorizationHeader(),
134
- "X-Fern-Language": "JavaScript",
135
- "X-Fern-SDK-Name": "@thera-hr/api-sdk",
136
- "X-Fern-SDK-Version": "0.0.1-prerelease2624-dev-2",
137
- "X-Fern-Runtime": core.RUNTIME.type,
138
- "X-Fern-Runtime-Version": core.RUNTIME.version,
139
- },
140
- contentType: "application/json",
141
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
142
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
143
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
144
- });
145
- if (_response.ok) {
146
- return yield serializers.api.thera.customtheradocuments.CustomTheraDocument.parseOrThrow(_response.body, {
147
- unrecognizedObjectKeys: "passthrough",
148
- allowUnrecognizedUnionMembers: true,
149
- allowUnrecognizedEnumValues: true,
150
- skipValidation: true,
151
- breadcrumbsPrefix: ["response"],
152
- });
153
- }
154
- if (_response.error.reason === "status-code") {
155
- throw new errors.TheraApiError({
156
- statusCode: _response.error.statusCode,
157
- body: _response.error.body,
158
- });
159
- }
160
- switch (_response.error.reason) {
161
- case "non-json":
162
- throw new errors.TheraApiError({
163
- statusCode: _response.error.statusCode,
164
- body: _response.error.rawBody,
165
- });
166
- case "timeout":
167
- throw new errors.TheraApiTimeoutError();
168
- case "unknown":
169
- throw new errors.TheraApiError({
170
- message: _response.error.errorMessage,
171
- });
172
- }
173
- });
174
- }
175
- /**
176
- * Update document details
177
- *
178
- * @param {string} companyId
179
- * @param {string} documentId
180
- * @param {TheraApi.api.thera.customtheradocuments.UpdateDocumentRequest} request
181
- * @param {CustomtheradocumentsApi.RequestOptions} requestOptions - Request-specific configuration.
182
- *
183
- * @example
184
- * await client.api.thera.customtheradocuments.customtheradocumentsApi.updateDocument("string", "string", {
185
- * name: "string",
186
- * fields: {
187
- * "string": "string"
188
- * }
189
- * })
190
- */
191
- updateDocument(companyId, documentId, request, requestOptions) {
192
- return __awaiter(this, void 0, void 0, function* () {
193
- const _response = yield core.fetcher({
194
- url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `/companies/${encodeURIComponent(companyId)}/documents/${encodeURIComponent(documentId)}`),
195
- method: "PUT",
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-prerelease2624-dev-2",
201
- "X-Fern-Runtime": core.RUNTIME.type,
202
- "X-Fern-Runtime-Version": core.RUNTIME.version,
203
- },
204
- contentType: "application/json",
205
- body: yield serializers.api.thera.customtheradocuments.UpdateDocumentRequest.jsonOrThrow(request, {
206
- unrecognizedObjectKeys: "strip",
207
- }),
208
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
209
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
210
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
211
- });
212
- if (_response.ok) {
213
- return yield serializers.api.thera.customtheradocuments.CustomTheraDocument.parseOrThrow(_response.body, {
214
- unrecognizedObjectKeys: "passthrough",
215
- allowUnrecognizedUnionMembers: true,
216
- allowUnrecognizedEnumValues: true,
217
- skipValidation: true,
218
- breadcrumbsPrefix: ["response"],
219
- });
220
- }
221
- if (_response.error.reason === "status-code") {
222
- throw new errors.TheraApiError({
223
- statusCode: _response.error.statusCode,
224
- body: _response.error.body,
225
- });
226
- }
227
- switch (_response.error.reason) {
228
- case "non-json":
229
- throw new errors.TheraApiError({
230
- statusCode: _response.error.statusCode,
231
- body: _response.error.rawBody,
232
- });
233
- case "timeout":
234
- throw new errors.TheraApiTimeoutError();
235
- case "unknown":
236
- throw new errors.TheraApiError({
237
- message: _response.error.errorMessage,
238
- });
239
- }
240
- });
241
- }
242
- /**
243
- * List all documents for a company
244
- *
245
- * @param {string} companyId
246
- * @param {TheraApi.api.thera.customtheradocuments.ListDocumentsRequest} request
247
- * @param {CustomtheradocumentsApi.RequestOptions} requestOptions - Request-specific configuration.
248
- *
249
- * @example
250
- * await client.api.thera.customtheradocuments.customtheradocumentsApi.listDocuments("string", {
251
- * status: TheraApi.api.thera.customtheradocuments.DocumentStatus.Draft,
252
- * templateId: "string"
253
- * })
254
- */
255
- listDocuments(companyId, request = {}, requestOptions) {
256
- return __awaiter(this, void 0, void 0, function* () {
257
- const { status, templateId } = request;
258
- const _queryParams = {};
259
- if (status != null) {
260
- _queryParams["status"] = status;
261
- }
262
- if (templateId != null) {
263
- _queryParams["templateId"] = templateId;
264
- }
265
- const _response = yield core.fetcher({
266
- url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `/companies/${encodeURIComponent(companyId)}/documents/`),
267
- method: "GET",
268
- headers: {
269
- Authorization: yield this._getAuthorizationHeader(),
270
- "X-Fern-Language": "JavaScript",
271
- "X-Fern-SDK-Name": "@thera-hr/api-sdk",
272
- "X-Fern-SDK-Version": "0.0.1-prerelease2624-dev-2",
273
- "X-Fern-Runtime": core.RUNTIME.type,
274
- "X-Fern-Runtime-Version": core.RUNTIME.version,
275
- },
276
- contentType: "application/json",
277
- queryParameters: _queryParams,
278
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
279
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
280
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
281
- });
282
- if (_response.ok) {
283
- return yield serializers.api.thera.customtheradocuments.DocumentListResponse.parseOrThrow(_response.body, {
284
- unrecognizedObjectKeys: "passthrough",
285
- allowUnrecognizedUnionMembers: true,
286
- allowUnrecognizedEnumValues: true,
287
- skipValidation: true,
288
- breadcrumbsPrefix: ["response"],
289
- });
290
- }
291
- if (_response.error.reason === "status-code") {
292
- throw new errors.TheraApiError({
293
- statusCode: _response.error.statusCode,
294
- body: _response.error.body,
295
- });
296
- }
297
- switch (_response.error.reason) {
298
- case "non-json":
299
- throw new errors.TheraApiError({
300
- statusCode: _response.error.statusCode,
301
- body: _response.error.rawBody,
302
- });
303
- case "timeout":
304
- throw new errors.TheraApiTimeoutError();
305
- case "unknown":
306
- throw new errors.TheraApiError({
307
- message: _response.error.errorMessage,
308
- });
309
- }
310
- });
311
- }
312
- /**
313
- * Delete a document
314
- *
315
- * @param {string} companyId
316
- * @param {string} documentId
317
- * @param {CustomtheradocumentsApi.RequestOptions} requestOptions - Request-specific configuration.
318
- *
319
- * @example
320
- * await client.api.thera.customtheradocuments.customtheradocumentsApi.deleteDocument("string", "string")
321
- */
322
- deleteDocument(companyId, documentId, requestOptions) {
323
- return __awaiter(this, void 0, void 0, function* () {
324
- const _response = yield core.fetcher({
325
- url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `/companies/${encodeURIComponent(companyId)}/documents/${encodeURIComponent(documentId)}`),
326
- method: "DELETE",
327
- headers: {
328
- Authorization: yield this._getAuthorizationHeader(),
329
- "X-Fern-Language": "JavaScript",
330
- "X-Fern-SDK-Name": "@thera-hr/api-sdk",
331
- "X-Fern-SDK-Version": "0.0.1-prerelease2624-dev-2",
332
- "X-Fern-Runtime": core.RUNTIME.type,
333
- "X-Fern-Runtime-Version": core.RUNTIME.version,
334
- },
335
- contentType: "application/json",
336
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
337
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
338
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
339
- });
340
- if (_response.ok) {
341
- return;
342
- }
343
- if (_response.error.reason === "status-code") {
344
- throw new errors.TheraApiError({
345
- statusCode: _response.error.statusCode,
346
- body: _response.error.body,
347
- });
348
- }
349
- switch (_response.error.reason) {
350
- case "non-json":
351
- throw new errors.TheraApiError({
352
- statusCode: _response.error.statusCode,
353
- body: _response.error.rawBody,
354
- });
355
- case "timeout":
356
- throw new errors.TheraApiTimeoutError();
357
- case "unknown":
358
- throw new errors.TheraApiError({
359
- message: _response.error.errorMessage,
360
- });
361
- }
362
- });
363
- }
364
- _getAuthorizationHeader() {
365
- return __awaiter(this, void 0, void 0, function* () {
366
- const bearer = yield core.Supplier.get(this._options.token);
367
- if (bearer != null) {
368
- return `Bearer ${bearer}`;
369
- }
370
- return undefined;
371
- });
372
- }
373
- }
374
- exports.CustomtheradocumentsApi = CustomtheradocumentsApi;
@@ -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,15 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as TheraApi from "../../../../../../../../../../index";
5
- /**
6
- * @example
7
- * {
8
- * status: TheraApi.api.thera.customtheradocuments.DocumentStatus.Draft,
9
- * templateId: "string"
10
- * }
11
- */
12
- export interface ListDocumentsRequest {
13
- status?: TheraApi.api.thera.customtheradocuments.DocumentStatus;
14
- templateId?: string;
15
- }
@@ -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 ListDocumentsRequest } from "./ListDocumentsRequest";
@@ -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,8 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface CreateDocumentRequest {
5
- templateId: string;
6
- name: string;
7
- fields: Record<string, string>;
8
- }
@@ -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,19 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as TheraApi from "../../../../../../../../../index";
5
- export interface CustomTheraDocument {
6
- id: string;
7
- companyId: string;
8
- templateId?: string;
9
- name: string;
10
- status: TheraApi.api.thera.customtheradocuments.DocumentStatus;
11
- createdBy: string;
12
- createdAt: number;
13
- lastModified: number;
14
- pandaDocId: string;
15
- fields: Record<string, string>;
16
- version: string;
17
- signedUrl?: string;
18
- signedUrlExpiry?: number;
19
- }
@@ -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
- import * as TheraApi from "../../../../../../../../../index";
5
- export interface DocumentListResponse {
6
- documents: TheraApi.api.thera.customtheradocuments.CustomTheraDocument[];
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,11 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export declare type DocumentStatus = "DRAFT" | "PENDING" | "COMPLETED" | "REJECTED" | "EXPIRED";
5
- export declare const DocumentStatus: {
6
- readonly Draft: "DRAFT";
7
- readonly Pending: "PENDING";
8
- readonly Completed: "COMPLETED";
9
- readonly Rejected: "REJECTED";
10
- readonly Expired: "EXPIRED";
11
- };
@@ -1,13 +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.DocumentStatus = void 0;
7
- exports.DocumentStatus = {
8
- Draft: "DRAFT",
9
- Pending: "PENDING",
10
- Completed: "COMPLETED",
11
- Rejected: "REJECTED",
12
- Expired: "EXPIRED",
13
- };
@@ -1,7 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface UpdateDocumentRequest {
5
- name?: string;
6
- fields?: Record<string, 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,5 +0,0 @@
1
- export * from "./CustomTheraDocument";
2
- export * from "./DocumentStatus";
3
- export * from "./CreateDocumentRequest";
4
- export * from "./DocumentListResponse";
5
- export * from "./UpdateDocumentRequest";
@@ -1,21 +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("./CustomTheraDocument"), exports);
18
- __exportStar(require("./DocumentStatus"), exports);
19
- __exportStar(require("./CreateDocumentRequest"), exports);
20
- __exportStar(require("./DocumentListResponse"), exports);
21
- __exportStar(require("./UpdateDocumentRequest"), exports);
@@ -1,3 +0,0 @@
1
- export * as customtheradocumentsApi from "./customtheradocumentsApi";
2
- export * from "./customtheradocumentsApi/types";
3
- export * from "./customtheradocumentsApi/client/requests";
@@ -1,32 +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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
26
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
27
- };
28
- Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.customtheradocumentsApi = void 0;
30
- exports.customtheradocumentsApi = __importStar(require("./customtheradocumentsApi"));
31
- __exportStar(require("./customtheradocumentsApi/types"), exports);
32
- __exportStar(require("./customtheradocumentsApi/client/requests"), exports);
@@ -1,22 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as core from "../../../../../../../../core";
5
- import { CustomtheratemplatesApi } from "../resources/customtheratemplatesApi/client/Client";
6
- export declare namespace Customtheratemplates {
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 Customtheratemplates {
18
- protected readonly _options: Customtheratemplates.Options;
19
- constructor(_options: Customtheratemplates.Options);
20
- protected _customtheratemplatesApi: CustomtheratemplatesApi | undefined;
21
- get customtheratemplatesApi(): CustomtheratemplatesApi;
22
- }