"""Module manifest — see core/modules/model.py and APPS_PLATFORM §4.""" from core.modules.model import ConfigField, DeviceApp, Limit, Module, Mount, Perm # Back to the sign-in screen after this many idle minutes (shared screens; 0 = never). Used by # the terminal from step 3.1c. AUTO_SIGN_OUT = ConfigField('auto_sign_out_minutes', 'int', default=0, choices=(0, 2, 5, 10, 30, 60)) MODULE = Module( key='kds', kind='app', name='Kitchen display', description='Screens in the kitchen or bar showing orders to prepare.', depends=('ordering',), permissions=( Perm('kds.access', 'Use the kitchen display', roles=('owner', 'store_manager', 'chef', 'assistant_chef')), Perm('kds.bump', 'Mark items ready', roles=('owner', 'store_manager', 'chef', 'assistant_chef')), ), limits=( Limit('devices', 'Number of kitchen screens', free=0, licensed_default=1), ), device_app=DeviceApp(login_modes=('pin', 'tap', 'password'), scope=('kds.*',), config=(AUTO_SIGN_OUT,)), routers=( Mount('routers.kds', '/api/kds'), ), )