pst-extractor 1.8.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 (64) hide show
  1. package/dist/ColumnDescriptor.class.d.ts +26 -26
  2. package/dist/ColumnDescriptor.class.js +51 -48
  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 -83
  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 -314
  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 -96
  25. package/dist/PSTFile.class.d.ts +215 -216
  26. package/dist/PSTFile.class.js +818 -792
  27. package/dist/PSTFolder.class.d.ts +129 -129
  28. package/dist/PSTFolder.class.js +318 -307
  29. package/dist/PSTMessage.class.d.ts +788 -789
  30. package/dist/PSTMessage.class.js +1321 -1318
  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 -488
  35. package/dist/PSTObject.class.d.ts +133 -134
  36. package/dist/PSTObject.class.js +326 -323
  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 -172
  41. package/dist/PSTTable7C.class.d.ts +45 -45
  42. package/dist/PSTTable7C.class.js +281 -278
  43. package/dist/PSTTableBC.class.d.ts +31 -31
  44. package/dist/PSTTableBC.class.js +111 -108
  45. package/dist/PSTTableItem.class.d.ts +47 -48
  46. package/dist/PSTTableItem.class.js +124 -121
  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 -790
  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 +7 -7
  56. package/example/test-min.ts +31 -12
  57. package/example/{test-mem.ts → test.ts} +38 -30
  58. package/example/testdata/output.txt +278 -0
  59. package/example/testdata/outputBody.txt +3404 -0
  60. package/example/yarn.lock +112 -50
  61. package/junit.xml +36 -36
  62. package/package.json +28 -27
  63. package/readme.md +1 -3
  64. package/example/test-max.ts +0 -251
