syntax = "proto3";

package com.wixpress.appservice.api.upstream.com.wixpress.bookings.resources.spi.v2;

import "google/protobuf/wrappers.proto";
import "wix/api/annotations.proto";
import "wix/api/validations.proto";

// This config provides details of the resource types that are managed by an app implementing this component SPI.
message BookingsResourceTypesProviderConfig {
    option (.wix.api.decomposite_of) = "com.wixpress.bookings.resources.spi.v2.BookingsResourceTypesProviderConfig";
  // References of the resource types that are managed by the app that implements this component SPI.
  repeated BookingsResourceType bookings_resource_types = 1 [(.wix.api.maxSize) = 10];
}

message BookingsResourceType {
    option (.wix.api.decomposite_of) = "com.wixpress.bookings.resources.spi.v2.BookingsResourceType";
  // The ID of the resource type. Must be a GUID that is unique within the app.
  google.protobuf.StringValue id = 1 [(.wix.api.format) = GUID];
  // The name of the resource type. This can be any string, such as 'staff' or 'table'.
  google.protobuf.StringValue name = 2 [(.wix.api.minLength) = 1, (.wix.api.maxLength) = 40];
}
