feat: Integrate Data Connect and Implement Staff List View Directory

This commit is contained in:
dhinesh-m24
2026-01-31 16:54:59 +05:30
parent 48bb1c457c
commit cb25b33d04
255 changed files with 21425 additions and 109 deletions

View File

@@ -0,0 +1,36 @@
mutation createRole(
$name: String!
$costPerHour: Float!
$vendorId: UUID!
$roleCategoryId: UUID!
) @auth(level: USER) {
role_insert(
data: {
name: $name
costPerHour: $costPerHour
vendorId: $vendorId
roleCategoryId: $roleCategoryId
}
)
}
mutation updateRole(
$id: UUID!
$name: String
$costPerHour: Float
$roleCategoryId: UUID!
) @auth(level: USER) {
role_update(
id: $id
data: {
name: $name
costPerHour: $costPerHour
roleCategoryId: $roleCategoryId
}
)
}
mutation deleteRole($id: UUID!) @auth(level: USER) {
role_delete(id: $id)
}

View File

@@ -0,0 +1,43 @@
query listRoles @auth(level: USER) {
roles {
id
name
costPerHour
vendorId
roleCategoryId
createdAt
}
}
query getRoleById($id: UUID!) @auth(level: USER) {
role(id: $id) {
id
name
costPerHour
vendorId
roleCategoryId
createdAt
}
}
query listRolesByVendorId($vendorId: UUID!) @auth(level: USER) {
roles(where: { vendorId: { eq: $vendorId } }) {
id
name
costPerHour
vendorId
roleCategoryId
createdAt
}
}
query listRolesByroleCategoryId($roleCategoryId: UUID!) @auth(level: USER) {
roles(where: { roleCategoryId: { eq: $roleCategoryId } }) {
id
name
costPerHour
vendorId
roleCategoryId
createdAt
}
}