protobuf-platform 1.2.82 → 1.2.83

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.
@@ -119,7 +119,7 @@ message MailTemplateSearchRequest {
119
119
  optional int32 template_id = 1;
120
120
  optional string key = 2; // exact or like (your server decides)
121
121
  optional string title = 3; // substring search
122
- optional string type = 4; // e.g., "registration", "password_reset"
122
+ repeated string types = 4; // e.g., ["registration", "password_reset"]
123
123
  optional int32 is_active = 5; // -1 ignore, 0 false, 1 true
124
124
  }
125
125
 
@@ -441,7 +441,7 @@ if (goog.DEBUG && !COMPILED) {
441
441
  * @constructor
442
442
  */
443
443
  proto.notification.MailTemplateSearchRequest = function(opt_data) {
444
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
444
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.notification.MailTemplateSearchRequest.repeatedFields_, null);
445
445
  };
446
446
  goog.inherits(proto.notification.MailTemplateSearchRequest, jspb.Message);
447
447
  if (goog.DEBUG && !COMPILED) {
@@ -4721,6 +4721,13 @@ proto.notification.UserNotificationsCountResponse.prototype.setCount = function(
4721
4721
 
4722
4722
 
4723
4723
 
4724
+ /**
4725
+ * List of repeated fields within this message type.
4726
+ * @private {!Array<number>}
4727
+ * @const
4728
+ */
4729
+ proto.notification.MailTemplateSearchRequest.repeatedFields_ = [4];
4730
+
4724
4731
 
4725
4732
 
4726
4733
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -4755,7 +4762,7 @@ proto.notification.MailTemplateSearchRequest.toObject = function(includeInstance
4755
4762
  templateId: jspb.Message.getFieldWithDefault(msg, 1, 0),
4756
4763
  key: jspb.Message.getFieldWithDefault(msg, 2, ""),
4757
4764
  title: jspb.Message.getFieldWithDefault(msg, 3, ""),
4758
- type: jspb.Message.getFieldWithDefault(msg, 4, ""),
4765
+ typesList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f,
4759
4766
  isActive: jspb.Message.getFieldWithDefault(msg, 5, 0)
4760
4767
  };
4761
4768
 
@@ -4807,7 +4814,7 @@ proto.notification.MailTemplateSearchRequest.deserializeBinaryFromReader = funct
4807
4814
  break;
4808
4815
  case 4:
4809
4816
  var value = /** @type {string} */ (reader.readString());
4810
- msg.setType(value);
4817
+ msg.addTypes(value);
4811
4818
  break;
4812
4819
  case 5:
4813
4820
  var value = /** @type {number} */ (reader.readInt32());
@@ -4863,9 +4870,9 @@ proto.notification.MailTemplateSearchRequest.serializeBinaryToWriter = function(
4863
4870
  f
4864
4871
  );
4865
4872
  }
4866
- f = /** @type {string} */ (jspb.Message.getField(message, 4));
4867
- if (f != null) {
4868
- writer.writeString(
4873
+ f = message.getTypesList();
4874
+ if (f.length > 0) {
4875
+ writer.writeRepeatedString(
4869
4876
  4,
4870
4877
  f
4871
4878
  );
@@ -4989,38 +4996,39 @@ proto.notification.MailTemplateSearchRequest.prototype.hasTitle = function() {
4989
4996
 
4990
4997
 
4991
4998
  /**
4992
- * optional string type = 4;
4993
- * @return {string}
4999
+ * repeated string types = 4;
5000
+ * @return {!Array<string>}
4994
5001
  */
4995
- proto.notification.MailTemplateSearchRequest.prototype.getType = function() {
4996
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
5002
+ proto.notification.MailTemplateSearchRequest.prototype.getTypesList = function() {
5003
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 4));
4997
5004
  };
4998
5005
 
4999
5006
 
5000
5007
  /**
5001
- * @param {string} value
5008
+ * @param {!Array<string>} value
5002
5009
  * @return {!proto.notification.MailTemplateSearchRequest} returns this
5003
5010
  */
5004
- proto.notification.MailTemplateSearchRequest.prototype.setType = function(value) {
5005
- return jspb.Message.setField(this, 4, value);
5011
+ proto.notification.MailTemplateSearchRequest.prototype.setTypesList = function(value) {
5012
+ return jspb.Message.setField(this, 4, value || []);
5006
5013
  };
5007
5014
 
5008
5015
 
5009
5016
  /**
5010
- * Clears the field making it undefined.
5017
+ * @param {string} value
5018
+ * @param {number=} opt_index
5011
5019
  * @return {!proto.notification.MailTemplateSearchRequest} returns this
5012
5020
  */
5013
- proto.notification.MailTemplateSearchRequest.prototype.clearType = function() {
5014
- return jspb.Message.setField(this, 4, undefined);
5021
+ proto.notification.MailTemplateSearchRequest.prototype.addTypes = function(value, opt_index) {
5022
+ return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
5015
5023
  };
5016
5024
 
5017
5025
 
5018
5026
  /**
5019
- * Returns whether this field is set.
5020
- * @return {boolean}
5027
+ * Clears the list making it empty but non-null.
5028
+ * @return {!proto.notification.MailTemplateSearchRequest} returns this
5021
5029
  */
5022
- proto.notification.MailTemplateSearchRequest.prototype.hasType = function() {
5023
- return jspb.Message.getField(this, 4) != null;
5030
+ proto.notification.MailTemplateSearchRequest.prototype.clearTypesList = function() {
5031
+ return this.setTypesList([]);
5024
5032
  };
5025
5033
 
5026
5034
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.82",
3
+ "version": "1.2.83",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {