protobuf-platform 1.2.295 → 1.2.296

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.295",
3
+ "version": "1.2.296",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/user/user.proto CHANGED
@@ -14,6 +14,7 @@ service User {
14
14
  rpc getUserBalance(UserDataRequest) returns (UserDataResponse);
15
15
  rpc updateUserBalance(UserBalanceRequest) returns (UserDataResponse);
16
16
  rpc getUserCachedData(UserDataRequest) returns (UserDataResponse);
17
+ rpc getPumpKingsMyTokenWidgetLaunchData(GetPumpKingsMyTokenWidgetLaunchDataRequest) returns (GetPumpKingsMyTokenWidgetLaunchDataResponse);
17
18
  rpc getUserAffiliateAttribution(UserAffiliateAttributionRequest) returns (UserAffiliateAttributionResponse);
18
19
  rpc batchGetAffiliateAttribution(BatchGetAffiliateAttributionRequest) returns (BatchGetAffiliateAttributionResponse);
19
20
  //Role and Permissions
@@ -320,6 +321,15 @@ message UserDataResponse {
320
321
  optional string address = 39;
321
322
  optional int32 seon_fraud_score = 40;
322
323
  }
324
+ message GetPumpKingsMyTokenWidgetLaunchDataRequest {
325
+ string user_public_id = 1;
326
+ }
327
+ message GetPumpKingsMyTokenWidgetLaunchDataResponse {
328
+ string user_public_id = 1;
329
+ string user_hash = 2;
330
+ string api_base_url = 3;
331
+ string schema_version = 4;
332
+ }
323
333
  message UsersResponse {
324
334
  repeated UserDataResponse items = 1;
325
335
  optional int32 total_pages = 2;
@@ -136,6 +136,28 @@ function deserialize_user_GetNoteRequest(buffer_arg) {
136
136
  return user_pb.GetNoteRequest.deserializeBinary(new Uint8Array(buffer_arg));
137
137
  }
138
138
 
139
+ function serialize_user_GetPumpKingsMyTokenWidgetLaunchDataRequest(arg) {
140
+ if (!(arg instanceof user_pb.GetPumpKingsMyTokenWidgetLaunchDataRequest)) {
141
+ throw new Error('Expected argument of type user.GetPumpKingsMyTokenWidgetLaunchDataRequest');
142
+ }
143
+ return Buffer.from(arg.serializeBinary());
144
+ }
145
+
146
+ function deserialize_user_GetPumpKingsMyTokenWidgetLaunchDataRequest(buffer_arg) {
147
+ return user_pb.GetPumpKingsMyTokenWidgetLaunchDataRequest.deserializeBinary(new Uint8Array(buffer_arg));
148
+ }
149
+
150
+ function serialize_user_GetPumpKingsMyTokenWidgetLaunchDataResponse(arg) {
151
+ if (!(arg instanceof user_pb.GetPumpKingsMyTokenWidgetLaunchDataResponse)) {
152
+ throw new Error('Expected argument of type user.GetPumpKingsMyTokenWidgetLaunchDataResponse');
153
+ }
154
+ return Buffer.from(arg.serializeBinary());
155
+ }
156
+
157
+ function deserialize_user_GetPumpKingsMyTokenWidgetLaunchDataResponse(buffer_arg) {
158
+ return user_pb.GetPumpKingsMyTokenWidgetLaunchDataResponse.deserializeBinary(new Uint8Array(buffer_arg));
159
+ }
160
+
139
161
  function serialize_user_GetRoleRequest(arg) {
140
162
  if (!(arg instanceof user_pb.GetRoleRequest)) {
141
163
  throw new Error('Expected argument of type user.GetRoleRequest');
@@ -887,6 +909,17 @@ signUp: {
887
909
  responseSerialize: serialize_user_UserDataResponse,
888
910
  responseDeserialize: deserialize_user_UserDataResponse,
889
911
  },
912
+ getPumpKingsMyTokenWidgetLaunchData: {
913
+ path: '/user.User/getPumpKingsMyTokenWidgetLaunchData',
914
+ requestStream: false,
915
+ responseStream: false,
916
+ requestType: user_pb.GetPumpKingsMyTokenWidgetLaunchDataRequest,
917
+ responseType: user_pb.GetPumpKingsMyTokenWidgetLaunchDataResponse,
918
+ requestSerialize: serialize_user_GetPumpKingsMyTokenWidgetLaunchDataRequest,
919
+ requestDeserialize: deserialize_user_GetPumpKingsMyTokenWidgetLaunchDataRequest,
920
+ responseSerialize: serialize_user_GetPumpKingsMyTokenWidgetLaunchDataResponse,
921
+ responseDeserialize: deserialize_user_GetPumpKingsMyTokenWidgetLaunchDataResponse,
922
+ },
890
923
  getUserAffiliateAttribution: {
891
924
  path: '/user.User/getUserAffiliateAttribution',
892
925
  requestStream: false,
package/user/user_pb.js CHANGED
@@ -36,6 +36,8 @@ goog.exportSymbol('proto.user.EmailConfirmationRequest', null, global);
36
36
  goog.exportSymbol('proto.user.EmailConfirmedRequest', null, global);
37
37
  goog.exportSymbol('proto.user.File', null, global);
38
38
  goog.exportSymbol('proto.user.GetNoteRequest', null, global);
39
+ goog.exportSymbol('proto.user.GetPumpKingsMyTokenWidgetLaunchDataRequest', null, global);
40
+ goog.exportSymbol('proto.user.GetPumpKingsMyTokenWidgetLaunchDataResponse', null, global);
39
41
  goog.exportSymbol('proto.user.GetRoleRequest', null, global);
40
42
  goog.exportSymbol('proto.user.GetSegmentRequest', null, global);
41
43
  goog.exportSymbol('proto.user.GetSegmentRuleRequest', null, global);
@@ -595,6 +597,48 @@ if (goog.DEBUG && !COMPILED) {
595
597
  */
596
598
  proto.user.UserDataResponse.displayName = 'proto.user.UserDataResponse';
597
599
  }
600
+ /**
601
+ * Generated by JsPbCodeGenerator.
602
+ * @param {Array=} opt_data Optional initial data array, typically from a
603
+ * server response, or constructed directly in Javascript. The array is used
604
+ * in place and becomes part of the constructed object. It is not cloned.
605
+ * If no data is provided, the constructed object will be empty, but still
606
+ * valid.
607
+ * @extends {jspb.Message}
608
+ * @constructor
609
+ */
610
+ proto.user.GetPumpKingsMyTokenWidgetLaunchDataRequest = function(opt_data) {
611
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
612
+ };
613
+ goog.inherits(proto.user.GetPumpKingsMyTokenWidgetLaunchDataRequest, jspb.Message);
614
+ if (goog.DEBUG && !COMPILED) {
615
+ /**
616
+ * @public
617
+ * @override
618
+ */
619
+ proto.user.GetPumpKingsMyTokenWidgetLaunchDataRequest.displayName = 'proto.user.GetPumpKingsMyTokenWidgetLaunchDataRequest';
620
+ }
621
+ /**
622
+ * Generated by JsPbCodeGenerator.
623
+ * @param {Array=} opt_data Optional initial data array, typically from a
624
+ * server response, or constructed directly in Javascript. The array is used
625
+ * in place and becomes part of the constructed object. It is not cloned.
626
+ * If no data is provided, the constructed object will be empty, but still
627
+ * valid.
628
+ * @extends {jspb.Message}
629
+ * @constructor
630
+ */
631
+ proto.user.GetPumpKingsMyTokenWidgetLaunchDataResponse = function(opt_data) {
632
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
633
+ };
634
+ goog.inherits(proto.user.GetPumpKingsMyTokenWidgetLaunchDataResponse, jspb.Message);
635
+ if (goog.DEBUG && !COMPILED) {
636
+ /**
637
+ * @public
638
+ * @override
639
+ */
640
+ proto.user.GetPumpKingsMyTokenWidgetLaunchDataResponse.displayName = 'proto.user.GetPumpKingsMyTokenWidgetLaunchDataResponse';
641
+ }
598
642
  /**
599
643
  * Generated by JsPbCodeGenerator.
600
644
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -13408,6 +13452,356 @@ proto.user.UserDataResponse.prototype.hasSeonFraudScore = function() {
13408
13452
 
13409
13453
 
13410
13454
 
13455
+
13456
+
13457
+ if (jspb.Message.GENERATE_TO_OBJECT) {
13458
+ /**
13459
+ * Creates an object representation of this proto.
13460
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
13461
+ * Optional fields that are not set will be set to undefined.
13462
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
13463
+ * For the list of reserved names please see:
13464
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
13465
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
13466
+ * JSPB instance for transitional soy proto support:
13467
+ * http://goto/soy-param-migration
13468
+ * @return {!Object}
13469
+ */
13470
+ proto.user.GetPumpKingsMyTokenWidgetLaunchDataRequest.prototype.toObject = function(opt_includeInstance) {
13471
+ return proto.user.GetPumpKingsMyTokenWidgetLaunchDataRequest.toObject(opt_includeInstance, this);
13472
+ };
13473
+
13474
+
13475
+ /**
13476
+ * Static version of the {@see toObject} method.
13477
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
13478
+ * the JSPB instance for transitional soy proto support:
13479
+ * http://goto/soy-param-migration
13480
+ * @param {!proto.user.GetPumpKingsMyTokenWidgetLaunchDataRequest} msg The msg instance to transform.
13481
+ * @return {!Object}
13482
+ * @suppress {unusedLocalVariables} f is only used for nested messages
13483
+ */
13484
+ proto.user.GetPumpKingsMyTokenWidgetLaunchDataRequest.toObject = function(includeInstance, msg) {
13485
+ var f, obj = {
13486
+ userPublicId: jspb.Message.getFieldWithDefault(msg, 1, "")
13487
+ };
13488
+
13489
+ if (includeInstance) {
13490
+ obj.$jspbMessageInstance = msg;
13491
+ }
13492
+ return obj;
13493
+ };
13494
+ }
13495
+
13496
+
13497
+ /**
13498
+ * Deserializes binary data (in protobuf wire format).
13499
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
13500
+ * @return {!proto.user.GetPumpKingsMyTokenWidgetLaunchDataRequest}
13501
+ */
13502
+ proto.user.GetPumpKingsMyTokenWidgetLaunchDataRequest.deserializeBinary = function(bytes) {
13503
+ var reader = new jspb.BinaryReader(bytes);
13504
+ var msg = new proto.user.GetPumpKingsMyTokenWidgetLaunchDataRequest;
13505
+ return proto.user.GetPumpKingsMyTokenWidgetLaunchDataRequest.deserializeBinaryFromReader(msg, reader);
13506
+ };
13507
+
13508
+
13509
+ /**
13510
+ * Deserializes binary data (in protobuf wire format) from the
13511
+ * given reader into the given message object.
13512
+ * @param {!proto.user.GetPumpKingsMyTokenWidgetLaunchDataRequest} msg The message object to deserialize into.
13513
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
13514
+ * @return {!proto.user.GetPumpKingsMyTokenWidgetLaunchDataRequest}
13515
+ */
13516
+ proto.user.GetPumpKingsMyTokenWidgetLaunchDataRequest.deserializeBinaryFromReader = function(msg, reader) {
13517
+ while (reader.nextField()) {
13518
+ if (reader.isEndGroup()) {
13519
+ break;
13520
+ }
13521
+ var field = reader.getFieldNumber();
13522
+ switch (field) {
13523
+ case 1:
13524
+ var value = /** @type {string} */ (reader.readString());
13525
+ msg.setUserPublicId(value);
13526
+ break;
13527
+ default:
13528
+ reader.skipField();
13529
+ break;
13530
+ }
13531
+ }
13532
+ return msg;
13533
+ };
13534
+
13535
+
13536
+ /**
13537
+ * Serializes the message to binary data (in protobuf wire format).
13538
+ * @return {!Uint8Array}
13539
+ */
13540
+ proto.user.GetPumpKingsMyTokenWidgetLaunchDataRequest.prototype.serializeBinary = function() {
13541
+ var writer = new jspb.BinaryWriter();
13542
+ proto.user.GetPumpKingsMyTokenWidgetLaunchDataRequest.serializeBinaryToWriter(this, writer);
13543
+ return writer.getResultBuffer();
13544
+ };
13545
+
13546
+
13547
+ /**
13548
+ * Serializes the given message to binary data (in protobuf wire
13549
+ * format), writing to the given BinaryWriter.
13550
+ * @param {!proto.user.GetPumpKingsMyTokenWidgetLaunchDataRequest} message
13551
+ * @param {!jspb.BinaryWriter} writer
13552
+ * @suppress {unusedLocalVariables} f is only used for nested messages
13553
+ */
13554
+ proto.user.GetPumpKingsMyTokenWidgetLaunchDataRequest.serializeBinaryToWriter = function(message, writer) {
13555
+ var f = undefined;
13556
+ f = message.getUserPublicId();
13557
+ if (f.length > 0) {
13558
+ writer.writeString(
13559
+ 1,
13560
+ f
13561
+ );
13562
+ }
13563
+ };
13564
+
13565
+
13566
+ /**
13567
+ * optional string user_public_id = 1;
13568
+ * @return {string}
13569
+ */
13570
+ proto.user.GetPumpKingsMyTokenWidgetLaunchDataRequest.prototype.getUserPublicId = function() {
13571
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
13572
+ };
13573
+
13574
+
13575
+ /**
13576
+ * @param {string} value
13577
+ * @return {!proto.user.GetPumpKingsMyTokenWidgetLaunchDataRequest} returns this
13578
+ */
13579
+ proto.user.GetPumpKingsMyTokenWidgetLaunchDataRequest.prototype.setUserPublicId = function(value) {
13580
+ return jspb.Message.setProto3StringField(this, 1, value);
13581
+ };
13582
+
13583
+
13584
+
13585
+
13586
+
13587
+ if (jspb.Message.GENERATE_TO_OBJECT) {
13588
+ /**
13589
+ * Creates an object representation of this proto.
13590
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
13591
+ * Optional fields that are not set will be set to undefined.
13592
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
13593
+ * For the list of reserved names please see:
13594
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
13595
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
13596
+ * JSPB instance for transitional soy proto support:
13597
+ * http://goto/soy-param-migration
13598
+ * @return {!Object}
13599
+ */
13600
+ proto.user.GetPumpKingsMyTokenWidgetLaunchDataResponse.prototype.toObject = function(opt_includeInstance) {
13601
+ return proto.user.GetPumpKingsMyTokenWidgetLaunchDataResponse.toObject(opt_includeInstance, this);
13602
+ };
13603
+
13604
+
13605
+ /**
13606
+ * Static version of the {@see toObject} method.
13607
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
13608
+ * the JSPB instance for transitional soy proto support:
13609
+ * http://goto/soy-param-migration
13610
+ * @param {!proto.user.GetPumpKingsMyTokenWidgetLaunchDataResponse} msg The msg instance to transform.
13611
+ * @return {!Object}
13612
+ * @suppress {unusedLocalVariables} f is only used for nested messages
13613
+ */
13614
+ proto.user.GetPumpKingsMyTokenWidgetLaunchDataResponse.toObject = function(includeInstance, msg) {
13615
+ var f, obj = {
13616
+ userPublicId: jspb.Message.getFieldWithDefault(msg, 1, ""),
13617
+ userHash: jspb.Message.getFieldWithDefault(msg, 2, ""),
13618
+ apiBaseUrl: jspb.Message.getFieldWithDefault(msg, 3, ""),
13619
+ schemaVersion: jspb.Message.getFieldWithDefault(msg, 4, "")
13620
+ };
13621
+
13622
+ if (includeInstance) {
13623
+ obj.$jspbMessageInstance = msg;
13624
+ }
13625
+ return obj;
13626
+ };
13627
+ }
13628
+
13629
+
13630
+ /**
13631
+ * Deserializes binary data (in protobuf wire format).
13632
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
13633
+ * @return {!proto.user.GetPumpKingsMyTokenWidgetLaunchDataResponse}
13634
+ */
13635
+ proto.user.GetPumpKingsMyTokenWidgetLaunchDataResponse.deserializeBinary = function(bytes) {
13636
+ var reader = new jspb.BinaryReader(bytes);
13637
+ var msg = new proto.user.GetPumpKingsMyTokenWidgetLaunchDataResponse;
13638
+ return proto.user.GetPumpKingsMyTokenWidgetLaunchDataResponse.deserializeBinaryFromReader(msg, reader);
13639
+ };
13640
+
13641
+
13642
+ /**
13643
+ * Deserializes binary data (in protobuf wire format) from the
13644
+ * given reader into the given message object.
13645
+ * @param {!proto.user.GetPumpKingsMyTokenWidgetLaunchDataResponse} msg The message object to deserialize into.
13646
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
13647
+ * @return {!proto.user.GetPumpKingsMyTokenWidgetLaunchDataResponse}
13648
+ */
13649
+ proto.user.GetPumpKingsMyTokenWidgetLaunchDataResponse.deserializeBinaryFromReader = function(msg, reader) {
13650
+ while (reader.nextField()) {
13651
+ if (reader.isEndGroup()) {
13652
+ break;
13653
+ }
13654
+ var field = reader.getFieldNumber();
13655
+ switch (field) {
13656
+ case 1:
13657
+ var value = /** @type {string} */ (reader.readString());
13658
+ msg.setUserPublicId(value);
13659
+ break;
13660
+ case 2:
13661
+ var value = /** @type {string} */ (reader.readString());
13662
+ msg.setUserHash(value);
13663
+ break;
13664
+ case 3:
13665
+ var value = /** @type {string} */ (reader.readString());
13666
+ msg.setApiBaseUrl(value);
13667
+ break;
13668
+ case 4:
13669
+ var value = /** @type {string} */ (reader.readString());
13670
+ msg.setSchemaVersion(value);
13671
+ break;
13672
+ default:
13673
+ reader.skipField();
13674
+ break;
13675
+ }
13676
+ }
13677
+ return msg;
13678
+ };
13679
+
13680
+
13681
+ /**
13682
+ * Serializes the message to binary data (in protobuf wire format).
13683
+ * @return {!Uint8Array}
13684
+ */
13685
+ proto.user.GetPumpKingsMyTokenWidgetLaunchDataResponse.prototype.serializeBinary = function() {
13686
+ var writer = new jspb.BinaryWriter();
13687
+ proto.user.GetPumpKingsMyTokenWidgetLaunchDataResponse.serializeBinaryToWriter(this, writer);
13688
+ return writer.getResultBuffer();
13689
+ };
13690
+
13691
+
13692
+ /**
13693
+ * Serializes the given message to binary data (in protobuf wire
13694
+ * format), writing to the given BinaryWriter.
13695
+ * @param {!proto.user.GetPumpKingsMyTokenWidgetLaunchDataResponse} message
13696
+ * @param {!jspb.BinaryWriter} writer
13697
+ * @suppress {unusedLocalVariables} f is only used for nested messages
13698
+ */
13699
+ proto.user.GetPumpKingsMyTokenWidgetLaunchDataResponse.serializeBinaryToWriter = function(message, writer) {
13700
+ var f = undefined;
13701
+ f = message.getUserPublicId();
13702
+ if (f.length > 0) {
13703
+ writer.writeString(
13704
+ 1,
13705
+ f
13706
+ );
13707
+ }
13708
+ f = message.getUserHash();
13709
+ if (f.length > 0) {
13710
+ writer.writeString(
13711
+ 2,
13712
+ f
13713
+ );
13714
+ }
13715
+ f = message.getApiBaseUrl();
13716
+ if (f.length > 0) {
13717
+ writer.writeString(
13718
+ 3,
13719
+ f
13720
+ );
13721
+ }
13722
+ f = message.getSchemaVersion();
13723
+ if (f.length > 0) {
13724
+ writer.writeString(
13725
+ 4,
13726
+ f
13727
+ );
13728
+ }
13729
+ };
13730
+
13731
+
13732
+ /**
13733
+ * optional string user_public_id = 1;
13734
+ * @return {string}
13735
+ */
13736
+ proto.user.GetPumpKingsMyTokenWidgetLaunchDataResponse.prototype.getUserPublicId = function() {
13737
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
13738
+ };
13739
+
13740
+
13741
+ /**
13742
+ * @param {string} value
13743
+ * @return {!proto.user.GetPumpKingsMyTokenWidgetLaunchDataResponse} returns this
13744
+ */
13745
+ proto.user.GetPumpKingsMyTokenWidgetLaunchDataResponse.prototype.setUserPublicId = function(value) {
13746
+ return jspb.Message.setProto3StringField(this, 1, value);
13747
+ };
13748
+
13749
+
13750
+ /**
13751
+ * optional string user_hash = 2;
13752
+ * @return {string}
13753
+ */
13754
+ proto.user.GetPumpKingsMyTokenWidgetLaunchDataResponse.prototype.getUserHash = function() {
13755
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
13756
+ };
13757
+
13758
+
13759
+ /**
13760
+ * @param {string} value
13761
+ * @return {!proto.user.GetPumpKingsMyTokenWidgetLaunchDataResponse} returns this
13762
+ */
13763
+ proto.user.GetPumpKingsMyTokenWidgetLaunchDataResponse.prototype.setUserHash = function(value) {
13764
+ return jspb.Message.setProto3StringField(this, 2, value);
13765
+ };
13766
+
13767
+
13768
+ /**
13769
+ * optional string api_base_url = 3;
13770
+ * @return {string}
13771
+ */
13772
+ proto.user.GetPumpKingsMyTokenWidgetLaunchDataResponse.prototype.getApiBaseUrl = function() {
13773
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
13774
+ };
13775
+
13776
+
13777
+ /**
13778
+ * @param {string} value
13779
+ * @return {!proto.user.GetPumpKingsMyTokenWidgetLaunchDataResponse} returns this
13780
+ */
13781
+ proto.user.GetPumpKingsMyTokenWidgetLaunchDataResponse.prototype.setApiBaseUrl = function(value) {
13782
+ return jspb.Message.setProto3StringField(this, 3, value);
13783
+ };
13784
+
13785
+
13786
+ /**
13787
+ * optional string schema_version = 4;
13788
+ * @return {string}
13789
+ */
13790
+ proto.user.GetPumpKingsMyTokenWidgetLaunchDataResponse.prototype.getSchemaVersion = function() {
13791
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
13792
+ };
13793
+
13794
+
13795
+ /**
13796
+ * @param {string} value
13797
+ * @return {!proto.user.GetPumpKingsMyTokenWidgetLaunchDataResponse} returns this
13798
+ */
13799
+ proto.user.GetPumpKingsMyTokenWidgetLaunchDataResponse.prototype.setSchemaVersion = function(value) {
13800
+ return jspb.Message.setProto3StringField(this, 4, value);
13801
+ };
13802
+
13803
+
13804
+
13411
13805
  /**
13412
13806
  * List of repeated fields within this message type.
13413
13807
  * @private {!Array<number>}