@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.
- package/dist/IPSTActivity.d.ts +66 -0
- package/dist/IPSTActivity.js +1 -0
- package/dist/IPSTAppointment.d.ts +198 -0
- package/dist/IPSTAppointment.js +1 -0
- package/dist/IPSTAttachment.d.ts +120 -0
- package/dist/IPSTAttachment.js +1 -0
- package/dist/IPSTContact.d.ts +669 -0
- package/dist/IPSTContact.js +1 -0
- package/dist/IPSTFile.d.ts +54 -0
- package/dist/IPSTFile.js +1 -0
- package/dist/IPSTFolder.d.ts +70 -0
- package/dist/IPSTFolder.js +1 -0
- package/dist/IPSTMessage.d.ts +570 -0
- package/dist/IPSTMessage.js +1 -0
- package/dist/IPSTMessageStore.d.ts +7 -0
- package/dist/IPSTMessageStore.js +1 -0
- package/dist/IPSTObject.d.ts +30 -0
- package/dist/IPSTObject.js +1 -0
- package/dist/IPSTRecipient.d.ts +48 -0
- package/dist/IPSTRecipient.js +1 -0
- package/dist/IPSTTask.d.ts +98 -0
- package/dist/IPSTTask.js +1 -0
- package/dist/IRecurrencePattern.d.ts +14 -0
- package/dist/IRecurrencePattern.js +1 -0
- package/dist/LZFu.class.d.ts +0 -1
- package/dist/LZFu.class.js +0 -1
- package/dist/NodeMap.class.d.ts +2 -5
- package/dist/NodeMap.class.js +2 -5
- package/dist/PAUtil.d.ts +7 -0
- package/dist/PAUtil.js +4 -0
- package/dist/PSTActivity.class.d.ts +2 -13
- package/dist/PSTActivity.class.js +0 -12
- package/dist/PSTAppointment.class.d.ts +2 -34
- package/dist/PSTAppointment.class.js +0 -34
- package/dist/PSTAttachment.class.d.ts +2 -20
- package/dist/PSTAttachment.class.js +0 -20
- package/dist/PSTContact.class.d.ts +2 -111
- package/dist/PSTContact.class.js +0 -111
- package/dist/PSTFile.class.d.ts +5 -18
- package/dist/PSTFile.class.js +0 -14
- package/dist/PSTFolder.class.d.ts +2 -15
- package/dist/PSTFolder.class.js +0 -14
- package/dist/PSTMessage.class.d.ts +2 -95
- package/dist/PSTMessage.class.js +0 -94
- package/dist/PSTMessageStore.class.d.ts +2 -2
- package/dist/PSTMessageStore.class.js +0 -1
- package/dist/PSTObject.class.d.ts +2 -12
- package/dist/PSTObject.class.js +0 -11
- package/dist/PSTRecipient.class.d.ts +2 -9
- package/dist/PSTRecipient.class.js +0 -9
- package/dist/PSTTask.class.d.ts +2 -19
- package/dist/PSTTask.class.js +0 -18
- package/dist/PSTUtil.class.d.ts +0 -9
- package/dist/PSTUtil.class.js +0 -9
- package/dist/PropertyTypeObject.d.ts +1 -1
- package/dist/PropertyTypeObject.js +1 -1
- package/dist/PropertyValueResolverV1.d.ts +3 -0
- package/dist/PropertyValueResolverV1.js +3 -0
- package/dist/RecurrencePattern.class.d.ts +2 -1
- package/dist/RootProvider.d.ts +3 -0
- package/dist/index.d.ts +18 -0
- package/dist/openPstFile.d.ts +3 -3
- package/package.json +7 -64
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import type { IPSTFolder } from "./IPSTFolder.js";
|
|
2
|
+
import type { IPSTMessageStore } from "./IPSTMessageStore.js";
|
|
3
|
+
import type { PUNode } from "./PUNode.js";
|
|
4
|
+
export interface IPSTFile {
|
|
5
|
+
/**
|
|
6
|
+
* Close the file.
|
|
7
|
+
*/
|
|
8
|
+
close(): Promise<void>;
|
|
9
|
+
/**
|
|
10
|
+
* Get name to ID map item.
|
|
11
|
+
*/
|
|
12
|
+
getNameToIdMapItem(key: number, idx: number): number;
|
|
13
|
+
/**
|
|
14
|
+
* Get public string to id map item.
|
|
15
|
+
*/
|
|
16
|
+
getPublicStringToIdMapItem(key: string): number;
|
|
17
|
+
/**
|
|
18
|
+
* Get property name from id.
|
|
19
|
+
*/
|
|
20
|
+
getPropertyName(propertyId: number, bNamed: boolean): string | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* Get name to id map key.
|
|
23
|
+
*/
|
|
24
|
+
getNameToIdMapKey(propId: number): Long | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* Get the message store of the PST file. Note that this doesn't really
|
|
27
|
+
* have much information, better to look under the root folder.
|
|
28
|
+
*/
|
|
29
|
+
getMessageStore(): Promise<IPSTMessageStore>;
|
|
30
|
+
/**
|
|
31
|
+
* Get the root folder for the PST file
|
|
32
|
+
*/
|
|
33
|
+
getRootFolder(): Promise<IPSTFolder>;
|
|
34
|
+
/**
|
|
35
|
+
* Get the `Top of Outlook data file` of the PST file
|
|
36
|
+
*/
|
|
37
|
+
getTopOfOutlookDataFile(): Promise<IPSTFolder>;
|
|
38
|
+
/**
|
|
39
|
+
* Requests access to the user node of the internal PST structure.
|
|
40
|
+
*
|
|
41
|
+
* - `NID_MESSAGE_STORE` 33
|
|
42
|
+
* - `NID_NAME_TO_ID_MAP` 97
|
|
43
|
+
* - `ROOT_FOLDER_DESCRIPTOR_IDENTIFIER` 290 (unsafe)
|
|
44
|
+
*/
|
|
45
|
+
requestAccessToUserNode(nodeId: number): Promise<PUNode | undefined>;
|
|
46
|
+
/**
|
|
47
|
+
* Get the store support mask should be set to `PidTagStoreSupportMask`.
|
|
48
|
+
*/
|
|
49
|
+
getStoreSupportMask(): number | undefined;
|
|
50
|
+
/**
|
|
51
|
+
* JSON stringify the object properties.
|
|
52
|
+
*/
|
|
53
|
+
toJSON(): any;
|
|
54
|
+
}
|
package/dist/IPSTFile.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import type { FasterEmail } from "./FasterEmail.js";
|
|
2
|
+
import type { IPSTMessage } from "./IPSTMessage.js";
|
|
3
|
+
import type { GetFasterEmailListOptions } from "./PSTFolder.class.js";
|
|
4
|
+
import type { PUNode } from "./PUNode.js";
|
|
5
|
+
export interface IPSTFolder {
|
|
6
|
+
/**
|
|
7
|
+
* Get folders in one fell swoop, since there's not usually thousands of them.
|
|
8
|
+
*/
|
|
9
|
+
getSubFolders(): Promise<IPSTFolder[]>;
|
|
10
|
+
getSubFolder(index: number): Promise<IPSTFolder>;
|
|
11
|
+
/**
|
|
12
|
+
* The number of child folders in this folder
|
|
13
|
+
* @readonly
|
|
14
|
+
*/
|
|
15
|
+
getSubFolderCount(): Promise<number>;
|
|
16
|
+
/**
|
|
17
|
+
* Number of emails in this folder
|
|
18
|
+
* @readonly
|
|
19
|
+
*/
|
|
20
|
+
getEmailCount(): Promise<number>;
|
|
21
|
+
getEmail(index: number): Promise<IPSTMessage>;
|
|
22
|
+
getEmails(): Promise<IPSTMessage[]>;
|
|
23
|
+
getFasterEmailList(options?: GetFasterEmailListOptions): Promise<FasterEmail[]>;
|
|
24
|
+
/**
|
|
25
|
+
* Contains a constant that indicates the folder type.
|
|
26
|
+
* https://msdn.microsoft.com/en-us/library/office/cc815373.aspx
|
|
27
|
+
* @readonly
|
|
28
|
+
*/
|
|
29
|
+
get folderType(): number;
|
|
30
|
+
/**
|
|
31
|
+
* Contains the number of messages in a folder, as computed by the message store.
|
|
32
|
+
* For a number calculated by the library use getEmailCount
|
|
33
|
+
* @readonly
|
|
34
|
+
*/
|
|
35
|
+
get contentCount(): number;
|
|
36
|
+
/**
|
|
37
|
+
* Contains the number of unread messages in a folder, as computed by the message store.
|
|
38
|
+
* https://msdn.microsoft.com/en-us/library/office/cc841964.aspx
|
|
39
|
+
* @readonly
|
|
40
|
+
*/
|
|
41
|
+
get unreadCount(): number;
|
|
42
|
+
/**
|
|
43
|
+
* Contains TRUE if a folder contains subfolders.
|
|
44
|
+
* once again, read from the PST, use getSubFolderCount if you want to know
|
|
45
|
+
* @readonly
|
|
46
|
+
*/
|
|
47
|
+
get hasSubfolders(): boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Contains a text string describing the type of a folder. Although this property is
|
|
50
|
+
* generally ignored, versions of Microsoft® Exchange Server prior to Exchange Server
|
|
51
|
+
* 2003 Mailbox Manager expect this property to be present.
|
|
52
|
+
* https://msdn.microsoft.com/en-us/library/office/cc839839.aspx
|
|
53
|
+
* @readonly
|
|
54
|
+
*/
|
|
55
|
+
get containerClass(): string;
|
|
56
|
+
/**
|
|
57
|
+
* Contains a bitmask of flags describing capabilities of an address book container.
|
|
58
|
+
* https://msdn.microsoft.com/en-us/library/office/cc839610.aspx
|
|
59
|
+
* @readonly
|
|
60
|
+
*/
|
|
61
|
+
get containerFlags(): number;
|
|
62
|
+
/**
|
|
63
|
+
* Requests access to the user node of the internal PST structure.
|
|
64
|
+
*/
|
|
65
|
+
requestAccessToUserNode(): Promise<PUNode | undefined>;
|
|
66
|
+
/**
|
|
67
|
+
* JSON stringify the object properties.
|
|
68
|
+
*/
|
|
69
|
+
toJSON(): any;
|
|
70
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|