protobuf-platform 1.0.205 → 1.0.207

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
@@ -35,6 +35,7 @@ message PaginationRequest {
35
35
  int32 offset = 2;
36
36
  optional int32 is_active = 3;
37
37
  optional string geo = 4;
38
+ optional bool admin_side = 5;
38
39
  }
39
40
  //Media
40
41
  message File { bytes media = 1; optional string file_name = 2; optional string file_type = 3; }
@@ -136,6 +137,7 @@ message BannerGroupItem {
136
137
  repeated string geo = 3;
137
138
  optional int32 is_active = 4;
138
139
  repeated BannerItem banners = 5;
140
+ optional string default_image = 6;
139
141
  }
140
142
  message GetBannerGroupRequest {
141
143
  int32 id = 1;
package/cms/cms_pb.js CHANGED
@@ -933,7 +933,8 @@ proto.cms.PaginationRequest.toObject = function(includeInstance, msg) {
933
933
  limit: jspb.Message.getFieldWithDefault(msg, 1, 0),
934
934
  offset: jspb.Message.getFieldWithDefault(msg, 2, 0),
935
935
  isActive: jspb.Message.getFieldWithDefault(msg, 3, 0),
936
- geo: jspb.Message.getFieldWithDefault(msg, 4, "")
936
+ geo: jspb.Message.getFieldWithDefault(msg, 4, ""),
937
+ adminSide: jspb.Message.getBooleanFieldWithDefault(msg, 5, false)
937
938
  };
938
939
 
939
940
  if (includeInstance) {
@@ -986,6 +987,10 @@ proto.cms.PaginationRequest.deserializeBinaryFromReader = function(msg, reader)
986
987
  var value = /** @type {string} */ (reader.readString());
987
988
  msg.setGeo(value);
988
989
  break;
990
+ case 5:
991
+ var value = /** @type {boolean} */ (reader.readBool());
992
+ msg.setAdminSide(value);
993
+ break;
989
994
  default:
990
995
  reader.skipField();
991
996
  break;
@@ -1043,6 +1048,13 @@ proto.cms.PaginationRequest.serializeBinaryToWriter = function(message, writer)
1043
1048
  f
1044
1049
  );
1045
1050
  }
1051
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 5));
1052
+ if (f != null) {
1053
+ writer.writeBool(
1054
+ 5,
1055
+ f
1056
+ );
1057
+ }
1046
1058
  };
1047
1059
 
1048
1060
 
@@ -1154,6 +1166,42 @@ proto.cms.PaginationRequest.prototype.hasGeo = function() {
1154
1166
  };
1155
1167
 
1156
1168
 
1169
+ /**
1170
+ * optional bool admin_side = 5;
1171
+ * @return {boolean}
1172
+ */
1173
+ proto.cms.PaginationRequest.prototype.getAdminSide = function() {
1174
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false));
1175
+ };
1176
+
1177
+
1178
+ /**
1179
+ * @param {boolean} value
1180
+ * @return {!proto.cms.PaginationRequest} returns this
1181
+ */
1182
+ proto.cms.PaginationRequest.prototype.setAdminSide = function(value) {
1183
+ return jspb.Message.setField(this, 5, value);
1184
+ };
1185
+
1186
+
1187
+ /**
1188
+ * Clears the field making it undefined.
1189
+ * @return {!proto.cms.PaginationRequest} returns this
1190
+ */
1191
+ proto.cms.PaginationRequest.prototype.clearAdminSide = function() {
1192
+ return jspb.Message.setField(this, 5, undefined);
1193
+ };
1194
+
1195
+
1196
+ /**
1197
+ * Returns whether this field is set.
1198
+ * @return {boolean}
1199
+ */
1200
+ proto.cms.PaginationRequest.prototype.hasAdminSide = function() {
1201
+ return jspb.Message.getField(this, 5) != null;
1202
+ };
1203
+
1204
+
1157
1205
 
1158
1206
 
1159
1207
 
@@ -5731,7 +5779,8 @@ proto.cms.BannerGroupItem.toObject = function(includeInstance, msg) {
5731
5779
  geoList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
5732
5780
  isActive: jspb.Message.getFieldWithDefault(msg, 4, 0),
5733
5781
  bannersList: jspb.Message.toObjectList(msg.getBannersList(),
5734
- proto.cms.BannerItem.toObject, includeInstance)
5782
+ proto.cms.BannerItem.toObject, includeInstance),
5783
+ defaultImage: jspb.Message.getFieldWithDefault(msg, 6, "")
5735
5784
  };
5736
5785
 
5737
5786
  if (includeInstance) {
@@ -5789,6 +5838,10 @@ proto.cms.BannerGroupItem.deserializeBinaryFromReader = function(msg, reader) {
5789
5838
  reader.readMessage(value,proto.cms.BannerItem.deserializeBinaryFromReader);
5790
5839
  msg.addBanners(value);
5791
5840
  break;
5841
+ case 6:
5842
+ var value = /** @type {string} */ (reader.readString());
5843
+ msg.setDefaultImage(value);
5844
+ break;
5792
5845
  default:
5793
5846
  reader.skipField();
5794
5847
  break;
@@ -5854,6 +5907,13 @@ proto.cms.BannerGroupItem.serializeBinaryToWriter = function(message, writer) {
5854
5907
  proto.cms.BannerItem.serializeBinaryToWriter
5855
5908
  );
5856
5909
  }
5910
+ f = /** @type {string} */ (jspb.Message.getField(message, 6));
5911
+ if (f != null) {
5912
+ writer.writeString(
5913
+ 6,
5914
+ f
5915
+ );
5916
+ }
5857
5917
  };
5858
5918
 
5859
5919
 
@@ -6040,6 +6100,42 @@ proto.cms.BannerGroupItem.prototype.clearBannersList = function() {
6040
6100
  };
6041
6101
 
6042
6102
 
6103
+ /**
6104
+ * optional string default_image = 6;
6105
+ * @return {string}
6106
+ */
6107
+ proto.cms.BannerGroupItem.prototype.getDefaultImage = function() {
6108
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
6109
+ };
6110
+
6111
+
6112
+ /**
6113
+ * @param {string} value
6114
+ * @return {!proto.cms.BannerGroupItem} returns this
6115
+ */
6116
+ proto.cms.BannerGroupItem.prototype.setDefaultImage = function(value) {
6117
+ return jspb.Message.setField(this, 6, value);
6118
+ };
6119
+
6120
+
6121
+ /**
6122
+ * Clears the field making it undefined.
6123
+ * @return {!proto.cms.BannerGroupItem} returns this
6124
+ */
6125
+ proto.cms.BannerGroupItem.prototype.clearDefaultImage = function() {
6126
+ return jspb.Message.setField(this, 6, undefined);
6127
+ };
6128
+
6129
+
6130
+ /**
6131
+ * Returns whether this field is set.
6132
+ * @return {boolean}
6133
+ */
6134
+ proto.cms.BannerGroupItem.prototype.hasDefaultImage = function() {
6135
+ return jspb.Message.getField(this, 6) != null;
6136
+ };
6137
+
6138
+
6043
6139
 
6044
6140
 
6045
6141
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.0.205",
3
+ "version": "1.0.207",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {