@greensecurity/javascript-sdk 0.40.8-beta.3 → 0.40.8-beta.31

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 (365) hide show
  1. package/.devcontainer/README.md +35 -0
  2. package/README.md +14 -5
  3. package/dist/commonjs/__tests__/alerts.test.d.ts +2 -0
  4. package/dist/commonjs/__tests__/alerts.test.d.ts.map +1 -0
  5. package/dist/commonjs/__tests__/alerts.test.js +51 -0
  6. package/dist/commonjs/__tests__/alerts.test.js.map +1 -0
  7. package/dist/commonjs/__tests__/vendors.test.js +25 -0
  8. package/dist/commonjs/__tests__/vendors.test.js.map +1 -1
  9. package/dist/commonjs/__tests__/zones.test.js +3 -2
  10. package/dist/commonjs/__tests__/zones.test.js.map +1 -1
  11. package/dist/commonjs/admin-funcs/registerCompanies.d.ts +16 -0
  12. package/dist/commonjs/admin-funcs/registerCompanies.d.ts.map +1 -0
  13. package/dist/commonjs/admin-funcs/registerCompanies.js +9 -0
  14. package/dist/commonjs/admin-funcs/registerCompanies.js.map +1 -0
  15. package/dist/commonjs/admin-funcs/registerEmail.d.ts +9 -0
  16. package/dist/commonjs/admin-funcs/registerEmail.d.ts.map +1 -0
  17. package/dist/commonjs/admin-funcs/registerEmail.js +9 -0
  18. package/dist/commonjs/admin-funcs/registerEmail.js.map +1 -0
  19. package/dist/commonjs/admin-funcs/registerGeneralInfo.d.ts +23 -0
  20. package/dist/commonjs/admin-funcs/registerGeneralInfo.d.ts.map +1 -0
  21. package/dist/commonjs/admin-funcs/registerGeneralInfo.js +9 -0
  22. package/dist/commonjs/admin-funcs/registerGeneralInfo.js.map +1 -0
  23. package/dist/commonjs/admin-funcs/registerPassword.d.ts +7 -0
  24. package/dist/commonjs/admin-funcs/registerPassword.d.ts.map +1 -0
  25. package/dist/commonjs/admin-funcs/registerPassword.js +9 -0
  26. package/dist/commonjs/admin-funcs/registerPassword.js.map +1 -0
  27. package/dist/commonjs/funcs/alertsListAlerts.d.ts +21 -0
  28. package/dist/commonjs/funcs/alertsListAlerts.d.ts.map +1 -0
  29. package/dist/commonjs/funcs/alertsListAlerts.js +154 -0
  30. package/dist/commonjs/funcs/alertsListAlerts.js.map +1 -0
  31. package/dist/commonjs/funcs/alertsUpdateUserAlerts.d.ts +18 -0
  32. package/dist/commonjs/funcs/alertsUpdateUserAlerts.d.ts.map +1 -0
  33. package/dist/commonjs/funcs/alertsUpdateUserAlerts.js +117 -0
  34. package/dist/commonjs/funcs/alertsUpdateUserAlerts.js.map +1 -0
  35. package/dist/commonjs/funcs/vendorsGetNextUnansweredScreeningQuestion.d.ts +18 -0
  36. package/dist/commonjs/funcs/vendorsGetNextUnansweredScreeningQuestion.d.ts.map +1 -0
  37. package/dist/commonjs/funcs/vendorsGetNextUnansweredScreeningQuestion.js +126 -0
  38. package/dist/commonjs/funcs/vendorsGetNextUnansweredScreeningQuestion.js.map +1 -0
  39. package/dist/commonjs/funcs/vendorsGetVendorsDetails.d.ts +1 -0
  40. package/dist/commonjs/funcs/vendorsGetVendorsDetails.d.ts.map +1 -1
  41. package/dist/commonjs/funcs/vendorsGetVendorsDetails.js +1 -0
  42. package/dist/commonjs/funcs/vendorsGetVendorsDetails.js.map +1 -1
  43. package/dist/commonjs/index.extras.d.ts +10 -0
  44. package/dist/commonjs/index.extras.d.ts.map +1 -1
  45. package/dist/commonjs/index.extras.js +10 -0
  46. package/dist/commonjs/index.extras.js.map +1 -1
  47. package/dist/commonjs/lib/config.d.ts +4 -4
  48. package/dist/commonjs/lib/config.js +4 -4
  49. package/dist/commonjs/lib/config.js.map +1 -1
  50. package/dist/commonjs/lib/url.js +1 -1
  51. package/dist/commonjs/lib/url.js.map +1 -1
  52. package/dist/commonjs/models/components/alert.d.ts +79 -0
  53. package/dist/commonjs/models/components/alert.d.ts.map +1 -0
  54. package/dist/commonjs/models/components/alert.js +123 -0
  55. package/dist/commonjs/models/components/alert.js.map +1 -0
  56. package/dist/commonjs/models/components/credential.d.ts +6 -4
  57. package/dist/commonjs/models/components/credential.d.ts.map +1 -1
  58. package/dist/commonjs/models/components/credential.js +8 -4
  59. package/dist/commonjs/models/components/credential.js.map +1 -1
  60. package/dist/commonjs/models/components/credentialstatus.d.ts +3 -0
  61. package/dist/commonjs/models/components/credentialstatus.d.ts.map +1 -1
  62. package/dist/commonjs/models/components/credentialstatus.js +1 -0
  63. package/dist/commonjs/models/components/credentialstatus.js.map +1 -1
  64. package/dist/commonjs/models/components/expand.d.ts +6 -0
  65. package/dist/commonjs/models/components/expand.d.ts.map +1 -1
  66. package/dist/commonjs/models/components/expand.js +2 -0
  67. package/dist/commonjs/models/components/expand.js.map +1 -1
  68. package/dist/commonjs/models/components/facilitycalendarsummary.d.ts +68 -0
  69. package/dist/commonjs/models/components/facilitycalendarsummary.d.ts.map +1 -0
  70. package/dist/commonjs/models/components/facilitycalendarsummary.js +130 -0
  71. package/dist/commonjs/models/components/facilitycalendarsummary.js.map +1 -0
  72. package/dist/commonjs/models/components/facilitysummary.d.ts +2 -0
  73. package/dist/commonjs/models/components/facilitysummary.d.ts.map +1 -1
  74. package/dist/commonjs/models/components/facilitysummary.js +4 -0
  75. package/dist/commonjs/models/components/facilitysummary.js.map +1 -1
  76. package/dist/commonjs/models/components/index.d.ts +4 -0
  77. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  78. package/dist/commonjs/models/components/index.js +4 -0
  79. package/dist/commonjs/models/components/index.js.map +1 -1
  80. package/dist/commonjs/models/components/screeninganswer.d.ts +112 -0
  81. package/dist/commonjs/models/components/screeninganswer.d.ts.map +1 -0
  82. package/dist/commonjs/models/components/screeninganswer.js +138 -0
  83. package/dist/commonjs/models/components/screeninganswer.js.map +1 -0
  84. package/dist/commonjs/models/components/screeningquestion.d.ts +98 -0
  85. package/dist/commonjs/models/components/screeningquestion.d.ts.map +1 -0
  86. package/dist/commonjs/models/components/screeningquestion.js +125 -0
  87. package/dist/commonjs/models/components/screeningquestion.js.map +1 -0
  88. package/dist/commonjs/models/components/userlocation.d.ts +1 -5
  89. package/dist/commonjs/models/components/userlocation.d.ts.map +1 -1
  90. package/dist/commonjs/models/components/userlocation.js +2 -3
  91. package/dist/commonjs/models/components/userlocation.js.map +1 -1
  92. package/dist/commonjs/models/components/vendor.d.ts +7 -2
  93. package/dist/commonjs/models/components/vendor.d.ts.map +1 -1
  94. package/dist/commonjs/models/components/vendor.js +11 -2
  95. package/dist/commonjs/models/components/vendor.js.map +1 -1
  96. package/dist/commonjs/models/errors/index.d.ts +1 -0
  97. package/dist/commonjs/models/errors/index.d.ts.map +1 -1
  98. package/dist/commonjs/models/errors/index.js +1 -0
  99. package/dist/commonjs/models/errors/index.js.map +1 -1
  100. package/dist/commonjs/models/operations/getnextunansweredscreeningquestion.d.ts +70 -0
  101. package/dist/commonjs/models/operations/getnextunansweredscreeningquestion.d.ts.map +1 -0
  102. package/dist/commonjs/models/operations/getnextunansweredscreeningquestion.js +122 -0
  103. package/dist/commonjs/models/operations/getnextunansweredscreeningquestion.js.map +1 -0
  104. package/dist/commonjs/models/operations/index.d.ts +3 -0
  105. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  106. package/dist/commonjs/models/operations/index.js +3 -0
  107. package/dist/commonjs/models/operations/index.js.map +1 -1
  108. package/dist/commonjs/models/operations/listalerts.d.ts +106 -0
  109. package/dist/commonjs/models/operations/listalerts.d.ts.map +1 -0
  110. package/dist/commonjs/models/operations/listalerts.js +149 -0
  111. package/dist/commonjs/models/operations/listalerts.js.map +1 -0
  112. package/dist/commonjs/models/operations/listvendorcredentials.d.ts +4 -4
  113. package/dist/commonjs/models/operations/listvendorcredentials.d.ts.map +1 -1
  114. package/dist/commonjs/models/operations/listvendorcredentials.js +4 -4
  115. package/dist/commonjs/models/operations/listvendorcredentials.js.map +1 -1
  116. package/dist/commonjs/models/operations/updateuseralerts.d.ts +57 -0
  117. package/dist/commonjs/models/operations/updateuseralerts.d.ts.map +1 -0
  118. package/dist/commonjs/models/operations/updateuseralerts.js +105 -0
  119. package/dist/commonjs/models/operations/updateuseralerts.js.map +1 -0
  120. package/dist/commonjs/react-query/alertsListAlerts.d.ts +75 -0
  121. package/dist/commonjs/react-query/alertsListAlerts.d.ts.map +1 -0
  122. package/dist/commonjs/react-query/alertsListAlerts.js +150 -0
  123. package/dist/commonjs/react-query/alertsListAlerts.js.map +1 -0
  124. package/dist/commonjs/react-query/alertsUpdateUserAlerts.d.ts +23 -0
  125. package/dist/commonjs/react-query/alertsUpdateUserAlerts.d.ts.map +1 -0
  126. package/dist/commonjs/react-query/alertsUpdateUserAlerts.js +47 -0
  127. package/dist/commonjs/react-query/alertsUpdateUserAlerts.js.map +1 -0
  128. package/dist/commonjs/react-query/index.d.ts +3 -0
  129. package/dist/commonjs/react-query/index.d.ts.map +1 -1
  130. package/dist/commonjs/react-query/index.js +3 -0
  131. package/dist/commonjs/react-query/index.js.map +1 -1
  132. package/dist/commonjs/react-query/vendorsGetNextUnansweredScreeningQuestion.d.ts +43 -0
  133. package/dist/commonjs/react-query/vendorsGetNextUnansweredScreeningQuestion.d.ts.map +1 -0
  134. package/dist/commonjs/react-query/vendorsGetNextUnansweredScreeningQuestion.js +97 -0
  135. package/dist/commonjs/react-query/vendorsGetNextUnansweredScreeningQuestion.js.map +1 -0
  136. package/dist/commonjs/react-query/vendorsGetVendorsDetails.d.ts +2 -0
  137. package/dist/commonjs/react-query/vendorsGetVendorsDetails.d.ts.map +1 -1
  138. package/dist/commonjs/react-query/vendorsGetVendorsDetails.js +2 -0
  139. package/dist/commonjs/react-query/vendorsGetVendorsDetails.js.map +1 -1
  140. package/dist/commonjs/react-query/vendorsListVendorCredentials.d.ts +3 -3
  141. package/dist/commonjs/react-query/vendorsListVendorCredentials.d.ts.map +1 -1
  142. package/dist/commonjs/sdk/alerts.d.ts +22 -0
  143. package/dist/commonjs/sdk/alerts.d.ts.map +1 -0
  144. package/dist/commonjs/sdk/alerts.js +33 -0
  145. package/dist/commonjs/sdk/alerts.js.map +1 -0
  146. package/dist/commonjs/sdk/sdk.d.ts +3 -0
  147. package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
  148. package/dist/commonjs/sdk/sdk.js +4 -0
  149. package/dist/commonjs/sdk/sdk.js.map +1 -1
  150. package/dist/commonjs/sdk/vendors.d.ts +8 -0
  151. package/dist/commonjs/sdk/vendors.d.ts.map +1 -1
  152. package/dist/commonjs/sdk/vendors.js +11 -0
  153. package/dist/commonjs/sdk/vendors.js.map +1 -1
  154. package/dist/esm/__tests__/alerts.test.d.ts +2 -0
  155. package/dist/esm/__tests__/alerts.test.d.ts.map +1 -0
  156. package/dist/esm/__tests__/alerts.test.js +49 -0
  157. package/dist/esm/__tests__/alerts.test.js.map +1 -0
  158. package/dist/esm/__tests__/vendors.test.js +25 -0
  159. package/dist/esm/__tests__/vendors.test.js.map +1 -1
  160. package/dist/esm/__tests__/zones.test.js +3 -2
  161. package/dist/esm/__tests__/zones.test.js.map +1 -1
  162. package/dist/esm/admin-funcs/registerCompanies.d.ts +16 -0
  163. package/dist/esm/admin-funcs/registerCompanies.d.ts.map +1 -0
  164. package/dist/esm/admin-funcs/registerCompanies.js +6 -0
  165. package/dist/esm/admin-funcs/registerCompanies.js.map +1 -0
  166. package/dist/esm/admin-funcs/registerEmail.d.ts +9 -0
  167. package/dist/esm/admin-funcs/registerEmail.d.ts.map +1 -0
  168. package/dist/esm/admin-funcs/registerEmail.js +6 -0
  169. package/dist/esm/admin-funcs/registerEmail.js.map +1 -0
  170. package/dist/esm/admin-funcs/registerGeneralInfo.d.ts +23 -0
  171. package/dist/esm/admin-funcs/registerGeneralInfo.d.ts.map +1 -0
  172. package/dist/esm/admin-funcs/registerGeneralInfo.js +6 -0
  173. package/dist/esm/admin-funcs/registerGeneralInfo.js.map +1 -0
  174. package/dist/esm/admin-funcs/registerPassword.d.ts +7 -0
  175. package/dist/esm/admin-funcs/registerPassword.d.ts.map +1 -0
  176. package/dist/esm/admin-funcs/registerPassword.js +6 -0
  177. package/dist/esm/admin-funcs/registerPassword.js.map +1 -0
  178. package/dist/esm/funcs/alertsListAlerts.d.ts +21 -0
  179. package/dist/esm/funcs/alertsListAlerts.d.ts.map +1 -0
  180. package/dist/esm/funcs/alertsListAlerts.js +118 -0
  181. package/dist/esm/funcs/alertsListAlerts.js.map +1 -0
  182. package/dist/esm/funcs/alertsUpdateUserAlerts.d.ts +18 -0
  183. package/dist/esm/funcs/alertsUpdateUserAlerts.d.ts.map +1 -0
  184. package/dist/esm/funcs/alertsUpdateUserAlerts.js +81 -0
  185. package/dist/esm/funcs/alertsUpdateUserAlerts.js.map +1 -0
  186. package/dist/esm/funcs/vendorsGetNextUnansweredScreeningQuestion.d.ts +18 -0
  187. package/dist/esm/funcs/vendorsGetNextUnansweredScreeningQuestion.d.ts.map +1 -0
  188. package/dist/esm/funcs/vendorsGetNextUnansweredScreeningQuestion.js +90 -0
  189. package/dist/esm/funcs/vendorsGetNextUnansweredScreeningQuestion.js.map +1 -0
  190. package/dist/esm/funcs/vendorsGetVendorsDetails.d.ts +1 -0
  191. package/dist/esm/funcs/vendorsGetVendorsDetails.d.ts.map +1 -1
  192. package/dist/esm/funcs/vendorsGetVendorsDetails.js +1 -0
  193. package/dist/esm/funcs/vendorsGetVendorsDetails.js.map +1 -1
  194. package/dist/esm/index.extras.d.ts +10 -0
  195. package/dist/esm/index.extras.d.ts.map +1 -1
  196. package/dist/esm/index.extras.js +10 -0
  197. package/dist/esm/index.extras.js.map +1 -1
  198. package/dist/esm/lib/config.d.ts +4 -4
  199. package/dist/esm/lib/config.js +4 -4
  200. package/dist/esm/lib/config.js.map +1 -1
  201. package/dist/esm/lib/url.js +1 -1
  202. package/dist/esm/lib/url.js.map +1 -1
  203. package/dist/esm/models/components/alert.d.ts +79 -0
  204. package/dist/esm/models/components/alert.d.ts.map +1 -0
  205. package/dist/esm/models/components/alert.js +85 -0
  206. package/dist/esm/models/components/alert.js.map +1 -0
  207. package/dist/esm/models/components/credential.d.ts +6 -4
  208. package/dist/esm/models/components/credential.d.ts.map +1 -1
  209. package/dist/esm/models/components/credential.js +8 -4
  210. package/dist/esm/models/components/credential.js.map +1 -1
  211. package/dist/esm/models/components/credentialstatus.d.ts +3 -0
  212. package/dist/esm/models/components/credentialstatus.d.ts.map +1 -1
  213. package/dist/esm/models/components/credentialstatus.js +1 -0
  214. package/dist/esm/models/components/credentialstatus.js.map +1 -1
  215. package/dist/esm/models/components/expand.d.ts +6 -0
  216. package/dist/esm/models/components/expand.d.ts.map +1 -1
  217. package/dist/esm/models/components/expand.js +2 -0
  218. package/dist/esm/models/components/expand.js.map +1 -1
  219. package/dist/esm/models/components/facilitycalendarsummary.d.ts +68 -0
  220. package/dist/esm/models/components/facilitycalendarsummary.d.ts.map +1 -0
  221. package/dist/esm/models/components/facilitycalendarsummary.js +90 -0
  222. package/dist/esm/models/components/facilitycalendarsummary.js.map +1 -0
  223. package/dist/esm/models/components/facilitysummary.d.ts +2 -0
  224. package/dist/esm/models/components/facilitysummary.d.ts.map +1 -1
  225. package/dist/esm/models/components/facilitysummary.js +4 -0
  226. package/dist/esm/models/components/facilitysummary.js.map +1 -1
  227. package/dist/esm/models/components/index.d.ts +4 -0
  228. package/dist/esm/models/components/index.d.ts.map +1 -1
  229. package/dist/esm/models/components/index.js +4 -0
  230. package/dist/esm/models/components/index.js.map +1 -1
  231. package/dist/esm/models/components/screeninganswer.d.ts +112 -0
  232. package/dist/esm/models/components/screeninganswer.d.ts.map +1 -0
  233. package/dist/esm/models/components/screeninganswer.js +100 -0
  234. package/dist/esm/models/components/screeninganswer.js.map +1 -0
  235. package/dist/esm/models/components/screeningquestion.d.ts +98 -0
  236. package/dist/esm/models/components/screeningquestion.d.ts.map +1 -0
  237. package/dist/esm/models/components/screeningquestion.js +87 -0
  238. package/dist/esm/models/components/screeningquestion.js.map +1 -0
  239. package/dist/esm/models/components/userlocation.d.ts +1 -5
  240. package/dist/esm/models/components/userlocation.d.ts.map +1 -1
  241. package/dist/esm/models/components/userlocation.js +2 -3
  242. package/dist/esm/models/components/userlocation.js.map +1 -1
  243. package/dist/esm/models/components/vendor.d.ts +7 -2
  244. package/dist/esm/models/components/vendor.d.ts.map +1 -1
  245. package/dist/esm/models/components/vendor.js +11 -2
  246. package/dist/esm/models/components/vendor.js.map +1 -1
  247. package/dist/esm/models/errors/index.d.ts +1 -0
  248. package/dist/esm/models/errors/index.d.ts.map +1 -1
  249. package/dist/esm/models/errors/index.js +1 -0
  250. package/dist/esm/models/errors/index.js.map +1 -1
  251. package/dist/esm/models/operations/getnextunansweredscreeningquestion.d.ts +70 -0
  252. package/dist/esm/models/operations/getnextunansweredscreeningquestion.d.ts.map +1 -0
  253. package/dist/esm/models/operations/getnextunansweredscreeningquestion.js +82 -0
  254. package/dist/esm/models/operations/getnextunansweredscreeningquestion.js.map +1 -0
  255. package/dist/esm/models/operations/index.d.ts +3 -0
  256. package/dist/esm/models/operations/index.d.ts.map +1 -1
  257. package/dist/esm/models/operations/index.js +3 -0
  258. package/dist/esm/models/operations/index.js.map +1 -1
  259. package/dist/esm/models/operations/listalerts.d.ts +106 -0
  260. package/dist/esm/models/operations/listalerts.d.ts.map +1 -0
  261. package/dist/esm/models/operations/listalerts.js +107 -0
  262. package/dist/esm/models/operations/listalerts.js.map +1 -0
  263. package/dist/esm/models/operations/listvendorcredentials.d.ts +4 -4
  264. package/dist/esm/models/operations/listvendorcredentials.d.ts.map +1 -1
  265. package/dist/esm/models/operations/listvendorcredentials.js +4 -4
  266. package/dist/esm/models/operations/listvendorcredentials.js.map +1 -1
  267. package/dist/esm/models/operations/updateuseralerts.d.ts +57 -0
  268. package/dist/esm/models/operations/updateuseralerts.d.ts.map +1 -0
  269. package/dist/esm/models/operations/updateuseralerts.js +65 -0
  270. package/dist/esm/models/operations/updateuseralerts.js.map +1 -0
  271. package/dist/esm/react-query/alertsListAlerts.d.ts +75 -0
  272. package/dist/esm/react-query/alertsListAlerts.d.ts.map +1 -0
  273. package/dist/esm/react-query/alertsListAlerts.js +137 -0
  274. package/dist/esm/react-query/alertsListAlerts.js.map +1 -0
  275. package/dist/esm/react-query/alertsUpdateUserAlerts.d.ts +23 -0
  276. package/dist/esm/react-query/alertsUpdateUserAlerts.d.ts.map +1 -0
  277. package/dist/esm/react-query/alertsUpdateUserAlerts.js +42 -0
  278. package/dist/esm/react-query/alertsUpdateUserAlerts.js.map +1 -0
  279. package/dist/esm/react-query/index.d.ts +3 -0
  280. package/dist/esm/react-query/index.d.ts.map +1 -1
  281. package/dist/esm/react-query/index.js +3 -0
  282. package/dist/esm/react-query/index.js.map +1 -1
  283. package/dist/esm/react-query/vendorsGetNextUnansweredScreeningQuestion.d.ts +43 -0
  284. package/dist/esm/react-query/vendorsGetNextUnansweredScreeningQuestion.d.ts.map +1 -0
  285. package/dist/esm/react-query/vendorsGetNextUnansweredScreeningQuestion.js +87 -0
  286. package/dist/esm/react-query/vendorsGetNextUnansweredScreeningQuestion.js.map +1 -0
  287. package/dist/esm/react-query/vendorsGetVendorsDetails.d.ts +2 -0
  288. package/dist/esm/react-query/vendorsGetVendorsDetails.d.ts.map +1 -1
  289. package/dist/esm/react-query/vendorsGetVendorsDetails.js +2 -0
  290. package/dist/esm/react-query/vendorsGetVendorsDetails.js.map +1 -1
  291. package/dist/esm/react-query/vendorsListVendorCredentials.d.ts +3 -3
  292. package/dist/esm/react-query/vendorsListVendorCredentials.d.ts.map +1 -1
  293. package/dist/esm/sdk/alerts.d.ts +22 -0
  294. package/dist/esm/sdk/alerts.d.ts.map +1 -0
  295. package/dist/esm/sdk/alerts.js +29 -0
  296. package/dist/esm/sdk/alerts.js.map +1 -0
  297. package/dist/esm/sdk/sdk.d.ts +3 -0
  298. package/dist/esm/sdk/sdk.d.ts.map +1 -1
  299. package/dist/esm/sdk/sdk.js +4 -0
  300. package/dist/esm/sdk/sdk.js.map +1 -1
  301. package/dist/esm/sdk/vendors.d.ts +8 -0
  302. package/dist/esm/sdk/vendors.d.ts.map +1 -1
  303. package/dist/esm/sdk/vendors.js +11 -0
  304. package/dist/esm/sdk/vendors.js.map +1 -1
  305. package/docs/sdks/alerts/README.md +219 -0
  306. package/docs/sdks/companies/README.md +126 -0
  307. package/docs/sdks/datarequests/README.md +302 -0
  308. package/docs/sdks/events/README.md +1126 -0
  309. package/docs/sdks/fhirconfigs/README.md +551 -0
  310. package/docs/sdks/greensecurity/README.md +14 -0
  311. package/docs/sdks/invoices/README.md +324 -0
  312. package/docs/sdks/mobiledevices/README.md +100 -0
  313. package/docs/sdks/organizations/README.md +508 -0
  314. package/docs/sdks/supportarticles/README.md +249 -0
  315. package/docs/sdks/systems/README.md +136 -0
  316. package/docs/sdks/users/README.md +831 -0
  317. package/docs/sdks/vendors/README.md +4904 -0
  318. package/docs/sdks/vendorscans/README.md +104 -0
  319. package/docs/sdks/webhooks/README.md +352 -0
  320. package/docs/sdks/zones/README.md +344 -0
  321. package/examples/README.md +31 -0
  322. package/examples/package-lock.json +1 -1
  323. package/examples/vendorsCreateVendorRegistration.example.ts +1 -1
  324. package/jsr.json +1 -1
  325. package/package.json +1 -1
  326. package/src/__tests__/alerts.test.ts +55 -0
  327. package/src/__tests__/vendors.test.ts +32 -0
  328. package/src/__tests__/zones.test.ts +3 -2
  329. package/src/admin-funcs/registerCompanies.ts +23 -0
  330. package/src/admin-funcs/registerEmail.ts +16 -0
  331. package/src/admin-funcs/registerGeneralInfo.ts +30 -0
  332. package/src/admin-funcs/registerPassword.ts +14 -0
  333. package/src/funcs/alertsListAlerts.ts +245 -0
  334. package/src/funcs/alertsUpdateUserAlerts.ts +170 -0
  335. package/src/funcs/vendorsGetNextUnansweredScreeningQuestion.ts +188 -0
  336. package/src/funcs/vendorsGetVendorsDetails.ts +1 -0
  337. package/src/index.extras.ts +14 -1
  338. package/src/lib/config.ts +4 -4
  339. package/src/lib/url.ts +1 -1
  340. package/src/models/components/alert.ts +141 -0
  341. package/src/models/components/credential.ts +19 -10
  342. package/src/models/components/credentialstatus.ts +1 -0
  343. package/src/models/components/expand.ts +2 -0
  344. package/src/models/components/facilitycalendarsummary.ts +188 -0
  345. package/src/models/components/facilitysummary.ts +6 -0
  346. package/src/models/components/index.ts +4 -0
  347. package/src/models/components/screeninganswer.ts +195 -0
  348. package/src/models/components/screeningquestion.ts +163 -0
  349. package/src/models/components/userlocation.ts +3 -7
  350. package/src/models/components/vendor.ts +25 -4
  351. package/src/models/errors/index.ts +1 -0
  352. package/src/models/operations/getnextunansweredscreeningquestion.ts +191 -0
  353. package/src/models/operations/index.ts +3 -0
  354. package/src/models/operations/listalerts.ts +234 -0
  355. package/src/models/operations/listvendorcredentials.ts +8 -10
  356. package/src/models/operations/updateuseralerts.ts +140 -0
  357. package/src/react-query/alertsListAlerts.ts +308 -0
  358. package/src/react-query/alertsUpdateUserAlerts.ts +89 -0
  359. package/src/react-query/index.ts +3 -0
  360. package/src/react-query/vendorsGetNextUnansweredScreeningQuestion.ts +190 -0
  361. package/src/react-query/vendorsGetVendorsDetails.ts +2 -0
  362. package/src/react-query/vendorsListVendorCredentials.ts +3 -3
  363. package/src/sdk/alerts.ts +46 -0
  364. package/src/sdk/sdk.ts +6 -0
  365. package/src/sdk/vendors.ts +19 -0
