protobuf-platform 1.2.368 → 1.2.369

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/bonus/bonus.proto CHANGED
@@ -353,6 +353,8 @@ message DepositEligibleUserBonusItem {
353
353
  // Display/validity
354
354
  optional string activation_until = 9;
355
355
  repeated DepositEligibleUserBonusRewardItem rewards = 10;
356
+ optional string mobile_image = 11; // file name / relative path
357
+ optional string mobile_image_cdn = 12; // absolute CDN URL
356
358
  }
357
359
  message GetActiveWageringUserBonusesRequest {
358
360
  int32 user_id = 1;
package/bonus/bonus_pb.js CHANGED
@@ -15012,7 +15012,9 @@ proto.bonus.DepositEligibleUserBonusItem.toObject = function(includeInstance, ms
15012
15012
  numberOfDeposit: jspb.Message.getFieldWithDefault(msg, 8, 0),
15013
15013
  activationUntil: jspb.Message.getFieldWithDefault(msg, 9, ""),
15014
15014
  rewardsList: jspb.Message.toObjectList(msg.getRewardsList(),
15015
- proto.bonus.DepositEligibleUserBonusRewardItem.toObject, includeInstance)
15015
+ proto.bonus.DepositEligibleUserBonusRewardItem.toObject, includeInstance),
15016
+ mobileImage: jspb.Message.getFieldWithDefault(msg, 11, ""),
15017
+ mobileImageCdn: jspb.Message.getFieldWithDefault(msg, 12, "")
15016
15018
  };
15017
15019
 
15018
15020
  if (includeInstance) {
@@ -15090,6 +15092,14 @@ proto.bonus.DepositEligibleUserBonusItem.deserializeBinaryFromReader = function(
15090
15092
  reader.readMessage(value,proto.bonus.DepositEligibleUserBonusRewardItem.deserializeBinaryFromReader);
15091
15093
  msg.addRewards(value);
15092
15094
  break;
15095
+ case 11:
15096
+ var value = /** @type {string} */ (reader.readString());
15097
+ msg.setMobileImage(value);
15098
+ break;
15099
+ case 12:
15100
+ var value = /** @type {string} */ (reader.readString());
15101
+ msg.setMobileImageCdn(value);
15102
+ break;
15093
15103
  default:
15094
15104
  reader.skipField();
15095
15105
  break;
@@ -15190,6 +15200,20 @@ proto.bonus.DepositEligibleUserBonusItem.serializeBinaryToWriter = function(mess
15190
15200
  proto.bonus.DepositEligibleUserBonusRewardItem.serializeBinaryToWriter
15191
15201
  );
15192
15202
  }
15203
+ f = /** @type {string} */ (jspb.Message.getField(message, 11));
15204
+ if (f != null) {
15205
+ writer.writeString(
15206
+ 11,
15207
+ f
15208
+ );
15209
+ }
15210
+ f = /** @type {string} */ (jspb.Message.getField(message, 12));
15211
+ if (f != null) {
15212
+ writer.writeString(
15213
+ 12,
15214
+ f
15215
+ );
15216
+ }
15193
15217
  };
15194
15218
 
15195
15219
 
@@ -15537,6 +15561,78 @@ proto.bonus.DepositEligibleUserBonusItem.prototype.clearRewardsList = function()
15537
15561
  };
15538
15562
 
15539
15563
 
