@greensecurity/javascript-sdk 0.45.0-beta.25 → 0.45.0-beta.27
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__/zones.test.js +6 -9
- package/dist/commonjs/__tests__/zones.test.js.map +1 -1
- 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/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__/zones.test.js +6 -9
- package/dist/esm/__tests__/zones.test.js.map +1 -1
- 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/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__/zones.test.ts +6 -9
- 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/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
|
@@ -42,16 +42,13 @@ test("Zones List Or Search Security Zones", async () => {
|
|
|
42
42
|
facility: {
|
|
43
43
|
contacts: {
|
|
44
44
|
contact: {
|
|
45
|
-
status: "
|
|
46
|
-
department: 123,
|
|
47
|
-
},
|
|
48
|
-
adminContact: {
|
|
49
|
-
status: "Inactive",
|
|
45
|
+
status: "Deleted",
|
|
50
46
|
department: 123,
|
|
51
47
|
},
|
|
48
|
+
adminContact: null,
|
|
52
49
|
techContact: {
|
|
53
50
|
status: "Active",
|
|
54
|
-
department:
|
|
51
|
+
department: null,
|
|
55
52
|
},
|
|
56
53
|
greenSecurityCsm: {
|
|
57
54
|
status: "Active",
|
|
@@ -60,9 +57,9 @@ test("Zones List Or Search Security Zones", async () => {
|
|
|
60
57
|
accountManager: null,
|
|
61
58
|
},
|
|
62
59
|
vendorGuestPolicy: {
|
|
63
|
-
enabled:
|
|
60
|
+
enabled: true,
|
|
64
61
|
vendorGuestLimitAndOr: "and",
|
|
65
|
-
vendorGuestRequireEmail:
|
|
62
|
+
vendorGuestRequireEmail: false,
|
|
66
63
|
},
|
|
67
64
|
},
|
|
68
65
|
},
|
|
@@ -83,7 +80,7 @@ test("Zones Security Zone Checkin", async () => {
|
|
|
83
80
|
|
|
84
81
|
const result = await greenSecurity.zones.securityZoneCheckin({
|
|
85
82
|
qrCode: "<value>",
|
|
86
|
-
zoneId:
|
|
83
|
+
zoneId: 542818,
|
|
87
84
|
});
|
|
88
85
|
expect(result).toBeDefined();
|
|
89
86
|
expect(result).toEqual({});
|
|
@@ -44,6 +44,7 @@ export function eventsCreateEvent(
|
|
|
44
44
|
Result<
|
|
45
45
|
operations.CreateEventCreateEventOk,
|
|
46
46
|
| errors.ApiErrorResponse
|
|
47
|
+
| errors.ApiValidationErrorResponse
|
|
47
48
|
| GreenSecurityError
|
|
48
49
|
| ResponseValidationError
|
|
49
50
|
| ConnectionError
|
|
@@ -70,6 +71,7 @@ async function $do(
|
|
|
70
71
|
Result<
|
|
71
72
|
operations.CreateEventCreateEventOk,
|
|
72
73
|
| errors.ApiErrorResponse
|
|
74
|
+
| errors.ApiValidationErrorResponse
|
|
73
75
|
| GreenSecurityError
|
|
74
76
|
| ResponseValidationError
|
|
75
77
|
| ConnectionError
|
|
@@ -152,6 +154,7 @@ async function $do(
|
|
|
152
154
|
const [result] = await M.match<
|
|
153
155
|
operations.CreateEventCreateEventOk,
|
|
154
156
|
| errors.ApiErrorResponse
|
|
157
|
+
| errors.ApiValidationErrorResponse
|
|
155
158
|
| GreenSecurityError
|
|
156
159
|
| ResponseValidationError
|
|
157
160
|
| ConnectionError
|
|
@@ -163,6 +166,7 @@ async function $do(
|
|
|
163
166
|
>(
|
|
164
167
|
M.json(200, operations.CreateEventCreateEventOk$inboundSchema),
|
|
165
168
|
M.jsonErr([400, 401, 403, 404], errors.ApiErrorResponse$inboundSchema),
|
|
169
|
+
M.jsonErr(422, errors.ApiValidationErrorResponse$inboundSchema),
|
|
166
170
|
M.fail("4XX"),
|
|
167
171
|
M.fail([500, "5XX"]),
|
|
168
172
|
)(response, req, { extraFields: responseFields });
|
|
@@ -11,6 +11,7 @@ import { safeParse } from "../lib/schemas.js";
|
|
|
11
11
|
import { RequestOptions } from "../lib/sdks.js";
|
|
12
12
|
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
13
13
|
import { pathToFunc } from "../lib/url.js";
|
|
14
|
+
import * as components from "../models/components/index.js";
|
|
14
15
|
import { GreenSecurityError } from "../models/errors/greensecurityerror.js";
|
|
15
16
|
import {
|
|
16
17
|
ConnectionError,
|
|
@@ -36,12 +37,19 @@ import { Result } from "../types/fp.js";
|
|
|
36
37
|
*
|
|
37
38
|
* Available `expand` scopes are:
|
|
38
39
|
*
|
|
39
|
-
* -
|
|
40
|
-
* -
|
|
41
|
-
* -
|
|
40
|
+
* - event.facility
|
|
41
|
+
* - event.department
|
|
42
|
+
* - event.invitees
|
|
43
|
+
* - event.location
|
|
44
|
+
* - event.attendees
|
|
45
|
+
* - event.creator
|
|
42
46
|
*
|
|
43
47
|
* Unrecognised values are ignored.
|
|
44
48
|
*
|
|
49
|
+
* This route always returns the current `Event` shape, whatever SDK version is calling: it was
|
|
50
|
+
* introduced after the calendar list endpoints and has never served the older string-valued
|
|
51
|
+
* shape they did.
|
|
52
|
+
*
|
|
45
53
|
* If set, this operation will use {@link Security.bearerJwt} from the global security.
|
|
46
54
|
*/
|
|
47
55
|
export function eventsGetEvent(
|
|
@@ -50,7 +58,7 @@ export function eventsGetEvent(
|
|
|
50
58
|
options?: RequestOptions,
|
|
51
59
|
): APIPromise<
|
|
52
60
|
Result<
|
|
53
|
-
|
|
61
|
+
components.Event,
|
|
54
62
|
| errors.ApiErrorResponse
|
|
55
63
|
| GreenSecurityError
|
|
56
64
|
| ResponseValidationError
|
|
@@ -76,7 +84,7 @@ async function $do(
|
|
|
76
84
|
): Promise<
|
|
77
85
|
[
|
|
78
86
|
Result<
|
|
79
|
-
|
|
87
|
+
components.Event,
|
|
80
88
|
| errors.ApiErrorResponse
|
|
81
89
|
| GreenSecurityError
|
|
82
90
|
| ResponseValidationError
|
|
@@ -168,7 +176,7 @@ async function $do(
|
|
|
168
176
|
};
|
|
169
177
|
|
|
170
178
|
const [result] = await M.match<
|
|
171
|
-
|
|
179
|
+
components.Event,
|
|
172
180
|
| errors.ApiErrorResponse
|
|
173
181
|
| GreenSecurityError
|
|
174
182
|
| ResponseValidationError
|
|
@@ -179,7 +187,7 @@ async function $do(
|
|
|
179
187
|
| UnexpectedClientError
|
|
180
188
|
| SDKValidationError
|
|
181
189
|
>(
|
|
182
|
-
M.json(200,
|
|
190
|
+
M.json(200, components.Event$inboundSchema),
|
|
183
191
|
M.jsonErr([400, 401, 403, 404], errors.ApiErrorResponse$inboundSchema),
|
|
184
192
|
M.fail("4XX"),
|
|
185
193
|
M.fail([500, "5XX"]),
|
|
@@ -36,9 +36,21 @@ import {
|
|
|
36
36
|
* List events feed
|
|
37
37
|
*
|
|
38
38
|
* @remarks
|
|
39
|
-
* List events feed
|
|
39
|
+
* List events feed.
|
|
40
|
+
*
|
|
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.creator` and `event.invitees` scopes already applied,
|
|
45
|
+
* so `event_creator`, `event_creator_img_url` and `invitees` are populated — the fields this
|
|
46
|
+
* feed has always carried. SDK builds below `0.55.0-beta.1` receive the older `Feed` shape
|
|
47
|
+
* instead, in which `facility` and `department` are name strings rather than ids; the server
|
|
48
|
+
* chooses by the `X-SDK-User-Agent` header the SDK sends, so an existing client keeps the
|
|
49
|
+
* shape it was generated against until it is regenerated.
|
|
40
50
|
*
|
|
41
|
-
*
|
|
51
|
+
* The boundary is the prerelease build `0.55.0-beta.1`, not the `0.55.0` release, so
|
|
52
|
+
* `0.55.0-beta.1` itself already receives `Event`. See the `Event` schema for exactly how a
|
|
53
|
+
* build is compared against it.
|
|
42
54
|
*
|
|
43
55
|
* If set, this operation will use {@link Security.bearerJwt} from the global security.
|
|
44
56
|
*/
|
|
@@ -123,10 +123,12 @@ async function $do(
|
|
|
123
123
|
}, { explode: false }),
|
|
124
124
|
encodeFormQuery({
|
|
125
125
|
"desc": payload.desc,
|
|
126
|
+
"facility_id": payload.facility_id,
|
|
126
127
|
"items_per_page": payload.items_per_page,
|
|
127
128
|
"page": payload.page,
|
|
128
129
|
"search": payload.search,
|
|
129
130
|
"sort": payload.sort,
|
|
131
|
+
"vendor_id": payload.vendor_id,
|
|
130
132
|
}),
|
|
131
133
|
);
|
|
132
134
|
|
|
@@ -36,9 +36,21 @@ import {
|
|
|
36
36
|
* List pending invitations
|
|
37
37
|
*
|
|
38
38
|
* @remarks
|
|
39
|
-
* List pending invitations
|
|
39
|
+
* List pending invitations.
|
|
40
|
+
*
|
|
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 `Invite` items with the `invite.event` and `invite.invitee` scopes already applied,
|
|
45
|
+
* so `event` is the expanded `{ id, name }` summary rather than a bare id, and `invitee` is
|
|
46
|
+
* populated — the appointment and the recipient this list has always named. This endpoint
|
|
47
|
+
* takes no `expand` parameter; both scopes are applied on every call and cannot be turned off.
|
|
48
|
+
* SDK builds below `0.55.0-beta.1` receive the older `PendingInvitation` shape instead, which
|
|
49
|
+
* embeds the appointment.
|
|
40
50
|
*
|
|
41
|
-
*
|
|
51
|
+
* The boundary is the prerelease build `0.55.0-beta.1`, not the `0.55.0` release, so
|
|
52
|
+
* `0.55.0-beta.1` itself already receives `Invite`. See the `Invite` schema for exactly how a
|
|
53
|
+
* build is compared against it.
|
|
42
54
|
*
|
|
43
55
|
* If set, this operation will use {@link Security.bearerJwt} from the global security.
|
|
44
56
|
*/
|
|
@@ -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/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.27",
|
|
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.27 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";
|