@frigear-nu/shifts 0.0.0-stage → 0.0.1
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 +53 -2
- package/dist/module.d.mts +716 -0
- package/dist/module.json +9 -0
- package/dist/module.mjs +272 -0
- package/dist/runtime/access.d.ts +2 -0
- package/dist/runtime/access.js +84 -0
- package/dist/runtime/app/components/ShiftBroadcastSlideover.d.vue.ts +19 -0
- package/dist/runtime/app/components/ShiftBroadcastSlideover.vue +142 -0
- package/dist/runtime/app/components/ShiftBroadcastSlideover.vue.d.ts +19 -0
- package/dist/runtime/app/components/ShiftBroadcastsCard.d.vue.ts +9 -0
- package/dist/runtime/app/components/ShiftBroadcastsCard.vue +74 -0
- package/dist/runtime/app/components/ShiftBroadcastsCard.vue.d.ts +9 -0
- package/dist/runtime/app/components/ShiftBulkSlideover.d.vue.ts +15 -0
- package/dist/runtime/app/components/ShiftBulkSlideover.vue +185 -0
- package/dist/runtime/app/components/ShiftBulkSlideover.vue.d.ts +15 -0
- package/dist/runtime/app/components/ShiftCheckInCard.d.vue.ts +13 -0
- package/dist/runtime/app/components/ShiftCheckInCard.vue +238 -0
- package/dist/runtime/app/components/ShiftCheckInCard.vue.d.ts +13 -0
- package/dist/runtime/app/components/ShiftCopySlideover.d.vue.ts +11 -0
- package/dist/runtime/app/components/ShiftCopySlideover.vue +71 -0
- package/dist/runtime/app/components/ShiftCopySlideover.vue.d.ts +11 -0
- package/dist/runtime/app/components/ShiftDayView.d.vue.ts +16 -0
- package/dist/runtime/app/components/ShiftDayView.vue +124 -0
- package/dist/runtime/app/components/ShiftDayView.vue.d.ts +16 -0
- package/dist/runtime/app/components/ShiftFeedSlideover.d.vue.ts +7 -0
- package/dist/runtime/app/components/ShiftFeedSlideover.vue +172 -0
- package/dist/runtime/app/components/ShiftFeedSlideover.vue.d.ts +7 -0
- package/dist/runtime/app/components/ShiftNowCard.d.vue.ts +6 -0
- package/dist/runtime/app/components/ShiftNowCard.vue +83 -0
- package/dist/runtime/app/components/ShiftNowCard.vue.d.ts +6 -0
- package/dist/runtime/app/components/ShiftPassFullscreen.d.vue.ts +13 -0
- package/dist/runtime/app/components/ShiftPassFullscreen.vue +79 -0
- package/dist/runtime/app/components/ShiftPassFullscreen.vue.d.ts +13 -0
- package/dist/runtime/app/components/ShiftPerkSlideover.d.vue.ts +14 -0
- package/dist/runtime/app/components/ShiftPerkSlideover.vue +103 -0
- package/dist/runtime/app/components/ShiftPerkSlideover.vue.d.ts +14 -0
- package/dist/runtime/app/components/ShiftPerksCard.d.vue.ts +8 -0
- package/dist/runtime/app/components/ShiftPerksCard.vue +66 -0
- package/dist/runtime/app/components/ShiftPerksCard.vue.d.ts +8 -0
- package/dist/runtime/app/components/ShiftQrScanner.d.vue.ts +10 -0
- package/dist/runtime/app/components/ShiftQrScanner.vue +44 -0
- package/dist/runtime/app/components/ShiftQrScanner.vue.d.ts +10 -0
- package/dist/runtime/app/components/ShiftRoleSlideover.d.vue.ts +15 -0
- package/dist/runtime/app/components/ShiftRoleSlideover.vue +88 -0
- package/dist/runtime/app/components/ShiftRoleSlideover.vue.d.ts +15 -0
- package/dist/runtime/app/components/ShiftScheduleSettingsFields.d.vue.ts +11 -0
- package/dist/runtime/app/components/ShiftScheduleSettingsFields.vue +61 -0
- package/dist/runtime/app/components/ShiftScheduleSettingsFields.vue.d.ts +11 -0
- package/dist/runtime/app/components/ShiftScheduleSlideover.d.vue.ts +12 -0
- package/dist/runtime/app/components/ShiftScheduleSlideover.vue +129 -0
- package/dist/runtime/app/components/ShiftScheduleSlideover.vue.d.ts +12 -0
- package/dist/runtime/app/components/ShiftSlideover.d.vue.ts +13 -0
- package/dist/runtime/app/components/ShiftSlideover.vue +353 -0
- package/dist/runtime/app/components/ShiftSlideover.vue.d.ts +13 -0
- package/dist/runtime/app/components/ShiftStationSlideover.d.vue.ts +15 -0
- package/dist/runtime/app/components/ShiftStationSlideover.vue +92 -0
- package/dist/runtime/app/components/ShiftStationSlideover.vue.d.ts +15 -0
- package/dist/runtime/app/composables/index.d.ts +6 -0
- package/dist/runtime/app/composables/index.js +5 -0
- package/dist/runtime/app/composables/useShiftsActions.d.ts +61 -0
- package/dist/runtime/app/composables/useShiftsActions.js +224 -0
- package/dist/runtime/app/composables/useShiftsFormat.d.ts +12 -0
- package/dist/runtime/app/composables/useShiftsFormat.js +14 -0
- package/dist/runtime/app/composables/useShiftsLinks.d.ts +12 -0
- package/dist/runtime/app/composables/useShiftsLinks.js +6 -0
- package/dist/runtime/app/composables/useShiftsTranslate.d.ts +5 -0
- package/dist/runtime/app/composables/useShiftsTranslate.js +12 -0
- package/dist/runtime/app/composables/useShiftsVenueFeatures.d.ts +17 -0
- package/dist/runtime/app/composables/useShiftsVenueFeatures.js +18 -0
- package/dist/runtime/app/dashboard/NextShift.d.vue.ts +3 -0
- package/dist/runtime/app/dashboard/NextShift.vue +69 -0
- package/dist/runtime/app/dashboard/NextShift.vue.d.ts +3 -0
- package/dist/runtime/app/dashboard/OpenSwaps.d.vue.ts +3 -0
- package/dist/runtime/app/dashboard/OpenSwaps.vue +69 -0
- package/dist/runtime/app/dashboard/OpenSwaps.vue.d.ts +3 -0
- package/dist/runtime/app/dashboard/TeamOnNow.d.vue.ts +3 -0
- package/dist/runtime/app/dashboard/TeamOnNow.vue +72 -0
- package/dist/runtime/app/dashboard/TeamOnNow.vue.d.ts +3 -0
- package/dist/runtime/app/pages/check-in.d.vue.ts +3 -0
- package/dist/runtime/app/pages/check-in.vue +93 -0
- package/dist/runtime/app/pages/check-in.vue.d.ts +3 -0
- package/dist/runtime/app/pages/lead.d.vue.ts +3 -0
- package/dist/runtime/app/pages/lead.vue +300 -0
- package/dist/runtime/app/pages/lead.vue.d.ts +3 -0
- package/dist/runtime/app/pages/shift.d.vue.ts +3 -0
- package/dist/runtime/app/pages/shift.vue +482 -0
- package/dist/runtime/app/pages/shift.vue.d.ts +3 -0
- package/dist/runtime/app/pages/shifts.d.vue.ts +3 -0
- package/dist/runtime/app/pages/shifts.vue +21 -0
- package/dist/runtime/app/pages/shifts.vue.d.ts +3 -0
- package/dist/runtime/app/pages/station.d.vue.ts +3 -0
- package/dist/runtime/app/pages/station.vue +104 -0
- package/dist/runtime/app/pages/station.vue.d.ts +3 -0
- package/dist/runtime/app/pages/swaps.d.vue.ts +3 -0
- package/dist/runtime/app/pages/swaps.vue +32 -0
- package/dist/runtime/app/pages/swaps.vue.d.ts +3 -0
- package/dist/runtime/app/tabs/HomeShifts.d.vue.ts +6 -0
- package/dist/runtime/app/tabs/HomeShifts.vue +194 -0
- package/dist/runtime/app/tabs/HomeShifts.vue.d.ts +6 -0
- package/dist/runtime/app/tabs/HomeSwaps.d.vue.ts +3 -0
- package/dist/runtime/app/tabs/HomeSwaps.vue +188 -0
- package/dist/runtime/app/tabs/HomeSwaps.vue.d.ts +3 -0
- package/dist/runtime/app/tabs/Shifts.d.vue.ts +9 -0
- package/dist/runtime/app/tabs/Shifts.vue +487 -0
- package/dist/runtime/app/tabs/Shifts.vue.d.ts +9 -0
- package/dist/runtime/app/utils/admin-shifts.d.ts +42 -0
- package/dist/runtime/app/utils/admin-shifts.js +36 -0
- package/dist/runtime/dashboard.d.ts +8 -0
- package/dist/runtime/dashboard.js +30 -0
- package/dist/runtime/emails/shifts-broadcast.d.vue.ts +8 -0
- package/dist/runtime/emails/shifts-broadcast.vue +24 -0
- package/dist/runtime/emails/shifts-broadcast.vue.d.ts +8 -0
- package/dist/runtime/emails/shifts-reminder.d.vue.ts +12 -0
- package/dist/runtime/emails/shifts-reminder.vue +34 -0
- package/dist/runtime/emails/shifts-reminder.vue.d.ts +12 -0
- package/dist/runtime/emails/shifts-swap-accepted.d.vue.ts +11 -0
- package/dist/runtime/emails/shifts-swap-accepted.vue +32 -0
- package/dist/runtime/emails/shifts-swap-accepted.vue.d.ts +11 -0
- package/dist/runtime/emails/shifts-swap-completed.d.vue.ts +11 -0
- package/dist/runtime/emails/shifts-swap-completed.vue +32 -0
- package/dist/runtime/emails/shifts-swap-completed.vue.d.ts +11 -0
- package/dist/runtime/emails/shifts-swap-offered.d.vue.ts +11 -0
- package/dist/runtime/emails/shifts-swap-offered.vue +32 -0
- package/dist/runtime/emails/shifts-swap-offered.vue.d.ts +11 -0
- package/dist/runtime/emails/shifts-swap-pending.d.vue.ts +11 -0
- package/dist/runtime/emails/shifts-swap-pending.vue +32 -0
- package/dist/runtime/emails/shifts-swap-pending.vue.d.ts +11 -0
- package/dist/runtime/emails/shifts-swap-proposed.d.vue.ts +11 -0
- package/dist/runtime/emails/shifts-swap-proposed.vue +32 -0
- package/dist/runtime/emails/shifts-swap-proposed.vue.d.ts +11 -0
- package/dist/runtime/emails/shifts-swap-rejected.d.vue.ts +11 -0
- package/dist/runtime/emails/shifts-swap-rejected.vue +32 -0
- package/dist/runtime/emails/shifts-swap-rejected.vue.d.ts +11 -0
- package/dist/runtime/i18n/lang/da.json +627 -0
- package/dist/runtime/i18n/lang/en.json +627 -0
- package/dist/runtime/notifications.d.ts +9 -0
- package/dist/runtime/notifications.js +36 -0
- package/dist/runtime/server/db/schema.postgresql.d.ts +2151 -0
- package/dist/runtime/server/db/schema.postgresql.js +228 -0
- package/dist/runtime/server/db/schema.sqlite.d.ts +2263 -0
- package/dist/runtime/server/db/schema.sqlite.js +228 -0
- package/dist/runtime/server/digest-email.d.ts +17 -0
- package/dist/runtime/server/digest-email.js +42 -0
- package/dist/runtime/server/plugins/station-key.d.ts +2 -0
- package/dist/runtime/server/plugins/station-key.js +5 -0
- package/dist/runtime/server/plugins/teams.d.ts +2 -0
- package/dist/runtime/server/plugins/teams.js +19 -0
- package/dist/runtime/server/policies.d.ts +2 -0
- package/dist/runtime/server/policies.js +41 -0
- package/dist/runtime/server/reminder-email.d.ts +67 -0
- package/dist/runtime/server/reminder-email.js +109 -0
- package/dist/runtime/server/routes/admin/assignment.delete.d.ts +2 -0
- package/dist/runtime/server/routes/admin/assignment.delete.js +10 -0
- package/dist/runtime/server/routes/admin/assignments.post.d.ts +2 -0
- package/dist/runtime/server/routes/admin/assignments.post.js +11 -0
- package/dist/runtime/server/routes/admin/broadcasts.get.d.ts +2 -0
- package/dist/runtime/server/routes/admin/broadcasts.get.js +8 -0
- package/dist/runtime/server/routes/admin/broadcasts.post.d.ts +2 -0
- package/dist/runtime/server/routes/admin/broadcasts.post.js +9 -0
- package/dist/runtime/server/routes/admin/candidates.get.d.ts +2 -0
- package/dist/runtime/server/routes/admin/candidates.get.js +10 -0
- package/dist/runtime/server/routes/admin/operation-teams.get.d.ts +2 -0
- package/dist/runtime/server/routes/admin/operation-teams.get.js +9 -0
- package/dist/runtime/server/routes/admin/perk.delete.d.ts +2 -0
- package/dist/runtime/server/routes/admin/perk.delete.js +10 -0
- package/dist/runtime/server/routes/admin/perk.patch.d.ts +2 -0
- package/dist/runtime/server/routes/admin/perk.patch.js +10 -0
- package/dist/runtime/server/routes/admin/perks.get.d.ts +2 -0
- package/dist/runtime/server/routes/admin/perks.get.js +9 -0
- package/dist/runtime/server/routes/admin/perks.post.d.ts +2 -0
- package/dist/runtime/server/routes/admin/perks.post.js +10 -0
- package/dist/runtime/server/routes/admin/role.delete.d.ts +2 -0
- package/dist/runtime/server/routes/admin/role.delete.js +11 -0
- package/dist/runtime/server/routes/admin/role.patch.d.ts +2 -0
- package/dist/runtime/server/routes/admin/role.patch.js +11 -0
- package/dist/runtime/server/routes/admin/roles.get.d.ts +2 -0
- package/dist/runtime/server/routes/admin/roles.get.js +9 -0
- package/dist/runtime/server/routes/admin/roles.post.d.ts +2 -0
- package/dist/runtime/server/routes/admin/roles.post.js +10 -0
- package/dist/runtime/server/routes/admin/schedule-copy.post.d.ts +2 -0
- package/dist/runtime/server/routes/admin/schedule-copy.post.js +12 -0
- package/dist/runtime/server/routes/admin/schedule-publish.post.d.ts +2 -0
- package/dist/runtime/server/routes/admin/schedule-publish.post.js +9 -0
- package/dist/runtime/server/routes/admin/schedule.delete.d.ts +2 -0
- package/dist/runtime/server/routes/admin/schedule.delete.js +10 -0
- package/dist/runtime/server/routes/admin/schedule.get.d.ts +2 -0
- package/dist/runtime/server/routes/admin/schedule.get.js +9 -0
- package/dist/runtime/server/routes/admin/schedule.patch.d.ts +2 -0
- package/dist/runtime/server/routes/admin/schedule.patch.js +10 -0
- package/dist/runtime/server/routes/admin/schedules.get.d.ts +2 -0
- package/dist/runtime/server/routes/admin/schedules.get.js +10 -0
- package/dist/runtime/server/routes/admin/schedules.post.d.ts +2 -0
- package/dist/runtime/server/routes/admin/schedules.post.js +9 -0
- package/dist/runtime/server/routes/admin/shift.delete.d.ts +2 -0
- package/dist/runtime/server/routes/admin/shift.delete.js +10 -0
- package/dist/runtime/server/routes/admin/shift.patch.d.ts +2 -0
- package/dist/runtime/server/routes/admin/shift.patch.js +10 -0
- package/dist/runtime/server/routes/admin/shifts-bulk.post.d.ts +2 -0
- package/dist/runtime/server/routes/admin/shifts-bulk.post.js +10 -0
- package/dist/runtime/server/routes/admin/shifts.get.d.ts +2 -0
- package/dist/runtime/server/routes/admin/shifts.get.js +10 -0
- package/dist/runtime/server/routes/admin/station.delete.d.ts +2 -0
- package/dist/runtime/server/routes/admin/station.delete.js +11 -0
- package/dist/runtime/server/routes/admin/station.patch.d.ts +2 -0
- package/dist/runtime/server/routes/admin/station.patch.js +11 -0
- package/dist/runtime/server/routes/admin/stations.get.d.ts +2 -0
- package/dist/runtime/server/routes/admin/stations.get.js +9 -0
- package/dist/runtime/server/routes/admin/stations.post.d.ts +2 -0
- package/dist/runtime/server/routes/admin/stations.post.js +10 -0
- package/dist/runtime/server/routes/admin/swap-cancel.post.d.ts +2 -0
- package/dist/runtime/server/routes/admin/swap-cancel.post.js +10 -0
- package/dist/runtime/server/routes/admin/swaps.get.d.ts +2 -0
- package/dist/runtime/server/routes/admin/swaps.get.js +10 -0
- package/dist/runtime/server/routes/feed/feed.get.d.ts +2 -0
- package/dist/runtime/server/routes/feed/feed.get.js +9 -0
- package/dist/runtime/server/routes/lead/attended.post.d.ts +2 -0
- package/dist/runtime/server/routes/lead/attended.post.js +11 -0
- package/dist/runtime/server/routes/lead/broadcast.post.d.ts +2 -0
- package/dist/runtime/server/routes/lead/broadcast.post.js +12 -0
- package/dist/runtime/server/routes/lead/check-in.post.d.ts +2 -0
- package/dist/runtime/server/routes/lead/check-in.post.js +9 -0
- package/dist/runtime/server/routes/lead/exceptions.get.d.ts +2 -0
- package/dist/runtime/server/routes/lead/exceptions.get.js +8 -0
- package/dist/runtime/server/routes/lead/no-show.post.d.ts +2 -0
- package/dist/runtime/server/routes/lead/no-show.post.js +11 -0
- package/dist/runtime/server/routes/lead/now.get.d.ts +2 -0
- package/dist/runtime/server/routes/lead/now.get.js +9 -0
- package/dist/runtime/server/routes/lead/on-duty.get.d.ts +2 -0
- package/dist/runtime/server/routes/lead/on-duty.get.js +10 -0
- package/dist/runtime/server/routes/lead/stations.get.d.ts +2 -0
- package/dist/runtime/server/routes/lead/stations.get.js +8 -0
- package/dist/runtime/server/routes/lead/team-shifts.get.d.ts +2 -0
- package/dist/runtime/server/routes/lead/team-shifts.get.js +9 -0
- package/dist/runtime/server/routes/lead/team-swaps.get.d.ts +2 -0
- package/dist/runtime/server/routes/lead/team-swaps.get.js +9 -0
- package/dist/runtime/server/routes/me/check-in.post.d.ts +2 -0
- package/dist/runtime/server/routes/me/check-in.post.js +11 -0
- package/dist/runtime/server/routes/me/earned-perk-claim.post.d.ts +2 -0
- package/dist/runtime/server/routes/me/earned-perk-claim.post.js +10 -0
- package/dist/runtime/server/routes/me/earned-perks.get.d.ts +2 -0
- package/dist/runtime/server/routes/me/earned-perks.get.js +9 -0
- package/dist/runtime/server/routes/me/feed-token.delete.d.ts +2 -0
- package/dist/runtime/server/routes/me/feed-token.delete.js +7 -0
- package/dist/runtime/server/routes/me/feed-token.get.d.ts +2 -0
- package/dist/runtime/server/routes/me/feed-token.get.js +6 -0
- package/dist/runtime/server/routes/me/feed-token.post.d.ts +2 -0
- package/dist/runtime/server/routes/me/feed-token.post.js +7 -0
- package/dist/runtime/server/routes/me/leads.get.d.ts +2 -0
- package/dist/runtime/server/routes/me/leads.get.js +5 -0
- package/dist/runtime/server/routes/me/now.get.d.ts +2 -0
- package/dist/runtime/server/routes/me/now.get.js +5 -0
- package/dist/runtime/server/routes/me/pass.get.d.ts +2 -0
- package/dist/runtime/server/routes/me/pass.get.js +11 -0
- package/dist/runtime/server/routes/me/settle.post.d.ts +2 -0
- package/dist/runtime/server/routes/me/settle.post.js +14 -0
- package/dist/runtime/server/routes/me/shift.get.d.ts +2 -0
- package/dist/runtime/server/routes/me/shift.get.js +10 -0
- package/dist/runtime/server/routes/me/shifts.get.d.ts +2 -0
- package/dist/runtime/server/routes/me/shifts.get.js +6 -0
- package/dist/runtime/server/routes/me/swap.delete.d.ts +2 -0
- package/dist/runtime/server/routes/me/swap.delete.js +11 -0
- package/dist/runtime/server/routes/me/swap.post.d.ts +2 -0
- package/dist/runtime/server/routes/me/swap.post.js +11 -0
- package/dist/runtime/server/routes/stations/token.get.d.ts +2 -0
- package/dist/runtime/server/routes/stations/token.get.js +12 -0
- package/dist/runtime/server/routes/swaps/approve.post.d.ts +2 -0
- package/dist/runtime/server/routes/swaps/approve.post.js +9 -0
- package/dist/runtime/server/routes/swaps/list.get.d.ts +2 -0
- package/dist/runtime/server/routes/swaps/list.get.js +5 -0
- package/dist/runtime/server/routes/swaps/offer-accept.post.d.ts +2 -0
- package/dist/runtime/server/routes/swaps/offer-accept.post.js +9 -0
- package/dist/runtime/server/routes/swaps/offer-reject.post.d.ts +2 -0
- package/dist/runtime/server/routes/swaps/offer-reject.post.js +9 -0
- package/dist/runtime/server/routes/swaps/offer.delete.d.ts +2 -0
- package/dist/runtime/server/routes/swaps/offer.delete.js +11 -0
- package/dist/runtime/server/routes/swaps/offer.post.d.ts +2 -0
- package/dist/runtime/server/routes/swaps/offer.post.js +11 -0
- package/dist/runtime/server/routes/swaps/reject.post.d.ts +2 -0
- package/dist/runtime/server/routes/swaps/reject.post.js +9 -0
- package/dist/runtime/server/swap-email.d.ts +28 -0
- package/dist/runtime/server/swap-email.js +49 -0
- package/dist/runtime/server/tasks/close-shifts.d.ts +2 -0
- package/dist/runtime/server/tasks/close-shifts.js +9 -0
- package/dist/runtime/server/tasks/send-reminders.d.ts +2 -0
- package/dist/runtime/server/tasks/send-reminders.js +9 -0
- package/dist/runtime/server/utils/shifts-admin.d.ts +67 -0
- package/dist/runtime/server/utils/shifts-admin.js +312 -0
- package/dist/runtime/server/utils/shifts-assign.d.ts +89 -0
- package/dist/runtime/server/utils/shifts-assign.js +264 -0
- package/dist/runtime/server/utils/shifts-automation.d.ts +37 -0
- package/dist/runtime/server/utils/shifts-automation.js +171 -0
- package/dist/runtime/server/utils/shifts-broadcasts.d.ts +38 -0
- package/dist/runtime/server/utils/shifts-broadcasts.js +113 -0
- package/dist/runtime/server/utils/shifts-core.d.ts +78 -0
- package/dist/runtime/server/utils/shifts-core.js +142 -0
- package/dist/runtime/server/utils/shifts-dto.d.ts +32 -0
- package/dist/runtime/server/utils/shifts-dto.js +127 -0
- package/dist/runtime/server/utils/shifts-emails.d.ts +16 -0
- package/dist/runtime/server/utils/shifts-emails.js +44 -0
- package/dist/runtime/server/utils/shifts-exceptions.d.ts +7 -0
- package/dist/runtime/server/utils/shifts-exceptions.js +32 -0
- package/dist/runtime/server/utils/shifts-feed.d.ts +16 -0
- package/dist/runtime/server/utils/shifts-feed.js +73 -0
- package/dist/runtime/server/utils/shifts-notify.d.ts +40 -0
- package/dist/runtime/server/utils/shifts-notify.js +22 -0
- package/dist/runtime/server/utils/shifts-on-duty.d.ts +12 -0
- package/dist/runtime/server/utils/shifts-on-duty.js +37 -0
- package/dist/runtime/server/utils/shifts-perks.d.ts +46 -0
- package/dist/runtime/server/utils/shifts-perks.js +183 -0
- package/dist/runtime/server/utils/shifts-reminders.d.ts +30 -0
- package/dist/runtime/server/utils/shifts-reminders.js +102 -0
- package/dist/runtime/server/utils/shifts-schemas.d.ts +318 -0
- package/dist/runtime/server/utils/shifts-schemas.js +177 -0
- package/dist/runtime/server/utils/shifts-station-key.d.ts +7 -0
- package/dist/runtime/server/utils/shifts-station-key.js +22 -0
- package/dist/runtime/server/utils/shifts-stations.d.ts +28 -0
- package/dist/runtime/server/utils/shifts-stations.js +109 -0
- package/dist/runtime/server/utils/shifts-swaps.d.ts +114 -0
- package/dist/runtime/server/utils/shifts-swaps.js +559 -0
- package/dist/runtime/server/utils/shifts-views.d.ts +62 -0
- package/dist/runtime/server/utils/shifts-views.js +212 -0
- package/dist/runtime/utils/api.d.ts +108 -0
- package/dist/runtime/utils/api.js +111 -0
- package/dist/runtime/utils/checkin.d.ts +59 -0
- package/dist/runtime/utils/checkin.js +57 -0
- package/dist/runtime/utils/guards.d.ts +21 -0
- package/dist/runtime/utils/guards.js +36 -0
- package/dist/runtime/utils/ics.d.ts +32 -0
- package/dist/runtime/utils/ics.js +56 -0
- package/dist/runtime/utils/index.d.ts +16 -0
- package/dist/runtime/utils/index.js +15 -0
- package/dist/runtime/utils/links.d.ts +44 -0
- package/dist/runtime/utils/links.js +21 -0
- package/dist/runtime/utils/reminders.d.ts +27 -0
- package/dist/runtime/utils/reminders.js +28 -0
- package/dist/runtime/utils/settings.d.ts +28 -0
- package/dist/runtime/utils/settings.js +18 -0
- package/dist/runtime/utils/station-key.d.ts +9 -0
- package/dist/runtime/utils/station-key.js +12 -0
- package/dist/runtime/utils/status.d.ts +23 -0
- package/dist/runtime/utils/status.js +46 -0
- package/dist/runtime/utils/time.d.ts +22 -0
- package/dist/runtime/utils/time.js +14 -0
- package/dist/types.d.mts +5 -0
- package/package.json +131 -3
|
@@ -0,0 +1,716 @@
|
|
|
1
|
+
import * as _nuxt_schema from '@nuxt/schema';
|
|
2
|
+
import { H3Event } from 'h3';
|
|
3
|
+
import { Translated } from '@frigear-nu/ui/translated';
|
|
4
|
+
export { Translated } from '@frigear-nu/ui/translated';
|
|
5
|
+
import { MapLocation } from '@frigear-nu/maps/utils';
|
|
6
|
+
|
|
7
|
+
/** `draft`: staff only. `published`: volunteers see their shifts and can swap them. */
|
|
8
|
+
type ShiftScheduleStatus = 'draft' | 'published';
|
|
9
|
+
/**
|
|
10
|
+
* Whether volunteers must work every shift they hold. `all`: nothing a volunteer does may lower how many shifts they hold
|
|
11
|
+
* (only `trade` handovers). `flexible`: volunteers may give shifts away and take others over.
|
|
12
|
+
*/
|
|
13
|
+
type ShiftCoverage = 'all' | 'flexible';
|
|
14
|
+
/** How shifts change hands between volunteers: `trade` (shift for shift), `release` (give away, or take over) or `both`. */
|
|
15
|
+
type ShiftHandover = 'trade' | 'release' | 'both';
|
|
16
|
+
/** Who completes a swap the owner accepted: `peer` (the two volunteers' agreement is enough) or `lead` (a lead of the team or staff approves). */
|
|
17
|
+
type ShiftApproval = 'peer' | 'lead';
|
|
18
|
+
/** How a schedule's shifts change hands. With `coverage: 'all'` only `handover: 'trade'` is valid. */
|
|
19
|
+
type ShiftScheduleSettings = {
|
|
20
|
+
coverage: ShiftCoverage;
|
|
21
|
+
handover: ShiftHandover;
|
|
22
|
+
approval: ShiftApproval;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* The kind of a swap. `trade`: shift for shift; every offer gives one of the offerer's shifts back and both change hands
|
|
26
|
+
* together, so each person's count stays the same. `release`: the owner gives the shift away and the offerer takes it over
|
|
27
|
+
* without giving one back.
|
|
28
|
+
*/
|
|
29
|
+
type ShiftSwapKind = 'trade' | 'release';
|
|
30
|
+
/** Where a person stands on a shift. Only `assigned` and `attended` count towards the capacity and the guards. */
|
|
31
|
+
type ShiftAssignmentStatus = 'assigned' | 'attended' | 'no_show' | 'cancelled';
|
|
32
|
+
/**
|
|
33
|
+
* A swap: `open` (no offers yet), `offered` (offers wait for the owner), `accepted` (an offer is being carried out),
|
|
34
|
+
* `pending_approval` (accepted, waiting for a lead or staff), `completed`, `cancelled` (withdrawn by the owner, or the
|
|
35
|
+
* assignment was cancelled). `rejected` is reserved: an approver's rejection puts the swap back to `open`.
|
|
36
|
+
*/
|
|
37
|
+
type ShiftSwapStatus = 'open' | 'offered' | 'accepted' | 'pending_approval' | 'completed' | 'rejected' | 'cancelled';
|
|
38
|
+
/** An offer: `offered` (waiting), `accepted`, `rejected` (by the owner or an approver), `withdrawn` (by the offerer), `superseded` (another offer won or the swap ended). */
|
|
39
|
+
type ShiftSwapOfferStatus = 'offered' | 'accepted' | 'rejected' | 'withdrawn' | 'superseded';
|
|
40
|
+
/** Limits that keep people rested. Staff assignment shows a warning; a volunteer swap that breaks one is refused. */
|
|
41
|
+
type ShiftGuards = {
|
|
42
|
+
/** The most shifts a person works on one day (in the module's time zone). */
|
|
43
|
+
maxShiftsPerDay?: number | null;
|
|
44
|
+
/** The fewest hours between the end of one shift and the start of the next. */
|
|
45
|
+
minRestHours?: number | null;
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* Where a shift takes place: a name, and optionally a feature of the operation's venue layout (`featureId`, the stable
|
|
49
|
+
* id of a feature drawn with the plane editor of `@frigear-nu/maps`). The on-duty layer draws the shift there.
|
|
50
|
+
*/
|
|
51
|
+
type ShiftLocation = {
|
|
52
|
+
name?: Translated;
|
|
53
|
+
featureId?: string;
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* How a person checks in on a shift. `station`: they scan the rotating QR code of a station of their team. `location`:
|
|
57
|
+
* the app sends their position, which must be inside the check-in place. `daily`: their first check-in of the day also
|
|
58
|
+
* checks them in on their other shifts that day whose check-in is already open. `lead`: a lead scans their pass (always
|
|
59
|
+
* on, whatever the settings say).
|
|
60
|
+
*/
|
|
61
|
+
type ShiftCheckInMode = 'station' | 'location' | 'daily' | 'lead';
|
|
62
|
+
/** How an assignment was checked in (`checkInMethod`): `daily` is a shift checked in by the first check-in of the day. */
|
|
63
|
+
type ShiftCheckInMethod = 'lead' | 'station' | 'location' | 'daily';
|
|
64
|
+
/** The check-in modes and place of a team, overriding the schedule's (a key left out keeps the schedule's). */
|
|
65
|
+
type ShiftCheckInTeamSettings = {
|
|
66
|
+
modes?: ShiftCheckInMode[];
|
|
67
|
+
location?: MapLocation | null;
|
|
68
|
+
};
|
|
69
|
+
/**
|
|
70
|
+
* How people check in on a schedule's shifts: the modes (any one passing is enough), the place `location` mode checks
|
|
71
|
+
* against (a point and radius, default radius 150 m, or an area, from the maps location picker), and overrides per team
|
|
72
|
+
* (`teams`, keyed by team id).
|
|
73
|
+
*/
|
|
74
|
+
type ShiftCheckInSettings = {
|
|
75
|
+
modes: ShiftCheckInMode[];
|
|
76
|
+
location?: MapLocation | null;
|
|
77
|
+
teams?: Record<string, ShiftCheckInTeamSettings>;
|
|
78
|
+
};
|
|
79
|
+
/** What applies to one team's shifts: the schedule's settings merged with the team's override. */
|
|
80
|
+
type ShiftCheckInRule = {
|
|
81
|
+
modes: ShiftCheckInMode[];
|
|
82
|
+
location: MapLocation | null;
|
|
83
|
+
};
|
|
84
|
+
type ModuleOptions = {
|
|
85
|
+
settings?: {
|
|
86
|
+
pages?: {
|
|
87
|
+
/**
|
|
88
|
+
* My shifts (list and calendar): the My shifts tab of the crew home (`crew.dashboard` of `@frigear-nu/crew`), and a
|
|
89
|
+
* page at `/shifts`. When the crew home is in the signed-in hub (`/dashboard/crew`) only the tab is there and
|
|
90
|
+
* `/shifts` redirects to it, unless this is a path (a page there too) or `@frigear-nu/mobile` is installed (its
|
|
91
|
+
* Shifts tab opens the page). `false` turns both off.
|
|
92
|
+
*/
|
|
93
|
+
shifts?: string | boolean;
|
|
94
|
+
/** One of my shifts: the lead on duty, the QR pass and the swap; must contain an `:assignmentId` param. On by default (`/shifts/:assignmentId`). */
|
|
95
|
+
shift?: string | boolean;
|
|
96
|
+
/** The swap marketplace: the Swaps tab of the crew home, and a page at `/shifts/swaps` on the same terms as `shifts`. */
|
|
97
|
+
swaps?: string | boolean;
|
|
98
|
+
/** The check-in scanner of a team's leads; must contain a `:teamId` param. On by default (`/shifts/check-in/:teamId`). */
|
|
99
|
+
checkIn?: string | boolean;
|
|
100
|
+
/** A team lead's page: the team's shifts, attendance and the swaps waiting for approval; must contain a `:teamId` param. On by default (`/shifts/lead/:teamId`). */
|
|
101
|
+
lead?: string | boolean;
|
|
102
|
+
/** The full-screen rotating QR code of a check-in station; must contain a `:stationId` param. On by default (`/shifts/station/:stationId`). */
|
|
103
|
+
station?: string | boolean;
|
|
104
|
+
};
|
|
105
|
+
/** Add a "Shifts" tab to the `admin.operations` tab area (with `@frigear-nu/widget` and `@frigear-nu/admin`). Defaults to `true`. */
|
|
106
|
+
operationsTab?: boolean;
|
|
107
|
+
};
|
|
108
|
+
/**
|
|
109
|
+
* The time zone shift times are entered in: bulk creation turns `days` and `HH:mm` slots into instants in it, and the
|
|
110
|
+
* guards count days in it. Only set it when shifts differ from the app: it defaults to the app's time zone
|
|
111
|
+
* (`appConfig.frigearUi.timeZone`), and to `UTC` when the app sets none.
|
|
112
|
+
*/
|
|
113
|
+
timeZone?: string;
|
|
114
|
+
/** How many minutes before a shift starts its QR pass shows and check-in opens. Defaults to `60`. */
|
|
115
|
+
checkInOpensMinutes?: number;
|
|
116
|
+
/** Reminders before a shift starts (a Nitro task, `shifts:send-reminders`). */
|
|
117
|
+
reminders?: ShiftsRemindersOptions;
|
|
118
|
+
/** The end of shifts (earned perks), auto no-shows and the leads' digest (a Nitro task, `shifts:close-shifts`). */
|
|
119
|
+
automation?: ShiftsAutomationOptions;
|
|
120
|
+
};
|
|
121
|
+
type ShiftsAutomationOptions = {
|
|
122
|
+
/**
|
|
123
|
+
* The cron expression the `shifts:close-shifts` task runs on. Defaults to every five minutes; `false` registers the
|
|
124
|
+
* task without a schedule (run it yourself). On Cloudflare the module adds it to the worker's cron triggers.
|
|
125
|
+
*/
|
|
126
|
+
cron?: string | false;
|
|
127
|
+
/** The most rows of each kind (ended shifts, no-shows, digest items) one run handles; the next run takes the rest. Defaults to `200`, at most `1000`. */
|
|
128
|
+
batchSize?: number;
|
|
129
|
+
};
|
|
130
|
+
type ShiftsRemindersOptions = {
|
|
131
|
+
/**
|
|
132
|
+
* The cron expression the task runs on. Defaults to every ten minutes; `false` registers the task
|
|
133
|
+
* without a schedule (run it yourself). On Cloudflare the module adds it to the worker's cron triggers.
|
|
134
|
+
*/
|
|
135
|
+
cron?: string | false;
|
|
136
|
+
/** Minutes before a shift starts that a reminder goes out. Defaults to `[1440, 120]` (a day and two hours before). */
|
|
137
|
+
offsets?: number[];
|
|
138
|
+
/** Also send an SMS to people with a phone number. Defaults to `false`: SMS costs money. */
|
|
139
|
+
sms?: boolean;
|
|
140
|
+
/**
|
|
141
|
+
* The most due assignments one run handles, soonest shift first; the next run takes the rest (claims are idempotent).
|
|
142
|
+
* Keeps a run inside a Workers invocation's budget. Defaults to `100`, at most `1000`.
|
|
143
|
+
*/
|
|
144
|
+
batchSize?: number;
|
|
145
|
+
};
|
|
146
|
+
type PublicModuleOptions = {
|
|
147
|
+
/** `home`: the crew home of `@frigear-nu/crew`, where the My shifts and Swaps tabs are. */
|
|
148
|
+
pages: {
|
|
149
|
+
shifts?: string;
|
|
150
|
+
shift?: string;
|
|
151
|
+
swaps?: string;
|
|
152
|
+
checkIn?: string;
|
|
153
|
+
lead?: string;
|
|
154
|
+
station?: string;
|
|
155
|
+
home?: string;
|
|
156
|
+
};
|
|
157
|
+
timeZone: string;
|
|
158
|
+
checkInOpensMinutes: number;
|
|
159
|
+
};
|
|
160
|
+
/** The private runtime config of shifts (`runtimeConfig.shifts`). */
|
|
161
|
+
type ShiftsRuntimeConfig = {
|
|
162
|
+
timeZone: string;
|
|
163
|
+
checkInOpensMinutes: number;
|
|
164
|
+
/** The reminder offsets in minutes (largest first) and whether reminders also go out by SMS. */
|
|
165
|
+
reminders: {
|
|
166
|
+
offsets: number[];
|
|
167
|
+
sms: boolean;
|
|
168
|
+
batchSize: number;
|
|
169
|
+
};
|
|
170
|
+
/** The rows of each kind one run of `shifts:close-shifts` handles. */
|
|
171
|
+
automation: {
|
|
172
|
+
batchSize: number;
|
|
173
|
+
};
|
|
174
|
+
};
|
|
175
|
+
/** A person as a shifts response shows them. `email` and `phone` only with `shifts:pii`. */
|
|
176
|
+
type ShiftPersonDto = {
|
|
177
|
+
userId: number;
|
|
178
|
+
name: string | null;
|
|
179
|
+
avatar: string | null;
|
|
180
|
+
email?: string | null;
|
|
181
|
+
phone?: string | null;
|
|
182
|
+
};
|
|
183
|
+
type ShiftScheduleDto = {
|
|
184
|
+
id: string;
|
|
185
|
+
operationId: string;
|
|
186
|
+
name: Translated;
|
|
187
|
+
status: ShiftScheduleStatus;
|
|
188
|
+
coverage: ShiftCoverage;
|
|
189
|
+
handover: ShiftHandover;
|
|
190
|
+
approval: ShiftApproval;
|
|
191
|
+
minPerShift: number | null;
|
|
192
|
+
maxPerShift: number | null;
|
|
193
|
+
guards: ShiftGuards;
|
|
194
|
+
/** How people check in (`modes` is `['lead']` when nothing was set). */
|
|
195
|
+
checkIn: ShiftCheckInSettings;
|
|
196
|
+
/** Whether assignments still `assigned` without a check-in become `no_show` `autoNoShowMinutes` after the start. Off by default. */
|
|
197
|
+
autoNoShow: boolean;
|
|
198
|
+
autoNoShowMinutes: number;
|
|
199
|
+
/**
|
|
200
|
+
* Whether the server has a station key (`NUXT_SHIFTS_STATION_KEY`). Without one, `station` check-in and station
|
|
201
|
+
* screens answer 501 `not_configured`, whatever `checkIn.modes` says. A fact of the deployment, the same on every schedule.
|
|
202
|
+
*/
|
|
203
|
+
stationKeyConfigured: boolean;
|
|
204
|
+
publishedAt: string | null;
|
|
205
|
+
createdAt: string;
|
|
206
|
+
updatedAt: string;
|
|
207
|
+
/** In lists: how many shifts the schedule has. */
|
|
208
|
+
shiftCount?: number;
|
|
209
|
+
};
|
|
210
|
+
type ShiftRoleDto = {
|
|
211
|
+
id: string;
|
|
212
|
+
scheduleId: string;
|
|
213
|
+
teamId: string;
|
|
214
|
+
teamRole: string | null;
|
|
215
|
+
name: Translated;
|
|
216
|
+
createdAt: string;
|
|
217
|
+
};
|
|
218
|
+
type ShiftDto = {
|
|
219
|
+
id: string;
|
|
220
|
+
scheduleId: string;
|
|
221
|
+
operationId: string;
|
|
222
|
+
teamId: string;
|
|
223
|
+
shiftRoleId: string | null;
|
|
224
|
+
startsAt: string;
|
|
225
|
+
endsAt: string;
|
|
226
|
+
location: ShiftLocation | null;
|
|
227
|
+
/** As stored: `null` falls back to the schedule's `maxPerShift`. */
|
|
228
|
+
capacity: number | null;
|
|
229
|
+
/** The capacity that applies (`capacity`, else the schedule's `maxPerShift`); `null` is unlimited. */
|
|
230
|
+
effectiveCapacity: number | null;
|
|
231
|
+
notes: Translated | null;
|
|
232
|
+
createdAt: string;
|
|
233
|
+
updatedAt: string;
|
|
234
|
+
};
|
|
235
|
+
type ShiftAssignmentDto = {
|
|
236
|
+
id: string;
|
|
237
|
+
shiftId: string;
|
|
238
|
+
userId: number;
|
|
239
|
+
shiftRoleId: string | null;
|
|
240
|
+
status: ShiftAssignmentStatus;
|
|
241
|
+
checkedInAt: string | null;
|
|
242
|
+
/** The lead who checked the person in, the person themselves (a station or location check-in), or `null`. */
|
|
243
|
+
checkedInBy: number | null;
|
|
244
|
+
checkInMethod: ShiftCheckInMethod | null;
|
|
245
|
+
assignedBy: number | null;
|
|
246
|
+
createdAt: string;
|
|
247
|
+
updatedAt: string;
|
|
248
|
+
};
|
|
249
|
+
/** An assignment with its person, in staff and lead views. */
|
|
250
|
+
type ShiftAssigneeDto = ShiftAssignmentDto & {
|
|
251
|
+
person: ShiftPersonDto;
|
|
252
|
+
};
|
|
253
|
+
/** A shift with its assignments, in staff and lead views. */
|
|
254
|
+
type ShiftWithAssigneesDto = ShiftDto & {
|
|
255
|
+
teamName: Translated;
|
|
256
|
+
assignees: ShiftAssigneeDto[];
|
|
257
|
+
/** People on it now: `assigned` and `attended`. */
|
|
258
|
+
filled: number;
|
|
259
|
+
};
|
|
260
|
+
/** A guard a new assignment (or a swap) would break, or the capacity. A swap answers 409 with the matching `ShiftSwapGuardCode`. */
|
|
261
|
+
type ShiftWarning = {
|
|
262
|
+
code: 'shift_full' | 'below_min' | 'max_shifts_per_day' | 'min_rest' | 'overlap';
|
|
263
|
+
message: string;
|
|
264
|
+
/** The other shift involved (`min_rest`, `overlap`). */
|
|
265
|
+
shiftId?: string;
|
|
266
|
+
};
|
|
267
|
+
/**
|
|
268
|
+
* The 409 codes of a swap one of the two people cannot take part in: two shifts at once, too little rest, too many shifts
|
|
269
|
+
* on one day, not eligible for the shift (team or role), or a shift over its capacity.
|
|
270
|
+
*/
|
|
271
|
+
type ShiftSwapGuardCode = 'guard_overlap' | 'guard_rest' | 'guard_max_per_day' | 'guard_ineligible' | 'guard_capacity';
|
|
272
|
+
/** The answer of assigning someone: the assignment and the guards it breaks (staff decide; only a full shift blocks). */
|
|
273
|
+
type ShiftAssignResultDto = {
|
|
274
|
+
assignment: ShiftAssigneeDto;
|
|
275
|
+
warnings: ShiftWarning[];
|
|
276
|
+
};
|
|
277
|
+
/** A person staff could assign to a shift (`GET /api/admin/shifts/:shiftId/candidates`). */
|
|
278
|
+
type ShiftCandidateDto = ShiftPersonDto & {
|
|
279
|
+
role: string;
|
|
280
|
+
eligible: boolean;
|
|
281
|
+
/** Why not eligible: `role` (below the shift role's team role) or `assigned` (on the shift already). */
|
|
282
|
+
reason: 'role' | 'assigned' | null;
|
|
283
|
+
warnings: ShiftWarning[];
|
|
284
|
+
};
|
|
285
|
+
/** A swap as people see it. */
|
|
286
|
+
type ShiftSwapDto = {
|
|
287
|
+
id: string;
|
|
288
|
+
assignmentId: string;
|
|
289
|
+
kind: ShiftSwapKind;
|
|
290
|
+
status: ShiftSwapStatus;
|
|
291
|
+
openedAt: string;
|
|
292
|
+
decidedAt: string | null;
|
|
293
|
+
/** The shift on offer. */
|
|
294
|
+
shift: ShiftDto & {
|
|
295
|
+
teamName: Translated;
|
|
296
|
+
scheduleName: Translated;
|
|
297
|
+
};
|
|
298
|
+
/** The person giving it away (name only). */
|
|
299
|
+
owner: ShiftPersonDto;
|
|
300
|
+
/** A trade aimed at one assignment: only its holder may offer, and only that shift. `null` is open to anybody. */
|
|
301
|
+
wantedAssignmentId: string | null;
|
|
302
|
+
/** The shift the owner wants in return, for a targeted trade. */
|
|
303
|
+
wantedShift: (ShiftDto & {
|
|
304
|
+
teamName: Translated;
|
|
305
|
+
}) | null;
|
|
306
|
+
/** The schedule's settings now (they may have changed since the swap was opened). */
|
|
307
|
+
settings: ShiftScheduleSettings;
|
|
308
|
+
/** In the owner's and staff's views: the offers. */
|
|
309
|
+
offers?: ShiftSwapOfferDto[];
|
|
310
|
+
/** In the marketplace: the caller's own live offer, if any. */
|
|
311
|
+
myOffer?: ShiftSwapOfferDto | null;
|
|
312
|
+
};
|
|
313
|
+
type ShiftSwapOfferDto = {
|
|
314
|
+
id: string;
|
|
315
|
+
swapId: string;
|
|
316
|
+
userId: number;
|
|
317
|
+
person?: ShiftPersonDto;
|
|
318
|
+
offeredAssignmentId: string | null;
|
|
319
|
+
/** The shift given back in return, when there is one. */
|
|
320
|
+
offeredShift?: (ShiftDto & {
|
|
321
|
+
teamName: Translated;
|
|
322
|
+
}) | null;
|
|
323
|
+
status: ShiftSwapOfferStatus;
|
|
324
|
+
decidedAt: string | null;
|
|
325
|
+
approvedBy: number | null;
|
|
326
|
+
createdAt: string;
|
|
327
|
+
};
|
|
328
|
+
/** One of my shifts (`GET /api/shifts/me`). */
|
|
329
|
+
type MyShiftDto = {
|
|
330
|
+
assignment: ShiftAssignmentDto;
|
|
331
|
+
shift: ShiftDto;
|
|
332
|
+
operationId: string;
|
|
333
|
+
operationName: Translated;
|
|
334
|
+
scheduleName: Translated;
|
|
335
|
+
teamName: Translated;
|
|
336
|
+
roleName: Translated | null;
|
|
337
|
+
/** My live swap of it, if any. */
|
|
338
|
+
swap: Pick<ShiftSwapDto, 'id' | 'status' | 'kind'> | null;
|
|
339
|
+
/** How the schedule lets this shift change hands. */
|
|
340
|
+
settings: ShiftScheduleSettings;
|
|
341
|
+
};
|
|
342
|
+
/** One of my shifts with what the detail page shows (`GET /api/shifts/me/:assignmentId`). */
|
|
343
|
+
type MyShiftDetailDto = MyShiftDto & {
|
|
344
|
+
/** The leads of the team on shift at the same time (names only). */
|
|
345
|
+
leadsOnDuty: ShiftPersonDto[];
|
|
346
|
+
/** My live swap with its offers. */
|
|
347
|
+
swapDetail: ShiftSwapDto | null;
|
|
348
|
+
/** When the QR pass shows: from `startsAt` minus `checkInOpensMinutes` to `endsAt`. */
|
|
349
|
+
passOpensAt: string;
|
|
350
|
+
passClosesAt: string;
|
|
351
|
+
};
|
|
352
|
+
/** The QR pass of an assignment (`GET /api/shifts/me/:assignmentId/pass`). `code` and `svg` only inside the window. */
|
|
353
|
+
type ShiftPassDto = {
|
|
354
|
+
assignmentId: string;
|
|
355
|
+
available: boolean;
|
|
356
|
+
opensAt: string;
|
|
357
|
+
closesAt: string;
|
|
358
|
+
code: string | null;
|
|
359
|
+
/** The QR code as an SVG document. */
|
|
360
|
+
svg: string | null;
|
|
361
|
+
/** The perks this shift earns: `upcoming` until it is earned, then `earned`, `claimed` or `revoked`. */
|
|
362
|
+
perks: ShiftPassPerkDto[];
|
|
363
|
+
/** How the person can check in on this shift themselves (`station`, `location`), besides showing the pass to a lead. */
|
|
364
|
+
checkIn: ShiftCheckInRule;
|
|
365
|
+
/**
|
|
366
|
+
* `false` when the window is open but the person no longer holds a role on the team: no code, no perks. The GET changes
|
|
367
|
+
* nothing; `POST /api/shifts/me/:assignmentId/settle` cancels their future shifts on the team.
|
|
368
|
+
*/
|
|
369
|
+
eligible: boolean;
|
|
370
|
+
};
|
|
371
|
+
/** The answer of a check-in (`POST /api/shifts/teams/:teamId/check-in`). */
|
|
372
|
+
type ShiftCheckInDto = {
|
|
373
|
+
ok: true;
|
|
374
|
+
alreadyCheckedIn: boolean;
|
|
375
|
+
checkedInAt: string;
|
|
376
|
+
assignment: ShiftAssigneeDto;
|
|
377
|
+
shift: ShiftDto;
|
|
378
|
+
/** The person's other shifts that day the `daily` mode checked in too (assignment ids). */
|
|
379
|
+
alsoCheckedIn: string[];
|
|
380
|
+
};
|
|
381
|
+
/**
|
|
382
|
+
* The body of a volunteer's own check-in (`POST /api/shifts/me/:assignmentId/check-in`): the token of a station's QR
|
|
383
|
+
* code, or the position and its accuracy (metres) from the device.
|
|
384
|
+
*/
|
|
385
|
+
type ShiftSelfCheckInInput = {
|
|
386
|
+
mode: 'station';
|
|
387
|
+
token: string;
|
|
388
|
+
} | {
|
|
389
|
+
mode: 'location';
|
|
390
|
+
latitude: number;
|
|
391
|
+
longitude: number;
|
|
392
|
+
accuracy: number;
|
|
393
|
+
};
|
|
394
|
+
/** The answer of a volunteer's own check-in. */
|
|
395
|
+
type ShiftSelfCheckInDto = {
|
|
396
|
+
ok: true;
|
|
397
|
+
alreadyCheckedIn: boolean;
|
|
398
|
+
checkedInAt: string;
|
|
399
|
+
method: ShiftCheckInMethod;
|
|
400
|
+
assignment: ShiftAssignmentDto;
|
|
401
|
+
alsoCheckedIn: string[];
|
|
402
|
+
};
|
|
403
|
+
/** A check-in station of a team on a schedule. */
|
|
404
|
+
type ShiftStationDto = {
|
|
405
|
+
id: string;
|
|
406
|
+
scheduleId: string;
|
|
407
|
+
teamId: string;
|
|
408
|
+
name: Translated;
|
|
409
|
+
featureId: string | null;
|
|
410
|
+
createdAt: string;
|
|
411
|
+
updatedAt: string;
|
|
412
|
+
};
|
|
413
|
+
/** The current QR code of a station (`GET /api/shifts/stations/:stationId/token`): valid for this window and the next. */
|
|
414
|
+
type ShiftStationTokenDto = {
|
|
415
|
+
station: ShiftStationDto & {
|
|
416
|
+
teamName: Translated;
|
|
417
|
+
};
|
|
418
|
+
token: string;
|
|
419
|
+
svg: string;
|
|
420
|
+
/** When the next window starts: fetch a new token then. */
|
|
421
|
+
refreshAt: string;
|
|
422
|
+
/** The rotation in seconds. */
|
|
423
|
+
rotateSeconds: number;
|
|
424
|
+
};
|
|
425
|
+
/**
|
|
426
|
+
* Something on a team's shifts a lead should look at: `no_show`, `late` (checked in after the start),
|
|
427
|
+
* `not_checked_in` (still `assigned` after the start) and `claimed_no_show` (a no-show whose earned perk was claimed
|
|
428
|
+
* before the flip).
|
|
429
|
+
*/
|
|
430
|
+
type ShiftExceptionKind = 'no_show' | 'late' | 'not_checked_in' | 'claimed_no_show';
|
|
431
|
+
type ShiftExceptionDto = {
|
|
432
|
+
kind: ShiftExceptionKind;
|
|
433
|
+
assignment: ShiftAssigneeDto;
|
|
434
|
+
shift: ShiftDto;
|
|
435
|
+
/** `late`: minutes after the start the person checked in. */
|
|
436
|
+
lateMinutes?: number;
|
|
437
|
+
};
|
|
438
|
+
/** Who is on shift now in an operation (`GET /api/shifts/operations/:operationId/now`). */
|
|
439
|
+
type ShiftsNowDto = {
|
|
440
|
+
operationId: string;
|
|
441
|
+
at: string;
|
|
442
|
+
teams: Array<{
|
|
443
|
+
teamId: string;
|
|
444
|
+
teamName: Translated;
|
|
445
|
+
/** The leads (lead role and up) on shift now. */
|
|
446
|
+
leads: ShiftPersonDto[];
|
|
447
|
+
shifts: Array<ShiftDto & {
|
|
448
|
+
assignees: ShiftAssigneeDto[];
|
|
449
|
+
}>;
|
|
450
|
+
}>;
|
|
451
|
+
};
|
|
452
|
+
/**
|
|
453
|
+
* The teams of mine that are on shift now (`GET /api/shifts/me/now`): for each operation I work at, the teams I hold a
|
|
454
|
+
* role on that have a shift running, with who is on it and the leads among them. Names only, never contact details.
|
|
455
|
+
*/
|
|
456
|
+
type ShiftsMyNowDto = {
|
|
457
|
+
at: string;
|
|
458
|
+
teams: Array<{
|
|
459
|
+
operationId: string;
|
|
460
|
+
operationName: Translated;
|
|
461
|
+
teamId: string;
|
|
462
|
+
teamName: Translated;
|
|
463
|
+
/** The leads (lead role and up) on shift now. */
|
|
464
|
+
leads: ShiftPersonDto[];
|
|
465
|
+
/** Everybody on shift now in this team, the leads included. */
|
|
466
|
+
people: ShiftPersonDto[];
|
|
467
|
+
}>;
|
|
468
|
+
};
|
|
469
|
+
/** The answer of copying a schedule's roles and shifts (`POST /api/admin/shifts/schedules/:scheduleId/copy-from`). */
|
|
470
|
+
type ShiftCopyResultDto = {
|
|
471
|
+
schedule: ShiftScheduleDto;
|
|
472
|
+
roles: number;
|
|
473
|
+
shifts: number;
|
|
474
|
+
/** Teams of the source with no team of the same name in this operation: their roles and shifts were not copied. */
|
|
475
|
+
skippedTeamIds: string[];
|
|
476
|
+
/** Roles of the source whose minimum team role is not on the target team kind's ladder: copied without one. */
|
|
477
|
+
changedRoleIds: string[];
|
|
478
|
+
};
|
|
479
|
+
/** A team the caller leads (`GET /api/shifts/me/leads`): where the lead page and the scanner apply. */
|
|
480
|
+
type ShiftsLedTeamDto = {
|
|
481
|
+
teamId: string;
|
|
482
|
+
teamName: Translated;
|
|
483
|
+
operationId: string;
|
|
484
|
+
operationName: Translated;
|
|
485
|
+
};
|
|
486
|
+
/** A team of an operation with its kind's ladder (`GET /api/admin/shifts/operations/:operationId/teams`). */
|
|
487
|
+
type ShiftsOperationTeamDto = {
|
|
488
|
+
id: string;
|
|
489
|
+
kind: string;
|
|
490
|
+
name: Translated;
|
|
491
|
+
ladder: {
|
|
492
|
+
roles: Array<{
|
|
493
|
+
key: string;
|
|
494
|
+
label: Translated;
|
|
495
|
+
}>;
|
|
496
|
+
leadFrom: string | null;
|
|
497
|
+
} | null;
|
|
498
|
+
};
|
|
499
|
+
/** Context of `shifts:schedule:published`. */
|
|
500
|
+
type ShiftScheduleContext = {
|
|
501
|
+
event: H3Event;
|
|
502
|
+
schedule: ShiftScheduleDto;
|
|
503
|
+
};
|
|
504
|
+
/** Context of `shifts:shift:created`. */
|
|
505
|
+
type ShiftCreatedContext = {
|
|
506
|
+
event: H3Event;
|
|
507
|
+
shift: ShiftDto;
|
|
508
|
+
};
|
|
509
|
+
/** Context of `shifts:shift:updated`. */
|
|
510
|
+
type ShiftUpdatedContext = {
|
|
511
|
+
event: H3Event;
|
|
512
|
+
shift: ShiftDto;
|
|
513
|
+
previous: ShiftDto;
|
|
514
|
+
};
|
|
515
|
+
/**
|
|
516
|
+
* Context of `shifts:assignment:changed`. `previous` is `null` for a new assignment. `auto: true` when the
|
|
517
|
+
* `shifts:close-shifts` task changed it (an auto no-show): `event` is `undefined` then.
|
|
518
|
+
*/
|
|
519
|
+
type ShiftAssignmentChangedContext = {
|
|
520
|
+
event: H3Event | undefined;
|
|
521
|
+
assignment: ShiftAssignmentDto;
|
|
522
|
+
previous: ShiftAssignmentDto | null;
|
|
523
|
+
auto?: boolean;
|
|
524
|
+
};
|
|
525
|
+
/** Context of `shifts:swap:offered`, `:accepted`, `:rejected` and `:completed`. `kind` is the swap's (`swap.kind`). */
|
|
526
|
+
type ShiftSwapContext = {
|
|
527
|
+
event: H3Event;
|
|
528
|
+
kind: ShiftSwapKind;
|
|
529
|
+
swap: ShiftSwapDto;
|
|
530
|
+
offer: ShiftSwapOfferDto;
|
|
531
|
+
};
|
|
532
|
+
/**
|
|
533
|
+
* Context of `shifts:attendance:marked`. `by` is the lead or staff user, the person themselves for a station or location
|
|
534
|
+
* check-in, or `null` for the system (`auto: true`, an auto no-show of the `shifts:close-shifts` task, with `event`
|
|
535
|
+
* `undefined`). `method` says how a check-in happened.
|
|
536
|
+
*/
|
|
537
|
+
type ShiftAttendanceContext = {
|
|
538
|
+
event: H3Event | undefined;
|
|
539
|
+
assignment: ShiftAssignmentDto;
|
|
540
|
+
by: number | null;
|
|
541
|
+
auto?: boolean;
|
|
542
|
+
method?: ShiftCheckInMethod;
|
|
543
|
+
};
|
|
544
|
+
/** Context of `shifts:reminder:sent`. A scheduled task has no request: `event` is `undefined` there. */
|
|
545
|
+
type ShiftReminderContext = {
|
|
546
|
+
event: H3Event | undefined;
|
|
547
|
+
assignment: ShiftAssignmentDto;
|
|
548
|
+
offset: number;
|
|
549
|
+
channels: ShiftChannel[];
|
|
550
|
+
};
|
|
551
|
+
/** Context of `shifts:broadcast:sent`. */
|
|
552
|
+
type ShiftBroadcastContext = {
|
|
553
|
+
event: H3Event;
|
|
554
|
+
broadcast: ShiftBroadcastDto;
|
|
555
|
+
};
|
|
556
|
+
/** Context of `shifts:perk:earned` and `shifts:perk:revoked`. Fired from the task too: `event` is `undefined` there. */
|
|
557
|
+
type ShiftEarnedPerkContext = {
|
|
558
|
+
event: H3Event | undefined;
|
|
559
|
+
earnedPerkId: string;
|
|
560
|
+
perkId: string;
|
|
561
|
+
assignmentId: string;
|
|
562
|
+
userId: number;
|
|
563
|
+
};
|
|
564
|
+
/** Context of `shifts:digest:sent`: one lead's digest of a run of `shifts:close-shifts` (no request: `event` is `undefined`). */
|
|
565
|
+
type ShiftDigestContext = {
|
|
566
|
+
event: undefined;
|
|
567
|
+
userId: number;
|
|
568
|
+
items: Array<{
|
|
569
|
+
kind: ShiftExceptionKind;
|
|
570
|
+
assignmentId: string;
|
|
571
|
+
teamId: string;
|
|
572
|
+
}>;
|
|
573
|
+
channels: ShiftChannel[];
|
|
574
|
+
};
|
|
575
|
+
/** How a reminder or broadcast reaches people. */
|
|
576
|
+
type ShiftChannel = 'email' | 'sms' | 'push';
|
|
577
|
+
/** The state of my calendar feed (`GET /api/shifts/me/feed-token`): the secret itself is never shown again. */
|
|
578
|
+
type ShiftFeedStatusDto = {
|
|
579
|
+
active: boolean;
|
|
580
|
+
prefix: string | null;
|
|
581
|
+
createdAt: string | null;
|
|
582
|
+
lastUsedAt: string | null;
|
|
583
|
+
};
|
|
584
|
+
/** A freshly minted calendar feed (`POST /api/shifts/me/feed-token`): shown once. */
|
|
585
|
+
type ShiftFeedTokenDto = {
|
|
586
|
+
token: string;
|
|
587
|
+
/** The https address of the feed (`.ics`). */
|
|
588
|
+
url: string;
|
|
589
|
+
/** The same address as `webcal://`, which calendar apps open as a subscription. */
|
|
590
|
+
webcalUrl: string;
|
|
591
|
+
};
|
|
592
|
+
/** Who a broadcast goes to: members of the operation's teams (`teamId` narrows to one, `teamRole` to a role and up), or the people on one shift. */
|
|
593
|
+
type ShiftBroadcastAudience = {
|
|
594
|
+
teamId?: string;
|
|
595
|
+
teamRole?: string;
|
|
596
|
+
shiftId?: string;
|
|
597
|
+
};
|
|
598
|
+
type ShiftBroadcastDto = {
|
|
599
|
+
id: string;
|
|
600
|
+
operationId: string;
|
|
601
|
+
teamId: string | null;
|
|
602
|
+
shiftId: string | null;
|
|
603
|
+
teamRole: string | null;
|
|
604
|
+
channels: ShiftChannel[];
|
|
605
|
+
subject: Translated;
|
|
606
|
+
message: Translated;
|
|
607
|
+
recipientCount: number;
|
|
608
|
+
sentBy: number;
|
|
609
|
+
createdAt: string;
|
|
610
|
+
};
|
|
611
|
+
/** The answer of sending a broadcast: what was stored and how many messages went out per channel (once delivered). */
|
|
612
|
+
type ShiftBroadcastResultDto = ShiftBroadcastDto & {
|
|
613
|
+
sent: {
|
|
614
|
+
email: number;
|
|
615
|
+
sms: number;
|
|
616
|
+
push: number;
|
|
617
|
+
};
|
|
618
|
+
/** `done`: delivered before the answer. `queued`: handed to the platform's `waitUntil`, so `sent` is not known yet (zeros). */
|
|
619
|
+
delivery: 'done' | 'queued';
|
|
620
|
+
};
|
|
621
|
+
/** A perk: every attended shift of a team it applies to earns `quantity` of `voucherType`. */
|
|
622
|
+
type ShiftPerkDto = {
|
|
623
|
+
id: string;
|
|
624
|
+
operationId: string;
|
|
625
|
+
teamId: string | null;
|
|
626
|
+
name: Translated;
|
|
627
|
+
/** Free text the vouchers app spends it as (`beer`, `meal`). */
|
|
628
|
+
voucherType: string;
|
|
629
|
+
quantity: number;
|
|
630
|
+
createdAt: string;
|
|
631
|
+
updatedAt: string;
|
|
632
|
+
/** In staff lists: how many times it was earned (revoked ones left out). */
|
|
633
|
+
earned?: number;
|
|
634
|
+
};
|
|
635
|
+
/** A perk on a pass. `upcoming`: the shift earns it once attended at its end; then `earned`, `claimed` or `revoked`. */
|
|
636
|
+
type ShiftPassPerkDto = {
|
|
637
|
+
perkId: string;
|
|
638
|
+
name: Translated;
|
|
639
|
+
voucherType: string;
|
|
640
|
+
quantity: number;
|
|
641
|
+
status: 'upcoming' | 'earned' | 'claimed' | 'revoked';
|
|
642
|
+
};
|
|
643
|
+
/**
|
|
644
|
+
* An earned perk as the vouchers app sees it (`GET /api/shifts/me/earned-perks`): the contract between this app and
|
|
645
|
+
* a vouchers app. `id` is the idempotency key on the vouchers side; `perkName` is in the caller's locale.
|
|
646
|
+
*/
|
|
647
|
+
type ShiftEarnedPerkDto = {
|
|
648
|
+
id: string;
|
|
649
|
+
voucherType: string;
|
|
650
|
+
quantity: number;
|
|
651
|
+
perkName: string;
|
|
652
|
+
earnedAt: string;
|
|
653
|
+
claimedAt: string | null;
|
|
654
|
+
shift: {
|
|
655
|
+
id: string;
|
|
656
|
+
startsAt: string;
|
|
657
|
+
endsAt: string;
|
|
658
|
+
teamName: string;
|
|
659
|
+
operationName: string;
|
|
660
|
+
};
|
|
661
|
+
};
|
|
662
|
+
/** The answer of `GET /api/shifts/me/earned-perks`: the caller's earned perks, oldest first (bounded, not paginated). */
|
|
663
|
+
type ShiftEarnedPerkListDto = {
|
|
664
|
+
items: ShiftEarnedPerkDto[];
|
|
665
|
+
};
|
|
666
|
+
|
|
667
|
+
declare module '@nuxt/schema' {
|
|
668
|
+
interface NuxtConfig {
|
|
669
|
+
shifts?: ModuleOptions;
|
|
670
|
+
}
|
|
671
|
+
interface PublicRuntimeConfig {
|
|
672
|
+
shifts: PublicModuleOptions;
|
|
673
|
+
}
|
|
674
|
+
}
|
|
675
|
+
declare module 'nitropack' {
|
|
676
|
+
interface NitroRuntimeHooks {
|
|
677
|
+
/** A draft schedule was published: volunteers see their shifts in it from now on. */
|
|
678
|
+
'shifts:schedule:published': (ctx: ShiftScheduleContext) => void | Promise<void>;
|
|
679
|
+
/** A shift was created (bulk creation and copying fire it per shift). */
|
|
680
|
+
'shifts:shift:created': (ctx: ShiftCreatedContext) => void | Promise<void>;
|
|
681
|
+
/** A shift's times, place, capacity, notes, team or role changed. */
|
|
682
|
+
'shifts:shift:updated': (ctx: ShiftUpdatedContext) => void | Promise<void>;
|
|
683
|
+
/** An assignment was created (`previous: null`), cancelled, marked or changed hands in a swap. */
|
|
684
|
+
'shifts:assignment:changed': (ctx: ShiftAssignmentChangedContext) => void | Promise<void>;
|
|
685
|
+
/** Somebody offered on a swap: a shift in return (`kind: 'trade'`), or to take it over (`kind: 'release'`). */
|
|
686
|
+
'shifts:swap:offered': (ctx: ShiftSwapContext) => void | Promise<void>;
|
|
687
|
+
/** The owner accepted an offer (`approval: 'peer'`: it completes at once; `'lead'`: it waits for a lead or staff). */
|
|
688
|
+
'shifts:swap:accepted': (ctx: ShiftSwapContext) => void | Promise<void>;
|
|
689
|
+
/** The owner turned an offer down, or an approver rejected the swap. */
|
|
690
|
+
'shifts:swap:rejected': (ctx: ShiftSwapContext) => void | Promise<void>;
|
|
691
|
+
/** The shift changed hands: both shifts together in a trade, the one shift in a release. */
|
|
692
|
+
'shifts:swap:completed': (ctx: ShiftSwapContext) => void | Promise<void>;
|
|
693
|
+
/**
|
|
694
|
+
* Attendance was marked: a lead's scan, a station or location check-in (`method`), attended or a no-show by a lead,
|
|
695
|
+
* or an auto no-show of the `shifts:close-shifts` task (`auto: true`, `by: null`, `event: undefined`).
|
|
696
|
+
*/
|
|
697
|
+
'shifts:attendance:marked': (ctx: ShiftAttendanceContext) => void | Promise<void>;
|
|
698
|
+
/**
|
|
699
|
+
* A reminder went out (`channels` says how). Fired by the `shifts:send-reminders` task, which has no request: `event`
|
|
700
|
+
* is `undefined` here, unlike every other shifts hook.
|
|
701
|
+
*/
|
|
702
|
+
'shifts:reminder:sent': (ctx: ShiftReminderContext) => void | Promise<void>;
|
|
703
|
+
/** A broadcast was sent to a team or shift. */
|
|
704
|
+
'shifts:broadcast:sent': (ctx: ShiftBroadcastContext) => void | Promise<void>;
|
|
705
|
+
/** A perk was earned (or came back) for an attended shift. Fired from the `shifts:close-shifts` task too (`event` undefined). */
|
|
706
|
+
'shifts:perk:earned': (ctx: ShiftEarnedPerkContext) => void | Promise<void>;
|
|
707
|
+
/** An unclaimed earned perk was revoked: the assignment flipped from attended to no-show. */
|
|
708
|
+
'shifts:perk:revoked': (ctx: ShiftEarnedPerkContext) => void | Promise<void>;
|
|
709
|
+
/** The `shifts:close-shifts` task sent a lead their digest of new exceptions (`event` is always `undefined`). */
|
|
710
|
+
'shifts:digest:sent': (ctx: ShiftDigestContext) => void | Promise<void>;
|
|
711
|
+
}
|
|
712
|
+
}
|
|
713
|
+
declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
|
|
714
|
+
|
|
715
|
+
export { _default as default };
|
|
716
|
+
export type { ModuleOptions, MyShiftDetailDto, MyShiftDto, PublicModuleOptions, ShiftApproval, ShiftAssignResultDto, ShiftAssigneeDto, ShiftAssignmentChangedContext, ShiftAssignmentDto, ShiftAssignmentStatus, ShiftAttendanceContext, ShiftBroadcastAudience, ShiftBroadcastContext, ShiftBroadcastDto, ShiftBroadcastResultDto, ShiftCandidateDto, ShiftChannel, ShiftCheckInDto, ShiftCheckInMethod, ShiftCheckInMode, ShiftCheckInRule, ShiftCheckInSettings, ShiftCheckInTeamSettings, ShiftCopyResultDto, ShiftCoverage, ShiftCreatedContext, ShiftDigestContext, ShiftDto, ShiftEarnedPerkContext, ShiftEarnedPerkDto, ShiftEarnedPerkListDto, ShiftExceptionDto, ShiftExceptionKind, ShiftFeedStatusDto, ShiftFeedTokenDto, ShiftGuards, ShiftHandover, ShiftLocation, ShiftPassDto, ShiftPassPerkDto, ShiftPerkDto, ShiftPersonDto, ShiftReminderContext, ShiftRoleDto, ShiftScheduleContext, ShiftScheduleDto, ShiftScheduleSettings, ShiftScheduleStatus, ShiftSelfCheckInDto, ShiftSelfCheckInInput, ShiftStationDto, ShiftStationTokenDto, ShiftSwapContext, ShiftSwapDto, ShiftSwapGuardCode, ShiftSwapKind, ShiftSwapOfferDto, ShiftSwapOfferStatus, ShiftSwapStatus, ShiftUpdatedContext, ShiftWarning, ShiftWithAssigneesDto, ShiftsAutomationOptions, ShiftsLedTeamDto, ShiftsMyNowDto, ShiftsNowDto, ShiftsOperationTeamDto, ShiftsRemindersOptions, ShiftsRuntimeConfig };
|