diff --git a/src/constants/messages.ts b/src/constants/messages.ts index b0ceced2..b696c687 100644 --- a/src/constants/messages.ts +++ b/src/constants/messages.ts @@ -115,6 +115,9 @@ export const FAILURE_MESSAGES = { 'INVITATION_CSV_TEMPLATE_ITEM_DOES_NOT_EXIST', INVITATION_CANNOT_CREATE_STRUCTURE_IN_NON_FOLDER_ITEM: 'INVITATION_CANNOT_CREATE_STRUCTURE_IN_NON_FOLDER_ITEM', + MEMBERSHIP_ALREADY_EXISTS: 'MEMBERSHIP_ALREADY_EXISTS', + MEMBERSHIP_REQUEST_ALREADY_EXISTS: 'MEMBERSHIP_REQUEST_ALREADY_EXISTS', + MEMBERSHIP_REQUEST_NOT_FOUND: 'MEMBERSHIP_REQUEST_NOT_FOUND', }; export const DEFAULT_FAILURE_MESSAGE = FAILURE_MESSAGES.UNEXPECTED_ERROR; diff --git a/src/langs/en/messages.json b/src/langs/en/messages.json index 7828c1dc..507037eb 100644 --- a/src/langs/en/messages.json +++ b/src/langs/en/messages.json @@ -137,5 +137,8 @@ "INVITATION_CSV_NO_FILE_PROVIDED": "No file was provided. Please provide a file for creating bulk invitations", "INVITATION_CSV_NO_DATA_IN_FILE": "No data was found in the file. Please send a file with valid data.", "INVITATION_CSV_TEMPLATE_ITEM_DOES_NOT_EXIST": "The template item does not exist.", - "INVITATION_CANNOT_CREATE_STRUCTURE_IN_NON_FOLDER_ITEM": "Provided item is not a folder. A structure cannot be created inside an item that is not a folder." + "INVITATION_CANNOT_CREATE_STRUCTURE_IN_NON_FOLDER_ITEM": "Provided item is not a folder. A structure cannot be created inside an item that is not a folder.", + "MEMBERSHIP_ALREADY_EXISTS": "This account already has access to this item.", + "MEMBERSHIP_REQUEST_ALREADY_EXISTS": "This account has already requested a membership to the provided item.", + "MEMBERSHIP_REQUEST_NOT_FOUND": "Provided Membership Request not found." }