diff --git a/src/constants/messages.ts b/src/constants/messages.ts index 67617bc6..24e3ee86 100644 --- a/src/constants/messages.ts +++ b/src/constants/messages.ts @@ -30,6 +30,10 @@ export const FAILURE_MESSAGES = { UNEXPECTED_ERROR: 'UNEXPECTED_ERROR', EMAIL_ALREADY_TAKEN: 'EMAIL_ALREADY_TAKEN', + // item validation + INVALID_ITEM_NAME_PATTERN_ERROR: 'INVALID_ITEM_NAME_PATTERN_ERROR', + INVALID_ITEM_NAME_MAX_LENGTH_ERROR: 'INVALID_ITEM_NAME_MAX_LENGTH_ERROR', + FILE_IS_NOT_IMAGE: 'FILE_IS_NOT_IMAGE', // file upload limiter diff --git a/src/langs/en/messages.json b/src/langs/en/messages.json index a2424b7a..fefb70d3 100644 --- a/src/langs/en/messages.json +++ b/src/langs/en/messages.json @@ -154,5 +154,7 @@ "ENROLL": "You successfully enrolled to the item.", "CANNOT_REGISTER_ON_FROZEN_ITEM_LOGIN_SCHEMA": "Cannot register on the targeted item because the subscription has been frozen by its owner", "CANNOT_ENROLL_FROZEN_ITEM_LOGIN_SCHEMA": "Cannot enroll in the targeted item because the subscription has been frozen by its owner", - "NOT_MEMBER_OR_GUEST": "Your account is not registered as member or pseudonimized user" + "NOT_MEMBER_OR_GUEST": "Your account is not registered as member or pseudonimized user", + "INVALID_ITEM_NAME_PATTERN_ERROR": "The item's name is not valid. It should start and end with an alphabetical character.", + "INVALID_ITEM_NAME_MAX_LENGTH_ERROR": "The item's name is too long." }