@sniipwebmaster/user-service-client-grpcweb-ts 26.2.13999 → 26.2.14027

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.
@@ -6533,5 +6533,48 @@ export class SniipUserServiceServiceClient {
6533
6533
  this.methodDescriptorExchangeSwapToken);
6534
6534
  }
6535
6535
 
6536
+ methodDescriptorRecordKycDownload = new grpcWeb.MethodDescriptor(
6537
+ '/sniipuserservice.SniipUserServiceService/RecordKycDownload',
6538
+ grpcWeb.MethodType.UNARY,
6539
+ service_pb.RecordKycDownloadRequest,
6540
+ service_pb.RecordKycDownloadResponse,
6541
+ (request: service_pb.RecordKycDownloadRequest) => {
6542
+ return request.serializeBinary();
6543
+ },
6544
+ service_pb.RecordKycDownloadResponse.deserializeBinary
6545
+ );
6546
+
6547
+ recordKycDownload(
6548
+ request: service_pb.RecordKycDownloadRequest,
6549
+ metadata?: grpcWeb.Metadata | null): Promise<service_pb.RecordKycDownloadResponse>;
6550
+
6551
+ recordKycDownload(
6552
+ request: service_pb.RecordKycDownloadRequest,
6553
+ metadata: grpcWeb.Metadata | null,
6554
+ callback: (err: grpcWeb.RpcError,
6555
+ response: service_pb.RecordKycDownloadResponse) => void): grpcWeb.ClientReadableStream<service_pb.RecordKycDownloadResponse>;
6556
+
6557
+ recordKycDownload(
6558
+ request: service_pb.RecordKycDownloadRequest,
6559
+ metadata?: grpcWeb.Metadata | null,
6560
+ callback?: (err: grpcWeb.RpcError,
6561
+ response: service_pb.RecordKycDownloadResponse) => void) {
6562
+ if (callback !== undefined) {
6563
+ return this.client_.rpcCall(
6564
+ this.hostname_ +
6565
+ '/sniipuserservice.SniipUserServiceService/RecordKycDownload',
6566
+ request,
6567
+ metadata || {},
6568
+ this.methodDescriptorRecordKycDownload,
6569
+ callback);
6570
+ }
6571
+ return this.client_.unaryCall(
6572
+ this.hostname_ +
6573
+ '/sniipuserservice.SniipUserServiceService/RecordKycDownload',
6574
+ request,
6575
+ metadata || {},
6576
+ this.methodDescriptorRecordKycDownload);
6577
+ }
6578
+
6536
6579
  }
6537
6580
 
@@ -6523,6 +6523,52 @@ export namespace ExchangeSwapTokenResponse {
6523
6523
  }
6524
6524
  }
6525
6525
 
