@sniipwebmaster/kyc-client-grpcweb 21.8.143 → 21.8.159

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.
@@ -530,5 +530,115 @@ proto.kycserviceapi.KYCServiceAPIServicePromiseClient.prototype.submitUserKyc =
530
530
  };
531
531
 
532
532
 
533
+ /**
534
+ * @const
535
+ * @type {!grpc.web.AbstractClientBase.MethodInfo<
536
+ * !proto.kycserviceapi.VerifyDocumentRequest,
537
+ * !proto.kycserviceapi.ResponseCode>}
538
+ */
539
+ const methodInfo_KYCServiceAPIService_VerifyDocument = new grpc.web.AbstractClientBase.MethodInfo(
540
+ proto.kycserviceapi.ResponseCode,
541
+ /** @param {!proto.kycserviceapi.VerifyDocumentRequest} request */
542
+ function(request) {
543
+ return request.serializeBinary();
544
+ },
545
+ proto.kycserviceapi.ResponseCode.deserializeBinary
546
+ );
547
+
548
+
549
+ /**
550
+ * @param {!proto.kycserviceapi.VerifyDocumentRequest} request The
551
+ * request proto
552
+ * @param {?Object<string, string>} metadata User defined
553
+ * call metadata
554
+ * @param {function(?grpc.web.Error, ?proto.kycserviceapi.ResponseCode)}
555
+ * callback The callback function(error, response)
556
+ * @return {!grpc.web.ClientReadableStream<!proto.kycserviceapi.ResponseCode>|undefined}
557
+ * The XHR Node Readable Stream
558
+ */
559
+ proto.kycserviceapi.KYCServiceAPIServiceClient.prototype.verifyDocument =
560
+ function(request, metadata, callback) {
561
+ return this.client_.rpcCall(this.hostname_ +
562
+ '/kycserviceapi.KYCServiceAPIService/VerifyDocument',
563
+ request,
564
+ metadata || {},
565
+ methodInfo_KYCServiceAPIService_VerifyDocument,
566
+ callback);
567
+ };
568
+
569
+
570
+ /**
571
+ * @param {!proto.kycserviceapi.VerifyDocumentRequest} request The
572
+ * request proto
573
+ * @param {?Object<string, string>} metadata User defined
574
+ * call metadata
575
+ * @return {!Promise<!proto.kycserviceapi.ResponseCode>}
576
+ * A native promise that resolves to the response
577
+ */
578
+ proto.kycserviceapi.KYCServiceAPIServicePromiseClient.prototype.verifyDocument =
579
+ function(request, metadata) {
580
+ return this.client_.unaryCall(this.hostname_ +
581
+ '/kycserviceapi.KYCServiceAPIService/VerifyDocument',
582
+ request,
583
+ metadata || {},
584
+ methodInfo_KYCServiceAPIService_VerifyDocument);
585
+ };
586
+
587
+
588
+ /**
589
+ * @const
590
+ * @type {!grpc.web.AbstractClientBase.MethodInfo<
591
+ * !proto.kycserviceapi.VerifyUserRequest,
592
+ * !proto.kycserviceapi.ResponseCode>}
593
+ */
594
+ const methodInfo_KYCServiceAPIService_VerifyUser = new grpc.web.AbstractClientBase.MethodInfo(
595
+ proto.kycserviceapi.ResponseCode,
596
+ /** @param {!proto.kycserviceapi.VerifyUserRequest} request */
597
+ function(request) {
598
+ return request.serializeBinary();
599
+ },
600
+ proto.kycserviceapi.ResponseCode.deserializeBinary
601
+ );
602
+
603
+
604
+ /**
605
+ * @param {!proto.kycserviceapi.VerifyUserRequest} request The
606
+ * request proto
607
+ * @param {?Object<string, string>} metadata User defined
608
+ * call metadata
609
+ * @param {function(?grpc.web.Error, ?proto.kycserviceapi.ResponseCode)}
610
+ * callback The callback function(error, response)
611
+ * @return {!grpc.web.ClientReadableStream<!proto.kycserviceapi.ResponseCode>|undefined}
612
+ * The XHR Node Readable Stream
613
+ */
614
+ proto.kycserviceapi.KYCServiceAPIServiceClient.prototype.verifyUser =
615
+ function(request, metadata, callback) {
616
+ return this.client_.rpcCall(this.hostname_ +
617
+ '/kycserviceapi.KYCServiceAPIService/VerifyUser',
618
+ request,
619
+ metadata || {},
620
+ methodInfo_KYCServiceAPIService_VerifyUser,
621
+ callback);
622
+ };
623
+
624
+
625
+ /**
626
+ * @param {!proto.kycserviceapi.VerifyUserRequest} request The
627
+ * request proto
628
+ * @param {?Object<string, string>} metadata User defined
629
+ * call metadata
630
+ * @return {!Promise<!proto.kycserviceapi.ResponseCode>}
631
+ * A native promise that resolves to the response
632
+ */
633
+ proto.kycserviceapi.KYCServiceAPIServicePromiseClient.prototype.verifyUser =
634
+ function(request, metadata) {
635
+ return this.client_.unaryCall(this.hostname_ +
636
+ '/kycserviceapi.KYCServiceAPIService/VerifyUser',
637
+ request,
638
+ metadata || {},
639
+ methodInfo_KYCServiceAPIService_VerifyUser);
640
+ };
641
+
642
+
533
643
  module.exports = proto.kycserviceapi;
