@feedmepos/mf-hrm-portal 2.2.4 → 2.2.5-dev.10
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-ChGQwko6.js → ApprovalCodeList-BsDMMSIz.js} +7 -7
- package/dist/{AuditLogList-Cpj8O5qS.js → AuditLogList-CGNZdtmn.js} +244 -241
- package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-CNmbZlVZ.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-C6MoToqi.js} +2 -2
- package/dist/EmployeeList-B_OuDWWQ.js +787 -0
- package/dist/{FormItem.vue_vue_type_script_setup_true_lang-DPT2FoIc.js → FormItem.vue_vue_type_script_setup_true_lang-CUnlKsxk.js} +1 -1
- package/dist/{GrantUserList-CAXJmQ4i.js → GrantUserList-Bd0lXmFo.js} +8 -8
- package/dist/{Main-Ada9K_jO.js → Main-B66lSeOv.js} +8 -8
- package/dist/{Main-T9-30vq8.js → Main-CzHSNHsH.js} +5 -5
- package/dist/{Main-7yT_w5vt.js → Main-njRQ1tFk.js} +11 -11
- package/dist/PasscodePinField.vue_vue_type_script_setup_true_lang-CqG0v0Sz.js +243 -0
- package/dist/{PermissionSetList-CkWYPmT2.js → PermissionSetList-GTI6Cwj5.js} +20 -20
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-CCLLrSyq.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-C-QEQ-js.js} +937 -944
- package/dist/{PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-Z-DH7ouY.js → PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-XHuHin8t.js} +1 -1
- package/dist/{RoleList-Do36AmlU.js → RoleList-CmHgtM0m.js} +9 -9
- package/dist/ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-SFqxftRx.js +426 -0
- package/dist/ScheduleButton.vue_vue_type_script_setup_true_lang-CrWfo-zF.js +690 -0
- package/dist/ScheduleGeneralPage-DxFxJN5j.js +320 -0
- package/dist/SchedulePage-cJDI3-E7.js +14647 -0
- package/dist/SchedulePositionPage-n1wUShIM.js +293 -0
- package/dist/ScheduleSelect.vue_vue_type_script_setup_true_lang-B8W4sTsA.js +242 -0
- package/dist/SelectFilter-CG13h83-.js +264 -0
- package/dist/TeamMemberList-ByZt3VqN.js +1154 -0
- package/dist/{TimesheetList-DboJ2_89.js → TimesheetList-Dv0-W--W.js} +71 -68
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_2c7a177a_lang-C4g8wRjv.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-DIo6h5-a.js} +3 -3
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
- package/dist/{app-CcCcPbyB.js → app-SCXGJ95F.js} +3182 -2565
- package/dist/app.js +1 -1
- package/dist/{approval-code-BRClD2HN.js → approval-code-jIjkeVEb.js} +1 -1
- package/dist/{dayjs.min-lvkj1Rwa.js → dayjs.min-DqMLPYv-.js} +1 -1
- package/dist/employee-DT_xYQkz.js +204 -0
- package/dist/{grant-user-Dhi3ilC_.js → grant-user-SNiDV22U.js} +1 -1
- package/dist/{iteration-LZbo-knt.js → iteration-B5dB9ecy.js} +1 -1
- package/dist/{lodash-CKzaMa7f.js → lodash-CRHFapxI.js} +1 -1
- package/dist/{restaurant-DiYb0pCm.js → restaurant-BTpBmfBV.js} +2 -2
- package/dist/{role-BZr8zzeq.js → role-CJm8pXaw.js} +2 -2
- package/dist/{rule-DNaqlUUB.js → rule-AJm-eVzJ.js} +291 -279
- package/dist/src/api/employee/index.d.ts +5 -1
- package/dist/src/api/schedule/index.d.ts +41 -0
- package/dist/src/api/team/index.d.ts +3 -0
- package/dist/src/components/form/OutletRoleAssignment.vue.d.ts +16 -0
- package/dist/src/components/form/PasscodeGenerateButton.vue.d.ts +15 -0
- package/dist/src/components/form/PasscodePinField.vue.d.ts +18 -0
- package/dist/src/components/layout/AppSidebar.vue.d.ts +2 -0
- package/dist/src/components/layout/PortalShell.vue.d.ts +12 -0
- package/dist/src/components/layout/withShell.d.ts +14 -0
- package/dist/src/helpers/outlet-role-assignment.d.ts +40 -0
- package/dist/src/helpers/rule.d.ts +15 -0
- package/dist/src/helpers/string.d.ts +2 -1
- package/dist/src/router/shared.d.ts +4 -1
- package/dist/src/types/schedule.d.ts +232 -0
- package/dist/src/views/audit-log/locales/index.d.ts +4 -0
- package/dist/src/views/hr/locales/index.d.ts +8 -0
- package/dist/src/views/scheduling/ScheduleGeneralPage.vue.d.ts +3 -0
- package/dist/src/views/scheduling/SchedulePage.vue.d.ts +3 -0
- package/dist/src/views/scheduling/SchedulePositionPage.vue.d.ts +3 -0
- package/dist/src/views/scheduling/components/ScheduleAddEmployeeIdentitySection.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleAddEmployeeModal.vue.d.ts +10 -0
- package/dist/src/views/scheduling/components/ScheduleAddEmployeeModeStep.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleAddEmployeePosAccessSection.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleAddEmployeePositionsSection.vue.d.ts +10 -0
- package/dist/src/views/scheduling/components/ScheduleAddEmployeeSchedulingSection.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleAddPickPopover.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleAddPositionModal.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleAllShiftsRow.vue.d.ts +22 -0
- package/dist/src/views/scheduling/components/ScheduleAreaRows.vue.d.ts +34 -0
- package/dist/src/views/scheduling/components/ScheduleAssignEmployeePopover.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleAutoScheduleModal.vue.d.ts +10 -0
- package/dist/src/views/scheduling/components/ScheduleButton.vue.d.ts +23 -0
- package/dist/src/views/scheduling/components/ScheduleChangeEmployeeModal.vue.d.ts +8 -0
- package/dist/src/views/scheduling/components/ScheduleConfirmModal.vue.d.ts +24 -0
- package/dist/src/views/scheduling/components/ScheduleCostRail.vue.d.ts +8 -0
- package/dist/src/views/scheduling/components/ScheduleDateRangePopover.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleDayNotePopover.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleDayTimeline.vue.d.ts +12 -0
- package/dist/src/views/scheduling/components/ScheduleDemandRow.vue.d.ts +23 -0
- package/dist/src/views/scheduling/components/ScheduleDemandSheet.vue.d.ts +10 -0
- package/dist/src/views/scheduling/components/ScheduleDotsIcon.vue.d.ts +2 -0
- package/dist/src/views/scheduling/components/ScheduleEmployeeDetailPanel.vue.d.ts +12 -0
- package/dist/src/views/scheduling/components/ScheduleEmployeeIdentity.vue.d.ts +17 -0
- package/dist/src/views/scheduling/components/ScheduleEmployeeMenu.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleFilterBar.vue.d.ts +18 -0
- package/dist/src/views/scheduling/components/ScheduleGapPopover.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleGridHeader.vue.d.ts +18 -0
- package/dist/src/views/scheduling/components/ScheduleGridSkeleton.vue.d.ts +2 -0
- package/dist/src/views/scheduling/components/ScheduleLeaveEditModal.vue.d.ts +8 -0
- package/dist/src/views/scheduling/components/ScheduleLegendBar.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleOnboardingWelcome.vue.d.ts +12 -0
- package/dist/src/views/scheduling/components/ScheduleOnboardingWizard.vue.d.ts +9 -0
- package/dist/src/views/scheduling/components/ScheduleOpenShiftCardMenu.vue.d.ts +14 -0
- package/dist/src/views/scheduling/components/SchedulePdfPreview.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/SchedulePublishModal.vue.d.ts +8 -0
- package/dist/src/views/scheduling/components/ScheduleReviewBar.vue.d.ts +12 -0
- package/dist/src/views/scheduling/components/ScheduleSelect.vue.d.ts +54 -0
- package/dist/src/views/scheduling/components/ScheduleSelectExistingEmployeeModal.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleShiftCardMenu.vue.d.ts +12 -0
- package/dist/src/views/scheduling/components/ScheduleShiftCell.vue.d.ts +35 -0
- package/dist/src/views/scheduling/components/ScheduleShiftHeadcountEditor.vue.d.ts +10 -0
- package/dist/src/views/scheduling/components/ScheduleShiftImpact.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleShiftMoreOptions.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleShiftPopover.vue.d.ts +16 -0
- package/dist/src/views/scheduling/components/ScheduleShiftRepeatDaysRow.vue.d.ts +8 -0
- package/dist/src/views/scheduling/components/ScheduleShiftSegmentsEditor.vue.d.ts +8 -0
- package/dist/src/views/scheduling/components/ScheduleShiftWhoPicker.vue.d.ts +25 -0
- package/dist/src/views/scheduling/components/ScheduleStackPopover.vue.d.ts +14 -0
- package/dist/src/views/scheduling/components/ScheduleStaffRail.vue.d.ts +18 -0
- package/dist/src/views/scheduling/components/ScheduleStaffRows.vue.d.ts +60 -0
- package/dist/src/views/scheduling/components/ScheduleStatsRow.vue.d.ts +12 -0
- package/dist/src/views/scheduling/components/ScheduleSwapShiftsModal.vue.d.ts +8 -0
- package/dist/src/views/scheduling/components/ScheduleTimePickerPopover.vue.d.ts +6 -0
- package/dist/src/views/scheduling/components/ScheduleTopbar.vue.d.ts +20 -0
- package/dist/src/views/scheduling/composables/schedule-add-employee-form.d.ts +72 -0
- package/dist/src/views/scheduling/composables/schedule-board-helpers.d.ts +38 -0
- package/dist/src/views/scheduling/composables/schedule-day-meta.d.ts +29 -0
- package/dist/src/views/scheduling/composables/schedule-employee-profile.d.ts +7 -0
- package/dist/src/views/scheduling/composables/schedule-popover-position.d.ts +16 -0
- package/dist/src/views/scheduling/composables/schedule-shift-time.d.ts +14 -0
- package/dist/src/views/scheduling/composables/schedule-week-cache.d.ts +10 -0
- package/dist/src/views/scheduling/composables/scheduleAutoSolver.d.ts +21 -0
- package/dist/src/views/scheduling/composables/useCollapsedList.d.ts +9 -0
- package/dist/src/views/scheduling/composables/useScheduleAddEmployee.d.ts +98 -0
- package/dist/src/views/scheduling/composables/useScheduleAddPick.d.ts +73 -0
- package/dist/src/views/scheduling/composables/useScheduleAllShiftsRow.d.ts +77 -0
- package/dist/src/views/scheduling/composables/useScheduleAreaBoard.d.ts +50 -0
- package/dist/src/views/scheduling/composables/useScheduleAreaDragDrop.d.ts +18 -0
- package/dist/src/views/scheduling/composables/useScheduleAssign.d.ts +122 -0
- package/dist/src/views/scheduling/composables/useScheduleAutoSchedule.d.ts +143 -0
- package/dist/src/views/scheduling/composables/useScheduleBoard.d.ts +426 -0
- package/dist/src/views/scheduling/composables/useScheduleCellState.d.ts +27 -0
- package/dist/src/views/scheduling/composables/useScheduleClashDetection.d.ts +18 -0
- package/dist/src/views/scheduling/composables/useScheduleCopyWeek.d.ts +19 -0
- package/dist/src/views/scheduling/composables/useScheduleCostRail.d.ts +43 -0
- package/dist/src/views/scheduling/composables/useScheduleDayNote.d.ts +48 -0
- package/dist/src/views/scheduling/composables/useScheduleDayTimeline.d.ts +77 -0
- package/dist/src/views/scheduling/composables/useScheduleDemand.d.ts +76 -0
- package/dist/src/views/scheduling/composables/useScheduleDemandRow.d.ts +45 -0
- package/dist/src/views/scheduling/composables/useScheduleDemandSheet.d.ts +145 -0
- package/dist/src/views/scheduling/composables/useScheduleDragDrop.d.ts +22 -0
- package/dist/src/views/scheduling/composables/useScheduleEmployeeIdentity.d.ts +41 -0
- package/dist/src/views/scheduling/composables/useScheduleEmployeeMenu.d.ts +35 -0
- package/dist/src/views/scheduling/composables/useScheduleEmployeeProfile.d.ts +16 -0
- package/dist/src/views/scheduling/composables/useScheduleExport.d.ts +26 -0
- package/dist/src/views/scheduling/composables/useScheduleFilterBar.d.ts +14 -0
- package/dist/src/views/scheduling/composables/useScheduleGapPopover.d.ts +82 -0
- package/dist/src/views/scheduling/composables/useScheduleLeave.d.ts +70 -0
- package/dist/src/views/scheduling/composables/useScheduleLegend.d.ts +15 -0
- package/dist/src/views/scheduling/composables/useScheduleLegendBar.d.ts +35 -0
- package/dist/src/views/scheduling/composables/useScheduleOnboardingWizard.d.ts +1316 -0
- package/dist/src/views/scheduling/composables/useScheduleOpenShiftCard.d.ts +23 -0
- package/dist/src/views/scheduling/composables/useScheduleOutlet.d.ts +20 -0
- package/dist/src/views/scheduling/composables/useSchedulePositionModal.d.ts +50 -0
- package/dist/src/views/scheduling/composables/useSchedulePositions.d.ts +32 -0
- package/dist/src/views/scheduling/composables/useSchedulePublish.d.ts +93 -0
- package/dist/src/views/scheduling/composables/useScheduleRangeCalendar.d.ts +27 -0
- package/dist/src/views/scheduling/composables/useScheduleRoster.d.ts +189 -0
- package/dist/src/views/scheduling/composables/useScheduleSettings.d.ts +54 -0
- package/dist/src/views/scheduling/composables/useScheduleSetupBanner.d.ts +18 -0
- package/dist/src/views/scheduling/composables/useScheduleShiftActions.d.ts +163 -0
- package/dist/src/views/scheduling/composables/useScheduleShiftPopover.d.ts +181 -0
- package/dist/src/views/scheduling/composables/useScheduleStaffRail.d.ts +23 -0
- package/dist/src/views/scheduling/composables/useScheduleStatsRow.d.ts +25 -0
- package/dist/src/views/scheduling/composables/useScheduleTimePicker.d.ts +49 -0
- package/dist/src/views/scheduling/composables/useScheduleTopbar.d.ts +10 -0
- package/dist/src/views/scheduling/composables/useScheduleViewportFit.d.ts +9 -0
- package/dist/src/views/scheduling/data.d.ts +110 -0
- package/dist/src/views/scheduling/locales/index.d.ts +496 -0
- package/dist/src/views/scheduling/schedule-store.d.ts +151 -0
- package/dist/src/views/scheduling/types.d.ts +324 -0
- package/dist/src/views/team/components/PortalConditionForm.vue.d.ts +2 -2
- package/dist/src/views/team/condition-builders/ConditionBuilderForm.vue.d.ts +2 -2
- package/dist/src/views/team/locales/index.d.ts +12 -0
- package/dist/src/views/team/member/AddMemberForm.vue.d.ts +1 -0
- package/dist/src/views/team/member/TeamMemberMasterUser.vue.d.ts +21 -3
- package/dist/string-VNuQNweN.js +15 -0
- package/dist/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-BGhlB1_1.js → useAppStore-DCwd8GWN.js} +1 -1
- package/dist/{useLoading-CvgqVDbF.js → useLoading-CXzTpIVv.js} +1 -1
- package/dist/{useReportPermissions-Buzv6pkY.js → useReportPermissions-Cg3lV70m.js} +3 -3
- package/package.json +1 -1
- package/dist/EmployeeList-PdGzSCP-.js +0 -887
- package/dist/SelectFilter-ATOm0hdn.js +0 -269
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-B4PxNMwq.js +0 -16
- package/dist/TeamMemberList-CVVNnz0R.js +0 -1216
- package/dist/employee-CLgrXpmZ.js +0 -201
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { FdtoUpdatePosUserReq, FdtoUpdatePosMasterUserReq } from '@feedmepos/core/entity';
|
|
2
2
|
import type { Employee, IFdtoEmployeePage, IFdtoPosUser, IReadEmployeesPageReq } from '@/types/employee';
|
|
3
|
+
export interface IGeneratePasscodeParams {
|
|
4
|
+
restaurantIds: string[];
|
|
5
|
+
excludePosUserId?: string;
|
|
6
|
+
}
|
|
3
7
|
declare const EmployeeAPI: {
|
|
4
8
|
readEmployees(): Promise<IFdtoPosUser[]>;
|
|
5
9
|
readEmployeesPage(query: IReadEmployeesPageReq): Promise<IFdtoEmployeePage>;
|
|
@@ -10,7 +14,7 @@ declare const EmployeeAPI: {
|
|
|
10
14
|
updateMasterEmployee(employeeId: string, dto: FdtoUpdatePosMasterUserReq): Promise<void>;
|
|
11
15
|
deleteEmployee(employee: Employee): Promise<void>;
|
|
12
16
|
deleteMasterEmployee(employee: Employee): Promise<void>;
|
|
13
|
-
generateEmployeePasscode(): Promise<string>;
|
|
17
|
+
generateEmployeePasscode(params: IGeneratePasscodeParams): Promise<string>;
|
|
14
18
|
syncUsersMeta(): Promise<void>;
|
|
15
19
|
};
|
|
16
20
|
export default EmployeeAPI;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { FdtoScheduleAssignment, FdtoScheduleAutoScheduleReq, FdtoScheduleAutoScheduleResult, FdtoScheduleBoard, FdtoScheduleBulkUpdateAssignmentStatusReq, FdtoScheduleCreateEmployeeProfileReq, FdtoScheduleDemand, FdtoScheduleEmployee, FdtoSchedulePosition, FdtoScheduleSaveAssignmentReq, FdtoScheduleSaveDemandReq, FdtoScheduleSavePositionReq, FdtoScheduleSaveScheduleDayReq, FdtoScheduleScheduleDay, FdtoScheduleUpdateEmployeeProfileReq } from '@/types/schedule';
|
|
2
|
+
declare const ScheduleAPI: {
|
|
3
|
+
generateAutoSchedule(restaurantId: string, req: FdtoScheduleAutoScheduleReq): Promise<FdtoScheduleAutoScheduleResult>;
|
|
4
|
+
/** One outlet's whole board over `[from, to]` (inclusive, 'YYYY-MM-DD'). */
|
|
5
|
+
readBoard(restaurantId: string, from: string, to: string): Promise<FdtoScheduleBoard>;
|
|
6
|
+
/** Creates or updates the employee's shared business-level scheduling profile. */
|
|
7
|
+
createEmployeeProfile(_restaurantId: string, req: FdtoScheduleCreateEmployeeProfileReq): Promise<FdtoScheduleEmployee>;
|
|
8
|
+
/** Edits the employee's shared business-level scheduling profile. */
|
|
9
|
+
updateEmployeeProfile(_restaurantId: string, employeeId: string, req: FdtoScheduleUpdateEmployeeProfileReq): Promise<FdtoScheduleEmployee>;
|
|
10
|
+
/** Positions are shared across the business. */
|
|
11
|
+
createPosition(req: FdtoScheduleSavePositionReq): Promise<FdtoSchedulePosition>;
|
|
12
|
+
updatePosition(id: string, req: FdtoScheduleSavePositionReq): Promise<FdtoSchedulePosition>;
|
|
13
|
+
/** Deleting one position is `deletePositions` with a single-id array — the backend's
|
|
14
|
+
* `DELETE positions/:id` route is gone; this is now `DELETE positions?ids=`. */
|
|
15
|
+
deletePosition(id: string): Promise<void>;
|
|
16
|
+
/** Creates one flat demand interval. */
|
|
17
|
+
createDemand(restaurantId: string, req: FdtoScheduleSaveDemandReq): Promise<FdtoScheduleDemand>;
|
|
18
|
+
/** Deletes a batch of demands in one request — e.g. `saveDemand` replacing a whole
|
|
19
|
+
* day/weekday's demand rows wholesale. Deleting one demand is just this with a single-id
|
|
20
|
+
* array. */
|
|
21
|
+
deleteDemands(restaurantId: string, ids: string[]): Promise<{
|
|
22
|
+
ok: true;
|
|
23
|
+
deletedCount: number;
|
|
24
|
+
}>;
|
|
25
|
+
/** Replaces one date's note/holiday-mark. All three fields back to empty/false clears it. */
|
|
26
|
+
saveScheduleDay(restaurantId: string, date: string, req: FdtoScheduleSaveScheduleDayReq): Promise<FdtoScheduleScheduleDay | null>;
|
|
27
|
+
/** A one-off shift assignment. */
|
|
28
|
+
createAssignment(restaurantId: string, req: FdtoScheduleSaveAssignmentReq): Promise<FdtoScheduleAssignment>;
|
|
29
|
+
updateAssignment(restaurantId: string, id: string, req: FdtoScheduleSaveAssignmentReq): Promise<FdtoScheduleAssignment | null>;
|
|
30
|
+
/** Deletes a batch of assignments in one request — e.g. a shift split into several segments
|
|
31
|
+
* getting replaced wholesale. Deleting one assignment is just this with a single-id
|
|
32
|
+
* array. */
|
|
33
|
+
deleteAssignments(restaurantId: string, ids: string[]): Promise<{
|
|
34
|
+
ok: true;
|
|
35
|
+
deletedCount: number;
|
|
36
|
+
}>;
|
|
37
|
+
/** Flips a batch of assignments to one status in a single request — e.g. Publish sending
|
|
38
|
+
* every DRAFT shift on the board to PUBLISHED at once. */
|
|
39
|
+
bulkUpdateAssignmentStatus(restaurantId: string, req: FdtoScheduleBulkUpdateAssignmentStatusReq): Promise<FdtoScheduleAssignment[]>;
|
|
40
|
+
};
|
|
41
|
+
export default ScheduleAPI;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import type { IGeneratePasscodeParams } from '@/api/employee';
|
|
1
2
|
import { type IFdtoPortalPermissionsWithVisibilityCondition } from '@feedmepos/hrm-permission';
|
|
2
3
|
import type { FTeamMember, IFdtoCreatePortalUserReq, IFdtoTeamMemberPage, IReadTeamMembersPageReq, IFdtoUpdatePortalUserReq } from '@/types/team';
|
|
4
|
+
export type IGenerateMasterUserPasscodeParams = IGeneratePasscodeParams;
|
|
3
5
|
export declare const portalTeamPermissions: IFdtoPortalPermissionsWithVisibilityCondition[];
|
|
4
6
|
export declare const teamApi: {
|
|
5
7
|
readTeamMembers(): Promise<FTeamMember[]>;
|
|
@@ -9,5 +11,6 @@ export declare const teamApi: {
|
|
|
9
11
|
updateTeamMember(permissionUserId: string, req: IFdtoUpdatePortalUserReq): Promise<FTeamMember>;
|
|
10
12
|
deleteTeamMember(permissionUserId: string): Promise<boolean>;
|
|
11
13
|
readTeamMemberPosUserIds(): Promise<string[]>;
|
|
14
|
+
generateMasterUserPasscode(params: IGenerateMasterUserPasscodeParams): Promise<string>;
|
|
12
15
|
};
|
|
13
16
|
export default teamApi;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type OutletRoleAssignmentProps, type OutletRoleRow } from '@/helpers/outlet-role-assignment';
|
|
2
|
+
declare const _default: <T extends OutletRoleRow>(__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<{
|
|
3
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
4
|
+
readonly "onUpdate:modelValue"?: ((rows: T[]) => any) | undefined;
|
|
5
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:modelValue"> & OutletRoleAssignmentProps<T> & Partial<{}>> & import("vue").PublicProps;
|
|
6
|
+
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
7
|
+
attrs: any;
|
|
8
|
+
slots: {};
|
|
9
|
+
emit: (evt: "update:modelValue", rows: T[]) => void;
|
|
10
|
+
}>) => import("vue").VNode & {
|
|
11
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
12
|
+
};
|
|
13
|
+
export default _default;
|
|
14
|
+
type __VLS_PrettifyLocal<T> = {
|
|
15
|
+
[K in keyof T]: T[K];
|
|
16
|
+
} & {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
label: string;
|
|
3
|
+
hint: string;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
loading?: boolean;
|
|
6
|
+
};
|
|
7
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
|
+
click: () => any;
|
|
9
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
10
|
+
onClick?: (() => any) | undefined;
|
|
11
|
+
}>, {
|
|
12
|
+
disabled: boolean;
|
|
13
|
+
loading: boolean;
|
|
14
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
modelValue: string[];
|
|
3
|
+
masked: boolean;
|
|
4
|
+
length?: number;
|
|
5
|
+
toggleLabel: string;
|
|
6
|
+
};
|
|
7
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
|
+
"update:modelValue": (value: string[]) => any;
|
|
9
|
+
"update:masked": (value: boolean) => any;
|
|
10
|
+
complete: (value: string) => any;
|
|
11
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
12
|
+
"onUpdate:modelValue"?: ((value: string[]) => any) | undefined;
|
|
13
|
+
"onUpdate:masked"?: ((value: boolean) => any) | undefined;
|
|
14
|
+
onComplete?: ((value: string) => any) | undefined;
|
|
15
|
+
}>, {
|
|
16
|
+
length: number;
|
|
17
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
declare var __VLS_1: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
default?: (props: typeof __VLS_1) => any;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
7
|
+
export default _default;
|
|
8
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
9
|
+
new (): {
|
|
10
|
+
$slots: S;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type Component } from 'vue';
|
|
2
|
+
/**
|
|
3
|
+
* Wraps a route component in the app-wide sidebar + full-bleed shell (pixel-matched
|
|
4
|
+
* to the Scheduling mockup). Mirrors the `withPermission`/`withLoading` HOC pattern
|
|
5
|
+
* so it composes with them in router/shared.ts.
|
|
6
|
+
*/
|
|
7
|
+
export declare function withShell(Comp: Component): {
|
|
8
|
+
inheritAttrs: boolean;
|
|
9
|
+
setup(_: unknown, { attrs }: {
|
|
10
|
+
attrs: Record<string, unknown>;
|
|
11
|
+
}): () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
}>;
|
|
14
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { HrmRestaurant } from '@/types/restaurant';
|
|
2
|
+
import type { Role } from '@/types/role';
|
|
3
|
+
export interface OutletRoleRow {
|
|
4
|
+
restaurantId: string;
|
|
5
|
+
roleId: string;
|
|
6
|
+
}
|
|
7
|
+
export interface SelectOption {
|
|
8
|
+
label: string;
|
|
9
|
+
value: string;
|
|
10
|
+
disabled: boolean;
|
|
11
|
+
}
|
|
12
|
+
export interface AssignmentRules {
|
|
13
|
+
/** Whether this role may be picked at this outlet (caller policy). */
|
|
14
|
+
isRoleUsable: (role: Role, restaurantId: string) => boolean;
|
|
15
|
+
/** Locked rows cannot be edited or removed. */
|
|
16
|
+
isRestaurantLocked: (restaurantId: string) => boolean;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Props of OutletRoleAssignment.vue. Exported from here (not declared in the
|
|
20
|
+
* SFC) so the generated component declaration can reference it.
|
|
21
|
+
*/
|
|
22
|
+
export interface OutletRoleAssignmentProps<T extends OutletRoleRow> {
|
|
23
|
+
modelValue: T[];
|
|
24
|
+
restaurants: HrmRestaurant[];
|
|
25
|
+
roles: Role[];
|
|
26
|
+
isRoleUsable: (role: Role, restaurantId: string) => boolean;
|
|
27
|
+
isRestaurantLocked?: (restaurantId: string) => boolean;
|
|
28
|
+
createRow: () => T;
|
|
29
|
+
title: string;
|
|
30
|
+
restaurantLabel: string;
|
|
31
|
+
roleLabel: string;
|
|
32
|
+
addLabel: string;
|
|
33
|
+
removeLabel: string;
|
|
34
|
+
}
|
|
35
|
+
export declare function selectedRestaurantIds(rows: OutletRoleRow[]): string[];
|
|
36
|
+
export declare function buildRestaurantOptions(restaurants: HrmRestaurant[], rows: OutletRoleRow[], currentRestaurantId: string): SelectOption[];
|
|
37
|
+
export declare function buildRoleOptions(roles: Role[], restaurantId: string, currentRoleId: string, rules: AssignmentRules): SelectOption[];
|
|
38
|
+
export declare function pickRoleForRestaurant(roles: Role[], restaurantId: string, currentRoleId: string, rules: AssignmentRules): string;
|
|
39
|
+
export declare function canAddAssignment(restaurants: HrmRestaurant[], rows: OutletRoleRow[]): boolean;
|
|
40
|
+
export declare function removeAssignment<T extends OutletRoleRow>(rows: T[], index: number, createRow: () => T, rules: AssignmentRules): T[];
|
|
@@ -20,6 +20,21 @@ export declare function ruleExtension(rule: FdoPermissionRule): {
|
|
|
20
20
|
};
|
|
21
21
|
export declare function getMaxDiscount(rules: FdoPermissionRule[]): number;
|
|
22
22
|
export declare function getManagableRestaurantIds(rules: (FdoPermissionRule | RawRule)[]): string[] | null;
|
|
23
|
+
export interface MasterUserAccess {
|
|
24
|
+
/** null = every restaurant, [] = none */
|
|
25
|
+
restaurantIds: string[] | null;
|
|
26
|
+
/** null = every role, [] = none */
|
|
27
|
+
roleIds: string[] | null;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Outlets and POS roles a team member may be assigned as a master user.
|
|
31
|
+
* The business owner is unrestricted regardless of stored rules: their rules
|
|
32
|
+
* are not editable in the portal and legacy documents often lack the
|
|
33
|
+
* `restaurant` / `business::role` subjects this derivation depends on.
|
|
34
|
+
*/
|
|
35
|
+
export declare function resolveMasterUserAccess(rules: (FdoPermissionRule | RawRule)[], options: {
|
|
36
|
+
isOwner: boolean;
|
|
37
|
+
}): MasterUserAccess;
|
|
23
38
|
export declare function hasAdminRule(rules: FdoPermissionRule[]): boolean;
|
|
24
39
|
export declare function usableRoleIds(rules: (FdoPermissionRule | RawRule)[]): string[] | null;
|
|
25
40
|
export declare function extractReportExtraCondition(rule: FdoPermissionRule): Record<string, unknown> | undefined;
|
|
@@ -9,4 +9,5 @@ declare const filter: {
|
|
|
9
9
|
declare const validate: {
|
|
10
10
|
email(input: string): RegExpMatchArray | null;
|
|
11
11
|
};
|
|
12
|
-
|
|
12
|
+
declare function nameInitials(name: string | null | undefined): string;
|
|
13
|
+
export { filter, validate, randomString, nameInitials };
|
|
@@ -10,7 +10,10 @@ export declare enum RouteName {
|
|
|
10
10
|
TEAM_ROLE = "team-role",
|
|
11
11
|
POS_ACCESS = "pos-access",
|
|
12
12
|
POS_GRANT = "pos-grant",
|
|
13
|
-
APPROVAL_CODE = "approval-code"
|
|
13
|
+
APPROVAL_CODE = "approval-code",
|
|
14
|
+
SCHEDULE = "schedule",
|
|
15
|
+
SCHEDULE_POSITION = "schedule-position",
|
|
16
|
+
SCHEDULE_GENERAL = "schedule-general"
|
|
14
17
|
}
|
|
15
18
|
declare const routes: RouteRecordRaw[];
|
|
16
19
|
export { routes };
|
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
export interface FdtoSchedulePosition {
|
|
2
|
+
id: string;
|
|
3
|
+
name: string;
|
|
4
|
+
}
|
|
5
|
+
/** Creates or renames a position — see the backend DTO of the same name. Positions are
|
|
6
|
+
* business-level, not per-outlet, so this carries nothing that names one. */
|
|
7
|
+
export interface FdtoScheduleSavePositionReq {
|
|
8
|
+
name: string;
|
|
9
|
+
}
|
|
10
|
+
export interface FdtoSchedulePositionRef {
|
|
11
|
+
positionId: string;
|
|
12
|
+
positionName: string;
|
|
13
|
+
}
|
|
14
|
+
/** What a create/update request names a position by — see the backend DTO of the same name.
|
|
15
|
+
* `positionId` wins server-side when it resolves; `positionName` is what every picker on this
|
|
16
|
+
* board actually has to offer (see `POSITIONS`/`positionIdOf` in `data.ts`), so it's always
|
|
17
|
+
* sent too, as the fallback a stale or not-yet-loaded id catalogue would need. */
|
|
18
|
+
export interface FdtoSchedulePositionSelectorReq {
|
|
19
|
+
positionId?: string;
|
|
20
|
+
positionName: string;
|
|
21
|
+
}
|
|
22
|
+
/** Multipliers on an hour's pay, by the kind of day it falls on. A NORMAL day carries only an
|
|
23
|
+
* overtime multiplier — its ordinary hours are 1× by definition. */
|
|
24
|
+
export interface FdtoSchedulePayRate {
|
|
25
|
+
NORMAL: {
|
|
26
|
+
overtime: number;
|
|
27
|
+
};
|
|
28
|
+
REST_DAY: {
|
|
29
|
+
regular: number;
|
|
30
|
+
overtime: number;
|
|
31
|
+
};
|
|
32
|
+
PUBLIC_HOLIDAY: {
|
|
33
|
+
regular: number;
|
|
34
|
+
overtime: number;
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export interface FdtoScheduleSettings {
|
|
38
|
+
payRate: FdtoSchedulePayRate;
|
|
39
|
+
}
|
|
40
|
+
/** When the outlet trades, from its own Restaurants profile — ScheduleSettings no longer
|
|
41
|
+
* carries it. `dayOfWeek` is JS `getDay()` (0 = Sunday). A closed day carries no windows; an
|
|
42
|
+
* open day carries one or more `{start, end}` windows (a lunch/dinner split reads as two, not
|
|
43
|
+
* one that spans the gap between them). */
|
|
44
|
+
export interface FdtoScheduleDayOperatingHours {
|
|
45
|
+
dayOfWeek: number;
|
|
46
|
+
closed: boolean;
|
|
47
|
+
hours: Array<{
|
|
48
|
+
start: string;
|
|
49
|
+
end: string;
|
|
50
|
+
}>;
|
|
51
|
+
}
|
|
52
|
+
export interface FdtoScheduleRestaurantProfile {
|
|
53
|
+
operatingHours: FdtoScheduleDayOperatingHours[];
|
|
54
|
+
}
|
|
55
|
+
/** Creates or updates the employee's business-level scheduling profile through POST /employees. */
|
|
56
|
+
export interface FdtoScheduleCreateEmployeeProfileReq {
|
|
57
|
+
employeeId: string;
|
|
58
|
+
employeeName: string;
|
|
59
|
+
employmentType?: 'FULLTIME' | 'PARTTIME';
|
|
60
|
+
workingHour?: number;
|
|
61
|
+
wage?: {
|
|
62
|
+
type: 'HOURLY' | 'MONTHLY';
|
|
63
|
+
amount: number;
|
|
64
|
+
};
|
|
65
|
+
primaryPosition?: FdtoSchedulePositionSelectorReq;
|
|
66
|
+
secondaryPositions?: FdtoSchedulePositionSelectorReq[];
|
|
67
|
+
availability?: Array<{
|
|
68
|
+
dayOfWeek: number;
|
|
69
|
+
start: string;
|
|
70
|
+
end: string;
|
|
71
|
+
}>;
|
|
72
|
+
}
|
|
73
|
+
/** Editable profile fields. The API helper adds employeeId to the POST /employees body. */
|
|
74
|
+
export type FdtoScheduleUpdateEmployeeProfileReq = Omit<FdtoScheduleCreateEmployeeProfileReq, 'employeeId'>;
|
|
75
|
+
export interface FdtoScheduleEmployee {
|
|
76
|
+
employeeId: string;
|
|
77
|
+
name: string;
|
|
78
|
+
employmentType: 'FULLTIME' | 'PARTTIME';
|
|
79
|
+
workingHour: number;
|
|
80
|
+
wage: {
|
|
81
|
+
type: 'HOURLY' | 'MONTHLY';
|
|
82
|
+
amount: number;
|
|
83
|
+
};
|
|
84
|
+
primaryPosition: FdtoSchedulePositionRef | null;
|
|
85
|
+
secondaryPositions: FdtoSchedulePositionRef[];
|
|
86
|
+
availability: Array<{
|
|
87
|
+
dayOfWeek: number;
|
|
88
|
+
start: string;
|
|
89
|
+
end: string;
|
|
90
|
+
}>;
|
|
91
|
+
}
|
|
92
|
+
export interface FdtoScheduleAssignment {
|
|
93
|
+
id: string;
|
|
94
|
+
employeeId: string;
|
|
95
|
+
position: FdtoSchedulePositionRef | null;
|
|
96
|
+
date: string;
|
|
97
|
+
startTime: string;
|
|
98
|
+
endTime: string;
|
|
99
|
+
breakMinutes: number;
|
|
100
|
+
status: 'DRAFT' | 'PUBLISHED' | 'CONFIRMED';
|
|
101
|
+
}
|
|
102
|
+
/** Creates or replaces one plain assignment — see the backend DTO of the same name for the
|
|
103
|
+
* full contract. */
|
|
104
|
+
export interface FdtoScheduleSaveAssignmentReq {
|
|
105
|
+
employeeId: string;
|
|
106
|
+
date: string;
|
|
107
|
+
startTime: string;
|
|
108
|
+
endTime: string;
|
|
109
|
+
breakMinutes?: number;
|
|
110
|
+
position?: FdtoSchedulePositionSelectorReq;
|
|
111
|
+
status?: 'DRAFT' | 'PUBLISHED' | 'CONFIRMED';
|
|
112
|
+
}
|
|
113
|
+
/** Flips a batch of existing assignments to one status in a single request — see the backend
|
|
114
|
+
* DTO of the same name. */
|
|
115
|
+
export interface FdtoScheduleBulkUpdateAssignmentStatusReq {
|
|
116
|
+
ids: string[];
|
|
117
|
+
status: 'DRAFT' | 'PUBLISHED' | 'CONFIRMED';
|
|
118
|
+
}
|
|
119
|
+
export type FdtoScheduleAutoScheduleObjective = 'BALANCED' | 'SERVICE' | 'LOWER_COST' | 'STABLE_HOURS';
|
|
120
|
+
export interface FdtoScheduleAutoScheduleReq {
|
|
121
|
+
from: string;
|
|
122
|
+
to: string;
|
|
123
|
+
objective: FdtoScheduleAutoScheduleObjective;
|
|
124
|
+
fillDemandGaps: boolean;
|
|
125
|
+
allowOvertime?: boolean;
|
|
126
|
+
minimumCoveragePercent?: number;
|
|
127
|
+
}
|
|
128
|
+
export interface FdtoScheduleAutoScheduleProposal {
|
|
129
|
+
employeeId: string;
|
|
130
|
+
date: string;
|
|
131
|
+
startTime: string;
|
|
132
|
+
endTime: string;
|
|
133
|
+
position: string;
|
|
134
|
+
}
|
|
135
|
+
export interface FdtoScheduleAutoScheduleResult {
|
|
136
|
+
proposals: FdtoScheduleAutoScheduleProposal[];
|
|
137
|
+
unfilledCount: number;
|
|
138
|
+
metrics: {
|
|
139
|
+
minimumCoveragePercent: number;
|
|
140
|
+
recommendedCoveragePercent: number;
|
|
141
|
+
totalHours: number;
|
|
142
|
+
estimatedLabourCost: number | null;
|
|
143
|
+
costCoveragePercent: number;
|
|
144
|
+
overtimeHours: number;
|
|
145
|
+
targetHoursVariance: number;
|
|
146
|
+
unfilledIntervals: number;
|
|
147
|
+
};
|
|
148
|
+
readiness: {
|
|
149
|
+
ready: boolean;
|
|
150
|
+
capabilities: string[];
|
|
151
|
+
issues: Array<{
|
|
152
|
+
code: string;
|
|
153
|
+
severity: 'BLOCKER' | 'WARNING' | 'INFO';
|
|
154
|
+
message: string;
|
|
155
|
+
}>;
|
|
156
|
+
coverage: {
|
|
157
|
+
position: number;
|
|
158
|
+
availability: number;
|
|
159
|
+
wage: number;
|
|
160
|
+
targetHours: number;
|
|
161
|
+
};
|
|
162
|
+
};
|
|
163
|
+
explanations: string[];
|
|
164
|
+
solver: string;
|
|
165
|
+
}
|
|
166
|
+
export interface FdtoScheduleDemand {
|
|
167
|
+
id: string;
|
|
168
|
+
date: string | null;
|
|
169
|
+
dayOfWeek: number | null;
|
|
170
|
+
startTime: string;
|
|
171
|
+
endTime: string;
|
|
172
|
+
headcount: number;
|
|
173
|
+
position: FdtoSchedulePositionRef | null;
|
|
174
|
+
}
|
|
175
|
+
/** Creates or updates one flat demand interval for a date OR standing weekday. */
|
|
176
|
+
export interface FdtoScheduleSaveDemandReq {
|
|
177
|
+
date?: string;
|
|
178
|
+
dayOfWeek?: number;
|
|
179
|
+
startTime: string;
|
|
180
|
+
endTime: string;
|
|
181
|
+
headcount: number;
|
|
182
|
+
position?: FdtoSchedulePositionSelectorReq;
|
|
183
|
+
}
|
|
184
|
+
/** UI-level replacement command. The store expands these periods into flat ShiftDemand rows. */
|
|
185
|
+
export interface ScheduleReplaceDemandReq {
|
|
186
|
+
date?: string;
|
|
187
|
+
dayOfWeek?: number;
|
|
188
|
+
periods: Array<{
|
|
189
|
+
startTime: string;
|
|
190
|
+
endTime: string;
|
|
191
|
+
headcount: number;
|
|
192
|
+
roles?: Array<{
|
|
193
|
+
positionId?: string;
|
|
194
|
+
positionName: string;
|
|
195
|
+
headcount: number;
|
|
196
|
+
}>;
|
|
197
|
+
}>;
|
|
198
|
+
}
|
|
199
|
+
/** Whatever a manager has authored about one DATE — a titled note, and whether it bills at the
|
|
200
|
+
* holiday rate — see the backend DTO of the same name. A date nothing has ever been set on
|
|
201
|
+
* reads the same as one whose document was deleted after being cleared back to empty. */
|
|
202
|
+
export interface FdtoScheduleScheduleDay {
|
|
203
|
+
id: string;
|
|
204
|
+
date: string;
|
|
205
|
+
title: string;
|
|
206
|
+
description: string;
|
|
207
|
+
isPublicHoliday: boolean;
|
|
208
|
+
}
|
|
209
|
+
/** Replaces one date's note/holiday-mark in one write — see the backend DTO of the same name.
|
|
210
|
+
* All three fields back to empty/false clears it. */
|
|
211
|
+
export interface FdtoScheduleSaveScheduleDayReq {
|
|
212
|
+
title?: string;
|
|
213
|
+
description?: string;
|
|
214
|
+
isPublicHoliday?: boolean;
|
|
215
|
+
}
|
|
216
|
+
export interface FdtoScheduleBoard {
|
|
217
|
+
outlet: {
|
|
218
|
+
id: string;
|
|
219
|
+
name: string;
|
|
220
|
+
};
|
|
221
|
+
range: {
|
|
222
|
+
from: string;
|
|
223
|
+
to: string;
|
|
224
|
+
};
|
|
225
|
+
settings: FdtoScheduleSettings;
|
|
226
|
+
restaurantProfile: FdtoScheduleRestaurantProfile;
|
|
227
|
+
positions: FdtoSchedulePosition[];
|
|
228
|
+
employees: FdtoScheduleEmployee[];
|
|
229
|
+
assignments: FdtoScheduleAssignment[];
|
|
230
|
+
demands: FdtoScheduleDemand[];
|
|
231
|
+
days: FdtoScheduleScheduleDay[];
|
|
232
|
+
}
|
|
@@ -197,6 +197,7 @@ export declare const i18nMessages: {
|
|
|
197
197
|
create: string;
|
|
198
198
|
update: string;
|
|
199
199
|
delete: string;
|
|
200
|
+
"generate-passcode": string;
|
|
200
201
|
};
|
|
201
202
|
"pos-user": {
|
|
202
203
|
list: string;
|
|
@@ -422,6 +423,7 @@ export declare const i18nMessages: {
|
|
|
422
423
|
create: string;
|
|
423
424
|
update: string;
|
|
424
425
|
delete: string;
|
|
426
|
+
"generate-passcode": string;
|
|
425
427
|
};
|
|
426
428
|
"pos-user": {
|
|
427
429
|
list: string;
|
|
@@ -647,6 +649,7 @@ export declare const i18nMessages: {
|
|
|
647
649
|
create: string;
|
|
648
650
|
update: string;
|
|
649
651
|
delete: string;
|
|
652
|
+
"generate-passcode": string;
|
|
650
653
|
};
|
|
651
654
|
"pos-user": {
|
|
652
655
|
list: string;
|
|
@@ -872,6 +875,7 @@ export declare const i18nMessages: {
|
|
|
872
875
|
create: string;
|
|
873
876
|
update: string;
|
|
874
877
|
delete: string;
|
|
878
|
+
"generate-passcode": string;
|
|
875
879
|
};
|
|
876
880
|
"pos-user": {
|
|
877
881
|
list: string;
|
|
@@ -29,6 +29,8 @@ export declare const i18nMessages: {
|
|
|
29
29
|
passcode: string;
|
|
30
30
|
passcodeRequired: string;
|
|
31
31
|
passcodeGenerate: string;
|
|
32
|
+
passcodeSelectOutletFirst: string;
|
|
33
|
+
passcodeToggleVisibility: string;
|
|
32
34
|
atLeastOneRestaurant: string;
|
|
33
35
|
roleRequired: string;
|
|
34
36
|
all: string;
|
|
@@ -235,6 +237,8 @@ export declare const i18nMessages: {
|
|
|
235
237
|
passcode: string;
|
|
236
238
|
passcodeRequired: string;
|
|
237
239
|
passcodeGenerate: string;
|
|
240
|
+
passcodeSelectOutletFirst: string;
|
|
241
|
+
passcodeToggleVisibility: string;
|
|
238
242
|
atLeastOneRestaurant: string;
|
|
239
243
|
roleRequired: string;
|
|
240
244
|
all: string;
|
|
@@ -441,6 +445,8 @@ export declare const i18nMessages: {
|
|
|
441
445
|
passcode: string;
|
|
442
446
|
passcodeRequired: string;
|
|
443
447
|
passcodeGenerate: string;
|
|
448
|
+
passcodeSelectOutletFirst: string;
|
|
449
|
+
passcodeToggleVisibility: string;
|
|
444
450
|
atLeastOneRestaurant: string;
|
|
445
451
|
roleRequired: string;
|
|
446
452
|
all: string;
|
|
@@ -646,6 +652,8 @@ export declare const i18nMessages: {
|
|
|
646
652
|
passcode: string;
|
|
647
653
|
passcodeRequired: string;
|
|
648
654
|
passcodeGenerate: string;
|
|
655
|
+
passcodeSelectOutletFirst: string;
|
|
656
|
+
passcodeToggleVisibility: string;
|
|
649
657
|
atLeastOneRestaurant: string;
|
|
650
658
|
roleRequired: string;
|
|
651
659
|
all: string;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import './index.css';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import './index.css';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import './index.css';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { useScheduleAddEmployee } from '../composables/useScheduleAddEmployee';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
wizard: ReturnType<typeof useScheduleAddEmployee>;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { useScheduleAddEmployee } from '../composables/useScheduleAddEmployee';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
wizard: ReturnType<typeof useScheduleAddEmployee>;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
6
|
+
newPosition: (target: "primary" | "secondary") => any;
|
|
7
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
8
|
+
onNewPosition?: ((target: "primary" | "secondary") => any) | undefined;
|
|
9
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { useScheduleAddEmployee } from '../composables/useScheduleAddEmployee';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
wizard: ReturnType<typeof useScheduleAddEmployee>;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { useScheduleAddEmployee } from '../composables/useScheduleAddEmployee';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
wizard: ReturnType<typeof useScheduleAddEmployee>;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { useScheduleAddEmployee } from '../composables/useScheduleAddEmployee';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
wizard: ReturnType<typeof useScheduleAddEmployee>;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
6
|
+
newPosition: (target: "primary" | "secondary") => any;
|
|
7
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
8
|
+
onNewPosition?: ((target: "primary" | "secondary") => any) | undefined;
|
|
9
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { useScheduleAddEmployee } from '../composables/useScheduleAddEmployee';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
wizard: ReturnType<typeof useScheduleAddEmployee>;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ScheduleAddPickApi } from '../composables/useScheduleAddPick';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
addPick: ScheduleAddPickApi;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { SchedulePositionModalApi } from '../composables/useSchedulePositionModal';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
modal: SchedulePositionModalApi;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
export default _default;
|