@sniipwebmaster/user-service-client-grpcweb 25.3.12454 → 25.3.12479

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.
@@ -5812,6 +5812,67 @@ proto.sniipuserservice.SniipUserServiceServicePromiseClient.prototype.sendSmsCus
5812
5812
  };
5813
5813
 
5814
5814
 
5815
+ /**
5816
+ * @const
5817
+ * @type {!grpc.web.MethodDescriptor<
5818
+ * !proto.sniipuserservice.BulkNotificationRequest,
5819
+ * !proto.sniipuserservice.ResponseCode>}
5820
+ */
5821
+ const methodDescriptor_SniipUserServiceService_SendBulkNotification = new grpc.web.MethodDescriptor(
5822
+ '/sniipuserservice.SniipUserServiceService/SendBulkNotification',
5823
+ grpc.web.MethodType.UNARY,
5824
+ proto.sniipuserservice.BulkNotificationRequest,
5825
+ proto.sniipuserservice.ResponseCode,
5826
+ /**
5827
+ * @param {!proto.sniipuserservice.BulkNotificationRequest} request
5828
+ * @return {!Uint8Array}
5829
+ */
5830
+ function(request) {
5831
+ return request.serializeBinary();
5832
+ },
5833
+ proto.sniipuserservice.ResponseCode.deserializeBinary
5834
+ );
5835
+
5836
+
5837
+ /**
5838
+ * @param {!proto.sniipuserservice.BulkNotificationRequest} request The
5839
+ * request proto
5840
+ * @param {?Object<string, string>} metadata User defined
5841
+ * call metadata
5842
+ * @param {function(?grpc.web.RpcError, ?proto.sniipuserservice.ResponseCode)}
5843
+ * callback The callback function(error, response)
5844
+ * @return {!grpc.web.ClientReadableStream<!proto.sniipuserservice.ResponseCode>|undefined}
5845
+ * The XHR Node Readable Stream
5846
+ */
5847
+ proto.sniipuserservice.SniipUserServiceServiceClient.prototype.sendBulkNotification =
5848
+ function(request, metadata, callback) {
5849
+ return this.client_.rpcCall(this.hostname_ +
5850
+ '/sniipuserservice.SniipUserServiceService/SendBulkNotification',
5851
+ request,
5852
+ metadata || {},
5853
+ methodDescriptor_SniipUserServiceService_SendBulkNotification,
5854
+ callback);
5855
+ };
5856
+
5857
+
5858
+ /**
5859
+ * @param {!proto.sniipuserservice.BulkNotificationRequest} request The
5860
+ * request proto
5861
+ * @param {?Object<string, string>=} metadata User defined
5862
+ * call metadata
5863
+ * @return {!Promise<!proto.sniipuserservice.ResponseCode>}
5864
+ * Promise that resolves to the response
5865
+ */
5866
+ proto.sniipuserservice.SniipUserServiceServicePromiseClient.prototype.sendBulkNotification =
5867
+ function(request, metadata) {
5868
+ return this.client_.unaryCall(this.hostname_ +
5869
+ '/sniipuserservice.SniipUserServiceService/SendBulkNotification',
5870
+ request,
5871
+ metadata || {},
5872
+ methodDescriptor_SniipUserServiceService_SendBulkNotification);
5873
+ };
5874
+
5875
+
5815
5876
  /**
5816
5877
  * @const
5817
5878
  * @type {!grpc.web.MethodDescriptor<
@@ -28,6 +28,8 @@ goog.exportSymbol('proto.sniipuserservice.AssignedPermissionRole', null, global)
28
28
  goog.exportSymbol('proto.sniipuserservice.AssignedPermissionRolesPaginationResponse', null, global);
29
29
  goog.exportSymbol('proto.sniipuserservice.BillerSignUpRequest', null, global);
30
30
  goog.exportSymbol('proto.sniipuserservice.BrowserDetails', null, global);
31
+ goog.exportSymbol('proto.sniipuserservice.BulkNotificationRequest', null, global);
32
+ goog.exportSymbol('proto.sniipuserservice.BulkNotificationRequest.NotificationType', null, global);
31
33
  goog.exportSymbol('proto.sniipuserservice.ChangePasswordRequest', null, global);
32
34
  goog.exportSymbol('proto.sniipuserservice.ChangePinRequest', null, global);
33
35
  goog.exportSymbol('proto.sniipuserservice.CheckEmailVerifiedRequest', null, global);
@@ -2932,6 +2934,27 @@ if (goog.DEBUG && !COMPILED) {
2932
2934
  */
