@sniipwebmaster/user-service-client-grpcweb-ts 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.
@@ -4082,6 +4082,49 @@ export class SniipUserServiceServiceClient {
4082
4082
  this.methodDescriptorSendSmsCustomer);
4083
4083
  }
4084
4084
 
4085
+ methodDescriptorSendBulkNotification = new grpcWeb.MethodDescriptor(
4086
+ '/sniipuserservice.SniipUserServiceService/SendBulkNotification',
4087
+ grpcWeb.MethodType.UNARY,
4088
+ service_pb.BulkNotificationRequest,
4089
+ service_pb.ResponseCode,
4090
+ (request: service_pb.BulkNotificationRequest) => {
4091
+ return request.serializeBinary();
4092
+ },
4093
+ service_pb.ResponseCode.deserializeBinary
4094
+ );
4095
+
4096
+ sendBulkNotification(
4097
+ request: service_pb.BulkNotificationRequest,
4098
+ metadata?: grpcWeb.Metadata | null): Promise<service_pb.ResponseCode>;
4099
+
4100
+ sendBulkNotification(
4101
+ request: service_pb.BulkNotificationRequest,
4102
+ metadata: grpcWeb.Metadata | null,
4103
+ callback: (err: grpcWeb.RpcError,
4104
+ response: service_pb.ResponseCode) => void): grpcWeb.ClientReadableStream<service_pb.ResponseCode>;
4105
+
4106
+ sendBulkNotification(
4107
+ request: service_pb.BulkNotificationRequest,
4108
+ metadata?: grpcWeb.Metadata | null,
4109
+ callback?: (err: grpcWeb.RpcError,
4110
+ response: service_pb.ResponseCode) => void) {
4111
+ if (callback !== undefined) {
4112
+ return this.client_.rpcCall(
4113
+ this.hostname_ +
4114
+ '/sniipuserservice.SniipUserServiceService/SendBulkNotification',
4115
+ request,
4116
+ metadata || {},
4117
+ this.methodDescriptorSendBulkNotification,
4118
+ callback);
4119
+ }
4120
+ return this.client_.unaryCall(
4121
+ this.hostname_ +
4122
+ '/sniipuserservice.SniipUserServiceService/SendBulkNotification',
4123
+ request,
4124
+ metadata || {},
4125
+ this.methodDescriptorSendBulkNotification);
4126
+ }
4127
+
4085
4128
  methodDescriptorSendVerificationEmail = new grpcWeb.MethodDescriptor(
4086
4129
  '/sniipuserservice.SniipUserServiceService/SendVerificationEmail',
4087
4130
  grpcWeb.MethodType.UNARY,
@@ -3828,6 +3828,47 @@ export namespace SearchUsersV2Request {
3828
3828
  }
3829
3829
  }
3830
3830
 
3831
+ export class BulkNotificationRequest extends jspb.Message {
3832
+ getType(): BulkNotificationRequest.NotificationType;
3833
+ setType(value: BulkNotificationRequest.NotificationType): BulkNotificationRequest;
3834
+
3835
+ getTitle(): string;
3836
+ setTitle(value: string): BulkNotificationRequest;
3837
+
3838
+ getMessage(): string;
3839
+ setMessage(value: string): BulkNotificationRequest;
3840
+
3841
+ getPassword(): string;
3842
+ setPassword(value: string): BulkNotificationRequest;
3843
+
3844
+ getUseridsList(): Array<number>;
3845
+ setUseridsList(value: Array<number>): BulkNotificationRequest;
3846
+ clearUseridsList(): BulkNotificationRequest;
3847
+ addUserids(value: number, index?: number): BulkNotificationRequest;
3848
+
3849
+ serializeBinary(): Uint8Array;
3850
+ toObject(includeInstance?: boolean): BulkNotificationRequest.AsObject;
3851
+ static toObject(includeInstance: boolean, msg: BulkNotificationRequest): BulkNotificationRequest.AsObject;
3852
+ static serializeBinaryToWriter(message: BulkNotificationRequest, writer: jspb.BinaryWriter): void;
3853
+ static deserializeBinary(bytes: Uint8Array): BulkNotificationRequest;
3854
+ static deserializeBinaryFromReader(message: BulkNotificationRequest, reader: jspb.BinaryReader): BulkNotificationRequest;
3855
+ }
3856
+
3857
+ export namespace BulkNotificationRequest {
3858
+ export type AsObject = {
3859
+ type: BulkNotificationRequest.NotificationType,
3860
+ title: string,
3861
+ message: string,
3862
+ password: string,
3863
+ useridsList: Array<number>,
3864
+ }
3865
+
3866
+ export enum NotificationType {
3867
+ PUSH = 0,
3868
+ SMS = 1,
3869
+ }
3870
+ }
3871
+
3831
3872
  export class SendCustomerNotificationRequest extends jspb.Message {
3832
3873
  getUserid(): number;
3833
3874
  setUserid(value: number): SendCustomerNotificationRequest;
@@ -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-ts",
3
- "version": "25.3.12454",
3
+ "version": "25.3.12479",
4
4
  "description": "user-service-client-grpcweb-ts",
5
5
  "author": "Sniip Development Team",
6
6
  "license": "MIT",