/** POS permissions used in the POS app. */ export type PosPermission = | 'POS_SELL' | 'POS_REFUND' | 'POS_DISCOUNT' | 'POS_VOID' | 'POS_OPEN_REGISTER' | 'POS_CLOSE_REGISTER'; /** Map role → granted permissions. */ export const POS_ROLE_PERMISSIONS: Record = { admin: ['POS_SELL', 'POS_REFUND', 'POS_DISCOUNT', 'POS_VOID', 'POS_OPEN_REGISTER', 'POS_CLOSE_REGISTER'], pos_manager: ['POS_SELL', 'POS_REFUND', 'POS_DISCOUNT', 'POS_VOID', 'POS_OPEN_REGISTER', 'POS_CLOSE_REGISTER'], pos_cashier: ['POS_SELL'], };