syntax = "proto3";

package com.wixpress.appservice.api;

import "components_catalog_data/dashboard.proto";
import "google/protobuf/wrappers.proto";

// Business Manager sidebar category that contains sidebar links.
// each link in the category opens in the business manager in an iframe.
message MultipleDashboardsComponentData {
  // items inside the category
  repeated DashboardItem items = 1;
}

// a single dashboard page,
// represented in Business Manager as sidebar link that opens in an iframe
message DashboardItem {
  // name of the sidebar link of the page
  string label = 1;
  // data about the current page
  DashboardComponentData dashboard_data = 2;
  // permission to check for this page.
  google.protobuf.StringValue permission_id = 3;
}
