@frigear-nu/shifts 0.0.0-stage → 0.0.0

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.
Files changed (341) hide show
  1. package/README.md +53 -2
  2. package/dist/module.d.mts +709 -0
  3. package/dist/module.json +9 -0
  4. package/dist/module.mjs +253 -0
  5. package/dist/runtime/access.d.ts +2 -0
  6. package/dist/runtime/access.js +84 -0
  7. package/dist/runtime/app/components/ShiftBroadcastSlideover.d.vue.ts +19 -0
  8. package/dist/runtime/app/components/ShiftBroadcastSlideover.vue +142 -0
  9. package/dist/runtime/app/components/ShiftBroadcastSlideover.vue.d.ts +19 -0
  10. package/dist/runtime/app/components/ShiftBroadcastsCard.d.vue.ts +9 -0
  11. package/dist/runtime/app/components/ShiftBroadcastsCard.vue +74 -0
  12. package/dist/runtime/app/components/ShiftBroadcastsCard.vue.d.ts +9 -0
  13. package/dist/runtime/app/components/ShiftBulkSlideover.d.vue.ts +15 -0
  14. package/dist/runtime/app/components/ShiftBulkSlideover.vue +185 -0
  15. package/dist/runtime/app/components/ShiftBulkSlideover.vue.d.ts +15 -0
  16. package/dist/runtime/app/components/ShiftCheckInCard.d.vue.ts +13 -0
  17. package/dist/runtime/app/components/ShiftCheckInCard.vue +238 -0
  18. package/dist/runtime/app/components/ShiftCheckInCard.vue.d.ts +13 -0
  19. package/dist/runtime/app/components/ShiftCopySlideover.d.vue.ts +11 -0
  20. package/dist/runtime/app/components/ShiftCopySlideover.vue +71 -0
  21. package/dist/runtime/app/components/ShiftCopySlideover.vue.d.ts +11 -0
  22. package/dist/runtime/app/components/ShiftDayView.d.vue.ts +16 -0
  23. package/dist/runtime/app/components/ShiftDayView.vue +124 -0
  24. package/dist/runtime/app/components/ShiftDayView.vue.d.ts +16 -0
  25. package/dist/runtime/app/components/ShiftFeedSlideover.d.vue.ts +7 -0
  26. package/dist/runtime/app/components/ShiftFeedSlideover.vue +172 -0
  27. package/dist/runtime/app/components/ShiftFeedSlideover.vue.d.ts +7 -0
  28. package/dist/runtime/app/components/ShiftNowCard.d.vue.ts +6 -0
  29. package/dist/runtime/app/components/ShiftNowCard.vue +83 -0
  30. package/dist/runtime/app/components/ShiftNowCard.vue.d.ts +6 -0
  31. package/dist/runtime/app/components/ShiftPassFullscreen.d.vue.ts +13 -0
  32. package/dist/runtime/app/components/ShiftPassFullscreen.vue +79 -0
  33. package/dist/runtime/app/components/ShiftPassFullscreen.vue.d.ts +13 -0
  34. package/dist/runtime/app/components/ShiftPerkSlideover.d.vue.ts +14 -0
  35. package/dist/runtime/app/components/ShiftPerkSlideover.vue +103 -0
  36. package/dist/runtime/app/components/ShiftPerkSlideover.vue.d.ts +14 -0
  37. package/dist/runtime/app/components/ShiftPerksCard.d.vue.ts +8 -0
  38. package/dist/runtime/app/components/ShiftPerksCard.vue +66 -0
  39. package/dist/runtime/app/components/ShiftPerksCard.vue.d.ts +8 -0
  40. package/dist/runtime/app/components/ShiftQrScanner.d.vue.ts +10 -0
  41. package/dist/runtime/app/components/ShiftQrScanner.vue +44 -0
  42. package/dist/runtime/app/components/ShiftQrScanner.vue.d.ts +10 -0
  43. package/dist/runtime/app/components/ShiftRoleSlideover.d.vue.ts +15 -0
  44. package/dist/runtime/app/components/ShiftRoleSlideover.vue +88 -0
  45. package/dist/runtime/app/components/ShiftRoleSlideover.vue.d.ts +15 -0
  46. package/dist/runtime/app/components/ShiftScheduleSettingsFields.d.vue.ts +11 -0
  47. package/dist/runtime/app/components/ShiftScheduleSettingsFields.vue +61 -0
  48. package/dist/runtime/app/components/ShiftScheduleSettingsFields.vue.d.ts +11 -0
  49. package/dist/runtime/app/components/ShiftScheduleSlideover.d.vue.ts +12 -0
  50. package/dist/runtime/app/components/ShiftScheduleSlideover.vue +129 -0
  51. package/dist/runtime/app/components/ShiftScheduleSlideover.vue.d.ts +12 -0
  52. package/dist/runtime/app/components/ShiftSlideover.d.vue.ts +13 -0
  53. package/dist/runtime/app/components/ShiftSlideover.vue +353 -0
  54. package/dist/runtime/app/components/ShiftSlideover.vue.d.ts +13 -0
  55. package/dist/runtime/app/components/ShiftStationSlideover.d.vue.ts +15 -0
  56. package/dist/runtime/app/components/ShiftStationSlideover.vue +92 -0
  57. package/dist/runtime/app/components/ShiftStationSlideover.vue.d.ts +15 -0
  58. package/dist/runtime/app/composables/index.d.ts +6 -0
  59. package/dist/runtime/app/composables/index.js +5 -0
  60. package/dist/runtime/app/composables/useShiftsActions.d.ts +61 -0
  61. package/dist/runtime/app/composables/useShiftsActions.js +224 -0
  62. package/dist/runtime/app/composables/useShiftsFormat.d.ts +12 -0
  63. package/dist/runtime/app/composables/useShiftsFormat.js +14 -0
  64. package/dist/runtime/app/composables/useShiftsLinks.d.ts +12 -0
  65. package/dist/runtime/app/composables/useShiftsLinks.js +6 -0
  66. package/dist/runtime/app/composables/useShiftsTranslate.d.ts +5 -0
  67. package/dist/runtime/app/composables/useShiftsTranslate.js +12 -0
  68. package/dist/runtime/app/composables/useShiftsVenueFeatures.d.ts +17 -0
  69. package/dist/runtime/app/composables/useShiftsVenueFeatures.js +18 -0
  70. package/dist/runtime/app/dashboard/NextShift.d.vue.ts +3 -0
  71. package/dist/runtime/app/dashboard/NextShift.vue +69 -0
  72. package/dist/runtime/app/dashboard/NextShift.vue.d.ts +3 -0
  73. package/dist/runtime/app/dashboard/OpenSwaps.d.vue.ts +3 -0
  74. package/dist/runtime/app/dashboard/OpenSwaps.vue +69 -0
  75. package/dist/runtime/app/dashboard/OpenSwaps.vue.d.ts +3 -0
  76. package/dist/runtime/app/dashboard/TeamOnNow.d.vue.ts +3 -0
  77. package/dist/runtime/app/dashboard/TeamOnNow.vue +72 -0
  78. package/dist/runtime/app/dashboard/TeamOnNow.vue.d.ts +3 -0
  79. package/dist/runtime/app/pages/check-in.d.vue.ts +3 -0
  80. package/dist/runtime/app/pages/check-in.vue +93 -0
  81. package/dist/runtime/app/pages/check-in.vue.d.ts +3 -0
  82. package/dist/runtime/app/pages/lead.d.vue.ts +3 -0
  83. package/dist/runtime/app/pages/lead.vue +300 -0
  84. package/dist/runtime/app/pages/lead.vue.d.ts +3 -0
  85. package/dist/runtime/app/pages/shift.d.vue.ts +3 -0
  86. package/dist/runtime/app/pages/shift.vue +482 -0
  87. package/dist/runtime/app/pages/shift.vue.d.ts +3 -0
  88. package/dist/runtime/app/pages/shifts.d.vue.ts +3 -0
  89. package/dist/runtime/app/pages/shifts.vue +169 -0
  90. package/dist/runtime/app/pages/shifts.vue.d.ts +3 -0
  91. package/dist/runtime/app/pages/station.d.vue.ts +3 -0
  92. package/dist/runtime/app/pages/station.vue +104 -0
  93. package/dist/runtime/app/pages/station.vue.d.ts +3 -0
  94. package/dist/runtime/app/pages/swaps.d.vue.ts +3 -0
  95. package/dist/runtime/app/pages/swaps.vue +192 -0
  96. package/dist/runtime/app/pages/swaps.vue.d.ts +3 -0
  97. package/dist/runtime/app/tabs/Shifts.d.vue.ts +9 -0
  98. package/dist/runtime/app/tabs/Shifts.vue +487 -0
  99. package/dist/runtime/app/tabs/Shifts.vue.d.ts +9 -0
  100. package/dist/runtime/app/utils/admin-shifts.d.ts +42 -0
  101. package/dist/runtime/app/utils/admin-shifts.js +36 -0
  102. package/dist/runtime/dashboard.d.ts +8 -0
  103. package/dist/runtime/dashboard.js +30 -0
  104. package/dist/runtime/emails/shifts-broadcast.d.vue.ts +8 -0
  105. package/dist/runtime/emails/shifts-broadcast.vue +24 -0
  106. package/dist/runtime/emails/shifts-broadcast.vue.d.ts +8 -0
  107. package/dist/runtime/emails/shifts-reminder.d.vue.ts +12 -0
  108. package/dist/runtime/emails/shifts-reminder.vue +34 -0
  109. package/dist/runtime/emails/shifts-reminder.vue.d.ts +12 -0
  110. package/dist/runtime/emails/shifts-swap-accepted.d.vue.ts +11 -0
  111. package/dist/runtime/emails/shifts-swap-accepted.vue +32 -0
  112. package/dist/runtime/emails/shifts-swap-accepted.vue.d.ts +11 -0
  113. package/dist/runtime/emails/shifts-swap-completed.d.vue.ts +11 -0
  114. package/dist/runtime/emails/shifts-swap-completed.vue +32 -0
  115. package/dist/runtime/emails/shifts-swap-completed.vue.d.ts +11 -0
  116. package/dist/runtime/emails/shifts-swap-offered.d.vue.ts +11 -0
  117. package/dist/runtime/emails/shifts-swap-offered.vue +32 -0
  118. package/dist/runtime/emails/shifts-swap-offered.vue.d.ts +11 -0
  119. package/dist/runtime/emails/shifts-swap-pending.d.vue.ts +11 -0
  120. package/dist/runtime/emails/shifts-swap-pending.vue +32 -0
  121. package/dist/runtime/emails/shifts-swap-pending.vue.d.ts +11 -0
  122. package/dist/runtime/emails/shifts-swap-proposed.d.vue.ts +11 -0
  123. package/dist/runtime/emails/shifts-swap-proposed.vue +32 -0
  124. package/dist/runtime/emails/shifts-swap-proposed.vue.d.ts +11 -0
  125. package/dist/runtime/emails/shifts-swap-rejected.d.vue.ts +11 -0
  126. package/dist/runtime/emails/shifts-swap-rejected.vue +32 -0
  127. package/dist/runtime/emails/shifts-swap-rejected.vue.d.ts +11 -0
  128. package/dist/runtime/i18n/lang/da.json +626 -0
  129. package/dist/runtime/i18n/lang/en.json +626 -0
  130. package/dist/runtime/menus.d.ts +2 -0
  131. package/dist/runtime/menus.js +17 -0
  132. package/dist/runtime/notifications.d.ts +9 -0
  133. package/dist/runtime/notifications.js +36 -0
  134. package/dist/runtime/server/db/schema.postgresql.d.ts +2151 -0
  135. package/dist/runtime/server/db/schema.postgresql.js +228 -0
  136. package/dist/runtime/server/db/schema.sqlite.d.ts +2263 -0
  137. package/dist/runtime/server/db/schema.sqlite.js +228 -0
  138. package/dist/runtime/server/digest-email.d.ts +17 -0
  139. package/dist/runtime/server/digest-email.js +42 -0
  140. package/dist/runtime/server/plugins/station-key.d.ts +2 -0
  141. package/dist/runtime/server/plugins/station-key.js +5 -0
  142. package/dist/runtime/server/plugins/teams.d.ts +2 -0
  143. package/dist/runtime/server/plugins/teams.js +19 -0
  144. package/dist/runtime/server/policies.d.ts +2 -0
  145. package/dist/runtime/server/policies.js +41 -0
  146. package/dist/runtime/server/reminder-email.d.ts +67 -0
  147. package/dist/runtime/server/reminder-email.js +109 -0
  148. package/dist/runtime/server/routes/admin/assignment.delete.d.ts +2 -0
  149. package/dist/runtime/server/routes/admin/assignment.delete.js +10 -0
  150. package/dist/runtime/server/routes/admin/assignments.post.d.ts +2 -0
  151. package/dist/runtime/server/routes/admin/assignments.post.js +11 -0
  152. package/dist/runtime/server/routes/admin/broadcasts.get.d.ts +2 -0
  153. package/dist/runtime/server/routes/admin/broadcasts.get.js +8 -0
  154. package/dist/runtime/server/routes/admin/broadcasts.post.d.ts +2 -0
  155. package/dist/runtime/server/routes/admin/broadcasts.post.js +9 -0
  156. package/dist/runtime/server/routes/admin/candidates.get.d.ts +2 -0
  157. package/dist/runtime/server/routes/admin/candidates.get.js +10 -0
  158. package/dist/runtime/server/routes/admin/operation-teams.get.d.ts +2 -0
  159. package/dist/runtime/server/routes/admin/operation-teams.get.js +9 -0
  160. package/dist/runtime/server/routes/admin/perk.delete.d.ts +2 -0
  161. package/dist/runtime/server/routes/admin/perk.delete.js +10 -0
  162. package/dist/runtime/server/routes/admin/perk.patch.d.ts +2 -0
  163. package/dist/runtime/server/routes/admin/perk.patch.js +10 -0
  164. package/dist/runtime/server/routes/admin/perks.get.d.ts +2 -0
  165. package/dist/runtime/server/routes/admin/perks.get.js +9 -0
  166. package/dist/runtime/server/routes/admin/perks.post.d.ts +2 -0
  167. package/dist/runtime/server/routes/admin/perks.post.js +10 -0
  168. package/dist/runtime/server/routes/admin/role.delete.d.ts +2 -0
  169. package/dist/runtime/server/routes/admin/role.delete.js +11 -0
  170. package/dist/runtime/server/routes/admin/role.patch.d.ts +2 -0
  171. package/dist/runtime/server/routes/admin/role.patch.js +11 -0
  172. package/dist/runtime/server/routes/admin/roles.get.d.ts +2 -0
  173. package/dist/runtime/server/routes/admin/roles.get.js +9 -0
  174. package/dist/runtime/server/routes/admin/roles.post.d.ts +2 -0
  175. package/dist/runtime/server/routes/admin/roles.post.js +10 -0
  176. package/dist/runtime/server/routes/admin/schedule-copy.post.d.ts +2 -0
  177. package/dist/runtime/server/routes/admin/schedule-copy.post.js +12 -0
  178. package/dist/runtime/server/routes/admin/schedule-publish.post.d.ts +2 -0
  179. package/dist/runtime/server/routes/admin/schedule-publish.post.js +9 -0
  180. package/dist/runtime/server/routes/admin/schedule.delete.d.ts +2 -0
  181. package/dist/runtime/server/routes/admin/schedule.delete.js +10 -0
  182. package/dist/runtime/server/routes/admin/schedule.get.d.ts +2 -0
  183. package/dist/runtime/server/routes/admin/schedule.get.js +9 -0
  184. package/dist/runtime/server/routes/admin/schedule.patch.d.ts +2 -0
  185. package/dist/runtime/server/routes/admin/schedule.patch.js +10 -0
  186. package/dist/runtime/server/routes/admin/schedules.get.d.ts +2 -0
  187. package/dist/runtime/server/routes/admin/schedules.get.js +10 -0
  188. package/dist/runtime/server/routes/admin/schedules.post.d.ts +2 -0
  189. package/dist/runtime/server/routes/admin/schedules.post.js +9 -0
  190. package/dist/runtime/server/routes/admin/shift.delete.d.ts +2 -0
  191. package/dist/runtime/server/routes/admin/shift.delete.js +10 -0
  192. package/dist/runtime/server/routes/admin/shift.patch.d.ts +2 -0
  193. package/dist/runtime/server/routes/admin/shift.patch.js +10 -0
  194. package/dist/runtime/server/routes/admin/shifts-bulk.post.d.ts +2 -0
  195. package/dist/runtime/server/routes/admin/shifts-bulk.post.js +10 -0
  196. package/dist/runtime/server/routes/admin/shifts.get.d.ts +2 -0
  197. package/dist/runtime/server/routes/admin/shifts.get.js +10 -0
  198. package/dist/runtime/server/routes/admin/station.delete.d.ts +2 -0
  199. package/dist/runtime/server/routes/admin/station.delete.js +11 -0
  200. package/dist/runtime/server/routes/admin/station.patch.d.ts +2 -0
  201. package/dist/runtime/server/routes/admin/station.patch.js +11 -0
  202. package/dist/runtime/server/routes/admin/stations.get.d.ts +2 -0
  203. package/dist/runtime/server/routes/admin/stations.get.js +9 -0
  204. package/dist/runtime/server/routes/admin/stations.post.d.ts +2 -0
  205. package/dist/runtime/server/routes/admin/stations.post.js +10 -0
  206. package/dist/runtime/server/routes/admin/swap-cancel.post.d.ts +2 -0
  207. package/dist/runtime/server/routes/admin/swap-cancel.post.js +10 -0
  208. package/dist/runtime/server/routes/admin/swaps.get.d.ts +2 -0
  209. package/dist/runtime/server/routes/admin/swaps.get.js +10 -0
  210. package/dist/runtime/server/routes/feed/feed.get.d.ts +2 -0
  211. package/dist/runtime/server/routes/feed/feed.get.js +9 -0
  212. package/dist/runtime/server/routes/lead/attended.post.d.ts +2 -0
  213. package/dist/runtime/server/routes/lead/attended.post.js +11 -0
  214. package/dist/runtime/server/routes/lead/broadcast.post.d.ts +2 -0
  215. package/dist/runtime/server/routes/lead/broadcast.post.js +12 -0
  216. package/dist/runtime/server/routes/lead/check-in.post.d.ts +2 -0
  217. package/dist/runtime/server/routes/lead/check-in.post.js +9 -0
  218. package/dist/runtime/server/routes/lead/exceptions.get.d.ts +2 -0
  219. package/dist/runtime/server/routes/lead/exceptions.get.js +8 -0
  220. package/dist/runtime/server/routes/lead/no-show.post.d.ts +2 -0
  221. package/dist/runtime/server/routes/lead/no-show.post.js +11 -0
  222. package/dist/runtime/server/routes/lead/now.get.d.ts +2 -0
  223. package/dist/runtime/server/routes/lead/now.get.js +9 -0
  224. package/dist/runtime/server/routes/lead/on-duty.get.d.ts +2 -0
  225. package/dist/runtime/server/routes/lead/on-duty.get.js +10 -0
  226. package/dist/runtime/server/routes/lead/stations.get.d.ts +2 -0
  227. package/dist/runtime/server/routes/lead/stations.get.js +8 -0
  228. package/dist/runtime/server/routes/lead/team-shifts.get.d.ts +2 -0
  229. package/dist/runtime/server/routes/lead/team-shifts.get.js +9 -0
  230. package/dist/runtime/server/routes/lead/team-swaps.get.d.ts +2 -0
  231. package/dist/runtime/server/routes/lead/team-swaps.get.js +9 -0
  232. package/dist/runtime/server/routes/me/check-in.post.d.ts +2 -0
  233. package/dist/runtime/server/routes/me/check-in.post.js +11 -0
  234. package/dist/runtime/server/routes/me/earned-perk-claim.post.d.ts +2 -0
  235. package/dist/runtime/server/routes/me/earned-perk-claim.post.js +10 -0
  236. package/dist/runtime/server/routes/me/earned-perks.get.d.ts +2 -0
  237. package/dist/runtime/server/routes/me/earned-perks.get.js +9 -0
  238. package/dist/runtime/server/routes/me/feed-token.delete.d.ts +2 -0
  239. package/dist/runtime/server/routes/me/feed-token.delete.js +7 -0
  240. package/dist/runtime/server/routes/me/feed-token.get.d.ts +2 -0
  241. package/dist/runtime/server/routes/me/feed-token.get.js +6 -0
  242. package/dist/runtime/server/routes/me/feed-token.post.d.ts +2 -0
  243. package/dist/runtime/server/routes/me/feed-token.post.js +7 -0
  244. package/dist/runtime/server/routes/me/leads.get.d.ts +2 -0
  245. package/dist/runtime/server/routes/me/leads.get.js +5 -0
  246. package/dist/runtime/server/routes/me/now.get.d.ts +2 -0
  247. package/dist/runtime/server/routes/me/now.get.js +5 -0
  248. package/dist/runtime/server/routes/me/pass.get.d.ts +2 -0
  249. package/dist/runtime/server/routes/me/pass.get.js +11 -0
  250. package/dist/runtime/server/routes/me/settle.post.d.ts +2 -0
  251. package/dist/runtime/server/routes/me/settle.post.js +14 -0
  252. package/dist/runtime/server/routes/me/shift.get.d.ts +2 -0
  253. package/dist/runtime/server/routes/me/shift.get.js +10 -0
  254. package/dist/runtime/server/routes/me/shifts.get.d.ts +2 -0
  255. package/dist/runtime/server/routes/me/shifts.get.js +6 -0
  256. package/dist/runtime/server/routes/me/swap.delete.d.ts +2 -0
  257. package/dist/runtime/server/routes/me/swap.delete.js +11 -0
  258. package/dist/runtime/server/routes/me/swap.post.d.ts +2 -0
  259. package/dist/runtime/server/routes/me/swap.post.js +11 -0
  260. package/dist/runtime/server/routes/stations/token.get.d.ts +2 -0
  261. package/dist/runtime/server/routes/stations/token.get.js +12 -0
  262. package/dist/runtime/server/routes/swaps/approve.post.d.ts +2 -0
  263. package/dist/runtime/server/routes/swaps/approve.post.js +9 -0
  264. package/dist/runtime/server/routes/swaps/list.get.d.ts +2 -0
  265. package/dist/runtime/server/routes/swaps/list.get.js +5 -0
  266. package/dist/runtime/server/routes/swaps/offer-accept.post.d.ts +2 -0
  267. package/dist/runtime/server/routes/swaps/offer-accept.post.js +9 -0
  268. package/dist/runtime/server/routes/swaps/offer-reject.post.d.ts +2 -0
  269. package/dist/runtime/server/routes/swaps/offer-reject.post.js +9 -0
  270. package/dist/runtime/server/routes/swaps/offer.delete.d.ts +2 -0
  271. package/dist/runtime/server/routes/swaps/offer.delete.js +11 -0
  272. package/dist/runtime/server/routes/swaps/offer.post.d.ts +2 -0
  273. package/dist/runtime/server/routes/swaps/offer.post.js +11 -0
  274. package/dist/runtime/server/routes/swaps/reject.post.d.ts +2 -0
  275. package/dist/runtime/server/routes/swaps/reject.post.js +9 -0
  276. package/dist/runtime/server/swap-email.d.ts +28 -0
  277. package/dist/runtime/server/swap-email.js +49 -0
  278. package/dist/runtime/server/tasks/close-shifts.d.ts +2 -0
  279. package/dist/runtime/server/tasks/close-shifts.js +9 -0
  280. package/dist/runtime/server/tasks/send-reminders.d.ts +2 -0
  281. package/dist/runtime/server/tasks/send-reminders.js +9 -0
  282. package/dist/runtime/server/utils/shifts-admin.d.ts +67 -0
  283. package/dist/runtime/server/utils/shifts-admin.js +312 -0
  284. package/dist/runtime/server/utils/shifts-assign.d.ts +89 -0
  285. package/dist/runtime/server/utils/shifts-assign.js +264 -0
  286. package/dist/runtime/server/utils/shifts-automation.d.ts +37 -0
  287. package/dist/runtime/server/utils/shifts-automation.js +171 -0
  288. package/dist/runtime/server/utils/shifts-broadcasts.d.ts +38 -0
  289. package/dist/runtime/server/utils/shifts-broadcasts.js +113 -0
  290. package/dist/runtime/server/utils/shifts-core.d.ts +78 -0
  291. package/dist/runtime/server/utils/shifts-core.js +142 -0
  292. package/dist/runtime/server/utils/shifts-dto.d.ts +32 -0
  293. package/dist/runtime/server/utils/shifts-dto.js +127 -0
  294. package/dist/runtime/server/utils/shifts-emails.d.ts +16 -0
  295. package/dist/runtime/server/utils/shifts-emails.js +44 -0
  296. package/dist/runtime/server/utils/shifts-exceptions.d.ts +7 -0
  297. package/dist/runtime/server/utils/shifts-exceptions.js +32 -0
  298. package/dist/runtime/server/utils/shifts-feed.d.ts +16 -0
  299. package/dist/runtime/server/utils/shifts-feed.js +73 -0
  300. package/dist/runtime/server/utils/shifts-notify.d.ts +40 -0
  301. package/dist/runtime/server/utils/shifts-notify.js +22 -0
  302. package/dist/runtime/server/utils/shifts-on-duty.d.ts +12 -0
  303. package/dist/runtime/server/utils/shifts-on-duty.js +37 -0
  304. package/dist/runtime/server/utils/shifts-perks.d.ts +46 -0
  305. package/dist/runtime/server/utils/shifts-perks.js +183 -0
  306. package/dist/runtime/server/utils/shifts-reminders.d.ts +30 -0
  307. package/dist/runtime/server/utils/shifts-reminders.js +102 -0
  308. package/dist/runtime/server/utils/shifts-schemas.d.ts +318 -0
  309. package/dist/runtime/server/utils/shifts-schemas.js +177 -0
  310. package/dist/runtime/server/utils/shifts-station-key.d.ts +7 -0
  311. package/dist/runtime/server/utils/shifts-station-key.js +22 -0
  312. package/dist/runtime/server/utils/shifts-stations.d.ts +28 -0
  313. package/dist/runtime/server/utils/shifts-stations.js +109 -0
  314. package/dist/runtime/server/utils/shifts-swaps.d.ts +114 -0
  315. package/dist/runtime/server/utils/shifts-swaps.js +559 -0
  316. package/dist/runtime/server/utils/shifts-views.d.ts +62 -0
  317. package/dist/runtime/server/utils/shifts-views.js +212 -0
  318. package/dist/runtime/utils/api.d.ts +108 -0
  319. package/dist/runtime/utils/api.js +111 -0
  320. package/dist/runtime/utils/checkin.d.ts +59 -0
  321. package/dist/runtime/utils/checkin.js +57 -0
  322. package/dist/runtime/utils/guards.d.ts +21 -0
  323. package/dist/runtime/utils/guards.js +36 -0
  324. package/dist/runtime/utils/ics.d.ts +32 -0
  325. package/dist/runtime/utils/ics.js +56 -0
  326. package/dist/runtime/utils/index.d.ts +16 -0
  327. package/dist/runtime/utils/index.js +15 -0
  328. package/dist/runtime/utils/links.d.ts +30 -0
  329. package/dist/runtime/utils/links.js +18 -0
  330. package/dist/runtime/utils/reminders.d.ts +27 -0
  331. package/dist/runtime/utils/reminders.js +28 -0
  332. package/dist/runtime/utils/settings.d.ts +28 -0
  333. package/dist/runtime/utils/settings.js +18 -0
  334. package/dist/runtime/utils/station-key.d.ts +9 -0
  335. package/dist/runtime/utils/station-key.js +12 -0
  336. package/dist/runtime/utils/status.d.ts +23 -0
  337. package/dist/runtime/utils/status.js +46 -0
  338. package/dist/runtime/utils/time.d.ts +22 -0
  339. package/dist/runtime/utils/time.js +14 -0
  340. package/dist/types.d.mts +5 -0
  341. package/package.json +131 -3
@@ -0,0 +1,626 @@
1
+ {
2
+ "perks": {
3
+ "permissions": {
4
+ "claim": "Claim your perks",
5
+ "claimDescription": "Mark the perks you earned as claimed, so an app can hand them out.",
6
+ "read": "Read your perks",
7
+ "readDescription": "See the perks you earned on your shifts."
8
+ },
9
+ "scopes": {
10
+ "perks": "Perks",
11
+ "perksDescription": "See and claim the perks you earned on your shifts."
12
+ }
13
+ },
14
+ "shifts": {
15
+ "admin": {
16
+ "addSlot": "Add time slot",
17
+ "allTeams": "All teams",
18
+ "alreadyOn": "On the shift",
19
+ "anyRole": "Anybody on the team",
20
+ "approval": "Approval",
21
+ "approvalHelp": "Whether a swap the two volunteers agree on needs a lead too.",
22
+ "approvals": {
23
+ "lead": "A lead approves",
24
+ "leadHelp": "A lead of the team or staff approves each swap the owner accepted.",
25
+ "peer": "Between volunteers",
26
+ "peerHelp": "A swap is done as soon as the owner accepts an offer."
27
+ },
28
+ "assignAction": "Assign {name}",
29
+ "assignAnyway": "Assign anyway",
30
+ "assignFailed": "Could not assign {name}",
31
+ "assignPerson": "Assign a person",
32
+ "assigned": "Assigned {name}",
33
+ "assignedWithWarnings": "{name} is assigned, but:",
34
+ "assignmentCancelled": "Took {name} off the shift",
35
+ "backToSchedules": "Back to the schedules",
36
+ "bulkCreated": "Created {count} shifts",
37
+ "bulkDescription": "Every time slot on every day, for one team. Times are local times in {zone}; a slot that ends before it starts ends the next day.",
38
+ "bulkSubmit": "Create {count} shifts",
39
+ "bulkTitle": "Create shifts",
40
+ "cancelAssignment": "Remove from shift",
41
+ "cancelAssignmentDescription": "Their place is freed and an open swap of it is cancelled.",
42
+ "cancelAssignmentTitle": "Take {name} off this shift?",
43
+ "capacity": "Capacity",
44
+ "capacityHelp": "Empty uses the schedule's maximum.",
45
+ "clockInvalid": "Use HH:mm.",
46
+ "copied": "Copied the shifts into {name}",
47
+ "copyDescription": "Copies the shift roles and shifts, not who works them, and the coverage, handover and approval, which replace this schedule's. Teams of another operation are matched by name.",
48
+ "copyShort": "Copy shifts",
49
+ "copySubmit": "Copy shifts",
50
+ "copyTitle": "Copy from another schedule",
51
+ "coverage": "Coverage",
52
+ "coverageHelp": "Whether volunteers must work every shift they are given.",
53
+ "coverages": {
54
+ "all": "Every shift",
55
+ "allHelp": "Volunteers must work every shift they hold. They can only trade one shift for another.",
56
+ "flexible": "Flexible",
57
+ "flexibleHelp": "Volunteers may give shifts away and take others over."
58
+ },
59
+ "createRole": "Add shift role",
60
+ "createSchedule": "Create schedule",
61
+ "deleteRole": "Delete shift role",
62
+ "deleteRoleDescription": "A role that shifts or assignments use cannot be deleted.",
63
+ "deleteRoleFailed": "Could not delete the shift role",
64
+ "deleteRoleTitle": "Delete the role {name}?",
65
+ "deleteSchedule": "Delete schedule",
66
+ "deleteScheduleDescription": "Its shift roles and shifts are deleted too. A schedule with people on its shifts cannot be deleted.",
67
+ "deleteScheduleFailed": "Could not delete the schedule",
68
+ "deleteScheduleTitle": "Delete {name}?",
69
+ "deleteShift": "Delete shift",
70
+ "deleteShiftDescription": "A shift with people on it cannot be deleted: take them off first.",
71
+ "deleteShiftFailed": "Could not delete the shift",
72
+ "deleteShiftTitle": "Delete this shift?",
73
+ "draftNote": "Draft: volunteers do not see this schedule until you publish it.",
74
+ "editRole": "Edit shift role",
75
+ "editSchedule": "Edit schedule",
76
+ "endsAfterStart": "A shift must end after it starts.",
77
+ "endsAt": "Ends",
78
+ "filledOf": "{filled} of {capacity}",
79
+ "filledUnlimited": "{filled} on it, no limit",
80
+ "firstDay": "First day",
81
+ "fromRequired": "Pick the first day.",
82
+ "fullDescription": "Assign {name} over the capacity anyway?",
83
+ "fullTitle": "The shift is full",
84
+ "handover": "Handover",
85
+ "handoverAllHelp": "With every shift covered, volunteers can only trade.",
86
+ "handoverHelp": "How a shift changes hands between volunteers.",
87
+ "handovers": {
88
+ "both": "Both",
89
+ "bothHelp": "Volunteers choose: trade a shift, or give it away.",
90
+ "release": "Give away",
91
+ "releaseHelp": "A volunteer gives a shift away and somebody else takes it over.",
92
+ "trade": "Trade",
93
+ "tradeHelp": "Shift for shift: both change hands together, so nobody works fewer shifts."
94
+ },
95
+ "lastDay": "Last day",
96
+ "markAttended": "Mark attended",
97
+ "markNoShow": "Mark no-show",
98
+ "marked": "Marked {name} {status}",
99
+ "maxPerShift": "Maximum per shift",
100
+ "maxPerShiftHelp": "Used when a shift sets no capacity. Empty is no limit.",
101
+ "maxShiftsPerDay": "Shifts per person per day",
102
+ "maxShiftsPerDayHelp": "More shows a warning; volunteers cannot swap past it.",
103
+ "minPerShift": "Minimum per shift",
104
+ "minPerShiftHelp": "Fewer shows the shift as short.",
105
+ "minRestHours": "Rest between shifts (hours)",
106
+ "minRestHoursHelp": "Less shows a warning; volunteers cannot swap past it.",
107
+ "name": "Name",
108
+ "nameRequired": "Give the schedule a name.",
109
+ "newRole": "New shift role",
110
+ "newSchedule": "New schedule",
111
+ "noCandidates": "Nobody on the team matches. People need an approved place or a role added in Teams.",
112
+ "noFeature": "No place on the venue layout",
113
+ "noPendingSwaps": "No swaps wait for approval.",
114
+ "noRole": "No role",
115
+ "noRoles": "No shift roles",
116
+ "noRolesDescription": "Without roles anybody on the team can hold any shift.",
117
+ "noSchedules": "No schedules yet",
118
+ "noSchedulesDescription": "Create a schedule, then add shifts for the teams.",
119
+ "noShifts": "No shifts yet",
120
+ "noShiftsDay": "No shifts on this day.",
121
+ "noShiftsDescription": "Create shifts for a team over a range of days, or copy them from another schedule.",
122
+ "nobodyYet": "Nobody yet.",
123
+ "offsetDays": "Move by days",
124
+ "offsetDaysHelp": "The shifts keep their local times. 364 keeps the weekday a year on.",
125
+ "onShift": "On this shift",
126
+ "openSchedule": "Open schedule",
127
+ "openShift": "Open shift",
128
+ "people": "People",
129
+ "publishAction": "Publish schedule",
130
+ "publishDescription": "Volunteers see their shifts in it and can swap them. A published schedule cannot go back to draft.",
131
+ "publishFailed": "Could not publish the schedule",
132
+ "publishTitle": "Publish {name}?",
133
+ "published": "Published {name}",
134
+ "rangeInvalid": "The last day must be on or after the first.",
135
+ "removeSlot": "Remove time slot",
136
+ "roleDeleted": "Deleted {name}",
137
+ "roleDescription": "A role people hold on a shift, such as team lead or bartender, with the lowest team role that may hold it.",
138
+ "roleNameRequired": "Give the role a name.",
139
+ "roleSaved": "Saved {name}",
140
+ "roleTooLow": "Role too low",
141
+ "rolesDescription": "Roles such as team lead or bartender, with the lowest team role that may hold them.",
142
+ "saveRole": "Save shift role",
143
+ "saveSchedule": "Save schedule",
144
+ "saveSettings": "Save settings",
145
+ "saveShift": "Save shift",
146
+ "scheduleDeleted": "Deleted {name}",
147
+ "scheduleDescription": "A schedule holds the shifts of an operation. It stays a draft until you publish it.",
148
+ "scheduleSaved": "Saved {name}",
149
+ "schedules": "Schedules",
150
+ "schedulesDescription": "Each schedule holds shifts for the operation's teams. Publish it when it is ready.",
151
+ "searchPeople": "Search the team by name",
152
+ "settingsAll": "Every shift, trade only",
153
+ "settingsBoth": "Trade or give away",
154
+ "settingsDescription": "Changes apply to swaps opened before too: accepting or approving one checks the settings of that moment.",
155
+ "settingsFailed": "Could not save the settings",
156
+ "settingsRelease": "Give away only",
157
+ "settingsSaved": "Saved the settings of {name}",
158
+ "settingsTitle": "How shifts change hands",
159
+ "settingsTrade": "Trade only",
160
+ "shiftCount": "{count} shifts",
161
+ "shiftDeleted": "Deleted the shift",
162
+ "shiftDetails": "Shift details",
163
+ "shiftRole": "Shift role",
164
+ "shiftSaved": "Saved the shift",
165
+ "shifts": "Shifts",
166
+ "shortStaffed": "Short of people: {count} of at least {min}",
167
+ "slotEnd": "Ends",
168
+ "slotStart": "Starts",
169
+ "slots": "Time slots",
170
+ "sourceRequired": "Choose a schedule to copy.",
171
+ "sourceSchedule": "Schedule",
172
+ "startsAt": "Starts",
173
+ "status": "Status",
174
+ "statusDraft": "Draft",
175
+ "statusPublished": "Published",
176
+ "swaps": "Swaps",
177
+ "swapsApprovalHelp": "Swaps the owner accepted wait here for a lead of the team or staff.",
178
+ "swapsPeerHelp": "This schedule swaps between volunteers: nothing waits for approval.",
179
+ "tabs": {
180
+ "shifts": "Shifts"
181
+ },
182
+ "team": "Team",
183
+ "teamRequired": "Choose a team.",
184
+ "teamRole": "Lowest team role",
185
+ "teamRoleHelp": "People below it on the team's ladder cannot hold this role.",
186
+ "toRequired": "Pick the last day.",
187
+ "venueFeature": "Place on the venue layout",
188
+ "venueFeatureHelp": "Where the shift is worked: the on-duty map draws it there.",
189
+ "viewCheckIn": "Check-in",
190
+ "viewDay": "Day",
191
+ "viewList": "List",
192
+ "viewRoles": "Shift roles",
193
+ "viewSettings": "Settings",
194
+ "viewSwaps": "Swaps to approve ({count})",
195
+ "viewSwapsTitle": "Swaps to approve",
196
+ "when": "When",
197
+ "who": "Who"
198
+ },
199
+ "broadcast": {
200
+ "anyRole": "Everyone on the team",
201
+ "audience": "To",
202
+ "audienceHelp": "The active members of the operation's teams. At most 500 people at once.",
203
+ "audienceShift": "People on a shift",
204
+ "cardDescription": "Emails to the people on the operation's teams. A text message is sent only when you ask for it.",
205
+ "cardTitle": "Messages",
206
+ "channelEmail": "Email",
207
+ "channelSms": "Text",
208
+ "channels": "Sent by",
209
+ "empty": "No messages sent yet",
210
+ "emptyDescription": "Message a team, or the people with a role and up on it.",
211
+ "failed": "Could not send the message",
212
+ "leadAction": "Message team",
213
+ "leadAudience": "Everyone on {team}.",
214
+ "leadTitle": "Message {team}",
215
+ "message": "Message",
216
+ "messageHelp": "Each person gets the text in their own language when you write it in several.",
217
+ "messageRequired": "Write the message.",
218
+ "queued": "Sending to {count} people",
219
+ "queuedDetail": "The messages go out in the background.",
220
+ "recipients": "People",
221
+ "role": "Role",
222
+ "roleHelp": "This role and everyone above it on the team's ladder.",
223
+ "sent": "Sent to {count} people",
224
+ "sentDetail": "{email} emails and {sms} texts.",
225
+ "sentEmails": "{email} emails.",
226
+ "sms": "Also send a text message",
227
+ "smsCost": "Texts cost money",
228
+ "smsWarning": "Everyone with a phone number gets a text as well as the email. Use it when people need to know right now.",
229
+ "subject": "Subject",
230
+ "subjectRequired": "Give the message a subject.",
231
+ "submit": "Send message",
232
+ "title": "Message teams",
233
+ "when": "Sent"
234
+ },
235
+ "checkIn": {
236
+ "addOverride": "Add a team override",
237
+ "already": "You were checked in already, at {time}.",
238
+ "autoNoShow": "Automatic no-shows",
239
+ "autoNoShowHint": "Mark people who have not checked in this long after the start as no-shows. Their leads get it in a digest.",
240
+ "autoNoShowMinutes": "Minutes after the start",
241
+ "autoNoShowOn": "On",
242
+ "checkedInAt": "Checked in at {time}",
243
+ "description": "Any mode that is on is enough. A lead can always scan a volunteer's pass.",
244
+ "done": "Checked in. Have a good shift!",
245
+ "doneDaily": "Checked in, and on your {count} other shifts today.",
246
+ "errors": {
247
+ "disabled": "This way of checking in is not on for your shift.",
248
+ "expired": "That code has expired. Scan the station again.",
249
+ "geoDenied": "Allow the app to use your location, or ask your lead to scan your pass.",
250
+ "inaccurate": "Your position is not accurate enough. Try again outside, or ask your lead.",
251
+ "invalid": "That is not a check-in station's code.",
252
+ "noGeo": "This device cannot tell where you are.",
253
+ "outside": "You are not at the check-in place yet.",
254
+ "window": "Check-in for this shift is not open now.",
255
+ "wrongStation": "That station is not your team's."
256
+ },
257
+ "failed": "Could not check in",
258
+ "imHere": "I'm here: check in",
259
+ "location": "Check-in place",
260
+ "locationHint": "A point and radius ({radius} m unless you set one), or an area. The phone's accuracy must be within the radius.",
261
+ "minutesAfterStart": "minutes after the start",
262
+ "modes": {
263
+ "daily": "Once a day",
264
+ "dailyHelp": "The first check-in of the day also checks in the person's other shifts that day whose check-in is open.",
265
+ "location": "Location",
266
+ "locationHelp": "Volunteers tap \"I'm here\" and the app sends their position. A determined person can fake it.",
267
+ "station": "Station",
268
+ "stationHelp": "Volunteers scan the rotating QR code of a station of their team.",
269
+ "stationNeedsKey": "Needs a station key on the server (NUXT_SHIFTS_STATION_KEY)."
270
+ },
271
+ "modesHint": "Besides a lead scanning the pass.",
272
+ "modesLabel": "Check-in modes",
273
+ "overrides": "Per team",
274
+ "overridesHint": "A team can check in differently, e.g. at its own bar.",
275
+ "removeOverride": "Remove the override of {team}",
276
+ "reset": "Discard changes",
277
+ "save": "Save check-in settings",
278
+ "saveFailed": "Could not save the check-in settings",
279
+ "saved": "Saved the check-in of {name}",
280
+ "scanStation": "Scan the station code",
281
+ "stationKeyMissing": "Station check-in needs a station key",
282
+ "stationKeyMissingHint": "Set NUXT_SHIFTS_STATION_KEY on the server to use station check-in and station screens. The other modes work without it.",
283
+ "stationKeyMissingInUse": "Station check-in is on, but the server has no NUXT_SHIFTS_STATION_KEY: volunteers cannot check in by station and station screens do not open. Set the key, or turn the mode off. The other modes work.",
284
+ "stopScanning": "Stop scanning",
285
+ "title": "How volunteers check in"
286
+ },
287
+ "dashboard": {
288
+ "allShifts": "See my shifts",
289
+ "next": "My next shift",
290
+ "nextEmpty": "No upcoming shifts",
291
+ "nextEmptyDescription": "Your next shift shows here once you are on a schedule.",
292
+ "nextFailed": "Could not load your shifts.",
293
+ "nextPass": "Open shift and pass",
294
+ "nextRunning": "On now",
295
+ "onNow": "My team on shift now",
296
+ "onNowEmpty": "Nobody on your teams is on shift",
297
+ "onNowEmptyDescription": "When a shift of one of your teams is running, you see who is on it.",
298
+ "onNowFailed": "Could not load who is on shift.",
299
+ "onNowLead": "Lead on duty: {names}",
300
+ "onNowNoLead": "No lead on duty",
301
+ "onNowPeople": "{count} on now",
302
+ "swaps": "Open swaps",
303
+ "swapsCount": "{count} open swaps you can take",
304
+ "swapsEmpty": "No open swaps",
305
+ "swapsEmptyDescription": "Shifts other people give away show here when you could take them.",
306
+ "swapsFailed": "Could not load the open swaps.",
307
+ "swapsLink": "See the swaps"
308
+ },
309
+ "exceptions": {
310
+ "claimed_no_show": "No-show, perk claimed",
311
+ "late": "Late by {minutes} min",
312
+ "no_show": "No-show",
313
+ "not_checked_in": "Not checked in"
314
+ },
315
+ "feed": {
316
+ "active": "Your calendar link is active",
317
+ "activeSince": "Made {made}, last read {read}. It is not shown again: replace it to get a new one.",
318
+ "activeUnused": "Made {made}, not read yet. It is not shown again: replace it to get a new one.",
319
+ "close": "Close",
320
+ "copied": "Copied the link",
321
+ "copy": "Copy link",
322
+ "copyFailed": "Could not copy: select the link and copy it by hand",
323
+ "create": "Create calendar link",
324
+ "description": "Your shifts as a calendar feed for Apple Calendar, Google Calendar or Outlook. The link is secret: anyone who has it can see your shifts.",
325
+ "https": "Web address",
326
+ "httpsHelp": "For calendars that ask for a URL.",
327
+ "mintFailed": "Could not create the calendar link",
328
+ "none": "You have no calendar link yet.",
329
+ "once": "It is shown only once. If you lose it, create a new one.",
330
+ "onceTitle": "Copy the link now",
331
+ "open": "Open in my calendar app",
332
+ "replace": "Replace link",
333
+ "replaceDescription": "The old link stops working: calendars subscribed to it stop updating until you subscribe with the new one.",
334
+ "replaceTitle": "Replace the calendar link?",
335
+ "revoke": "Revoke link",
336
+ "revokeDescription": "Calendars subscribed to it stop updating. You can create a new link at any time.",
337
+ "revokeFailed": "Could not revoke the calendar link",
338
+ "revokeTitle": "Revoke the calendar link?",
339
+ "revoked": "Revoked the calendar link",
340
+ "title": "Subscribe in calendar",
341
+ "webcal": "Calendar app link"
342
+ },
343
+ "lead": {
344
+ "description": "Your team's shifts, attendance and swaps.",
345
+ "empty": "No upcoming shifts for the team",
346
+ "exceptionsDescription": "No-shows, late check-ins and people not checked in on the shifts of the last day.",
347
+ "exceptionsTitle": "Exceptions",
348
+ "forbidden": "You do not lead this team",
349
+ "loadFailed": "The team could not be loaded",
350
+ "markFailed": "Could not mark attendance",
351
+ "noExceptions": "Nothing to look at",
352
+ "noExceptionsDescription": "Everybody on the team's shifts of the last day checked in on time.",
353
+ "openStation": "Open {name}",
354
+ "scanner": "Open the check-in scanner",
355
+ "stations": "Check-in stations",
356
+ "title": "Lead {team}",
357
+ "titleFallback": "Your team",
358
+ "viewExceptions": "Exceptions ({count})",
359
+ "viewShifts": "All shifts"
360
+ },
361
+ "menu": {
362
+ "mine": {
363
+ "description": "Your shifts, your QR pass and swaps.",
364
+ "label": "My shifts"
365
+ }
366
+ },
367
+ "mine": {
368
+ "description": "Your shifts, your check-in pass and your swaps.",
369
+ "empty": "No shifts yet",
370
+ "emptyDescription": "When a coordinator puts you on a shift, it shows up here.",
371
+ "hidePast": "Hide past shifts",
372
+ "lead": "Lead {team}",
373
+ "loadFailed": "Your shifts could not be loaded",
374
+ "noneThatDay": "No shifts on that day.",
375
+ "noneUpcoming": "No upcoming shifts.",
376
+ "openSwaps": "Open swaps",
377
+ "showAll": "Show all days",
378
+ "showPast": "Show {count} past shifts",
379
+ "title": "My shifts",
380
+ "today": "Today"
381
+ },
382
+ "mobile": {
383
+ "tab": "Shifts"
384
+ },
385
+ "now": {
386
+ "description": "Who is on shift right now, and the lead on duty per team.",
387
+ "empty": "Nobody is on shift right now.",
388
+ "leadOnDuty": "Lead on duty: {names}",
389
+ "loadFailed": "Could not load who is working.",
390
+ "noLead": "No lead on duty",
391
+ "nobody": "nobody",
392
+ "refresh": "Refresh who is working",
393
+ "title": "Working now"
394
+ },
395
+ "offerStatuses": {
396
+ "accepted": "Accepted",
397
+ "offered": "Offered",
398
+ "rejected": "Rejected",
399
+ "superseded": "Not chosen",
400
+ "withdrawn": "Withdrawn"
401
+ },
402
+ "perks": {
403
+ "amountMin": "At least 1.",
404
+ "cardDescription": "What volunteers earn for every shift they attend, given at the end of the shift. The vouchers app hands it out.",
405
+ "create": "Add perk",
406
+ "delete": "Delete perk",
407
+ "deleteDescription": "Shifts no longer earn it. A perk somebody earned already cannot be deleted: change it instead.",
408
+ "deleteFailed": "Could not delete the perk",
409
+ "deleteTitle": "Delete {name}?",
410
+ "deleted": "Deleted {name}",
411
+ "description": "What a volunteer earns for every shift they attend. The vouchers app hands it out.",
412
+ "editTitle": "Edit perk",
413
+ "empty": "No perks yet",
414
+ "emptyDescription": "Add a perk, for example two beers per shift.",
415
+ "earned": "Earned",
416
+ "nameRequired": "Give the perk a name.",
417
+ "newTitle": "New perk",
418
+ "quantity": "Per shift",
419
+ "quantityHelp": "How many one attended shift earns.",
420
+ "save": "Save perk",
421
+ "saved": "Saved {name}",
422
+ "teamHelp": "Only shifts of this team earn it.",
423
+ "title": "Perks",
424
+ "voucherType": "Voucher type",
425
+ "voucherTypeHelp": "What the vouchers app hands out, e.g. beer or meal.",
426
+ "voucherTypeRequired": "Name the voucher type, e.g. beer."
427
+ },
428
+ "permissions": {
429
+ "attend": "Check in on your shifts",
430
+ "attendDescription": "Check in on your own shifts by scanning a station's code or by your location.",
431
+ "broadcast": "Message shift teams",
432
+ "broadcastDescription": "Send an email (and an SMS, on purpose) to the members of an operation's teams or the people on a shift.",
433
+ "feed": "Subscribe to your shifts in a calendar",
434
+ "feedDescription": "Create and revoke the secret calendar feed (iCal) of your own shifts.",
435
+ "lead": "Lead shifts",
436
+ "leadDescription": "Check people in, mark attendance and approve swaps on the teams you lead.",
437
+ "manage": "Manage shifts",
438
+ "manageDescription": "Create and publish schedules, create shifts in bulk, assign people and handle every swap.",
439
+ "pii": "See the contact details of people on shift",
440
+ "piiDescription": "See the email address and phone number of the people on a shift.",
441
+ "read": "Read shifts",
442
+ "readDescription": "See your own shifts, and who is on shift now in the operations you work at.",
443
+ "swap": "Swap shifts",
444
+ "swapDescription": "Offer your own shifts for a swap, and offer to take other people's."
445
+ },
446
+ "scanner": {
447
+ "already": "{name} was checked in already",
448
+ "alreadyAt": "At {time}, shift {when}",
449
+ "cameraFailed": "The camera could not start. Type the code instead.",
450
+ "cancelled": "This person was taken off the shift",
451
+ "checkInAction": "Check in person",
452
+ "checkedIn": "Checked in {name}",
453
+ "code": "Check-in code",
454
+ "codePlaceholder": "Code",
455
+ "description": "Scan the QR pass of a person on your team, or type the code under it.",
456
+ "failed": "Could not check in",
457
+ "forbidden": "You do not lead this team",
458
+ "noCamera": "No camera found. Type the code instead.",
459
+ "noPermission": "The camera is not allowed. Allow it in the browser, or type the code.",
460
+ "outsideWindow": "Check-in for this shift is not open now",
461
+ "shift": "Shift {when}",
462
+ "shiftAndDaily": "Shift {when}, and {count} more today",
463
+ "title": "Check in",
464
+ "unknown": "Unknown code for this team"
465
+ },
466
+ "scopes": {
467
+ "shifts": "Shifts"
468
+ },
469
+ "shift": {
470
+ "acceptOffer": "Accept offer",
471
+ "back": "My shifts",
472
+ "cannotSwap": "This shift cannot be swapped now.",
473
+ "details": "Shift",
474
+ "leadOnDuty": "Lead on duty",
475
+ "leadOnDutyIs": "Lead on duty: {names}",
476
+ "loadFailed": "The shift could not be loaded",
477
+ "noLead": "No lead of your team is on shift with you yet.",
478
+ "noOffers": "No offers yet. People who can take your shift see it in the open swaps.",
479
+ "noTradeOffers": "No offers yet. People who can take your shift see it in the open swaps and offer one of theirs.",
480
+ "notFound": "This shift is not yours, or no longer exists",
481
+ "notes": "Notes",
482
+ "offerAcceptFailed": "Could not accept the offer",
483
+ "offerAccepted": "Accepted the offer of {name}",
484
+ "offerBack": "Gives you {team}, {when}",
485
+ "offerRejectFailed": "Could not turn the offer down",
486
+ "offerRejected": "Turned down the offer of {name}",
487
+ "offerTake": "Takes your shift over",
488
+ "openRelease": "Give shift away",
489
+ "openTrade": "Offer shift for a trade",
490
+ "operation": "Operation",
491
+ "pass": "Check-in pass",
492
+ "passAlt": "QR code to check in",
493
+ "passClose": "Close",
494
+ "passClosed": "Check-in for this shift has closed.",
495
+ "passHelp": "Show this to the lead of your team when you arrive.",
496
+ "passHelpSelf": "Check in below, or show this to the lead of your team.",
497
+ "passLarge": "Check-in pass, large",
498
+ "passLarger": "Show larger",
499
+ "passLater": "Your pass shows here from {time}.",
500
+ "passOpensIn": "Opens in {time}",
501
+ "perkClaimed": "Claimed",
502
+ "perkEarned": "Earned",
503
+ "perkRevoked": "Revoked",
504
+ "perkUpcoming": "You will earn this",
505
+ "perks": "What this shift earns",
506
+ "rejectOffer": "Turn down offer",
507
+ "role": "Role",
508
+ "status": "Status",
509
+ "swap": "Swap",
510
+ "swapApprovalHelp": "A lead of the team approves a swap you accept.",
511
+ "swapNoLongerAllowed": "The schedule no longer allows this kind of swap: withdraw it and open a new one.",
512
+ "swapOpenFailed": "Could not open a swap",
513
+ "swapOpened": "Your shift is up for grabs",
514
+ "swapPeerHelp": "A swap is done as soon as you accept an offer.",
515
+ "swapWithdrawFailed": "Could not withdraw the swap",
516
+ "swapWithdrawn": "Withdrew the swap",
517
+ "team": "Team",
518
+ "title": "My shift",
519
+ "tradeOnly": "Trade only: you must work all your shifts.",
520
+ "tradeOpened": "Your shift is open for a trade",
521
+ "unitDays": "{count} d",
522
+ "unitHours": "{count} h",
523
+ "unitMinutes": "{count} min",
524
+ "when": "When",
525
+ "where": "Where",
526
+ "withdrawSwap": "Withdraw swap",
527
+ "withdrawSwapDescription": "You keep the shift. The offers you got are turned down.",
528
+ "withdrawSwapTitle": "Withdraw the swap?"
529
+ },
530
+ "station": {
531
+ "close": "Close station",
532
+ "forbidden": "Only leads of the team can open this station",
533
+ "help": "Scan this code in the app, on your shift, to check in. It changes every 30 seconds.",
534
+ "loadFailed": "The station could not be loaded",
535
+ "notConfigured": "Station check-in is not set up on this server",
536
+ "notFound": "This station does not exist",
537
+ "qrAlt": "QR code to check in at this station",
538
+ "title": "Check-in station"
539
+ },
540
+ "stations": {
541
+ "cardDescription": "Screens with a QR code that changes every 30 seconds. Open one on a tablet at the bar; leads of the team can open it too.",
542
+ "create": "Add station",
543
+ "delete": "Delete station",
544
+ "deleteDescription": "Its screen stops working at once. Volunteers check in at another station, by location or with a lead.",
545
+ "deleteFailed": "Could not delete the station",
546
+ "deleteTitle": "Delete {name}?",
547
+ "deleted": "Deleted {name}",
548
+ "description": "A screen at the bar or gate with a QR code that changes every 30 seconds. Volunteers of the team scan it to check in.",
549
+ "editTitle": "Edit station",
550
+ "empty": "No stations yet",
551
+ "emptyDescription": "Add one per bar or gate when volunteers check in by station.",
552
+ "feature": "Station on the venue layout",
553
+ "featureHelp": "Optional: where the station is on the venue layout.",
554
+ "nameRequired": "Give the station a name.",
555
+ "newTitle": "New check-in station",
556
+ "open": "Open station screen",
557
+ "save": "Save station",
558
+ "saved": "Saved {name}",
559
+ "teamFixed": "A station stays with its team.",
560
+ "teamHelp": "Only this team's volunteers check in at it.",
561
+ "title": "Check-in stations"
562
+ },
563
+ "statuses": {
564
+ "assigned": "Assigned",
565
+ "attended": "Attended",
566
+ "cancelled": "Cancelled",
567
+ "no_show": "No-show"
568
+ },
569
+ "swapKinds": {
570
+ "release": "Give away",
571
+ "trade": "Trade"
572
+ },
573
+ "swapStatuses": {
574
+ "accepted": "Accepted",
575
+ "cancelled": "Cancelled",
576
+ "completed": "Completed",
577
+ "offered": "Offers waiting",
578
+ "open": "Open",
579
+ "pending_approval": "Waiting for approval",
580
+ "rejected": "Rejected"
581
+ },
582
+ "swaps": {
583
+ "approveAction": "Approve swap",
584
+ "approveFailed": "Could not approve the swap",
585
+ "approved": "Approved the swap of {name}",
586
+ "description": "Shifts others want to trade or give away that you can take. A trade asks for one of your own shifts in return.",
587
+ "empty": "No open swaps for you",
588
+ "emptyDescription": "When somebody on your team offers a shift you can take, it shows up here.",
589
+ "from": "From {name} · {schedule}",
590
+ "fromTo": "{from} gives it to {to}",
591
+ "giveBack": "You give in return",
592
+ "loadFailed": "The swaps could not be loaded",
593
+ "mine": "Your shifts on offer",
594
+ "noLongerAllowed": "No longer allowed by the schedule's settings: reject it.",
595
+ "nothingToTrade": "You have no upcoming shift to trade.",
596
+ "offerAction": "Take the shift over",
597
+ "offerFailed": "Could not make the offer",
598
+ "offerWithdrawFailed": "Could not withdraw the offer",
599
+ "offerWithdrawn": "Withdrew your offer",
600
+ "offered": "Offered to take the shift of {name}",
601
+ "pickShift": "Choose one of your shifts",
602
+ "rejectAction": "Reject swap",
603
+ "rejectDescription": "Both people keep their shifts, and the shift is open for other offers again.",
604
+ "rejectFailed": "Could not reject the swap",
605
+ "rejectTitle": "Reject this swap?",
606
+ "rejected": "Rejected the swap",
607
+ "seeOffers": "See offers",
608
+ "title": "Open swaps",
609
+ "tradeAction": "Offer a trade",
610
+ "tradeOffered": "Offered {name} a trade",
611
+ "tradesWith": "{from} trades it with {to} for {team}, {when}",
612
+ "wants": "Wants your shift on {team}, {when}",
613
+ "withdrawOffer": "Withdraw offer",
614
+ "youGive": "You give {team}, {when}",
615
+ "youTake": "You take the shift over"
616
+ },
617
+ "tryAgain": "Try again",
618
+ "warnings": {
619
+ "below_min": "The shift is short of people.",
620
+ "max_shifts_per_day": "Too many shifts on one day.",
621
+ "min_rest": "Too little rest between two shifts.",
622
+ "overlap": "Works another shift at the same time.",
623
+ "shift_full": "The shift is full."
624
+ }
625
+ }
626
+ }
@@ -0,0 +1,2 @@
1
+ declare const _default: import("@frigear-nu/menu/types").MenuSource;
2
+ export default _default;
@@ -0,0 +1,17 @@
1
+ import { defineMenuItem, defineMenuSource, extendMenuItem } from "@frigear-nu/menu/utils";
2
+ import { useRuntimeConfig } from "#imports";
3
+ export default defineMenuSource(() => {
4
+ const config = useRuntimeConfig().public.shifts;
5
+ if (config?.pages?.shifts) {
6
+ extendMenuItem("account", defineMenuItem({
7
+ id: "shifts-mine",
8
+ label: "My shifts",
9
+ labelKey: "shifts.menu.mine.label",
10
+ description: "Your shifts, your QR pass and swaps.",
11
+ descriptionKey: "shifts.menu.mine.description",
12
+ icon: "i-lucide-calendar-clock",
13
+ to: config.pages.shifts,
14
+ order: 43
15
+ }));
16
+ }
17
+ });
@@ -0,0 +1,9 @@
1
+ import type { NotificationTopic } from '@frigear-nu/notify/utils';
2
+ export declare const SHIFTS_TOPICS: {
3
+ readonly reminder: "shifts.reminder";
4
+ readonly swap: "shifts.swap";
5
+ readonly broadcast: "shifts.broadcast";
6
+ readonly digest: "shifts.digest";
7
+ };
8
+ export type ShiftsTopic = typeof SHIFTS_TOPICS[keyof typeof SHIFTS_TOPICS];
9
+ export declare const shiftsNotificationTopics: NotificationTopic[];