Files
2026-03-18 15:04:18 +01:00

58 lines
1.3 KiB
GraphQL

mutation createVendorRate(
$vendorId: UUID!,
$roleName: String,
$category: CategoryType,
$clientRate: Float,
$employeeWage: Float,
$markupPercentage: Float,
$vendorFeePercentage: Float,
$isActive: Boolean,
$notes: String
) @auth(level: USER) {
vendorRate_insert(
data: {
vendorId: $vendorId,
roleName: $roleName,
category: $category,
clientRate: $clientRate,
employeeWage: $employeeWage,
markupPercentage: $markupPercentage,
vendorFeePercentage: $vendorFeePercentage,
isActive: $isActive,
notes: $notes,
}
)
}
mutation updateVendorRate(
$id: UUID!,
$vendorId: UUID,
$roleName: String,
$category: CategoryType,
$clientRate: Float,
$employeeWage: Float,
$markupPercentage: Float,
$vendorFeePercentage: Float,
$isActive: Boolean,
$notes: String,
) @auth(level: USER) {
vendorRate_update(
id: $id,
data: {
vendorId: $vendorId,
roleName: $roleName,
category: $category,
clientRate: $clientRate,
employeeWage: $employeeWage,
markupPercentage: $markupPercentage,
vendorFeePercentage: $vendorFeePercentage,
isActive: $isActive,
notes: $notes,
}
)
}
mutation deleteVendorRate($id: UUID!) @auth(level: USER) {
vendorRate_delete(id: $id)
}