protobuf-platform 1.2.408 → 1.2.409

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.408",
3
+ "version": "1.2.409",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -46,6 +46,7 @@ message SearchRequest {
46
46
  optional string target_domain = 5;
47
47
  // Business-allowed: "enhance" | "grant"
48
48
  optional string application_mode = 6;
49
+ optional string type = 7;
49
50
  }
50
51
  message ItemsBunchRequest {
51
52
  repeated int32 ids = 1;
@@ -1511,7 +1511,8 @@ proto.promocode.SearchRequest.toObject = function(includeInstance, msg) {
1511
1511
  isActive: jspb.Message.getFieldWithDefault(msg, 3, 0),
1512
1512
  activationArea: jspb.Message.getFieldWithDefault(msg, 4, ""),
1513
1513
  targetDomain: jspb.Message.getFieldWithDefault(msg, 5, ""),
1514
- applicationMode: jspb.Message.getFieldWithDefault(msg, 6, "")
1514
+ applicationMode: jspb.Message.getFieldWithDefault(msg, 6, ""),
1515
+ type: jspb.Message.getFieldWithDefault(msg, 7, "")
1515
1516
  };
1516
1517
 
1517
1518
  if (includeInstance) {
@@ -1572,6 +1573,10 @@ proto.promocode.SearchRequest.deserializeBinaryFromReader = function(msg, reader
1572
1573
  var value = /** @type {string} */ (reader.readString());
1573
1574
  msg.setApplicationMode(value);
1574
1575
  break;
1576
+ case 7:
1577
+ var value = /** @type {string} */ (reader.readString());
1578
+ msg.setType(value);
1579
+ break;
1575
1580
  default:
1576
1581
  reader.skipField();
1577
1582
  break;
@@ -1643,6 +1648,13 @@ proto.promocode.SearchRequest.serializeBinaryToWriter = function(message, writer
1643
1648
  f
1644
1649
  );
1645
1650
  }
1651
+ f = /** @type {string} */ (jspb.Message.getField(message, 7));
1652
+ if (f != null) {
1653
+ writer.writeString(
1654
+ 7,
1655
+ f
1656
+ );
1657
+ }
1646
1658
  };
1647
1659
 
1648
1660
 
@@ -1862,6 +1874,42 @@ proto.promocode.SearchRequest.prototype.hasApplicationMode = function() {
1862
1874
  };
1863
1875
 
1864
1876
 
1877
+ /**
1878
+ * optional string type = 7;
1879
+ * @return {string}
1880
+ */
1881
+ proto.promocode.SearchRequest.prototype.getType = function() {
1882
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
1883
+ };
1884
+
1885
+
1886
+ /**
1887
+ * @param {string} value
1888
+ * @return {!proto.promocode.SearchRequest} returns this
1889
+ */
1890
+ proto.promocode.SearchRequest.prototype.setType = function(value) {
1891
+ return jspb.Message.setField(this, 7, value);
1892
+ };
1893
+
1894
+
1895
+ /**
1896
+ * Clears the field making it undefined.
1897
+ * @return {!proto.promocode.SearchRequest} returns this
1898
+ */
1899
+ proto.promocode.SearchRequest.prototype.clearType = function() {
1900
+ return jspb.Message.setField(this, 7, undefined);
1901
+ };
1902
+
1903
+
1904
+ /**
1905
+ * Returns whether this field is set.
1906
+ * @return {boolean}
1907
+ */
1908
+ proto.promocode.SearchRequest.prototype.hasType = function() {
1909
+ return jspb.Message.getField(this, 7) != null;
1910
+ };
1911
+
1912
+
1865
1913
 
1866
1914
  /**
1867
1915
  * List of repeated fields within this message type.