@asposecloud/aspose-email-cloud
Version:
Aspose.Email Cloud Node.js SDK
482 lines (478 loc) • 16 kB
JavaScript
"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.
*/
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.MapiCalendarDtoBuilder = exports.MapiCalendarDto = void 0;
// @ts-ignore
const model = __importStar(require("./index"));
/**
* Represents the mapi calendar object
*/
class MapiCalendarDto extends model.MapiMessageItemBaseDto {
/**
* Represents the mapi calendar object
* @param attachments Message item attachments.
* @param billing Billing information associated with an item.
* @param body Message text.
* @param bodyHtml Gets the BodyRtf of the message converted to HTML, if present, otherwise an empty string.
* @param bodyRtf RTF formatted message text.
* @param bodyType The content type of message body. Enum, available values: PlainText, Html, Rtf
* @param categories Contains keywords or categories for the message object.
* @param companies Contains the names of the companies that are associated with an item.
* @param itemId The item id, uses with a server.
* @param messageClass Case-sensitive string that identifies the sender-defined message class, such as IPM.Note. The message class specifies the type, purpose, or content of the message.
* @param mileage Contains the mileage information that is associated with an item.
* @param recipients Recipients of the message.
* @param sensitivity Contains values that indicate the message sensitivity. Enum, available values: None, Personal, Private, CompanyConfidential
* @param subject Subject of the message.
* @param subjectPrefix Subject prefix that typically indicates some action on a message, such as \"FW: \" for forwarding.
* @param properties List of MAPI properties
* @param appointmentCounterProposal Value indicating whether a Meeting Response object is a counter proposal.
* @param attendees Attendees
* @param busyStatus Enumerates the mapi calendar possible busy status. Enum, available values: Free, Tentative, Busy, OutOfOffice
* @param clientIntent Actions the user has taken on this Meeting object.
* @param endDate End date and time of the event. If the date is not set, default value for DateTime is returned.
* @param endDateTimeZone Time zone information that indicates the time zone of the EndDate property.
* @param isAllDay Value indicating whether the event is an all-day event.
* @param keyWords Categories of the calendar object.
* @param location Location of the event.
* @param recurrence Recurrence properties.
* @param reminderDelta Interval, in minutes, between the time at which the reminder first becomes overdue and the start time of the Calendar object.
* @param reminderFileParameter Full path of the sound that a client SHOULD play when the reminder becomes overdue.
* @param reminderSet Value indicating whether a reminder is set on the object.
* @param sequence Sequence number.
* @param startDate Start date and time of the event. If the date is not set, default value for DateTime is returned.
* @param startDateTimeZone Time zone information that indicates the time zone of the StartDate property.
* @param uid Unique identifier.
* @param organizer Organizer
*/
constructor(attachments, billing, body, bodyHtml, bodyRtf, bodyType, categories, companies, itemId, messageClass, mileage, recipients, sensitivity, subject, subjectPrefix, properties, appointmentCounterProposal, attendees, busyStatus, clientIntent, endDate, endDateTimeZone, isAllDay, keyWords, location, recurrence, reminderDelta, reminderFileParameter, reminderSet, sequence, startDate, startDateTimeZone, uid, organizer) {
super();
this.attachments = attachments;
this.billing = billing;
this.body = body;
this.bodyHtml = bodyHtml;
this.bodyRtf = bodyRtf;
this.bodyType = bodyType;
this.categories = categories;
this.companies = companies;
this.itemId = itemId;
this.messageClass = messageClass;
this.mileage = mileage;
this.recipients = recipients;
this.sensitivity = sensitivity;
this.subject = subject;
this.subjectPrefix = subjectPrefix;
this.properties = properties;
this.appointmentCounterProposal = appointmentCounterProposal;
this.attendees = attendees;
this.busyStatus = busyStatus;
this.clientIntent = clientIntent;
this.endDate = endDate;
this.endDateTimeZone = endDateTimeZone;
this.isAllDay = isAllDay;
this.keyWords = keyWords;
this.location = location;
this.recurrence = recurrence;
this.reminderDelta = reminderDelta;
this.reminderFileParameter = reminderFileParameter;
this.reminderSet = reminderSet;
this.sequence = sequence;
this.startDate = startDate;
this.startDateTimeZone = startDateTimeZone;
this.uid = uid;
this.organizer = organizer;
}
/**
* Returns attribute type map
*/
static getAttributeTypeMap() {
return super.getAttributeTypeMap().concat(MapiCalendarDto.attributeTypeMap);
}
}
exports.MapiCalendarDto = MapiCalendarDto;
/**
* Attribute type map
*/
MapiCalendarDto.attributeTypeMap = [
{
name: "appointmentCounterProposal",
baseName: "appointmentCounterProposal",
type: "boolean",
},
{
name: "attendees",
baseName: "attendees",
type: "MapiCalendarAttendeesDto",
},
{
name: "busyStatus",
baseName: "busyStatus",
type: "string",
},
{
name: "clientIntent",
baseName: "clientIntent",
type: "Array<string>",
},
{
name: "endDate",
baseName: "endDate",
type: "Date",
},
{
name: "endDateTimeZone",
baseName: "endDateTimeZone",
type: "MapiCalendarTimeZoneDto",
},
{
name: "isAllDay",
baseName: "isAllDay",
type: "boolean",
},
{
name: "keyWords",
baseName: "keyWords",
type: "string",
},
{
name: "location",
baseName: "location",
type: "string",
},
{
name: "recurrence",
baseName: "recurrence",
type: "MapiCalendarEventRecurrenceDto",
},
{
name: "reminderDelta",
baseName: "reminderDelta",
type: "number",
},
{
name: "reminderFileParameter",
baseName: "reminderFileParameter",
type: "string",
},
{
name: "reminderSet",
baseName: "reminderSet",
type: "boolean",
},
{
name: "sequence",
baseName: "sequence",
type: "number",
},
{
name: "startDate",
baseName: "startDate",
type: "Date",
},
{
name: "startDateTimeZone",
baseName: "startDateTimeZone",
type: "MapiCalendarTimeZoneDto",
},
{
name: "uid",
baseName: "uid",
type: "string",
},
{
name: "organizer",
baseName: "organizer",
type: "MapiElectronicAddressDto",
}
];
/**
* MapiCalendarDto model builder
*/
class MapiCalendarDtoBuilder {
constructor(model) {
this.model = model;
}
/**
* Build model.
*/
build() {
return this.model;
}
/**
* Message item attachments.
*/
attachments(attachments) {
this.model.attachments = attachments;
return this;
}
/**
* Billing information associated with an item.
*/
billing(billing) {
this.model.billing = billing;
return this;
}
/**
* Message text.
*/
body(body) {
this.model.body = body;
return this;
}
/**
* Gets the BodyRtf of the message converted to HTML, if present, otherwise an empty string.
*/
bodyHtml(bodyHtml) {
this.model.bodyHtml = bodyHtml;
return this;
}
/**
* RTF formatted message text.
*/
bodyRtf(bodyRtf) {
this.model.bodyRtf = bodyRtf;
return this;
}
/**
* The content type of message body. Enum, available values: PlainText, Html, Rtf
*/
bodyType(bodyType) {
this.model.bodyType = bodyType;
return this;
}
/**
* Contains keywords or categories for the message object.
*/
categories(categories) {
this.model.categories = categories;
return this;
}
/**
* Contains the names of the companies that are associated with an item.
*/
companies(companies) {
this.model.companies = companies;
return this;
}
/**
* The item id, uses with a server.
*/
itemId(itemId) {
this.model.itemId = itemId;
return this;
}
/**
* Case-sensitive string that identifies the sender-defined message class, such as IPM.Note. The message class specifies the type, purpose, or content of the message.
*/
messageClass(messageClass) {
this.model.messageClass = messageClass;
return this;
}
/**
* Contains the mileage information that is associated with an item.
*/
mileage(mileage) {
this.model.mileage = mileage;
return this;
}
/**
* Recipients of the message.
*/
recipients(recipients) {
this.model.recipients = recipients;
return this;
}
/**
* Contains values that indicate the message sensitivity. Enum, available values: None, Personal, Private, CompanyConfidential
*/
sensitivity(sensitivity) {
this.model.sensitivity = sensitivity;
return this;
}
/**
* Subject of the message.
*/
subject(subject) {
this.model.subject = subject;
return this;
}
/**
* Subject prefix that typically indicates some action on a message, such as \"FW: \" for forwarding.
*/
subjectPrefix(subjectPrefix) {
this.model.subjectPrefix = subjectPrefix;
return this;
}
/**
* List of MAPI properties
*/
properties(properties) {
this.model.properties = properties;
return this;
}
/**
* Value indicating whether a Meeting Response object is a counter proposal.
*/
appointmentCounterProposal(appointmentCounterProposal) {
this.model.appointmentCounterProposal = appointmentCounterProposal;
return this;
}
/**
* Attendees
*/
attendees(attendees) {
this.model.attendees = attendees;
return this;
}
/**
* Enumerates the mapi calendar possible busy status. Enum, available values: Free, Tentative, Busy, OutOfOffice
*/
busyStatus(busyStatus) {
this.model.busyStatus = busyStatus;
return this;
}
/**
* Actions the user has taken on this Meeting object. Items: Enumerates the actions the user can taken on the Meeting object. Enum, available values: Manager, Delegate, DeletedWithNoResponse, DeletedExceptionWithNoResponse, RespondedTentative, RespondedAccept, RespondedDecline, ModifiedStartTime, ModifiedEndTime, ModifiedLocation, RespondedExceptionDecline, Canceled, ExceptionCanceled
*/
clientIntent(clientIntent) {
this.model.clientIntent = clientIntent;
return this;
}
/**
* End date and time of the event. If the date is not set, default value for DateTime is returned.
*/
endDate(endDate) {
this.model.endDate = endDate;
return this;
}
/**
* Time zone information that indicates the time zone of the EndDate property.
*/
endDateTimeZone(endDateTimeZone) {
this.model.endDateTimeZone = endDateTimeZone;
return this;
}
/**
* Value indicating whether the event is an all-day event.
*/
isAllDay(isAllDay) {
this.model.isAllDay = isAllDay;
return this;
}
/**
* Categories of the calendar object.
*/
keyWords(keyWords) {
this.model.keyWords = keyWords;
return this;
}
/**
* Location of the event.
*/
location(location) {
this.model.location = location;
return this;
}
/**
* Recurrence properties.
*/
recurrence(recurrence) {
this.model.recurrence = recurrence;
return this;
}
/**
* Interval, in minutes, between the time at which the reminder first becomes overdue and the start time of the Calendar object.
*/
reminderDelta(reminderDelta) {
this.model.reminderDelta = reminderDelta;
return this;
}
/**
* Full path of the sound that a client SHOULD play when the reminder becomes overdue.
*/
reminderFileParameter(reminderFileParameter) {
this.model.reminderFileParameter = reminderFileParameter;
return this;
}
/**
* Value indicating whether a reminder is set on the object.
*/
reminderSet(reminderSet) {
this.model.reminderSet = reminderSet;
return this;
}
/**
* Sequence number.
*/
sequence(sequence) {
this.model.sequence = sequence;
return this;
}
/**
* Start date and time of the event. If the date is not set, default value for DateTime is returned.
*/
startDate(startDate) {
this.model.startDate = startDate;
return this;
}
/**
* Time zone information that indicates the time zone of the StartDate property.
*/
startDateTimeZone(startDateTimeZone) {
this.model.startDateTimeZone = startDateTimeZone;
return this;
}
/**
* Unique identifier.
*/
uid(uid) {
this.model.uid = uid;
return this;
}
/**
* Organizer
*/
organizer(organizer) {
this.model.organizer = organizer;
return this;
}
}
exports.MapiCalendarDtoBuilder = MapiCalendarDtoBuilder;
//# sourceMappingURL=mapi-calendar-dto.js.map