@@ -1,103 +1,103 @@
1
- import { PSTFile } from './PSTFile.class';
2
- import { DescriptorIndexNode } from './DescriptorIndexNode.class';
3
- import { PSTTableBC } from './PSTTableBC.class';
4
- import { PSTDescriptorItem } from './PSTDescriptorItem.class';
5
- import { PSTMessage } from './PSTMessage.class';
6
- export declare class PSTActivity extends PSTMessage {
7
- /**
8
- * Creates an instance of PSTActivity. Represents Journal entries, class IPM.Activity.
9
- * https://msdn.microsoft.com/en-us/library/office/aa204771(v=office.11).aspx
10
- * @param {PSTFile} pstFile
11
- * @param {DescriptorIndexNode} descriptorIndexNode
12
- * @param {PSTTableBC} [table]
13
- * @param {Map<number, PSTDescriptorItem>} [localDescriptorItems]
14
- * @memberof PSTActivity
15
- */
16
- constructor(pstFile: PSTFile, descriptorIndexNode: DescriptorIndexNode, table?: PSTTableBC, localDescriptorItems?: Map<number, PSTDescriptorItem>);
17
- /**
18
- * Contains the display name of the journaling application (for example, "MSWord"), and is typically a free-form attribute of a journal message, usually a string.
19
- * https://msdn.microsoft.com/en-us/library/office/cc839662.aspx
20
- * @readonly
21
- * @type {string}
22
- * @memberof PSTActivity
23
- */
24
- get logType(): string;
25
- /**
26
- * Represents the start date and time for the journal message.
27
- * https://msdn.microsoft.com/en-us/library/office/cc842339.aspx
28
- * @readonly
29
- * @type {Date}
30
- * @memberof PSTActivity
31
- */
32
- get logStart(): Date | null;
33
- /**
34
- * Represents the duration, in minutes, of a journal message.
35
- * https://msdn.microsoft.com/en-us/library/office/cc765536.aspx
36
- * @readonly
37
- * @type {number}
38
- * @memberof PSTActivity
39
- */
40
- get logDuration(): number;
41
- /**
42
- * Represents the end date and time for the journal message.
43
- * https://msdn.microsoft.com/en-us/library/office/cc839572.aspx
44
- * @readonly
45
- * @type {Date}
46
- * @memberof PSTActivity
47
- */
48
- get logEnd(): Date | null;
49
- /**
50
- * Contains metadata about the journal.
51
- * https://msdn.microsoft.com/en-us/library/office/cc815433.aspx
52
- * @readonly
53
- * @type {number}
54
- * @memberof PSTActivity
55
- */
56
- get logFlags(): number;
57
- /**
58
- * Indicates whether the document was printed during journaling.
59
- * https://msdn.microsoft.com/en-us/library/office/cc839873.aspx
60
- * @readonly
61
- * @type {boolean}
62
- * @memberof PSTActivity
63
- */
64
- get isDocumentPrinted(): boolean;
65
- /**
66
- * Indicates whether the document was saved during journaling.
67
- * https://msdn.microsoft.com/en-us/library/office/cc815488.aspx
68
- * @readonly
69
- * @type {boolean}
70
- * @memberof PSTActivity
71
- */
72
- get isDocumentSaved(): boolean;
73
- /**
74
- * Indicates whether the document was sent to a routing recipient during journaling.
75
- * https://msdn.microsoft.com/en-us/library/office/cc839558.aspx
76
- * @readonly
77
- * @type {boolean}
78
- * @memberof PSTActivity
79
- */
80
- get isDocumentRouted(): boolean;
81
- /**
82
- * Indicates whether the document was sent by e-mail or posted to a server folder during journaling.
83
- * https://msdn.microsoft.com/en-us/library/office/cc815353.aspx
84
- * @readonly
85
- * @type {boolean}
86
- * @memberof PSTActivity
87
- */
88
- get isDocumentPosted(): boolean;
89
- /**
90
- * Describes the activity that is being recorded.
91
- * https://msdn.microsoft.com/en-us/library/office/cc815500.aspx
92
- * @readonly
93
- * @type {string}
94
- * @memberof PSTActivity
95
- */
96
- get logTypeDesc(): string;
97
- /**
98
- * JSON stringify the object properties.
99
- * @returns {string}
100
- * @memberof PSTActivity
101
- */
102
- toJSON(): any;
103
- }
1
+ import { PSTFile } from './PSTFile.class';
2
+ import { DescriptorIndexNode } from './DescriptorIndexNode.class';
3
+ import { PSTTableBC } from './PSTTableBC.class';
4
+ import { PSTDescriptorItem } from './PSTDescriptorItem.class';
5
+ import { PSTMessage } from './PSTMessage.class';
6
+ export declare class PSTActivity extends PSTMessage {
7
+ /**
8
+ * Creates an instance of PSTActivity. Represents Journal entries, class IPM.Activity.
9
+ * https://msdn.microsoft.com/en-us/library/office/aa204771(v=office.11).aspx
10
+ * @param {PSTFile} pstFile
11
+ * @param {DescriptorIndexNode} descriptorIndexNode
12
+ * @param {PSTTableBC} [table]
13
+ * @param {Map<number, PSTDescriptorItem>} [localDescriptorItems]
14
+ * @memberof PSTActivity
15
+ */
16
+ constructor(pstFile: PSTFile, descriptorIndexNode: DescriptorIndexNode, table?: PSTTableBC, localDescriptorItems?: Map<number, PSTDescriptorItem>);
17
+ /**
18
+ * Contains the display name of the journaling application (for example, "MSWord"), and is typically a free-form attribute of a journal message, usually a string.
19
+ * https://msdn.microsoft.com/en-us/library/office/cc839662.aspx
20
+ * @readonly
21
+ * @type {string}
22
+ * @memberof PSTActivity
23
+ */
24
+ get logType(): string;
25
+ /**
26
+ * Represents the start date and time for the journal message.
27
+ * https://msdn.microsoft.com/en-us/library/office/cc842339.aspx
28
+ * @readonly
29
+ * @type {Date}
30
+ * @memberof PSTActivity
31
+ */
32
+ get logStart(): Date | null;
33
+ /**
34
+ * Represents the duration, in minutes, of a journal message.
35
+ * https://msdn.microsoft.com/en-us/library/office/cc765536.aspx
36
+ * @readonly
37
+ * @type {number}
38
+ * @memberof PSTActivity
39
+ */
40
+ get logDuration(): number;
41
+ /**
42
+ * Represents the end date and time for the journal message.
43
+ * https://msdn.microsoft.com/en-us/library/office/cc839572.aspx
44
+ * @readonly
45
+ * @type {Date}
46
+ * @memberof PSTActivity
47
+ */
48
+ get logEnd(): Date | null;
49
+ /**
50
+ * Contains metadata about the journal.
51
+ * https://msdn.microsoft.com/en-us/library/office/cc815433.aspx
52
+ * @readonly
53
+ * @type {number}
54
+ * @memberof PSTActivity
55
+ */
56
+ get logFlags(): number;
57
+ /**
58
+ * Indicates whether the document was printed during journaling.
59
+ * https://msdn.microsoft.com/en-us/library/office/cc839873.aspx
60
+ * @readonly
61
+ * @type {boolean}
62
+ * @memberof PSTActivity
63
+ */
64
+ get isDocumentPrinted(): boolean;
65
+ /**
66
+ * Indicates whether the document was saved during journaling.
67
+ * https://msdn.microsoft.com/en-us/library/office/cc815488.aspx
68
+ * @readonly
69
+ * @type {boolean}
70
+ * @memberof PSTActivity
71
+ */
72
+ get isDocumentSaved(): boolean;
73
+ /**
74
+ * Indicates whether the document was sent to a routing recipient during journaling.
75
+ * https://msdn.microsoft.com/en-us/library/office/cc839558.aspx
76
+ * @readonly
77
+ * @type {boolean}
78
+ * @memberof PSTActivity
79
+ */
80
+ get isDocumentRouted(): boolean;
81
+ /**
82
+ * Indicates whether the document was sent by e-mail or posted to a server folder during journaling.
83
+ * https://msdn.microsoft.com/en-us/library/office/cc815353.aspx
84
+ * @readonly
85
+ * @type {boolean}
86
+ * @memberof PSTActivity
87
+ */
88
+ get isDocumentPosted(): boolean;
89
+ /**
90
+ * Describes the activity that is being recorded.
91
+ * https://msdn.microsoft.com/en-us/library/office/cc815500.aspx
92
+ * @readonly
93
+ * @type {string}
94
+ * @memberof PSTActivity
95
+ */
96
+ get logTypeDesc(): string;
97
+ /**
98
+ * JSON stringify the object properties.
99
+ * @returns {string}
100
+ * @memberof PSTActivity
101
+ */
102
+ toJSON(): any;
103
+ }
@@ -1,144 +1,144 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PSTActivity = void 0;
4
- const PSTMessage_class_1 = require("./PSTMessage.class");
5
- const OutlookProperties_1 = require("./OutlookProperties");
6
- class PSTActivity extends PSTMessage_class_1.PSTMessage {
7
- /**
8
- * Creates an instance of PSTActivity. Represents Journal entries, class IPM.Activity.
9
- * https://msdn.microsoft.com/en-us/library/office/aa204771(v=office.11).aspx
10
- * @param {PSTFile} pstFile
11
- * @param {DescriptorIndexNode} descriptorIndexNode
12
- * @param {PSTTableBC} [table]
13
- * @param {Map<number, PSTDescriptorItem>} [localDescriptorItems]
14
- * @memberof PSTActivity
15
- */
16
- constructor(pstFile, descriptorIndexNode, table, localDescriptorItems) {
17
- super(pstFile, descriptorIndexNode, table, localDescriptorItems);
18
- }
19
- /**
20
- * Contains the display name of the journaling application (for example, "MSWord"), and is typically a free-form attribute of a journal message, usually a string.
21
- * https://msdn.microsoft.com/en-us/library/office/cc839662.aspx
22
- * @readonly
23
- * @type {string}
24
- * @memberof PSTActivity
25
- */
26
- get logType() {
27
- return this.getStringItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidLogType, OutlookProperties_1.OutlookProperties.PSETID_Log));
28
- }
29
- /**
30
- * Represents the start date and time for the journal message.
31
- * https://msdn.microsoft.com/en-us/library/office/cc842339.aspx
32
- * @readonly
33
- * @type {Date}
34
- * @memberof PSTActivity
35
- */
36
- get logStart() {
37
- return this.getDateItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidLogStart, OutlookProperties_1.OutlookProperties.PSETID_Log));
38
- }
39
- /**
40
- * Represents the duration, in minutes, of a journal message.
41
- * https://msdn.microsoft.com/en-us/library/office/cc765536.aspx
42
- * @readonly
43
- * @type {number}
44
- * @memberof PSTActivity
45
- */
46
- get logDuration() {
47
- return this.getIntItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidLogDuration, OutlookProperties_1.OutlookProperties.PSETID_Log));
48
- }
49
- /**
50
- * Represents the end date and time for the journal message.
51
- * https://msdn.microsoft.com/en-us/library/office/cc839572.aspx
52
- * @readonly
53
- * @type {Date}
54
- * @memberof PSTActivity
55
- */
56
- get logEnd() {
57
- return this.getDateItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidLogEnd, OutlookProperties_1.OutlookProperties.PSETID_Log));
58
- }
59
- /**
60
- * Contains metadata about the journal.
61
- * https://msdn.microsoft.com/en-us/library/office/cc815433.aspx
62
- * @readonly
63
- * @type {number}
64
- * @memberof PSTActivity
65
- */
66
- get logFlags() {
67
- return this.getIntItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidLogFlags, OutlookProperties_1.OutlookProperties.PSETID_Log));
68
- }
69
- /**
70
- * Indicates whether the document was printed during journaling.
71
- * https://msdn.microsoft.com/en-us/library/office/cc839873.aspx
72
- * @readonly
73
- * @type {boolean}
74
- * @memberof PSTActivity
75
- */
76
- get isDocumentPrinted() {
77
- return this.getBooleanItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidLogDocumentPrinted, OutlookProperties_1.OutlookProperties.PSETID_Log));
78
- }
79
- /**
80
- * Indicates whether the document was saved during journaling.
81
- * https://msdn.microsoft.com/en-us/library/office/cc815488.aspx
82
- * @readonly
83
- * @type {boolean}
84
- * @memberof PSTActivity
85
- */
86
- get isDocumentSaved() {
87
- return this.getBooleanItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidLogDocumentSaved, OutlookProperties_1.OutlookProperties.PSETID_Log));
88
- }
89
- /**
90
- * Indicates whether the document was sent to a routing recipient during journaling.
91
- * https://msdn.microsoft.com/en-us/library/office/cc839558.aspx
92
- * @readonly
93
- * @type {boolean}
94
- * @memberof PSTActivity
95
- */
96
- get isDocumentRouted() {
97
- return this.getBooleanItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidLogDocumentRouted, OutlookProperties_1.OutlookProperties.PSETID_Log));
98
- }
99
- /**
100
- * Indicates whether the document was sent by e-mail or posted to a server folder during journaling.
101
- * https://msdn.microsoft.com/en-us/library/office/cc815353.aspx
102
- * @readonly
103
- * @type {boolean}
104
- * @memberof PSTActivity
105
- */
106
- get isDocumentPosted() {
107
- return this.getBooleanItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidLogDocumentPosted, OutlookProperties_1.OutlookProperties.PSETID_Log));
108
- }
109
- /**
110
- * Describes the activity that is being recorded.
111
- * https://msdn.microsoft.com/en-us/library/office/cc815500.aspx
112
- * @readonly
113
- * @type {string}
114
- * @memberof PSTActivity
115
- */
116
- get logTypeDesc() {
117
- return this.getStringItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidLogTypeDesc, OutlookProperties_1.OutlookProperties.PSETID_Log));
118
- }
119
- /**
120
- * JSON stringify the object properties.
121
- * @returns {string}
122
- * @memberof PSTActivity
123
- */
124
- toJSON() {
125
- const clone = Object.assign({
126
- messageClass: this.messageClass,
127
- subject: this.subject,
128
- importance: this.importance,
129
- transportMessageHeaders: this.transportMessageHeaders,
130
- logType: this.logType,
131
- logStart: this.logStart,
132
- logDuration: this.logDuration,
133
- logEnd: this.logEnd,
134
- logFlags: this.logFlags,
135
- isDocumentPrinted: this.isDocumentPrinted,
136
- isDocumentSaved: this.isDocumentSaved,
137
- isDocumentRouted: this.isDocumentRouted,
138
- isDocumentPosted: this.isDocumentPosted,
139
- logTypeDesc: this.logTypeDesc,
140
- }, this);
141
- return clone;
142
- }
143
- }
144
- exports.PSTActivity = PSTActivity;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PSTActivity = void 0;
4
+ const PSTMessage_class_1 = require("./PSTMessage.class");
5
+ const OutlookProperties_1 = require("./OutlookProperties");
6
+ class PSTActivity extends PSTMessage_class_1.PSTMessage {
7
+ /**
8
+ * Creates an instance of PSTActivity. Represents Journal entries, class IPM.Activity.
9
+ * https://msdn.microsoft.com/en-us/library/office/aa204771(v=office.11).aspx
10
+ * @param {PSTFile} pstFile
11
+ * @param {DescriptorIndexNode} descriptorIndexNode
12
+ * @param {PSTTableBC} [table]
13
+ * @param {Map<number, PSTDescriptorItem>} [localDescriptorItems]
14
+ * @memberof PSTActivity
15
+ */
16
+ constructor(pstFile, descriptorIndexNode, table, localDescriptorItems) {
17
+ super(pstFile, descriptorIndexNode, table, localDescriptorItems);
18
+ }
19
+ /**
20
+ * Contains the display name of the journaling application (for example, "MSWord"), and is typically a free-form attribute of a journal message, usually a string.
21
+ * https://msdn.microsoft.com/en-us/library/office/cc839662.aspx
22
+ * @readonly
23
+ * @type {string}
24
+ * @memberof PSTActivity
25
+ */
26
+ get logType() {
27
+ return this.getStringItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidLogType, OutlookProperties_1.OutlookProperties.PSETID_Log));
28
+ }
29
+ /**
30
+ * Represents the start date and time for the journal message.
31
+ * https://msdn.microsoft.com/en-us/library/office/cc842339.aspx
32
+ * @readonly
33
+ * @type {Date}
34
+ * @memberof PSTActivity
35
+ */
36
+ get logStart() {
37
+ return this.getDateItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidLogStart, OutlookProperties_1.OutlookProperties.PSETID_Log));
38
+ }
39
+ /**
40
+ * Represents the duration, in minutes, of a journal message.
41
+ * https://msdn.microsoft.com/en-us/library/office/cc765536.aspx
42
+ * @readonly
43
+ * @type {number}
44
+ * @memberof PSTActivity
45
+ */
46
+ get logDuration() {
47
+ return this.getIntItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidLogDuration, OutlookProperties_1.OutlookProperties.PSETID_Log));
48
+ }
49
+ /**
50
+ * Represents the end date and time for the journal message.
51
+ * https://msdn.microsoft.com/en-us/library/office/cc839572.aspx
52
+ * @readonly
53
+ * @type {Date}
54
+ * @memberof PSTActivity
55
+ */
56
+ get logEnd() {
57
+ return this.getDateItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidLogEnd, OutlookProperties_1.OutlookProperties.PSETID_Log));
58
+ }
59
+ /**
60
+ * Contains metadata about the journal.
61
+ * https://msdn.microsoft.com/en-us/library/office/cc815433.aspx
62
+ * @readonly
63
+ * @type {number}
64
+ * @memberof PSTActivity
65
+ */
66
+ get logFlags() {
67
+ return this.getIntItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidLogFlags, OutlookProperties_1.OutlookProperties.PSETID_Log));
68
+ }
69
+ /**
70
+ * Indicates whether the document was printed during journaling.
71
+ * https://msdn.microsoft.com/en-us/library/office/cc839873.aspx
72
+ * @readonly
73
+ * @type {boolean}
74
+ * @memberof PSTActivity
75
+ */
76
+ get isDocumentPrinted() {
77
+ return this.getBooleanItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidLogDocumentPrinted, OutlookProperties_1.OutlookProperties.PSETID_Log));
78
+ }
79
+ /**
80
+ * Indicates whether the document was saved during journaling.
81
+ * https://msdn.microsoft.com/en-us/library/office/cc815488.aspx
82
+ * @readonly
83
+ * @type {boolean}
84
+ * @memberof PSTActivity
85
+ */
86
+ get isDocumentSaved() {
87
+ return this.getBooleanItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidLogDocumentSaved, OutlookProperties_1.OutlookProperties.PSETID_Log));
88
+ }
89
+ /**
90
+ * Indicates whether the document was sent to a routing recipient during journaling.
91
+ * https://msdn.microsoft.com/en-us/library/office/cc839558.aspx
92
+ * @readonly
93
+ * @type {boolean}
94
+ * @memberof PSTActivity
95
+ */
96
+ get isDocumentRouted() {
97
+ return this.getBooleanItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidLogDocumentRouted, OutlookProperties_1.OutlookProperties.PSETID_Log));
98
+ }
99
+ /**
100
+ * Indicates whether the document was sent by e-mail or posted to a server folder during journaling.
101
+ * https://msdn.microsoft.com/en-us/library/office/cc815353.aspx
102
+ * @readonly
103
+ * @type {boolean}
104
+ * @memberof PSTActivity
105
+ */
106
+ get isDocumentPosted() {
107
+ return this.getBooleanItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidLogDocumentPosted, OutlookProperties_1.OutlookProperties.PSETID_Log));
108
+ }
109
+ /**
110
+ * Describes the activity that is being recorded.
111
+ * https://msdn.microsoft.com/en-us/library/office/cc815500.aspx
112
+ * @readonly
113
+ * @type {string}
114
+ * @memberof PSTActivity
115
+ */
116
+ get logTypeDesc() {
117
+ return this.getStringItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidLogTypeDesc, OutlookProperties_1.OutlookProperties.PSETID_Log));
118
+ }
119
+ /**
120
+ * JSON stringify the object properties.
121
+ * @returns {string}
122
+ * @memberof PSTActivity
123
+ */
124
+ toJSON() {
125
+ const clone = Object.assign({
126
+ messageClass: this.messageClass,
127
+ subject: this.subject,
128
+ importance: this.importance,
129
+ transportMessageHeaders: this.transportMessageHeaders,
130
+ logType: this.logType,
131
+ logStart: this.logStart,
132
+ logDuration: this.logDuration,
133
+ logEnd: this.logEnd,
134
+ logFlags: this.logFlags,
135
+ isDocumentPrinted: this.isDocumentPrinted,
136
+ isDocumentSaved: this.isDocumentSaved,
137
+ isDocumentRouted: this.isDocumentRouted,
138
+ isDocumentPosted: this.isDocumentPosted,
139
+ logTypeDesc: this.logTypeDesc,
140
+ }, this);
141
+ return clone;
142
+ }
143
+ }
144
+ exports.PSTActivity = PSTActivity;