protobuf-platform 1.2.681 → 1.2.683

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
@@ -189,6 +189,7 @@ message CommonWidgetRequest {
189
189
  string content = 2;
190
190
  string type = 3;
191
191
  optional bool is_enabled = 4;
192
+ optional string expected_revision = 5; // Whole Burger Menu configuration; ignored by other widgets.
192
193
  }
193
194
  message GetMainPageWidgetRequest {
194
195
  optional string geo = 1;
@@ -228,6 +229,7 @@ message BurgerMenuWidgetItem {
228
229
  string geo = 1;
229
230
  string content = 2;
230
231
  optional bool is_enabled = 3;
232
+ optional string revision = 4; // Revision of the entire Burger Menu configuration.
231
233
  }
232
234
  message GetSignUpFormWidgetRequest {
233
235
  optional string geo = 1;
package/cms/cms_pb.js CHANGED
@@ -5717,7 +5717,8 @@ proto.cms.CommonWidgetRequest.toObject = function(includeInstance, msg) {
5717
5717
  geo: jspb.Message.getFieldWithDefault(msg, 1, ""),
5718
5718
  content: jspb.Message.getFieldWithDefault(msg, 2, ""),
5719
5719
  type: jspb.Message.getFieldWithDefault(msg, 3, ""),
5720
- isEnabled: jspb.Message.getBooleanFieldWithDefault(msg, 4, false)
5720
+ isEnabled: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
5721
+ expectedRevision: jspb.Message.getFieldWithDefault(msg, 5, "")
5721
5722
  };
5722
5723
 
5723
5724
  if (includeInstance) {
@@ -5770,6 +5771,10 @@ proto.cms.CommonWidgetRequest.deserializeBinaryFromReader = function(msg, reader
5770
5771
  var value = /** @type {boolean} */ (reader.readBool());
5771
5772
  msg.setIsEnabled(value);
5772
5773
  break;
5774
+ case 5:
5775
+ var value = /** @type {string} */ (reader.readString());
5776
+ msg.setExpectedRevision(value);
5777
+ break;
5773
5778
  default:
5774
5779
  reader.skipField();
5775
5780
  break;
@@ -5827,6 +5832,13 @@ proto.cms.CommonWidgetRequest.serializeBinaryToWriter = function(message, writer
5827
5832
  f
5828
5833
  );
5829
5834
  }
5835
+ f = /** @type {string} */ (jspb.Message.getField(message, 5));
5836
+ if (f != null) {
5837
+ writer.writeString(
5838
+ 5,
5839
+ f
5840
+ );
5841
+ }
5830
5842
  };
5831
5843
 
5832
5844
 
@@ -5920,6 +5932,42 @@ proto.cms.CommonWidgetRequest.prototype.hasIsEnabled = function() {
5920
5932
  };
5921
5933
 
5922
5934
 
5935
+ /**
5936
+ * optional string expected_revision = 5;
5937
+ * @return {string}
5938
+ */
5939
+ proto.cms.CommonWidgetRequest.prototype.getExpectedRevision = function() {
5940
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
5941
+ };
5942
+
5943
+
5944
+ /**
5945
+ * @param {string} value
5946
+ * @return {!proto.cms.CommonWidgetRequest} returns this
5947
+ */
5948
+ proto.cms.CommonWidgetRequest.prototype.setExpectedRevision = function(value) {
5949
+ return jspb.Message.setField(this, 5, value);
5950
+ };
5951
+
5952
+
5953
+ /**
5954
+ * Clears the field making it undefined.
5955
+ * @return {!proto.cms.CommonWidgetRequest} returns this
5956
+ */
5957
+ proto.cms.CommonWidgetRequest.prototype.clearExpectedRevision = function() {
5958
+ return jspb.Message.setField(this, 5, undefined);
5959
+ };
5960
+
5961
+
5962
+ /**
5963
+ * Returns whether this field is set.
5964
+ * @return {boolean}
5965
+ */
5966
+ proto.cms.CommonWidgetRequest.prototype.hasExpectedRevision = function() {
5967
+ return jspb.Message.getField(this, 5) != null;
5968
+ };
5969
+
5970
+
5923
5971
 
5924
5972
 
5925
5973
 
@@ -7566,7 +7614,8 @@ proto.cms.BurgerMenuWidgetItem.toObject = function(includeInstance, msg) {
7566
7614
  var f, obj = {
7567
7615
  geo: jspb.Message.getFieldWithDefault(msg, 1, ""),
7568
7616
  content: jspb.Message.getFieldWithDefault(msg, 2, ""),
7569
- isEnabled: jspb.Message.getBooleanFieldWithDefault(msg, 3, false)
7617
+ isEnabled: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
7618
+ revision: jspb.Message.getFieldWithDefault(msg, 4, "")
7570
7619
  };
7571
7620
 
7572
7621
  if (includeInstance) {
@@ -7615,6 +7664,10 @@ proto.cms.BurgerMenuWidgetItem.deserializeBinaryFromReader = function(msg, reade
7615
7664
  var value = /** @type {boolean} */ (reader.readBool());
7616
7665
  msg.setIsEnabled(value);
7617
7666
  break;
7667
+ case 4:
7668
+ var value = /** @type {string} */ (reader.readString());
7669
+ msg.setRevision(value);
7670
+ break;
7618
7671
  default:
7619
7672
  reader.skipField();
7620
7673
  break;
@@ -7665,6 +7718,13 @@ proto.cms.BurgerMenuWidgetItem.serializeBinaryToWriter = function(message, write
7665
7718
  f
7666
7719
  );
7667
7720
  }
7721
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
7722
+ if (f != null) {
7723
+ writer.writeString(
7724
+ 4,
7725
+ f
7726
+ );
7727
+ }
7668
7728
  };
7669
7729
 
7670
7730
 
@@ -7740,6 +7800,42 @@ proto.cms.BurgerMenuWidgetItem.prototype.hasIsEnabled = function() {
7740
7800
  };
7741
7801
 
7742
7802
 
7803
+ /**
7804
+ * optional string revision = 4;
7805
+ * @return {string}
7806
+ */
7807
+ proto.cms.BurgerMenuWidgetItem.prototype.getRevision = function() {
7808
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
7809
+ };
7810
+
7811
+
7812
+ /**
7813
+ * @param {string} value
7814
+ * @return {!proto.cms.BurgerMenuWidgetItem} returns this
7815
+ */
7816
+ proto.cms.BurgerMenuWidgetItem.prototype.setRevision = function(value) {
7817
+ return jspb.Message.setField(this, 4, value);
7818
+ };
7819
+
7820
+
7821
+ /**
7822
+ * Clears the field making it undefined.
7823
+ * @return {!proto.cms.BurgerMenuWidgetItem} returns this
7824
+ */
7825
+ proto.cms.BurgerMenuWidgetItem.prototype.clearRevision = function() {
7826
+ return jspb.Message.setField(this, 4, undefined);
7827
+ };
7828
+
7829
+
7830
+ /**
7831
+ * Returns whether this field is set.
7832
+ * @return {boolean}
7833
+ */
7834
+ proto.cms.BurgerMenuWidgetItem.prototype.hasRevision = function() {
7835
+ return jspb.Message.getField(this, 4) != null;
7836
+ };
7837
+
7838
+
7743
7839
 
7744
7840
 
7745
7841
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.681",
3
+ "version": "1.2.683",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/user/user.proto CHANGED
@@ -251,6 +251,7 @@ message UserSearchParams {
251
251
  optional string registration_from = 9;
252
252
  optional string registration_to = 10;
253
253
  optional string nickname = 11;
254
+ repeated int32 role_ids = 12;
254
255
  }
255
256
  message SegmentSearchParams {
256
257
  optional string type = 1;
package/user/user_pb.js CHANGED
@@ -7956,7 +7956,7 @@ proto.user.File.prototype.hasFileType = function() {
7956
7956
  * @private {!Array<number>}
7957
7957
  * @const
7958
7958
  */
7959
- proto.user.UserSearchParams.repeatedFields_ = [1,2,3,4,5,6,7];
7959
+ proto.user.UserSearchParams.repeatedFields_ = [1,2,3,4,5,6,7,12];
7960
7960
 
7961
7961
 
7962
7962
 
@@ -7999,7 +7999,8 @@ proto.user.UserSearchParams.toObject = function(includeInstance, msg) {
7999
7999
  email: jspb.Message.getFieldWithDefault(msg, 8, ""),
8000
8000
  registrationFrom: jspb.Message.getFieldWithDefault(msg, 9, ""),
8001
8001
  registrationTo: jspb.Message.getFieldWithDefault(msg, 10, ""),
8002
- nickname: jspb.Message.getFieldWithDefault(msg, 11, "")
8002
+ nickname: jspb.Message.getFieldWithDefault(msg, 11, ""),
8003
+ roleIdsList: (f = jspb.Message.getRepeatedField(msg, 12)) == null ? undefined : f
8003
8004
  };
8004
8005
 
8005
8006
  if (includeInstance) {
@@ -8088,6 +8089,12 @@ proto.user.UserSearchParams.deserializeBinaryFromReader = function(msg, reader)
8088
8089
  var value = /** @type {string} */ (reader.readString());
8089
8090
  msg.setNickname(value);
8090
8091
  break;
8092
+ case 12:
8093
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
8094
+ for (var i = 0; i < values.length; i++) {
8095
+ msg.addRoleIds(values[i]);
8096
+ }
8097
+ break;
8091
8098
  default:
8092
8099
  reader.skipField();
8093
8100
  break;
@@ -8194,6 +8201,13 @@ proto.user.UserSearchParams.serializeBinaryToWriter = function(message, writer)
8194
8201
  f
8195
8202
  );
8196
8203
  }
8204
+ f = message.getRoleIdsList();
8205
+ if (f.length > 0) {
8206
+ writer.writePackedInt32(
8207
+ 12,
8208
+ f
8209
+ );
8210
+ }
8197
8211
  };
8198
8212
 
8199
8213
 
@@ -8600,6 +8614,43 @@ proto.user.UserSearchParams.prototype.hasNickname = function() {
8600
8614
  };
8601
8615
 
8602
8616
 
8617
+ /**
8618
+ * repeated int32 role_ids = 12;
8619
+ * @return {!Array<number>}
8620
+ */
8621
+ proto.user.UserSearchParams.prototype.getRoleIdsList = function() {
8622
+ return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 12));
8623
+ };
8624
+
8625
+
8626
+ /**
8627
+ * @param {!Array<number>} value
8628
+ * @return {!proto.user.UserSearchParams} returns this
8629
+ */
8630
+ proto.user.UserSearchParams.prototype.setRoleIdsList = function(value) {
8631
+ return jspb.Message.setField(this, 12, value || []);
8632
+ };
8633
+
8634
+
8635
+ /**
8636
+ * @param {number} value
8637
+ * @param {number=} opt_index
8638
+ * @return {!proto.user.UserSearchParams} returns this
8639
+ */
8640
+ proto.user.UserSearchParams.prototype.addRoleIds = function(value, opt_index) {
8641
+ return jspb.Message.addToRepeatedField(this, 12, value, opt_index);
8642
+ };
8643
+
8644
+
8645
+ /**
8646
+ * Clears the list making it empty but non-null.
8647
+ * @return {!proto.user.UserSearchParams} returns this
8648
+ */
8649
+ proto.user.UserSearchParams.prototype.clearRoleIdsList = function() {
8650
+ return this.setRoleIdsList([]);
8651
+ };
8652
+
8653
+
8603
8654
 
8604
8655
  /**
8605
8656
  * List of repeated fields within this message type.