UNPKG

@asposecloud/aspose-email-cloud

Version:
115 lines (111 loc) 4.06 kB
"use strict"; /* * MIT License * Copyright (c) 2018-2020 Aspose Pty Ltd * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.EmailCloud = void 0; const configuration_1 = require("../internal/configuration"); const calendar_api_1 = require("./calendar-api"); const contact_api_1 = require("./contact-api"); const email_api_1 = require("./email-api"); const disposable_email_api_1 = require("./disposable-email-api"); const email_config_api_1 = require("./email-config-api"); const mapi_group_1 = require("./mapi-group"); const client_group_1 = require("./client-group"); const ai_group_1 = require("./ai-group"); const cloud_storage_group_1 = require("./cloud-storage-group"); /** * Aspose.Email Cloud API */ class EmailCloud { /** * @param clientId Client id. * @param clientSecret Client secret. * @param baseUrl Base api Url. * @param debugMode A value indicating whether debug mode. In debug mode all requests and responses are logged to console. */ constructor(clientId, clientSecret, baseUrl, debugMode) { this.configuration = new configuration_1.Configuration(clientSecret, clientId, baseUrl, debugMode); this._calendar = new calendar_api_1.CalendarApi(this.configuration); this._contact = new contact_api_1.ContactApi(this.configuration); this._email = new email_api_1.EmailApi(this.configuration); this._disposableEmail = new disposable_email_api_1.DisposableEmailApi(this.configuration); this._emailConfig = new email_config_api_1.EmailConfigApi(this.configuration); this._mapi = new mapi_group_1.MapiGroup(this.configuration); this._client = new client_group_1.ClientGroup(this.configuration); this._ai = new ai_group_1.AiGroup(this.configuration); this._cloudStorage = new cloud_storage_group_1.CloudStorageGroup(this.configuration); } /** * iCalendar document operations. */ get calendar() { return this._calendar; } /** * Contact document operations. Supported formats: VCard, MSG, WebDav */ get contact() { return this._contact; } /** * Email document (*.eml) operations. */ get email() { return this._email; } /** * Checks if an email is a disposable one */ get disposableEmail() { return this._disposableEmail; } /** * Email server configuration discovery. */ get emailConfig() { return this._emailConfig; } /** * MAPI operations. */ get mapi() { return this._mapi; } /** * Builtin Email client operations. */ get client() { return this._client; } /** * AI powered operations. */ get ai() { return this._ai; } /** * Cloud file storage operations. */ get cloudStorage() { return this._cloudStorage; } } exports.EmailCloud = EmailCloud; //# sourceMappingURL=email-cloud.js.map