2016-09-24 08:05:26 +03:00
|
|
|
import { SimpleSchema } from 'meteor/aldeed:simple-schema';
|
|
|
|
|
|
|
|
export default new SimpleSchema({
|
|
|
|
firewall: {
|
|
|
|
type: Function,
|
|
|
|
optional: true
|
|
|
|
},
|
|
|
|
|
|
|
|
maxLimit: {
|
|
|
|
type: Number,
|
|
|
|
optional: true,
|
|
|
|
min: 1
|
|
|
|
},
|
|
|
|
|
|
|
|
maxDepth: {
|
|
|
|
type: Number,
|
|
|
|
optional: true,
|
|
|
|
min: 1
|
|
|
|
},
|
|
|
|
|
|
|
|
restrictedFields: {
|
|
|
|
type: [String],
|
|
|
|
optional: true
|
2016-09-28 18:30:12 +03:00
|
|
|
},
|
|
|
|
|
2016-10-07 10:31:58 +03:00
|
|
|
restrictLinks: {
|
|
|
|
type: null, // Can be function that accepts userId and returns array or array
|
2016-09-28 18:30:12 +03:00
|
|
|
optional: true
|
|
|
|
},
|
|
|
|
|
|
|
|
publication: {
|
|
|
|
type: Boolean,
|
|
|
|
defaultValue: true
|
|
|
|
},
|
|
|
|
|
|
|
|
method: {
|
|
|
|
type: Boolean,
|
|
|
|
defaultValue: true
|
2016-09-24 08:05:26 +03:00
|
|
|
}
|
|
|
|
})
|