RIDDL Specification For improving.app
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

LocationsReservationsViewHandler: Handler

ItemValue
BrieflyBrief description missing.
Definition PathImprovingApp.LocationsReservationsProjections.LocationsReservationsView.LocationsReservationsViewHandler
View Source LinklocationsReservationsProjections.riddl(23:13)

OnMessageClause event VenueEstablished

Statements

\n"find or create rows with venueId set to VenueEstablished.venueId and orgId set to VenueEstablished.info.orgId""set isPrivate to true if VenueEstablished.info.isPrivate is true"\n

OnMessageClause event VenueInfoUpdated

Statements

\n"find rows with venueId set to VenueInfoUpdated.venueId and orgId set to VenueInfoUpdated.info.orgId""set isPrivate to true if VenueInfoUpdated.info.isPrivate is true"\n

OnMessageClause event VenueLocationsAdded

Statements

\n"find or create rows with venueId set to VenueLocationsAdded.venueId and locationIds set to VenueLocationsAdded.locationIds"\n

OnMessageClause event ReservationEstablished

Statements

\n"find or create rows with reservationId set to ReservationEstablished.reservationId""set rows' reservationStart to ReservationEstablished.info.range.start""set rows' reservationEnd to ReservationEstablished.info.range.end"\n

OnMessageClause event ReservationInfoUpdated

Statements

\n"find rows with reservationId set to ReservationInfoUpdated.reservationId""set rows' reservationStart to ReservationInfoUpdated.info.range.start""set rows' reservationEnd to ReservationInfoUpdated.info.range.end"\n

OnMessageClause event LocationEstablished

Statements

\n"find or create rows with reservationId set to LocationEstablished.reservationIds""set rows' capacity to LocationEstablished.locationInfo.capacity""set rows' locationIds to LocationEstablished.locationIds""set isPrivate to true if LocationEstablished.info.isPrivate is true"\n

OnMessageClause event LocationReservationsAdded

Statements

\n"find or create rows with reservationId set to LocationReservationsAdded.reservationId""set rows' locationId to LocationReservationsAdded.locationId"\n

OnMessageClause event LocationInfoUpdated

Statements

\n"find rows where locationId is LocationInfoUpdated.locationId""set rows' capacity to LocationInfoUpdated.info.capacity""set isPrivate to true if LocationInfoUpdated.info.isPrivate is true"\n

OnMessageClause query ScheduleEasyEvent

Statements

\n"filter by ScheduleEasyEvent.info.forOrg not equals orgId & isPrivate is true - return EasyEventNoAvailability if empty""find rows where ScheduleEasyEvent.maxAttendance < capacity - return EasyEventNoAvailability if empty""filter by ScheduleEasyEvent.info.timeRange.start & ScheduleEasyEvent.info.timeRange.end do not overlap reservationStart & reservationEnd""if empty, try 30mins earlier - if still empty, try 30 mins later - then return EasyEventNoAvailability if empty""return EasyScheduledEvent with all row's locationId, ScheduleEasyEvent.eventInfo where expectedStart & expectedEnd are possibly adjusted from previous steps"\n

Used By None

Uses Nothing