@sniipwebmaster/user-service-client-grpcweb 26.4.14267 → 26.4.14306

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.
@@ -9350,5 +9350,66 @@ proto.sniipuserservice.SniipUserServiceServicePromiseClient.prototype.recordKycD
9350
9350
  };
9351
9351
 
9352
9352
 
9353
+ /**
9354
+ * @const
9355
+ * @type {!grpc.web.MethodDescriptor<
9356
+ * !proto.google.protobuf.Empty,
9357
+ * !proto.sniipuserservice.GetCallerIpResponse>}
9358
+ */
9359
+ const methodDescriptor_SniipUserServiceService_GetCallerIp = new grpc.web.MethodDescriptor(
9360
+ '/sniipuserservice.SniipUserServiceService/GetCallerIp',
9361
+ grpc.web.MethodType.UNARY,
9362
+ google_protobuf_empty_pb.Empty,
9363
+ proto.sniipuserservice.GetCallerIpResponse,
9364
+ /**
9365
+ * @param {!proto.google.protobuf.Empty} request
9366
+ * @return {!Uint8Array}
9367
+ */
9368
+ function(request) {
9369
+ return request.serializeBinary();
9370
+ },
9371
+ proto.sniipuserservice.GetCallerIpResponse.deserializeBinary
9372
+ );
9373
+
9374
+
9375
+ /**
9376
+ * @param {!proto.google.protobuf.Empty} request The
9377
+ * request proto
9378
+ * @param {?Object<string, string>} metadata User defined
9379
+ * call metadata
9380
+ * @param {function(?grpc.web.RpcError, ?proto.sniipuserservice.GetCallerIpResponse)}
9381
+ * callback The callback function(error, response)
9382
+ * @return {!grpc.web.ClientReadableStream<!proto.sniipuserservice.GetCallerIpResponse>|undefined}
9383
+ * The XHR Node Readable Stream
9384
+ */
9385
+ proto.sniipuserservice.SniipUserServiceServiceClient.prototype.getCallerIp =
9386
+ function(request, metadata, callback) {
9387
+ return this.client_.rpcCall(this.hostname_ +
9388
+ '/sniipuserservice.SniipUserServiceService/GetCallerIp',
9389
+ request,
9390
+ metadata || {},
9391
+ methodDescriptor_SniipUserServiceService_GetCallerIp,
9392
+ callback);
9393
+ };
9394
+
9395
+
9396
+ /**
9397
+ * @param {!proto.google.protobuf.Empty} request The
9398
+ * request proto
9399
+ * @param {?Object<string, string>=} metadata User defined
9400
+ * call metadata
9401
+ * @return {!Promise<!proto.sniipuserservice.GetCallerIpResponse>}
9402
+ * Promise that resolves to the response
9403
+ */
9404
+ proto.sniipuserservice.SniipUserServiceServicePromiseClient.prototype.getCallerIp =
9405
+ function(request, metadata) {
9406
+ return this.client_.unaryCall(this.hostname_ +
9407
+ '/sniipuserservice.SniipUserServiceService/GetCallerIp',
9408
+ request,
9409
+ metadata || {},
9410
+ methodDescriptor_SniipUserServiceService_GetCallerIp);
9411
+ };
9412
+
9413
+
9353
9414
  module.exports = proto.sniipuserservice;
9354
9415
 
@@ -80,6 +80,7 @@ goog.exportSymbol('proto.sniipuserservice.File', null, global);
80
80
  goog.exportSymbol('proto.sniipuserservice.FileUploadRequest', null, global);
81
81
  goog.exportSymbol('proto.sniipuserservice.GetAssignedPermissionRolesRequest', null, global);
82
82
  goog.exportSymbol('proto.sniipuserservice.GetAvailablePermissionRolesRequest', null, global);
83
+ goog.exportSymbol('proto.sniipuserservice.GetCallerIpResponse', null, global);
83
84
  goog.exportSymbol('proto.sniipuserservice.GetDuplicatesUsersRequest', null, global);