@@ -0,0 +1,551 @@
1
+ # FhirConfigs
2
+ (*fhirConfigs*)
3
+
4
+ ## Overview
5
+
6
+ FHIR Configurations for an Organization. These are restricted to Facility Users, System Users and Marketplace Apps with `fhir_config` permissions only.
7
+
8
+ ### Available Operations
9
+
10
+ * [listOfFhirConfigurations](#listoffhirconfigurations) - List of FHIR configurations
11
+ * [createAFhirConfig](#createafhirconfig) - Create a FHIR configuration
12
+ * [getFhirConfig](#getfhirconfig) - Get FHIR Configuration
13
+ * [updateFhirConfigById](#updatefhirconfigbyid) - Update any portion of a FHIR config by ID
14
+ * [deleteFhirConfigById](#deletefhirconfigbyid) - Delete a FHIR config by ID
15
+
16
+ ## listOfFhirConfigurations
17
+
18
+ List available FHIR configurations. This method requires the `fhir_config` / `view` permission.
19
+
20
+ ### Example Usage
21
+
22
+ <!-- UsageSnippet language="typescript" operationID="listOfFhirConfigurations" method="get" path="/fhir-configs" -->
23
+ ```typescript
24
+ import { GreenSecurity } from "@greensecurity/javascript-sdk";
25
+
26
+ const greenSecurity = new GreenSecurity({
27
+ security: {
28
+ token: process.env["GREEN_SECURITY_TOKEN"] ?? "",
29
+ },
30
+ });
31
+
32
+ async function run() {
33
+ const result = await greenSecurity.fhirConfigs.listOfFhirConfigurations({
34
+ sort: "job",
35
+ desc: true,
36
+ itemsPerPage: 25,
37
+ });
38
+
39
+ for await (const page of result) {
40
+ console.log(page);
41
+ }
42
+ }
43
+
44
+ run();
45
+ ```
46
+
47
+ ### Standalone function
48
+
49
+ The standalone function version of this method:
50
+
51
+ ```typescript
52
+ import { GreenSecurityCore } from "@greensecurity/javascript-sdk/core.js";
53
+ import { fhirConfigsListOfFhirConfigurations } from "@greensecurity/javascript-sdk/funcs/fhirConfigsListOfFhirConfigurations.js";
54
+
55
+ // Use `GreenSecurityCore` for best tree-shaking performance.
56
+ // You can create one instance of it to use across an application.
57
+ const greenSecurity = new GreenSecurityCore({
58
+ security: {
59
+ token: process.env["GREEN_SECURITY_TOKEN"] ?? "",
60
+ },
61
+ });
62
+
63
+ async function run() {
64
+ const res = await fhirConfigsListOfFhirConfigurations(greenSecurity, {
65
+ sort: "job",
66
+ desc: true,
67
+ itemsPerPage: 25,
68
+ });
69
+ if (res.ok) {
70
+ const { value: result } = res;
71
+ for await (const page of result) {
72
+ console.log(page);
73
+ }
74
+ } else {
75
+ console.log("fhirConfigsListOfFhirConfigurations failed:", res.error);
76
+ }
77
+ }
78
+
79
+ run();
80
+ ```
81
+
82
+ ### React hooks and utilities
83
+
84
+ This method can be used in React components through the following hooks and
85
+ associated utilities.
86
+
87
+ > Check out [this guide][hook-guide] for information about each of the utilities
88
+ > below and how to get started using React hooks.
89
+
90
+ [hook-guide]: ../../../REACT_QUERY.md
91
+
92
+ ```tsx
93
+ import {
94
+ // Query hooks for fetching data.
95
+ useFhirConfigsListOfFhirConfigurations,
96
+ useFhirConfigsListOfFhirConfigurationsSuspense,
97
+ // Query hooks suitable for building infinite scrolling or "load more" UIs.
98
+ useFhirConfigsListOfFhirConfigurationsInfinite,
99
+ useFhirConfigsListOfFhirConfigurationsInfiniteSuspense,
100
+
101
+ // Utility for prefetching data during server-side rendering and in React
102
+ // Server Components that will be immediately available to client components
103
+ // using the hooks.
104
+ prefetchFhirConfigsListOfFhirConfigurations,
105
+
106
+ // Utilities to invalidate the query cache for this query in response to
107
+ // mutations and other user actions.
108
+ invalidateFhirConfigsListOfFhirConfigurations,
109
+ invalidateAllFhirConfigsListOfFhirConfigurations,
110
+ } from "@greensecurity/javascript-sdk/react-query/fhirConfigsListOfFhirConfigurations.js";
111
+ ```
112
+
113
+ ### Parameters
114
+
115
+ | Parameter | Type | Required | Description |
116
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
117
+ | `request` | [operations.ListOfFhirConfigurationsRequest](../../models/operations/listoffhirconfigurationsrequest.md) | :heavy_check_mark: | The request object to use for the request. |
118
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
119
+ | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
120
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
121
+
122
+ ### Response
123
+
124
+ **Promise\<[operations.ListOfFhirConfigurationsResponse](../../models/operations/listoffhirconfigurationsresponse.md)\>**
125
+
126
+ ### Errors
127
+
128
+ | Error Type | Status Code | Content Type |
129
+ | ----------------------- | ----------------------- | ----------------------- |
130
+ | errors.ApiErrorResponse | 400, 401, 403 | application/json |
131
+ | errors.ApiErrorResponse | 500 | application/json |
132
+ | errors.APIError | 4XX, 5XX | \*/\* |
133
+
134
+ ## createAFhirConfig
135
+
136
+ Create a new FHIR configuration. The `facility_id` under the `applies_to` property is required to match the Facility that the user belongs to.
137
+
138
+ This endpoint requires the `fhir_configs` / `add` permission.
139
+
140
+ ### Example Usage
141
+
142
+ <!-- UsageSnippet language="typescript" operationID="createAFhirConfig" method="post" path="/fhir-configs" -->
143
+ ```typescript
144
+ import { GreenSecurity } from "@greensecurity/javascript-sdk";
145
+
146
+ const greenSecurity = new GreenSecurity({
147
+ security: {
148
+ token: process.env["GREEN_SECURITY_TOKEN"] ?? "",
149
+ },
150
+ });
151
+
152
+ async function run() {
153
+ const result = await greenSecurity.fhirConfigs.createAFhirConfig({
154
+ productionProfile: {
155
+ clientId: "<id>",
156
+ baseUrl: "https://gullible-bathhouse.name",
157
+ tokenUrl: "https://powerful-experience.info/",
158
+ },
159
+ nonProductionProfile: {},
160
+ appliesTo: {
161
+ facilityId: 267644,
162
+ },
163
+ activeProfile: "<value>",
164
+ });
165
+
166
+ console.log(result);
167
+ }
168
+
169
+ run();
170
+ ```
171
+
172
+ ### Standalone function
173
+
174
+ The standalone function version of this method:
175
+
176
+ ```typescript
177
+ import { GreenSecurityCore } from "@greensecurity/javascript-sdk/core.js";
178
+ import { fhirConfigsCreateAFhirConfig } from "@greensecurity/javascript-sdk/funcs/fhirConfigsCreateAFhirConfig.js";
179
+
180
+ // Use `GreenSecurityCore` for best tree-shaking performance.
181
+ // You can create one instance of it to use across an application.
182
+ const greenSecurity = new GreenSecurityCore({
183
+ security: {
184
+ token: process.env["GREEN_SECURITY_TOKEN"] ?? "",
185
+ },
186
+ });
187
+
188
+ async function run() {
189
+ const res = await fhirConfigsCreateAFhirConfig(greenSecurity, {
190
+ productionProfile: {
191
+ clientId: "<id>",
192
+ baseUrl: "https://gullible-bathhouse.name",
193
+ tokenUrl: "https://powerful-experience.info/",
194
+ },
195
+ nonProductionProfile: {},
196
+ appliesTo: {
197
+ facilityId: 267644,
198
+ },
199
+ activeProfile: "<value>",
200
+ });
201
+ if (res.ok) {
202
+ const { value: result } = res;
203
+ console.log(result);
204
+ } else {
205
+ console.log("fhirConfigsCreateAFhirConfig failed:", res.error);
206
+ }
207
+ }
208
+
209
+ run();
210
+ ```
211
+
212
+ ### React hooks and utilities
213
+
214
+ This method can be used in React components through the following hooks and
215
+ associated utilities.
216
+
217
+ > Check out [this guide][hook-guide] for information about each of the utilities
218
+ > below and how to get started using React hooks.
219
+
220
+ [hook-guide]: ../../../REACT_QUERY.md
221
+
222
+ ```tsx
223
+ import {
224
+ // Mutation hook for triggering the API call.
225
+ useFhirConfigsCreateAFhirConfigMutation
226
+ } from "@greensecurity/javascript-sdk/react-query/fhirConfigsCreateAFhirConfig.js";
227
+ ```
228
+
229
+ ### Parameters
230
+
231
+ | Parameter | Type | Required | Description |
232
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
233
+ | `request` | [components.FhirConfigCreate](../../models/components/fhirconfigcreate.md) | :heavy_check_mark: | The request object to use for the request. |
234
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
235
+ | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
236
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
237
+
238
+ ### Response
239
+
240
+ **Promise\<[components.FhirConfig](../../models/components/fhirconfig.md)\>**
241
+
242
+ ### Errors
243
+
244
+ | Error Type | Status Code | Content Type |
245
+ | ----------------------- | ----------------------- | ----------------------- |
246
+ | errors.ApiErrorResponse | 400, 401, 403, 422 | application/json |
247
+ | errors.ApiErrorResponse | 500 | application/json |
248
+ | errors.APIError | 4XX, 5XX | \*/\* |
249
+
250
+ ## getFhirConfig
251
+
252
+ Retrieve a FHIR configuration by ID.
253
+
254
+ This endpoint requires the `fhir_configs` / `view` permission.
255
+
256
+ ### Example Usage
257
+
258
+ <!-- UsageSnippet language="typescript" operationID="getFhirConfig" method="get" path="/fhir_configs/{id}" -->
259
+ ```typescript
260
+ import { GreenSecurity } from "@greensecurity/javascript-sdk";
261
+
262
+ const greenSecurity = new GreenSecurity({
263
+ security: {
264
+ token: process.env["GREEN_SECURITY_TOKEN"] ?? "",
265
+ },
266
+ });
267
+
268
+ async function run() {
269
+ const result = await greenSecurity.fhirConfigs.getFhirConfig({
270
+ id: 805020,
271
+ });
272
+
273
+ console.log(result);
274
+ }
275
+
276
+ run();
277
+ ```
278
+
279
+ ### Standalone function
280
+
281
+ The standalone function version of this method:
282
+
283
+ ```typescript
284
+ import { GreenSecurityCore } from "@greensecurity/javascript-sdk/core.js";
285
+ import { fhirConfigsGetFhirConfig } from "@greensecurity/javascript-sdk/funcs/fhirConfigsGetFhirConfig.js";
286
+
287
+ // Use `GreenSecurityCore` for best tree-shaking performance.
288
+ // You can create one instance of it to use across an application.
289
+ const greenSecurity = new GreenSecurityCore({
290
+ security: {
291
+ token: process.env["GREEN_SECURITY_TOKEN"] ?? "",
292
+ },
293
+ });
294
+
295
+ async function run() {
296
+ const res = await fhirConfigsGetFhirConfig(greenSecurity, {
297
+ id: 805020,
298
+ });
299
+ if (res.ok) {
300
+ const { value: result } = res;
301
+ console.log(result);
302
+ } else {
303
+ console.log("fhirConfigsGetFhirConfig failed:", res.error);
304
+ }
305
+ }
306
+
307
+ run();
308
+ ```
309
+
310
+ ### React hooks and utilities
311
+
312
+ This method can be used in React components through the following hooks and
313
+ associated utilities.
314
+
315
+ > Check out [this guide][hook-guide] for information about each of the utilities
316
+ > below and how to get started using React hooks.
317
+
318
+ [hook-guide]: ../../../REACT_QUERY.md
319
+
320
+ ```tsx
321
+ import {
322
+ // Query hooks for fetching data.
323
+ useFhirConfigsGetFhirConfig,
324
+ useFhirConfigsGetFhirConfigSuspense,
325
+
326
+ // Utility for prefetching data during server-side rendering and in React
327
+ // Server Components that will be immediately available to client components
328
+ // using the hooks.
329
+ prefetchFhirConfigsGetFhirConfig,
330
+
331
+ // Utilities to invalidate the query cache for this query in response to
332
+ // mutations and other user actions.
333
+ invalidateFhirConfigsGetFhirConfig,
334
+ invalidateAllFhirConfigsGetFhirConfig,
335
+ } from "@greensecurity/javascript-sdk/react-query/fhirConfigsGetFhirConfig.js";
336
+ ```
337
+
338
+ ### Parameters
339
+
340
+ | Parameter | Type | Required | Description |
341
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
342
+ | `request` | [operations.GetFhirConfigRequest](../../models/operations/getfhirconfigrequest.md) | :heavy_check_mark: | The request object to use for the request. |
343
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
344
+ | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
345
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
346
+
347
+ ### Response
348
+
349
+ **Promise\<[components.FhirConfig](../../models/components/fhirconfig.md)\>**
350
+
351
+ ### Errors
352
+
353
+ | Error Type | Status Code | Content Type |
354
+ | ----------------------- | ----------------------- | ----------------------- |
355
+ | errors.ApiErrorResponse | 400, 401, 403, 404 | application/json |
356
+ | errors.ApiErrorResponse | 500 | application/json |
357
+ | errors.APIError | 4XX, 5XX | \*/\* |
358
+
359
+ ## updateFhirConfigById
360
+
361
+ Update any portion of a FHIR config by ID
362
+
363
+ ### Example Usage
364
+
365
+ <!-- UsageSnippet language="typescript" operationID="updateFhirConfigById" method="put" path="/fhir_configs/{id}" -->
366
+ ```typescript
367
+ import { GreenSecurity } from "@greensecurity/javascript-sdk";
368
+
369
+ const greenSecurity = new GreenSecurity({
370
+ security: {
371
+ token: process.env["GREEN_SECURITY_TOKEN"] ?? "",
372
+ },
373
+ });
374
+
375
+ async function run() {
376
+ const result = await greenSecurity.fhirConfigs.updateFhirConfigById({
377
+ id: 426164,
378
+ fhirConfigPartialUpdate: {},
379
+ });
380
+
381
+ console.log(result);
382
+ }
383
+
384
+ run();
385
+ ```
386
+
387
+ ### Standalone function
388
+
389
+ The standalone function version of this method:
390
+
391
+ ```typescript
392
+ import { GreenSecurityCore } from "@greensecurity/javascript-sdk/core.js";
393
+ import { fhirConfigsUpdateFhirConfigById } from "@greensecurity/javascript-sdk/funcs/fhirConfigsUpdateFhirConfigById.js";
394
+
395
+ // Use `GreenSecurityCore` for best tree-shaking performance.
396
+ // You can create one instance of it to use across an application.
397
+ const greenSecurity = new GreenSecurityCore({
398
+ security: {
399
+ token: process.env["GREEN_SECURITY_TOKEN"] ?? "",
400
+ },
401
+ });
402
+
403
+ async function run() {
404
+ const res = await fhirConfigsUpdateFhirConfigById(greenSecurity, {
405
+ id: 426164,
406
+ fhirConfigPartialUpdate: {},
407
+ });
408
+ if (res.ok) {
409
+ const { value: result } = res;
410
+ console.log(result);
411
+ } else {
412
+ console.log("fhirConfigsUpdateFhirConfigById failed:", res.error);
413
+ }
414
+ }
415
+
416
+ run();
417
+ ```
418
+
419
+ ### React hooks and utilities
420
+
421
+ This method can be used in React components through the following hooks and
422
+ associated utilities.
423
+
424
+ > Check out [this guide][hook-guide] for information about each of the utilities
425
+ > below and how to get started using React hooks.
426
+
427
+ [hook-guide]: ../../../REACT_QUERY.md
428
+
429
+ ```tsx
430
+ import {
431
+ // Mutation hook for triggering the API call.
432
+ useFhirConfigsUpdateFhirConfigByIdMutation
433
+ } from "@greensecurity/javascript-sdk/react-query/fhirConfigsUpdateFhirConfigById.js";
434
+ ```
435
+
436
+ ### Parameters
437
+
438
+ | Parameter | Type | Required | Description |
439
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
440
+ | `request` | [operations.UpdateFhirConfigByIdRequest](../../models/operations/updatefhirconfigbyidrequest.md) | :heavy_check_mark: | The request object to use for the request. |
441
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
442
+ | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
443
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
444
+
445
+ ### Response
446
+
447
+ **Promise\<[components.FhirConfig](../../models/components/fhirconfig.md)\>**
448
+
449
+ ### Errors
450
+
451
+ | Error Type | Status Code | Content Type |
452
+ | ----------------------- | ----------------------- | ----------------------- |
453
+ | errors.ApiErrorResponse | 400, 401, 403, 404, 422 | application/json |
454
+ | errors.ApiErrorResponse | 500 | application/json |
455
+ | errors.APIError | 4XX, 5XX | \*/\* |
456
+
457
+ ## deleteFhirConfigById
458
+
459
+ Requires the `fhir_config` / `delete` permission.
460
+
461
+ ### Example Usage
462
+
463
+ <!-- UsageSnippet language="typescript" operationID="deleteFhirConfigById" method="delete" path="/fhir_configs/{id}" -->
464
+ ```typescript
465
+ import { GreenSecurity } from "@greensecurity/javascript-sdk";
466
+
467
+ const greenSecurity = new GreenSecurity({
468
+ security: {
469
+ token: process.env["GREEN_SECURITY_TOKEN"] ?? "",
470
+ },
471
+ });
472
+
473
+ async function run() {
474
+ const result = await greenSecurity.fhirConfigs.deleteFhirConfigById({
475
+ id: 186092,
476
+ });
477
+
478
+ console.log(result);
479
+ }
480
+
481
+ run();
482
+ ```
483
+
484
+ ### Standalone function
485
+
486
+ The standalone function version of this method:
487
+
488
+ ```typescript
489
+ import { GreenSecurityCore } from "@greensecurity/javascript-sdk/core.js";
490
+ import { fhirConfigsDeleteFhirConfigById } from "@greensecurity/javascript-sdk/funcs/fhirConfigsDeleteFhirConfigById.js";
491
+
492
+ // Use `GreenSecurityCore` for best tree-shaking performance.
493
+ // You can create one instance of it to use across an application.
494
+ const greenSecurity = new GreenSecurityCore({
495
+ security: {
496
+ token: process.env["GREEN_SECURITY_TOKEN"] ?? "",
497
+ },
498
+ });
499
+
500
+ async function run() {
501
+ const res = await fhirConfigsDeleteFhirConfigById(greenSecurity, {
502
+ id: 186092,
503
+ });
504
+ if (res.ok) {
505
+ const { value: result } = res;
506
+ console.log(result);
507
+ } else {
508
+ console.log("fhirConfigsDeleteFhirConfigById failed:", res.error);
509
+ }
510
+ }
511
+
512
+ run();
513
+ ```
514
+
515
+ ### React hooks and utilities
516
+
517
+ This method can be used in React components through the following hooks and
518
+ associated utilities.
519
+
520
+ > Check out [this guide][hook-guide] for information about each of the utilities
521
+ > below and how to get started using React hooks.
522
+
523
+ [hook-guide]: ../../../REACT_QUERY.md
524
+
525
+ ```tsx
526
+ import {
527
+ // Mutation hook for triggering the API call.
528
+ useFhirConfigsDeleteFhirConfigByIdMutation
529
+ } from "@greensecurity/javascript-sdk/react-query/fhirConfigsDeleteFhirConfigById.js";
530
+ ```
531
+
532
+ ### Parameters
533
+
534
+ | Parameter | Type | Required | Description |
535
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
536
+ | `request` | [operations.DeleteFhirConfigByIdRequest](../../models/operations/deletefhirconfigbyidrequest.md) | :heavy_check_mark: | The request object to use for the request. |
537
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
538
+ | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
539
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
540
+
541
+ ### Response
542
+
543
+ **Promise\<[components.DeleteApiResponse](../../models/components/deleteapiresponse.md)\>**
544
+
545
+ ### Errors
546
+
547
+ | Error Type | Status Code | Content Type |
548
+ | ----------------------- | ----------------------- | ----------------------- |
549
+ | errors.ApiErrorResponse | 400, 401, 403, 404, 422 | application/json |
550
+ | errors.ApiErrorResponse | 500 | application/json |
551
+ | errors.APIError | 4XX, 5XX | \*/\* |
@@ -0,0 +1,14 @@
1
+ # GreenSecurity SDK
2
+
3
+ ## Overview
4
+
5
+ API Reference: The Green Security API is organized around [REST](https://en.wikipedia.org/wiki/Representational_State_Transfer).
6
+ Our API has predictable resource-oriented URLs, accepts [JSON-encoded](https://www.json.org/) request bodies,
7
+ returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.
8
+
9
+ The API is updated frequently, so be sure to check back often for the latest information.
10
+
11
+ Some useful links:
12
+ - [OpenAPI Reference](https://www.speakeasy.com/openapi)
13
+
14
+ ### Available Operations