pst-extractor 1.9.0 → 1.11.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.
- package/dist/ColumnDescriptor.class.d.ts +26 -26
- package/dist/ColumnDescriptor.class.js +51 -51
- package/dist/DescriptorIndexNode.class.d.ts +25 -26
- package/dist/DescriptorIndexNode.class.js +53 -53
- package/dist/LZFu.class.d.ts +11 -12
- package/dist/LZFu.class.js +95 -95
- package/dist/NodeInfo.class.d.ts +33 -33
- package/dist/NodeInfo.class.js +52 -52
- package/dist/NodeMap.class.d.ts +35 -35
- package/dist/NodeMap.class.js +86 -86
- package/dist/OffsetIndexItem.class.d.ts +23 -24
- package/dist/OffsetIndexItem.class.js +45 -45
- package/dist/OutlookProperties.d.ts +275 -275
- package/dist/OutlookProperties.js +281 -281
- package/dist/PSTActivity.class.d.ts +103 -103
- package/dist/PSTActivity.class.js +144 -144
- package/dist/PSTAppointment.class.d.ts +270 -271
- package/dist/PSTAppointment.class.js +376 -376
- package/dist/PSTAttachment.class.d.ts +172 -172
- package/dist/PSTAttachment.class.js +317 -317
- package/dist/PSTContact.class.d.ts +884 -884
- package/dist/PSTContact.class.js +1227 -1227
- package/dist/PSTDescriptorItem.class.d.ts +45 -46
- package/dist/PSTDescriptorItem.class.js +99 -99
- package/dist/PSTFile.class.d.ts +215 -216
- package/dist/PSTFile.class.js +830 -818
- package/dist/PSTFolder.class.d.ts +129 -129
- package/dist/PSTFolder.class.js +318 -310
- package/dist/PSTMessage.class.d.ts +788 -789
- package/dist/PSTMessage.class.js +1321 -1321
- package/dist/PSTMessageStore.class.d.ts +13 -13
- package/dist/PSTMessageStore.class.js +17 -17
- package/dist/PSTNodeInputStream.class.d.ts +122 -123
- package/dist/PSTNodeInputStream.class.js +524 -514
- package/dist/PSTObject.class.d.ts +133 -134
- package/dist/PSTObject.class.js +326 -326
- package/dist/PSTRecipient.class.d.ts +65 -65
- package/dist/PSTRecipient.class.js +103 -103
- package/dist/PSTTable.class.d.ts +52 -52
- package/dist/PSTTable.class.js +175 -175
- package/dist/PSTTable7C.class.d.ts +45 -45
- package/dist/PSTTable7C.class.js +282 -281
- package/dist/PSTTableBC.class.d.ts +31 -31
- package/dist/PSTTableBC.class.js +111 -111
- package/dist/PSTTableItem.class.d.ts +47 -48
- package/dist/PSTTableItem.class.js +124 -124
- package/dist/PSTTask.class.d.ts +146 -146
- package/dist/PSTTask.class.js +205 -205
- package/dist/PSTUtil.class.d.ts +134 -135
- package/dist/PSTUtil.class.js +795 -795
- package/dist/RecurrencePattern.class.d.ts +49 -50
- package/dist/RecurrencePattern.class.js +120 -120
- package/dist/index.d.ts +6 -6
- package/dist/index.js +15 -15
- package/example/package.json +6 -6
- package/example/yarn.lock +120 -67
- package/junit.xml +68 -68
- package/package.json +26 -26
- package/readme.md +3 -3
|
@@ -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;
|