UNPKG

@bdelab/roar-firekit

Version:

A library to facilitate Firebase authentication and Cloud Firestore interaction for ROAR apps

73 lines (72 loc) 1.9 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Permissions = void 0; exports.Permissions = { Reports: { Score: { ALL: 'reports.score.*', READ: 'reports.score.read', READ_COMPOSITE: 'reports.score.read_composite', }, Progress: { ALL: 'reports.progress.*', READ: 'reports.progress.read', }, Student: { ALL: 'reports.student.*', READ: 'reports.student.read', }, }, Organizations: { ALL: 'organizations.*', LIST: 'organizations.list', CREATE: 'organizations.create', UPDATE: 'organizations.update', }, Administrations: { ALL: 'administrations.*', LIST: 'administrations.list', CREATE: 'administrations.create', UPDATE: 'administrations.update', }, Administrators: { ALL: 'administrators.*', READ: 'administrators.read', CREATE: 'administrators.create', UPDATE: 'administrators.update', Credentials: { UPDATE: 'administrators.credentials.update', }, }, Profile: { ALL: 'profile.*', READ: 'profile.read', }, Users: { ALL: 'users.*', LIST: 'users.list', CREATE: 'users.create', UPDATE: 'users.update', UNENROLL: 'users.unenroll', SET_PID: 'users.set_pid', Credentials: { UPDATE: 'users.credentials.update', }, }, Tasks: { ALL: 'tasks.*', CREATE: 'tasks.create', UPDATE: 'tasks.update', LAUNCH: 'tasks.launch', }, Runs: { ALL: 'runs.*', DELETE: 'runs.delete', Scores: { MARK_INELIGIBLE: 'runs.scores.mark_ineligble', }, }, TestData: { CREATE: 'data.create', }, };