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/PSTUtil.class.d.ts
CHANGED
|
@@ -1,135 +1,134 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
*
|
|
10
|
-
* @
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
static
|
|
15
|
-
static
|
|
16
|
-
static
|
|
17
|
-
static
|
|
18
|
-
static
|
|
19
|
-
static
|
|
20
|
-
static
|
|
21
|
-
static
|
|
22
|
-
static
|
|
23
|
-
static
|
|
24
|
-
static
|
|
25
|
-
static
|
|
26
|
-
static
|
|
27
|
-
static
|
|
28
|
-
static
|
|
29
|
-
static
|
|
30
|
-
static
|
|
31
|
-
static
|
|
32
|
-
static
|
|
33
|
-
static
|
|
34
|
-
static
|
|
35
|
-
static
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
*
|
|
39
|
-
* @
|
|
40
|
-
* @param {
|
|
41
|
-
* @param {number} [
|
|
42
|
-
* @
|
|
43
|
-
* @
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
*
|
|
49
|
-
* @
|
|
50
|
-
* @param {
|
|
51
|
-
* @param {number} [
|
|
52
|
-
* @
|
|
53
|
-
* @
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
*
|
|
59
|
-
* @
|
|
60
|
-
* @
|
|
61
|
-
* @
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
*
|
|
67
|
-
* @
|
|
68
|
-
* @param {
|
|
69
|
-
* @param {
|
|
70
|
-
* @
|
|
71
|
-
* @
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
*
|
|
77
|
-
* @
|
|
78
|
-
* @param {
|
|
79
|
-
* @param {
|
|
80
|
-
* @param {
|
|
81
|
-
* @param {number}
|
|
82
|
-
* @
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
*
|
|
88
|
-
*
|
|
89
|
-
* @
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
*
|
|
95
|
-
* @
|
|
96
|
-
* @
|
|
97
|
-
* @
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
*
|
|
103
|
-
* @
|
|
104
|
-
* @param {
|
|
105
|
-
* @
|
|
106
|
-
* @
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
static detectAndLoadPSTObject(theFile: PSTFile,
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
*
|
|
113
|
-
*
|
|
114
|
-
* @
|
|
115
|
-
* @param {
|
|
116
|
-
* @param {
|
|
117
|
-
* @param {
|
|
118
|
-
* @
|
|
119
|
-
* @
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
*
|
|
125
|
-
*
|
|
126
|
-
*
|
|
127
|
-
*
|
|
128
|
-
* @
|
|
129
|
-
* @param {long}
|
|
130
|
-
* @
|
|
131
|
-
* @
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
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
|
+
}
|