@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,316 @@
|
|
|
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 * as components from "../components/index.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
|
|
12
|
+
export type ListLocationsRequest = {
|
|
13
|
+
/**
|
|
14
|
+
* A comma-separated list of object attributes to sort on.
|
|
15
|
+
*/
|
|
16
|
+
sort?: string | null | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Sort desc
|
|
19
|
+
*/
|
|
20
|
+
desc?: components.Desc | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* A 1-based offset for which page to request (defaults to 1)
|
|
23
|
+
*/
|
|
24
|
+
page?: number | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* Number of items to show in a given page
|
|
27
|
+
*/
|
|
28
|
+
itemsPerPage?: number | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* JSON-encoded array of invitee_user_ids. Only one of `invitee_user_ids`/`invitee_department_ids` or `event_id` is allowed.
|
|
31
|
+
*/
|
|
32
|
+
inviteeUserIds?: string | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* JSON-encoded array of invitee_department_ids. Only one of `invitee_user_ids`/`invitee_department_ids` or `event_id` is allowed.
|
|
35
|
+
*/
|
|
36
|
+
inviteeDepartmentIds?: string | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* ID of the event. Only one of `invitee_user_ids`/`invitee_department_ids` or `event_id` is allowed.
|
|
39
|
+
*/
|
|
40
|
+
eventId?: number | undefined;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
export type Items = {
|
|
44
|
+
id?: string | undefined;
|
|
45
|
+
label?: string | undefined;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* The request was successful, and the server has returned the requested resource in the response body.
|
|
50
|
+
*/
|
|
51
|
+
export type ListLocationsResponseBody = {
|
|
52
|
+
items: Array<Items>;
|
|
53
|
+
/**
|
|
54
|
+
* Pagination information for a pageable list
|
|
55
|
+
*/
|
|
56
|
+
pager: components.Pager;
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
export type ListLocationsResponse = {
|
|
60
|
+
result: ListLocationsResponseBody;
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
/** @internal */
|
|
64
|
+
export const ListLocationsRequest$inboundSchema: z.ZodType<
|
|
65
|
+
ListLocationsRequest,
|
|
66
|
+
z.ZodTypeDef,
|
|
67
|
+
unknown
|
|
68
|
+
> = z.object({
|
|
69
|
+
sort: z.nullable(z.string()).optional(),
|
|
70
|
+
desc: components.Desc$inboundSchema.optional(),
|
|
71
|
+
page: z.number().int().optional(),
|
|
72
|
+
items_per_page: z.number().int().optional(),
|
|
73
|
+
invitee_user_ids: z.string().optional(),
|
|
74
|
+
invitee_department_ids: z.string().optional(),
|
|
75
|
+
event_id: z.number().int().optional(),
|
|
76
|
+
}).transform((v) => {
|
|
77
|
+
return remap$(v, {
|
|
78
|
+
"items_per_page": "itemsPerPage",
|
|
79
|
+
"invitee_user_ids": "inviteeUserIds",
|
|
80
|
+
"invitee_department_ids": "inviteeDepartmentIds",
|
|
81
|
+
"event_id": "eventId",
|
|
82
|
+
});
|
|
83
|
+
});
|
|
84
|
+
|
|
85
|
+
/** @internal */
|
|
86
|
+
export type ListLocationsRequest$Outbound = {
|
|
87
|
+
sort?: string | null | undefined;
|
|
88
|
+
desc?: components.Desc$Outbound | undefined;
|
|
89
|
+
page?: number | undefined;
|
|
90
|
+
items_per_page?: number | undefined;
|
|
91
|
+
invitee_user_ids?: string | undefined;
|
|
92
|
+
invitee_department_ids?: string | undefined;
|
|
93
|
+
event_id?: number | undefined;
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
/** @internal */
|
|
97
|
+
export const ListLocationsRequest$outboundSchema: z.ZodType<
|
|
98
|
+
ListLocationsRequest$Outbound,
|
|
99
|
+
z.ZodTypeDef,
|
|
100
|
+
ListLocationsRequest
|
|
101
|
+
> = z.object({
|
|
102
|
+
sort: z.nullable(z.string()).optional(),
|
|
103
|
+
desc: components.Desc$outboundSchema.optional(),
|
|
104
|
+
page: z.number().int().optional(),
|
|
105
|
+
itemsPerPage: z.number().int().optional(),
|
|
106
|
+
inviteeUserIds: z.string().optional(),
|
|
107
|
+
inviteeDepartmentIds: z.string().optional(),
|
|
108
|
+
eventId: z.number().int().optional(),
|
|
109
|
+
}).transform((v) => {
|
|
110
|
+
return remap$(v, {
|
|
111
|
+
itemsPerPage: "items_per_page",
|
|
112
|
+
inviteeUserIds: "invitee_user_ids",
|
|
113
|
+
inviteeDepartmentIds: "invitee_department_ids",
|
|
114
|
+
eventId: "event_id",
|
|
115
|
+
});
|
|
116
|
+
});
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* @internal
|
|
120
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
121
|
+
*/
|
|
122
|
+
export namespace ListLocationsRequest$ {
|
|
123
|
+
/** @deprecated use `ListLocationsRequest$inboundSchema` instead. */
|
|
124
|
+
export const inboundSchema = ListLocationsRequest$inboundSchema;
|
|
125
|
+
/** @deprecated use `ListLocationsRequest$outboundSchema` instead. */
|
|
126
|
+
export const outboundSchema = ListLocationsRequest$outboundSchema;
|
|
127
|
+
/** @deprecated use `ListLocationsRequest$Outbound` instead. */
|
|
128
|
+
export type Outbound = ListLocationsRequest$Outbound;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
export function listLocationsRequestToJSON(
|
|
132
|
+
listLocationsRequest: ListLocationsRequest,
|
|
133
|
+
): string {
|
|
134
|
+
return JSON.stringify(
|
|
135
|
+
ListLocationsRequest$outboundSchema.parse(listLocationsRequest),
|
|
136
|
+
);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export function listLocationsRequestFromJSON(
|
|
140
|
+
jsonString: string,
|
|
141
|
+
): SafeParseResult<ListLocationsRequest, SDKValidationError> {
|
|
142
|
+
return safeParse(
|
|
143
|
+
jsonString,
|
|
144
|
+
(x) => ListLocationsRequest$inboundSchema.parse(JSON.parse(x)),
|
|
145
|
+
`Failed to parse 'ListLocationsRequest' from JSON`,
|
|
146
|
+
);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/** @internal */
|
|
150
|
+
export const Items$inboundSchema: z.ZodType<Items, z.ZodTypeDef, unknown> = z
|
|
151
|
+
.object({
|
|
152
|
+
id: z.string().optional(),
|
|
153
|
+
label: z.string().optional(),
|
|
154
|
+
});
|
|
155
|
+
|
|
156
|
+
/** @internal */
|
|
157
|
+
export type Items$Outbound = {
|
|
158
|
+
id?: string | undefined;
|
|
159
|
+
label?: string | undefined;
|
|
160
|
+
};
|
|
161
|
+
|
|
162
|
+
/** @internal */
|
|
163
|
+
export const Items$outboundSchema: z.ZodType<
|
|
164
|
+
Items$Outbound,
|
|
165
|
+
z.ZodTypeDef,
|
|
166
|
+
Items
|
|
167
|
+
> = z.object({
|
|
168
|
+
id: z.string().optional(),
|
|
169
|
+
label: z.string().optional(),
|
|
170
|
+
});
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* @internal
|
|
174
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
175
|
+
*/
|
|
176
|
+
export namespace Items$ {
|
|
177
|
+
/** @deprecated use `Items$inboundSchema` instead. */
|
|
178
|
+
export const inboundSchema = Items$inboundSchema;
|
|
179
|
+
/** @deprecated use `Items$outboundSchema` instead. */
|
|
180
|
+
export const outboundSchema = Items$outboundSchema;
|
|
181
|
+
/** @deprecated use `Items$Outbound` instead. */
|
|
182
|
+
export type Outbound = Items$Outbound;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
export function itemsToJSON(items: Items): string {
|
|
186
|
+
return JSON.stringify(Items$outboundSchema.parse(items));
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
export function itemsFromJSON(
|
|
190
|
+
jsonString: string,
|
|
191
|
+
): SafeParseResult<Items, SDKValidationError> {
|
|
192
|
+
return safeParse(
|
|
193
|
+
jsonString,
|
|
194
|
+
(x) => Items$inboundSchema.parse(JSON.parse(x)),
|
|
195
|
+
`Failed to parse 'Items' from JSON`,
|
|
196
|
+
);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
/** @internal */
|
|
200
|
+
export const ListLocationsResponseBody$inboundSchema: z.ZodType<
|
|
201
|
+
ListLocationsResponseBody,
|
|
202
|
+
z.ZodTypeDef,
|
|
203
|
+
unknown
|
|
204
|
+
> = z.object({
|
|
205
|
+
items: z.array(z.lazy(() => Items$inboundSchema)),
|
|
206
|
+
pager: components.Pager$inboundSchema,
|
|
207
|
+
});
|
|
208
|
+
|
|
209
|
+
/** @internal */
|
|
210
|
+
export type ListLocationsResponseBody$Outbound = {
|
|
211
|
+
items: Array<Items$Outbound>;
|
|
212
|
+
pager: components.Pager$Outbound;
|
|
213
|
+
};
|
|
214
|
+
|
|
215
|
+
/** @internal */
|
|
216
|
+
export const ListLocationsResponseBody$outboundSchema: z.ZodType<
|
|
217
|
+
ListLocationsResponseBody$Outbound,
|
|
218
|
+
z.ZodTypeDef,
|
|
219
|
+
ListLocationsResponseBody
|
|
220
|
+
> = z.object({
|
|
221
|
+
items: z.array(z.lazy(() => Items$outboundSchema)),
|
|
222
|
+
pager: components.Pager$outboundSchema,
|
|
223
|
+
});
|
|
224
|
+
|
|
225
|
+
/**
|
|
226
|
+
* @internal
|
|
227
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
228
|
+
*/
|
|
229
|
+
export namespace ListLocationsResponseBody$ {
|
|
230
|
+
/** @deprecated use `ListLocationsResponseBody$inboundSchema` instead. */
|
|
231
|
+
export const inboundSchema = ListLocationsResponseBody$inboundSchema;
|
|
232
|
+
/** @deprecated use `ListLocationsResponseBody$outboundSchema` instead. */
|
|
233
|
+
export const outboundSchema = ListLocationsResponseBody$outboundSchema;
|
|
234
|
+
/** @deprecated use `ListLocationsResponseBody$Outbound` instead. */
|
|
235
|
+
export type Outbound = ListLocationsResponseBody$Outbound;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
export function listLocationsResponseBodyToJSON(
|
|
239
|
+
listLocationsResponseBody: ListLocationsResponseBody,
|
|
240
|
+
): string {
|
|
241
|
+
return JSON.stringify(
|
|
242
|
+
ListLocationsResponseBody$outboundSchema.parse(listLocationsResponseBody),
|
|
243
|
+
);
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
export function listLocationsResponseBodyFromJSON(
|
|
247
|
+
jsonString: string,
|
|
248
|
+
): SafeParseResult<ListLocationsResponseBody, SDKValidationError> {
|
|
249
|
+
return safeParse(
|
|
250
|
+
jsonString,
|
|
251
|
+
(x) => ListLocationsResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
252
|
+
`Failed to parse 'ListLocationsResponseBody' from JSON`,
|
|
253
|
+
);
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
/** @internal */
|
|
257
|
+
export const ListLocationsResponse$inboundSchema: z.ZodType<
|
|
258
|
+
ListLocationsResponse,
|
|
259
|
+
z.ZodTypeDef,
|
|
260
|
+
unknown
|
|
261
|
+
> = z.object({
|
|
262
|
+
Result: z.lazy(() => ListLocationsResponseBody$inboundSchema),
|
|
263
|
+
}).transform((v) => {
|
|
264
|
+
return remap$(v, {
|
|
265
|
+
"Result": "result",
|
|
266
|
+
});
|
|
267
|
+
});
|
|
268
|
+
|
|
269
|
+
/** @internal */
|
|
270
|
+
export type ListLocationsResponse$Outbound = {
|
|
271
|
+
Result: ListLocationsResponseBody$Outbound;
|
|
272
|
+
};
|
|
273
|
+
|
|
274
|
+
/** @internal */
|
|
275
|
+
export const ListLocationsResponse$outboundSchema: z.ZodType<
|
|
276
|
+
ListLocationsResponse$Outbound,
|
|
277
|
+
z.ZodTypeDef,
|
|
278
|
+
ListLocationsResponse
|
|
279
|
+
> = z.object({
|
|
280
|
+
result: z.lazy(() => ListLocationsResponseBody$outboundSchema),
|
|
281
|
+
}).transform((v) => {
|
|
282
|
+
return remap$(v, {
|
|
283
|
+
result: "Result",
|
|
284
|
+
});
|
|
285
|
+
});
|
|
286
|
+
|
|
287
|
+
/**
|
|
288
|
+
* @internal
|
|
289
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
290
|
+
*/
|
|
291
|
+
export namespace ListLocationsResponse$ {
|
|
292
|
+
/** @deprecated use `ListLocationsResponse$inboundSchema` instead. */
|
|
293
|
+
export const inboundSchema = ListLocationsResponse$inboundSchema;
|
|
294
|
+
/** @deprecated use `ListLocationsResponse$outboundSchema` instead. */
|
|
295
|
+
export const outboundSchema = ListLocationsResponse$outboundSchema;
|
|
296
|
+
/** @deprecated use `ListLocationsResponse$Outbound` instead. */
|
|
297
|
+
export type Outbound = ListLocationsResponse$Outbound;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
export function listLocationsResponseToJSON(
|
|
301
|
+
listLocationsResponse: ListLocationsResponse,
|
|
302
|
+
): string {
|
|
303
|
+
return JSON.stringify(
|
|
304
|
+
ListLocationsResponse$outboundSchema.parse(listLocationsResponse),
|
|
305
|
+
);
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
export function listLocationsResponseFromJSON(
|
|
309
|
+
jsonString: string,
|
|
310
|
+
): SafeParseResult<ListLocationsResponse, SDKValidationError> {
|
|
311
|
+
return safeParse(
|
|
312
|
+
jsonString,
|
|
313
|
+
(x) => ListLocationsResponse$inboundSchema.parse(JSON.parse(x)),
|
|
314
|
+
`Failed to parse 'ListLocationsResponse' from JSON`,
|
|
315
|
+
);
|
|
316
|
+
}
|
|
@@ -0,0 +1,296 @@
|
|
|
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 * as components from "../components/index.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
|
|
12
|
+
export type ListPendingInvitationsRequest = {
|
|
13
|
+
/**
|
|
14
|
+
* A comma-separated list of object attributes to sort on.
|
|
15
|
+
*/
|
|
16
|
+
sort?: string | null | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Sort desc
|
|
19
|
+
*/
|
|
20
|
+
desc?: components.Desc | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* A 1-based offset for which page to request (defaults to 1)
|
|
23
|
+
*/
|
|
24
|
+
page?: number | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* Number of items to show in a given page
|
|
27
|
+
*/
|
|
28
|
+
itemsPerPage?: number | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* An ID representing a Hospital
|
|
31
|
+
*/
|
|
32
|
+
facilityId?: number | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* An ID representing a Department
|
|
35
|
+
*/
|
|
36
|
+
departmentId?: number | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* An ID representing a User
|
|
39
|
+
*/
|
|
40
|
+
userId?: number | undefined;
|
|
41
|
+
/**
|
|
42
|
+
* JSON-encoded array of facility_ids.
|
|
43
|
+
*/
|
|
44
|
+
facilityIds?: string | undefined;
|
|
45
|
+
/**
|
|
46
|
+
* JSON-encoded array of department_ids.
|
|
47
|
+
*/
|
|
48
|
+
departmentIds?: string | undefined;
|
|
49
|
+
/**
|
|
50
|
+
* JSON-encoded array of user_ids.
|
|
51
|
+
*/
|
|
52
|
+
userIds?: string | undefined;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* The request was successful, and the server has returned the requested resource in the response body.
|
|
57
|
+
*/
|
|
58
|
+
export type ListPendingInvitationsResponseBody = {
|
|
59
|
+
/**
|
|
60
|
+
* Pagination information for a pageable list
|
|
61
|
+
*/
|
|
62
|
+
pager: components.Pager;
|
|
63
|
+
items: Array<components.PendingInvitation | null>;
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
export type ListPendingInvitationsResponse = {
|
|
67
|
+
result: ListPendingInvitationsResponseBody;
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
/** @internal */
|
|
71
|
+
export const ListPendingInvitationsRequest$inboundSchema: z.ZodType<
|
|
72
|
+
ListPendingInvitationsRequest,
|
|
73
|
+
z.ZodTypeDef,
|
|
74
|
+
unknown
|
|
75
|
+
> = z.object({
|
|
76
|
+
sort: z.nullable(z.string()).optional(),
|
|
77
|
+
desc: components.Desc$inboundSchema.optional(),
|
|
78
|
+
page: z.number().int().optional(),
|
|
79
|
+
items_per_page: z.number().int().optional(),
|
|
80
|
+
facility_id: z.number().int().optional(),
|
|
81
|
+
department_id: z.number().int().optional(),
|
|
82
|
+
user_id: z.number().int().optional(),
|
|
83
|
+
facility_ids: z.string().optional(),
|
|
84
|
+
department_ids: z.string().optional(),
|
|
85
|
+
user_ids: z.string().optional(),
|
|
86
|
+
}).transform((v) => {
|
|
87
|
+
return remap$(v, {
|
|
88
|
+
"items_per_page": "itemsPerPage",
|
|
89
|
+
"facility_id": "facilityId",
|
|
90
|
+
"department_id": "departmentId",
|
|
91
|
+
"user_id": "userId",
|
|
92
|
+
"facility_ids": "facilityIds",
|
|
93
|
+
"department_ids": "departmentIds",
|
|
94
|
+
"user_ids": "userIds",
|
|
95
|
+
});
|
|
96
|
+
});
|
|
97
|
+
|
|
98
|
+
/** @internal */
|
|
99
|
+
export type ListPendingInvitationsRequest$Outbound = {
|
|
100
|
+
sort?: string | null | undefined;
|
|
101
|
+
desc?: components.Desc$Outbound | undefined;
|
|
102
|
+
page?: number | undefined;
|
|
103
|
+
items_per_page?: number | undefined;
|
|
104
|
+
facility_id?: number | undefined;
|
|
105
|
+
department_id?: number | undefined;
|
|
106
|
+
user_id?: number | undefined;
|
|
107
|
+
facility_ids?: string | undefined;
|
|
108
|
+
department_ids?: string | undefined;
|
|
109
|
+
user_ids?: string | undefined;
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
/** @internal */
|
|
113
|
+
export const ListPendingInvitationsRequest$outboundSchema: z.ZodType<
|
|
114
|
+
ListPendingInvitationsRequest$Outbound,
|
|
115
|
+
z.ZodTypeDef,
|
|
116
|
+
ListPendingInvitationsRequest
|
|
117
|
+
> = z.object({
|
|
118
|
+
sort: z.nullable(z.string()).optional(),
|
|
119
|
+
desc: components.Desc$outboundSchema.optional(),
|
|
120
|
+
page: z.number().int().optional(),
|
|
121
|
+
itemsPerPage: z.number().int().optional(),
|
|
122
|
+
facilityId: z.number().int().optional(),
|
|
123
|
+
departmentId: z.number().int().optional(),
|
|
124
|
+
userId: z.number().int().optional(),
|
|
125
|
+
facilityIds: z.string().optional(),
|
|
126
|
+
departmentIds: z.string().optional(),
|
|
127
|
+
userIds: z.string().optional(),
|
|
128
|
+
}).transform((v) => {
|
|
129
|
+
return remap$(v, {
|
|
130
|
+
itemsPerPage: "items_per_page",
|
|
131
|
+
facilityId: "facility_id",
|
|
132
|
+
departmentId: "department_id",
|
|
133
|
+
userId: "user_id",
|
|
134
|
+
facilityIds: "facility_ids",
|
|
135
|
+
departmentIds: "department_ids",
|
|
136
|
+
userIds: "user_ids",
|
|
137
|
+
});
|
|
138
|
+
});
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* @internal
|
|
142
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
143
|
+
*/
|
|
144
|
+
export namespace ListPendingInvitationsRequest$ {
|
|
145
|
+
/** @deprecated use `ListPendingInvitationsRequest$inboundSchema` instead. */
|
|
146
|
+
export const inboundSchema = ListPendingInvitationsRequest$inboundSchema;
|
|
147
|
+
/** @deprecated use `ListPendingInvitationsRequest$outboundSchema` instead. */
|
|
148
|
+
export const outboundSchema = ListPendingInvitationsRequest$outboundSchema;
|
|
149
|
+
/** @deprecated use `ListPendingInvitationsRequest$Outbound` instead. */
|
|
150
|
+
export type Outbound = ListPendingInvitationsRequest$Outbound;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
export function listPendingInvitationsRequestToJSON(
|
|
154
|
+
listPendingInvitationsRequest: ListPendingInvitationsRequest,
|
|
155
|
+
): string {
|
|
156
|
+
return JSON.stringify(
|
|
157
|
+
ListPendingInvitationsRequest$outboundSchema.parse(
|
|
158
|
+
listPendingInvitationsRequest,
|
|
159
|
+
),
|
|
160
|
+
);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
export function listPendingInvitationsRequestFromJSON(
|
|
164
|
+
jsonString: string,
|
|
165
|
+
): SafeParseResult<ListPendingInvitationsRequest, SDKValidationError> {
|
|
166
|
+
return safeParse(
|
|
167
|
+
jsonString,
|
|
168
|
+
(x) => ListPendingInvitationsRequest$inboundSchema.parse(JSON.parse(x)),
|
|
169
|
+
`Failed to parse 'ListPendingInvitationsRequest' from JSON`,
|
|
170
|
+
);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
/** @internal */
|
|
174
|
+
export const ListPendingInvitationsResponseBody$inboundSchema: z.ZodType<
|
|
175
|
+
ListPendingInvitationsResponseBody,
|
|
176
|
+
z.ZodTypeDef,
|
|
177
|
+
unknown
|
|
178
|
+
> = z.object({
|
|
179
|
+
pager: components.Pager$inboundSchema,
|
|
180
|
+
items: z.array(z.nullable(components.PendingInvitation$inboundSchema)),
|
|
181
|
+
});
|
|
182
|
+
|
|
183
|
+
/** @internal */
|
|
184
|
+
export type ListPendingInvitationsResponseBody$Outbound = {
|
|
185
|
+
pager: components.Pager$Outbound;
|
|
186
|
+
items: Array<components.PendingInvitation$Outbound | null>;
|
|
187
|
+
};
|
|
188
|
+
|
|
189
|
+
/** @internal */
|
|
190
|
+
export const ListPendingInvitationsResponseBody$outboundSchema: z.ZodType<
|
|
191
|
+
ListPendingInvitationsResponseBody$Outbound,
|
|
192
|
+
z.ZodTypeDef,
|
|
193
|
+
ListPendingInvitationsResponseBody
|
|
194
|
+
> = z.object({
|
|
195
|
+
pager: components.Pager$outboundSchema,
|
|
196
|
+
items: z.array(z.nullable(components.PendingInvitation$outboundSchema)),
|
|
197
|
+
});
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* @internal
|
|
201
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
202
|
+
*/
|
|
203
|
+
export namespace ListPendingInvitationsResponseBody$ {
|
|
204
|
+
/** @deprecated use `ListPendingInvitationsResponseBody$inboundSchema` instead. */
|
|
205
|
+
export const inboundSchema = ListPendingInvitationsResponseBody$inboundSchema;
|
|
206
|
+
/** @deprecated use `ListPendingInvitationsResponseBody$outboundSchema` instead. */
|
|
207
|
+
export const outboundSchema =
|
|
208
|
+
ListPendingInvitationsResponseBody$outboundSchema;
|
|
209
|
+
/** @deprecated use `ListPendingInvitationsResponseBody$Outbound` instead. */
|
|
210
|
+
export type Outbound = ListPendingInvitationsResponseBody$Outbound;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
export function listPendingInvitationsResponseBodyToJSON(
|
|
214
|
+
listPendingInvitationsResponseBody: ListPendingInvitationsResponseBody,
|
|
215
|
+
): string {
|
|
216
|
+
return JSON.stringify(
|
|
217
|
+
ListPendingInvitationsResponseBody$outboundSchema.parse(
|
|
218
|
+
listPendingInvitationsResponseBody,
|
|
219
|
+
),
|
|
220
|
+
);
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
export function listPendingInvitationsResponseBodyFromJSON(
|
|
224
|
+
jsonString: string,
|
|
225
|
+
): SafeParseResult<ListPendingInvitationsResponseBody, SDKValidationError> {
|
|
226
|
+
return safeParse(
|
|
227
|
+
jsonString,
|
|
228
|
+
(x) =>
|
|
229
|
+
ListPendingInvitationsResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
230
|
+
`Failed to parse 'ListPendingInvitationsResponseBody' from JSON`,
|
|
231
|
+
);
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
/** @internal */
|
|
235
|
+
export const ListPendingInvitationsResponse$inboundSchema: z.ZodType<
|
|
236
|
+
ListPendingInvitationsResponse,
|
|
237
|
+
z.ZodTypeDef,
|
|
238
|
+
unknown
|
|
239
|
+
> = z.object({
|
|
240
|
+
Result: z.lazy(() => ListPendingInvitationsResponseBody$inboundSchema),
|
|
241
|
+
}).transform((v) => {
|
|
242
|
+
return remap$(v, {
|
|
243
|
+
"Result": "result",
|
|
244
|
+
});
|
|
245
|
+
});
|
|
246
|
+
|
|
247
|
+
/** @internal */
|
|
248
|
+
export type ListPendingInvitationsResponse$Outbound = {
|
|
249
|
+
Result: ListPendingInvitationsResponseBody$Outbound;
|
|
250
|
+
};
|
|
251
|
+
|
|
252
|
+
/** @internal */
|
|
253
|
+
export const ListPendingInvitationsResponse$outboundSchema: z.ZodType<
|
|
254
|
+
ListPendingInvitationsResponse$Outbound,
|
|
255
|
+
z.ZodTypeDef,
|
|
256
|
+
ListPendingInvitationsResponse
|
|
257
|
+
> = z.object({
|
|
258
|
+
result: z.lazy(() => ListPendingInvitationsResponseBody$outboundSchema),
|
|
259
|
+
}).transform((v) => {
|
|
260
|
+
return remap$(v, {
|
|
261
|
+
result: "Result",
|
|
262
|
+
});
|
|
263
|
+
});
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* @internal
|
|
267
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
268
|
+
*/
|
|
269
|
+
export namespace ListPendingInvitationsResponse$ {
|
|
270
|
+
/** @deprecated use `ListPendingInvitationsResponse$inboundSchema` instead. */
|
|
271
|
+
export const inboundSchema = ListPendingInvitationsResponse$inboundSchema;
|
|
272
|
+
/** @deprecated use `ListPendingInvitationsResponse$outboundSchema` instead. */
|
|
273
|
+
export const outboundSchema = ListPendingInvitationsResponse$outboundSchema;
|
|
274
|
+
/** @deprecated use `ListPendingInvitationsResponse$Outbound` instead. */
|
|
275
|
+
export type Outbound = ListPendingInvitationsResponse$Outbound;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
export function listPendingInvitationsResponseToJSON(
|
|
279
|
+
listPendingInvitationsResponse: ListPendingInvitationsResponse,
|
|
280
|
+
): string {
|
|
281
|
+
return JSON.stringify(
|
|
282
|
+
ListPendingInvitationsResponse$outboundSchema.parse(
|
|
283
|
+
listPendingInvitationsResponse,
|
|
284
|
+
),
|
|
285
|
+
);
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
export function listPendingInvitationsResponseFromJSON(
|
|
289
|
+
jsonString: string,
|
|
290
|
+
): SafeParseResult<ListPendingInvitationsResponse, SDKValidationError> {
|
|
291
|
+
return safeParse(
|
|
292
|
+
jsonString,
|
|
293
|
+
(x) => ListPendingInvitationsResponse$inboundSchema.parse(JSON.parse(x)),
|
|
294
|
+
`Failed to parse 'ListPendingInvitationsResponse' from JSON`,
|
|
295
|
+
);
|
|
296
|
+
}
|