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)
|
||||
}
|
||||
42
backend/dataconnect/example/vendorRate/queries.gql
Normal file
42
backend/dataconnect/example/vendorRate/queries.gql
Normal file
@@ -0,0 +1,42 @@
|
||||
query listVendorRates @auth(level: USER) {
|
||||
vendorRates {
|
||||
id
|
||||
vendorId
|
||||
roleName
|
||||
category
|
||||
clientRate
|
||||
employeeWage
|
||||
markupPercentage
|
||||
vendorFeePercentage
|
||||
isActive
|
||||
notes
|
||||
createdAt
|
||||
|
||||
vendor{
|
||||
companyName
|
||||
region
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
query getVendorRateById($id: UUID!) @auth(level: USER) {
|
||||
vendorRate(id: $id) {
|
||||
id
|
||||
vendorId
|
||||
roleName
|
||||
category
|
||||
clientRate
|
||||
employeeWage
|
||||
markupPercentage
|
||||
vendorFeePercentage
|
||||
isActive
|
||||
notes
|
||||
createdAt
|
||||
|
||||
vendor{
|
||||
companyName
|
||||
region
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user