small rephrase

This commit is contained in:
Maidul Islam
2024-05-28 17:20:22 -04:00
parent 6c6c436cc6
commit b2ad7cc7c0
2 changed files with 7 additions and 7 deletions
+4 -4
View File
@@ -722,14 +722,14 @@ export const AUDIT_LOG_STREAMS = {
export const PROJECT_ROLE = { export const PROJECT_ROLE = {
CREATE: { CREATE: {
projectSlug: "The slug of the project to create role.", projectSlug: "Slug of the project to create the role for.",
slug: "The slug of the role.", slug: "The slug of the role.",
name: "The name of the role.", name: "The name of the role.",
description: "The description for the role.", description: "The description for the role.",
permissions: "The permissions assigned to the role." permissions: "The permissions assigned to the role."
}, },
UPDATE: { UPDATE: {
projectSlug: "The slug of the project to update role.", projectSlug: "Slug of the project to update the role for.",
roleId: "The ID of the role to update", roleId: "The ID of the role to update",
slug: "The slug of the role.", slug: "The slug of the role.",
name: "The name of the role.", name: "The name of the role.",
@@ -737,7 +737,7 @@ export const PROJECT_ROLE = {
permissions: "The permissions assigned to the role." permissions: "The permissions assigned to the role."
}, },
DELETE: { DELETE: {
projectSlug: "The slug of the project to delete role.", projectSlug: "Slug of the project to delete the role for.",
roleId: "The ID of the role to update" roleId: "The ID of the role to update"
}, },
GET_ROLE_BY_SLUG: { GET_ROLE_BY_SLUG: {
@@ -745,6 +745,6 @@ export const PROJECT_ROLE = {
roleSlug: "The slug of the role to get details" roleSlug: "The slug of the role to get details"
}, },
LIST: { LIST: {
projectSlug: "The slug of the project to list roles." projectSlug: "The slug of the project to list the roles for."
} }
}; };
@@ -45,7 +45,7 @@ const getPredefinedRoles = (projectId: string, roleFilter?: ProjectMembershipRol
name: "Admin", name: "Admin",
slug: ProjectMembershipRole.Admin, slug: ProjectMembershipRole.Admin,
permissions: projectAdminPermissions, permissions: projectAdminPermissions,
description: "Complete administration access over the project", description: "Full administrative access over a project",
createdAt: new Date(), createdAt: new Date(),
updatedAt: new Date() updatedAt: new Date()
}, },
@@ -55,7 +55,7 @@ const getPredefinedRoles = (projectId: string, roleFilter?: ProjectMembershipRol
name: "Developer", name: "Developer",
slug: ProjectMembershipRole.Member, slug: ProjectMembershipRole.Member,
permissions: projectMemberPermissions, permissions: projectMemberPermissions,
description: "Non-administrative role in an project", description: "Limited read/write role in a project",
createdAt: new Date(), createdAt: new Date(),
updatedAt: new Date() updatedAt: new Date()
}, },
@@ -65,7 +65,7 @@ const getPredefinedRoles = (projectId: string, roleFilter?: ProjectMembershipRol
name: "Viewer", name: "Viewer",
slug: ProjectMembershipRole.Viewer, slug: ProjectMembershipRole.Viewer,
permissions: projectViewerPermission, permissions: projectViewerPermission,
description: "Non-administrative role in an project", description: "Only read role in a project",
createdAt: new Date(), createdAt: new Date(),
updatedAt: new Date() updatedAt: new Date()
}, },