@kenjiuno/msgreader
Advanced tools
Comparing version 1.12.0-alpha.5 to 1.12.0-alpha.6
@@ -61,2 +61,5 @@ declare const _default: { | ||
'0e06': string; | ||
'3fde': string; | ||
'3ffd': string; | ||
'3ff1': string; | ||
'3007': string; | ||
@@ -63,0 +66,0 @@ '3008': string; |
@@ -66,2 +66,5 @@ "use strict"; | ||
'0e06': 'messageDeliveryTime', | ||
'3fde': 'internetCodepage', | ||
'3ffd': 'messageCodepage', | ||
'3ff1': 'messageLocaleId', | ||
// attachment specific | ||
@@ -68,0 +71,0 @@ '3007': 'creationTime', |
@@ -1,40 +0,50 @@ | ||
declare const props: { | ||
/** | ||
* Provide list of some known property tags. | ||
* | ||
* e.g. | ||
* | ||
* ``` | ||
* [ | ||
* ..., | ||
* { | ||
* "area": "General Message Properties", | ||
* "key": "0037001F", | ||
* "name": "PidTagSubject" | ||
* }, | ||
* ... | ||
* ] | ||
* ``` | ||
* | ||
*/ | ||
export declare const props: Array<{ | ||
area: string; | ||
key: string; | ||
name: string; | ||
}[]; | ||
declare const typeNames: { | ||
2: string; | ||
3: string; | ||
4: string; | ||
5: string; | ||
6: string; | ||
7: string; | ||
10: string; | ||
11: string; | ||
20: string; | ||
31: string; | ||
30: string; | ||
64: string; | ||
72: string; | ||
251: string; | ||
253: string; | ||
254: string; | ||
258: string; | ||
4098: string; | ||
4099: string; | ||
4100: string; | ||
4101: string; | ||
4102: string; | ||
4103: string; | ||
4116: string; | ||
4127: string; | ||
4126: string; | ||
4160: string; | ||
4168: string; | ||
4354: string; | ||
0: string; | ||
1: string; | ||
13: string; | ||
}>; | ||
/** | ||
* A table for mapping from property type value to property type name. | ||
* | ||
* e.g. | ||
* | ||
* - `typeNames[0x0003]` returns `"PtypInteger32"`. | ||
* - `typeNames[0x001E]` returns `"PtypString8"`. | ||
* - `typeNames[0x001F]` returns `"PtypString"`. | ||
* - `typeNames[0x0102]` returns `"PtypBinary"`. | ||
* | ||
* @see [[MS-OXCDATA]: Property Data Types | Microsoft Docs](https://docs.microsoft.com/en-us/openspecs/exchange_server_protocols/ms-oxcdata/0c77892e-288e-435a-9c49-be1c20c7afdb) | ||
*/ | ||
export declare const typeNames: { | ||
[key: number]: string; | ||
}; | ||
export { props, typeNames, }; | ||
/** | ||
* A table to convert from [LCID](https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-lcid/70feba9f-294e-491e-b6eb-56532684c37f) | ||
* to [ANSICodePage](https://docs.microsoft.com/en-us/dotnet/api/system.globalization.textinfo.ansicodepage?view=net-5.0) list. | ||
* | ||
* e.g. | ||
* | ||
* - `lcidToAnsiCodePages[0x0409]` will return `[1252]` (en-US) | ||
* - `lcidToAnsiCodePages[0x0411]` will return `[932]` (ja-JP) | ||
*/ | ||
export declare const lcidToAnsiCodePages: { | ||
[key: number]: Array<number>; | ||
}; |
@@ -443,2 +443,29 @@ export interface ParserConfig { | ||
clipEnd?: string; | ||
/** | ||
* Indicates the code page used for PR_BODY (PidTagBody) or PR_BODY_HTML (PidTagBodyHtml) properties. | ||
* | ||
* Target {@link dataType} = 'msg'. | ||
* | ||
* @see https://docs.microsoft.com/en-us/office/client-developer/outlook/mapi/pidtaginternetcodepage-canonical-property | ||
* @see https://github.com/HiraokaHyperTools/OXPROPS/blob/master/JSON/3FDE-PidTagInternetCodepage.md | ||
*/ | ||
internetCodepage?: number; | ||
/** | ||
* Contains the code page that is used for the message. | ||
* | ||
* Target {@link dataType} = 'msg'. | ||
* | ||
* @see https://docs.microsoft.com/en-us/office/client-developer/outlook/mapi/pidtagmessagecodepage-canonical-property | ||
* @see https://github.com/HiraokaHyperTools/OXPROPS/blob/master/JSON/3FFD-PidTagMessageCodepage.md | ||
*/ | ||
messageCodepage?: number; | ||
/** | ||
* Contains the Windows LCID of the end user who created this message. | ||
* | ||
* Target {@link dataType} = 'msg'. | ||
* | ||
* @see https://docs.microsoft.com/en-us/office/client-developer/outlook/mapi/pidtagmessagelocaleid-canonical-property | ||
* @see https://github.com/HiraokaHyperTools/OXPROPS/blob/master/JSON/3FF1-PidTagMessageLocaleId.md | ||
*/ | ||
messageLocaleId?: number; | ||
} | ||
@@ -445,0 +472,0 @@ export interface SomeParsedOxProps { |
{ | ||
"name": "@kenjiuno/msgreader", | ||
"version": "1.12.0-alpha.5", | ||
"version": "1.12.0-alpha.6", | ||
"description": "Outlook Item File (.msg) reader in JavaScript Npm Module", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is too big to display
270100
7926