@sniipwebmaster/email-import-service-client-grpcweb 0.2.502 → 0.2.512
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.
- package/dependancies/service_grpc_web_pb.js +314 -0
- package/dependancies/service_pb.js +1624 -0
- package/package.json +1 -1
|
@@ -0,0 +1,314 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview gRPC-Web generated client stub for sniipemailimportapi
|
|
3
|
+
* @enhanceable
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
// GENERATED CODE -- DO NOT EDIT!
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
const grpc = {};
|
|
12
|
+
grpc.web = require('grpc-web');
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
var google_api_annotations_pb = require('./google/api/annotations_pb.js')
|
|
16
|
+
|
|
17
|
+
var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js')
|
|
18
|
+
const proto = {};
|
|
19
|
+
proto.sniipemailimportapi = require('./service_pb.js');
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* @param {string} hostname
|
|
23
|
+
* @param {?Object} credentials
|
|
24
|
+
* @param {?Object} options
|
|
25
|
+
* @constructor
|
|
26
|
+
* @struct
|
|
27
|
+
* @final
|
|
28
|
+
*/
|
|
29
|
+
proto.sniipemailimportapi.SniipEmailImportAPIServiceClient =
|
|
30
|
+
function(hostname, credentials, options) {
|
|
31
|
+
if (!options) options = {};
|
|
32
|
+
options['format'] = 'text';
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* @private @const {!grpc.web.GrpcWebClientBase} The client
|
|
36
|
+
*/
|
|
37
|
+
this.client_ = new grpc.web.GrpcWebClientBase(options);
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* @private @const {string} The hostname
|
|
41
|
+
*/
|
|
42
|
+
this.hostname_ = hostname;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* @private @const {?Object} The credentials to be used to connect
|
|
46
|
+
* to the server
|
|
47
|
+
*/
|
|
48
|
+
this.credentials_ = credentials;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* @private @const {?Object} Options for the client
|
|
52
|
+
*/
|
|
53
|
+
this.options_ = options;
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* @param {string} hostname
|
|
59
|
+
* @param {?Object} credentials
|
|
60
|
+
* @param {?Object} options
|
|
61
|
+
* @constructor
|
|
62
|
+
* @struct
|
|
63
|
+
* @final
|
|
64
|
+
*/
|
|
65
|
+
proto.sniipemailimportapi.SniipEmailImportAPIServicePromiseClient =
|
|
66
|
+
function(hostname, credentials, options) {
|
|
67
|
+
if (!options) options = {};
|
|
68
|
+
options['format'] = 'text';
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* @private @const {!grpc.web.GrpcWebClientBase} The client
|
|
72
|
+
*/
|
|
73
|
+
this.client_ = new grpc.web.GrpcWebClientBase(options);
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* @private @const {string} The hostname
|
|
77
|
+
*/
|
|
78
|
+
this.hostname_ = hostname;
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* @private @const {?Object} The credentials to be used to connect
|
|
82
|
+
* to the server
|
|
83
|
+
*/
|
|
84
|
+
this.credentials_ = credentials;
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* @private @const {?Object} Options for the client
|
|
88
|
+
*/
|
|
89
|
+
this.options_ = options;
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* @const
|
|
95
|
+
* @type {!grpc.web.AbstractClientBase.MethodInfo<
|
|
96
|
+
* !proto.google.protobuf.Empty,
|
|
97
|
+
* !proto.sniipemailimportapi.ResponseCode>}
|
|
98
|
+
*/
|
|
99
|
+
const methodInfo_SniipEmailImportAPIService_Echo = new grpc.web.AbstractClientBase.MethodInfo(
|
|
100
|
+
proto.sniipemailimportapi.ResponseCode,
|
|
101
|
+
/** @param {!proto.google.protobuf.Empty} request */
|
|
102
|
+
function(request) {
|
|
103
|
+
return request.serializeBinary();
|
|
104
|
+
},
|
|
105
|
+
proto.sniipemailimportapi.ResponseCode.deserializeBinary
|
|
106
|
+
);
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* @param {!proto.google.protobuf.Empty} request The
|
|
111
|
+
* request proto
|
|
112
|
+
* @param {?Object<string, string>} metadata User defined
|
|
113
|
+
* call metadata
|
|
114
|
+
* @param {function(?grpc.web.Error, ?proto.sniipemailimportapi.ResponseCode)}
|
|
115
|
+
* callback The callback function(error, response)
|
|
116
|
+
* @return {!grpc.web.ClientReadableStream<!proto.sniipemailimportapi.ResponseCode>|undefined}
|
|
117
|
+
* The XHR Node Readable Stream
|
|
118
|
+
*/
|
|
119
|
+
proto.sniipemailimportapi.SniipEmailImportAPIServiceClient.prototype.echo =
|
|
120
|
+
function(request, metadata, callback) {
|
|
121
|
+
return this.client_.rpcCall(this.hostname_ +
|
|
122
|
+
'/sniipemailimportapi.SniipEmailImportAPIService/Echo',
|
|
123
|
+
request,
|
|
124
|
+
metadata || {},
|
|
125
|
+
methodInfo_SniipEmailImportAPIService_Echo,
|
|
126
|
+
callback);
|
|
127
|
+
};
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* @param {!proto.google.protobuf.Empty} request The
|
|
132
|
+
* request proto
|
|
133
|
+
* @param {?Object<string, string>} metadata User defined
|
|
134
|
+
* call metadata
|
|
135
|
+
* @return {!Promise<!proto.sniipemailimportapi.ResponseCode>}
|
|
136
|
+
* A native promise that resolves to the response
|
|
137
|
+
*/
|
|
138
|
+
proto.sniipemailimportapi.SniipEmailImportAPIServicePromiseClient.prototype.echo =
|
|
139
|
+
function(request, metadata) {
|
|
140
|
+
return this.client_.unaryCall(this.hostname_ +
|
|
141
|
+
'/sniipemailimportapi.SniipEmailImportAPIService/Echo',
|
|
142
|
+
request,
|
|
143
|
+
metadata || {},
|
|
144
|
+
methodInfo_SniipEmailImportAPIService_Echo);
|
|
145
|
+
};
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* @const
|
|
150
|
+
* @type {!grpc.web.AbstractClientBase.MethodInfo<
|
|
151
|
+
* !proto.google.protobuf.Empty,
|
|
152
|
+
* !proto.sniipemailimportapi.GetConnectedEmailsResponse>}
|
|
153
|
+
*/
|
|
154
|
+
const methodInfo_SniipEmailImportAPIService_GetConnectEmails = new grpc.web.AbstractClientBase.MethodInfo(
|
|
155
|
+
proto.sniipemailimportapi.GetConnectedEmailsResponse,
|
|
156
|
+
/** @param {!proto.google.protobuf.Empty} request */
|
|
157
|
+
function(request) {
|
|
158
|
+
return request.serializeBinary();
|
|
159
|
+
},
|
|
160
|
+
proto.sniipemailimportapi.GetConnectedEmailsResponse.deserializeBinary
|
|
161
|
+
);
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* @param {!proto.google.protobuf.Empty} request The
|
|
166
|
+
* request proto
|
|
167
|
+
* @param {?Object<string, string>} metadata User defined
|
|
168
|
+
* call metadata
|
|
169
|
+
* @param {function(?grpc.web.Error, ?proto.sniipemailimportapi.GetConnectedEmailsResponse)}
|
|
170
|
+
* callback The callback function(error, response)
|
|
171
|
+
* @return {!grpc.web.ClientReadableStream<!proto.sniipemailimportapi.GetConnectedEmailsResponse>|undefined}
|
|
172
|
+
* The XHR Node Readable Stream
|
|
173
|
+
*/
|
|
174
|
+
proto.sniipemailimportapi.SniipEmailImportAPIServiceClient.prototype.getConnectEmails =
|
|
175
|
+
function(request, metadata, callback) {
|
|
176
|
+
return this.client_.rpcCall(this.hostname_ +
|
|
177
|
+
'/sniipemailimportapi.SniipEmailImportAPIService/GetConnectEmails',
|
|
178
|
+
request,
|
|
179
|
+
metadata || {},
|
|
180
|
+
methodInfo_SniipEmailImportAPIService_GetConnectEmails,
|
|
181
|
+
callback);
|
|
182
|
+
};
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* @param {!proto.google.protobuf.Empty} request The
|
|
187
|
+
* request proto
|
|
188
|
+
* @param {?Object<string, string>} metadata User defined
|
|
189
|
+
* call metadata
|
|
190
|
+
* @return {!Promise<!proto.sniipemailimportapi.GetConnectedEmailsResponse>}
|
|
191
|
+
* A native promise that resolves to the response
|
|
192
|
+
*/
|
|
193
|
+
proto.sniipemailimportapi.SniipEmailImportAPIServicePromiseClient.prototype.getConnectEmails =
|
|
194
|
+
function(request, metadata) {
|
|
195
|
+
return this.client_.unaryCall(this.hostname_ +
|
|
196
|
+
'/sniipemailimportapi.SniipEmailImportAPIService/GetConnectEmails',
|
|
197
|
+
request,
|
|
198
|
+
metadata || {},
|
|
199
|
+
methodInfo_SniipEmailImportAPIService_GetConnectEmails);
|
|
200
|
+
};
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* @const
|
|
205
|
+
* @type {!grpc.web.AbstractClientBase.MethodInfo<
|
|
206
|
+
* !proto.sniipemailimportapi.MakeAuthRequestRequest,
|
|
207
|
+
* !proto.sniipemailimportapi.AuthResponse>}
|
|
208
|
+
*/
|
|
209
|
+
const methodInfo_SniipEmailImportAPIService_MakeAuthRequest = new grpc.web.AbstractClientBase.MethodInfo(
|
|
210
|
+
proto.sniipemailimportapi.AuthResponse,
|
|
211
|
+
/** @param {!proto.sniipemailimportapi.MakeAuthRequestRequest} request */
|
|
212
|
+
function(request) {
|
|
213
|
+
return request.serializeBinary();
|
|
214
|
+
},
|
|
215
|
+
proto.sniipemailimportapi.AuthResponse.deserializeBinary
|
|
216
|
+
);
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* @param {!proto.sniipemailimportapi.MakeAuthRequestRequest} request The
|
|
221
|
+
* request proto
|
|
222
|
+
* @param {?Object<string, string>} metadata User defined
|
|
223
|
+
* call metadata
|
|
224
|
+
* @param {function(?grpc.web.Error, ?proto.sniipemailimportapi.AuthResponse)}
|
|
225
|
+
* callback The callback function(error, response)
|
|
226
|
+
* @return {!grpc.web.ClientReadableStream<!proto.sniipemailimportapi.AuthResponse>|undefined}
|
|
227
|
+
* The XHR Node Readable Stream
|
|
228
|
+
*/
|
|
229
|
+
proto.sniipemailimportapi.SniipEmailImportAPIServiceClient.prototype.makeAuthRequest =
|
|
230
|
+
function(request, metadata, callback) {
|
|
231
|
+
return this.client_.rpcCall(this.hostname_ +
|
|
232
|
+
'/sniipemailimportapi.SniipEmailImportAPIService/MakeAuthRequest',
|
|
233
|
+
request,
|
|
234
|
+
metadata || {},
|
|
235
|
+
methodInfo_SniipEmailImportAPIService_MakeAuthRequest,
|
|
236
|
+
callback);
|
|
237
|
+
};
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
/**
|
|
241
|
+
* @param {!proto.sniipemailimportapi.MakeAuthRequestRequest} request The
|
|
242
|
+
* request proto
|
|
243
|
+
* @param {?Object<string, string>} metadata User defined
|
|
244
|
+
* call metadata
|
|
245
|
+
* @return {!Promise<!proto.sniipemailimportapi.AuthResponse>}
|
|
246
|
+
* A native promise that resolves to the response
|
|
247
|
+
*/
|
|
248
|
+
proto.sniipemailimportapi.SniipEmailImportAPIServicePromiseClient.prototype.makeAuthRequest =
|
|
249
|
+
function(request, metadata) {
|
|
250
|
+
return this.client_.unaryCall(this.hostname_ +
|
|
251
|
+
'/sniipemailimportapi.SniipEmailImportAPIService/MakeAuthRequest',
|
|
252
|
+
request,
|
|
253
|
+
metadata || {},
|
|
254
|
+
methodInfo_SniipEmailImportAPIService_MakeAuthRequest);
|
|
255
|
+
};
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
/**
|
|
259
|
+
* @const
|
|
260
|
+
* @type {!grpc.web.AbstractClientBase.MethodInfo<
|
|
261
|
+
* !proto.sniipemailimportapi.RemoveTokenRequest,
|
|
262
|
+
* !proto.sniipemailimportapi.ResponseCode>}
|
|
263
|
+
*/
|
|
264
|
+
const methodInfo_SniipEmailImportAPIService_RemoveToken = new grpc.web.AbstractClientBase.MethodInfo(
|
|
265
|
+
proto.sniipemailimportapi.ResponseCode,
|
|
266
|
+
/** @param {!proto.sniipemailimportapi.RemoveTokenRequest} request */
|
|
267
|
+
function(request) {
|
|
268
|
+
return request.serializeBinary();
|
|
269
|
+
},
|
|
270
|
+
proto.sniipemailimportapi.ResponseCode.deserializeBinary
|
|
271
|
+
);
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* @param {!proto.sniipemailimportapi.RemoveTokenRequest} request The
|
|
276
|
+
* request proto
|
|
277
|
+
* @param {?Object<string, string>} metadata User defined
|
|
278
|
+
* call metadata
|
|
279
|
+
* @param {function(?grpc.web.Error, ?proto.sniipemailimportapi.ResponseCode)}
|
|
280
|
+
* callback The callback function(error, response)
|
|
281
|
+
* @return {!grpc.web.ClientReadableStream<!proto.sniipemailimportapi.ResponseCode>|undefined}
|
|
282
|
+
* The XHR Node Readable Stream
|
|
283
|
+
*/
|
|
284
|
+
proto.sniipemailimportapi.SniipEmailImportAPIServiceClient.prototype.removeToken =
|
|
285
|
+
function(request, metadata, callback) {
|
|
286
|
+
return this.client_.rpcCall(this.hostname_ +
|
|
287
|
+
'/sniipemailimportapi.SniipEmailImportAPIService/RemoveToken',
|
|
288
|
+
request,
|
|
289
|
+
metadata || {},
|
|
290
|
+
methodInfo_SniipEmailImportAPIService_RemoveToken,
|
|
291
|
+
callback);
|
|
292
|
+
};
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
/**
|
|
296
|
+
* @param {!proto.sniipemailimportapi.RemoveTokenRequest} request The
|
|
297
|
+
* request proto
|
|
298
|
+
* @param {?Object<string, string>} metadata User defined
|
|
299
|
+
* call metadata
|
|
300
|
+
* @return {!Promise<!proto.sniipemailimportapi.ResponseCode>}
|
|
301
|
+
* A native promise that resolves to the response
|
|
302
|
+
*/
|
|
303
|
+
proto.sniipemailimportapi.SniipEmailImportAPIServicePromiseClient.prototype.removeToken =
|
|
304
|
+
function(request, metadata) {
|
|
305
|
+
return this.client_.unaryCall(this.hostname_ +
|
|
306
|
+
'/sniipemailimportapi.SniipEmailImportAPIService/RemoveToken',
|
|
307
|
+
request,
|
|
308
|
+
metadata || {},
|
|
309
|
+
methodInfo_SniipEmailImportAPIService_RemoveToken);
|
|
310
|
+
};
|
|
311
|
+
|
|
312
|
+
|
|
313
|
+
module.exports = proto.sniipemailimportapi;
|
|
314
|
+
|