syntax = "proto3";

package com.wixpress.appservice.api.upstream.wix.promote.social_marketing_designs_provider_spi.v1;

import "wix/api/validations.proto";
import "wix/spi/definitions.proto";
import "wix/api/annotations.proto";

message SocialMarketingDesignsProviderConfig {
    option (.wix.api.decomposite_of) = "wix.promote.social_marketing_designs_provider_spi.v1.SocialMarketingDesignsProviderConfig";
  // The URL of the SPI implementation
  string base_uri = 1 [(.wix.spi.base_uri) = true, (.wix.api.minLength) = 1, (.wix.api.maxLength) = 1024];
  // Name of the provider
  string name = 2 [(.wix.api.minLength) = 1, (.wix.api.maxLength) = 1024];
  // Component id (from dev center) of the editor
  string editor_component_id = 3 [(.wix.api.format) = GUID];
  // Provider's icon, to be displayed in UI
  string icon_url = 4 [(.wix.api.format) = WEB_URL];
  // How the Prover should be opened
  NavigationType navigation_type = 5;
  // Is delete design implemented by the provider
  bool delete_design_enabled = 6;
  // If the provider manages designs
  bool manage_designs = 7;
}

enum NavigationType {
  NAVIGATE = 0;
  MODAL = 1;
}