protobuf-platform 1.0.193 → 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 +37 -15
- package/cms/cms_grpc_pb.js +56 -1
- package/cms/cms_pb.js +1310 -237
- package/package.json +1 -1
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);
|
@@ -66,25 +68,28 @@ message BannerRequest {
|
|
66
68
|
}
|
67
69
|
message BannerItemRequest {
|
68
70
|
optional int32 id = 1;
|
69
|
-
optional
|
70
|
-
optional string
|
71
|
-
optional string
|
72
|
-
optional string
|
73
|
-
optional
|
74
|
-
|
75
|
-
optional string anchor = 8;
|
71
|
+
optional int32 banner_group_id = 2;
|
72
|
+
optional string geo = 3;
|
73
|
+
optional string cta_type = 4;
|
74
|
+
optional string anchor = 5;
|
75
|
+
optional int32 is_active = 6;
|
76
|
+
repeated BannerTexts texts = 7;
|
76
77
|
}
|
77
78
|
message BannerItem {
|
78
79
|
optional int32 id = 1;
|
79
80
|
optional string geo = 2;
|
80
|
-
optional
|
81
|
-
optional string
|
82
|
-
optional string
|
83
|
-
optional string
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
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;
|
89
|
+
optional string title = 2;
|
90
|
+
optional string content = 3;
|
91
|
+
optional string cta = 4;
|
92
|
+
optional string note = 5;
|
88
93
|
}
|
89
94
|
message BannerResponse {
|
90
95
|
BannerItem data = 1;
|
@@ -100,4 +105,21 @@ message BannerItemsResponse {
|
|
100
105
|
repeated BannerItem items = 1;
|
101
106
|
optional int32 total_pages = 2;
|
102
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;
|
103
125
|
}
|
package/cms/cms_grpc_pb.js
CHANGED
@@ -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
|
-
|
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,
|