@feedmepos/mf-hrm-portal 2.3.2-dev → 2.3.2-dev.3

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 (292) hide show
  1. package/dist/{ApprovalCodeList-xOyDG5ug.js → ApprovalCodeList-D3U4nvlF.js} +7 -7
  2. package/dist/AuditLogList-qGCW7tf0.js +1950 -0
  3. package/dist/ConditionBuilderForm.vue_vue_type_script_setup_true_lang-B0VcRYUg.js +438 -0
  4. package/dist/EmployeeList-Bd73xDCX.js +776 -0
  5. package/dist/{FormItem.vue_vue_type_script_setup_true_lang-DPT2FoIc.js → FormItem.vue_vue_type_script_setup_true_lang-cLEnrtC6.js} +6 -6
  6. package/dist/{GrantUserList-CUkuf3VV.js → GrantUserList-C71pal0N.js} +8 -8
  7. package/dist/{Main-Cg9SOzcz.js → Main-BWJPyEU1.js} +5 -5
  8. package/dist/{Main-BcixH7R5.js → Main-CCdTWngg.js} +11 -11
  9. package/dist/Main-DGf0bQvy.js +96 -0
  10. package/dist/PasscodePinField.vue_vue_type_script_setup_true_lang-CqG0v0Sz.js +243 -0
  11. package/dist/{PermissionSetList-I3u2_qHR.js → PermissionSetList-BS-oBunI.js} +35 -33
  12. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-CkOAT-oX.js +4167 -0
  13. package/dist/PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-DQcgZ0nF.js +35 -0
  14. package/dist/ResponsiveContextMenu.vue_vue_type_script_setup_true_lang-mSJFKo7r.js +132 -0
  15. package/dist/{RoleList-ALmAwN0U.js → RoleList-B_7UnVNb.js} +21 -20
  16. package/dist/ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-BXihM4sl.js +544 -0
  17. package/dist/ScheduleGeneralPage-DpNvWNGs.js +811 -0
  18. package/dist/ScheduleModal.vue_vue_type_script_setup_true_lang-DIYLOF9N.js +2556 -0
  19. package/dist/SchedulePage-QW-cYvu2.js +19458 -0
  20. package/dist/SchedulePositionPage-BtFfVo2N.js +282 -0
  21. package/dist/SelectFilter-BXeVKgHN.js +264 -0
  22. package/dist/TeamMemberList-DoisBYnk.js +1154 -0
  23. package/dist/{TimesheetList-CECFKt7H.js → TimesheetList-D-bESKe5.js} +11 -11
  24. package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-RIyoAmeb.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-D0zAVqCa.js} +3 -3
  25. package/dist/{app-CdrnR_Pw.js → app-D-MUq9Ab.js} +11435 -6652
  26. package/dist/app.js +3 -3
  27. package/dist/{approval-code-Bwvwehz9.js → approval-code-BXUiojPH.js} +1 -1
  28. package/dist/{dayjs.min-BO8bcI17.js → dayjs.min-BZ1pM-6M.js} +13 -13
  29. package/dist/{employee-Dg-J9goA.js → employee-HQEU8fjb.js} +66 -62
  30. package/dist/{grant-user-whFOaPZI.js → grant-user-CBJ3gEgW.js} +1 -1
  31. package/dist/{iteration-ZpERYj3o.js → iteration-ogxW2-Tv.js} +1 -1
  32. package/dist/{lodash-7SZBZ8VQ.js → lodash-Def4gaas.js} +1 -1
  33. package/dist/object-Dwyg2LgX.js +16 -0
  34. package/dist/restaurant-D2mfKHaH.js +1880 -0
  35. package/dist/{role-C6hFKOfU.js → role-JDoDFVd9.js} +4 -5
  36. package/dist/{rule-BlMymDXm.js → rule-DPtqlnz-.js} +94 -99
  37. package/dist/src/api/audit-log/index.d.ts +4 -0
  38. package/dist/src/api/employee/index.d.ts +2 -2
  39. package/dist/src/api/restaurant/index.d.ts +2 -0
  40. package/dist/src/api/schedule/index.d.ts +68 -0
  41. package/dist/src/components/AppForm.vue.d.ts +2 -2
  42. package/dist/src/components/CheckboxInput.vue.d.ts +2 -2
  43. package/dist/src/components/CollapsibleWrapper.vue.d.ts +3 -11
  44. package/dist/src/components/layout/PortalShell.vue.d.ts +12 -0
  45. package/dist/src/components/layout/withScheduleShell.d.ts +10 -0
  46. package/dist/src/composables/useDiscardConfirm.d.ts +3 -1
  47. package/dist/src/composables/useMessage.d.ts +8 -2
  48. package/dist/src/helpers/string.d.ts +1 -10
  49. package/dist/src/router/shared.d.ts +3 -2
  50. package/dist/src/stores/employee.d.ts +12 -12
  51. package/dist/src/stores/restaurant.d.ts +7 -7
  52. package/dist/src/stores/team.d.ts +0 -30
  53. package/dist/src/types/employee.d.ts +1 -0
  54. package/dist/src/types/schedule.d.ts +23 -0
  55. package/dist/src/types/team.d.ts +1 -17
  56. package/dist/src/views/audit-log/constants.d.ts +9 -30
  57. package/dist/src/views/audit-log/locales/index.d.ts +488 -0
  58. package/dist/src/views/audit-log/pos-row.d.ts +27 -0
  59. package/dist/src/views/hr/locales/index.d.ts +4 -4
  60. package/dist/src/views/scheduling/ScheduleGeneralPage.vue.d.ts +3 -0
  61. package/dist/src/views/scheduling/SchedulePage.vue.d.ts +3 -0
  62. package/dist/src/views/scheduling/SchedulePositionPage.vue.d.ts +3 -0
  63. package/dist/src/views/scheduling/components/ScheduleAddEmployeeIdentitySection.vue.d.ts +6 -0
  64. package/dist/src/views/scheduling/components/ScheduleAddEmployeeModal.vue.d.ts +12 -0
  65. package/dist/src/views/scheduling/components/ScheduleAddEmployeeModeStep.vue.d.ts +6 -0
  66. package/dist/src/views/scheduling/components/ScheduleAddEmployeePosAccessSection.vue.d.ts +6 -0
  67. package/dist/src/views/scheduling/components/ScheduleAddEmployeePositionsSection.vue.d.ts +10 -0
  68. package/dist/src/views/scheduling/components/ScheduleAddEmployeeSchedulingSection.vue.d.ts +6 -0
  69. package/dist/src/views/scheduling/components/ScheduleAddPickPopover.vue.d.ts +6 -0
  70. package/dist/src/views/scheduling/components/ScheduleAddPositionModal.vue.d.ts +6 -0
  71. package/dist/src/views/scheduling/components/ScheduleAreaRows.vue.d.ts +41 -0
  72. package/dist/src/views/scheduling/components/ScheduleAutoScheduleDetailsModal.vue.d.ts +6 -0
  73. package/dist/src/views/scheduling/components/ScheduleAutoScheduleDoneArt.vue.d.ts +2 -0
  74. package/dist/src/views/{team/member/ExistingMemberNotice.vue.d.ts → scheduling/components/ScheduleAutoScheduleModal.vue.d.ts} +5 -6
  75. package/dist/src/views/scheduling/components/ScheduleBoardAreaRows.vue.d.ts +25 -0
  76. package/dist/src/views/scheduling/components/ScheduleBoardEditOverlays.vue.d.ts +17 -0
  77. package/dist/src/views/scheduling/components/ScheduleBoardEmployeeRows.vue.d.ts +31 -0
  78. package/dist/src/views/scheduling/components/ScheduleBoardGridHeader.vue.d.ts +29 -0
  79. package/dist/src/views/scheduling/components/ScheduleBoardInteractionOverlays.vue.d.ts +34 -0
  80. package/dist/src/views/scheduling/components/ScheduleBoardOnboardingOverlays.vue.d.ts +26 -0
  81. package/dist/src/views/scheduling/components/ScheduleBoardRails.vue.d.ts +17 -0
  82. package/dist/src/views/scheduling/components/ScheduleBoardToolbar.vue.d.ts +38 -0
  83. package/dist/src/views/scheduling/components/ScheduleBoardUtilityOverlays.vue.d.ts +22 -0
  84. package/dist/src/views/scheduling/components/ScheduleButton.vue.d.ts +23 -0
  85. package/dist/src/views/scheduling/components/ScheduleChangeEmployeeModal.vue.d.ts +8 -0
  86. package/dist/src/views/scheduling/components/ScheduleCloneOutletModal.vue.d.ts +6 -0
  87. package/dist/src/views/scheduling/components/ScheduleCoach.vue.d.ts +6 -0
  88. package/dist/src/views/scheduling/components/ScheduleCompletionDialog.vue.d.ts +15 -0
  89. package/dist/src/views/scheduling/components/ScheduleConfirmModal.vue.d.ts +33 -0
  90. package/dist/src/views/scheduling/components/ScheduleContextMenu.vue.d.ts +17 -0
  91. package/dist/src/views/scheduling/components/ScheduleCostRail.vue.d.ts +8 -0
  92. package/dist/src/views/scheduling/components/ScheduleCostRailEmptyArt.vue.d.ts +2 -0
  93. package/dist/src/views/scheduling/components/ScheduleDateRangePopover.vue.d.ts +6 -0
  94. package/dist/src/views/scheduling/components/ScheduleDayNotePopover.vue.d.ts +6 -0
  95. package/dist/src/views/scheduling/components/ScheduleDayTimeline.vue.d.ts +17 -0
  96. package/dist/src/views/scheduling/components/ScheduleDemandRow.vue.d.ts +23 -0
  97. package/dist/src/views/scheduling/components/ScheduleDemandSheet.vue.d.ts +10 -0
  98. package/dist/src/views/scheduling/components/ScheduleDotsIcon.vue.d.ts +2 -0
  99. package/dist/src/views/scheduling/components/ScheduleEmployeeDetailPanel.vue.d.ts +12 -0
  100. package/dist/src/views/scheduling/components/ScheduleEmployeeIdentity.vue.d.ts +17 -0
  101. package/dist/src/views/scheduling/components/ScheduleExportPreview.vue.d.ts +7 -0
  102. package/dist/src/views/scheduling/components/ScheduleFilterBar.vue.d.ts +18 -0
  103. package/dist/src/views/scheduling/components/ScheduleGapPopover.vue.d.ts +6 -0
  104. package/dist/src/views/scheduling/components/ScheduleGridHeader.vue.d.ts +18 -0
  105. package/dist/src/views/scheduling/components/ScheduleGridSkeleton.vue.d.ts +2 -0
  106. package/dist/src/views/scheduling/components/ScheduleLeaveEditModal.vue.d.ts +6 -0
  107. package/dist/src/views/scheduling/components/ScheduleLoadState.vue.d.ts +9 -0
  108. package/dist/src/views/scheduling/components/ScheduleModal.vue.d.ts +26 -0
  109. package/dist/src/views/scheduling/components/ScheduleOnboardingAssignPositionModal.vue.d.ts +6 -0
  110. package/dist/src/views/scheduling/components/ScheduleOnboardingClosedDayConfirm.vue.d.ts +6 -0
  111. package/dist/src/views/scheduling/components/ScheduleOnboardingDemandDays.vue.d.ts +6 -0
  112. package/dist/src/views/scheduling/components/ScheduleOnboardingDemandFooter.vue.d.ts +6 -0
  113. package/dist/src/views/scheduling/components/ScheduleOnboardingDemandHeader.vue.d.ts +6 -0
  114. package/dist/src/views/scheduling/components/ScheduleOnboardingDoneArt.vue.d.ts +2 -0
  115. package/dist/src/views/scheduling/components/ScheduleOnboardingHoursProfileNotice.vue.d.ts +10 -0
  116. package/dist/src/views/scheduling/components/ScheduleOnboardingPositions.vue.d.ts +6 -0
  117. package/dist/src/views/scheduling/components/ScheduleOnboardingReview.vue.d.ts +6 -0
  118. package/dist/src/views/scheduling/components/ScheduleOnboardingSettings.vue.d.ts +6 -0
  119. package/dist/src/views/scheduling/components/ScheduleOnboardingWelcome.vue.d.ts +11 -0
  120. package/dist/src/views/scheduling/components/ScheduleOnboardingWizard.vue.d.ts +9 -0
  121. package/dist/src/views/scheduling/components/ScheduleOnboardingWizardFooter.vue.d.ts +6 -0
  122. package/dist/src/views/scheduling/components/ScheduleOnboardingWizardHeader.vue.d.ts +11 -0
  123. package/dist/src/views/scheduling/components/SchedulePublishModal.vue.d.ts +8 -0
  124. package/dist/src/views/scheduling/components/SchedulePublishShareArt.vue.d.ts +2 -0
  125. package/dist/src/views/scheduling/components/ScheduleReviewBar.vue.d.ts +12 -0
  126. package/dist/src/views/scheduling/components/ScheduleSelect.vue.d.ts +70 -0
  127. package/dist/src/views/scheduling/components/ScheduleSelectExistingEmployeeModal.vue.d.ts +6 -0
  128. package/dist/src/views/scheduling/components/ScheduleSetupBanner.vue.d.ts +12 -0
  129. package/dist/src/views/scheduling/components/ScheduleShiftCell.vue.d.ts +35 -0
  130. package/dist/src/views/scheduling/components/ScheduleShiftHeadcountEditor.vue.d.ts +10 -0
  131. package/dist/src/views/scheduling/components/ScheduleShiftImpact.vue.d.ts +6 -0
  132. package/dist/src/views/scheduling/components/ScheduleShiftMoreOptions.vue.d.ts +8 -0
  133. package/dist/src/views/scheduling/components/ScheduleShiftPopover.vue.d.ts +16 -0
  134. package/dist/src/views/scheduling/components/ScheduleShiftRepeatDaysRow.vue.d.ts +8 -0
  135. package/dist/src/views/scheduling/components/ScheduleShiftSegmentsEditor.vue.d.ts +8 -0
  136. package/dist/src/views/scheduling/components/ScheduleShiftWhoPicker.vue.d.ts +25 -0
  137. package/dist/src/views/scheduling/components/ScheduleStaffRail.vue.d.ts +16 -0
  138. package/dist/src/views/scheduling/components/ScheduleStaffRows.vue.d.ts +50 -0
  139. package/dist/src/views/scheduling/components/ScheduleStatsRow.vue.d.ts +12 -0
  140. package/dist/src/views/scheduling/components/ScheduleSwapShiftsModal.vue.d.ts +8 -0
  141. package/dist/src/views/scheduling/components/ScheduleTimePickerPopover.vue.d.ts +6 -0
  142. package/dist/src/views/scheduling/components/ScheduleTopbar.vue.d.ts +20 -0
  143. package/dist/src/views/scheduling/composables/auto-schedule-mapping.d.ts +35 -0
  144. package/dist/src/views/scheduling/composables/onboarding-constants.d.ts +7 -0
  145. package/dist/src/views/scheduling/composables/onboarding-hours.d.ts +7 -0
  146. package/dist/src/views/scheduling/composables/onboarding-types.d.ts +51 -0
  147. package/dist/src/views/scheduling/composables/remyPrompt.d.ts +15 -0
  148. package/dist/src/views/scheduling/composables/schedule-add-employee-form.d.ts +82 -0
  149. package/dist/src/views/scheduling/composables/schedule-board-helpers.d.ts +63 -0
  150. package/dist/src/views/scheduling/composables/schedule-breaks.d.ts +9 -0
  151. package/dist/src/views/scheduling/composables/schedule-calendar.d.ts +17 -0
  152. package/dist/src/views/scheduling/composables/schedule-cost.d.ts +24 -0
  153. package/dist/src/views/scheduling/composables/schedule-currency.d.ts +22 -0
  154. package/dist/src/views/scheduling/composables/schedule-day-meta.d.ts +21 -0
  155. package/dist/src/views/scheduling/composables/schedule-demand-domain.d.ts +23 -0
  156. package/dist/src/views/scheduling/composables/schedule-employee-profile.d.ts +7 -0
  157. package/dist/src/views/scheduling/composables/schedule-error.d.ts +1 -0
  158. package/dist/src/views/scheduling/composables/schedule-export-matrix.d.ts +14 -0
  159. package/dist/src/views/scheduling/composables/schedule-leave-split.d.ts +9 -0
  160. package/dist/src/views/scheduling/composables/schedule-popover-position.d.ts +16 -0
  161. package/dist/src/views/scheduling/composables/schedule-quick-pick.d.ts +23 -0
  162. package/dist/src/views/scheduling/composables/schedule-shift-time.d.ts +29 -0
  163. package/dist/src/views/scheduling/composables/schedule-time.d.ts +8 -0
  164. package/dist/src/views/scheduling/composables/schedule-week-cache.d.ts +9 -0
  165. package/dist/src/views/scheduling/composables/useCollapsedList.d.ts +9 -0
  166. package/dist/src/views/scheduling/composables/useRemyAppStore.d.ts +16 -0
  167. package/dist/src/views/scheduling/composables/useScheduleAddEmployee.d.ts +137 -0
  168. package/dist/src/views/scheduling/composables/useScheduleAddPick.d.ts +75 -0
  169. package/dist/src/views/scheduling/composables/useScheduleAreaBoard.d.ts +50 -0
  170. package/dist/src/views/scheduling/composables/useScheduleAreaDragDrop.d.ts +11 -0
  171. package/dist/src/views/scheduling/composables/useScheduleAssignmentMutations.d.ts +13 -0
  172. package/dist/src/views/scheduling/composables/useScheduleAutoSchedule.d.ts +301 -0
  173. package/dist/src/views/scheduling/composables/useScheduleBoard.d.ts +615 -0
  174. package/dist/src/views/scheduling/composables/useScheduleCellState.d.ts +27 -0
  175. package/dist/src/views/scheduling/composables/useScheduleClashDetection.d.ts +28 -0
  176. package/dist/src/views/scheduling/composables/useScheduleCloneOutletModal.d.ts +21 -0
  177. package/dist/src/views/scheduling/composables/useScheduleCoach.d.ts +80 -0
  178. package/dist/src/views/scheduling/composables/useScheduleCopyWeek.d.ts +12 -0
  179. package/dist/src/views/scheduling/composables/useScheduleCostRail.d.ts +60 -0
  180. package/dist/src/views/scheduling/composables/useScheduleDayNote.d.ts +44 -0
  181. package/dist/src/views/scheduling/composables/useScheduleDayTimeline.d.ts +111 -0
  182. package/dist/src/views/scheduling/composables/useScheduleDemand.d.ts +59 -0
  183. package/dist/src/views/scheduling/composables/useScheduleDemandRow.d.ts +47 -0
  184. package/dist/src/views/scheduling/composables/useScheduleDemandSheet.d.ts +166 -0
  185. package/dist/src/views/scheduling/composables/useScheduleDragDrop.d.ts +55 -0
  186. package/dist/src/views/scheduling/composables/useScheduleEmployeeAccess.d.ts +24 -0
  187. package/dist/src/views/scheduling/composables/useScheduleEmployeeAvailability.d.ts +13 -0
  188. package/dist/src/views/scheduling/composables/useScheduleEmployeeCandidates.d.ts +49 -0
  189. package/dist/src/views/scheduling/composables/useScheduleEmployeeCompensation.d.ts +7 -0
  190. package/dist/src/views/scheduling/composables/useScheduleEmployeeForm.d.ts +22 -0
  191. package/dist/src/views/scheduling/composables/useScheduleEmployeeIdentity.d.ts +50 -0
  192. package/dist/src/views/scheduling/composables/useScheduleEmployeeMenu.d.ts +38 -0
  193. package/dist/src/views/scheduling/composables/useScheduleEmployeePersistence.d.ts +32 -0
  194. package/dist/src/views/scheduling/composables/useScheduleEmployeeProfile.d.ts +16 -0
  195. package/dist/src/views/scheduling/composables/useScheduleEmployeeValidation.d.ts +18 -0
  196. package/dist/src/views/scheduling/composables/useScheduleExport.d.ts +52 -0
  197. package/dist/src/views/scheduling/composables/useScheduleFilterBar.d.ts +14 -0
  198. package/dist/src/views/scheduling/composables/useScheduleGapPopover.d.ts +79 -0
  199. package/dist/src/views/scheduling/composables/useScheduleLeave.d.ts +60 -0
  200. package/dist/src/views/scheduling/composables/useScheduleLegend.d.ts +15 -0
  201. package/dist/src/views/scheduling/composables/useScheduleOnboardingAvailability.d.ts +58 -0
  202. package/dist/src/views/scheduling/composables/useScheduleOnboardingDemand.d.ts +45 -0
  203. package/dist/src/views/scheduling/composables/useScheduleOnboardingEmployees.d.ts +231 -0
  204. package/dist/src/views/scheduling/composables/useScheduleOnboardingFlow.d.ts +9 -0
  205. package/dist/src/views/scheduling/composables/useScheduleOnboardingHours.d.ts +15 -0
  206. package/dist/src/views/scheduling/composables/useScheduleOnboardingNavigation.d.ts +11 -0
  207. package/dist/src/views/scheduling/composables/useScheduleOnboardingPersistence.d.ts +13 -0
  208. package/dist/src/views/scheduling/composables/useScheduleOnboardingWizard.d.ts +1543 -0
  209. package/dist/src/views/scheduling/composables/useScheduleOutlet.d.ts +25 -0
  210. package/dist/src/views/scheduling/composables/useSchedulePageActions.d.ts +18 -0
  211. package/dist/src/views/scheduling/composables/useSchedulePageBootstrap.d.ts +9 -0
  212. package/dist/src/views/scheduling/composables/useSchedulePageCellActions.d.ts +21 -0
  213. package/dist/src/views/scheduling/composables/useSchedulePageCellDrop.d.ts +20 -0
  214. package/dist/src/views/scheduling/composables/useSchedulePageClearActions.d.ts +33 -0
  215. package/dist/src/views/scheduling/composables/useSchedulePageEmployeeActions.d.ts +22 -0
  216. package/dist/src/views/scheduling/composables/useSchedulePageOverlays.d.ts +21 -0
  217. package/dist/src/views/scheduling/composables/useSchedulePdfExport.d.ts +19 -0
  218. package/dist/src/views/scheduling/composables/useSchedulePositionModal.d.ts +55 -0
  219. package/dist/src/views/scheduling/composables/useSchedulePositions.d.ts +35 -0
  220. package/dist/src/views/scheduling/composables/useSchedulePublish.d.ts +127 -0
  221. package/dist/src/views/scheduling/composables/useSchedulePublishPersistence.d.ts +11 -0
  222. package/dist/src/views/scheduling/composables/useScheduleRangeCalendar.d.ts +27 -0
  223. package/dist/src/views/scheduling/composables/useScheduleRoster.d.ts +313 -0
  224. package/dist/src/views/scheduling/composables/useScheduleSettings.d.ts +40 -0
  225. package/dist/src/views/scheduling/composables/useScheduleSetupBanner.d.ts +17 -0
  226. package/dist/src/views/scheduling/composables/useScheduleShiftActions.d.ts +245 -0
  227. package/dist/src/views/scheduling/composables/useScheduleShiftDraft.d.ts +63 -0
  228. package/dist/src/views/scheduling/composables/useScheduleShiftPersistence.d.ts +17 -0
  229. package/dist/src/views/scheduling/composables/useScheduleShiftPopover.d.ts +255 -0
  230. package/dist/src/views/scheduling/composables/useScheduleStatsRow.d.ts +27 -0
  231. package/dist/src/views/scheduling/composables/useScheduleTimePicker.d.ts +49 -0
  232. package/dist/src/views/scheduling/composables/useScheduleTour.d.ts +95 -0
  233. package/dist/src/views/scheduling/composables/useScheduleViewportFit.d.ts +9 -0
  234. package/dist/src/views/scheduling/country-rules/index.d.ts +33 -0
  235. package/dist/src/views/scheduling/data.d.ts +123 -0
  236. package/dist/src/views/scheduling/locales/index.d.ts +6988 -0
  237. package/dist/src/views/scheduling/schedule-constants.d.ts +7 -0
  238. package/dist/src/views/scheduling/schedule-state.d.ts +767 -0
  239. package/dist/src/views/scheduling/schedule-store.d.ts +140 -0
  240. package/dist/src/views/scheduling/types.d.ts +381 -0
  241. package/dist/src/views/team/components/BasePermission.vue.d.ts +0 -11
  242. package/dist/src/views/team/components/ConditionPermission.vue.d.ts +0 -11
  243. package/dist/src/views/team/components/PortalConditionForm.vue.d.ts +2 -2
  244. package/dist/src/views/team/components/PortalPermissionEditor.vue.d.ts +0 -21
  245. package/dist/src/views/team/components/PosRolePermission.vue.d.ts +0 -11
  246. package/dist/src/views/team/condition-builders/ConditionBuilderForm.vue.d.ts +2 -2
  247. package/dist/src/views/team/locales/index.d.ts +0 -716
  248. package/dist/src/views/team/member/AddMemberForm.vue.d.ts +3 -50
  249. package/dist/src/views/team/{components/MemberStatusBadge.vue.d.ts → member/MemberInfo.vue.d.ts} +2 -2
  250. package/dist/src/views/team/member/TeamMemberList.vue.d.ts +0 -1
  251. package/dist/src/views/team/member/TeamMemberMasterUser.vue.d.ts +0 -2
  252. package/dist/string-VNuQNweN.js +15 -0
  253. package/dist/style.css +1 -1
  254. package/dist/tsconfig.app.tsbuildinfo +1 -1
  255. package/dist/{useAppStore-CL6EEDuw.js → useAppStore-DZCdxlCd.js} +1 -1
  256. package/dist/useDiscardConfirm-CzZSPyvh.js +28 -0
  257. package/dist/{useLoading-BBjBUzGJ.js → useLoading-Nygx2zn8.js} +1 -1
  258. package/dist/{useReportPermissions-Bg0fma6m.js → useReportPermissions-CxV7Dz1B.js} +3 -3
  259. package/package.json +5 -3
  260. package/dist/AuditLogList-Dd6HyFhk.js +0 -1777
  261. package/dist/ConditionBuilderForm.vue_vue_type_script_setup_true_lang-Cixg_icC.js +0 -459
  262. package/dist/EmployeeList-BG2KPvOB.js +0 -908
  263. package/dist/Main-BSHf8gTE.js +0 -100
  264. package/dist/MyPosProfile-CN8Bj3aV.js +0 -301
  265. package/dist/PasscodePinField.vue_vue_type_script_setup_true_lang-TXPEqa46.js +0 -126
  266. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BBoRXQPn.js +0 -4243
  267. package/dist/PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-B5QDOF0L.js +0 -1840
  268. package/dist/SelectFilter-ATOm0hdn.js +0 -269
  269. package/dist/TeamMemberList-DZfEnOs1.js +0 -2097
  270. package/dist/member-grant-C46lvrh2.js +0 -55
  271. package/dist/restaurant-CKhT6kgj.js +0 -45
  272. package/dist/src/api/my-pos-profile/index.d.ts +0 -5
  273. package/dist/src/api/staff-invite/index.d.ts +0 -17
  274. package/dist/src/components/form/SegmentedTabs.vue.d.ts +0 -23
  275. package/dist/src/composables/useMenuAccess.d.ts +0 -56
  276. package/dist/src/composables/useStaffInviteProviders.d.ts +0 -19
  277. package/dist/src/helpers/member-grant.d.ts +0 -36
  278. package/dist/src/helpers/my-pos-profile.d.ts +0 -37
  279. package/dist/src/helpers/pos-assignment-rows.d.ts +0 -26
  280. package/dist/src/helpers/staff-invite.d.ts +0 -51
  281. package/dist/src/router/menu-access-guard.d.ts +0 -17
  282. package/dist/src/types/my-pos-profile.d.ts +0 -25
  283. package/dist/src/types/staff-invite.d.ts +0 -100
  284. package/dist/src/views/my-pos-profile/components/PasscodeChangedDialog.vue.d.ts +0 -4
  285. package/dist/src/views/my-pos-profile/locales/index.d.ts +0 -200
  286. package/dist/src/views/team/components/MemberGrantFields.vue.d.ts +0 -55
  287. package/dist/src/views/team/components/PosAssignmentRows.vue.d.ts +0 -46
  288. package/dist/src/views/team/member/MemberDetailsCard.vue.d.ts +0 -35
  289. package/dist/src/views/team/member/MemberHeaderCard.vue.d.ts +0 -19
  290. package/dist/string-DZQ1uNjn.js +0 -22
  291. package/dist/useDiscardConfirm-DPhEV6v0.js +0 -157
  292. /package/dist/src/{views/my-pos-profile/MyPosProfile.vue.d.ts → components/layout/SchedulePromoBanner.vue.d.ts} +0 -0
