@greensecurity/javascript-sdk 0.45.0-beta.26 → 0.45.0-beta.28
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 +1 -1
- package/dist/commonjs/__tests__/events.test.js +2 -4
- package/dist/commonjs/__tests__/events.test.js.map +1 -1
- package/dist/commonjs/__tests__/vendors.test.js +1 -1
- package/dist/commonjs/__tests__/vendors.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 +13 -6
- package/dist/commonjs/__tests__/zones.test.js.map +1 -1
- package/dist/commonjs/admin-funcs/doAdmin.d.ts +3 -1
- package/dist/commonjs/admin-funcs/doAdmin.d.ts.map +1 -1
- package/dist/commonjs/admin-funcs/doAdmin.js +22 -4
- package/dist/commonjs/admin-funcs/doAdmin.js.map +1 -1
- package/dist/commonjs/admin-funcs/networksCreate.d.ts +36 -0
- package/dist/commonjs/admin-funcs/networksCreate.d.ts.map +1 -0
- package/dist/commonjs/admin-funcs/networksCreate.js +51 -0
- package/dist/commonjs/admin-funcs/networksCreate.js.map +1 -0
- package/dist/commonjs/admin-funcs/networksGet.d.ts +3 -0
- package/dist/commonjs/admin-funcs/networksGet.d.ts.map +1 -0
- package/dist/commonjs/admin-funcs/networksGet.js +16 -0
- package/dist/commonjs/admin-funcs/networksGet.js.map +1 -0
- package/dist/commonjs/admin-funcs/networksList.d.ts +12 -0
- package/dist/commonjs/admin-funcs/networksList.d.ts.map +1 -0
- package/dist/commonjs/admin-funcs/networksList.js +40 -0
- package/dist/commonjs/admin-funcs/networksList.js.map +1 -0
- package/dist/commonjs/admin-funcs/zoneDevicesGet.d.ts +3 -0
- package/dist/commonjs/admin-funcs/zoneDevicesGet.d.ts.map +1 -0
- package/dist/commonjs/admin-funcs/zoneDevicesGet.js +16 -0
- package/dist/commonjs/admin-funcs/zoneDevicesGet.js.map +1 -0
- package/dist/commonjs/admin-funcs/zoneDevicesList.d.ts +11 -0
- package/dist/commonjs/admin-funcs/zoneDevicesList.d.ts.map +1 -0
- package/dist/commonjs/admin-funcs/zoneDevicesList.js +37 -0
- package/dist/commonjs/admin-funcs/zoneDevicesList.js.map +1 -0
- package/dist/commonjs/funcs/eventsCreateEvent.d.ts +1 -1
- package/dist/commonjs/funcs/eventsCreateEvent.d.ts.map +1 -1
- package/dist/commonjs/funcs/eventsCreateEvent.js +1 -1
- package/dist/commonjs/funcs/eventsCreateEvent.js.map +1 -1
- package/dist/commonjs/funcs/eventsGetEvent.d.ts +12 -4
- package/dist/commonjs/funcs/eventsGetEvent.d.ts.map +1 -1
- package/dist/commonjs/funcs/eventsGetEvent.js +12 -4
- package/dist/commonjs/funcs/eventsGetEvent.js.map +1 -1
- package/dist/commonjs/funcs/eventsListFeed.d.ts +14 -2
- package/dist/commonjs/funcs/eventsListFeed.d.ts.map +1 -1
- package/dist/commonjs/funcs/eventsListFeed.js +14 -2
- package/dist/commonjs/funcs/eventsListFeed.js.map +1 -1
- package/dist/commonjs/funcs/eventsListOrSearchVendorInvitees.js +2 -0
- package/dist/commonjs/funcs/eventsListOrSearchVendorInvitees.js.map +1 -1
- package/dist/commonjs/funcs/eventsListPendingInvitations.d.ts +14 -2
- package/dist/commonjs/funcs/eventsListPendingInvitations.d.ts.map +1 -1
- package/dist/commonjs/funcs/eventsListPendingInvitations.js +14 -2
- package/dist/commonjs/funcs/eventsListPendingInvitations.js.map +1 -1
- package/dist/commonjs/funcs/eventsListStandingAppointments.d.ts +13 -2
- package/dist/commonjs/funcs/eventsListStandingAppointments.d.ts.map +1 -1
- package/dist/commonjs/funcs/eventsListStandingAppointments.js +13 -2
- package/dist/commonjs/funcs/eventsListStandingAppointments.js.map +1 -1
- package/dist/commonjs/funcs/fhirConfigsDeleteFhirConfigById.d.ts +2 -0
- package/dist/commonjs/funcs/fhirConfigsDeleteFhirConfigById.d.ts.map +1 -1
- package/dist/commonjs/funcs/fhirConfigsDeleteFhirConfigById.js +2 -0
- package/dist/commonjs/funcs/fhirConfigsDeleteFhirConfigById.js.map +1 -1
- package/dist/commonjs/funcs/fhirConfigsGetFhirConfig.d.ts +2 -0
- package/dist/commonjs/funcs/fhirConfigsGetFhirConfig.d.ts.map +1 -1
- package/dist/commonjs/funcs/fhirConfigsGetFhirConfig.js +2 -0
- package/dist/commonjs/funcs/fhirConfigsGetFhirConfig.js.map +1 -1
- package/dist/commonjs/funcs/fhirConfigsListOfFhirConfigurations.d.ts +1 -1
- package/dist/commonjs/funcs/fhirConfigsListOfFhirConfigurations.js +1 -1
- package/dist/commonjs/funcs/organizationsCreateCompanyTargetFacility.d.ts +2 -0
- package/dist/commonjs/funcs/organizationsCreateCompanyTargetFacility.d.ts.map +1 -1
- package/dist/commonjs/funcs/organizationsCreateCompanyTargetFacility.js +2 -0
- package/dist/commonjs/funcs/organizationsCreateCompanyTargetFacility.js.map +1 -1
- package/dist/commonjs/funcs/vendorsGetVendorInvoiceDetails.d.ts +2 -0
- package/dist/commonjs/funcs/vendorsGetVendorInvoiceDetails.d.ts.map +1 -1
- package/dist/commonjs/funcs/vendorsGetVendorInvoiceDetails.js +2 -0
- package/dist/commonjs/funcs/vendorsGetVendorInvoiceDetails.js.map +1 -1
- package/dist/commonjs/index.extras.d.ts +14 -0
- package/dist/commonjs/index.extras.d.ts.map +1 -1
- package/dist/commonjs/index.extras.js +16 -0
- package/dist/commonjs/index.extras.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/models/components/event.d.ts +98 -0
- package/dist/commonjs/models/components/event.d.ts.map +1 -0
- package/dist/commonjs/models/components/event.js +110 -0
- package/dist/commonjs/models/components/event.js.map +1 -0
- package/dist/commonjs/models/components/expand.d.ts +6 -0
- package/dist/commonjs/models/components/expand.d.ts.map +1 -1
- package/dist/commonjs/models/components/expand.js +6 -0
- package/dist/commonjs/models/components/expand.js.map +1 -1
- package/dist/commonjs/models/components/index.d.ts +2 -4
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +2 -4
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/invite.d.ts +72 -0
- package/dist/commonjs/models/components/invite.d.ts.map +1 -0
- package/dist/commonjs/models/components/invite.js +109 -0
- package/dist/commonjs/models/components/invite.js.map +1 -0
- package/dist/commonjs/models/operations/createevent.d.ts +19 -0
- package/dist/commonjs/models/operations/createevent.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createevent.js +3 -0
- package/dist/commonjs/models/operations/createevent.js.map +1 -1
- package/dist/commonjs/models/operations/getevent.d.ts +0 -89
- package/dist/commonjs/models/operations/getevent.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getevent.js +1 -77
- package/dist/commonjs/models/operations/getevent.js.map +1 -1
- package/dist/commonjs/models/operations/listfeed.d.ts +1 -1
- package/dist/commonjs/models/operations/listfeed.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listfeed.js +1 -2
- package/dist/commonjs/models/operations/listfeed.js.map +1 -1
- package/dist/commonjs/models/operations/listorsearchvendorinvitees.d.ts +17 -0
- package/dist/commonjs/models/operations/listorsearchvendorinvitees.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listorsearchvendorinvitees.js +4 -0
- package/dist/commonjs/models/operations/listorsearchvendorinvitees.js.map +1 -1
- package/dist/commonjs/models/operations/listpendinginvitations.d.ts +1 -1
- package/dist/commonjs/models/operations/listpendinginvitations.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listpendinginvitations.js +1 -2
- package/dist/commonjs/models/operations/listpendinginvitations.js.map +1 -1
- package/dist/commonjs/models/operations/liststandingappointments.d.ts +1 -1
- package/dist/commonjs/models/operations/liststandingappointments.d.ts.map +1 -1
- package/dist/commonjs/models/operations/liststandingappointments.js +1 -2
- package/dist/commonjs/models/operations/liststandingappointments.js.map +1 -1
- package/dist/commonjs/react-query/eventsCreateEvent.d.ts +1 -1
- package/dist/commonjs/react-query/eventsCreateEvent.d.ts.map +1 -1
- package/dist/commonjs/react-query/eventsCreateEvent.js.map +1 -1
- package/dist/commonjs/react-query/eventsGetEvent.core.d.ts +1 -1
- package/dist/commonjs/react-query/eventsGetEvent.core.d.ts.map +1 -1
- package/dist/commonjs/react-query/eventsGetEvent.d.ts +20 -6
- package/dist/commonjs/react-query/eventsGetEvent.d.ts.map +1 -1
- package/dist/commonjs/react-query/eventsGetEvent.js +20 -6
- package/dist/commonjs/react-query/eventsGetEvent.js.map +1 -1
- package/dist/commonjs/react-query/eventsListFeed.d.ts +56 -8
- package/dist/commonjs/react-query/eventsListFeed.d.ts.map +1 -1
- package/dist/commonjs/react-query/eventsListFeed.js +56 -8
- package/dist/commonjs/react-query/eventsListFeed.js.map +1 -1
- package/dist/commonjs/react-query/eventsListOrSearchVendorInvitees.core.d.ts +4 -0
- package/dist/commonjs/react-query/eventsListOrSearchVendorInvitees.core.d.ts.map +1 -1
- package/dist/commonjs/react-query/eventsListOrSearchVendorInvitees.core.js +4 -0
- package/dist/commonjs/react-query/eventsListOrSearchVendorInvitees.core.js.map +1 -1
- package/dist/commonjs/react-query/eventsListOrSearchVendorInvitees.d.ts +4 -0
- package/dist/commonjs/react-query/eventsListOrSearchVendorInvitees.d.ts.map +1 -1
- package/dist/commonjs/react-query/eventsListOrSearchVendorInvitees.js.map +1 -1
- package/dist/commonjs/react-query/eventsListPendingInvitations.d.ts +56 -8
- package/dist/commonjs/react-query/eventsListPendingInvitations.d.ts.map +1 -1
- package/dist/commonjs/react-query/eventsListPendingInvitations.js +56 -8
- package/dist/commonjs/react-query/eventsListPendingInvitations.js.map +1 -1
- package/dist/commonjs/react-query/eventsListStandingAppointments.d.ts +52 -8
- package/dist/commonjs/react-query/eventsListStandingAppointments.d.ts.map +1 -1
- package/dist/commonjs/react-query/eventsListStandingAppointments.js +52 -8
- package/dist/commonjs/react-query/eventsListStandingAppointments.js.map +1 -1
- package/dist/commonjs/react-query/fhirConfigsDeleteFhirConfigById.d.ts +2 -0
- package/dist/commonjs/react-query/fhirConfigsDeleteFhirConfigById.d.ts.map +1 -1
- package/dist/commonjs/react-query/fhirConfigsDeleteFhirConfigById.js +2 -0
- package/dist/commonjs/react-query/fhirConfigsDeleteFhirConfigById.js.map +1 -1
- package/dist/commonjs/react-query/fhirConfigsGetFhirConfig.d.ts +4 -0
- package/dist/commonjs/react-query/fhirConfigsGetFhirConfig.d.ts.map +1 -1
- package/dist/commonjs/react-query/fhirConfigsGetFhirConfig.js +4 -0
- package/dist/commonjs/react-query/fhirConfigsGetFhirConfig.js.map +1 -1
- package/dist/commonjs/react-query/fhirConfigsListOfFhirConfigurations.d.ts +4 -4
- package/dist/commonjs/react-query/fhirConfigsListOfFhirConfigurations.js +4 -4
- package/dist/commonjs/react-query/organizationsCreateCompanyTargetFacility.d.ts +2 -0
- package/dist/commonjs/react-query/organizationsCreateCompanyTargetFacility.d.ts.map +1 -1
- package/dist/commonjs/react-query/organizationsCreateCompanyTargetFacility.js +2 -0
- package/dist/commonjs/react-query/organizationsCreateCompanyTargetFacility.js.map +1 -1
- package/dist/commonjs/react-query/vendorsGetVendorInvoiceDetails.d.ts +4 -0
- package/dist/commonjs/react-query/vendorsGetVendorInvoiceDetails.d.ts.map +1 -1
- package/dist/commonjs/react-query/vendorsGetVendorInvoiceDetails.js +4 -0
- package/dist/commonjs/react-query/vendorsGetVendorInvoiceDetails.js.map +1 -1
- package/dist/commonjs/sdk/events.d.ts +52 -10
- package/dist/commonjs/sdk/events.d.ts.map +1 -1
- package/dist/commonjs/sdk/events.js +51 -9
- package/dist/commonjs/sdk/events.js.map +1 -1
- package/dist/commonjs/sdk/fhirconfigs.d.ts +5 -1
- package/dist/commonjs/sdk/fhirconfigs.d.ts.map +1 -1
- package/dist/commonjs/sdk/fhirconfigs.js +5 -1
- package/dist/commonjs/sdk/fhirconfigs.js.map +1 -1
- package/dist/commonjs/sdk/organizations.d.ts +2 -0
- package/dist/commonjs/sdk/organizations.d.ts.map +1 -1
- package/dist/commonjs/sdk/organizations.js +2 -0
- package/dist/commonjs/sdk/organizations.js.map +1 -1
- package/dist/commonjs/sdk/vendors.d.ts +2 -0
- package/dist/commonjs/sdk/vendors.d.ts.map +1 -1
- package/dist/commonjs/sdk/vendors.js +2 -0
- package/dist/commonjs/sdk/vendors.js.map +1 -1
- package/dist/esm/__tests__/events.test.js +2 -4
- package/dist/esm/__tests__/events.test.js.map +1 -1
- package/dist/esm/__tests__/vendors.test.js +1 -1
- package/dist/esm/__tests__/vendors.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 +13 -6
- package/dist/esm/__tests__/zones.test.js.map +1 -1
- package/dist/esm/admin-funcs/doAdmin.d.ts +3 -1
- package/dist/esm/admin-funcs/doAdmin.d.ts.map +1 -1
- package/dist/esm/admin-funcs/doAdmin.js +21 -4
- package/dist/esm/admin-funcs/doAdmin.js.map +1 -1
- package/dist/esm/admin-funcs/networksCreate.d.ts +36 -0
- package/dist/esm/admin-funcs/networksCreate.d.ts.map +1 -0
- package/dist/esm/admin-funcs/networksCreate.js +48 -0
- package/dist/esm/admin-funcs/networksCreate.js.map +1 -0
- package/dist/esm/admin-funcs/networksGet.d.ts +3 -0
- package/dist/esm/admin-funcs/networksGet.d.ts.map +1 -0
- package/dist/esm/admin-funcs/networksGet.js +13 -0
- package/dist/esm/admin-funcs/networksGet.js.map +1 -0
- package/dist/esm/admin-funcs/networksList.d.ts +12 -0
- package/dist/esm/admin-funcs/networksList.d.ts.map +1 -0
- package/dist/esm/admin-funcs/networksList.js +37 -0
- package/dist/esm/admin-funcs/networksList.js.map +1 -0
- package/dist/esm/admin-funcs/zoneDevicesGet.d.ts +3 -0
- package/dist/esm/admin-funcs/zoneDevicesGet.d.ts.map +1 -0
- package/dist/esm/admin-funcs/zoneDevicesGet.js +13 -0
- package/dist/esm/admin-funcs/zoneDevicesGet.js.map +1 -0
- package/dist/esm/admin-funcs/zoneDevicesList.d.ts +11 -0
- package/dist/esm/admin-funcs/zoneDevicesList.d.ts.map +1 -0
- package/dist/esm/admin-funcs/zoneDevicesList.js +34 -0
- package/dist/esm/admin-funcs/zoneDevicesList.js.map +1 -0
- package/dist/esm/funcs/eventsCreateEvent.d.ts +1 -1
- package/dist/esm/funcs/eventsCreateEvent.d.ts.map +1 -1
- package/dist/esm/funcs/eventsCreateEvent.js +1 -1
- package/dist/esm/funcs/eventsCreateEvent.js.map +1 -1
- package/dist/esm/funcs/eventsGetEvent.d.ts +12 -4
- package/dist/esm/funcs/eventsGetEvent.d.ts.map +1 -1
- package/dist/esm/funcs/eventsGetEvent.js +12 -4
- package/dist/esm/funcs/eventsGetEvent.js.map +1 -1
- package/dist/esm/funcs/eventsListFeed.d.ts +14 -2
- package/dist/esm/funcs/eventsListFeed.d.ts.map +1 -1
- package/dist/esm/funcs/eventsListFeed.js +14 -2
- package/dist/esm/funcs/eventsListFeed.js.map +1 -1
- package/dist/esm/funcs/eventsListOrSearchVendorInvitees.js +2 -0
- package/dist/esm/funcs/eventsListOrSearchVendorInvitees.js.map +1 -1
- package/dist/esm/funcs/eventsListPendingInvitations.d.ts +14 -2
- package/dist/esm/funcs/eventsListPendingInvitations.d.ts.map +1 -1
- package/dist/esm/funcs/eventsListPendingInvitations.js +14 -2
- package/dist/esm/funcs/eventsListPendingInvitations.js.map +1 -1
- package/dist/esm/funcs/eventsListStandingAppointments.d.ts +13 -2
- package/dist/esm/funcs/eventsListStandingAppointments.d.ts.map +1 -1
- package/dist/esm/funcs/eventsListStandingAppointments.js +13 -2
- package/dist/esm/funcs/eventsListStandingAppointments.js.map +1 -1
- package/dist/esm/funcs/fhirConfigsDeleteFhirConfigById.d.ts +2 -0
- package/dist/esm/funcs/fhirConfigsDeleteFhirConfigById.d.ts.map +1 -1
- package/dist/esm/funcs/fhirConfigsDeleteFhirConfigById.js +2 -0
- package/dist/esm/funcs/fhirConfigsDeleteFhirConfigById.js.map +1 -1
- package/dist/esm/funcs/fhirConfigsGetFhirConfig.d.ts +2 -0
- package/dist/esm/funcs/fhirConfigsGetFhirConfig.d.ts.map +1 -1
- package/dist/esm/funcs/fhirConfigsGetFhirConfig.js +2 -0
- package/dist/esm/funcs/fhirConfigsGetFhirConfig.js.map +1 -1
- package/dist/esm/funcs/fhirConfigsListOfFhirConfigurations.d.ts +1 -1
- package/dist/esm/funcs/fhirConfigsListOfFhirConfigurations.js +1 -1
- package/dist/esm/funcs/organizationsCreateCompanyTargetFacility.d.ts +2 -0
- package/dist/esm/funcs/organizationsCreateCompanyTargetFacility.d.ts.map +1 -1
- package/dist/esm/funcs/organizationsCreateCompanyTargetFacility.js +2 -0
- package/dist/esm/funcs/organizationsCreateCompanyTargetFacility.js.map +1 -1
- package/dist/esm/funcs/vendorsGetVendorInvoiceDetails.d.ts +2 -0
- package/dist/esm/funcs/vendorsGetVendorInvoiceDetails.d.ts.map +1 -1
- package/dist/esm/funcs/vendorsGetVendorInvoiceDetails.js +2 -0
- package/dist/esm/funcs/vendorsGetVendorInvoiceDetails.js.map +1 -1
- package/dist/esm/index.extras.d.ts +14 -0
- package/dist/esm/index.extras.d.ts.map +1 -1
- package/dist/esm/index.extras.js +16 -0
- package/dist/esm/index.extras.js.map +1 -1
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/models/components/event.d.ts +98 -0
- package/dist/esm/models/components/event.d.ts.map +1 -0
- package/dist/esm/models/components/event.js +69 -0
- package/dist/esm/models/components/event.js.map +1 -0
- package/dist/esm/models/components/expand.d.ts +6 -0
- package/dist/esm/models/components/expand.d.ts.map +1 -1
- package/dist/esm/models/components/expand.js +6 -0
- package/dist/esm/models/components/expand.js.map +1 -1
- package/dist/esm/models/components/index.d.ts +2 -4
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +2 -4
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/invite.d.ts +72 -0
- package/dist/esm/models/components/invite.d.ts.map +1 -0
- package/dist/esm/models/components/invite.js +69 -0
- package/dist/esm/models/components/invite.js.map +1 -0
- package/dist/esm/models/operations/createevent.d.ts +19 -0
- package/dist/esm/models/operations/createevent.d.ts.map +1 -1
- package/dist/esm/models/operations/createevent.js +3 -0
- package/dist/esm/models/operations/createevent.js.map +1 -1
- package/dist/esm/models/operations/getevent.d.ts +0 -89
- package/dist/esm/models/operations/getevent.d.ts.map +1 -1
- package/dist/esm/models/operations/getevent.js +0 -70
- package/dist/esm/models/operations/getevent.js.map +1 -1
- package/dist/esm/models/operations/listfeed.d.ts +1 -1
- package/dist/esm/models/operations/listfeed.d.ts.map +1 -1
- package/dist/esm/models/operations/listfeed.js +1 -2
- package/dist/esm/models/operations/listfeed.js.map +1 -1
- package/dist/esm/models/operations/listorsearchvendorinvitees.d.ts +17 -0
- package/dist/esm/models/operations/listorsearchvendorinvitees.d.ts.map +1 -1
- package/dist/esm/models/operations/listorsearchvendorinvitees.js +4 -0
- package/dist/esm/models/operations/listorsearchvendorinvitees.js.map +1 -1
- package/dist/esm/models/operations/listpendinginvitations.d.ts +1 -1
- package/dist/esm/models/operations/listpendinginvitations.d.ts.map +1 -1
- package/dist/esm/models/operations/listpendinginvitations.js +1 -2
- package/dist/esm/models/operations/listpendinginvitations.js.map +1 -1
- package/dist/esm/models/operations/liststandingappointments.d.ts +1 -1
- package/dist/esm/models/operations/liststandingappointments.d.ts.map +1 -1
- package/dist/esm/models/operations/liststandingappointments.js +1 -2
- package/dist/esm/models/operations/liststandingappointments.js.map +1 -1
- package/dist/esm/react-query/eventsCreateEvent.d.ts +1 -1
- package/dist/esm/react-query/eventsCreateEvent.d.ts.map +1 -1
- package/dist/esm/react-query/eventsCreateEvent.js.map +1 -1
- package/dist/esm/react-query/eventsGetEvent.core.d.ts +1 -1
- package/dist/esm/react-query/eventsGetEvent.core.d.ts.map +1 -1
- package/dist/esm/react-query/eventsGetEvent.d.ts +20 -6
- package/dist/esm/react-query/eventsGetEvent.d.ts.map +1 -1
- package/dist/esm/react-query/eventsGetEvent.js +20 -6
- package/dist/esm/react-query/eventsGetEvent.js.map +1 -1
- package/dist/esm/react-query/eventsListFeed.d.ts +56 -8
- package/dist/esm/react-query/eventsListFeed.d.ts.map +1 -1
- package/dist/esm/react-query/eventsListFeed.js +56 -8
- package/dist/esm/react-query/eventsListFeed.js.map +1 -1
- package/dist/esm/react-query/eventsListOrSearchVendorInvitees.core.d.ts +4 -0
- package/dist/esm/react-query/eventsListOrSearchVendorInvitees.core.d.ts.map +1 -1
- package/dist/esm/react-query/eventsListOrSearchVendorInvitees.core.js +4 -0
- package/dist/esm/react-query/eventsListOrSearchVendorInvitees.core.js.map +1 -1
- package/dist/esm/react-query/eventsListOrSearchVendorInvitees.d.ts +4 -0
- package/dist/esm/react-query/eventsListOrSearchVendorInvitees.d.ts.map +1 -1
- package/dist/esm/react-query/eventsListOrSearchVendorInvitees.js.map +1 -1
- package/dist/esm/react-query/eventsListPendingInvitations.d.ts +56 -8
- package/dist/esm/react-query/eventsListPendingInvitations.d.ts.map +1 -1
- package/dist/esm/react-query/eventsListPendingInvitations.js +56 -8
- package/dist/esm/react-query/eventsListPendingInvitations.js.map +1 -1
- package/dist/esm/react-query/eventsListStandingAppointments.d.ts +52 -8
- package/dist/esm/react-query/eventsListStandingAppointments.d.ts.map +1 -1
- package/dist/esm/react-query/eventsListStandingAppointments.js +52 -8
- package/dist/esm/react-query/eventsListStandingAppointments.js.map +1 -1
- package/dist/esm/react-query/fhirConfigsDeleteFhirConfigById.d.ts +2 -0
- package/dist/esm/react-query/fhirConfigsDeleteFhirConfigById.d.ts.map +1 -1
- package/dist/esm/react-query/fhirConfigsDeleteFhirConfigById.js +2 -0
- package/dist/esm/react-query/fhirConfigsDeleteFhirConfigById.js.map +1 -1
- package/dist/esm/react-query/fhirConfigsGetFhirConfig.d.ts +4 -0
- package/dist/esm/react-query/fhirConfigsGetFhirConfig.d.ts.map +1 -1
- package/dist/esm/react-query/fhirConfigsGetFhirConfig.js +4 -0
- package/dist/esm/react-query/fhirConfigsGetFhirConfig.js.map +1 -1
- package/dist/esm/react-query/fhirConfigsListOfFhirConfigurations.d.ts +4 -4
- package/dist/esm/react-query/fhirConfigsListOfFhirConfigurations.js +4 -4
- package/dist/esm/react-query/organizationsCreateCompanyTargetFacility.d.ts +2 -0
- package/dist/esm/react-query/organizationsCreateCompanyTargetFacility.d.ts.map +1 -1
- package/dist/esm/react-query/organizationsCreateCompanyTargetFacility.js +2 -0
- package/dist/esm/react-query/organizationsCreateCompanyTargetFacility.js.map +1 -1
- package/dist/esm/react-query/vendorsGetVendorInvoiceDetails.d.ts +4 -0
- package/dist/esm/react-query/vendorsGetVendorInvoiceDetails.d.ts.map +1 -1
- package/dist/esm/react-query/vendorsGetVendorInvoiceDetails.js +4 -0
- package/dist/esm/react-query/vendorsGetVendorInvoiceDetails.js.map +1 -1
- package/dist/esm/sdk/events.d.ts +52 -10
- package/dist/esm/sdk/events.d.ts.map +1 -1
- package/dist/esm/sdk/events.js +51 -9
- package/dist/esm/sdk/events.js.map +1 -1
- package/dist/esm/sdk/fhirconfigs.d.ts +5 -1
- package/dist/esm/sdk/fhirconfigs.d.ts.map +1 -1
- package/dist/esm/sdk/fhirconfigs.js +5 -1
- package/dist/esm/sdk/fhirconfigs.js.map +1 -1
- package/dist/esm/sdk/organizations.d.ts +2 -0
- package/dist/esm/sdk/organizations.d.ts.map +1 -1
- package/dist/esm/sdk/organizations.js +2 -0
- package/dist/esm/sdk/organizations.js.map +1 -1
- package/dist/esm/sdk/vendors.d.ts +2 -0
- package/dist/esm/sdk/vendors.d.ts.map +1 -1
- package/dist/esm/sdk/vendors.js +2 -0
- package/dist/esm/sdk/vendors.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/events.test.ts +2 -4
- package/src/__tests__/vendors.test.ts +1 -1
- package/src/__tests__/webhooks.test.ts +1 -1
- package/src/__tests__/zones.test.ts +13 -6
- package/src/admin-funcs/doAdmin.ts +43 -10
- package/src/admin-funcs/networksCreate.ts +101 -0
- package/src/admin-funcs/networksGet.ts +13 -0
- package/src/admin-funcs/networksList.ts +56 -0
- package/src/admin-funcs/zoneDevicesGet.ts +13 -0
- package/src/admin-funcs/zoneDevicesList.ts +47 -0
- package/src/funcs/eventsCreateEvent.ts +4 -0
- package/src/funcs/eventsGetEvent.ts +15 -7
- package/src/funcs/eventsListFeed.ts +14 -2
- package/src/funcs/eventsListOrSearchVendorInvitees.ts +2 -0
- package/src/funcs/eventsListPendingInvitations.ts +14 -2
- package/src/funcs/eventsListStandingAppointments.ts +13 -2
- package/src/funcs/fhirConfigsDeleteFhirConfigById.ts +2 -0
- package/src/funcs/fhirConfigsGetFhirConfig.ts +2 -0
- package/src/funcs/fhirConfigsListOfFhirConfigurations.ts +1 -1
- package/src/funcs/organizationsCreateCompanyTargetFacility.ts +2 -0
- package/src/funcs/vendorsGetVendorInvoiceDetails.ts +2 -0
- package/src/index.extras.ts +19 -0
- package/src/lib/config.ts +2 -2
- package/src/models/components/event.ts +214 -0
- package/src/models/components/expand.ts +6 -0
- package/src/models/components/index.ts +2 -4
- package/src/models/components/invite.ts +168 -0
- package/src/models/operations/createevent.ts +22 -0
- package/src/models/operations/getevent.ts +0 -223
- package/src/models/operations/listfeed.ts +2 -3
- package/src/models/operations/listorsearchvendorinvitees.ts +21 -0
- package/src/models/operations/listpendinginvitations.ts +2 -3
- package/src/models/operations/liststandingappointments.ts +2 -5
- package/src/react-query/eventsCreateEvent.ts +1 -0
- package/src/react-query/eventsGetEvent.core.ts +1 -1
- package/src/react-query/eventsGetEvent.ts +20 -6
- package/src/react-query/eventsListFeed.ts +56 -8
- package/src/react-query/eventsListOrSearchVendorInvitees.core.ts +8 -0
- package/src/react-query/eventsListOrSearchVendorInvitees.ts +4 -0
- package/src/react-query/eventsListPendingInvitations.ts +56 -8
- package/src/react-query/eventsListStandingAppointments.ts +52 -8
- package/src/react-query/fhirConfigsDeleteFhirConfigById.ts +2 -0
- package/src/react-query/fhirConfigsGetFhirConfig.ts +4 -0
- package/src/react-query/fhirConfigsListOfFhirConfigurations.ts +4 -4
- package/src/react-query/organizationsCreateCompanyTargetFacility.ts +2 -0
- package/src/react-query/vendorsGetVendorInvoiceDetails.ts +4 -0
- package/src/sdk/events.ts +52 -10
- package/src/sdk/fhirconfigs.ts +5 -1
- package/src/sdk/organizations.ts +2 -0
- package/src/sdk/vendors.ts +2 -0
- package/dist/commonjs/models/components/feed.d.ts +0 -33
- package/dist/commonjs/models/components/feed.d.ts.map +0 -1
- package/dist/commonjs/models/components/feed.js +0 -75
- package/dist/commonjs/models/components/feed.js.map +0 -1
- package/dist/commonjs/models/components/invitee.d.ts +0 -23
- package/dist/commonjs/models/components/invitee.d.ts.map +0 -1
- package/dist/commonjs/models/components/invitee.js +0 -68
- package/dist/commonjs/models/components/invitee.js.map +0 -1
- package/dist/commonjs/models/components/pendinginvitation.d.ts +0 -41
- package/dist/commonjs/models/components/pendinginvitation.d.ts.map +0 -1
- package/dist/commonjs/models/components/pendinginvitation.js +0 -85
- package/dist/commonjs/models/components/pendinginvitation.js.map +0 -1
- package/dist/commonjs/models/components/standingappointment.d.ts +0 -34
- package/dist/commonjs/models/components/standingappointment.d.ts.map +0 -1
- package/dist/commonjs/models/components/standingappointment.js +0 -74
- package/dist/commonjs/models/components/standingappointment.js.map +0 -1
- package/dist/esm/models/components/feed.d.ts +0 -33
- package/dist/esm/models/components/feed.d.ts.map +0 -1
- package/dist/esm/models/components/feed.js +0 -38
- package/dist/esm/models/components/feed.js.map +0 -1
- package/dist/esm/models/components/invitee.d.ts +0 -23
- package/dist/esm/models/components/invitee.d.ts.map +0 -1
- package/dist/esm/models/components/invitee.js +0 -31
- package/dist/esm/models/components/invitee.js.map +0 -1
- package/dist/esm/models/components/pendinginvitation.d.ts +0 -41
- package/dist/esm/models/components/pendinginvitation.d.ts.map +0 -1
- package/dist/esm/models/components/pendinginvitation.js +0 -47
- package/dist/esm/models/components/pendinginvitation.js.map +0 -1
- package/dist/esm/models/components/standingappointment.d.ts +0 -34
- package/dist/esm/models/components/standingappointment.d.ts.map +0 -1
- package/dist/esm/models/components/standingappointment.js +0 -37
- package/dist/esm/models/components/standingappointment.js.map +0 -1
- package/src/models/components/feed.ts +0 -74
- package/src/models/components/invitee.ts +0 -58
- package/src/models/components/pendinginvitation.ts +0 -102
- package/src/models/components/standingappointment.ts +0 -78
|
@@ -36,9 +36,20 @@ import {
|
|
|
36
36
|
* List standing appointments
|
|
37
37
|
*
|
|
38
38
|
* @remarks
|
|
39
|
-
* List standing
|
|
39
|
+
* List standing appointments.
|
|
40
40
|
*
|
|
41
|
-
* **Permissions.** Requires a valid token. This endpoint is not gated on a named permission -
|
|
41
|
+
* **Permissions.** Requires a valid token. This endpoint is not gated on a named permission -
|
|
42
|
+
* the caller's role and their relationship to the record decide what is returned.
|
|
43
|
+
*
|
|
44
|
+
* Returns `Event` items with the `event.location`, `event.attendees`, `event.viewer_invite`,
|
|
45
|
+
* `event.creator` and `event.invitees` scopes already applied, so `location`, `attendees`,
|
|
46
|
+
* `event_creator`, `event_creator_img_url` and `invitees` are populated and `status` carries
|
|
47
|
+
* the reader's own outstanding invite. SDK builds below `0.55.0-beta.1` receive the older
|
|
48
|
+
* `StandingAppointment` shape instead.
|
|
49
|
+
*
|
|
50
|
+
* The boundary is the prerelease build `0.55.0-beta.1`, not the `0.55.0` release, so
|
|
51
|
+
* `0.55.0-beta.1` itself already receives `Event`. See the `Event` schema for exactly how a
|
|
52
|
+
* build is compared against it.
|
|
42
53
|
*
|
|
43
54
|
* If set, this operation will use {@link Security.bearerJwt} from the global security.
|
|
44
55
|
*/
|
|
@@ -31,6 +31,8 @@ import { Result } from "../types/fp.js";
|
|
|
31
31
|
* Delete a FHIR config by ID
|
|
32
32
|
*
|
|
33
33
|
* @remarks
|
|
34
|
+
* Requires the `fhir_config` / `delete` permission.
|
|
35
|
+
*
|
|
34
36
|
* **Permissions.** Requires the `fhir_configs.delete` permission.
|
|
35
37
|
*
|
|
36
38
|
* If set, this operation will use {@link Security.bearerJwt} from the global security.
|
|
@@ -33,6 +33,8 @@ import { Result } from "../types/fp.js";
|
|
|
33
33
|
* @remarks
|
|
34
34
|
* Retrieve a FHIR configuration by ID.
|
|
35
35
|
*
|
|
36
|
+
* This endpoint requires the `fhir_configs` / `view` permission.
|
|
37
|
+
*
|
|
36
38
|
* **Permissions.** Requires the `fhir_configs.view` permission.
|
|
37
39
|
*
|
|
38
40
|
* If set, this operation will use {@link Security.bearerJwt} from the global security.
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
* List of FHIR configurations
|
|
37
37
|
*
|
|
38
38
|
* @remarks
|
|
39
|
-
* List available FHIR configurations.
|
|
39
|
+
* List available FHIR configurations. This method requires the `fhir_config` / `view` permission.
|
|
40
40
|
*
|
|
41
41
|
* **Permissions.** Requires the `fhir_configs.view` permission.
|
|
42
42
|
*
|
|
@@ -50,6 +50,8 @@ import { Result } from "../types/fp.js";
|
|
|
50
50
|
*
|
|
51
51
|
* **Permissions.** Requires the `target_facilities.add` permission.
|
|
52
52
|
*
|
|
53
|
+
* **Permissions.** Requires the `target_facilities.add` permission.
|
|
54
|
+
*
|
|
53
55
|
* Available `expand` scopes are:
|
|
54
56
|
*
|
|
55
57
|
* - `company_target_facility.facility`
|
package/src/index.extras.ts
CHANGED
|
@@ -55,6 +55,12 @@ import { kioskHeartbeat } from "./admin-funcs/kioskHeartbeat.js";
|
|
|
55
55
|
import { listCommunications } from "./admin-funcs/listCommunications.js";
|
|
56
56
|
import { dismissCommunication } from "./admin-funcs/dismissCommunication.js";
|
|
57
57
|
|
|
58
|
+
import { networksList } from "./admin-funcs/networksList.js";
|
|
59
|
+
import { networksGet } from "./admin-funcs/networksGet.js";
|
|
60
|
+
import { networksCreate } from "./admin-funcs/networksCreate.js";
|
|
61
|
+
import { zoneDevicesList } from "./admin-funcs/zoneDevicesList.js";
|
|
62
|
+
import { zoneDevicesGet } from "./admin-funcs/zoneDevicesGet.js";
|
|
63
|
+
|
|
58
64
|
export const __internal = {
|
|
59
65
|
getInternalCore,
|
|
60
66
|
initializeInternalCore,
|
|
@@ -139,5 +145,18 @@ export const __internal = {
|
|
|
139
145
|
createZoneDevice: kioskCreateZoneDevice,
|
|
140
146
|
createEvent: kioskCreateEvent,
|
|
141
147
|
heartbeat: kioskHeartbeat
|
|
148
|
+
},
|
|
149
|
+
|
|
150
|
+
// Gatekeeper provisioning: the network a facility's devices join, and the
|
|
151
|
+
// inventory of the devices themselves.
|
|
152
|
+
networks: {
|
|
153
|
+
list: networksList,
|
|
154
|
+
get: networksGet,
|
|
155
|
+
create: networksCreate
|
|
156
|
+
},
|
|
157
|
+
|
|
158
|
+
zoneDevices: {
|
|
159
|
+
list: zoneDevicesList,
|
|
160
|
+
get: zoneDevicesGet
|
|
142
161
|
}
|
|
143
162
|
};
|
package/src/lib/config.ts
CHANGED
|
@@ -80,8 +80,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
80
80
|
export const SDK_METADATA = {
|
|
81
81
|
language: "typescript",
|
|
82
82
|
openapiDocVersion: "0.45.0",
|
|
83
|
-
sdkVersion: "0.45.0-beta.
|
|
83
|
+
sdkVersion: "0.45.0-beta.28",
|
|
84
84
|
genVersion: "2.938.0",
|
|
85
85
|
userAgent:
|
|
86
|
-
"speakeasy-sdk/typescript 0.45.0-beta.
|
|
86
|
+
"speakeasy-sdk/typescript 0.45.0-beta.28 2.938.0 0.45.0 @greensecurity/javascript-sdk",
|
|
87
87
|
} as const;
|
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
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 types from "../../types/primitives.js";
|
|
10
|
+
import { smartUnion } from "../../types/smartUnion.js";
|
|
11
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
12
|
+
import { Invite, Invite$inboundSchema } from "./invite.js";
|
|
13
|
+
|
|
14
|
+
export type EventFacility2 = {
|
|
15
|
+
id: number;
|
|
16
|
+
name: string | null;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* The facility id, or a summary when `event.facility` is passed to `expand`. Null when the appointment was booked against a department alone.
|
|
21
|
+
*/
|
|
22
|
+
export type EventFacility = EventFacility2 | number;
|
|
23
|
+
|
|
24
|
+
export type Department2 = {
|
|
25
|
+
id: number;
|
|
26
|
+
name: string | null;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* The department id, or a summary when `event.department` is passed to `expand`. Null when the appointment was booked against a facility alone.
|
|
31
|
+
*/
|
|
32
|
+
export type EventDepartment = Department2 | number;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* An appointment, in the shape served to SDK builds `0.55.0-beta.1` and above. Associations are the numeric id by default, and `{ id, name }` under their expand scope. The display fields (`location`, `attendees`, `event_creator`, `event_creator_img_url`, `invitees`) are null unless their scope is passed. SDK builds below `0.55.0-beta.1` receive `Feed` or `StandingAppointment` instead, which is chosen from the `X-SDK-User-Agent` header.
|
|
36
|
+
*
|
|
37
|
+
* @remarks
|
|
38
|
+
*
|
|
39
|
+
* The boundary is the prerelease build `0.55.0-beta.1`, not the `0.55.0` release. A build is compared to it by semantic-version ordering, in which a prerelease sorts below its own release: so `0.55.0-beta.1` itself, every later prerelease (`0.55.0-beta.2`, `0.55.0-rc.1`) and every release from `0.55.0` up receive this shape, while an earlier prerelease of the same release — `0.55.0-alpha.1` — does not.
|
|
40
|
+
*/
|
|
41
|
+
export type Event = {
|
|
42
|
+
id?: number | undefined;
|
|
43
|
+
/**
|
|
44
|
+
* The event name.
|
|
45
|
+
*/
|
|
46
|
+
title?: string | null | undefined;
|
|
47
|
+
/**
|
|
48
|
+
* Start date and time in UTC (ISO 8601 format, e.g. 2026-02-23T14:00:00Z). Null if not set.
|
|
49
|
+
*/
|
|
50
|
+
start?: string | null | undefined;
|
|
51
|
+
/**
|
|
52
|
+
* End date and time in UTC (ISO 8601 format, e.g. 2026-02-23T15:00:00Z). Null if not set.
|
|
53
|
+
*/
|
|
54
|
+
end?: string | null | undefined;
|
|
55
|
+
allDay?: boolean | undefined;
|
|
56
|
+
/**
|
|
57
|
+
* Verbatim ("Approved") unless `event.viewer_invite` is passed to `expand`, which lower-cases it and appends the reading user's own outstanding invite, e.g. "approved but user invite pending". `/events/standing-appointments` passes it.
|
|
58
|
+
*/
|
|
59
|
+
status?: string | null | undefined;
|
|
60
|
+
standingAppt?: boolean | undefined;
|
|
61
|
+
bringingFood?: boolean | undefined;
|
|
62
|
+
notes?: string | null | undefined;
|
|
63
|
+
/**
|
|
64
|
+
* ISO 8601 date-time when the event was approved.
|
|
65
|
+
*/
|
|
66
|
+
dateApproved?: string | null | undefined;
|
|
67
|
+
/**
|
|
68
|
+
* The facility id, or a summary when `event.facility` is passed to `expand`. Null when the appointment was booked against a department alone.
|
|
69
|
+
*/
|
|
70
|
+
facility?: EventFacility2 | number | null | undefined;
|
|
71
|
+
/**
|
|
72
|
+
* The department id, or a summary when `event.department` is passed to `expand`. Null when the appointment was booked against a facility alone.
|
|
73
|
+
*/
|
|
74
|
+
department?: Department2 | number | null | undefined;
|
|
75
|
+
/**
|
|
76
|
+
* "Facility - Department". Populated when `event.location` is passed to `expand`.
|
|
77
|
+
*/
|
|
78
|
+
location?: string | null | undefined;
|
|
79
|
+
/**
|
|
80
|
+
* Populated when `event.attendees` is passed to `expand`.
|
|
81
|
+
*/
|
|
82
|
+
attendees?: Array<string> | null | undefined;
|
|
83
|
+
/**
|
|
84
|
+
* Populated when `event.creator` is passed to `expand`.
|
|
85
|
+
*/
|
|
86
|
+
eventCreator?: string | null | undefined;
|
|
87
|
+
/**
|
|
88
|
+
* Populated when `event.creator` is passed to `expand`.
|
|
89
|
+
*/
|
|
90
|
+
eventCreatorImgUrl?: string | null | undefined;
|
|
91
|
+
/**
|
|
92
|
+
* Populated when `event.invitees` is passed to `expand`.
|
|
93
|
+
*/
|
|
94
|
+
invitees?: Array<Invite> | null | undefined;
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
/** @internal */
|
|
98
|
+
export const EventFacility2$inboundSchema: z.ZodType<
|
|
99
|
+
EventFacility2,
|
|
100
|
+
z.ZodTypeDef,
|
|
101
|
+
unknown
|
|
102
|
+
> = z.object({
|
|
103
|
+
id: types.number(),
|
|
104
|
+
name: types.nullable(types.string()),
|
|
105
|
+
});
|
|
106
|
+
|
|
107
|
+
export function eventFacility2FromJSON(
|
|
108
|
+
jsonString: string,
|
|
109
|
+
): SafeParseResult<EventFacility2, SDKValidationError> {
|
|
110
|
+
return safeParse(
|
|
111
|
+
jsonString,
|
|
112
|
+
(x) => EventFacility2$inboundSchema.parse(JSON.parse(x)),
|
|
113
|
+
`Failed to parse 'EventFacility2' from JSON`,
|
|
114
|
+
);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/** @internal */
|
|
118
|
+
export const EventFacility$inboundSchema: z.ZodType<
|
|
119
|
+
EventFacility,
|
|
120
|
+
z.ZodTypeDef,
|
|
121
|
+
unknown
|
|
122
|
+
> = smartUnion([z.lazy(() => EventFacility2$inboundSchema), types.number()]);
|
|
123
|
+
|
|
124
|
+
export function eventFacilityFromJSON(
|
|
125
|
+
jsonString: string,
|
|
126
|
+
): SafeParseResult<EventFacility, SDKValidationError> {
|
|
127
|
+
return safeParse(
|
|
128
|
+
jsonString,
|
|
129
|
+
(x) => EventFacility$inboundSchema.parse(JSON.parse(x)),
|
|
130
|
+
`Failed to parse 'EventFacility' from JSON`,
|
|
131
|
+
);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
/** @internal */
|
|
135
|
+
export const Department2$inboundSchema: z.ZodType<
|
|
136
|
+
Department2,
|
|
137
|
+
z.ZodTypeDef,
|
|
138
|
+
unknown
|
|
139
|
+
> = z.object({
|
|
140
|
+
id: types.number(),
|
|
141
|
+
name: types.nullable(types.string()),
|
|
142
|
+
});
|
|
143
|
+
|
|
144
|
+
export function department2FromJSON(
|
|
145
|
+
jsonString: string,
|
|
146
|
+
): SafeParseResult<Department2, SDKValidationError> {
|
|
147
|
+
return safeParse(
|
|
148
|
+
jsonString,
|
|
149
|
+
(x) => Department2$inboundSchema.parse(JSON.parse(x)),
|
|
150
|
+
`Failed to parse 'Department2' from JSON`,
|
|
151
|
+
);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
/** @internal */
|
|
155
|
+
export const EventDepartment$inboundSchema: z.ZodType<
|
|
156
|
+
EventDepartment,
|
|
157
|
+
z.ZodTypeDef,
|
|
158
|
+
unknown
|
|
159
|
+
> = smartUnion([z.lazy(() => Department2$inboundSchema), types.number()]);
|
|
160
|
+
|
|
161
|
+
export function eventDepartmentFromJSON(
|
|
162
|
+
jsonString: string,
|
|
163
|
+
): SafeParseResult<EventDepartment, SDKValidationError> {
|
|
164
|
+
return safeParse(
|
|
165
|
+
jsonString,
|
|
166
|
+
(x) => EventDepartment$inboundSchema.parse(JSON.parse(x)),
|
|
167
|
+
`Failed to parse 'EventDepartment' from JSON`,
|
|
168
|
+
);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
/** @internal */
|
|
172
|
+
export const Event$inboundSchema: z.ZodType<Event, z.ZodTypeDef, unknown> = z
|
|
173
|
+
.object({
|
|
174
|
+
id: types.optional(types.number()),
|
|
175
|
+
title: z.nullable(types.string()).optional(),
|
|
176
|
+
start: z.nullable(types.string()).optional(),
|
|
177
|
+
end: z.nullable(types.string()).optional(),
|
|
178
|
+
all_day: types.optional(types.boolean()),
|
|
179
|
+
status: z.nullable(types.string()).optional(),
|
|
180
|
+
standing_appt: types.optional(types.boolean()),
|
|
181
|
+
bringing_food: types.optional(types.boolean()),
|
|
182
|
+
notes: z.nullable(types.string()).optional(),
|
|
183
|
+
date_approved: z.nullable(types.string()).optional(),
|
|
184
|
+
facility: z.nullable(
|
|
185
|
+
smartUnion([z.lazy(() => EventFacility2$inboundSchema), types.number()]),
|
|
186
|
+
).optional(),
|
|
187
|
+
department: z.nullable(
|
|
188
|
+
smartUnion([z.lazy(() => Department2$inboundSchema), types.number()]),
|
|
189
|
+
).optional(),
|
|
190
|
+
location: z.nullable(types.string()).optional(),
|
|
191
|
+
attendees: z.nullable(z.array(types.string())).optional(),
|
|
192
|
+
event_creator: z.nullable(types.string()).optional(),
|
|
193
|
+
event_creator_img_url: z.nullable(types.string()).optional(),
|
|
194
|
+
invitees: z.nullable(z.array(Invite$inboundSchema)).optional(),
|
|
195
|
+
}).transform((v) => {
|
|
196
|
+
return remap$(v, {
|
|
197
|
+
"all_day": "allDay",
|
|
198
|
+
"standing_appt": "standingAppt",
|
|
199
|
+
"bringing_food": "bringingFood",
|
|
200
|
+
"date_approved": "dateApproved",
|
|
201
|
+
"event_creator": "eventCreator",
|
|
202
|
+
"event_creator_img_url": "eventCreatorImgUrl",
|
|
203
|
+
});
|
|
204
|
+
});
|
|
205
|
+
|
|
206
|
+
export function eventFromJSON(
|
|
207
|
+
jsonString: string,
|
|
208
|
+
): SafeParseResult<Event, SDKValidationError> {
|
|
209
|
+
return safeParse(
|
|
210
|
+
jsonString,
|
|
211
|
+
(x) => Event$inboundSchema.parse(JSON.parse(x)),
|
|
212
|
+
`Failed to parse 'Event' from JSON`,
|
|
213
|
+
);
|
|
214
|
+
}
|
|
@@ -165,6 +165,12 @@ export const Expand = {
|
|
|
165
165
|
VisitorCheckinVisitingZone: "visitor_checkin.visiting_zone",
|
|
166
166
|
VisitorCheckinPii: "visitor_checkin.pii",
|
|
167
167
|
VisitorCheckinExternalScreens: "visitor_checkin.external_screens",
|
|
168
|
+
EventLocation: "event.location",
|
|
169
|
+
EventAttendees: "event.attendees",
|
|
170
|
+
EventCreator: "event.creator",
|
|
171
|
+
EventViewerInvite: "event.viewer_invite",
|
|
172
|
+
InviteEvent: "invite.event",
|
|
173
|
+
InviteInvitee: "invite.invitee",
|
|
168
174
|
} as const;
|
|
169
175
|
/**
|
|
170
176
|
* An expansion scope that is valid for the object being requested.
|
|
@@ -34,13 +34,13 @@ export * from "./distributor.js";
|
|
|
34
34
|
export * from "./distributorcreate.js";
|
|
35
35
|
export * from "./distributorupdate.js";
|
|
36
36
|
export * from "./emailpreferences.js";
|
|
37
|
+
export * from "./event.js";
|
|
37
38
|
export * from "./expand.js";
|
|
38
39
|
export * from "./facility.js";
|
|
39
40
|
export * from "./facilitycalendarsummary.js";
|
|
40
41
|
export * from "./facilitystatus.js";
|
|
41
42
|
export * from "./facilitysummary.js";
|
|
42
43
|
export * from "./facilityvendortype.js";
|
|
43
|
-
export * from "./feed.js";
|
|
44
44
|
export * from "./fhirconfig.js";
|
|
45
45
|
export * from "./fhirconfigcreate.js";
|
|
46
46
|
export * from "./fhirconfigpartialupdate.js";
|
|
@@ -49,7 +49,7 @@ export * from "./financialstatus.js";
|
|
|
49
49
|
export * from "./fullreport.js";
|
|
50
50
|
export * from "./handoff.js";
|
|
51
51
|
export * from "./imageset.js";
|
|
52
|
-
export * from "./
|
|
52
|
+
export * from "./invite.js";
|
|
53
53
|
export * from "./invoice.js";
|
|
54
54
|
export * from "./invoicefinancialstatus.js";
|
|
55
55
|
export * from "./invoiceitem.js";
|
|
@@ -80,7 +80,6 @@ export * from "./passwordnotsetresponse.js";
|
|
|
80
80
|
export * from "./passwordrequiredresponse.js";
|
|
81
81
|
export * from "./paymentprofile.js";
|
|
82
82
|
export * from "./paymentprofileinfo.js";
|
|
83
|
-
export * from "./pendinginvitation.js";
|
|
84
83
|
export * from "./product.js";
|
|
85
84
|
export * from "./productvariant.js";
|
|
86
85
|
export * from "./samlloginrequiredresponse.js";
|
|
@@ -91,7 +90,6 @@ export * from "./screeningquestion.js";
|
|
|
91
90
|
export * from "./screeningresponse.js";
|
|
92
91
|
export * from "./security.js";
|
|
93
92
|
export * from "./ssocontinuation.js";
|
|
94
|
-
export * from "./standingappointment.js";
|
|
95
93
|
export * from "./state.js";
|
|
96
94
|
export * from "./subscription.js";
|
|
97
95
|
export * from "./supervisor.js";
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import * as openEnums from "../../types/enums.js";
|
|
9
|
+
import { OpenEnum } from "../../types/enums.js";
|
|
10
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
11
|
+
import * as types from "../../types/primitives.js";
|
|
12
|
+
import { smartUnion } from "../../types/smartUnion.js";
|
|
13
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
14
|
+
|
|
15
|
+
export type Event2 = {
|
|
16
|
+
id: number;
|
|
17
|
+
name: string | null;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* The event id, or a summary when `invite.event` is passed to `expand`.
|
|
22
|
+
*/
|
|
23
|
+
export type InviteEvent = Event2 | number;
|
|
24
|
+
|
|
25
|
+
export const InviteStatus = {
|
|
26
|
+
Pending: "Pending",
|
|
27
|
+
Accepted: "Accepted",
|
|
28
|
+
Declined: "Declined",
|
|
29
|
+
} as const;
|
|
30
|
+
export type InviteStatus = OpenEnum<typeof InviteStatus>;
|
|
31
|
+
|
|
32
|
+
export const InviteType = {
|
|
33
|
+
User: "user",
|
|
34
|
+
Department: "department",
|
|
35
|
+
Company: "company",
|
|
36
|
+
} as const;
|
|
37
|
+
export type InviteType = OpenEnum<typeof InviteType>;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Who the invitation is addressed to. Populated when `invite.invitee` is passed to `expand`.
|
|
41
|
+
*/
|
|
42
|
+
export type Invitee = {
|
|
43
|
+
id?: number | undefined;
|
|
44
|
+
name?: string | null | undefined;
|
|
45
|
+
type?: InviteType | undefined;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* An invitation to an appointment, in the shape served to SDK builds `0.55.0-beta.1` and above. SDK builds below `0.55.0-beta.1` receive `PendingInvitation` instead.
|
|
50
|
+
*
|
|
51
|
+
* @remarks
|
|
52
|
+
*
|
|
53
|
+
* The boundary is the prerelease build `0.55.0-beta.1`, not the `0.55.0` release. A build is compared to it by semantic-version ordering, in which a prerelease sorts below its own release: so `0.55.0-beta.1` itself, every later prerelease (`0.55.0-beta.2`, `0.55.0-rc.1`) and every release from `0.55.0` up receive this shape, while an earlier prerelease of the same release — `0.55.0-alpha.1` — does not.
|
|
54
|
+
*/
|
|
55
|
+
export type Invite = {
|
|
56
|
+
id?: number | undefined;
|
|
57
|
+
/**
|
|
58
|
+
* The event id, or a summary when `invite.event` is passed to `expand`.
|
|
59
|
+
*/
|
|
60
|
+
event?: Event2 | number | undefined;
|
|
61
|
+
userId?: number | null | undefined;
|
|
62
|
+
companyId?: number | null | undefined;
|
|
63
|
+
departmentId?: number | null | undefined;
|
|
64
|
+
status?: InviteStatus | null | undefined;
|
|
65
|
+
dateReviewed?: string | null | undefined;
|
|
66
|
+
/**
|
|
67
|
+
* Who the invitation is addressed to. Populated when `invite.invitee` is passed to `expand`.
|
|
68
|
+
*/
|
|
69
|
+
invitee?: Invitee | null | undefined;
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
/** @internal */
|
|
73
|
+
export const Event2$inboundSchema: z.ZodType<Event2, z.ZodTypeDef, unknown> = z
|
|
74
|
+
.object({
|
|
75
|
+
id: types.number(),
|
|
76
|
+
name: types.nullable(types.string()),
|
|
77
|
+
});
|
|
78
|
+
|
|
79
|
+
export function event2FromJSON(
|
|
80
|
+
jsonString: string,
|
|
81
|
+
): SafeParseResult<Event2, SDKValidationError> {
|
|
82
|
+
return safeParse(
|
|
83
|
+
jsonString,
|
|
84
|
+
(x) => Event2$inboundSchema.parse(JSON.parse(x)),
|
|
85
|
+
`Failed to parse 'Event2' from JSON`,
|
|
86
|
+
);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/** @internal */
|
|
90
|
+
export const InviteEvent$inboundSchema: z.ZodType<
|
|
91
|
+
InviteEvent,
|
|
92
|
+
z.ZodTypeDef,
|
|
93
|
+
unknown
|
|
94
|
+
> = smartUnion([z.lazy(() => Event2$inboundSchema), types.number()]);
|
|
95
|
+
|
|
96
|
+
export function inviteEventFromJSON(
|
|
97
|
+
jsonString: string,
|
|
98
|
+
): SafeParseResult<InviteEvent, SDKValidationError> {
|
|
99
|
+
return safeParse(
|
|
100
|
+
jsonString,
|
|
101
|
+
(x) => InviteEvent$inboundSchema.parse(JSON.parse(x)),
|
|
102
|
+
`Failed to parse 'InviteEvent' from JSON`,
|
|
103
|
+
);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/** @internal */
|
|
107
|
+
export const InviteStatus$inboundSchema: z.ZodType<
|
|
108
|
+
InviteStatus,
|
|
109
|
+
z.ZodTypeDef,
|
|
110
|
+
unknown
|
|
111
|
+
> = openEnums.inboundSchema(InviteStatus);
|
|
112
|
+
|
|
113
|
+
/** @internal */
|
|
114
|
+
export const InviteType$inboundSchema: z.ZodType<
|
|
115
|
+
InviteType,
|
|
116
|
+
z.ZodTypeDef,
|
|
117
|
+
unknown
|
|
118
|
+
> = openEnums.inboundSchema(InviteType);
|
|
119
|
+
|
|
120
|
+
/** @internal */
|
|
121
|
+
export const Invitee$inboundSchema: z.ZodType<Invitee, z.ZodTypeDef, unknown> =
|
|
122
|
+
z.object({
|
|
123
|
+
id: types.optional(types.number()),
|
|
124
|
+
name: z.nullable(types.string()).optional(),
|
|
125
|
+
type: types.optional(InviteType$inboundSchema),
|
|
126
|
+
});
|
|
127
|
+
|
|
128
|
+
export function inviteeFromJSON(
|
|
129
|
+
jsonString: string,
|
|
130
|
+
): SafeParseResult<Invitee, SDKValidationError> {
|
|
131
|
+
return safeParse(
|
|
132
|
+
jsonString,
|
|
133
|
+
(x) => Invitee$inboundSchema.parse(JSON.parse(x)),
|
|
134
|
+
`Failed to parse 'Invitee' from JSON`,
|
|
135
|
+
);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
/** @internal */
|
|
139
|
+
export const Invite$inboundSchema: z.ZodType<Invite, z.ZodTypeDef, unknown> = z
|
|
140
|
+
.object({
|
|
141
|
+
id: types.optional(types.number()),
|
|
142
|
+
event: types.optional(
|
|
143
|
+
smartUnion([z.lazy(() => Event2$inboundSchema), types.number()]),
|
|
144
|
+
),
|
|
145
|
+
user_id: z.nullable(types.number()).optional(),
|
|
146
|
+
company_id: z.nullable(types.number()).optional(),
|
|
147
|
+
department_id: z.nullable(types.number()).optional(),
|
|
148
|
+
status: z.nullable(InviteStatus$inboundSchema).optional(),
|
|
149
|
+
date_reviewed: z.nullable(types.string()).optional(),
|
|
150
|
+
invitee: z.nullable(z.lazy(() => Invitee$inboundSchema)).optional(),
|
|
151
|
+
}).transform((v) => {
|
|
152
|
+
return remap$(v, {
|
|
153
|
+
"user_id": "userId",
|
|
154
|
+
"company_id": "companyId",
|
|
155
|
+
"department_id": "departmentId",
|
|
156
|
+
"date_reviewed": "dateReviewed",
|
|
157
|
+
});
|
|
158
|
+
});
|
|
159
|
+
|
|
160
|
+
export function inviteFromJSON(
|
|
161
|
+
jsonString: string,
|
|
162
|
+
): SafeParseResult<Invite, SDKValidationError> {
|
|
163
|
+
return safeParse(
|
|
164
|
+
jsonString,
|
|
165
|
+
(x) => Invite$inboundSchema.parse(JSON.parse(x)),
|
|
166
|
+
`Failed to parse 'Invite' from JSON`,
|
|
167
|
+
);
|
|
168
|
+
}
|
|
@@ -32,6 +32,23 @@ export type CreateEventRequestBody = {
|
|
|
32
32
|
inviteeUserIds?: Array<number> | undefined;
|
|
33
33
|
inviteeDepartmentIds?: Array<number> | undefined;
|
|
34
34
|
notes?: string | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* The user the appointment is booked for. Defaults to the authenticated user, which
|
|
37
|
+
*
|
|
38
|
+
* @remarks
|
|
39
|
+
* is what a vendor or a facility user means. An API service account has no calendar
|
|
40
|
+
* of its own, so it names one here; the user must be a contact of the selected
|
|
41
|
+
* facility (or of its system), or a vendor targeting it.
|
|
42
|
+
*/
|
|
43
|
+
organizerUserId?: number | undefined;
|
|
44
|
+
/**
|
|
45
|
+
* The time zone `begin_date`/`begin_time` and `end_date`/`end_time` are given in, as
|
|
46
|
+
*
|
|
47
|
+
* @remarks
|
|
48
|
+
* a Rails time zone name (e.g. "Central Time (US & Canada)"). Defaults to the
|
|
49
|
+
* organizer's own time zone.
|
|
50
|
+
*/
|
|
51
|
+
timezone?: string | undefined;
|
|
35
52
|
};
|
|
36
53
|
|
|
37
54
|
/**
|
|
@@ -57,6 +74,8 @@ export type CreateEventRequestBody$Outbound = {
|
|
|
57
74
|
invitee_user_ids?: Array<number> | undefined;
|
|
58
75
|
invitee_department_ids?: Array<number> | undefined;
|
|
59
76
|
notes?: string | undefined;
|
|
77
|
+
organizer_user_id?: number | undefined;
|
|
78
|
+
timezone?: string | undefined;
|
|
60
79
|
};
|
|
61
80
|
|
|
62
81
|
/** @internal */
|
|
@@ -78,6 +97,8 @@ export const CreateEventRequestBody$outboundSchema: z.ZodType<
|
|
|
78
97
|
inviteeUserIds: z.array(z.number().int()).optional(),
|
|
79
98
|
inviteeDepartmentIds: z.array(z.number().int()).optional(),
|
|
80
99
|
notes: z.string().optional(),
|
|
100
|
+
organizerUserId: z.number().int().optional(),
|
|
101
|
+
timezone: z.string().optional(),
|
|
81
102
|
}).transform((v) => {
|
|
82
103
|
return remap$(v, {
|
|
83
104
|
facilityId: "facility_id",
|
|
@@ -91,6 +112,7 @@ export const CreateEventRequestBody$outboundSchema: z.ZodType<
|
|
|
91
112
|
endDate: "end_date",
|
|
92
113
|
inviteeUserIds: "invitee_user_ids",
|
|
93
114
|
inviteeDepartmentIds: "invitee_department_ids",
|
|
115
|
+
organizerUserId: "organizer_user_id",
|
|
94
116
|
});
|
|
95
117
|
});
|
|
96
118
|
|