@@ -1,29 +1,29 @@
|
||||
export type LoadSchemaOptions = {
|
||||
clearCache: boolean
|
||||
clearCache: boolean,
|
||||
};
|
||||
|
||||
export type SchemaField = {
|
||||
type: string;
|
||||
targetClass?: ?string;
|
||||
}
|
||||
type: string,
|
||||
targetClass?: ?string,
|
||||
};
|
||||
|
||||
export type SchemaFields = { [string]: SchemaField }
|
||||
export type SchemaFields = { [string]: SchemaField };
|
||||
|
||||
export type Schema = {
|
||||
className: string,
|
||||
fields: SchemaFields,
|
||||
classLevelPermissions: ClassLevelPermissions,
|
||||
indexes?: ?any
|
||||
indexes?: ?any,
|
||||
};
|
||||
|
||||
export type ClassLevelPermissions = {
|
||||
find?: {[string]: boolean};
|
||||
count?: {[string]: boolean};
|
||||
get?: {[string]: boolean};
|
||||
create?: {[string]: boolean};
|
||||
update?: {[string]: boolean};
|
||||
delete?: {[string]: boolean};
|
||||
addField?: {[string]: boolean};
|
||||
readUserFields?: string[];
|
||||
writeUserFields?: string[];
|
||||
find?: { [string]: boolean },
|
||||
count?: { [string]: boolean },
|
||||
get?: { [string]: boolean },
|
||||
create?: { [string]: boolean },
|
||||
update?: { [string]: boolean },
|
||||
delete?: { [string]: boolean },
|
||||
addField?: { [string]: boolean },
|
||||
readUserFields?: string[],
|
||||
writeUserFields?: string[],
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user