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.
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 +830 -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 +524 -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 +282 -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 +120 -67
  57. package/junit.xml +68 -68
  58. package/package.json +26 -26
  59. package/readme.md +3 -3
@@ -1,135 +1,134 @@
1
- /// <reference types="node" />
2
- import Long from 'long';
3
- import { DescriptorIndexNode } from './DescriptorIndexNode.class';
4
- import { PSTDescriptorItem } from './PSTDescriptorItem.class';
5
- import { PSTFile } from './PSTFile.class';
6
- import { PSTMessage } from './PSTMessage.class';
7
- import { PSTTableBC } from './PSTTableBC.class';
8
- /**
9
- * Utility functions for PST components
10
- * @export
11
- * @class PSTUtil
12
- */
13
- export declare class PSTUtil {
14
- static compEnc: number[];
15
- static codePages: Map<number, string>;
16
- static propertyName: Map<number, string>;
17
- static NID_TYPE_HID: number;
18
- static NID_TYPE_INTERNAL: number;
19
- static NID_TYPE_NORMAL_FOLDER: number;
20
- static NID_TYPE_SEARCH_FOLDER: number;
21
- static NID_TYPE_NORMAL_MESSAGE: number;
22
- static NID_TYPE_ATTACHMENT: number;
23
- static NID_TYPE_SEARCH_UPDATE_QUEUE: number;
24
- static NID_TYPE_SEARCH_CRITERIA_OBJECT: number;
25
- static NID_TYPE_ASSOC_MESSAGE: number;
26
- static NID_TYPE_CONTENTS_TABLE_INDEX: number;
27
- static NID_TYPE_RECEIVE_FOLDER_TABLE: number;
28
- static NID_TYPE_OUTGOING_QUEUE_TABLE: number;
29
- static NID_TYPE_HIERARCHY_TABLE: number;
30
- static NID_TYPE_CONTENTS_TABLE: number;
31
- static NID_TYPE_ASSOC_CONTENTS_TABLE: number;
32
- static NID_TYPE_SEARCH_CONTENTS_TABLE: number;
33
- static NID_TYPE_ATTACHMENT_TABLE: number;
34
- static NID_TYPE_RECIPIENT_TABLE: number;
35
- static NID_TYPE_SEARCH_TABLE_INDEX: number;
36
- static NID_TYPE_LTP: number;
37
- /**
38
- * Convert little endian bytes to long
39
- * @static
40
- * @param {Buffer} data
41
- * @param {number} [start]
42
- * @param {number} [end]
43
- * @returns {long}
44
- * @memberof PSTUtil
45
- */
46
- static convertLittleEndianBytesToLong(data: Buffer, start?: number, end?: number): Long;
47
- /**
48
- * Convert big endian bytes to long
49
- * @static
50
- * @param {Buffer} data
51
- * @param {number} [start]
52
- * @param {number} [end]
53
- * @returns {long}
54
- * @memberof PSTUtil
55
- */
56
- static convertBigEndianBytesToLong(data: Buffer, start?: number, end?: number): Long;
57
- /**
58
- * Handle strings using codepages.
59
- * @static
60
- * @param {number} propertyId
61
- * @returns
62
- * @memberof PSTUtil
63
- */
64
- static getInternetCodePageCharset(propertyId: number): string | undefined;
65
- /**
66
- * Create JS string from buffer.
67
- * @static
68
- * @param {Buffer} data
69
- * @param {number} stringType
70
- * @param {string} codepage
71
- * @returns
72
- * @memberof PSTUtil
73
- */
74
- static createJavascriptString(data: Buffer, stringType: number, codepage?: string): string;
75
- /**
76
- * Copy from one array to another
77
- * @static
78
- * @param {Buffer} src
79
- * @param {number} srcPos
80
- * @param {Buffer} dest
81
- * @param {number} destPos
82
- * @param {number} length
83
- * @memberof PSTUtil
84
- */
85
- static arraycopy(src: Buffer, srcPos: number, dest: Buffer, destPos: number, length: number): void;
86
- /**
87
- * Determine if character is alphanumeric
88
- *
89
- * @static
90
- * @memberof PSTUtil
91
- */
92
- static isAlphaNumeric: (ch: string) => boolean;
93
- /**
94
- * Decode a lump of data that has been encrypted with the compressible encryption
95
- * @static
96
- * @param {Buffer} data
97
- * @returns {Buffer}
98
- * @memberof PSTUtil
99
- */
100
- static decode(data: Buffer): Buffer;
101
- /**
102
- * Detect and load a PST Object from a file with the specified descriptor index
103
- * @static
104
- * @param {PSTFile} theFile
105
- * @param {long} descriptorIndex
106
- * @returns {*}
107
- * @memberof PSTUtil
108
- */
109
- static detectAndLoadPSTObject(theFile: PSTFile, descriptorIndex: Long): any;
110
- static detectAndLoadPSTObject(theFile: PSTFile, folderIndexNode: DescriptorIndexNode): any;
111
- /**
112
- * Creates object based on message class
113
- * https://msdn.microsoft.com/en-us/vba/outlook-vba/articles/item-types-and-message-classes
114
- * @static
115
- * @param {PSTFile} theFile
116
- * @param {DescriptorIndexNode} folderIndexNode
117
- * @param {PSTTableBC} table
118
- * @param {Map<number, PSTDescriptorItem>} localDescriptorItems
119
- * @returns {PSTMessage}
120
- * @memberof PSTUtil
121
- */
122
- static createAppropriatePSTMessageObject(theFile: PSTFile, folderIndexNode: DescriptorIndexNode, table: PSTTableBC, localDescriptorItems?: Map<number, PSTDescriptorItem>): PSTMessage;
123
- /**
124
- * Converts a Windows FILETIME into a {@link Date}. The Windows FILETIME structure holds a date and time associated with a
125
- * file. The structure identifies a 64-bit integer specifying the number of 100-nanosecond intervals which have passed since
126
- * January 1, 1601. This 64-bit value is split into the two double words stored in the structure.
127
- *
128
- * @static
129
- * @param {long} hi
130
- * @param {long} low
131
- * @returns {Date}
132
- * @memberof PSTUtil
133
- */
134
- static filetimeToDate(hi: Long, low: Long): Date;
135
- }
1
+ import Long from 'long';
2
+ import { DescriptorIndexNode } from './DescriptorIndexNode.class';
3
+ import { PSTDescriptorItem } from './PSTDescriptorItem.class';
4
+ import { PSTFile } from './PSTFile.class';
5
+ import { PSTMessage } from './PSTMessage.class';
6
+ import { PSTTableBC } from './PSTTableBC.class';
7
+ /**
8
+ * Utility functions for PST components
9
+ * @export
10
+ * @class PSTUtil
11
+ */
12
+ export declare class PSTUtil {
13
+ static compEnc: number[];
14
+ static codePages: Map<number, string>;
15
+ static propertyName: Map<number, string>;
16
+ static NID_TYPE_HID: number;
17
+ static NID_TYPE_INTERNAL: number;
18
+ static NID_TYPE_NORMAL_FOLDER: number;
19
+ static NID_TYPE_SEARCH_FOLDER: number;
20
+ static NID_TYPE_NORMAL_MESSAGE: number;
21
+ static NID_TYPE_ATTACHMENT: number;
22
+ static NID_TYPE_SEARCH_UPDATE_QUEUE: number;
23
+ static NID_TYPE_SEARCH_CRITERIA_OBJECT: number;
24
+ static NID_TYPE_ASSOC_MESSAGE: number;
25
+ static NID_TYPE_CONTENTS_TABLE_INDEX: number;
26
+ static NID_TYPE_RECEIVE_FOLDER_TABLE: number;
27
+ static NID_TYPE_OUTGOING_QUEUE_TABLE: number;
28
+ static NID_TYPE_HIERARCHY_TABLE: number;
29
+ static NID_TYPE_CONTENTS_TABLE: number;
30
+ static NID_TYPE_ASSOC_CONTENTS_TABLE: number;
31
+ static NID_TYPE_SEARCH_CONTENTS_TABLE: number;
32
+ static NID_TYPE_ATTACHMENT_TABLE: number;
33
+ static NID_TYPE_RECIPIENT_TABLE: number;
34
+ static NID_TYPE_SEARCH_TABLE_INDEX: number;
35
+ static NID_TYPE_LTP: number;
36
+ /**
37
+ * Convert little endian bytes to long
38
+ * @static
39
+ * @param {Buffer} data
40
+ * @param {number} [start]
41
+ * @param {number} [end]
42
+ * @returns {long}
43
+ * @memberof PSTUtil
44
+ */
45
+ static convertLittleEndianBytesToLong(data: Buffer, start?: number, end?: number): Long;
46
+ /**
47
+ * Convert big endian bytes to long
48
+ * @static
49
+ * @param {Buffer} data
50
+ * @param {number} [start]
51
+ * @param {number} [end]
52
+ * @returns {long}
53
+ * @memberof PSTUtil
54
+ */
55
+ static convertBigEndianBytesToLong(data: Buffer, start?: number, end?: number): Long;
56
+ /**
57
+ * Handle strings using codepages.
58
+ * @static
59
+ * @param {number} propertyId
60
+ * @returns
61
+ * @memberof PSTUtil
62
+ */
63
+ static getInternetCodePageCharset(propertyId: number): string | undefined;
64
+ /**
65
+ * Create JS string from buffer.
66
+ * @static
67
+ * @param {Buffer} data
68
+ * @param {number} stringType
69
+ * @param {string} codepage
70
+ * @returns
71
+ * @memberof PSTUtil
72
+ */
73
+ static createJavascriptString(data: Buffer, stringType: number, codepage?: string): string;
74
+ /**
75
+ * Copy from one array to another
76
+ * @static
77
+ * @param {Buffer} src
78
+ * @param {number} srcPos
79
+ * @param {Buffer} dest
80
+ * @param {number} destPos
81
+ * @param {number} length
82
+ * @memberof PSTUtil
83
+ */
84
+ static arraycopy(src: Buffer, srcPos: number, dest: Buffer, destPos: number, length: number): void;
85
+ /**
86
+ * Determine if character is alphanumeric
87
+ *
88
+ * @static
89
+ * @memberof PSTUtil
90
+ */
91
+ static isAlphaNumeric: (ch: string) => boolean;
92
+ /**
93
+ * Decode a lump of data that has been encrypted with the compressible encryption
94
+ * @static
95
+ * @param {Buffer} data
96
+ * @returns {Buffer}
97
+ * @memberof PSTUtil
98
+ */
99
+ static decode(data: Buffer): Buffer;
100
+ /**
101
+ * Detect and load a PST Object from a file with the specified descriptor index
102
+ * @static
103
+ * @param {PSTFile} theFile
104
+ * @param {long} descriptorIndex
105
+ * @returns {*}
106
+ * @memberof PSTUtil
107
+ */
108
+ static detectAndLoadPSTObject(theFile: PSTFile, descriptorIndex: Long): any;
109
+ static detectAndLoadPSTObject(theFile: PSTFile, folderIndexNode: DescriptorIndexNode): any;
110
+ /**
111
+ * Creates object based on message class
112
+ * https://msdn.microsoft.com/en-us/vba/outlook-vba/articles/item-types-and-message-classes
113
+ * @static
114
+ * @param {PSTFile} theFile
115
+ * @param {DescriptorIndexNode} folderIndexNode
116
+ * @param {PSTTableBC} table
117
+ * @param {Map<number, PSTDescriptorItem>} localDescriptorItems
118
+ * @returns {PSTMessage}
119
+ * @memberof PSTUtil
120
+ */
121
+ static createAppropriatePSTMessageObject(theFile: PSTFile, folderIndexNode: DescriptorIndexNode, table: PSTTableBC, localDescriptorItems?: Map<number, PSTDescriptorItem>): PSTMessage;
122
+ /**
123
+ * Converts a Windows FILETIME into a {@link Date}. The Windows FILETIME structure holds a date and time associated with a
124
+ * file. The structure identifies a 64-bit integer specifying the number of 100-nanosecond intervals which have passed since
125
+ * January 1, 1601. This 64-bit value is split into the two double words stored in the structure.
126
+ *
127
+ * @static
128
+ * @param {long} hi
129
+ * @param {long} low
130
+ * @returns {Date}
131
+ * @memberof PSTUtil
132
+ */
133
+ static filetimeToDate(hi: Long, low: Long): Date;
134
+ }