@hiraokahypertools/pst-extractor 0.1.0-alpha.1

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