@sniipwebmaster/email-import-service-client-grpcweb 0.2.1602 → 0.2.1620

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.
@@ -259,15 +259,15 @@ proto.sniipemailimportapi.SniipEmailImportAPIServicePromiseClient.prototype.getC
259
259
  * @const
260
260
  * @type {!grpc.web.AbstractClientBase.MethodInfo<
261
261
  * !proto.sniipemailimportapi.HandleMsAuthRediecrtionRequest,
262
- * !proto.sniipemailimportapi.ResponseCode>}
262
+ * !proto.sniipemailimportapi.AuthResponse>}
263
263
  */
264
264
  const methodInfo_SniipEmailImportAPIService_HandleMsAuthRediecrtion = new grpc.web.AbstractClientBase.MethodInfo(
265
- proto.sniipemailimportapi.ResponseCode,
265
+ proto.sniipemailimportapi.AuthResponse,
266
266
  /** @param {!proto.sniipemailimportapi.HandleMsAuthRediecrtionRequest} request */
267
267
  function(request) {
268
268
  return request.serializeBinary();
269
269
  },
270
- proto.sniipemailimportapi.ResponseCode.deserializeBinary
270
+ proto.sniipemailimportapi.AuthResponse.deserializeBinary
271
271
  );
272
272
 
273
273
 
@@ -276,9 +276,9 @@ const methodInfo_SniipEmailImportAPIService_HandleMsAuthRediecrtion = new grpc.w
276
276
  * request proto
277
277
  * @param {?Object<string, string>} metadata User defined
278
278
  * call metadata
279
- * @param {function(?grpc.web.Error, ?proto.sniipemailimportapi.ResponseCode)}
279
+ * @param {function(?grpc.web.Error, ?proto.sniipemailimportapi.AuthResponse)}
280
280
  * callback The callback function(error, response)
281
- * @return {!grpc.web.ClientReadableStream<!proto.sniipemailimportapi.ResponseCode>|undefined}
281
+ * @return {!grpc.web.ClientReadableStream<!proto.sniipemailimportapi.AuthResponse>|undefined}
282
282
  * The XHR Node Readable Stream
283
283
  */
284
284
  proto.sniipemailimportapi.SniipEmailImportAPIServiceClient.prototype.handleMsAuthRediecrtion =
@@ -297,7 +297,7 @@ proto.sniipemailimportapi.SniipEmailImportAPIServiceClient.prototype.handleMsAut
297
297
  * request proto
298
298
  * @param {?Object<string, string>} metadata User defined
299
299
  * call metadata
300
- * @return {!Promise<!proto.sniipemailimportapi.ResponseCode>}
300
+ * @return {!Promise<!proto.sniipemailimportapi.AuthResponse>}
301
301
  * A native promise that resolves to the response
302
302
  */
303
303
  proto.sniipemailimportapi.SniipEmailImportAPIServicePromiseClient.prototype.handleMsAuthRediecrtion =
@@ -322,8 +322,6 @@ proto.sniipemailimportapi.AuthResponse.prototype.toObject = function(opt_include
322
322
  proto.sniipemailimportapi.AuthResponse.toObject = function(includeInstance, msg) {
323
323
  var f, obj = {
324
324
  responsecode: (f = msg.getResponsecode()) && proto.sniipemailimportapi.ResponseCode.toObject(includeInstance, f),
325
- accesstoken: msg.getAccesstoken(),
326
- refreshtoken: msg.getRefreshtoken(),
327
325
  tokenid: msg.getTokenid()
328
326
  };
329
327
 
@@ -367,14 +365,6 @@ proto.sniipemailimportapi.AuthResponse.deserializeBinaryFromReader = function(ms
367
365
  msg.setResponsecode(value);
368
366
  break;
369
367
  case 2:
370
- var value = /** @type {string} */ (reader.readString());
371
- msg.setAccesstoken(value);
372
- break;
373
- case 3:
374
- var value = /** @type {string} */ (reader.readString());
375
- msg.setRefreshtoken(value);
376
- break;
377
- case 4:
378
368
  var value = /** @type {number} */ (reader.readInt64());
379
369
  msg.setTokenid(value);
380
370
  break;
@@ -424,24 +414,10 @@ proto.sniipemailimportapi.AuthResponse.prototype.serializeBinaryToWriter = funct
424
414
  proto.sniipemailimportapi.ResponseCode.serializeBinaryToWriter
425
415
  );
426
416
  }
427
- f = this.getAccesstoken();
428
- if (f.length > 0) {
429
- writer.writeString(
430
- 2,
431
- f
432
- );
433
- }
434
- f = this.getRefreshtoken();
435
- if (f.length > 0) {
436
- writer.writeString(
437
- 3,
438
- f
439
- );
440
- }
441
417
  f = this.getTokenid();
442
418
  if (f !== 0) {
443
419
  writer.writeInt64(
444
- 4,
420
+ 2,
445
421
  f
446
422
  );
447
423
  }
@@ -488,47 +464,17 @@ proto.sniipemailimportapi.AuthResponse.prototype.hasResponsecode = function() {
488
464
 
489
465
 
490
466
  /**
491
- * optional string accessToken = 2;
492
- * @return {string}
493
- */
494
- proto.sniipemailimportapi.AuthResponse.prototype.getAccesstoken = function() {
495
- return /** @type {string} */ (jspb.Message.getFieldProto3(this, 2, ""));
496
- };
497
-
498
-
499
- /** @param {string} value */
500
- proto.sniipemailimportapi.AuthResponse.prototype.setAccesstoken = function(value) {
501
- jspb.Message.setField(this, 2, value);
502
- };
503
-
504
-
505
- /**
506
- * optional string refreshToken = 3;
507
- * @return {string}
508
- */
509
- proto.sniipemailimportapi.AuthResponse.prototype.getRefreshtoken = function() {
510
- return /** @type {string} */ (jspb.Message.getFieldProto3(this, 3, ""));
511
- };
512
-
513
-
514
- /** @param {string} value */
515
- proto.sniipemailimportapi.AuthResponse.prototype.setRefreshtoken = function(value) {
516
- jspb.Message.setField(this, 3, value);
517
- };
518
-
519
-
520
- /**
521
- * optional int64 tokenId = 4;
467
+ * optional int64 tokenId = 2;
522
468
  * @return {number}
523
469
  */
524
470
  proto.sniipemailimportapi.AuthResponse.prototype.getTokenid = function() {
525
- return /** @type {number} */ (jspb.Message.getFieldProto3(this, 4, 0));
471
+ return /** @type {number} */ (jspb.Message.getFieldProto3(this, 2, 0));
526
472
  };
527
473
 
528
474
 
529
475
  /** @param {number} value */
530
476
  proto.sniipemailimportapi.AuthResponse.prototype.setTokenid = function(value) {
531
- jspb.Message.setField(this, 4, value);
477
+ jspb.Message.setField(this, 2, value);
532
478
  };
533
479
 
534
480
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sniipwebmaster/email-import-service-client-grpcweb",
3
- "version": "0.2.1602",
3
+ "version": "0.2.1620",
4
4
  "description": "email-import-service-client-grpcweb",
5
5
  "author": "Sniip Development Team",
6
6
  "license": "MIT",