syntax = "proto3";

package com.wixpress.appservice.api;

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

// A page out of iframe component that loads directly in the Editor DOM
message PageOutOfIframeComponentData {
    // Out of iframe component URL.
    string component_url = 1 [(wix.api.format) = WEB_URL];
    // Out of iframe controller URL.
    google.protobuf.StringValue controller_url = 2 [(wix.api.format) = WEB_URL];
    // Page data.
    PageComponentData page_data = 3;
    // Out of iframe SSR URL.
    google.protobuf.StringValue ssr_component_url = 4 [(wix.api.format) = WEB_URL];
    // Component URL template. `<%=serviceUrl('your_artifact_id', 'component_url_bundle_file')%>`
    google.protobuf.StringValue component_url_template = 5;
    // Controller URL template. `<%=serviceUrl('your_artifact_id', 'controller_url_bundle_file')%>`
    google.protobuf.StringValue controller_url_template = 6;
    // Data about the out of iframe page.
    OutOfIframeData out_of_iframe_data = 7;
    // Setting endpoint URL template. `<%=serviceUrl('your_artifact_id', '<resource-path>')%>`. Used to transform the settings URL field in both the component and the **derived widget**.
    google.protobuf.StringValue settings_endpoint_url_template = 8;
    // Setting endpoint URL v1 template. `<%=serviceUrl('your_artifact_id', '<resource-path>')%>`.  Used to transform the settings URL field in both the component and the **derived widget**.
    google.protobuf.StringValue settings_endpoint_url_v1_template = 9;
    // No css component URL template. `<%=serviceUrl('your_artifact_id', 'no_css_component_url_bundle_file')%>`.
    google.protobuf.StringValue no_css_component_url_template = 10;
    // URL for the out of iframe no CSS component URL.
    google.protobuf.StringValue no_css_component_url = 11 [(wix.api.format) = WEB_URL];
    // Whether to enable support for different style param values for different breakpoints.
    google.protobuf.BoolValue css_per_breakpoint = 12;
    // builderConfig static url.
    google.protobuf.StringValue builder_config_url = 13 [(wix.api.format) = WEB_URL];
    // The component-type as will be written in Document Management.
    google.protobuf.StringValue component_type = 14 [(.wix.api.maxLength) = 512, (wix.api.field_exposure) = PRIVATE];
    // The type of the referenced schema e.g. `wysiwyg.viewer.components.tpapps.TPASection`.
    google.protobuf.StringValue ref_type = 15 [(.wix.api.maxLength) = 512, (wix.api.field_exposure) = PRIVATE];
    // Builder config URL template. `<%=serviceUrl('your_artifact_id', 'builder_url_bundle_file')%>`
    google.protobuf.StringValue builder_config_url_template = 16 [(.wix.api.maxLength) = 512];

}
