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) 
}