84
85
  goog.exportSymbol('proto.sniipuserservice.GetInternalProfileByApiKeyRequest', null, global);
85
86
  goog.exportSymbol('proto.sniipuserservice.GetInternalProfileFromEmailRequest', null, global);
@@ -4868,6 +4869,27 @@ if (goog.DEBUG && !COMPILED) {
4868
4869
  */
4869
4870
  proto.sniipuserservice.RecordKycDownloadResponse.displayName = 'proto.sniipuserservice.RecordKycDownloadResponse';
4870
4871
  }
4872
+ /**
4873
+ * Generated by JsPbCodeGenerator.
4874
+ * @param {Array=} opt_data Optional initial data array, typically from a
4875
+ * server response, or constructed directly in Javascript. The array is used
4876
+ * in place and becomes part of the constructed object. It is not cloned.
4877
+ * If no data is provided, the constructed object will be empty, but still
4878
+ * valid.
4879
+ * @extends {jspb.Message}
4880
+ * @constructor
4881
+ */
4882
+ proto.sniipuserservice.GetCallerIpResponse = function(opt_data) {
4883
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4884
+ };
4885
+ goog.inherits(proto.sniipuserservice.GetCallerIpResponse, jspb.Message);
4886
+ if (goog.DEBUG && !COMPILED) {
4887
+ /**
4888
+ * @public
4889
+ * @override
4890
+ */
4891
+ proto.sniipuserservice.GetCallerIpResponse.displayName = 'proto.sniipuserservice.GetCallerIpResponse';
4892
+ }
4871
4893
 
4872
4894
 
4873
4895
 
@@ -53670,6 +53692,247 @@ proto.sniipuserservice.RecordKycDownloadResponse.prototype.setAccountLocked = fu
53670
53692
  };
53671
53693
 
53672
53694
 
