@openinc/parse-server-opendash
Version:
Parse Server Cloud Code for open.INC Stack.
45 lines (44 loc) • 1.99 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Permissions = void 0;
/**
* Permissions that should be registered in the database by default when the server starts.
* The ACLs are set to od-admin only.
* Adding new Permissions here requires the server to restart for registering those.
*/
var Permissions;
(function (Permissions) {
// needs to be exported for getAllPermissions() to work
// make sure the enum names are called like the features in featuremap.json
let MAINTENANCE;
(function (MAINTENANCE) {
// Create
MAINTENANCE["ticket"] = "maintenance:can-create-ticket";
MAINTENANCE["schedule"] = "maintenance:can-create-schedule";
MAINTENANCE["message"] = "maintenance:can-create-message";
MAINTENANCE["machinelog_ticket"] = "maintenance:can-create-machinelog-ticket";
MAINTENANCE["machinelog_schedule"] = "maintenance:can-create-machinelog-schedule";
MAINTENANCE["machinelog_message"] = "maintenance:can-create-machinelog-message";
// Access
MAINTENANCE["global"] = "maintenance:can-access-global";
MAINTENANCE["monitor"] = "maintenance:can-access-monitor";
MAINTENANCE["monitoring"] = "maintenance:can-access-monitoring";
// Update
MAINTENANCE["kanban_view"] = "maintenance:can-update-kanban-view";
})(MAINTENANCE = Permissions.MAINTENANCE || (Permissions.MAINTENANCE = {}));
let CORE;
(function (CORE) {
//Access
CORE["adminoverview"] = "opendash:can-access-admin-overview";
})(CORE = Permissions.CORE || (Permissions.CORE = {}));
// can also be used for nested permissions
// Example:
// export namespace TestPlugin {
// export enum TestPermission {
// test = "test:can-test",
// }
// export enum TestPermission2 {
// test2 = "test:can-test2",
// }
// }
})(Permissions || (exports.Permissions = Permissions = {}));