@greensecurity/javascript-sdk 0.45.0-beta.26 → 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__/webhooks.test.js +1 -1
- package/dist/commonjs/__tests__/webhooks.test.js.map +1 -1
- package/dist/commonjs/__tests__/zones.test.js +9 -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__/webhooks.test.js +1 -1
- package/dist/esm/__tests__/webhooks.test.js.map +1 -1
- package/dist/esm/__tests__/zones.test.js +9 -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__/webhooks.test.ts +1 -1
- package/src/__tests__/zones.test.ts +9 -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
|
@@ -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
|
|
|
@@ -3,13 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
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
6
|
import * as components from "../components/index.js";
|
|
12
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
13
7
|
|
|
14
8
|
export type GetEventRequest = {
|
|
15
9
|
/**
|
|
@@ -22,81 +16,6 @@ export type GetEventRequest = {
|
|
|
22
16
|
expand?: Array<components.Expand> | undefined;
|
|
23
17
|
};
|
|
24
18
|
|
|
25
|
-
export type Facility2 = {};
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* The facility ID, or the expanded facility object when `event.facility` is passed to `expand`.
|
|
29
|
-
*/
|
|
30
|
-
export type Facility = number | Facility2;
|
|
31
|
-
|
|
32
|
-
export type Department2 = {};
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* The department ID, or the expanded department object when `event.department` is passed to `expand`.
|
|
36
|
-
*/
|
|
37
|
-
export type Department = number | Department2;
|
|
38
|
-
|
|
39
|
-
export type Invitees = {
|
|
40
|
-
id?: number | undefined;
|
|
41
|
-
userId?: number | null | undefined;
|
|
42
|
-
companyId?: number | null | undefined;
|
|
43
|
-
departmentId?: number | null | undefined;
|
|
44
|
-
status?: string | undefined;
|
|
45
|
-
dateReviewed?: string | null | undefined;
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* The request was successful, and the server has returned the requested resource in the response body.
|
|
50
|
-
*/
|
|
51
|
-
export type GetEventGetEventOk = {
|
|
52
|
-
id?: number | undefined;
|
|
53
|
-
/**
|
|
54
|
-
* The event name.
|
|
55
|
-
*/
|
|
56
|
-
title?: string | undefined;
|
|
57
|
-
/**
|
|
58
|
-
* Date and time in 12-hour format with 15-minute precision.
|
|
59
|
-
*
|
|
60
|
-
* @remarks
|
|
61
|
-
* Format: MM/DD/YYYY h:mm am/pm (e.g., "07/18/2025 12:15 pm" or "7:15 pm").
|
|
62
|
-
* - Hours: 1 to 12 (zero-padded or not)
|
|
63
|
-
* - Minutes: 00, 15, 30, or 45
|
|
64
|
-
* - AM/PM in lowercase
|
|
65
|
-
*/
|
|
66
|
-
start?: string | undefined;
|
|
67
|
-
/**
|
|
68
|
-
* Date and time in 12-hour format with 15-minute precision.
|
|
69
|
-
*
|
|
70
|
-
* @remarks
|
|
71
|
-
* Format: MM/DD/YYYY h:mm am/pm (e.g., "07/18/2025 12:15 pm" or "7:15 pm").
|
|
72
|
-
* - Hours: 1 to 12 (zero-padded or not)
|
|
73
|
-
* - Minutes: 00, 15, 30, or 45
|
|
74
|
-
* - AM/PM in lowercase
|
|
75
|
-
*/
|
|
76
|
-
end?: string | undefined;
|
|
77
|
-
allDay?: boolean | undefined;
|
|
78
|
-
standingAppt?: boolean | undefined;
|
|
79
|
-
bringingFood?: boolean | undefined;
|
|
80
|
-
notes?: string | null | undefined;
|
|
81
|
-
status?: string | undefined;
|
|
82
|
-
/**
|
|
83
|
-
* ISO 8601 date-time when the event was approved.
|
|
84
|
-
*/
|
|
85
|
-
dateApproved?: string | null | undefined;
|
|
86
|
-
/**
|
|
87
|
-
* The facility ID, or the expanded facility object when `event.facility` is passed to `expand`.
|
|
88
|
-
*/
|
|
89
|
-
facility?: number | Facility2 | undefined;
|
|
90
|
-
/**
|
|
91
|
-
* The department ID, or the expanded department object when `event.department` is passed to `expand`.
|
|
92
|
-
*/
|
|
93
|
-
department?: number | Department2 | undefined;
|
|
94
|
-
/**
|
|
95
|
-
* Populated when `event.invitees` is passed to `expand`.
|
|
96
|
-
*/
|
|
97
|
-
invitees?: Array<Invitees> | null | undefined;
|
|
98
|
-
};
|
|
99
|
-
|
|
100
19
|
/** @internal */
|
|
101
20
|
export type GetEventRequest$Outbound = {
|
|
102
21
|
id: number;
|
|
@@ -118,145 +37,3 @@ export function getEventRequestToJSON(
|
|
|
118
37
|
): string {
|
|
119
38
|
return JSON.stringify(GetEventRequest$outboundSchema.parse(getEventRequest));
|
|
120
39
|
}
|
|
121
|
-
|
|
122
|
-
/** @internal */
|
|
123
|
-
export const Facility2$inboundSchema: z.ZodType<
|
|
124
|
-
Facility2,
|
|
125
|
-
z.ZodTypeDef,
|
|
126
|
-
unknown
|
|
127
|
-
> = z.object({});
|
|
128
|
-
|
|
129
|
-
export function facility2FromJSON(
|
|
130
|
-
jsonString: string,
|
|
131
|
-
): SafeParseResult<Facility2, SDKValidationError> {
|
|
132
|
-
return safeParse(
|
|
133
|
-
jsonString,
|
|
134
|
-
(x) => Facility2$inboundSchema.parse(JSON.parse(x)),
|
|
135
|
-
`Failed to parse 'Facility2' from JSON`,
|
|
136
|
-
);
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
/** @internal */
|
|
140
|
-
export const Facility$inboundSchema: z.ZodType<
|
|
141
|
-
Facility,
|
|
142
|
-
z.ZodTypeDef,
|
|
143
|
-
unknown
|
|
144
|
-
> = smartUnion([types.number(), z.lazy(() => Facility2$inboundSchema)]);
|
|
145
|
-
|
|
146
|
-
export function facilityFromJSON(
|
|
147
|
-
jsonString: string,
|
|
148
|
-
): SafeParseResult<Facility, SDKValidationError> {
|
|
149
|
-
return safeParse(
|
|
150
|
-
jsonString,
|
|
151
|
-
(x) => Facility$inboundSchema.parse(JSON.parse(x)),
|
|
152
|
-
`Failed to parse 'Facility' from JSON`,
|
|
153
|
-
);
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
/** @internal */
|
|
157
|
-
export const Department2$inboundSchema: z.ZodType<
|
|
158
|
-
Department2,
|
|
159
|
-
z.ZodTypeDef,
|
|
160
|
-
unknown
|
|
161
|
-
> = z.object({});
|
|
162
|
-
|
|
163
|
-
export function department2FromJSON(
|
|
164
|
-
jsonString: string,
|
|
165
|
-
): SafeParseResult<Department2, SDKValidationError> {
|
|
166
|
-
return safeParse(
|
|
167
|
-
jsonString,
|
|
168
|
-
(x) => Department2$inboundSchema.parse(JSON.parse(x)),
|
|
169
|
-
`Failed to parse 'Department2' from JSON`,
|
|
170
|
-
);
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
/** @internal */
|
|
174
|
-
export const Department$inboundSchema: z.ZodType<
|
|
175
|
-
Department,
|
|
176
|
-
z.ZodTypeDef,
|
|
177
|
-
unknown
|
|
178
|
-
> = smartUnion([types.number(), z.lazy(() => Department2$inboundSchema)]);
|
|
179
|
-
|
|
180
|
-
export function departmentFromJSON(
|
|
181
|
-
jsonString: string,
|
|
182
|
-
): SafeParseResult<Department, SDKValidationError> {
|
|
183
|
-
return safeParse(
|
|
184
|
-
jsonString,
|
|
185
|
-
(x) => Department$inboundSchema.parse(JSON.parse(x)),
|
|
186
|
-
`Failed to parse 'Department' from JSON`,
|
|
187
|
-
);
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
/** @internal */
|
|
191
|
-
export const Invitees$inboundSchema: z.ZodType<
|
|
192
|
-
Invitees,
|
|
193
|
-
z.ZodTypeDef,
|
|
194
|
-
unknown
|
|
195
|
-
> = z.object({
|
|
196
|
-
id: types.optional(types.number()),
|
|
197
|
-
user_id: z.nullable(types.number()).optional(),
|
|
198
|
-
company_id: z.nullable(types.number()).optional(),
|
|
199
|
-
department_id: z.nullable(types.number()).optional(),
|
|
200
|
-
status: types.optional(types.string()),
|
|
201
|
-
date_reviewed: z.nullable(types.string()).optional(),
|
|
202
|
-
}).transform((v) => {
|
|
203
|
-
return remap$(v, {
|
|
204
|
-
"user_id": "userId",
|
|
205
|
-
"company_id": "companyId",
|
|
206
|
-
"department_id": "departmentId",
|
|
207
|
-
"date_reviewed": "dateReviewed",
|
|
208
|
-
});
|
|
209
|
-
});
|
|
210
|
-
|
|
211
|
-
export function inviteesFromJSON(
|
|
212
|
-
jsonString: string,
|
|
213
|
-
): SafeParseResult<Invitees, SDKValidationError> {
|
|
214
|
-
return safeParse(
|
|
215
|
-
jsonString,
|
|
216
|
-
(x) => Invitees$inboundSchema.parse(JSON.parse(x)),
|
|
217
|
-
`Failed to parse 'Invitees' from JSON`,
|
|
218
|
-
);
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
/** @internal */
|
|
222
|
-
export const GetEventGetEventOk$inboundSchema: z.ZodType<
|
|
223
|
-
GetEventGetEventOk,
|
|
224
|
-
z.ZodTypeDef,
|
|
225
|
-
unknown
|
|
226
|
-
> = z.object({
|
|
227
|
-
id: types.optional(types.number()),
|
|
228
|
-
title: types.optional(types.string()),
|
|
229
|
-
start: types.optional(types.string()),
|
|
230
|
-
end: types.optional(types.string()),
|
|
231
|
-
all_day: types.optional(types.boolean()),
|
|
232
|
-
standing_appt: types.optional(types.boolean()),
|
|
233
|
-
bringing_food: types.optional(types.boolean()),
|
|
234
|
-
notes: z.nullable(types.string()).optional(),
|
|
235
|
-
status: types.optional(types.string()),
|
|
236
|
-
date_approved: z.nullable(types.string()).optional(),
|
|
237
|
-
facility: types.optional(
|
|
238
|
-
smartUnion([types.number(), z.lazy(() => Facility2$inboundSchema)]),
|
|
239
|
-
),
|
|
240
|
-
department: types.optional(
|
|
241
|
-
smartUnion([types.number(), z.lazy(() => Department2$inboundSchema)]),
|
|
242
|
-
),
|
|
243
|
-
invitees: z.nullable(z.array(z.lazy(() => Invitees$inboundSchema)))
|
|
244
|
-
.optional(),
|
|
245
|
-
}).transform((v) => {
|
|
246
|
-
return remap$(v, {
|
|
247
|
-
"all_day": "allDay",
|
|
248
|
-
"standing_appt": "standingAppt",
|
|
249
|
-
"bringing_food": "bringingFood",
|
|
250
|
-
"date_approved": "dateApproved",
|
|
251
|
-
});
|
|
252
|
-
});
|
|
253
|
-
|
|
254
|
-
export function getEventGetEventOkFromJSON(
|
|
255
|
-
jsonString: string,
|
|
256
|
-
): SafeParseResult<GetEventGetEventOk, SDKValidationError> {
|
|
257
|
-
return safeParse(
|
|
258
|
-
jsonString,
|
|
259
|
-
(x) => GetEventGetEventOk$inboundSchema.parse(JSON.parse(x)),
|
|
260
|
-
`Failed to parse 'GetEventGetEventOk' from JSON`,
|
|
261
|
-
);
|
|
262
|
-
}
|
|
@@ -6,7 +6,6 @@ import * as z from "zod/v3";
|
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
-
import * as types from "../../types/primitives.js";
|
|
10
9
|
import * as components from "../components/index.js";
|
|
11
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
12
11
|
|
|
@@ -85,7 +84,7 @@ export type ListFeedListFeedOk = {
|
|
|
85
84
|
* Pagination information for a pageable list
|
|
86
85
|
*/
|
|
87
86
|
pager: components.Pager;
|
|
88
|
-
items: Array<components.
|
|
87
|
+
items: Array<components.Event>;
|
|
89
88
|
};
|
|
90
89
|
|
|
91
90
|
export type ListFeedResponse = {
|
|
@@ -165,7 +164,7 @@ export const ListFeedListFeedOk$inboundSchema: z.ZodType<
|
|
|
165
164
|
unknown
|
|
166
165
|
> = z.object({
|
|
167
166
|
pager: components.Pager$inboundSchema,
|
|
168
|
-
items: z.array(
|
|
167
|
+
items: z.array(components.Event$inboundSchema),
|
|
169
168
|
});
|
|
170
169
|
|
|
171
170
|
export function listFeedListFeedOkFromJSON(
|
|
@@ -35,6 +35,21 @@ export type ListOrSearchVendorInviteesRequest = {
|
|
|
35
35
|
* Search for objects by the search string
|
|
36
36
|
*/
|
|
37
37
|
search?: string | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* The vendor whose invitable directory to search. Required when the caller is not itself a
|
|
40
|
+
*
|
|
41
|
+
* @remarks
|
|
42
|
+
* vendor; it is resolved through the caller's own access scope, so it can only name a vendor
|
|
43
|
+
* the caller may already read. Ignored for a vendor caller, which always searches its own.
|
|
44
|
+
*/
|
|
45
|
+
vendorId?: number | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* Narrows the search to one of the vendor's approved, calendaring-enabled target facilities.
|
|
48
|
+
*
|
|
49
|
+
* @remarks
|
|
50
|
+
* A facility the vendor does not target yields no results rather than widening the search.
|
|
51
|
+
*/
|
|
52
|
+
facilityId?: number | undefined;
|
|
38
53
|
};
|
|
39
54
|
|
|
40
55
|
/**
|
|
@@ -60,6 +75,8 @@ export type ListOrSearchVendorInviteesRequest$Outbound = {
|
|
|
60
75
|
items_per_page?: number | undefined;
|
|
61
76
|
expand?: Array<string> | undefined;
|
|
62
77
|
search?: string | undefined;
|
|
78
|
+
vendor_id?: number | undefined;
|
|
79
|
+
facility_id?: number | undefined;
|
|
63
80
|
};
|
|
64
81
|
|
|
65
82
|
/** @internal */
|
|
@@ -74,9 +91,13 @@ export const ListOrSearchVendorInviteesRequest$outboundSchema: z.ZodType<
|
|
|
74
91
|
itemsPerPage: z.number().int().optional(),
|
|
75
92
|
expand: z.array(components.Expand$outboundSchema).optional(),
|
|
76
93
|
search: z.string().optional(),
|
|
94
|
+
vendorId: z.number().int().optional(),
|
|
95
|
+
facilityId: z.number().int().optional(),
|
|
77
96
|
}).transform((v) => {
|
|
78
97
|
return remap$(v, {
|
|
79
98
|
itemsPerPage: "items_per_page",
|
|
99
|
+
vendorId: "vendor_id",
|
|
100
|
+
facilityId: "facility_id",
|
|
80
101
|
});
|
|
81
102
|
});
|
|
82
103
|
|
|
@@ -6,7 +6,6 @@ import * as z from "zod/v3";
|
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
-
import * as types from "../../types/primitives.js";
|
|
10
9
|
import * as components from "../components/index.js";
|
|
11
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
12
11
|
|
|
@@ -61,7 +60,7 @@ export type ListPendingInvitationsListPendingInvitationsOk = {
|
|
|
61
60
|
* Pagination information for a pageable list
|
|
62
61
|
*/
|
|
63
62
|
pager: components.Pager;
|
|
64
|
-
items: Array<components.
|
|
63
|
+
items: Array<components.Invite>;
|
|
65
64
|
};
|
|
66
65
|
|
|
67
66
|
export type ListPendingInvitationsResponse = {
|
|
@@ -128,7 +127,7 @@ export const ListPendingInvitationsListPendingInvitationsOk$inboundSchema:
|
|
|
128
127
|
unknown
|
|
129
128
|
> = z.object({
|
|
130
129
|
pager: components.Pager$inboundSchema,
|
|
131
|
-
items: z.array(
|
|
130
|
+
items: z.array(components.Invite$inboundSchema),
|
|
132
131
|
});
|
|
133
132
|
|
|
134
133
|
export function listPendingInvitationsListPendingInvitationsOkFromJSON(
|
|
@@ -6,7 +6,6 @@ import * as z from "zod/v3";
|
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
-
import * as types from "../../types/primitives.js";
|
|
10
9
|
import * as components from "../components/index.js";
|
|
11
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
12
11
|
|
|
@@ -85,7 +84,7 @@ export type ListStandingAppointmentsListStandingAppointmentsOk = {
|
|
|
85
84
|
* Pagination information for a pageable list
|
|
86
85
|
*/
|
|
87
86
|
pager: components.Pager;
|
|
88
|
-
items: Array<components.
|
|
87
|
+
items: Array<components.Event>;
|
|
89
88
|
};
|
|
90
89
|
|
|
91
90
|
export type ListStandingAppointmentsResponse = {
|
|
@@ -170,9 +169,7 @@ export const ListStandingAppointmentsListStandingAppointmentsOk$inboundSchema:
|
|
|
170
169
|
unknown
|
|
171
170
|
> = z.object({
|
|
172
171
|
pager: components.Pager$inboundSchema,
|
|
173
|
-
items: z.array(
|
|
174
|
-
types.nullable(components.StandingAppointment$inboundSchema),
|
|
175
|
-
),
|
|
172
|
+
items: z.array(components.Event$inboundSchema),
|
|
176
173
|
});
|
|
177
174
|
|
|
178
175
|
export function listStandingAppointmentsListStandingAppointmentsOkFromJSON(
|
|
@@ -36,6 +36,7 @@ export type EventsCreateEventMutationData = operations.CreateEventCreateEventOk;
|
|
|
36
36
|
|
|
37
37
|
export type EventsCreateEventMutationError =
|
|
38
38
|
| errors.ApiErrorResponse
|
|
39
|
+
| errors.ApiValidationErrorResponse
|
|
39
40
|
| GreenSecurityError
|
|
40
41
|
| ResponseValidationError
|
|
41
42
|
| ConnectionError
|
|
@@ -14,7 +14,7 @@ import { RequestOptions } from "../lib/sdks.js";
|
|
|
14
14
|
import * as components from "../models/components/index.js";
|
|
15
15
|
import * as operations from "../models/operations/index.js";
|
|
16
16
|
import { unwrapAsync } from "../types/fp.js";
|
|
17
|
-
export type EventsGetEventQueryData =
|
|
17
|
+
export type EventsGetEventQueryData = components.Event;
|
|
18
18
|
|
|
19
19
|
export function prefetchEventsGetEvent(
|
|
20
20
|
queryClient: QueryClient,
|
|
@@ -63,11 +63,18 @@ export type EventsGetEventQueryError =
|
|
|
63
63
|
*
|
|
64
64
|
* Available `expand` scopes are:
|
|
65
65
|
*
|
|
66
|
-
* -
|
|
67
|
-
* -
|
|
68
|
-
* -
|
|
66
|
+
* - event.facility
|
|
67
|
+
* - event.department
|
|
68
|
+
* - event.invitees
|
|
69
|
+
* - event.location
|
|
70
|
+
* - event.attendees
|
|
71
|
+
* - event.creator
|
|
69
72
|
*
|
|
70
73
|
* Unrecognised values are ignored.
|
|
74
|
+
*
|
|
75
|
+
* This route always returns the current `Event` shape, whatever SDK version is calling: it was
|
|
76
|
+
* introduced after the calendar list endpoints and has never served the older string-valued
|
|
77
|
+
* shape they did.
|
|
71
78
|
*/
|
|
72
79
|
export function useEventsGetEvent(
|
|
73
80
|
request: operations.GetEventRequest,
|
|
@@ -94,11 +101,18 @@ export function useEventsGetEvent(
|
|
|
94
101
|
*
|
|
95
102
|
* Available `expand` scopes are:
|
|
96
103
|
*
|
|
97
|
-
* -
|
|
98
|
-
* -
|
|
99
|
-
* -
|
|
104
|
+
* - event.facility
|
|
105
|
+
* - event.department
|
|
106
|
+
* - event.invitees
|
|
107
|
+
* - event.location
|
|
108
|
+
* - event.attendees
|
|
109
|
+
* - event.creator
|
|
100
110
|
*
|
|
101
111
|
* Unrecognised values are ignored.
|
|
112
|
+
*
|
|
113
|
+
* This route always returns the current `Event` shape, whatever SDK version is calling: it was
|
|
114
|
+
* introduced after the calendar list endpoints and has never served the older string-valued
|
|
115
|
+
* shape they did.
|
|
102
116
|
*/
|
|
103
117
|
export function useEventsGetEventSuspense(
|
|
104
118
|
request: operations.GetEventRequest,
|