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.
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 +818 -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 +514 -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 +281 -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 +95 -44
  57. package/junit.xml +68 -68
  58. package/package.json +26 -26
  59. package/readme.md +1 -3
@@ -1,65 +1,65 @@
1
- import { PSTFile } from './PSTFile.class';
2
- import { PSTObject } from './PSTObject.class';
3
- import { PSTTableItem } from './PSTTableItem.class';
4
- export declare class PSTRecipient extends PSTObject {
5
- /**
6
- * Creates an instance of PSTRecipient.
7
- * @param {Map<number, PSTTableItem>} recipientDetails
8
- * @memberof PSTRecipient
9
- */
10
- constructor(pstFile: PSTFile, recipientDetails: Map<number, PSTTableItem>);
11
- /**
12
- * Contains the recipient type for a message recipient.
13
- * https://msdn.microsoft.com/en-us/library/office/cc839620.aspx
14
- * @readonly
15
- * @type {number}
16
- * @memberof PSTMessage
17
- */
18
- get recipientType(): number;
19
- /**
20
- * Contains the messaging user's e-mail address type, such as SMTP.
21
- * https://msdn.microsoft.com/en-us/library/office/cc815548.aspx
22
- * @readonly
23
- * @type {string}
24
- * @memberof PSTMessage
25
- */
26
- get addrType(): string;
27
- /**
28
- * Contains the messaging user's e-mail address.
29
- * https://msdn.microsoft.com/en-us/library/office/cc842372.aspx
30
- * @readonly
31
- * @type {string}
32
- * @memberof PSTMessage
33
- */
34
- get emailAddress(): string;
35
- /**
36
- * Specifies a bit field that describes the recipient status.
37
- * https://msdn.microsoft.com/en-us/library/office/cc815629.aspx
38
- * @readonly
39
- * @type {number}
40
- * @memberof PSTRecipient
41
- */
42
- get recipientFlags(): number;
43
- /**
44
- * Specifies the location of the current recipient in the recipient table.
45
- * https://msdn.microsoft.com/en-us/library/ee201359(v=exchg.80).aspx
46
- * @readonly
47
- * @type {number}
48
- * @memberof PSTRecipient
49
- */
50
- get recipientOrder(): number;
51
- /**
52
- * Contains the SMTP address for the address book object.
53
- * https://msdn.microsoft.com/en-us/library/office/cc842421.aspx
54
- * @readonly
55
- * @type {string}
56
- * @memberof PSTRecipient
57
- */
58
- get smtpAddress(): string;
59
- /**
60
- * JSON stringify the object properties.
61
- * @returns {string}
62
- * @memberof PSTRecipient
63
- */
64
- toJSON(): any;
65
- }
1
+ import { PSTFile } from './PSTFile.class';
2
+ import { PSTObject } from './PSTObject.class';
3
+ import { PSTTableItem } from './PSTTableItem.class';
4
+ export declare class PSTRecipient extends PSTObject {
5
+ /**
6
+ * Creates an instance of PSTRecipient.
7
+ * @param {Map<number, PSTTableItem>} recipientDetails
8
+ * @memberof PSTRecipient
9
+ */
10
+ constructor(pstFile: PSTFile, recipientDetails: Map<number, PSTTableItem>);
11
+ /**
12
+ * Contains the recipient type for a message recipient.
13
+ * https://msdn.microsoft.com/en-us/library/office/cc839620.aspx
14
+ * @readonly
15
+ * @type {number}
16
+ * @memberof PSTMessage
17
+ */
18
+ get recipientType(): number;
19
+ /**
20
+ * Contains the messaging user's e-mail address type, such as SMTP.
21
+ * https://msdn.microsoft.com/en-us/library/office/cc815548.aspx
22
+ * @readonly
23
+ * @type {string}
24
+ * @memberof PSTMessage
25
+ */
26
+ get addrType(): string;
27
+ /**
28
+ * Contains the messaging user's e-mail address.
29
+ * https://msdn.microsoft.com/en-us/library/office/cc842372.aspx
30
+ * @readonly
31
+ * @type {string}
32
+ * @memberof PSTMessage
33
+ */
34
+ get emailAddress(): string;
35
+ /**
36
+ * Specifies a bit field that describes the recipient status.
37
+ * https://msdn.microsoft.com/en-us/library/office/cc815629.aspx
38
+ * @readonly
39
+ * @type {number}
40
+ * @memberof PSTRecipient
41
+ */
42
+ get recipientFlags(): number;
43
+ /**
44
+ * Specifies the location of the current recipient in the recipient table.
45
+ * https://msdn.microsoft.com/en-us/library/ee201359(v=exchg.80).aspx
46
+ * @readonly
47
+ * @type {number}
48
+ * @memberof PSTRecipient
49
+ */
50
+ get recipientOrder(): number;
51
+ /**
52
+ * Contains the SMTP address for the address book object.
53
+ * https://msdn.microsoft.com/en-us/library/office/cc842421.aspx
54
+ * @readonly
55
+ * @type {string}
56
+ * @memberof PSTRecipient
57
+ */
58
+ get smtpAddress(): string;
59
+ /**
60
+ * JSON stringify the object properties.
61
+ * @returns {string}
62
+ * @memberof PSTRecipient
63
+ */
64
+ toJSON(): any;
65
+ }
@@ -1,103 +1,103 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PSTRecipient = void 0;
4
- /* eslint-disable @typescript-eslint/no-explicit-any */
5
- const OutlookProperties_1 = require("./OutlookProperties");
6
- const PSTObject_class_1 = require("./PSTObject.class");
7
- // Class containing recipient information
8
- class PSTRecipient extends PSTObject_class_1.PSTObject {
9
- /**
10
- * Creates an instance of PSTRecipient.
11
- * @param {Map<number, PSTTableItem>} recipientDetails
12
- * @memberof PSTRecipient
13
- */
14
- constructor(pstFile, recipientDetails) {
15
- super(pstFile, undefined, recipientDetails);
16
- }
17
- /**
18
- * Contains the recipient type for a message recipient.
19
- * https://msdn.microsoft.com/en-us/library/office/cc839620.aspx
20
- * @readonly
21
- * @type {number}
22
- * @memberof PSTMessage
23
- */
24
- get recipientType() {
25
- return this.getIntItem(OutlookProperties_1.OutlookProperties.PR_RECIPIENT_TYPE);
26
- }
27
- /**
28
- * Contains the messaging user's e-mail address type, such as SMTP.
29
- * https://msdn.microsoft.com/en-us/library/office/cc815548.aspx
30
- * @readonly
31
- * @type {string}
32
- * @memberof PSTMessage
33
- */
34
- get addrType() {
35
- return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_ADDRTYPE);
36
- }
37
- /**
38
- * Contains the messaging user's e-mail address.
39
- * https://msdn.microsoft.com/en-us/library/office/cc842372.aspx
40
- * @readonly
41
- * @type {string}
42
- * @memberof PSTMessage
43
- */
44
- get emailAddress() {
45
- return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_EMAIL_ADDRESS);
46
- }
47
- /**
48
- * Specifies a bit field that describes the recipient status.
49
- * https://msdn.microsoft.com/en-us/library/office/cc815629.aspx
50
- * @readonly
51
- * @type {number}
52
- * @memberof PSTRecipient
53
- */
54
- get recipientFlags() {
55
- return this.getIntItem(OutlookProperties_1.OutlookProperties.PR_RECIPIENT_FLAGS);
56
- }
57
- /**
58
- * Specifies the location of the current recipient in the recipient table.
59
- * https://msdn.microsoft.com/en-us/library/ee201359(v=exchg.80).aspx
60
- * @readonly
61
- * @type {number}
62
- * @memberof PSTRecipient
63
- */
64
- get recipientOrder() {
65
- return this.getIntItem(OutlookProperties_1.OutlookProperties.PidTagRecipientOrder);
66
- }
67
- /**
68
- * Contains the SMTP address for the address book object.
69
- * https://msdn.microsoft.com/en-us/library/office/cc842421.aspx
70
- * @readonly
71
- * @type {string}
72
- * @memberof PSTRecipient
73
- */
74
- get smtpAddress() {
75
- // If the recipient address type is SMTP, we can simply return the recipient address.
76
- const addressType = this.addrType;
77
- if (addressType != null && addressType.toLowerCase() === 'smtp') {
78
- const addr = this.emailAddress;
79
- if (addr != null && addr.length != 0) {
80
- return addr;
81
- }
82
- }
83
- // Otherwise, we have to hope the SMTP address is present as the PidTagPrimarySmtpAddress property.
84
- return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_SMTP_ADDRESS);
85
- }
86
- /**
87
- * JSON stringify the object properties.
88
- * @returns {string}
89
- * @memberof PSTRecipient
90
- */
91
- toJSON() {
92
- const clone = Object.assign({
93
- smtpAddress: this.smtpAddress,
94
- recipientType: this.recipientType,
95
- addrType: this.addrType,
96
- emailAddress: this.emailAddress,
97
- recipientFlags: this.recipientFlags,
98
- recipientOrder: this.recipientOrder,
99
- }, this);
100
- return clone;
101
- }
102
- }
103
- exports.PSTRecipient = PSTRecipient;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PSTRecipient = void 0;
4
+ /* eslint-disable @typescript-eslint/no-explicit-any */
5
+ const OutlookProperties_1 = require("./OutlookProperties");
6
+ const PSTObject_class_1 = require("./PSTObject.class");
7
+ // Class containing recipient information
8
+ class PSTRecipient extends PSTObject_class_1.PSTObject {
9
+ /**
10
+ * Creates an instance of PSTRecipient.
11
+ * @param {Map<number, PSTTableItem>} recipientDetails
12
+ * @memberof PSTRecipient
13
+ */
14
+ constructor(pstFile, recipientDetails) {
15
+ super(pstFile, undefined, recipientDetails);
16
+ }
17
+ /**
18
+ * Contains the recipient type for a message recipient.
19
+ * https://msdn.microsoft.com/en-us/library/office/cc839620.aspx
20
+ * @readonly
21
+ * @type {number}
22
+ * @memberof PSTMessage
23
+ */
24
+ get recipientType() {
25
+ return this.getIntItem(OutlookProperties_1.OutlookProperties.PR_RECIPIENT_TYPE);
26
+ }
27
+ /**
28
+ * Contains the messaging user's e-mail address type, such as SMTP.
29
+ * https://msdn.microsoft.com/en-us/library/office/cc815548.aspx
30
+ * @readonly
31
+ * @type {string}
32
+ * @memberof PSTMessage
33
+ */
34
+ get addrType() {
35
+ return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_ADDRTYPE);
36
+ }
37
+ /**
38
+ * Contains the messaging user's e-mail address.
39
+ * https://msdn.microsoft.com/en-us/library/office/cc842372.aspx
40
+ * @readonly
41
+ * @type {string}
42
+ * @memberof PSTMessage
43
+ */
44
+ get emailAddress() {
45
+ return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_EMAIL_ADDRESS);
46
+ }
47
+ /**
48
+ * Specifies a bit field that describes the recipient status.
49
+ * https://msdn.microsoft.com/en-us/library/office/cc815629.aspx
50
+ * @readonly
51
+ * @type {number}
52
+ * @memberof PSTRecipient
53
+ */
54
+ get recipientFlags() {
55
+ return this.getIntItem(OutlookProperties_1.OutlookProperties.PR_RECIPIENT_FLAGS);
56
+ }
57
+ /**
58
+ * Specifies the location of the current recipient in the recipient table.
59
+ * https://msdn.microsoft.com/en-us/library/ee201359(v=exchg.80).aspx
60
+ * @readonly
61
+ * @type {number}
62
+ * @memberof PSTRecipient
63
+ */
64
+ get recipientOrder() {
65
+ return this.getIntItem(OutlookProperties_1.OutlookProperties.PidTagRecipientOrder);
66
+ }
67
+ /**
68
+ * Contains the SMTP address for the address book object.
69
+ * https://msdn.microsoft.com/en-us/library/office/cc842421.aspx
70
+ * @readonly
71
+ * @type {string}
72
+ * @memberof PSTRecipient
73
+ */
74
+ get smtpAddress() {
75
+ // If the recipient address type is SMTP, we can simply return the recipient address.
76
+ const addressType = this.addrType;
77
+ if (addressType != null && addressType.toLowerCase() === 'smtp') {
78
+ const addr = this.emailAddress;
79
+ if (addr != null && addr.length != 0) {
80
+ return addr;
81
+ }
82
+ }
83
+ // Otherwise, we have to hope the SMTP address is present as the PidTagPrimarySmtpAddress property.
84
+ return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_SMTP_ADDRESS);
85
+ }
86
+ /**
87
+ * JSON stringify the object properties.
88
+ * @returns {string}
89
+ * @memberof PSTRecipient
90
+ */
91
+ toJSON() {
92
+ const clone = Object.assign({
93
+ smtpAddress: this.smtpAddress,
94
+ recipientType: this.recipientType,
95
+ addrType: this.addrType,
96
+ emailAddress: this.emailAddress,
97
+ recipientFlags: this.recipientFlags,
98
+ recipientOrder: this.recipientOrder,
99
+ }, this);
100
+ return clone;
101
+ }
102
+ }
103
+ exports.PSTRecipient = PSTRecipient;
@@ -1,52 +1,52 @@
1
- import Long from 'long';
2
- import { NodeInfo } from './NodeInfo.class';
3
- import { PSTNodeInputStream } from './PSTNodeInputStream.class';
4
- import { PSTDescriptorItem } from './PSTDescriptorItem.class';
5
- export declare abstract class PSTTable {
6
- protected tableType: string;
7
- protected tableTypeByte: number;
8
- protected hidUserRoot: number;
9
- protected arrayBlocks: Long[];
10
- protected sizeOfItemKey: number;
11
- protected sizeOfItemValue: number;
12
- protected hidRoot: number;
13
- protected numberOfKeys: number;
14
- protected numberOfIndexLevels: number;
15
- private pstNodeInputStream;
16
- private subNodeDescriptorItems;
17
- /**
18
- * Creates an instance of PSTTable. The PST Table is the workhorse of the whole system.
19
- * It allows for an item to be read and broken down into the individual properties that it consists of.
20
- * For most PST Objects, it appears that only 7C and BC table types are used.
21
- * @param {PSTNodeInputStream} pstNodeInputStream
22
- * @param {Map<number, PSTDescriptorItem>} subNodeDescriptorItems
23
- * @memberof PSTTable
24
- */
25
- constructor(pstNodeInputStream: PSTNodeInputStream, subNodeDescriptorItems?: Map<number, PSTDescriptorItem>);
26
- /**
27
- * Release data.
28
- * @protected
29
- * @memberof PSTTable
30
- */
31
- protected releaseRawData(): void;
32
- /**
33
- * Number of items in table.
34
- * @readonly
35
- * @type {number}
36
- * @memberof PSTTable
37
- */
38
- get rowCount(): number;
39
- /**
40
- * Get information for the node in the b-tree.
41
- * @param {number} hnid
42
- * @returns {NodeInfo}
43
- * @memberof PSTTable
44
- */
45
- getNodeInfo(hnid: number): NodeInfo | null;
46
- /**
47
- * JSON stringify the object properties.
48
- * @returns {string}
49
- * @memberof PSTTable
50
- */
51
- toJSON(): any;
52
- }
1
+ import Long from 'long';
2
+ import { NodeInfo } from './NodeInfo.class';
3
+ import { PSTNodeInputStream } from './PSTNodeInputStream.class';
4
+ import { PSTDescriptorItem } from './PSTDescriptorItem.class';
5
+ export declare abstract class PSTTable {
6
+ protected tableType: string;
7
+ protected tableTypeByte: number;
8
+ protected hidUserRoot: number;
9
+ protected arrayBlocks: Long[];
10
+ protected sizeOfItemKey: number;
11
+ protected sizeOfItemValue: number;
12
+ protected hidRoot: number;
13
+ protected numberOfKeys: number;
14
+ protected numberOfIndexLevels: number;
15
+ private pstNodeInputStream;
16
+ private subNodeDescriptorItems;
17
+ /**
18
+ * Creates an instance of PSTTable. The PST Table is the workhorse of the whole system.
19
+ * It allows for an item to be read and broken down into the individual properties that it consists of.
20
+ * For most PST Objects, it appears that only 7C and BC table types are used.
21
+ * @param {PSTNodeInputStream} pstNodeInputStream
22
+ * @param {Map<number, PSTDescriptorItem>} subNodeDescriptorItems
23
+ * @memberof PSTTable
24
+ */
25
+ constructor(pstNodeInputStream: PSTNodeInputStream, subNodeDescriptorItems?: Map<number, PSTDescriptorItem>);
26
+ /**
27
+ * Release data.
28
+ * @protected
29
+ * @memberof PSTTable
30
+ */
31
+ protected releaseRawData(): void;
32
+ /**
33
+ * Number of items in table.
34
+ * @readonly
35
+ * @type {number}
36
+ * @memberof PSTTable
37
+ */
38
+ get rowCount(): number;
39
+ /**
40
+ * Get information for the node in the b-tree.
41
+ * @param {number} hnid
42
+ * @returns {NodeInfo}
43
+ * @memberof PSTTable
44
+ */
45
+ getNodeInfo(hnid: number): NodeInfo | null;
46
+ /**
47
+ * JSON stringify the object properties.
48
+ * @returns {string}
49
+ * @memberof PSTTable
50
+ */
51
+ toJSON(): any;
52
+ }