15564
+ /**
15565
+ * optional string mobile_image = 11;
15566
+ * @return {string}
15567
+ */
15568
+ proto.bonus.DepositEligibleUserBonusItem.prototype.getMobileImage = function() {
15569
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
15570
+ };
15571
+
15572
+
15573
+ /**
15574
+ * @param {string} value
15575
+ * @return {!proto.bonus.DepositEligibleUserBonusItem} returns this
15576
+ */
15577
+ proto.bonus.DepositEligibleUserBonusItem.prototype.setMobileImage = function(value) {
15578
+ return jspb.Message.setField(this, 11, value);
15579
+ };
15580
+
15581
+
15582
+ /**
15583
+ * Clears the field making it undefined.
15584
+ * @return {!proto.bonus.DepositEligibleUserBonusItem} returns this
15585
+ */
15586
+ proto.bonus.DepositEligibleUserBonusItem.prototype.clearMobileImage = function() {
15587
+ return jspb.Message.setField(this, 11, undefined);
15588
+ };
15589
+
15590
+
15591
+ /**
15592
+ * Returns whether this field is set.
15593
+ * @return {boolean}
15594
+ */
15595
+ proto.bonus.DepositEligibleUserBonusItem.prototype.hasMobileImage = function() {
15596
+ return jspb.Message.getField(this, 11) != null;
15597
+ };
15598
+
15599
+
15600
+ /**
15601
+ * optional string mobile_image_cdn = 12;
15602
+ * @return {string}
15603
+ */
15604
+ proto.bonus.DepositEligibleUserBonusItem.prototype.getMobileImageCdn = function() {
15605
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
15606
+ };
15607
+
15608
+
15609
+ /**
15610
+ * @param {string} value
15611
+ * @return {!proto.bonus.DepositEligibleUserBonusItem} returns this
15612
+ */
15613
+ proto.bonus.DepositEligibleUserBonusItem.prototype.setMobileImageCdn = function(value) {
15614
+ return jspb.Message.setField(this, 12, value);
15615
+ };
15616
+
15617
+
15618
+ /**
15619
+ * Clears the field making it undefined.
15620
+ * @return {!proto.bonus.DepositEligibleUserBonusItem} returns this
15621
+ */
15622
+ proto.bonus.DepositEligibleUserBonusItem.prototype.clearMobileImageCdn = function() {
15623
+ return jspb.Message.setField(this, 12, undefined);
15624
+ };
15625
+
15626
+
15627
+ /**
15628
+ * Returns whether this field is set.
15629
+ * @return {boolean}
15630
+ */
15631
+ proto.bonus.DepositEligibleUserBonusItem.prototype.hasMobileImageCdn = function() {
15632
+ return jspb.Message.getField(this, 12) != null;
15633
+ };
15634
+
15635
+
15540
15636
 
15541
15637
 
15542
15638
 