2933
2935
  proto.sniipuserservice.SearchUsersV2Request.displayName = 'proto.sniipuserservice.SearchUsersV2Request';
2934
2936
  }
2937
+ /**
2938
+ * Generated by JsPbCodeGenerator.
2939
+ * @param {Array=} opt_data Optional initial data array, typically from a
2940
+ * server response, or constructed directly in Javascript. The array is used
2941
+ * in place and becomes part of the constructed object. It is not cloned.
2942
+ * If no data is provided, the constructed object will be empty, but still
2943
+ * valid.
2944
+ * @extends {jspb.Message}
2945
+ * @constructor
2946
+ */
2947
+ proto.sniipuserservice.BulkNotificationRequest = function(opt_data) {
2948
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.sniipuserservice.BulkNotificationRequest.repeatedFields_, null);
2949
+ };
2950
+ goog.inherits(proto.sniipuserservice.BulkNotificationRequest, jspb.Message);
2951
+ if (goog.DEBUG && !COMPILED) {
2952
+ /**
2953
+ * @public
2954
+ * @override
2955
+ */
2956
+ proto.sniipuserservice.BulkNotificationRequest.displayName = 'proto.sniipuserservice.BulkNotificationRequest';
2957
+ }
2935
2958
  /**
2936
2959
  * Generated by JsPbCodeGenerator.
2937
2960
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -32941,6 +32964,292 @@ proto.sniipuserservice.SearchUsersV2Request.prototype.setAppaccounttypefilter =
32941
32964
 
32942
32965
 
32943
32966
 
32967
+ /**
32968
+ * List of repeated fields within this message type.
32969
+ * @private {!Array<number>}
32970
+ * @const
32971
+ */
32972
+ proto.sniipuserservice.BulkNotificationRequest.repeatedFields_ = [5];
32973
+
32974
+
32975
+
32976
+ if (jspb.Message.GENERATE_TO_OBJECT) {
32977
+ /**
32978
+ * Creates an object representation of this proto.
32979
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
32980
+ * Optional fields that are not set will be set to undefined.
32981
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
32982
+ * For the list of reserved names please see:
32983
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
32984
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
32985
+ * JSPB instance for transitional soy proto support:
32986
+ * http://goto/soy-param-migration
32987
+ * @return {!Object}
32988
+ */
32989
+ proto.sniipuserservice.BulkNotificationRequest.prototype.toObject = function(opt_includeInstance) {
32990
+ return proto.sniipuserservice.BulkNotificationRequest.toObject(opt_includeInstance, this);
32991
+ };
32992
+
32993
+
32994
+ /**
32995
+ * Static version of the {@see toObject} method.
32996
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
32997
+ * the JSPB instance for transitional soy proto support:
32998
+ * http://goto/soy-param-migration
32999
+ * @param {!proto.sniipuserservice.BulkNotificationRequest} msg The msg instance to transform.
33000
+ * @return {!Object}
33001
+ * @suppress {unusedLocalVariables} f is only used for nested messages
33002
+ */
33003
+ proto.sniipuserservice.BulkNotificationRequest.toObject = function(includeInstance, msg) {
33004
+ var f, obj = {
33005
+ type: jspb.Message.getFieldWithDefault(msg, 1, 0),
33006
+ title: jspb.Message.getFieldWithDefault(msg, 2, ""),
33007
+ message: jspb.Message.getFieldWithDefault(msg, 3, ""),
33008
+ password: jspb.Message.getFieldWithDefault(msg, 4, ""),
33009
+ useridsList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f
33010
+ };
33011
+
33012
+ if (includeInstance) {
33013
+ obj.$jspbMessageInstance = msg;
33014
+ }
33015
+ return obj;
33016
+ };
33017
+ }
33018
+
33019
+
33020
+ /**
33021
+ * Deserializes binary data (in protobuf wire format).
33022
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
33023
+ * @return {!proto.sniipuserservice.BulkNotificationRequest}
33024
+ */
33025
+ proto.sniipuserservice.BulkNotificationRequest.deserializeBinary = function(bytes) {
33026
+ var reader = new jspb.BinaryReader(bytes);
33027
+ var msg = new proto.sniipuserservice.BulkNotificationRequest;
33028
+ return proto.sniipuserservice.BulkNotificationRequest.deserializeBinaryFromReader(msg, reader);
33029
+ };
33030
+
33031
+
33032
+ /**
33033
+ * Deserializes binary data (in protobuf wire format) from the
33034
+ * given reader into the given message object.
33035
+ * @param {!proto.sniipuserservice.BulkNotificationRequest} msg The message object to deserialize into.
33036
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
33037
+ * @return {!proto.sniipuserservice.BulkNotificationRequest}
33038
+ */
33039
+ proto.sniipuserservice.BulkNotificationRequest.deserializeBinaryFromReader = function(msg, reader) {
33040
+ while (reader.nextField()) {
33041
+ if (reader.isEndGroup()) {
33042
+ break;
33043
+ }
33044
+ var field = reader.getFieldNumber();
33045
+ switch (field) {
33046
+ case 1:
33047
+ var value = /** @type {!proto.sniipuserservice.BulkNotificationRequest.NotificationType} */ (reader.readEnum());
33048
+ msg.setType(value);
33049
+ break;
33050
+ case 2:
33051
+ var value = /** @type {string} */ (reader.readString());
33052
+ msg.setTitle(value);
33053
+ break;
33054
+ case 3:
33055
+ var value = /** @type {string} */ (reader.readString());
33056
+ msg.setMessage(value);
33057
+ break;
33058
+ case 4:
33059
+ var value = /** @type {string} */ (reader.readString());
33060
+ msg.setPassword(value);
33061
+ break;
33062
+ case 5:
33063
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt64() : [reader.readInt64()]);
33064
+ for (var i = 0; i < values.length; i++) {
33065
+ msg.addUserids(values[i]);
33066
+ }
33067
+ break;
33068
+ default:
33069
+ reader.skipField();
33070
+ break;
33071
+ }
33072
+ }
33073
+ return msg;
33074
+ };
33075
+
33076
+
33077
+ /**
33078
+ * Serializes the message to binary data (in protobuf wire format).
33079
+ * @return {!Uint8Array}
33080
+ */
33081
+ proto.sniipuserservice.BulkNotificationRequest.prototype.serializeBinary = function() {
33082
+ var writer = new jspb.BinaryWriter();
33083
+ proto.sniipuserservice.BulkNotificationRequest.serializeBinaryToWriter(this, writer);
33084
+ return writer.getResultBuffer();
33085
+ };
33086
+
33087
+
33088
+ /**
33089
+ * Serializes the given message to binary data (in protobuf wire
33090
+ * format), writing to the given BinaryWriter.
33091
+ * @param {!proto.sniipuserservice.BulkNotificationRequest} message
33092
+ * @param {!jspb.BinaryWriter} writer
33093
+ * @suppress {unusedLocalVariables} f is only used for nested messages
33094
+ */
33095
+ proto.sniipuserservice.BulkNotificationRequest.serializeBinaryToWriter = function(message, writer) {
33096
+ var f = undefined;
33097
+ f = message.getType();
33098
+ if (f !== 0.0) {
33099
+ writer.writeEnum(
33100
+ 1,
33101
+ f
33102
+ );
33103
+ }
33104
+ f = message.getTitle();
33105
+ if (f.length > 0) {
33106
+ writer.writeString(
33107
+ 2,
33108
+ f
33109
+ );
33110
+ }
33111
+ f = message.getMessage();
33112
+ if (f.length > 0) {
33113
+ writer.writeString(
33114
+ 3,
33115
+ f
33116
+ );
33117
+ }
33118
+ f = message.getPassword();
33119
+ if (f.length > 0) {
33120
+ writer.writeString(
33121
+ 4,
33122
+ f
33123
+ );
33124
+ }
33125
+ f = message.getUseridsList();
33126
+ if (f.length > 0) {
33127
+ writer.writePackedInt64(
33128
+ 5,
33129
+ f
33130
+ );
33131
+ }
33132
+ };
33133
+
33134
+
33135
+ /**
33136
+ * @enum {number}
33137
+ */
33138
+ proto.sniipuserservice.BulkNotificationRequest.NotificationType = {
33139
+ PUSH: 0,
33140
+ SMS: 1
33141
+ };
33142
+
33143
+ /**
33144
+ * optional NotificationType type = 1;
33145
+ * @return {!proto.sniipuserservice.BulkNotificationRequest.NotificationType}
33146
+ */
33147
+ proto.sniipuserservice.BulkNotificationRequest.prototype.getType = function() {
33148
+ return /** @type {!proto.sniipuserservice.BulkNotificationRequest.NotificationType} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
33149
+ };
33150
+
33151
+
33152
+ /**
33153
+ * @param {!proto.sniipuserservice.BulkNotificationRequest.NotificationType} value
33154
+ * @return {!proto.sniipuserservice.BulkNotificationRequest} returns this
33155
+ */
33156
+ proto.sniipuserservice.BulkNotificationRequest.prototype.setType = function(value) {
33157
+ return jspb.Message.setProto3EnumField(this, 1, value);
33158
+ };
33159
+
33160
+
33161
+ /**
33162
+ * optional string title = 2;
33163
+ * @return {string}
33164
+ */
33165
+ proto.sniipuserservice.BulkNotificationRequest.prototype.getTitle = function() {
33166
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
33167
+ };
33168
+
33169
+
33170
+ /**
33171
+ * @param {string} value
33172
+ * @return {!proto.sniipuserservice.BulkNotificationRequest} returns this
33173
+ */
33174
+ proto.sniipuserservice.BulkNotificationRequest.prototype.setTitle = function(value) {
33175
+ return jspb.Message.setProto3StringField(this, 2, value);
33176
+ };
33177
+
33178
+
33179
+ /**
33180
+ * optional string message = 3;
33181
+ * @return {string}
33182
+ */
33183
+ proto.sniipuserservice.BulkNotificationRequest.prototype.getMessage = function() {
33184
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
33185
+ };
33186
+
33187
+
33188
+ /**
33189
+ * @param {string} value
33190
+ * @return {!proto.sniipuserservice.BulkNotificationRequest} returns this
33191
+ */
33192
+ proto.sniipuserservice.BulkNotificationRequest.prototype.setMessage = function(value) {
33193
+ return jspb.Message.setProto3StringField(this, 3, value);
33194
+ };
33195
+
33196
+
33197
+ /**
33198
+ * optional string password = 4;
33199
+ * @return {string}
33200
+ */
33201
+ proto.sniipuserservice.BulkNotificationRequest.prototype.getPassword = function() {
33202
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
33203
+ };
33204
+
33205
+
33206
+ /**
33207
+ * @param {string} value
33208
+ * @return {!proto.sniipuserservice.BulkNotificationRequest} returns this
33209
+ */
33210
+ proto.sniipuserservice.BulkNotificationRequest.prototype.setPassword = function(value) {
33211
+ return jspb.Message.setProto3StringField(this, 4, value);
33212
+ };
33213
+
33214
+
33215
+ /**
33216
+ * repeated int64 userIds = 5;
33217
+ * @return {!Array<number>}
33218
+ */
33219
+ proto.sniipuserservice.BulkNotificationRequest.prototype.getUseridsList = function() {
33220
+ return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 5));
33221
+ };
33222
+
33223
+
33224
+ /**
33225
+ * @param {!Array<number>} value
33226
+ * @return {!proto.sniipuserservice.BulkNotificationRequest} returns this
33227
+ */
33228
+ proto.sniipuserservice.BulkNotificationRequest.prototype.setUseridsList = function(value) {
33229
+ return jspb.Message.setField(this, 5, value || []);
33230
+ };
33231
+
33232
+
33233
+ /**
33234
+ * @param {number} value
33235
+ * @param {number=} opt_index
33236
+ * @return {!proto.sniipuserservice.BulkNotificationRequest} returns this
33237
+ */
33238
+ proto.sniipuserservice.BulkNotificationRequest.prototype.addUserids = function(value, opt_index) {
33239
+ return jspb.Message.addToRepeatedField(this, 5, value, opt_index);
33240
+ };
33241
+
33242
+
33243
+ /**
33244
+ * Clears the list making it empty but non-null.
33245
+ * @return {!proto.sniipuserservice.BulkNotificationRequest} returns this
33246
+ */
33247
+ proto.sniipuserservice.BulkNotificationRequest.prototype.clearUseridsList = function() {
33248
+ return this.setUseridsList([]);
33249
+ };
33250
+
33251
+
33252
+
32944
33253
 
32945
33254
 
32946
33255
  if (jspb.Message.GENERATE_TO_OBJECT) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sniipwebmaster/user-service-client-grpcweb",
3
- "version": "25.3.12454",
3
+ "version": "25.3.12479",
4
4
  "description": "user-service-client-grpcweb",
5
5
  "author": "Sniip Development Team",
6
6
  "license": "MIT",