26 lines
632 B
TypeScript
26 lines
632 B
TypeScript
import type { Schema, Struct } from '@strapi/strapi';
|
|
|
|
export interface UserPermissions extends Struct.ComponentSchema {
|
|
collectionName: 'components_user_permissions';
|
|
info: {
|
|
displayName: 'permissions';
|
|
icon: 'key';
|
|
};
|
|
attributes: {
|
|
active: Schema.Attribute.Boolean;
|
|
module: Schema.Attribute.Enumeration<
|
|
['information', 'chat', 'board', 'calendar', 'users']
|
|
>;
|
|
read: Schema.Attribute.Boolean;
|
|
write: Schema.Attribute.Boolean;
|
|
};
|
|
}
|
|
|
|
declare module '@strapi/strapi' {
|
|
export module Public {
|
|
export interface ComponentSchemas {
|
|
'user.permissions': UserPermissions;
|
|
}
|
|
}
|
|
}
|