protobuf-platform 1.2.682 → 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.682",
3
+ "version": "1.2.683",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {