@ccmaymay/concrete 4.15.0 → 4.15.1
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/ActiveLearnerClientService.js +249 -249
- package/ActiveLearnerServerService.js +642 -642
- package/AnnotateCommunicationService.js +696 -696
- package/AnnotateWithContextService.js +298 -298
- package/FeedbackService.js +750 -750
- package/FetchCommunicationService.js +709 -709
- package/README.md +125 -0
- package/ResultsServerService.js +2138 -2138
- package/SearchProxyService.js +962 -962
- package/SearchService.js +685 -685
- package/Service.js +373 -373
- package/StoreCommunicationService.js +255 -255
- package/SummarizationService.js +479 -479
- package/access_types.js +168 -168
- package/annotate_types.js +26 -26
- package/audio_types.js +110 -110
- package/cluster_types.js +398 -398
- package/communication_fu.js +432 -432
- package/communication_types.js +845 -845
- package/concrete.js +64 -64
- package/context_types.js +65 -65
- package/email_types.js +477 -477
- package/entities_types.js +658 -658
- package/ex_types.js +82 -82
- package/language_types.js +123 -123
- package/learn_types.js +207 -207
- package/linking_types.js +286 -286
- package/metadata_types.js +926 -926
- package/nitf_types.js +1005 -1005
- package/package.json +26 -5
- package/results_types.js +18 -18
- package/search_types.js +661 -661
- package/services_types.js +384 -384
- package/situations_types.js +1268 -1268
- package/spans_types.js +151 -151
- package/structure_types.js +2311 -2311
- package/summarization_types.js +433 -433
- package/tokenization_fu.js +33 -33
- package/tokentagging_fu.js +241 -241
- package/twitter_types.js +1553 -1553
- package/util.js +117 -117
- package/uuid_types.js +67 -67
package/email_types.js
CHANGED
@@ -1,477 +1,477 @@
|
|
1
|
-
//
|
2
|
-
// Autogenerated by Thrift Compiler (0.15.0)
|
3
|
-
//
|
4
|
-
// DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
5
|
-
//
|
6
|
-
"use strict";
|
7
|
-
|
8
|
-
const thrift = require('thrift');
|
9
|
-
const Thrift = thrift.Thrift;
|
10
|
-
const Int64 = require('node-int64');
|
11
|
-
|
12
|
-
|
13
|
-
const ttypes = module.exports = {};
|
14
|
-
const EmailAddress = module.exports.EmailAddress = class {
|
15
|
-
constructor(args) {
|
16
|
-
this.address = null;
|
17
|
-
this.displayName = null;
|
18
|
-
if (args) {
|
19
|
-
if (args.address !== undefined && args.address !== null) {
|
20
|
-
this.address = args.address;
|
21
|
-
}
|
22
|
-
if (args.displayName !== undefined && args.displayName !== null) {
|
23
|
-
this.displayName = args.displayName;
|
24
|
-
}
|
25
|
-
}
|
26
|
-
}
|
27
|
-
|
28
|
-
read (input) {
|
29
|
-
input.readStructBegin();
|
30
|
-
while (true) {
|
31
|
-
const ret = input.readFieldBegin();
|
32
|
-
const ftype = ret.ftype;
|
33
|
-
const fid = ret.fid;
|
34
|
-
if (ftype == Thrift.Type.STOP) {
|
35
|
-
break;
|
36
|
-
}
|
37
|
-
switch (fid) {
|
38
|
-
case 1:
|
39
|
-
if (ftype == Thrift.Type.STRING) {
|
40
|
-
this.address = input.readString();
|
41
|
-
} else {
|
42
|
-
input.skip(ftype);
|
43
|
-
}
|
44
|
-
break;
|
45
|
-
case 2:
|
46
|
-
if (ftype == Thrift.Type.STRING) {
|
47
|
-
this.displayName = input.readString();
|
48
|
-
} else {
|
49
|
-
input.skip(ftype);
|
50
|
-
}
|
51
|
-
break;
|
52
|
-
default:
|
53
|
-
input.skip(ftype);
|
54
|
-
}
|
55
|
-
input.readFieldEnd();
|
56
|
-
}
|
57
|
-
input.readStructEnd();
|
58
|
-
return;
|
59
|
-
}
|
60
|
-
|
61
|
-
write (output) {
|
62
|
-
output.writeStructBegin('EmailAddress');
|
63
|
-
if (this.address !== null && this.address !== undefined) {
|
64
|
-
output.writeFieldBegin('address', Thrift.Type.STRING, 1);
|
65
|
-
output.writeString(this.address);
|
66
|
-
output.writeFieldEnd();
|
67
|
-
}
|
68
|
-
if (this.displayName !== null && this.displayName !== undefined) {
|
69
|
-
output.writeFieldBegin('displayName', Thrift.Type.STRING, 2);
|
70
|
-
output.writeString(this.displayName);
|
71
|
-
output.writeFieldEnd();
|
72
|
-
}
|
73
|
-
output.writeFieldStop();
|
74
|
-
output.writeStructEnd();
|
75
|
-
return;
|
76
|
-
}
|
77
|
-
|
78
|
-
};
|
79
|
-
const EmailCommunicationInfo = module.exports.EmailCommunicationInfo = class {
|
80
|
-
constructor(args) {
|
81
|
-
this.messageId = null;
|
82
|
-
this.contentType = null;
|
83
|
-
this.userAgent = null;
|
84
|
-
this.inReplyToList = null;
|
85
|
-
this.referenceList = null;
|
86
|
-
this.senderAddress = null;
|
87
|
-
this.returnPathAddress = null;
|
88
|
-
this.toAddressList = null;
|
89
|
-
this.ccAddressList = null;
|
90
|
-
this.bccAddressList = null;
|
91
|
-
this.emailFolder = null;
|
92
|
-
this.subject = null;
|
93
|
-
this.quotedAddresses = null;
|
94
|
-
this.attachmentPaths = null;
|
95
|
-
this.salutation = null;
|
96
|
-
this.signature = null;
|
97
|
-
if (args) {
|
98
|
-
if (args.messageId !== undefined && args.messageId !== null) {
|
99
|
-
this.messageId = args.messageId;
|
100
|
-
}
|
101
|
-
if (args.contentType !== undefined && args.contentType !== null) {
|
102
|
-
this.contentType = args.contentType;
|
103
|
-
}
|
104
|
-
if (args.userAgent !== undefined && args.userAgent !== null) {
|
105
|
-
this.userAgent = args.userAgent;
|
106
|
-
}
|
107
|
-
if (args.inReplyToList !== undefined && args.inReplyToList !== null) {
|
108
|
-
this.inReplyToList = Thrift.copyList(args.inReplyToList, [null]);
|
109
|
-
}
|
110
|
-
if (args.referenceList !== undefined && args.referenceList !== null) {
|
111
|
-
this.referenceList = Thrift.copyList(args.referenceList, [null]);
|
112
|
-
}
|
113
|
-
if (args.senderAddress !== undefined && args.senderAddress !== null) {
|
114
|
-
this.senderAddress = new ttypes.EmailAddress(args.senderAddress);
|
115
|
-
}
|
116
|
-
if (args.returnPathAddress !== undefined && args.returnPathAddress !== null) {
|
117
|
-
this.returnPathAddress = new ttypes.EmailAddress(args.returnPathAddress);
|
118
|
-
}
|
119
|
-
if (args.toAddressList !== undefined && args.toAddressList !== null) {
|
120
|
-
this.toAddressList = Thrift.copyList(args.toAddressList, [ttypes.EmailAddress]);
|
121
|
-
}
|
122
|
-
if (args.ccAddressList !== undefined && args.ccAddressList !== null) {
|
123
|
-
this.ccAddressList = Thrift.copyList(args.ccAddressList, [ttypes.EmailAddress]);
|
124
|
-
}
|
125
|
-
if (args.bccAddressList !== undefined && args.bccAddressList !== null) {
|
126
|
-
this.bccAddressList = Thrift.copyList(args.bccAddressList, [ttypes.EmailAddress]);
|
127
|
-
}
|
128
|
-
if (args.emailFolder !== undefined && args.emailFolder !== null) {
|
129
|
-
this.emailFolder = args.emailFolder;
|
130
|
-
}
|
131
|
-
if (args.subject !== undefined && args.subject !== null) {
|
132
|
-
this.subject = args.subject;
|
133
|
-
}
|
134
|
-
if (args.quotedAddresses !== undefined && args.quotedAddresses !== null) {
|
135
|
-
this.quotedAddresses = Thrift.copyList(args.quotedAddresses, [null]);
|
136
|
-
}
|
137
|
-
if (args.attachmentPaths !== undefined && args.attachmentPaths !== null) {
|
138
|
-
this.attachmentPaths = Thrift.copyList(args.attachmentPaths, [null]);
|
139
|
-
}
|
140
|
-
if (args.salutation !== undefined && args.salutation !== null) {
|
141
|
-
this.salutation = args.salutation;
|
142
|
-
}
|
143
|
-
if (args.signature !== undefined && args.signature !== null) {
|
144
|
-
this.signature = args.signature;
|
145
|
-
}
|
146
|
-
}
|
147
|
-
}
|
148
|
-
|
149
|
-
read (input) {
|
150
|
-
input.readStructBegin();
|
151
|
-
while (true) {
|
152
|
-
const ret = input.readFieldBegin();
|
153
|
-
const ftype = ret.ftype;
|
154
|
-
const fid = ret.fid;
|
155
|
-
if (ftype == Thrift.Type.STOP) {
|
156
|
-
break;
|
157
|
-
}
|
158
|
-
switch (fid) {
|
159
|
-
case 1:
|
160
|
-
if (ftype == Thrift.Type.STRING) {
|
161
|
-
this.messageId = input.readString();
|
162
|
-
} else {
|
163
|
-
input.skip(ftype);
|
164
|
-
}
|
165
|
-
break;
|
166
|
-
case 2:
|
167
|
-
if (ftype == Thrift.Type.STRING) {
|
168
|
-
this.contentType = input.readString();
|
169
|
-
} else {
|
170
|
-
input.skip(ftype);
|
171
|
-
}
|
172
|
-
break;
|
173
|
-
case 3:
|
174
|
-
if (ftype == Thrift.Type.STRING) {
|
175
|
-
this.userAgent = input.readString();
|
176
|
-
} else {
|
177
|
-
input.skip(ftype);
|
178
|
-
}
|
179
|
-
break;
|
180
|
-
case 4:
|
181
|
-
if (ftype == Thrift.Type.LIST) {
|
182
|
-
this.inReplyToList = [];
|
183
|
-
const _rtmp31 = input.readListBegin();
|
184
|
-
const _size0 = _rtmp31.size || 0;
|
185
|
-
for (let _i2 = 0; _i2 < _size0; ++_i2) {
|
186
|
-
let elem3 = null;
|
187
|
-
elem3 = input.readString();
|
188
|
-
this.inReplyToList.push(elem3);
|
189
|
-
}
|
190
|
-
input.readListEnd();
|
191
|
-
} else {
|
192
|
-
input.skip(ftype);
|
193
|
-
}
|
194
|
-
break;
|
195
|
-
case 5:
|
196
|
-
if (ftype == Thrift.Type.LIST) {
|
197
|
-
this.referenceList = [];
|
198
|
-
const _rtmp35 = input.readListBegin();
|
199
|
-
const _size4 = _rtmp35.size || 0;
|
200
|
-
for (let _i6 = 0; _i6 < _size4; ++_i6) {
|
201
|
-
let elem7 = null;
|
202
|
-
elem7 = input.readString();
|
203
|
-
this.referenceList.push(elem7);
|
204
|
-
}
|
205
|
-
input.readListEnd();
|
206
|
-
} else {
|
207
|
-
input.skip(ftype);
|
208
|
-
}
|
209
|
-
break;
|
210
|
-
case 6:
|
211
|
-
if (ftype == Thrift.Type.STRUCT) {
|
212
|
-
this.senderAddress = new ttypes.EmailAddress();
|
213
|
-
this.senderAddress.read(input);
|
214
|
-
} else {
|
215
|
-
input.skip(ftype);
|
216
|
-
}
|
217
|
-
break;
|
218
|
-
case 7:
|
219
|
-
if (ftype == Thrift.Type.STRUCT) {
|
220
|
-
this.returnPathAddress = new ttypes.EmailAddress();
|
221
|
-
this.returnPathAddress.read(input);
|
222
|
-
} else {
|
223
|
-
input.skip(ftype);
|
224
|
-
}
|
225
|
-
break;
|
226
|
-
case 8:
|
227
|
-
if (ftype == Thrift.Type.LIST) {
|
228
|
-
this.toAddressList = [];
|
229
|
-
const _rtmp39 = input.readListBegin();
|
230
|
-
const _size8 = _rtmp39.size || 0;
|
231
|
-
for (let _i10 = 0; _i10 < _size8; ++_i10) {
|
232
|
-
let elem11 = null;
|
233
|
-
elem11 = new ttypes.EmailAddress();
|
234
|
-
elem11.read(input);
|
235
|
-
this.toAddressList.push(elem11);
|
236
|
-
}
|
237
|
-
input.readListEnd();
|
238
|
-
} else {
|
239
|
-
input.skip(ftype);
|
240
|
-
}
|
241
|
-
break;
|
242
|
-
case 9:
|
243
|
-
if (ftype == Thrift.Type.LIST) {
|
244
|
-
this.ccAddressList = [];
|
245
|
-
const _rtmp313 = input.readListBegin();
|
246
|
-
const _size12 = _rtmp313.size || 0;
|
247
|
-
for (let _i14 = 0; _i14 < _size12; ++_i14) {
|
248
|
-
let elem15 = null;
|
249
|
-
elem15 = new ttypes.EmailAddress();
|
250
|
-
elem15.read(input);
|
251
|
-
this.ccAddressList.push(elem15);
|
252
|
-
}
|
253
|
-
input.readListEnd();
|
254
|
-
} else {
|
255
|
-
input.skip(ftype);
|
256
|
-
}
|
257
|
-
break;
|
258
|
-
case 10:
|
259
|
-
if (ftype == Thrift.Type.LIST) {
|
260
|
-
this.bccAddressList = [];
|
261
|
-
const _rtmp317 = input.readListBegin();
|
262
|
-
const _size16 = _rtmp317.size || 0;
|
263
|
-
for (let _i18 = 0; _i18 < _size16; ++_i18) {
|
264
|
-
let elem19 = null;
|
265
|
-
elem19 = new ttypes.EmailAddress();
|
266
|
-
elem19.read(input);
|
267
|
-
this.bccAddressList.push(elem19);
|
268
|
-
}
|
269
|
-
input.readListEnd();
|
270
|
-
} else {
|
271
|
-
input.skip(ftype);
|
272
|
-
}
|
273
|
-
break;
|
274
|
-
case 11:
|
275
|
-
if (ftype == Thrift.Type.STRING) {
|
276
|
-
this.emailFolder = input.readString();
|
277
|
-
} else {
|
278
|
-
input.skip(ftype);
|
279
|
-
}
|
280
|
-
break;
|
281
|
-
case 12:
|
282
|
-
if (ftype == Thrift.Type.STRING) {
|
283
|
-
this.subject = input.readString();
|
284
|
-
} else {
|
285
|
-
input.skip(ftype);
|
286
|
-
}
|
287
|
-
break;
|
288
|
-
case 13:
|
289
|
-
if (ftype == Thrift.Type.LIST) {
|
290
|
-
this.quotedAddresses = [];
|
291
|
-
const _rtmp321 = input.readListBegin();
|
292
|
-
const _size20 = _rtmp321.size || 0;
|
293
|
-
for (let _i22 = 0; _i22 < _size20; ++_i22) {
|
294
|
-
let elem23 = null;
|
295
|
-
elem23 = input.readString();
|
296
|
-
this.quotedAddresses.push(elem23);
|
297
|
-
}
|
298
|
-
input.readListEnd();
|
299
|
-
} else {
|
300
|
-
input.skip(ftype);
|
301
|
-
}
|
302
|
-
break;
|
303
|
-
case 14:
|
304
|
-
if (ftype == Thrift.Type.LIST) {
|
305
|
-
this.attachmentPaths = [];
|
306
|
-
const _rtmp325 = input.readListBegin();
|
307
|
-
const _size24 = _rtmp325.size || 0;
|
308
|
-
for (let _i26 = 0; _i26 < _size24; ++_i26) {
|
309
|
-
let elem27 = null;
|
310
|
-
elem27 = input.readString();
|
311
|
-
this.attachmentPaths.push(elem27);
|
312
|
-
}
|
313
|
-
input.readListEnd();
|
314
|
-
} else {
|
315
|
-
input.skip(ftype);
|
316
|
-
}
|
317
|
-
break;
|
318
|
-
case 15:
|
319
|
-
if (ftype == Thrift.Type.STRING) {
|
320
|
-
this.salutation = input.readString();
|
321
|
-
} else {
|
322
|
-
input.skip(ftype);
|
323
|
-
}
|
324
|
-
break;
|
325
|
-
case 16:
|
326
|
-
if (ftype == Thrift.Type.STRING) {
|
327
|
-
this.signature = input.readString();
|
328
|
-
} else {
|
329
|
-
input.skip(ftype);
|
330
|
-
}
|
331
|
-
break;
|
332
|
-
default:
|
333
|
-
input.skip(ftype);
|
334
|
-
}
|
335
|
-
input.readFieldEnd();
|
336
|
-
}
|
337
|
-
input.readStructEnd();
|
338
|
-
return;
|
339
|
-
}
|
340
|
-
|
341
|
-
write (output) {
|
342
|
-
output.writeStructBegin('EmailCommunicationInfo');
|
343
|
-
if (this.messageId !== null && this.messageId !== undefined) {
|
344
|
-
output.writeFieldBegin('messageId', Thrift.Type.STRING, 1);
|
345
|
-
output.writeString(this.messageId);
|
346
|
-
output.writeFieldEnd();
|
347
|
-
}
|
348
|
-
if (this.contentType !== null && this.contentType !== undefined) {
|
349
|
-
output.writeFieldBegin('contentType', Thrift.Type.STRING, 2);
|
350
|
-
output.writeString(this.contentType);
|
351
|
-
output.writeFieldEnd();
|
352
|
-
}
|
353
|
-
if (this.userAgent !== null && this.userAgent !== undefined) {
|
354
|
-
output.writeFieldBegin('userAgent', Thrift.Type.STRING, 3);
|
355
|
-
output.writeString(this.userAgent);
|
356
|
-
output.writeFieldEnd();
|
357
|
-
}
|
358
|
-
if (this.inReplyToList !== null && this.inReplyToList !== undefined) {
|
359
|
-
output.writeFieldBegin('inReplyToList', Thrift.Type.LIST, 4);
|
360
|
-
output.writeListBegin(Thrift.Type.STRING, this.inReplyToList.length);
|
361
|
-
for (let iter28 in this.inReplyToList) {
|
362
|
-
if (this.inReplyToList.hasOwnProperty(iter28)) {
|
363
|
-
iter28 = this.inReplyToList[iter28];
|
364
|
-
output.writeString(iter28);
|
365
|
-
}
|
366
|
-
}
|
367
|
-
output.writeListEnd();
|
368
|
-
output.writeFieldEnd();
|
369
|
-
}
|
370
|
-
if (this.referenceList !== null && this.referenceList !== undefined) {
|
371
|
-
output.writeFieldBegin('referenceList', Thrift.Type.LIST, 5);
|
372
|
-
output.writeListBegin(Thrift.Type.STRING, this.referenceList.length);
|
373
|
-
for (let iter29 in this.referenceList) {
|
374
|
-
if (this.referenceList.hasOwnProperty(iter29)) {
|
375
|
-
iter29 = this.referenceList[iter29];
|
376
|
-
output.writeString(iter29);
|
377
|
-
}
|
378
|
-
}
|
379
|
-
output.writeListEnd();
|
380
|
-
output.writeFieldEnd();
|
381
|
-
}
|
382
|
-
if (this.senderAddress !== null && this.senderAddress !== undefined) {
|
383
|
-
output.writeFieldBegin('senderAddress', Thrift.Type.STRUCT, 6);
|
384
|
-
this.senderAddress.write(output);
|
385
|
-
output.writeFieldEnd();
|
386
|
-
}
|
387
|
-
if (this.returnPathAddress !== null && this.returnPathAddress !== undefined) {
|
388
|
-
output.writeFieldBegin('returnPathAddress', Thrift.Type.STRUCT, 7);
|
389
|
-
this.returnPathAddress.write(output);
|
390
|
-
output.writeFieldEnd();
|
391
|
-
}
|
392
|
-
if (this.toAddressList !== null && this.toAddressList !== undefined) {
|
393
|
-
output.writeFieldBegin('toAddressList', Thrift.Type.LIST, 8);
|
394
|
-
output.writeListBegin(Thrift.Type.STRUCT, this.toAddressList.length);
|
395
|
-
for (let iter30 in this.toAddressList) {
|
396
|
-
if (this.toAddressList.hasOwnProperty(iter30)) {
|
397
|
-
iter30 = this.toAddressList[iter30];
|
398
|
-
iter30.write(output);
|
399
|
-
}
|
400
|
-
}
|
401
|
-
output.writeListEnd();
|
402
|
-
output.writeFieldEnd();
|
403
|
-
}
|
404
|
-
if (this.ccAddressList !== null && this.ccAddressList !== undefined) {
|
405
|
-
output.writeFieldBegin('ccAddressList', Thrift.Type.LIST, 9);
|
406
|
-
output.writeListBegin(Thrift.Type.STRUCT, this.ccAddressList.length);
|
407
|
-
for (let iter31 in this.ccAddressList) {
|
408
|
-
if (this.ccAddressList.hasOwnProperty(iter31)) {
|
409
|
-
iter31 = this.ccAddressList[iter31];
|
410
|
-
iter31.write(output);
|
411
|
-
}
|
412
|
-
}
|
413
|
-
output.writeListEnd();
|
414
|
-
output.writeFieldEnd();
|
415
|
-
}
|
416
|
-
if (this.bccAddressList !== null && this.bccAddressList !== undefined) {
|
417
|
-
output.writeFieldBegin('bccAddressList', Thrift.Type.LIST, 10);
|
418
|
-
output.writeListBegin(Thrift.Type.STRUCT, this.bccAddressList.length);
|
419
|
-
for (let iter32 in this.bccAddressList) {
|
420
|
-
if (this.bccAddressList.hasOwnProperty(iter32)) {
|
421
|
-
iter32 = this.bccAddressList[iter32];
|
422
|
-
iter32.write(output);
|
423
|
-
}
|
424
|
-
}
|
425
|
-
output.writeListEnd();
|
426
|
-
output.writeFieldEnd();
|
427
|
-
}
|
428
|
-
if (this.emailFolder !== null && this.emailFolder !== undefined) {
|
429
|
-
output.writeFieldBegin('emailFolder', Thrift.Type.STRING, 11);
|
430
|
-
output.writeString(this.emailFolder);
|
431
|
-
output.writeFieldEnd();
|
432
|
-
}
|
433
|
-
if (this.subject !== null && this.subject !== undefined) {
|
434
|
-
output.writeFieldBegin('subject', Thrift.Type.STRING, 12);
|
435
|
-
output.writeString(this.subject);
|
436
|
-
output.writeFieldEnd();
|
437
|
-
}
|
438
|
-
if (this.quotedAddresses !== null && this.quotedAddresses !== undefined) {
|
439
|
-
output.writeFieldBegin('quotedAddresses', Thrift.Type.LIST, 13);
|
440
|
-
output.writeListBegin(Thrift.Type.STRING, this.quotedAddresses.length);
|
441
|
-
for (let iter33 in this.quotedAddresses) {
|
442
|
-
if (this.quotedAddresses.hasOwnProperty(iter33)) {
|
443
|
-
iter33 = this.quotedAddresses[iter33];
|
444
|
-
output.writeString(iter33);
|
445
|
-
}
|
446
|
-
}
|
447
|
-
output.writeListEnd();
|
448
|
-
output.writeFieldEnd();
|
449
|
-
}
|
450
|
-
if (this.attachmentPaths !== null && this.attachmentPaths !== undefined) {
|
451
|
-
output.writeFieldBegin('attachmentPaths', Thrift.Type.LIST, 14);
|
452
|
-
output.writeListBegin(Thrift.Type.STRING, this.attachmentPaths.length);
|
453
|
-
for (let iter34 in this.attachmentPaths) {
|
454
|
-
if (this.attachmentPaths.hasOwnProperty(iter34)) {
|
455
|
-
iter34 = this.attachmentPaths[iter34];
|
456
|
-
output.writeString(iter34);
|
457
|
-
}
|
458
|
-
}
|
459
|
-
output.writeListEnd();
|
460
|
-
output.writeFieldEnd();
|
461
|
-
}
|
462
|
-
if (this.salutation !== null && this.salutation !== undefined) {
|
463
|
-
output.writeFieldBegin('salutation', Thrift.Type.STRING, 15);
|
464
|
-
output.writeString(this.salutation);
|
465
|
-
output.writeFieldEnd();
|
466
|
-
}
|
467
|
-
if (this.signature !== null && this.signature !== undefined) {
|
468
|
-
output.writeFieldBegin('signature', Thrift.Type.STRING, 16);
|
469
|
-
output.writeString(this.signature);
|
470
|
-
output.writeFieldEnd();
|
471
|
-
}
|
472
|
-
output.writeFieldStop();
|
473
|
-
output.writeStructEnd();
|
474
|
-
return;
|
475
|
-
}
|
476
|
-
|
477
|
-
};
|
1
|
+
//
|
2
|
+
// Autogenerated by Thrift Compiler (0.15.0)
|
3
|
+
//
|
4
|
+
// DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
5
|
+
//
|
6
|
+
"use strict";
|
7
|
+
|
8
|
+
const thrift = require('thrift');
|
9
|
+
const Thrift = thrift.Thrift;
|
10
|
+
const Int64 = require('node-int64');
|
11
|
+
|
12
|
+
|
13
|
+
const ttypes = module.exports = {};
|
14
|
+
const EmailAddress = module.exports.EmailAddress = class {
|
15
|
+
constructor(args) {
|
16
|
+
this.address = null;
|
17
|
+
this.displayName = null;
|
18
|
+
if (args) {
|
19
|
+
if (args.address !== undefined && args.address !== null) {
|
20
|
+
this.address = args.address;
|
21
|
+
}
|
22
|
+
if (args.displayName !== undefined && args.displayName !== null) {
|
23
|
+
this.displayName = args.displayName;
|
24
|
+
}
|
25
|
+
}
|
26
|
+
}
|
27
|
+
|
28
|
+
read (input) {
|
29
|
+
input.readStructBegin();
|
30
|
+
while (true) {
|
31
|
+
const ret = input.readFieldBegin();
|
32
|
+
const ftype = ret.ftype;
|
33
|
+
const fid = ret.fid;
|
34
|
+
if (ftype == Thrift.Type.STOP) {
|
35
|
+
break;
|
36
|
+
}
|
37
|
+
switch (fid) {
|
38
|
+
case 1:
|
39
|
+
if (ftype == Thrift.Type.STRING) {
|
40
|
+
this.address = input.readString();
|
41
|
+
} else {
|
42
|
+
input.skip(ftype);
|
43
|
+
}
|
44
|
+
break;
|
45
|
+
case 2:
|
46
|
+
if (ftype == Thrift.Type.STRING) {
|
47
|
+
this.displayName = input.readString();
|
48
|
+
} else {
|
49
|
+
input.skip(ftype);
|
50
|
+
}
|
51
|
+
break;
|
52
|
+
default:
|
53
|
+
input.skip(ftype);
|
54
|
+
}
|
55
|
+
input.readFieldEnd();
|
56
|
+
}
|
57
|
+
input.readStructEnd();
|
58
|
+
return;
|
59
|
+
}
|
60
|
+
|
61
|
+
write (output) {
|
62
|
+
output.writeStructBegin('EmailAddress');
|
63
|
+
if (this.address !== null && this.address !== undefined) {
|
64
|
+
output.writeFieldBegin('address', Thrift.Type.STRING, 1);
|
65
|
+
output.writeString(this.address);
|
66
|
+
output.writeFieldEnd();
|
67
|
+
}
|
68
|
+
if (this.displayName !== null && this.displayName !== undefined) {
|
69
|
+
output.writeFieldBegin('displayName', Thrift.Type.STRING, 2);
|
70
|
+
output.writeString(this.displayName);
|
71
|
+
output.writeFieldEnd();
|
72
|
+
}
|
73
|
+
output.writeFieldStop();
|
74
|
+
output.writeStructEnd();
|
75
|
+
return;
|
76
|
+
}
|
77
|
+
|
78
|
+
};
|
79
|
+
const EmailCommunicationInfo = module.exports.EmailCommunicationInfo = class {
|
80
|
+
constructor(args) {
|
81
|
+
this.messageId = null;
|
82
|
+
this.contentType = null;
|
83
|
+
this.userAgent = null;
|
84
|
+
this.inReplyToList = null;
|
85
|
+
this.referenceList = null;
|
86
|
+
this.senderAddress = null;
|
87
|
+
this.returnPathAddress = null;
|
88
|
+
this.toAddressList = null;
|
89
|
+
this.ccAddressList = null;
|
90
|
+
this.bccAddressList = null;
|
91
|
+
this.emailFolder = null;
|
92
|
+
this.subject = null;
|
93
|
+
this.quotedAddresses = null;
|
94
|
+
this.attachmentPaths = null;
|
95
|
+
this.salutation = null;
|
96
|
+
this.signature = null;
|
97
|
+
if (args) {
|
98
|
+
if (args.messageId !== undefined && args.messageId !== null) {
|
99
|
+
this.messageId = args.messageId;
|
100
|
+
}
|
101
|
+
if (args.contentType !== undefined && args.contentType !== null) {
|
102
|
+
this.contentType = args.contentType;
|
103
|
+
}
|
104
|
+
if (args.userAgent !== undefined && args.userAgent !== null) {
|
105
|
+
this.userAgent = args.userAgent;
|
106
|
+
}
|
107
|
+
if (args.inReplyToList !== undefined && args.inReplyToList !== null) {
|
108
|
+
this.inReplyToList = Thrift.copyList(args.inReplyToList, [null]);
|
109
|
+
}
|
110
|
+
if (args.referenceList !== undefined && args.referenceList !== null) {
|
111
|
+
this.referenceList = Thrift.copyList(args.referenceList, [null]);
|
112
|
+
}
|
113
|
+
if (args.senderAddress !== undefined && args.senderAddress !== null) {
|
114
|
+
this.senderAddress = new ttypes.EmailAddress(args.senderAddress);
|
115
|
+
}
|
116
|
+
if (args.returnPathAddress !== undefined && args.returnPathAddress !== null) {
|
117
|
+
this.returnPathAddress = new ttypes.EmailAddress(args.returnPathAddress);
|
118
|
+
}
|
119
|
+
if (args.toAddressList !== undefined && args.toAddressList !== null) {
|
120
|
+
this.toAddressList = Thrift.copyList(args.toAddressList, [ttypes.EmailAddress]);
|
121
|
+
}
|
122
|
+
if (args.ccAddressList !== undefined && args.ccAddressList !== null) {
|
123
|
+
this.ccAddressList = Thrift.copyList(args.ccAddressList, [ttypes.EmailAddress]);
|
124
|
+
}
|
125
|
+
if (args.bccAddressList !== undefined && args.bccAddressList !== null) {
|
126
|
+
this.bccAddressList = Thrift.copyList(args.bccAddressList, [ttypes.EmailAddress]);
|
127
|
+
}
|
128
|
+
if (args.emailFolder !== undefined && args.emailFolder !== null) {
|
129
|
+
this.emailFolder = args.emailFolder;
|
130
|
+
}
|
131
|
+
if (args.subject !== undefined && args.subject !== null) {
|
132
|
+
this.subject = args.subject;
|
133
|
+
}
|
134
|
+
if (args.quotedAddresses !== undefined && args.quotedAddresses !== null) {
|
135
|
+
this.quotedAddresses = Thrift.copyList(args.quotedAddresses, [null]);
|
136
|
+
}
|
137
|
+
if (args.attachmentPaths !== undefined && args.attachmentPaths !== null) {
|
138
|
+
this.attachmentPaths = Thrift.copyList(args.attachmentPaths, [null]);
|
139
|
+
}
|
140
|
+
if (args.salutation !== undefined && args.salutation !== null) {
|
141
|
+
this.salutation = args.salutation;
|
142
|
+
}
|
143
|
+
if (args.signature !== undefined && args.signature !== null) {
|
144
|
+
this.signature = args.signature;
|
145
|
+
}
|
146
|
+
}
|
147
|
+
}
|
148
|
+
|
149
|
+
read (input) {
|
150
|
+
input.readStructBegin();
|
151
|
+
while (true) {
|
152
|
+
const ret = input.readFieldBegin();
|
153
|
+
const ftype = ret.ftype;
|
154
|
+
const fid = ret.fid;
|
155
|
+
if (ftype == Thrift.Type.STOP) {
|
156
|
+
break;
|
157
|
+
}
|
158
|
+
switch (fid) {
|
159
|
+
case 1:
|
160
|
+
if (ftype == Thrift.Type.STRING) {
|
161
|
+
this.messageId = input.readString();
|
162
|
+
} else {
|
163
|
+
input.skip(ftype);
|
164
|
+
}
|
165
|
+
break;
|
166
|
+
case 2:
|
167
|
+
if (ftype == Thrift.Type.STRING) {
|
168
|
+
this.contentType = input.readString();
|
169
|
+
} else {
|
170
|
+
input.skip(ftype);
|
171
|
+
}
|
172
|
+
break;
|
173
|
+
case 3:
|
174
|
+
if (ftype == Thrift.Type.STRING) {
|
175
|
+
this.userAgent = input.readString();
|
176
|
+
} else {
|
177
|
+
input.skip(ftype);
|
178
|
+
}
|
179
|
+
break;
|
180
|
+
case 4:
|
181
|
+
if (ftype == Thrift.Type.LIST) {
|
182
|
+
this.inReplyToList = [];
|
183
|
+
const _rtmp31 = input.readListBegin();
|
184
|
+
const _size0 = _rtmp31.size || 0;
|
185
|
+
for (let _i2 = 0; _i2 < _size0; ++_i2) {
|
186
|
+
let elem3 = null;
|
187
|
+
elem3 = input.readString();
|
188
|
+
this.inReplyToList.push(elem3);
|
189
|
+
}
|
190
|
+
input.readListEnd();
|
191
|
+
} else {
|
192
|
+
input.skip(ftype);
|
193
|
+
}
|
194
|
+
break;
|
195
|
+
case 5:
|
196
|
+
if (ftype == Thrift.Type.LIST) {
|
197
|
+
this.referenceList = [];
|
198
|
+
const _rtmp35 = input.readListBegin();
|
199
|
+
const _size4 = _rtmp35.size || 0;
|
200
|
+
for (let _i6 = 0; _i6 < _size4; ++_i6) {
|
201
|
+
let elem7 = null;
|
202
|
+
elem7 = input.readString();
|
203
|
+
this.referenceList.push(elem7);
|
204
|
+
}
|
205
|
+
input.readListEnd();
|
206
|
+
} else {
|
207
|
+
input.skip(ftype);
|
208
|
+
}
|
209
|
+
break;
|
210
|
+
case 6:
|
211
|
+
if (ftype == Thrift.Type.STRUCT) {
|
212
|
+
this.senderAddress = new ttypes.EmailAddress();
|
213
|
+
this.senderAddress.read(input);
|
214
|
+
} else {
|
215
|
+
input.skip(ftype);
|
216
|
+
}
|
217
|
+
break;
|
218
|
+
case 7:
|
219
|
+
if (ftype == Thrift.Type.STRUCT) {
|
220
|
+
this.returnPathAddress = new ttypes.EmailAddress();
|
221
|
+
this.returnPathAddress.read(input);
|
222
|
+
} else {
|
223
|
+
input.skip(ftype);
|
224
|
+
}
|
225
|
+
break;
|
226
|
+
case 8:
|
227
|
+
if (ftype == Thrift.Type.LIST) {
|
228
|
+
this.toAddressList = [];
|
229
|
+
const _rtmp39 = input.readListBegin();
|
230
|
+
const _size8 = _rtmp39.size || 0;
|
231
|
+
for (let _i10 = 0; _i10 < _size8; ++_i10) {
|
232
|
+
let elem11 = null;
|
233
|
+
elem11 = new ttypes.EmailAddress();
|
234
|
+
elem11.read(input);
|
235
|
+
this.toAddressList.push(elem11);
|
236
|
+
}
|
237
|
+
input.readListEnd();
|
238
|
+
} else {
|
239
|
+
input.skip(ftype);
|
240
|
+
}
|
241
|
+
break;
|
242
|
+
case 9:
|
243
|
+
if (ftype == Thrift.Type.LIST) {
|
244
|
+
this.ccAddressList = [];
|
245
|
+
const _rtmp313 = input.readListBegin();
|
246
|
+
const _size12 = _rtmp313.size || 0;
|
247
|
+
for (let _i14 = 0; _i14 < _size12; ++_i14) {
|
248
|
+
let elem15 = null;
|
249
|
+
elem15 = new ttypes.EmailAddress();
|
250
|
+
elem15.read(input);
|
251
|
+
this.ccAddressList.push(elem15);
|
252
|
+
}
|
253
|
+
input.readListEnd();
|
254
|
+
} else {
|
255
|
+
input.skip(ftype);
|
256
|
+
}
|
257
|
+
break;
|
258
|
+
case 10:
|
259
|
+
if (ftype == Thrift.Type.LIST) {
|
260
|
+
this.bccAddressList = [];
|
261
|
+
const _rtmp317 = input.readListBegin();
|
262
|
+
const _size16 = _rtmp317.size || 0;
|
263
|
+
for (let _i18 = 0; _i18 < _size16; ++_i18) {
|
264
|
+
let elem19 = null;
|
265
|
+
elem19 = new ttypes.EmailAddress();
|
266
|
+
elem19.read(input);
|
267
|
+
this.bccAddressList.push(elem19);
|
268
|
+
}
|
269
|
+
input.readListEnd();
|
270
|
+
} else {
|
271
|
+
input.skip(ftype);
|
272
|
+
}
|
273
|
+
break;
|
274
|
+
case 11:
|
275
|
+
if (ftype == Thrift.Type.STRING) {
|
276
|
+
this.emailFolder = input.readString();
|
277
|
+
} else {
|
278
|
+
input.skip(ftype);
|
279
|
+
}
|
280
|
+
break;
|
281
|
+
case 12:
|
282
|
+
if (ftype == Thrift.Type.STRING) {
|
283
|
+
this.subject = input.readString();
|
284
|
+
} else {
|
285
|
+
input.skip(ftype);
|
286
|
+
}
|
287
|
+
break;
|
288
|
+
case 13:
|
289
|
+
if (ftype == Thrift.Type.LIST) {
|
290
|
+
this.quotedAddresses = [];
|
291
|
+
const _rtmp321 = input.readListBegin();
|
292
|
+
const _size20 = _rtmp321.size || 0;
|
293
|
+
for (let _i22 = 0; _i22 < _size20; ++_i22) {
|
294
|
+
let elem23 = null;
|
295
|
+
elem23 = input.readString();
|
296
|
+
this.quotedAddresses.push(elem23);
|
297
|
+
}
|
298
|
+
input.readListEnd();
|
299
|
+
} else {
|
300
|
+
input.skip(ftype);
|
301
|
+
}
|
302
|
+
break;
|
303
|
+
case 14:
|
304
|
+
if (ftype == Thrift.Type.LIST) {
|
305
|
+
this.attachmentPaths = [];
|
306
|
+
const _rtmp325 = input.readListBegin();
|
307
|
+
const _size24 = _rtmp325.size || 0;
|
308
|
+
for (let _i26 = 0; _i26 < _size24; ++_i26) {
|
309
|
+
let elem27 = null;
|
310
|
+
elem27 = input.readString();
|
311
|
+
this.attachmentPaths.push(elem27);
|
312
|
+
}
|
313
|
+
input.readListEnd();
|
314
|
+
} else {
|
315
|
+
input.skip(ftype);
|
316
|
+
}
|
317
|
+
break;
|
318
|
+
case 15:
|
319
|
+
if (ftype == Thrift.Type.STRING) {
|
320
|
+
this.salutation = input.readString();
|
321
|
+
} else {
|
322
|
+
input.skip(ftype);
|
323
|
+
}
|
324
|
+
break;
|
325
|
+
case 16:
|
326
|
+
if (ftype == Thrift.Type.STRING) {
|
327
|
+
this.signature = input.readString();
|
328
|
+
} else {
|
329
|
+
input.skip(ftype);
|
330
|
+
}
|
331
|
+
break;
|
332
|
+
default:
|
333
|
+
input.skip(ftype);
|
334
|
+
}
|
335
|
+
input.readFieldEnd();
|
336
|
+
}
|
337
|
+
input.readStructEnd();
|
338
|
+
return;
|
339
|
+
}
|
340
|
+
|
341
|
+
write (output) {
|
342
|
+
output.writeStructBegin('EmailCommunicationInfo');
|
343
|
+
if (this.messageId !== null && this.messageId !== undefined) {
|
344
|
+
output.writeFieldBegin('messageId', Thrift.Type.STRING, 1);
|
345
|
+
output.writeString(this.messageId);
|
346
|
+
output.writeFieldEnd();
|
347
|
+
}
|
348
|
+
if (this.contentType !== null && this.contentType !== undefined) {
|
349
|
+
output.writeFieldBegin('contentType', Thrift.Type.STRING, 2);
|
350
|
+
output.writeString(this.contentType);
|
351
|
+
output.writeFieldEnd();
|
352
|
+
}
|
353
|
+
if (this.userAgent !== null && this.userAgent !== undefined) {
|
354
|
+
output.writeFieldBegin('userAgent', Thrift.Type.STRING, 3);
|
355
|
+
output.writeString(this.userAgent);
|
356
|
+
output.writeFieldEnd();
|
357
|
+
}
|
358
|
+
if (this.inReplyToList !== null && this.inReplyToList !== undefined) {
|
359
|
+
output.writeFieldBegin('inReplyToList', Thrift.Type.LIST, 4);
|
360
|
+
output.writeListBegin(Thrift.Type.STRING, this.inReplyToList.length);
|
361
|
+
for (let iter28 in this.inReplyToList) {
|
362
|
+
if (this.inReplyToList.hasOwnProperty(iter28)) {
|
363
|
+
iter28 = this.inReplyToList[iter28];
|
364
|
+
output.writeString(iter28);
|
365
|
+
}
|
366
|
+
}
|
367
|
+
output.writeListEnd();
|
368
|
+
output.writeFieldEnd();
|
369
|
+
}
|
370
|
+
if (this.referenceList !== null && this.referenceList !== undefined) {
|
371
|
+
output.writeFieldBegin('referenceList', Thrift.Type.LIST, 5);
|
372
|
+
output.writeListBegin(Thrift.Type.STRING, this.referenceList.length);
|
373
|
+
for (let iter29 in this.referenceList) {
|
374
|
+
if (this.referenceList.hasOwnProperty(iter29)) {
|
375
|
+
iter29 = this.referenceList[iter29];
|
376
|
+
output.writeString(iter29);
|
377
|
+
}
|
378
|
+
}
|
379
|
+
output.writeListEnd();
|
380
|
+
output.writeFieldEnd();
|
381
|
+
}
|
382
|
+
if (this.senderAddress !== null && this.senderAddress !== undefined) {
|
383
|
+
output.writeFieldBegin('senderAddress', Thrift.Type.STRUCT, 6);
|
384
|
+
this.senderAddress.write(output);
|
385
|
+
output.writeFieldEnd();
|
386
|
+
}
|
387
|
+
if (this.returnPathAddress !== null && this.returnPathAddress !== undefined) {
|
388
|
+
output.writeFieldBegin('returnPathAddress', Thrift.Type.STRUCT, 7);
|
389
|
+
this.returnPathAddress.write(output);
|
390
|
+
output.writeFieldEnd();
|
391
|
+
}
|
392
|
+
if (this.toAddressList !== null && this.toAddressList !== undefined) {
|
393
|
+
output.writeFieldBegin('toAddressList', Thrift.Type.LIST, 8);
|
394
|
+
output.writeListBegin(Thrift.Type.STRUCT, this.toAddressList.length);
|
395
|
+
for (let iter30 in this.toAddressList) {
|
396
|
+
if (this.toAddressList.hasOwnProperty(iter30)) {
|
397
|
+
iter30 = this.toAddressList[iter30];
|
398
|
+
iter30.write(output);
|
399
|
+
}
|
400
|
+
}
|
401
|
+
output.writeListEnd();
|
402
|
+
output.writeFieldEnd();
|
403
|
+
}
|
404
|
+
if (this.ccAddressList !== null && this.ccAddressList !== undefined) {
|
405
|
+
output.writeFieldBegin('ccAddressList', Thrift.Type.LIST, 9);
|
406
|
+
output.writeListBegin(Thrift.Type.STRUCT, this.ccAddressList.length);
|
407
|
+
for (let iter31 in this.ccAddressList) {
|
408
|
+
if (this.ccAddressList.hasOwnProperty(iter31)) {
|
409
|
+
iter31 = this.ccAddressList[iter31];
|
410
|
+
iter31.write(output);
|
411
|
+
}
|
412
|
+
}
|
413
|
+
output.writeListEnd();
|
414
|
+
output.writeFieldEnd();
|
415
|
+
}
|
416
|
+
if (this.bccAddressList !== null && this.bccAddressList !== undefined) {
|
417
|
+
output.writeFieldBegin('bccAddressList', Thrift.Type.LIST, 10);
|
418
|
+
output.writeListBegin(Thrift.Type.STRUCT, this.bccAddressList.length);
|
419
|
+
for (let iter32 in this.bccAddressList) {
|
420
|
+
if (this.bccAddressList.hasOwnProperty(iter32)) {
|
421
|
+
iter32 = this.bccAddressList[iter32];
|
422
|
+
iter32.write(output);
|
423
|
+
}
|
424
|
+
}
|
425
|
+
output.writeListEnd();
|
426
|
+
output.writeFieldEnd();
|
427
|
+
}
|
428
|
+
if (this.emailFolder !== null && this.emailFolder !== undefined) {
|
429
|
+
output.writeFieldBegin('emailFolder', Thrift.Type.STRING, 11);
|
430
|
+
output.writeString(this.emailFolder);
|
431
|
+
output.writeFieldEnd();
|
432
|
+
}
|
433
|
+
if (this.subject !== null && this.subject !== undefined) {
|
434
|
+
output.writeFieldBegin('subject', Thrift.Type.STRING, 12);
|
435
|
+
output.writeString(this.subject);
|
436
|
+
output.writeFieldEnd();
|
437
|
+
}
|
438
|
+
if (this.quotedAddresses !== null && this.quotedAddresses !== undefined) {
|
439
|
+
output.writeFieldBegin('quotedAddresses', Thrift.Type.LIST, 13);
|
440
|
+
output.writeListBegin(Thrift.Type.STRING, this.quotedAddresses.length);
|
441
|
+
for (let iter33 in this.quotedAddresses) {
|
442
|
+
if (this.quotedAddresses.hasOwnProperty(iter33)) {
|
443
|
+
iter33 = this.quotedAddresses[iter33];
|
444
|
+
output.writeString(iter33);
|
445
|
+
}
|
446
|
+
}
|
447
|
+
output.writeListEnd();
|
448
|
+
output.writeFieldEnd();
|
449
|
+
}
|
450
|
+
if (this.attachmentPaths !== null && this.attachmentPaths !== undefined) {
|
451
|
+
output.writeFieldBegin('attachmentPaths', Thrift.Type.LIST, 14);
|
452
|
+
output.writeListBegin(Thrift.Type.STRING, this.attachmentPaths.length);
|
453
|
+
for (let iter34 in this.attachmentPaths) {
|
454
|
+
if (this.attachmentPaths.hasOwnProperty(iter34)) {
|
455
|
+
iter34 = this.attachmentPaths[iter34];
|
456
|
+
output.writeString(iter34);
|
457
|
+
}
|
458
|
+
}
|
459
|
+
output.writeListEnd();
|
460
|
+
output.writeFieldEnd();
|
461
|
+
}
|
462
|
+
if (this.salutation !== null && this.salutation !== undefined) {
|
463
|
+
output.writeFieldBegin('salutation', Thrift.Type.STRING, 15);
|
464
|
+
output.writeString(this.salutation);
|
465
|
+
output.writeFieldEnd();
|
466
|
+
}
|
467
|
+
if (this.signature !== null && this.signature !== undefined) {
|
468
|
+
output.writeFieldBegin('signature', Thrift.Type.STRING, 16);
|
469
|
+
output.writeString(this.signature);
|
470
|
+
output.writeFieldEnd();
|
471
|
+
}
|
472
|
+
output.writeFieldStop();
|
473
|
+
output.writeStructEnd();
|
474
|
+
return;
|
475
|
+
}
|
476
|
+
|
477
|
+
};
|