feat: Integrate Data Connect and Implement Staff List View Directory
This commit is contained in:
57
backend/dataconnect/example/vendorRate/mutations.gql
Normal file
57
backend/dataconnect/example/vendorRate/mutations.gql
Normal file
@@ -0,0 +1,57 @@
|
||||
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)
|
||||
}
|
||||
Reference in New Issue
Block a user