@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.
- package/.devcontainer/README.md +35 -0
- package/README.md +14 -5
- package/dist/commonjs/__tests__/alerts.test.d.ts +2 -0
- package/dist/commonjs/__tests__/alerts.test.d.ts.map +1 -0
- package/dist/commonjs/__tests__/alerts.test.js +51 -0
- package/dist/commonjs/__tests__/alerts.test.js.map +1 -0
- package/dist/commonjs/__tests__/vendors.test.js +25 -0
- package/dist/commonjs/__tests__/vendors.test.js.map +1 -1
- package/dist/commonjs/__tests__/zones.test.js +3 -2
- package/dist/commonjs/__tests__/zones.test.js.map +1 -1
- package/dist/commonjs/admin-funcs/registerCompanies.d.ts +16 -0
- package/dist/commonjs/admin-funcs/registerCompanies.d.ts.map +1 -0
- package/dist/commonjs/admin-funcs/registerCompanies.js +9 -0
- package/dist/commonjs/admin-funcs/registerCompanies.js.map +1 -0
- package/dist/commonjs/admin-funcs/registerEmail.d.ts +9 -0
- package/dist/commonjs/admin-funcs/registerEmail.d.ts.map +1 -0
- package/dist/commonjs/admin-funcs/registerEmail.js +9 -0
- package/dist/commonjs/admin-funcs/registerEmail.js.map +1 -0
- package/dist/commonjs/admin-funcs/registerGeneralInfo.d.ts +23 -0
- package/dist/commonjs/admin-funcs/registerGeneralInfo.d.ts.map +1 -0
- package/dist/commonjs/admin-funcs/registerGeneralInfo.js +9 -0
- package/dist/commonjs/admin-funcs/registerGeneralInfo.js.map +1 -0
- package/dist/commonjs/admin-funcs/registerPassword.d.ts +7 -0
- package/dist/commonjs/admin-funcs/registerPassword.d.ts.map +1 -0
- package/dist/commonjs/admin-funcs/registerPassword.js +9 -0
- package/dist/commonjs/admin-funcs/registerPassword.js.map +1 -0
- package/dist/commonjs/funcs/alertsListAlerts.d.ts +21 -0
- package/dist/commonjs/funcs/alertsListAlerts.d.ts.map +1 -0
- package/dist/commonjs/funcs/alertsListAlerts.js +154 -0
- package/dist/commonjs/funcs/alertsListAlerts.js.map +1 -0
- package/dist/commonjs/funcs/alertsUpdateUserAlerts.d.ts +18 -0
- package/dist/commonjs/funcs/alertsUpdateUserAlerts.d.ts.map +1 -0
- package/dist/commonjs/funcs/alertsUpdateUserAlerts.js +117 -0
- package/dist/commonjs/funcs/alertsUpdateUserAlerts.js.map +1 -0
- package/dist/commonjs/funcs/vendorsGetNextUnansweredScreeningQuestion.d.ts +18 -0
- package/dist/commonjs/funcs/vendorsGetNextUnansweredScreeningQuestion.d.ts.map +1 -0
- package/dist/commonjs/funcs/vendorsGetNextUnansweredScreeningQuestion.js +126 -0
- package/dist/commonjs/funcs/vendorsGetNextUnansweredScreeningQuestion.js.map +1 -0
- package/dist/commonjs/funcs/vendorsGetVendorsDetails.d.ts +1 -0
- package/dist/commonjs/funcs/vendorsGetVendorsDetails.d.ts.map +1 -1
- package/dist/commonjs/funcs/vendorsGetVendorsDetails.js +1 -0
- package/dist/commonjs/funcs/vendorsGetVendorsDetails.js.map +1 -1
- package/dist/commonjs/index.extras.d.ts +10 -0
- package/dist/commonjs/index.extras.d.ts.map +1 -1
- package/dist/commonjs/index.extras.js +10 -0
- package/dist/commonjs/index.extras.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +4 -4
- package/dist/commonjs/lib/config.js +4 -4
- package/dist/commonjs/lib/config.js.map +1 -1
- package/dist/commonjs/lib/url.js +1 -1
- package/dist/commonjs/lib/url.js.map +1 -1
- package/dist/commonjs/models/components/alert.d.ts +79 -0
- package/dist/commonjs/models/components/alert.d.ts.map +1 -0
- package/dist/commonjs/models/components/alert.js +123 -0
- package/dist/commonjs/models/components/alert.js.map +1 -0
- package/dist/commonjs/models/components/credential.d.ts +6 -4
- package/dist/commonjs/models/components/credential.d.ts.map +1 -1
- package/dist/commonjs/models/components/credential.js +8 -4
- package/dist/commonjs/models/components/credential.js.map +1 -1
- package/dist/commonjs/models/components/credentialstatus.d.ts +3 -0
- package/dist/commonjs/models/components/credentialstatus.d.ts.map +1 -1
- package/dist/commonjs/models/components/credentialstatus.js +1 -0
- package/dist/commonjs/models/components/credentialstatus.js.map +1 -1
- package/dist/commonjs/models/components/expand.d.ts +6 -0
- package/dist/commonjs/models/components/expand.d.ts.map +1 -1
- package/dist/commonjs/models/components/expand.js +2 -0
- package/dist/commonjs/models/components/expand.js.map +1 -1
- package/dist/commonjs/models/components/facilitycalendarsummary.d.ts +68 -0
- package/dist/commonjs/models/components/facilitycalendarsummary.d.ts.map +1 -0
- package/dist/commonjs/models/components/facilitycalendarsummary.js +130 -0
- package/dist/commonjs/models/components/facilitycalendarsummary.js.map +1 -0
- package/dist/commonjs/models/components/facilitysummary.d.ts +2 -0
- package/dist/commonjs/models/components/facilitysummary.d.ts.map +1 -1
- package/dist/commonjs/models/components/facilitysummary.js +4 -0
- package/dist/commonjs/models/components/facilitysummary.js.map +1 -1
- package/dist/commonjs/models/components/index.d.ts +4 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +4 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/screeninganswer.d.ts +112 -0
- package/dist/commonjs/models/components/screeninganswer.d.ts.map +1 -0
- package/dist/commonjs/models/components/screeninganswer.js +138 -0
- package/dist/commonjs/models/components/screeninganswer.js.map +1 -0
- package/dist/commonjs/models/components/screeningquestion.d.ts +98 -0
- package/dist/commonjs/models/components/screeningquestion.d.ts.map +1 -0
- package/dist/commonjs/models/components/screeningquestion.js +125 -0
- package/dist/commonjs/models/components/screeningquestion.js.map +1 -0
- package/dist/commonjs/models/components/userlocation.d.ts +1 -5
- package/dist/commonjs/models/components/userlocation.d.ts.map +1 -1
- package/dist/commonjs/models/components/userlocation.js +2 -3
- package/dist/commonjs/models/components/userlocation.js.map +1 -1
- package/dist/commonjs/models/components/vendor.d.ts +7 -2
- package/dist/commonjs/models/components/vendor.d.ts.map +1 -1
- package/dist/commonjs/models/components/vendor.js +11 -2
- package/dist/commonjs/models/components/vendor.js.map +1 -1
- package/dist/commonjs/models/errors/index.d.ts +1 -0
- package/dist/commonjs/models/errors/index.d.ts.map +1 -1
- package/dist/commonjs/models/errors/index.js +1 -0
- package/dist/commonjs/models/errors/index.js.map +1 -1
- package/dist/commonjs/models/operations/getnextunansweredscreeningquestion.d.ts +70 -0
- package/dist/commonjs/models/operations/getnextunansweredscreeningquestion.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getnextunansweredscreeningquestion.js +122 -0
- package/dist/commonjs/models/operations/getnextunansweredscreeningquestion.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +3 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +3 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/listalerts.d.ts +106 -0
- package/dist/commonjs/models/operations/listalerts.d.ts.map +1 -0
- package/dist/commonjs/models/operations/listalerts.js +149 -0
- package/dist/commonjs/models/operations/listalerts.js.map +1 -0
- package/dist/commonjs/models/operations/listvendorcredentials.d.ts +4 -4
- package/dist/commonjs/models/operations/listvendorcredentials.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listvendorcredentials.js +4 -4
- package/dist/commonjs/models/operations/listvendorcredentials.js.map +1 -1
- package/dist/commonjs/models/operations/updateuseralerts.d.ts +57 -0
- package/dist/commonjs/models/operations/updateuseralerts.d.ts.map +1 -0
- package/dist/commonjs/models/operations/updateuseralerts.js +105 -0
- package/dist/commonjs/models/operations/updateuseralerts.js.map +1 -0
- package/dist/commonjs/react-query/alertsListAlerts.d.ts +75 -0
- package/dist/commonjs/react-query/alertsListAlerts.d.ts.map +1 -0
- package/dist/commonjs/react-query/alertsListAlerts.js +150 -0
- package/dist/commonjs/react-query/alertsListAlerts.js.map +1 -0
- package/dist/commonjs/react-query/alertsUpdateUserAlerts.d.ts +23 -0
- package/dist/commonjs/react-query/alertsUpdateUserAlerts.d.ts.map +1 -0
- package/dist/commonjs/react-query/alertsUpdateUserAlerts.js +47 -0
- package/dist/commonjs/react-query/alertsUpdateUserAlerts.js.map +1 -0
- package/dist/commonjs/react-query/index.d.ts +3 -0
- package/dist/commonjs/react-query/index.d.ts.map +1 -1
- package/dist/commonjs/react-query/index.js +3 -0
- package/dist/commonjs/react-query/index.js.map +1 -1
- package/dist/commonjs/react-query/vendorsGetNextUnansweredScreeningQuestion.d.ts +43 -0
- package/dist/commonjs/react-query/vendorsGetNextUnansweredScreeningQuestion.d.ts.map +1 -0
- package/dist/commonjs/react-query/vendorsGetNextUnansweredScreeningQuestion.js +97 -0
- package/dist/commonjs/react-query/vendorsGetNextUnansweredScreeningQuestion.js.map +1 -0
- package/dist/commonjs/react-query/vendorsGetVendorsDetails.d.ts +2 -0
- package/dist/commonjs/react-query/vendorsGetVendorsDetails.d.ts.map +1 -1
- package/dist/commonjs/react-query/vendorsGetVendorsDetails.js +2 -0
- package/dist/commonjs/react-query/vendorsGetVendorsDetails.js.map +1 -1
- package/dist/commonjs/react-query/vendorsListVendorCredentials.d.ts +3 -3
- package/dist/commonjs/react-query/vendorsListVendorCredentials.d.ts.map +1 -1
- package/dist/commonjs/sdk/alerts.d.ts +22 -0
- package/dist/commonjs/sdk/alerts.d.ts.map +1 -0
- package/dist/commonjs/sdk/alerts.js +33 -0
- package/dist/commonjs/sdk/alerts.js.map +1 -0
- package/dist/commonjs/sdk/sdk.d.ts +3 -0
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.js +4 -0
- package/dist/commonjs/sdk/sdk.js.map +1 -1
- package/dist/commonjs/sdk/vendors.d.ts +8 -0
- package/dist/commonjs/sdk/vendors.d.ts.map +1 -1
- package/dist/commonjs/sdk/vendors.js +11 -0
- package/dist/commonjs/sdk/vendors.js.map +1 -1
- package/dist/esm/__tests__/alerts.test.d.ts +2 -0
- package/dist/esm/__tests__/alerts.test.d.ts.map +1 -0
- package/dist/esm/__tests__/alerts.test.js +49 -0
- package/dist/esm/__tests__/alerts.test.js.map +1 -0
- package/dist/esm/__tests__/vendors.test.js +25 -0
- package/dist/esm/__tests__/vendors.test.js.map +1 -1
- package/dist/esm/__tests__/zones.test.js +3 -2
- package/dist/esm/__tests__/zones.test.js.map +1 -1
- package/dist/esm/admin-funcs/registerCompanies.d.ts +16 -0
- package/dist/esm/admin-funcs/registerCompanies.d.ts.map +1 -0
- package/dist/esm/admin-funcs/registerCompanies.js +6 -0
- package/dist/esm/admin-funcs/registerCompanies.js.map +1 -0
- package/dist/esm/admin-funcs/registerEmail.d.ts +9 -0
- package/dist/esm/admin-funcs/registerEmail.d.ts.map +1 -0
- package/dist/esm/admin-funcs/registerEmail.js +6 -0
- package/dist/esm/admin-funcs/registerEmail.js.map +1 -0
- package/dist/esm/admin-funcs/registerGeneralInfo.d.ts +23 -0
- package/dist/esm/admin-funcs/registerGeneralInfo.d.ts.map +1 -0
- package/dist/esm/admin-funcs/registerGeneralInfo.js +6 -0
- package/dist/esm/admin-funcs/registerGeneralInfo.js.map +1 -0
- package/dist/esm/admin-funcs/registerPassword.d.ts +7 -0
- package/dist/esm/admin-funcs/registerPassword.d.ts.map +1 -0
- package/dist/esm/admin-funcs/registerPassword.js +6 -0
- package/dist/esm/admin-funcs/registerPassword.js.map +1 -0
- package/dist/esm/funcs/alertsListAlerts.d.ts +21 -0
- package/dist/esm/funcs/alertsListAlerts.d.ts.map +1 -0
- package/dist/esm/funcs/alertsListAlerts.js +118 -0
- package/dist/esm/funcs/alertsListAlerts.js.map +1 -0
- package/dist/esm/funcs/alertsUpdateUserAlerts.d.ts +18 -0
- package/dist/esm/funcs/alertsUpdateUserAlerts.d.ts.map +1 -0
- package/dist/esm/funcs/alertsUpdateUserAlerts.js +81 -0
- package/dist/esm/funcs/alertsUpdateUserAlerts.js.map +1 -0
- package/dist/esm/funcs/vendorsGetNextUnansweredScreeningQuestion.d.ts +18 -0
- package/dist/esm/funcs/vendorsGetNextUnansweredScreeningQuestion.d.ts.map +1 -0
- package/dist/esm/funcs/vendorsGetNextUnansweredScreeningQuestion.js +90 -0
- package/dist/esm/funcs/vendorsGetNextUnansweredScreeningQuestion.js.map +1 -0
- package/dist/esm/funcs/vendorsGetVendorsDetails.d.ts +1 -0
- package/dist/esm/funcs/vendorsGetVendorsDetails.d.ts.map +1 -1
- package/dist/esm/funcs/vendorsGetVendorsDetails.js +1 -0
- package/dist/esm/funcs/vendorsGetVendorsDetails.js.map +1 -1
- package/dist/esm/index.extras.d.ts +10 -0
- package/dist/esm/index.extras.d.ts.map +1 -1
- package/dist/esm/index.extras.js +10 -0
- package/dist/esm/index.extras.js.map +1 -1
- package/dist/esm/lib/config.d.ts +4 -4
- package/dist/esm/lib/config.js +4 -4
- package/dist/esm/lib/config.js.map +1 -1
- package/dist/esm/lib/url.js +1 -1
- package/dist/esm/lib/url.js.map +1 -1
- package/dist/esm/models/components/alert.d.ts +79 -0
- package/dist/esm/models/components/alert.d.ts.map +1 -0
- package/dist/esm/models/components/alert.js +85 -0
- package/dist/esm/models/components/alert.js.map +1 -0
- package/dist/esm/models/components/credential.d.ts +6 -4
- package/dist/esm/models/components/credential.d.ts.map +1 -1
- package/dist/esm/models/components/credential.js +8 -4
- package/dist/esm/models/components/credential.js.map +1 -1
- package/dist/esm/models/components/credentialstatus.d.ts +3 -0
- package/dist/esm/models/components/credentialstatus.d.ts.map +1 -1
- package/dist/esm/models/components/credentialstatus.js +1 -0
- package/dist/esm/models/components/credentialstatus.js.map +1 -1
- package/dist/esm/models/components/expand.d.ts +6 -0
- package/dist/esm/models/components/expand.d.ts.map +1 -1
- package/dist/esm/models/components/expand.js +2 -0
- package/dist/esm/models/components/expand.js.map +1 -1
- package/dist/esm/models/components/facilitycalendarsummary.d.ts +68 -0
- package/dist/esm/models/components/facilitycalendarsummary.d.ts.map +1 -0
- package/dist/esm/models/components/facilitycalendarsummary.js +90 -0
- package/dist/esm/models/components/facilitycalendarsummary.js.map +1 -0
- package/dist/esm/models/components/facilitysummary.d.ts +2 -0
- package/dist/esm/models/components/facilitysummary.d.ts.map +1 -1
- package/dist/esm/models/components/facilitysummary.js +4 -0
- package/dist/esm/models/components/facilitysummary.js.map +1 -1
- package/dist/esm/models/components/index.d.ts +4 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +4 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/screeninganswer.d.ts +112 -0
- package/dist/esm/models/components/screeninganswer.d.ts.map +1 -0
- package/dist/esm/models/components/screeninganswer.js +100 -0
- package/dist/esm/models/components/screeninganswer.js.map +1 -0
- package/dist/esm/models/components/screeningquestion.d.ts +98 -0
- package/dist/esm/models/components/screeningquestion.d.ts.map +1 -0
- package/dist/esm/models/components/screeningquestion.js +87 -0
- package/dist/esm/models/components/screeningquestion.js.map +1 -0
- package/dist/esm/models/components/userlocation.d.ts +1 -5
- package/dist/esm/models/components/userlocation.d.ts.map +1 -1
- package/dist/esm/models/components/userlocation.js +2 -3
- package/dist/esm/models/components/userlocation.js.map +1 -1
- package/dist/esm/models/components/vendor.d.ts +7 -2
- package/dist/esm/models/components/vendor.d.ts.map +1 -1
- package/dist/esm/models/components/vendor.js +11 -2
- package/dist/esm/models/components/vendor.js.map +1 -1
- package/dist/esm/models/errors/index.d.ts +1 -0
- package/dist/esm/models/errors/index.d.ts.map +1 -1
- package/dist/esm/models/errors/index.js +1 -0
- package/dist/esm/models/errors/index.js.map +1 -1
- package/dist/esm/models/operations/getnextunansweredscreeningquestion.d.ts +70 -0
- package/dist/esm/models/operations/getnextunansweredscreeningquestion.d.ts.map +1 -0
- package/dist/esm/models/operations/getnextunansweredscreeningquestion.js +82 -0
- package/dist/esm/models/operations/getnextunansweredscreeningquestion.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +3 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +3 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/listalerts.d.ts +106 -0
- package/dist/esm/models/operations/listalerts.d.ts.map +1 -0
- package/dist/esm/models/operations/listalerts.js +107 -0
- package/dist/esm/models/operations/listalerts.js.map +1 -0
- package/dist/esm/models/operations/listvendorcredentials.d.ts +4 -4
- package/dist/esm/models/operations/listvendorcredentials.d.ts.map +1 -1
- package/dist/esm/models/operations/listvendorcredentials.js +4 -4
- package/dist/esm/models/operations/listvendorcredentials.js.map +1 -1
- package/dist/esm/models/operations/updateuseralerts.d.ts +57 -0
- package/dist/esm/models/operations/updateuseralerts.d.ts.map +1 -0
- package/dist/esm/models/operations/updateuseralerts.js +65 -0
- package/dist/esm/models/operations/updateuseralerts.js.map +1 -0
- package/dist/esm/react-query/alertsListAlerts.d.ts +75 -0
- package/dist/esm/react-query/alertsListAlerts.d.ts.map +1 -0
- package/dist/esm/react-query/alertsListAlerts.js +137 -0
- package/dist/esm/react-query/alertsListAlerts.js.map +1 -0
- package/dist/esm/react-query/alertsUpdateUserAlerts.d.ts +23 -0
- package/dist/esm/react-query/alertsUpdateUserAlerts.d.ts.map +1 -0
- package/dist/esm/react-query/alertsUpdateUserAlerts.js +42 -0
- package/dist/esm/react-query/alertsUpdateUserAlerts.js.map +1 -0
- package/dist/esm/react-query/index.d.ts +3 -0
- package/dist/esm/react-query/index.d.ts.map +1 -1
- package/dist/esm/react-query/index.js +3 -0
- package/dist/esm/react-query/index.js.map +1 -1
- package/dist/esm/react-query/vendorsGetNextUnansweredScreeningQuestion.d.ts +43 -0
- package/dist/esm/react-query/vendorsGetNextUnansweredScreeningQuestion.d.ts.map +1 -0
- package/dist/esm/react-query/vendorsGetNextUnansweredScreeningQuestion.js +87 -0
- package/dist/esm/react-query/vendorsGetNextUnansweredScreeningQuestion.js.map +1 -0
- package/dist/esm/react-query/vendorsGetVendorsDetails.d.ts +2 -0
- package/dist/esm/react-query/vendorsGetVendorsDetails.d.ts.map +1 -1
- package/dist/esm/react-query/vendorsGetVendorsDetails.js +2 -0
- package/dist/esm/react-query/vendorsGetVendorsDetails.js.map +1 -1
- package/dist/esm/react-query/vendorsListVendorCredentials.d.ts +3 -3
- package/dist/esm/react-query/vendorsListVendorCredentials.d.ts.map +1 -1
- package/dist/esm/sdk/alerts.d.ts +22 -0
- package/dist/esm/sdk/alerts.d.ts.map +1 -0
- package/dist/esm/sdk/alerts.js +29 -0
- package/dist/esm/sdk/alerts.js.map +1 -0
- package/dist/esm/sdk/sdk.d.ts +3 -0
- package/dist/esm/sdk/sdk.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.js +4 -0
- package/dist/esm/sdk/sdk.js.map +1 -1
- package/dist/esm/sdk/vendors.d.ts +8 -0
- package/dist/esm/sdk/vendors.d.ts.map +1 -1
- package/dist/esm/sdk/vendors.js +11 -0
- package/dist/esm/sdk/vendors.js.map +1 -1
- package/docs/sdks/alerts/README.md +219 -0
- package/docs/sdks/companies/README.md +126 -0
- package/docs/sdks/datarequests/README.md +302 -0
- package/docs/sdks/events/README.md +1126 -0
- package/docs/sdks/fhirconfigs/README.md +551 -0
- package/docs/sdks/greensecurity/README.md +14 -0
- package/docs/sdks/invoices/README.md +324 -0
- package/docs/sdks/mobiledevices/README.md +100 -0
- package/docs/sdks/organizations/README.md +508 -0
- package/docs/sdks/supportarticles/README.md +249 -0
- package/docs/sdks/systems/README.md +136 -0
- package/docs/sdks/users/README.md +831 -0
- package/docs/sdks/vendors/README.md +4904 -0
- package/docs/sdks/vendorscans/README.md +104 -0
- package/docs/sdks/webhooks/README.md +352 -0
- package/docs/sdks/zones/README.md +344 -0
- package/examples/README.md +31 -0
- package/examples/package-lock.json +1 -1
- package/examples/vendorsCreateVendorRegistration.example.ts +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/alerts.test.ts +55 -0
- package/src/__tests__/vendors.test.ts +32 -0
- package/src/__tests__/zones.test.ts +3 -2
- package/src/admin-funcs/registerCompanies.ts +23 -0
- package/src/admin-funcs/registerEmail.ts +16 -0
- package/src/admin-funcs/registerGeneralInfo.ts +30 -0
- package/src/admin-funcs/registerPassword.ts +14 -0
- package/src/funcs/alertsListAlerts.ts +245 -0
- package/src/funcs/alertsUpdateUserAlerts.ts +170 -0
- package/src/funcs/vendorsGetNextUnansweredScreeningQuestion.ts +188 -0
- package/src/funcs/vendorsGetVendorsDetails.ts +1 -0
- package/src/index.extras.ts +14 -1
- package/src/lib/config.ts +4 -4
- package/src/lib/url.ts +1 -1
- package/src/models/components/alert.ts +141 -0
- package/src/models/components/credential.ts +19 -10
- package/src/models/components/credentialstatus.ts +1 -0
- package/src/models/components/expand.ts +2 -0
- package/src/models/components/facilitycalendarsummary.ts +188 -0
- package/src/models/components/facilitysummary.ts +6 -0
- package/src/models/components/index.ts +4 -0
- package/src/models/components/screeninganswer.ts +195 -0
- package/src/models/components/screeningquestion.ts +163 -0
- package/src/models/components/userlocation.ts +3 -7
- package/src/models/components/vendor.ts +25 -4
- package/src/models/errors/index.ts +1 -0
- package/src/models/operations/getnextunansweredscreeningquestion.ts +191 -0
- package/src/models/operations/index.ts +3 -0
- package/src/models/operations/listalerts.ts +234 -0
- package/src/models/operations/listvendorcredentials.ts +8 -10
- package/src/models/operations/updateuseralerts.ts +140 -0
- package/src/react-query/alertsListAlerts.ts +308 -0
- package/src/react-query/alertsUpdateUserAlerts.ts +89 -0
- package/src/react-query/index.ts +3 -0
- package/src/react-query/vendorsGetNextUnansweredScreeningQuestion.ts +190 -0
- package/src/react-query/vendorsGetVendorsDetails.ts +2 -0
- package/src/react-query/vendorsListVendorCredentials.ts +3 -3
- package/src/sdk/alerts.ts +46 -0
- package/src/sdk/sdk.ts +6 -0
- 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
|