53695
+
53696
+
53697
+
53698
+ if (jspb.Message.GENERATE_TO_OBJECT) {
53699
+ /**
53700
+ * Creates an object representation of this proto.
53701
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
53702
+ * Optional fields that are not set will be set to undefined.
53703
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
53704
+ * For the list of reserved names please see:
53705
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
53706
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
53707
+ * JSPB instance for transitional soy proto support:
53708
+ * http://goto/soy-param-migration
53709
+ * @return {!Object}
53710
+ */
53711
+ proto.sniipuserservice.GetCallerIpResponse.prototype.toObject = function(opt_includeInstance) {
53712
+ return proto.sniipuserservice.GetCallerIpResponse.toObject(opt_includeInstance, this);
53713
+ };
53714
+
53715
+
53716
+ /**
53717
+ * Static version of the {@see toObject} method.
53718
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
53719
+ * the JSPB instance for transitional soy proto support:
53720
+ * http://goto/soy-param-migration
53721
+ * @param {!proto.sniipuserservice.GetCallerIpResponse} msg The msg instance to transform.
53722
+ * @return {!Object}
53723
+ * @suppress {unusedLocalVariables} f is only used for nested messages
53724
+ */
53725
+ proto.sniipuserservice.GetCallerIpResponse.toObject = function(includeInstance, msg) {
53726
+ var f, obj = {
53727
+ responseCode: (f = msg.getResponseCode()) && proto.sniipuserservice.ResponseCode.toObject(includeInstance, f),
53728
+ forwardedForIp: jspb.Message.getFieldWithDefault(msg, 2, ""),
53729
+ transportIp: jspb.Message.getFieldWithDefault(msg, 3, ""),
53730
+ resolvedIp: jspb.Message.getFieldWithDefault(msg, 4, "")
53731
+ };
53732
+
53733
+ if (includeInstance) {
53734
+ obj.$jspbMessageInstance = msg;
53735
+ }
53736
+ return obj;
53737
+ };
53738
+ }
53739
+
53740
+
53741
+ /**
53742
+ * Deserializes binary data (in protobuf wire format).
53743
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
53744
+ * @return {!proto.sniipuserservice.GetCallerIpResponse}
53745
+ */
53746
+ proto.sniipuserservice.GetCallerIpResponse.deserializeBinary = function(bytes) {
53747
+ var reader = new jspb.BinaryReader(bytes);
53748
+ var msg = new proto.sniipuserservice.GetCallerIpResponse;
53749
+ return proto.sniipuserservice.GetCallerIpResponse.deserializeBinaryFromReader(msg, reader);
53750
+ };
53751
+
53752
+
53753
+ /**
53754
+ * Deserializes binary data (in protobuf wire format) from the
53755
+ * given reader into the given message object.
53756
+ * @param {!proto.sniipuserservice.GetCallerIpResponse} msg The message object to deserialize into.
53757
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
53758
+ * @return {!proto.sniipuserservice.GetCallerIpResponse}
53759
+ */
53760
+ proto.sniipuserservice.GetCallerIpResponse.deserializeBinaryFromReader = function(msg, reader) {
53761
+ while (reader.nextField()) {
53762
+ if (reader.isEndGroup()) {
53763
+ break;
53764
+ }
53765
+ var field = reader.getFieldNumber();
53766
+ switch (field) {
53767
+ case 1:
53768
+ var value = new proto.sniipuserservice.ResponseCode;
53769
+ reader.readMessage(value,proto.sniipuserservice.ResponseCode.deserializeBinaryFromReader);
53770
+ msg.setResponseCode(value);
53771
+ break;
53772
+ case 2:
53773
+ var value = /** @type {string} */ (reader.readString());
53774
+ msg.setForwardedForIp(value);
53775
+ break;
53776
+ case 3:
53777
+ var value = /** @type {string} */ (reader.readString());
53778
+ msg.setTransportIp(value);
53779
+ break;
53780
+ case 4:
53781
+ var value = /** @type {string} */ (reader.readString());
53782
+ msg.setResolvedIp(value);
53783
+ break;
53784
+ default:
53785
+ reader.skipField();
53786
+ break;
53787
+ }
53788
+ }
53789
+ return msg;
53790
+ };
53791
+
53792
+
53793
+ /**
53794
+ * Serializes the message to binary data (in protobuf wire format).
53795
+ * @return {!Uint8Array}
53796
+ */
53797
+ proto.sniipuserservice.GetCallerIpResponse.prototype.serializeBinary = function() {
53798
+ var writer = new jspb.BinaryWriter();
53799
+ proto.sniipuserservice.GetCallerIpResponse.serializeBinaryToWriter(this, writer);
53800
+ return writer.getResultBuffer();
53801
+ };
53802
+
53803
+
53804
+ /**
53805
+ * Serializes the given message to binary data (in protobuf wire
53806
+ * format), writing to the given BinaryWriter.
53807
+ * @param {!proto.sniipuserservice.GetCallerIpResponse} message
53808
+ * @param {!jspb.BinaryWriter} writer
53809
+ * @suppress {unusedLocalVariables} f is only used for nested messages
53810
+ */
53811
+ proto.sniipuserservice.GetCallerIpResponse.serializeBinaryToWriter = function(message, writer) {
53812
+ var f = undefined;
53813
+ f = message.getResponseCode();
53814
+ if (f != null) {
53815
+ writer.writeMessage(
53816
+ 1,
53817
+ f,
53818
+ proto.sniipuserservice.ResponseCode.serializeBinaryToWriter
53819
+ );
53820
+ }
53821
+ f = message.getForwardedForIp();
53822
+ if (f.length > 0) {
53823
+ writer.writeString(
53824
+ 2,
53825
+ f
53826
+ );
53827
+ }
53828
+ f = message.getTransportIp();
53829
+ if (f.length > 0) {
53830
+ writer.writeString(
53831
+ 3,
53832
+ f
53833
+ );
53834
+ }
53835
+ f = message.getResolvedIp();
53836
+ if (f.length > 0) {
53837
+ writer.writeString(
53838
+ 4,
53839
+ f
53840
+ );
53841
+ }
53842
+ };
53843
+
53844
+
53845
+ /**
53846
+ * optional ResponseCode response_code = 1;
53847
+ * @return {?proto.sniipuserservice.ResponseCode}
53848
+ */
53849
+ proto.sniipuserservice.GetCallerIpResponse.prototype.getResponseCode = function() {
53850
+ return /** @type{?proto.sniipuserservice.ResponseCode} */ (
53851
+ jspb.Message.getWrapperField(this, proto.sniipuserservice.ResponseCode, 1));
53852
+ };
53853
+
53854
+
53855
+ /**
53856
+ * @param {?proto.sniipuserservice.ResponseCode|undefined} value
53857
+ * @return {!proto.sniipuserservice.GetCallerIpResponse} returns this
53858
+ */
53859
+ proto.sniipuserservice.GetCallerIpResponse.prototype.setResponseCode = function(value) {
53860
+ return jspb.Message.setWrapperField(this, 1, value);
53861
+ };
53862
+
53863
+
53864
+ /**
53865
+ * Clears the message field making it undefined.
53866
+ * @return {!proto.sniipuserservice.GetCallerIpResponse} returns this
53867
+ */
53868
+ proto.sniipuserservice.GetCallerIpResponse.prototype.clearResponseCode = function() {
53869
+ return this.setResponseCode(undefined);
53870
+ };
53871
+
53872
+
53873
+ /**
53874
+ * Returns whether this field is set.
53875
+ * @return {boolean}
53876
+ */
53877
+ proto.sniipuserservice.GetCallerIpResponse.prototype.hasResponseCode = function() {
53878
+ return jspb.Message.getField(this, 1) != null;
53879
+ };
53880
+
53881
+
53882
+ /**
53883
+ * optional string forwarded_for_ip = 2;
53884
+ * @return {string}
53885
+ */
53886
+ proto.sniipuserservice.GetCallerIpResponse.prototype.getForwardedForIp = function() {
53887
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
53888
+ };
53889
+
53890
+
53891
+ /**
53892
+ * @param {string} value
53893
+ * @return {!proto.sniipuserservice.GetCallerIpResponse} returns this
53894
+ */
53895
+ proto.sniipuserservice.GetCallerIpResponse.prototype.setForwardedForIp = function(value) {
53896
+ return jspb.Message.setProto3StringField(this, 2, value);
53897
+ };
53898
+
53899
+
53900
+ /**
53901
+ * optional string transport_ip = 3;
53902
+ * @return {string}
53903
+ */
53904
+ proto.sniipuserservice.GetCallerIpResponse.prototype.getTransportIp = function() {
53905
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
53906
+ };
53907
+
53908
+
53909
+ /**
53910
+ * @param {string} value
53911
+ * @return {!proto.sniipuserservice.GetCallerIpResponse} returns this
53912
+ */
53913
+ proto.sniipuserservice.GetCallerIpResponse.prototype.setTransportIp = function(value) {
53914
+ return jspb.Message.setProto3StringField(this, 3, value);
53915
+ };
53916
+
53917
+
53918
+ /**
53919
+ * optional string resolved_ip = 4;
53920
+ * @return {string}
53921
+ */
53922
+ proto.sniipuserservice.GetCallerIpResponse.prototype.getResolvedIp = function() {
53923
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
53924
+ };
53925
+
53926
+
53927
+ /**
53928
+ * @param {string} value
53929
+ * @return {!proto.sniipuserservice.GetCallerIpResponse} returns this
53930
+ */
53931
+ proto.sniipuserservice.GetCallerIpResponse.prototype.setResolvedIp = function(value) {
53932
+ return jspb.Message.setProto3StringField(this, 4, value);
53933
+ };
53934
+
53935
+
53673
53936
  /**
53674
53937
  * @enum {number}
53675
53938
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sniipwebmaster/user-service-client-grpcweb",
3
- "version": "26.4.14267",
3
+ "version": "26.4.14306",
4
4
  "description": "user-service-client-grpcweb",
5
5
  "author": "Sniip Development Team",
6
6
  "license": "MIT",