Refactor validations

This commit is contained in:
Tom Moor
2022-07-24 13:40:04 +01:00
parent 870d9ed41e
commit ec35af4bc5
13 changed files with 47 additions and 33 deletions

View File

@@ -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,
};