syntax = "proto2";

package maps_adv.geosmb.landlord.proto.instagram;

import "maps_adv/geosmb/landlord/proto/common.proto";

message InstagramData {

    message Offer {

        enum Type {
            PRODUCT = 1;
            SERVICE = 2;
        }

        optional Type type = 1;
        optional string name = 2;
        optional common.Money price = 3;
        repeated string categories = 4;
    }

    message Media {

        enum Type {
            IMAGE = 1;
            VIDEO = 2;
        }

        required Type type = 1;
        required string media_url = 2;
        optional string preview_url = 3;
        optional string internal_url = 4;
    }

    message Post {
        required uint64 id = 1;
        optional string caption = 2;
        repeated Media media_urls = 3;
        optional Offer offer = 4;
    }

    required string instagram_account = 1;
    repeated Post posts = 2;
}

message Settings {
    optional string name = 1;
    optional string description = 2;
    optional string logo = 3;
}
