@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,195 @@
|
|
|
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
|
+
import {
|
|
12
|
+
ScreeningQuestion,
|
|
13
|
+
ScreeningQuestion$inboundSchema,
|
|
14
|
+
ScreeningQuestion$Outbound,
|
|
15
|
+
ScreeningQuestion$outboundSchema,
|
|
16
|
+
} from "./screeningquestion.js";
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* The type of answer option.
|
|
20
|
+
*/
|
|
21
|
+
export const AnswerType = {
|
|
22
|
+
Preset: "preset",
|
|
23
|
+
Date: "date",
|
|
24
|
+
ShortAnswer: "short answer",
|
|
25
|
+
LongAnswer: "long answer",
|
|
26
|
+
} as const;
|
|
27
|
+
/**
|
|
28
|
+
* The type of answer option.
|
|
29
|
+
*/
|
|
30
|
+
export type AnswerType = ClosedEnum<typeof AnswerType>;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Reduced list of attributes of ScreeningAnswer records
|
|
34
|
+
*/
|
|
35
|
+
export type ScreeningAnswer = {
|
|
36
|
+
id: number;
|
|
37
|
+
screeningQuestionId?: number | null | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* The content of the screening answer option.
|
|
40
|
+
*/
|
|
41
|
+
answer?: string | null | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* The type of answer option.
|
|
44
|
+
*/
|
|
45
|
+
answerType?: AnswerType | null | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* The title or label for the answer input field.
|
|
48
|
+
*/
|
|
49
|
+
answerTitle?: string | null | undefined;
|
|
50
|
+
/**
|
|
51
|
+
* Whether or not to allow an empty answer for this option.
|
|
52
|
+
*/
|
|
53
|
+
allowEmptyAnswer: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* The error message to display if an empty answer is submitted when not allowed.
|
|
56
|
+
*/
|
|
57
|
+
emptyAnswerErrorMessage?: string | null | undefined;
|
|
58
|
+
/**
|
|
59
|
+
* Whether or not to show a confirmation prompt when this answer is selected.
|
|
60
|
+
*/
|
|
61
|
+
showConfirmation: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* The text to display in the confirmation prompt.
|
|
64
|
+
*/
|
|
65
|
+
confirmationText?: string | null | undefined;
|
|
66
|
+
priority?: number | null | undefined;
|
|
67
|
+
screeningQuestions?: Array<ScreeningQuestion> | null | undefined;
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
/** @internal */
|
|
71
|
+
export const AnswerType$inboundSchema: z.ZodNativeEnum<typeof AnswerType> = z
|
|
72
|
+
.nativeEnum(AnswerType);
|
|
73
|
+
|
|
74
|
+
/** @internal */
|
|
75
|
+
export const AnswerType$outboundSchema: z.ZodNativeEnum<typeof AnswerType> =
|
|
76
|
+
AnswerType$inboundSchema;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* @internal
|
|
80
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
81
|
+
*/
|
|
82
|
+
export namespace AnswerType$ {
|
|
83
|
+
/** @deprecated use `AnswerType$inboundSchema` instead. */
|
|
84
|
+
export const inboundSchema = AnswerType$inboundSchema;
|
|
85
|
+
/** @deprecated use `AnswerType$outboundSchema` instead. */
|
|
86
|
+
export const outboundSchema = AnswerType$outboundSchema;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/** @internal */
|
|
90
|
+
export const ScreeningAnswer$inboundSchema: z.ZodType<
|
|
91
|
+
ScreeningAnswer,
|
|
92
|
+
z.ZodTypeDef,
|
|
93
|
+
unknown
|
|
94
|
+
> = z.object({
|
|
95
|
+
id: z.number().int(),
|
|
96
|
+
screening_question_id: z.nullable(z.number().int()).optional(),
|
|
97
|
+
answer: z.nullable(z.string()).optional(),
|
|
98
|
+
answer_type: z.nullable(AnswerType$inboundSchema).optional(),
|
|
99
|
+
answer_title: z.nullable(z.string()).optional(),
|
|
100
|
+
allow_empty_answer: z.boolean(),
|
|
101
|
+
empty_answer_error_message: z.nullable(z.string()).optional(),
|
|
102
|
+
show_confirmation: z.boolean(),
|
|
103
|
+
confirmation_text: z.nullable(z.string()).optional(),
|
|
104
|
+
priority: z.nullable(z.number().int()).optional(),
|
|
105
|
+
screening_questions: z.nullable(
|
|
106
|
+
z.array(z.lazy(() => ScreeningQuestion$inboundSchema)),
|
|
107
|
+
).optional(),
|
|
108
|
+
}).transform((v) => {
|
|
109
|
+
return remap$(v, {
|
|
110
|
+
"screening_question_id": "screeningQuestionId",
|
|
111
|
+
"answer_type": "answerType",
|
|
112
|
+
"answer_title": "answerTitle",
|
|
113
|
+
"allow_empty_answer": "allowEmptyAnswer",
|
|
114
|
+
"empty_answer_error_message": "emptyAnswerErrorMessage",
|
|
115
|
+
"show_confirmation": "showConfirmation",
|
|
116
|
+
"confirmation_text": "confirmationText",
|
|
117
|
+
"screening_questions": "screeningQuestions",
|
|
118
|
+
});
|
|
119
|
+
});
|
|
120
|
+
|
|
121
|
+
/** @internal */
|
|
122
|
+
export type ScreeningAnswer$Outbound = {
|
|
123
|
+
id: number;
|
|
124
|
+
screening_question_id?: number | null | undefined;
|
|
125
|
+
answer?: string | null | undefined;
|
|
126
|
+
answer_type?: string | null | undefined;
|
|
127
|
+
answer_title?: string | null | undefined;
|
|
128
|
+
allow_empty_answer: boolean;
|
|
129
|
+
empty_answer_error_message?: string | null | undefined;
|
|
130
|
+
show_confirmation: boolean;
|
|
131
|
+
confirmation_text?: string | null | undefined;
|
|
132
|
+
priority?: number | null | undefined;
|
|
133
|
+
screening_questions?: Array<ScreeningQuestion$Outbound> | null | undefined;
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
/** @internal */
|
|
137
|
+
export const ScreeningAnswer$outboundSchema: z.ZodType<
|
|
138
|
+
ScreeningAnswer$Outbound,
|
|
139
|
+
z.ZodTypeDef,
|
|
140
|
+
ScreeningAnswer
|
|
141
|
+
> = z.object({
|
|
142
|
+
id: z.number().int(),
|
|
143
|
+
screeningQuestionId: z.nullable(z.number().int()).optional(),
|
|
144
|
+
answer: z.nullable(z.string()).optional(),
|
|
145
|
+
answerType: z.nullable(AnswerType$outboundSchema).optional(),
|
|
146
|
+
answerTitle: z.nullable(z.string()).optional(),
|
|
147
|
+
allowEmptyAnswer: z.boolean(),
|
|
148
|
+
emptyAnswerErrorMessage: z.nullable(z.string()).optional(),
|
|
149
|
+
showConfirmation: z.boolean(),
|
|
150
|
+
confirmationText: z.nullable(z.string()).optional(),
|
|
151
|
+
priority: z.nullable(z.number().int()).optional(),
|
|
152
|
+
screeningQuestions: z.nullable(
|
|
153
|
+
z.array(z.lazy(() => ScreeningQuestion$outboundSchema)),
|
|
154
|
+
).optional(),
|
|
155
|
+
}).transform((v) => {
|
|
156
|
+
return remap$(v, {
|
|
157
|
+
screeningQuestionId: "screening_question_id",
|
|
158
|
+
answerType: "answer_type",
|
|
159
|
+
answerTitle: "answer_title",
|
|
160
|
+
allowEmptyAnswer: "allow_empty_answer",
|
|
161
|
+
emptyAnswerErrorMessage: "empty_answer_error_message",
|
|
162
|
+
showConfirmation: "show_confirmation",
|
|
163
|
+
confirmationText: "confirmation_text",
|
|
164
|
+
screeningQuestions: "screening_questions",
|
|
165
|
+
});
|
|
166
|
+
});
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* @internal
|
|
170
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
171
|
+
*/
|
|
172
|
+
export namespace ScreeningAnswer$ {
|
|
173
|
+
/** @deprecated use `ScreeningAnswer$inboundSchema` instead. */
|
|
174
|
+
export const inboundSchema = ScreeningAnswer$inboundSchema;
|
|
175
|
+
/** @deprecated use `ScreeningAnswer$outboundSchema` instead. */
|
|
176
|
+
export const outboundSchema = ScreeningAnswer$outboundSchema;
|
|
177
|
+
/** @deprecated use `ScreeningAnswer$Outbound` instead. */
|
|
178
|
+
export type Outbound = ScreeningAnswer$Outbound;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
export function screeningAnswerToJSON(
|
|
182
|
+
screeningAnswer: ScreeningAnswer,
|
|
183
|
+
): string {
|
|
184
|
+
return JSON.stringify(ScreeningAnswer$outboundSchema.parse(screeningAnswer));
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
export function screeningAnswerFromJSON(
|
|
188
|
+
jsonString: string,
|
|
189
|
+
): SafeParseResult<ScreeningAnswer, SDKValidationError> {
|
|
190
|
+
return safeParse(
|
|
191
|
+
jsonString,
|
|
192
|
+
(x) => ScreeningAnswer$inboundSchema.parse(JSON.parse(x)),
|
|
193
|
+
`Failed to parse 'ScreeningAnswer' from JSON`,
|
|
194
|
+
);
|
|
195
|
+
}
|
|
@@ -0,0 +1,163 @@
|
|
|
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
|
+
import {
|
|
12
|
+
ScreeningAnswer,
|
|
13
|
+
ScreeningAnswer$inboundSchema,
|
|
14
|
+
ScreeningAnswer$Outbound,
|
|
15
|
+
ScreeningAnswer$outboundSchema,
|
|
16
|
+
} from "./screeninganswer.js";
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* The display format for the question.
|
|
20
|
+
*/
|
|
21
|
+
export const PresetDisplayAs = {
|
|
22
|
+
FloatingButtons: "floating buttons",
|
|
23
|
+
LineButtons: "line buttons",
|
|
24
|
+
Radio: "radio",
|
|
25
|
+
Select: "select",
|
|
26
|
+
Checkbox: "checkbox",
|
|
27
|
+
Checkbox2Column: "checkbox (2-column)",
|
|
28
|
+
} as const;
|
|
29
|
+
/**
|
|
30
|
+
* The display format for the question.
|
|
31
|
+
*/
|
|
32
|
+
export type PresetDisplayAs = ClosedEnum<typeof PresetDisplayAs>;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Reduced list of attributes of ScreeningQuestion record
|
|
36
|
+
*/
|
|
37
|
+
export type ScreeningQuestion = {
|
|
38
|
+
id: number;
|
|
39
|
+
screeningQuestionSeriesId: number;
|
|
40
|
+
screeningAnswerId?: number | null | undefined;
|
|
41
|
+
/**
|
|
42
|
+
* The order for displaying the question relative to other questions in the same series. Questions with lower priority values should be shown first.
|
|
43
|
+
*/
|
|
44
|
+
priority?: number | null | undefined;
|
|
45
|
+
/**
|
|
46
|
+
* The content of the screening question to be presented.
|
|
47
|
+
*/
|
|
48
|
+
question?: string | null | undefined;
|
|
49
|
+
/**
|
|
50
|
+
* The display format for the question.
|
|
51
|
+
*/
|
|
52
|
+
presetDisplayAs?: PresetDisplayAs | null | undefined;
|
|
53
|
+
screeningAnswers?: Array<ScreeningAnswer> | undefined;
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
/** @internal */
|
|
57
|
+
export const PresetDisplayAs$inboundSchema: z.ZodNativeEnum<
|
|
58
|
+
typeof PresetDisplayAs
|
|
59
|
+
> = z.nativeEnum(PresetDisplayAs);
|
|
60
|
+
|
|
61
|
+
/** @internal */
|
|
62
|
+
export const PresetDisplayAs$outboundSchema: z.ZodNativeEnum<
|
|
63
|
+
typeof PresetDisplayAs
|
|
64
|
+
> = PresetDisplayAs$inboundSchema;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* @internal
|
|
68
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
69
|
+
*/
|
|
70
|
+
export namespace PresetDisplayAs$ {
|
|
71
|
+
/** @deprecated use `PresetDisplayAs$inboundSchema` instead. */
|
|
72
|
+
export const inboundSchema = PresetDisplayAs$inboundSchema;
|
|
73
|
+
/** @deprecated use `PresetDisplayAs$outboundSchema` instead. */
|
|
74
|
+
export const outboundSchema = PresetDisplayAs$outboundSchema;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/** @internal */
|
|
78
|
+
export const ScreeningQuestion$inboundSchema: z.ZodType<
|
|
79
|
+
ScreeningQuestion,
|
|
80
|
+
z.ZodTypeDef,
|
|
81
|
+
unknown
|
|
82
|
+
> = z.object({
|
|
83
|
+
id: z.number().int(),
|
|
84
|
+
screening_question_series_id: z.number().int(),
|
|
85
|
+
screening_answer_id: z.nullable(z.number().int()).optional(),
|
|
86
|
+
priority: z.nullable(z.number().int()).optional(),
|
|
87
|
+
question: z.nullable(z.string()).optional(),
|
|
88
|
+
preset_display_as: z.nullable(PresetDisplayAs$inboundSchema).optional(),
|
|
89
|
+
screening_answers: z.array(z.lazy(() => ScreeningAnswer$inboundSchema))
|
|
90
|
+
.optional(),
|
|
91
|
+
}).transform((v) => {
|
|
92
|
+
return remap$(v, {
|
|
93
|
+
"screening_question_series_id": "screeningQuestionSeriesId",
|
|
94
|
+
"screening_answer_id": "screeningAnswerId",
|
|
95
|
+
"preset_display_as": "presetDisplayAs",
|
|
96
|
+
"screening_answers": "screeningAnswers",
|
|
97
|
+
});
|
|
98
|
+
});
|
|
99
|
+
|
|
100
|
+
/** @internal */
|
|
101
|
+
export type ScreeningQuestion$Outbound = {
|
|
102
|
+
id: number;
|
|
103
|
+
screening_question_series_id: number;
|
|
104
|
+
screening_answer_id?: number | null | undefined;
|
|
105
|
+
priority?: number | null | undefined;
|
|
106
|
+
question?: string | null | undefined;
|
|
107
|
+
preset_display_as?: string | null | undefined;
|
|
108
|
+
screening_answers?: Array<ScreeningAnswer$Outbound> | undefined;
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
/** @internal */
|
|
112
|
+
export const ScreeningQuestion$outboundSchema: z.ZodType<
|
|
113
|
+
ScreeningQuestion$Outbound,
|
|
114
|
+
z.ZodTypeDef,
|
|
115
|
+
ScreeningQuestion
|
|
116
|
+
> = z.object({
|
|
117
|
+
id: z.number().int(),
|
|
118
|
+
screeningQuestionSeriesId: z.number().int(),
|
|
119
|
+
screeningAnswerId: z.nullable(z.number().int()).optional(),
|
|
120
|
+
priority: z.nullable(z.number().int()).optional(),
|
|
121
|
+
question: z.nullable(z.string()).optional(),
|
|
122
|
+
presetDisplayAs: z.nullable(PresetDisplayAs$outboundSchema).optional(),
|
|
123
|
+
screeningAnswers: z.array(z.lazy(() => ScreeningAnswer$outboundSchema))
|
|
124
|
+
.optional(),
|
|
125
|
+
}).transform((v) => {
|
|
126
|
+
return remap$(v, {
|
|
127
|
+
screeningQuestionSeriesId: "screening_question_series_id",
|
|
128
|
+
screeningAnswerId: "screening_answer_id",
|
|
129
|
+
presetDisplayAs: "preset_display_as",
|
|
130
|
+
screeningAnswers: "screening_answers",
|
|
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 ScreeningQuestion$ {
|
|
139
|
+
/** @deprecated use `ScreeningQuestion$inboundSchema` instead. */
|
|
140
|
+
export const inboundSchema = ScreeningQuestion$inboundSchema;
|
|
141
|
+
/** @deprecated use `ScreeningQuestion$outboundSchema` instead. */
|
|
142
|
+
export const outboundSchema = ScreeningQuestion$outboundSchema;
|
|
143
|
+
/** @deprecated use `ScreeningQuestion$Outbound` instead. */
|
|
144
|
+
export type Outbound = ScreeningQuestion$Outbound;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
export function screeningQuestionToJSON(
|
|
148
|
+
screeningQuestion: ScreeningQuestion,
|
|
149
|
+
): string {
|
|
150
|
+
return JSON.stringify(
|
|
151
|
+
ScreeningQuestion$outboundSchema.parse(screeningQuestion),
|
|
152
|
+
);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
export function screeningQuestionFromJSON(
|
|
156
|
+
jsonString: string,
|
|
157
|
+
): SafeParseResult<ScreeningQuestion, SDKValidationError> {
|
|
158
|
+
return safeParse(
|
|
159
|
+
jsonString,
|
|
160
|
+
(x) => ScreeningQuestion$inboundSchema.parse(JSON.parse(x)),
|
|
161
|
+
`Failed to parse 'ScreeningQuestion' from JSON`,
|
|
162
|
+
);
|
|
163
|
+
}
|
|
@@ -8,7 +8,6 @@ import { safeParse } from "../../lib/schemas.js";
|
|
|
8
8
|
import { ClosedEnum } from "../../types/enums.js";
|
|
9
9
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
-
import { State, State$inboundSchema, State$outboundSchema } from "./state.js";
|
|
12
11
|
|
|
13
12
|
export const Timezone = {
|
|
14
13
|
InternationalDateLineWest: "International Date Line West",
|
|
@@ -173,10 +172,7 @@ export type UserLocation = {
|
|
|
173
172
|
address1?: string | null | undefined;
|
|
174
173
|
address2?: string | null | undefined;
|
|
175
174
|
city?: string | null | undefined;
|
|
176
|
-
|
|
177
|
-
* The list of states
|
|
178
|
-
*/
|
|
179
|
-
state?: State | null | undefined;
|
|
175
|
+
state?: string | null | undefined;
|
|
180
176
|
zip?: string | null | undefined;
|
|
181
177
|
phone?: string | null | undefined;
|
|
182
178
|
mobilePhone?: string | null | undefined;
|
|
@@ -214,7 +210,7 @@ export const UserLocation$inboundSchema: z.ZodType<
|
|
|
214
210
|
address1: z.nullable(z.string()).optional(),
|
|
215
211
|
address2: z.nullable(z.string()).optional(),
|
|
216
212
|
city: z.nullable(z.string()).optional(),
|
|
217
|
-
state: z.nullable(
|
|
213
|
+
state: z.nullable(z.string()).optional(),
|
|
218
214
|
zip: z.nullable(z.string()).optional(),
|
|
219
215
|
phone: z.nullable(z.string()).optional(),
|
|
220
216
|
mobile_phone: z.nullable(z.string()).optional(),
|
|
@@ -252,7 +248,7 @@ export const UserLocation$outboundSchema: z.ZodType<
|
|
|
252
248
|
address1: z.nullable(z.string()).optional(),
|
|
253
249
|
address2: z.nullable(z.string()).optional(),
|
|
254
250
|
city: z.nullable(z.string()).optional(),
|
|
255
|
-
state: z.nullable(
|
|
251
|
+
state: z.nullable(z.string()).optional(),
|
|
256
252
|
zip: z.nullable(z.string()).optional(),
|
|
257
253
|
phone: z.nullable(z.string()).optional(),
|
|
258
254
|
mobilePhone: z.nullable(z.string()).optional(),
|
|
@@ -25,6 +25,12 @@ import {
|
|
|
25
25
|
Facility$Outbound,
|
|
26
26
|
Facility$outboundSchema,
|
|
27
27
|
} from "./facility.js";
|
|
28
|
+
import {
|
|
29
|
+
FacilityCalendarSummary,
|
|
30
|
+
FacilityCalendarSummary$inboundSchema,
|
|
31
|
+
FacilityCalendarSummary$Outbound,
|
|
32
|
+
FacilityCalendarSummary$outboundSchema,
|
|
33
|
+
} from "./facilitycalendarsummary.js";
|
|
28
34
|
import {
|
|
29
35
|
FacilitySummary,
|
|
30
36
|
FacilitySummary$inboundSchema,
|
|
@@ -170,6 +176,7 @@ export type Vendor = {
|
|
|
170
176
|
emailRecepient?: string | null | undefined;
|
|
171
177
|
sendWeeklySummaryEmail?: boolean | null | undefined;
|
|
172
178
|
title?: string | null | undefined;
|
|
179
|
+
hasEmeraldStatus?: boolean | null | undefined;
|
|
173
180
|
user?: One | number | undefined;
|
|
174
181
|
registrationData?: { [k: string]: any } | null | undefined;
|
|
175
182
|
registrationFinished?: boolean | null | undefined;
|
|
@@ -220,10 +227,14 @@ export type Vendor = {
|
|
|
220
227
|
backgroundCheckDateExpires?: string | null | undefined;
|
|
221
228
|
creditBalance?: number | null | undefined;
|
|
222
229
|
targetFacilities?: Array<FacilitySummary> | null | undefined;
|
|
223
|
-
approvedCalendaringFacilities?:
|
|
230
|
+
approvedCalendaringFacilities?:
|
|
231
|
+
| Array<FacilityCalendarSummary>
|
|
232
|
+
| null
|
|
233
|
+
| undefined;
|
|
224
234
|
pendingInvoice?: Invoice | number | null | undefined;
|
|
225
235
|
vendorGroups?: Array<VendorGroup | null> | null | undefined;
|
|
226
236
|
hasCredentialedFacilities?: boolean | null | undefined;
|
|
237
|
+
targetFacilitiesUpdated?: string | null | undefined;
|
|
227
238
|
};
|
|
228
239
|
|
|
229
240
|
/** @internal */
|
|
@@ -1046,6 +1057,7 @@ export const Vendor$inboundSchema: z.ZodType<Vendor, z.ZodTypeDef, unknown> = z
|
|
|
1046
1057
|
email_recepient: z.nullable(z.string()).optional(),
|
|
1047
1058
|
send_weekly_summary_email: z.nullable(z.boolean()).optional(),
|
|
1048
1059
|
title: z.nullable(z.string()).optional(),
|
|
1060
|
+
has_emerald_status: z.nullable(z.boolean()).optional(),
|
|
1049
1061
|
user: z.union([z.lazy(() => One$inboundSchema), z.number().int()])
|
|
1050
1062
|
.optional(),
|
|
1051
1063
|
registration_data: z.nullable(z.record(z.any())).optional(),
|
|
@@ -1089,7 +1101,7 @@ export const Vendor$inboundSchema: z.ZodType<Vendor, z.ZodTypeDef, unknown> = z
|
|
|
1089
1101
|
target_facilities: z.nullable(z.array(FacilitySummary$inboundSchema))
|
|
1090
1102
|
.optional(),
|
|
1091
1103
|
approved_calendaring_facilities: z.nullable(
|
|
1092
|
-
z.array(
|
|
1104
|
+
z.array(FacilityCalendarSummary$inboundSchema),
|
|
1093
1105
|
).optional(),
|
|
1094
1106
|
pending_invoice: z.nullable(
|
|
1095
1107
|
z.union([Invoice$inboundSchema, z.number().int()]),
|
|
@@ -1097,10 +1109,12 @@ export const Vendor$inboundSchema: z.ZodType<Vendor, z.ZodTypeDef, unknown> = z
|
|
|
1097
1109
|
vendor_groups: z.nullable(z.array(z.nullable(VendorGroup$inboundSchema)))
|
|
1098
1110
|
.optional(),
|
|
1099
1111
|
has_credentialed_facilities: z.nullable(z.boolean()).optional(),
|
|
1112
|
+
target_facilities_updated: z.nullable(z.string()).optional(),
|
|
1100
1113
|
}).transform((v) => {
|
|
1101
1114
|
return remap$(v, {
|
|
1102
1115
|
"email_recepient": "emailRecepient",
|
|
1103
1116
|
"send_weekly_summary_email": "sendWeeklySummaryEmail",
|
|
1117
|
+
"has_emerald_status": "hasEmeraldStatus",
|
|
1104
1118
|
"registration_data": "registrationData",
|
|
1105
1119
|
"registration_finished": "registrationFinished",
|
|
1106
1120
|
"vendor_job": "vendorJob",
|
|
@@ -1122,6 +1136,7 @@ export const Vendor$inboundSchema: z.ZodType<Vendor, z.ZodTypeDef, unknown> = z
|
|
|
1122
1136
|
"pending_invoice": "pendingInvoice",
|
|
1123
1137
|
"vendor_groups": "vendorGroups",
|
|
1124
1138
|
"has_credentialed_facilities": "hasCredentialedFacilities",
|
|
1139
|
+
"target_facilities_updated": "targetFacilitiesUpdated",
|
|
1125
1140
|
});
|
|
1126
1141
|
});
|
|
1127
1142
|
|
|
@@ -1131,6 +1146,7 @@ export type Vendor$Outbound = {
|
|
|
1131
1146
|
email_recepient?: string | null | undefined;
|
|
1132
1147
|
send_weekly_summary_email?: boolean | null | undefined;
|
|
1133
1148
|
title?: string | null | undefined;
|
|
1149
|
+
has_emerald_status?: boolean | null | undefined;
|
|
1134
1150
|
user?: One$Outbound | number | undefined;
|
|
1135
1151
|
registration_data?: { [k: string]: any } | null | undefined;
|
|
1136
1152
|
registration_finished?: boolean | null | undefined;
|
|
@@ -1158,12 +1174,13 @@ export type Vendor$Outbound = {
|
|
|
1158
1174
|
credit_balance?: number | null | undefined;
|
|
1159
1175
|
target_facilities?: Array<FacilitySummary$Outbound> | null | undefined;
|
|
1160
1176
|
approved_calendaring_facilities?:
|
|
1161
|
-
| Array<
|
|
1177
|
+
| Array<FacilityCalendarSummary$Outbound>
|
|
1162
1178
|
| null
|
|
1163
1179
|
| undefined;
|
|
1164
1180
|
pending_invoice?: Invoice$Outbound | number | null | undefined;
|
|
1165
1181
|
vendor_groups?: Array<VendorGroup$Outbound | null> | null | undefined;
|
|
1166
1182
|
has_credentialed_facilities?: boolean | null | undefined;
|
|
1183
|
+
target_facilities_updated?: string | null | undefined;
|
|
1167
1184
|
};
|
|
1168
1185
|
|
|
1169
1186
|
/** @internal */
|
|
@@ -1176,6 +1193,7 @@ export const Vendor$outboundSchema: z.ZodType<
|
|
|
1176
1193
|
emailRecepient: z.nullable(z.string()).optional(),
|
|
1177
1194
|
sendWeeklySummaryEmail: z.nullable(z.boolean()).optional(),
|
|
1178
1195
|
title: z.nullable(z.string()).optional(),
|
|
1196
|
+
hasEmeraldStatus: z.nullable(z.boolean()).optional(),
|
|
1179
1197
|
user: z.union([z.lazy(() => One$outboundSchema), z.number().int()])
|
|
1180
1198
|
.optional(),
|
|
1181
1199
|
registrationData: z.nullable(z.record(z.any())).optional(),
|
|
@@ -1217,7 +1235,7 @@ export const Vendor$outboundSchema: z.ZodType<
|
|
|
1217
1235
|
targetFacilities: z.nullable(z.array(FacilitySummary$outboundSchema))
|
|
1218
1236
|
.optional(),
|
|
1219
1237
|
approvedCalendaringFacilities: z.nullable(
|
|
1220
|
-
z.array(
|
|
1238
|
+
z.array(FacilityCalendarSummary$outboundSchema),
|
|
1221
1239
|
).optional(),
|
|
1222
1240
|
pendingInvoice: z.nullable(
|
|
1223
1241
|
z.union([Invoice$outboundSchema, z.number().int()]),
|
|
@@ -1225,10 +1243,12 @@ export const Vendor$outboundSchema: z.ZodType<
|
|
|
1225
1243
|
vendorGroups: z.nullable(z.array(z.nullable(VendorGroup$outboundSchema)))
|
|
1226
1244
|
.optional(),
|
|
1227
1245
|
hasCredentialedFacilities: z.nullable(z.boolean()).optional(),
|
|
1246
|
+
targetFacilitiesUpdated: z.nullable(z.string()).optional(),
|
|
1228
1247
|
}).transform((v) => {
|
|
1229
1248
|
return remap$(v, {
|
|
1230
1249
|
emailRecepient: "email_recepient",
|
|
1231
1250
|
sendWeeklySummaryEmail: "send_weekly_summary_email",
|
|
1251
|
+
hasEmeraldStatus: "has_emerald_status",
|
|
1232
1252
|
registrationData: "registration_data",
|
|
1233
1253
|
registrationFinished: "registration_finished",
|
|
1234
1254
|
vendorJob: "vendor_job",
|
|
@@ -1250,6 +1270,7 @@ export const Vendor$outboundSchema: z.ZodType<
|
|
|
1250
1270
|
pendingInvoice: "pending_invoice",
|
|
1251
1271
|
vendorGroups: "vendor_groups",
|
|
1252
1272
|
hasCredentialedFacilities: "has_credentialed_facilities",
|
|
1273
|
+
targetFacilitiesUpdated: "target_facilities_updated",
|
|
1253
1274
|
});
|
|
1254
1275
|
});
|
|
1255
1276
|
|