@sniipwebmaster/user-service-client-grpcweb 24.16.12110 → 24.16.12120

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.
@@ -8191,5 +8191,66 @@ proto.sniipuserservice.SniipUserServiceServicePromiseClient.prototype.deleteFcmT
8191
8191
  };
8192
8192
 
8193
8193
 
8194
+ /**
8195
+ * @const
8196
+ * @type {!grpc.web.MethodDescriptor<
8197
+ * !proto.sniipuserservice.GetUserPassportsRequest,
8198
+ * !proto.sniipuserservice.GetUserPassportsResponse>}
8199
+ */
8200
+ const methodDescriptor_SniipUserServiceService_GetUserPassports = new grpc.web.MethodDescriptor(
8201
+ '/sniipuserservice.SniipUserServiceService/GetUserPassports',
8202
+ grpc.web.MethodType.UNARY,
8203
+ proto.sniipuserservice.GetUserPassportsRequest,
8204
+ proto.sniipuserservice.GetUserPassportsResponse,
8205
+ /**
8206
+ * @param {!proto.sniipuserservice.GetUserPassportsRequest} request
8207
+ * @return {!Uint8Array}
8208
+ */
8209
+ function(request) {
8210
+ return request.serializeBinary();
8211
+ },
8212
+ proto.sniipuserservice.GetUserPassportsResponse.deserializeBinary
8213
+ );
8214
+
8215
+
8216
+ /**
8217
+ * @param {!proto.sniipuserservice.GetUserPassportsRequest} request The
8218
+ * request proto
8219
+ * @param {?Object<string, string>} metadata User defined
8220
+ * call metadata
8221
+ * @param {function(?grpc.web.RpcError, ?proto.sniipuserservice.GetUserPassportsResponse)}
8222
+ * callback The callback function(error, response)
8223
+ * @return {!grpc.web.ClientReadableStream<!proto.sniipuserservice.GetUserPassportsResponse>|undefined}
8224
+ * The XHR Node Readable Stream
8225
+ */
8226
+ proto.sniipuserservice.SniipUserServiceServiceClient.prototype.getUserPassports =
8227
+ function(request, metadata, callback) {
8228
+ return this.client_.rpcCall(this.hostname_ +
8229
+ '/sniipuserservice.SniipUserServiceService/GetUserPassports',
8230
+ request,
8231
+ metadata || {},
8232
+ methodDescriptor_SniipUserServiceService_GetUserPassports,
8233
+ callback);
8234
+ };
8235
+
8236
+
8237
+ /**
8238
+ * @param {!proto.sniipuserservice.GetUserPassportsRequest} request The
8239
+ * request proto
8240
+ * @param {?Object<string, string>=} metadata User defined
8241
+ * call metadata
8242
+ * @return {!Promise<!proto.sniipuserservice.GetUserPassportsResponse>}
8243
+ * Promise that resolves to the response
8244
+ */
8245
+ proto.sniipuserservice.SniipUserServiceServicePromiseClient.prototype.getUserPassports =
8246
+ function(request, metadata) {
8247
+ return this.client_.unaryCall(this.hostname_ +
8248
+ '/sniipuserservice.SniipUserServiceService/GetUserPassports',
8249
+ request,
8250
+ metadata || {},
8251
+ methodDescriptor_SniipUserServiceService_GetUserPassports);
8252
+ };
8253
+
8254
+
8194
8255
  module.exports = proto.sniipuserservice;
8195
8256
 
