@sniipwebmaster/kyc-client-grpcweb 21.8.136 → 21.8.150

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,60 @@ 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
+
533
588
  module.exports = proto.kycserviceapi;
534
589
 
@@ -32,6 +32,7 @@ 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);
35
36
 
36
37
  /**
37
38
  * Generated by JsPbCodeGenerator.
@@ -4135,6 +4136,165 @@ proto.kycserviceapi.UserKycSummaryResponse.prototype.clearRequestedpaymentmethod
4135
4136
  };
4136
4137
 
4137
4138
 
4139
+
4140
+ /**
4141
+ * Generated by JsPbCodeGenerator.
4142
+ * @param {Array=} opt_data Optional initial data array, typically from a
4143
+ * server response, or constructed directly in Javascript. The array is used
4144
+ * in place and becomes part of the constructed object. It is not cloned.
4145
+ * If no data is provided, the constructed object will be empty, but still
4146
+ * valid.
4147
+ * @extends {jspb.Message}
4148
+ * @constructor
4149
+ */
4150
+ proto.kycserviceapi.VerifyDocumentRequest = function(opt_data) {
4151
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4152
+ };
4153
+ goog.inherits(proto.kycserviceapi.VerifyDocumentRequest, jspb.Message);
4154
+ if (goog.DEBUG && !COMPILED) {
4155
+ proto.kycserviceapi.VerifyDocumentRequest.displayName = 'proto.kycserviceapi.VerifyDocumentRequest';
4156
+ }
4157
+
4158
+
4159
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4160
+ /**
4161
+ * Creates an object representation of this proto suitable for use in Soy templates.
4162
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
4163
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4164
+ * For the list of reserved names please see:
4165
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
4166
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
4167
+ * for transitional soy proto support: http://goto/soy-param-migration
4168
+ * @return {!Object}
4169
+ */
4170
+ proto.kycserviceapi.VerifyDocumentRequest.prototype.toObject = function(opt_includeInstance) {
4171
+ return proto.kycserviceapi.VerifyDocumentRequest.toObject(opt_includeInstance, this);
4172
+ };
4173
+
4174
+
4175
+ /**
4176
+ * Static version of the {@see toObject} method.
4177
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
4178
+ * instance for transitional soy proto support:
4179
+ * http://goto/soy-param-migration
4180
+ * @param {!proto.kycserviceapi.VerifyDocumentRequest} msg The msg instance to transform.
4181
+ * @return {!Object}
4182
+ */
4183
+ proto.kycserviceapi.VerifyDocumentRequest.toObject = function(includeInstance, msg) {
4184
+ var f, obj = {
4185
+ documentid: msg.getDocumentid()
4186
+ };
4187
+
4188
+ if (includeInstance) {
4189
+ obj.$jspbMessageInstance = msg;
4190
+ }
4191
+ return obj;
4192
+ };
4193
+ }
4194
+
4195
+
4196
+ /**
4197
+ * Deserializes binary data (in protobuf wire format).
4198
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
4199
+ * @return {!proto.kycserviceapi.VerifyDocumentRequest}
4200
+ */
4201
+ proto.kycserviceapi.VerifyDocumentRequest.deserializeBinary = function(bytes) {
4202
+ var reader = new jspb.BinaryReader(bytes);
4203
+ var msg = new proto.kycserviceapi.VerifyDocumentRequest;
4204
+ return proto.kycserviceapi.VerifyDocumentRequest.deserializeBinaryFromReader(msg, reader);
4205
+ };
4206
+
4207
+
4208
+ /**
4209
+ * Deserializes binary data (in protobuf wire format) from the
4210
+ * given reader into the given message object.
4211
+ * @param {!proto.kycserviceapi.VerifyDocumentRequest} msg The message object to deserialize into.
4212
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4213
+ * @return {!proto.kycserviceapi.VerifyDocumentRequest}
4214
+ */
4215
+ proto.kycserviceapi.VerifyDocumentRequest.deserializeBinaryFromReader = function(msg, reader) {
4216
+ while (reader.nextField()) {
4217
+ if (reader.isEndGroup()) {
4218
+ break;
4219
+ }
4220
+ var field = reader.getFieldNumber();
4221
+ switch (field) {
4222
+ case 1:
4223
+ var value = /** @type {number} */ (reader.readInt64());
4224
+ msg.setDocumentid(value);
4225
+ break;
4226
+ default:
4227
+ reader.skipField();
4228
+ break;
4229
+ }
4230
+ }
4231
+ return msg;
4232
+ };
4233
+
4234
+
4235
+ /**
4236
+ * Class method variant: serializes the given message to binary data
4237
+ * (in protobuf wire format), writing to the given BinaryWriter.
4238
+ * @param {!proto.kycserviceapi.VerifyDocumentRequest} message
4239
+ * @param {!jspb.BinaryWriter} writer
4240
+ */
4241
+ proto.kycserviceapi.VerifyDocumentRequest.serializeBinaryToWriter = function(message, writer) {
4242
+ message.serializeBinaryToWriter(writer);
4243
+ };
4244
+
4245
+
4246
+ /**
4247
+ * Serializes the message to binary data (in protobuf wire format).
4248
+ * @return {!Uint8Array}
4249
+ */
4250
+ proto.kycserviceapi.VerifyDocumentRequest.prototype.serializeBinary = function() {
4251
+ var writer = new jspb.BinaryWriter();
4252
+ this.serializeBinaryToWriter(writer);
4253
+ return writer.getResultBuffer();
4254
+ };
4255
+
4256
+
4257
+ /**
4258
+ * Serializes the message to binary data (in protobuf wire format),
4259
+ * writing to the given BinaryWriter.
4260
+ * @param {!jspb.BinaryWriter} writer
4261
+ */
4262
+ proto.kycserviceapi.VerifyDocumentRequest.prototype.serializeBinaryToWriter = function (writer) {
4263
+ var f = undefined;
4264
+ f = this.getDocumentid();
4265
+ if (f !== 0) {
4266
+ writer.writeInt64(
4267
+ 1,
4268
+ f
4269
+ );
4270
+ }
4271
+ };
4272
+
4273
+
4274
+ /**
4275
+ * Creates a deep clone of this proto. No data is shared with the original.
4276
+ * @return {!proto.kycserviceapi.VerifyDocumentRequest} The clone.
4277
+ */
4278
+ proto.kycserviceapi.VerifyDocumentRequest.prototype.cloneMessage = function() {
4279
+ return /** @type {!proto.kycserviceapi.VerifyDocumentRequest} */ (jspb.Message.cloneMessage(this));
4280
+ };
4281
+
4282
+
4283
+ /**
4284
+ * optional int64 documentId = 1;
4285
+ * @return {number}
4286
+ */
4287
+ proto.kycserviceapi.VerifyDocumentRequest.prototype.getDocumentid = function() {
4288
+ return /** @type {number} */ (jspb.Message.getFieldProto3(this, 1, 0));
4289
+ };
4290
+
4291
+
4292
+ /** @param {number} value */
4293
+ proto.kycserviceapi.VerifyDocumentRequest.prototype.setDocumentid = function(value) {
4294
+ jspb.Message.setField(this, 1, value);
4295
+ };
4296
+
4297
+
4138
4298
  /**
4139
4299
  * @enum {number}
4140
4300
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sniipwebmaster/kyc-client-grpcweb",
3
- "version": "21.8.136",
3
+ "version": "21.8.150",
4
4
  "description": "kyc-client-grpcweb",
5
5
  "author": "Sniip Development Team",
6
6
  "license": "MIT",