@@ -6,12 +6,17 @@ service Notification {
6
6
  rpc checkConnection(PingRequest) returns (PongResponse);
7
7
  rpc getMediaResource(GetFileRequest) returns (stream File);
8
8
  //Notifications
9
- rpc createSingleNotification(NotificationRequest) returns (NotificationResponse);
9
+ rpc createSingleNotification(stream NotificationRequest) returns (NotificationResponse);
10
10
  rpc readSingleNotification(GetNotificationRequest) returns (NotificationResponse);
11
- rpc updateSingleNotification(NotificationRequest) returns (NotificationResponse);
11
+ rpc updateSingleNotification(stream NotificationRequest) returns (NotificationResponse);
12
12
  rpc deleteSingleNotification(GetNotificationRequest) returns (NotificationStatusResponse);
13
13
  rpc readListNotifications(PaginationRequest) returns (NotificationItemsResponse);
14
14
  rpc updateNotificationsInBunch(ItemsBunchRequest) returns (NotificationStatusResponse);
15
+ rpc setNotificationTranslation(NotificationTranslationRequest) returns (NotificationStatusResponse);
16
+ rpc getNotificationTranslation(GetNotificationTranslationRequest) returns (NotificationTranslationResponse);
17
+ rpc getNotificationAutoTriggers(PaginationRequest) returns (NotificationStringListResponse);
18
+ rpc getNotificationCategories(PaginationRequest) returns (NotificationStringListResponse);
19
+ rpc getNotificationPlaceholders(PaginationRequest) returns (NotificationStringListResponse);
15
20
  // === MailTemplates (email) ===
16
21
  rpc createSingleMailTemplate(stream MailTemplateChunk) returns (MailTemplateResponse);
17
22
  rpc readSingleMailTemplate(GetMailTemplateRequest) returns (MailTemplateResponse);
@@ -49,6 +54,9 @@ message NotificationSearchRequest {
49
54
  repeated int32 notification_ids = 4;
50
55
  optional string type = 5;
51
56
  optional int32 is_active = 6;
57
+ optional string category = 7;
58
+ optional string trigger = 8;
59
+ optional string search = 9;
52
60
  }
53
61
  message UserSearchRequest {
54
62
  int32 user_id = 1;
@@ -61,17 +69,29 @@ message ItemsBunchRequest {
61
69
  optional int32 is_active = 2;
62
70
  }
63
71
  //Media
64
- message File { bytes media = 1; }
72
+ message File {
73
+ bytes media = 1;
74
+ optional string file_role = 2;
75
+ }
65
76
  message GetFileRequest { string file_name = 1; string instance_type = 2; }
66
77
 
67
78
  //Notification
68
- message NotificationRequest {
79
+ message NotificationItemRequest {
69
80
  optional int32 id = 1;
70
81
  optional string title = 2;
71
82
  optional string content = 3;
72
83
  optional string type = 4;
73
84
  optional string trigger = 5;
74
85
  optional int32 is_active = 6;
86
+ optional string category = 7;
87
+ optional string desktop_image = 8;
88
+ optional string mobile_image = 9;
89
+ }
90
+ message NotificationRequest {
91
+ oneof request {
92
+ NotificationItemRequest notification_data = 1;
93
+ File file = 2;
94
+ }
75
95
  }
76
96
  message GetNotificationRequest {
77
97
  int32 id = 1;
@@ -103,6 +123,11 @@ message NotificationItem {
103
123
  string type = 5;
104
124
  string trigger = 6;
105
125
  optional string created = 7;
126
+ optional string category = 8;
127
+ optional string desktop_image = 9;
128
+ optional string desktop_image_cdn = 10;
129
+ optional string mobile_image = 11;
130
+ optional string mobile_image_cdn = 12;
106
131
  }
107
132
  message NotificationResponse {
108
133
  NotificationItem data = 1;
@@ -112,6 +137,26 @@ message NotificationItemsResponse {
112
137
  optional int32 total_pages = 2;
113
138
  optional int32 total_items = 3;
114
139
  }
140
+ message NotificationTranslationRequest {
141
+ optional int32 notification_id = 1;
142
+ optional string locale = 2;
143
+ optional string title = 3;
144
+ optional string content = 4;
145
+ optional int32 is_active = 5;
146
+ }
147
+ message GetNotificationTranslationRequest {
148
+ int32 notification_id = 1;
149
+ string locale = 2;
150
+ }
151
+ message NotificationTranslationResponse {
152
+ optional string title = 1;
153
+ optional string content = 2;
154
+ optional int32 is_active = 3;
155
+ optional string locale = 4;
156
+ }
157
+ message NotificationStringListResponse {
158
+ repeated string items = 1;
159
+ }
115
160
  message UserNotificationsCountResponse {
116
161
  int32 count = 1;
117
162
  }
@@ -202,4 +247,4 @@ message MailTemplateTranslationResponse {
202
247
  optional string content = 2;
203
248
  optional int32 is_active = 3;
204
249
  optional string locale = 4;
205
- }
250
+ }
@@ -81,6 +81,17 @@ function deserialize_notification_GetNotificationRequest(buffer_arg) {
81
81
  return notification_pb.GetNotificationRequest.deserializeBinary(new Uint8Array(buffer_arg));
82
82
  }
83
83
 
84
+ function serialize_notification_GetNotificationTranslationRequest(arg) {
85
+ if (!(arg instanceof notification_pb.GetNotificationTranslationRequest)) {
86
+ throw new Error('Expected argument of type notification.GetNotificationTranslationRequest');
87
+ }
88
+ return Buffer.from(arg.serializeBinary());
89
+ }
90
+
91
+ function deserialize_notification_GetNotificationTranslationRequest(buffer_arg) {
92
+ return notification_pb.GetNotificationTranslationRequest.deserializeBinary(new Uint8Array(buffer_arg));
93
+ }
94
+
84
95
  function serialize_notification_ItemsBunchRequest(arg) {
85
96
  if (!(arg instanceof notification_pb.ItemsBunchRequest)) {
86
97
  throw new Error('Expected argument of type notification.ItemsBunchRequest');
@@ -224,6 +235,39 @@ function deserialize_notification_NotificationStatusResponse(buffer_arg) {
224
235
  return notification_pb.NotificationStatusResponse.deserializeBinary(new Uint8Array(buffer_arg));
225
236
  }
226
237
 
238
+ function serialize_notification_NotificationStringListResponse(arg) {
239
+ if (!(arg instanceof notification_pb.NotificationStringListResponse)) {
240
+ throw new Error('Expected argument of type notification.NotificationStringListResponse');
241
+ }
242
+ return Buffer.from(arg.serializeBinary());
243
+ }
244
+
245
+ function deserialize_notification_NotificationStringListResponse(buffer_arg) {
246
+ return notification_pb.NotificationStringListResponse.deserializeBinary(new Uint8Array(buffer_arg));
247
+ }
248
+
249
+ function serialize_notification_NotificationTranslationRequest(arg) {
250
+ if (!(arg instanceof notification_pb.NotificationTranslationRequest)) {
251
+ throw new Error('Expected argument of type notification.NotificationTranslationRequest');
252
+ }
253
+ return Buffer.from(arg.serializeBinary());
254
+ }
255
+
256
+ function deserialize_notification_NotificationTranslationRequest(buffer_arg) {
257
+ return notification_pb.NotificationTranslationRequest.deserializeBinary(new Uint8Array(buffer_arg));
258
+ }
259
+
260
+ function serialize_notification_NotificationTranslationResponse(arg) {
261
+ if (!(arg instanceof notification_pb.NotificationTranslationResponse)) {
262
+ throw new Error('Expected argument of type notification.NotificationTranslationResponse');
263
+ }
264
+ return Buffer.from(arg.serializeBinary());
265
+ }
266
+
267
+ function deserialize_notification_NotificationTranslationResponse(buffer_arg) {
268
+ return notification_pb.NotificationTranslationResponse.deserializeBinary(new Uint8Array(buffer_arg));
269
+ }
270
+
227
271
  function serialize_notification_PaginationRequest(arg) {
228
272
  if (!(arg instanceof notification_pb.PaginationRequest)) {
229
273
  throw new Error('Expected argument of type notification.PaginationRequest');
@@ -328,7 +372,7 @@ var NotificationService = exports.NotificationService = {
328
372
  // Notifications
329
373
  createSingleNotification: {
330
374
  path: '/notification.Notification/createSingleNotification',
331
- requestStream: false,
375
+ requestStream: true,
332
376
  responseStream: false,
333
377
  requestType: notification_pb.NotificationRequest,
334
378
  responseType: notification_pb.NotificationResponse,
@@ -350,7 +394,7 @@ createSingleNotification: {
350
394
  },
351
395
  updateSingleNotification: {
352
396
  path: '/notification.Notification/updateSingleNotification',
353
- requestStream: false,
397
+ requestStream: true,
354
398
  responseStream: false,
355
399
  requestType: notification_pb.NotificationRequest,
356
400
  responseType: notification_pb.NotificationResponse,
@@ -392,6 +436,61 @@ createSingleNotification: {
392
436
  responseSerialize: serialize_notification_NotificationStatusResponse,
393
437
  responseDeserialize: deserialize_notification_NotificationStatusResponse,
394
438
  },
439
+ setNotificationTranslation: {
440
+ path: '/notification.Notification/setNotificationTranslation',
441
+ requestStream: false,
442
+ responseStream: false,
443
+ requestType: notification_pb.NotificationTranslationRequest,
444
+ responseType: notification_pb.NotificationStatusResponse,
445
+ requestSerialize: serialize_notification_NotificationTranslationRequest,
446
+ requestDeserialize: deserialize_notification_NotificationTranslationRequest,
447
+ responseSerialize: serialize_notification_NotificationStatusResponse,
448
+ responseDeserialize: deserialize_notification_NotificationStatusResponse,
449
+ },
450
+ getNotificationTranslation: {
451
+ path: '/notification.Notification/getNotificationTranslation',
452
+ requestStream: false,
453
+ responseStream: false,
454
+ requestType: notification_pb.GetNotificationTranslationRequest,
455
+ responseType: notification_pb.NotificationTranslationResponse,
456
+ requestSerialize: serialize_notification_GetNotificationTranslationRequest,
457
+ requestDeserialize: deserialize_notification_GetNotificationTranslationRequest,
458
+ responseSerialize: serialize_notification_NotificationTranslationResponse,
459
+ responseDeserialize: deserialize_notification_NotificationTranslationResponse,
460
+ },
461
+ getNotificationAutoTriggers: {
462
+ path: '/notification.Notification/getNotificationAutoTriggers',
463
+ requestStream: false,
464
+ responseStream: false,
465
+ requestType: notification_pb.PaginationRequest,
466
+ responseType: notification_pb.NotificationStringListResponse,
467
+ requestSerialize: serialize_notification_PaginationRequest,
468
+ requestDeserialize: deserialize_notification_PaginationRequest,
469
+ responseSerialize: serialize_notification_NotificationStringListResponse,
470
+ responseDeserialize: deserialize_notification_NotificationStringListResponse,
471
+ },
472
+ getNotificationCategories: {
473
+ path: '/notification.Notification/getNotificationCategories',
474
+ requestStream: false,
475
+ responseStream: false,
476
+ requestType: notification_pb.PaginationRequest,
477
+ responseType: notification_pb.NotificationStringListResponse,
478
+ requestSerialize: serialize_notification_PaginationRequest,
479
+ requestDeserialize: deserialize_notification_PaginationRequest,
480
+ responseSerialize: serialize_notification_NotificationStringListResponse,
481
+ responseDeserialize: deserialize_notification_NotificationStringListResponse,
482
+ },
483
+ getNotificationPlaceholders: {
484
+ path: '/notification.Notification/getNotificationPlaceholders',
485
+ requestStream: false,
486
+ responseStream: false,
487
+ requestType: notification_pb.PaginationRequest,
488
+ responseType: notification_pb.NotificationStringListResponse,
489
+ requestSerialize: serialize_notification_PaginationRequest,
490
+ requestDeserialize: deserialize_notification_PaginationRequest,
491
+ responseSerialize: serialize_notification_NotificationStringListResponse,
492
+ responseDeserialize: deserialize_notification_NotificationStringListResponse,
493
+ },
395
494
  // === MailTemplates (email) ===
396
495
  createSingleMailTemplate: {
397
496
  path: '/notification.Notification/createSingleMailTemplate',