@@ -92,6 +92,8 @@ goog.exportSymbol('proto.sniipuserservice.GetTemporaryAccessTokenRequest', null,
92
92
  goog.exportSymbol('proto.sniipuserservice.GetTemporaryAccessTokenResponse', null, global);
93
93
  goog.exportSymbol('proto.sniipuserservice.GetUserDevicesHistoryRequest', null, global);
94
94
  goog.exportSymbol('proto.sniipuserservice.GetUserDevicesHistoryResponse', null, global);
95
+ goog.exportSymbol('proto.sniipuserservice.GetUserPassportsRequest', null, global);
96
+ goog.exportSymbol('proto.sniipuserservice.GetUserPassportsResponse', null, global);
95
97
  goog.exportSymbol('proto.sniipuserservice.GetUserStatusRequest', null, global);
96
98
  goog.exportSymbol('proto.sniipuserservice.GetUserStatusResponse', null, global);
97
99
  goog.exportSymbol('proto.sniipuserservice.GiveFeedbackRequest', null, global);
@@ -4337,6 +4339,48 @@ if (goog.DEBUG && !COMPILED) {
4337
4339
  */
4338
4340
  proto.sniipuserservice.GetUserStatusResponse.displayName = 'proto.sniipuserservice.GetUserStatusResponse';
4339
4341
  }
4342
+ /**
4343
+ * Generated by JsPbCodeGenerator.
4344
+ * @param {Array=} opt_data Optional initial data array, typically from a
4345
+ * server response, or constructed directly in Javascript. The array is used
4346
+ * in place and becomes part of the constructed object. It is not cloned.
4347
+ * If no data is provided, the constructed object will be empty, but still
4348
+ * valid.
4349
+ * @extends {jspb.Message}
4350
+ * @constructor
4351
+ */
4352
+ proto.sniipuserservice.GetUserPassportsRequest = function(opt_data) {
4353
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4354
+ };
4355
+ goog.inherits(proto.sniipuserservice.GetUserPassportsRequest, jspb.Message);
4356
+ if (goog.DEBUG && !COMPILED) {
4357
+ /**
4358
+ * @public
4359
+ * @override
4360
+ */
4361
+ proto.sniipuserservice.GetUserPassportsRequest.displayName = 'proto.sniipuserservice.GetUserPassportsRequest';
4362
+ }
4363
+ /**
4364
+ * Generated by JsPbCodeGenerator.
4365
+ * @param {Array=} opt_data Optional initial data array, typically from a
4366
+ * server response, or constructed directly in Javascript. The array is used
4367
+ * in place and becomes part of the constructed object. It is not cloned.
4368
+ * If no data is provided, the constructed object will be empty, but still
4369
+ * valid.
4370
+ * @extends {jspb.Message}
4371
+ * @constructor
4372
+ */
4373
+ proto.sniipuserservice.GetUserPassportsResponse = function(opt_data) {
4374
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.sniipuserservice.GetUserPassportsResponse.repeatedFields_, null);
4375
+ };
4376
+ goog.inherits(proto.sniipuserservice.GetUserPassportsResponse, jspb.Message);
4377
+ if (goog.DEBUG && !COMPILED) {
4378
+ /**
4379
+ * @public
4380
+ * @override
4381
+ */
4382
+ proto.sniipuserservice.GetUserPassportsResponse.displayName = 'proto.sniipuserservice.GetUserPassportsResponse';
4383
+ }
4340
4384
 
4341
4385
 
4342
4386
 
@@ -47586,6 +47630,347 @@ proto.sniipuserservice.GetUserStatusResponse.prototype.setCanmanuallyaddfailedsm
47586
47630
  };
47587
47631
 
47588
47632
 
