syntax = "proto3";

package com.wixpress.appservice.api;

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

// Redirects to either a page component in the Business Manager or to a wix answers article
message WixOfferingComponentData {
    // The offering to redirect to
    oneof offering {
        BusinessManagerPage business_manager_page = 1; // Redirects to a page in the Business Manager.
        string article_guid = 2 [(wix.api.format) = GUID]; // Redirects to an article with this ID.
    }
}

message BusinessManagerPage {
    string component_id = 1; // ID of the page component to redirect to.
    google.protobuf.StringValue app_state = 2; // Redirects to this app state.
    bool show_regular_app_page = 3; // Whether to show the regular app page in the App Market instead of redirecting to the Business Manager page.
}
