protobuf-platform 1.0.288 → 1.0.290

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.
@@ -31,6 +31,7 @@ message NotificationSearchRequest {
31
31
  optional int32 user_id = 2;
32
32
  optional string notification_title = 3;
33
33
  repeated int32 notification_ids = 4;
34
+ optional string type = 5;
34
35
  }
35
36
  message UserSearchRequest {
36
37
  int32 user_id = 1;
@@ -48,7 +49,8 @@ message NotificationRequest {
48
49
  optional string title = 2;
49
50
  optional string content = 3;
50
51
  optional string type = 4;
51
- optional int32 is_active = 5;
52
+ optional string trigger = 5;
53
+ optional int32 is_active = 6;
52
54
  }
53
55
  message GetNotificationRequest {
54
56
  int32 id = 1;
@@ -78,7 +80,8 @@ message NotificationItem {
78
80
  string content = 3;
79
81
  bool is_active = 4;
80
82
  string type = 5;
81
- optional string created = 6;
83
+ string trigger = 6;
84
+ optional string created = 7;
82
85
  }
83
86
  message NotificationResponse {
84
87
  NotificationItem data = 1;
@@ -959,7 +959,8 @@ proto.notification.NotificationSearchRequest.toObject = function(includeInstance
959
959
  notificationId: jspb.Message.getFieldWithDefault(msg, 1, 0),
960
960
  userId: jspb.Message.getFieldWithDefault(msg, 2, 0),
961
961
  notificationTitle: jspb.Message.getFieldWithDefault(msg, 3, ""),
962
- notificationIdsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f
962
+ notificationIdsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f,
963
+ type: jspb.Message.getFieldWithDefault(msg, 5, "")
963
964
  };
964
965
 
965
966
  if (includeInstance) {
@@ -1014,6 +1015,10 @@ proto.notification.NotificationSearchRequest.deserializeBinaryFromReader = funct
1014
1015
  msg.addNotificationIds(values[i]);
1015
1016
  }
1016
1017
  break;
1018
+ case 5:
1019
+ var value = /** @type {string} */ (reader.readString());
1020
+ msg.setType(value);
1021
+ break;
1017
1022
  default:
1018
1023
  reader.skipField();
1019
1024
  break;
@@ -1071,6 +1076,13 @@ proto.notification.NotificationSearchRequest.serializeBinaryToWriter = function(
1071
1076
  f
1072
1077
  );
1073
1078
  }
1079
+ f = /** @type {string} */ (jspb.Message.getField(message, 5));
1080
+ if (f != null) {
1081
+ writer.writeString(
1082
+ 5,
1083
+ f
1084
+ );
1085
+ }
1074
1086
  };
1075
1087
 
1076
1088
 
@@ -1219,6 +1231,42 @@ proto.notification.NotificationSearchRequest.prototype.clearNotificationIdsList
1219
1231
  };
1220
1232
 
1221
1233
 
1234
+ /**
1235
+ * optional string type = 5;
1236
+ * @return {string}
1237
+ */
1238
+ proto.notification.NotificationSearchRequest.prototype.getType = function() {
1239
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
1240
+ };
1241
+
1242
+
1243
+ /**
1244
+ * @param {string} value
1245
+ * @return {!proto.notification.NotificationSearchRequest} returns this
1246
+ */
1247
+ proto.notification.NotificationSearchRequest.prototype.setType = function(value) {
1248
+ return jspb.Message.setField(this, 5, value);
1249
+ };
1250
+
1251
+
1252
+ /**
1253
+ * Clears the field making it undefined.
1254
+ * @return {!proto.notification.NotificationSearchRequest} returns this
1255
+ */
1256
+ proto.notification.NotificationSearchRequest.prototype.clearType = function() {
1257
+ return jspb.Message.setField(this, 5, undefined);
1258
+ };
1259
+
1260
+
1261
+ /**
1262
+ * Returns whether this field is set.
1263
+ * @return {boolean}
1264
+ */
1265
+ proto.notification.NotificationSearchRequest.prototype.hasType = function() {
1266
+ return jspb.Message.getField(this, 5) != null;
1267
+ };
1268
+
1269
+
1222
1270
 
1223
1271
 
1224
1272
 
@@ -1843,7 +1891,8 @@ proto.notification.NotificationRequest.toObject = function(includeInstance, msg)
1843
1891
  title: jspb.Message.getFieldWithDefault(msg, 2, ""),
1844
1892
  content: jspb.Message.getFieldWithDefault(msg, 3, ""),
1845
1893
  type: jspb.Message.getFieldWithDefault(msg, 4, ""),
