@types/imap
Advanced tools
Comparing version 0.8.33 to 0.8.34
@@ -168,2 +168,4 @@ // Type definitions for imap v0.8.14 | ||
export type SortCriteria = 'ARRIVAL' | '-ARRIVAL' | 'CC' | '-CC' | 'DATE' | '-DATE' | 'FROM' | '-FROM' | 'SIZE' | '-SIZE' | 'SUBJECT' | '-SUBJECT' | 'TO' | '-TO'; | ||
export interface MessageFunctions { | ||
@@ -220,2 +222,4 @@ /** Searches the currently open mailbox for messages using given criteria. criteria is a list describing what you want to find. For criteria types that require arguments, use an array instead of just the string criteria type name (e.g. ['FROM', 'foo@bar.com']). Prefix criteria types with an "!" to negate. | ||
search(criteria: any[], callback: (error: Error, uids: number[]) => void): void; | ||
/** Sorts the currently open mailbox for messages using given sortCriteria. This method first searches the mailbox for messages that match the given searching criteria and then sorts by given sort criteria. (This is a specification of RFC 5256. ) */ | ||
sort(sortCriteria: SortCriteria[], searchCriteria: any[], callback: (error: Error, uids: number[]) => void): void; | ||
/** Fetches message(s) in the currently open mailbox; source can be a single message identifier, a message identifier range (e.g. '2504:2507' or '*' or '2504:*'), an array of message identifiers, or an array of message identifier ranges. */ | ||
@@ -265,2 +269,4 @@ fetch(source: any /* MessageSource */, options: FetchOptions): ImapFetch; | ||
search(criteria: any[], callback: (error: Error, uids: number[]) => void): void; | ||
/** Sorts the currently open mailbox for messages using given sortCriteria. This method first searches the mailbox for messages that match the given searching criteria and then sorts by given sort criteria. (This is a specification of RFC 5256. ) */ | ||
sort(sortCriteria: Connection.SortCriteria[], searchCriteria: any[], callback: (error: Error, uids: number[]) => void): void; | ||
/** Fetches message(s) in the currently open mailbox. */ | ||
@@ -267,0 +273,0 @@ fetch(source: any /* MessageSource */, options: Connection.FetchOptions): Connection.ImapFetch; |
{ | ||
"name": "@types/imap", | ||
"version": "0.8.33", | ||
"version": "0.8.34", | ||
"description": "TypeScript definitions for imap", | ||
@@ -24,4 +24,4 @@ "license": "MIT", | ||
}, | ||
"typesPublisherContentHash": "aa8f5a4984399e81cf7fde7468e83171d16af32fa2d24bdb8443187f54060358", | ||
"typeScriptVersion": "3.3" | ||
"typesPublisherContentHash": "60d1c3c036bcdcde7fede85c2f168ae1a6f4cd4dc3c127081c8be84481486799", | ||
"typeScriptVersion": "3.5" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Mon, 04 Jan 2021 20:50:21 GMT | ||
* Last updated: Tue, 18 May 2021 16:31:45 GMT | ||
* Dependencies: [@types/node](https://npmjs.com/package/@types/node) | ||
@@ -14,0 +14,0 @@ * Global values: none |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
26730
313