@sniipwebmaster/user-service-client-grpcweb-ts 23.8.9941 → 23.8.9955

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.
@@ -5244,6 +5244,58 @@ export namespace VerifyPhoneRequest {
5244
5244
  }
5245
5245
  }
5246
5246
 
5247
+ export class FileUploadRequest extends jspb.Message {
5248
+ getName(): string;
5249
+ setName(value: string): FileUploadRequest;
5250
+
5251
+ getOriginalfilename(): string;
5252
+ setOriginalfilename(value: string): FileUploadRequest;
5253
+
5254
+ getContenttype(): string;
5255
+ setContenttype(value: string): FileUploadRequest;
5256
+
5257
+ getFile(): File | undefined;
5258
+ setFile(value?: File): FileUploadRequest;
5259
+ hasFile(): boolean;
5260
+ clearFile(): FileUploadRequest;
5261
+
5262
+ serializeBinary(): Uint8Array;
5263
+ toObject(includeInstance?: boolean): FileUploadRequest.AsObject;
5264
+ static toObject(includeInstance: boolean, msg: FileUploadRequest): FileUploadRequest.AsObject;
5265
+ static serializeBinaryToWriter(message: FileUploadRequest, writer: jspb.BinaryWriter): void;
5266
+ static deserializeBinary(bytes: Uint8Array): FileUploadRequest;
5267
+ static deserializeBinaryFromReader(message: FileUploadRequest, reader: jspb.BinaryReader): FileUploadRequest;
5268
+ }
5269
+
5270
+ export namespace FileUploadRequest {
5271
+ export type AsObject = {
5272
+ name: string,
5273
+ originalfilename: string,
5274
+ contenttype: string,
5275
+ file?: File.AsObject,
5276
+ }
5277
+ }
5278
+
5279
+ export class File extends jspb.Message {
5280
+ getContent(): Uint8Array | string;
5281
+ getContent_asU8(): Uint8Array;
5282
+ getContent_asB64(): string;
5283
+ setContent(value: Uint8Array | string): File;
5284
+
5285
+ serializeBinary(): Uint8Array;
5286
+ toObject(includeInstance?: boolean): File.AsObject;
5287
+ static toObject(includeInstance: boolean, msg: File): File.AsObject;
5288
+ static serializeBinaryToWriter(message: File, writer: jspb.BinaryWriter): void;
5289
+ static deserializeBinary(bytes: Uint8Array): File;
5290
+ static deserializeBinaryFromReader(message: File, reader: jspb.BinaryReader): File;
5291
+ }
5292
+
5293
+ export namespace File {
5294
+ export type AsObject = {
5295
+ content: Uint8Array | string,
5296
+ }
5297
+ }
5298
+
5247
5299
  export enum KycUserStatus {
5248
5300
  KYC_USER_PENDING_REVIEW = 0,
5249
5301
  KYC_USER_VERIFIED = 1,
@@ -62,6 +62,8 @@ goog.exportSymbol('proto.sniipuserservice.DuplicateUsers', null, global);
62
62
  goog.exportSymbol('proto.sniipuserservice.DuplicateUsersRequest', null, global);
63
63
  goog.exportSymbol('proto.sniipuserservice.DuplicateUsersResponse', null, global);
64
64
  goog.exportSymbol('proto.sniipuserservice.FeedbackRequest', null, global);
65
+ goog.exportSymbol('proto.sniipuserservice.File', null, global);
66
+ goog.exportSymbol('proto.sniipuserservice.FileUploadRequest', null, global);
65
67
  goog.exportSymbol('proto.sniipuserservice.GetAssignedPermissionRolesRequest', null, global);
66
68
  goog.exportSymbol('proto.sniipuserservice.GetAvailablePermissionRolesRequest', null, global);
67
69
  goog.exportSymbol('proto.sniipuserservice.GetDuplicatesUsersRequest', null, global);
@@ -4001,6 +4003,48 @@ if (goog.DEBUG && !COMPILED) {
4001
4003
  */
4002
4004
  proto.sniipuserservice.VerifyPhoneRequest.displayName = 'proto.sniipuserservice.VerifyPhoneRequest';
4003
4005
  }
4006
+ /**
4007
+ * Generated by JsPbCodeGenerator.
4008
+ * @param {Array=} opt_data Optional initial data array, typically from a
4009
+ * server response, or constructed directly in Javascript. The array is used
4010
+ * in place and becomes part of the constructed object. It is not cloned.
4011
+ * If no data is provided, the constructed object will be empty, but still
4012
+ * valid.
4013
+ * @extends {jspb.Message}
4014
+ * @constructor
4015
+ */
4016
+ proto.sniipuserservice.FileUploadRequest = function(opt_data) {
4017
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4018
+ };
4019
+ goog.inherits(proto.sniipuserservice.FileUploadRequest, jspb.Message);
4020
+ if (goog.DEBUG && !COMPILED) {
4021
+ /**
4022
+ * @public
4023
+ * @override
4024
+ */
4025
+ proto.sniipuserservice.FileUploadRequest.displayName = 'proto.sniipuserservice.FileUploadRequest';
4026
+ }
4027
+ /**
4028
+ * Generated by JsPbCodeGenerator.
4029
+ * @param {Array=} opt_data Optional initial data array, typically from a
4030
+ * server response, or constructed directly in Javascript. The array is used
4031
+ * in place and becomes part of the constructed object. It is not cloned.
4032
+ * If no data is provided, the constructed object will be empty, but still
4033
+ * valid.
4034
+ * @extends {jspb.Message}
4035
+ * @constructor
4036
+ */
4037
+ proto.sniipuserservice.File = function(opt_data) {
4038
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4039
+ };
4040
+ goog.inherits(proto.sniipuserservice.File, jspb.Message);
4041
+ if (goog.DEBUG && !COMPILED) {
4042
+ /**
4043
+ * @public
4044
+ * @override
4045
+ */
4046
+ proto.sniipuserservice.File.displayName = 'proto.sniipuserservice.File';
4047
+ }
4004
4048
 
4005
4049
 
4006
4050
 
@@ -43283,6 +43327,401 @@ proto.sniipuserservice.VerifyPhoneRequest.prototype.setSociallogin = function(va
43283
43327
  };
43284
43328
 
43285
43329
 
43330
+
43331
+
43332
+
43333
+ if (jspb.Message.GENERATE_TO_OBJECT) {
43334
+ /**
43335
+ * Creates an object representation of this proto.
43336
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
43337
+ * Optional fields that are not set will be set to undefined.
43338
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
43339
+ * For the list of reserved names please see:
43340
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
43341
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
43342
+ * JSPB instance for transitional soy proto support:
43343
+ * http://goto/soy-param-migration
43344
+ * @return {!Object}
43345
+ */
43346
+ proto.sniipuserservice.FileUploadRequest.prototype.toObject = function(opt_includeInstance) {
43347
+ return proto.sniipuserservice.FileUploadRequest.toObject(opt_includeInstance, this);
43348
+ };
43349
+
43350
+
43351
+ /**
43352
+ * Static version of the {@see toObject} method.
43353
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
43354
+ * the JSPB instance for transitional soy proto support:
43355
+ * http://goto/soy-param-migration
43356
+ * @param {!proto.sniipuserservice.FileUploadRequest} msg The msg instance to transform.
43357
+ * @return {!Object}
43358
+ * @suppress {unusedLocalVariables} f is only used for nested messages
43359
+ */
43360
+ proto.sniipuserservice.FileUploadRequest.toObject = function(includeInstance, msg) {
43361
+ var f, obj = {
43362
+ name: jspb.Message.getFieldWithDefault(msg, 1, ""),
43363
+ originalfilename: jspb.Message.getFieldWithDefault(msg, 2, ""),
43364
+ contenttype: jspb.Message.getFieldWithDefault(msg, 3, ""),
43365
+ file: (f = msg.getFile()) && proto.sniipuserservice.File.toObject(includeInstance, f)
43366
+ };
43367
+
43368
+ if (includeInstance) {
43369
+ obj.$jspbMessageInstance = msg;
43370
+ }
43371
+ return obj;
43372
+ };
43373
+ }
43374
+
43375
+
43376
+ /**
43377
+ * Deserializes binary data (in protobuf wire format).
43378
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
43379
+ * @return {!proto.sniipuserservice.FileUploadRequest}
43380
+ */
43381
+ proto.sniipuserservice.FileUploadRequest.deserializeBinary = function(bytes) {
43382
+ var reader = new jspb.BinaryReader(bytes);
43383
+ var msg = new proto.sniipuserservice.FileUploadRequest;
43384
+ return proto.sniipuserservice.FileUploadRequest.deserializeBinaryFromReader(msg, reader);
43385
+ };
43386
+
43387
+
43388
+ /**
43389
+ * Deserializes binary data (in protobuf wire format) from the
43390
+ * given reader into the given message object.
43391
+ * @param {!proto.sniipuserservice.FileUploadRequest} msg The message object to deserialize into.
43392
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
43393
+ * @return {!proto.sniipuserservice.FileUploadRequest}
43394
+ */
43395
+ proto.sniipuserservice.FileUploadRequest.deserializeBinaryFromReader = function(msg, reader) {
43396
+ while (reader.nextField()) {
43397
+ if (reader.isEndGroup()) {
43398
+ break;
43399
+ }
43400
+ var field = reader.getFieldNumber();
43401
+ switch (field) {
43402
+ case 1:
43403
+ var value = /** @type {string} */ (reader.readString());
43404
+ msg.setName(value);
43405
+ break;
43406
+ case 2:
43407
+ var value = /** @type {string} */ (reader.readString());
43408
+ msg.setOriginalfilename(value);
43409
+ break;
43410
+ case 3:
43411
+ var value = /** @type {string} */ (reader.readString());
43412
+ msg.setContenttype(value);
43413
+ break;
43414
+ case 4:
43415
+ var value = new proto.sniipuserservice.File;
43416
+ reader.readMessage(value,proto.sniipuserservice.File.deserializeBinaryFromReader);
43417
+ msg.setFile(value);
43418
+ break;
43419
+ default:
43420
+ reader.skipField();
43421
+ break;
43422
+ }
43423
+ }
43424
+ return msg;
43425
+ };
43426
+
43427
+
43428
+ /**
43429
+ * Serializes the message to binary data (in protobuf wire format).
43430
+ * @return {!Uint8Array}
43431
+ */
43432
+ proto.sniipuserservice.FileUploadRequest.prototype.serializeBinary = function() {
43433
+ var writer = new jspb.BinaryWriter();
43434
+ proto.sniipuserservice.FileUploadRequest.serializeBinaryToWriter(this, writer);
43435
+ return writer.getResultBuffer();
43436
+ };
43437
+
43438
+
43439
+ /**
43440
+ * Serializes the given message to binary data (in protobuf wire
43441
+ * format), writing to the given BinaryWriter.
43442
+ * @param {!proto.sniipuserservice.FileUploadRequest} message
43443
+ * @param {!jspb.BinaryWriter} writer
43444
+ * @suppress {unusedLocalVariables} f is only used for nested messages
43445
+ */
43446
+ proto.sniipuserservice.FileUploadRequest.serializeBinaryToWriter = function(message, writer) {
43447
+ var f = undefined;
43448
+ f = message.getName();
43449
+ if (f.length > 0) {
43450
+ writer.writeString(
43451
+ 1,
43452
+ f
43453
+ );
43454
+ }
43455
+ f = message.getOriginalfilename();
43456
+ if (f.length > 0) {
43457
+ writer.writeString(
43458
+ 2,
43459
+ f
43460
+ );
43461
+ }
43462
+ f = message.getContenttype();
43463
+ if (f.length > 0) {
43464
+ writer.writeString(
43465
+ 3,
43466
+ f
43467
+ );
43468
+ }
43469
+ f = message.getFile();
43470
+ if (f != null) {
43471
+ writer.writeMessage(
43472
+ 4,
43473
+ f,
43474
+ proto.sniipuserservice.File.serializeBinaryToWriter
43475
+ );
43476
+ }
43477
+ };
43478
+
43479
+
43480
+ /**
43481
+ * optional string name = 1;
43482
+ * @return {string}
43483
+ */
43484
+ proto.sniipuserservice.FileUploadRequest.prototype.getName = function() {
43485
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
43486
+ };
43487
+
43488
+
43489
+ /**
43490
+ * @param {string} value
43491
+ * @return {!proto.sniipuserservice.FileUploadRequest} returns this
43492
+ */
43493
+ proto.sniipuserservice.FileUploadRequest.prototype.setName = function(value) {
43494
+ return jspb.Message.setProto3StringField(this, 1, value);
43495
+ };
43496
+
43497
+
43498
+ /**
43499
+ * optional string originalFilename = 2;
43500
+ * @return {string}
43501
+ */
43502
+ proto.sniipuserservice.FileUploadRequest.prototype.getOriginalfilename = function() {
43503
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
43504
+ };
43505
+
43506
+
43507
+ /**
43508
+ * @param {string} value
43509
+ * @return {!proto.sniipuserservice.FileUploadRequest} returns this
43510
+ */
43511
+ proto.sniipuserservice.FileUploadRequest.prototype.setOriginalfilename = function(value) {
43512
+ return jspb.Message.setProto3StringField(this, 2, value);
43513
+ };
43514
+
43515
+
43516
+ /**
43517
+ * optional string contentType = 3;
43518
+ * @return {string}
43519
+ */
43520
+ proto.sniipuserservice.FileUploadRequest.prototype.getContenttype = function() {
43521
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
43522
+ };
43523
+
43524
+
43525
+ /**
43526
+ * @param {string} value
43527
+ * @return {!proto.sniipuserservice.FileUploadRequest} returns this
43528
+ */
43529
+ proto.sniipuserservice.FileUploadRequest.prototype.setContenttype = function(value) {
43530
+ return jspb.Message.setProto3StringField(this, 3, value);
43531
+ };
43532
+
43533
+
43534
+ /**
43535
+ * optional File file = 4;
43536
+ * @return {?proto.sniipuserservice.File}
43537
+ */
43538
+ proto.sniipuserservice.FileUploadRequest.prototype.getFile = function() {
43539
+ return /** @type{?proto.sniipuserservice.File} */ (
43540
+ jspb.Message.getWrapperField(this, proto.sniipuserservice.File, 4));
43541
+ };
43542
+
43543
+
43544
+ /**
43545
+ * @param {?proto.sniipuserservice.File|undefined} value
43546
+ * @return {!proto.sniipuserservice.FileUploadRequest} returns this
43547
+ */
43548
+ proto.sniipuserservice.FileUploadRequest.prototype.setFile = function(value) {
43549
+ return jspb.Message.setWrapperField(this, 4, value);
43550
+ };
43551
+
43552
+
43553
+ /**
43554
+ * Clears the message field making it undefined.
43555
+ * @return {!proto.sniipuserservice.FileUploadRequest} returns this
43556
+ */
43557
+ proto.sniipuserservice.FileUploadRequest.prototype.clearFile = function() {
43558
+ return this.setFile(undefined);
43559
+ };
43560
+
43561
+
43562
+ /**
43563
+ * Returns whether this field is set.
43564
+ * @return {boolean}
43565
+ */
43566
+ proto.sniipuserservice.FileUploadRequest.prototype.hasFile = function() {
43567
+ return jspb.Message.getField(this, 4) != null;
43568
+ };
43569
+
43570
+
43571
+
43572
+
43573
+
43574
+ if (jspb.Message.GENERATE_TO_OBJECT) {
43575
+ /**
43576
+ * Creates an object representation of this proto.
43577
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
43578
+ * Optional fields that are not set will be set to undefined.
43579
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
43580
+ * For the list of reserved names please see:
43581
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
43582
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
43583
+ * JSPB instance for transitional soy proto support:
43584
+ * http://goto/soy-param-migration
43585
+ * @return {!Object}
43586
+ */
43587
+ proto.sniipuserservice.File.prototype.toObject = function(opt_includeInstance) {
43588
+ return proto.sniipuserservice.File.toObject(opt_includeInstance, this);
43589
+ };
43590
+
43591
+
43592
+ /**
43593
+ * Static version of the {@see toObject} method.
43594
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
43595
+ * the JSPB instance for transitional soy proto support:
43596
+ * http://goto/soy-param-migration
43597
+ * @param {!proto.sniipuserservice.File} msg The msg instance to transform.
43598
+ * @return {!Object}
43599
+ * @suppress {unusedLocalVariables} f is only used for nested messages
43600
+ */
43601
+ proto.sniipuserservice.File.toObject = function(includeInstance, msg) {
43602
+ var f, obj = {
43603
+ content: msg.getContent_asB64()
43604
+ };
43605
+
43606
+ if (includeInstance) {
43607
+ obj.$jspbMessageInstance = msg;
43608
+ }
43609
+ return obj;
43610
+ };
43611
+ }
43612
+
43613
+
43614
+ /**
43615
+ * Deserializes binary data (in protobuf wire format).
43616
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
43617
+ * @return {!proto.sniipuserservice.File}
43618
+ */
43619
+ proto.sniipuserservice.File.deserializeBinary = function(bytes) {
43620
+ var reader = new jspb.BinaryReader(bytes);
43621
+ var msg = new proto.sniipuserservice.File;
43622
+ return proto.sniipuserservice.File.deserializeBinaryFromReader(msg, reader);
43623
+ };
43624
+
43625
+
43626
+ /**
43627
+ * Deserializes binary data (in protobuf wire format) from the
43628
+ * given reader into the given message object.
43629
+ * @param {!proto.sniipuserservice.File} msg The message object to deserialize into.
43630
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
43631
+ * @return {!proto.sniipuserservice.File}
43632
+ */
43633
+ proto.sniipuserservice.File.deserializeBinaryFromReader = function(msg, reader) {
43634
+ while (reader.nextField()) {
43635
+ if (reader.isEndGroup()) {
43636
+ break;
43637
+ }
43638
+ var field = reader.getFieldNumber();
43639
+ switch (field) {
43640
+ case 1:
43641
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
43642
+ msg.setContent(value);
43643
+ break;
43644
+ default:
43645
+ reader.skipField();
43646
+ break;
43647
+ }
43648
+ }
43649
+ return msg;
43650
+ };
43651
+
43652
+
43653
+ /**
43654
+ * Serializes the message to binary data (in protobuf wire format).
43655
+ * @return {!Uint8Array}
43656
+ */
43657
+ proto.sniipuserservice.File.prototype.serializeBinary = function() {
43658
+ var writer = new jspb.BinaryWriter();
43659
+ proto.sniipuserservice.File.serializeBinaryToWriter(this, writer);
43660
+ return writer.getResultBuffer();
43661
+ };
43662
+
43663
+
43664
+ /**
43665
+ * Serializes the given message to binary data (in protobuf wire
43666
+ * format), writing to the given BinaryWriter.
43667
+ * @param {!proto.sniipuserservice.File} message
43668
+ * @param {!jspb.BinaryWriter} writer
43669
+ * @suppress {unusedLocalVariables} f is only used for nested messages
43670
+ */
43671
+ proto.sniipuserservice.File.serializeBinaryToWriter = function(message, writer) {
43672
+ var f = undefined;
43673
+ f = message.getContent_asU8();
43674
+ if (f.length > 0) {
43675
+ writer.writeBytes(
43676
+ 1,
43677
+ f
43678
+ );
43679
+ }
43680
+ };
43681
+
43682
+
43683
+ /**
43684
+ * optional bytes content = 1;
43685
+ * @return {!(string|Uint8Array)}
43686
+ */
43687
+ proto.sniipuserservice.File.prototype.getContent = function() {
43688
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
43689
+ };
43690
+
43691
+
43692
+ /**
43693
+ * optional bytes content = 1;
43694
+ * This is a type-conversion wrapper around `getContent()`
43695
+ * @return {string}
43696
+ */
43697
+ proto.sniipuserservice.File.prototype.getContent_asB64 = function() {
43698
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
43699
+ this.getContent()));
43700
+ };
43701
+
43702
+
43703
+ /**
43704
+ * optional bytes content = 1;
43705
+ * Note that Uint8Array is not supported on all browsers.
43706
+ * @see http://caniuse.com/Uint8Array
43707
+ * This is a type-conversion wrapper around `getContent()`
43708
+ * @return {!Uint8Array}
43709
+ */
43710
+ proto.sniipuserservice.File.prototype.getContent_asU8 = function() {
43711
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
43712
+ this.getContent()));
43713
+ };
43714
+
43715
+
43716
+ /**
43717
+ * @param {!(string|Uint8Array)} value
43718
+ * @return {!proto.sniipuserservice.File} returns this
43719
+ */
43720
+ proto.sniipuserservice.File.prototype.setContent = function(value) {
43721
+ return jspb.Message.setProto3BytesField(this, 1, value);
43722
+ };
43723
+
43724
+
43286
43725
  /**
43287
43726
  * @enum {number}
43288
43727
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sniipwebmaster/user-service-client-grpcweb-ts",
3
- "version": "23.8.9941",
3
+ "version": "23.8.9955",
4
4
  "description": "user-service-client-grpcweb-ts",
5
5
  "author": "Sniip Development Team",
6
6
  "license": "MIT",