534
644
 
@@ -32,6 +32,8 @@ goog.exportSymbol('proto.kycserviceapi.UserKycRequest', null, global);
32
32
  goog.exportSymbol('proto.kycserviceapi.UserKycStatusResponse', null, global);
33
33
  goog.exportSymbol('proto.kycserviceapi.UserKycSummaryResponse', null, global);
34
34
  goog.exportSymbol('proto.kycserviceapi.UserStatus', null, global);
35
+ goog.exportSymbol('proto.kycserviceapi.VerifyDocumentRequest', null, global);
36
+ goog.exportSymbol('proto.kycserviceapi.VerifyUserRequest', null, global);
35
37
 
36
38
  /**
37
39
  * Generated by JsPbCodeGenerator.
@@ -4135,6 +4137,324 @@ proto.kycserviceapi.UserKycSummaryResponse.prototype.clearRequestedpaymentmethod
4135
4137
  };
4136
4138
 
4137
4139
 
4140
+
4141
+ /**
4142
+ * Generated by JsPbCodeGenerator.
4143
+ * @param {Array=} opt_data Optional initial data array, typically from a
4144
+ * server response, or constructed directly in Javascript. The array is used
4145
+ * in place and becomes part of the constructed object. It is not cloned.
4146
+ * If no data is provided, the constructed object will be empty, but still
4147
+ * valid.
4148
+ * @extends {jspb.Message}
4149
+ * @constructor
4150
+ */
4151
+ proto.kycserviceapi.VerifyDocumentRequest = function(opt_data) {
4152
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4153
+ };
4154
+ goog.inherits(proto.kycserviceapi.VerifyDocumentRequest, jspb.Message);
4155
+ if (goog.DEBUG && !COMPILED) {
4156
+ proto.kycserviceapi.VerifyDocumentRequest.displayName = 'proto.kycserviceapi.VerifyDocumentRequest';
4157
+ }
4158
+
4159
+
4160
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4161
+ /**
4162
+ * Creates an object representation of this proto suitable for use in Soy templates.
4163
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
4164
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4165
+ * For the list of reserved names please see:
4166
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
4167
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
4168
+ * for transitional soy proto support: http://goto/soy-param-migration
4169
+ * @return {!Object}
4170
+ */
4171
+ proto.kycserviceapi.VerifyDocumentRequest.prototype.toObject = function(opt_includeInstance) {
4172
+ return proto.kycserviceapi.VerifyDocumentRequest.toObject(opt_includeInstance, this);
4173
+ };
4174
+
4175
+
4176
+ /**
4177
+ * Static version of the {@see toObject} method.
4178
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
4179
+ * instance for transitional soy proto support:
4180
+ * http://goto/soy-param-migration
4181
+ * @param {!proto.kycserviceapi.VerifyDocumentRequest} msg The msg instance to transform.
4182
+ * @return {!Object}
4183
+ */
4184
+ proto.kycserviceapi.VerifyDocumentRequest.toObject = function(includeInstance, msg) {
4185
+ var f, obj = {
4186
+ documentid: msg.getDocumentid()
4187
+ };
4188
+
4189
+ if (includeInstance) {
4190
+ obj.$jspbMessageInstance = msg;
4191
+ }
4192
+ return obj;
4193
+ };
4194
+ }
4195
+
4196
+
4197
+ /**
4198
+ * Deserializes binary data (in protobuf wire format).
4199
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
4200
+ * @return {!proto.kycserviceapi.VerifyDocumentRequest}
4201
+ */
4202
+ proto.kycserviceapi.VerifyDocumentRequest.deserializeBinary = function(bytes) {
4203
+ var reader = new jspb.BinaryReader(bytes);
4204
+ var msg = new proto.kycserviceapi.VerifyDocumentRequest;
4205
+ return proto.kycserviceapi.VerifyDocumentRequest.deserializeBinaryFromReader(msg, reader);
4206
+ };
4207
+
4208
+
4209
+ /**
4210
+ * Deserializes binary data (in protobuf wire format) from the
4211
+ * given reader into the given message object.
4212
+ * @param {!proto.kycserviceapi.VerifyDocumentRequest} msg The message object to deserialize into.
4213
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4214
+ * @return {!proto.kycserviceapi.VerifyDocumentRequest}
4215
+ */
4216
+ proto.kycserviceapi.VerifyDocumentRequest.deserializeBinaryFromReader = function(msg, reader) {
4217
+ while (reader.nextField()) {
4218
+ if (reader.isEndGroup()) {
4219
+ break;
4220
+ }
4221
+ var field = reader.getFieldNumber();
4222
+ switch (field) {
4223
+ case 1:
4224
+ var value = /** @type {number} */ (reader.readInt64());
4225
+ msg.setDocumentid(value);
4226
+ break;
4227
+ default:
4228
+ reader.skipField();
4229
+ break;
4230
+ }
4231
+ }
4232
+ return msg;
4233
+ };
4234
+
4235
+
4236
+ /**
4237
+ * Class method variant: serializes the given message to binary data
4238
+ * (in protobuf wire format), writing to the given BinaryWriter.
4239
+ * @param {!proto.kycserviceapi.VerifyDocumentRequest} message
4240
+ * @param {!jspb.BinaryWriter} writer
4241
+ */
4242
+ proto.kycserviceapi.VerifyDocumentRequest.serializeBinaryToWriter = function(message, writer) {
4243
+ message.serializeBinaryToWriter(writer);
4244
+ };
4245
+
4246
+
4247
+ /**
4248
+ * Serializes the message to binary data (in protobuf wire format).
4249
+ * @return {!Uint8Array}
4250
+ */
4251
+ proto.kycserviceapi.VerifyDocumentRequest.prototype.serializeBinary = function() {
4252
+ var writer = new jspb.BinaryWriter();
4253
+ this.serializeBinaryToWriter(writer);
4254
+ return writer.getResultBuffer();
4255
+ };
4256
+
4257
+
4258
+ /**
4259
+ * Serializes the message to binary data (in protobuf wire format),
4260
+ * writing to the given BinaryWriter.
4261
+ * @param {!jspb.BinaryWriter} writer
4262
+ */
4263
+ proto.kycserviceapi.VerifyDocumentRequest.prototype.serializeBinaryToWriter = function (writer) {
4264
+ var f = undefined;
4265
+ f = this.getDocumentid();
4266
+ if (f !== 0) {
4267
+ writer.writeInt64(
4268
+ 1,
4269
+ f
4270
+ );
4271
+ }
4272
+ };
4273
+
4274
+
4275
+ /**
4276
+ * Creates a deep clone of this proto. No data is shared with the original.
4277
+ * @return {!proto.kycserviceapi.VerifyDocumentRequest} The clone.
4278
+ */
4279
+ proto.kycserviceapi.VerifyDocumentRequest.prototype.cloneMessage = function() {
4280
+ return /** @type {!proto.kycserviceapi.VerifyDocumentRequest} */ (jspb.Message.cloneMessage(this));
4281
+ };
4282
+
4283
+
4284
+ /**
4285
+ * optional int64 documentId = 1;
4286
+ * @return {number}
4287
+ */
4288
+ proto.kycserviceapi.VerifyDocumentRequest.prototype.getDocumentid = function() {
4289
+ return /** @type {number} */ (jspb.Message.getFieldProto3(this, 1, 0));
4290
+ };
4291
+
4292
+
4293
+ /** @param {number} value */
4294
+ proto.kycserviceapi.VerifyDocumentRequest.prototype.setDocumentid = function(value) {
4295
+ jspb.Message.setField(this, 1, value);
4296
+ };
4297
+
4298
+
4299
+
4300
+ /**
4301
+ * Generated by JsPbCodeGenerator.
4302
+ * @param {Array=} opt_data Optional initial data array, typically from a
4303
+ * server response, or constructed directly in Javascript. The array is used
4304
+ * in place and becomes part of the constructed object. It is not cloned.
4305
+ * If no data is provided, the constructed object will be empty, but still
4306
+ * valid.
4307
+ * @extends {jspb.Message}
4308
+ * @constructor
4309
+ */
4310
+ proto.kycserviceapi.VerifyUserRequest = function(opt_data) {
4311
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4312
+ };
4313
+ goog.inherits(proto.kycserviceapi.VerifyUserRequest, jspb.Message);
4314
+ if (goog.DEBUG && !COMPILED) {
4315
+ proto.kycserviceapi.VerifyUserRequest.displayName = 'proto.kycserviceapi.VerifyUserRequest';
4316
+ }
4317
+
4318
+
4319
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4320
+ /**
4321
+ * Creates an object representation of this proto suitable for use in Soy templates.
4322
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
4323
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4324
+ * For the list of reserved names please see:
4325
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
4326
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
4327
+ * for transitional soy proto support: http://goto/soy-param-migration
4328
+ * @return {!Object}
4329
+ */
4330
+ proto.kycserviceapi.VerifyUserRequest.prototype.toObject = function(opt_includeInstance) {
4331
+ return proto.kycserviceapi.VerifyUserRequest.toObject(opt_includeInstance, this);
4332
+ };
4333
+
4334
+
4335
+ /**
4336
+ * Static version of the {@see toObject} method.
4337
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
4338
+ * instance for transitional soy proto support:
4339
+ * http://goto/soy-param-migration
4340
+ * @param {!proto.kycserviceapi.VerifyUserRequest} msg The msg instance to transform.
4341
+ * @return {!Object}
4342
+ */
4343
+ proto.kycserviceapi.VerifyUserRequest.toObject = function(includeInstance, msg) {
4344
+ var f, obj = {
4345
+ userid: msg.getUserid()
4346
+ };
4347
+
4348
+ if (includeInstance) {
4349
+ obj.$jspbMessageInstance = msg;
4350
+ }
4351
+ return obj;
4352
+ };
4353
+ }
4354
+
4355
+
4356
+ /**
4357
+ * Deserializes binary data (in protobuf wire format).
4358
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
4359
+ * @return {!proto.kycserviceapi.VerifyUserRequest}
4360
+ */
4361
+ proto.kycserviceapi.VerifyUserRequest.deserializeBinary = function(bytes) {
4362
+ var reader = new jspb.BinaryReader(bytes);
4363
+ var msg = new proto.kycserviceapi.VerifyUserRequest;
4364
+ return proto.kycserviceapi.VerifyUserRequest.deserializeBinaryFromReader(msg, reader);
4365
+ };
4366
+
4367
+
4368
+ /**
4369
+ * Deserializes binary data (in protobuf wire format) from the
4370
+ * given reader into the given message object.
4371
+ * @param {!proto.kycserviceapi.VerifyUserRequest} msg The message object to deserialize into.
4372
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4373
+ * @return {!proto.kycserviceapi.VerifyUserRequest}
4374
+ */
4375
+ proto.kycserviceapi.VerifyUserRequest.deserializeBinaryFromReader = function(msg, reader) {
4376
+ while (reader.nextField()) {
4377
+ if (reader.isEndGroup()) {
4378
+ break;
4379
+ }
4380
+ var field = reader.getFieldNumber();
4381
+ switch (field) {
4382
+ case 1:
4383
+ var value = /** @type {number} */ (reader.readInt64());
4384
+ msg.setUserid(value);
4385
+ break;
4386
+ default:
4387
+ reader.skipField();
4388
+ break;
4389
+ }
4390
+ }
4391
+ return msg;
4392
+ };
4393
+
4394
+
4395
+ /**
4396
+ * Class method variant: serializes the given message to binary data
4397
+ * (in protobuf wire format), writing to the given BinaryWriter.
4398
+ * @param {!proto.kycserviceapi.VerifyUserRequest} message
4399
+ * @param {!jspb.BinaryWriter} writer
4400
+ */
4401
+ proto.kycserviceapi.VerifyUserRequest.serializeBinaryToWriter = function(message, writer) {
4402
+ message.serializeBinaryToWriter(writer);
4403
+ };
4404
+
4405
+
4406
+ /**
4407
+ * Serializes the message to binary data (in protobuf wire format).
4408
+ * @return {!Uint8Array}
4409
+ */
4410
+ proto.kycserviceapi.VerifyUserRequest.prototype.serializeBinary = function() {
4411
+ var writer = new jspb.BinaryWriter();
4412
+ this.serializeBinaryToWriter(writer);
4413
+ return writer.getResultBuffer();
4414
+ };
4415
+
4416
+
4417
+ /**
4418
+ * Serializes the message to binary data (in protobuf wire format),
4419
+ * writing to the given BinaryWriter.
4420
+ * @param {!jspb.BinaryWriter} writer
4421
+ */
4422
+ proto.kycserviceapi.VerifyUserRequest.prototype.serializeBinaryToWriter = function (writer) {
4423
+ var f = undefined;
4424
+ f = this.getUserid();
4425
+ if (f !== 0) {
4426
+ writer.writeInt64(
4427
+ 1,
4428
+ f
4429
+ );
4430
+ }
4431
+ };
4432
+
4433
+
4434
+ /**
4435
+ * Creates a deep clone of this proto. No data is shared with the original.
4436
+ * @return {!proto.kycserviceapi.VerifyUserRequest} The clone.
4437
+ */
4438
+ proto.kycserviceapi.VerifyUserRequest.prototype.cloneMessage = function() {
4439
+ return /** @type {!proto.kycserviceapi.VerifyUserRequest} */ (jspb.Message.cloneMessage(this));
4440
+ };
4441
+
4442
+
4443
+ /**
4444
+ * optional int64 userId = 1;
4445
+ * @return {number}
4446
+ */
4447
+ proto.kycserviceapi.VerifyUserRequest.prototype.getUserid = function() {
4448
+ return /** @type {number} */ (jspb.Message.getFieldProto3(this, 1, 0));
4449
+ };
4450
+
4451
+
4452
+ /** @param {number} value */
4453
+ proto.kycserviceapi.VerifyUserRequest.prototype.setUserid = function(value) {
4454
+ jspb.Message.setField(this, 1, value);
4455
+ };
4456
+
4457
+
4138
4458
  /**
4139
4459
  * @enum {number}
4140
4460
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sniipwebmaster/kyc-client-grpcweb",
3
- "version": "21.8.143",
3
+ "version": "21.8.159",
4
4
  "description": "kyc-client-grpcweb",
5
5
  "author": "Sniip Development Team",
6
6
  "license": "MIT",