@sniipwebmaster/kyc-client-grpcweb 21.8.98 → 21.8.112

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.
@@ -90,6 +90,61 @@ proto.kycserviceapi.KYCServiceAPIServicePromiseClient =
90
90
  };
91
91
 
92
92
 
93
+ /**
94
+ * @const
95
+ * @type {!grpc.web.AbstractClientBase.MethodInfo<
96
+ * !proto.kycserviceapi.DeleteDocumentRequest,
97
+ * !proto.kycserviceapi.ResponseCode>}
98
+ */
99
+ const methodInfo_KYCServiceAPIService_DeleteDocument = new grpc.web.AbstractClientBase.MethodInfo(
100
+ proto.kycserviceapi.ResponseCode,
101
+ /** @param {!proto.kycserviceapi.DeleteDocumentRequest} request */
102
+ function(request) {
103
+ return request.serializeBinary();
104
+ },
105
+ proto.kycserviceapi.ResponseCode.deserializeBinary
106
+ );
107
+
108
+
109
+ /**
110
+ * @param {!proto.kycserviceapi.DeleteDocumentRequest} request The
111
+ * request proto
112
+ * @param {?Object<string, string>} metadata User defined
113
+ * call metadata
114
+ * @param {function(?grpc.web.Error, ?proto.kycserviceapi.ResponseCode)}
115
+ * callback The callback function(error, response)
116
+ * @return {!grpc.web.ClientReadableStream<!proto.kycserviceapi.ResponseCode>|undefined}
117
+ * The XHR Node Readable Stream
118
+ */
119
+ proto.kycserviceapi.KYCServiceAPIServiceClient.prototype.deleteDocument =
120
+ function(request, metadata, callback) {
121
+ return this.client_.rpcCall(this.hostname_ +
122
+ '/kycserviceapi.KYCServiceAPIService/DeleteDocument',
123
+ request,
124
+ metadata || {},
125
+ methodInfo_KYCServiceAPIService_DeleteDocument,
126
+ callback);
127
+ };
128
+
129
+
130
+ /**
131
+ * @param {!proto.kycserviceapi.DeleteDocumentRequest} request The
132
+ * request proto
133
+ * @param {?Object<string, string>} metadata User defined
134
+ * call metadata
135
+ * @return {!Promise<!proto.kycserviceapi.ResponseCode>}
136
+ * A native promise that resolves to the response
137
+ */
138
+ proto.kycserviceapi.KYCServiceAPIServicePromiseClient.prototype.deleteDocument =
139
+ function(request, metadata) {
140
+ return this.client_.unaryCall(this.hostname_ +
141
+ '/kycserviceapi.KYCServiceAPIService/DeleteDocument',
142
+ request,
143
+ metadata || {},
144
+ methodInfo_KYCServiceAPIService_DeleteDocument);
145
+ };
146
+
147
+
93
148
  /**
94
149
  * @const
95
150
  * @type {!grpc.web.AbstractClientBase.MethodInfo<
@@ -12,6 +12,7 @@ var global = Function('return this')();
12
12
  var google_api_annotations_pb = require('./google/api/annotations_pb.js');
13
13
  var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js');
14
14
  goog.exportSymbol('proto.kycserviceapi.Attachment', null, global);
15
+ goog.exportSymbol('proto.kycserviceapi.DeleteDocumentRequest', null, global);
15
16
  goog.exportSymbol('proto.kycserviceapi.Document', null, global);
16
17
  goog.exportSymbol('proto.kycserviceapi.DocumentResponse', null, global);
17
18
  goog.exportSymbol('proto.kycserviceapi.DocumentSaveRequest', null, global);
@@ -245,6 +246,165 @@ proto.kycserviceapi.Attachment.prototype.setAttachmenturl = function(value) {
245
246
 
246
247
 
247
248
 
249
+ /**
250
+ * Generated by JsPbCodeGenerator.
251
+ * @param {Array=} opt_data Optional initial data array, typically from a
252
+ * server response, or constructed directly in Javascript. The array is used
253
+ * in place and becomes part of the constructed object. It is not cloned.
254
+ * If no data is provided, the constructed object will be empty, but still
255
+ * valid.
256
+ * @extends {jspb.Message}
257
+ * @constructor
258
+ */
259
+ proto.kycserviceapi.DeleteDocumentRequest = function(opt_data) {
260
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
261
+ };
262
+ goog.inherits(proto.kycserviceapi.DeleteDocumentRequest, jspb.Message);
263
+ if (goog.DEBUG && !COMPILED) {
264
+ proto.kycserviceapi.DeleteDocumentRequest.displayName = 'proto.kycserviceapi.DeleteDocumentRequest';
265
+ }
266
+
267
+
268
+ if (jspb.Message.GENERATE_TO_OBJECT) {
269
+ /**
270
+ * Creates an object representation of this proto suitable for use in Soy templates.
271
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
272
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
273
+ * For the list of reserved names please see:
274
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
275
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
276
+ * for transitional soy proto support: http://goto/soy-param-migration
277
+ * @return {!Object}
278
+ */
279
+ proto.kycserviceapi.DeleteDocumentRequest.prototype.toObject = function(opt_includeInstance) {
280
+ return proto.kycserviceapi.DeleteDocumentRequest.toObject(opt_includeInstance, this);
281
+ };
282
+
283
+
284
+ /**
285
+ * Static version of the {@see toObject} method.
286
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
287
+ * instance for transitional soy proto support:
288
+ * http://goto/soy-param-migration
289
+ * @param {!proto.kycserviceapi.DeleteDocumentRequest} msg The msg instance to transform.
290
+ * @return {!Object}
291
+ */
292
+ proto.kycserviceapi.DeleteDocumentRequest.toObject = function(includeInstance, msg) {
293
+ var f, obj = {
294
+ documentid: msg.getDocumentid()
295
+ };
296
+
297
+ if (includeInstance) {
298
+ obj.$jspbMessageInstance = msg;
299
+ }
300
+ return obj;
301
+ };
302
+ }
303
+
304
+
305
+ /**
306
+ * Deserializes binary data (in protobuf wire format).
307
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
308
+ * @return {!proto.kycserviceapi.DeleteDocumentRequest}
309
+ */
310
+ proto.kycserviceapi.DeleteDocumentRequest.deserializeBinary = function(bytes) {
311
+ var reader = new jspb.BinaryReader(bytes);
312
+ var msg = new proto.kycserviceapi.DeleteDocumentRequest;
313
+ return proto.kycserviceapi.DeleteDocumentRequest.deserializeBinaryFromReader(msg, reader);
314
+ };
315
+
316
+
317
+ /**
318
+ * Deserializes binary data (in protobuf wire format) from the
319
+ * given reader into the given message object.
320
+ * @param {!proto.kycserviceapi.DeleteDocumentRequest} msg The message object to deserialize into.
321
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
322
+ * @return {!proto.kycserviceapi.DeleteDocumentRequest}
323
+ */
324
+ proto.kycserviceapi.DeleteDocumentRequest.deserializeBinaryFromReader = function(msg, reader) {
325
+ while (reader.nextField()) {
326
+ if (reader.isEndGroup()) {
327
+ break;
328
+ }
329
+ var field = reader.getFieldNumber();
330
+ switch (field) {
331
+ case 1:
332
+ var value = /** @type {number} */ (reader.readInt64());
333
+ msg.setDocumentid(value);
334
+ break;
335
+ default:
336
+ reader.skipField();
337
+ break;
338
+ }
339
+ }
340
+ return msg;
341
+ };
342
+
343
+
344
+ /**
345
+ * Class method variant: serializes the given message to binary data
346
+ * (in protobuf wire format), writing to the given BinaryWriter.
347
+ * @param {!proto.kycserviceapi.DeleteDocumentRequest} message
348
+ * @param {!jspb.BinaryWriter} writer
349
+ */
350
+ proto.kycserviceapi.DeleteDocumentRequest.serializeBinaryToWriter = function(message, writer) {
351
+ message.serializeBinaryToWriter(writer);
352
+ };
353
+
354
+
355
+ /**
356
+ * Serializes the message to binary data (in protobuf wire format).
357
+ * @return {!Uint8Array}
358
+ */
359
+ proto.kycserviceapi.DeleteDocumentRequest.prototype.serializeBinary = function() {
360
+ var writer = new jspb.BinaryWriter();
361
+ this.serializeBinaryToWriter(writer);
362
+ return writer.getResultBuffer();
363
+ };
364
+
365
+
366
+ /**
367
+ * Serializes the message to binary data (in protobuf wire format),
368
+ * writing to the given BinaryWriter.
369
+ * @param {!jspb.BinaryWriter} writer
370
+ */
371
+ proto.kycserviceapi.DeleteDocumentRequest.prototype.serializeBinaryToWriter = function (writer) {
372
+ var f = undefined;
373
+ f = this.getDocumentid();
374
+ if (f !== 0) {
375
+ writer.writeInt64(
376
+ 1,
377
+ f
378
+ );
379
+ }
380
+ };
381
+
382
+
383
+ /**
384
+ * Creates a deep clone of this proto. No data is shared with the original.
385
+ * @return {!proto.kycserviceapi.DeleteDocumentRequest} The clone.
386
+ */
387
+ proto.kycserviceapi.DeleteDocumentRequest.prototype.cloneMessage = function() {
388
+ return /** @type {!proto.kycserviceapi.DeleteDocumentRequest} */ (jspb.Message.cloneMessage(this));
389
+ };
390
+
391
+
392
+ /**
393
+ * optional int64 documentId = 1;
394
+ * @return {number}
395
+ */
396
+ proto.kycserviceapi.DeleteDocumentRequest.prototype.getDocumentid = function() {
397
+ return /** @type {number} */ (jspb.Message.getFieldProto3(this, 1, 0));
398
+ };
399
+
400
+
401
+ /** @param {number} value */
402
+ proto.kycserviceapi.DeleteDocumentRequest.prototype.setDocumentid = function(value) {
403
+ jspb.Message.setField(this, 1, value);
404
+ };
405
+
406
+
407
+
248
408
  /**
249
409
  * Generated by JsPbCodeGenerator.
250
410
  * @param {Array=} opt_data Optional initial data array, typically from a
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sniipwebmaster/kyc-client-grpcweb",
3
- "version": "21.8.98",
3
+ "version": "21.8.112",
4
4
  "description": "kyc-client-grpcweb",
5
5
  "author": "Sniip Development Team",
6
6
  "license": "MIT",