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.
- 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 +818 -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 +514 -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 +281 -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 +95 -44
- package/junit.xml +68 -68
- package/package.json +26 -26
- package/readme.md +1 -3
package/dist/PSTTask.class.js
CHANGED
|
@@ -1,205 +1,205 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PSTTask = void 0;
|
|
4
|
-
const OutlookProperties_1 = require("./OutlookProperties");
|
|
5
|
-
const PSTMessage_class_1 = require("./PSTMessage.class");
|
|
6
|
-
const PSTFile_class_1 = require("./PSTFile.class");
|
|
7
|
-
const RecurrencePattern_class_1 = require("./RecurrencePattern.class");
|
|
8
|
-
class PSTTask extends PSTMessage_class_1.PSTMessage {
|
|
9
|
-
/**
|
|
10
|
-
* Creates an instance of PSTTask.
|
|
11
|
-
* @param {PSTFile} pstFile
|
|
12
|
-
* @param {DescriptorIndexNode} descriptorIndexNode
|
|
13
|
-
* @param {PSTTableBC} [table]
|
|
14
|
-
* @param {Map<number, PSTDescriptorItem>} [localDescriptorItems]
|
|
15
|
-
* @memberof PSTTask
|
|
16
|
-
*/
|
|
17
|
-
constructor(pstFile, descriptorIndexNode, table, localDescriptorItems) {
|
|
18
|
-
super(pstFile, descriptorIndexNode, table, localDescriptorItems);
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Specifies the status of the user's progress on the task.
|
|
22
|
-
* https://msdn.microsoft.com/en-us/library/office/cc842120.aspx
|
|
23
|
-
* @readonly
|
|
24
|
-
* @type {number}
|
|
25
|
-
* @memberof PSTTask
|
|
26
|
-
*/
|
|
27
|
-
get taskStatus() {
|
|
28
|
-
return this.getIntItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidTaskStatus, PSTFile_class_1.PSTFile.PSETID_Task));
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Indicates the progress the user has made on a task.
|
|
32
|
-
* https://msdn.microsoft.com/en-us/library/office/cc839932.aspx
|
|
33
|
-
* @readonly
|
|
34
|
-
* @type {number}
|
|
35
|
-
* @memberof PSTTask
|
|
36
|
-
*/
|
|
37
|
-
get percentComplete() {
|
|
38
|
-
return this.getDoubleItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidPercentComplete, PSTFile_class_1.PSTFile.PSETID_Task));
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Specifies the date when the user completes the task.
|
|
42
|
-
* https://msdn.microsoft.com/en-us/library/office/cc815753.aspx
|
|
43
|
-
* @readonly
|
|
44
|
-
* @type {Date}
|
|
45
|
-
* @memberof PSTTask
|
|
46
|
-
*/
|
|
47
|
-
get taskDateCompleted() {
|
|
48
|
-
return this.getDateItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidTaskDateCompleted, PSTFile_class_1.PSTFile.PSETID_Task));
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* Indicates the number of minutes that the user performed a task.
|
|
52
|
-
* https://msdn.microsoft.com/en-us/library/office/cc842253.aspx
|
|
53
|
-
* @readonly
|
|
54
|
-
* @type {number}
|
|
55
|
-
* @memberof PSTTask
|
|
56
|
-
*/
|
|
57
|
-
get taskActualEffort() {
|
|
58
|
-
return this.getIntItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidTaskActualEffort, PSTFile_class_1.PSTFile.PSETID_Task));
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* Indicates the amount of time, in minutes, that the user expects to perform a task.
|
|
62
|
-
* https://msdn.microsoft.com/en-us/library/office/cc842485.aspx
|
|
63
|
-
* @readonly
|
|
64
|
-
* @type {number}
|
|
65
|
-
* @memberof PSTTask
|
|
66
|
-
*/
|
|
67
|
-
get taskEstimatedEffort() {
|
|
68
|
-
return this.getIntItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidTaskEstimatedEffort, PSTFile_class_1.PSTFile.PSETID_Task));
|
|
69
|
-
}
|
|
70
|
-
/**
|
|
71
|
-
* Indicates which copy is the latest update of a task.
|
|
72
|
-
* https://msdn.microsoft.com/en-us/library/office/cc815510.aspx
|
|
73
|
-
* @readonly
|
|
74
|
-
* @type {number}
|
|
75
|
-
* @memberof PSTTask
|
|
76
|
-
*/
|
|
77
|
-
get taskVersion() {
|
|
78
|
-
return this.getIntItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidTaskVersion, PSTFile_class_1.PSTFile.PSETID_Task));
|
|
79
|
-
}
|
|
80
|
-
/**
|
|
81
|
-
* Indicates the task is complete.
|
|
82
|
-
* https://msdn.microsoft.com/en-us/library/office/cc839514.aspx
|
|
83
|
-
* @readonly
|
|
84
|
-
* @type {boolean}
|
|
85
|
-
* @memberof PSTTask
|
|
86
|
-
*/
|
|
87
|
-
get isTaskComplete() {
|
|
88
|
-
return this.getBooleanItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidTaskComplete, PSTFile_class_1.PSTFile.PSETID_Task));
|
|
89
|
-
}
|
|
90
|
-
/**
|
|
91
|
-
* Contains the name of the task owner.
|
|
92
|
-
* https://msdn.microsoft.com/en-us/library/office/cc842363.aspx
|
|
93
|
-
* @readonly
|
|
94
|
-
* @type {string}
|
|
95
|
-
* @memberof PSTTask
|
|
96
|
-
*/
|
|
97
|
-
get taskOwner() {
|
|
98
|
-
return this.getStringItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidTaskOwner, PSTFile_class_1.PSTFile.PSETID_Task));
|
|
99
|
-
}
|
|
100
|
-
/**
|
|
101
|
-
* Names the user who was last assigned the task.
|
|
102
|
-
* https://msdn.microsoft.com/en-us/library/office/cc815865.aspx
|
|
103
|
-
* @readonly
|
|
104
|
-
* @type {string}
|
|
105
|
-
* @memberof PSTTask
|
|
106
|
-
*/
|
|
107
|
-
get taskAssigner() {
|
|
108
|
-
return this.getStringItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidTaskAssigner, PSTFile_class_1.PSTFile.PSETID_Task));
|
|
109
|
-
}
|
|
110
|
-
/**
|
|
111
|
-
* Names the most recent user who was the task owner.
|
|
112
|
-
* https://msdn.microsoft.com/en-us/library/office/cc842278.aspx
|
|
113
|
-
* @readonly
|
|
114
|
-
* @type {string}
|
|
115
|
-
* @memberof PSTTask
|
|
116
|
-
*/
|
|
117
|
-
get taskLastUser() {
|
|
118
|
-
return this.getStringItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidTaskLastUser, PSTFile_class_1.PSTFile.PSETID_Task));
|
|
119
|
-
}
|
|
120
|
-
/**
|
|
121
|
-
* Provides an aid to custom sorting tasks.
|
|
122
|
-
* https://msdn.microsoft.com/en-us/library/office/cc765654.aspx
|
|
123
|
-
* @readonly
|
|
124
|
-
* @type {number}
|
|
125
|
-
* @memberof PSTTask
|
|
126
|
-
*/
|
|
127
|
-
get taskOrdinal() {
|
|
128
|
-
return this.getIntItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidTaskOrdinal, PSTFile_class_1.PSTFile.PSETID_Task));
|
|
129
|
-
}
|
|
130
|
-
/**
|
|
131
|
-
* Indicates whether the task includes a recurrence pattern.
|
|
132
|
-
* https://msdn.microsoft.com/en-us/library/office/cc765875.aspx
|
|
133
|
-
* @type {boolean}
|
|
134
|
-
* @memberof PSTTask
|
|
135
|
-
*/
|
|
136
|
-
get isTaskRecurring() {
|
|
137
|
-
return this.getBooleanItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidTaskFRecurring, PSTFile_class_1.PSTFile.PSETID_Task));
|
|
138
|
-
}
|
|
139
|
-
/**
|
|
140
|
-
* https://docs.microsoft.com/en-us/office/client-developer/outlook/mapi/pidlidtaskrecurrence-canonical-property
|
|
141
|
-
* @type {RecurrencePattern}
|
|
142
|
-
* @memberof PSTTask
|
|
143
|
-
*/
|
|
144
|
-
get taskRecurrencePattern() {
|
|
145
|
-
const recurrenceBLOB = this.getBinaryItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidTaskRecurrence, PSTFile_class_1.PSTFile.PSETID_Task));
|
|
146
|
-
return recurrenceBLOB && new RecurrencePattern_class_1.RecurrencePattern(recurrenceBLOB);
|
|
147
|
-
}
|
|
148
|
-
/**
|
|
149
|
-
* https://docs.microsoft.com/en-us/office/client-developer/outlook/mapi/pidlidtaskdeadoccurrence-canonical-property
|
|
150
|
-
* @type {boolean}
|
|
151
|
-
* @memberof PSTTask
|
|
152
|
-
*/
|
|
153
|
-
get taskDeadOccurrence() {
|
|
154
|
-
return this.getBooleanItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidTaskDeadOccurrence, PSTFile_class_1.PSTFile.PSETID_Task));
|
|
155
|
-
}
|
|
156
|
-
/**
|
|
157
|
-
* Indicates the role of the current user relative to the task.
|
|
158
|
-
* https://msdn.microsoft.com/en-us/library/office/cc842113.aspx
|
|
159
|
-
* @readonly
|
|
160
|
-
* @type {number}
|
|
161
|
-
* @memberof PSTTask
|
|
162
|
-
*/
|
|
163
|
-
get taskOwnership() {
|
|
164
|
-
return this.getIntItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidTaskOwnership, PSTFile_class_1.PSTFile.PSETID_Task));
|
|
165
|
-
}
|
|
166
|
-
/**
|
|
167
|
-
* Indicates the acceptance state of the task.
|
|
168
|
-
* https://msdn.microsoft.com/en-us/library/office/cc839689.aspx
|
|
169
|
-
* @readonly
|
|
170
|
-
* @type {number}
|
|
171
|
-
* @memberof PSTTask
|
|
172
|
-
*/
|
|
173
|
-
get acceptanceState() {
|
|
174
|
-
return this.getIntItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidTaskAcceptanceState, PSTFile_class_1.PSTFile.PSETID_Task));
|
|
175
|
-
}
|
|
176
|
-
/**
|
|
177
|
-
* JSON stringify the object properties.
|
|
178
|
-
* @returns {string}
|
|
179
|
-
* @memberof PSTTask
|
|
180
|
-
*/
|
|
181
|
-
toJSON() {
|
|
182
|
-
const clone = Object.assign({
|
|
183
|
-
messageClass: this.messageClass,
|
|
184
|
-
subject: this.subject,
|
|
185
|
-
importance: this.importance,
|
|
186
|
-
transportMessageHeaders: this.transportMessageHeaders,
|
|
187
|
-
taskStatus: this.taskStatus,
|
|
188
|
-
percentComplete: this.percentComplete,
|
|
189
|
-
taskDateCompleted: this.taskDateCompleted,
|
|
190
|
-
taskActualEffort: this.taskActualEffort,
|
|
191
|
-
taskEstimatedEffort: this.taskEstimatedEffort,
|
|
192
|
-
taskVersion: this.taskVersion,
|
|
193
|
-
isTaskComplete: this.isTaskComplete,
|
|
194
|
-
taskOwner: this.taskOwner,
|
|
195
|
-
taskAssigner: this.taskAssigner,
|
|
196
|
-
taskLastUser: this.taskLastUser,
|
|
197
|
-
taskOrdinal: this.taskOrdinal,
|
|
198
|
-
isTaskRecurring: this.isTaskRecurring,
|
|
199
|
-
taskOwnership: this.taskOwnership,
|
|
200
|
-
acceptanceState: this.acceptanceState,
|
|
201
|
-
}, this);
|
|
202
|
-
return clone;
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
exports.PSTTask = PSTTask;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PSTTask = void 0;
|
|
4
|
+
const OutlookProperties_1 = require("./OutlookProperties");
|
|
5
|
+
const PSTMessage_class_1 = require("./PSTMessage.class");
|
|
6
|
+
const PSTFile_class_1 = require("./PSTFile.class");
|
|
7
|
+
const RecurrencePattern_class_1 = require("./RecurrencePattern.class");
|
|
8
|
+
class PSTTask extends PSTMessage_class_1.PSTMessage {
|
|
9
|
+
/**
|
|
10
|
+
* Creates an instance of PSTTask.
|
|
11
|
+
* @param {PSTFile} pstFile
|
|
12
|
+
* @param {DescriptorIndexNode} descriptorIndexNode
|
|
13
|
+
* @param {PSTTableBC} [table]
|
|
14
|
+
* @param {Map<number, PSTDescriptorItem>} [localDescriptorItems]
|
|
15
|
+
* @memberof PSTTask
|
|
16
|
+
*/
|
|
17
|
+
constructor(pstFile, descriptorIndexNode, table, localDescriptorItems) {
|
|
18
|
+
super(pstFile, descriptorIndexNode, table, localDescriptorItems);
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Specifies the status of the user's progress on the task.
|
|
22
|
+
* https://msdn.microsoft.com/en-us/library/office/cc842120.aspx
|
|
23
|
+
* @readonly
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof PSTTask
|
|
26
|
+
*/
|
|
27
|
+
get taskStatus() {
|
|
28
|
+
return this.getIntItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidTaskStatus, PSTFile_class_1.PSTFile.PSETID_Task));
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Indicates the progress the user has made on a task.
|
|
32
|
+
* https://msdn.microsoft.com/en-us/library/office/cc839932.aspx
|
|
33
|
+
* @readonly
|
|
34
|
+
* @type {number}
|
|
35
|
+
* @memberof PSTTask
|
|
36
|
+
*/
|
|
37
|
+
get percentComplete() {
|
|
38
|
+
return this.getDoubleItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidPercentComplete, PSTFile_class_1.PSTFile.PSETID_Task));
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Specifies the date when the user completes the task.
|
|
42
|
+
* https://msdn.microsoft.com/en-us/library/office/cc815753.aspx
|
|
43
|
+
* @readonly
|
|
44
|
+
* @type {Date}
|
|
45
|
+
* @memberof PSTTask
|
|
46
|
+
*/
|
|
47
|
+
get taskDateCompleted() {
|
|
48
|
+
return this.getDateItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidTaskDateCompleted, PSTFile_class_1.PSTFile.PSETID_Task));
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Indicates the number of minutes that the user performed a task.
|
|
52
|
+
* https://msdn.microsoft.com/en-us/library/office/cc842253.aspx
|
|
53
|
+
* @readonly
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof PSTTask
|
|
56
|
+
*/
|
|
57
|
+
get taskActualEffort() {
|
|
58
|
+
return this.getIntItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidTaskActualEffort, PSTFile_class_1.PSTFile.PSETID_Task));
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Indicates the amount of time, in minutes, that the user expects to perform a task.
|
|
62
|
+
* https://msdn.microsoft.com/en-us/library/office/cc842485.aspx
|
|
63
|
+
* @readonly
|
|
64
|
+
* @type {number}
|
|
65
|
+
* @memberof PSTTask
|
|
66
|
+
*/
|
|
67
|
+
get taskEstimatedEffort() {
|
|
68
|
+
return this.getIntItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidTaskEstimatedEffort, PSTFile_class_1.PSTFile.PSETID_Task));
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Indicates which copy is the latest update of a task.
|
|
72
|
+
* https://msdn.microsoft.com/en-us/library/office/cc815510.aspx
|
|
73
|
+
* @readonly
|
|
74
|
+
* @type {number}
|
|
75
|
+
* @memberof PSTTask
|
|
76
|
+
*/
|
|
77
|
+
get taskVersion() {
|
|
78
|
+
return this.getIntItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidTaskVersion, PSTFile_class_1.PSTFile.PSETID_Task));
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Indicates the task is complete.
|
|
82
|
+
* https://msdn.microsoft.com/en-us/library/office/cc839514.aspx
|
|
83
|
+
* @readonly
|
|
84
|
+
* @type {boolean}
|
|
85
|
+
* @memberof PSTTask
|
|
86
|
+
*/
|
|
87
|
+
get isTaskComplete() {
|
|
88
|
+
return this.getBooleanItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidTaskComplete, PSTFile_class_1.PSTFile.PSETID_Task));
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Contains the name of the task owner.
|
|
92
|
+
* https://msdn.microsoft.com/en-us/library/office/cc842363.aspx
|
|
93
|
+
* @readonly
|
|
94
|
+
* @type {string}
|
|
95
|
+
* @memberof PSTTask
|
|
96
|
+
*/
|
|
97
|
+
get taskOwner() {
|
|
98
|
+
return this.getStringItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidTaskOwner, PSTFile_class_1.PSTFile.PSETID_Task));
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Names the user who was last assigned the task.
|
|
102
|
+
* https://msdn.microsoft.com/en-us/library/office/cc815865.aspx
|
|
103
|
+
* @readonly
|
|
104
|
+
* @type {string}
|
|
105
|
+
* @memberof PSTTask
|
|
106
|
+
*/
|
|
107
|
+
get taskAssigner() {
|
|
108
|
+
return this.getStringItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidTaskAssigner, PSTFile_class_1.PSTFile.PSETID_Task));
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Names the most recent user who was the task owner.
|
|
112
|
+
* https://msdn.microsoft.com/en-us/library/office/cc842278.aspx
|
|
113
|
+
* @readonly
|
|
114
|
+
* @type {string}
|
|
115
|
+
* @memberof PSTTask
|
|
116
|
+
*/
|
|
117
|
+
get taskLastUser() {
|
|
118
|
+
return this.getStringItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidTaskLastUser, PSTFile_class_1.PSTFile.PSETID_Task));
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* Provides an aid to custom sorting tasks.
|
|
122
|
+
* https://msdn.microsoft.com/en-us/library/office/cc765654.aspx
|
|
123
|
+
* @readonly
|
|
124
|
+
* @type {number}
|
|
125
|
+
* @memberof PSTTask
|
|
126
|
+
*/
|
|
127
|
+
get taskOrdinal() {
|
|
128
|
+
return this.getIntItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidTaskOrdinal, PSTFile_class_1.PSTFile.PSETID_Task));
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Indicates whether the task includes a recurrence pattern.
|
|
132
|
+
* https://msdn.microsoft.com/en-us/library/office/cc765875.aspx
|
|
133
|
+
* @type {boolean}
|
|
134
|
+
* @memberof PSTTask
|
|
135
|
+
*/
|
|
136
|
+
get isTaskRecurring() {
|
|
137
|
+
return this.getBooleanItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidTaskFRecurring, PSTFile_class_1.PSTFile.PSETID_Task));
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* https://docs.microsoft.com/en-us/office/client-developer/outlook/mapi/pidlidtaskrecurrence-canonical-property
|
|
141
|
+
* @type {RecurrencePattern}
|
|
142
|
+
* @memberof PSTTask
|
|
143
|
+
*/
|
|
144
|
+
get taskRecurrencePattern() {
|
|
145
|
+
const recurrenceBLOB = this.getBinaryItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidTaskRecurrence, PSTFile_class_1.PSTFile.PSETID_Task));
|
|
146
|
+
return recurrenceBLOB && new RecurrencePattern_class_1.RecurrencePattern(recurrenceBLOB);
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* https://docs.microsoft.com/en-us/office/client-developer/outlook/mapi/pidlidtaskdeadoccurrence-canonical-property
|
|
150
|
+
* @type {boolean}
|
|
151
|
+
* @memberof PSTTask
|
|
152
|
+
*/
|
|
153
|
+
get taskDeadOccurrence() {
|
|
154
|
+
return this.getBooleanItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidTaskDeadOccurrence, PSTFile_class_1.PSTFile.PSETID_Task));
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* Indicates the role of the current user relative to the task.
|
|
158
|
+
* https://msdn.microsoft.com/en-us/library/office/cc842113.aspx
|
|
159
|
+
* @readonly
|
|
160
|
+
* @type {number}
|
|
161
|
+
* @memberof PSTTask
|
|
162
|
+
*/
|
|
163
|
+
get taskOwnership() {
|
|
164
|
+
return this.getIntItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidTaskOwnership, PSTFile_class_1.PSTFile.PSETID_Task));
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* Indicates the acceptance state of the task.
|
|
168
|
+
* https://msdn.microsoft.com/en-us/library/office/cc839689.aspx
|
|
169
|
+
* @readonly
|
|
170
|
+
* @type {number}
|
|
171
|
+
* @memberof PSTTask
|
|
172
|
+
*/
|
|
173
|
+
get acceptanceState() {
|
|
174
|
+
return this.getIntItem(this.pstFile.getNameToIdMapItem(OutlookProperties_1.OutlookProperties.PidLidTaskAcceptanceState, PSTFile_class_1.PSTFile.PSETID_Task));
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* JSON stringify the object properties.
|
|
178
|
+
* @returns {string}
|
|
179
|
+
* @memberof PSTTask
|
|
180
|
+
*/
|
|
181
|
+
toJSON() {
|
|
182
|
+
const clone = Object.assign({
|
|
183
|
+
messageClass: this.messageClass,
|
|
184
|
+
subject: this.subject,
|
|
185
|
+
importance: this.importance,
|
|
186
|
+
transportMessageHeaders: this.transportMessageHeaders,
|
|
187
|
+
taskStatus: this.taskStatus,
|
|
188
|
+
percentComplete: this.percentComplete,
|
|
189
|
+
taskDateCompleted: this.taskDateCompleted,
|
|
190
|
+
taskActualEffort: this.taskActualEffort,
|
|
191
|
+
taskEstimatedEffort: this.taskEstimatedEffort,
|
|
192
|
+
taskVersion: this.taskVersion,
|
|
193
|
+
isTaskComplete: this.isTaskComplete,
|
|
194
|
+
taskOwner: this.taskOwner,
|
|
195
|
+
taskAssigner: this.taskAssigner,
|
|
196
|
+
taskLastUser: this.taskLastUser,
|
|
197
|
+
taskOrdinal: this.taskOrdinal,
|
|
198
|
+
isTaskRecurring: this.isTaskRecurring,
|
|
199
|
+
taskOwnership: this.taskOwnership,
|
|
200
|
+
acceptanceState: this.acceptanceState,
|
|
201
|
+
}, this);
|
|
202
|
+
return clone;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
exports.PSTTask = PSTTask;
|