@@ -1,55 +0,0 @@
1
- import { m as i, w as u } from "./app-CdrnR_Pw.js";
2
- import { n as a, l as m, q as l, o as d, m as p } from "./rule-BlMymDXm.js";
3
- const f = [
4
- i.Subject.Business.restaurant,
5
- i.Subject.Business.role,
6
- i.Subject.Restaurant.restaurant,
7
- i.Subject.Business.inventory_stock
8
- ], n = (s) => f.includes(s.subject);
9
- function P(s, r) {
10
- return r.length > 0 || s.some((e) => !e.inverted && !n(e));
11
- }
12
- function j(s) {
13
- return s.filter(n);
14
- }
15
- const R = {
16
- customPermissions: [],
17
- permissions: [],
18
- permissionSetIds: [],
19
- posUser: void 0
20
- };
21
- function E(s) {
22
- const r = a(
23
- m(s.userPermissions, s.reportSubjects),
24
- s.defaultReportSubjects
25
- ), { posUser: e, savedPosUser: o } = s;
26
- return {
27
- customPermissions: l(
28
- p(s.inheritedPermissions),
29
- d(r)
30
- ),
31
- permissions: r.filter((t) => !t.inverted).map((t) => ({ ...t, subject: u(t.subject) })),
32
- permissionSetIds: s.permissionSetIds,
33
- posUser: e ? {
34
- ...e,
35
- name: e.name || (o == null ? void 0 : o.name) || s.fallbackName,
36
- code: e.code || (o == null ? void 0 : o.code) || "",
37
- passcode: e.passcode,
38
- roles: e.roles.filter((t) => !!t.roleId)
39
- } : e === null ? null : void 0
40
- };
41
- }
42
- function h(s, r) {
43
- const { posUser: e, ...o } = s;
44
- if (!e || !r || e.passcode !== r.passcode) return { ...o, posUser: e };
45
- const { passcode: t, ...c } = e;
46
- return { ...o, posUser: c };
47
- }
48
- export {
49
- R as E,
50
- f as W,
51
- E as b,
52
- P as h,
53
- h as t,
54
- j as w
55
- };
@@ -1,45 +0,0 @@
1
- import { defineStore as v, storeToRefs as m } from "pinia";
2
- import { ref as i } from "vue";
3
- import { useCoreStore as p } from "@feedmepos/mf-common";
4
- import { g as R, b as g } from "./app-CdrnR_Pw.js";
5
- const y = {
6
- async readRestaurants() {
7
- return R(await g().get("/hr-restaurants"));
8
- }
9
- }, I = v("restaurant", () => {
10
- const { currentBusiness: s } = p(), u = i([]), l = i(!1), n = i(null);
11
- let e = null, t = null;
12
- async function c(o = !1) {
13
- var f, d;
14
- const a = ((f = s.value) == null ? void 0 : f._id) ?? ((d = s.value) == null ? void 0 : d.id) ?? null;
15
- if (!a) {
16
- u.value = [], n.value = null, e = null, t = null;
17
- return;
18
- }
19
- if (n.value && n.value !== a && (u.value = [], n.value = null), t && t !== a && (e = null, t = null), !o && n.value === a) return;
20
- if (!o && e && t === a)
21
- return await e;
22
- let r = null;
23
- try {
24
- l.value = !0, r = (async () => {
25
- u.value = await y.readRestaurants(), n.value = a;
26
- })(), e = r, t = a, await r;
27
- } finally {
28
- e === r && (e = null, t = null), l.value = !1;
29
- }
30
- }
31
- return {
32
- restaurants: u,
33
- isLoading: l,
34
- readRestaurants: c
35
- };
36
- }), x = () => {
37
- const s = I();
38
- return {
39
- ...s,
40
- ...m(s)
41
- };
42
- };
43
- export {
44
- x as u
45
- };
@@ -1,5 +0,0 @@
1
- import type { FdtoMyPosPasscode, FdtoMyPosProfile, FdtoRegenerateMyPosPasscodeRes } from '@/types/my-pos-profile';
2
- export declare const readMyPosProfile: () => Promise<FdtoMyPosProfile>;
3
- /** D50: the signed-in user's own current passcode. */
4
- export declare const readMyPosPasscode: () => Promise<FdtoMyPosPasscode>;
5
- export declare const regenerateMyPosPasscode: () => Promise<FdtoRegenerateMyPosPasscodeRes>;
@@ -1,17 +0,0 @@
1
- import type { IFdtoCreateStaffInviteReq, IFdtoCreateStaffInviteRes, IFdtoResendStaffInviteRes, IFdtoStaffInvite, IFdtoStaffInviteLookup, IFdtoStaffInviteProvider, IFdtoUpdateStaffInviteReq } from '@/types/staff-invite';
2
- declare const StaffInviteAPI: {
3
- readProviders(): Promise<IFdtoStaffInviteProvider[]>;
4
- readInvites(status?: IFdtoStaffInvite["status"]): Promise<IFdtoStaffInvite[]>;
5
- lookup(key: {
6
- mobile: string;
7
- } | {
8
- email: string;
9
- }, provider?: string): Promise<IFdtoStaffInviteLookup | null>;
10
- createInvite(req: IFdtoCreateStaffInviteReq): Promise<IFdtoCreateStaffInviteRes>;
11
- updateInvite(id: string, req: IFdtoUpdateStaffInviteReq): Promise<IFdtoStaffInvite>;
12
- revokeInvite(id: string): Promise<{
13
- ok: true;
14
- }>;
15
- resendInvite(id: string): Promise<IFdtoResendStaffInviteRes>;
16
- };
17
- export default StaffInviteAPI;
@@ -1,23 +0,0 @@
1
- declare const _default: <T extends string>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
2
- props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
3
- readonly "onUpdate:modelValue"?: ((value: T) => any) | undefined;
4
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:modelValue"> & ({
5
- items: {
6
- label: string;
7
- value: T;
8
- }[];
9
- disabled?: boolean;
10
- } & {
11
- modelValue: T;
12
- }) & Partial<{}>> & import("vue").PublicProps;
13
- expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
14
- attrs: any;
15
- slots: {};
16
- emit: (evt: "update:modelValue", value: T) => void;
17
- }>) => import("vue").VNode & {
18
- __ctx?: Awaited<typeof __VLS_setup>;
19
- };
20
- export default _default;
21
- type __VLS_PrettifyLocal<T> = {
22
- [K in keyof T]: T[K];
23
- } & {};
@@ -1,56 +0,0 @@
1
- import { type ComputedRef } from 'vue';
2
- import { type LocationQuery, type RouteLocationMatched } from 'vue-router';
3
- import { RouteName } from '@/router/shared';
4
- /**
5
- * One HRM side-menu entry. `to` is the route the item opens; its accessibility is the
6
- * accessibility of that route, so the menu and the route guards can never disagree.
7
- */
8
- export interface MenuItemDef {
9
- /** FmCollapsibleTabs value; kept identical to the values the Navigator always used. */
10
- value: string;
11
- labelKey: string;
12
- to: RouteName;
13
- /** Carry the current query (business query state) along when navigating. */
14
- keepQuery: boolean;
15
- /** Route names that highlight this item. */
16
- activeRoutes: RouteName[];
17
- }
18
- export interface MenuAccessItem extends MenuItemDef {
19
- accessible: boolean;
20
- /** Access is not known yet (only My POS Profile, while its lookup runs). */
21
- loading: boolean;
22
- }
23
- /**
24
- * Menu order: existing items first, My POS Profile last. Built lazily because
25
- * `@/router/shared` imports this module (through the route guard), so `RouteName` is not
26
- * initialised yet while this module is first evaluated.
27
- */
28
- export declare function menuItemDefs(): MenuItemDef[];
29
- type SessionUser = {
30
- _role?: string;
31
- permissions: unknown[];
32
- } | null | undefined;
33
- /**
34
- * Same rule `withPermission` applies (hrm-permission `validateRoute` → `validate`): every
35
- * matched record's `meta.validationManifest` must pass its role list and its CASL
36
- * requirements, checked with the package's own `checkAccess`. `validateRoute` itself is not
37
- * exported, so this walks the manifests and delegates the rule to `checkAccess`.
38
- * No route here uses `customValidationFunction`; a manifest that has one is left to
39
- * `withPermission` (treated as passing here).
40
- */
41
- export declare function passesRouteManifests(matched: readonly Pick<RouteLocationMatched, 'meta'>[], sessionUser: SessionUser): boolean;
42
- /** Test hook: forget every cached lookup. */
43
- export declare function resetMenuAccessCache(): void;
44
- export declare function useMenuAccess(): {
45
- items: ComputedRef<MenuAccessItem[]>;
46
- visibleItems: ComputedRef<MenuAccessItem[]>;
47
- firstAccessible: ComputedRef<MenuAccessItem | undefined>;
48
- hasPosUser: ComputedRef<boolean | undefined>;
49
- isLoading: ComputedRef<boolean>;
50
- canOpenMatched: (matched: readonly RouteLocationMatched[]) => boolean | undefined;
51
- locationFor: (item: MenuItemDef, query?: LocationQuery) => {
52
- query?: LocationQuery | undefined;
53
- name: RouteName;
54
- };
55
- };
56
- export {};
@@ -1,19 +0,0 @@
1
- import type { IFdtoStaffInviteProvider } from '@/types/staff-invite';
2
- export declare function useStaffInviteProviders(): {
3
- providers: import("vue").Ref<{
4
- slug: string;
5
- label: string;
6
- type: string;
7
- inviteMatch: import("@/types/staff-invite").StaffInviteMatch;
8
- }[], IFdtoStaffInviteProvider[] | {
9
- slug: string;
10
- label: string;
11
- type: string;
12
- inviteMatch: import("@/types/staff-invite").StaffInviteMatch;
13
- }[]>;
14
- isLoaded: import("vue").ComputedRef<boolean>;
15
- hasProviders: import("vue").ComputedRef<boolean>;
16
- canInvite: import("vue").ComputedRef<boolean>;
17
- loadProviders: () => Promise<void>;
18
- providerLabel: (slug: string) => string;
19
- };
@@ -1,36 +0,0 @@
1
- import type { FdoPermissionRule } from '@feedmepos/core/entity';
2
- import type { IFdtoPermissionSet } from '@/types/permission-set';
3
- import type { IFdtoCreatePortalUserReq, IFdtoPermissionPosUser, IFdtoUpdatePortalUserReq } from '@/types/team';
4
- /** The grant half of a portal user request: roles, custom permissions and POS master user. */
5
- export type MemberGrantPayload = Required<Pick<IFdtoCreatePortalUserReq, 'customPermissions' | 'permissions' | 'permissionSetIds'>> & Pick<IFdtoCreatePortalUserReq, 'posUser'>;
6
- export interface MemberGrantState {
7
- userPermissions: FdoPermissionRule[];
8
- /** Permission sets collected from the selected roles. */
9
- inheritedPermissions: IFdtoPermissionSet[];
10
- permissionSetIds: string[];
11
- posUser: IFdtoPermissionPosUser | null | undefined;
12
- /** Report subjects still known; report rules outside it are stale. */
13
- reportSubjects: Set<string>;
14
- defaultReportSubjects: Set<string>;
15
- /** Saved POS user, used when the form leaves name or code empty. */
16
- savedPosUser?: IFdtoPermissionPosUser;
17
- fallbackName: string;
18
- }
19
- /**
20
- * Rules that scope where a member works (outlets, warehouses, usable POS roles) rather
21
- * than which portal pages they open. "Where they work" edits these; "Portal access" the rest.
22
- */
23
- export declare const WORKPLACE_SUBJECTS: readonly string[];
24
- /** Whether a grant opens any portal page: a role, or a granted rule beyond the workplace ones. */
25
- export declare function hasPortalAccess(rules: FdoPermissionRule[], permissionSetIds: string[]): boolean;
26
- /** Portal access off: keep only where they work, so they get My POS Profile and nothing else. */
27
- export declare function withoutPortalAccess(rules: FdoPermissionRule[]): FdoPermissionRule[];
28
- /** What an untouched grant section submits. */
29
- export declare const EMPTY_MEMBER_GRANT: MemberGrantPayload;
30
- export declare function buildMemberGrantPayload(state: MemberGrantState): MemberGrantPayload;
31
- /**
32
- * Member edit request: the passcode goes out only when the admin changed it. The form
33
- * holds the passcode loaded when it opened; sending that back would overwrite a newer one
34
- * the member set in My POS Profile (KDI-5225 review #2). Add member sends it as is.
35
- */
36
- export declare function toMemberUpdateReq(req: IFdtoCreatePortalUserReq, saved: IFdtoPermissionPosUser | undefined): IFdtoUpdatePortalUserReq;
@@ -1,37 +0,0 @@
1
- import type { FdtoMyPosProfile, FdtoMyPosProfileAssignment } from '@/types/my-pos-profile';
2
- type Profile = NonNullable<FdtoMyPosProfile['profile']>;
3
- export interface MyPosProfileRow {
4
- /** Name and contact show on the first row only, as in the design. */
5
- name: string | null;
6
- contact: string | null;
7
- restaurant: string;
8
- role: string;
9
- assignment: FdtoMyPosProfileAssignment;
10
- }
11
- /** A null phone number shows the email instead (contract). */
12
- export declare const profileContact: (profile: Profile) => string;
13
- /** One row per assignment; name and contact on the first row only. */
14
- export declare function toProfileRows(profile: Profile): MyPosProfileRow[];
15
- /**
16
- * "Updated …" for the passcode card: null when the change time is unknown (D53: the line
17
- * is hidden), "just now" under a minute, else a localized relative time. Weeks run to 13
18
- * (the design shows "12 weeks ago") before months take over.
19
- */
20
- export declare function formatPasscodeUpdated(updatedAt: string | null, t: (key: string, values?: Record<string, unknown>) => string, locale: string, now?: number): string | null;
21
- /**
22
- * Opens account-service's Manage Account page through the FeedMeAuth that
23
- * @feedmepos/mf-common exposes (the same page the portal shell's "Manage Account" leads
24
- * to). openManageProfile is newer than the @feedmepos/auth types this app builds against,
25
- * so it is looked up at runtime. Returns false when it is missing or throws (e.g. no
26
- * FeedMe session), for the caller to report.
27
- */
28
- export declare function openManageAccount(auth: object): boolean;
29
- /**
30
- * 409 `pos_user_shared`: the POS user's id is shared with another team member, so the
31
- * backend refuses to show or change it (KDI-5225 review #1). Checked structurally, so
32
- * callers need not import the API client.
33
- */
34
- export declare const isPosUserSharedError: (err: unknown) => boolean;
35
- /** Locale key for a failed Change passcode. */
36
- export declare function passcodeChangeErrorKey(err: unknown): string;
37
- export {};
@@ -1,26 +0,0 @@
1
- import type { HrmRestaurant } from '@/types/restaurant';
2
- import type { Role } from '@/types/role';
3
- import type { IFdtoPermissionPosUserRole } from '@/types/team';
4
- /** One row of the POS access card: the outlets that share a POS role. */
5
- export interface PosAssignmentRow {
6
- restaurantIds: string[];
7
- roleId: string;
8
- }
9
- export interface SelectOption {
10
- label: string;
11
- value: string;
12
- disabled: boolean;
13
- }
14
- /** Groups a POS user's per-outlet roles into rows by role, in first-seen order. */
15
- export declare function toRows(roles: IFdtoPermissionPosUserRole[]): PosAssignmentRow[];
16
- /** The per-outlet roles a POS user stores. A row without outlets adds nothing. */
17
- export declare function toRoles(rows: PosAssignmentRow[]): IFdtoPermissionPosUserRole[];
18
- export declare function sameRoles(a: IFdtoPermissionPosUserRole[], b: IFdtoPermissionPosUserRole[]): boolean;
19
- export declare function restaurantLabel(restaurant: HrmRestaurant): string;
20
- /** Outlets for a row; one already in another row can't be picked twice. */
21
- export declare function rowRestaurantOptions(restaurants: HrmRestaurant[], rows: PosAssignmentRow[], index: number): SelectOption[];
22
- /** Roles that exist at every outlet of the row; unusable ones stay visible but disabled. */
23
- export declare function rowRoleOptions(roles: Role[], row: PosAssignmentRow, isRoleUsable: (role: Role) => boolean): SelectOption[];
24
- /** Keeps the row's role when it still applies to all its outlets, else the first usable one. */
25
- export declare function pickRowRole(roles: Role[], row: PosAssignmentRow, isRoleUsable: (role: Role) => boolean): string;
26
- export declare function canAddRow(restaurants: HrmRestaurant[], rows: PosAssignmentRow[]): boolean;
@@ -1,51 +0,0 @@
1
- import type { RawRule } from '@casl/ability';
2
- import { type IFdtoCreateStaffInviteReq, type IFdtoCreateStaffInviteRes, type IFdtoStaffInvite, type IFdtoStaffInviteProvider, type IFdtoUpdateStaffInviteReq, type StaffInviteMatch, type StaffInviteWarning } from '@/types/staff-invite';
3
- type Translate = (key: string, params?: Record<string, unknown>) => string;
4
- /**
5
- * Same check the backend makes for POST /portal-users: create on hrm::portalUsers, which the
6
- * Team member toggle (hrm_teamMember:manage) grants through its system permission set.
7
- */
8
- export declare function canCreatePortalUsers(permissions: RawRule[]): boolean;
9
- export declare function canInviteStaff(providers: IFdtoStaffInviteProvider[], permissions: RawRule[]): boolean;
10
- /** E.164 form of a valid phone number, or null. */
11
- export declare function toE164(phone: string): string | null;
12
- /** False for an empty field, including the bare dial code FmPhoneNumber keeps in its model. */
13
- export declare function hasPhoneInput(phone: string): boolean;
14
- export declare function isValidEmail(email: string): boolean;
15
- export declare const DISPLAY_NAME_MAX_LENGTH = 100;
16
- export declare const EMPLOYEE_ID_MAX_LENGTH = 50;
17
- export declare function staffInviteKey(invite: IFdtoStaffInvite): string;
18
- /** What the Update member sheet edits besides the grant. */
19
- export interface InviteDetailsEdit {
20
- displayName: string;
21
- employeeId: string;
22
- /** The contact that isn't the sign-in key; '' clears it. */
23
- contact: string;
24
- }
25
- /**
26
- * An invite edit from the Update member sheet. Without `details` the name, employee ID and
27
- * contact stay as saved (the backend clears a contact that is left out, so it is resent).
28
- */
29
- export declare function toInviteGrantUpdateReq(invite: IFdtoStaffInvite, grant: Pick<IFdtoCreateStaffInviteReq, 'permissions' | 'customPermissions' | 'permissionSetIds' | 'posUser'>, details?: InviteDetailsEdit): IFdtoUpdateStaffInviteReq;
30
- /** Provider label and key type, for copy that names the IdP or says "number"/"email". */
31
- export interface StaffInviteCopyContext {
32
- label: string;
33
- match: StaffInviteMatch;
34
- }
35
- /** One message per warning. A direct add has no invite, so its copy says so. */
36
- export declare function staffInviteWarningMessages(warnings: StaffInviteWarning[], ctx: StaffInviteCopyContext, t: Translate, result?: IFdtoCreateStaffInviteRes['result']): string[];
37
- export declare function staffInviteResultMessage(res: IFdtoCreateStaffInviteRes, ctx: StaffInviteCopyContext, t: Translate): {
38
- title: string;
39
- lines: string[];
40
- };
41
- /**
42
- * The message of a rejected request. The portal's own client rejects with an `ApiError`;
43
- * mf-common's `baseClientInstance` (used when no backend URL is configured) rejects with the
44
- * plain message string.
45
- */
46
- export declare function errorMessageOf(err: unknown): string;
47
- /** The invite was claimed, revoked or deleted elsewhere: the row is stale. */
48
- export declare function isStaleInviteError(err: unknown): boolean;
49
- /** Copy for a backend error code; any other message is shown as is. */
50
- export declare function staffInviteErrorMessage(err: unknown, ctx: StaffInviteCopyContext, t: Translate): string;
51
- export {};
@@ -1,17 +0,0 @@
1
- import { type Component } from 'vue';
2
- /**
3
- * Wraps a top-level route component so a user who can't open the current route lands on
4
- * the first menu item they can open (D52). It lives in the route records, so it works in
5
- * the standalone router and in the host portal that mounts `routes`.
6
- *
7
- * - Accessible: render the page.
8
- * - Not accessible, access still loading: render nothing (no flash of the no-permission page).
9
- * - Not accessible, some item accessible: replace with that item.
10
- * - Nothing accessible: today's behaviour. A route with a permission manifest renders its
11
- * page, whose `withPermission` shows the no-permission screen; any other route (landing,
12
- * My POS Profile) goes to Employee, which does the same. Targets are always either
13
- * accessible or manifest-guarded, so this never loops.
14
- */
15
- export declare function withMenuAccess(Comp?: Component): Component;
16
- /** `/`: shows nothing and sends the user to the first page they can open. */
17
- export declare const MenuLanding: Component;
@@ -1,25 +0,0 @@
1
- /** GET /my-pos-profile response (shared contract with the HRM menu, KDI-5225). */
2
- export interface FdtoMyPosProfile {
3
- hasPosUser: boolean;
4
- profile: null | {
5
- name: string;
6
- phoneNumber: string | null;
7
- email: string | null;
8
- assignments: {
9
- restaurantId: string;
10
- restaurantName: string;
11
- restaurantCode: string | null;
12
- roleId: string;
13
- roleName: string;
14
- }[];
15
- passcodeUpdatedAt: string | null;
16
- };
17
- }
18
- export type FdtoMyPosProfileAssignment = NonNullable<FdtoMyPosProfile['profile']>['assignments'][number];
19
- export interface FdtoMyPosPasscode {
20
- passcode: string;
21
- }
22
- export interface FdtoRegenerateMyPosPasscodeRes {
23
- passcode: string;
24
- passcodeUpdatedAt: string;
25
- }
@@ -1,100 +0,0 @@
1
- import type { FdoPermissionRule } from '@feedmepos/core/entity';
2
- import type { IFdtoPermissionPosUser } from '@/types/team';
3
- /** Wire contract: account-service-zus-lark-sso/part-b-contract.md §2.2. */
4
- export type StaffInviteMatch = 'mobile' | 'email';
5
- export type StaffInviteWarning = 'not_in_org' | 'dm_unavailable' | 'dm_failed';
6
- export declare const STAFF_INVITE_ERROR_CODES: readonly ["provider_unavailable", "key_mismatch", "key_required", "invalid_key", "invalid_contact", "already_member", "ambiguous_account", "invite_exists", "not_pending"];
7
- export type StaffInviteErrorCode = (typeof STAFF_INVITE_ERROR_CODES)[number];
8
- export type StaffInvitePosUser = IFdtoPermissionPosUser | null;
9
- export type StaffInviteDmStatus = 'sent' | 'not_in_org' | 'unsupported' | 'failed';
10
- export interface IFdtoStaffInviteProvider {
11
- slug: string;
12
- label: string;
13
- type: string;
14
- inviteMatch: StaffInviteMatch;
15
- }
16
- export interface IFdtoStaffInviteGrant {
17
- permissions: FdoPermissionRule[];
18
- customPermissions: FdoPermissionRule[];
19
- permissionSetIds: string[];
20
- posUser: StaffInvitePosUser;
21
- }
22
- export interface IFdtoStaffInvite {
23
- _id: string;
24
- businessId: string;
25
- provider: string;
26
- match: StaffInviteMatch;
27
- mobile?: string;
28
- email?: string;
29
- /** The other way to reach them; never matched on. */
30
- contact?: {
31
- mobile?: string;
32
- email?: string;
33
- };
34
- displayName?: string;
35
- employeeId?: string | null;
36
- grant: IFdtoStaffInviteGrant;
37
- status: 'pending' | 'claiming' | 'claimed' | 'revoked';
38
- createdBy: string;
39
- createdAt: string;
40
- updatedAt: string;
41
- claimedBy?: string;
42
- claimedAt?: string;
43
- claimOutcome?: 'granted' | 'already_member' | 'granted_without_pos';
44
- posConflict?: {
45
- restaurantId: string;
46
- reason: 'passcode_taken';
47
- }[];
48
- dm?: {
49
- status: StaffInviteDmStatus;
50
- at: string;
51
- };
52
- revokedBy?: string;
53
- revokedAt?: string;
54
- }
55
- export interface IFdtoCreateStaffInviteReq {
56
- provider: string;
57
- /** The sign-in key; the other of mobile/email is contact only. */
58
- match: StaffInviteMatch;
59
- mobile?: string;
60
- email?: string;
61
- displayName: string;
62
- employeeId?: string;
63
- permissions: FdoPermissionRule[];
64
- customPermissions: FdoPermissionRule[];
65
- permissionSetIds?: string[];
66
- posUser?: StaffInvitePosUser;
67
- }
68
- /** The key is fixed: only the mobile/email that isn't the key applies ('' clears it). */
69
- export type IFdtoUpdateStaffInviteReq = Omit<IFdtoCreateStaffInviteReq, 'provider' | 'match'>;
70
- /** Who already answers to a sign-in key: a member, or an open invite. */
71
- export type IFdtoStaffInviteLookup = {
72
- kind: 'member';
73
- id: string;
74
- name: string;
75
- restaurantCount: number;
76
- isOwner: boolean;
77
- } | {
78
- kind: 'invite';
79
- id: string;
80
- name: string;
81
- restaurantCount: number;
82
- invite: IFdtoStaffInvite;
83
- };
84
- export type IFdtoCreateStaffInviteRes = {
85
- result: 'added';
86
- uid: string;
87
- portalUserId: string;
88
- warnings: StaffInviteWarning[];
89
- } | {
90
- result: 'invited';
91
- invite: IFdtoStaffInvite;
92
- warnings: StaffInviteWarning[];
93
- };
94
- export interface IFdtoResendStaffInviteRes {
95
- dm: {
96
- status: StaffInviteDmStatus;
97
- at: string;
98
- };
99
- warnings: StaffInviteWarning[];
100
- }
@@ -1,4 +0,0 @@
1
- declare const _default: import("vue").DefineComponent<{}, {
2
- open: (code: string) => void;
3
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
4
- export default _default;