@sniipwebmaster/email-import-service-client-grpcweb 0.2.874 → 0.2.892

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,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.sniipemailimportapi.SyncSuccessRequest,
537
+ * !proto.sniipemailimportapi.ResponseCode>}
538
+ */
539
+ const methodInfo_SniipEmailImportAPIService_SyncSuccess = new grpc.web.AbstractClientBase.MethodInfo(
540
+ proto.sniipemailimportapi.ResponseCode,
541
+ /** @param {!proto.sniipemailimportapi.SyncSuccessRequest} request */
542
+ function(request) {
543
+ return request.serializeBinary();
544
+ },
545
+ proto.sniipemailimportapi.ResponseCode.deserializeBinary
546
+ );
547
+
548
+
549
+ /**
550
+ * @param {!proto.sniipemailimportapi.SyncSuccessRequest} 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.syncSuccess =
560
+ function(request, metadata, callback) {
561
+ return this.client_.rpcCall(this.hostname_ +
562
+ '/sniipemailimportapi.SniipEmailImportAPIService/SyncSuccess',
563
+ request,
564
+ metadata || {},
565
+ methodInfo_SniipEmailImportAPIService_SyncSuccess,
566
+ callback);
567
+ };
568
+
569
+
570
+ /**
571
+ * @param {!proto.sniipemailimportapi.SyncSuccessRequest} 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.syncSuccess =
579
+ function(request, metadata) {
580
+ return this.client_.unaryCall(this.hostname_ +
581
+ '/sniipemailimportapi.SniipEmailImportAPIService/SyncSuccess',
582
+ request,
583
+ metadata || {},
584
+ methodInfo_SniipEmailImportAPIService_SyncSuccess);
585
+ };
586
+
587
+
533
588
  /**
534
589
  * @const
535
590
  * @type {!grpc.web.AbstractClientBase.MethodInfo<
@@ -20,8 +20,10 @@ goog.exportSymbol('proto.sniipemailimportapi.GetConnectedEmailsResponse', null,
20
20
  goog.exportSymbol('proto.sniipemailimportapi.MakeAuthRequestRequest', null, global);
21
21
  goog.exportSymbol('proto.sniipemailimportapi.RefreshTokenRequest', null, global);
22
22
  goog.exportSymbol('proto.sniipemailimportapi.RemoveTokenRequest', null, global);
23
+ goog.exportSymbol('proto.sniipemailimportapi.RequestSyncSuccess', null, global);
23
24
  goog.exportSymbol('proto.sniipemailimportapi.ResponseCode', null, global);
24
25
  goog.exportSymbol('proto.sniipemailimportapi.RevokeRequest', null, global);
26
+ goog.exportSymbol('proto.sniipemailimportapi.SyncSuccessRequest', null, global);
25
27
  goog.exportSymbol('proto.sniipemailimportapi.TokenRefreshRequest', null, global);
26
28
  goog.exportSymbol('proto.sniipemailimportapi.TokenRefreshResponse', null, global);
27
29
  goog.exportSymbol('proto.sniipemailimportapi.UpdateAutomaticSyncRequest', null, global);
@@ -1964,6 +1966,246 @@ proto.sniipemailimportapi.RemoveTokenRequest.prototype.hasData = function() {
1964
1966
 
1965
1967
 
1966
1968
 
1969
+ /**
1970
+ * Generated by JsPbCodeGenerator.
1971
+ * @param {Array=} opt_data Optional initial data array, typically from a
1972
+ * server response, or constructed directly in Javascript. The array is used
1973
+ * in place and becomes part of the constructed object. It is not cloned.
1974
+ * If no data is provided, the constructed object will be empty, but still
1975
+ * valid.
1976
+ * @extends {jspb.Message}
1977
+ * @constructor
1978
+ */
1979
+ proto.sniipemailimportapi.RequestSyncSuccess = function(opt_data) {
1980
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1981
+ };
1982
+ goog.inherits(proto.sniipemailimportapi.RequestSyncSuccess, jspb.Message);
1983
+ if (goog.DEBUG && !COMPILED) {
1984
+ proto.sniipemailimportapi.RequestSyncSuccess.displayName = 'proto.sniipemailimportapi.RequestSyncSuccess';
1985
+ }
1986
+
1987
+
1988
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1989
+ /**
1990
+ * Creates an object representation of this proto suitable for use in Soy templates.
1991
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1992
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1993
+ * For the list of reserved names please see:
1994
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
1995
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
1996
+ * for transitional soy proto support: http://goto/soy-param-migration
1997
+ * @return {!Object}
1998
+ */
1999
+ proto.sniipemailimportapi.RequestSyncSuccess.prototype.toObject = function(opt_includeInstance) {
2000
+ return proto.sniipemailimportapi.RequestSyncSuccess.toObject(opt_includeInstance, this);
2001
+ };
2002
+
2003
+
2004
+ /**
2005
+ * Static version of the {@see toObject} method.
2006
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
2007
+ * instance for transitional soy proto support:
2008
+ * http://goto/soy-param-migration
2009
+ * @param {!proto.sniipemailimportapi.RequestSyncSuccess} msg The msg instance to transform.
2010
+ * @return {!Object}
2011
+ */
2012
+ proto.sniipemailimportapi.RequestSyncSuccess.toObject = function(includeInstance, msg) {
2013
+ var f, obj = {
2014
+ billid: msg.getBillid(),
2015
+ billername: msg.getBillername(),
2016
+ numberofbillscreated: msg.getNumberofbillscreated(),
2017
+ tokenid: msg.getTokenid()
2018
+ };
2019
+
2020
+ if (includeInstance) {
2021
+ obj.$jspbMessageInstance = msg;
2022
+ }
2023
+ return obj;
2024
+ };
2025
+ }
2026
+
2027
+
2028
+ /**
2029
+ * Deserializes binary data (in protobuf wire format).
2030
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2031
+ * @return {!proto.sniipemailimportapi.RequestSyncSuccess}
2032
+ */
2033
+ proto.sniipemailimportapi.RequestSyncSuccess.deserializeBinary = function(bytes) {
2034
+ var reader = new jspb.BinaryReader(bytes);
2035
+ var msg = new proto.sniipemailimportapi.RequestSyncSuccess;
2036
+ return proto.sniipemailimportapi.RequestSyncSuccess.deserializeBinaryFromReader(msg, reader);
2037
+ };
2038
+
2039
+
2040
+ /**
2041
+ * Deserializes binary data (in protobuf wire format) from the
2042
+ * given reader into the given message object.
2043
+ * @param {!proto.sniipemailimportapi.RequestSyncSuccess} msg The message object to deserialize into.
2044
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2045
+ * @return {!proto.sniipemailimportapi.RequestSyncSuccess}
2046
+ */
2047
+ proto.sniipemailimportapi.RequestSyncSuccess.deserializeBinaryFromReader = function(msg, reader) {
2048
+ while (reader.nextField()) {
2049
+ if (reader.isEndGroup()) {
2050
+ break;
2051
+ }
2052
+ var field = reader.getFieldNumber();
2053
+ switch (field) {
2054
+ case 1:
2055
+ var value = /** @type {number} */ (reader.readInt64());
2056
+ msg.setBillid(value);
2057
+ break;
2058
+ case 2:
2059
+ var value = /** @type {string} */ (reader.readString());
2060
+ msg.setBillername(value);
2061
+ break;
2062
+ case 3:
2063
+ var value = /** @type {number} */ (reader.readInt32());
2064
+ msg.setNumberofbillscreated(value);
2065
+ break;
2066
+ case 4:
2067
+ var value = /** @type {number} */ (reader.readInt64());
2068
+ msg.setTokenid(value);
2069
+ break;
2070
+ default:
2071
+ reader.skipField();
2072
+ break;
2073
+ }
2074
+ }
2075
+ return msg;
2076
+ };
2077
+
2078
+
2079
+ /**
2080
+ * Class method variant: serializes the given message to binary data
2081
+ * (in protobuf wire format), writing to the given BinaryWriter.
2082
+ * @param {!proto.sniipemailimportapi.RequestSyncSuccess} message
2083
+ * @param {!jspb.BinaryWriter} writer
2084
+ */
2085
+ proto.sniipemailimportapi.RequestSyncSuccess.serializeBinaryToWriter = function(message, writer) {
2086
+ message.serializeBinaryToWriter(writer);
2087
+ };
2088
+
2089
+
2090
+ /**
2091
+ * Serializes the message to binary data (in protobuf wire format).
2092
+ * @return {!Uint8Array}
2093
+ */
2094
+ proto.sniipemailimportapi.RequestSyncSuccess.prototype.serializeBinary = function() {
2095
+ var writer = new jspb.BinaryWriter();
2096
+ this.serializeBinaryToWriter(writer);
2097
+ return writer.getResultBuffer();
2098
+ };
2099
+
2100
+
2101
+ /**
2102
+ * Serializes the message to binary data (in protobuf wire format),
2103
+ * writing to the given BinaryWriter.
2104
+ * @param {!jspb.BinaryWriter} writer
2105
+ */
2106
+ proto.sniipemailimportapi.RequestSyncSuccess.prototype.serializeBinaryToWriter = function (writer) {
2107
+ var f = undefined;
2108
+ f = this.getBillid();
2109
+ if (f !== 0) {
2110
+ writer.writeInt64(
2111
+ 1,
2112
+ f
2113
+ );
2114
+ }
2115
+ f = this.getBillername();
2116
+ if (f.length > 0) {
2117
+ writer.writeString(
2118
+ 2,
2119
+ f
2120
+ );
2121
+ }
2122
+ f = this.getNumberofbillscreated();
2123
+ if (f !== 0) {
2124
+ writer.writeInt32(
2125
+ 3,
2126
+ f
2127
+ );
2128
+ }
2129
+ f = this.getTokenid();
2130
+ if (f !== 0) {
2131
+ writer.writeInt64(
2132
+ 4,
2133
+ f
2134
+ );
2135
+ }
2136
+ };
2137
+
2138
+
2139
+ /**
2140
+ * Creates a deep clone of this proto. No data is shared with the original.
2141
+ * @return {!proto.sniipemailimportapi.RequestSyncSuccess} The clone.
2142
+ */
2143
+ proto.sniipemailimportapi.RequestSyncSuccess.prototype.cloneMessage = function() {
2144
+ return /** @type {!proto.sniipemailimportapi.RequestSyncSuccess} */ (jspb.Message.cloneMessage(this));
2145
+ };
2146
+
2147
+
2148
+ /**
2149
+ * optional int64 billId = 1;
2150
+ * @return {number}
2151
+ */
2152
+ proto.sniipemailimportapi.RequestSyncSuccess.prototype.getBillid = function() {
2153
+ return /** @type {number} */ (jspb.Message.getFieldProto3(this, 1, 0));
2154
+ };
2155
+
2156
+
2157
+ /** @param {number} value */
2158
+ proto.sniipemailimportapi.RequestSyncSuccess.prototype.setBillid = function(value) {
2159
+ jspb.Message.setField(this, 1, value);
2160
+ };
2161
+
2162
+
2163
+ /**
2164
+ * optional string billerName = 2;
2165
+ * @return {string}
2166
+ */
2167
+ proto.sniipemailimportapi.RequestSyncSuccess.prototype.getBillername = function() {
2168
+ return /** @type {string} */ (jspb.Message.getFieldProto3(this, 2, ""));
2169
+ };
2170
+
2171
+
2172
+ /** @param {string} value */
2173
+ proto.sniipemailimportapi.RequestSyncSuccess.prototype.setBillername = function(value) {
2174
+ jspb.Message.setField(this, 2, value);
2175
+ };
2176
+
2177
+
2178
+ /**
2179
+ * optional int32 numberOfBillsCreated = 3;
2180
+ * @return {number}
2181
+ */
2182
+ proto.sniipemailimportapi.RequestSyncSuccess.prototype.getNumberofbillscreated = function() {
2183
+ return /** @type {number} */ (jspb.Message.getFieldProto3(this, 3, 0));
2184
+ };
2185
+
2186
+
2187
+ /** @param {number} value */
2188
+ proto.sniipemailimportapi.RequestSyncSuccess.prototype.setNumberofbillscreated = function(value) {
2189
+ jspb.Message.setField(this, 3, value);
2190
+ };
2191
+
2192
+
2193
+ /**
2194
+ * optional int64 tokenId = 4;
2195
+ * @return {number}
2196
+ */
2197
+ proto.sniipemailimportapi.RequestSyncSuccess.prototype.getTokenid = function() {
2198
+ return /** @type {number} */ (jspb.Message.getFieldProto3(this, 4, 0));
2199
+ };
2200
+
2201
+
2202
+ /** @param {number} value */
2203
+ proto.sniipemailimportapi.RequestSyncSuccess.prototype.setTokenid = function(value) {
2204
+ jspb.Message.setField(this, 4, value);
2205
+ };
2206
+
2207
+
2208
+
1967
2209
  /**
1968
2210
  * Generated by JsPbCodeGenerator.
1969
2211
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -2309,6 +2551,182 @@ proto.sniipemailimportapi.RevokeRequest.prototype.setTokenid = function(value) {
2309
2551
 
2310
2552
 
2311
2553
 
2554
+ /**
2555
+ * Generated by JsPbCodeGenerator.
2556
+ * @param {Array=} opt_data Optional initial data array, typically from a
2557
+ * server response, or constructed directly in Javascript. The array is used
2558
+ * in place and becomes part of the constructed object. It is not cloned.
2559
+ * If no data is provided, the constructed object will be empty, but still
2560
+ * valid.
2561
+ * @extends {jspb.Message}
2562
+ * @constructor
2563
+ */
2564
+ proto.sniipemailimportapi.SyncSuccessRequest = function(opt_data) {
2565
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2566
+ };
2567
+ goog.inherits(proto.sniipemailimportapi.SyncSuccessRequest, jspb.Message);
2568
+ if (goog.DEBUG && !COMPILED) {
2569
+ proto.sniipemailimportapi.SyncSuccessRequest.displayName = 'proto.sniipemailimportapi.SyncSuccessRequest';
2570
+ }
2571
+
2572
+
2573
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2574
+ /**
2575
+ * Creates an object representation of this proto suitable for use in Soy templates.
2576
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2577
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2578
+ * For the list of reserved names please see:
2579
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
2580
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
2581
+ * for transitional soy proto support: http://goto/soy-param-migration
2582
+ * @return {!Object}
2583
+ */
2584
+ proto.sniipemailimportapi.SyncSuccessRequest.prototype.toObject = function(opt_includeInstance) {
2585
+ return proto.sniipemailimportapi.SyncSuccessRequest.toObject(opt_includeInstance, this);
2586
+ };
2587
+
2588
+
2589
+ /**
2590
+ * Static version of the {@see toObject} method.
2591
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
2592
+ * instance for transitional soy proto support:
2593
+ * http://goto/soy-param-migration
2594
+ * @param {!proto.sniipemailimportapi.SyncSuccessRequest} msg The msg instance to transform.
2595
+ * @return {!Object}
2596
+ */
2597
+ proto.sniipemailimportapi.SyncSuccessRequest.toObject = function(includeInstance, msg) {
2598
+ var f, obj = {
2599
+ data: (f = msg.getData()) && proto.sniipemailimportapi.RequestSyncSuccess.toObject(includeInstance, f)
2600
+ };
2601
+
2602
+ if (includeInstance) {
2603
+ obj.$jspbMessageInstance = msg;
2604
+ }
2605
+ return obj;
2606
+ };
2607
+ }
2608
+
2609
+
2610
+ /**
2611
+ * Deserializes binary data (in protobuf wire format).
2612
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2613
+ * @return {!proto.sniipemailimportapi.SyncSuccessRequest}
2614
+ */
2615
+ proto.sniipemailimportapi.SyncSuccessRequest.deserializeBinary = function(bytes) {
2616
+ var reader = new jspb.BinaryReader(bytes);
2617
+ var msg = new proto.sniipemailimportapi.SyncSuccessRequest;
2618
+ return proto.sniipemailimportapi.SyncSuccessRequest.deserializeBinaryFromReader(msg, reader);
2619
+ };
2620
+
2621
+
2622
+ /**
2623
+ * Deserializes binary data (in protobuf wire format) from the
2624
+ * given reader into the given message object.
2625
+ * @param {!proto.sniipemailimportapi.SyncSuccessRequest} msg The message object to deserialize into.
2626
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2627
+ * @return {!proto.sniipemailimportapi.SyncSuccessRequest}
2628
+ */
2629
+ proto.sniipemailimportapi.SyncSuccessRequest.deserializeBinaryFromReader = function(msg, reader) {
2630
+ while (reader.nextField()) {
2631
+ if (reader.isEndGroup()) {
2632
+ break;
2633
+ }
2634
+ var field = reader.getFieldNumber();
2635
+ switch (field) {
2636
+ case 1:
2637
+ var value = new proto.sniipemailimportapi.RequestSyncSuccess;
2638
+ reader.readMessage(value,proto.sniipemailimportapi.RequestSyncSuccess.deserializeBinaryFromReader);
2639
+ msg.setData(value);
2640
+ break;
2641
+ default:
2642
+ reader.skipField();
2643
+ break;
2644
+ }
2645
+ }
2646
+ return msg;
2647
+ };
2648
+
2649
+
2650
+ /**
2651
+ * Class method variant: serializes the given message to binary data
2652
+ * (in protobuf wire format), writing to the given BinaryWriter.
2653
+ * @param {!proto.sniipemailimportapi.SyncSuccessRequest} message
2654
+ * @param {!jspb.BinaryWriter} writer
2655
+ */
2656
+ proto.sniipemailimportapi.SyncSuccessRequest.serializeBinaryToWriter = function(message, writer) {
2657
+ message.serializeBinaryToWriter(writer);
2658
+ };
2659
+
2660
+
2661
+ /**
2662
+ * Serializes the message to binary data (in protobuf wire format).
2663
+ * @return {!Uint8Array}
2664
+ */
2665
+ proto.sniipemailimportapi.SyncSuccessRequest.prototype.serializeBinary = function() {
2666
+ var writer = new jspb.BinaryWriter();
2667
+ this.serializeBinaryToWriter(writer);
2668
+ return writer.getResultBuffer();
2669
+ };
2670
+
2671
+
2672
+ /**
2673
+ * Serializes the message to binary data (in protobuf wire format),
2674
+ * writing to the given BinaryWriter.
2675
+ * @param {!jspb.BinaryWriter} writer
2676
+ */
2677
+ proto.sniipemailimportapi.SyncSuccessRequest.prototype.serializeBinaryToWriter = function (writer) {
2678
+ var f = undefined;
2679
+ f = this.getData();
2680
+ if (f != null) {
2681
+ writer.writeMessage(
2682
+ 1,
2683
+ f,
2684
+ proto.sniipemailimportapi.RequestSyncSuccess.serializeBinaryToWriter
2685
+ );
2686
+ }
2687
+ };
2688
+
2689
+
2690
+ /**
2691
+ * Creates a deep clone of this proto. No data is shared with the original.
2692
+ * @return {!proto.sniipemailimportapi.SyncSuccessRequest} The clone.
2693
+ */
2694
+ proto.sniipemailimportapi.SyncSuccessRequest.prototype.cloneMessage = function() {
2695
+ return /** @type {!proto.sniipemailimportapi.SyncSuccessRequest} */ (jspb.Message.cloneMessage(this));
2696
+ };
2697
+
2698
+
2699
+ /**
2700
+ * optional RequestSyncSuccess data = 1;
2701
+ * @return {proto.sniipemailimportapi.RequestSyncSuccess}
2702
+ */
2703
+ proto.sniipemailimportapi.SyncSuccessRequest.prototype.getData = function() {
2704
+ return /** @type{proto.sniipemailimportapi.RequestSyncSuccess} */ (
2705
+ jspb.Message.getWrapperField(this, proto.sniipemailimportapi.RequestSyncSuccess, 1));
2706
+ };
2707
+
2708
+
2709
+ /** @param {proto.sniipemailimportapi.RequestSyncSuccess|undefined} value */
2710
+ proto.sniipemailimportapi.SyncSuccessRequest.prototype.setData = function(value) {
2711
+ jspb.Message.setWrapperField(this, 1, value);
2712
+ };
2713
+
2714
+
2715
+ proto.sniipemailimportapi.SyncSuccessRequest.prototype.clearData = function() {
2716
+ this.setData(undefined);
2717
+ };
2718
+
2719
+
2720
+ /**
2721
+ * Returns whether this field is set.
2722
+ * @return{!boolean}
2723
+ */
2724
+ proto.sniipemailimportapi.SyncSuccessRequest.prototype.hasData = function() {
2725
+ return jspb.Message.getField(this, 1) != null;
2726
+ };
2727
+
2728
+
2729
+
2312
2730
  /**
2313
2731
  * Generated by JsPbCodeGenerator.
2314
2732
  * @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.874",
3
+ "version": "0.2.892",
4
4
  "description": "email-import-service-client-grpcweb",
5
5
  "author": "Sniip Development Team",
6
6
  "license": "MIT",