@greensecurity/javascript-sdk 0.39.36 → 0.39.41
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 +12 -0
- package/bin/mcp-server.js +1756 -625
- package/bin/mcp-server.js.map +45 -30
- package/dist/commonjs/__tests__/events.test.js +124 -0
- package/dist/commonjs/__tests__/events.test.js.map +1 -1
- 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 +2 -5
- package/dist/commonjs/__tests__/zones.test.js.map +1 -1
- package/dist/commonjs/funcs/eventsListFeed.d.ts +21 -0
- package/dist/commonjs/funcs/eventsListFeed.d.ts.map +1 -0
- package/dist/commonjs/funcs/eventsListFeed.js +166 -0
- package/dist/commonjs/funcs/eventsListFeed.js.map +1 -0
- package/dist/commonjs/funcs/eventsListLocations.d.ts +21 -0
- package/dist/commonjs/funcs/eventsListLocations.d.ts.map +1 -0
- package/dist/commonjs/funcs/eventsListLocations.js +159 -0
- package/dist/commonjs/funcs/eventsListLocations.js.map +1 -0
- package/dist/commonjs/funcs/eventsListPendingInvitations.d.ts +21 -0
- package/dist/commonjs/funcs/eventsListPendingInvitations.d.ts.map +1 -0
- package/dist/commonjs/funcs/eventsListPendingInvitations.js +162 -0
- package/dist/commonjs/funcs/eventsListPendingInvitations.js.map +1 -0
- package/dist/commonjs/funcs/eventsListStandingAppointments.d.ts +21 -0
- package/dist/commonjs/funcs/eventsListStandingAppointments.d.ts.map +1 -0
- package/dist/commonjs/funcs/eventsListStandingAppointments.js +168 -0
- package/dist/commonjs/funcs/eventsListStandingAppointments.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/server.js +9 -1
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/eventsListFeed.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/eventsListFeed.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/eventsListFeed.js +64 -0
- package/dist/commonjs/mcp-server/tools/eventsListFeed.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/eventsListLocations.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/eventsListLocations.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/eventsListLocations.js +64 -0
- package/dist/commonjs/mcp-server/tools/eventsListLocations.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/eventsListPendingInvitations.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/eventsListPendingInvitations.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/eventsListPendingInvitations.js +64 -0
- package/dist/commonjs/mcp-server/tools/eventsListPendingInvitations.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/eventsListStandingAppointments.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/eventsListStandingAppointments.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/eventsListStandingAppointments.js +64 -0
- package/dist/commonjs/mcp-server/tools/eventsListStandingAppointments.js.map +1 -0
- package/dist/commonjs/models/components/backgroundcheckresult.d.ts +27 -27
- package/dist/commonjs/models/components/backgroundcheckresult.d.ts.map +1 -1
- package/dist/commonjs/models/components/backgroundcheckresult.js.map +1 -1
- package/dist/commonjs/models/components/contact.d.ts +25 -25
- package/dist/commonjs/models/components/contact.d.ts.map +1 -1
- package/dist/commonjs/models/components/contact.js +17 -17
- package/dist/commonjs/models/components/contact.js.map +1 -1
- package/dist/commonjs/models/components/credential.d.ts +25 -25
- package/dist/commonjs/models/components/credential.d.ts.map +1 -1
- package/dist/commonjs/models/components/credential.js.map +1 -1
- package/dist/commonjs/models/components/credit.d.ts +10 -10
- package/dist/commonjs/models/components/credit.d.ts.map +1 -1
- package/dist/commonjs/models/components/credit.js.map +1 -1
- package/dist/commonjs/models/components/datarequest.d.ts +21 -21
- package/dist/commonjs/models/components/datarequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/datarequest.js.map +1 -1
- package/dist/commonjs/models/components/facility.d.ts +25 -25
- package/dist/commonjs/models/components/facility.d.ts.map +1 -1
- package/dist/commonjs/models/components/facility.js +16 -16
- package/dist/commonjs/models/components/facility.js.map +1 -1
- package/dist/commonjs/models/components/feed.d.ts +42 -0
- package/dist/commonjs/models/components/feed.d.ts.map +1 -0
- package/dist/commonjs/models/components/feed.js +89 -0
- package/dist/commonjs/models/components/feed.js.map +1 -0
- package/dist/commonjs/models/components/index.d.ts +3 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +3 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/mfarequiredresponse.d.ts +20 -20
- package/dist/commonjs/models/components/mfarequiredresponse.d.ts.map +1 -1
- package/dist/commonjs/models/components/mfarequiredresponse.js.map +1 -1
- package/dist/commonjs/models/components/passwordrequiredresponse.d.ts +11 -11
- package/dist/commonjs/models/components/passwordrequiredresponse.d.ts.map +1 -1
- package/dist/commonjs/models/components/passwordrequiredresponse.js.map +1 -1
- package/dist/commonjs/models/components/pendinginvitation.d.ts +80 -0
- package/dist/commonjs/models/components/pendinginvitation.d.ts.map +1 -0
- package/dist/commonjs/models/components/pendinginvitation.js +130 -0
- package/dist/commonjs/models/components/pendinginvitation.js.map +1 -0
- package/dist/commonjs/models/components/samlloginrequiredresponse.d.ts +18 -18
- package/dist/commonjs/models/components/samlloginrequiredresponse.d.ts.map +1 -1
- package/dist/commonjs/models/components/samlloginrequiredresponse.js.map +1 -1
- package/dist/commonjs/models/components/standingappointment.d.ts +46 -0
- package/dist/commonjs/models/components/standingappointment.d.ts.map +1 -0
- package/dist/commonjs/models/components/standingappointment.js +92 -0
- package/dist/commonjs/models/components/standingappointment.js.map +1 -0
- package/dist/commonjs/models/components/user.d.ts +65 -65
- package/dist/commonjs/models/components/user.d.ts.map +1 -1
- package/dist/commonjs/models/components/user.js +17 -17
- package/dist/commonjs/models/components/user.js.map +1 -1
- package/dist/commonjs/models/components/userlocation.d.ts +19 -19
- package/dist/commonjs/models/components/userlocation.d.ts.map +1 -1
- package/dist/commonjs/models/components/userlocation.js.map +1 -1
- package/dist/commonjs/models/components/vendorcredentialdatarequest.d.ts +22 -22
- package/dist/commonjs/models/components/vendorcredentialdatarequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/vendorcredentialdatarequest.js +16 -16
- package/dist/commonjs/models/components/vendorcredentialdatarequest.js.map +1 -1
- package/dist/commonjs/models/components/webhookendpoint.d.ts +18 -18
- package/dist/commonjs/models/components/webhookendpoint.d.ts.map +1 -1
- package/dist/commonjs/models/components/webhookendpoint.js.map +1 -1
- package/dist/commonjs/models/operations/createinvoice.d.ts +106 -106
- package/dist/commonjs/models/operations/createinvoice.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createinvoice.js +46 -46
- package/dist/commonjs/models/operations/createinvoice.js.map +1 -1
- package/dist/commonjs/models/operations/createorupdatebcr.d.ts +20 -20
- package/dist/commonjs/models/operations/createorupdatebcr.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createorupdatebcr.js.map +1 -1
- package/dist/commonjs/models/operations/index.d.ts +4 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +4 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/listfeed.d.ts +166 -0
- package/dist/commonjs/models/operations/listfeed.d.ts.map +1 -0
- package/dist/commonjs/models/operations/listfeed.js +197 -0
- package/dist/commonjs/models/operations/listfeed.js.map +1 -0
- package/dist/commonjs/models/operations/listlocations.d.ts +148 -0
- package/dist/commonjs/models/operations/listlocations.d.ts.map +1 -0
- package/dist/commonjs/models/operations/listlocations.js +191 -0
- package/dist/commonjs/models/operations/listlocations.js.map +1 -0
- package/dist/commonjs/models/operations/listpendinginvitations.d.ts +136 -0
- package/dist/commonjs/models/operations/listpendinginvitations.d.ts.map +1 -0
- package/dist/commonjs/models/operations/listpendinginvitations.js +173 -0
- package/dist/commonjs/models/operations/listpendinginvitations.js.map +1 -0
- package/dist/commonjs/models/operations/liststandingappointments.d.ts +166 -0
- package/dist/commonjs/models/operations/liststandingappointments.d.ts.map +1 -0
- package/dist/commonjs/models/operations/liststandingappointments.js +197 -0
- package/dist/commonjs/models/operations/liststandingappointments.js.map +1 -0
- package/dist/commonjs/models/operations/listvendorinvoices.d.ts +20 -20
- package/dist/commonjs/models/operations/listvendorinvoices.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listvendorinvoices.js.map +1 -1
- package/dist/commonjs/models/operations/securityzonecheckin.d.ts +22 -22
- package/dist/commonjs/models/operations/securityzonecheckin.d.ts.map +1 -1
- package/dist/commonjs/models/operations/securityzonecheckin.js +17 -17
- package/dist/commonjs/models/operations/securityzonecheckin.js.map +1 -1
- package/dist/commonjs/models/operations/senddownloadcode.d.ts +10 -10
- package/dist/commonjs/models/operations/senddownloadcode.d.ts.map +1 -1
- package/dist/commonjs/models/operations/senddownloadcode.js.map +1 -1
- package/dist/commonjs/models/operations/updateinvoice.d.ts +106 -106
- package/dist/commonjs/models/operations/updateinvoice.d.ts.map +1 -1
- package/dist/commonjs/models/operations/updateinvoice.js +47 -47
- package/dist/commonjs/models/operations/updateinvoice.js.map +1 -1
- package/dist/commonjs/models/operations/updatevendorcredentialdata.d.ts +22 -22
- package/dist/commonjs/models/operations/updatevendorcredentialdata.d.ts.map +1 -1
- package/dist/commonjs/models/operations/updatevendorcredentialdata.js.map +1 -1
- package/dist/commonjs/models/operations/updatevendordetails.d.ts +24 -24
- package/dist/commonjs/models/operations/updatevendordetails.d.ts.map +1 -1
- package/dist/commonjs/models/operations/updatevendordetails.js.map +1 -1
- package/dist/commonjs/models/operations/updatevendorscrubdetails.d.ts +21 -21
- package/dist/commonjs/models/operations/updatevendorscrubdetails.d.ts.map +1 -1
- package/dist/commonjs/models/operations/updatevendorscrubdetails.js.map +1 -1
- package/dist/commonjs/react-query/eventsListFeed.d.ts +111 -0
- package/dist/commonjs/react-query/eventsListFeed.d.ts.map +1 -0
- package/dist/commonjs/react-query/eventsListFeed.js +174 -0
- package/dist/commonjs/react-query/eventsListFeed.js.map +1 -0
- package/dist/commonjs/react-query/eventsListLocations.d.ts +84 -0
- package/dist/commonjs/react-query/eventsListLocations.d.ts.map +1 -0
- package/dist/commonjs/react-query/eventsListLocations.js +161 -0
- package/dist/commonjs/react-query/eventsListLocations.js.map +1 -0
- package/dist/commonjs/react-query/eventsListPendingInvitations.d.ts +93 -0
- package/dist/commonjs/react-query/eventsListPendingInvitations.d.ts.map +1 -0
- package/dist/commonjs/react-query/eventsListPendingInvitations.js +171 -0
- package/dist/commonjs/react-query/eventsListPendingInvitations.js.map +1 -0
- package/dist/commonjs/react-query/eventsListStandingAppointments.d.ts +111 -0
- package/dist/commonjs/react-query/eventsListStandingAppointments.d.ts.map +1 -0
- package/dist/commonjs/react-query/eventsListStandingAppointments.js +183 -0
- package/dist/commonjs/react-query/eventsListStandingAppointments.js.map +1 -0
- package/dist/commonjs/react-query/index.d.ts +4 -0
- package/dist/commonjs/react-query/index.d.ts.map +1 -1
- package/dist/commonjs/react-query/index.js +4 -0
- package/dist/commonjs/react-query/index.js.map +1 -1
- package/dist/commonjs/sdk/events.d.ts +36 -0
- package/dist/commonjs/sdk/events.d.ts.map +1 -1
- package/dist/commonjs/sdk/events.js +40 -0
- package/dist/commonjs/sdk/events.js.map +1 -1
- package/dist/esm/__tests__/events.test.js +124 -0
- package/dist/esm/__tests__/events.test.js.map +1 -1
- 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 +2 -5
- package/dist/esm/__tests__/zones.test.js.map +1 -1
- package/dist/esm/funcs/eventsListFeed.d.ts +21 -0
- package/dist/esm/funcs/eventsListFeed.d.ts.map +1 -0
- package/dist/esm/funcs/eventsListFeed.js +130 -0
- package/dist/esm/funcs/eventsListFeed.js.map +1 -0
- package/dist/esm/funcs/eventsListLocations.d.ts +21 -0
- package/dist/esm/funcs/eventsListLocations.d.ts.map +1 -0
- package/dist/esm/funcs/eventsListLocations.js +123 -0
- package/dist/esm/funcs/eventsListLocations.js.map +1 -0
- package/dist/esm/funcs/eventsListPendingInvitations.d.ts +21 -0
- package/dist/esm/funcs/eventsListPendingInvitations.d.ts.map +1 -0
- package/dist/esm/funcs/eventsListPendingInvitations.js +126 -0
- package/dist/esm/funcs/eventsListPendingInvitations.js.map +1 -0
- package/dist/esm/funcs/eventsListStandingAppointments.d.ts +21 -0
- package/dist/esm/funcs/eventsListStandingAppointments.d.ts.map +1 -0
- package/dist/esm/funcs/eventsListStandingAppointments.js +132 -0
- package/dist/esm/funcs/eventsListStandingAppointments.js.map +1 -0
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.d.ts.map +1 -1
- package/dist/esm/mcp-server/server.js +9 -1
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/mcp-server/tools/eventsListFeed.d.ts +8 -0
- package/dist/esm/mcp-server/tools/eventsListFeed.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/eventsListFeed.js +28 -0
- package/dist/esm/mcp-server/tools/eventsListFeed.js.map +1 -0
- package/dist/esm/mcp-server/tools/eventsListLocations.d.ts +8 -0
- package/dist/esm/mcp-server/tools/eventsListLocations.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/eventsListLocations.js +28 -0
- package/dist/esm/mcp-server/tools/eventsListLocations.js.map +1 -0
- package/dist/esm/mcp-server/tools/eventsListPendingInvitations.d.ts +8 -0
- package/dist/esm/mcp-server/tools/eventsListPendingInvitations.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/eventsListPendingInvitations.js +28 -0
- package/dist/esm/mcp-server/tools/eventsListPendingInvitations.js.map +1 -0
- package/dist/esm/mcp-server/tools/eventsListStandingAppointments.d.ts +8 -0
- package/dist/esm/mcp-server/tools/eventsListStandingAppointments.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/eventsListStandingAppointments.js +28 -0
- package/dist/esm/mcp-server/tools/eventsListStandingAppointments.js.map +1 -0
- package/dist/esm/models/components/backgroundcheckresult.d.ts +27 -27
- package/dist/esm/models/components/backgroundcheckresult.d.ts.map +1 -1
- package/dist/esm/models/components/backgroundcheckresult.js.map +1 -1
- package/dist/esm/models/components/contact.d.ts +25 -25
- package/dist/esm/models/components/contact.d.ts.map +1 -1
- package/dist/esm/models/components/contact.js +16 -16
- package/dist/esm/models/components/contact.js.map +1 -1
- package/dist/esm/models/components/credential.d.ts +25 -25
- package/dist/esm/models/components/credential.d.ts.map +1 -1
- package/dist/esm/models/components/credential.js.map +1 -1
- package/dist/esm/models/components/credit.d.ts +10 -10
- package/dist/esm/models/components/credit.d.ts.map +1 -1
- package/dist/esm/models/components/credit.js.map +1 -1
- package/dist/esm/models/components/datarequest.d.ts +21 -21
- package/dist/esm/models/components/datarequest.d.ts.map +1 -1
- package/dist/esm/models/components/datarequest.js.map +1 -1
- package/dist/esm/models/components/facility.d.ts +25 -25
- package/dist/esm/models/components/facility.d.ts.map +1 -1
- package/dist/esm/models/components/facility.js +15 -15
- package/dist/esm/models/components/facility.js.map +1 -1
- package/dist/esm/models/components/feed.d.ts +42 -0
- package/dist/esm/models/components/feed.d.ts.map +1 -0
- package/dist/esm/models/components/feed.js +51 -0
- package/dist/esm/models/components/feed.js.map +1 -0
- package/dist/esm/models/components/index.d.ts +3 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +3 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/mfarequiredresponse.d.ts +20 -20
- package/dist/esm/models/components/mfarequiredresponse.d.ts.map +1 -1
- package/dist/esm/models/components/mfarequiredresponse.js.map +1 -1
- package/dist/esm/models/components/passwordrequiredresponse.d.ts +11 -11
- package/dist/esm/models/components/passwordrequiredresponse.d.ts.map +1 -1
- package/dist/esm/models/components/passwordrequiredresponse.js.map +1 -1
- package/dist/esm/models/components/pendinginvitation.d.ts +80 -0
- package/dist/esm/models/components/pendinginvitation.d.ts.map +1 -0
- package/dist/esm/models/components/pendinginvitation.js +90 -0
- package/dist/esm/models/components/pendinginvitation.js.map +1 -0
- package/dist/esm/models/components/samlloginrequiredresponse.d.ts +18 -18
- package/dist/esm/models/components/samlloginrequiredresponse.d.ts.map +1 -1
- package/dist/esm/models/components/samlloginrequiredresponse.js.map +1 -1
- package/dist/esm/models/components/standingappointment.d.ts +46 -0
- package/dist/esm/models/components/standingappointment.d.ts.map +1 -0
- package/dist/esm/models/components/standingappointment.js +54 -0
- package/dist/esm/models/components/standingappointment.js.map +1 -0
- package/dist/esm/models/components/user.d.ts +65 -65
- package/dist/esm/models/components/user.d.ts.map +1 -1
- package/dist/esm/models/components/user.js +16 -16
- package/dist/esm/models/components/user.js.map +1 -1
- package/dist/esm/models/components/userlocation.d.ts +19 -19
- package/dist/esm/models/components/userlocation.d.ts.map +1 -1
- package/dist/esm/models/components/userlocation.js.map +1 -1
- package/dist/esm/models/components/vendorcredentialdatarequest.d.ts +22 -22
- package/dist/esm/models/components/vendorcredentialdatarequest.d.ts.map +1 -1
- package/dist/esm/models/components/vendorcredentialdatarequest.js +15 -15
- package/dist/esm/models/components/vendorcredentialdatarequest.js.map +1 -1
- package/dist/esm/models/components/webhookendpoint.d.ts +18 -18
- package/dist/esm/models/components/webhookendpoint.d.ts.map +1 -1
- package/dist/esm/models/components/webhookendpoint.js.map +1 -1
- package/dist/esm/models/operations/createinvoice.d.ts +106 -106
- package/dist/esm/models/operations/createinvoice.d.ts.map +1 -1
- package/dist/esm/models/operations/createinvoice.js +45 -45
- package/dist/esm/models/operations/createinvoice.js.map +1 -1
- package/dist/esm/models/operations/createorupdatebcr.d.ts +20 -20
- package/dist/esm/models/operations/createorupdatebcr.d.ts.map +1 -1
- package/dist/esm/models/operations/createorupdatebcr.js.map +1 -1
- package/dist/esm/models/operations/index.d.ts +4 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +4 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/listfeed.d.ts +166 -0
- package/dist/esm/models/operations/listfeed.d.ts.map +1 -0
- package/dist/esm/models/operations/listfeed.js +155 -0
- package/dist/esm/models/operations/listfeed.js.map +1 -0
- package/dist/esm/models/operations/listlocations.d.ts +148 -0
- package/dist/esm/models/operations/listlocations.d.ts.map +1 -0
- package/dist/esm/models/operations/listlocations.js +147 -0
- package/dist/esm/models/operations/listlocations.js.map +1 -0
- package/dist/esm/models/operations/listpendinginvitations.d.ts +136 -0
- package/dist/esm/models/operations/listpendinginvitations.d.ts.map +1 -0
- package/dist/esm/models/operations/listpendinginvitations.js +131 -0
- package/dist/esm/models/operations/listpendinginvitations.js.map +1 -0
- package/dist/esm/models/operations/liststandingappointments.d.ts +166 -0
- package/dist/esm/models/operations/liststandingappointments.d.ts.map +1 -0
- package/dist/esm/models/operations/liststandingappointments.js +155 -0
- package/dist/esm/models/operations/liststandingappointments.js.map +1 -0
- package/dist/esm/models/operations/listvendorinvoices.d.ts +20 -20
- package/dist/esm/models/operations/listvendorinvoices.d.ts.map +1 -1
- package/dist/esm/models/operations/listvendorinvoices.js.map +1 -1
- package/dist/esm/models/operations/securityzonecheckin.d.ts +22 -22
- package/dist/esm/models/operations/securityzonecheckin.d.ts.map +1 -1
- package/dist/esm/models/operations/securityzonecheckin.js +16 -16
- package/dist/esm/models/operations/securityzonecheckin.js.map +1 -1
- package/dist/esm/models/operations/senddownloadcode.d.ts +10 -10
- package/dist/esm/models/operations/senddownloadcode.d.ts.map +1 -1
- package/dist/esm/models/operations/senddownloadcode.js.map +1 -1
- package/dist/esm/models/operations/updateinvoice.d.ts +106 -106
- package/dist/esm/models/operations/updateinvoice.d.ts.map +1 -1
- package/dist/esm/models/operations/updateinvoice.js +46 -46
- package/dist/esm/models/operations/updateinvoice.js.map +1 -1
- package/dist/esm/models/operations/updatevendorcredentialdata.d.ts +22 -22
- package/dist/esm/models/operations/updatevendorcredentialdata.d.ts.map +1 -1
- package/dist/esm/models/operations/updatevendorcredentialdata.js.map +1 -1
- package/dist/esm/models/operations/updatevendordetails.d.ts +24 -24
- package/dist/esm/models/operations/updatevendordetails.d.ts.map +1 -1
- package/dist/esm/models/operations/updatevendordetails.js.map +1 -1
- package/dist/esm/models/operations/updatevendorscrubdetails.d.ts +21 -21
- package/dist/esm/models/operations/updatevendorscrubdetails.d.ts.map +1 -1
- package/dist/esm/models/operations/updatevendorscrubdetails.js.map +1 -1
- package/dist/esm/react-query/eventsListFeed.d.ts +111 -0
- package/dist/esm/react-query/eventsListFeed.d.ts.map +1 -0
- package/dist/esm/react-query/eventsListFeed.js +161 -0
- package/dist/esm/react-query/eventsListFeed.js.map +1 -0
- package/dist/esm/react-query/eventsListLocations.d.ts +84 -0
- package/dist/esm/react-query/eventsListLocations.d.ts.map +1 -0
- package/dist/esm/react-query/eventsListLocations.js +148 -0
- package/dist/esm/react-query/eventsListLocations.js.map +1 -0
- package/dist/esm/react-query/eventsListPendingInvitations.d.ts +93 -0
- package/dist/esm/react-query/eventsListPendingInvitations.d.ts.map +1 -0
- package/dist/esm/react-query/eventsListPendingInvitations.js +158 -0
- package/dist/esm/react-query/eventsListPendingInvitations.js.map +1 -0
- package/dist/esm/react-query/eventsListStandingAppointments.d.ts +111 -0
- package/dist/esm/react-query/eventsListStandingAppointments.d.ts.map +1 -0
- package/dist/esm/react-query/eventsListStandingAppointments.js +170 -0
- package/dist/esm/react-query/eventsListStandingAppointments.js.map +1 -0
- package/dist/esm/react-query/index.d.ts +4 -0
- package/dist/esm/react-query/index.d.ts.map +1 -1
- package/dist/esm/react-query/index.js +4 -0
- package/dist/esm/react-query/index.js.map +1 -1
- package/dist/esm/sdk/events.d.ts +36 -0
- package/dist/esm/sdk/events.d.ts.map +1 -1
- package/dist/esm/sdk/events.js +40 -0
- package/dist/esm/sdk/events.js.map +1 -1
- package/examples/package-lock.json +6 -5
- package/jsr.json +1 -1
- package/package.json +6 -6
- package/src/__tests__/events.test.ts +136 -0
- package/src/__tests__/webhooks.test.ts +1 -1
- package/src/__tests__/zones.test.ts +2 -5
- package/src/funcs/eventsListFeed.ts +257 -0
- package/src/funcs/eventsListLocations.ts +250 -0
- package/src/funcs/eventsListPendingInvitations.ts +254 -0
- package/src/funcs/eventsListStandingAppointments.ts +260 -0
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +9 -1
- package/src/mcp-server/tools/eventsListFeed.ts +37 -0
- package/src/mcp-server/tools/eventsListLocations.ts +37 -0
- package/src/mcp-server/tools/eventsListPendingInvitations.ts +37 -0
- package/src/mcp-server/tools/eventsListStandingAppointments.ts +38 -0
- package/src/models/components/backgroundcheckresult.ts +31 -31
- package/src/models/components/contact.ts +25 -25
- package/src/models/components/credential.ts +26 -26
- package/src/models/components/credit.ts +11 -11
- package/src/models/components/datarequest.ts +19 -19
- package/src/models/components/facility.ts +27 -27
- package/src/models/components/feed.ts +88 -0
- package/src/models/components/index.ts +3 -0
- package/src/models/components/mfarequiredresponse.ts +21 -21
- package/src/models/components/passwordrequiredresponse.ts +12 -12
- package/src/models/components/pendinginvitation.ts +176 -0
- package/src/models/components/samlloginrequiredresponse.ts +21 -21
- package/src/models/components/standingappointment.ts +106 -0
- package/src/models/components/user.ts +50 -50
- package/src/models/components/userlocation.ts +19 -19
- package/src/models/components/vendorcredentialdatarequest.ts +28 -28
- package/src/models/components/webhookendpoint.ts +21 -21
- package/src/models/operations/createinvoice.ts +114 -114
- package/src/models/operations/createorupdatebcr.ts +21 -21
- package/src/models/operations/index.ts +4 -0
- package/src/models/operations/listfeed.ts +340 -0
- package/src/models/operations/listlocations.ts +316 -0
- package/src/models/operations/listpendinginvitations.ts +296 -0
- package/src/models/operations/liststandingappointments.ts +351 -0
- package/src/models/operations/listvendorinvoices.ts +21 -21
- package/src/models/operations/securityzonecheckin.ts +24 -24
- package/src/models/operations/senddownloadcode.ts +12 -12
- package/src/models/operations/updateinvoice.ts +124 -124
- package/src/models/operations/updatevendorcredentialdata.ts +24 -24
- package/src/models/operations/updatevendordetails.ts +21 -21
- package/src/models/operations/updatevendorscrubdetails.ts +23 -23
- package/src/react-query/eventsListFeed.ts +366 -0
- package/src/react-query/eventsListLocations.ts +342 -0
- package/src/react-query/eventsListPendingInvitations.ts +367 -0
- package/src/react-query/eventsListStandingAppointments.ts +400 -0
- package/src/react-query/index.ts +4 -0
- package/src/sdk/events.ts +76 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { eventsListStandingAppointments } from "../../funcs/eventsListStandingAppointments.js";
|
|
6
|
+
import * as operations from "../../models/operations/index.js";
|
|
7
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
+
|
|
9
|
+
const args = {
|
|
10
|
+
request: operations.ListStandingAppointmentsRequest$inboundSchema,
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool$eventsListStandingAppointments: ToolDefinition<typeof args> =
|
|
14
|
+
{
|
|
15
|
+
name: "events-list-standing-appointments",
|
|
16
|
+
description: `List standing appointments
|
|
17
|
+
|
|
18
|
+
List standing appointment`,
|
|
19
|
+
args,
|
|
20
|
+
tool: async (client, args, ctx) => {
|
|
21
|
+
const [result, apiCall] = await eventsListStandingAppointments(
|
|
22
|
+
client,
|
|
23
|
+
args.request,
|
|
24
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
25
|
+
).$inspect();
|
|
26
|
+
|
|
27
|
+
if (!result.ok) {
|
|
28
|
+
return {
|
|
29
|
+
content: [{ type: "text", text: result.error.message }],
|
|
30
|
+
isError: true,
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
const value = result.value.result;
|
|
35
|
+
|
|
36
|
+
return formatResult(value, apiCall);
|
|
37
|
+
},
|
|
38
|
+
};
|
|
@@ -30,37 +30,6 @@ export const DeliveryMethod = {
|
|
|
30
30
|
} as const;
|
|
31
31
|
export type DeliveryMethod = ClosedEnum<typeof DeliveryMethod>;
|
|
32
32
|
|
|
33
|
-
export type BackgroundCheckResultInvoice = Invoice | number;
|
|
34
|
-
|
|
35
|
-
export type Bcp = {
|
|
36
|
-
orderId?: number | null | undefined;
|
|
37
|
-
orderStatus?: string | null | undefined;
|
|
38
|
-
notes?: string | null | undefined;
|
|
39
|
-
dateSent?: string | null | undefined;
|
|
40
|
-
dateReceived?: string | null | undefined;
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
export type BackgroundCheckResultLocation = {
|
|
44
|
-
address1?: string | null | undefined;
|
|
45
|
-
address2?: string | null | undefined;
|
|
46
|
-
city?: string | null | undefined;
|
|
47
|
-
state?: string | null | undefined;
|
|
48
|
-
zip?: string | null | undefined;
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* Reduced list of attributes of Background Check Result record
|
|
53
|
-
*/
|
|
54
|
-
export type BackgroundCheckResult = {
|
|
55
|
-
id?: number | undefined;
|
|
56
|
-
status?: BackgroundCheckResultStatus | undefined;
|
|
57
|
-
deliveryMethod?: DeliveryMethod | null | undefined;
|
|
58
|
-
invoice?: Invoice | number | null | undefined;
|
|
59
|
-
email?: string | null | undefined;
|
|
60
|
-
bcp?: Bcp | undefined;
|
|
61
|
-
location?: BackgroundCheckResultLocation | null | undefined;
|
|
62
|
-
};
|
|
63
|
-
|
|
64
33
|
/** @internal */
|
|
65
34
|
export const BackgroundCheckResultStatus$inboundSchema: z.ZodNativeEnum<
|
|
66
35
|
typeof BackgroundCheckResultStatus
|
|
@@ -103,6 +72,37 @@ export namespace DeliveryMethod$ {
|
|
|
103
72
|
export const outboundSchema = DeliveryMethod$outboundSchema;
|
|
104
73
|
}
|
|
105
74
|
|
|
75
|
+
export type BackgroundCheckResultInvoice = Invoice | number;
|
|
76
|
+
|
|
77
|
+
export type Bcp = {
|
|
78
|
+
orderId?: number | null | undefined;
|
|
79
|
+
orderStatus?: string | null | undefined;
|
|
80
|
+
notes?: string | null | undefined;
|
|
81
|
+
dateSent?: string | null | undefined;
|
|
82
|
+
dateReceived?: string | null | undefined;
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
export type BackgroundCheckResultLocation = {
|
|
86
|
+
address1?: string | null | undefined;
|
|
87
|
+
address2?: string | null | undefined;
|
|
88
|
+
city?: string | null | undefined;
|
|
89
|
+
state?: string | null | undefined;
|
|
90
|
+
zip?: string | null | undefined;
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Reduced list of attributes of Background Check Result record
|
|
95
|
+
*/
|
|
96
|
+
export type BackgroundCheckResult = {
|
|
97
|
+
id?: number | undefined;
|
|
98
|
+
status?: BackgroundCheckResultStatus | undefined;
|
|
99
|
+
deliveryMethod?: DeliveryMethod | null | undefined;
|
|
100
|
+
invoice?: Invoice | number | null | undefined;
|
|
101
|
+
email?: string | null | undefined;
|
|
102
|
+
bcp?: Bcp | undefined;
|
|
103
|
+
location?: BackgroundCheckResultLocation | null | undefined;
|
|
104
|
+
};
|
|
105
|
+
|
|
106
106
|
/** @internal */
|
|
107
107
|
export const BackgroundCheckResultInvoice$inboundSchema: z.ZodType<
|
|
108
108
|
BackgroundCheckResultInvoice,
|
|
@@ -32,12 +32,6 @@ import {
|
|
|
32
32
|
UserSummary$outboundSchema,
|
|
33
33
|
} from "./usersummary.js";
|
|
34
34
|
|
|
35
|
-
export type ContactFacility = FacilitySummary | number;
|
|
36
|
-
|
|
37
|
-
export type System = SystemSummary | number;
|
|
38
|
-
|
|
39
|
-
export type ContactUser = UserSummary | number;
|
|
40
|
-
|
|
41
35
|
export const Status = {
|
|
42
36
|
Active: "Active",
|
|
43
37
|
Inactive: "Inactive",
|
|
@@ -45,6 +39,31 @@ export const Status = {
|
|
|
45
39
|
} as const;
|
|
46
40
|
export type Status = ClosedEnum<typeof Status>;
|
|
47
41
|
|
|
42
|
+
/** @internal */
|
|
43
|
+
export const Status$inboundSchema: z.ZodNativeEnum<typeof Status> = z
|
|
44
|
+
.nativeEnum(Status);
|
|
45
|
+
|
|
46
|
+
/** @internal */
|
|
47
|
+
export const Status$outboundSchema: z.ZodNativeEnum<typeof Status> =
|
|
48
|
+
Status$inboundSchema;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* @internal
|
|
52
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
53
|
+
*/
|
|
54
|
+
export namespace Status$ {
|
|
55
|
+
/** @deprecated use `Status$inboundSchema` instead. */
|
|
56
|
+
export const inboundSchema = Status$inboundSchema;
|
|
57
|
+
/** @deprecated use `Status$outboundSchema` instead. */
|
|
58
|
+
export const outboundSchema = Status$outboundSchema;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export type ContactFacility = FacilitySummary | number;
|
|
62
|
+
|
|
63
|
+
export type System = SystemSummary | number;
|
|
64
|
+
|
|
65
|
+
export type ContactUser = UserSummary | number;
|
|
66
|
+
|
|
48
67
|
export type ContactDepartment = DepartmentSummary | number;
|
|
49
68
|
|
|
50
69
|
/**
|
|
@@ -191,25 +210,6 @@ export function contactUserFromJSON(
|
|
|
191
210
|
);
|
|
192
211
|
}
|
|
193
212
|
|
|
194
|
-
/** @internal */
|
|
195
|
-
export const Status$inboundSchema: z.ZodNativeEnum<typeof Status> = z
|
|
196
|
-
.nativeEnum(Status);
|
|
197
|
-
|
|
198
|
-
/** @internal */
|
|
199
|
-
export const Status$outboundSchema: z.ZodNativeEnum<typeof Status> =
|
|
200
|
-
Status$inboundSchema;
|
|
201
|
-
|
|
202
|
-
/**
|
|
203
|
-
* @internal
|
|
204
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
205
|
-
*/
|
|
206
|
-
export namespace Status$ {
|
|
207
|
-
/** @deprecated use `Status$inboundSchema` instead. */
|
|
208
|
-
export const inboundSchema = Status$inboundSchema;
|
|
209
|
-
/** @deprecated use `Status$outboundSchema` instead. */
|
|
210
|
-
export const outboundSchema = Status$outboundSchema;
|
|
211
|
-
}
|
|
212
|
-
|
|
213
213
|
/** @internal */
|
|
214
214
|
export const ContactDepartment$inboundSchema: z.ZodType<
|
|
215
215
|
ContactDepartment,
|
|
@@ -40,32 +40,6 @@ export const CredentialStatus1 = {
|
|
|
40
40
|
} as const;
|
|
41
41
|
export type CredentialStatus1 = ClosedEnum<typeof CredentialStatus1>;
|
|
42
42
|
|
|
43
|
-
/**
|
|
44
|
-
* Reduced list of attributes of Credential record
|
|
45
|
-
*/
|
|
46
|
-
export type Credential = {
|
|
47
|
-
id: number;
|
|
48
|
-
name?: string | null | undefined;
|
|
49
|
-
description?: string | null | undefined;
|
|
50
|
-
credentialType?: CredentialType | undefined;
|
|
51
|
-
validFor?: ValidFor | undefined;
|
|
52
|
-
status?: CredentialStatus1 | undefined;
|
|
53
|
-
hasPricing?: boolean | undefined;
|
|
54
|
-
allowDecline?: boolean | undefined;
|
|
55
|
-
jsSchema?: string | null | undefined;
|
|
56
|
-
uiSchema?: string | null | undefined;
|
|
57
|
-
behavior?: string | null | undefined;
|
|
58
|
-
requireElectronicSignature?: boolean | undefined;
|
|
59
|
-
acceptText?: string | null | undefined;
|
|
60
|
-
acceptSubmittingText?: string | null | undefined;
|
|
61
|
-
declineSubmittingText?: string | null | undefined;
|
|
62
|
-
declineDescription?: string | null | undefined;
|
|
63
|
-
requireDeclineFile?: boolean | undefined;
|
|
64
|
-
credentialDocuments?: Array<CredentialDocument | null> | undefined;
|
|
65
|
-
fileUrl?: string | null | undefined;
|
|
66
|
-
declineFileUrl?: string | null | undefined;
|
|
67
|
-
};
|
|
68
|
-
|
|
69
43
|
/** @internal */
|
|
70
44
|
export const CredentialType$inboundSchema: z.ZodNativeEnum<
|
|
71
45
|
typeof CredentialType
|
|
@@ -127,6 +101,32 @@ export namespace CredentialStatus1$ {
|
|
|
127
101
|
export const outboundSchema = CredentialStatus1$outboundSchema;
|
|
128
102
|
}
|
|
129
103
|
|
|
104
|
+
/**
|
|
105
|
+
* Reduced list of attributes of Credential record
|
|
106
|
+
*/
|
|
107
|
+
export type Credential = {
|
|
108
|
+
id: number;
|
|
109
|
+
name?: string | null | undefined;
|
|
110
|
+
description?: string | null | undefined;
|
|
111
|
+
credentialType?: CredentialType | undefined;
|
|
112
|
+
validFor?: ValidFor | undefined;
|
|
113
|
+
status?: CredentialStatus1 | undefined;
|
|
114
|
+
hasPricing?: boolean | undefined;
|
|
115
|
+
allowDecline?: boolean | undefined;
|
|
116
|
+
jsSchema?: string | null | undefined;
|
|
117
|
+
uiSchema?: string | null | undefined;
|
|
118
|
+
behavior?: string | null | undefined;
|
|
119
|
+
requireElectronicSignature?: boolean | undefined;
|
|
120
|
+
acceptText?: string | null | undefined;
|
|
121
|
+
acceptSubmittingText?: string | null | undefined;
|
|
122
|
+
declineSubmittingText?: string | null | undefined;
|
|
123
|
+
declineDescription?: string | null | undefined;
|
|
124
|
+
requireDeclineFile?: boolean | undefined;
|
|
125
|
+
credentialDocuments?: Array<CredentialDocument | null> | undefined;
|
|
126
|
+
fileUrl?: string | null | undefined;
|
|
127
|
+
declineFileUrl?: string | null | undefined;
|
|
128
|
+
};
|
|
129
|
+
|
|
130
130
|
/** @internal */
|
|
131
131
|
export const Credential$inboundSchema: z.ZodType<
|
|
132
132
|
Credential,
|
|
@@ -16,17 +16,6 @@ export const Action = {
|
|
|
16
16
|
} as const;
|
|
17
17
|
export type Action = ClosedEnum<typeof Action>;
|
|
18
18
|
|
|
19
|
-
export type Credit = {
|
|
20
|
-
id?: number | undefined;
|
|
21
|
-
date?: string | null | undefined;
|
|
22
|
-
action?: Action | undefined;
|
|
23
|
-
amount?: number | undefined;
|
|
24
|
-
balance?: number | undefined;
|
|
25
|
-
from?: string | null | undefined;
|
|
26
|
-
to?: string | null | undefined;
|
|
27
|
-
invoiceNumber?: string | null | undefined;
|
|
28
|
-
};
|
|
29
|
-
|
|
30
19
|
/** @internal */
|
|
31
20
|
export const Action$inboundSchema: z.ZodNativeEnum<typeof Action> = z
|
|
32
21
|
.nativeEnum(Action);
|
|
@@ -46,6 +35,17 @@ export namespace Action$ {
|
|
|
46
35
|
export const outboundSchema = Action$outboundSchema;
|
|
47
36
|
}
|
|
48
37
|
|
|
38
|
+
export type Credit = {
|
|
39
|
+
id?: number | undefined;
|
|
40
|
+
date?: string | null | undefined;
|
|
41
|
+
action?: Action | undefined;
|
|
42
|
+
amount?: number | undefined;
|
|
43
|
+
balance?: number | undefined;
|
|
44
|
+
from?: string | null | undefined;
|
|
45
|
+
to?: string | null | undefined;
|
|
46
|
+
invoiceNumber?: string | null | undefined;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
49
|
/** @internal */
|
|
50
50
|
export const Credit$inboundSchema: z.ZodType<Credit, z.ZodTypeDef, unknown> = z
|
|
51
51
|
.object({
|
|
@@ -18,6 +18,25 @@ export const DataType = {
|
|
|
18
18
|
} as const;
|
|
19
19
|
export type DataType = ClosedEnum<typeof DataType>;
|
|
20
20
|
|
|
21
|
+
/** @internal */
|
|
22
|
+
export const DataType$inboundSchema: z.ZodNativeEnum<typeof DataType> = z
|
|
23
|
+
.nativeEnum(DataType);
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
export const DataType$outboundSchema: z.ZodNativeEnum<typeof DataType> =
|
|
27
|
+
DataType$inboundSchema;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* @internal
|
|
31
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
32
|
+
*/
|
|
33
|
+
export namespace DataType$ {
|
|
34
|
+
/** @deprecated use `DataType$inboundSchema` instead. */
|
|
35
|
+
export const inboundSchema = DataType$inboundSchema;
|
|
36
|
+
/** @deprecated use `DataType$outboundSchema` instead. */
|
|
37
|
+
export const outboundSchema = DataType$outboundSchema;
|
|
38
|
+
}
|
|
39
|
+
|
|
21
40
|
export type Url = {
|
|
22
41
|
value?: string | null | undefined;
|
|
23
42
|
func?: string | null | undefined;
|
|
@@ -42,25 +61,6 @@ export type DataRequest = {
|
|
|
42
61
|
file?: DataRequestFile | null | undefined;
|
|
43
62
|
};
|
|
44
63
|
|
|
45
|
-
/** @internal */
|
|
46
|
-
export const DataType$inboundSchema: z.ZodNativeEnum<typeof DataType> = z
|
|
47
|
-
.nativeEnum(DataType);
|
|
48
|
-
|
|
49
|
-
/** @internal */
|
|
50
|
-
export const DataType$outboundSchema: z.ZodNativeEnum<typeof DataType> =
|
|
51
|
-
DataType$inboundSchema;
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* @internal
|
|
55
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
56
|
-
*/
|
|
57
|
-
export namespace DataType$ {
|
|
58
|
-
/** @deprecated use `DataType$inboundSchema` instead. */
|
|
59
|
-
export const inboundSchema = DataType$inboundSchema;
|
|
60
|
-
/** @deprecated use `DataType$outboundSchema` instead. */
|
|
61
|
-
export const outboundSchema = DataType$outboundSchema;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
64
|
/** @internal */
|
|
65
65
|
export const Url$inboundSchema: z.ZodType<Url, z.ZodTypeDef, unknown> = z
|
|
66
66
|
.object({
|
|
@@ -34,6 +34,33 @@ import {
|
|
|
34
34
|
SystemSummary$outboundSchema,
|
|
35
35
|
} from "./systemsummary.js";
|
|
36
36
|
|
|
37
|
+
export const VendorGuestLimitAndOr = {
|
|
38
|
+
And: "and",
|
|
39
|
+
Or: "or",
|
|
40
|
+
} as const;
|
|
41
|
+
export type VendorGuestLimitAndOr = ClosedEnum<typeof VendorGuestLimitAndOr>;
|
|
42
|
+
|
|
43
|
+
/** @internal */
|
|
44
|
+
export const VendorGuestLimitAndOr$inboundSchema: z.ZodNativeEnum<
|
|
45
|
+
typeof VendorGuestLimitAndOr
|
|
46
|
+
> = z.nativeEnum(VendorGuestLimitAndOr);
|
|
47
|
+
|
|
48
|
+
/** @internal */
|
|
49
|
+
export const VendorGuestLimitAndOr$outboundSchema: z.ZodNativeEnum<
|
|
50
|
+
typeof VendorGuestLimitAndOr
|
|
51
|
+
> = VendorGuestLimitAndOr$inboundSchema;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* @internal
|
|
55
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
56
|
+
*/
|
|
57
|
+
export namespace VendorGuestLimitAndOr$ {
|
|
58
|
+
/** @deprecated use `VendorGuestLimitAndOr$inboundSchema` instead. */
|
|
59
|
+
export const inboundSchema = VendorGuestLimitAndOr$inboundSchema;
|
|
60
|
+
/** @deprecated use `VendorGuestLimitAndOr$outboundSchema` instead. */
|
|
61
|
+
export const outboundSchema = VendorGuestLimitAndOr$outboundSchema;
|
|
62
|
+
}
|
|
63
|
+
|
|
37
64
|
export type AppointmentPolicy = {
|
|
38
65
|
standingApptPeriod?: string | undefined;
|
|
39
66
|
apptRequestInfo?: string | undefined;
|
|
@@ -117,12 +144,6 @@ export type Uses = {
|
|
|
117
144
|
visitorSearch: boolean;
|
|
118
145
|
};
|
|
119
146
|
|
|
120
|
-
export const VendorGuestLimitAndOr = {
|
|
121
|
-
And: "and",
|
|
122
|
-
Or: "or",
|
|
123
|
-
} as const;
|
|
124
|
-
export type VendorGuestLimitAndOr = ClosedEnum<typeof VendorGuestLimitAndOr>;
|
|
125
|
-
|
|
126
147
|
export type VendorGuestPolicy = {
|
|
127
148
|
enabled: boolean;
|
|
128
149
|
vendorGuestLimit?: number | undefined;
|
|
@@ -839,27 +860,6 @@ export function usesFromJSON(
|
|
|
839
860
|
);
|
|
840
861
|
}
|
|
841
862
|
|
|
842
|
-
/** @internal */
|
|
843
|
-
export const VendorGuestLimitAndOr$inboundSchema: z.ZodNativeEnum<
|
|
844
|
-
typeof VendorGuestLimitAndOr
|
|
845
|
-
> = z.nativeEnum(VendorGuestLimitAndOr);
|
|
846
|
-
|
|
847
|
-
/** @internal */
|
|
848
|
-
export const VendorGuestLimitAndOr$outboundSchema: z.ZodNativeEnum<
|
|
849
|
-
typeof VendorGuestLimitAndOr
|
|
850
|
-
> = VendorGuestLimitAndOr$inboundSchema;
|
|
851
|
-
|
|
852
|
-
/**
|
|
853
|
-
* @internal
|
|
854
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
855
|
-
*/
|
|
856
|
-
export namespace VendorGuestLimitAndOr$ {
|
|
857
|
-
/** @deprecated use `VendorGuestLimitAndOr$inboundSchema` instead. */
|
|
858
|
-
export const inboundSchema = VendorGuestLimitAndOr$inboundSchema;
|
|
859
|
-
/** @deprecated use `VendorGuestLimitAndOr$outboundSchema` instead. */
|
|
860
|
-
export const outboundSchema = VendorGuestLimitAndOr$outboundSchema;
|
|
861
|
-
}
|
|
862
|
-
|
|
863
863
|
/** @internal */
|
|
864
864
|
export const VendorGuestPolicy$inboundSchema: z.ZodType<
|
|
865
865
|
VendorGuestPolicy,
|
|
@@ -0,0 +1,88 @@
|
|
|
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 { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* A representation of a Feed response
|
|
13
|
+
*/
|
|
14
|
+
export type Feed = {
|
|
15
|
+
id?: number | undefined;
|
|
16
|
+
title?: string | null | undefined;
|
|
17
|
+
start?: string | null | undefined;
|
|
18
|
+
end?: string | null | undefined;
|
|
19
|
+
status?: string | null | undefined;
|
|
20
|
+
allDay?: boolean | undefined;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
/** @internal */
|
|
24
|
+
export const Feed$inboundSchema: z.ZodType<Feed, z.ZodTypeDef, unknown> = z
|
|
25
|
+
.object({
|
|
26
|
+
id: z.number().int().optional(),
|
|
27
|
+
title: z.nullable(z.string()).optional(),
|
|
28
|
+
start: z.nullable(z.string()).optional(),
|
|
29
|
+
end: z.nullable(z.string()).optional(),
|
|
30
|
+
status: z.nullable(z.string()).optional(),
|
|
31
|
+
all_day: z.boolean().optional(),
|
|
32
|
+
}).transform((v) => {
|
|
33
|
+
return remap$(v, {
|
|
34
|
+
"all_day": "allDay",
|
|
35
|
+
});
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
/** @internal */
|
|
39
|
+
export type Feed$Outbound = {
|
|
40
|
+
id?: number | undefined;
|
|
41
|
+
title?: string | null | undefined;
|
|
42
|
+
start?: string | null | undefined;
|
|
43
|
+
end?: string | null | undefined;
|
|
44
|
+
status?: string | null | undefined;
|
|
45
|
+
all_day?: boolean | undefined;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
/** @internal */
|
|
49
|
+
export const Feed$outboundSchema: z.ZodType<Feed$Outbound, z.ZodTypeDef, Feed> =
|
|
50
|
+
z.object({
|
|
51
|
+
id: z.number().int().optional(),
|
|
52
|
+
title: z.nullable(z.string()).optional(),
|
|
53
|
+
start: z.nullable(z.string()).optional(),
|
|
54
|
+
end: z.nullable(z.string()).optional(),
|
|
55
|
+
status: z.nullable(z.string()).optional(),
|
|
56
|
+
allDay: z.boolean().optional(),
|
|
57
|
+
}).transform((v) => {
|
|
58
|
+
return remap$(v, {
|
|
59
|
+
allDay: "all_day",
|
|
60
|
+
});
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* @internal
|
|
65
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
66
|
+
*/
|
|
67
|
+
export namespace Feed$ {
|
|
68
|
+
/** @deprecated use `Feed$inboundSchema` instead. */
|
|
69
|
+
export const inboundSchema = Feed$inboundSchema;
|
|
70
|
+
/** @deprecated use `Feed$outboundSchema` instead. */
|
|
71
|
+
export const outboundSchema = Feed$outboundSchema;
|
|
72
|
+
/** @deprecated use `Feed$Outbound` instead. */
|
|
73
|
+
export type Outbound = Feed$Outbound;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function feedToJSON(feed: Feed): string {
|
|
77
|
+
return JSON.stringify(Feed$outboundSchema.parse(feed));
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function feedFromJSON(
|
|
81
|
+
jsonString: string,
|
|
82
|
+
): SafeParseResult<Feed, SDKValidationError> {
|
|
83
|
+
return safeParse(
|
|
84
|
+
jsonString,
|
|
85
|
+
(x) => Feed$inboundSchema.parse(JSON.parse(x)),
|
|
86
|
+
`Failed to parse 'Feed' from JSON`,
|
|
87
|
+
);
|
|
88
|
+
}
|
|
@@ -22,6 +22,7 @@ export * from "./facility.js";
|
|
|
22
22
|
export * from "./facilitystatus.js";
|
|
23
23
|
export * from "./facilitysummary.js";
|
|
24
24
|
export * from "./facilityvendortype.js";
|
|
25
|
+
export * from "./feed.js";
|
|
25
26
|
export * from "./financialstatus.js";
|
|
26
27
|
export * from "./handoff.js";
|
|
27
28
|
export * from "./imageset.js";
|
|
@@ -34,12 +35,14 @@ export * from "./mfarequiredresponse.js";
|
|
|
34
35
|
export * from "./pager.js";
|
|
35
36
|
export * from "./passwordrequiredresponse.js";
|
|
36
37
|
export * from "./paymentprofile.js";
|
|
38
|
+
export * from "./pendinginvitation.js";
|
|
37
39
|
export * from "./product.js";
|
|
38
40
|
export * from "./productvariant.js";
|
|
39
41
|
export * from "./samlloginrequiredresponse.js";
|
|
40
42
|
export * from "./scantype.js";
|
|
41
43
|
export * from "./screeningresponse.js";
|
|
42
44
|
export * from "./security.js";
|
|
45
|
+
export * from "./standingappointment.js";
|
|
43
46
|
export * from "./state.js";
|
|
44
47
|
export * from "./subscription.js";
|
|
45
48
|
export * from "./supervisor.js";
|
|
@@ -22,27 +22,6 @@ export const MfaMethod = {
|
|
|
22
22
|
} as const;
|
|
23
23
|
export type MfaMethod = ClosedEnum<typeof MfaMethod>;
|
|
24
24
|
|
|
25
|
-
/**
|
|
26
|
-
* The response is sent when a login is successful, but requires more information such as a MFA.
|
|
27
|
-
*
|
|
28
|
-
* @remarks
|
|
29
|
-
*
|
|
30
|
-
* If the `mfa_method` is text or email, it's best to show helper text to the user to notify them that a code was sent via mobile or email and they should enter it to proceed.
|
|
31
|
-
*/
|
|
32
|
-
export type MfaRequiredResponse = {
|
|
33
|
-
requires: MfaRequiredResponseRequires;
|
|
34
|
-
success: boolean;
|
|
35
|
-
/**
|
|
36
|
-
* Error describing the exact condition of what further steps are needed to finish the login process.
|
|
37
|
-
*/
|
|
38
|
-
error: string;
|
|
39
|
-
/**
|
|
40
|
-
* A redacted version of the phone number such as `###-###-1234`
|
|
41
|
-
*/
|
|
42
|
-
mobilePhone?: string | undefined;
|
|
43
|
-
mfaMethod?: MfaMethod | undefined;
|
|
44
|
-
};
|
|
45
|
-
|
|
46
25
|
/** @internal */
|
|
47
26
|
export const MfaRequiredResponseRequires$inboundSchema: z.ZodNativeEnum<
|
|
48
27
|
typeof MfaRequiredResponseRequires
|
|
@@ -83,6 +62,27 @@ export namespace MfaMethod$ {
|
|
|
83
62
|
export const outboundSchema = MfaMethod$outboundSchema;
|
|
84
63
|
}
|
|
85
64
|
|
|
65
|
+
/**
|
|
66
|
+
* The response is sent when a login is successful, but requires more information such as a MFA.
|
|
67
|
+
*
|
|
68
|
+
* @remarks
|
|
69
|
+
*
|
|
70
|
+
* If the `mfa_method` is text or email, it's best to show helper text to the user to notify them that a code was sent via mobile or email and they should enter it to proceed.
|
|
71
|
+
*/
|
|
72
|
+
export type MfaRequiredResponse = {
|
|
73
|
+
requires: MfaRequiredResponseRequires;
|
|
74
|
+
success: boolean;
|
|
75
|
+
/**
|
|
76
|
+
* Error describing the exact condition of what further steps are needed to finish the login process.
|
|
77
|
+
*/
|
|
78
|
+
error: string;
|
|
79
|
+
/**
|
|
80
|
+
* A redacted version of the phone number such as `###-###-1234`
|
|
81
|
+
*/
|
|
82
|
+
mobilePhone?: string | undefined;
|
|
83
|
+
mfaMethod?: MfaMethod | undefined;
|
|
84
|
+
};
|
|
85
|
+
|
|
86
86
|
/** @internal */
|
|
87
87
|
export const MfaRequiredResponse$inboundSchema: z.ZodType<
|
|
88
88
|
MfaRequiredResponse,
|
|
@@ -13,18 +13,6 @@ export const Requires = {
|
|
|
13
13
|
} as const;
|
|
14
14
|
export type Requires = ClosedEnum<typeof Requires>;
|
|
15
15
|
|
|
16
|
-
/**
|
|
17
|
-
* The response is sent when the email address provided requires a password (no SAML login).
|
|
18
|
-
*/
|
|
19
|
-
export type PasswordRequiredResponse = {
|
|
20
|
-
requires: Requires;
|
|
21
|
-
success: boolean;
|
|
22
|
-
/**
|
|
23
|
-
* Error describing the exact condition of what further steps are needed to finish the login process.
|
|
24
|
-
*/
|
|
25
|
-
error: string;
|
|
26
|
-
};
|
|
27
|
-
|
|
28
16
|
/** @internal */
|
|
29
17
|
export const Requires$inboundSchema: z.ZodNativeEnum<typeof Requires> = z
|
|
30
18
|
.nativeEnum(Requires);
|
|
@@ -44,6 +32,18 @@ export namespace Requires$ {
|
|
|
44
32
|
export const outboundSchema = Requires$outboundSchema;
|
|
45
33
|
}
|
|
46
34
|
|
|
35
|
+
/**
|
|
36
|
+
* The response is sent when the email address provided requires a password (no SAML login).
|
|
37
|
+
*/
|
|
38
|
+
export type PasswordRequiredResponse = {
|
|
39
|
+
requires: Requires;
|
|
40
|
+
success: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Error describing the exact condition of what further steps are needed to finish the login process.
|
|
43
|
+
*/
|
|
44
|
+
error: string;
|
|
45
|
+
};
|
|
46
|
+
|
|
47
47
|
/** @internal */
|
|
48
48
|
export const PasswordRequiredResponse$inboundSchema: z.ZodType<
|
|
49
49
|
PasswordRequiredResponse,
|