@hiraokahypertools/pst-extractor 0.2.0-alpha.2 → 0.4.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/dist/IPSTActivity.d.ts +66 -0
  2. package/dist/IPSTActivity.js +1 -0
  3. package/dist/IPSTAppointment.d.ts +198 -0
  4. package/dist/IPSTAppointment.js +1 -0
  5. package/dist/IPSTAttachment.d.ts +120 -0
  6. package/dist/IPSTAttachment.js +1 -0
  7. package/dist/IPSTContact.d.ts +669 -0
  8. package/dist/IPSTContact.js +1 -0
  9. package/dist/IPSTFile.d.ts +54 -0
  10. package/dist/IPSTFile.js +1 -0
  11. package/dist/IPSTFolder.d.ts +70 -0
  12. package/dist/IPSTFolder.js +1 -0
  13. package/dist/IPSTMessage.d.ts +570 -0
  14. package/dist/IPSTMessage.js +1 -0
  15. package/dist/IPSTMessageStore.d.ts +7 -0
  16. package/dist/IPSTMessageStore.js +1 -0
  17. package/dist/IPSTObject.d.ts +30 -0
  18. package/dist/IPSTObject.js +1 -0
  19. package/dist/IPSTRecipient.d.ts +48 -0
  20. package/dist/IPSTRecipient.js +1 -0
  21. package/dist/IPSTTask.d.ts +98 -0
  22. package/dist/IPSTTask.js +1 -0
  23. package/dist/IRecurrencePattern.d.ts +14 -0
  24. package/dist/IRecurrencePattern.js +1 -0
  25. package/dist/LZFu.class.d.ts +0 -1
  26. package/dist/LZFu.class.js +0 -1
  27. package/dist/NodeMap.class.d.ts +2 -5
  28. package/dist/NodeMap.class.js +2 -5
  29. package/dist/PAUtil.d.ts +7 -0
  30. package/dist/PAUtil.js +4 -0
  31. package/dist/PSTActivity.class.d.ts +2 -13
  32. package/dist/PSTActivity.class.js +0 -12
  33. package/dist/PSTAppointment.class.d.ts +2 -34
  34. package/dist/PSTAppointment.class.js +0 -34
  35. package/dist/PSTAttachment.class.d.ts +2 -20
  36. package/dist/PSTAttachment.class.js +0 -20
  37. package/dist/PSTContact.class.d.ts +2 -111
  38. package/dist/PSTContact.class.js +0 -111
  39. package/dist/PSTFile.class.d.ts +5 -18
  40. package/dist/PSTFile.class.js +0 -14
  41. package/dist/PSTFolder.class.d.ts +2 -15
  42. package/dist/PSTFolder.class.js +0 -14
  43. package/dist/PSTMessage.class.d.ts +2 -95
  44. package/dist/PSTMessage.class.js +0 -94
  45. package/dist/PSTMessageStore.class.d.ts +2 -2
  46. package/dist/PSTMessageStore.class.js +0 -1
  47. package/dist/PSTObject.class.d.ts +2 -12
  48. package/dist/PSTObject.class.js +0 -11
  49. package/dist/PSTRecipient.class.d.ts +2 -9
  50. package/dist/PSTRecipient.class.js +0 -9
  51. package/dist/PSTTask.class.d.ts +2 -19
  52. package/dist/PSTTask.class.js +0 -18
  53. package/dist/PSTUtil.class.d.ts +0 -9
  54. package/dist/PSTUtil.class.js +0 -9
  55. package/dist/PropertyTypeObject.d.ts +1 -1
  56. package/dist/PropertyTypeObject.js +1 -1
  57. package/dist/PropertyValueResolverV1.d.ts +3 -0
  58. package/dist/PropertyValueResolverV1.js +3 -0
  59. package/dist/RecurrencePattern.class.d.ts +2 -1
  60. package/dist/RootProvider.d.ts +3 -0
  61. package/dist/index.d.ts +18 -0
  62. package/dist/openPstFile.d.ts +3 -3
  63. package/package.json +7 -64
