@sniipwebmaster/user-service-client-grpcweb 22.15.8167 → 22.17.8202

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.
@@ -6794,6 +6794,86 @@ proto.sniipuserservice.SniipUserServiceServicePromiseClient.prototype.searchUser
6794
6794
  };
6795
6795
 
6796
6796
 
6797
+ /**
6798
+ * @const
6799
+ * @type {!grpc.web.MethodDescriptor<
6800
+ * !proto.sniipuserservice.SearchUsersByRoleRequest,
6801
+ * !proto.sniipuserservice.SearchUsersResponse>}
6802
+ */
6803
+ const methodDescriptor_SniipUserServiceService_SearchUsersByRole = new grpc.web.MethodDescriptor(
6804
+ '/sniipuserservice.SniipUserServiceService/SearchUsersByRole',
6805
+ grpc.web.MethodType.UNARY,
6806
+ proto.sniipuserservice.SearchUsersByRoleRequest,
6807
+ proto.sniipuserservice.SearchUsersResponse,
6808
+ /**
6809
+ * @param {!proto.sniipuserservice.SearchUsersByRoleRequest} request
6810
+ * @return {!Uint8Array}
6811
+ */
6812
+ function(request) {
6813
+ return request.serializeBinary();
6814
+ },
6815
+ proto.sniipuserservice.SearchUsersResponse.deserializeBinary
6816
+ );
6817
+
6818
+
6819
+ /**
6820
+ * @const
6821
+ * @type {!grpc.web.AbstractClientBase.MethodInfo<
6822
+ * !proto.sniipuserservice.SearchUsersByRoleRequest,
6823
+ * !proto.sniipuserservice.SearchUsersResponse>}
6824
+ */
6825
+ const methodInfo_SniipUserServiceService_SearchUsersByRole = new grpc.web.AbstractClientBase.MethodInfo(
6826
+ proto.sniipuserservice.SearchUsersResponse,
6827
+ /**
6828
+ * @param {!proto.sniipuserservice.SearchUsersByRoleRequest} request
6829
+ * @return {!Uint8Array}
6830
+ */
6831
+ function(request) {
6832
+ return request.serializeBinary();
6833
+ },
6834
+ proto.sniipuserservice.SearchUsersResponse.deserializeBinary
6835
+ );
6836
+
6837
+
6838
+ /**
6839
+ * @param {!proto.sniipuserservice.SearchUsersByRoleRequest} request The
6840
+ * request proto
6841
+ * @param {?Object<string, string>} metadata User defined
6842
+ * call metadata
6843
+ * @param {function(?grpc.web.Error, ?proto.sniipuserservice.SearchUsersResponse)}
6844
+ * callback The callback function(error, response)
6845
+ * @return {!grpc.web.ClientReadableStream<!proto.sniipuserservice.SearchUsersResponse>|undefined}
6846
+ * The XHR Node Readable Stream
6847
+ */
6848
+ proto.sniipuserservice.SniipUserServiceServiceClient.prototype.searchUsersByRole =
6849
+ function(request, metadata, callback) {
6850
+ return this.client_.rpcCall(this.hostname_ +
6851
+ '/sniipuserservice.SniipUserServiceService/SearchUsersByRole',
6852
+ request,
6853
+ metadata || {},
6854
+ methodDescriptor_SniipUserServiceService_SearchUsersByRole,
6855
+ callback);
6856
+ };
6857
+
6858
+
6859
+ /**
6860
+ * @param {!proto.sniipuserservice.SearchUsersByRoleRequest} request The
6861
+ * request proto
6862
+ * @param {?Object<string, string>} metadata User defined
6863
+ * call metadata
6864
+ * @return {!Promise<!proto.sniipuserservice.SearchUsersResponse>}
6865
+ * Promise that resolves to the response
6866
+ */
6867
+ proto.sniipuserservice.SniipUserServiceServicePromiseClient.prototype.searchUsersByRole =
6868
+ function(request, metadata) {
6869
+ return this.client_.unaryCall(this.hostname_ +
6870
+ '/sniipuserservice.SniipUserServiceService/SearchUsersByRole',
6871
+ request,
6872
+ metadata || {},
6873
+ methodDescriptor_SniipUserServiceService_SearchUsersByRole);
6874
+ };
6875
+
6876
+
6797
6877
  /**
6798
6878
  * @const
6799
6879
  * @type {!grpc.web.MethodDescriptor<
@@ -131,6 +131,7 @@ goog.exportSymbol('proto.sniipuserservice.ResetPasswordEmailRequest', null, glob
131
131
  goog.exportSymbol('proto.sniipuserservice.ResetPasswordMobileRequest', null, global);
132
132
  goog.exportSymbol('proto.sniipuserservice.ResetPinRequest', null, global);
133
133
  goog.exportSymbol('proto.sniipuserservice.ResponseCode', null, global);
134
+ goog.exportSymbol('proto.sniipuserservice.SearchUsersByRoleRequest', null, global);
134
135
  goog.exportSymbol('proto.sniipuserservice.SearchUsersRequest', null, global);
135
136
  goog.exportSymbol('proto.sniipuserservice.SearchUsersResponse', null, global);
136
137
  goog.exportSymbol('proto.sniipuserservice.SetPasswordEmailRequest', null, global);
@@ -27823,6 +27824,275 @@ proto.sniipuserservice.ResponseCode.prototype.setMessage = function(value) {
27823
27824
 
27824
27825
 
27825
27826
 
27827
+ /**
27828
+ * Generated by JsPbCodeGenerator.
27829
+ * @param {Array=} opt_data Optional initial data array, typically from a
27830
+ * server response, or constructed directly in Javascript. The array is used
27831
+ * in place and becomes part of the constructed object. It is not cloned.
27832
+ * If no data is provided, the constructed object will be empty, but still
27833
+ * valid.
27834
+ * @extends {jspb.Message}
27835
+ * @constructor
27836
+ */
27837
+ proto.sniipuserservice.SearchUsersByRoleRequest = function(opt_data) {
27838
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
27839
+ };
27840
+ goog.inherits(proto.sniipuserservice.SearchUsersByRoleRequest, jspb.Message);
27841
+ if (goog.DEBUG && !COMPILED) {
27842
+ proto.sniipuserservice.SearchUsersByRoleRequest.displayName = 'proto.sniipuserservice.SearchUsersByRoleRequest';
27843
+ }
27844
+
27845
+
27846
+ if (jspb.Message.GENERATE_TO_OBJECT) {
27847
+ /**
27848
+ * Creates an object representation of this proto suitable for use in Soy templates.
27849
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
27850
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
27851
+ * For the list of reserved names please see:
27852
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
27853
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
27854
+ * for transitional soy proto support: http://goto/soy-param-migration
27855
+ * @return {!Object}
27856
+ */
27857
+ proto.sniipuserservice.SearchUsersByRoleRequest.prototype.toObject = function(opt_includeInstance) {
27858
+ return proto.sniipuserservice.SearchUsersByRoleRequest.toObject(opt_includeInstance, this);
27859
+ };
27860
+
27861
+
27862
+ /**
27863
+ * Static version of the {@see toObject} method.
27864
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
27865
+ * instance for transitional soy proto support:
27866
+ * http://goto/soy-param-migration
27867
+ * @param {!proto.sniipuserservice.SearchUsersByRoleRequest} msg The msg instance to transform.
27868
+ * @return {!Object}
27869
+ */
27870
+ proto.sniipuserservice.SearchUsersByRoleRequest.toObject = function(includeInstance, msg) {
27871
+ var f, obj = {
27872
+ page: msg.getPage(),
27873
+ pagesize: msg.getPagesize(),
27874
+ query: msg.getQuery(),
27875
+ roleid: msg.getRoleid(),
27876
+ ismember: msg.getIsmember()
27877
+ };
27878
+
27879
+ if (includeInstance) {
27880
+ obj.$jspbMessageInstance = msg;
27881
+ }
27882
+ return obj;
27883
+ };
27884
+ }
27885
+
27886
+
27887
+ /**
27888
+ * Deserializes binary data (in protobuf wire format).
27889
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
27890
+ * @return {!proto.sniipuserservice.SearchUsersByRoleRequest}
27891
+ */
27892
+ proto.sniipuserservice.SearchUsersByRoleRequest.deserializeBinary = function(bytes) {
27893
+ var reader = new jspb.BinaryReader(bytes);
27894
+ var msg = new proto.sniipuserservice.SearchUsersByRoleRequest;
27895
+ return proto.sniipuserservice.SearchUsersByRoleRequest.deserializeBinaryFromReader(msg, reader);
27896
+ };
27897
+
27898
+
27899
+ /**
27900
+ * Deserializes binary data (in protobuf wire format) from the
27901
+ * given reader into the given message object.
27902
+ * @param {!proto.sniipuserservice.SearchUsersByRoleRequest} msg The message object to deserialize into.
27903
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
27904
+ * @return {!proto.sniipuserservice.SearchUsersByRoleRequest}
27905
+ */
27906
+ proto.sniipuserservice.SearchUsersByRoleRequest.deserializeBinaryFromReader = function(msg, reader) {
27907
+ while (reader.nextField()) {
27908
+ if (reader.isEndGroup()) {
27909
+ break;
27910
+ }
27911
+ var field = reader.getFieldNumber();
27912
+ switch (field) {
27913
+ case 1:
27914
+ var value = /** @type {number} */ (reader.readInt32());
27915
+ msg.setPage(value);
27916
+ break;
27917
+ case 2:
27918
+ var value = /** @type {number} */ (reader.readInt32());
27919
+ msg.setPagesize(value);
27920
+ break;
27921
+ case 3:
27922
+ var value = /** @type {string} */ (reader.readString());
27923
+ msg.setQuery(value);
27924
+ break;
27925
+ case 4:
27926
+ var value = /** @type {number} */ (reader.readInt64());
27927
+ msg.setRoleid(value);
27928
+ break;
27929
+ case 5:
27930
+ var value = /** @type {boolean} */ (reader.readBool());
27931
+ msg.setIsmember(value);
27932
+ break;
27933
+ default:
27934
+ reader.skipField();
27935
+ break;
27936
+ }
27937
+ }
27938
+ return msg;
27939
+ };
27940
+
27941
+
27942
+ /**
27943
+ * Class method variant: serializes the given message to binary data
27944
+ * (in protobuf wire format), writing to the given BinaryWriter.
27945
+ * @param {!proto.sniipuserservice.SearchUsersByRoleRequest} message
27946
+ * @param {!jspb.BinaryWriter} writer
27947
+ */
27948
+ proto.sniipuserservice.SearchUsersByRoleRequest.serializeBinaryToWriter = function(message, writer) {
27949
+ message.serializeBinaryToWriter(writer);
27950
+ };
27951
+
27952
+
27953
+ /**
27954
+ * Serializes the message to binary data (in protobuf wire format).
27955
+ * @return {!Uint8Array}
27956
+ */
27957
+ proto.sniipuserservice.SearchUsersByRoleRequest.prototype.serializeBinary = function() {
27958
+ var writer = new jspb.BinaryWriter();
27959
+ this.serializeBinaryToWriter(writer);
27960
+ return writer.getResultBuffer();
27961
+ };
27962
+
27963
+
27964
+ /**
27965
+ * Serializes the message to binary data (in protobuf wire format),
27966
+ * writing to the given BinaryWriter.
27967
+ * @param {!jspb.BinaryWriter} writer
27968
+ */
27969
+ proto.sniipuserservice.SearchUsersByRoleRequest.prototype.serializeBinaryToWriter = function (writer) {
27970
+ var f = undefined;
27971
+ f = this.getPage();
27972
+ if (f !== 0) {
27973
+ writer.writeInt32(
27974
+ 1,
27975
+ f
27976
+ );
27977
+ }
27978
+ f = this.getPagesize();
27979
+ if (f !== 0) {
27980
+ writer.writeInt32(
27981
+ 2,
27982
+ f
27983
+ );
27984
+ }
27985
+ f = this.getQuery();
27986
+ if (f.length > 0) {
27987
+ writer.writeString(
27988
+ 3,
27989
+ f
27990
+ );
27991
+ }
27992
+ f = this.getRoleid();
27993
+ if (f !== 0) {
27994
+ writer.writeInt64(
27995
+ 4,
27996
+ f
27997
+ );
27998
+ }
27999
+ f = this.getIsmember();
28000
+ if (f) {
28001
+ writer.writeBool(
28002
+ 5,
28003
+ f
28004
+ );
28005
+ }
28006
+ };
28007
+
28008
+
28009
+ /**
28010
+ * Creates a deep clone of this proto. No data is shared with the original.
28011
+ * @return {!proto.sniipuserservice.SearchUsersByRoleRequest} The clone.
28012
+ */
28013
+ proto.sniipuserservice.SearchUsersByRoleRequest.prototype.cloneMessage = function() {
28014
+ return /** @type {!proto.sniipuserservice.SearchUsersByRoleRequest} */ (jspb.Message.cloneMessage(this));
28015
+ };
28016
+
28017
+
28018
+ /**
28019
+ * optional int32 page = 1;
28020
+ * @return {number}
28021
+ */
28022
+ proto.sniipuserservice.SearchUsersByRoleRequest.prototype.getPage = function() {
28023
+ return /** @type {number} */ (jspb.Message.getFieldProto3(this, 1, 0));
28024
+ };
28025
+
28026
+
28027
+ /** @param {number} value */
28028
+ proto.sniipuserservice.SearchUsersByRoleRequest.prototype.setPage = function(value) {
28029
+ jspb.Message.setField(this, 1, value);
28030
+ };
28031
+
28032
+
28033
+ /**
28034
+ * optional int32 pageSize = 2;
28035
+ * @return {number}
28036
+ */
28037
+ proto.sniipuserservice.SearchUsersByRoleRequest.prototype.getPagesize = function() {
28038
+ return /** @type {number} */ (jspb.Message.getFieldProto3(this, 2, 0));
28039
+ };
28040
+
28041
+
28042
+ /** @param {number} value */
28043
+ proto.sniipuserservice.SearchUsersByRoleRequest.prototype.setPagesize = function(value) {
28044
+ jspb.Message.setField(this, 2, value);
28045
+ };
28046
+
28047
+
28048
+ /**
28049
+ * optional string query = 3;
28050
+ * @return {string}
28051
+ */
28052
+ proto.sniipuserservice.SearchUsersByRoleRequest.prototype.getQuery = function() {
28053
+ return /** @type {string} */ (jspb.Message.getFieldProto3(this, 3, ""));
28054
+ };
28055
+
28056
+
28057
+ /** @param {string} value */
28058
+ proto.sniipuserservice.SearchUsersByRoleRequest.prototype.setQuery = function(value) {
28059
+ jspb.Message.setField(this, 3, value);
28060
+ };
28061
+
28062
+
28063
+ /**
28064
+ * optional int64 roleId = 4;
28065
+ * @return {number}
28066
+ */
28067
+ proto.sniipuserservice.SearchUsersByRoleRequest.prototype.getRoleid = function() {
28068
+ return /** @type {number} */ (jspb.Message.getFieldProto3(this, 4, 0));
28069
+ };
28070
+
28071
+
28072
+ /** @param {number} value */
28073
+ proto.sniipuserservice.SearchUsersByRoleRequest.prototype.setRoleid = function(value) {
28074
+ jspb.Message.setField(this, 4, value);
28075
+ };
28076
+
28077
+
28078
+ /**
28079
+ * optional bool isMember = 5;
28080
+ * Note that Boolean fields may be set to 0/1 when serialized from a Java server.
28081
+ * You should avoid comparisons like {@code val === true/false} in those cases.
28082
+ * @return {boolean}
28083
+ */
28084
+ proto.sniipuserservice.SearchUsersByRoleRequest.prototype.getIsmember = function() {
28085
+ return /** @type {boolean} */ (jspb.Message.getFieldProto3(this, 5, false));
28086
+ };
28087
+
28088
+
28089
+ /** @param {boolean} value */
28090
+ proto.sniipuserservice.SearchUsersByRoleRequest.prototype.setIsmember = function(value) {
28091
+ jspb.Message.setField(this, 5, value);
28092
+ };
28093
+
28094
+
28095
+
27826
28096
  /**
27827
28097
  * Generated by JsPbCodeGenerator.
27828
28098
  * @param {Array=} opt_data Optional initial data array, typically from a
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sniipwebmaster/user-service-client-grpcweb",
3
- "version": "22.15.8167",
3
+ "version": "22.17.8202",
4
4
  "description": "user-service-client-grpcweb",
5
5
  "author": "Sniip Development Team",
6
6
  "license": "MIT",