@feedmepos/mf-hrm-portal 2.3.1-dev.1 → 2.3.2-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ApprovalCodeList-CDU3yUHy.js → ApprovalCodeList-xOyDG5ug.js} +7 -7
- package/dist/AuditLogList-Dd6HyFhk.js +1777 -0
- package/dist/ConditionBuilderForm.vue_vue_type_script_setup_true_lang-Cixg_icC.js +459 -0
- package/dist/EmployeeList-BG2KPvOB.js +908 -0
- package/dist/{FormItem.vue_vue_type_script_setup_true_lang-Clh43Y-8.js → FormItem.vue_vue_type_script_setup_true_lang-DPT2FoIc.js} +6 -6
- package/dist/{GrantUserList-Cw8RkFqf.js → GrantUserList-CUkuf3VV.js} +8 -8
- package/dist/Main-BSHf8gTE.js +100 -0
- package/dist/{Main-Dlar77Zq.js → Main-BcixH7R5.js} +11 -11
- package/dist/{Main-BxcRbcce.js → Main-Cg9SOzcz.js} +5 -5
- package/dist/MyPosProfile-CN8Bj3aV.js +301 -0
- package/dist/PasscodePinField.vue_vue_type_script_setup_true_lang-TXPEqa46.js +126 -0
- package/dist/{PermissionSetList-_8aBzGy7.js → PermissionSetList-I3u2_qHR.js} +33 -35
- package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BBoRXQPn.js +4243 -0
- package/dist/PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-B5QDOF0L.js +1840 -0
- package/dist/{RoleList-C3n_zOB3.js → RoleList-ALmAwN0U.js} +20 -21
- package/dist/SelectFilter-ATOm0hdn.js +269 -0
- package/dist/TeamMemberList-DZfEnOs1.js +2097 -0
- package/dist/{TimesheetList-BqRIZBt1.js → TimesheetList-CECFKt7H.js} +11 -11
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-oIBUAjtv.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-RIyoAmeb.js} +3 -3
- package/dist/{app-DFL6Nv_p.js → app-CdrnR_Pw.js} +6647 -11430
- package/dist/app.js +3 -3
- package/dist/{approval-code-BXUiojPH.js → approval-code-Bwvwehz9.js} +1 -1
- package/dist/{dayjs.min-CH-gVmsz.js → dayjs.min-BO8bcI17.js} +13 -13
- package/dist/{employee-3xpIjR6i.js → employee-Dg-J9goA.js} +62 -66
- package/dist/{grant-user-CBJ3gEgW.js → grant-user-whFOaPZI.js} +1 -1
- package/dist/{iteration-D6wutq5U.js → iteration-ZpERYj3o.js} +1 -1
- package/dist/{lodash-D5kU1nPN.js → lodash-7SZBZ8VQ.js} +1 -1
- package/dist/member-grant-C46lvrh2.js +55 -0
- package/dist/restaurant-CKhT6kgj.js +45 -0
- package/dist/{role-B7nu6hH1.js → role-C6hFKOfU.js} +5 -4
- package/dist/{rule-CMd6SL3n.js → rule-BlMymDXm.js} +99 -94
- package/dist/src/api/audit-log/index.d.ts +0 -4
- package/dist/src/api/employee/index.d.ts +2 -2
- package/dist/src/api/my-pos-profile/index.d.ts +5 -0
- package/dist/src/api/restaurant/index.d.ts +0 -2
- package/dist/src/api/staff-invite/index.d.ts +17 -0
- package/dist/src/components/AppForm.vue.d.ts +2 -2
- package/dist/src/components/CheckboxInput.vue.d.ts +2 -2
- package/dist/src/components/CollapsibleWrapper.vue.d.ts +11 -3
- package/dist/src/components/form/SegmentedTabs.vue.d.ts +23 -0
- package/dist/src/composables/useDiscardConfirm.d.ts +1 -3
- package/dist/src/composables/useMenuAccess.d.ts +56 -0
- package/dist/src/composables/useMessage.d.ts +2 -8
- package/dist/src/composables/useStaffInviteProviders.d.ts +19 -0
- package/dist/src/helpers/member-grant.d.ts +36 -0
- package/dist/src/helpers/my-pos-profile.d.ts +37 -0
- package/dist/src/helpers/pos-assignment-rows.d.ts +26 -0
- package/dist/src/helpers/staff-invite.d.ts +51 -0
- package/dist/src/helpers/string.d.ts +10 -1
- package/dist/src/router/menu-access-guard.d.ts +17 -0
- package/dist/src/router/shared.d.ts +2 -3
- package/dist/src/stores/employee.d.ts +12 -12
- package/dist/src/stores/restaurant.d.ts +7 -7
- package/dist/src/stores/team.d.ts +30 -0
- package/dist/src/types/employee.d.ts +0 -1
- package/dist/src/types/my-pos-profile.d.ts +25 -0
- package/dist/src/types/staff-invite.d.ts +100 -0
- package/dist/src/types/team.d.ts +17 -1
- package/dist/src/views/audit-log/constants.d.ts +30 -9
- package/dist/src/views/audit-log/locales/index.d.ts +0 -488
- package/dist/src/views/my-pos-profile/components/PasscodeChangedDialog.vue.d.ts +4 -0
- package/dist/src/views/my-pos-profile/locales/index.d.ts +200 -0
- package/dist/src/views/team/components/BasePermission.vue.d.ts +11 -0
- package/dist/src/views/team/components/ConditionPermission.vue.d.ts +11 -0
- package/dist/src/views/team/components/MemberGrantFields.vue.d.ts +55 -0
- package/dist/src/views/team/{member/MemberInfo.vue.d.ts → components/MemberStatusBadge.vue.d.ts} +2 -2
- package/dist/src/views/team/components/PortalConditionForm.vue.d.ts +2 -2
- package/dist/src/views/team/components/PortalPermissionEditor.vue.d.ts +21 -0
- package/dist/src/views/team/components/PosAssignmentRows.vue.d.ts +46 -0
- package/dist/src/views/team/components/PosRolePermission.vue.d.ts +11 -0
- package/dist/src/views/team/condition-builders/ConditionBuilderForm.vue.d.ts +2 -2
- package/dist/src/views/team/locales/index.d.ts +716 -0
- package/dist/src/views/team/member/AddMemberForm.vue.d.ts +50 -3
- package/dist/src/views/{scheduling/components/ScheduleOnboardingHoursProfileNotice.vue.d.ts → team/member/ExistingMemberNotice.vue.d.ts} +6 -5
- package/dist/src/views/team/member/MemberDetailsCard.vue.d.ts +35 -0
- package/dist/src/views/team/member/MemberHeaderCard.vue.d.ts +19 -0
- package/dist/src/views/team/member/TeamMemberList.vue.d.ts +1 -0
- package/dist/src/views/team/member/TeamMemberMasterUser.vue.d.ts +2 -0
- package/dist/string-DZQ1uNjn.js +22 -0
- package/dist/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-DZCdxlCd.js → useAppStore-CL6EEDuw.js} +1 -1
- package/dist/useDiscardConfirm-DPhEV6v0.js +157 -0
- package/dist/{useLoading-Nygx2zn8.js → useLoading-BBjBUzGJ.js} +1 -1
- package/dist/{useReportPermissions-BcxIKxlF.js → useReportPermissions-Bg0fma6m.js} +3 -3
- package/package.json +3 -5
- package/dist/AuditLogList-BU11Q5sF.js +0 -1950
- package/dist/ConditionBuilderForm.vue_vue_type_script_setup_true_lang-BjHwyaXu.js +0 -438
- package/dist/EmployeeList-BqzXg3uA.js +0 -776
- package/dist/Main-CL-ysWRu.js +0 -96
- package/dist/PasscodePinField.vue_vue_type_script_setup_true_lang-CqG0v0Sz.js +0 -243
- package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-CNgtAtYH.js +0 -4167
- package/dist/PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-DQcgZ0nF.js +0 -35
- package/dist/ResponsiveContextMenu.vue_vue_type_script_setup_true_lang-mSJFKo7r.js +0 -132
- package/dist/ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-CnrbCggg.js +0 -544
- package/dist/ScheduleGeneralPage-DGHKW_ww.js +0 -811
- package/dist/ScheduleModal.vue_vue_type_script_setup_true_lang-AfTAGsh1.js +0 -2556
- package/dist/SchedulePage-UzDPRldO.js +0 -19458
- package/dist/SchedulePositionPage-RHETW36P.js +0 -282
- package/dist/SelectFilter-CeBV_Kug.js +0 -264
- package/dist/TeamMemberList-B-qR7VS3.js +0 -1154
- package/dist/object-Dwyg2LgX.js +0 -16
- package/dist/restaurant-D2mfKHaH.js +0 -1880
- package/dist/src/api/schedule/index.d.ts +0 -68
- package/dist/src/components/layout/PortalShell.vue.d.ts +0 -12
- package/dist/src/components/layout/withScheduleShell.d.ts +0 -10
- package/dist/src/types/schedule.d.ts +0 -23
- package/dist/src/views/audit-log/pos-row.d.ts +0 -27
- package/dist/src/views/scheduling/ScheduleGeneralPage.vue.d.ts +0 -3
- package/dist/src/views/scheduling/SchedulePage.vue.d.ts +0 -3
- package/dist/src/views/scheduling/SchedulePositionPage.vue.d.ts +0 -3
- package/dist/src/views/scheduling/components/ScheduleAddEmployeeIdentitySection.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleAddEmployeeModal.vue.d.ts +0 -12
- package/dist/src/views/scheduling/components/ScheduleAddEmployeeModeStep.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleAddEmployeePosAccessSection.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleAddEmployeePositionsSection.vue.d.ts +0 -10
- package/dist/src/views/scheduling/components/ScheduleAddEmployeeSchedulingSection.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleAddPickPopover.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleAddPositionModal.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleAreaRows.vue.d.ts +0 -41
- package/dist/src/views/scheduling/components/ScheduleAutoScheduleDetailsModal.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleAutoScheduleDoneArt.vue.d.ts +0 -2
- package/dist/src/views/scheduling/components/ScheduleAutoScheduleModal.vue.d.ts +0 -10
- package/dist/src/views/scheduling/components/ScheduleBoardAreaRows.vue.d.ts +0 -25
- package/dist/src/views/scheduling/components/ScheduleBoardEditOverlays.vue.d.ts +0 -17
- package/dist/src/views/scheduling/components/ScheduleBoardEmployeeRows.vue.d.ts +0 -31
- package/dist/src/views/scheduling/components/ScheduleBoardGridHeader.vue.d.ts +0 -29
- package/dist/src/views/scheduling/components/ScheduleBoardInteractionOverlays.vue.d.ts +0 -34
- package/dist/src/views/scheduling/components/ScheduleBoardOnboardingOverlays.vue.d.ts +0 -26
- package/dist/src/views/scheduling/components/ScheduleBoardRails.vue.d.ts +0 -17
- package/dist/src/views/scheduling/components/ScheduleBoardToolbar.vue.d.ts +0 -38
- package/dist/src/views/scheduling/components/ScheduleBoardUtilityOverlays.vue.d.ts +0 -22
- package/dist/src/views/scheduling/components/ScheduleButton.vue.d.ts +0 -23
- package/dist/src/views/scheduling/components/ScheduleChangeEmployeeModal.vue.d.ts +0 -8
- package/dist/src/views/scheduling/components/ScheduleCloneOutletModal.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleCoach.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleCompletionDialog.vue.d.ts +0 -15
- package/dist/src/views/scheduling/components/ScheduleConfirmModal.vue.d.ts +0 -33
- package/dist/src/views/scheduling/components/ScheduleContextMenu.vue.d.ts +0 -17
- package/dist/src/views/scheduling/components/ScheduleCostRail.vue.d.ts +0 -8
- package/dist/src/views/scheduling/components/ScheduleCostRailEmptyArt.vue.d.ts +0 -2
- package/dist/src/views/scheduling/components/ScheduleDateRangePopover.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleDayNotePopover.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleDayTimeline.vue.d.ts +0 -17
- package/dist/src/views/scheduling/components/ScheduleDemandRow.vue.d.ts +0 -23
- package/dist/src/views/scheduling/components/ScheduleDemandSheet.vue.d.ts +0 -10
- package/dist/src/views/scheduling/components/ScheduleDotsIcon.vue.d.ts +0 -2
- package/dist/src/views/scheduling/components/ScheduleEmployeeDetailPanel.vue.d.ts +0 -12
- package/dist/src/views/scheduling/components/ScheduleEmployeeIdentity.vue.d.ts +0 -17
- package/dist/src/views/scheduling/components/ScheduleExportPreview.vue.d.ts +0 -7
- package/dist/src/views/scheduling/components/ScheduleFilterBar.vue.d.ts +0 -18
- package/dist/src/views/scheduling/components/ScheduleGapPopover.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleGridHeader.vue.d.ts +0 -18
- package/dist/src/views/scheduling/components/ScheduleGridSkeleton.vue.d.ts +0 -2
- package/dist/src/views/scheduling/components/ScheduleLeaveEditModal.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleLoadState.vue.d.ts +0 -9
- package/dist/src/views/scheduling/components/ScheduleModal.vue.d.ts +0 -26
- package/dist/src/views/scheduling/components/ScheduleOnboardingAssignPositionModal.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleOnboardingClosedDayConfirm.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleOnboardingDemandDays.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleOnboardingDemandFooter.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleOnboardingDemandHeader.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleOnboardingDoneArt.vue.d.ts +0 -2
- package/dist/src/views/scheduling/components/ScheduleOnboardingPositions.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleOnboardingReview.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleOnboardingSettings.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleOnboardingWelcome.vue.d.ts +0 -11
- package/dist/src/views/scheduling/components/ScheduleOnboardingWizard.vue.d.ts +0 -9
- package/dist/src/views/scheduling/components/ScheduleOnboardingWizardFooter.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleOnboardingWizardHeader.vue.d.ts +0 -11
- package/dist/src/views/scheduling/components/SchedulePublishModal.vue.d.ts +0 -8
- package/dist/src/views/scheduling/components/SchedulePublishShareArt.vue.d.ts +0 -2
- package/dist/src/views/scheduling/components/ScheduleReviewBar.vue.d.ts +0 -12
- package/dist/src/views/scheduling/components/ScheduleSelect.vue.d.ts +0 -70
- package/dist/src/views/scheduling/components/ScheduleSelectExistingEmployeeModal.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleSetupBanner.vue.d.ts +0 -12
- package/dist/src/views/scheduling/components/ScheduleShiftCell.vue.d.ts +0 -35
- package/dist/src/views/scheduling/components/ScheduleShiftHeadcountEditor.vue.d.ts +0 -10
- package/dist/src/views/scheduling/components/ScheduleShiftImpact.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleShiftMoreOptions.vue.d.ts +0 -8
- package/dist/src/views/scheduling/components/ScheduleShiftPopover.vue.d.ts +0 -16
- package/dist/src/views/scheduling/components/ScheduleShiftRepeatDaysRow.vue.d.ts +0 -8
- package/dist/src/views/scheduling/components/ScheduleShiftSegmentsEditor.vue.d.ts +0 -8
- package/dist/src/views/scheduling/components/ScheduleShiftWhoPicker.vue.d.ts +0 -25
- package/dist/src/views/scheduling/components/ScheduleStaffRail.vue.d.ts +0 -16
- package/dist/src/views/scheduling/components/ScheduleStaffRows.vue.d.ts +0 -50
- package/dist/src/views/scheduling/components/ScheduleStatsRow.vue.d.ts +0 -12
- package/dist/src/views/scheduling/components/ScheduleSwapShiftsModal.vue.d.ts +0 -8
- package/dist/src/views/scheduling/components/ScheduleTimePickerPopover.vue.d.ts +0 -6
- package/dist/src/views/scheduling/components/ScheduleTopbar.vue.d.ts +0 -20
- package/dist/src/views/scheduling/composables/auto-schedule-mapping.d.ts +0 -35
- package/dist/src/views/scheduling/composables/onboarding-constants.d.ts +0 -7
- package/dist/src/views/scheduling/composables/onboarding-hours.d.ts +0 -7
- package/dist/src/views/scheduling/composables/onboarding-types.d.ts +0 -51
- package/dist/src/views/scheduling/composables/remyPrompt.d.ts +0 -15
- package/dist/src/views/scheduling/composables/schedule-add-employee-form.d.ts +0 -82
- package/dist/src/views/scheduling/composables/schedule-board-helpers.d.ts +0 -63
- package/dist/src/views/scheduling/composables/schedule-breaks.d.ts +0 -9
- package/dist/src/views/scheduling/composables/schedule-calendar.d.ts +0 -17
- package/dist/src/views/scheduling/composables/schedule-cost.d.ts +0 -24
- package/dist/src/views/scheduling/composables/schedule-currency.d.ts +0 -22
- package/dist/src/views/scheduling/composables/schedule-day-meta.d.ts +0 -21
- package/dist/src/views/scheduling/composables/schedule-demand-domain.d.ts +0 -23
- package/dist/src/views/scheduling/composables/schedule-employee-profile.d.ts +0 -7
- package/dist/src/views/scheduling/composables/schedule-error.d.ts +0 -1
- package/dist/src/views/scheduling/composables/schedule-export-matrix.d.ts +0 -14
- package/dist/src/views/scheduling/composables/schedule-leave-split.d.ts +0 -9
- package/dist/src/views/scheduling/composables/schedule-popover-position.d.ts +0 -16
- package/dist/src/views/scheduling/composables/schedule-quick-pick.d.ts +0 -23
- package/dist/src/views/scheduling/composables/schedule-shift-time.d.ts +0 -29
- package/dist/src/views/scheduling/composables/schedule-time.d.ts +0 -8
- package/dist/src/views/scheduling/composables/schedule-week-cache.d.ts +0 -9
- package/dist/src/views/scheduling/composables/useCollapsedList.d.ts +0 -9
- package/dist/src/views/scheduling/composables/useRemyAppStore.d.ts +0 -16
- package/dist/src/views/scheduling/composables/useScheduleAddEmployee.d.ts +0 -137
- package/dist/src/views/scheduling/composables/useScheduleAddPick.d.ts +0 -75
- package/dist/src/views/scheduling/composables/useScheduleAreaBoard.d.ts +0 -50
- package/dist/src/views/scheduling/composables/useScheduleAreaDragDrop.d.ts +0 -11
- package/dist/src/views/scheduling/composables/useScheduleAssignmentMutations.d.ts +0 -13
- package/dist/src/views/scheduling/composables/useScheduleAutoSchedule.d.ts +0 -301
- package/dist/src/views/scheduling/composables/useScheduleBoard.d.ts +0 -615
- package/dist/src/views/scheduling/composables/useScheduleCellState.d.ts +0 -27
- package/dist/src/views/scheduling/composables/useScheduleClashDetection.d.ts +0 -28
- package/dist/src/views/scheduling/composables/useScheduleCloneOutletModal.d.ts +0 -21
- package/dist/src/views/scheduling/composables/useScheduleCoach.d.ts +0 -80
- package/dist/src/views/scheduling/composables/useScheduleCopyWeek.d.ts +0 -12
- package/dist/src/views/scheduling/composables/useScheduleCostRail.d.ts +0 -60
- package/dist/src/views/scheduling/composables/useScheduleDayNote.d.ts +0 -44
- package/dist/src/views/scheduling/composables/useScheduleDayTimeline.d.ts +0 -111
- package/dist/src/views/scheduling/composables/useScheduleDemand.d.ts +0 -59
- package/dist/src/views/scheduling/composables/useScheduleDemandRow.d.ts +0 -47
- package/dist/src/views/scheduling/composables/useScheduleDemandSheet.d.ts +0 -166
- package/dist/src/views/scheduling/composables/useScheduleDragDrop.d.ts +0 -55
- package/dist/src/views/scheduling/composables/useScheduleEmployeeAccess.d.ts +0 -24
- package/dist/src/views/scheduling/composables/useScheduleEmployeeAvailability.d.ts +0 -13
- package/dist/src/views/scheduling/composables/useScheduleEmployeeCandidates.d.ts +0 -49
- package/dist/src/views/scheduling/composables/useScheduleEmployeeCompensation.d.ts +0 -7
- package/dist/src/views/scheduling/composables/useScheduleEmployeeForm.d.ts +0 -22
- package/dist/src/views/scheduling/composables/useScheduleEmployeeIdentity.d.ts +0 -50
- package/dist/src/views/scheduling/composables/useScheduleEmployeeMenu.d.ts +0 -38
- package/dist/src/views/scheduling/composables/useScheduleEmployeePersistence.d.ts +0 -32
- package/dist/src/views/scheduling/composables/useScheduleEmployeeProfile.d.ts +0 -16
- package/dist/src/views/scheduling/composables/useScheduleEmployeeValidation.d.ts +0 -18
- package/dist/src/views/scheduling/composables/useScheduleExport.d.ts +0 -52
- package/dist/src/views/scheduling/composables/useScheduleFilterBar.d.ts +0 -14
- package/dist/src/views/scheduling/composables/useScheduleGapPopover.d.ts +0 -79
- package/dist/src/views/scheduling/composables/useScheduleLeave.d.ts +0 -60
- package/dist/src/views/scheduling/composables/useScheduleLegend.d.ts +0 -15
- package/dist/src/views/scheduling/composables/useScheduleOnboardingAvailability.d.ts +0 -58
- package/dist/src/views/scheduling/composables/useScheduleOnboardingDemand.d.ts +0 -45
- package/dist/src/views/scheduling/composables/useScheduleOnboardingEmployees.d.ts +0 -231
- package/dist/src/views/scheduling/composables/useScheduleOnboardingFlow.d.ts +0 -9
- package/dist/src/views/scheduling/composables/useScheduleOnboardingHours.d.ts +0 -15
- package/dist/src/views/scheduling/composables/useScheduleOnboardingNavigation.d.ts +0 -11
- package/dist/src/views/scheduling/composables/useScheduleOnboardingPersistence.d.ts +0 -13
- package/dist/src/views/scheduling/composables/useScheduleOnboardingWizard.d.ts +0 -1543
- package/dist/src/views/scheduling/composables/useScheduleOutlet.d.ts +0 -25
- package/dist/src/views/scheduling/composables/useSchedulePageActions.d.ts +0 -18
- package/dist/src/views/scheduling/composables/useSchedulePageBootstrap.d.ts +0 -9
- package/dist/src/views/scheduling/composables/useSchedulePageCellActions.d.ts +0 -21
- package/dist/src/views/scheduling/composables/useSchedulePageCellDrop.d.ts +0 -20
- package/dist/src/views/scheduling/composables/useSchedulePageClearActions.d.ts +0 -33
- package/dist/src/views/scheduling/composables/useSchedulePageEmployeeActions.d.ts +0 -22
- package/dist/src/views/scheduling/composables/useSchedulePageOverlays.d.ts +0 -21
- package/dist/src/views/scheduling/composables/useSchedulePdfExport.d.ts +0 -19
- package/dist/src/views/scheduling/composables/useSchedulePositionModal.d.ts +0 -55
- package/dist/src/views/scheduling/composables/useSchedulePositions.d.ts +0 -35
- package/dist/src/views/scheduling/composables/useSchedulePublish.d.ts +0 -127
- package/dist/src/views/scheduling/composables/useSchedulePublishPersistence.d.ts +0 -11
- package/dist/src/views/scheduling/composables/useScheduleRangeCalendar.d.ts +0 -27
- package/dist/src/views/scheduling/composables/useScheduleRoster.d.ts +0 -313
- package/dist/src/views/scheduling/composables/useScheduleSettings.d.ts +0 -40
- package/dist/src/views/scheduling/composables/useScheduleSetupBanner.d.ts +0 -17
- package/dist/src/views/scheduling/composables/useScheduleShiftActions.d.ts +0 -245
- package/dist/src/views/scheduling/composables/useScheduleShiftDraft.d.ts +0 -63
- package/dist/src/views/scheduling/composables/useScheduleShiftPersistence.d.ts +0 -17
- package/dist/src/views/scheduling/composables/useScheduleShiftPopover.d.ts +0 -255
- package/dist/src/views/scheduling/composables/useScheduleStatsRow.d.ts +0 -27
- package/dist/src/views/scheduling/composables/useScheduleTimePicker.d.ts +0 -49
- package/dist/src/views/scheduling/composables/useScheduleTour.d.ts +0 -95
- package/dist/src/views/scheduling/composables/useScheduleViewportFit.d.ts +0 -9
- package/dist/src/views/scheduling/country-rules/index.d.ts +0 -33
- package/dist/src/views/scheduling/data.d.ts +0 -123
- package/dist/src/views/scheduling/locales/index.d.ts +0 -6988
- package/dist/src/views/scheduling/schedule-constants.d.ts +0 -7
- package/dist/src/views/scheduling/schedule-state.d.ts +0 -767
- package/dist/src/views/scheduling/schedule-store.d.ts +0 -140
- package/dist/src/views/scheduling/types.d.ts +0 -381
- package/dist/string-VNuQNweN.js +0 -15
- package/dist/useDiscardConfirm-CzZSPyvh.js +0 -28
- /package/dist/src/{components/layout/SchedulePromoBanner.vue.d.ts → views/my-pos-profile/MyPosProfile.vue.d.ts} +0 -0
|
@@ -0,0 +1,56 @@
|
|
|
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,10 +1,4 @@
|
|
|
1
|
-
import { SnackbarPosition } from '@feedmepos/ui-library';
|
|
2
|
-
export interface MessageOptions {
|
|
3
|
-
/** Where the snackbar is anchored. Defaults to the library's own default (top-right). */
|
|
4
|
-
position?: SnackbarPosition;
|
|
5
|
-
}
|
|
6
1
|
export declare function useMessage(): {
|
|
7
|
-
success: (message: string
|
|
8
|
-
error: (message: string
|
|
2
|
+
success: (message: string) => void;
|
|
3
|
+
error: (message: string) => void;
|
|
9
4
|
};
|
|
10
|
-
export { SnackbarPosition };
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
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;
|
|
@@ -0,0 +1,37 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,26 @@
|
|
|
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;
|
|
@@ -0,0 +1,51 @@
|
|
|
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,6 +1,15 @@
|
|
|
1
1
|
declare function randomString(length: number, config?: {
|
|
2
2
|
includeSpecialCase: boolean;
|
|
3
3
|
}): string;
|
|
4
|
+
/**
|
|
5
|
+
* "A, B +2 more" for a selection; null means everything (the "include future" choice).
|
|
6
|
+
* Collapsed permission rows show it under their title.
|
|
7
|
+
*/
|
|
8
|
+
declare function summarizeNames(names: string[] | null, labels: {
|
|
9
|
+
all: string;
|
|
10
|
+
none: string;
|
|
11
|
+
more: (count: number) => string;
|
|
12
|
+
}, shown?: number): string;
|
|
4
13
|
declare const filter: {
|
|
5
14
|
alphabetOnly(word: string): string;
|
|
6
15
|
alphaNumeric(word: string): string;
|
|
@@ -10,4 +19,4 @@ declare const validate: {
|
|
|
10
19
|
email(input: string): RegExpMatchArray | null;
|
|
11
20
|
};
|
|
12
21
|
declare function nameInitials(name: string | null | undefined): string;
|
|
13
|
-
export { filter, validate, randomString, nameInitials };
|
|
22
|
+
export { filter, validate, randomString, nameInitials, summarizeNames };
|
|
@@ -0,0 +1,17 @@
|
|
|
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;
|
|
@@ -8,12 +8,11 @@ export declare enum RouteName {
|
|
|
8
8
|
TEAM = "team",
|
|
9
9
|
TEAM_MEMBER = "team-member",
|
|
10
10
|
TEAM_ROLE = "team-role",
|
|
11
|
+
TEAM_INVITE = "team-invite",
|
|
11
12
|
POS_ACCESS = "pos-access",
|
|
12
13
|
POS_GRANT = "pos-grant",
|
|
13
14
|
APPROVAL_CODE = "approval-code",
|
|
14
|
-
|
|
15
|
-
SCHEDULE_POSITION = "schedule-position",
|
|
16
|
-
SCHEDULE_GENERAL = "schedule-general"
|
|
15
|
+
MY_POS_PROFILE = "my-pos-profile"
|
|
17
16
|
}
|
|
18
17
|
declare const routes: RouteRecordRaw[];
|
|
19
18
|
export { routes };
|
|
@@ -377,10 +377,10 @@ export declare const useEmployeeStore: () => {
|
|
|
377
377
|
readEmployees: () => Promise<void>;
|
|
378
378
|
readEmployeesPage: (query: IReadEmployeesPageReq) => Promise<void>;
|
|
379
379
|
readAllEmployeesPage: (query: Omit<IReadEmployeesPageReq, "limit" | "offset">, knownTotal?: number) => Promise<Employee[]>;
|
|
380
|
-
createEmployee: (dto: FdtoUpdatePosUserReq) => Promise<
|
|
380
|
+
createEmployee: (dto: FdtoUpdatePosUserReq) => Promise<void>;
|
|
381
381
|
updateEmployee: (userId: string, dto: FdtoUpdatePosUserReq) => Promise<void>;
|
|
382
382
|
deleteEmployee: (employee: Employee) => Promise<void>;
|
|
383
|
-
createMasterEmployee: (dto: FdtoUpdatePosMasterUserReq) => Promise<
|
|
383
|
+
createMasterEmployee: (dto: FdtoUpdatePosMasterUserReq) => Promise<void>;
|
|
384
384
|
updateMasterEmployee: (userId: string, dto: FdtoUpdatePosMasterUserReq) => Promise<void>;
|
|
385
385
|
deleteMasterEmployee: (employee: Employee) => Promise<void>;
|
|
386
386
|
migrateToMasterUser: (userId: string, dto: FdtoUpdatePosMasterUserReq) => Promise<void>;
|
|
@@ -695,10 +695,10 @@ export declare const useEmployeeStore: () => {
|
|
|
695
695
|
readEmployees: () => Promise<void>;
|
|
696
696
|
readEmployeesPage: (query: IReadEmployeesPageReq) => Promise<void>;
|
|
697
697
|
readAllEmployeesPage: (query: Omit<IReadEmployeesPageReq, "limit" | "offset">, knownTotal?: number) => Promise<Employee[]>;
|
|
698
|
-
createEmployee: (dto: FdtoUpdatePosUserReq) => Promise<
|
|
698
|
+
createEmployee: (dto: FdtoUpdatePosUserReq) => Promise<void>;
|
|
699
699
|
updateEmployee: (userId: string, dto: FdtoUpdatePosUserReq) => Promise<void>;
|
|
700
700
|
deleteEmployee: (employee: Employee) => Promise<void>;
|
|
701
|
-
createMasterEmployee: (dto: FdtoUpdatePosMasterUserReq) => Promise<
|
|
701
|
+
createMasterEmployee: (dto: FdtoUpdatePosMasterUserReq) => Promise<void>;
|
|
702
702
|
updateMasterEmployee: (userId: string, dto: FdtoUpdatePosMasterUserReq) => Promise<void>;
|
|
703
703
|
deleteMasterEmployee: (employee: Employee) => Promise<void>;
|
|
704
704
|
migrateToMasterUser: (userId: string, dto: FdtoUpdatePosMasterUserReq) => Promise<void>;
|
|
@@ -858,10 +858,10 @@ export declare const useEmployeeStore: () => {
|
|
|
858
858
|
readEmployees: () => Promise<void>;
|
|
859
859
|
readEmployeesPage: (query: IReadEmployeesPageReq) => Promise<void>;
|
|
860
860
|
readAllEmployeesPage: (query: Omit<IReadEmployeesPageReq, "limit" | "offset">, knownTotal?: number) => Promise<Employee[]>;
|
|
861
|
-
createEmployee: (dto: FdtoUpdatePosUserReq) => Promise<
|
|
861
|
+
createEmployee: (dto: FdtoUpdatePosUserReq) => Promise<void>;
|
|
862
862
|
updateEmployee: (userId: string, dto: FdtoUpdatePosUserReq) => Promise<void>;
|
|
863
863
|
deleteEmployee: (employee: Employee) => Promise<void>;
|
|
864
|
-
createMasterEmployee: (dto: FdtoUpdatePosMasterUserReq) => Promise<
|
|
864
|
+
createMasterEmployee: (dto: FdtoUpdatePosMasterUserReq) => Promise<void>;
|
|
865
865
|
updateMasterEmployee: (userId: string, dto: FdtoUpdatePosMasterUserReq) => Promise<void>;
|
|
866
866
|
deleteMasterEmployee: (employee: Employee) => Promise<void>;
|
|
867
867
|
migrateToMasterUser: (userId: string, dto: FdtoUpdatePosMasterUserReq) => Promise<void>;
|
|
@@ -1018,10 +1018,10 @@ export declare const useEmployeeStore: () => {
|
|
|
1018
1018
|
readEmployees: () => Promise<void>;
|
|
1019
1019
|
readEmployeesPage: (query: IReadEmployeesPageReq) => Promise<void>;
|
|
1020
1020
|
readAllEmployeesPage: (query: Omit<IReadEmployeesPageReq, "limit" | "offset">, knownTotal?: number) => Promise<Employee[]>;
|
|
1021
|
-
createEmployee: (dto: FdtoUpdatePosUserReq) => Promise<
|
|
1021
|
+
createEmployee: (dto: FdtoUpdatePosUserReq) => Promise<void>;
|
|
1022
1022
|
updateEmployee: (userId: string, dto: FdtoUpdatePosUserReq) => Promise<void>;
|
|
1023
1023
|
deleteEmployee: (employee: Employee) => Promise<void>;
|
|
1024
|
-
createMasterEmployee: (dto: FdtoUpdatePosMasterUserReq) => Promise<
|
|
1024
|
+
createMasterEmployee: (dto: FdtoUpdatePosMasterUserReq) => Promise<void>;
|
|
1025
1025
|
updateMasterEmployee: (userId: string, dto: FdtoUpdatePosMasterUserReq) => Promise<void>;
|
|
1026
1026
|
deleteMasterEmployee: (employee: Employee) => Promise<void>;
|
|
1027
1027
|
migrateToMasterUser: (userId: string, dto: FdtoUpdatePosMasterUserReq) => Promise<void>;
|
|
@@ -1178,10 +1178,10 @@ export declare const useEmployeeStore: () => {
|
|
|
1178
1178
|
readEmployees: () => Promise<void>;
|
|
1179
1179
|
readEmployeesPage: (query: IReadEmployeesPageReq) => Promise<void>;
|
|
1180
1180
|
readAllEmployeesPage: (query: Omit<IReadEmployeesPageReq, "limit" | "offset">, knownTotal?: number) => Promise<Employee[]>;
|
|
1181
|
-
createEmployee: (dto: FdtoUpdatePosUserReq) => Promise<
|
|
1181
|
+
createEmployee: (dto: FdtoUpdatePosUserReq) => Promise<void>;
|
|
1182
1182
|
updateEmployee: (userId: string, dto: FdtoUpdatePosUserReq) => Promise<void>;
|
|
1183
1183
|
deleteEmployee: (employee: Employee) => Promise<void>;
|
|
1184
|
-
createMasterEmployee: (dto: FdtoUpdatePosMasterUserReq) => Promise<
|
|
1184
|
+
createMasterEmployee: (dto: FdtoUpdatePosMasterUserReq) => Promise<void>;
|
|
1185
1185
|
updateMasterEmployee: (userId: string, dto: FdtoUpdatePosMasterUserReq) => Promise<void>;
|
|
1186
1186
|
deleteMasterEmployee: (employee: Employee) => Promise<void>;
|
|
1187
1187
|
migrateToMasterUser: (userId: string, dto: FdtoUpdatePosMasterUserReq) => Promise<void>;
|
|
@@ -1193,10 +1193,10 @@ export declare const useEmployeeStore: () => {
|
|
|
1193
1193
|
readEmployees: () => Promise<void>;
|
|
1194
1194
|
readEmployeesPage: (query: IReadEmployeesPageReq) => Promise<void>;
|
|
1195
1195
|
readAllEmployeesPage: (query: Omit<IReadEmployeesPageReq, "limit" | "offset">, knownTotal?: number) => Promise<Employee[]>;
|
|
1196
|
-
createEmployee: (dto: FdtoUpdatePosUserReq) => Promise<
|
|
1196
|
+
createEmployee: (dto: FdtoUpdatePosUserReq) => Promise<void>;
|
|
1197
1197
|
updateEmployee: (userId: string, dto: FdtoUpdatePosUserReq) => Promise<void>;
|
|
1198
1198
|
deleteEmployee: (employee: Employee) => Promise<void>;
|
|
1199
|
-
createMasterEmployee: (dto: FdtoUpdatePosMasterUserReq) => Promise<
|
|
1199
|
+
createMasterEmployee: (dto: FdtoUpdatePosMasterUserReq) => Promise<void>;
|
|
1200
1200
|
updateMasterEmployee: (userId: string, dto: FdtoUpdatePosMasterUserReq) => Promise<void>;
|
|
1201
1201
|
deleteMasterEmployee: (employee: Employee) => Promise<void>;
|
|
1202
1202
|
migrateToMasterUser: (userId: string, dto: FdtoUpdatePosMasterUserReq) => Promise<void>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { HrmRestaurant } from '@/types/restaurant';
|
|
2
2
|
export declare const useRestaurantStore: () => {
|
|
3
|
+
isLoading: import("vue").Ref<boolean, boolean>;
|
|
3
4
|
restaurants: import("vue").Ref<{
|
|
4
5
|
_id: string;
|
|
5
6
|
businessId: string;
|
|
@@ -19,8 +20,8 @@ export declare const useRestaurantStore: () => {
|
|
|
19
20
|
};
|
|
20
21
|
managable: boolean;
|
|
21
22
|
}[]>;
|
|
22
|
-
isLoading: import("vue").Ref<boolean, boolean>;
|
|
23
23
|
$state: {
|
|
24
|
+
isLoading: boolean;
|
|
24
25
|
restaurants: {
|
|
25
26
|
_id: string;
|
|
26
27
|
businessId: string;
|
|
@@ -31,7 +32,6 @@ export declare const useRestaurantStore: () => {
|
|
|
31
32
|
};
|
|
32
33
|
managable: boolean;
|
|
33
34
|
}[];
|
|
34
|
-
isLoading: boolean;
|
|
35
35
|
} & import("pinia").PiniaCustomStateProperties<Pick<{
|
|
36
36
|
restaurants: import("vue").Ref<{
|
|
37
37
|
_id: string;
|
|
@@ -54,8 +54,9 @@ export declare const useRestaurantStore: () => {
|
|
|
54
54
|
}[]>;
|
|
55
55
|
isLoading: import("vue").Ref<boolean, boolean>;
|
|
56
56
|
readRestaurants: (force?: boolean) => Promise<void>;
|
|
57
|
-
}, "
|
|
57
|
+
}, "isLoading" | "restaurants">>;
|
|
58
58
|
$patch(partialState: import("pinia")._DeepPartial<{
|
|
59
|
+
isLoading: boolean;
|
|
59
60
|
restaurants: {
|
|
60
61
|
_id: string;
|
|
61
62
|
businessId: string;
|
|
@@ -66,9 +67,9 @@ export declare const useRestaurantStore: () => {
|
|
|
66
67
|
};
|
|
67
68
|
managable: boolean;
|
|
68
69
|
}[];
|
|
69
|
-
isLoading: boolean;
|
|
70
70
|
}>): void;
|
|
71
71
|
$patch<F extends (state: {
|
|
72
|
+
isLoading: boolean;
|
|
72
73
|
restaurants: {
|
|
73
74
|
_id: string;
|
|
74
75
|
businessId: string;
|
|
@@ -79,7 +80,6 @@ export declare const useRestaurantStore: () => {
|
|
|
79
80
|
};
|
|
80
81
|
managable: boolean;
|
|
81
82
|
}[];
|
|
82
|
-
isLoading: boolean;
|
|
83
83
|
}) => any>(stateMutator: ReturnType<F> extends Promise<any> ? never : F): void;
|
|
84
84
|
$reset(): void;
|
|
85
85
|
$subscribe(callback: import("pinia").SubscriptionCallback<Pick<{
|
|
@@ -104,7 +104,7 @@ export declare const useRestaurantStore: () => {
|
|
|
104
104
|
}[]>;
|
|
105
105
|
isLoading: import("vue").Ref<boolean, boolean>;
|
|
106
106
|
readRestaurants: (force?: boolean) => Promise<void>;
|
|
107
|
-
}, "
|
|
107
|
+
}, "isLoading" | "restaurants">>, options?: {
|
|
108
108
|
detached?: boolean;
|
|
109
109
|
} & import("vue").WatchOptions): () => void;
|
|
110
110
|
$onAction(callback: import("pinia").StoreOnActionListener<"restaurant", Pick<{
|
|
@@ -129,7 +129,7 @@ export declare const useRestaurantStore: () => {
|
|
|
129
129
|
}[]>;
|
|
130
130
|
isLoading: import("vue").Ref<boolean, boolean>;
|
|
131
131
|
readRestaurants: (force?: boolean) => Promise<void>;
|
|
132
|
-
}, "
|
|
132
|
+
}, "isLoading" | "restaurants">, Pick<{
|
|
133
133
|
restaurants: import("vue").Ref<{
|
|
134
134
|
_id: string;
|
|
135
135
|
businessId: string;
|
|
@@ -17,6 +17,8 @@ declare const useTeamStore: import("pinia").StoreDefinition<"team", Pick<{
|
|
|
17
17
|
actions: ("update" | "create" | "read" | "delete" | "manage")[];
|
|
18
18
|
}[];
|
|
19
19
|
permissionLabels: string[];
|
|
20
|
+
status: import("@/types/team").TeamMemberStatus;
|
|
21
|
+
loginMethod: import("@/types/team").TeamMemberLoginMethod;
|
|
20
22
|
doc: {
|
|
21
23
|
id: string;
|
|
22
24
|
posUserId: string;
|
|
@@ -34,6 +36,9 @@ declare const useTeamStore: import("pinia").StoreDefinition<"team", Pick<{
|
|
|
34
36
|
roleId: string;
|
|
35
37
|
}[];
|
|
36
38
|
} | undefined;
|
|
39
|
+
employeeId?: string | null | undefined;
|
|
40
|
+
loginMethod: import("@/types/team").TeamMemberLoginMethod;
|
|
41
|
+
status: import("@/types/team").TeamMemberStatus;
|
|
37
42
|
businessId: string;
|
|
38
43
|
userId: string;
|
|
39
44
|
permissions: {
|
|
@@ -63,6 +68,8 @@ declare const useTeamStore: import("pinia").StoreDefinition<"team", Pick<{
|
|
|
63
68
|
actions: ("update" | "create" | "read" | "delete" | "manage")[];
|
|
64
69
|
}[];
|
|
65
70
|
permissionLabels: string[];
|
|
71
|
+
status: import("@/types/team").TeamMemberStatus;
|
|
72
|
+
loginMethod: import("@/types/team").TeamMemberLoginMethod;
|
|
66
73
|
doc: {
|
|
67
74
|
id: string;
|
|
68
75
|
posUserId: string;
|
|
@@ -80,6 +87,9 @@ declare const useTeamStore: import("pinia").StoreDefinition<"team", Pick<{
|
|
|
80
87
|
roleId: string;
|
|
81
88
|
}[];
|
|
82
89
|
} | undefined;
|
|
90
|
+
employeeId?: string | null | undefined;
|
|
91
|
+
loginMethod: import("@/types/team").TeamMemberLoginMethod;
|
|
92
|
+
status: import("@/types/team").TeamMemberStatus;
|
|
83
93
|
businessId: string;
|
|
84
94
|
userId: string;
|
|
85
95
|
permissions: {
|
|
@@ -119,6 +129,8 @@ declare const useTeamStore: import("pinia").StoreDefinition<"team", Pick<{
|
|
|
119
129
|
actions: ("update" | "create" | "read" | "delete" | "manage")[];
|
|
120
130
|
}[];
|
|
121
131
|
permissionLabels: string[];
|
|
132
|
+
status: import("@/types/team").TeamMemberStatus;
|
|
133
|
+
loginMethod: import("@/types/team").TeamMemberLoginMethod;
|
|
122
134
|
doc: {
|
|
123
135
|
id: string;
|
|
124
136
|
posUserId: string;
|
|
@@ -136,6 +148,9 @@ declare const useTeamStore: import("pinia").StoreDefinition<"team", Pick<{
|
|
|
136
148
|
roleId: string;
|
|
137
149
|
}[];
|
|
138
150
|
} | undefined;
|
|
151
|
+
employeeId?: string | null | undefined;
|
|
152
|
+
loginMethod: import("@/types/team").TeamMemberLoginMethod;
|
|
153
|
+
status: import("@/types/team").TeamMemberStatus;
|
|
139
154
|
businessId: string;
|
|
140
155
|
userId: string;
|
|
141
156
|
permissions: {
|
|
@@ -165,6 +180,8 @@ declare const useTeamStore: import("pinia").StoreDefinition<"team", Pick<{
|
|
|
165
180
|
actions: ("update" | "create" | "read" | "delete" | "manage")[];
|
|
166
181
|
}[];
|
|
167
182
|
permissionLabels: string[];
|
|
183
|
+
status: import("@/types/team").TeamMemberStatus;
|
|
184
|
+
loginMethod: import("@/types/team").TeamMemberLoginMethod;
|
|
168
185
|
doc: {
|
|
169
186
|
id: string;
|
|
170
187
|
posUserId: string;
|
|
@@ -182,6 +199,9 @@ declare const useTeamStore: import("pinia").StoreDefinition<"team", Pick<{
|
|
|
182
199
|
roleId: string;
|
|
183
200
|
}[];
|
|
184
201
|
} | undefined;
|
|
202
|
+
employeeId?: string | null | undefined;
|
|
203
|
+
loginMethod: import("@/types/team").TeamMemberLoginMethod;
|
|
204
|
+
status: import("@/types/team").TeamMemberStatus;
|
|
185
205
|
businessId: string;
|
|
186
206
|
userId: string;
|
|
187
207
|
permissions: {
|
|
@@ -221,6 +241,8 @@ declare const useTeamStore: import("pinia").StoreDefinition<"team", Pick<{
|
|
|
221
241
|
actions: ("update" | "create" | "read" | "delete" | "manage")[];
|
|
222
242
|
}[];
|
|
223
243
|
permissionLabels: string[];
|
|
244
|
+
status: import("@/types/team").TeamMemberStatus;
|
|
245
|
+
loginMethod: import("@/types/team").TeamMemberLoginMethod;
|
|
224
246
|
doc: {
|
|
225
247
|
id: string;
|
|
226
248
|
posUserId: string;
|
|
@@ -238,6 +260,9 @@ declare const useTeamStore: import("pinia").StoreDefinition<"team", Pick<{
|
|
|
238
260
|
roleId: string;
|
|
239
261
|
}[];
|
|
240
262
|
} | undefined;
|
|
263
|
+
employeeId?: string | null | undefined;
|
|
264
|
+
loginMethod: import("@/types/team").TeamMemberLoginMethod;
|
|
265
|
+
status: import("@/types/team").TeamMemberStatus;
|
|
241
266
|
businessId: string;
|
|
242
267
|
userId: string;
|
|
243
268
|
permissions: {
|
|
@@ -267,6 +292,8 @@ declare const useTeamStore: import("pinia").StoreDefinition<"team", Pick<{
|
|
|
267
292
|
actions: ("update" | "create" | "read" | "delete" | "manage")[];
|
|
268
293
|
}[];
|
|
269
294
|
permissionLabels: string[];
|
|
295
|
+
status: import("@/types/team").TeamMemberStatus;
|
|
296
|
+
loginMethod: import("@/types/team").TeamMemberLoginMethod;
|
|
270
297
|
doc: {
|
|
271
298
|
id: string;
|
|
272
299
|
posUserId: string;
|
|
@@ -284,6 +311,9 @@ declare const useTeamStore: import("pinia").StoreDefinition<"team", Pick<{
|
|
|
284
311
|
roleId: string;
|
|
285
312
|
}[];
|
|
286
313
|
} | undefined;
|
|
314
|
+
employeeId?: string | null | undefined;
|
|
315
|
+
loginMethod: import("@/types/team").TeamMemberLoginMethod;
|
|
316
|
+
status: import("@/types/team").TeamMemberStatus;
|
|
287
317
|
businessId: string;
|
|
288
318
|
userId: string;
|
|
289
319
|
permissions: {
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
}
|