@asposecloud/aspose-email-cloud
Version:
Aspose.Email Cloud Node.js SDK
245 lines (241 loc) • 10.2 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.MapiCalendarYearlyAndMonthlyRecurrencePatternDtoBuilder = exports.MapiCalendarYearlyAndMonthlyRecurrencePatternDto = void 0;
// @ts-ignore
const model = __importStar(require("./index"));
/**
* Represents the yearly and monthly recurrence pattern of the mapi calendar
*/
class MapiCalendarYearlyAndMonthlyRecurrencePatternDto extends model.MapiCalendarRecurrencePatternDto {
/**
* Represents the yearly and monthly recurrence pattern of the mapi calendar
* @param calendarType Enumerated the calendar type of the mapi recurrence. Enum, available values: Default, CalGregorian, CalGregorianUs, CalJapan, CalTaiwan, CalKorea, CalHijri, CalThai, CalHebrew, CalGregorianMeFrench, CalGregorianArabic, CalGregorianXLitEnglish, CalGregorianXLitFrench, CalLunarJapanese, CalChineseLunar, CalSaka, CalLunarEtoChn, CalLunarEtoKor, CalLunarRokuyou, CalLunarKorean, CalUmAlQura
* @param deletedInstanceDates An array of dates, each of which is the original instance date of either a deleted instance or a modified instance for this recurrence.
* @param endDate End date of an item recurrence pattern.
* @param endType Enumerates the ending type for the recurrence. Enum, available values: None, EndAfterDate, EndAfterNOccurrences, NeverEnd
* @param exceptions An exception specifies changes to an instance of a recurring series.
* @param frequency Enumerates mapi calendar recurrence frequency. Enum, available values: None, Daily, Weekly, Monthly, Yearly
* @param modifiedInstanceDates An array of dates, each of which is the date of a modified instance.
* @param occurrenceCount Number of occurrences in a recurrence.
* @param patternType Enumerates the mapi calendar recurrence pattern types. Enum, available values: Day, Week, Month, MonthEnd, MonthNth, HjMonth, HjMonthNth, HjMonthEnd
* @param period Interval at which the meeting pattern repeats.
* @param slidingFlag Defines whether pattern is sliding or not.
* @param startDate Start date of an item recurrence pattern.
* @param weekStartDay Day of week. Enum, available values: Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday
* @param day Day of the month on which the recurrence falls.
* @param dayOfWeek Days of week at which the event occurs.
* @param position Day positions, typically found in a month. Enum, available values: None, First, Second, Third, Fourth, Last
*/
constructor(calendarType, deletedInstanceDates, endDate, endType, exceptions, frequency, modifiedInstanceDates, occurrenceCount, patternType, period, slidingFlag, startDate, weekStartDay, day, dayOfWeek, position) {
super();
this.calendarType = calendarType;
this.deletedInstanceDates = deletedInstanceDates;
this.endDate = endDate;
this.endType = endType;
this.exceptions = exceptions;
this.frequency = frequency;
this.modifiedInstanceDates = modifiedInstanceDates;
this.occurrenceCount = occurrenceCount;
this.patternType = patternType;
this.period = period;
this.slidingFlag = slidingFlag;
this.startDate = startDate;
this.weekStartDay = weekStartDay;
this.day = day;
this.dayOfWeek = dayOfWeek;
this.position = position;
}
/**
* Returns attribute type map
*/
static getAttributeTypeMap() {
return super.getAttributeTypeMap().concat(MapiCalendarYearlyAndMonthlyRecurrencePatternDto.attributeTypeMap);
}
}
exports.MapiCalendarYearlyAndMonthlyRecurrencePatternDto = MapiCalendarYearlyAndMonthlyRecurrencePatternDto;
/**
* Attribute type map
*/
MapiCalendarYearlyAndMonthlyRecurrencePatternDto.attributeTypeMap = [
{
name: "day",
baseName: "day",
type: "number",
},
{
name: "dayOfWeek",
baseName: "dayOfWeek",
type: "Array<string>",
},
{
name: "position",
baseName: "position",
type: "string",
}
];
/**
* MapiCalendarYearlyAndMonthlyRecurrencePatternDto model builder
*/
class MapiCalendarYearlyAndMonthlyRecurrencePatternDtoBuilder {
constructor(model) {
this.model = model;
}
/**
* Build model.
*/
build() {
return this.model;
}
/**
* Enumerated the calendar type of the mapi recurrence. Enum, available values: Default, CalGregorian, CalGregorianUs, CalJapan, CalTaiwan, CalKorea, CalHijri, CalThai, CalHebrew, CalGregorianMeFrench, CalGregorianArabic, CalGregorianXLitEnglish, CalGregorianXLitFrench, CalLunarJapanese, CalChineseLunar, CalSaka, CalLunarEtoChn, CalLunarEtoKor, CalLunarRokuyou, CalLunarKorean, CalUmAlQura
*/
calendarType(calendarType) {
this.model.calendarType = calendarType;
return this;
}
/**
* An array of dates, each of which is the original instance date of either a deleted instance or a modified instance for this recurrence.
*/
deletedInstanceDates(deletedInstanceDates) {
this.model.deletedInstanceDates = deletedInstanceDates;
return this;
}
/**
* End date of an item recurrence pattern.
*/
endDate(endDate) {
this.model.endDate = endDate;
return this;
}
/**
* Enumerates the ending type for the recurrence. Enum, available values: None, EndAfterDate, EndAfterNOccurrences, NeverEnd
*/
endType(endType) {
this.model.endType = endType;
return this;
}
/**
* An exception specifies changes to an instance of a recurring series.
*/
exceptions(exceptions) {
this.model.exceptions = exceptions;
return this;
}
/**
* Enumerates mapi calendar recurrence frequency. Enum, available values: None, Daily, Weekly, Monthly, Yearly
*/
frequency(frequency) {
this.model.frequency = frequency;
return this;
}
/**
* An array of dates, each of which is the date of a modified instance.
*/
modifiedInstanceDates(modifiedInstanceDates) {
this.model.modifiedInstanceDates = modifiedInstanceDates;
return this;
}
/**
* Number of occurrences in a recurrence.
*/
occurrenceCount(occurrenceCount) {
this.model.occurrenceCount = occurrenceCount;
return this;
}
/**
* Enumerates the mapi calendar recurrence pattern types. Enum, available values: Day, Week, Month, MonthEnd, MonthNth, HjMonth, HjMonthNth, HjMonthEnd
*/
patternType(patternType) {
this.model.patternType = patternType;
return this;
}
/**
* Interval at which the meeting pattern repeats.
*/
period(period) {
this.model.period = period;
return this;
}
/**
* Defines whether pattern is sliding or not.
*/
slidingFlag(slidingFlag) {
this.model.slidingFlag = slidingFlag;
return this;
}
/**
* Start date of an item recurrence pattern.
*/
startDate(startDate) {
this.model.startDate = startDate;
return this;
}
/**
* Day of week. Enum, available values: Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday
*/
weekStartDay(weekStartDay) {
this.model.weekStartDay = weekStartDay;
return this;
}
/**
* Day of the month on which the recurrence falls.
*/
day(day) {
this.model.day = day;
return this;
}
/**
* Days of week at which the event occurs. Items: Enumerates the days of week of the mapi calendar recurrence pattern. Enum, available values: Saturday, Friday, Thursday, Wednesday, Tuesday, Monday, Sunday
*/
dayOfWeek(dayOfWeek) {
this.model.dayOfWeek = dayOfWeek;
return this;
}
/**
* Day positions, typically found in a month. Enum, available values: None, First, Second, Third, Fourth, Last
*/
position(position) {
this.model.position = position;
return this;
}
}
exports.MapiCalendarYearlyAndMonthlyRecurrencePatternDtoBuilder = MapiCalendarYearlyAndMonthlyRecurrencePatternDtoBuilder;
//# sourceMappingURL=mapi-calendar-yearly-and-monthly-recurrence-pattern-dto.js.map