@@ -0,0 +1,98 @@
1
+ import type { IRecurrencePattern } from "./IRecurrencePattern.js";
2
+ export interface IPSTTask {
3
+ /**
4
+ * Specifies the status of the user's progress on the task.
5
+ * https://msdn.microsoft.com/en-us/library/office/cc842120.aspx
6
+ * @readonly
7
+ */
8
+ get taskStatus(): number;
9
+ /**
10
+ * Indicates the progress the user has made on a task.
11
+ * https://msdn.microsoft.com/en-us/library/office/cc839932.aspx
12
+ * @readonly
13
+ */
14
+ get percentComplete(): number;
15
+ /**
16
+ * Specifies the date when the user completes the task.
17
+ * https://msdn.microsoft.com/en-us/library/office/cc815753.aspx
18
+ * @readonly
19
+ */
20
+ get taskDateCompleted(): Date | null;
21
+ /**
22
+ * Indicates the number of minutes that the user performed a task.
23
+ * https://msdn.microsoft.com/en-us/library/office/cc842253.aspx
24
+ * @readonly
25
+ */
26
+ get taskActualEffort(): number;
27
+ /**
28
+ * Indicates the amount of time, in minutes, that the user expects to perform a task.
29
+ * https://msdn.microsoft.com/en-us/library/office/cc842485.aspx
30
+ * @readonly
31
+ */
32
+ get taskEstimatedEffort(): number;
33
+ /**
34
+ * Indicates which copy is the latest update of a task.
35
+ * https://msdn.microsoft.com/en-us/library/office/cc815510.aspx
36
+ * @readonly
37
+ */
38
+ get taskVersion(): number;
39
+ /**
40
+ * Indicates the task is complete.
41
+ * https://msdn.microsoft.com/en-us/library/office/cc839514.aspx
42
+ * @readonly
43
+ */
44
+ get isTaskComplete(): boolean;
45
+ /**
46
+ * Contains the name of the task owner.
47
+ * https://msdn.microsoft.com/en-us/library/office/cc842363.aspx
48
+ * @readonly
49
+ */
50
+ get taskOwner(): string;
51
+ /**
52
+ * Names the user who was last assigned the task.
53
+ * https://msdn.microsoft.com/en-us/library/office/cc815865.aspx
54
+ * @readonly
55
+ */
56
+ get taskAssigner(): string;
57
+ /**
58
+ * Names the most recent user who was the task owner.
59
+ * https://msdn.microsoft.com/en-us/library/office/cc842278.aspx
60
+ * @readonly
61
+ */
62
+ get taskLastUser(): string;
63
+ /**
64
+ * Provides an aid to custom sorting tasks.
65
+ * https://msdn.microsoft.com/en-us/library/office/cc765654.aspx
66
+ * @readonly
67
+ */
68
+ get taskOrdinal(): number;
69
+ /**
70
+ * Indicates whether the task includes a recurrence pattern.
71
+ * https://msdn.microsoft.com/en-us/library/office/cc765875.aspx
72
+ */
73
+ get isTaskRecurring(): boolean;
74
+ /**
75
+ * https://docs.microsoft.com/en-us/office/client-developer/outlook/mapi/pidlidtaskrecurrence-canonical-property
76
+ */
77
+ get taskRecurrencePattern(): IRecurrencePattern | null;
78
+ /**
79
+ * https://docs.microsoft.com/en-us/office/client-developer/outlook/mapi/pidlidtaskdeadoccurrence-canonical-property
80
+ */
81
+ get taskDeadOccurrence(): boolean;
82
+ /**
83
+ * Indicates the role of the current user relative to the task.
84
+ * https://msdn.microsoft.com/en-us/library/office/cc842113.aspx
85
+ * @readonly
86
+ */
87
+ get taskOwnership(): number;
88
+ /**
89
+ * Indicates the acceptance state of the task.
90
+ * https://msdn.microsoft.com/en-us/library/office/cc839689.aspx
91
+ * @readonly
92
+ */
93
+ get acceptanceState(): number;
94
+ /**
95
+ * JSON stringify the object properties.
96
+ */
97
+ toJSON(): any;
98
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,14 @@
1
+ import type { EndType, MonthNthSpecific, PatternType, RecurFrequency, WeekSpecific } from "./RecurrencePattern.class.js";
2
+ export interface IRecurrencePattern {
3
+ recurFrequency: RecurFrequency;
4
+ patternType: PatternType;
5
+ firstDateTime: Date;
6
+ period: number;
7
+ patternTypeSpecific: null | number | WeekSpecific | MonthNthSpecific;
8
+ endType: EndType;
9
+ occurrenceCount: number;
10
+ firstDOW: number;
11
+ startDate: Date;
12
+ endDate: Date;
13
+ toJSON(): any;
14
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -5,7 +5,6 @@ export declare class LZFu {
5
5
  * @static
6
6
  * @param {Buffer} data
7
7
  * @returns {string}
8
- * @memberof LZFu
9
8
  */
10
9
  static decode(data: Buffer): string;
11
10
  }
@@ -6,7 +6,6 @@ export class LZFu {
6
6
  * @static
7
7
  * @param {Buffer} data
8
8
  * @returns {string}
9
- * @memberof LZFu
10
9
  */
11
10
  static decode(data) {
12
11
  // const compressedSize: number = PSTUtil.convertLittleEndianBytesToLong(
@@ -1,8 +1,8 @@
1
1
  import Long from 'long';
2
2
  /**
3
3
  * Stores node names (both alpha and numeric) in node maps for quick lookup.
4
- * @export
5
- * @class NodeMap
4
+ *
5
+ * @internal
6
6
  */
7
7
  export declare class NodeMap {
8
8
  private nameToId;
@@ -13,7 +13,6 @@ export declare class NodeMap {
13
13
  * @param {*} key
14
14
  * @param {number} propId
15
15
  * @param {number} [idx]
16
- * @memberof NodeMap
17
16
  */
18
17
  setId(key: any, propId: number, idx?: number): void;
19
18
  /**
@@ -21,14 +20,12 @@ export declare class NodeMap {
21
20
  * @param {*} key
22
21
  * @param {number} [idx]
23
22
  * @returns {number}
24
- * @memberof NodeMap
25
23
  */
26
24
  getId(key: any, idx?: number): number;
27
25
  /**
28
26
  * Get a node from the map.
29
27
  * @param {number} propId
30
28
  * @returns {long}
31
- * @memberof NodeMap
32
29
  */
33
30
  getNumericName(propId: number): Long | undefined;
34
31
  private transformKey;
@@ -2,8 +2,8 @@
2
2
  import Long from 'long';
3
3
  /**
4
4
  * Stores node names (both alpha and numeric) in node maps for quick lookup.
5
- * @export
6
- * @class NodeMap
5
+ *
6
+ * @internal
7
7
  */
8
8
  export class NodeMap {
9
9
  constructor() {
@@ -16,7 +16,6 @@ export class NodeMap {
16
16
  * @param {*} key
17
17
  * @param {number} propId
18
18
  * @param {number} [idx]
19
- * @memberof NodeMap
20
19
  */
21
20
  setId(key, propId, idx) {
22
21
  if (typeof key === 'number' && idx !== undefined) {
@@ -39,7 +38,6 @@ export class NodeMap {
39
38
  * @param {*} key
40
39
  * @param {number} [idx]
41
40
  * @returns {number}
42
- * @memberof NodeMap
43
41
  */
44
42
  getId(key, idx) {
45
43
  let id = undefined;
@@ -61,7 +59,6 @@ export class NodeMap {
61
59
  * Get a node from the map.
62
60
  * @param {number} propId
63
61
  * @returns {long}
64
- * @memberof NodeMap
65
62
  */
66
63
  getNumericName(propId) {
67
64
  const lkey = this.idToNumericName.get(propId);
package/dist/PAUtil.d.ts CHANGED
@@ -5,6 +5,9 @@ import { NodeMap } from "./NodeMap.class.js";
5
5
  import type { PLNode } from "./PLNode.js";
6
6
  import type { Property } from "./Property.js";
7
7
  import type { PropertyValueResolver } from "./PropertyValueResolver.js";
8
+ /**
9
+ * @internal
10
+ */
8
11
  export interface PropertyFinder {
9
12
  findByKey(key: number): Property | undefined;
10
13
  all(): Property[];
@@ -12,7 +15,11 @@ export interface PropertyFinder {
12
15
  /**
13
16
  * Process name to ID map.
14
17
  *
18
+ * @internal
15
19
  * @param nameToIdMapDescriptorNode nodeId 97
16
20
  */
17
21
  export declare function processNameToIDMap(nameToIdMapDescriptorNode: PLNode, resolver: PropertyValueResolver): Promise<NodeMap>;
22
+ /**
23
+ * @internal
24
+ */
18
25
  export declare function createPropertyFinder(props: Property[]): PropertyFinder;
package/dist/PAUtil.js CHANGED
@@ -26,6 +26,7 @@ const guidMap = new Map([
26
26
  /**
27
27
  * Process name to ID map.
28
28
  *
29
+ * @internal
29
30
  * @param nameToIdMapDescriptorNode nodeId 97
30
31
  */
31
32
  export async function processNameToIDMap(nameToIdMapDescriptorNode, resolver) {
@@ -118,6 +119,9 @@ export async function processNameToIDMap(nameToIdMapDescriptorNode, resolver) {
118
119
  }
119
120
  return nodeMap;
120
121
  }
122
+ /**
123
+ * @internal
124
+ */
121
125
  export function createPropertyFinder(props) {
122
126
  return {
123
127
  findByKey(key) {
@@ -3,7 +3,8 @@ import type { PLNode } from './PLNode.js';
3
3
  import type { PropertyFinder } from './PAUtil.js';
4
4
  import type { PLSubNode } from './PLSubNode.js';
5
5
  import type { RootProvider } from './RootProvider.js';
6
- export declare class PSTActivity extends PSTMessage {
6
+ import type { IPSTActivity } from './IPSTActivity.js';
7
+ export declare class PSTActivity extends PSTMessage implements IPSTActivity {
7
8
  /**
8
9
  * Creates an instance of PSTActivity. Represents Journal entries, class IPM.Activity.
9
10
  * https://msdn.microsoft.com/en-us/library/office/aa204771(v=office.11).aspx
@@ -11,7 +12,6 @@ export declare class PSTActivity extends PSTMessage {
11
12
  * @param {PSTFile} rootProvider
12
13
  * @param {DescriptorIndexNode} descriptorIndexNode
13
14
  * @param {Map<number, PSTDescriptorItem>} [localDescriptorItems]
14
- * @memberof PSTActivity
15
15
  */
16
16
  constructor(rootProvider: RootProvider, node: PLNode, subNode: PLSubNode, propertyFinder: PropertyFinder);
17
17
  /**
@@ -19,7 +19,6 @@ export declare class PSTActivity extends PSTMessage {
19
19
  * https://msdn.microsoft.com/en-us/library/office/cc839662.aspx
20
20
  * @readonly
21
21
  * @type {string}
22
- * @memberof PSTActivity
23
22
  */
24
23
  get logType(): string;
25
24
  /**
@@ -27,7 +26,6 @@ export declare class PSTActivity extends PSTMessage {
27
26
  * https://msdn.microsoft.com/en-us/library/office/cc842339.aspx
28
27
  * @readonly
29
28
  * @type {Date}
30
- * @memberof PSTActivity
31
29
  */
32
30
  get logStart(): Date | null;
33
31
  /**
@@ -35,7 +33,6 @@ export declare class PSTActivity extends PSTMessage {
35
33
  * https://msdn.microsoft.com/en-us/library/office/cc765536.aspx
36
34
  * @readonly
37
35
  * @type {number}
38
- * @memberof PSTActivity
39
36
  */
40
37
  get logDuration(): number;
41
38
  /**
@@ -43,7 +40,6 @@ export declare class PSTActivity extends PSTMessage {
43
40
  * https://msdn.microsoft.com/en-us/library/office/cc839572.aspx
44
41
  * @readonly
45
42
  * @type {Date}
46
- * @memberof PSTActivity
47
43
  */
48
44
  get logEnd(): Date | null;
49
45
  /**
@@ -51,7 +47,6 @@ export declare class PSTActivity extends PSTMessage {
51
47
  * https://msdn.microsoft.com/en-us/library/office/cc815433.aspx
52
48
  * @readonly
53
49
  * @type {number}
54
- * @memberof PSTActivity
55
50
  */
56
51
  get logFlags(): number;
57
52
  /**
@@ -59,7 +54,6 @@ export declare class PSTActivity extends PSTMessage {
59
54
  * https://msdn.microsoft.com/en-us/library/office/cc839873.aspx
60
55
  * @readonly
61
56
  * @type {boolean}
62
- * @memberof PSTActivity
63
57
  */
64
58
  get isDocumentPrinted(): boolean;
65
59
  /**
@@ -67,7 +61,6 @@ export declare class PSTActivity extends PSTMessage {
67
61
  * https://msdn.microsoft.com/en-us/library/office/cc815488.aspx
68
62
  * @readonly
69
63
  * @type {boolean}
70
- * @memberof PSTActivity
71
64
  */
72
65
  get isDocumentSaved(): boolean;
73
66
  /**
@@ -75,7 +68,6 @@ export declare class PSTActivity extends PSTMessage {
75
68
  * https://msdn.microsoft.com/en-us/library/office/cc839558.aspx
76
69
  * @readonly
77
70
  * @type {boolean}
78
- * @memberof PSTActivity
79
71
  */
80
72
  get isDocumentRouted(): boolean;
81
73
  /**
@@ -83,7 +75,6 @@ export declare class PSTActivity extends PSTMessage {
83
75
  * https://msdn.microsoft.com/en-us/library/office/cc815353.aspx
84
76
  * @readonly
85
77
  * @type {boolean}
86
- * @memberof PSTActivity
87
78
  */
88
79
  get isDocumentPosted(): boolean;
89
80
  /**
@@ -91,13 +82,11 @@ export declare class PSTActivity extends PSTMessage {
91
82
  * https://msdn.microsoft.com/en-us/library/office/cc815500.aspx
92
83
  * @readonly
93
84
  * @type {string}
94
- * @memberof PSTActivity
95
85
  */
96
86
  get logTypeDesc(): string;
97
87
  /**
98
88
  * JSON stringify the object properties.
99
89
  * @returns {string}
100
- * @memberof PSTActivity
101
90
  */
102
91
  toJSON(): any;
103
92
  }
@@ -10,7 +10,6 @@ export class PSTActivity extends PSTMessage {
10
10
  * @param {PSTFile} rootProvider
11
11
  * @param {DescriptorIndexNode} descriptorIndexNode
12
12
  * @param {Map<number, PSTDescriptorItem>} [localDescriptorItems]
13
- * @memberof PSTActivity
14
13
  */
15
14
  constructor(rootProvider, node, subNode, propertyFinder) {
16
15
  super(rootProvider, node, subNode, propertyFinder);
@@ -20,7 +19,6 @@ export class PSTActivity extends PSTMessage {
20
19
  * https://msdn.microsoft.com/en-us/library/office/cc839662.aspx
21
20
  * @readonly
22
21
  * @type {string}
23
- * @memberof PSTActivity
24
22
  */
25
23
  get logType() {
26
24
  return this.getStringItem(this._rootProvider.getNameToIdMapItem(OutlookProperties.PidLidLogType, OutlookProperties.PSETID_Log));
@@ -30,7 +28,6 @@ export class PSTActivity extends PSTMessage {
30
28
  * https://msdn.microsoft.com/en-us/library/office/cc842339.aspx
31
29
  * @readonly
32
30
  * @type {Date}
33
- * @memberof PSTActivity
34
31
  */
35
32
  get logStart() {
36
33
  return this.getDateItem(this._rootProvider.getNameToIdMapItem(OutlookProperties.PidLidLogStart, OutlookProperties.PSETID_Log));
@@ -40,7 +37,6 @@ export class PSTActivity extends PSTMessage {
40
37
  * https://msdn.microsoft.com/en-us/library/office/cc765536.aspx
41
38
  * @readonly
42
39
  * @type {number}
43
- * @memberof PSTActivity
44
40
  */
45
41
  get logDuration() {
46
42
  return this.getIntItem(this._rootProvider.getNameToIdMapItem(OutlookProperties.PidLidLogDuration, OutlookProperties.PSETID_Log));
@@ -50,7 +46,6 @@ export class PSTActivity extends PSTMessage {
50
46
  * https://msdn.microsoft.com/en-us/library/office/cc839572.aspx
51
47
  * @readonly
52
48
  * @type {Date}
53
- * @memberof PSTActivity
54
49
  */
55
50
  get logEnd() {
56
51
  return this.getDateItem(this._rootProvider.getNameToIdMapItem(OutlookProperties.PidLidLogEnd, OutlookProperties.PSETID_Log));
@@ -60,7 +55,6 @@ export class PSTActivity extends PSTMessage {
60
55
  * https://msdn.microsoft.com/en-us/library/office/cc815433.aspx
61
56
  * @readonly
62
57
  * @type {number}
63
- * @memberof PSTActivity
64
58
  */
65
59
  get logFlags() {
66
60
  return this.getIntItem(this._rootProvider.getNameToIdMapItem(OutlookProperties.PidLidLogFlags, OutlookProperties.PSETID_Log));
@@ -70,7 +64,6 @@ export class PSTActivity extends PSTMessage {
70
64
  * https://msdn.microsoft.com/en-us/library/office/cc839873.aspx
71
65
  * @readonly
72
66
  * @type {boolean}
73
- * @memberof PSTActivity
74
67
  */
75
68
  get isDocumentPrinted() {
76
69
  return this.getBooleanItem(this._rootProvider.getNameToIdMapItem(OutlookProperties.PidLidLogDocumentPrinted, OutlookProperties.PSETID_Log));
@@ -80,7 +73,6 @@ export class PSTActivity extends PSTMessage {
80
73
  * https://msdn.microsoft.com/en-us/library/office/cc815488.aspx
81
74
  * @readonly
82
75
  * @type {boolean}
83
- * @memberof PSTActivity
84
76
  */
85
77
  get isDocumentSaved() {
86
78
  return this.getBooleanItem(this._rootProvider.getNameToIdMapItem(OutlookProperties.PidLidLogDocumentSaved, OutlookProperties.PSETID_Log));
@@ -90,7 +82,6 @@ export class PSTActivity extends PSTMessage {
90
82
  * https://msdn.microsoft.com/en-us/library/office/cc839558.aspx
91
83
  * @readonly
92
84
  * @type {boolean}
93
- * @memberof PSTActivity
94
85
  */
95
86
  get isDocumentRouted() {
96
87
  return this.getBooleanItem(this._rootProvider.getNameToIdMapItem(OutlookProperties.PidLidLogDocumentRouted, OutlookProperties.PSETID_Log));
@@ -100,7 +91,6 @@ export class PSTActivity extends PSTMessage {
100
91
  * https://msdn.microsoft.com/en-us/library/office/cc815353.aspx
101
92
  * @readonly
102
93
  * @type {boolean}
103
- * @memberof PSTActivity
104
94
  */
105
95
  get isDocumentPosted() {
106
96
  return this.getBooleanItem(this._rootProvider.getNameToIdMapItem(OutlookProperties.PidLidLogDocumentPosted, OutlookProperties.PSETID_Log));
@@ -110,7 +100,6 @@ export class PSTActivity extends PSTMessage {
110
100
  * https://msdn.microsoft.com/en-us/library/office/cc815500.aspx
111
101
  * @readonly
112
102
  * @type {string}
113
- * @memberof PSTActivity
114
103
  */
115
104
  get logTypeDesc() {
116
105
  return this.getStringItem(this._rootProvider.getNameToIdMapItem(OutlookProperties.PidLidLogTypeDesc, OutlookProperties.PSETID_Log));
@@ -118,7 +107,6 @@ export class PSTActivity extends PSTMessage {
118
107
  /**
119
108
  * JSON stringify the object properties.
120
109
  * @returns {string}
121
- * @memberof PSTActivity
122
110
  */
123
111
  toJSON() {
124
112
  const clone = Object.assign({