protobuf-platform 1.2.604 → 1.2.608

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.
@@ -38,6 +38,9 @@ service Notification {
38
38
  rpc readAllUserNotifications(ReadAllUserNotificationsRequest) returns (UserNotificationsCountResponse);
39
39
  rpc deleteAllUserNotifications(DeleteAllUserNotificationsRequest) returns (NotificationStatusResponse);
40
40
  rpc deleteUserNotificationById(DeleteUserNotificationByIdRequest) returns (NotificationStatusResponse);
41
+ // === Gamixter (internal) ===
42
+ rpc fireGamixterTrigger(FireGamixterTriggerRequest) returns (NotificationStatusResponse);
43
+ rpc processGamixterBonusAwardedWebhook(ProcessGamixterBonusAwardedWebhookRequest) returns (NotificationStatusResponse);
41
44
  }
42
45
 
43
46
  message PingRequest { string ping = 1; }
@@ -313,3 +316,18 @@ message MailTemplateTranslationResponse {
313
316
  optional int32 is_active = 3;
314
317
  optional string locale = 4;
315
318
  }
319
+
320
+ /* ===== Gamixter (internal) ===== */
321
+
322
+ message FireGamixterTriggerRequest {
323
+ string user_public_id = 1;
324
+ int32 trigger_id = 2;
325
+ }
326
+
327
+ message ProcessGamixterBonusAwardedWebhookRequest {
328
+ // Internal webhook processing only; not for public client APIs.
329
+ string raw_body = 1;
330
+ string x_request_sign = 2;
331
+ optional string x_signature = 3;
332
+ optional string correlation_id = 4;
333
+ }
@@ -48,6 +48,17 @@ function deserialize_notification_File(buffer_arg) {
48
48
  return notification_pb.File.deserializeBinary(new Uint8Array(buffer_arg));
49
49
  }
50
50
 
