@sniipwebmaster/email-import-service-client-grpcweb 22.2.2546 → 22.2.2564

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.
@@ -154,6 +154,86 @@ proto.sniipemailimportapi.SniipEmailImportAPIServicePromiseClient.prototype.auto
154
154
  };
155
155
 
156
156
 
157
+ /**
158
+ * @const
159
+ * @type {!grpc.web.MethodDescriptor<
160
+ * !proto.sniipemailimportapi.DisableTokenRequest,
161
+ * !proto.sniipemailimportapi.ResponseCode>}
162
+ */
163
+ const methodDescriptor_SniipEmailImportAPIService_DisableToken = new grpc.web.MethodDescriptor(
164
+ '/sniipemailimportapi.SniipEmailImportAPIService/DisableToken',
165
+ grpc.web.MethodType.UNARY,
166
+ proto.sniipemailimportapi.DisableTokenRequest,
167
+ proto.sniipemailimportapi.ResponseCode,
168
+ /**
169
+ * @param {!proto.sniipemailimportapi.DisableTokenRequest} request
170
+ * @return {!Uint8Array}
171
+ */
172
+ function(request) {
173
+ return request.serializeBinary();
174
+ },
175
+ proto.sniipemailimportapi.ResponseCode.deserializeBinary
176
+ );
177
+
178
+
179
+ /**
180
+ * @const
181
+ * @type {!grpc.web.AbstractClientBase.MethodInfo<
182
+ * !proto.sniipemailimportapi.DisableTokenRequest,
183
+ * !proto.sniipemailimportapi.ResponseCode>}
184
+ */
185
+ const methodInfo_SniipEmailImportAPIService_DisableToken = new grpc.web.AbstractClientBase.MethodInfo(
186
+ proto.sniipemailimportapi.ResponseCode,
187
+ /**
188
+ * @param {!proto.sniipemailimportapi.DisableTokenRequest} request
189
+ * @return {!Uint8Array}
190
+ */
191
+ function(request) {
192
+ return request.serializeBinary();
193
+ },
194
+ proto.sniipemailimportapi.ResponseCode.deserializeBinary
195
+ );
196
+
197
+
198
+ /**
199
+ * @param {!proto.sniipemailimportapi.DisableTokenRequest} request The
200
+ * request proto
201
+ * @param {?Object<string, string>} metadata User defined
202
+ * call metadata
203
+ * @param {function(?grpc.web.Error, ?proto.sniipemailimportapi.ResponseCode)}
204
+ * callback The callback function(error, response)
205
+ * @return {!grpc.web.ClientReadableStream<!proto.sniipemailimportapi.ResponseCode>|undefined}
206
+ * The XHR Node Readable Stream
207
+ */
208
+ proto.sniipemailimportapi.SniipEmailImportAPIServiceClient.prototype.disableToken =
209
+ function(request, metadata, callback) {
210
+ return this.client_.rpcCall(this.hostname_ +
211
+ '/sniipemailimportapi.SniipEmailImportAPIService/DisableToken',
212
+ request,
213
+ metadata || {},
214
+ methodDescriptor_SniipEmailImportAPIService_DisableToken,
215
+ callback);
216
+ };
217
+
218
+
219
+ /**
220
+ * @param {!proto.sniipemailimportapi.DisableTokenRequest} request The
221
+ * request proto
222
+ * @param {?Object<string, string>} metadata User defined
223
+ * call metadata
224
+ * @return {!Promise<!proto.sniipemailimportapi.ResponseCode>}
225
+ * Promise that resolves to the response
226
+ */
227
+ proto.sniipemailimportapi.SniipEmailImportAPIServicePromiseClient.prototype.disableToken =
228
+ function(request, metadata) {
229
+ return this.client_.unaryCall(this.hostname_ +
230
+ '/sniipemailimportapi.SniipEmailImportAPIService/DisableToken',
231
+ request,
232
+ metadata || {},
233
+ methodDescriptor_SniipEmailImportAPIService_DisableToken);
234
+ };
235
+
236
+
157
237
  /**
158
238
  * @const
159
239
  * @type {!grpc.web.MethodDescriptor<
@@ -15,6 +15,7 @@ goog.exportSymbol('proto.sniipemailimportapi.AuthRequest', null, global);
15
15
  goog.exportSymbol('proto.sniipemailimportapi.AuthResponse', null, global);
16
16
  goog.exportSymbol('proto.sniipemailimportapi.AutomaticSyncRequest', null, global);
17
17
  goog.exportSymbol('proto.sniipemailimportapi.ConnectedEmail', null, global);
18
+ goog.exportSymbol('proto.sniipemailimportapi.DisableTokenRequest', null, global);
18
19
  goog.exportSymbol('proto.sniipemailimportapi.EmailProviders', null, global);
19
20
  goog.exportSymbol('proto.sniipemailimportapi.GetConnectedEmailsResponse', null, global);
20
21
  goog.exportSymbol('proto.sniipemailimportapi.HandleMsAuthRediecrtionRequest', null, global);
@@ -1023,6 +1024,165 @@ proto.sniipemailimportapi.ConnectedEmail.prototype.setIsactive = function(value)
1023
1024
 
1024
1025
 
1025
1026
 
1027
+ /**
1028
+ * Generated by JsPbCodeGenerator.
1029
+ * @param {Array=} opt_data Optional initial data array, typically from a
1030
+ * server response, or constructed directly in Javascript. The array is used
1031
+ * in place and becomes part of the constructed object. It is not cloned.
1032
+ * If no data is provided, the constructed object will be empty, but still
1033
+ * valid.
1034
+ * @extends {jspb.Message}
1035
+ * @constructor
1036
+ */
1037
+ proto.sniipemailimportapi.DisableTokenRequest = function(opt_data) {
1038
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1039
+ };
1040
+ goog.inherits(proto.sniipemailimportapi.DisableTokenRequest, jspb.Message);
1041
+ if (goog.DEBUG && !COMPILED) {
1042
+ proto.sniipemailimportapi.DisableTokenRequest.displayName = 'proto.sniipemailimportapi.DisableTokenRequest';
1043
+ }
1044
+
1045
+
1046
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1047
+ /**
1048
+ * Creates an object representation of this proto suitable for use in Soy templates.
1049
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1050
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1051
+ * For the list of reserved names please see:
1052
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
1053
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
1054
+ * for transitional soy proto support: http://goto/soy-param-migration
1055
+ * @return {!Object}
1056
+ */
1057
+ proto.sniipemailimportapi.DisableTokenRequest.prototype.toObject = function(opt_includeInstance) {
1058
+ return proto.sniipemailimportapi.DisableTokenRequest.toObject(opt_includeInstance, this);
1059
+ };
1060
+
1061
+
1062
+ /**
1063
+ * Static version of the {@see toObject} method.
1064
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
1065
+ * instance for transitional soy proto support:
1066
+ * http://goto/soy-param-migration
1067
+ * @param {!proto.sniipemailimportapi.DisableTokenRequest} msg The msg instance to transform.
1068
+ * @return {!Object}
1069
+ */
1070
+ proto.sniipemailimportapi.DisableTokenRequest.toObject = function(includeInstance, msg) {
1071
+ var f, obj = {
1072
+ tokenid: msg.getTokenid()
1073
+ };
1074
+
1075
+ if (includeInstance) {
1076
+ obj.$jspbMessageInstance = msg;
1077
+ }
1078
+ return obj;
1079
+ };
1080
+ }
1081
+
1082
+
1083
+ /**
1084
+ * Deserializes binary data (in protobuf wire format).
1085
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1086
+ * @return {!proto.sniipemailimportapi.DisableTokenRequest}
1087
+ */
1088
+ proto.sniipemailimportapi.DisableTokenRequest.deserializeBinary = function(bytes) {
1089
+ var reader = new jspb.BinaryReader(bytes);
1090
+ var msg = new proto.sniipemailimportapi.DisableTokenRequest;
1091
+ return proto.sniipemailimportapi.DisableTokenRequest.deserializeBinaryFromReader(msg, reader);
1092
+ };
1093
+
1094
+
1095
+ /**
1096
+ * Deserializes binary data (in protobuf wire format) from the
1097
+ * given reader into the given message object.
1098
+ * @param {!proto.sniipemailimportapi.DisableTokenRequest} msg The message object to deserialize into.
1099
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1100
+ * @return {!proto.sniipemailimportapi.DisableTokenRequest}
1101
+ */
1102
+ proto.sniipemailimportapi.DisableTokenRequest.deserializeBinaryFromReader = function(msg, reader) {
1103
+ while (reader.nextField()) {
1104
+ if (reader.isEndGroup()) {
1105
+ break;
1106
+ }
1107
+ var field = reader.getFieldNumber();
1108
+ switch (field) {
1109
+ case 1:
1110
+ var value = /** @type {number} */ (reader.readInt64());
1111
+ msg.setTokenid(value);
1112
+ break;
1113
+ default:
1114
+ reader.skipField();
1115
+ break;
1116
+ }
1117
+ }
1118
+ return msg;
1119
+ };
1120
+
1121
+
1122
+ /**
1123
+ * Class method variant: serializes the given message to binary data
1124
+ * (in protobuf wire format), writing to the given BinaryWriter.
1125
+ * @param {!proto.sniipemailimportapi.DisableTokenRequest} message
1126
+ * @param {!jspb.BinaryWriter} writer
1127
+ */
1128
+ proto.sniipemailimportapi.DisableTokenRequest.serializeBinaryToWriter = function(message, writer) {
1129
+ message.serializeBinaryToWriter(writer);
1130
+ };
1131
+
1132
+
1133
+ /**
1134
+ * Serializes the message to binary data (in protobuf wire format).
1135
+ * @return {!Uint8Array}
1136
+ */
1137
+ proto.sniipemailimportapi.DisableTokenRequest.prototype.serializeBinary = function() {
1138
+ var writer = new jspb.BinaryWriter();
1139
+ this.serializeBinaryToWriter(writer);
1140
+ return writer.getResultBuffer();
1141
+ };
1142
+
1143
+
1144
+ /**
1145
+ * Serializes the message to binary data (in protobuf wire format),
1146
+ * writing to the given BinaryWriter.
1147
+ * @param {!jspb.BinaryWriter} writer
1148
+ */
1149
+ proto.sniipemailimportapi.DisableTokenRequest.prototype.serializeBinaryToWriter = function (writer) {
1150
+ var f = undefined;
1151
+ f = this.getTokenid();
1152
+ if (f !== 0) {
1153
+ writer.writeInt64(
1154
+ 1,
1155
+ f
1156
+ );
1157
+ }
1158
+ };
1159
+
1160
+
1161
+ /**
1162
+ * Creates a deep clone of this proto. No data is shared with the original.
1163
+ * @return {!proto.sniipemailimportapi.DisableTokenRequest} The clone.
1164
+ */
1165
+ proto.sniipemailimportapi.DisableTokenRequest.prototype.cloneMessage = function() {
1166
+ return /** @type {!proto.sniipemailimportapi.DisableTokenRequest} */ (jspb.Message.cloneMessage(this));
1167
+ };
1168
+
1169
+
1170
+ /**
1171
+ * optional int64 tokenId = 1;
1172
+ * @return {number}
1173
+ */
1174
+ proto.sniipemailimportapi.DisableTokenRequest.prototype.getTokenid = function() {
1175
+ return /** @type {number} */ (jspb.Message.getFieldProto3(this, 1, 0));
1176
+ };
1177
+
1178
+
1179
+ /** @param {number} value */
1180
+ proto.sniipemailimportapi.DisableTokenRequest.prototype.setTokenid = function(value) {
1181
+ jspb.Message.setField(this, 1, value);
1182
+ };
1183
+
1184
+
1185
+
1026
1186
  /**
1027
1187
  * Generated by JsPbCodeGenerator.
1028
1188
  * @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": "22.2.2546",
3
+ "version": "22.2.2564",
4
4
  "description": "email-import-service-client-grpcweb",
5
5
  "author": "Sniip Development Team",
6
6
  "license": "MIT",