pst-extractor 1.9.0 → 1.10.0

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.
Files changed (59) hide show
  1. package/dist/ColumnDescriptor.class.d.ts +26 -26
  2. package/dist/ColumnDescriptor.class.js +51 -51
  3. package/dist/DescriptorIndexNode.class.d.ts +25 -26
  4. package/dist/DescriptorIndexNode.class.js +53 -53
  5. package/dist/LZFu.class.d.ts +11 -12
  6. package/dist/LZFu.class.js +95 -95
  7. package/dist/NodeInfo.class.d.ts +33 -33
  8. package/dist/NodeInfo.class.js +52 -52
  9. package/dist/NodeMap.class.d.ts +35 -35
  10. package/dist/NodeMap.class.js +86 -86
  11. package/dist/OffsetIndexItem.class.d.ts +23 -24
  12. package/dist/OffsetIndexItem.class.js +45 -45
  13. package/dist/OutlookProperties.d.ts +275 -275
  14. package/dist/OutlookProperties.js +281 -281
  15. package/dist/PSTActivity.class.d.ts +103 -103
  16. package/dist/PSTActivity.class.js +144 -144
  17. package/dist/PSTAppointment.class.d.ts +270 -271
  18. package/dist/PSTAppointment.class.js +376 -376
  19. package/dist/PSTAttachment.class.d.ts +172 -172
  20. package/dist/PSTAttachment.class.js +317 -317
  21. package/dist/PSTContact.class.d.ts +884 -884
  22. package/dist/PSTContact.class.js +1227 -1227
  23. package/dist/PSTDescriptorItem.class.d.ts +45 -46
  24. package/dist/PSTDescriptorItem.class.js +99 -99
  25. package/dist/PSTFile.class.d.ts +215 -216
  26. package/dist/PSTFile.class.js +818 -818
  27. package/dist/PSTFolder.class.d.ts +129 -129
  28. package/dist/PSTFolder.class.js +318 -310
  29. package/dist/PSTMessage.class.d.ts +788 -789
  30. package/dist/PSTMessage.class.js +1321 -1321
  31. package/dist/PSTMessageStore.class.d.ts +13 -13
  32. package/dist/PSTMessageStore.class.js +17 -17
  33. package/dist/PSTNodeInputStream.class.d.ts +122 -123
  34. package/dist/PSTNodeInputStream.class.js +514 -514
  35. package/dist/PSTObject.class.d.ts +133 -134
  36. package/dist/PSTObject.class.js +326 -326
  37. package/dist/PSTRecipient.class.d.ts +65 -65
  38. package/dist/PSTRecipient.class.js +103 -103
  39. package/dist/PSTTable.class.d.ts +52 -52
  40. package/dist/PSTTable.class.js +175 -175
  41. package/dist/PSTTable7C.class.d.ts +45 -45
  42. package/dist/PSTTable7C.class.js +281 -281
  43. package/dist/PSTTableBC.class.d.ts +31 -31
  44. package/dist/PSTTableBC.class.js +111 -111
  45. package/dist/PSTTableItem.class.d.ts +47 -48
  46. package/dist/PSTTableItem.class.js +124 -124
  47. package/dist/PSTTask.class.d.ts +146 -146
  48. package/dist/PSTTask.class.js +205 -205
  49. package/dist/PSTUtil.class.d.ts +134 -135
  50. package/dist/PSTUtil.class.js +795 -795
  51. package/dist/RecurrencePattern.class.d.ts +49 -50
  52. package/dist/RecurrencePattern.class.js +120 -120
  53. package/dist/index.d.ts +6 -6
  54. package/dist/index.js +15 -15
  55. package/example/package.json +6 -6
  56. package/example/yarn.lock +95 -44
  57. package/junit.xml +68 -68
  58. package/package.json +26 -26
  59. package/readme.md +1 -3
@@ -1,1227 +1,1227 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PSTContact = void 0;
4
- const OutlookProperties_1 = require("./OutlookProperties");
5
- const PSTMessage_class_1 = require("./PSTMessage.class");
6
- class PSTContact extends PSTMessage_class_1.PSTMessage {
7
- constructor(pstFile, descriptorIndexNode, table, localDescriptorItems) {
8
- super(pstFile, descriptorIndexNode, table, localDescriptorItems);
9
- }
10
- /**
11
- * Contains the recipient's account name.
12
- * https://msdn.microsoft.com/en-us/library/office/cc842401.aspx
13
- * @readonly
14
- * @type {string}
15
- * @memberof PSTContact
16
- */
17
- get account() {
18
- return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_ACCOUNT);
19
- }
20
- /**
21
- * Contains a telephone number that the message recipient can use to reach the sender.
22
- * https://msdn.microsoft.com/en-us/library/office/cc839943.aspx
23
- * @readonly
24
- * @type {string}
25
- * @memberof PSTContact
26
- */
27
- get callbackTelephoneNumber() {
28
- return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_CALLBACK_TELEPHONE_NUMBER);
29
- }
30
- /**
31
- * Contains a generational abbreviation that follows the full name of the recipient.
32
- * https://msdn.microsoft.com/en-us/library/office/cc842136.aspx
33
- * @readonly
34
- * @type {string}
35
- * @memberof PSTContact
36
- */
37
- get generation() {
38
- return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_GENERATION);
39
- }
40
- /**
41
- * Contains the first or given name of the recipient.
42
- * https://msdn.microsoft.com/en-us/library/office/cc815351.aspx
43
- * @readonly
44
- * @type {string}
45
- * @memberof PSTContact
46
- */
47
- get givenName() {
48
- return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_GIVEN_NAME);
49
- }
50
- /**
51
- * Contains a government identifier for the recipient.
52
- * https://msdn.microsoft.com/en-us/library/office/cc815890.aspx
53
- * @readonly
54
- * @type {string}
55
- * @memberof PSTContact
56
- */
57
- get governmentIdNumber() {
58
- return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_GOVERNMENT_ID_NUMBER);
59
- }
60
- /**
61
- * Contains the primary telephone number of the recipient's place of business.
62
- * https://msdn.microsoft.com/en-us/library/office/cc839937.aspx
63
- * @readonly
64
- * @type {string}
65
- * @memberof PSTContact
66
- */
67
- get businessTelephoneNumber() {
68
- return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_BUSINESS_TELEPHONE_NUMBER);
69
- }
70
- /**
71
- * Contains the primary telephone number of the recipient's home.
72
- * https://msdn.microsoft.com/en-us/library/office/cc815389.aspx
73
- * @readonly
74
- * @type {string}
75
- * @memberof PSTContact
76
- */
77
- get homeTelephoneNumber() {
78
- return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_HOME_TELEPHONE_NUMBER);
79
- }
80
- /**
81
- * Contains the initials for parts of the full name of the recipient.
82
- * https://msdn.microsoft.com/en-us/library/office/cc839843.aspx
83
- * @readonly
84
- * @type {string}
85
- * @memberof PSTContact
86
- */
87
- get initials() {
88
- return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_INITIALS);
89
- }
90
- /**
91
- * Contains a keyword that identifies the recipient to the recipient's system administrator.
92
- * https://msdn.microsoft.com/en-us/library/office/cc842250.aspx
93
- * @readonly
94
- * @type {string}
95
- * @memberof PSTContact
96
- */
97
- get keyword() {
98
- return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_KEYWORD);
99
- }
100
- /**
101
- * Contains a value that indicates the language in which the messaging user is writing messages.
102
- * https://msdn.microsoft.com/en-us/library/office/cc839724.aspx
103
- * @readonly
104
- * @type {string}
105
- * @memberof PSTContact
106
- */
107
- get language() {
108
- return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_LANGUAGE);
109
- }
110
- /**
111
- * Contains the location of the recipient in a format that is useful to the recipient's organization.
112
- * https://msdn.microsoft.com/en-us/library/office/cc815567.aspx
113
- * @readonly
114
- * @type {string}
115
- * @memberof PSTContact
116
- */
117
- get location() {
118
- return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_LOCATION);
119
- }
120
- /**
121
- * Contains the common name of the message handling system.
122
- * https://msdn.microsoft.com/en-us/library/office/cc842474.aspx
123
- * @readonly
124
- * @type {string}
125
- * @memberof PSTContact
126
- */
127
- get mhsCommonName() {
128
- return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_MHS_COMMON_NAME);
129
- }
130
- /**
131
- * Contains an organizational ID number for the contact, such as an employee ID number.
132
- * https://msdn.microsoft.com/en-us/library/office/cc765672.aspx
133
- * @readonly
134
- * @type {string}
135
- * @memberof PSTContact
136
- */
137
- get organizationalIdNumber() {
138
- return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_ORGANIZATIONAL_ID_NUMBER);
139
- }
140
- /**
141
- * Contains the last or surname of the recipient.
142
- * https://msdn.microsoft.com/en-us/library/office/cc765704.aspx
143
- * @readonly
144
- * @type {string}
145
- * @memberof PSTContact
146
- */
147
- get surname() {
148
- return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_SURNAME);
149
- }
150
- /**
151
- * Contains the original display name for an entry copied from an address book to a personal address book or other writable address book.
152
- * https://msdn.microsoft.com/en-us/library/office/cc765709.aspx
153
- * @readonly
154
- * @type {string}
155
- * @memberof PSTContact
156
- */
157
- get originalDisplayName() {
158
- return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_ORIGINAL_DISPLAY_NAME);
159
- }
160
- /**
161
- * Contains the recipient's postal address.
162
- * https://msdn.microsoft.com/en-us/library/office/cc842549.aspx
163
- * @readonly
164
- * @type {string}
165
- * @memberof PSTContact
166
- */
167
- get postalAddress() {
168
- return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_POSTAL_ADDRESS);
169
- }
170
- /**
171
- * Contains the recipient's company name.
172
- * https://msdn.microsoft.com/en-us/library/office/cc842192.aspx
173
- * @readonly
174
- * @type {string}
175
- * @memberof PSTContact
176
- */
177
- get companyName() {
178
- return this.getStringItem(OutlookProperties_1.OutlookProperties.PT_UNICODE);
179
- }
180
- /**
181
- * Contains the recipient's job title.
182
- * https://msdn.microsoft.com/en-us/library/office/cc815831.aspx
183
- * @readonly
184
- * @type {string}
185
- * @memberof PSTContact
186
- */
187
- get title() {
188
- return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_TITLE);
189
- }
190
- /**
191
- * Contains a name for the department in which the recipient works.
192
- * https://msdn.microsoft.com/en-us/library/office/cc839825.aspx
193
- * @readonly
194
- * @type {string}
195
- * @memberof PSTContact
196
- */
197
- get departmentName() {
198
- return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_DEPARTMENT_NAME);
199
- }
200
- /**
201
- * Contains the recipient's office location.
202
- * https://msdn.microsoft.com/en-us/library/office/cc842269.aspx
203
- * @readonly
204
- * @type {string}
205
- * @memberof PSTContact
206
- */
207
- get officeLocation() {
208
- return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_OFFICE_LOCATION);
209
- }
210
- /**
211
- * Contains the recipient's primary telephone number.
212
- * https://msdn.microsoft.com/en-us/library/office/cc839969.aspx
213
- * @readonly
214
- * @type {string}
215
- * @memberof PSTContact
216
- */
217
- get primaryTelephoneNumber() {
218
- return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_PRIMARY_TELEPHONE_NUMBER);
219
- }
220
- /**
221
- * Contains a secondary telephone number at the recipient's place of business.
222
- * https://msdn.microsoft.com/en-us/library/office/cc841990.aspx
223
- * @readonly
224
- * @type {string}
225
- * @memberof PSTContact
226
- */
227
- get business2TelephoneNumber() {
228
- return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_BUSINESS2_TELEPHONE_NUMBER);
229
- }
230
- /**
231
- * Contains the recipient's cellular telephone number.
232
- * https://msdn.microsoft.com/en-us/library/office/cc839798.aspx
233
- * @readonly
234
- * @type {string}
235
- * @memberof PSTContact
236
- */
237
- get mobileTelephoneNumber() {
238
- return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_MOBILE_TELEPHONE_NUMBER);
239
- }
240
- /**
241
- * Contains the recipient's radio telephone number.
242
- * https://msdn.microsoft.com/en-us/library/office/cc839806.aspx
243
- * @readonly
244
- * @type {string}
245
- * @memberof PSTContact
246
- */
247
- get radioTelephoneNumber() {
248
- return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_RADIO_TELEPHONE_NUMBER);
249
- }
250
- /**
251
- * Contains the recipient's car telephone number.
252
- * https://msdn.microsoft.com/en-us/library/office/cc815394.aspx
253
- * @readonly
254
- * @type {string}
255
- * @memberof PSTContact
256
- */
257
- get carTelephoneNumber() {
258
- return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_CAR_TELEPHONE_NUMBER);
259
- }
260
- /**
261
- * Contains an alternate telephone number for the recipient.
262
- * https://msdn.microsoft.com/en-us/library/office/cc839561.aspx
263
- * @readonly
264
- * @type {string}
265
- * @memberof PSTContact
266
- */
267
- get otherTelephoneNumber() {
268
- return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_OTHER_TELEPHONE_NUMBER);
269
- }
270
- /**
271
- * Contains a recipient's display name in a secure form that cannot be changed.
272
- * https://msdn.microsoft.com/en-us/library/office/cc815723.aspx
273
- * @readonly
274
- * @type {string}
275
- * @memberof PSTContact
276
- */
277
- get transmittableDisplayName() {
278
- return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_TRANSMITABLE_DISPLAY_NAME);
279
- }
280
- /**
281
- * Contains the recipient's pager telephone number.
282
- * https://msdn.microsoft.com/en-us/library/office/cc765824.aspx
283
- * @readonly
284
- * @type {string}
285
- * @memberof PSTContact
286
- */
287
- get pagerTelephoneNumber() {
288
- return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_PAGER_TELEPHONE_NUMBER);
289
- }
290
- /**
291
- * Contains the telephone number of the recipient's primary fax machine.
292
- * https://msdn.microsoft.com/en-us/library/office/cc815713.aspx
293
- * @readonly
294
- * @type {string}
295
- * @memberof PSTContact
296
- */
297
- get primaryFaxNumber() {
298
- return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_PRIMARY_FAX_NUMBER);
299
- }
300
- /**
301
- * Contains the telephone number of the recipient's business fax machine.
302
- * https://msdn.microsoft.com/en-us/library/office/cc765799.aspx
303
- * @readonly
304
- * @type {string}
305
- * @memberof PSTContact
306
- */
307
- get businessFaxNumber() {
308
- return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_BUSINESS_FAX_NUMBER);
309
- }
310
- /**
311
- * Contains the telephone number of the recipient's home fax machine.
312
- * https://msdn.microsoft.com/en-us/library/office/cc842109.aspx
313
- * @readonly
314
- * @type {string}
315
- * @memberof PSTContact
316
- */
317
- get homeFaxNumber() {
318
- return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_HOME_FAX_NUMBER);
319
- }
320
- /**
321
- * Contains the name of the recipient's country/region.
322
- * https://msdn.microsoft.com/en-us/library/office/cc842494.aspx
323
- * @readonly
324
- * @type {string}
325
- * @memberof PSTContact
326
- */
327
- get businessAddressCountry() {
328
- return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_COUNTRY);
329
- }
330
- /**
331
- * Contains the name of the recipient's locality, such as the town or city.
332
- * https://msdn.microsoft.com/en-us/library/office/cc815711.aspx
333
- * @readonly
334
- * @type {string}
335
- * @memberof PSTContact
336
- */
337
- get businessAddressCity() {
338
- return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_LOCALITY);
339
- }
340
- /**
341
- * Contains the name of the recipient's state or province.
342
- * https://msdn.microsoft.com/en-us/library/office/cc839544.aspx
343
- * @readonly
344
- * @type {string}
345
- * @memberof PSTContact
346
- */
347
- get businessAddressStateOrProvince() {
348
- return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_STATE_OR_PROVINCE);
349
- }
350
- /**
351
- * Contains the recipient's street address.
352
- * https://msdn.microsoft.com/en-us/library/office/cc765810.aspx
353
- * @readonly
354
- * @type {string}
355
- * @memberof PSTContact
356
- */
357
- get businessAddressStreet() {
358
- return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_STREET_ADDRESS);
359
- }
360
- /**
361
- * Contains the postal code for the recipient's postal address.
362
- * https://msdn.microsoft.com/en-us/library/office/cc839851.aspx
363
- * @readonly
364
- * @type {string}
365
- * @memberof PSTContact
366
- */
367
- get businessPostalCode() {
368
- return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_POSTAL_CODE);
369
- }
370
- /**
371
- * Contains the number or identifier of the recipient's post office box.
372
- * https://msdn.microsoft.com/en-us/library/office/cc815522.aspx
373
- * @readonly
374
- * @type {string}
375
- * @memberof PSTContact
376
- */
377
- get businessPoBox() {
378
- return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_POST_OFFICE_BOX);
379
- }
380
- /**
381
- * Contains the recipient's telex number.
382
- * https://msdn.microsoft.com/en-us/library/office/cc765894.aspx
383
- * @readonly
384
- * @type {string}
385
- * @memberof PSTContact
386
- */
387
- get telexNumber() {
388
- return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_TELEX_NUMBER);
389
- }
390
- /**
391
- * Contains the recipient's ISDN-capable telephone number.
392
- * https://msdn.microsoft.com/en-us/library/office/cc765863.aspx
393
- * @readonly
394
- * @type {string}
395
- * @memberof PSTContact
396
- */
397
- get isdnNumber() {
398
- return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_ISDN_NUMBER);
399
- }
400
- /**
401
- * Contains the telephone number of the recipient's administrative assistant.
402
- * https://msdn.microsoft.com/en-us/library/office/cc840012.aspx
403
- * @readonly
404
- * @type {string}
405
- * @memberof PSTContact
406
- */
407
- get assistantTelephoneNumber() {
408
- return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_ASSISTANT_TELEPHONE_NUMBER);
409
- }
410
- /**
411
- * Contains a secondary telephone number at the recipient's home.
412
- * https://msdn.microsoft.com/en-us/library/office/cc815540.aspx
413
- * @readonly
414
- * @type {string}
415
- * @memberof PSTContact
416
- */
417
- get home2TelephoneNumber() {
418
- return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_HOME2_TELEPHONE_NUMBER);
419
- }
420
- /**
421
- * Contains the name of the recipient's administrative assistant.
422
- * https://msdn.microsoft.com/en-us/library/office/cc815319.aspx
423
- * @readonly
424
- * @type {string}
425
- * @memberof PSTContact
426
- */
427
- get assistant() {
428
- return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_ASSISTANT);
429
- }
430
- /**
431
- * Contains the names of the hobbies of the messaging user.
432
- * https://msdn.microsoft.com/en-us/library/office/cc815391.aspx
433
- * @readonly
434
- * @type {string}
435
- * @memberof PSTContact
436
- */
437
- get hobbies() {
438
- return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_HOBBIES);
439
- }
440
- /**
441
- * Contains the middle name of a contact.
442
- * https://msdn.microsoft.com/en-us/library/office/cc815329.aspx
443
- * @readonly
444
- * @type {string}
445
- * @memberof PSTContact
446
- */
447
- get middleName() {
448
- return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_MIDDLE_NAME);
449
- }
450
- /**
451
- * Contains the display name prefix (such as Miss, Mr., Mrs.) for the messaging user.
452
- * https://msdn.microsoft.com/en-us/library/office/cc765538.aspx
453
- * @readonly
454
- * @type {string}
455
- * @memberof PSTContact
456
- */
457
- get displayNamePrefix() {
458
- return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_DISPLAY_NAME_PREFIX);
459
- }
460
- /**
461
- * Contains the profession of the user.
462
- * https://msdn.microsoft.com/en-us/library/office/cc765792.aspx
463
- * @readonly
464
- * @type {string}
465
- * @memberof PSTContact
466
- */
467
- get profession() {
468
- return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_PROFESSION);
469
- }
470
- /**
471
- * Contains the name of the mail user's referral.
472
- * https://msdn.microsoft.com/en-us/library/office/cc765803.aspx
473
- * @readonly
474
- * @type {string}
475
- * @memberof PSTContact
476
- */
477
- get preferredByName() {
478
- return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_REFERRED_BY_NAME);
479
- }
480
- /**
481
- * Contains the user’s spouse name.
482
- * https://msdn.microsoft.com/en-us/library/office/cc765832.aspx
483
- * @readonly
484
- * @type {string}
485
- * @memberof PSTContact
486
- */
487
- get spouseName() {
488
- return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_SPOUSE_NAME);
489
- }
490
- /**
491
- * Contains the name of the network used to transmit the message.
492
- * https://msdn.microsoft.com/en-us/library/office/cc839633.aspx
493
- * @readonly
494
- * @type {string}
495
- * @memberof PSTContact
496
- */
497
- get computerNetworkName() {
498
- return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_COMPUTER_NETWORK_NAME);
499
- }
500
- /**
501
- * Contains the contact’s customer ID number.
502
- * https://msdn.microsoft.com/en-us/library/office/cc842178.aspx
503
- * @readonly
504
- * @type {string}
505
- * @memberof PSTContact
506
- */
507
- get customerId() {
508
- return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_CUSTOMER_ID);
509
- }
510
- /**
511
- * Contains the telephone number for the contact’s text telephone (TTY) or telecommunication device for the deaf (TDD).
512
- * https://msdn.microsoft.com/en-us/library/office/cc765580.aspx
513
- * @readonly
514
- * @type {string}
515
- * @memberof PSTContact
516
- */
517
- get ttytddPhoneNumber() {
518
- return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_TTYTDD_PHONE_NUMBER);
519
- }
520
- /**
521
- * Contains the contact’s File Transfer Protocol (FTP) URL. FTP is a protocol that is used to transfer data, as specified in [RFC959].
522
- * https://msdn.microsoft.com/en-us/library/office/cc839830.aspx
523
- * @readonly
524
- * @type {string}
525
- * @memberof PSTContact
526
- */
527
- get ftpSite() {
528
- return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_FTP_SITE);
529
- }
530
- /**
531
- * Contains the name of the recipient's manager.
532
- * https://msdn.microsoft.com/en-us/library/office/cc842009.aspx
533
- * @readonly
534
- * @type {string}
535
- * @memberof PSTContact
536
- */
537
- get managerName() {
538
- return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_MANAGER_NAME);
539
- }
540
- /**
541
- * Contains the nickname of the contact.
542
- * https://msdn.microsoft.com/en-us/library/office/cc765603.aspx
543
- * @readonly
544
- * @type {string}
545
- * @memberof PSTContact
546
- */
547
- get nickname() {
548
- return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_NICKNAME);
549
- }
550
- /**
551
- * Contains the URL of a user's personal home page.
552
- * https://msdn.microsoft.com/en-us/library/office/cc765751.aspx
553
- * @readonly
554
- * @type {string}
555
- * @memberof PSTContact
556
- */
557
- get personalHomePage() {
558
- return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_PERSONAL_HOME_PAGE);
559
- }
560
- /**
561
- * Contains the URL of the home page for the business.
562
- * https://msdn.microsoft.com/en-us/library/office/cc842385.aspx
563
- * @readonly
564
- * @type {string}
565
- * @memberof PSTContact
566
- */
567
- get businessHomePage() {
568
- return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_BUSINESS_HOME_PAGE);
569
- }
570
- /**
571
- * Get the note associated with the contact.
572
- * @readonly
573
- * @type {string}
574
- * @memberof PSTContact
575
- */
576
- get note() {
577
- return this.getStringItem(0x6619);
578
- }
579
- /**
580
- * Get a named string item from the map
581
- * @param {number} key
582
- * @returns {string}
583
- * @memberof PSTContact
584
- */
585
- getNamedStringItem(key) {
586
- const id = this.pstFile.getNameToIdMapItem(key, OutlookProperties_1.OutlookProperties.PSETID_Address);
587
- if (id != -1) {
588
- return this.getStringItem(id);
589
- }
590
- return '';
591
- }
592
- /**
593
- * Contains the main telephone number for a company
594
- * https://msdn.microsoft.com/en-us/library/office/cc839651.aspx
595
- * @readonly
596
- * @type {string}
597
- * @memberof PSTContact
598
- */
599
- get companyMainPhoneNumber() {
600
- return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_COMPANY_MAIN_PHONE_NUMBER);
601
- }
602
- /**
603
- * Contains a list of names of children
604
- * https://msdn.microsoft.com/en-us/library/office/cc839533.aspx
605
- * @readonly
606
- * @type {string}
607
- * @memberof PSTContact
608
- */
609
- get childrensNames() {
610
- return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_CHILDRENS_NAMES);
611
- }
612
- /**
613
- * Contains the city for the recipient's home address.
614
- * https://msdn.microsoft.com/en-us/library/office/cc815582.aspx
615
- * @readonly
616
- * @type {string}
617
- * @memberof PSTContact
618
- */
619
- get homeAddressCity() {
620
- return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_HOME_ADDRESS_CITY);
621
- }
622
- /**
623
- * Contains the county in a contact's address.
624
- * https://msdn.microsoft.com/en-us/library/office/cc842548.aspx
625
- * @readonly
626
- * @type {string}
627
- * @memberof PSTContact
628
- */
629
- get homeAddressCountry() {
630
- return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_HOME_ADDRESS_COUNTRY);
631
- }
632
- /**
633
- * Contains the postal code for the user's home address.
634
- * https://msdn.microsoft.com/en-us/library/office/cc815880.aspx
635
- * @readonly
636
- * @type {string}
637
- * @memberof PSTContact
638
- */
639
- get homeAddressPostalCode() {
640
- return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_HOME_ADDRESS_POSTAL_CODE);
641
- }
642
- /**
643
- * Contains the state or province portion of a user's address.
644
- * https://msdn.microsoft.com/en-us/library/office/cc839958.aspx
645
- * @readonly
646
- * @type {string}
647
- * @memberof PSTContact
648
- */
649
- get homeAddressStateOrProvince() {
650
- return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_HOME_ADDRESS_STATE_OR_PROVINCE);
651
- }
652
- /**
653
- * Contains the street portion of a user's address.
654
- * https://msdn.microsoft.com/en-us/library/office/cc841997.aspx
655
- * @readonly
656
- * @type {string}
657
- * @memberof PSTContact
658
- */
659
- get homeAddressStreet() {
660
- return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_HOME_ADDRESS_STREET);
661
- }
662
- /**
663
- * Contains the post office box information for a user's address.
664
- * https://msdn.microsoft.com/en-us/library/office/cc842440.aspx
665
- * @readonly
666
- * @type {string}
667
- * @memberof PSTContact
668
- */
669
- get homeAddressPostOfficeBox() {
670
- return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_HOME_ADDRESS_POST_OFFICE_BOX);
671
- }
672
- /**
673
- * Contains the name of the mail user's other locality, such as the town or city.
674
- * https://msdn.microsoft.com/en-us/library/office/cc765881.aspx
675
- * @readonly
676
- * @type {string}
677
- * @memberof PSTContact
678
- */
679
- get otherAddressCity() {
680
- return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_OTHER_ADDRESS_CITY);
681
- }
682
- /**
683
- * Contains the mail user's other country/region.
684
- * https://msdn.microsoft.com/en-us/library/office/cc765814.aspx
685
- * @readonly
686
- * @type {string}
687
- * @memberof PSTContact
688
- */
689
- get otherAddressCountry() {
690
- return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_OTHER_ADDRESS_CITY);
691
- }
692
- /**
693
- * Contains the postal code for the mail user's other postal address.
694
- * https://msdn.microsoft.com/en-us/library/office/cc842261.aspx
695
- * @readonly
696
- * @type {string}
697
- * @memberof PSTContact
698
- */
699
- get otherAddressPostalCode() {
700
- return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_OTHER_ADDRESS_POSTAL_CODE);
701
- }
702
- /**
703
- * Contains the name of state or province used in the other address.
704
- * https://msdn.microsoft.com/en-us/library/office/cc815782.aspx
705
- * @readonly
706
- * @type {string}
707
- * @memberof PSTContact
708
- */
709
- get otherAddressStateOrProvince() {
710
- return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_OTHER_ADDRESS_STATE_OR_PROVINCE);
711
- }
712
- /**
713
- * Contains the mail user's other street address.
714
- * https://msdn.microsoft.com/en-us/library/office/cc839546.aspx
715
- * @readonly
716
- * @type {string}
717
- * @memberof PSTContact
718
- */
719
- get otherAddressStreet() {
720
- return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_OTHER_ADDRESS_STREET);
721
- }
722
- /**
723
- * Contains the post office box for a contact's other address.
724
- * https://msdn.microsoft.com/en-us/library/office/cc842396.aspx
725
- * @readonly
726
- * @type {string}
727
- * @memberof PSTContact
728
- */
729
- get otherAddressPostOfficeBox() {
730
- return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_OTHER_ADDRESS_POST_OFFICE_BOX);
731
- }
732
- ///////////////////////////////////////////////////
733
- // Below are the values from the name to id map...
734
- ///////////////////////////////////////////////////
735
- /**
736
- * Specifies the name under which the contact is filed when displaying a list of contacts.
737
- * https://msdn.microsoft.com/en-us/library/office/cc842002.aspx
738
- * @readonly
739
- * @type {string}
740
- * @memberof PSTContact
741
- */
742
- get fileUnder() {
743
- return this.getNamedStringItem(OutlookProperties_1.OutlookProperties.PidLidFileUnder);
744
- }
745
- /**
746
- * Specifies the complete address of the contact’s home address.
747
- * https://msdn.microsoft.com/en-us/library/office/cc839539.aspx
748
- * @readonly
749
- * @type {string}
750
- * @memberof PSTContact
751
- */
752
- get homeAddress() {
753
- return this.getNamedStringItem(OutlookProperties_1.OutlookProperties.PidLidHomeAddress);
754
- }
755
- /**
756
- * Specifies the contact's complete work address.
757
- * https://msdn.microsoft.com/en-us/library/office/cc815905.aspx
758
- * @readonly
759
- * @type {string}
760
- * @memberof PSTContact
761
- */
762
- get workAddress() {
763
- return this.getNamedStringItem(OutlookProperties_1.OutlookProperties.PidLidWorkAddress);
764
- }
765
- /**
766
- * Specifies the complete address of the contact’s other address.
767
- * https://msdn.microsoft.com/en-us/library/office/cc815383.aspx
768
- * @readonly
769
- * @type {string}
770
- * @memberof PSTContact
771
- */
772
- get otherAddress() {
773
- return this.getNamedStringItem(OutlookProperties_1.OutlookProperties.PidLidOtherAddress);
774
- }
775
- /**
776
- * Specifies which physical address is the contact’s mailing address.
777
- * https://msdn.microsoft.com/en-us/library/office/cc815430.aspx
778
- * @readonly
779
- * @type {number}
780
- * @memberof PSTContact
781
- */
782
- get postalAddressId() {
783
- return this.getIntItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidPostalAddressId, OutlookProperties_1.OutlookProperties.PSETID_Address));
784
- }
785
- /**
786
- * Specifies the contact’s business Web page URL.
787
- * https://msdn.microsoft.com/en-us/library/office/cc842001.aspx
788
- * @readonly
789
- * @type {string}
790
- * @memberof PSTContact
791
- */
792
- get html() {
793
- return this.getNamedStringItem(OutlookProperties_1.OutlookProperties.PidLidHtml);
794
- }
795
- /**
796
- * Specifies the street portion of the contact's work mailing address.
797
- * https://msdn.microsoft.com/en-us/library/office/cc815537.aspx
798
- * @readonly
799
- * @type {string}
800
- * @memberof PSTContact
801
- */
802
- get workAddressStreet() {
803
- return this.getNamedStringItem(OutlookProperties_1.OutlookProperties.PidLidWorkAddressStreet);
804
- }
805
- /**
806
- * Specifies the city or locality portion of the contact's work address.
807
- * https://msdn.microsoft.com/en-us/library/office/cc765923.aspx
808
- * @readonly
809
- * @type {string}
810
- * @memberof PSTContact
811
- */
812
- get workAddressCity() {
813
- return this.getNamedStringItem(OutlookProperties_1.OutlookProperties.PidLidWorkAddressCity);
814
- }
815
- /**
816
- * Specifies the state or province portion of the contact's work mailing address.
817
- * https://msdn.microsoft.com/en-us/library/office/cc842152.aspx
818
- * @readonly
819
- * @type {string}
820
- * @memberof PSTContact
821
- */
822
- get workAddressState() {
823
- return this.getNamedStringItem(OutlookProperties_1.OutlookProperties.PidLidWorkAddressState);
824
- }
825
- /**
826
- * Specifies the postal code (ZIP code) portion of the contact's work address.
827
- * https://msdn.microsoft.com/en-us/library/office/cc842066.aspx
828
- * @readonly
829
- * @type {string}
830
- * @memberof PSTContact
831
- */
832
- get workAddressPostalCode() {
833
- return this.getNamedStringItem(OutlookProperties_1.OutlookProperties.PidLidWorkAddressPostalCode);
834
- }
835
- /**
836
- * Specifies the country or region portion of the contact's work address.
837
- * https://msdn.microsoft.com/en-us/library/office/cc765698.aspx
838
- * @readonly
839
- * @type {string}
840
- * @memberof PSTContact
841
- */
842
- get workAddressCountry() {
843
- return this.getNamedStringItem(OutlookProperties_1.OutlookProperties.PidLidWorkAddressCountry);
844
- }
845
- /**
846
- * Specifies the post office box portion of the contact's work.
847
- * https://msdn.microsoft.com/en-us/library/office/cc815563.aspx
848
- * @readonly
849
- * @type {string}
850
- * @memberof PSTContact
851
- */
852
- get workAddressPostOfficeBox() {
853
- return this.getNamedStringItem(OutlookProperties_1.OutlookProperties.PidLidWorkAddressPostOfficeBox);
854
- }
855
- /**
856
- * Specifies the contact’s instant messaging address.
857
- * https://msdn.microsoft.com/en-us/library/office/cc815607.aspx
858
- * @readonly
859
- * @type {string}
860
- * @memberof PSTContact
861
- */
862
- get instantMessagingAddress() {
863
- return this.getNamedStringItem(OutlookProperties_1.OutlookProperties.PidLidInstantMessagingAddress);
864
- }
865
- /**
866
- * Specifies the user-readable display name for the first e-mail address.
867
- * https://msdn.microsoft.com/en-us/library/office/cc815460.aspx
868
- * @readonly
869
- * @type {string}
870
- * @memberof PSTContact
871
- */
872
- get email1DisplayName() {
873
- return this.getNamedStringItem(OutlookProperties_1.OutlookProperties.PidLidEmail1DisplayName);
874
- }
875
- /**
876
- * Specifies the address type of the first e-mail address.
877
- * https://msdn.microsoft.com/en-us/library/office/cc815570.aspx
878
- * @readonly
879
- * @type {string}
880
- * @memberof PSTContact
881
- */
882
- get email1AddressType() {
883
- return this.getNamedStringItem(OutlookProperties_1.OutlookProperties.PidLidEmail1AddressType);
884
- }
885
- /**
886
- * Specifies the first e-mail address of the contact.
887
- * https://msdn.microsoft.com/en-us/library/office/cc842050.aspx
888
- * @readonly
889
- * @type {string}
890
- * @memberof PSTContact
891
- */
892
- get email1EmailAddress() {
893
- return this.getNamedStringItem(OutlookProperties_1.OutlookProperties.PidLidEmail1EmailAddress);
894
- }
895
- /**
896
- * Specifies the first display name that corresponds to the e-mail address that is specified for the contact.
897
- * https://msdn.microsoft.com/en-us/library/office/cc815564.aspx
898
- * @readonly
899
- * @type {string}
900
- * @memberof PSTContact
901
- */
902
- get email1OriginalDisplayName() {
903
- return this.getNamedStringItem(OutlookProperties_1.OutlookProperties.PidLidEmail1OriginalDisplayName);
904
- }
905
- /**
906
- * Specifies the user-readable display name for the second e-mail address.
907
- * https://msdn.microsoft.com/en-us/library/office/cc839675.aspx
908
- * @readonly
909
- * @type {string}
910
- * @memberof PSTContact
911
- */
912
- get email2DisplayName() {
913
- return this.getNamedStringItem(OutlookProperties_1.OutlookProperties.PidLidEmail2DisplayName);
914
- }
915
- /**
916
- * Specifies the address type of the second e-mail address.
917
- * https://msdn.microsoft.com/en-us/library/office/cc815361.aspx
918
- * @readonly
919
- * @type {string}
920
- * @memberof PSTContact
921
- */
922
- get email2AddressType() {
923
- return this.getNamedStringItem(OutlookProperties_1.OutlookProperties.PidLidEmail2DisplayName);
924
- }
925
- /**
926
- * Specifies the second e-mail address of the contact.
927
- * https://msdn.microsoft.com/en-us/library/office/cc842205.aspx
928
- * @readonly
929
- * @type {string}
930
- * @memberof PSTContact
931
- */
932
- get email2EmailAddress() {
933
- return this.getNamedStringItem(OutlookProperties_1.OutlookProperties.PidLidEmail2EmailAddress);
934
- }
935
- /**
936
- * Specifies the second display name that corresponds to the e-mail address specified for the contact.
937
- * https://msdn.microsoft.com/en-us/library/office/cc765618.aspx
938
- * @readonly
939
- * @type {string}
940
- * @memberof PSTContact
941
- */
942
- get email2OriginalDisplayName() {
943
- return this.getNamedStringItem(OutlookProperties_1.OutlookProperties.PidLidEmail2OriginalDisplayName);
944
- }
945
- /**
946
- * Specifies the user-readable display name for the third e-mail address.
947
- * https://msdn.microsoft.com/en-us/library/office/cc815669.aspx
948
- * @readonly
949
- * @type {string}
950
- * @memberof PSTContact
951
- */
952
- get email3DisplayName() {
953
- return this.getNamedStringItem(OutlookProperties_1.OutlookProperties.PidLidEmail3DisplayName);
954
- }
955
- /**
956
- * Specifies the address type of the third e-mail address.
957
- * https://msdn.microsoft.com/en-us/library/office/cc842438.aspx
958
- * @readonly
959
- * @type {string}
960
- * @memberof PSTContact
961
- */
962
- get email3AddressType() {
963
- return this.getNamedStringItem(OutlookProperties_1.OutlookProperties.PidLidEmail3AddressType);
964
- }
965
- /**
966
- * Specifies the third e-mail address of the contact.
967
- * https://msdn.microsoft.com/en-us/library/office/cc815504.aspx
968
- * @readonly
969
- * @type {string}
970
- * @memberof PSTContact
971
- */
972
- get email3EmailAddress() {
973
- return this.getNamedStringItem(OutlookProperties_1.OutlookProperties.PidLidEmail3EmailAddress);
974
- }
975
- /**
976
- * Specifies the third display name that corresponds to the e-mail address that is specified for the contact.
977
- * https://msdn.microsoft.com/en-us/library/office/cc815833.aspx
978
- * @readonly
979
- * @type {string}
980
- * @memberof PSTContact
981
- */
982
- get email3OriginalDisplayName() {
983
- return this.getNamedStringItem(OutlookProperties_1.OutlookProperties.PidLidEmail3OriginalDisplayName);
984
- }
985
- /**
986
- * Specifies the address type for the business fax address for a contact.
987
- * https://msdn.microsoft.com/en-us/library/office/cc842026.aspx
988
- * @readonly
989
- * @type {string}
990
- * @memberof PSTContact
991
- */
992
- get fax1AddressType() {
993
- return this.getNamedStringItem(OutlookProperties_1.OutlookProperties.PidLidFax1AddressType);
994
- }
995
- /**
996
- * Specifies the e-mail address of the contact’s business fax.
997
- * https://msdn.microsoft.com/en-us/library/office/cc765813.aspx
998
- * @readonly
999
- * @type {string}
1000
- * @memberof PSTContact
1001
- */
1002
- get fax1EmailAddress() {
1003
- return this.getNamedStringItem(OutlookProperties_1.OutlookProperties.PidLidFax1EmailAddress);
1004
- }
1005
- /**
1006
- * Specifies the original display name of the contact’s business fax address.
1007
- * https://msdn.microsoft.com/en-us/library/office/cc765694.aspx
1008
- * @readonly
1009
- * @type {string}
1010
- * @memberof PSTContact
1011
- */
1012
- get fax1OriginalDisplayName() {
1013
- return this.getNamedStringItem(OutlookProperties_1.OutlookProperties.PidLidFax1OriginalDisplayName);
1014
- }
1015
- /**
1016
- * Specifies the address type for the contact’s home fax address.
1017
- * https://msdn.microsoft.com/en-us/library/office/cc839741.aspx
1018
- * @readonly
1019
- * @type {string}
1020
- * @memberof PSTContact
1021
- */
1022
- get fax2AddressType() {
1023
- return this.getNamedStringItem(OutlookProperties_1.OutlookProperties.PidLidFax2AddressType);
1024
- }
1025
- /**
1026
- * Specifies the e-mail address of the contact’s home fax address.
1027
- * https://msdn.microsoft.com/en-us/library/office/cc765668.aspx
1028
- * @readonly
1029
- * @type {string}
1030
- * @memberof PSTContact
1031
- */
1032
- get fax2EmailAddress() {
1033
- return this.getNamedStringItem(OutlookProperties_1.OutlookProperties.PidLidFax2EmailAddress);
1034
- }
1035
- /**
1036
- * Specifies the original display name of the contact’s home fax address.
1037
- * https://msdn.microsoft.com/en-us/library/office/cc842101.aspx
1038
- * @readonly
1039
- * @type {string}
1040
- * @memberof PSTContact
1041
- */
1042
- get fax2OriginalDisplayName() {
1043
- return this.getNamedStringItem(OutlookProperties_1.OutlookProperties.PidLidFax2OriginalDisplayName);
1044
- }
1045
- /**
1046
- * Specifies the address type for the other contact’s fax address.
1047
- * https://msdn.microsoft.com/en-us/library/office/cc839752.aspx
1048
- * @readonly
1049
- * @type {string}
1050
- * @memberof PSTContact
1051
- */
1052
- get fax3AddressType() {
1053
- return this.getNamedStringItem(OutlookProperties_1.OutlookProperties.PidLidFax3AddressType);
1054
- }
1055
- /**
1056
- * Specifies the email address of the contact’s other fax address.
1057
- * https://msdn.microsoft.com/en-us/library/office/cc842217.aspx
1058
- * @readonly
1059
- * @type {string}
1060
- * @memberof PSTContact
1061
- */
1062
- get fax3EmailAddress() {
1063
- return this.getNamedStringItem(OutlookProperties_1.OutlookProperties.PidLidFax3EmailAddress);
1064
- }
1065
- /**
1066
- * Specifies the original display name of the contact’s other fax address.
1067
- * https://msdn.microsoft.com/en-us/library/office/cc765682.aspx
1068
- * @readonly
1069
- * @type {string}
1070
- * @memberof PSTContact
1071
- */
1072
- get fax3OriginalDisplayName() {
1073
- return this.getNamedStringItem(OutlookProperties_1.OutlookProperties.PidLidFax3OriginalDisplayName);
1074
- }
1075
- /**
1076
- * Specifies a URL path from which a client can retrieve free/busy information for the contact as an iCal file, as specified in [MS-OXCICAL].
1077
- * https://msdn.microsoft.com/en-us/library/office/cc765766.aspx
1078
- * @readonly
1079
- * @type {string}
1080
- * @memberof PSTContact
1081
- */
1082
- get freeBusyLocation() {
1083
- return this.getNamedStringItem(OutlookProperties_1.OutlookProperties.PidLidFreeBusyLocation);
1084
- }
1085
- /**
1086
- * Contains the birthday of the contact.
1087
- * https://msdn.microsoft.com/en-us/library/office/cc842301.aspx
1088
- * @readonly
1089
- * @type {Date}
1090
- * @memberof PSTContact
1091
- */
1092
- get birthday() {
1093
- return this.getDateItem(OutlookProperties_1.OutlookProperties.PidTagBirthday);
1094
- }
1095
- /**
1096
- * Contains the date of a user's wedding anniversary.
1097
- * https://msdn.microsoft.com/en-us/library/office/cc842132.aspx
1098
- * @readonly
1099
- * @type {Date}
1100
- * @memberof PSTContact
1101
- */
1102
- get anniversary() {
1103
- return this.getDateItem(OutlookProperties_1.OutlookProperties.PidTagWeddingAnniversary);
1104
- }
1105
- /**
1106
- * JSON stringify the object properties.
1107
- * @returns {string}
1108
- * @memberof PSTContact
1109
- */
1110
- toJSON() {
1111
- const clone = Object.assign({
1112
- messageClass: this.messageClass,
1113
- subject: this.subject,
1114
- importance: this.importance,
1115
- transportMessageHeaders: this.transportMessageHeaders,
1116
- account: this.account,
1117
- callbackTelephoneNumber: this.callbackTelephoneNumber,
1118
- generation: this.generation,
1119
- givenName: this.givenName,
1120
- governmentIdNumber: this.governmentIdNumber,
1121
- businessTelephoneNumber: this.businessTelephoneNumber,
1122
- homeTelephoneNumber: this.homeTelephoneNumber,
1123
- initials: this.initials,
1124
- keyword: this.keyword,
1125
- language: this.language,
1126
- location: this.location,
1127
- mhsCommonName: this.mhsCommonName,
1128
- organizationalIdNumber: this.organizationalIdNumber,
1129
- surname: this.surname,
1130
- originalDisplayName: this.originalDisplayName,
1131
- postalAddress: this.postalAddress,
1132
- companyName: this.companyName,
1133
- title: this.title,
1134
- departmentName: this.departmentName,
1135
- officeLocation: this.officeLocation,
1136
- primaryTelephoneNumber: this.primaryTelephoneNumber,
1137
- business2TelephoneNumber: this.business2TelephoneNumber,
1138
- mobileTelephoneNumber: this.mobileTelephoneNumber,
1139
- radioTelephoneNumber: this.radioTelephoneNumber,
1140
- carTelephoneNumber: this.carTelephoneNumber,
1141
- otherTelephoneNumber: this.otherTelephoneNumber,
1142
- transmittableDisplayName: this.transmittableDisplayName,
1143
- pagerTelephoneNumber: this.pagerTelephoneNumber,
1144
- primaryFaxNumber: this.primaryFaxNumber,
1145
- businessFaxNumber: this.businessFaxNumber,
1146
- homeFaxNumber: this.homeFaxNumber,
1147
- businessAddressCountry: this.businessAddressCountry,
1148
- businessAddressCity: this.businessAddressCity,
1149
- businessAddressStateOrProvince: this.businessAddressStateOrProvince,
1150
- businessAddressStreet: this.businessAddressStreet,
1151
- businessPostalCode: this.businessPostalCode,
1152
- businessPoBox: this.businessPoBox,
1153
- telexNumber: this.telexNumber,
1154
- isdnNumber: this.isdnNumber,
1155
- assistantTelephoneNumber: this.assistantTelephoneNumber,
1156
- home2TelephoneNumber: this.home2TelephoneNumber,
1157
- assistant: this.assistant,
1158
- hobbies: this.hobbies,
1159
- middleName: this.middleName,
1160
- displayNamePrefix: this.displayNamePrefix,
1161
- profession: this.profession,
1162
- preferredByName: this.preferredByName,
1163
- spouseName: this.spouseName,
1164
- computerNetworkName: this.computerNetworkName,
1165
- customerId: this.customerId,
1166
- ttytddPhoneNumber: this.ttytddPhoneNumber,
1167
- ftpSite: this.ftpSite,
1168
- managerName: this.managerName,
1169
- nickname: this.nickname,
1170
- personalHomePage: this.personalHomePage,
1171
- businessHomePage: this.businessHomePage,
1172
- companyMainPhoneNumber: this.companyMainPhoneNumber,
1173
- childrensNames: this.childrensNames,
1174
- homeAddressCity: this.homeAddressCity,
1175
- homeAddressCountry: this.homeAddressCountry,
1176
- homeAddressPostalCode: this.homeAddressPostalCode,
1177
- homeAddressStateOrProvince: this.homeAddressStateOrProvince,
1178
- homeAddressStreet: this.homeAddressStreet,
1179
- homeAddressPostOfficeBox: this.homeAddressPostOfficeBox,
1180
- otherAddressCity: this.otherAddressCity,
1181
- otherAddressCountry: this.otherAddressCountry,
1182
- otherAddressPostalCode: this.otherAddressPostalCode,
1183
- otherAddressStateOrProvince: this.otherAddressStateOrProvince,
1184
- otherAddressStreet: this.otherAddressStreet,
1185
- otherAddressPostOfficeBox: this.otherAddressPostOfficeBox,
1186
- fileUnder: this.fileUnder,
1187
- homeAddress: this.homeAddress,
1188
- workAddress: this.workAddress,
1189
- otherAddress: this.otherAddress,
1190
- postalAddressId: this.postalAddressId,
1191
- html: this.html,
1192
- workAddressStreet: this.workAddressStreet,
1193
- workAddressCity: this.workAddressCity,
1194
- workAddressState: this.workAddressState,
1195
- workAddressPostalCode: this.workAddressPostalCode,
1196
- workAddressCountry: this.workAddressCountry,
1197
- workAddressPostOfficeBox: this.workAddressPostOfficeBox,
1198
- instantMessagingAddress: this.instantMessagingAddress,
1199
- email1DisplayName: this.email1DisplayName,
1200
- email1AddressType: this.email1AddressType,
1201
- email1EmailAddress: this.email1EmailAddress,
1202
- email1OriginalDisplayName: this.email1OriginalDisplayName,
1203
- email2DisplayName: this.email2DisplayName,
1204
- email2AddressType: this.email2AddressType,
1205
- email2EmailAddress: this.email2EmailAddress,
1206
- email2OriginalDisplayName: this.email2OriginalDisplayName,
1207
- email3DisplayName: this.email3DisplayName,
1208
- email3AddressType: this.email3AddressType,
1209
- email3EmailAddress: this.email3EmailAddress,
1210
- email3OriginalDisplayName: this.email3OriginalDisplayName,
1211
- fax1AddressType: this.fax1AddressType,
1212
- fax1EmailAddress: this.fax1EmailAddress,
1213
- fax1OriginalDisplayName: this.fax1OriginalDisplayName,
1214
- fax2AddressType: this.fax2AddressType,
1215
- fax2EmailAddress: this.fax2EmailAddress,
1216
- fax2OriginalDisplayName: this.fax2OriginalDisplayName,
1217
- fax3AddressType: this.fax3AddressType,
1218
- fax3EmailAddress: this.fax3EmailAddress,
1219
- fax3OriginalDisplayName: this.fax3OriginalDisplayName,
1220
- freeBusyLocation: this.freeBusyLocation,
1221
- birthday: this.birthday,
1222
- anniversary: this.anniversary,
1223
- }, this);
1224
- return clone;
1225
- }
1226
- }
1227
- exports.PSTContact = PSTContact;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PSTContact = void 0;
4
+ const OutlookProperties_1 = require("./OutlookProperties");
5
+ const PSTMessage_class_1 = require("./PSTMessage.class");
6
+ class PSTContact extends PSTMessage_class_1.PSTMessage {
7
+ constructor(pstFile, descriptorIndexNode, table, localDescriptorItems) {
8
+ super(pstFile, descriptorIndexNode, table, localDescriptorItems);
9
+ }
10
+ /**
11
+ * Contains the recipient's account name.
12
+ * https://msdn.microsoft.com/en-us/library/office/cc842401.aspx
13
+ * @readonly
14
+ * @type {string}
15
+ * @memberof PSTContact
16
+ */
17
+ get account() {
18
+ return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_ACCOUNT);
19
+ }
20
+ /**
21
+ * Contains a telephone number that the message recipient can use to reach the sender.
22
+ * https://msdn.microsoft.com/en-us/library/office/cc839943.aspx
23
+ * @readonly
24
+ * @type {string}
25
+ * @memberof PSTContact
26
+ */
27
+ get callbackTelephoneNumber() {
28
+ return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_CALLBACK_TELEPHONE_NUMBER);
29
+ }
30
+ /**
31
+ * Contains a generational abbreviation that follows the full name of the recipient.
32
+ * https://msdn.microsoft.com/en-us/library/office/cc842136.aspx
33
+ * @readonly
34
+ * @type {string}
35
+ * @memberof PSTContact
36
+ */
37
+ get generation() {
38
+ return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_GENERATION);
39
+ }
40
+ /**
41
+ * Contains the first or given name of the recipient.
42
+ * https://msdn.microsoft.com/en-us/library/office/cc815351.aspx
43
+ * @readonly
44
+ * @type {string}
45
+ * @memberof PSTContact
46
+ */
47
+ get givenName() {
48
+ return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_GIVEN_NAME);
49
+ }
50
+ /**
51
+ * Contains a government identifier for the recipient.
52
+ * https://msdn.microsoft.com/en-us/library/office/cc815890.aspx
53
+ * @readonly
54
+ * @type {string}
55
+ * @memberof PSTContact
56
+ */
57
+ get governmentIdNumber() {
58
+ return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_GOVERNMENT_ID_NUMBER);
59
+ }
60
+ /**
61
+ * Contains the primary telephone number of the recipient's place of business.
62
+ * https://msdn.microsoft.com/en-us/library/office/cc839937.aspx
63
+ * @readonly
64
+ * @type {string}
65
+ * @memberof PSTContact
66
+ */
67
+ get businessTelephoneNumber() {
68
+ return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_BUSINESS_TELEPHONE_NUMBER);
69
+ }
70
+ /**
71
+ * Contains the primary telephone number of the recipient's home.
72
+ * https://msdn.microsoft.com/en-us/library/office/cc815389.aspx
73
+ * @readonly
74
+ * @type {string}
75
+ * @memberof PSTContact
76
+ */
77
+ get homeTelephoneNumber() {
78
+ return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_HOME_TELEPHONE_NUMBER);
79
+ }
80
+ /**
81
+ * Contains the initials for parts of the full name of the recipient.
82
+ * https://msdn.microsoft.com/en-us/library/office/cc839843.aspx
83
+ * @readonly
84
+ * @type {string}
85
+ * @memberof PSTContact
86
+ */
87
+ get initials() {
88
+ return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_INITIALS);
89
+ }
90
+ /**
91
+ * Contains a keyword that identifies the recipient to the recipient's system administrator.
92
+ * https://msdn.microsoft.com/en-us/library/office/cc842250.aspx
93
+ * @readonly
94
+ * @type {string}
95
+ * @memberof PSTContact
96
+ */
97
+ get keyword() {
98
+ return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_KEYWORD);
99
+ }
100
+ /**
101
+ * Contains a value that indicates the language in which the messaging user is writing messages.
102
+ * https://msdn.microsoft.com/en-us/library/office/cc839724.aspx
103
+ * @readonly
104
+ * @type {string}
105
+ * @memberof PSTContact
106
+ */
107
+ get language() {
108
+ return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_LANGUAGE);
109
+ }
110
+ /**
111
+ * Contains the location of the recipient in a format that is useful to the recipient's organization.
112
+ * https://msdn.microsoft.com/en-us/library/office/cc815567.aspx
113
+ * @readonly
114
+ * @type {string}
115
+ * @memberof PSTContact
116
+ */
117
+ get location() {
118
+ return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_LOCATION);
119
+ }
120
+ /**
121
+ * Contains the common name of the message handling system.
122
+ * https://msdn.microsoft.com/en-us/library/office/cc842474.aspx
123
+ * @readonly
124
+ * @type {string}
125
+ * @memberof PSTContact
126
+ */
127
+ get mhsCommonName() {
128
+ return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_MHS_COMMON_NAME);
129
+ }
130
+ /**
131
+ * Contains an organizational ID number for the contact, such as an employee ID number.
132
+ * https://msdn.microsoft.com/en-us/library/office/cc765672.aspx
133
+ * @readonly
134
+ * @type {string}
135
+ * @memberof PSTContact
136
+ */
137
+ get organizationalIdNumber() {
138
+ return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_ORGANIZATIONAL_ID_NUMBER);
139
+ }
140
+ /**
141
+ * Contains the last or surname of the recipient.
142
+ * https://msdn.microsoft.com/en-us/library/office/cc765704.aspx
143
+ * @readonly
144
+ * @type {string}
145
+ * @memberof PSTContact
146
+ */
147
+ get surname() {
148
+ return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_SURNAME);
149
+ }
150
+ /**
151
+ * Contains the original display name for an entry copied from an address book to a personal address book or other writable address book.
152
+ * https://msdn.microsoft.com/en-us/library/office/cc765709.aspx
153
+ * @readonly
154
+ * @type {string}
155
+ * @memberof PSTContact
156
+ */
157
+ get originalDisplayName() {
158
+ return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_ORIGINAL_DISPLAY_NAME);
159
+ }
160
+ /**
161
+ * Contains the recipient's postal address.
162
+ * https://msdn.microsoft.com/en-us/library/office/cc842549.aspx
163
+ * @readonly
164
+ * @type {string}
165
+ * @memberof PSTContact
166
+ */
167
+ get postalAddress() {
168
+ return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_POSTAL_ADDRESS);
169
+ }
170
+ /**
171
+ * Contains the recipient's company name.
172
+ * https://msdn.microsoft.com/en-us/library/office/cc842192.aspx
173
+ * @readonly
174
+ * @type {string}
175
+ * @memberof PSTContact
176
+ */
177
+ get companyName() {
178
+ return this.getStringItem(OutlookProperties_1.OutlookProperties.PT_UNICODE);
179
+ }
180
+ /**
181
+ * Contains the recipient's job title.
182
+ * https://msdn.microsoft.com/en-us/library/office/cc815831.aspx
183
+ * @readonly
184
+ * @type {string}
185
+ * @memberof PSTContact
186
+ */
187
+ get title() {
188
+ return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_TITLE);
189
+ }
190
+ /**
191
+ * Contains a name for the department in which the recipient works.
192
+ * https://msdn.microsoft.com/en-us/library/office/cc839825.aspx
193
+ * @readonly
194
+ * @type {string}
195
+ * @memberof PSTContact
196
+ */
197
+ get departmentName() {
198
+ return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_DEPARTMENT_NAME);
199
+ }
200
+ /**
201
+ * Contains the recipient's office location.
202
+ * https://msdn.microsoft.com/en-us/library/office/cc842269.aspx
203
+ * @readonly
204
+ * @type {string}
205
+ * @memberof PSTContact
206
+ */
207
+ get officeLocation() {
208
+ return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_OFFICE_LOCATION);
209
+ }
210
+ /**
211
+ * Contains the recipient's primary telephone number.
212
+ * https://msdn.microsoft.com/en-us/library/office/cc839969.aspx
213
+ * @readonly
214
+ * @type {string}
215
+ * @memberof PSTContact
216
+ */
217
+ get primaryTelephoneNumber() {
218
+ return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_PRIMARY_TELEPHONE_NUMBER);
219
+ }
220
+ /**
221
+ * Contains a secondary telephone number at the recipient's place of business.
222
+ * https://msdn.microsoft.com/en-us/library/office/cc841990.aspx
223
+ * @readonly
224
+ * @type {string}
225
+ * @memberof PSTContact
226
+ */
227
+ get business2TelephoneNumber() {
228
+ return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_BUSINESS2_TELEPHONE_NUMBER);
229
+ }
230
+ /**
231
+ * Contains the recipient's cellular telephone number.
232
+ * https://msdn.microsoft.com/en-us/library/office/cc839798.aspx
233
+ * @readonly
234
+ * @type {string}
235
+ * @memberof PSTContact
236
+ */
237
+ get mobileTelephoneNumber() {
238
+ return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_MOBILE_TELEPHONE_NUMBER);
239
+ }
240
+ /**
241
+ * Contains the recipient's radio telephone number.
242
+ * https://msdn.microsoft.com/en-us/library/office/cc839806.aspx
243
+ * @readonly
244
+ * @type {string}
245
+ * @memberof PSTContact
246
+ */
247
+ get radioTelephoneNumber() {
248
+ return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_RADIO_TELEPHONE_NUMBER);
249
+ }
250
+ /**
251
+ * Contains the recipient's car telephone number.
252
+ * https://msdn.microsoft.com/en-us/library/office/cc815394.aspx
253
+ * @readonly
254
+ * @type {string}
255
+ * @memberof PSTContact
256
+ */
257
+ get carTelephoneNumber() {
258
+ return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_CAR_TELEPHONE_NUMBER);
259
+ }
260
+ /**
261
+ * Contains an alternate telephone number for the recipient.
262
+ * https://msdn.microsoft.com/en-us/library/office/cc839561.aspx
263
+ * @readonly
264
+ * @type {string}
265
+ * @memberof PSTContact
266
+ */
267
+ get otherTelephoneNumber() {
268
+ return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_OTHER_TELEPHONE_NUMBER);
269
+ }
270
+ /**
271
+ * Contains a recipient's display name in a secure form that cannot be changed.
272
+ * https://msdn.microsoft.com/en-us/library/office/cc815723.aspx
273
+ * @readonly
274
+ * @type {string}
275
+ * @memberof PSTContact
276
+ */
277
+ get transmittableDisplayName() {
278
+ return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_TRANSMITABLE_DISPLAY_NAME);
279
+ }
280
+ /**
281
+ * Contains the recipient's pager telephone number.
282
+ * https://msdn.microsoft.com/en-us/library/office/cc765824.aspx
283
+ * @readonly
284
+ * @type {string}
285
+ * @memberof PSTContact
286
+ */
287
+ get pagerTelephoneNumber() {
288
+ return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_PAGER_TELEPHONE_NUMBER);
289
+ }
290
+ /**
291
+ * Contains the telephone number of the recipient's primary fax machine.
292
+ * https://msdn.microsoft.com/en-us/library/office/cc815713.aspx
293
+ * @readonly
294
+ * @type {string}
295
+ * @memberof PSTContact
296
+ */
297
+ get primaryFaxNumber() {
298
+ return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_PRIMARY_FAX_NUMBER);
299
+ }
300
+ /**
301
+ * Contains the telephone number of the recipient's business fax machine.
302
+ * https://msdn.microsoft.com/en-us/library/office/cc765799.aspx
303
+ * @readonly
304
+ * @type {string}
305
+ * @memberof PSTContact
306
+ */
307
+ get businessFaxNumber() {
308
+ return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_BUSINESS_FAX_NUMBER);
309
+ }
310
+ /**
311
+ * Contains the telephone number of the recipient's home fax machine.
312
+ * https://msdn.microsoft.com/en-us/library/office/cc842109.aspx
313
+ * @readonly
314
+ * @type {string}
315
+ * @memberof PSTContact
316
+ */
317
+ get homeFaxNumber() {
318
+ return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_HOME_FAX_NUMBER);
319
+ }
320
+ /**
321
+ * Contains the name of the recipient's country/region.
322
+ * https://msdn.microsoft.com/en-us/library/office/cc842494.aspx
323
+ * @readonly
324
+ * @type {string}
325
+ * @memberof PSTContact
326
+ */
327
+ get businessAddressCountry() {
328
+ return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_COUNTRY);
329
+ }
330
+ /**
331
+ * Contains the name of the recipient's locality, such as the town or city.
332
+ * https://msdn.microsoft.com/en-us/library/office/cc815711.aspx
333
+ * @readonly
334
+ * @type {string}
335
+ * @memberof PSTContact
336
+ */
337
+ get businessAddressCity() {
338
+ return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_LOCALITY);
339
+ }
340
+ /**
341
+ * Contains the name of the recipient's state or province.
342
+ * https://msdn.microsoft.com/en-us/library/office/cc839544.aspx
343
+ * @readonly
344
+ * @type {string}
345
+ * @memberof PSTContact
346
+ */
347
+ get businessAddressStateOrProvince() {
348
+ return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_STATE_OR_PROVINCE);
349
+ }
350
+ /**
351
+ * Contains the recipient's street address.
352
+ * https://msdn.microsoft.com/en-us/library/office/cc765810.aspx
353
+ * @readonly
354
+ * @type {string}
355
+ * @memberof PSTContact
356
+ */
357
+ get businessAddressStreet() {
358
+ return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_STREET_ADDRESS);
359
+ }
360
+ /**
361
+ * Contains the postal code for the recipient's postal address.
362
+ * https://msdn.microsoft.com/en-us/library/office/cc839851.aspx
363
+ * @readonly
364
+ * @type {string}
365
+ * @memberof PSTContact
366
+ */
367
+ get businessPostalCode() {
368
+ return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_POSTAL_CODE);
369
+ }
370
+ /**
371
+ * Contains the number or identifier of the recipient's post office box.
372
+ * https://msdn.microsoft.com/en-us/library/office/cc815522.aspx
373
+ * @readonly
374
+ * @type {string}
375
+ * @memberof PSTContact
376
+ */
377
+ get businessPoBox() {
378
+ return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_POST_OFFICE_BOX);
379
+ }
380
+ /**
381
+ * Contains the recipient's telex number.
382
+ * https://msdn.microsoft.com/en-us/library/office/cc765894.aspx
383
+ * @readonly
384
+ * @type {string}
385
+ * @memberof PSTContact
386
+ */
387
+ get telexNumber() {
388
+ return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_TELEX_NUMBER);
389
+ }
390
+ /**
391
+ * Contains the recipient's ISDN-capable telephone number.
392
+ * https://msdn.microsoft.com/en-us/library/office/cc765863.aspx
393
+ * @readonly
394
+ * @type {string}
395
+ * @memberof PSTContact
396
+ */
397
+ get isdnNumber() {
398
+ return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_ISDN_NUMBER);
399
+ }
400
+ /**
401
+ * Contains the telephone number of the recipient's administrative assistant.
402
+ * https://msdn.microsoft.com/en-us/library/office/cc840012.aspx
403
+ * @readonly
404
+ * @type {string}
405
+ * @memberof PSTContact
406
+ */
407
+ get assistantTelephoneNumber() {
408
+ return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_ASSISTANT_TELEPHONE_NUMBER);
409
+ }
410
+ /**
411
+ * Contains a secondary telephone number at the recipient's home.
412
+ * https://msdn.microsoft.com/en-us/library/office/cc815540.aspx
413
+ * @readonly
414
+ * @type {string}
415
+ * @memberof PSTContact
416
+ */
417
+ get home2TelephoneNumber() {
418
+ return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_HOME2_TELEPHONE_NUMBER);
419
+ }
420
+ /**
421
+ * Contains the name of the recipient's administrative assistant.
422
+ * https://msdn.microsoft.com/en-us/library/office/cc815319.aspx
423
+ * @readonly
424
+ * @type {string}
425
+ * @memberof PSTContact
426
+ */
427
+ get assistant() {
428
+ return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_ASSISTANT);
429
+ }
430
+ /**
431
+ * Contains the names of the hobbies of the messaging user.
432
+ * https://msdn.microsoft.com/en-us/library/office/cc815391.aspx
433
+ * @readonly
434
+ * @type {string}
435
+ * @memberof PSTContact
436
+ */
437
+ get hobbies() {
438
+ return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_HOBBIES);
439
+ }
440
+ /**
441
+ * Contains the middle name of a contact.
442
+ * https://msdn.microsoft.com/en-us/library/office/cc815329.aspx
443
+ * @readonly
444
+ * @type {string}
445
+ * @memberof PSTContact
446
+ */
447
+ get middleName() {
448
+ return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_MIDDLE_NAME);
449
+ }
450
+ /**
451
+ * Contains the display name prefix (such as Miss, Mr., Mrs.) for the messaging user.
452
+ * https://msdn.microsoft.com/en-us/library/office/cc765538.aspx
453
+ * @readonly
454
+ * @type {string}
455
+ * @memberof PSTContact
456
+ */
457
+ get displayNamePrefix() {
458
+ return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_DISPLAY_NAME_PREFIX);
459
+ }
460
+ /**
461
+ * Contains the profession of the user.
462
+ * https://msdn.microsoft.com/en-us/library/office/cc765792.aspx
463
+ * @readonly
464
+ * @type {string}
465
+ * @memberof PSTContact
466
+ */
467
+ get profession() {
468
+ return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_PROFESSION);
469
+ }
470
+ /**
471
+ * Contains the name of the mail user's referral.
472
+ * https://msdn.microsoft.com/en-us/library/office/cc765803.aspx
473
+ * @readonly
474
+ * @type {string}
475
+ * @memberof PSTContact
476
+ */
477
+ get preferredByName() {
478
+ return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_REFERRED_BY_NAME);
479
+ }
480
+ /**
481
+ * Contains the user’s spouse name.
482
+ * https://msdn.microsoft.com/en-us/library/office/cc765832.aspx
483
+ * @readonly
484
+ * @type {string}
485
+ * @memberof PSTContact
486
+ */
487
+ get spouseName() {
488
+ return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_SPOUSE_NAME);
489
+ }
490
+ /**
491
+ * Contains the name of the network used to transmit the message.
492
+ * https://msdn.microsoft.com/en-us/library/office/cc839633.aspx
493
+ * @readonly
494
+ * @type {string}
495
+ * @memberof PSTContact
496
+ */
497
+ get computerNetworkName() {
498
+ return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_COMPUTER_NETWORK_NAME);
499
+ }
500
+ /**
501
+ * Contains the contact’s customer ID number.
502
+ * https://msdn.microsoft.com/en-us/library/office/cc842178.aspx
503
+ * @readonly
504
+ * @type {string}
505
+ * @memberof PSTContact
506
+ */
507
+ get customerId() {
508
+ return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_CUSTOMER_ID);
509
+ }
510
+ /**
511
+ * Contains the telephone number for the contact’s text telephone (TTY) or telecommunication device for the deaf (TDD).
512
+ * https://msdn.microsoft.com/en-us/library/office/cc765580.aspx
513
+ * @readonly
514
+ * @type {string}
515
+ * @memberof PSTContact
516
+ */
517
+ get ttytddPhoneNumber() {
518
+ return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_TTYTDD_PHONE_NUMBER);
519
+ }
520
+ /**
521
+ * Contains the contact’s File Transfer Protocol (FTP) URL. FTP is a protocol that is used to transfer data, as specified in [RFC959].
522
+ * https://msdn.microsoft.com/en-us/library/office/cc839830.aspx
523
+ * @readonly
524
+ * @type {string}
525
+ * @memberof PSTContact
526
+ */
527
+ get ftpSite() {
528
+ return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_FTP_SITE);
529
+ }
530
+ /**
531
+ * Contains the name of the recipient's manager.
532
+ * https://msdn.microsoft.com/en-us/library/office/cc842009.aspx
533
+ * @readonly
534
+ * @type {string}
535
+ * @memberof PSTContact
536
+ */
537
+ get managerName() {
538
+ return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_MANAGER_NAME);
539
+ }
540
+ /**
541
+ * Contains the nickname of the contact.
542
+ * https://msdn.microsoft.com/en-us/library/office/cc765603.aspx
543
+ * @readonly
544
+ * @type {string}
545
+ * @memberof PSTContact
546
+ */
547
+ get nickname() {
548
+ return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_NICKNAME);
549
+ }
550
+ /**
551
+ * Contains the URL of a user's personal home page.
552
+ * https://msdn.microsoft.com/en-us/library/office/cc765751.aspx
553
+ * @readonly
554
+ * @type {string}
555
+ * @memberof PSTContact
556
+ */
557
+ get personalHomePage() {
558
+ return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_PERSONAL_HOME_PAGE);
559
+ }
560
+ /**
561
+ * Contains the URL of the home page for the business.
562
+ * https://msdn.microsoft.com/en-us/library/office/cc842385.aspx
563
+ * @readonly
564
+ * @type {string}
565
+ * @memberof PSTContact
566
+ */
567
+ get businessHomePage() {
568
+ return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_BUSINESS_HOME_PAGE);
569
+ }
570
+ /**
571
+ * Get the note associated with the contact.
572
+ * @readonly
573
+ * @type {string}
574
+ * @memberof PSTContact
575
+ */
576
+ get note() {
577
+ return this.getStringItem(0x6619);
578
+ }
579
+ /**
580
+ * Get a named string item from the map
581
+ * @param {number} key
582
+ * @returns {string}
583
+ * @memberof PSTContact
584
+ */
585
+ getNamedStringItem(key) {
586
+ const id = this.pstFile.getNameToIdMapItem(key, OutlookProperties_1.OutlookProperties.PSETID_Address);
587
+ if (id != -1) {
588
+ return this.getStringItem(id);
589
+ }
590
+ return '';
591
+ }
592
+ /**
593
+ * Contains the main telephone number for a company
594
+ * https://msdn.microsoft.com/en-us/library/office/cc839651.aspx
595
+ * @readonly
596
+ * @type {string}
597
+ * @memberof PSTContact
598
+ */
599
+ get companyMainPhoneNumber() {
600
+ return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_COMPANY_MAIN_PHONE_NUMBER);
601
+ }
602
+ /**
603
+ * Contains a list of names of children
604
+ * https://msdn.microsoft.com/en-us/library/office/cc839533.aspx
605
+ * @readonly
606
+ * @type {string}
607
+ * @memberof PSTContact
608
+ */
609
+ get childrensNames() {
610
+ return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_CHILDRENS_NAMES);
611
+ }
612
+ /**
613
+ * Contains the city for the recipient's home address.
614
+ * https://msdn.microsoft.com/en-us/library/office/cc815582.aspx
615
+ * @readonly
616
+ * @type {string}
617
+ * @memberof PSTContact
618
+ */
619
+ get homeAddressCity() {
620
+ return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_HOME_ADDRESS_CITY);
621
+ }
622
+ /**
623
+ * Contains the county in a contact's address.
624
+ * https://msdn.microsoft.com/en-us/library/office/cc842548.aspx
625
+ * @readonly
626
+ * @type {string}
627
+ * @memberof PSTContact
628
+ */
629
+ get homeAddressCountry() {
630
+ return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_HOME_ADDRESS_COUNTRY);
631
+ }
632
+ /**
633
+ * Contains the postal code for the user's home address.
634
+ * https://msdn.microsoft.com/en-us/library/office/cc815880.aspx
635
+ * @readonly
636
+ * @type {string}
637
+ * @memberof PSTContact
638
+ */
639
+ get homeAddressPostalCode() {
640
+ return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_HOME_ADDRESS_POSTAL_CODE);
641
+ }
642
+ /**
643
+ * Contains the state or province portion of a user's address.
644
+ * https://msdn.microsoft.com/en-us/library/office/cc839958.aspx
645
+ * @readonly
646
+ * @type {string}
647
+ * @memberof PSTContact
648
+ */
649
+ get homeAddressStateOrProvince() {
650
+ return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_HOME_ADDRESS_STATE_OR_PROVINCE);
651
+ }
652
+ /**
653
+ * Contains the street portion of a user's address.
654
+ * https://msdn.microsoft.com/en-us/library/office/cc841997.aspx
655
+ * @readonly
656
+ * @type {string}
657
+ * @memberof PSTContact
658
+ */
659
+ get homeAddressStreet() {
660
+ return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_HOME_ADDRESS_STREET);
661
+ }
662
+ /**
663
+ * Contains the post office box information for a user's address.
664
+ * https://msdn.microsoft.com/en-us/library/office/cc842440.aspx
665
+ * @readonly
666
+ * @type {string}
667
+ * @memberof PSTContact
668
+ */
669
+ get homeAddressPostOfficeBox() {
670
+ return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_HOME_ADDRESS_POST_OFFICE_BOX);
671
+ }
672
+ /**
673
+ * Contains the name of the mail user's other locality, such as the town or city.
674
+ * https://msdn.microsoft.com/en-us/library/office/cc765881.aspx
675
+ * @readonly
676
+ * @type {string}
677
+ * @memberof PSTContact
678
+ */
679
+ get otherAddressCity() {
680
+ return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_OTHER_ADDRESS_CITY);
681
+ }
682
+ /**
683
+ * Contains the mail user's other country/region.
684
+ * https://msdn.microsoft.com/en-us/library/office/cc765814.aspx
685
+ * @readonly
686
+ * @type {string}
687
+ * @memberof PSTContact
688
+ */
689
+ get otherAddressCountry() {
690
+ return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_OTHER_ADDRESS_CITY);
691
+ }
692
+ /**
693
+ * Contains the postal code for the mail user's other postal address.
694
+ * https://msdn.microsoft.com/en-us/library/office/cc842261.aspx
695
+ * @readonly
696
+ * @type {string}
697
+ * @memberof PSTContact
698
+ */
699
+ get otherAddressPostalCode() {
700
+ return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_OTHER_ADDRESS_POSTAL_CODE);
701
+ }
702
+ /**
703
+ * Contains the name of state or province used in the other address.
704
+ * https://msdn.microsoft.com/en-us/library/office/cc815782.aspx
705
+ * @readonly
706
+ * @type {string}
707
+ * @memberof PSTContact
708
+ */
709
+ get otherAddressStateOrProvince() {
710
+ return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_OTHER_ADDRESS_STATE_OR_PROVINCE);
711
+ }
712
+ /**
713
+ * Contains the mail user's other street address.
714
+ * https://msdn.microsoft.com/en-us/library/office/cc839546.aspx
715
+ * @readonly
716
+ * @type {string}
717
+ * @memberof PSTContact
718
+ */
719
+ get otherAddressStreet() {
720
+ return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_OTHER_ADDRESS_STREET);
721
+ }
722
+ /**
723
+ * Contains the post office box for a contact's other address.
724
+ * https://msdn.microsoft.com/en-us/library/office/cc842396.aspx
725
+ * @readonly
726
+ * @type {string}
727
+ * @memberof PSTContact
728
+ */
729
+ get otherAddressPostOfficeBox() {
730
+ return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_OTHER_ADDRESS_POST_OFFICE_BOX);
731
+ }
732
+ ///////////////////////////////////////////////////
733
+ // Below are the values from the name to id map...
734
+ ///////////////////////////////////////////////////
735
+ /**
736
+ * Specifies the name under which the contact is filed when displaying a list of contacts.
737
+ * https://msdn.microsoft.com/en-us/library/office/cc842002.aspx
738
+ * @readonly
739
+ * @type {string}
740
+ * @memberof PSTContact
741
+ */
742
+ get fileUnder() {
743
+ return this.getNamedStringItem(OutlookProperties_1.OutlookProperties.PidLidFileUnder);
744
+ }
745
+ /**
746
+ * Specifies the complete address of the contact’s home address.
747
+ * https://msdn.microsoft.com/en-us/library/office/cc839539.aspx
748
+ * @readonly
749
+ * @type {string}
750
+ * @memberof PSTContact
751
+ */
752
+ get homeAddress() {
753
+ return this.getNamedStringItem(OutlookProperties_1.OutlookProperties.PidLidHomeAddress);
754
+ }
755
+ /**
756
+ * Specifies the contact's complete work address.
757
+ * https://msdn.microsoft.com/en-us/library/office/cc815905.aspx
758
+ * @readonly
759
+ * @type {string}
760
+ * @memberof PSTContact
761
+ */
762
+ get workAddress() {
763
+ return this.getNamedStringItem(OutlookProperties_1.OutlookProperties.PidLidWorkAddress);
764
+ }
765
+ /**
766
+ * Specifies the complete address of the contact’s other address.
767
+ * https://msdn.microsoft.com/en-us/library/office/cc815383.aspx
768
+ * @readonly
769
+ * @type {string}
770
+ * @memberof PSTContact
771
+ */
772
+ get otherAddress() {
773
+ return this.getNamedStringItem(OutlookProperties_1.OutlookProperties.PidLidOtherAddress);
774
+ }
775
+ /**
776
+ * Specifies which physical address is the contact’s mailing address.
777
+ * https://msdn.microsoft.com/en-us/library/office/cc815430.aspx
778
+ * @readonly
779
+ * @type {number}
780
+ * @memberof PSTContact
781
+ */
782
+ get postalAddressId() {
783
+ return this.getIntItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidPostalAddressId, OutlookProperties_1.OutlookProperties.PSETID_Address));
784
+ }
785
+ /**
786
+ * Specifies the contact’s business Web page URL.
787
+ * https://msdn.microsoft.com/en-us/library/office/cc842001.aspx
788
+ * @readonly
789
+ * @type {string}
790
+ * @memberof PSTContact
791
+ */
792
+ get html() {
793
+ return this.getNamedStringItem(OutlookProperties_1.OutlookProperties.PidLidHtml);
794
+ }
795
+ /**
796
+ * Specifies the street portion of the contact's work mailing address.
797
+ * https://msdn.microsoft.com/en-us/library/office/cc815537.aspx
798
+ * @readonly
799
+ * @type {string}
800
+ * @memberof PSTContact
801
+ */
802
+ get workAddressStreet() {
803
+ return this.getNamedStringItem(OutlookProperties_1.OutlookProperties.PidLidWorkAddressStreet);
804
+ }
805
+ /**
806
+ * Specifies the city or locality portion of the contact's work address.
807
+ * https://msdn.microsoft.com/en-us/library/office/cc765923.aspx
808
+ * @readonly
809
+ * @type {string}
810
+ * @memberof PSTContact
811
+ */
812
+ get workAddressCity() {
813
+ return this.getNamedStringItem(OutlookProperties_1.OutlookProperties.PidLidWorkAddressCity);
814
+ }
815
+ /**
816
+ * Specifies the state or province portion of the contact's work mailing address.
817
+ * https://msdn.microsoft.com/en-us/library/office/cc842152.aspx
818
+ * @readonly
819
+ * @type {string}
820
+ * @memberof PSTContact
821
+ */
822
+ get workAddressState() {
823
+ return this.getNamedStringItem(OutlookProperties_1.OutlookProperties.PidLidWorkAddressState);
824
+ }
825
+ /**
826
+ * Specifies the postal code (ZIP code) portion of the contact's work address.
827
+ * https://msdn.microsoft.com/en-us/library/office/cc842066.aspx
828
+ * @readonly
829
+ * @type {string}
830
+ * @memberof PSTContact
831
+ */
832
+ get workAddressPostalCode() {
833
+ return this.getNamedStringItem(OutlookProperties_1.OutlookProperties.PidLidWorkAddressPostalCode);
834
+ }
835
+ /**
836
+ * Specifies the country or region portion of the contact's work address.
837
+ * https://msdn.microsoft.com/en-us/library/office/cc765698.aspx
838
+ * @readonly
839
+ * @type {string}
840
+ * @memberof PSTContact
841
+ */
842
+ get workAddressCountry() {
843
+ return this.getNamedStringItem(OutlookProperties_1.OutlookProperties.PidLidWorkAddressCountry);
844
+ }
845
+ /**
846
+ * Specifies the post office box portion of the contact's work.
847
+ * https://msdn.microsoft.com/en-us/library/office/cc815563.aspx
848
+ * @readonly
849
+ * @type {string}
850
+ * @memberof PSTContact
851
+ */
852
+ get workAddressPostOfficeBox() {
853
+ return this.getNamedStringItem(OutlookProperties_1.OutlookProperties.PidLidWorkAddressPostOfficeBox);
854
+ }
855
+ /**
856
+ * Specifies the contact’s instant messaging address.
857
+ * https://msdn.microsoft.com/en-us/library/office/cc815607.aspx
858
+ * @readonly
859
+ * @type {string}
860
+ * @memberof PSTContact
861
+ */
862
+ get instantMessagingAddress() {
863
+ return this.getNamedStringItem(OutlookProperties_1.OutlookProperties.PidLidInstantMessagingAddress);
864
+ }
865
+ /**
866
+ * Specifies the user-readable display name for the first e-mail address.
867
+ * https://msdn.microsoft.com/en-us/library/office/cc815460.aspx
868
+ * @readonly
869
+ * @type {string}
870
+ * @memberof PSTContact
871
+ */
872
+ get email1DisplayName() {
873
+ return this.getNamedStringItem(OutlookProperties_1.OutlookProperties.PidLidEmail1DisplayName);
874
+ }
875
+ /**
876
+ * Specifies the address type of the first e-mail address.
877
+ * https://msdn.microsoft.com/en-us/library/office/cc815570.aspx
878
+ * @readonly
879
+ * @type {string}
880
+ * @memberof PSTContact
881
+ */
882
+ get email1AddressType() {
883
+ return this.getNamedStringItem(OutlookProperties_1.OutlookProperties.PidLidEmail1AddressType);
884
+ }
885
+ /**
886
+ * Specifies the first e-mail address of the contact.
887
+ * https://msdn.microsoft.com/en-us/library/office/cc842050.aspx
888
+ * @readonly
889
+ * @type {string}
890
+ * @memberof PSTContact
891
+ */
892
+ get email1EmailAddress() {
893
+ return this.getNamedStringItem(OutlookProperties_1.OutlookProperties.PidLidEmail1EmailAddress);
894
+ }
895
+ /**
896
+ * Specifies the first display name that corresponds to the e-mail address that is specified for the contact.
897
+ * https://msdn.microsoft.com/en-us/library/office/cc815564.aspx
898
+ * @readonly
899
+ * @type {string}
900
+ * @memberof PSTContact
901
+ */
902
+ get email1OriginalDisplayName() {
903
+ return this.getNamedStringItem(OutlookProperties_1.OutlookProperties.PidLidEmail1OriginalDisplayName);
904
+ }
905
+ /**
906
+ * Specifies the user-readable display name for the second e-mail address.
907
+ * https://msdn.microsoft.com/en-us/library/office/cc839675.aspx
908
+ * @readonly
909
+ * @type {string}
910
+ * @memberof PSTContact
911
+ */
912
+ get email2DisplayName() {
913
+ return this.getNamedStringItem(OutlookProperties_1.OutlookProperties.PidLidEmail2DisplayName);
914
+ }
915
+ /**
916
+ * Specifies the address type of the second e-mail address.
917
+ * https://msdn.microsoft.com/en-us/library/office/cc815361.aspx
918
+ * @readonly
919
+ * @type {string}
920
+ * @memberof PSTContact
921
+ */
922
+ get email2AddressType() {
923
+ return this.getNamedStringItem(OutlookProperties_1.OutlookProperties.PidLidEmail2DisplayName);
924
+ }
925
+ /**
926
+ * Specifies the second e-mail address of the contact.
927
+ * https://msdn.microsoft.com/en-us/library/office/cc842205.aspx
928
+ * @readonly
929
+ * @type {string}
930
+ * @memberof PSTContact
931
+ */
932
+ get email2EmailAddress() {
933
+ return this.getNamedStringItem(OutlookProperties_1.OutlookProperties.PidLidEmail2EmailAddress);
934
+ }
935
+ /**
936
+ * Specifies the second display name that corresponds to the e-mail address specified for the contact.
937
+ * https://msdn.microsoft.com/en-us/library/office/cc765618.aspx
938
+ * @readonly
939
+ * @type {string}
940
+ * @memberof PSTContact
941
+ */
942
+ get email2OriginalDisplayName() {
943
+ return this.getNamedStringItem(OutlookProperties_1.OutlookProperties.PidLidEmail2OriginalDisplayName);
944
+ }
945
+ /**
946
+ * Specifies the user-readable display name for the third e-mail address.
947
+ * https://msdn.microsoft.com/en-us/library/office/cc815669.aspx
948
+ * @readonly
949
+ * @type {string}
950
+ * @memberof PSTContact
951
+ */
952
+ get email3DisplayName() {
953
+ return this.getNamedStringItem(OutlookProperties_1.OutlookProperties.PidLidEmail3DisplayName);
954
+ }
955
+ /**
956
+ * Specifies the address type of the third e-mail address.
957
+ * https://msdn.microsoft.com/en-us/library/office/cc842438.aspx
958
+ * @readonly
959
+ * @type {string}
960
+ * @memberof PSTContact
961
+ */
962
+ get email3AddressType() {
963
+ return this.getNamedStringItem(OutlookProperties_1.OutlookProperties.PidLidEmail3AddressType);
964
+ }
965
+ /**
966
+ * Specifies the third e-mail address of the contact.
967
+ * https://msdn.microsoft.com/en-us/library/office/cc815504.aspx
968
+ * @readonly
969
+ * @type {string}
970
+ * @memberof PSTContact
971
+ */
972
+ get email3EmailAddress() {
973
+ return this.getNamedStringItem(OutlookProperties_1.OutlookProperties.PidLidEmail3EmailAddress);
974
+ }
975
+ /**
976
+ * Specifies the third display name that corresponds to the e-mail address that is specified for the contact.
977
+ * https://msdn.microsoft.com/en-us/library/office/cc815833.aspx
978
+ * @readonly
979
+ * @type {string}
980
+ * @memberof PSTContact
981
+ */
982
+ get email3OriginalDisplayName() {
983
+ return this.getNamedStringItem(OutlookProperties_1.OutlookProperties.PidLidEmail3OriginalDisplayName);
984
+ }
985
+ /**
986
+ * Specifies the address type for the business fax address for a contact.
987
+ * https://msdn.microsoft.com/en-us/library/office/cc842026.aspx
988
+ * @readonly
989
+ * @type {string}
990
+ * @memberof PSTContact
991
+ */
992
+ get fax1AddressType() {
993
+ return this.getNamedStringItem(OutlookProperties_1.OutlookProperties.PidLidFax1AddressType);
994
+ }
995
+ /**
996
+ * Specifies the e-mail address of the contact’s business fax.
997
+ * https://msdn.microsoft.com/en-us/library/office/cc765813.aspx
998
+ * @readonly
999
+ * @type {string}
1000
+ * @memberof PSTContact
1001
+ */
1002
+ get fax1EmailAddress() {
1003
+ return this.getNamedStringItem(OutlookProperties_1.OutlookProperties.PidLidFax1EmailAddress);
1004
+ }
1005
+ /**
1006
+ * Specifies the original display name of the contact’s business fax address.
1007
+ * https://msdn.microsoft.com/en-us/library/office/cc765694.aspx
1008
+ * @readonly
1009
+ * @type {string}
1010
+ * @memberof PSTContact
1011
+ */
1012
+ get fax1OriginalDisplayName() {
1013
+ return this.getNamedStringItem(OutlookProperties_1.OutlookProperties.PidLidFax1OriginalDisplayName);
1014
+ }
1015
+ /**
1016
+ * Specifies the address type for the contact’s home fax address.
1017
+ * https://msdn.microsoft.com/en-us/library/office/cc839741.aspx
1018
+ * @readonly
1019
+ * @type {string}
1020
+ * @memberof PSTContact
1021
+ */
1022
+ get fax2AddressType() {
1023
+ return this.getNamedStringItem(OutlookProperties_1.OutlookProperties.PidLidFax2AddressType);
1024
+ }
1025
+ /**
1026
+ * Specifies the e-mail address of the contact’s home fax address.
1027
+ * https://msdn.microsoft.com/en-us/library/office/cc765668.aspx
1028
+ * @readonly
1029
+ * @type {string}
1030
+ * @memberof PSTContact
1031
+ */
1032
+ get fax2EmailAddress() {
1033
+ return this.getNamedStringItem(OutlookProperties_1.OutlookProperties.PidLidFax2EmailAddress);
1034
+ }
1035
+ /**
1036
+ * Specifies the original display name of the contact’s home fax address.
1037
+ * https://msdn.microsoft.com/en-us/library/office/cc842101.aspx
1038
+ * @readonly
1039
+ * @type {string}
1040
+ * @memberof PSTContact
1041
+ */
1042
+ get fax2OriginalDisplayName() {
1043
+ return this.getNamedStringItem(OutlookProperties_1.OutlookProperties.PidLidFax2OriginalDisplayName);
1044
+ }
1045
+ /**
1046
+ * Specifies the address type for the other contact’s fax address.
1047
+ * https://msdn.microsoft.com/en-us/library/office/cc839752.aspx
1048
+ * @readonly
1049
+ * @type {string}
1050
+ * @memberof PSTContact
1051
+ */
1052
+ get fax3AddressType() {
1053
+ return this.getNamedStringItem(OutlookProperties_1.OutlookProperties.PidLidFax3AddressType);
1054
+ }
1055
+ /**
1056
+ * Specifies the email address of the contact’s other fax address.
1057
+ * https://msdn.microsoft.com/en-us/library/office/cc842217.aspx
1058
+ * @readonly
1059
+ * @type {string}
1060
+ * @memberof PSTContact
1061
+ */
1062
+ get fax3EmailAddress() {
1063
+ return this.getNamedStringItem(OutlookProperties_1.OutlookProperties.PidLidFax3EmailAddress);
1064
+ }
1065
+ /**
1066
+ * Specifies the original display name of the contact’s other fax address.
1067
+ * https://msdn.microsoft.com/en-us/library/office/cc765682.aspx
1068
+ * @readonly
1069
+ * @type {string}
1070
+ * @memberof PSTContact
1071
+ */
1072
+ get fax3OriginalDisplayName() {
1073
+ return this.getNamedStringItem(OutlookProperties_1.OutlookProperties.PidLidFax3OriginalDisplayName);
1074
+ }
1075
+ /**
1076
+ * Specifies a URL path from which a client can retrieve free/busy information for the contact as an iCal file, as specified in [MS-OXCICAL].
1077
+ * https://msdn.microsoft.com/en-us/library/office/cc765766.aspx
1078
+ * @readonly
1079
+ * @type {string}
1080
+ * @memberof PSTContact
1081
+ */
1082
+ get freeBusyLocation() {
1083
+ return this.getNamedStringItem(OutlookProperties_1.OutlookProperties.PidLidFreeBusyLocation);
1084
+ }
1085
+ /**
1086
+ * Contains the birthday of the contact.
1087
+ * https://msdn.microsoft.com/en-us/library/office/cc842301.aspx
1088
+ * @readonly
1089
+ * @type {Date}
1090
+ * @memberof PSTContact
1091
+ */
1092
+ get birthday() {
1093
+ return this.getDateItem(OutlookProperties_1.OutlookProperties.PidTagBirthday);
1094
+ }
1095
+ /**
1096
+ * Contains the date of a user's wedding anniversary.
1097
+ * https://msdn.microsoft.com/en-us/library/office/cc842132.aspx
1098
+ * @readonly
1099
+ * @type {Date}
1100
+ * @memberof PSTContact
1101
+ */
1102
+ get anniversary() {
1103
+ return this.getDateItem(OutlookProperties_1.OutlookProperties.PidTagWeddingAnniversary);
1104
+ }
1105
+ /**
1106
+ * JSON stringify the object properties.
1107
+ * @returns {string}
1108
+ * @memberof PSTContact
1109
+ */
1110
+ toJSON() {
1111
+ const clone = Object.assign({
1112
+ messageClass: this.messageClass,
1113
+ subject: this.subject,
1114
+ importance: this.importance,
1115
+ transportMessageHeaders: this.transportMessageHeaders,
1116
+ account: this.account,
1117
+ callbackTelephoneNumber: this.callbackTelephoneNumber,
1118
+ generation: this.generation,
1119
+ givenName: this.givenName,
1120
+ governmentIdNumber: this.governmentIdNumber,
1121
+ businessTelephoneNumber: this.businessTelephoneNumber,
1122
+ homeTelephoneNumber: this.homeTelephoneNumber,
1123
+ initials: this.initials,
1124
+ keyword: this.keyword,
1125
+ language: this.language,
1126
+ location: this.location,
1127
+ mhsCommonName: this.mhsCommonName,
1128
+ organizationalIdNumber: this.organizationalIdNumber,
1129
+ surname: this.surname,
1130
+ originalDisplayName: this.originalDisplayName,
1131
+ postalAddress: this.postalAddress,
1132
+ companyName: this.companyName,
1133
+ title: this.title,
1134
+ departmentName: this.departmentName,
1135
+ officeLocation: this.officeLocation,
1136
+ primaryTelephoneNumber: this.primaryTelephoneNumber,
1137
+ business2TelephoneNumber: this.business2TelephoneNumber,
1138
+ mobileTelephoneNumber: this.mobileTelephoneNumber,
1139
+ radioTelephoneNumber: this.radioTelephoneNumber,
1140
+ carTelephoneNumber: this.carTelephoneNumber,
1141
+ otherTelephoneNumber: this.otherTelephoneNumber,
1142
+ transmittableDisplayName: this.transmittableDisplayName,
1143
+ pagerTelephoneNumber: this.pagerTelephoneNumber,
1144
+ primaryFaxNumber: this.primaryFaxNumber,
1145
+ businessFaxNumber: this.businessFaxNumber,
1146
+ homeFaxNumber: this.homeFaxNumber,
1147
+ businessAddressCountry: this.businessAddressCountry,
1148
+ businessAddressCity: this.businessAddressCity,
1149
+ businessAddressStateOrProvince: this.businessAddressStateOrProvince,
1150
+ businessAddressStreet: this.businessAddressStreet,
1151
+ businessPostalCode: this.businessPostalCode,
1152
+ businessPoBox: this.businessPoBox,
1153
+ telexNumber: this.telexNumber,
1154
+ isdnNumber: this.isdnNumber,
1155
+ assistantTelephoneNumber: this.assistantTelephoneNumber,
1156
+ home2TelephoneNumber: this.home2TelephoneNumber,
1157
+ assistant: this.assistant,
1158
+ hobbies: this.hobbies,
1159
+ middleName: this.middleName,
1160
+ displayNamePrefix: this.displayNamePrefix,
1161
+ profession: this.profession,
1162
+ preferredByName: this.preferredByName,
1163
+ spouseName: this.spouseName,
1164
+ computerNetworkName: this.computerNetworkName,
1165
+ customerId: this.customerId,
1166
+ ttytddPhoneNumber: this.ttytddPhoneNumber,
1167
+ ftpSite: this.ftpSite,
1168
+ managerName: this.managerName,
1169
+ nickname: this.nickname,
1170
+ personalHomePage: this.personalHomePage,
1171
+ businessHomePage: this.businessHomePage,
1172
+ companyMainPhoneNumber: this.companyMainPhoneNumber,
1173
+ childrensNames: this.childrensNames,
1174
+ homeAddressCity: this.homeAddressCity,
1175
+ homeAddressCountry: this.homeAddressCountry,
1176
+ homeAddressPostalCode: this.homeAddressPostalCode,
1177
+ homeAddressStateOrProvince: this.homeAddressStateOrProvince,
1178
+ homeAddressStreet: this.homeAddressStreet,
1179
+ homeAddressPostOfficeBox: this.homeAddressPostOfficeBox,
1180
+ otherAddressCity: this.otherAddressCity,
1181
+ otherAddressCountry: this.otherAddressCountry,
1182
+ otherAddressPostalCode: this.otherAddressPostalCode,
1183
+ otherAddressStateOrProvince: this.otherAddressStateOrProvince,
1184
+ otherAddressStreet: this.otherAddressStreet,
1185
+ otherAddressPostOfficeBox: this.otherAddressPostOfficeBox,
1186
+ fileUnder: this.fileUnder,
1187
+ homeAddress: this.homeAddress,
1188
+ workAddress: this.workAddress,
1189
+ otherAddress: this.otherAddress,
1190
+ postalAddressId: this.postalAddressId,
1191
+ html: this.html,
1192
+ workAddressStreet: this.workAddressStreet,
1193
+ workAddressCity: this.workAddressCity,
1194
+ workAddressState: this.workAddressState,
1195
+ workAddressPostalCode: this.workAddressPostalCode,
1196
+ workAddressCountry: this.workAddressCountry,
1197
+ workAddressPostOfficeBox: this.workAddressPostOfficeBox,
1198
+ instantMessagingAddress: this.instantMessagingAddress,
1199
+ email1DisplayName: this.email1DisplayName,
1200
+ email1AddressType: this.email1AddressType,
1201
+ email1EmailAddress: this.email1EmailAddress,
1202
+ email1OriginalDisplayName: this.email1OriginalDisplayName,
1203
+ email2DisplayName: this.email2DisplayName,
1204
+ email2AddressType: this.email2AddressType,
1205
+ email2EmailAddress: this.email2EmailAddress,
1206
+ email2OriginalDisplayName: this.email2OriginalDisplayName,
1207
+ email3DisplayName: this.email3DisplayName,
1208
+ email3AddressType: this.email3AddressType,
1209
+ email3EmailAddress: this.email3EmailAddress,
1210
+ email3OriginalDisplayName: this.email3OriginalDisplayName,
1211
+ fax1AddressType: this.fax1AddressType,
1212
+ fax1EmailAddress: this.fax1EmailAddress,
1213
+ fax1OriginalDisplayName: this.fax1OriginalDisplayName,
1214
+ fax2AddressType: this.fax2AddressType,
1215
+ fax2EmailAddress: this.fax2EmailAddress,
1216
+ fax2OriginalDisplayName: this.fax2OriginalDisplayName,
1217
+ fax3AddressType: this.fax3AddressType,
1218
+ fax3EmailAddress: this.fax3EmailAddress,
1219
+ fax3OriginalDisplayName: this.fax3OriginalDisplayName,
1220
+ freeBusyLocation: this.freeBusyLocation,
1221
+ birthday: this.birthday,
1222
+ anniversary: this.anniversary,
1223
+ }, this);
1224
+ return clone;
1225
+ }
1226
+ }
1227
+ exports.PSTContact = PSTContact;