protobuf-platform 1.0.195 → 1.0.197

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
@@ -86,7 +86,8 @@ message BannerItem {
86
86
  optional string image_big = 4;
87
87
  optional string image_small = 5;
88
88
  optional string anchor = 6;
89
- repeated BannerTexts texts = 7;
89
+ optional string cta_type = 7;
90
+ repeated BannerTexts texts = 8;
90
91
  }
91
92
  message BannerTexts {
92
93
  string locale = 1;
package/cms/cms_pb.js CHANGED
@@ -3320,7 +3320,7 @@ proto.cms.BannerItemRequest.prototype.clearTextsList = function() {
3320
3320
  * @private {!Array<number>}
3321
3321
  * @const
3322
3322
  */
3323
- proto.cms.BannerItem.repeatedFields_ = [7];
3323
+ proto.cms.BannerItem.repeatedFields_ = [8];
3324
3324
 
3325
3325
 
3326
3326
 
@@ -3359,6 +3359,7 @@ proto.cms.BannerItem.toObject = function(includeInstance, msg) {
3359
3359
  imageBig: jspb.Message.getFieldWithDefault(msg, 4, ""),
3360
3360
  imageSmall: jspb.Message.getFieldWithDefault(msg, 5, ""),
3361
3361
  anchor: jspb.Message.getFieldWithDefault(msg, 6, ""),
3362
+ ctaType: jspb.Message.getFieldWithDefault(msg, 7, ""),
3362
3363
  textsList: jspb.Message.toObjectList(msg.getTextsList(),
3363
3364
  proto.cms.BannerTexts.toObject, includeInstance)
3364
3365
  };
@@ -3422,6 +3423,10 @@ proto.cms.BannerItem.deserializeBinaryFromReader = function(msg, reader) {
3422
3423
  msg.setAnchor(value);
3423
3424
  break;
3424
3425
  case 7:
3426
+ var value = /** @type {string} */ (reader.readString());
3427
+ msg.setCtaType(value);
3428
+ break;
3429
+ case 8:
3425
3430
  var value = new proto.cms.BannerTexts;
3426
3431
  reader.readMessage(value,proto.cms.BannerTexts.deserializeBinaryFromReader);
3427
3432
  msg.addTexts(value);
@@ -3497,10 +3502,17 @@ proto.cms.BannerItem.serializeBinaryToWriter = function(message, writer) {
3497
3502
  f
3498
3503
  );
3499
3504
  }
3505
+ f = /** @type {string} */ (jspb.Message.getField(message, 7));
3506
+ if (f != null) {
3507
+ writer.writeString(
3508
+ 7,
3509
+ f
3510
+ );
3511
+ }
3500
3512
  f = message.getTextsList();
3501
3513
  if (f.length > 0) {
3502
3514
  writer.writeRepeatedMessage(
3503
- 7,
3515
+ 8,
3504
3516
  f,
3505
3517
  proto.cms.BannerTexts.serializeBinaryToWriter
3506
3518
  );
@@ -3725,12 +3737,48 @@ proto.cms.BannerItem.prototype.hasAnchor = function() {
3725
3737
 
3726
3738
 
3727
3739
  /**
3728
- * repeated BannerTexts texts = 7;
3740
+ * optional string cta_type = 7;
3741
+ * @return {string}
3742
+ */
3743
+ proto.cms.BannerItem.prototype.getCtaType = function() {
3744
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
3745
+ };
3746
+
3747
+
3748
+ /**
3749
+ * @param {string} value
3750
+ * @return {!proto.cms.BannerItem} returns this
3751
+ */
3752
+ proto.cms.BannerItem.prototype.setCtaType = function(value) {
3753
+ return jspb.Message.setField(this, 7, value);
3754
+ };
3755
+
3756
+
3757
+ /**
3758
+ * Clears the field making it undefined.
3759
+ * @return {!proto.cms.BannerItem} returns this
3760
+ */
3761
+ proto.cms.BannerItem.prototype.clearCtaType = function() {
3762
+ return jspb.Message.setField(this, 7, undefined);
3763
+ };
3764
+
3765
+
3766
+ /**
3767
+ * Returns whether this field is set.
3768
+ * @return {boolean}
3769
+ */
3770
+ proto.cms.BannerItem.prototype.hasCtaType = function() {
3771
+ return jspb.Message.getField(this, 7) != null;
3772
+ };
3773
+
3774
+
3775
+ /**
3776
+ * repeated BannerTexts texts = 8;
3729
3777
  * @return {!Array<!proto.cms.BannerTexts>}
3730
3778
  */
3731
3779
  proto.cms.BannerItem.prototype.getTextsList = function() {
3732
3780
  return /** @type{!Array<!proto.cms.BannerTexts>} */ (
3733
- jspb.Message.getRepeatedWrapperField(this, proto.cms.BannerTexts, 7));
3781
+ jspb.Message.getRepeatedWrapperField(this, proto.cms.BannerTexts, 8));
3734
3782
  };
3735
3783
 
3736
3784
 
@@ -3739,7 +3787,7 @@ proto.cms.BannerItem.prototype.getTextsList = function() {
3739
3787
  * @return {!proto.cms.BannerItem} returns this
3740
3788
  */
3741
3789
  proto.cms.BannerItem.prototype.setTextsList = function(value) {
3742
- return jspb.Message.setRepeatedWrapperField(this, 7, value);
3790
+ return jspb.Message.setRepeatedWrapperField(this, 8, value);
3743
3791
  };
3744
3792
 
3745
3793
 
@@ -3749,7 +3797,7 @@ proto.cms.BannerItem.prototype.setTextsList = function(value) {
3749
3797
  * @return {!proto.cms.BannerTexts}
3750
3798
  */
3751
3799
  proto.cms.BannerItem.prototype.addTexts = function(opt_value, opt_index) {
3752
- return jspb.Message.addToRepeatedWrapperField(this, 7, opt_value, proto.cms.BannerTexts, opt_index);
3800
+ return jspb.Message.addToRepeatedWrapperField(this, 8, opt_value, proto.cms.BannerTexts, opt_index);
3753
3801
  };
3754
3802
 
3755
3803
 
@@ -15,6 +15,7 @@ service Notification {
15
15
  rpc sendNotificationToUsers(SendNotificationRequest) returns (NotificationStatusResponse);
16
16
  rpc getNotificationForParticularUser(PaginationRequest) returns (UserNotificationItemsResponse);
17
17
  rpc getNotificationsCountForUser(NotificationSearchRequest) returns (UserNotificationsCountResponse);
18
+ rpc markUserNotification(NotificationSearchRequest) returns (NotificationStatusResponse);
18
19
  }
19
20
 
20
21
  message PingRequest { string ping = 1; }
@@ -29,6 +30,7 @@ message NotificationSearchRequest {
29
30
  optional int32 notification_id = 1;
30
31
  optional int32 user_id = 2;
31
32
  optional string notification_title = 3;
33
+ repeated int32 notification_ids = 4;
32
34
  }
33
35
  message UserSearchRequest {
34
36
  int32 user_id = 1;
@@ -272,6 +272,17 @@ sendNotificationToUsers: {
272
272
  responseSerialize: serialize_notification_UserNotificationsCountResponse,
273
273
  responseDeserialize: deserialize_notification_UserNotificationsCountResponse,
274
274
  },
275
+ markUserNotification: {
276
+ path: '/notification.Notification/markUserNotification',
277
+ requestStream: false,
278
+ responseStream: false,
279
+ requestType: notification_pb.NotificationSearchRequest,
280
+ responseType: notification_pb.NotificationStatusResponse,
281
+ requestSerialize: serialize_notification_NotificationSearchRequest,
282
+ requestDeserialize: deserialize_notification_NotificationSearchRequest,
283
+ responseSerialize: serialize_notification_NotificationStatusResponse,
284
+ responseDeserialize: deserialize_notification_NotificationStatusResponse,
285
+ },
275
286
  };
276
287
 
277
288
  exports.NotificationClient = grpc.makeGenericClientConstructor(NotificationService);
@@ -112,7 +112,7 @@ if (goog.DEBUG && !COMPILED) {
112
112
  * @constructor
113
113
  */
114
114
  proto.notification.NotificationSearchRequest = function(opt_data) {
115
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
115
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.notification.NotificationSearchRequest.repeatedFields_, null);
116
116
  };
117
117
  goog.inherits(proto.notification.NotificationSearchRequest, jspb.Message);
118
118
  if (goog.DEBUG && !COMPILED) {
@@ -918,6 +918,13 @@ proto.notification.PaginationRequest.prototype.hasUserSearchParams = function()
918
918
 
919
919
 
920
920
 
921
+ /**
922
+ * List of repeated fields within this message type.
923
+ * @private {!Array<number>}
924
+ * @const
925
+ */
926
+ proto.notification.NotificationSearchRequest.repeatedFields_ = [4];
927
+
921
928
 
922
929
 
923
930
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -951,7 +958,8 @@ proto.notification.NotificationSearchRequest.toObject = function(includeInstance
951
958
  var f, obj = {
952
959
  notificationId: jspb.Message.getFieldWithDefault(msg, 1, 0),
953
960
  userId: jspb.Message.getFieldWithDefault(msg, 2, 0),
954
- notificationTitle: jspb.Message.getFieldWithDefault(msg, 3, "")
961
+ notificationTitle: jspb.Message.getFieldWithDefault(msg, 3, ""),
962
+ notificationIdsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f
955
963
  };
956
964
 
957
965
  if (includeInstance) {
@@ -1000,6 +1008,12 @@ proto.notification.NotificationSearchRequest.deserializeBinaryFromReader = funct
1000
1008
  var value = /** @type {string} */ (reader.readString());
1001
1009
  msg.setNotificationTitle(value);
1002
1010
  break;
1011
+ case 4:
1012
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
1013
+ for (var i = 0; i < values.length; i++) {
1014
+ msg.addNotificationIds(values[i]);
1015
+ }
1016
+ break;
1003
1017
  default:
1004
1018
  reader.skipField();
1005
1019
  break;
@@ -1050,6 +1064,13 @@ proto.notification.NotificationSearchRequest.serializeBinaryToWriter = function(
1050
1064
  f
1051
1065
  );
1052
1066
  }
1067
+ f = message.getNotificationIdsList();
1068
+ if (f.length > 0) {
1069
+ writer.writePackedInt32(
1070
+ 4,
1071
+ f
1072
+ );
1073
+ }
1053
1074
  };
1054
1075
 
1055
1076
 
@@ -1161,6 +1182,43 @@ proto.notification.NotificationSearchRequest.prototype.hasNotificationTitle = fu
1161
1182
  };
1162
1183
 
1163
1184
 
1185
+ /**
1186
+ * repeated int32 notification_ids = 4;
1187
+ * @return {!Array<number>}
1188
+ */
1189
+ proto.notification.NotificationSearchRequest.prototype.getNotificationIdsList = function() {
1190
+ return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 4));
1191
+ };
1192
+
1193
+
1194
+ /**
1195
+ * @param {!Array<number>} value
1196
+ * @return {!proto.notification.NotificationSearchRequest} returns this
1197
+ */
1198
+ proto.notification.NotificationSearchRequest.prototype.setNotificationIdsList = function(value) {
1199
+ return jspb.Message.setField(this, 4, value || []);
1200
+ };
1201
+
1202
+
1203
+ /**
1204
+ * @param {number} value
1205
+ * @param {number=} opt_index
1206
+ * @return {!proto.notification.NotificationSearchRequest} returns this
1207
+ */
1208
+ proto.notification.NotificationSearchRequest.prototype.addNotificationIds = function(value, opt_index) {
1209
+ return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
1210
+ };
1211
+
1212
+
1213
+ /**
1214
+ * Clears the list making it empty but non-null.
1215
+ * @return {!proto.notification.NotificationSearchRequest} returns this
1216
+ */
1217
+ proto.notification.NotificationSearchRequest.prototype.clearNotificationIdsList = function() {
1218
+ return this.setNotificationIdsList([]);
1219
+ };
1220
+
1221
+
1164
1222
 
1165
1223
 
1166
1224
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.0.195",
3
+ "version": "1.0.197",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {