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,376 +1,376 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PSTAppointment = void 0;
4
- const OutlookProperties_1 = require("./OutlookProperties");
5
- const PSTMessage_class_1 = require("./PSTMessage.class");
6
- // PSTAppointment is for Calendar items
7
- class PSTAppointment extends PSTMessage_class_1.PSTMessage {
8
- constructor(pstFile, descriptorIndexNode, table, localDescriptorItems) {
9
- super(pstFile, descriptorIndexNode, table, localDescriptorItems);
10
- }
11
- /**
12
- * Specifies if a meeting request should be sent as an iCal message.
13
- * https://msdn.microsoft.com/en-us/library/office/cc839802.aspx
14
- * @readonly
15
- * @type {boolean}
16
- * @memberof PSTAppointment
17
- */
18
- get sendAsICAL() {
19
- return this.getBooleanItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidSendMeetingAsIcal, OutlookProperties_1.OutlookProperties.PSETID_Appointment));
20
- }
21
- /**
22
- * Represents the user’s availability for an appointment.
23
- * https://msdn.microsoft.com/en-us/library/office/cc841972.aspx
24
- * @readonly
25
- * @type {number}
26
- * @memberof PSTAppointment
27
- */
28
- get busyStatus() {
29
- return this.getIntItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidBusyStatus, OutlookProperties_1.OutlookProperties.PSETID_Appointment));
30
- }
31
- /**
32
- * The user is busy.
33
- * https://msdn.microsoft.com/en-us/library/office/cc841972.aspx
34
- * @readonly
35
- * @type {boolean}
36
- * @memberof PSTAppointment
37
- */
38
- get showAsBusy() {
39
- return this.busyStatus == 2;
40
- }
41
- /**
42
- * Represents the location of an appointment.
43
- * https://msdn.microsoft.com/en-us/library/office/cc842419.aspx
44
- * @readonly
45
- * @type {string}
46
- * @memberof PSTAppointment
47
- */
48
- get location() {
49
- return this.getStringItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidLocation, OutlookProperties_1.OutlookProperties.PSETID_Appointment));
50
- }
51
- /**
52
- * Represents the date and time when an appointment begins.
53
- * https://msdn.microsoft.com/en-us/library/office/cc839929.aspx
54
- * @readonly
55
- * @type {Date}
56
- * @memberof PSTAppointment
57
- */
58
- get startTime() {
59
- return this.getDateItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidAppointmentStartWhole, OutlookProperties_1.OutlookProperties.PSETID_Appointment));
60
- }
61
- /**
62
- * Represents the date and time that an appointment ends.
63
- * https://msdn.microsoft.com/en-us/library/office/cc815864.aspx
64
- * @readonly
65
- * @type {Date}
66
- * @memberof PSTAppointment
67
- */
68
- get endTime() {
69
- return this.getDateItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidAppointmentEndWhole, OutlookProperties_1.OutlookProperties.PSETID_Appointment));
70
- }
71
- /**
72
- * Represents the length of time, in minutes, when an appointment is scheduled.
73
- * https://msdn.microsoft.com/en-us/library/office/cc842287.aspx
74
- * @readonly
75
- * @type {number}
76
- * @memberof PSTAppointment
77
- */
78
- get duration() {
79
- return this.getIntItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidAppointmentDuration, OutlookProperties_1.OutlookProperties.PSETID_Appointment));
80
- }
81
- /**
82
- * Specifies the color to use when displaying the calendar.
83
- * https://msdn.microsoft.com/en-us/library/office/cc842274.aspx
84
- * @readonly
85
- * @type {number}
86
- * @memberof PSTAppointment
87
- */
88
- get color() {
89
- return this.getIntItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidAppointmentColor, OutlookProperties_1.OutlookProperties.PSETID_Appointment));
90
- }
91
- /**
92
- * Specifies whether or not the event is all day.
93
- * https://msdn.microsoft.com/en-us/library/office/cc839901.aspx
94
- * @readonly
95
- * @type {boolean}
96
- * @memberof PSTAppointment
97
- */
98
- get subType() {
99
- return (this.getIntItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidAppointmentSubType, OutlookProperties_1.OutlookProperties.PSETID_Appointment)) != 0);
100
- }
101
- /**
102
- * Specifies a bit field that describes the state of the object.
103
- * https://msdn.microsoft.com/en-us/library/office/cc765762.aspx
104
- * @readonly
105
- * @type {number}
106
- * @memberof PSTAppointment
107
- */
108
- get meetingStatus() {
109
- return this.getIntItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidAppointmentStateFlags, OutlookProperties_1.OutlookProperties.PSETID_Appointment));
110
- }
111
- /**
112
- * Specifies the response status of an attendee.
113
- * https://msdn.microsoft.com/en-us/library/office/cc839923.aspx
114
- * @readonly
115
- * @type {number}
116
- * @memberof PSTAppointment
117
- */
118
- get responseStatus() {
119
- return this.getIntItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidResponseStatus, OutlookProperties_1.OutlookProperties.PSETID_Appointment));
120
- }
121
- /**
122
- * Specifies whether an appointment message is recurrent.
123
- * https://msdn.microsoft.com/en-us/library/office/cc765772.aspx
124
- * @readonly
125
- * @type {boolean}
126
- * @memberof PSTAppointment
127
- */
128
- get isRecurring() {
129
- return this.getBooleanItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidRecurring, OutlookProperties_1.OutlookProperties.PSETID_Appointment));
130
- }
131
- /**
132
- * Specifies the date and time within the recurrence pattern that the exception will replace.
133
- * https://msdn.microsoft.com/en-us/library/office/cc842450.aspx
134
- * @readonly
135
- * @type {Date}
136
- * @memberof PSTAppointment
137
- */
138
- get recurrenceBase() {
139
- return this.getDateItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidExceptionReplaceTime, OutlookProperties_1.OutlookProperties.PSETID_Appointment));
140
- }
141
- /**
142
- * Specifies the recurrence type of the recurring series.
143
- * https://msdn.microsoft.com/en-us/library/office/cc842135.aspx
144
- * @readonly
145
- * @type {number}
146
- * @memberof PSTAppointment
147
- */
148
- get recurrenceType() {
149
- return this.getIntItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidRecurrenceType, OutlookProperties_1.OutlookProperties.PSETID_Appointment));
150
- }
151
- /**
152
- * Specifies a description of the recurrence pattern of the calendar object.
153
- * https://msdn.microsoft.com/en-us/library/office/cc815733.aspx
154
- * @readonly
155
- * @type {string}
156
- * @memberof PSTAppointment
157
- */
158
- get recurrencePattern() {
159
- return this.getStringItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidRecurrencePattern, OutlookProperties_1.OutlookProperties.PSETID_Appointment));
160
- }
161
- /**
162
- * Specifies the dates and times when a recurring series occurs by using one of the recurrence patterns and ranges that are specified in [MS-OXOCAL].
163
- * https://msdn.microsoft.com/en-us/library/office/cc842017.aspx
164
- * @readonly
165
- * @type {Buffer}
166
- * @memberof PSTAppointment
167
- */
168
- get recurrenceStructure() {
169
- return this.getBinaryItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidAppointmentRecur, OutlookProperties_1.OutlookProperties.PSETID_Appointment));
170
- }
171
- /**
172
- * Contains a stream that maps to the persisted format of a TZREG structure, which describes the time zone to be used for the start and end time of a recurring appointment or meeting request.
173
- * https://msdn.microsoft.com/en-us/library/office/cc815376.aspx
174
- * @readonly
175
- * @type {Buffer}
176
- * @memberof PSTAppointment
177
- */
178
- get timezone() {
179
- return this.getBinaryItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidTimeZoneStruct, OutlookProperties_1.OutlookProperties.PSETID_Appointment));
180
- }
181
- /**
182
- * Specifies a list of all the attendees except for the organizer, including resources and unsendable attendees.
183
- * https://msdn.microsoft.com/en-us/library/office/cc815418.aspx
184
- * @readonly
185
- * @type {string}
186
- * @memberof PSTAppointment
187
- */
188
- get allAttendees() {
189
- return this.getStringItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidAllAttendeesString, OutlookProperties_1.OutlookProperties.PSETID_Appointment));
190
- }
191
- /**
192
- * Contains a list of all the sendable attendees who are also required attendees.
193
- * https://msdn.microsoft.com/en-us/library/office/cc842502.aspx
194
- * @readonly
195
- * @type {string}
196
- * @memberof PSTAppointment
197
- */
198
- get toAttendees() {
199
- return this.getStringItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidToAttendeesString, OutlookProperties_1.OutlookProperties.PSETID_Appointment));
200
- }
201
- /**
202
- * Contains a list of all the sendable attendees who are also optional attendees.
203
- * https://msdn.microsoft.com/en-us/library/office/cc839636.aspx
204
- * @readonly
205
- * @type {string}
206
- * @memberof PSTAppointment
207
- */
208
- get ccAttendees() {
209
- return this.getStringItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidCcAttendeesString, OutlookProperties_1.OutlookProperties.PSETID_Appointment));
210
- }
211
- /**
212
- * Specifies the sequence number of a Meeting object.
213
- * https://msdn.microsoft.com/en-us/library/office/cc765937.aspx
214
- * @readonly
215
- * @type {number}
216
- * @memberof PSTAppointment
217
- */
218
- get appointmentSequence() {
219
- return this.getIntItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidAppointmentSequence, OutlookProperties_1.OutlookProperties.PSETID_Appointment));
220
- }
221
- /**
222
- * Is a hosted meeting?
223
- * https://msdn.microsoft.com/en-us/library/ee200872(v=exchg.80).aspx
224
- * @readonly
225
- * @type {boolean}
226
- * @memberof PSTAppointment
227
- */
228
- get isOnlineMeeting() {
229
- return this.getBooleanItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidConferencingCheck, OutlookProperties_1.OutlookProperties.PSETID_Appointment));
230
- }
231
- /**
232
- * Specifies the type of the meeting.
233
- * https://msdn.microsoft.com/en-us/library/ee158396(v=exchg.80).aspx
234
- * @readonly
235
- * @type {number}
236
- * @memberof PSTAppointment
237
- */
238
- get netMeetingType() {
239
- return this.getIntItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidConferencingType, OutlookProperties_1.OutlookProperties.PSETID_Appointment));
240
- }
241
- /**
242
- * Specifies the directory server to be used.
243
- * https://msdn.microsoft.com/en-us/library/ee201516(v=exchg.80).aspx
244
- * @readonly
245
- * @type {string}
246
- * @memberof PSTAppointment
247
- */
248
- get netMeetingServer() {
249
- return this.getStringItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidDirectory, OutlookProperties_1.OutlookProperties.PSETID_Appointment));
250
- }
251
- /**
252
- * Specifies the email address of the organizer.
253
- * https://msdn.microsoft.com/en-us/library/ee203317(v=exchg.80).aspx
254
- * @readonly
255
- * @type {string}
256
- * @memberof PSTAppointment
257
- */
258
- get netMeetingOrganizerAlias() {
259
- return this.getStringItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidOrganizerAlias, OutlookProperties_1.OutlookProperties.PSETID_Appointment));
260
- }
261
- /**
262
- * Specifies the document to be launched when the user joins the meeting.
263
- * https://msdn.microsoft.com/en-us/library/ee204395(v=exchg.80).aspx
264
- * @readonly
265
- * @type {string}
266
- * @memberof PSTAppointment
267
- */
268
- get netMeetingDocumentPathName() {
269
- return this.getStringItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidCollaborateDoc, OutlookProperties_1.OutlookProperties.PSETID_Appointment));
270
- }
271
- /**
272
- * The PidLidNetShowUrl property ([MS-OXPROPS] section 2.175) specifies the URL to be launched when the user joins the meeting
273
- * https://msdn.microsoft.com/en-us/library/ee179451(v=exchg.80).aspx
274
- * @readonly
275
- * @type {string}
276
- * @memberof PSTAppointment
277
- */
278
- get netShowURL() {
279
- return this.getStringItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidNetShowUrl, OutlookProperties_1.OutlookProperties.PSETID_Appointment));
280
- }
281
- /**
282
- * Specifies the date and time at which the meeting-related object was sent.
283
- * https://msdn.microsoft.com/en-us/library/ee237112(v=exchg.80).aspx
284
- * @readonly
285
- * @type {Date}
286
- * @memberof PSTAppointment
287
- */
288
- get attendeeCriticalChange() {
289
- return this.getDateItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidAttendeeCriticalChange, OutlookProperties_1.OutlookProperties.PSETID_Meeting));
290
- }
291
- /**
292
- * Indicates that this meeting response is a counter proposal.
293
- * https://msdn.microsoft.com/en-us/magazine/cc815846.aspx
294
- * @readonly
295
- * @type {boolean}
296
- * @memberof PSTAppointment
297
- */
298
- get appointmentCounterProposal() {
299
- return this.getBooleanItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidAppointmentCounterProposal, OutlookProperties_1.OutlookProperties.PSETID_Appointment));
300
- }
301
- /**
302
- * Indicates whether the user did not include any text in the body of the Meeting Response object.
303
- * https://msdn.microsoft.com/en-us/library/ee159822(v=exchg.80).aspx
304
- * @readonly
305
- * @type {boolean}
306
- * @memberof PSTAppointment
307
- */
308
- get isSilent() {
309
- return this.getBooleanItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidIsSilent, OutlookProperties_1.OutlookProperties.PSETID_Meeting));
310
- }
311
- /**
312
- * Identifies required attendees for the appointment or meeting.
313
- * https://msdn.microsoft.com/en-us/library/ee160700(v=exchg.80).aspx
314
- * @readonly
315
- * @type {string}
316
- * @memberof PSTAppointment
317
- */
318
- get requiredAttendees() {
319
- return this.getStringItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidRequiredAttendees, OutlookProperties_1.OutlookProperties.PSETID_Meeting));
320
- }
321
- /**
322
- * Contains the Windows Locale ID of the end-user who created this message.
323
- * https://msdn.microsoft.com/en-us/library/ee201602(v=exchg.80).aspx
324
- * @readonly
325
- * @type {number}
326
- * @memberof PSTAppointment
327
- */
328
- get localeId() {
329
- return this.getIntItem(OutlookProperties_1.OutlookProperties.PidTagMessageLocaleId);
330
- }
331
- /**
332
- * JSON stringify the object properties. Large fields (like body) aren't included.
333
- * @returns {string}
334
- * @memberof PSTAppointment
335
- */
336
- toJSON() {
337
- const clone = Object.assign({
338
- messageClass: this.messageClass,
339
- subject: this.subject,
340
- importance: this.importance,
341
- transportMessageHeaders: this.transportMessageHeaders,
342
- sendAsICAL: this.sendAsICAL,
343
- busyStatus: this.busyStatus,
344
- showAsBusy: this.showAsBusy,
345
- location: this.location,
346
- startTime: this.startTime,
347
- endTime: this.endTime,
348
- duration: this.duration,
349
- color: this.color,
350
- subType: this.subType,
351
- meetingStatus: this.meetingStatus,
352
- isRecurring: this.isRecurring,
353
- recurrenceBase: this.recurrenceBase,
354
- recurrenceType: this.recurrenceType,
355
- recurrencePattern: this.recurrencePattern,
356
- recurrenceStructure: this.recurrenceStructure,
357
- timezone: this.timezone,
358
- allAttendees: this.allAttendees,
359
- toAttendees: this.toAttendees,
360
- ccAttendees: this.ccAttendees,
361
- appointmentSequence: this.appointmentSequence,
362
- isOnlineMeeting: this.isOnlineMeeting,
363
- netMeetingType: this.netMeetingType,
364
- netMeetingServer: this.netMeetingServer,
365
- netMeetingOrganizerAlias: this.netMeetingOrganizerAlias,
366
- netMeetingDocumentPathName: this.netMeetingDocumentPathName,
367
- attendeeCriticalChange: this.attendeeCriticalChange,
368
- appointmentCounterProposal: this.appointmentCounterProposal,
369
- isSilent: this.isSilent,
370
- requiredAttendees: this.requiredAttendees,
371
- localeId: this.localeId,
372
- }, this);
373
- return clone;
374
- }
375
- }
376
- exports.PSTAppointment = PSTAppointment;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PSTAppointment = void 0;
4
+ const OutlookProperties_1 = require("./OutlookProperties");
5
+ const PSTMessage_class_1 = require("./PSTMessage.class");
6
+ // PSTAppointment is for Calendar items
7
+ class PSTAppointment extends PSTMessage_class_1.PSTMessage {
8
+ constructor(pstFile, descriptorIndexNode, table, localDescriptorItems) {
9
+ super(pstFile, descriptorIndexNode, table, localDescriptorItems);
10
+ }
11
+ /**
12
+ * Specifies if a meeting request should be sent as an iCal message.
13
+ * https://msdn.microsoft.com/en-us/library/office/cc839802.aspx
14
+ * @readonly
15
+ * @type {boolean}
16
+ * @memberof PSTAppointment
17
+ */
18
+ get sendAsICAL() {
19
+ return this.getBooleanItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidSendMeetingAsIcal, OutlookProperties_1.OutlookProperties.PSETID_Appointment));
20
+ }
21
+ /**
22
+ * Represents the user’s availability for an appointment.
23
+ * https://msdn.microsoft.com/en-us/library/office/cc841972.aspx
24
+ * @readonly
25
+ * @type {number}
26
+ * @memberof PSTAppointment
27
+ */
28
+ get busyStatus() {
29
+ return this.getIntItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidBusyStatus, OutlookProperties_1.OutlookProperties.PSETID_Appointment));
30
+ }
31
+ /**
32
+ * The user is busy.
33
+ * https://msdn.microsoft.com/en-us/library/office/cc841972.aspx
34
+ * @readonly
35
+ * @type {boolean}
36
+ * @memberof PSTAppointment
37
+ */
38
+ get showAsBusy() {
39
+ return this.busyStatus == 2;
40
+ }
41
+ /**
42
+ * Represents the location of an appointment.
43
+ * https://msdn.microsoft.com/en-us/library/office/cc842419.aspx
44
+ * @readonly
45
+ * @type {string}
46
+ * @memberof PSTAppointment
47
+ */
48
+ get location() {
49
+ return this.getStringItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidLocation, OutlookProperties_1.OutlookProperties.PSETID_Appointment));
50
+ }
51
+ /**
52
+ * Represents the date and time when an appointment begins.
53
+ * https://msdn.microsoft.com/en-us/library/office/cc839929.aspx
54
+ * @readonly
55
+ * @type {Date}
56
+ * @memberof PSTAppointment
57
+ */
58
+ get startTime() {
59
+ return this.getDateItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidAppointmentStartWhole, OutlookProperties_1.OutlookProperties.PSETID_Appointment));
60
+ }
61
+ /**
62
+ * Represents the date and time that an appointment ends.
63
+ * https://msdn.microsoft.com/en-us/library/office/cc815864.aspx
64
+ * @readonly
65
+ * @type {Date}
66
+ * @memberof PSTAppointment
67
+ */
68
+ get endTime() {
69
+ return this.getDateItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidAppointmentEndWhole, OutlookProperties_1.OutlookProperties.PSETID_Appointment));
70
+ }
71
+ /**
72
+ * Represents the length of time, in minutes, when an appointment is scheduled.
73
+ * https://msdn.microsoft.com/en-us/library/office/cc842287.aspx
74
+ * @readonly
75
+ * @type {number}
76
+ * @memberof PSTAppointment
77
+ */
78
+ get duration() {
79
+ return this.getIntItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidAppointmentDuration, OutlookProperties_1.OutlookProperties.PSETID_Appointment));
80
+ }
81
+ /**
82
+ * Specifies the color to use when displaying the calendar.
83
+ * https://msdn.microsoft.com/en-us/library/office/cc842274.aspx
84
+ * @readonly
85
+ * @type {number}
86
+ * @memberof PSTAppointment
87
+ */
88
+ get color() {
89
+ return this.getIntItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidAppointmentColor, OutlookProperties_1.OutlookProperties.PSETID_Appointment));
90
+ }
91
+ /**
92
+ * Specifies whether or not the event is all day.
93
+ * https://msdn.microsoft.com/en-us/library/office/cc839901.aspx
94
+ * @readonly
95
+ * @type {boolean}
96
+ * @memberof PSTAppointment
97
+ */
98
+ get subType() {
99
+ return (this.getIntItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidAppointmentSubType, OutlookProperties_1.OutlookProperties.PSETID_Appointment)) != 0);
100
+ }
101
+ /**
102
+ * Specifies a bit field that describes the state of the object.
103
+ * https://msdn.microsoft.com/en-us/library/office/cc765762.aspx
104
+ * @readonly
105
+ * @type {number}
106
+ * @memberof PSTAppointment
107
+ */
108
+ get meetingStatus() {
109
+ return this.getIntItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidAppointmentStateFlags, OutlookProperties_1.OutlookProperties.PSETID_Appointment));
110
+ }
111
+ /**
112
+ * Specifies the response status of an attendee.
113
+ * https://msdn.microsoft.com/en-us/library/office/cc839923.aspx
114
+ * @readonly
115
+ * @type {number}
116
+ * @memberof PSTAppointment
117
+ */
118
+ get responseStatus() {
119
+ return this.getIntItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidResponseStatus, OutlookProperties_1.OutlookProperties.PSETID_Appointment));
120
+ }
121
+ /**
122
+ * Specifies whether an appointment message is recurrent.
123
+ * https://msdn.microsoft.com/en-us/library/office/cc765772.aspx
124
+ * @readonly
125
+ * @type {boolean}
126
+ * @memberof PSTAppointment
127
+ */
128
+ get isRecurring() {
129
+ return this.getBooleanItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidRecurring, OutlookProperties_1.OutlookProperties.PSETID_Appointment));
130
+ }
131
+ /**
132
+ * Specifies the date and time within the recurrence pattern that the exception will replace.
133
+ * https://msdn.microsoft.com/en-us/library/office/cc842450.aspx
134
+ * @readonly
135
+ * @type {Date}
136
+ * @memberof PSTAppointment
137
+ */
138
+ get recurrenceBase() {
139
+ return this.getDateItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidExceptionReplaceTime, OutlookProperties_1.OutlookProperties.PSETID_Appointment));
140
+ }
141
+ /**
142
+ * Specifies the recurrence type of the recurring series.
143
+ * https://msdn.microsoft.com/en-us/library/office/cc842135.aspx
144
+ * @readonly
145
+ * @type {number}
146
+ * @memberof PSTAppointment
147
+ */
148
+ get recurrenceType() {
149
+ return this.getIntItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidRecurrenceType, OutlookProperties_1.OutlookProperties.PSETID_Appointment));
150
+ }
151
+ /**
152
+ * Specifies a description of the recurrence pattern of the calendar object.
153
+ * https://msdn.microsoft.com/en-us/library/office/cc815733.aspx
154
+ * @readonly
155
+ * @type {string}
156
+ * @memberof PSTAppointment
157
+ */
158
+ get recurrencePattern() {
159
+ return this.getStringItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidRecurrencePattern, OutlookProperties_1.OutlookProperties.PSETID_Appointment));
160
+ }
161
+ /**
162
+ * Specifies the dates and times when a recurring series occurs by using one of the recurrence patterns and ranges that are specified in [MS-OXOCAL].
163
+ * https://msdn.microsoft.com/en-us/library/office/cc842017.aspx
164
+ * @readonly
165
+ * @type {Buffer}
166
+ * @memberof PSTAppointment
167
+ */
168
+ get recurrenceStructure() {
169
+ return this.getBinaryItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidAppointmentRecur, OutlookProperties_1.OutlookProperties.PSETID_Appointment));
170
+ }
171
+ /**
172
+ * Contains a stream that maps to the persisted format of a TZREG structure, which describes the time zone to be used for the start and end time of a recurring appointment or meeting request.
173
+ * https://msdn.microsoft.com/en-us/library/office/cc815376.aspx
174
+ * @readonly
175
+ * @type {Buffer}
176
+ * @memberof PSTAppointment
177
+ */
178
+ get timezone() {
179
+ return this.getBinaryItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidTimeZoneStruct, OutlookProperties_1.OutlookProperties.PSETID_Appointment));
180
+ }
181
+ /**
182
+ * Specifies a list of all the attendees except for the organizer, including resources and unsendable attendees.
183
+ * https://msdn.microsoft.com/en-us/library/office/cc815418.aspx
184
+ * @readonly
185
+ * @type {string}
186
+ * @memberof PSTAppointment
187
+ */
188
+ get allAttendees() {
189
+ return this.getStringItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidAllAttendeesString, OutlookProperties_1.OutlookProperties.PSETID_Appointment));
190
+ }
191
+ /**
192
+ * Contains a list of all the sendable attendees who are also required attendees.
193
+ * https://msdn.microsoft.com/en-us/library/office/cc842502.aspx
194
+ * @readonly
195
+ * @type {string}
196
+ * @memberof PSTAppointment
197
+ */
198
+ get toAttendees() {
199
+ return this.getStringItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidToAttendeesString, OutlookProperties_1.OutlookProperties.PSETID_Appointment));
200
+ }
201
+ /**
202
+ * Contains a list of all the sendable attendees who are also optional attendees.
203
+ * https://msdn.microsoft.com/en-us/library/office/cc839636.aspx
204
+ * @readonly
205
+ * @type {string}
206
+ * @memberof PSTAppointment
207
+ */
208
+ get ccAttendees() {
209
+ return this.getStringItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidCcAttendeesString, OutlookProperties_1.OutlookProperties.PSETID_Appointment));
210
+ }
211
+ /**
212
+ * Specifies the sequence number of a Meeting object.
213
+ * https://msdn.microsoft.com/en-us/library/office/cc765937.aspx
214
+ * @readonly
215
+ * @type {number}
216
+ * @memberof PSTAppointment
217
+ */
218
+ get appointmentSequence() {
219
+ return this.getIntItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidAppointmentSequence, OutlookProperties_1.OutlookProperties.PSETID_Appointment));
220
+ }
221
+ /**
222
+ * Is a hosted meeting?
223
+ * https://msdn.microsoft.com/en-us/library/ee200872(v=exchg.80).aspx
224
+ * @readonly
225
+ * @type {boolean}
226
+ * @memberof PSTAppointment
227
+ */
228
+ get isOnlineMeeting() {
229
+ return this.getBooleanItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidConferencingCheck, OutlookProperties_1.OutlookProperties.PSETID_Appointment));
230
+ }
231
+ /**
232
+ * Specifies the type of the meeting.
233
+ * https://msdn.microsoft.com/en-us/library/ee158396(v=exchg.80).aspx
234
+ * @readonly
235
+ * @type {number}
236
+ * @memberof PSTAppointment
237
+ */
238
+ get netMeetingType() {
239
+ return this.getIntItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidConferencingType, OutlookProperties_1.OutlookProperties.PSETID_Appointment));
240
+ }
241
+ /**
242
+ * Specifies the directory server to be used.
243
+ * https://msdn.microsoft.com/en-us/library/ee201516(v=exchg.80).aspx
244
+ * @readonly
245
+ * @type {string}
246
+ * @memberof PSTAppointment
247
+ */
248
+ get netMeetingServer() {
249
+ return this.getStringItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidDirectory, OutlookProperties_1.OutlookProperties.PSETID_Appointment));
250
+ }
251
+ /**
252
+ * Specifies the email address of the organizer.
253
+ * https://msdn.microsoft.com/en-us/library/ee203317(v=exchg.80).aspx
254
+ * @readonly
255
+ * @type {string}
256
+ * @memberof PSTAppointment
257
+ */
258
+ get netMeetingOrganizerAlias() {
259
+ return this.getStringItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidOrganizerAlias, OutlookProperties_1.OutlookProperties.PSETID_Appointment));
260
+ }
261
+ /**
262
+ * Specifies the document to be launched when the user joins the meeting.
263
+ * https://msdn.microsoft.com/en-us/library/ee204395(v=exchg.80).aspx
264
+ * @readonly
265
+ * @type {string}
266
+ * @memberof PSTAppointment
267
+ */
268
+ get netMeetingDocumentPathName() {
269
+ return this.getStringItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidCollaborateDoc, OutlookProperties_1.OutlookProperties.PSETID_Appointment));
270
+ }
271
+ /**
272
+ * The PidLidNetShowUrl property ([MS-OXPROPS] section 2.175) specifies the URL to be launched when the user joins the meeting
273
+ * https://msdn.microsoft.com/en-us/library/ee179451(v=exchg.80).aspx
274
+ * @readonly
275
+ * @type {string}
276
+ * @memberof PSTAppointment
277
+ */
278
+ get netShowURL() {
279
+ return this.getStringItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidNetShowUrl, OutlookProperties_1.OutlookProperties.PSETID_Appointment));
280
+ }
281
+ /**
282
+ * Specifies the date and time at which the meeting-related object was sent.
283
+ * https://msdn.microsoft.com/en-us/library/ee237112(v=exchg.80).aspx
284
+ * @readonly
285
+ * @type {Date}
286
+ * @memberof PSTAppointment
287
+ */
288
+ get attendeeCriticalChange() {
289
+ return this.getDateItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidAttendeeCriticalChange, OutlookProperties_1.OutlookProperties.PSETID_Meeting));
290
+ }
291
+ /**
292
+ * Indicates that this meeting response is a counter proposal.
293
+ * https://msdn.microsoft.com/en-us/magazine/cc815846.aspx
294
+ * @readonly
295
+ * @type {boolean}
296
+ * @memberof PSTAppointment
297
+ */
298
+ get appointmentCounterProposal() {
299
+ return this.getBooleanItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidAppointmentCounterProposal, OutlookProperties_1.OutlookProperties.PSETID_Appointment));
300
+ }
301
+ /**
302
+ * Indicates whether the user did not include any text in the body of the Meeting Response object.
303
+ * https://msdn.microsoft.com/en-us/library/ee159822(v=exchg.80).aspx
304
+ * @readonly
305
+ * @type {boolean}
306
+ * @memberof PSTAppointment
307
+ */
308
+ get isSilent() {
309
+ return this.getBooleanItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidIsSilent, OutlookProperties_1.OutlookProperties.PSETID_Meeting));
310
+ }
311
+ /**
312
+ * Identifies required attendees for the appointment or meeting.
313
+ * https://msdn.microsoft.com/en-us/library/ee160700(v=exchg.80).aspx
314
+ * @readonly
315
+ * @type {string}
316
+ * @memberof PSTAppointment
317
+ */
318
+ get requiredAttendees() {
319
+ return this.getStringItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidRequiredAttendees, OutlookProperties_1.OutlookProperties.PSETID_Meeting));
320
+ }
321
+ /**
322
+ * Contains the Windows Locale ID of the end-user who created this message.
323
+ * https://msdn.microsoft.com/en-us/library/ee201602(v=exchg.80).aspx
324
+ * @readonly
325
+ * @type {number}
326
+ * @memberof PSTAppointment
327
+ */
328
+ get localeId() {
329
+ return this.getIntItem(OutlookProperties_1.OutlookProperties.PidTagMessageLocaleId);
330
+ }
331
+ /**
332
+ * JSON stringify the object properties. Large fields (like body) aren't included.
333
+ * @returns {string}
334
+ * @memberof PSTAppointment
335
+ */
336
+ toJSON() {
337
+ const clone = Object.assign({
338
+ messageClass: this.messageClass,
339
+ subject: this.subject,
340
+ importance: this.importance,
341
+ transportMessageHeaders: this.transportMessageHeaders,
342
+ sendAsICAL: this.sendAsICAL,
343
+ busyStatus: this.busyStatus,
344
+ showAsBusy: this.showAsBusy,
345
+ location: this.location,
346
+ startTime: this.startTime,
347
+ endTime: this.endTime,
348
+ duration: this.duration,
349
+ color: this.color,
350
+ subType: this.subType,
351
+ meetingStatus: this.meetingStatus,
352
+ isRecurring: this.isRecurring,
353
+ recurrenceBase: this.recurrenceBase,
354
+ recurrenceType: this.recurrenceType,
355
+ recurrencePattern: this.recurrencePattern,
356
+ recurrenceStructure: this.recurrenceStructure,
357
+ timezone: this.timezone,
358
+ allAttendees: this.allAttendees,
359
+ toAttendees: this.toAttendees,
360
+ ccAttendees: this.ccAttendees,
361
+ appointmentSequence: this.appointmentSequence,
362
+ isOnlineMeeting: this.isOnlineMeeting,
363
+ netMeetingType: this.netMeetingType,
364
+ netMeetingServer: this.netMeetingServer,
365
+ netMeetingOrganizerAlias: this.netMeetingOrganizerAlias,
366
+ netMeetingDocumentPathName: this.netMeetingDocumentPathName,
367
+ attendeeCriticalChange: this.attendeeCriticalChange,
368
+ appointmentCounterProposal: this.appointmentCounterProposal,
369
+ isSilent: this.isSilent,
370
+ requiredAttendees: this.requiredAttendees,
371
+ localeId: this.localeId,
372
+ }, this);
373
+ return clone;
374
+ }
375
+ }
376
+ exports.PSTAppointment = PSTAppointment;