-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.js
48 lines (48 loc) · 7.78 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
import { IonicNativePlugin, cordova } from '@ionic-native/core';
var ImapOriginal = /** @class */ (function (_super) {
__extends(ImapOriginal, _super);
function ImapOriginal() {
return _super !== null && _super.apply(this, arguments) || this;
}
ImapOriginal.prototype.connect = function (clientData) { return cordova(this, "connect", {}, arguments); };
ImapOriginal.prototype.disconnect = function () { return cordova(this, "disconnect", {}, arguments); };
ImapOriginal.prototype.listMailFolders = function () { return cordova(this, "listMailFolders", {}, arguments); };
ImapOriginal.prototype.getMessageCountByFolderName = function (folderName) { return cordova(this, "getMessageCountByFolderName", {}, arguments); };
ImapOriginal.prototype.listMessagesByDatePeriod = function (folderName, dateInMilliseconds, comparison) { return cordova(this, "listMessagesByDatePeriod", {}, arguments); };
ImapOriginal.prototype.listMessagesNumberByDatePeriod = function (folderName, dateInMilliseconds, comparison) { return cordova(this, "listMessagesNumberByDatePeriod", {}, arguments); };
ImapOriginal.prototype.getFullMessageData = function (folderName, messageNumber) { return cordova(this, "getFullMessageData", {}, arguments); };
ImapOriginal.pluginName = "Imap";
ImapOriginal.plugin = "cordova-plugin-imap";
ImapOriginal.pluginRef = "imap";
ImapOriginal.repo = "";
ImapOriginal.install = "";
ImapOriginal.installVariables = [];
ImapOriginal.platforms = ["Android"];
return ImapOriginal;
}(IonicNativePlugin));
var Imap = new ImapOriginal();
export { Imap };
// ReceivedDateTerm.GE
export var Comparison;
(function (Comparison) {
Comparison[Comparison["LE"] = 1] = "LE";
Comparison[Comparison["LT"] = 2] = "LT";
Comparison[Comparison["EQ"] = 3] = "EQ";
Comparison[Comparison["NE"] = 4] = "NE";
Comparison[Comparison["GT"] = 5] = "GT";
Comparison[Comparison["GE"] = 6] = "GE";
})(Comparison || (Comparison = {}));
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvQGlvbmljLW5hdGl2ZS9wbHVnaW5zL2ltYXAvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7OztBQVlBLE9BQU8sOEJBT04sTUFBTSxvQkFBb0IsQ0FBQzs7SUFrQ0Ysd0JBQWlCOzs7O0lBVXpDLHNCQUFPLGFBQUMsVUFBa0I7SUFLMUIseUJBQVU7SUFLViw4QkFBZTtJQUtmLDBDQUEyQixhQUFDLFVBQWtCO0lBSzlDLHVDQUF3QixhQUFDLFVBQWtCLEVBQUUsa0JBQTBCLEVBQUUsVUFBc0I7SUFLL0YsNkNBQThCLGFBQUMsVUFBa0IsRUFBRSxrQkFBMEIsRUFBRSxVQUFzQjtJQUtyRyxpQ0FBa0IsYUFBQyxVQUFrQixFQUFFLGFBQXFCOzs7Ozs7OztlQTdGOUQ7RUFxRDBCLGlCQUFpQjtTQUE5QixJQUFJO0FBK0VqQixzQkFBc0I7QUFDdEIsTUFBTSxDQUFOLElBQVksVUFPWDtBQVBELFdBQVksVUFBVTtJQUNwQix1Q0FBTSxDQUFBO0lBQ04sdUNBQU0sQ0FBQTtJQUNOLHVDQUFNLENBQUE7SUFDTix1Q0FBTSxDQUFBO0lBQ04sdUNBQU0sQ0FBQTtJQUNOLHVDQUFNLENBQUE7QUFDU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