47633
+
47634
+
47635
+
47636
+ if (jspb.Message.GENERATE_TO_OBJECT) {
47637
+ /**
47638
+ * Creates an object representation of this proto.
47639
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
47640
+ * Optional fields that are not set will be set to undefined.
47641
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
47642
+ * For the list of reserved names please see:
47643
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
47644
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
47645
+ * JSPB instance for transitional soy proto support:
47646
+ * http://goto/soy-param-migration
47647
+ * @return {!Object}
47648
+ */
47649
+ proto.sniipuserservice.GetUserPassportsRequest.prototype.toObject = function(opt_includeInstance) {
47650
+ return proto.sniipuserservice.GetUserPassportsRequest.toObject(opt_includeInstance, this);
47651
+ };
47652
+
47653
+
47654
+ /**
47655
+ * Static version of the {@see toObject} method.
47656
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
47657
+ * the JSPB instance for transitional soy proto support:
47658
+ * http://goto/soy-param-migration
47659
+ * @param {!proto.sniipuserservice.GetUserPassportsRequest} msg The msg instance to transform.
47660
+ * @return {!Object}
47661
+ * @suppress {unusedLocalVariables} f is only used for nested messages
47662
+ */
47663
+ proto.sniipuserservice.GetUserPassportsRequest.toObject = function(includeInstance, msg) {
47664
+ var f, obj = {
47665
+ userid: jspb.Message.getFieldWithDefault(msg, 1, 0)
47666
+ };
47667
+
47668
+ if (includeInstance) {
47669
+ obj.$jspbMessageInstance = msg;
47670
+ }
47671
+ return obj;
47672
+ };
47673
+ }
47674
+
47675
+
47676
+ /**
47677
+ * Deserializes binary data (in protobuf wire format).
47678
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
47679
+ * @return {!proto.sniipuserservice.GetUserPassportsRequest}
47680
+ */
47681
+ proto.sniipuserservice.GetUserPassportsRequest.deserializeBinary = function(bytes) {
47682
+ var reader = new jspb.BinaryReader(bytes);
47683
+ var msg = new proto.sniipuserservice.GetUserPassportsRequest;
47684
+ return proto.sniipuserservice.GetUserPassportsRequest.deserializeBinaryFromReader(msg, reader);
47685
+ };
47686
+
47687
+
47688
+ /**
47689
+ * Deserializes binary data (in protobuf wire format) from the
47690
+ * given reader into the given message object.
47691
+ * @param {!proto.sniipuserservice.GetUserPassportsRequest} msg The message object to deserialize into.
47692
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
47693
+ * @return {!proto.sniipuserservice.GetUserPassportsRequest}
47694
+ */
47695
+ proto.sniipuserservice.GetUserPassportsRequest.deserializeBinaryFromReader = function(msg, reader) {
47696
+ while (reader.nextField()) {
47697
+ if (reader.isEndGroup()) {
47698
+ break;
47699
+ }
47700
+ var field = reader.getFieldNumber();
47701
+ switch (field) {
47702
+ case 1:
47703
+ var value = /** @type {number} */ (reader.readInt64());
47704
+ msg.setUserid(value);
47705
+ break;
47706
+ default:
47707
+ reader.skipField();
47708
+ break;
47709
+ }
47710
+ }
47711
+ return msg;
47712
+ };
47713
+
47714
+
47715
+ /**
47716
+ * Serializes the message to binary data (in protobuf wire format).
47717
+ * @return {!Uint8Array}
47718
+ */
47719
+ proto.sniipuserservice.GetUserPassportsRequest.prototype.serializeBinary = function() {
47720
+ var writer = new jspb.BinaryWriter();
47721
+ proto.sniipuserservice.GetUserPassportsRequest.serializeBinaryToWriter(this, writer);
47722
+ return writer.getResultBuffer();
47723
+ };
47724
+
47725
+
47726
+ /**
47727
+ * Serializes the given message to binary data (in protobuf wire
47728
+ * format), writing to the given BinaryWriter.
47729
+ * @param {!proto.sniipuserservice.GetUserPassportsRequest} message
47730
+ * @param {!jspb.BinaryWriter} writer
47731
+ * @suppress {unusedLocalVariables} f is only used for nested messages
47732
+ */
47733
+ proto.sniipuserservice.GetUserPassportsRequest.serializeBinaryToWriter = function(message, writer) {
47734
+ var f = undefined;
47735
+ f = message.getUserid();
47736
+ if (f !== 0) {
47737
+ writer.writeInt64(
47738
+ 1,
47739
+ f
47740
+ );
47741
+ }
47742
+ };
47743
+
47744
+
47745
+ /**
47746
+ * optional int64 userId = 1;
47747
+ * @return {number}
47748
+ */
47749
+ proto.sniipuserservice.GetUserPassportsRequest.prototype.getUserid = function() {
47750
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
47751
+ };
47752
+
47753
+
47754
+ /**
47755
+ * @param {number} value
47756
+ * @return {!proto.sniipuserservice.GetUserPassportsRequest} returns this
47757
+ */
47758
+ proto.sniipuserservice.GetUserPassportsRequest.prototype.setUserid = function(value) {
47759
+ return jspb.Message.setProto3IntField(this, 1, value);
47760
+ };
47761
+
47762
+
47763
+
47764
+ /**
47765
+ * List of repeated fields within this message type.
47766
+ * @private {!Array<number>}
47767
+ * @const
47768
+ */
47769
+ proto.sniipuserservice.GetUserPassportsResponse.repeatedFields_ = [2];
47770
+
47771
+
47772
+
47773
+ if (jspb.Message.GENERATE_TO_OBJECT) {
47774
+ /**
47775
+ * Creates an object representation of this proto.
47776
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
47777
+ * Optional fields that are not set will be set to undefined.
47778
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
47779
+ * For the list of reserved names please see:
47780
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
47781
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
47782
+ * JSPB instance for transitional soy proto support:
47783
+ * http://goto/soy-param-migration
47784
+ * @return {!Object}
47785
+ */
47786
+ proto.sniipuserservice.GetUserPassportsResponse.prototype.toObject = function(opt_includeInstance) {
47787
+ return proto.sniipuserservice.GetUserPassportsResponse.toObject(opt_includeInstance, this);
47788
+ };
47789
+
47790
+
47791
+ /**
47792
+ * Static version of the {@see toObject} method.
47793
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
47794
+ * the JSPB instance for transitional soy proto support:
47795
+ * http://goto/soy-param-migration
47796
+ * @param {!proto.sniipuserservice.GetUserPassportsResponse} msg The msg instance to transform.
47797
+ * @return {!Object}
47798
+ * @suppress {unusedLocalVariables} f is only used for nested messages
47799
+ */
47800
+ proto.sniipuserservice.GetUserPassportsResponse.toObject = function(includeInstance, msg) {
47801
+ var f, obj = {
47802
+ responsecode: (f = msg.getResponsecode()) && proto.sniipuserservice.ResponseCode.toObject(includeInstance, f),
47803
+ passportsList: jspb.Message.toObjectList(msg.getPassportsList(),
47804
+ proto.sniipuserservice.Passport.toObject, includeInstance)
47805
+ };
47806
+
47807
+ if (includeInstance) {
47808
+ obj.$jspbMessageInstance = msg;
47809
+ }
47810
+ return obj;
47811
+ };
47812
+ }
47813
+
47814
+
47815
+ /**
47816
+ * Deserializes binary data (in protobuf wire format).
47817
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
47818
+ * @return {!proto.sniipuserservice.GetUserPassportsResponse}
47819
+ */
47820
+ proto.sniipuserservice.GetUserPassportsResponse.deserializeBinary = function(bytes) {
47821
+ var reader = new jspb.BinaryReader(bytes);
47822
+ var msg = new proto.sniipuserservice.GetUserPassportsResponse;
47823
+ return proto.sniipuserservice.GetUserPassportsResponse.deserializeBinaryFromReader(msg, reader);
47824
+ };
47825
+
47826
+
47827
+ /**
47828
+ * Deserializes binary data (in protobuf wire format) from the
47829
+ * given reader into the given message object.
47830
+ * @param {!proto.sniipuserservice.GetUserPassportsResponse} msg The message object to deserialize into.
47831
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
47832
+ * @return {!proto.sniipuserservice.GetUserPassportsResponse}
47833
+ */
47834
+ proto.sniipuserservice.GetUserPassportsResponse.deserializeBinaryFromReader = function(msg, reader) {
47835
+ while (reader.nextField()) {
47836
+ if (reader.isEndGroup()) {
47837
+ break;
47838
+ }
47839
+ var field = reader.getFieldNumber();
47840
+ switch (field) {
47841
+ case 1:
47842
+ var value = new proto.sniipuserservice.ResponseCode;
47843
+ reader.readMessage(value,proto.sniipuserservice.ResponseCode.deserializeBinaryFromReader);
47844
+ msg.setResponsecode(value);
47845
+ break;
47846
+ case 2:
47847
+ var value = new proto.sniipuserservice.Passport;
47848
+ reader.readMessage(value,proto.sniipuserservice.Passport.deserializeBinaryFromReader);
47849
+ msg.addPassports(value);
47850
+ break;
47851
+ default:
47852
+ reader.skipField();
47853
+ break;
47854
+ }
47855
+ }
47856
+ return msg;
47857
+ };
47858
+
47859
+
47860
+ /**
47861
+ * Serializes the message to binary data (in protobuf wire format).
47862
+ * @return {!Uint8Array}
47863
+ */
47864
+ proto.sniipuserservice.GetUserPassportsResponse.prototype.serializeBinary = function() {
47865
+ var writer = new jspb.BinaryWriter();
47866
+ proto.sniipuserservice.GetUserPassportsResponse.serializeBinaryToWriter(this, writer);
47867
+ return writer.getResultBuffer();
47868
+ };
47869
+
47870
+
47871
+ /**
47872
+ * Serializes the given message to binary data (in protobuf wire
47873
+ * format), writing to the given BinaryWriter.
47874
+ * @param {!proto.sniipuserservice.GetUserPassportsResponse} message
47875
+ * @param {!jspb.BinaryWriter} writer
47876
+ * @suppress {unusedLocalVariables} f is only used for nested messages
47877
+ */
47878
+ proto.sniipuserservice.GetUserPassportsResponse.serializeBinaryToWriter = function(message, writer) {
47879
+ var f = undefined;
47880
+ f = message.getResponsecode();
47881
+ if (f != null) {
47882
+ writer.writeMessage(
47883
+ 1,
47884
+ f,
47885
+ proto.sniipuserservice.ResponseCode.serializeBinaryToWriter
47886
+ );
47887
+ }
47888
+ f = message.getPassportsList();
47889
+ if (f.length > 0) {
47890
+ writer.writeRepeatedMessage(
47891
+ 2,
47892
+ f,
47893
+ proto.sniipuserservice.Passport.serializeBinaryToWriter
47894
+ );
47895
+ }
47896
+ };
47897
+
47898
+
47899
+ /**
47900
+ * optional ResponseCode responseCode = 1;
47901
+ * @return {?proto.sniipuserservice.ResponseCode}
47902
+ */
47903
+ proto.sniipuserservice.GetUserPassportsResponse.prototype.getResponsecode = function() {
47904
+ return /** @type{?proto.sniipuserservice.ResponseCode} */ (
47905
+ jspb.Message.getWrapperField(this, proto.sniipuserservice.ResponseCode, 1));
47906
+ };
47907
+
47908
+
47909
+ /**
47910
+ * @param {?proto.sniipuserservice.ResponseCode|undefined} value
47911
+ * @return {!proto.sniipuserservice.GetUserPassportsResponse} returns this
47912
+ */
47913
+ proto.sniipuserservice.GetUserPassportsResponse.prototype.setResponsecode = function(value) {
47914
+ return jspb.Message.setWrapperField(this, 1, value);
47915
+ };
47916
+
47917
+
47918
+ /**
47919
+ * Clears the message field making it undefined.
47920
+ * @return {!proto.sniipuserservice.GetUserPassportsResponse} returns this
47921
+ */
47922
+ proto.sniipuserservice.GetUserPassportsResponse.prototype.clearResponsecode = function() {
47923
+ return this.setResponsecode(undefined);
47924
+ };
47925
+
47926
+
47927
+ /**
47928
+ * Returns whether this field is set.
47929
+ * @return {boolean}
47930
+ */
47931
+ proto.sniipuserservice.GetUserPassportsResponse.prototype.hasResponsecode = function() {
47932
+ return jspb.Message.getField(this, 1) != null;
47933
+ };
47934
+
47935
+
47936
+ /**
47937
+ * repeated Passport passports = 2;
47938
+ * @return {!Array<!proto.sniipuserservice.Passport>}
47939
+ */
47940
+ proto.sniipuserservice.GetUserPassportsResponse.prototype.getPassportsList = function() {
47941
+ return /** @type{!Array<!proto.sniipuserservice.Passport>} */ (
47942
+ jspb.Message.getRepeatedWrapperField(this, proto.sniipuserservice.Passport, 2));
47943
+ };
47944
+
47945
+
47946
+ /**
47947
+ * @param {!Array<!proto.sniipuserservice.Passport>} value
47948
+ * @return {!proto.sniipuserservice.GetUserPassportsResponse} returns this
47949
+ */
47950
+ proto.sniipuserservice.GetUserPassportsResponse.prototype.setPassportsList = function(value) {
47951
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
47952
+ };
47953
+
47954
+
47955
+ /**
47956
+ * @param {!proto.sniipuserservice.Passport=} opt_value
47957
+ * @param {number=} opt_index
47958
+ * @return {!proto.sniipuserservice.Passport}
47959
+ */
47960
+ proto.sniipuserservice.GetUserPassportsResponse.prototype.addPassports = function(opt_value, opt_index) {
47961
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.sniipuserservice.Passport, opt_index);
47962
+ };
47963
+
47964
+
47965
+ /**
47966
+ * Clears the list making it empty but non-null.
47967
+ * @return {!proto.sniipuserservice.GetUserPassportsResponse} returns this
47968
+ */
47969
+ proto.sniipuserservice.GetUserPassportsResponse.prototype.clearPassportsList = function() {
47970
+ return this.setPassportsList([]);
47971
+ };
47972
+
47973
+
47589
47974
  /**
47590
47975
  * @enum {number}
47591
47976
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sniipwebmaster/user-service-client-grpcweb",
3
- "version": "24.16.12110",
3
+ "version": "24.16.12120",
4
4
  "description": "user-service-client-grpcweb",
5
5
  "author": "Sniip Development Team",
6
6
  "license": "MIT",