@greensecurity/javascript-sdk 0.40.3 → 0.40.5-beta.0
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/README.md +24 -0
- package/dist/commonjs/__tests__/events.test.js +3 -1
- package/dist/commonjs/__tests__/events.test.js.map +1 -1
- package/dist/commonjs/__tests__/fhirconfigs.test.d.ts +2 -0
- package/dist/commonjs/__tests__/fhirconfigs.test.d.ts.map +1 -0
- package/dist/commonjs/__tests__/fhirconfigs.test.js +160 -0
- package/dist/commonjs/__tests__/fhirconfigs.test.js.map +1 -0
- package/dist/commonjs/__tests__/mobiledevices.test.d.ts +2 -0
- package/dist/commonjs/__tests__/mobiledevices.test.d.ts.map +1 -0
- package/dist/commonjs/__tests__/mobiledevices.test.js +22 -0
- package/dist/commonjs/__tests__/mobiledevices.test.js.map +1 -0
- package/dist/commonjs/__tests__/webhooks.test.js +1 -1
- package/dist/commonjs/__tests__/webhooks.test.js.map +1 -1
- package/dist/commonjs/__tests__/zones.test.js +4 -2
- package/dist/commonjs/__tests__/zones.test.js.map +1 -1
- package/dist/commonjs/funcs/eventsDeleteEvent.d.ts +2 -1
- package/dist/commonjs/funcs/eventsDeleteEvent.d.ts.map +1 -1
- package/dist/commonjs/funcs/eventsDeleteEvent.js +2 -1
- package/dist/commonjs/funcs/eventsDeleteEvent.js.map +1 -1
- package/dist/commonjs/funcs/fhirConfigsCreateAFhirConfig.d.ts +20 -0
- package/dist/commonjs/funcs/fhirConfigsCreateAFhirConfig.d.ts.map +1 -0
- package/dist/commonjs/funcs/fhirConfigsCreateAFhirConfig.js +119 -0
- package/dist/commonjs/funcs/fhirConfigsCreateAFhirConfig.js.map +1 -0
- package/dist/commonjs/funcs/fhirConfigsDeleteFhirConfigById.d.ts +19 -0
- package/dist/commonjs/funcs/fhirConfigsDeleteFhirConfigById.d.ts.map +1 -0
- package/dist/commonjs/funcs/fhirConfigsDeleteFhirConfigById.js +123 -0
- package/dist/commonjs/funcs/fhirConfigsDeleteFhirConfigById.js.map +1 -0
- package/dist/commonjs/funcs/fhirConfigsGetFhirConfig.d.ts +21 -0
- package/dist/commonjs/funcs/fhirConfigsGetFhirConfig.d.ts.map +1 -0
- package/dist/commonjs/funcs/fhirConfigsGetFhirConfig.js +125 -0
- package/dist/commonjs/funcs/fhirConfigsGetFhirConfig.js.map +1 -0
- package/dist/commonjs/funcs/fhirConfigsListOfFhirConfigurations.d.ts +21 -0
- package/dist/commonjs/funcs/fhirConfigsListOfFhirConfigurations.d.ts.map +1 -0
- package/dist/commonjs/funcs/fhirConfigsListOfFhirConfigurations.js +156 -0
- package/dist/commonjs/funcs/fhirConfigsListOfFhirConfigurations.js.map +1 -0
- package/dist/commonjs/funcs/fhirConfigsUpdateFhirConfigById.d.ts +16 -0
- package/dist/commonjs/funcs/fhirConfigsUpdateFhirConfigById.d.ts.map +1 -0
- package/dist/commonjs/funcs/fhirConfigsUpdateFhirConfigById.js +123 -0
- package/dist/commonjs/funcs/fhirConfigsUpdateFhirConfigById.js.map +1 -0
- package/dist/commonjs/funcs/mobileDevicesAddMobileDevice.d.ts +18 -0
- package/dist/commonjs/funcs/mobileDevicesAddMobileDevice.d.ts.map +1 -0
- package/dist/commonjs/funcs/mobileDevicesAddMobileDevice.js +117 -0
- package/dist/commonjs/funcs/mobileDevicesAddMobileDevice.js.map +1 -0
- package/dist/commonjs/funcs/vendorsDeleteVendorManagedByCompany.d.ts +2 -1
- package/dist/commonjs/funcs/vendorsDeleteVendorManagedByCompany.d.ts.map +1 -1
- package/dist/commonjs/funcs/vendorsDeleteVendorManagedByCompany.js +2 -2
- package/dist/commonjs/funcs/vendorsDeleteVendorManagedByCompany.js.map +1 -1
- package/dist/commonjs/funcs/vendorsGetVendorsDetails.d.ts +2 -0
- package/dist/commonjs/funcs/vendorsGetVendorsDetails.d.ts.map +1 -1
- package/dist/commonjs/funcs/vendorsGetVendorsDetails.js +2 -0
- package/dist/commonjs/funcs/vendorsGetVendorsDetails.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/security.d.ts.map +1 -1
- package/dist/commonjs/lib/security.js.map +1 -1
- package/dist/commonjs/models/components/backgroundcheckresult.d.ts +46 -2
- package/dist/commonjs/models/components/backgroundcheckresult.d.ts.map +1 -1
- package/dist/commonjs/models/components/backgroundcheckresult.js +49 -3
- package/dist/commonjs/models/components/backgroundcheckresult.js.map +1 -1
- package/dist/commonjs/models/components/deleteapiresponse.d.ts +32 -0
- package/dist/commonjs/models/components/deleteapiresponse.d.ts.map +1 -0
- package/dist/commonjs/models/components/deleteapiresponse.js +69 -0
- package/dist/commonjs/models/components/deleteapiresponse.js.map +1 -0
- 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/feed.d.ts +2 -0
- package/dist/commonjs/models/components/feed.d.ts.map +1 -1
- package/dist/commonjs/models/components/feed.js +4 -0
- package/dist/commonjs/models/components/feed.js.map +1 -1
- package/dist/commonjs/models/components/fhirconfig.d.ts +192 -0
- package/dist/commonjs/models/components/fhirconfig.d.ts.map +1 -0
- package/dist/commonjs/models/components/fhirconfig.js +266 -0
- package/dist/commonjs/models/components/fhirconfig.js.map +1 -0
- package/dist/commonjs/models/components/fhirconfigcreate.d.ts +137 -0
- package/dist/commonjs/models/components/fhirconfigcreate.d.ts.map +1 -0
- package/dist/commonjs/models/components/fhirconfigcreate.js +241 -0
- package/dist/commonjs/models/components/fhirconfigcreate.js.map +1 -0
- package/dist/commonjs/models/components/fhirconfigpartialupdate.d.ts +137 -0
- package/dist/commonjs/models/components/fhirconfigpartialupdate.d.ts.map +1 -0
- package/dist/commonjs/models/components/fhirconfigpartialupdate.js +243 -0
- package/dist/commonjs/models/components/fhirconfigpartialupdate.js.map +1 -0
- 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/invitee.d.ts +2 -0
- package/dist/commonjs/models/components/invitee.d.ts.map +1 -1
- package/dist/commonjs/models/components/invitee.js +11 -0
- package/dist/commonjs/models/components/invitee.js.map +1 -1
- package/dist/commonjs/models/components/pendinginvitation.d.ts +6 -0
- package/dist/commonjs/models/components/pendinginvitation.d.ts.map +1 -1
- package/dist/commonjs/models/components/pendinginvitation.js +16 -0
- package/dist/commonjs/models/components/pendinginvitation.js.map +1 -1
- package/dist/commonjs/models/components/standingappointment.d.ts +2 -0
- package/dist/commonjs/models/components/standingappointment.d.ts.map +1 -1
- package/dist/commonjs/models/components/standingappointment.js +4 -0
- package/dist/commonjs/models/components/standingappointment.js.map +1 -1
- package/dist/commonjs/models/components/user.d.ts +4 -0
- package/dist/commonjs/models/components/user.d.ts.map +1 -1
- package/dist/commonjs/models/components/user.js +8 -0
- package/dist/commonjs/models/components/user.js.map +1 -1
- package/dist/commonjs/models/components/vendor.d.ts +7 -29
- package/dist/commonjs/models/components/vendor.d.ts.map +1 -1
- package/dist/commonjs/models/components/vendor.js +14 -32
- package/dist/commonjs/models/components/vendor.js.map +1 -1
- package/dist/commonjs/models/operations/addmobiledevice.d.ts +59 -0
- package/dist/commonjs/models/operations/addmobiledevice.d.ts.map +1 -0
- package/dist/commonjs/models/operations/addmobiledevice.js +107 -0
- package/dist/commonjs/models/operations/addmobiledevice.js.map +1 -0
- package/dist/commonjs/models/operations/deleteevent.d.ts +0 -28
- package/dist/commonjs/models/operations/deleteevent.d.ts.map +1 -1
- package/dist/commonjs/models/operations/deleteevent.js +1 -28
- package/dist/commonjs/models/operations/deleteevent.js.map +1 -1
- package/dist/commonjs/models/operations/deletefhirconfigbyid.d.ts +32 -0
- package/dist/commonjs/models/operations/deletefhirconfigbyid.d.ts.map +1 -0
- package/dist/commonjs/models/operations/deletefhirconfigbyid.js +69 -0
- package/dist/commonjs/models/operations/deletefhirconfigbyid.js.map +1 -0
- package/dist/commonjs/models/operations/deletevendormanagedbycompany.d.ts +0 -28
- package/dist/commonjs/models/operations/deletevendormanagedbycompany.d.ts.map +1 -1
- package/dist/commonjs/models/operations/deletevendormanagedbycompany.js +1 -30
- package/dist/commonjs/models/operations/deletevendormanagedbycompany.js.map +1 -1
- package/dist/commonjs/models/operations/getfhirconfig.d.ts +32 -0
- package/dist/commonjs/models/operations/getfhirconfig.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getfhirconfig.js +69 -0
- package/dist/commonjs/models/operations/getfhirconfig.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +5 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +5 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/listoffhirconfigurations.d.ts +106 -0
- package/dist/commonjs/models/operations/listoffhirconfigurations.d.ts.map +1 -0
- package/dist/commonjs/models/operations/listoffhirconfigurations.js +149 -0
- package/dist/commonjs/models/operations/listoffhirconfigurations.js.map +1 -0
- package/dist/commonjs/models/operations/securityzonecheckin.d.ts +0 -2
- package/dist/commonjs/models/operations/securityzonecheckin.d.ts.map +1 -1
- package/dist/commonjs/models/operations/securityzonecheckin.js +0 -4
- package/dist/commonjs/models/operations/securityzonecheckin.js.map +1 -1
- package/dist/commonjs/models/operations/updatefhirconfigbyid.d.ts +38 -0
- package/dist/commonjs/models/operations/updatefhirconfigbyid.d.ts.map +1 -0
- package/dist/commonjs/models/operations/updatefhirconfigbyid.js +81 -0
- package/dist/commonjs/models/operations/updatefhirconfigbyid.js.map +1 -0
- package/dist/commonjs/react-query/eventsDeleteEvent.d.ts +2 -1
- package/dist/commonjs/react-query/eventsDeleteEvent.d.ts.map +1 -1
- package/dist/commonjs/react-query/eventsDeleteEvent.js.map +1 -1
- package/dist/commonjs/react-query/fhirConfigsCreateAFhirConfig.d.ts +25 -0
- package/dist/commonjs/react-query/fhirConfigsCreateAFhirConfig.d.ts.map +1 -0
- package/dist/commonjs/react-query/fhirConfigsCreateAFhirConfig.js +49 -0
- package/dist/commonjs/react-query/fhirConfigsCreateAFhirConfig.js.map +1 -0
- package/dist/commonjs/react-query/fhirConfigsDeleteFhirConfigById.d.ts +24 -0
- package/dist/commonjs/react-query/fhirConfigsDeleteFhirConfigById.d.ts.map +1 -0
- package/dist/commonjs/react-query/fhirConfigsDeleteFhirConfigById.js +51 -0
- package/dist/commonjs/react-query/fhirConfigsDeleteFhirConfigById.js.map +1 -0
- package/dist/commonjs/react-query/fhirConfigsGetFhirConfig.d.ts +35 -0
- package/dist/commonjs/react-query/fhirConfigsGetFhirConfig.d.ts.map +1 -0
- package/dist/commonjs/react-query/fhirConfigsGetFhirConfig.js +95 -0
- package/dist/commonjs/react-query/fhirConfigsGetFhirConfig.js.map +1 -0
- package/dist/commonjs/react-query/fhirConfigsListOfFhirConfigurations.d.ts +75 -0
- package/dist/commonjs/react-query/fhirConfigsListOfFhirConfigurations.d.ts.map +1 -0
- package/dist/commonjs/react-query/fhirConfigsListOfFhirConfigurations.js +159 -0
- package/dist/commonjs/react-query/fhirConfigsListOfFhirConfigurations.js.map +1 -0
- package/dist/commonjs/react-query/fhirConfigsUpdateFhirConfigById.d.ts +21 -0
- package/dist/commonjs/react-query/fhirConfigsUpdateFhirConfigById.d.ts.map +1 -0
- package/dist/commonjs/react-query/fhirConfigsUpdateFhirConfigById.js +48 -0
- package/dist/commonjs/react-query/fhirConfigsUpdateFhirConfigById.js.map +1 -0
- package/dist/commonjs/react-query/index.d.ts +6 -0
- package/dist/commonjs/react-query/index.d.ts.map +1 -1
- package/dist/commonjs/react-query/index.js +6 -0
- package/dist/commonjs/react-query/index.js.map +1 -1
- package/dist/commonjs/react-query/mobileDevicesAddMobileDevice.d.ts +23 -0
- package/dist/commonjs/react-query/mobileDevicesAddMobileDevice.d.ts.map +1 -0
- package/dist/commonjs/react-query/mobileDevicesAddMobileDevice.js +47 -0
- package/dist/commonjs/react-query/mobileDevicesAddMobileDevice.js.map +1 -0
- package/dist/commonjs/react-query/vendorsDeleteVendorManagedByCompany.d.ts +2 -1
- package/dist/commonjs/react-query/vendorsDeleteVendorManagedByCompany.d.ts.map +1 -1
- package/dist/commonjs/react-query/vendorsDeleteVendorManagedByCompany.js.map +1 -1
- package/dist/commonjs/react-query/vendorsGetVendorsDetails.d.ts +4 -0
- package/dist/commonjs/react-query/vendorsGetVendorsDetails.d.ts.map +1 -1
- package/dist/commonjs/react-query/vendorsGetVendorsDetails.js +4 -0
- package/dist/commonjs/react-query/vendorsGetVendorsDetails.js.map +1 -1
- package/dist/commonjs/sdk/events.d.ts +2 -1
- package/dist/commonjs/sdk/events.d.ts.map +1 -1
- package/dist/commonjs/sdk/events.js.map +1 -1
- package/dist/commonjs/sdk/fhirconfigs.d.ts +45 -0
- package/dist/commonjs/sdk/fhirconfigs.d.ts.map +1 -0
- package/dist/commonjs/sdk/fhirconfigs.js +64 -0
- package/dist/commonjs/sdk/fhirconfigs.js.map +1 -0
- package/dist/commonjs/sdk/mobiledevices.d.ts +12 -0
- package/dist/commonjs/sdk/mobiledevices.d.ts.map +1 -0
- package/dist/commonjs/sdk/mobiledevices.js +22 -0
- package/dist/commonjs/sdk/mobiledevices.js.map +1 -0
- package/dist/commonjs/sdk/sdk.d.ts +6 -0
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.js +8 -0
- package/dist/commonjs/sdk/sdk.js.map +1 -1
- package/dist/commonjs/sdk/vendors.d.ts +3 -1
- package/dist/commonjs/sdk/vendors.d.ts.map +1 -1
- package/dist/commonjs/sdk/vendors.js +2 -0
- package/dist/commonjs/sdk/vendors.js.map +1 -1
- package/dist/esm/__tests__/events.test.js +3 -1
- package/dist/esm/__tests__/events.test.js.map +1 -1
- package/dist/esm/__tests__/fhirconfigs.test.d.ts +2 -0
- package/dist/esm/__tests__/fhirconfigs.test.d.ts.map +1 -0
- package/dist/esm/__tests__/fhirconfigs.test.js +158 -0
- package/dist/esm/__tests__/fhirconfigs.test.js.map +1 -0
- package/dist/esm/__tests__/mobiledevices.test.d.ts +2 -0
- package/dist/esm/__tests__/mobiledevices.test.d.ts.map +1 -0
- package/dist/esm/__tests__/mobiledevices.test.js +20 -0
- package/dist/esm/__tests__/mobiledevices.test.js.map +1 -0
- package/dist/esm/__tests__/webhooks.test.js +1 -1
- package/dist/esm/__tests__/webhooks.test.js.map +1 -1
- package/dist/esm/__tests__/zones.test.js +4 -2
- package/dist/esm/__tests__/zones.test.js.map +1 -1
- package/dist/esm/funcs/eventsDeleteEvent.d.ts +2 -1
- package/dist/esm/funcs/eventsDeleteEvent.d.ts.map +1 -1
- package/dist/esm/funcs/eventsDeleteEvent.js +2 -1
- package/dist/esm/funcs/eventsDeleteEvent.js.map +1 -1
- package/dist/esm/funcs/fhirConfigsCreateAFhirConfig.d.ts +20 -0
- package/dist/esm/funcs/fhirConfigsCreateAFhirConfig.d.ts.map +1 -0
- package/dist/esm/funcs/fhirConfigsCreateAFhirConfig.js +83 -0
- package/dist/esm/funcs/fhirConfigsCreateAFhirConfig.js.map +1 -0
- package/dist/esm/funcs/fhirConfigsDeleteFhirConfigById.d.ts +19 -0
- package/dist/esm/funcs/fhirConfigsDeleteFhirConfigById.d.ts.map +1 -0
- package/dist/esm/funcs/fhirConfigsDeleteFhirConfigById.js +87 -0
- package/dist/esm/funcs/fhirConfigsDeleteFhirConfigById.js.map +1 -0
- package/dist/esm/funcs/fhirConfigsGetFhirConfig.d.ts +21 -0
- package/dist/esm/funcs/fhirConfigsGetFhirConfig.d.ts.map +1 -0
- package/dist/esm/funcs/fhirConfigsGetFhirConfig.js +89 -0
- package/dist/esm/funcs/fhirConfigsGetFhirConfig.js.map +1 -0
- package/dist/esm/funcs/fhirConfigsListOfFhirConfigurations.d.ts +21 -0
- package/dist/esm/funcs/fhirConfigsListOfFhirConfigurations.d.ts.map +1 -0
- package/dist/esm/funcs/fhirConfigsListOfFhirConfigurations.js +120 -0
- package/dist/esm/funcs/fhirConfigsListOfFhirConfigurations.js.map +1 -0
- package/dist/esm/funcs/fhirConfigsUpdateFhirConfigById.d.ts +16 -0
- package/dist/esm/funcs/fhirConfigsUpdateFhirConfigById.d.ts.map +1 -0
- package/dist/esm/funcs/fhirConfigsUpdateFhirConfigById.js +87 -0
- package/dist/esm/funcs/fhirConfigsUpdateFhirConfigById.js.map +1 -0
- package/dist/esm/funcs/mobileDevicesAddMobileDevice.d.ts +18 -0
- package/dist/esm/funcs/mobileDevicesAddMobileDevice.d.ts.map +1 -0
- package/dist/esm/funcs/mobileDevicesAddMobileDevice.js +81 -0
- package/dist/esm/funcs/mobileDevicesAddMobileDevice.js.map +1 -0
- package/dist/esm/funcs/vendorsDeleteVendorManagedByCompany.d.ts +2 -1
- package/dist/esm/funcs/vendorsDeleteVendorManagedByCompany.d.ts.map +1 -1
- package/dist/esm/funcs/vendorsDeleteVendorManagedByCompany.js +2 -2
- package/dist/esm/funcs/vendorsDeleteVendorManagedByCompany.js.map +1 -1
- package/dist/esm/funcs/vendorsGetVendorsDetails.d.ts +2 -0
- package/dist/esm/funcs/vendorsGetVendorsDetails.d.ts.map +1 -1
- package/dist/esm/funcs/vendorsGetVendorsDetails.js +2 -0
- package/dist/esm/funcs/vendorsGetVendorsDetails.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/security.d.ts.map +1 -1
- package/dist/esm/lib/security.js.map +1 -1
- package/dist/esm/models/components/backgroundcheckresult.d.ts +46 -2
- package/dist/esm/models/components/backgroundcheckresult.d.ts.map +1 -1
- package/dist/esm/models/components/backgroundcheckresult.js +46 -2
- package/dist/esm/models/components/backgroundcheckresult.js.map +1 -1
- package/dist/esm/models/components/deleteapiresponse.d.ts +32 -0
- package/dist/esm/models/components/deleteapiresponse.d.ts.map +1 -0
- package/dist/esm/models/components/deleteapiresponse.js +31 -0
- package/dist/esm/models/components/deleteapiresponse.js.map +1 -0
- 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/feed.d.ts +2 -0
- package/dist/esm/models/components/feed.d.ts.map +1 -1
- package/dist/esm/models/components/feed.js +4 -0
- package/dist/esm/models/components/feed.js.map +1 -1
- package/dist/esm/models/components/fhirconfig.d.ts +192 -0
- package/dist/esm/models/components/fhirconfig.d.ts.map +1 -0
- package/dist/esm/models/components/fhirconfig.js +222 -0
- package/dist/esm/models/components/fhirconfig.js.map +1 -0
- package/dist/esm/models/components/fhirconfigcreate.d.ts +137 -0
- package/dist/esm/models/components/fhirconfigcreate.d.ts.map +1 -0
- package/dist/esm/models/components/fhirconfigcreate.js +197 -0
- package/dist/esm/models/components/fhirconfigcreate.js.map +1 -0
- package/dist/esm/models/components/fhirconfigpartialupdate.d.ts +137 -0
- package/dist/esm/models/components/fhirconfigpartialupdate.d.ts.map +1 -0
- package/dist/esm/models/components/fhirconfigpartialupdate.js +199 -0
- package/dist/esm/models/components/fhirconfigpartialupdate.js.map +1 -0
- 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/invitee.d.ts +2 -0
- package/dist/esm/models/components/invitee.d.ts.map +1 -1
- package/dist/esm/models/components/invitee.js +11 -0
- package/dist/esm/models/components/invitee.js.map +1 -1
- package/dist/esm/models/components/pendinginvitation.d.ts +6 -0
- package/dist/esm/models/components/pendinginvitation.d.ts.map +1 -1
- package/dist/esm/models/components/pendinginvitation.js +16 -0
- package/dist/esm/models/components/pendinginvitation.js.map +1 -1
- package/dist/esm/models/components/standingappointment.d.ts +2 -0
- package/dist/esm/models/components/standingappointment.d.ts.map +1 -1
- package/dist/esm/models/components/standingappointment.js +4 -0
- package/dist/esm/models/components/standingappointment.js.map +1 -1
- package/dist/esm/models/components/user.d.ts +4 -0
- package/dist/esm/models/components/user.d.ts.map +1 -1
- package/dist/esm/models/components/user.js +8 -0
- package/dist/esm/models/components/user.js.map +1 -1
- package/dist/esm/models/components/vendor.d.ts +7 -29
- package/dist/esm/models/components/vendor.d.ts.map +1 -1
- package/dist/esm/models/components/vendor.js +13 -29
- package/dist/esm/models/components/vendor.js.map +1 -1
- package/dist/esm/models/operations/addmobiledevice.d.ts +59 -0
- package/dist/esm/models/operations/addmobiledevice.d.ts.map +1 -0
- package/dist/esm/models/operations/addmobiledevice.js +67 -0
- package/dist/esm/models/operations/addmobiledevice.js.map +1 -0
- package/dist/esm/models/operations/deleteevent.d.ts +0 -28
- package/dist/esm/models/operations/deleteevent.d.ts.map +1 -1
- package/dist/esm/models/operations/deleteevent.js +0 -25
- package/dist/esm/models/operations/deleteevent.js.map +1 -1
- package/dist/esm/models/operations/deletefhirconfigbyid.d.ts +32 -0
- package/dist/esm/models/operations/deletefhirconfigbyid.d.ts.map +1 -0
- package/dist/esm/models/operations/deletefhirconfigbyid.js +31 -0
- package/dist/esm/models/operations/deletefhirconfigbyid.js.map +1 -0
- package/dist/esm/models/operations/deletevendormanagedbycompany.d.ts +0 -28
- package/dist/esm/models/operations/deletevendormanagedbycompany.d.ts.map +1 -1
- package/dist/esm/models/operations/deletevendormanagedbycompany.js +0 -27
- package/dist/esm/models/operations/deletevendormanagedbycompany.js.map +1 -1
- package/dist/esm/models/operations/getfhirconfig.d.ts +32 -0
- package/dist/esm/models/operations/getfhirconfig.d.ts.map +1 -0
- package/dist/esm/models/operations/getfhirconfig.js +31 -0
- package/dist/esm/models/operations/getfhirconfig.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +5 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +5 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/listoffhirconfigurations.d.ts +106 -0
- package/dist/esm/models/operations/listoffhirconfigurations.d.ts.map +1 -0
- package/dist/esm/models/operations/listoffhirconfigurations.js +107 -0
- package/dist/esm/models/operations/listoffhirconfigurations.js.map +1 -0
- package/dist/esm/models/operations/securityzonecheckin.d.ts +0 -2
- package/dist/esm/models/operations/securityzonecheckin.d.ts.map +1 -1
- package/dist/esm/models/operations/securityzonecheckin.js +0 -4
- package/dist/esm/models/operations/securityzonecheckin.js.map +1 -1
- package/dist/esm/models/operations/updatefhirconfigbyid.d.ts +38 -0
- package/dist/esm/models/operations/updatefhirconfigbyid.d.ts.map +1 -0
- package/dist/esm/models/operations/updatefhirconfigbyid.js +43 -0
- package/dist/esm/models/operations/updatefhirconfigbyid.js.map +1 -0
- package/dist/esm/react-query/eventsDeleteEvent.d.ts +2 -1
- package/dist/esm/react-query/eventsDeleteEvent.d.ts.map +1 -1
- package/dist/esm/react-query/eventsDeleteEvent.js.map +1 -1
- package/dist/esm/react-query/fhirConfigsCreateAFhirConfig.d.ts +25 -0
- package/dist/esm/react-query/fhirConfigsCreateAFhirConfig.d.ts.map +1 -0
- package/dist/esm/react-query/fhirConfigsCreateAFhirConfig.js +44 -0
- package/dist/esm/react-query/fhirConfigsCreateAFhirConfig.js.map +1 -0
- package/dist/esm/react-query/fhirConfigsDeleteFhirConfigById.d.ts +24 -0
- package/dist/esm/react-query/fhirConfigsDeleteFhirConfigById.d.ts.map +1 -0
- package/dist/esm/react-query/fhirConfigsDeleteFhirConfigById.js +46 -0
- package/dist/esm/react-query/fhirConfigsDeleteFhirConfigById.js.map +1 -0
- package/dist/esm/react-query/fhirConfigsGetFhirConfig.d.ts +35 -0
- package/dist/esm/react-query/fhirConfigsGetFhirConfig.d.ts.map +1 -0
- package/dist/esm/react-query/fhirConfigsGetFhirConfig.js +85 -0
- package/dist/esm/react-query/fhirConfigsGetFhirConfig.js.map +1 -0
- package/dist/esm/react-query/fhirConfigsListOfFhirConfigurations.d.ts +75 -0
- package/dist/esm/react-query/fhirConfigsListOfFhirConfigurations.d.ts.map +1 -0
- package/dist/esm/react-query/fhirConfigsListOfFhirConfigurations.js +146 -0
- package/dist/esm/react-query/fhirConfigsListOfFhirConfigurations.js.map +1 -0
- package/dist/esm/react-query/fhirConfigsUpdateFhirConfigById.d.ts +21 -0
- package/dist/esm/react-query/fhirConfigsUpdateFhirConfigById.d.ts.map +1 -0
- package/dist/esm/react-query/fhirConfigsUpdateFhirConfigById.js +43 -0
- package/dist/esm/react-query/fhirConfigsUpdateFhirConfigById.js.map +1 -0
- package/dist/esm/react-query/index.d.ts +6 -0
- package/dist/esm/react-query/index.d.ts.map +1 -1
- package/dist/esm/react-query/index.js +6 -0
- package/dist/esm/react-query/index.js.map +1 -1
- package/dist/esm/react-query/mobileDevicesAddMobileDevice.d.ts +23 -0
- package/dist/esm/react-query/mobileDevicesAddMobileDevice.d.ts.map +1 -0
- package/dist/esm/react-query/mobileDevicesAddMobileDevice.js +42 -0
- package/dist/esm/react-query/mobileDevicesAddMobileDevice.js.map +1 -0
- package/dist/esm/react-query/vendorsDeleteVendorManagedByCompany.d.ts +2 -1
- package/dist/esm/react-query/vendorsDeleteVendorManagedByCompany.d.ts.map +1 -1
- package/dist/esm/react-query/vendorsDeleteVendorManagedByCompany.js.map +1 -1
- package/dist/esm/react-query/vendorsGetVendorsDetails.d.ts +4 -0
- package/dist/esm/react-query/vendorsGetVendorsDetails.d.ts.map +1 -1
- package/dist/esm/react-query/vendorsGetVendorsDetails.js +4 -0
- package/dist/esm/react-query/vendorsGetVendorsDetails.js.map +1 -1
- package/dist/esm/sdk/events.d.ts +2 -1
- package/dist/esm/sdk/events.d.ts.map +1 -1
- package/dist/esm/sdk/events.js.map +1 -1
- package/dist/esm/sdk/fhirconfigs.d.ts +45 -0
- package/dist/esm/sdk/fhirconfigs.d.ts.map +1 -0
- package/dist/esm/sdk/fhirconfigs.js +60 -0
- package/dist/esm/sdk/fhirconfigs.js.map +1 -0
- package/dist/esm/sdk/mobiledevices.d.ts +12 -0
- package/dist/esm/sdk/mobiledevices.d.ts.map +1 -0
- package/dist/esm/sdk/mobiledevices.js +18 -0
- package/dist/esm/sdk/mobiledevices.js.map +1 -0
- package/dist/esm/sdk/sdk.d.ts +6 -0
- package/dist/esm/sdk/sdk.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.js +8 -0
- package/dist/esm/sdk/sdk.js.map +1 -1
- package/dist/esm/sdk/vendors.d.ts +3 -1
- package/dist/esm/sdk/vendors.d.ts.map +1 -1
- package/dist/esm/sdk/vendors.js +2 -0
- package/dist/esm/sdk/vendors.js.map +1 -1
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/events.test.ts +3 -1
- package/src/__tests__/fhirconfigs.test.ts +173 -0
- package/src/__tests__/mobiledevices.test.ts +23 -0
- package/src/__tests__/webhooks.test.ts +1 -1
- package/src/__tests__/zones.test.ts +4 -2
- package/src/funcs/eventsDeleteEvent.ts +5 -4
- package/src/funcs/fhirConfigsCreateAFhirConfig.ts +171 -0
- package/src/funcs/fhirConfigsDeleteFhirConfigById.ts +177 -0
- package/src/funcs/fhirConfigsGetFhirConfig.ts +178 -0
- package/src/funcs/fhirConfigsListOfFhirConfigurations.ts +248 -0
- package/src/funcs/fhirConfigsUpdateFhirConfigById.ts +177 -0
- package/src/funcs/mobileDevicesAddMobileDevice.ts +170 -0
- package/src/funcs/vendorsDeleteVendorManagedByCompany.ts +5 -8
- package/src/funcs/vendorsGetVendorsDetails.ts +2 -0
- package/src/lib/config.ts +4 -4
- package/src/lib/security.ts +4 -1
- package/src/models/components/backgroundcheckresult.ts +78 -4
- package/src/models/components/deleteapiresponse.ts +69 -0
- package/src/models/components/expand.ts +2 -0
- package/src/models/components/feed.ts +6 -0
- package/src/models/components/fhirconfig.ts +417 -0
- package/src/models/components/fhirconfigcreate.ts +380 -0
- package/src/models/components/fhirconfigpartialupdate.ts +406 -0
- package/src/models/components/index.ts +4 -0
- package/src/models/components/invitee.ts +13 -0
- package/src/models/components/pendinginvitation.ts +22 -0
- package/src/models/components/standingappointment.ts +6 -0
- package/src/models/components/user.ts +12 -0
- package/src/models/components/vendor.ts +29 -68
- package/src/models/operations/addmobiledevice.ts +142 -0
- package/src/models/operations/deleteevent.ts +0 -61
- package/src/models/operations/deletefhirconfigbyid.ts +71 -0
- package/src/models/operations/deletevendormanagedbycompany.ts +0 -74
- package/src/models/operations/getfhirconfig.ts +69 -0
- package/src/models/operations/index.ts +5 -0
- package/src/models/operations/listoffhirconfigurations.ts +243 -0
- package/src/models/operations/securityzonecheckin.ts +0 -6
- package/src/models/operations/updatefhirconfigbyid.ts +88 -0
- package/src/react-query/eventsDeleteEvent.ts +2 -1
- package/src/react-query/fhirConfigsCreateAFhirConfig.ts +90 -0
- package/src/react-query/fhirConfigsDeleteFhirConfigById.ts +94 -0
- package/src/react-query/fhirConfigsGetFhirConfig.ts +162 -0
- package/src/react-query/fhirConfigsListOfFhirConfigurations.ts +342 -0
- package/src/react-query/fhirConfigsUpdateFhirConfigById.ts +90 -0
- package/src/react-query/index.ts +6 -0
- package/src/react-query/mobileDevicesAddMobileDevice.ts +89 -0
- package/src/react-query/vendorsDeleteVendorManagedByCompany.ts +2 -1
- package/src/react-query/vendorsGetVendorsDetails.ts +4 -0
- package/src/sdk/events.ts +2 -1
- package/src/sdk/fhirconfigs.ts +104 -0
- package/src/sdk/mobiledevices.ts +27 -0
- package/src/sdk/sdk.ts +12 -0
- package/src/sdk/vendors.ts +3 -3
- package/.devcontainer/README.md +0 -35
- package/docs/sdks/companies/README.md +0 -126
- package/docs/sdks/datarequests/README.md +0 -302
- package/docs/sdks/events/README.md +0 -1126
- package/docs/sdks/greensecurity/README.md +0 -14
- package/docs/sdks/invoices/README.md +0 -324
- package/docs/sdks/organizations/README.md +0 -508
- package/docs/sdks/supportarticles/README.md +0 -249
- package/docs/sdks/systems/README.md +0 -136
- package/docs/sdks/users/README.md +0 -831
- package/docs/sdks/vendors/README.md +0 -4787
- package/docs/sdks/vendorscans/README.md +0 -104
- package/docs/sdks/webhooks/README.md +0 -352
- package/docs/sdks/zones/README.md +0 -344
- package/examples/README.md +0 -31
|
@@ -30,6 +30,7 @@ export type Feed = {
|
|
|
30
30
|
facility?: string | null | undefined;
|
|
31
31
|
department?: string | null | undefined;
|
|
32
32
|
eventCreator?: string | null | undefined;
|
|
33
|
+
eventCreatorImgUrl?: string | null | undefined;
|
|
33
34
|
invitees?: Array<Invitee | null> | undefined;
|
|
34
35
|
};
|
|
35
36
|
|
|
@@ -48,6 +49,7 @@ export const Feed$inboundSchema: z.ZodType<Feed, z.ZodTypeDef, unknown> = z
|
|
|
48
49
|
facility: z.nullable(z.string()).optional(),
|
|
49
50
|
department: z.nullable(z.string()).optional(),
|
|
50
51
|
event_creator: z.nullable(z.string()).optional(),
|
|
52
|
+
event_creator_img_url: z.nullable(z.string()).optional(),
|
|
51
53
|
invitees: z.array(z.nullable(Invitee$inboundSchema)).optional(),
|
|
52
54
|
}).transform((v) => {
|
|
53
55
|
return remap$(v, {
|
|
@@ -55,6 +57,7 @@ export const Feed$inboundSchema: z.ZodType<Feed, z.ZodTypeDef, unknown> = z
|
|
|
55
57
|
"standing_appt": "standingAppt",
|
|
56
58
|
"bringing_food": "bringingFood",
|
|
57
59
|
"event_creator": "eventCreator",
|
|
60
|
+
"event_creator_img_url": "eventCreatorImgUrl",
|
|
58
61
|
});
|
|
59
62
|
});
|
|
60
63
|
|
|
@@ -72,6 +75,7 @@ export type Feed$Outbound = {
|
|
|
72
75
|
facility?: string | null | undefined;
|
|
73
76
|
department?: string | null | undefined;
|
|
74
77
|
event_creator?: string | null | undefined;
|
|
78
|
+
event_creator_img_url?: string | null | undefined;
|
|
75
79
|
invitees?: Array<Invitee$Outbound | null> | undefined;
|
|
76
80
|
};
|
|
77
81
|
|
|
@@ -90,6 +94,7 @@ export const Feed$outboundSchema: z.ZodType<Feed$Outbound, z.ZodTypeDef, Feed> =
|
|
|
90
94
|
facility: z.nullable(z.string()).optional(),
|
|
91
95
|
department: z.nullable(z.string()).optional(),
|
|
92
96
|
eventCreator: z.nullable(z.string()).optional(),
|
|
97
|
+
eventCreatorImgUrl: z.nullable(z.string()).optional(),
|
|
93
98
|
invitees: z.array(z.nullable(Invitee$outboundSchema)).optional(),
|
|
94
99
|
}).transform((v) => {
|
|
95
100
|
return remap$(v, {
|
|
@@ -97,6 +102,7 @@ export const Feed$outboundSchema: z.ZodType<Feed$Outbound, z.ZodTypeDef, Feed> =
|
|
|
97
102
|
standingAppt: "standing_appt",
|
|
98
103
|
bringingFood: "bringing_food",
|
|
99
104
|
eventCreator: "event_creator",
|
|
105
|
+
eventCreatorImgUrl: "event_creator_img_url",
|
|
100
106
|
});
|
|
101
107
|
});
|
|
102
108
|
|
|
@@ -0,0 +1,417 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
9
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
|
|
12
|
+
export type ProductionProfile = {
|
|
13
|
+
/**
|
|
14
|
+
* Client ID assigned by the hospital facility for the FHIR instance
|
|
15
|
+
*/
|
|
16
|
+
clientId: string;
|
|
17
|
+
/**
|
|
18
|
+
* The base URL of the FHIR instance. FHIR requests will be sent to this URL with the endpoint appended.
|
|
19
|
+
*/
|
|
20
|
+
baseUrl: string;
|
|
21
|
+
/**
|
|
22
|
+
* URL where the client_id and private key can be used to exchange for a temporary token for use with the FHIR api.
|
|
23
|
+
*/
|
|
24
|
+
tokenUrl: string;
|
|
25
|
+
/**
|
|
26
|
+
* The full URL of a FHIR endpoint which contains a searchable list of patients. If present, searches will be done via the list instead of directly via the patient FHIR endpoint.
|
|
27
|
+
*/
|
|
28
|
+
patientListUrl?: string | undefined;
|
|
29
|
+
patientListId?: string | undefined;
|
|
30
|
+
privateKey?: string | undefined;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export type NonProductionProfile = {
|
|
34
|
+
baseUrlNp?: string | undefined;
|
|
35
|
+
clientIdNp?: string | undefined;
|
|
36
|
+
tokenUrlNp?: string | undefined;
|
|
37
|
+
patientListUrlNp?: string | undefined;
|
|
38
|
+
patientListIdNp?: string | undefined;
|
|
39
|
+
privateKeyNp?: string | undefined;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
export type FhirConfigAppliesTo = {
|
|
43
|
+
facilityId: number;
|
|
44
|
+
/**
|
|
45
|
+
* If usage of the FhirConfig should be locked down to only specific users at the hospital facility, enter their user_ids in this array. They will be the only people to be able to do patient lookups in the visitor management module.
|
|
46
|
+
*/
|
|
47
|
+
userIds?: Array<number> | undefined;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Which profile is currently active for a given FhirConfig (ability to promote a configuration from Non-Production to Production for a facility).
|
|
52
|
+
*/
|
|
53
|
+
export const ActiveProfile = {
|
|
54
|
+
Production: "Production",
|
|
55
|
+
NonProduction: "Non-Production",
|
|
56
|
+
Inactive: "Inactive",
|
|
57
|
+
} as const;
|
|
58
|
+
/**
|
|
59
|
+
* Which profile is currently active for a given FhirConfig (ability to promote a configuration from Non-Production to Production for a facility).
|
|
60
|
+
*/
|
|
61
|
+
export type ActiveProfile = ClosedEnum<typeof ActiveProfile>;
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Configuration for connecting to a facility
|
|
65
|
+
*/
|
|
66
|
+
export type FhirConfig = {
|
|
67
|
+
id: number;
|
|
68
|
+
productionProfile: ProductionProfile;
|
|
69
|
+
nonProductionProfile: NonProductionProfile;
|
|
70
|
+
appliesTo: FhirConfigAppliesTo;
|
|
71
|
+
/**
|
|
72
|
+
* Which profile is currently active for a given FhirConfig (ability to promote a configuration from Non-Production to Production for a facility).
|
|
73
|
+
*/
|
|
74
|
+
activeProfile?: ActiveProfile | undefined;
|
|
75
|
+
notes?: string | undefined;
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
/** @internal */
|
|
79
|
+
export const ProductionProfile$inboundSchema: z.ZodType<
|
|
80
|
+
ProductionProfile,
|
|
81
|
+
z.ZodTypeDef,
|
|
82
|
+
unknown
|
|
83
|
+
> = z.object({
|
|
84
|
+
client_id: z.string(),
|
|
85
|
+
base_url: z.string(),
|
|
86
|
+
token_url: z.string(),
|
|
87
|
+
patient_list_url: z.string().optional(),
|
|
88
|
+
patient_list_id: z.string().optional(),
|
|
89
|
+
private_key: z.string().optional(),
|
|
90
|
+
}).transform((v) => {
|
|
91
|
+
return remap$(v, {
|
|
92
|
+
"client_id": "clientId",
|
|
93
|
+
"base_url": "baseUrl",
|
|
94
|
+
"token_url": "tokenUrl",
|
|
95
|
+
"patient_list_url": "patientListUrl",
|
|
96
|
+
"patient_list_id": "patientListId",
|
|
97
|
+
"private_key": "privateKey",
|
|
98
|
+
});
|
|
99
|
+
});
|
|
100
|
+
|
|
101
|
+
/** @internal */
|
|
102
|
+
export type ProductionProfile$Outbound = {
|
|
103
|
+
client_id: string;
|
|
104
|
+
base_url: string;
|
|
105
|
+
token_url: string;
|
|
106
|
+
patient_list_url?: string | undefined;
|
|
107
|
+
patient_list_id?: string | undefined;
|
|
108
|
+
private_key?: string | undefined;
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
/** @internal */
|
|
112
|
+
export const ProductionProfile$outboundSchema: z.ZodType<
|
|
113
|
+
ProductionProfile$Outbound,
|
|
114
|
+
z.ZodTypeDef,
|
|
115
|
+
ProductionProfile
|
|
116
|
+
> = z.object({
|
|
117
|
+
clientId: z.string(),
|
|
118
|
+
baseUrl: z.string(),
|
|
119
|
+
tokenUrl: z.string(),
|
|
120
|
+
patientListUrl: z.string().optional(),
|
|
121
|
+
patientListId: z.string().optional(),
|
|
122
|
+
privateKey: z.string().optional(),
|
|
123
|
+
}).transform((v) => {
|
|
124
|
+
return remap$(v, {
|
|
125
|
+
clientId: "client_id",
|
|
126
|
+
baseUrl: "base_url",
|
|
127
|
+
tokenUrl: "token_url",
|
|
128
|
+
patientListUrl: "patient_list_url",
|
|
129
|
+
patientListId: "patient_list_id",
|
|
130
|
+
privateKey: "private_key",
|
|
131
|
+
});
|
|
132
|
+
});
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* @internal
|
|
136
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
137
|
+
*/
|
|
138
|
+
export namespace ProductionProfile$ {
|
|
139
|
+
/** @deprecated use `ProductionProfile$inboundSchema` instead. */
|
|
140
|
+
export const inboundSchema = ProductionProfile$inboundSchema;
|
|
141
|
+
/** @deprecated use `ProductionProfile$outboundSchema` instead. */
|
|
142
|
+
export const outboundSchema = ProductionProfile$outboundSchema;
|
|
143
|
+
/** @deprecated use `ProductionProfile$Outbound` instead. */
|
|
144
|
+
export type Outbound = ProductionProfile$Outbound;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
export function productionProfileToJSON(
|
|
148
|
+
productionProfile: ProductionProfile,
|
|
149
|
+
): string {
|
|
150
|
+
return JSON.stringify(
|
|
151
|
+
ProductionProfile$outboundSchema.parse(productionProfile),
|
|
152
|
+
);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
export function productionProfileFromJSON(
|
|
156
|
+
jsonString: string,
|
|
157
|
+
): SafeParseResult<ProductionProfile, SDKValidationError> {
|
|
158
|
+
return safeParse(
|
|
159
|
+
jsonString,
|
|
160
|
+
(x) => ProductionProfile$inboundSchema.parse(JSON.parse(x)),
|
|
161
|
+
`Failed to parse 'ProductionProfile' from JSON`,
|
|
162
|
+
);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
/** @internal */
|
|
166
|
+
export const NonProductionProfile$inboundSchema: z.ZodType<
|
|
167
|
+
NonProductionProfile,
|
|
168
|
+
z.ZodTypeDef,
|
|
169
|
+
unknown
|
|
170
|
+
> = z.object({
|
|
171
|
+
base_url_np: z.string().optional(),
|
|
172
|
+
client_id_np: z.string().optional(),
|
|
173
|
+
token_url_np: z.string().optional(),
|
|
174
|
+
patient_list_url_np: z.string().optional(),
|
|
175
|
+
patient_list_id_np: z.string().optional(),
|
|
176
|
+
private_key_np: z.string().optional(),
|
|
177
|
+
}).transform((v) => {
|
|
178
|
+
return remap$(v, {
|
|
179
|
+
"base_url_np": "baseUrlNp",
|
|
180
|
+
"client_id_np": "clientIdNp",
|
|
181
|
+
"token_url_np": "tokenUrlNp",
|
|
182
|
+
"patient_list_url_np": "patientListUrlNp",
|
|
183
|
+
"patient_list_id_np": "patientListIdNp",
|
|
184
|
+
"private_key_np": "privateKeyNp",
|
|
185
|
+
});
|
|
186
|
+
});
|
|
187
|
+
|
|
188
|
+
/** @internal */
|
|
189
|
+
export type NonProductionProfile$Outbound = {
|
|
190
|
+
base_url_np?: string | undefined;
|
|
191
|
+
client_id_np?: string | undefined;
|
|
192
|
+
token_url_np?: string | undefined;
|
|
193
|
+
patient_list_url_np?: string | undefined;
|
|
194
|
+
patient_list_id_np?: string | undefined;
|
|
195
|
+
private_key_np?: string | undefined;
|
|
196
|
+
};
|
|
197
|
+
|
|
198
|
+
/** @internal */
|
|
199
|
+
export const NonProductionProfile$outboundSchema: z.ZodType<
|
|
200
|
+
NonProductionProfile$Outbound,
|
|
201
|
+
z.ZodTypeDef,
|
|
202
|
+
NonProductionProfile
|
|
203
|
+
> = z.object({
|
|
204
|
+
baseUrlNp: z.string().optional(),
|
|
205
|
+
clientIdNp: z.string().optional(),
|
|
206
|
+
tokenUrlNp: z.string().optional(),
|
|
207
|
+
patientListUrlNp: z.string().optional(),
|
|
208
|
+
patientListIdNp: z.string().optional(),
|
|
209
|
+
privateKeyNp: z.string().optional(),
|
|
210
|
+
}).transform((v) => {
|
|
211
|
+
return remap$(v, {
|
|
212
|
+
baseUrlNp: "base_url_np",
|
|
213
|
+
clientIdNp: "client_id_np",
|
|
214
|
+
tokenUrlNp: "token_url_np",
|
|
215
|
+
patientListUrlNp: "patient_list_url_np",
|
|
216
|
+
patientListIdNp: "patient_list_id_np",
|
|
217
|
+
privateKeyNp: "private_key_np",
|
|
218
|
+
});
|
|
219
|
+
});
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* @internal
|
|
223
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
224
|
+
*/
|
|
225
|
+
export namespace NonProductionProfile$ {
|
|
226
|
+
/** @deprecated use `NonProductionProfile$inboundSchema` instead. */
|
|
227
|
+
export const inboundSchema = NonProductionProfile$inboundSchema;
|
|
228
|
+
/** @deprecated use `NonProductionProfile$outboundSchema` instead. */
|
|
229
|
+
export const outboundSchema = NonProductionProfile$outboundSchema;
|
|
230
|
+
/** @deprecated use `NonProductionProfile$Outbound` instead. */
|
|
231
|
+
export type Outbound = NonProductionProfile$Outbound;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
export function nonProductionProfileToJSON(
|
|
235
|
+
nonProductionProfile: NonProductionProfile,
|
|
236
|
+
): string {
|
|
237
|
+
return JSON.stringify(
|
|
238
|
+
NonProductionProfile$outboundSchema.parse(nonProductionProfile),
|
|
239
|
+
);
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
export function nonProductionProfileFromJSON(
|
|
243
|
+
jsonString: string,
|
|
244
|
+
): SafeParseResult<NonProductionProfile, SDKValidationError> {
|
|
245
|
+
return safeParse(
|
|
246
|
+
jsonString,
|
|
247
|
+
(x) => NonProductionProfile$inboundSchema.parse(JSON.parse(x)),
|
|
248
|
+
`Failed to parse 'NonProductionProfile' from JSON`,
|
|
249
|
+
);
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
/** @internal */
|
|
253
|
+
export const FhirConfigAppliesTo$inboundSchema: z.ZodType<
|
|
254
|
+
FhirConfigAppliesTo,
|
|
255
|
+
z.ZodTypeDef,
|
|
256
|
+
unknown
|
|
257
|
+
> = z.object({
|
|
258
|
+
facility_id: z.number().int(),
|
|
259
|
+
user_ids: z.array(z.number().int()).optional(),
|
|
260
|
+
}).transform((v) => {
|
|
261
|
+
return remap$(v, {
|
|
262
|
+
"facility_id": "facilityId",
|
|
263
|
+
"user_ids": "userIds",
|
|
264
|
+
});
|
|
265
|
+
});
|
|
266
|
+
|
|
267
|
+
/** @internal */
|
|
268
|
+
export type FhirConfigAppliesTo$Outbound = {
|
|
269
|
+
facility_id: number;
|
|
270
|
+
user_ids?: Array<number> | undefined;
|
|
271
|
+
};
|
|
272
|
+
|
|
273
|
+
/** @internal */
|
|
274
|
+
export const FhirConfigAppliesTo$outboundSchema: z.ZodType<
|
|
275
|
+
FhirConfigAppliesTo$Outbound,
|
|
276
|
+
z.ZodTypeDef,
|
|
277
|
+
FhirConfigAppliesTo
|
|
278
|
+
> = z.object({
|
|
279
|
+
facilityId: z.number().int(),
|
|
280
|
+
userIds: z.array(z.number().int()).optional(),
|
|
281
|
+
}).transform((v) => {
|
|
282
|
+
return remap$(v, {
|
|
283
|
+
facilityId: "facility_id",
|
|
284
|
+
userIds: "user_ids",
|
|
285
|
+
});
|
|
286
|
+
});
|
|
287
|
+
|
|
288
|
+
/**
|
|
289
|
+
* @internal
|
|
290
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
291
|
+
*/
|
|
292
|
+
export namespace FhirConfigAppliesTo$ {
|
|
293
|
+
/** @deprecated use `FhirConfigAppliesTo$inboundSchema` instead. */
|
|
294
|
+
export const inboundSchema = FhirConfigAppliesTo$inboundSchema;
|
|
295
|
+
/** @deprecated use `FhirConfigAppliesTo$outboundSchema` instead. */
|
|
296
|
+
export const outboundSchema = FhirConfigAppliesTo$outboundSchema;
|
|
297
|
+
/** @deprecated use `FhirConfigAppliesTo$Outbound` instead. */
|
|
298
|
+
export type Outbound = FhirConfigAppliesTo$Outbound;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
export function fhirConfigAppliesToToJSON(
|
|
302
|
+
fhirConfigAppliesTo: FhirConfigAppliesTo,
|
|
303
|
+
): string {
|
|
304
|
+
return JSON.stringify(
|
|
305
|
+
FhirConfigAppliesTo$outboundSchema.parse(fhirConfigAppliesTo),
|
|
306
|
+
);
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
export function fhirConfigAppliesToFromJSON(
|
|
310
|
+
jsonString: string,
|
|
311
|
+
): SafeParseResult<FhirConfigAppliesTo, SDKValidationError> {
|
|
312
|
+
return safeParse(
|
|
313
|
+
jsonString,
|
|
314
|
+
(x) => FhirConfigAppliesTo$inboundSchema.parse(JSON.parse(x)),
|
|
315
|
+
`Failed to parse 'FhirConfigAppliesTo' from JSON`,
|
|
316
|
+
);
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
/** @internal */
|
|
320
|
+
export const ActiveProfile$inboundSchema: z.ZodNativeEnum<
|
|
321
|
+
typeof ActiveProfile
|
|
322
|
+
> = z.nativeEnum(ActiveProfile);
|
|
323
|
+
|
|
324
|
+
/** @internal */
|
|
325
|
+
export const ActiveProfile$outboundSchema: z.ZodNativeEnum<
|
|
326
|
+
typeof ActiveProfile
|
|
327
|
+
> = ActiveProfile$inboundSchema;
|
|
328
|
+
|
|
329
|
+
/**
|
|
330
|
+
* @internal
|
|
331
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
332
|
+
*/
|
|
333
|
+
export namespace ActiveProfile$ {
|
|
334
|
+
/** @deprecated use `ActiveProfile$inboundSchema` instead. */
|
|
335
|
+
export const inboundSchema = ActiveProfile$inboundSchema;
|
|
336
|
+
/** @deprecated use `ActiveProfile$outboundSchema` instead. */
|
|
337
|
+
export const outboundSchema = ActiveProfile$outboundSchema;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
/** @internal */
|
|
341
|
+
export const FhirConfig$inboundSchema: z.ZodType<
|
|
342
|
+
FhirConfig,
|
|
343
|
+
z.ZodTypeDef,
|
|
344
|
+
unknown
|
|
345
|
+
> = z.object({
|
|
346
|
+
id: z.number().int(),
|
|
347
|
+
production_profile: z.lazy(() => ProductionProfile$inboundSchema),
|
|
348
|
+
non_production_profile: z.lazy(() => NonProductionProfile$inboundSchema),
|
|
349
|
+
applies_to: z.lazy(() => FhirConfigAppliesTo$inboundSchema),
|
|
350
|
+
active_profile: ActiveProfile$inboundSchema.default("Production"),
|
|
351
|
+
notes: z.string().optional(),
|
|
352
|
+
}).transform((v) => {
|
|
353
|
+
return remap$(v, {
|
|
354
|
+
"production_profile": "productionProfile",
|
|
355
|
+
"non_production_profile": "nonProductionProfile",
|
|
356
|
+
"applies_to": "appliesTo",
|
|
357
|
+
"active_profile": "activeProfile",
|
|
358
|
+
});
|
|
359
|
+
});
|
|
360
|
+
|
|
361
|
+
/** @internal */
|
|
362
|
+
export type FhirConfig$Outbound = {
|
|
363
|
+
id: number;
|
|
364
|
+
production_profile: ProductionProfile$Outbound;
|
|
365
|
+
non_production_profile: NonProductionProfile$Outbound;
|
|
366
|
+
applies_to: FhirConfigAppliesTo$Outbound;
|
|
367
|
+
active_profile: string;
|
|
368
|
+
notes?: string | undefined;
|
|
369
|
+
};
|
|
370
|
+
|
|
371
|
+
/** @internal */
|
|
372
|
+
export const FhirConfig$outboundSchema: z.ZodType<
|
|
373
|
+
FhirConfig$Outbound,
|
|
374
|
+
z.ZodTypeDef,
|
|
375
|
+
FhirConfig
|
|
376
|
+
> = z.object({
|
|
377
|
+
id: z.number().int(),
|
|
378
|
+
productionProfile: z.lazy(() => ProductionProfile$outboundSchema),
|
|
379
|
+
nonProductionProfile: z.lazy(() => NonProductionProfile$outboundSchema),
|
|
380
|
+
appliesTo: z.lazy(() => FhirConfigAppliesTo$outboundSchema),
|
|
381
|
+
activeProfile: ActiveProfile$outboundSchema.default("Production"),
|
|
382
|
+
notes: z.string().optional(),
|
|
383
|
+
}).transform((v) => {
|
|
384
|
+
return remap$(v, {
|
|
385
|
+
productionProfile: "production_profile",
|
|
386
|
+
nonProductionProfile: "non_production_profile",
|
|
387
|
+
appliesTo: "applies_to",
|
|
388
|
+
activeProfile: "active_profile",
|
|
389
|
+
});
|
|
390
|
+
});
|
|
391
|
+
|
|
392
|
+
/**
|
|
393
|
+
* @internal
|
|
394
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
395
|
+
*/
|
|
396
|
+
export namespace FhirConfig$ {
|
|
397
|
+
/** @deprecated use `FhirConfig$inboundSchema` instead. */
|
|
398
|
+
export const inboundSchema = FhirConfig$inboundSchema;
|
|
399
|
+
/** @deprecated use `FhirConfig$outboundSchema` instead. */
|
|
400
|
+
export const outboundSchema = FhirConfig$outboundSchema;
|
|
401
|
+
/** @deprecated use `FhirConfig$Outbound` instead. */
|
|
402
|
+
export type Outbound = FhirConfig$Outbound;
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
export function fhirConfigToJSON(fhirConfig: FhirConfig): string {
|
|
406
|
+
return JSON.stringify(FhirConfig$outboundSchema.parse(fhirConfig));
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
export function fhirConfigFromJSON(
|
|
410
|
+
jsonString: string,
|
|
411
|
+
): SafeParseResult<FhirConfig, SDKValidationError> {
|
|
412
|
+
return safeParse(
|
|
413
|
+
jsonString,
|
|
414
|
+
(x) => FhirConfig$inboundSchema.parse(JSON.parse(x)),
|
|
415
|
+
`Failed to parse 'FhirConfig' from JSON`,
|
|
416
|
+
);
|
|
417
|
+
}
|