syntax = "proto2";

package maps_adv.geosmb.clients.market.proto.categories;

import "maps_adv/geosmb/clients/market/proto/common.proto";

// input for filter_service_categories
message FilterServiceCategoriesParameters {
    required uint64 biz_id = 1;
    optional common.PagingInputParameters paging = 2;
    optional string query = 3;
    repeated FilterServiceCategoriesOrderingParameters ordering = 4;
}

// output for filter_service_categories
message ServiceCategoryList {
    optional common.PagingOutputParameters paging = 1;
    repeated FilterServiceCategoriesOrderingParameters ordering = 2;
    repeated ServiceCategory items = 3;
}

message ServiceCategory {
    required uint64 id = 1;
    required uint64 biz_id = 2;
    required string name = 3;
}

message FilterServiceCategoriesOrderingParameters {
    required common.OrderType type = 1;
    required FilterServiceCategoriesOrderingFields field = 2;
}

enum FilterServiceCategoriesOrderingFields {
    NAME = 1;
}
