UNPKG

@asposecloud/aspose-email-cloud

Version:
261 lines (257 loc) 9.28 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.MapiCalendarRecurrencePatternDtoBuilder = exports.MapiCalendarRecurrencePatternDto = void 0; /** * Mapi recurrence pattern. */ class MapiCalendarRecurrencePatternDto { /** * Mapi recurrence pattern. * @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 */ constructor(calendarType, deletedInstanceDates, endDate, endType, exceptions, frequency, modifiedInstanceDates, occurrenceCount, patternType, period, slidingFlag, startDate, weekStartDay) { 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; } /** * Returns attribute type map */ static getAttributeTypeMap() { return MapiCalendarRecurrencePatternDto.attributeTypeMap; } /** * Model type discriminator. Used for serialization purposes. Field is set automatically by SDK. */ get discriminator() { return this.constructor.name; } set discriminator(_newType) { /* do nothing */ } ; } exports.MapiCalendarRecurrencePatternDto = MapiCalendarRecurrencePatternDto; /** * Attribute type map */ MapiCalendarRecurrencePatternDto.attributeTypeMap = [ { name: "calendarType", baseName: "calendarType", type: "string", }, { name: "deletedInstanceDates", baseName: "deletedInstanceDates", type: "Array<Date>", }, { name: "endDate", baseName: "endDate", type: "Date", }, { name: "endType", baseName: "endType", type: "string", }, { name: "exceptions", baseName: "exceptions", type: "Array<MapiCalendarExceptionInfoDto>", }, { name: "frequency", baseName: "frequency", type: "string", }, { name: "modifiedInstanceDates", baseName: "modifiedInstanceDates", type: "Array<Date>", }, { name: "occurrenceCount", baseName: "occurrenceCount", type: "number", }, { name: "patternType", baseName: "patternType", type: "string", }, { name: "period", baseName: "period", type: "number", }, { name: "slidingFlag", baseName: "slidingFlag", type: "boolean", }, { name: "startDate", baseName: "startDate", type: "Date", }, { name: "weekStartDay", baseName: "weekStartDay", type: "string", }, { name: "discriminator", baseName: "discriminator", type: "string", } ]; /** * MapiCalendarRecurrencePatternDto model builder */ class MapiCalendarRecurrencePatternDtoBuilder { 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; } } exports.MapiCalendarRecurrencePatternDtoBuilder = MapiCalendarRecurrencePatternDtoBuilder; //# sourceMappingURL=mapi-calendar-recurrence-pattern-dto.js.map