51
+ function serialize_notification_FireGamixterTriggerRequest(arg) {
52
+ if (!(arg instanceof notification_pb.FireGamixterTriggerRequest)) {
53
+ throw new Error('Expected argument of type notification.FireGamixterTriggerRequest');
54
+ }
55
+ return Buffer.from(arg.serializeBinary());
56
+ }
57
+
58
+ function deserialize_notification_FireGamixterTriggerRequest(buffer_arg) {
59
+ return notification_pb.FireGamixterTriggerRequest.deserializeBinary(new Uint8Array(buffer_arg));
60
+ }
61
+
51
62
  function serialize_notification_GetFileRequest(arg) {
52
63
  if (!(arg instanceof notification_pb.GetFileRequest)) {
53
64
  throw new Error('Expected argument of type notification.GetFileRequest');
@@ -323,6 +334,17 @@ function deserialize_notification_PongResponse(buffer_arg) {
323
334
  return notification_pb.PongResponse.deserializeBinary(new Uint8Array(buffer_arg));
324
335
  }
325
336
 
337
+ function serialize_notification_ProcessGamixterBonusAwardedWebhookRequest(arg) {
338
+ if (!(arg instanceof notification_pb.ProcessGamixterBonusAwardedWebhookRequest)) {
339
+ throw new Error('Expected argument of type notification.ProcessGamixterBonusAwardedWebhookRequest');
340
+ }
341
+ return Buffer.from(arg.serializeBinary());
342
+ }
343
+
344
+ function deserialize_notification_ProcessGamixterBonusAwardedWebhookRequest(buffer_arg) {
345
+ return notification_pb.ProcessGamixterBonusAwardedWebhookRequest.deserializeBinary(new Uint8Array(buffer_arg));
346
+ }
347
+
326
348
  function serialize_notification_ReadAllUserNotificationsRequest(arg) {
327
349
  if (!(arg instanceof notification_pb.ReadAllUserNotificationsRequest)) {
328
350
  throw new Error('Expected argument of type notification.ReadAllUserNotificationsRequest');
@@ -746,6 +768,29 @@ sendNotificationToUsers: {
746
768
  responseSerialize: serialize_notification_NotificationStatusResponse,
747
769
  responseDeserialize: deserialize_notification_NotificationStatusResponse,
748
770
  },
771
+ // === Gamixter (internal) ===
772
+ fireGamixterTrigger: {
773
+ path: '/notification.Notification/fireGamixterTrigger',
774
+ requestStream: false,
775
+ responseStream: false,
776
+ requestType: notification_pb.FireGamixterTriggerRequest,
777
+ responseType: notification_pb.NotificationStatusResponse,
778
+ requestSerialize: serialize_notification_FireGamixterTriggerRequest,
779
+ requestDeserialize: deserialize_notification_FireGamixterTriggerRequest,
780
+ responseSerialize: serialize_notification_NotificationStatusResponse,
781
+ responseDeserialize: deserialize_notification_NotificationStatusResponse,
782
+ },
783
+ processGamixterBonusAwardedWebhook: {
784
+ path: '/notification.Notification/processGamixterBonusAwardedWebhook',
785
+ requestStream: false,
786
+ responseStream: false,
787
+ requestType: notification_pb.ProcessGamixterBonusAwardedWebhookRequest,
788
+ responseType: notification_pb.NotificationStatusResponse,
789
+ requestSerialize: serialize_notification_ProcessGamixterBonusAwardedWebhookRequest,
790
+ requestDeserialize: deserialize_notification_ProcessGamixterBonusAwardedWebhookRequest,
791
+ responseSerialize: serialize_notification_NotificationStatusResponse,
792
+ responseDeserialize: deserialize_notification_NotificationStatusResponse,
793
+ },
749
794
  };
750
795
 
751
796
  exports.NotificationClient = grpc.makeGenericClientConstructor(NotificationService, 'Notification');
@@ -25,6 +25,7 @@ goog.exportSymbol('proto.notification.DeleteAllUserNotificationsRequest', null,
25
25
  goog.exportSymbol('proto.notification.DeleteUserNotificationByIdRequest', null, global);
26
26
  goog.exportSymbol('proto.notification.DispatchManualNotificationRequest', null, global);
27
27
  goog.exportSymbol('proto.notification.File', null, global);
28
+ goog.exportSymbol('proto.notification.FireGamixterTriggerRequest', null, global);
28
29
  goog.exportSymbol('proto.notification.GetFileRequest', null, global);
29
30
  goog.exportSymbol('proto.notification.GetMailTemplateRequest', null, global);
30
31
  goog.exportSymbol('proto.notification.GetMailTemplateTranslationRequest', null, global);
@@ -59,6 +60,7 @@ goog.exportSymbol('proto.notification.NotificationTranslationResponse', null, gl
59
60
  goog.exportSymbol('proto.notification.PaginationRequest', null, global);
60
61
  goog.exportSymbol('proto.notification.PingRequest', null, global);
61
62
  goog.exportSymbol('proto.notification.PongResponse', null, global);
63
+ goog.exportSymbol('proto.notification.ProcessGamixterBonusAwardedWebhookRequest', null, global);
62
64
  goog.exportSymbol('proto.notification.ReadAllUserNotificationsRequest', null, global);
63
65
  goog.exportSymbol('proto.notification.SendNotificationRequest', null, global);
64
66
  goog.exportSymbol('proto.notification.SendSmsRequest', null, global);
@@ -991,6 +993,48 @@ if (goog.DEBUG && !COMPILED) {
991
993
  */
992
994
  proto.notification.MailTemplateTranslationResponse.displayName = 'proto.notification.MailTemplateTranslationResponse';
993
995
  }
996
+ /**
997
+ * Generated by JsPbCodeGenerator.
998
+ * @param {Array=} opt_data Optional initial data array, typically from a
999
+ * server response, or constructed directly in Javascript. The array is used
1000
+ * in place and becomes part of the constructed object. It is not cloned.
1001
+ * If no data is provided, the constructed object will be empty, but still
1002
+ * valid.
1003
+ * @extends {jspb.Message}
1004
+ * @constructor
1005
+ */
1006
+ proto.notification.FireGamixterTriggerRequest = function(opt_data) {
1007
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1008
+ };
1009
+ goog.inherits(proto.notification.FireGamixterTriggerRequest, jspb.Message);
1010
+ if (goog.DEBUG && !COMPILED) {
1011
+ /**
1012
+ * @public
1013
+ * @override
1014
+ */
1015
+ proto.notification.FireGamixterTriggerRequest.displayName = 'proto.notification.FireGamixterTriggerRequest';
1016
+ }
1017
+ /**
1018
+ * Generated by JsPbCodeGenerator.
1019
+ * @param {Array=} opt_data Optional initial data array, typically from a
1020
+ * server response, or constructed directly in Javascript. The array is used
1021
+ * in place and becomes part of the constructed object. It is not cloned.
1022
+ * If no data is provided, the constructed object will be empty, but still
1023
+ * valid.
1024
+ * @extends {jspb.Message}
1025
+ * @constructor
1026
+ */
1027
+ proto.notification.ProcessGamixterBonusAwardedWebhookRequest = function(opt_data) {
1028
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1029
+ };
1030
+ goog.inherits(proto.notification.ProcessGamixterBonusAwardedWebhookRequest, jspb.Message);
1031
+ if (goog.DEBUG && !COMPILED) {
1032
+ /**
1033
+ * @public
1034
+ * @override
1035
+ */
1036
+ proto.notification.ProcessGamixterBonusAwardedWebhookRequest.displayName = 'proto.notification.ProcessGamixterBonusAwardedWebhookRequest';
1037
+ }
994
1038
 
995
1039
 
996
1040
 
@@ -13275,4 +13319,420 @@ proto.notification.MailTemplateTranslationResponse.prototype.hasLocale = functio
13275
13319
  };
13276
13320
 
13277
13321
 
13322
+
13323
+
13324
+
13325
+ if (jspb.Message.GENERATE_TO_OBJECT) {
13326
+ /**
13327
+ * Creates an object representation of this proto.
13328
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
13329
+ * Optional fields that are not set will be set to undefined.
13330
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
13331
+ * For the list of reserved names please see:
13332
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
13333
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
13334
+ * JSPB instance for transitional soy proto support:
13335
+ * http://goto/soy-param-migration
13336
+ * @return {!Object}
13337
+ */
13338
+ proto.notification.FireGamixterTriggerRequest.prototype.toObject = function(opt_includeInstance) {
13339
+ return proto.notification.FireGamixterTriggerRequest.toObject(opt_includeInstance, this);
13340
+ };
13341
+
13342
+
13343
+ /**
13344
+ * Static version of the {@see toObject} method.
13345
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
13346
+ * the JSPB instance for transitional soy proto support:
13347
+ * http://goto/soy-param-migration
13348
+ * @param {!proto.notification.FireGamixterTriggerRequest} msg The msg instance to transform.
13349
+ * @return {!Object}
13350
+ * @suppress {unusedLocalVariables} f is only used for nested messages
13351
+ */
13352
+ proto.notification.FireGamixterTriggerRequest.toObject = function(includeInstance, msg) {
13353
+ var f, obj = {
13354
+ userPublicId: jspb.Message.getFieldWithDefault(msg, 1, ""),
13355
+ triggerId: jspb.Message.getFieldWithDefault(msg, 2, 0)
13356
+ };
13357
+
13358
+ if (includeInstance) {
13359
+ obj.$jspbMessageInstance = msg;
13360
+ }
13361
+ return obj;
13362
+ };
13363
+ }
13364
+
13365
+
13366
+ /**
13367
+ * Deserializes binary data (in protobuf wire format).
13368
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
13369
+ * @return {!proto.notification.FireGamixterTriggerRequest}
13370
+ */
13371
+ proto.notification.FireGamixterTriggerRequest.deserializeBinary = function(bytes) {
13372
+ var reader = new jspb.BinaryReader(bytes);
13373
+ var msg = new proto.notification.FireGamixterTriggerRequest;
13374
+ return proto.notification.FireGamixterTriggerRequest.deserializeBinaryFromReader(msg, reader);
13375
+ };
13376
+
13377
+
13378
+ /**
13379
+ * Deserializes binary data (in protobuf wire format) from the
13380
+ * given reader into the given message object.
13381
+ * @param {!proto.notification.FireGamixterTriggerRequest} msg The message object to deserialize into.
13382
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
13383
+ * @return {!proto.notification.FireGamixterTriggerRequest}
13384
+ */
13385
+ proto.notification.FireGamixterTriggerRequest.deserializeBinaryFromReader = function(msg, reader) {
13386
+ while (reader.nextField()) {
13387
+ if (reader.isEndGroup()) {
13388
+ break;
13389
+ }
13390
+ var field = reader.getFieldNumber();
13391
+ switch (field) {
13392
+ case 1:
13393
+ var value = /** @type {string} */ (reader.readString());
13394
+ msg.setUserPublicId(value);
13395
+ break;
13396
+ case 2:
13397
+ var value = /** @type {number} */ (reader.readInt32());
13398
+ msg.setTriggerId(value);
13399
+ break;
13400
+ default:
13401
+ reader.skipField();
13402
+ break;
13403
+ }
13404
+ }
13405
+ return msg;
13406
+ };
13407
+
13408
+
13409
+ /**
13410
+ * Serializes the message to binary data (in protobuf wire format).
13411
+ * @return {!Uint8Array}
13412
+ */
13413
+ proto.notification.FireGamixterTriggerRequest.prototype.serializeBinary = function() {
13414
+ var writer = new jspb.BinaryWriter();
13415
+ proto.notification.FireGamixterTriggerRequest.serializeBinaryToWriter(this, writer);
13416
+ return writer.getResultBuffer();
13417
+ };
13418
+
13419
+
13420
+ /**
13421
+ * Serializes the given message to binary data (in protobuf wire
13422
+ * format), writing to the given BinaryWriter.
13423
+ * @param {!proto.notification.FireGamixterTriggerRequest} message
13424
+ * @param {!jspb.BinaryWriter} writer
13425
+ * @suppress {unusedLocalVariables} f is only used for nested messages
13426
+ */
13427
+ proto.notification.FireGamixterTriggerRequest.serializeBinaryToWriter = function(message, writer) {
13428
+ var f = undefined;
13429
+ f = message.getUserPublicId();
13430
+ if (f.length > 0) {
13431
+ writer.writeString(
13432
+ 1,
13433
+ f
13434
+ );
13435
+ }
13436
+ f = message.getTriggerId();
13437
+ if (f !== 0) {
13438
+ writer.writeInt32(
13439
+ 2,
13440
+ f
13441
+ );
13442
+ }
13443
+ };
13444
+
13445
+
13446
+ /**
13447
+ * optional string user_public_id = 1;
13448
+ * @return {string}
13449
+ */
13450
+ proto.notification.FireGamixterTriggerRequest.prototype.getUserPublicId = function() {
13451
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
13452
+ };
13453
+
13454
+
13455
+ /**
13456
+ * @param {string} value
13457
+ * @return {!proto.notification.FireGamixterTriggerRequest} returns this
13458
+ */
13459
+ proto.notification.FireGamixterTriggerRequest.prototype.setUserPublicId = function(value) {
13460
+ return jspb.Message.setProto3StringField(this, 1, value);
13461
+ };
13462
+
13463
+
13464
+ /**
13465
+ * optional int32 trigger_id = 2;
13466
+ * @return {number}
13467
+ */
13468
+ proto.notification.FireGamixterTriggerRequest.prototype.getTriggerId = function() {
13469
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
13470
+ };
13471
+
13472
+
13473
+ /**
13474
+ * @param {number} value
13475
+ * @return {!proto.notification.FireGamixterTriggerRequest} returns this
13476
+ */
13477
+ proto.notification.FireGamixterTriggerRequest.prototype.setTriggerId = function(value) {
13478
+ return jspb.Message.setProto3IntField(this, 2, value);
13479
+ };
13480
+
13481
+
13482
+
13483
+
13484
+
13485
+ if (jspb.Message.GENERATE_TO_OBJECT) {
13486
+ /**
13487
+ * Creates an object representation of this proto.
13488
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
13489
+ * Optional fields that are not set will be set to undefined.
13490
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
13491
+ * For the list of reserved names please see:
13492
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
13493
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
13494
+ * JSPB instance for transitional soy proto support:
13495
+ * http://goto/soy-param-migration
13496
+ * @return {!Object}
13497
+ */
13498
+ proto.notification.ProcessGamixterBonusAwardedWebhookRequest.prototype.toObject = function(opt_includeInstance) {
13499
+ return proto.notification.ProcessGamixterBonusAwardedWebhookRequest.toObject(opt_includeInstance, this);
13500
+ };
13501
+
13502
+
13503
+ /**
13504
+ * Static version of the {@see toObject} method.
13505
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
13506
+ * the JSPB instance for transitional soy proto support:
13507
+ * http://goto/soy-param-migration
13508
+ * @param {!proto.notification.ProcessGamixterBonusAwardedWebhookRequest} msg The msg instance to transform.
13509
+ * @return {!Object}
13510
+ * @suppress {unusedLocalVariables} f is only used for nested messages
13511
+ */
13512
+ proto.notification.ProcessGamixterBonusAwardedWebhookRequest.toObject = function(includeInstance, msg) {
13513
+ var f, obj = {
13514
+ rawBody: jspb.Message.getFieldWithDefault(msg, 1, ""),
13515
+ xRequestSign: jspb.Message.getFieldWithDefault(msg, 2, ""),
13516
+ xSignature: jspb.Message.getFieldWithDefault(msg, 3, ""),
13517
+ correlationId: jspb.Message.getFieldWithDefault(msg, 4, "")
13518
+ };
13519
+
13520
+ if (includeInstance) {
13521
+ obj.$jspbMessageInstance = msg;
13522
+ }
13523
+ return obj;
13524
+ };
13525
+ }
13526
+
13527
+
13528
+ /**
13529
+ * Deserializes binary data (in protobuf wire format).
13530
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
13531
+ * @return {!proto.notification.ProcessGamixterBonusAwardedWebhookRequest}
13532
+ */
13533
+ proto.notification.ProcessGamixterBonusAwardedWebhookRequest.deserializeBinary = function(bytes) {
13534
+ var reader = new jspb.BinaryReader(bytes);
13535
+ var msg = new proto.notification.ProcessGamixterBonusAwardedWebhookRequest;
13536
+ return proto.notification.ProcessGamixterBonusAwardedWebhookRequest.deserializeBinaryFromReader(msg, reader);
13537
+ };
13538
+
13539
+
13540
+ /**
13541
+ * Deserializes binary data (in protobuf wire format) from the
13542
+ * given reader into the given message object.
13543
+ * @param {!proto.notification.ProcessGamixterBonusAwardedWebhookRequest} msg The message object to deserialize into.
13544
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
13545
+ * @return {!proto.notification.ProcessGamixterBonusAwardedWebhookRequest}
13546
+ */
13547
+ proto.notification.ProcessGamixterBonusAwardedWebhookRequest.deserializeBinaryFromReader = function(msg, reader) {
13548
+ while (reader.nextField()) {
13549
+ if (reader.isEndGroup()) {
13550
+ break;
13551
+ }
13552
+ var field = reader.getFieldNumber();
13553
+ switch (field) {
13554
+ case 1:
13555
+ var value = /** @type {string} */ (reader.readString());
13556
+ msg.setRawBody(value);
13557
+ break;
13558
+ case 2:
13559
+ var value = /** @type {string} */ (reader.readString());
13560
+ msg.setXRequestSign(value);
13561
+ break;
13562
+ case 3:
13563
+ var value = /** @type {string} */ (reader.readString());
13564
+ msg.setXSignature(value);
13565
+ break;
13566
+ case 4:
13567
+ var value = /** @type {string} */ (reader.readString());
13568
+ msg.setCorrelationId(value);
13569
+ break;
13570
+ default:
13571
+ reader.skipField();
13572
+ break;
13573
+ }
13574
+ }
13575
+ return msg;
13576
+ };
13577
+
13578
+
13579
+ /**
13580
+ * Serializes the message to binary data (in protobuf wire format).
13581
+ * @return {!Uint8Array}
13582
+ */
13583
+ proto.notification.ProcessGamixterBonusAwardedWebhookRequest.prototype.serializeBinary = function() {
13584
+ var writer = new jspb.BinaryWriter();
13585
+ proto.notification.ProcessGamixterBonusAwardedWebhookRequest.serializeBinaryToWriter(this, writer);
13586
+ return writer.getResultBuffer();
13587
+ };
13588
+
13589
+
13590
+ /**
13591
+ * Serializes the given message to binary data (in protobuf wire
13592
+ * format), writing to the given BinaryWriter.
13593
+ * @param {!proto.notification.ProcessGamixterBonusAwardedWebhookRequest} message
13594
+ * @param {!jspb.BinaryWriter} writer
13595
+ * @suppress {unusedLocalVariables} f is only used for nested messages
13596
+ */
13597
+ proto.notification.ProcessGamixterBonusAwardedWebhookRequest.serializeBinaryToWriter = function(message, writer) {
13598
+ var f = undefined;
13599
+ f = message.getRawBody();
13600
+ if (f.length > 0) {
13601
+ writer.writeString(
13602
+ 1,
13603
+ f
13604
+ );
13605
+ }
13606
+ f = message.getXRequestSign();
13607
+ if (f.length > 0) {
13608
+ writer.writeString(
13609
+ 2,
13610
+ f
13611
+ );
13612
+ }
13613
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
13614
+ if (f != null) {
13615
+ writer.writeString(
13616
+ 3,
13617
+ f
13618
+ );
13619
+ }
13620
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
13621
+ if (f != null) {
13622
+ writer.writeString(
13623
+ 4,
13624
+ f
13625
+ );
13626
+ }
13627
+ };
13628
+
13629
+
13630
+ /**
13631
+ * optional string raw_body = 1;
13632
+ * @return {string}
13633
+ */
13634
+ proto.notification.ProcessGamixterBonusAwardedWebhookRequest.prototype.getRawBody = function() {
13635
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
13636
+ };
13637
+
13638
+
13639
+ /**
13640
+ * @param {string} value
13641
+ * @return {!proto.notification.ProcessGamixterBonusAwardedWebhookRequest} returns this
13642
+ */
13643
+ proto.notification.ProcessGamixterBonusAwardedWebhookRequest.prototype.setRawBody = function(value) {
13644
+ return jspb.Message.setProto3StringField(this, 1, value);
13645
+ };
13646
+
13647
+
13648
+ /**
13649
+ * optional string x_request_sign = 2;
13650
+ * @return {string}
13651
+ */
13652
+ proto.notification.ProcessGamixterBonusAwardedWebhookRequest.prototype.getXRequestSign = function() {
13653
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
13654
+ };
13655
+
13656
+
13657
+ /**
13658
+ * @param {string} value
13659
+ * @return {!proto.notification.ProcessGamixterBonusAwardedWebhookRequest} returns this
13660
+ */
13661
+ proto.notification.ProcessGamixterBonusAwardedWebhookRequest.prototype.setXRequestSign = function(value) {
13662
+ return jspb.Message.setProto3StringField(this, 2, value);
13663
+ };
13664
+
13665
+
13666
+ /**
13667
+ * optional string x_signature = 3;
13668
+ * @return {string}
13669
+ */
13670
+ proto.notification.ProcessGamixterBonusAwardedWebhookRequest.prototype.getXSignature = function() {
13671
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
13672
+ };
13673
+
13674
+
13675
+ /**
13676
+ * @param {string} value
13677
+ * @return {!proto.notification.ProcessGamixterBonusAwardedWebhookRequest} returns this
13678
+ */
13679
+ proto.notification.ProcessGamixterBonusAwardedWebhookRequest.prototype.setXSignature = function(value) {
13680
+ return jspb.Message.setField(this, 3, value);
13681
+ };
13682
+
13683
+
13684
+ /**
13685
+ * Clears the field making it undefined.
13686
+ * @return {!proto.notification.ProcessGamixterBonusAwardedWebhookRequest} returns this
13687
+ */
13688
+ proto.notification.ProcessGamixterBonusAwardedWebhookRequest.prototype.clearXSignature = function() {
13689
+ return jspb.Message.setField(this, 3, undefined);
13690
+ };
13691
+
13692
+
13693
+ /**
13694
+ * Returns whether this field is set.
13695
+ * @return {boolean}
13696
+ */
13697
+ proto.notification.ProcessGamixterBonusAwardedWebhookRequest.prototype.hasXSignature = function() {
13698
+ return jspb.Message.getField(this, 3) != null;
13699
+ };
13700
+
13701
+
13702
+ /**
13703
+ * optional string correlation_id = 4;
13704
+ * @return {string}
13705
+ */
13706
+ proto.notification.ProcessGamixterBonusAwardedWebhookRequest.prototype.getCorrelationId = function() {
13707
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
13708
+ };
13709
+
13710
+
13711
+ /**
13712
+ * @param {string} value
13713
+ * @return {!proto.notification.ProcessGamixterBonusAwardedWebhookRequest} returns this
13714
+ */
13715
+ proto.notification.ProcessGamixterBonusAwardedWebhookRequest.prototype.setCorrelationId = function(value) {
13716
+ return jspb.Message.setField(this, 4, value);
13717
+ };
13718
+
13719
+
13720
+ /**
13721
+ * Clears the field making it undefined.
13722
+ * @return {!proto.notification.ProcessGamixterBonusAwardedWebhookRequest} returns this
13723
+ */
13724
+ proto.notification.ProcessGamixterBonusAwardedWebhookRequest.prototype.clearCorrelationId = function() {
13725
+ return jspb.Message.setField(this, 4, undefined);
13726
+ };
13727
+
13728
+
13729
+ /**
13730
+ * Returns whether this field is set.
13731
+ * @return {boolean}
13732
+ */
13733
+ proto.notification.ProcessGamixterBonusAwardedWebhookRequest.prototype.hasCorrelationId = function() {
13734
+ return jspb.Message.getField(this, 4) != null;
13735
+ };
13736
+
13737
+
13278
13738
  goog.object.extend(exports, proto.notification);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.604",
3
+ "version": "1.2.608",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/user/user.proto CHANGED
@@ -99,6 +99,7 @@ service User {
99
99
  rpc readUserKycDocument(ReadUserKycDocumentRequest) returns (UserKycDocumentItem);
100
100
  rpc readListUserKycDocuments(ReadListUserKycDocumentsRequest) returns (UserKycDocumentListResponse);
101
101
  rpc readUserKycDocumentOptions(ReadUserKycDocumentOptionsRequest) returns (UserKycDocumentOptionsResponse);
102
+ rpc readUserKycDocumentPreview(ReadUserKycDocumentPreviewRequest) returns (UserKycVerificationDocumentPreviewResponse);
102
103
  // Submit an existing user KYC document record to the active verification provider.
103
104
  rpc ingestUserKycDocumentToProvider(IngestUserKycDocumentToProviderRequest) returns (UserKycDocumentItem);
104
105
  // Provider-agnostic KYC: bootstrap verification context (purpose/flow only; provider resolved internally).
@@ -1529,6 +1530,10 @@ message UserKycDocumentsResponse {
1529
1530
  message ReadUserKycDocumentRequest {
1530
1531
  int32 id = 1;
1531
1532
  }
1533
+ message ReadUserKycDocumentPreviewRequest {
1534
+ int32 user_id = 1;
1535
+ int64 document_id = 2;
1536
+ }
1532
1537
  message ReadListUserKycDocumentsRequest {
1533
1538
  int32 limit = 1;
1534
1539
  int32 offset = 2;
@@ -1159,6 +1159,17 @@ function deserialize_user_ReadUserKycDocumentOptionsRequest(buffer_arg) {
1159
1159
  return user_pb.ReadUserKycDocumentOptionsRequest.deserializeBinary(new Uint8Array(buffer_arg));
1160
1160
  }
1161
1161
 
1162
+ function serialize_user_ReadUserKycDocumentPreviewRequest(arg) {
1163
+ if (!(arg instanceof user_pb.ReadUserKycDocumentPreviewRequest)) {
1164
+ throw new Error('Expected argument of type user.ReadUserKycDocumentPreviewRequest');
1165
+ }
1166
+ return Buffer.from(arg.serializeBinary());
1167
+ }
1168
+
1169
+ function deserialize_user_ReadUserKycDocumentPreviewRequest(buffer_arg) {
1170
+ return user_pb.ReadUserKycDocumentPreviewRequest.deserializeBinary(new Uint8Array(buffer_arg));
1171
+ }
1172
+
1162
1173
  function serialize_user_ReadUserKycDocumentRequest(arg) {
1163
1174
  if (!(arg instanceof user_pb.ReadUserKycDocumentRequest)) {
1164
1175
  throw new Error('Expected argument of type user.ReadUserKycDocumentRequest');
@@ -3256,6 +3267,17 @@ readUserKycDocuments: {
3256
3267
  responseSerialize: serialize_user_UserKycDocumentOptionsResponse,
3257
3268
  responseDeserialize: deserialize_user_UserKycDocumentOptionsResponse,
3258
3269
  },
3270
+ readUserKycDocumentPreview: {
3271
+ path: '/user.User/readUserKycDocumentPreview',
3272
+ requestStream: false,
3273
+ responseStream: false,
3274
+ requestType: user_pb.ReadUserKycDocumentPreviewRequest,
3275
+ responseType: user_pb.UserKycVerificationDocumentPreviewResponse,
3276
+ requestSerialize: serialize_user_ReadUserKycDocumentPreviewRequest,
3277
+ requestDeserialize: deserialize_user_ReadUserKycDocumentPreviewRequest,
3278
+ responseSerialize: serialize_user_UserKycVerificationDocumentPreviewResponse,
3279
+ responseDeserialize: deserialize_user_UserKycVerificationDocumentPreviewResponse,
3280
+ },
3259
3281
  // Submit an existing user KYC document record to the active verification provider.
3260
3282
  ingestUserKycDocumentToProvider: {
3261
3283
  path: '/user.User/ingestUserKycDocumentToProvider',
package/user/user_pb.js CHANGED
@@ -137,6 +137,7 @@ goog.exportSymbol('proto.user.ReadRiskPermissionMatrixLimitsRequest', null, glob
137
137
  goog.exportSymbol('proto.user.ReadRiskPermissionMatrixRequest', null, global);
138
138
  goog.exportSymbol('proto.user.ReadUserCalculatedRestrictionsRequest', null, global);
139
139
  goog.exportSymbol('proto.user.ReadUserKycDocumentOptionsRequest', null, global);
140
+ goog.exportSymbol('proto.user.ReadUserKycDocumentPreviewRequest', null, global);
140
141
  goog.exportSymbol('proto.user.ReadUserKycDocumentRequest', null, global);
141
142
  goog.exportSymbol('proto.user.ReadUserKycDocumentsRequest', null, global);
142
143
  goog.exportSymbol('proto.user.ReadUserKycProfileRequest', null, global);
@@ -3523,6 +3524,27 @@ if (goog.DEBUG && !COMPILED) {
3523
3524
  */
3524
3525
  proto.user.ReadUserKycDocumentRequest.displayName = 'proto.user.ReadUserKycDocumentRequest';
3525
3526
  }
3527
+ /**
3528
+ * Generated by JsPbCodeGenerator.
3529
+ * @param {Array=} opt_data Optional initial data array, typically from a
3530
+ * server response, or constructed directly in Javascript. The array is used
3531
+ * in place and becomes part of the constructed object. It is not cloned.
3532
+ * If no data is provided, the constructed object will be empty, but still
3533
+ * valid.
3534
+ * @extends {jspb.Message}
3535
+ * @constructor
3536
+ */
3537
+ proto.user.ReadUserKycDocumentPreviewRequest = function(opt_data) {
3538
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
3539
+ };
3540
+ goog.inherits(proto.user.ReadUserKycDocumentPreviewRequest, jspb.Message);
3541
+ if (goog.DEBUG && !COMPILED) {
3542
+ /**
3543
+ * @public
3544
+ * @override
3545
+ */
3546
+ proto.user.ReadUserKycDocumentPreviewRequest.displayName = 'proto.user.ReadUserKycDocumentPreviewRequest';
3547
+ }
3526
3548
  /**
3527
3549
  * Generated by JsPbCodeGenerator.
3528
3550
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -64602,6 +64624,166 @@ proto.user.ReadUserKycDocumentRequest.prototype.setId = function(value) {
64602
64624
 
64603
64625
 
64604
64626
 
64627
+ if (jspb.Message.GENERATE_TO_OBJECT) {
64628
+ /**
64629
+ * Creates an object representation of this proto.
64630
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
64631
+ * Optional fields that are not set will be set to undefined.
64632
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
64633
+ * For the list of reserved names please see:
64634
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
64635
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
64636
+ * JSPB instance for transitional soy proto support:
64637
+ * http://goto/soy-param-migration
64638
+ * @return {!Object}
64639
+ */
64640
+ proto.user.ReadUserKycDocumentPreviewRequest.prototype.toObject = function(opt_includeInstance) {
64641
+ return proto.user.ReadUserKycDocumentPreviewRequest.toObject(opt_includeInstance, this);
64642
+ };
64643
+
64644
+
64645
+ /**
64646
+ * Static version of the {@see toObject} method.
64647
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
64648
+ * the JSPB instance for transitional soy proto support:
64649
+ * http://goto/soy-param-migration
64650
+ * @param {!proto.user.ReadUserKycDocumentPreviewRequest} msg The msg instance to transform.
64651
+ * @return {!Object}
64652
+ * @suppress {unusedLocalVariables} f is only used for nested messages
64653
+ */
64654
+ proto.user.ReadUserKycDocumentPreviewRequest.toObject = function(includeInstance, msg) {
64655
+ var f, obj = {
64656
+ userId: jspb.Message.getFieldWithDefault(msg, 1, 0),
64657
+ documentId: jspb.Message.getFieldWithDefault(msg, 2, 0)
64658
+ };
64659
+
64660
+ if (includeInstance) {
64661
+ obj.$jspbMessageInstance = msg;
64662
+ }
64663
+ return obj;
64664
+ };
64665
+ }
64666
+
64667
+
64668
+ /**
64669
+ * Deserializes binary data (in protobuf wire format).
64670
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
64671
+ * @return {!proto.user.ReadUserKycDocumentPreviewRequest}
64672
+ */
64673
+ proto.user.ReadUserKycDocumentPreviewRequest.deserializeBinary = function(bytes) {
64674
+ var reader = new jspb.BinaryReader(bytes);
64675
+ var msg = new proto.user.ReadUserKycDocumentPreviewRequest;
64676
+ return proto.user.ReadUserKycDocumentPreviewRequest.deserializeBinaryFromReader(msg, reader);
64677
+ };
64678
+
64679
+
64680
+ /**
64681
+ * Deserializes binary data (in protobuf wire format) from the
64682
+ * given reader into the given message object.
64683
+ * @param {!proto.user.ReadUserKycDocumentPreviewRequest} msg The message object to deserialize into.
64684
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
64685
+ * @return {!proto.user.ReadUserKycDocumentPreviewRequest}
64686
+ */
64687
+ proto.user.ReadUserKycDocumentPreviewRequest.deserializeBinaryFromReader = function(msg, reader) {
64688
+ while (reader.nextField()) {
64689
+ if (reader.isEndGroup()) {
64690
+ break;
64691
+ }
64692
+ var field = reader.getFieldNumber();
64693
+ switch (field) {
64694
+ case 1:
64695
+ var value = /** @type {number} */ (reader.readInt32());
64696
+ msg.setUserId(value);
64697
+ break;
64698
+ case 2:
64699
+ var value = /** @type {number} */ (reader.readInt64());
64700
+ msg.setDocumentId(value);
64701
+ break;
64702
+ default:
64703
+ reader.skipField();
64704
+ break;
64705
+ }
64706
+ }
64707
+ return msg;
64708
+ };
64709
+
64710
+
64711
+ /**
64712
+ * Serializes the message to binary data (in protobuf wire format).
64713
+ * @return {!Uint8Array}
64714
+ */
64715
+ proto.user.ReadUserKycDocumentPreviewRequest.prototype.serializeBinary = function() {
64716
+ var writer = new jspb.BinaryWriter();
64717
+ proto.user.ReadUserKycDocumentPreviewRequest.serializeBinaryToWriter(this, writer);
64718
+ return writer.getResultBuffer();
64719
+ };
64720
+
64721
+
64722
+ /**
64723
+ * Serializes the given message to binary data (in protobuf wire
64724
+ * format), writing to the given BinaryWriter.
64725
+ * @param {!proto.user.ReadUserKycDocumentPreviewRequest} message
64726
+ * @param {!jspb.BinaryWriter} writer
64727
+ * @suppress {unusedLocalVariables} f is only used for nested messages
64728
+ */
64729
+ proto.user.ReadUserKycDocumentPreviewRequest.serializeBinaryToWriter = function(message, writer) {
64730
+ var f = undefined;
64731
+ f = message.getUserId();
64732
+ if (f !== 0) {
64733
+ writer.writeInt32(
64734
+ 1,
64735
+ f
64736
+ );
64737
+ }
64738
+ f = message.getDocumentId();
64739
+ if (f !== 0) {
64740
+ writer.writeInt64(
64741
+ 2,
64742
+ f
64743
+ );
64744
+ }
64745
+ };
64746
+
64747
+
64748
+ /**
64749
+ * optional int32 user_id = 1;
64750
+ * @return {number}
64751
+ */
64752
+ proto.user.ReadUserKycDocumentPreviewRequest.prototype.getUserId = function() {
64753
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
64754
+ };
64755
+
64756
+
64757
+ /**
64758
+ * @param {number} value
64759
+ * @return {!proto.user.ReadUserKycDocumentPreviewRequest} returns this
64760
+ */
64761
+ proto.user.ReadUserKycDocumentPreviewRequest.prototype.setUserId = function(value) {
64762
+ return jspb.Message.setProto3IntField(this, 1, value);
64763
+ };
64764
+
64765
+
64766
+ /**
64767
+ * optional int64 document_id = 2;
64768
+ * @return {number}
64769
+ */
64770
+ proto.user.ReadUserKycDocumentPreviewRequest.prototype.getDocumentId = function() {
64771
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
64772
+ };
64773
+
64774
+
64775
+ /**
64776
+ * @param {number} value
64777
+ * @return {!proto.user.ReadUserKycDocumentPreviewRequest} returns this
64778
+ */
64779
+ proto.user.ReadUserKycDocumentPreviewRequest.prototype.setDocumentId = function(value) {
64780
+ return jspb.Message.setProto3IntField(this, 2, value);
64781
+ };
64782
+
64783
+
64784
+
64785
+
64786
+
64605
64787
  if (jspb.Message.GENERATE_TO_OBJECT) {
64606
64788
  /**
64607
64789
  * Creates an object representation of this proto.