Refactor validations
This commit is contained in:
@@ -1,4 +1,22 @@
|
||||
export const CollectionValidation = {
|
||||
/* The maximum length of the collection description */
|
||||
/** The maximum length of the collection description */
|
||||
maxDescriptionLength: 1000,
|
||||
|
||||
/** The maximum length of the collection name */
|
||||
maxNameLength: 100,
|
||||
};
|
||||
|
||||
export const DocumentValidation = {
|
||||
/** The maximum length of the document title */
|
||||
maxTitleLength: 100,
|
||||
};
|
||||
|
||||
export const PinValidation = {
|
||||
/** The maximum number of pinned documents on an individual collection or home screen */
|
||||
max: 8,
|
||||
};
|
||||
|
||||
export const TeamValidation = {
|
||||
/** The maximum number of domains per team */
|
||||
maxDomains: 10,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user