protobuf-platform 1.2.367 → 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
@@ -264,6 +264,7 @@ message UserBonusItem {
264
264
  optional float reward_free_bet = 28;
265
265
  optional string closed_at = 29;
266
266
  optional string history_type = 30;
267
+ optional bool can_activate = 31;
267
268
  }
268
269
  message FreeSpinItem {
269
270
  int32 game_id = 1;
@@ -352,6 +353,8 @@ message DepositEligibleUserBonusItem {
352
353
  // Display/validity
353
354
  optional string activation_until = 9;
354
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
355
358
  }
356
359
  message GetActiveWageringUserBonusesRequest {
357
360
  int32 user_id = 1;
package/bonus/bonus_pb.js CHANGED
@@ -10063,7 +10063,8 @@ proto.bonus.UserBonusItem.toObject = function(includeInstance, msg) {
10063
10063
  statusFreeBet: jspb.Message.getFieldWithDefault(msg, 27, ""),
10064
10064
  rewardFreeBet: jspb.Message.getFloatingPointFieldWithDefault(msg, 28, 0.0),
10065
10065
  closedAt: jspb.Message.getFieldWithDefault(msg, 29, ""),
10066
- historyType: jspb.Message.getFieldWithDefault(msg, 30, "")
10066
+ historyType: jspb.Message.getFieldWithDefault(msg, 30, ""),
10067
+ canActivate: jspb.Message.getBooleanFieldWithDefault(msg, 31, false)
10067
10068
  };
10068
10069
 
10069
10070
  if (includeInstance) {
@@ -10222,6 +10223,10 @@ proto.bonus.UserBonusItem.deserializeBinaryFromReader = function(msg, reader) {
10222
10223
  var value = /** @type {string} */ (reader.readString());
10223
10224
  msg.setHistoryType(value);
10224
10225
  break;
10226
+ case 31:
10227
+ var value = /** @type {boolean} */ (reader.readBool());
10228
+ msg.setCanActivate(value);
10229
+ break;
10225
10230
  default:
10226
10231
  reader.skipField();
10227
10232
  break;
@@ -10463,6 +10468,13 @@ proto.bonus.UserBonusItem.serializeBinaryToWriter = function(message, writer) {
10463
10468
  f
10464
10469
  );
10465
10470
  }
10471
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 31));
10472
+ if (f != null) {
10473
+ writer.writeBool(
10474
+ 31,
10475
+ f
10476
+ );
10477
+ }
10466
10478
  };
10467
10479
 
10468
10480
 
@@ -11549,6 +11561,42 @@ proto.bonus.UserBonusItem.prototype.hasHistoryType = function() {
11549
11561
  };
11550
11562
 
11551
11563
 
11564
+ /**
11565
+ * optional bool can_activate = 31;
11566
+ * @return {boolean}
11567
+ */
11568
+ proto.bonus.UserBonusItem.prototype.getCanActivate = function() {
11569
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 31, false));
11570
+ };
11571
+
11572
+
11573
+ /**
11574
+ * @param {boolean} value
11575
+ * @return {!proto.bonus.UserBonusItem} returns this
11576
+ */
11577
+ proto.bonus.UserBonusItem.prototype.setCanActivate = function(value) {
11578
+ return jspb.Message.setField(this, 31, value);
11579
+ };
11580
+
11581
+
11582
+ /**
11583
+ * Clears the field making it undefined.
11584
+ * @return {!proto.bonus.UserBonusItem} returns this
11585
+ */
11586
+ proto.bonus.UserBonusItem.prototype.clearCanActivate = function() {
11587
+ return jspb.Message.setField(this, 31, undefined);
11588
+ };
11589
+
11590
+
11591
+ /**
11592
+ * Returns whether this field is set.
11593
+ * @return {boolean}
11594
+ */
11595
+ proto.bonus.UserBonusItem.prototype.hasCanActivate = function() {
11596
+ return jspb.Message.getField(this, 31) != null;
11597
+ };
11598
+
11599
+
11552
11600
 
11553
11601
 
11554
11602
 
@@ -14964,7 +15012,9 @@ proto.bonus.DepositEligibleUserBonusItem.toObject = function(includeInstance, ms
14964
15012
  numberOfDeposit: jspb.Message.getFieldWithDefault(msg, 8, 0),
14965
15013
  activationUntil: jspb.Message.getFieldWithDefault(msg, 9, ""),
14966
15014
  rewardsList: jspb.Message.toObjectList(msg.getRewardsList(),
14967
- 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, "")
14968
15018
  };
14969
15019
 
14970
15020
  if (includeInstance) {
@@ -15042,6 +15092,14 @@ proto.bonus.DepositEligibleUserBonusItem.deserializeBinaryFromReader = function(
15042
15092
  reader.readMessage(value,proto.bonus.DepositEligibleUserBonusRewardItem.deserializeBinaryFromReader);
15043
15093
  msg.addRewards(value);
15044
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;
15045
15103
  default:
15046
15104
  reader.skipField();
15047
15105
  break;
@@ -15142,6 +15200,20 @@ proto.bonus.DepositEligibleUserBonusItem.serializeBinaryToWriter = function(mess
15142
15200
  proto.bonus.DepositEligibleUserBonusRewardItem.serializeBinaryToWriter
15143
15201
  );
15144
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
+ }
15145
15217
  };
15146
15218
 
15147
15219
 
@@ -15489,6 +15561,78 @@ proto.bonus.DepositEligibleUserBonusItem.prototype.clearRewardsList = function()
15489
15561
  };
15490
15562
 
15491
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
+
15492
15636
 
15493
15637
 
15494
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',