protobuf-platform 1.0.192 → 1.0.194

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/cms/cms.proto CHANGED
@@ -12,6 +12,8 @@ service CMS {
12
12
  rpc setBurgerMenuWidget(CommonWidgetRequest) returns (BurgerMenuWidgetItem);
13
13
  rpc getBurgerMenuWidget(GetBurgerMenuWidgetRequest) returns (BurgerMenuWidgetItem);
14
14
  //Banners
15
+ rpc createBannerGroup(BannerGroupRequest) returns (BannerGroupItem);
16
+ rpc readBannerGroup(GetBannerGroupRequest) returns (BannerGroupItem);
15
17
  rpc createSingleBanner(stream BannerRequest) returns (BannerResponse);
16
18
  rpc readSingleBanner(GetBannerRequest) returns (BannerResponse);
17
19
  rpc updateSingleBanner(stream BannerRequest) returns (BannerResponse);
@@ -65,28 +67,36 @@ message BannerRequest {
65
67
  }
66
68
  }
67
69
  message BannerItemRequest {
68
- optional string geo = 1;
69
- optional string title = 2;
70
- optional string content = 3;
70
+ optional int32 id = 1;
71
+ optional int32 banner_group_id = 2;
72
+ optional string geo = 3;
71
73
  optional string cta_type = 4;
72
- optional string cta_text = 5;
74
+ optional string anchor = 5;
73
75
  optional int32 is_active = 6;
76
+ repeated BannerTexts texts = 7;
74
77
  }
75
78
  message BannerItem {
76
- optional string geo = 1;
79
+ optional int32 id = 1;
80
+ optional string geo = 2;
81
+ optional int32 is_active = 3;
82
+ optional string image_big = 4;
83
+ optional string image_small = 5;
84
+ optional string anchor = 6;
85
+ repeated BannerTexts texts = 7;
86
+ }
87
+ message BannerTexts {
88
+ string locale = 1;
77
89
  optional string title = 2;
78
90
  optional string content = 3;
79
- optional string cta_type = 4;
80
- optional string cta_text = 5;
81
- optional int32 is_active = 6;
82
- optional string image_big = 7;
83
- optional string image_small = 8;
91
+ optional string cta = 4;
92
+ optional string note = 5;
84
93
  }
85
94
  message BannerResponse {
86
95
  BannerItem data = 1;
87
96
  }
88
97
  message GetBannerRequest {
89
98
  int32 id = 1;
99
+ optional bool admin_side = 4;
90
100
  }
91
101
  message BannerStatusResponse {
92
102
  string status = 1;
@@ -95,4 +105,21 @@ message BannerItemsResponse {
95
105
  repeated BannerItem items = 1;
96
106
  optional int32 total_pages = 2;
97
107
  optional int32 total_items = 3;
108
+ }
109
+ message BannerGroupRequest {
110
+ optional int32 id = 1;
111
+ optional string title = 2;
112
+ repeated string geo = 3;
113
+ optional int32 is_active = 4;
114
+ }
115
+ message BannerGroupItem {
116
+ optional int32 id = 1;
117
+ optional string title = 2;
118
+ repeated string geo = 3;
119
+ optional int32 is_active = 4;
120
+ repeated BannerItem banners = 5;
121
+ }
122
+ message GetBannerGroupRequest {
123
+ int32 id = 1;
124
+ optional bool admin_side = 2;
98
125
  }
@@ -4,6 +4,28 @@
4
4
  var grpc = require('@grpc/grpc-js');
5
5
  var cms_pb = require('./cms_pb.js');
6
6
 
7
+ function serialize_cms_BannerGroupItem(arg) {
8
+ if (!(arg instanceof cms_pb.BannerGroupItem)) {
9
+ throw new Error('Expected argument of type cms.BannerGroupItem');
10
+ }
11
+ return Buffer.from(arg.serializeBinary());
12
+ }
13
+
14
+ function deserialize_cms_BannerGroupItem(buffer_arg) {
15
+ return cms_pb.BannerGroupItem.deserializeBinary(new Uint8Array(buffer_arg));
16
+ }
17
+
18
+ function serialize_cms_BannerGroupRequest(arg) {
19
+ if (!(arg instanceof cms_pb.BannerGroupRequest)) {
20
+ throw new Error('Expected argument of type cms.BannerGroupRequest');
21
+ }
22
+ return Buffer.from(arg.serializeBinary());
23
+ }
24
+
25
+ function deserialize_cms_BannerGroupRequest(buffer_arg) {
26
+ return cms_pb.BannerGroupRequest.deserializeBinary(new Uint8Array(buffer_arg));
27
+ }
28
+
7
29
  function serialize_cms_BannerItemsResponse(arg) {
8
30
  if (!(arg instanceof cms_pb.BannerItemsResponse)) {
9
31
  throw new Error('Expected argument of type cms.BannerItemsResponse');
@@ -81,6 +103,17 @@ function deserialize_cms_File(buffer_arg) {
81
103
  return cms_pb.File.deserializeBinary(new Uint8Array(buffer_arg));
82
104
  }
83
105
 
106
+ function serialize_cms_GetBannerGroupRequest(arg) {
107
+ if (!(arg instanceof cms_pb.GetBannerGroupRequest)) {
108
+ throw new Error('Expected argument of type cms.GetBannerGroupRequest');
109
+ }
110
+ return Buffer.from(arg.serializeBinary());
111
+ }
112
+
113
+ function deserialize_cms_GetBannerGroupRequest(buffer_arg) {
114
+ return cms_pb.GetBannerGroupRequest.deserializeBinary(new Uint8Array(buffer_arg));
115
+ }
116
+
84
117
  function serialize_cms_GetBannerRequest(arg) {
85
118
  if (!(arg instanceof cms_pb.GetBannerRequest)) {
86
119
  throw new Error('Expected argument of type cms.GetBannerRequest');
@@ -261,7 +294,29 @@ setMainPageWidget: {
261
294
  responseDeserialize: deserialize_cms_BurgerMenuWidgetItem,
262
295
  },
263
296
  // Banners
264
- createSingleBanner: {
297
+ createBannerGroup: {
298
+ path: '/cms.CMS/createBannerGroup',
299
+ requestStream: false,
300
+ responseStream: false,
301
+ requestType: cms_pb.BannerGroupRequest,
302
+ responseType: cms_pb.BannerGroupItem,
303
+ requestSerialize: serialize_cms_BannerGroupRequest,
304
+ requestDeserialize: deserialize_cms_BannerGroupRequest,
305
+ responseSerialize: serialize_cms_BannerGroupItem,
306
+ responseDeserialize: deserialize_cms_BannerGroupItem,
307
+ },
308
+ readBannerGroup: {
309
+ path: '/cms.CMS/readBannerGroup',
310
+ requestStream: false,
311
+ responseStream: false,
312
+ requestType: cms_pb.GetBannerGroupRequest,
313
+ responseType: cms_pb.BannerGroupItem,
314
+ requestSerialize: serialize_cms_GetBannerGroupRequest,
315
+ requestDeserialize: deserialize_cms_GetBannerGroupRequest,
316
+ responseSerialize: serialize_cms_BannerGroupItem,
317
+ responseDeserialize: deserialize_cms_BannerGroupItem,
318
+ },
319
+ createSingleBanner: {
265
320
  path: '/cms.CMS/createSingleBanner',
266
321
  requestStream: true,
267
322
  responseStream: false,