Files
n8n-enterprise-unlocked/packages/nodes-base/nodes/Aws/Cognito/helpers/constants.ts
Valentina Lilova f6e5efc2e0 feat(n8n AWS Cognito Node): New node (#11767)
Co-authored-by: Stamsy <stams_89@abv.bg>
Co-authored-by: Adina Totorean <adinatotorean99@gmail.com>
Co-authored-by: Giulio Andreini <g.andreini@gmail.com>
Co-authored-by: AdinaTotorean <64439268+adina-hub@users.noreply.github.com>
Co-authored-by: Shireen Missi <94372015+ShireenMissi@users.noreply.github.com>
Co-authored-by: feelgood-interface <feelgood.interface@gmail.com>
2025-05-08 10:50:48 +01:00

65 lines
2.3 KiB
TypeScript

export const HeaderConstants = {
AUTHORIZATION: 'authorization',
X_MS_CONTINUATION: 'x-ms-continuation',
X_MS_COSMOS_OFFER_AUTOPILOT_SETTING: 'x-ms-cosmos-offer-autopilot-setting',
X_MS_DOCUMENTDB_IS_UPSERT: 'x-ms-documentdb-is-upsert',
X_MS_DOCUMENTDB_PARTITIONKEY: 'x-ms-documentdb-partitionkey',
X_MS_MAX_ITEM_COUNT: 'x-ms-max-item-count',
X_MS_OFFER_THROUGHPUT: 'x-ms-offer-throughput',
};
export const ERROR_MESSAGES = {
ResourceNotFound: {
Group: {
delete: {
message: 'The group you are trying to delete could not be found.',
description: 'Adjust the "Group" parameter setting to delete the group correctly.',
},
get: {
message: 'The group you are trying to retrieve could not be found.',
description: 'Adjust the "Group" parameter setting to retrieve the group correctly.',
},
update: {
message: 'The group you are trying to update could not be found.',
description: 'Adjust the "Group" parameter setting to update the group correctly.',
},
},
User: {
delete: {
message: 'The user are trying to retrieve could not be found.',
description: 'Adjust the "User" parameter setting to delete the user correctly.',
},
get: {
message: 'The user you are trying to retrieve could not be found.',
description: 'Adjust the "User" parameter setting to retrieve the user correctly.',
},
update: {
message: 'The user you are trying to update could not be found.',
description: 'Adjust the "User" parameter setting to update the user correctly.',
},
},
},
EntityAlreadyExists: {
Group: {
message: 'The group you are trying to create already exists.',
description: 'Adjust the "Group Name" parameter setting to create the group correctly.',
},
User: {
message: 'The user you are trying to create already exists.',
description: 'Adjust the "User Name" parameter setting to create the user correctly.',
},
},
UserGroup: {
add: {
message: 'The user/group you are trying to add could not be found.',
description:
'Adjust the "User" and "Group" parameters to add the user to the group correctly.',
},
remove: {
message: 'The user/group you are trying to remove could not be found.',
description:
'Adjust the "User" and "Group" parameters to remove the user from the group correctly.',
},
},
};