1846
- isActive: jspb.Message.getFieldWithDefault(msg, 5, 0)
1894
+ trigger: jspb.Message.getFieldWithDefault(msg, 5, ""),
1895
+ isActive: jspb.Message.getFieldWithDefault(msg, 6, 0)
1847
1896
  };
1848
1897
 
1849
1898
  if (includeInstance) {
@@ -1897,6 +1946,10 @@ proto.notification.NotificationRequest.deserializeBinaryFromReader = function(ms
1897
1946
  msg.setType(value);
1898
1947
  break;
1899
1948
  case 5:
1949
+ var value = /** @type {string} */ (reader.readString());
1950
+ msg.setTrigger(value);
1951
+ break;
1952
+ case 6:
1900
1953
  var value = /** @type {number} */ (reader.readInt32());
1901
1954
  msg.setIsActive(value);
1902
1955
  break;
@@ -1957,13 +2010,20 @@ proto.notification.NotificationRequest.serializeBinaryToWriter = function(messag
1957
2010
  f
1958
2011
  );
1959
2012
  }
1960
- f = /** @type {number} */ (jspb.Message.getField(message, 5));
2013
+ f = /** @type {string} */ (jspb.Message.getField(message, 5));
1961
2014
  if (f != null) {
1962
- writer.writeInt32(
2015
+ writer.writeString(
1963
2016
  5,
1964
2017
  f
1965
2018
  );
1966
2019
  }
2020
+ f = /** @type {number} */ (jspb.Message.getField(message, 6));
2021
+ if (f != null) {
2022
+ writer.writeInt32(
2023
+ 6,
2024
+ f
2025
+ );
2026
+ }
1967
2027
  };
1968
2028
 
1969
2029
 
@@ -2112,11 +2172,47 @@ proto.notification.NotificationRequest.prototype.hasType = function() {
2112
2172
 
2113
2173
 
2114
2174
  /**
2115
- * optional int32 is_active = 5;
2175
+ * optional string trigger = 5;
2176
+ * @return {string}
2177
+ */
2178
+ proto.notification.NotificationRequest.prototype.getTrigger = function() {
2179
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
2180
+ };
2181
+
2182
+
2183
+ /**
2184
+ * @param {string} value
2185
+ * @return {!proto.notification.NotificationRequest} returns this
2186
+ */
2187
+ proto.notification.NotificationRequest.prototype.setTrigger = function(value) {
2188
+ return jspb.Message.setField(this, 5, value);
2189
+ };
2190
+
2191
+
2192
+ /**
2193
+ * Clears the field making it undefined.
2194
+ * @return {!proto.notification.NotificationRequest} returns this
2195
+ */
2196
+ proto.notification.NotificationRequest.prototype.clearTrigger = function() {
2197
+ return jspb.Message.setField(this, 5, undefined);
2198
+ };
2199
+
2200
+
2201
+ /**
2202
+ * Returns whether this field is set.
2203
+ * @return {boolean}
2204
+ */
2205
+ proto.notification.NotificationRequest.prototype.hasTrigger = function() {
2206
+ return jspb.Message.getField(this, 5) != null;
2207
+ };
2208
+
2209
+
2210
+ /**
2211
+ * optional int32 is_active = 6;
2116
2212
  * @return {number}
2117
2213
  */
2118
2214
  proto.notification.NotificationRequest.prototype.getIsActive = function() {
2119
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
2215
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
2120
2216
  };
2121
2217
 
2122
2218
 
@@ -2125,7 +2221,7 @@ proto.notification.NotificationRequest.prototype.getIsActive = function() {
2125
2221
  * @return {!proto.notification.NotificationRequest} returns this
2126
2222
  */
2127
2223
  proto.notification.NotificationRequest.prototype.setIsActive = function(value) {
2128
- return jspb.Message.setField(this, 5, value);
2224
+ return jspb.Message.setField(this, 6, value);
2129
2225
  };
2130
2226
 
2131
2227
 
@@ -2134,7 +2230,7 @@ proto.notification.NotificationRequest.prototype.setIsActive = function(value) {
2134
2230
  * @return {!proto.notification.NotificationRequest} returns this
2135
2231
  */
2136
2232
  proto.notification.NotificationRequest.prototype.clearIsActive = function() {
2137
- return jspb.Message.setField(this, 5, undefined);
2233
+ return jspb.Message.setField(this, 6, undefined);
2138
2234
  };
2139
2235
 
2140
2236
 
@@ -2143,7 +2239,7 @@ proto.notification.NotificationRequest.prototype.clearIsActive = function() {
2143
2239
  * @return {boolean}
2144
2240
  */
2145
2241
  proto.notification.NotificationRequest.prototype.hasIsActive = function() {
2146
- return jspb.Message.getField(this, 5) != null;
2242
+ return jspb.Message.getField(this, 6) != null;
2147
2243
  };
2148
2244
 
2149
2245
 
@@ -3156,7 +3252,8 @@ proto.notification.NotificationItem.toObject = function(includeInstance, msg) {
3156
3252
  content: jspb.Message.getFieldWithDefault(msg, 3, ""),
3157
3253
  isActive: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
3158
3254
  type: jspb.Message.getFieldWithDefault(msg, 5, ""),
3159
- created: jspb.Message.getFieldWithDefault(msg, 6, "")
3255
+ trigger: jspb.Message.getFieldWithDefault(msg, 6, ""),
3256
+ created: jspb.Message.getFieldWithDefault(msg, 7, "")
3160
3257
  };
3161
3258
 
3162
3259
  if (includeInstance) {
@@ -3214,6 +3311,10 @@ proto.notification.NotificationItem.deserializeBinaryFromReader = function(msg,
3214
3311
  msg.setType(value);
3215
3312
  break;
3216
3313
  case 6:
3314
+ var value = /** @type {string} */ (reader.readString());
3315
+ msg.setTrigger(value);
3316
+ break;
3317
+ case 7:
3217
3318
  var value = /** @type {string} */ (reader.readString());
3218
3319
  msg.setCreated(value);
3219
3320
  break;
@@ -3281,13 +3382,20 @@ proto.notification.NotificationItem.serializeBinaryToWriter = function(message,
3281
3382
  f
3282
3383
  );
3283
3384
  }
3284
- f = /** @type {string} */ (jspb.Message.getField(message, 6));
3285
- if (f != null) {
3385
+ f = message.getTrigger();
3386
+ if (f.length > 0) {
3286
3387
  writer.writeString(
3287
3388
  6,
3288
3389
  f
3289
3390
  );
3290
3391
  }
3392
+ f = /** @type {string} */ (jspb.Message.getField(message, 7));
3393
+ if (f != null) {
3394
+ writer.writeString(
3395
+ 7,
3396
+ f
3397
+ );
3398
+ }
3291
3399
  };
3292
3400
 
3293
3401
 
@@ -3382,20 +3490,38 @@ proto.notification.NotificationItem.prototype.setType = function(value) {
3382
3490
 
3383
3491
 
3384
3492
  /**
3385
- * optional string created = 6;
3493
+ * optional string trigger = 6;
3386
3494
  * @return {string}
3387
3495
  */
3388
- proto.notification.NotificationItem.prototype.getCreated = function() {
3496
+ proto.notification.NotificationItem.prototype.getTrigger = function() {
3389
3497
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
3390
3498
  };
3391
3499
 
3392
3500
 
3501
+ /**
3502
+ * @param {string} value
3503
+ * @return {!proto.notification.NotificationItem} returns this
3504
+ */
3505
+ proto.notification.NotificationItem.prototype.setTrigger = function(value) {
3506
+ return jspb.Message.setProto3StringField(this, 6, value);
3507
+ };
3508
+
3509
+
3510
+ /**
3511
+ * optional string created = 7;
3512
+ * @return {string}
3513
+ */
3514
+ proto.notification.NotificationItem.prototype.getCreated = function() {
3515
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
3516
+ };
3517
+
3518
+
3393
3519
  /**
3394
3520
  * @param {string} value
3395
3521
  * @return {!proto.notification.NotificationItem} returns this
3396
3522
  */
3397
3523
  proto.notification.NotificationItem.prototype.setCreated = function(value) {
3398
- return jspb.Message.setField(this, 6, value);
3524
+ return jspb.Message.setField(this, 7, value);
3399
3525
  };
3400
3526
 
3401
3527
 
@@ -3404,7 +3530,7 @@ proto.notification.NotificationItem.prototype.setCreated = function(value) {
3404
3530
  * @return {!proto.notification.NotificationItem} returns this
3405
3531
  */
3406
3532
  proto.notification.NotificationItem.prototype.clearCreated = function() {
3407
- return jspb.Message.setField(this, 6, undefined);
3533
+ return jspb.Message.setField(this, 7, undefined);
3408
3534
  };
3409
3535
 
3410
3536
 
@@ -3413,7 +3539,7 @@ proto.notification.NotificationItem.prototype.clearCreated = function() {
3413
3539
  * @return {boolean}
3414
3540
  */
3415
3541
  proto.notification.NotificationItem.prototype.hasCreated = function() {
3416
- return jspb.Message.getField(this, 6) != null;
3542
+ return jspb.Message.getField(this, 7) != null;
3417
3543
  };
3418
3544
 
3419
3545
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.0.288",
3
+ "version": "1.0.290",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {