@sniipwebmaster/email-import-service-client-grpcweb 0.2.955 → 0.2.982

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.
@@ -313,12 +313,12 @@ proto.sniipemailimportapi.SniipEmailImportAPIServicePromiseClient.prototype.make
313
313
  /**
314
314
  * @const
315
315
  * @type {!grpc.web.AbstractClientBase.MethodInfo<
316
- * !proto.google.protobuf.Empty,
316
+ * !proto.sniipemailimportapi.ManuallySyncRequest,
317
317
  * !proto.sniipemailimportapi.ResponseCode>}
318
318
  */
319
319
  const methodInfo_SniipEmailImportAPIService_ManuallySync = new grpc.web.AbstractClientBase.MethodInfo(
320
320
  proto.sniipemailimportapi.ResponseCode,
321
- /** @param {!proto.google.protobuf.Empty} request */
321
+ /** @param {!proto.sniipemailimportapi.ManuallySyncRequest} request */
322
322
  function(request) {
323
323
  return request.serializeBinary();
324
324
  },
@@ -327,7 +327,7 @@ const methodInfo_SniipEmailImportAPIService_ManuallySync = new grpc.web.Abstract
327
327
 
328
328
 
329
329
  /**
330
- * @param {!proto.google.protobuf.Empty} request The
330
+ * @param {!proto.sniipemailimportapi.ManuallySyncRequest} request The
331
331
  * request proto
332
332
  * @param {?Object<string, string>} metadata User defined
333
333
  * call metadata
@@ -348,7 +348,7 @@ proto.sniipemailimportapi.SniipEmailImportAPIServiceClient.prototype.manuallySyn
348
348
 
349
349
 
350
350
  /**
351
- * @param {!proto.google.protobuf.Empty} request The
351
+ * @param {!proto.sniipemailimportapi.ManuallySyncRequest} request The
352
352
  * request proto
353
353
  * @param {?Object<string, string>} metadata User defined
354
354
  * call metadata
@@ -530,6 +530,61 @@ proto.sniipemailimportapi.SniipEmailImportAPIServicePromiseClient.prototype.remo
530
530
  };
531
531
 
532
532
 
533
+ /**
534
+ * @const
535
+ * @type {!grpc.web.AbstractClientBase.MethodInfo<
536
+ * !proto.google.protobuf.Empty,
537
+ * !proto.sniipemailimportapi.ResponseCode>}
538
+ */
539
+ const methodInfo_SniipEmailImportAPIService_SyncAllAccounts = new grpc.web.AbstractClientBase.MethodInfo(
540
+ proto.sniipemailimportapi.ResponseCode,
541
+ /** @param {!proto.google.protobuf.Empty} request */
542
+ function(request) {
543
+ return request.serializeBinary();
544
+ },
545
+ proto.sniipemailimportapi.ResponseCode.deserializeBinary
546
+ );
547
+
548
+
549
+ /**
550
+ * @param {!proto.google.protobuf.Empty} request The
551
+ * request proto
552
+ * @param {?Object<string, string>} metadata User defined
553
+ * call metadata
554
+ * @param {function(?grpc.web.Error, ?proto.sniipemailimportapi.ResponseCode)}
555
+ * callback The callback function(error, response)
556
+ * @return {!grpc.web.ClientReadableStream<!proto.sniipemailimportapi.ResponseCode>|undefined}
557
+ * The XHR Node Readable Stream
558
+ */
559
+ proto.sniipemailimportapi.SniipEmailImportAPIServiceClient.prototype.syncAllAccounts =
560
+ function(request, metadata, callback) {
561
+ return this.client_.rpcCall(this.hostname_ +
562
+ '/sniipemailimportapi.SniipEmailImportAPIService/SyncAllAccounts',
563
+ request,
564
+ metadata || {},
565
+ methodInfo_SniipEmailImportAPIService_SyncAllAccounts,
566
+ callback);
567
+ };
568
+
569
+
570
+ /**
571
+ * @param {!proto.google.protobuf.Empty} request The
572
+ * request proto
573
+ * @param {?Object<string, string>} metadata User defined
574
+ * call metadata
575
+ * @return {!Promise<!proto.sniipemailimportapi.ResponseCode>}
576
+ * A native promise that resolves to the response
577
+ */
578
+ proto.sniipemailimportapi.SniipEmailImportAPIServicePromiseClient.prototype.syncAllAccounts =
579
+ function(request, metadata) {
580
+ return this.client_.unaryCall(this.hostname_ +
581
+ '/sniipemailimportapi.SniipEmailImportAPIService/SyncAllAccounts',
582
+ request,
583
+ metadata || {},
584
+ methodInfo_SniipEmailImportAPIService_SyncAllAccounts);
585
+ };
586
+
587
+
533
588
  /**
534
589
  * @const
535
590
  * @type {!grpc.web.AbstractClientBase.MethodInfo<
@@ -18,11 +18,13 @@ goog.exportSymbol('proto.sniipemailimportapi.ConnectedEmail', null, global);
18
18
  goog.exportSymbol('proto.sniipemailimportapi.EmailProviders', null, global);
19
19
  goog.exportSymbol('proto.sniipemailimportapi.GetConnectedEmailsResponse', null, global);
20
20
  goog.exportSymbol('proto.sniipemailimportapi.MakeAuthRequestRequest', null, global);
21
+ goog.exportSymbol('proto.sniipemailimportapi.ManuallySyncRequest', null, global);
21
22
  goog.exportSymbol('proto.sniipemailimportapi.RefreshTokenRequest', null, global);
22
23
  goog.exportSymbol('proto.sniipemailimportapi.RemoveTokenRequest', null, global);
23
24
  goog.exportSymbol('proto.sniipemailimportapi.RequestSyncSuccess', null, global);
24
25
  goog.exportSymbol('proto.sniipemailimportapi.ResponseCode', null, global);
25
26
  goog.exportSymbol('proto.sniipemailimportapi.RevokeRequest', null, global);
27
+ goog.exportSymbol('proto.sniipemailimportapi.SyncManuallyRequest', null, global);
26
28
  goog.exportSymbol('proto.sniipemailimportapi.SyncSuccessRequest', null, global);
27
29
  goog.exportSymbol('proto.sniipemailimportapi.TokenRefreshRequest', null, global);
28
30
  goog.exportSymbol('proto.sniipemailimportapi.TokenRefreshResponse', null, global);
@@ -1614,6 +1616,182 @@ proto.sniipemailimportapi.MakeAuthRequestRequest.prototype.hasData = function()
1614
1616
 
1615
1617
 
1616
1618
 
1619
+ /**
1620
+ * Generated by JsPbCodeGenerator.
1621
+ * @param {Array=} opt_data Optional initial data array, typically from a
1622
+ * server response, or constructed directly in Javascript. The array is used
1623
+ * in place and becomes part of the constructed object. It is not cloned.
1624
+ * If no data is provided, the constructed object will be empty, but still
1625
+ * valid.
1626
+ * @extends {jspb.Message}
1627
+ * @constructor
1628
+ */
1629
+ proto.sniipemailimportapi.ManuallySyncRequest = function(opt_data) {
1630
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1631
+ };
1632
+ goog.inherits(proto.sniipemailimportapi.ManuallySyncRequest, jspb.Message);
1633
+ if (goog.DEBUG && !COMPILED) {
1634
+ proto.sniipemailimportapi.ManuallySyncRequest.displayName = 'proto.sniipemailimportapi.ManuallySyncRequest';
1635
+ }
1636
+
1637
+
1638
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1639
+ /**
1640
+ * Creates an object representation of this proto suitable for use in Soy templates.
1641
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1642
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1643
+ * For the list of reserved names please see:
1644
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
1645
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
1646
+ * for transitional soy proto support: http://goto/soy-param-migration
1647
+ * @return {!Object}
1648
+ */
1649
+ proto.sniipemailimportapi.ManuallySyncRequest.prototype.toObject = function(opt_includeInstance) {
1650
+ return proto.sniipemailimportapi.ManuallySyncRequest.toObject(opt_includeInstance, this);
1651
+ };
1652
+
1653
+
1654
+ /**
1655
+ * Static version of the {@see toObject} method.
1656
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
1657
+ * instance for transitional soy proto support:
1658
+ * http://goto/soy-param-migration
1659
+ * @param {!proto.sniipemailimportapi.ManuallySyncRequest} msg The msg instance to transform.
1660
+ * @return {!Object}
1661
+ */
1662
+ proto.sniipemailimportapi.ManuallySyncRequest.toObject = function(includeInstance, msg) {
1663
+ var f, obj = {
1664
+ data: (f = msg.getData()) && proto.sniipemailimportapi.SyncManuallyRequest.toObject(includeInstance, f)
1665
+ };
1666
+
1667
+ if (includeInstance) {
1668
+ obj.$jspbMessageInstance = msg;
1669
+ }
1670
+ return obj;
1671
+ };
1672
+ }
1673
+
1674
+
1675
+ /**
1676
+ * Deserializes binary data (in protobuf wire format).
1677
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1678
+ * @return {!proto.sniipemailimportapi.ManuallySyncRequest}
1679
+ */
1680
+ proto.sniipemailimportapi.ManuallySyncRequest.deserializeBinary = function(bytes) {
1681
+ var reader = new jspb.BinaryReader(bytes);
1682
+ var msg = new proto.sniipemailimportapi.ManuallySyncRequest;
1683
+ return proto.sniipemailimportapi.ManuallySyncRequest.deserializeBinaryFromReader(msg, reader);
1684
+ };
1685
+
1686
+
1687
+ /**
1688
+ * Deserializes binary data (in protobuf wire format) from the
1689
+ * given reader into the given message object.
1690
+ * @param {!proto.sniipemailimportapi.ManuallySyncRequest} msg The message object to deserialize into.
1691
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1692
+ * @return {!proto.sniipemailimportapi.ManuallySyncRequest}
1693
+ */
1694
+ proto.sniipemailimportapi.ManuallySyncRequest.deserializeBinaryFromReader = function(msg, reader) {
1695
+ while (reader.nextField()) {
1696
+ if (reader.isEndGroup()) {
1697
+ break;
1698
+ }
1699
+ var field = reader.getFieldNumber();
1700
+ switch (field) {
1701
+ case 1:
1702
+ var value = new proto.sniipemailimportapi.SyncManuallyRequest;
1703
+ reader.readMessage(value,proto.sniipemailimportapi.SyncManuallyRequest.deserializeBinaryFromReader);
1704
+ msg.setData(value);
1705
+ break;
1706
+ default:
1707
+ reader.skipField();
1708
+ break;
1709
+ }
1710
+ }
1711
+ return msg;
1712
+ };
1713
+
1714
+
1715
+ /**
1716
+ * Class method variant: serializes the given message to binary data
1717
+ * (in protobuf wire format), writing to the given BinaryWriter.
1718
+ * @param {!proto.sniipemailimportapi.ManuallySyncRequest} message
1719
+ * @param {!jspb.BinaryWriter} writer
1720
+ */
1721
+ proto.sniipemailimportapi.ManuallySyncRequest.serializeBinaryToWriter = function(message, writer) {
1722
+ message.serializeBinaryToWriter(writer);
1723
+ };
1724
+
1725
+
1726
+ /**
1727
+ * Serializes the message to binary data (in protobuf wire format).
1728
+ * @return {!Uint8Array}
1729
+ */
1730
+ proto.sniipemailimportapi.ManuallySyncRequest.prototype.serializeBinary = function() {
1731
+ var writer = new jspb.BinaryWriter();
1732
+ this.serializeBinaryToWriter(writer);
1733
+ return writer.getResultBuffer();
1734
+ };
1735
+
1736
+
1737
+ /**
1738
+ * Serializes the message to binary data (in protobuf wire format),
1739
+ * writing to the given BinaryWriter.
1740
+ * @param {!jspb.BinaryWriter} writer
1741
+ */
1742
+ proto.sniipemailimportapi.ManuallySyncRequest.prototype.serializeBinaryToWriter = function (writer) {
1743
+ var f = undefined;
1744
+ f = this.getData();
1745
+ if (f != null) {
1746
+ writer.writeMessage(
1747
+ 1,
1748
+ f,
1749
+ proto.sniipemailimportapi.SyncManuallyRequest.serializeBinaryToWriter
1750
+ );
1751
+ }
1752
+ };
1753
+
1754
+
1755
+ /**
1756
+ * Creates a deep clone of this proto. No data is shared with the original.
1757
+ * @return {!proto.sniipemailimportapi.ManuallySyncRequest} The clone.
1758
+ */
1759
+ proto.sniipemailimportapi.ManuallySyncRequest.prototype.cloneMessage = function() {
1760
+ return /** @type {!proto.sniipemailimportapi.ManuallySyncRequest} */ (jspb.Message.cloneMessage(this));
1761
+ };
1762
+
1763
+
1764
+ /**
1765
+ * optional SyncManuallyRequest data = 1;
1766
+ * @return {proto.sniipemailimportapi.SyncManuallyRequest}
1767
+ */
1768
+ proto.sniipemailimportapi.ManuallySyncRequest.prototype.getData = function() {
1769
+ return /** @type{proto.sniipemailimportapi.SyncManuallyRequest} */ (
1770
+ jspb.Message.getWrapperField(this, proto.sniipemailimportapi.SyncManuallyRequest, 1));
1771
+ };
1772
+
1773
+
1774
+ /** @param {proto.sniipemailimportapi.SyncManuallyRequest|undefined} value */
1775
+ proto.sniipemailimportapi.ManuallySyncRequest.prototype.setData = function(value) {
1776
+ jspb.Message.setWrapperField(this, 1, value);
1777
+ };
1778
+
1779
+
1780
+ proto.sniipemailimportapi.ManuallySyncRequest.prototype.clearData = function() {
1781
+ this.setData(undefined);
1782
+ };
1783
+
1784
+
1785
+ /**
1786
+ * Returns whether this field is set.
1787
+ * @return{!boolean}
1788
+ */
1789
+ proto.sniipemailimportapi.ManuallySyncRequest.prototype.hasData = function() {
1790
+ return jspb.Message.getField(this, 1) != null;
1791
+ };
1792
+
1793
+
1794
+
1617
1795
  /**
1618
1796
  * Generated by JsPbCodeGenerator.
1619
1797
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -2551,6 +2729,165 @@ proto.sniipemailimportapi.RevokeRequest.prototype.setTokenid = function(value) {
2551
2729
 
2552
2730
 
2553
2731
 
2732
+ /**
2733
+ * Generated by JsPbCodeGenerator.
2734
+ * @param {Array=} opt_data Optional initial data array, typically from a
2735
+ * server response, or constructed directly in Javascript. The array is used
2736
+ * in place and becomes part of the constructed object. It is not cloned.
2737
+ * If no data is provided, the constructed object will be empty, but still
2738
+ * valid.
2739
+ * @extends {jspb.Message}
2740
+ * @constructor
2741
+ */
2742
+ proto.sniipemailimportapi.SyncManuallyRequest = function(opt_data) {
2743
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2744
+ };
2745
+ goog.inherits(proto.sniipemailimportapi.SyncManuallyRequest, jspb.Message);
2746
+ if (goog.DEBUG && !COMPILED) {
2747
+ proto.sniipemailimportapi.SyncManuallyRequest.displayName = 'proto.sniipemailimportapi.SyncManuallyRequest';
2748
+ }
2749
+
2750
+
2751
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2752
+ /**
2753
+ * Creates an object representation of this proto suitable for use in Soy templates.
2754
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2755
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2756
+ * For the list of reserved names please see:
2757
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
2758
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
2759
+ * for transitional soy proto support: http://goto/soy-param-migration
2760
+ * @return {!Object}
2761
+ */
2762
+ proto.sniipemailimportapi.SyncManuallyRequest.prototype.toObject = function(opt_includeInstance) {
2763
+ return proto.sniipemailimportapi.SyncManuallyRequest.toObject(opt_includeInstance, this);
2764
+ };
2765
+
2766
+
2767
+ /**
2768
+ * Static version of the {@see toObject} method.
2769
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
2770
+ * instance for transitional soy proto support:
2771
+ * http://goto/soy-param-migration
2772
+ * @param {!proto.sniipemailimportapi.SyncManuallyRequest} msg The msg instance to transform.
2773
+ * @return {!Object}
2774
+ */
2775
+ proto.sniipemailimportapi.SyncManuallyRequest.toObject = function(includeInstance, msg) {
2776
+ var f, obj = {
2777
+ tokenid: msg.getTokenid()
2778
+ };
2779
+
2780
+ if (includeInstance) {
2781
+ obj.$jspbMessageInstance = msg;
2782
+ }
2783
+ return obj;
2784
+ };
2785
+ }
2786
+
2787
+
2788
+ /**
2789
+ * Deserializes binary data (in protobuf wire format).
2790
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2791
+ * @return {!proto.sniipemailimportapi.SyncManuallyRequest}
2792
+ */
2793
+ proto.sniipemailimportapi.SyncManuallyRequest.deserializeBinary = function(bytes) {
2794
+ var reader = new jspb.BinaryReader(bytes);
2795
+ var msg = new proto.sniipemailimportapi.SyncManuallyRequest;
2796
+ return proto.sniipemailimportapi.SyncManuallyRequest.deserializeBinaryFromReader(msg, reader);
2797
+ };
2798
+
2799
+
2800
+ /**
2801
+ * Deserializes binary data (in protobuf wire format) from the
2802
+ * given reader into the given message object.
2803
+ * @param {!proto.sniipemailimportapi.SyncManuallyRequest} msg The message object to deserialize into.
2804
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2805
+ * @return {!proto.sniipemailimportapi.SyncManuallyRequest}
2806
+ */
2807
+ proto.sniipemailimportapi.SyncManuallyRequest.deserializeBinaryFromReader = function(msg, reader) {
2808
+ while (reader.nextField()) {
2809
+ if (reader.isEndGroup()) {
2810
+ break;
2811
+ }
2812
+ var field = reader.getFieldNumber();
2813
+ switch (field) {
2814
+ case 1:
2815
+ var value = /** @type {number} */ (reader.readInt64());
2816
+ msg.setTokenid(value);
2817
+ break;
2818
+ default:
2819
+ reader.skipField();
2820
+ break;
2821
+ }
2822
+ }
2823
+ return msg;
2824
+ };
2825
+
2826
+
2827
+ /**
2828
+ * Class method variant: serializes the given message to binary data
2829
+ * (in protobuf wire format), writing to the given BinaryWriter.
2830
+ * @param {!proto.sniipemailimportapi.SyncManuallyRequest} message
2831
+ * @param {!jspb.BinaryWriter} writer
2832
+ */
2833
+ proto.sniipemailimportapi.SyncManuallyRequest.serializeBinaryToWriter = function(message, writer) {
2834
+ message.serializeBinaryToWriter(writer);
2835
+ };
2836
+
2837
+
2838
+ /**
2839
+ * Serializes the message to binary data (in protobuf wire format).
2840
+ * @return {!Uint8Array}
2841
+ */
2842
+ proto.sniipemailimportapi.SyncManuallyRequest.prototype.serializeBinary = function() {
2843
+ var writer = new jspb.BinaryWriter();
2844
+ this.serializeBinaryToWriter(writer);
2845
+ return writer.getResultBuffer();
2846
+ };
2847
+
2848
+
2849
+ /**
2850
+ * Serializes the message to binary data (in protobuf wire format),
2851
+ * writing to the given BinaryWriter.
2852
+ * @param {!jspb.BinaryWriter} writer
2853
+ */
2854
+ proto.sniipemailimportapi.SyncManuallyRequest.prototype.serializeBinaryToWriter = function (writer) {
2855
+ var f = undefined;
2856
+ f = this.getTokenid();
2857
+ if (f !== 0) {
2858
+ writer.writeInt64(
2859
+ 1,
2860
+ f
2861
+ );
2862
+ }
2863
+ };
2864
+
2865
+
2866
+ /**
2867
+ * Creates a deep clone of this proto. No data is shared with the original.
2868
+ * @return {!proto.sniipemailimportapi.SyncManuallyRequest} The clone.
2869
+ */
2870
+ proto.sniipemailimportapi.SyncManuallyRequest.prototype.cloneMessage = function() {
2871
+ return /** @type {!proto.sniipemailimportapi.SyncManuallyRequest} */ (jspb.Message.cloneMessage(this));
2872
+ };
2873
+
2874
+
2875
+ /**
2876
+ * optional int64 tokenId = 1;
2877
+ * @return {number}
2878
+ */
2879
+ proto.sniipemailimportapi.SyncManuallyRequest.prototype.getTokenid = function() {
2880
+ return /** @type {number} */ (jspb.Message.getFieldProto3(this, 1, 0));
2881
+ };
2882
+
2883
+
2884
+ /** @param {number} value */
2885
+ proto.sniipemailimportapi.SyncManuallyRequest.prototype.setTokenid = function(value) {
2886
+ jspb.Message.setField(this, 1, value);
2887
+ };
2888
+
2889
+
2890
+
2554
2891
  /**
2555
2892
  * Generated by JsPbCodeGenerator.
2556
2893
  * @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/email-import-service-client-grpcweb",
3
- "version": "0.2.955",
3
+ "version": "0.2.982",
4
4
  "description": "email-import-service-client-grpcweb",
5
5
  "author": "Sniip Development Team",
6
6
  "license": "MIT",