6526
+ export class RecordKycDownloadRequest extends jspb.Message {
6527
+ getToken(): string;
6528
+ setToken(value: string): RecordKycDownloadRequest;
6529
+
6530
+ getAttachmentId(): number;
6531
+ setAttachmentId(value: number): RecordKycDownloadRequest;
6532
+
6533
+ serializeBinary(): Uint8Array;
6534
+ toObject(includeInstance?: boolean): RecordKycDownloadRequest.AsObject;
6535
+ static toObject(includeInstance: boolean, msg: RecordKycDownloadRequest): RecordKycDownloadRequest.AsObject;
6536
+ static serializeBinaryToWriter(message: RecordKycDownloadRequest, writer: jspb.BinaryWriter): void;
6537
+ static deserializeBinary(bytes: Uint8Array): RecordKycDownloadRequest;
6538
+ static deserializeBinaryFromReader(message: RecordKycDownloadRequest, reader: jspb.BinaryReader): RecordKycDownloadRequest;
6539
+ }
6540
+
6541
+ export namespace RecordKycDownloadRequest {
6542
+ export type AsObject = {
6543
+ token: string,
6544
+ attachmentId: number,
6545
+ }
6546
+ }
6547
+
6548
+ export class RecordKycDownloadResponse extends jspb.Message {
6549
+ getResponseCode(): ResponseCode | undefined;
6550
+ setResponseCode(value?: ResponseCode): RecordKycDownloadResponse;
6551
+ hasResponseCode(): boolean;
6552
+ clearResponseCode(): RecordKycDownloadResponse;
6553
+
6554
+ getAccountLocked(): boolean;
6555
+ setAccountLocked(value: boolean): RecordKycDownloadResponse;
6556
+
6557
+ serializeBinary(): Uint8Array;
6558
+ toObject(includeInstance?: boolean): RecordKycDownloadResponse.AsObject;
6559
+ static toObject(includeInstance: boolean, msg: RecordKycDownloadResponse): RecordKycDownloadResponse.AsObject;
6560
+ static serializeBinaryToWriter(message: RecordKycDownloadResponse, writer: jspb.BinaryWriter): void;
6561
+ static deserializeBinary(bytes: Uint8Array): RecordKycDownloadResponse;
6562
+ static deserializeBinaryFromReader(message: RecordKycDownloadResponse, reader: jspb.BinaryReader): RecordKycDownloadResponse;
6563
+ }
6564
+
6565
+ export namespace RecordKycDownloadResponse {
6566
+ export type AsObject = {
6567
+ responseCode?: ResponseCode.AsObject,
6568
+ accountLocked: boolean,
6569
+ }
6570
+ }
6571
+
6526
6572
  export enum KycUserStatus {
6527
6573
  KYC_USER_PENDING_REVIEW = 0,
6528
6574
  KYC_USER_VERIFIED = 1,
@@ -159,6 +159,8 @@ goog.exportSymbol('proto.sniipuserservice.PrepareSpecificTestMobileAccountReques
159
159
  goog.exportSymbol('proto.sniipuserservice.PrepareSpecificTestMobileAccountRequestData', null, global);
160
160
  goog.exportSymbol('proto.sniipuserservice.PrepareTestMobileAccountRequest', null, global);
161
161
  goog.exportSymbol('proto.sniipuserservice.PushNotificationToken', null, global);
162
+ goog.exportSymbol('proto.sniipuserservice.RecordKycDownloadRequest', null, global);
163
+ goog.exportSymbol('proto.sniipuserservice.RecordKycDownloadResponse', null, global);
162
164
  goog.exportSymbol('proto.sniipuserservice.RefreshAccessTokenRequest', null, global);
163
165
  goog.exportSymbol('proto.sniipuserservice.RefreshWebAccessTokenRequest', null, global);
164
166
  goog.exportSymbol('proto.sniipuserservice.RemoveAccountRequest', null, global);
@@ -4824,6 +4826,48 @@ if (goog.DEBUG && !COMPILED) {
4824
4826
  */
4825
4827
  proto.sniipuserservice.ExchangeSwapTokenResponse.displayName = 'proto.sniipuserservice.ExchangeSwapTokenResponse';
4826
4828
  }
4829
+ /**
4830
+ * Generated by JsPbCodeGenerator.
4831
+ * @param {Array=} opt_data Optional initial data array, typically from a
4832
+ * server response, or constructed directly in Javascript. The array is used
4833
+ * in place and becomes part of the constructed object. It is not cloned.
4834
+ * If no data is provided, the constructed object will be empty, but still
4835
+ * valid.
4836
+ * @extends {jspb.Message}
4837
+ * @constructor
4838
+ */
4839
+ proto.sniipuserservice.RecordKycDownloadRequest = function(opt_data) {
4840
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4841
+ };
4842
+ goog.inherits(proto.sniipuserservice.RecordKycDownloadRequest, jspb.Message);
4843
+ if (goog.DEBUG && !COMPILED) {
4844
+ /**
4845
+ * @public
4846
+ * @override
4847
+ */
4848
+ proto.sniipuserservice.RecordKycDownloadRequest.displayName = 'proto.sniipuserservice.RecordKycDownloadRequest';
4849
+ }
4850
+ /**
4851
+ * Generated by JsPbCodeGenerator.
4852
+ * @param {Array=} opt_data Optional initial data array, typically from a
4853
+ * server response, or constructed directly in Javascript. The array is used
4854
+ * in place and becomes part of the constructed object. It is not cloned.
4855
+ * If no data is provided, the constructed object will be empty, but still
4856
+ * valid.
4857
+ * @extends {jspb.Message}
4858
+ * @constructor
4859
+ */
4860
+ proto.sniipuserservice.RecordKycDownloadResponse = function(opt_data) {
4861
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4862
+ };
4863
+ goog.inherits(proto.sniipuserservice.RecordKycDownloadResponse, jspb.Message);
4864
+ if (goog.DEBUG && !COMPILED) {
4865
+ /**
4866
+ * @public
4867
+ * @override
4868
+ */
4869
+ proto.sniipuserservice.RecordKycDownloadResponse.displayName = 'proto.sniipuserservice.RecordKycDownloadResponse';
4870
+ }
4827
4871
 
4828
4872
 
4829
4873
 
@@ -53225,6 +53269,347 @@ proto.sniipuserservice.ExchangeSwapTokenResponse.prototype.setExpiresin = functi
53225
53269
  };
53226
53270
 
53227
53271
 
53272
+
53273
+
53274
+
53275
+ if (jspb.Message.GENERATE_TO_OBJECT) {
53276
+ /**
53277
+ * Creates an object representation of this proto.
53278
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
53279
+ * Optional fields that are not set will be set to undefined.
53280
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
53281
+ * For the list of reserved names please see:
53282
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
53283
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
53284
+ * JSPB instance for transitional soy proto support:
53285
+ * http://goto/soy-param-migration
53286
+ * @return {!Object}
53287
+ */
53288
+ proto.sniipuserservice.RecordKycDownloadRequest.prototype.toObject = function(opt_includeInstance) {
53289
+ return proto.sniipuserservice.RecordKycDownloadRequest.toObject(opt_includeInstance, this);
53290
+ };
53291
+
53292
+
53293
+ /**
53294
+ * Static version of the {@see toObject} method.
53295
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
53296
+ * the JSPB instance for transitional soy proto support:
53297
+ * http://goto/soy-param-migration
53298
+ * @param {!proto.sniipuserservice.RecordKycDownloadRequest} msg The msg instance to transform.
53299
+ * @return {!Object}
53300
+ * @suppress {unusedLocalVariables} f is only used for nested messages
53301
+ */
53302
+ proto.sniipuserservice.RecordKycDownloadRequest.toObject = function(includeInstance, msg) {
53303
+ var f, obj = {
53304
+ token: jspb.Message.getFieldWithDefault(msg, 1, ""),
53305
+ attachmentId: jspb.Message.getFieldWithDefault(msg, 2, 0)
53306
+ };
53307
+
53308
+ if (includeInstance) {
53309
+ obj.$jspbMessageInstance = msg;
53310
+ }
53311
+ return obj;
53312
+ };
53313
+ }
53314
+
53315
+
53316
+ /**
53317
+ * Deserializes binary data (in protobuf wire format).
53318
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
53319
+ * @return {!proto.sniipuserservice.RecordKycDownloadRequest}
53320
+ */
53321
+ proto.sniipuserservice.RecordKycDownloadRequest.deserializeBinary = function(bytes) {
53322
+ var reader = new jspb.BinaryReader(bytes);
53323
+ var msg = new proto.sniipuserservice.RecordKycDownloadRequest;
53324
+ return proto.sniipuserservice.RecordKycDownloadRequest.deserializeBinaryFromReader(msg, reader);
53325
+ };
53326
+
53327
+
53328
+ /**
53329
+ * Deserializes binary data (in protobuf wire format) from the
53330
+ * given reader into the given message object.
53331
+ * @param {!proto.sniipuserservice.RecordKycDownloadRequest} msg The message object to deserialize into.
53332
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
53333
+ * @return {!proto.sniipuserservice.RecordKycDownloadRequest}
53334
+ */
53335
+ proto.sniipuserservice.RecordKycDownloadRequest.deserializeBinaryFromReader = function(msg, reader) {
53336
+ while (reader.nextField()) {
53337
+ if (reader.isEndGroup()) {
53338
+ break;
53339
+ }
53340
+ var field = reader.getFieldNumber();
53341
+ switch (field) {
53342
+ case 1:
53343
+ var value = /** @type {string} */ (reader.readString());
53344
+ msg.setToken(value);
53345
+ break;
53346
+ case 2:
53347
+ var value = /** @type {number} */ (reader.readInt64());
53348
+ msg.setAttachmentId(value);
53349
+ break;
53350
+ default:
53351
+ reader.skipField();
53352
+ break;
53353
+ }
53354
+ }
53355
+ return msg;
53356
+ };
53357
+
53358
+
53359
+ /**
53360
+ * Serializes the message to binary data (in protobuf wire format).
53361
+ * @return {!Uint8Array}
53362
+ */
53363
+ proto.sniipuserservice.RecordKycDownloadRequest.prototype.serializeBinary = function() {
53364
+ var writer = new jspb.BinaryWriter();
53365
+ proto.sniipuserservice.RecordKycDownloadRequest.serializeBinaryToWriter(this, writer);
53366
+ return writer.getResultBuffer();
53367
+ };
53368
+
53369
+
53370
+ /**
53371
+ * Serializes the given message to binary data (in protobuf wire
53372
+ * format), writing to the given BinaryWriter.
53373
+ * @param {!proto.sniipuserservice.RecordKycDownloadRequest} message
53374
+ * @param {!jspb.BinaryWriter} writer
53375
+ * @suppress {unusedLocalVariables} f is only used for nested messages
53376
+ */
53377
+ proto.sniipuserservice.RecordKycDownloadRequest.serializeBinaryToWriter = function(message, writer) {
53378
+ var f = undefined;
53379
+ f = message.getToken();
53380
+ if (f.length > 0) {
53381
+ writer.writeString(
53382
+ 1,
53383
+ f
53384
+ );
53385
+ }
53386
+ f = message.getAttachmentId();
53387
+ if (f !== 0) {
53388
+ writer.writeInt64(
53389
+ 2,
53390
+ f
53391
+ );
53392
+ }
53393
+ };
53394
+
53395
+
53396
+ /**
53397
+ * optional string token = 1;
53398
+ * @return {string}
53399
+ */
53400
+ proto.sniipuserservice.RecordKycDownloadRequest.prototype.getToken = function() {
53401
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
53402
+ };
53403
+
53404
+
53405
+ /**
53406
+ * @param {string} value
53407
+ * @return {!proto.sniipuserservice.RecordKycDownloadRequest} returns this
53408
+ */
53409
+ proto.sniipuserservice.RecordKycDownloadRequest.prototype.setToken = function(value) {
53410
+ return jspb.Message.setProto3StringField(this, 1, value);
53411
+ };
53412
+
53413
+
53414
+ /**
53415
+ * optional int64 attachment_id = 2;
53416
+ * @return {number}
53417
+ */
53418
+ proto.sniipuserservice.RecordKycDownloadRequest.prototype.getAttachmentId = function() {
53419
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
53420
+ };
53421
+
53422
+
53423
+ /**
53424
+ * @param {number} value
53425
+ * @return {!proto.sniipuserservice.RecordKycDownloadRequest} returns this
53426
+ */
53427
+ proto.sniipuserservice.RecordKycDownloadRequest.prototype.setAttachmentId = function(value) {
53428
+ return jspb.Message.setProto3IntField(this, 2, value);
53429
+ };
53430
+
53431
+
53432
+
53433
+
53434
+
53435
+ if (jspb.Message.GENERATE_TO_OBJECT) {
53436
+ /**
53437
+ * Creates an object representation of this proto.
53438
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
53439
+ * Optional fields that are not set will be set to undefined.
53440
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
53441
+ * For the list of reserved names please see:
53442
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
53443
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
53444
+ * JSPB instance for transitional soy proto support:
53445
+ * http://goto/soy-param-migration
53446
+ * @return {!Object}
53447
+ */
53448
+ proto.sniipuserservice.RecordKycDownloadResponse.prototype.toObject = function(opt_includeInstance) {
53449
+ return proto.sniipuserservice.RecordKycDownloadResponse.toObject(opt_includeInstance, this);
53450
+ };
53451
+
53452
+
53453
+ /**
53454
+ * Static version of the {@see toObject} method.
53455
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
53456
+ * the JSPB instance for transitional soy proto support:
53457
+ * http://goto/soy-param-migration
53458
+ * @param {!proto.sniipuserservice.RecordKycDownloadResponse} msg The msg instance to transform.
53459
+ * @return {!Object}
53460
+ * @suppress {unusedLocalVariables} f is only used for nested messages
53461
+ */
53462
+ proto.sniipuserservice.RecordKycDownloadResponse.toObject = function(includeInstance, msg) {
53463
+ var f, obj = {
53464
+ responseCode: (f = msg.getResponseCode()) && proto.sniipuserservice.ResponseCode.toObject(includeInstance, f),
53465
+ accountLocked: jspb.Message.getBooleanFieldWithDefault(msg, 2, false)
53466
+ };
53467
+
53468
+ if (includeInstance) {
53469
+ obj.$jspbMessageInstance = msg;
53470
+ }
53471
+ return obj;
53472
+ };
53473
+ }
53474
+
53475
+
53476
+ /**
53477
+ * Deserializes binary data (in protobuf wire format).
53478
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
53479
+ * @return {!proto.sniipuserservice.RecordKycDownloadResponse}
53480
+ */
53481
+ proto.sniipuserservice.RecordKycDownloadResponse.deserializeBinary = function(bytes) {
53482
+ var reader = new jspb.BinaryReader(bytes);
53483
+ var msg = new proto.sniipuserservice.RecordKycDownloadResponse;
53484
+ return proto.sniipuserservice.RecordKycDownloadResponse.deserializeBinaryFromReader(msg, reader);
53485
+ };
53486
+
53487
+
53488
+ /**
53489
+ * Deserializes binary data (in protobuf wire format) from the
53490
+ * given reader into the given message object.
53491
+ * @param {!proto.sniipuserservice.RecordKycDownloadResponse} msg The message object to deserialize into.
53492
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
53493
+ * @return {!proto.sniipuserservice.RecordKycDownloadResponse}
53494
+ */
53495
+ proto.sniipuserservice.RecordKycDownloadResponse.deserializeBinaryFromReader = function(msg, reader) {
53496
+ while (reader.nextField()) {
53497
+ if (reader.isEndGroup()) {
53498
+ break;
53499
+ }
53500
+ var field = reader.getFieldNumber();
53501
+ switch (field) {
53502
+ case 1:
53503
+ var value = new proto.sniipuserservice.ResponseCode;
53504
+ reader.readMessage(value,proto.sniipuserservice.ResponseCode.deserializeBinaryFromReader);
53505
+ msg.setResponseCode(value);
53506
+ break;
53507
+ case 2:
53508
+ var value = /** @type {boolean} */ (reader.readBool());
53509
+ msg.setAccountLocked(value);
53510
+ break;
53511
+ default:
53512
+ reader.skipField();
53513
+ break;
53514
+ }
53515
+ }
53516
+ return msg;
53517
+ };
53518
+
53519
+
53520
+ /**
53521
+ * Serializes the message to binary data (in protobuf wire format).
53522
+ * @return {!Uint8Array}
53523
+ */
53524
+ proto.sniipuserservice.RecordKycDownloadResponse.prototype.serializeBinary = function() {
53525
+ var writer = new jspb.BinaryWriter();
53526
+ proto.sniipuserservice.RecordKycDownloadResponse.serializeBinaryToWriter(this, writer);
53527
+ return writer.getResultBuffer();
53528
+ };
53529
+
53530
+
53531
+ /**
53532
+ * Serializes the given message to binary data (in protobuf wire
53533
+ * format), writing to the given BinaryWriter.
53534
+ * @param {!proto.sniipuserservice.RecordKycDownloadResponse} message
53535
+ * @param {!jspb.BinaryWriter} writer
53536
+ * @suppress {unusedLocalVariables} f is only used for nested messages
53537
+ */
53538
+ proto.sniipuserservice.RecordKycDownloadResponse.serializeBinaryToWriter = function(message, writer) {
53539
+ var f = undefined;
53540
+ f = message.getResponseCode();
53541
+ if (f != null) {
53542
+ writer.writeMessage(
53543
+ 1,
53544
+ f,
53545
+ proto.sniipuserservice.ResponseCode.serializeBinaryToWriter
53546
+ );
53547
+ }
53548
+ f = message.getAccountLocked();
53549
+ if (f) {
53550
+ writer.writeBool(
53551
+ 2,
53552
+ f
53553
+ );
53554
+ }
53555
+ };
53556
+
53557
+
53558
+ /**
53559
+ * optional ResponseCode response_code = 1;
53560
+ * @return {?proto.sniipuserservice.ResponseCode}
53561
+ */
53562
+ proto.sniipuserservice.RecordKycDownloadResponse.prototype.getResponseCode = function() {
53563
+ return /** @type{?proto.sniipuserservice.ResponseCode} */ (
53564
+ jspb.Message.getWrapperField(this, proto.sniipuserservice.ResponseCode, 1));
53565
+ };
53566
+
53567
+
53568
+ /**
53569
+ * @param {?proto.sniipuserservice.ResponseCode|undefined} value
53570
+ * @return {!proto.sniipuserservice.RecordKycDownloadResponse} returns this
53571
+ */
53572
+ proto.sniipuserservice.RecordKycDownloadResponse.prototype.setResponseCode = function(value) {
53573
+ return jspb.Message.setWrapperField(this, 1, value);
53574
+ };
53575
+
53576
+
53577
+ /**
53578
+ * Clears the message field making it undefined.
53579
+ * @return {!proto.sniipuserservice.RecordKycDownloadResponse} returns this
53580
+ */
53581
+ proto.sniipuserservice.RecordKycDownloadResponse.prototype.clearResponseCode = function() {
53582
+ return this.setResponseCode(undefined);
53583
+ };
53584
+
53585
+
53586
+ /**
53587
+ * Returns whether this field is set.
53588
+ * @return {boolean}
53589
+ */
53590
+ proto.sniipuserservice.RecordKycDownloadResponse.prototype.hasResponseCode = function() {
53591
+ return jspb.Message.getField(this, 1) != null;
53592
+ };
53593
+
53594
+
53595
+ /**
53596
+ * optional bool account_locked = 2;
53597
+ * @return {boolean}
53598
+ */
53599
+ proto.sniipuserservice.RecordKycDownloadResponse.prototype.getAccountLocked = function() {
53600
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
53601
+ };
53602
+
53603
+
53604
+ /**
53605
+ * @param {boolean} value
53606
+ * @return {!proto.sniipuserservice.RecordKycDownloadResponse} returns this
53607
+ */
53608
+ proto.sniipuserservice.RecordKycDownloadResponse.prototype.setAccountLocked = function(value) {
53609
+ return jspb.Message.setProto3BooleanField(this, 2, value);
53610
+ };
53611
+
53612
+
53228
53613
  /**
53229
53614
  * @enum {number}
53230
53615
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sniipwebmaster/user-service-client-grpcweb-ts",
3
- "version": "26.2.13999",
3
+ "version": "26.2.14027",
4
4
  "description": "user-service-client-grpcweb-ts",
5
5
  "author": "Sniip Development Team",
6
6
  "license": "MIT",