diff --git a/go/pkg/marketingpb/marketing.pb.go b/go/pkg/marketingpb/marketing.pb.go index de432fbfc1..6a70c196fc 100644 --- a/go/pkg/marketingpb/marketing.pb.go +++ b/go/pkg/marketingpb/marketing.pb.go @@ -672,6 +672,100 @@ func (x *UpcomingCollectionsResponse) GetCollections() []*MarketingCollectionPre return nil } +type HighlightedCollectionsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + NetworkId string `protobuf:"bytes,1,opt,name=network_id,json=networkId,proto3" json:"network_id,omitempty"` +} + +func (x *HighlightedCollectionsRequest) Reset() { + *x = HighlightedCollectionsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_marketing_v1_marketing_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *HighlightedCollectionsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*HighlightedCollectionsRequest) ProtoMessage() {} + +func (x *HighlightedCollectionsRequest) ProtoReflect() protoreflect.Message { + mi := &file_marketing_v1_marketing_proto_msgTypes[12] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use HighlightedCollectionsRequest.ProtoReflect.Descriptor instead. +func (*HighlightedCollectionsRequest) Descriptor() ([]byte, []int) { + return file_marketing_v1_marketing_proto_rawDescGZIP(), []int{12} +} + +func (x *HighlightedCollectionsRequest) GetNetworkId() string { + if x != nil { + return x.NetworkId + } + return "" +} + +type HighlightedCollectionsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Collections []*MarketingCollectionPreview `protobuf:"bytes,1,rep,name=collections,proto3" json:"collections,omitempty"` +} + +func (x *HighlightedCollectionsResponse) Reset() { + *x = HighlightedCollectionsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_marketing_v1_marketing_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *HighlightedCollectionsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*HighlightedCollectionsResponse) ProtoMessage() {} + +func (x *HighlightedCollectionsResponse) ProtoReflect() protoreflect.Message { + mi := &file_marketing_v1_marketing_proto_msgTypes[13] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use HighlightedCollectionsResponse.ProtoReflect.Descriptor instead. +func (*HighlightedCollectionsResponse) Descriptor() ([]byte, []int) { + return file_marketing_v1_marketing_proto_rawDescGZIP(), []int{13} +} + +func (x *HighlightedCollectionsResponse) GetCollections() []*MarketingCollectionPreview { + if x != nil { + return x.Collections + } + return nil +} + var File_marketing_v1_marketing_proto protoreflect.FileDescriptor var file_marketing_v1_marketing_proto_rawDesc = []byte{ @@ -741,27 +835,45 @@ var file_marketing_v1_marketing_proto_rawDesc = []byte{ 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, 0x0b, 0x63, - 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x32, 0x9d, 0x02, 0x0a, 0x10, 0x4d, - 0x61, 0x72, 0x6b, 0x65, 0x74, 0x69, 0x6e, 0x67, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, - 0x3d, 0x0a, 0x04, 0x4e, 0x65, 0x77, 0x73, 0x12, 0x19, 0x2e, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, - 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x65, 0x77, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x76, - 0x31, 0x2e, 0x4e, 0x65, 0x77, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5e, - 0x0a, 0x0f, 0x4c, 0x69, 0x76, 0x65, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x73, 0x12, 0x24, 0x2e, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, - 0x2e, 0x4c, 0x69, 0x76, 0x65, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, - 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x76, 0x65, 0x43, 0x6f, 0x6c, 0x6c, 0x65, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6a, - 0x0a, 0x13, 0x55, 0x70, 0x63, 0x6f, 0x6d, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x28, 0x2e, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x69, 0x6e, - 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x63, 0x6f, 0x6d, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6c, + 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x3e, 0x0a, 0x1d, 0x48, 0x69, + 0x67, 0x68, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x65, 0x64, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x6e, + 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x09, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x49, 0x64, 0x22, 0x6c, 0x0a, 0x1e, 0x48, 0x69, + 0x67, 0x68, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x65, 0x64, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4a, 0x0a, 0x0b, + 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x28, 0x2e, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, + 0x2e, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, 0x0b, 0x63, 0x6f, 0x6c, + 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x32, 0x92, 0x03, 0x0a, 0x10, 0x4d, 0x61, 0x72, + 0x6b, 0x65, 0x74, 0x69, 0x6e, 0x67, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x3d, 0x0a, + 0x04, 0x4e, 0x65, 0x77, 0x73, 0x12, 0x19, 0x2e, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x69, 0x6e, + 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x65, 0x77, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x1a, 0x2e, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, + 0x4e, 0x65, 0x77, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5e, 0x0a, 0x0f, + 0x4c, 0x69, 0x76, 0x65, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, + 0x24, 0x2e, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x4c, + 0x69, 0x76, 0x65, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x69, 0x6e, + 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x76, 0x65, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6a, 0x0a, 0x13, + 0x55, 0x70, 0x63, 0x6f, 0x6d, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x12, 0x28, 0x2e, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x69, 0x6e, 0x67, 0x2e, + 0x76, 0x31, 0x2e, 0x55, 0x70, 0x63, 0x6f, 0x6d, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6c, 0x6c, 0x65, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, + 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x63, + 0x6f, 0x6d, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x73, 0x0a, 0x16, 0x48, 0x69, 0x67, 0x68, + 0x6c, 0x69, 0x67, 0x68, 0x74, 0x65, 0x64, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x12, 0x2b, 0x2e, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x76, + 0x31, 0x2e, 0x48, 0x69, 0x67, 0x68, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x65, 0x64, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x29, 0x2e, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x55, - 0x70, 0x63, 0x6f, 0x6d, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x0f, 0x5a, 0x0d, 0x2e, 0x2f, - 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x69, 0x6e, 0x67, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x33, + 0x2c, 0x2e, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x48, + 0x69, 0x67, 0x68, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x65, 0x64, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x0f, 0x5a, + 0x0d, 0x2e, 0x2f, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x69, 0x6e, 0x67, 0x70, 0x62, 0x62, 0x06, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -776,20 +888,22 @@ func file_marketing_v1_marketing_proto_rawDescGZIP() []byte { return file_marketing_v1_marketing_proto_rawDescData } -var file_marketing_v1_marketing_proto_msgTypes = make([]protoimpl.MessageInfo, 12) +var file_marketing_v1_marketing_proto_msgTypes = make([]protoimpl.MessageInfo, 14) var file_marketing_v1_marketing_proto_goTypes = []interface{}{ - (*MarketingCollectionPreview)(nil), // 0: marketing.v1.MarketingCollectionPreview - (*Action)(nil), // 1: marketing.v1.Action - (*News)(nil), // 2: marketing.v1.News - (*Banner)(nil), // 3: marketing.v1.Banner - (*NewsRequest)(nil), // 4: marketing.v1.NewsRequest - (*NewsResponse)(nil), // 5: marketing.v1.NewsResponse - (*BannersRequest)(nil), // 6: marketing.v1.BannersRequest - (*BannersResponse)(nil), // 7: marketing.v1.BannersResponse - (*LiveCollectionsRequest)(nil), // 8: marketing.v1.LiveCollectionsRequest - (*LiveCollectionsResponse)(nil), // 9: marketing.v1.LiveCollectionsResponse - (*UpcomingCollectionsRequest)(nil), // 10: marketing.v1.UpcomingCollectionsRequest - (*UpcomingCollectionsResponse)(nil), // 11: marketing.v1.UpcomingCollectionsResponse + (*MarketingCollectionPreview)(nil), // 0: marketing.v1.MarketingCollectionPreview + (*Action)(nil), // 1: marketing.v1.Action + (*News)(nil), // 2: marketing.v1.News + (*Banner)(nil), // 3: marketing.v1.Banner + (*NewsRequest)(nil), // 4: marketing.v1.NewsRequest + (*NewsResponse)(nil), // 5: marketing.v1.NewsResponse + (*BannersRequest)(nil), // 6: marketing.v1.BannersRequest + (*BannersResponse)(nil), // 7: marketing.v1.BannersResponse + (*LiveCollectionsRequest)(nil), // 8: marketing.v1.LiveCollectionsRequest + (*LiveCollectionsResponse)(nil), // 9: marketing.v1.LiveCollectionsResponse + (*UpcomingCollectionsRequest)(nil), // 10: marketing.v1.UpcomingCollectionsRequest + (*UpcomingCollectionsResponse)(nil), // 11: marketing.v1.UpcomingCollectionsResponse + (*HighlightedCollectionsRequest)(nil), // 12: marketing.v1.HighlightedCollectionsRequest + (*HighlightedCollectionsResponse)(nil), // 13: marketing.v1.HighlightedCollectionsResponse } var file_marketing_v1_marketing_proto_depIdxs = []int32{ 1, // 0: marketing.v1.News.actions:type_name -> marketing.v1.Action @@ -797,17 +911,20 @@ var file_marketing_v1_marketing_proto_depIdxs = []int32{ 3, // 2: marketing.v1.BannersResponse.banners:type_name -> marketing.v1.Banner 0, // 3: marketing.v1.LiveCollectionsResponse.collections:type_name -> marketing.v1.MarketingCollectionPreview 0, // 4: marketing.v1.UpcomingCollectionsResponse.collections:type_name -> marketing.v1.MarketingCollectionPreview - 4, // 5: marketing.v1.MarketingService.News:input_type -> marketing.v1.NewsRequest - 8, // 6: marketing.v1.MarketingService.LiveCollections:input_type -> marketing.v1.LiveCollectionsRequest - 10, // 7: marketing.v1.MarketingService.UpcomingCollections:input_type -> marketing.v1.UpcomingCollectionsRequest - 5, // 8: marketing.v1.MarketingService.News:output_type -> marketing.v1.NewsResponse - 9, // 9: marketing.v1.MarketingService.LiveCollections:output_type -> marketing.v1.LiveCollectionsResponse - 11, // 10: marketing.v1.MarketingService.UpcomingCollections:output_type -> marketing.v1.UpcomingCollectionsResponse - 8, // [8:11] is the sub-list for method output_type - 5, // [5:8] is the sub-list for method input_type - 5, // [5:5] is the sub-list for extension type_name - 5, // [5:5] is the sub-list for extension extendee - 0, // [0:5] is the sub-list for field type_name + 0, // 5: marketing.v1.HighlightedCollectionsResponse.collections:type_name -> marketing.v1.MarketingCollectionPreview + 4, // 6: marketing.v1.MarketingService.News:input_type -> marketing.v1.NewsRequest + 8, // 7: marketing.v1.MarketingService.LiveCollections:input_type -> marketing.v1.LiveCollectionsRequest + 10, // 8: marketing.v1.MarketingService.UpcomingCollections:input_type -> marketing.v1.UpcomingCollectionsRequest + 12, // 9: marketing.v1.MarketingService.HighlightedCollections:input_type -> marketing.v1.HighlightedCollectionsRequest + 5, // 10: marketing.v1.MarketingService.News:output_type -> marketing.v1.NewsResponse + 9, // 11: marketing.v1.MarketingService.LiveCollections:output_type -> marketing.v1.LiveCollectionsResponse + 11, // 12: marketing.v1.MarketingService.UpcomingCollections:output_type -> marketing.v1.UpcomingCollectionsResponse + 13, // 13: marketing.v1.MarketingService.HighlightedCollections:output_type -> marketing.v1.HighlightedCollectionsResponse + 10, // [10:14] is the sub-list for method output_type + 6, // [6:10] is the sub-list for method input_type + 6, // [6:6] is the sub-list for extension type_name + 6, // [6:6] is the sub-list for extension extendee + 0, // [0:6] is the sub-list for field type_name } func init() { file_marketing_v1_marketing_proto_init() } @@ -960,6 +1077,30 @@ func file_marketing_v1_marketing_proto_init() { return nil } } + file_marketing_v1_marketing_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*HighlightedCollectionsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_marketing_v1_marketing_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*HighlightedCollectionsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } } type x struct{} out := protoimpl.TypeBuilder{ @@ -967,7 +1108,7 @@ func file_marketing_v1_marketing_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_marketing_v1_marketing_proto_rawDesc, NumEnums: 0, - NumMessages: 12, + NumMessages: 14, NumExtensions: 0, NumServices: 1, }, diff --git a/go/pkg/marketingpb/marketing_grpc.pb.go b/go/pkg/marketingpb/marketing_grpc.pb.go index d3a5b0d5ef..315f1417d4 100644 --- a/go/pkg/marketingpb/marketing_grpc.pb.go +++ b/go/pkg/marketingpb/marketing_grpc.pb.go @@ -25,6 +25,7 @@ type MarketingServiceClient interface { News(ctx context.Context, in *NewsRequest, opts ...grpc.CallOption) (*NewsResponse, error) LiveCollections(ctx context.Context, in *LiveCollectionsRequest, opts ...grpc.CallOption) (*LiveCollectionsResponse, error) UpcomingCollections(ctx context.Context, in *UpcomingCollectionsRequest, opts ...grpc.CallOption) (*UpcomingCollectionsResponse, error) + HighlightedCollections(ctx context.Context, in *HighlightedCollectionsRequest, opts ...grpc.CallOption) (*HighlightedCollectionsResponse, error) } type marketingServiceClient struct { @@ -62,6 +63,15 @@ func (c *marketingServiceClient) UpcomingCollections(ctx context.Context, in *Up return out, nil } +func (c *marketingServiceClient) HighlightedCollections(ctx context.Context, in *HighlightedCollectionsRequest, opts ...grpc.CallOption) (*HighlightedCollectionsResponse, error) { + out := new(HighlightedCollectionsResponse) + err := c.cc.Invoke(ctx, "/marketing.v1.MarketingService/HighlightedCollections", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // MarketingServiceServer is the server API for MarketingService service. // All implementations must embed UnimplementedMarketingServiceServer // for forward compatibility @@ -69,6 +79,7 @@ type MarketingServiceServer interface { News(context.Context, *NewsRequest) (*NewsResponse, error) LiveCollections(context.Context, *LiveCollectionsRequest) (*LiveCollectionsResponse, error) UpcomingCollections(context.Context, *UpcomingCollectionsRequest) (*UpcomingCollectionsResponse, error) + HighlightedCollections(context.Context, *HighlightedCollectionsRequest) (*HighlightedCollectionsResponse, error) mustEmbedUnimplementedMarketingServiceServer() } @@ -85,6 +96,9 @@ func (UnimplementedMarketingServiceServer) LiveCollections(context.Context, *Liv func (UnimplementedMarketingServiceServer) UpcomingCollections(context.Context, *UpcomingCollectionsRequest) (*UpcomingCollectionsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method UpcomingCollections not implemented") } +func (UnimplementedMarketingServiceServer) HighlightedCollections(context.Context, *HighlightedCollectionsRequest) (*HighlightedCollectionsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method HighlightedCollections not implemented") +} func (UnimplementedMarketingServiceServer) mustEmbedUnimplementedMarketingServiceServer() {} // UnsafeMarketingServiceServer may be embedded to opt out of forward compatibility for this service. @@ -152,6 +166,24 @@ func _MarketingService_UpcomingCollections_Handler(srv interface{}, ctx context. return interceptor(ctx, in, info, handler) } +func _MarketingService_HighlightedCollections_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(HighlightedCollectionsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MarketingServiceServer).HighlightedCollections(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/marketing.v1.MarketingService/HighlightedCollections", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MarketingServiceServer).HighlightedCollections(ctx, req.(*HighlightedCollectionsRequest)) + } + return interceptor(ctx, in, info, handler) +} + // MarketingService_ServiceDesc is the grpc.ServiceDesc for MarketingService service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) @@ -171,6 +203,10 @@ var MarketingService_ServiceDesc = grpc.ServiceDesc{ MethodName: "UpcomingCollections", Handler: _MarketingService_UpcomingCollections_Handler, }, + { + MethodName: "HighlightedCollections", + Handler: _MarketingService_HighlightedCollections_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "marketing/v1/marketing.proto", diff --git a/packages/api/marketing/v1/marketing.ts b/packages/api/marketing/v1/marketing.ts index ac94980e81..96d07cdd7d 100644 --- a/packages/api/marketing/v1/marketing.ts +++ b/packages/api/marketing/v1/marketing.ts @@ -64,6 +64,14 @@ export interface UpcomingCollectionsResponse { collections: MarketingCollectionPreview[]; } +export interface HighlightedCollectionsRequest { + networkId: string; +} + +export interface HighlightedCollectionsResponse { + collections: MarketingCollectionPreview[]; +} + function createBaseMarketingCollectionPreview(): MarketingCollectionPreview { return { id: "", imageUri: "", collectionName: "", creatorName: "", twitterUrl: "", secondaryDuringMint: false }; } @@ -931,6 +939,128 @@ export const UpcomingCollectionsResponse = { }, }; +function createBaseHighlightedCollectionsRequest(): HighlightedCollectionsRequest { + return { networkId: "" }; +} + +export const HighlightedCollectionsRequest = { + encode(message: HighlightedCollectionsRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { + if (message.networkId !== "") { + writer.uint32(10).string(message.networkId); + } + return writer; + }, + + decode(input: _m0.Reader | Uint8Array, length?: number): HighlightedCollectionsRequest { + const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseHighlightedCollectionsRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 10) { + break; + } + + message.networkId = reader.string(); + continue; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + + fromJSON(object: any): HighlightedCollectionsRequest { + return { networkId: isSet(object.networkId) ? globalThis.String(object.networkId) : "" }; + }, + + toJSON(message: HighlightedCollectionsRequest): unknown { + const obj: any = {}; + if (message.networkId !== "") { + obj.networkId = message.networkId; + } + return obj; + }, + + create, I>>(base?: I): HighlightedCollectionsRequest { + return HighlightedCollectionsRequest.fromPartial(base ?? ({} as any)); + }, + fromPartial, I>>( + object: I, + ): HighlightedCollectionsRequest { + const message = createBaseHighlightedCollectionsRequest(); + message.networkId = object.networkId ?? ""; + return message; + }, +}; + +function createBaseHighlightedCollectionsResponse(): HighlightedCollectionsResponse { + return { collections: [] }; +} + +export const HighlightedCollectionsResponse = { + encode(message: HighlightedCollectionsResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { + for (const v of message.collections) { + MarketingCollectionPreview.encode(v!, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + + decode(input: _m0.Reader | Uint8Array, length?: number): HighlightedCollectionsResponse { + const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseHighlightedCollectionsResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 10) { + break; + } + + message.collections.push(MarketingCollectionPreview.decode(reader, reader.uint32())); + continue; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + + fromJSON(object: any): HighlightedCollectionsResponse { + return { + collections: globalThis.Array.isArray(object?.collections) + ? object.collections.map((e: any) => MarketingCollectionPreview.fromJSON(e)) + : [], + }; + }, + + toJSON(message: HighlightedCollectionsResponse): unknown { + const obj: any = {}; + if (message.collections?.length) { + obj.collections = message.collections.map((e) => MarketingCollectionPreview.toJSON(e)); + } + return obj; + }, + + create, I>>(base?: I): HighlightedCollectionsResponse { + return HighlightedCollectionsResponse.fromPartial(base ?? ({} as any)); + }, + fromPartial, I>>( + object: I, + ): HighlightedCollectionsResponse { + const message = createBaseHighlightedCollectionsResponse(); + message.collections = object.collections?.map((e) => MarketingCollectionPreview.fromPartial(e)) || []; + return message; + }, +}; + export interface MarketingService { News(request: DeepPartial, metadata?: grpc.Metadata): Promise; LiveCollections( @@ -941,6 +1071,10 @@ export interface MarketingService { request: DeepPartial, metadata?: grpc.Metadata, ): Promise; + HighlightedCollections( + request: DeepPartial, + metadata?: grpc.Metadata, + ): Promise; } export class MarketingServiceClientImpl implements MarketingService { @@ -951,6 +1085,7 @@ export class MarketingServiceClientImpl implements MarketingService { this.News = this.News.bind(this); this.LiveCollections = this.LiveCollections.bind(this); this.UpcomingCollections = this.UpcomingCollections.bind(this); + this.HighlightedCollections = this.HighlightedCollections.bind(this); } News(request: DeepPartial, metadata?: grpc.Metadata): Promise { @@ -974,6 +1109,17 @@ export class MarketingServiceClientImpl implements MarketingService { metadata, ); } + + HighlightedCollections( + request: DeepPartial, + metadata?: grpc.Metadata, + ): Promise { + return this.rpc.unary( + MarketingServiceHighlightedCollectionsDesc, + HighlightedCollectionsRequest.fromPartial(request), + metadata, + ); + } } export const MarketingServiceDesc = { serviceName: "marketing.v1.MarketingService" }; @@ -1047,6 +1193,29 @@ export const MarketingServiceUpcomingCollectionsDesc: UnaryMethodDefinitionish = } as any, }; +export const MarketingServiceHighlightedCollectionsDesc: UnaryMethodDefinitionish = { + methodName: "HighlightedCollections", + service: MarketingServiceDesc, + requestStream: false, + responseStream: false, + requestType: { + serializeBinary() { + return HighlightedCollectionsRequest.encode(this).finish(); + }, + } as any, + responseType: { + deserializeBinary(data: Uint8Array) { + const value = HighlightedCollectionsResponse.decode(data); + return { + ...value, + toObject() { + return value; + }, + }; + }, + } as any, +}; + interface UnaryMethodDefinitionishR extends grpc.UnaryMethodDefinition { requestStream: any; responseStream: any;