ews-js-api-browser
Version:
EWS Managed api in JavaScript fo Ionic and Electron
952 lines (951 loc) • 954 kB
TypeScript
import * as moment from 'moment-timezone';
export interface IndexerWithStringKey<TValue> {
[index: string]: TValue;
}
export interface IndexerWithNumericKey<TValue> {
[index: number]: TValue;
}
export interface KeyValuePair<TKey, TValue> {
key: TKey;
value: TValue;
}
export interface StringKeyPicker<TValue> {
(value: TValue): string;
}
export declare class Dictionary<TKey, TValue> {
private keys;
private keysToObjs;
private objects;
private keyPicker;
/** get all keys */
readonly Keys: TKey[];
/**get all items in key,value pair array */
readonly Items: KeyValuePair<TKey, TValue>[];
/** get all values */
readonly Values: TValue[];
/** get number of objects in dictionary */
readonly length: number;
/** get number of objects in the dictionary */
readonly Count: number;
constructor(keyPickerFunc: StringKeyPicker<TKey>);
/** get string values of all keys */
getStringKeys(): string[];
/** add value or update the value for key */
Add(key: TKey, value: TValue): void;
/** add value or update the value for key */
addUpdate(key: TKey, value: TValue): void;
/** Set value for key */
set(key: TKey, value: TValue): void;
/** sets the new entry with old value or optionally new value, use isnull parameter to make sure you are setting a null value instead of old value */
setEntry(oldKey: string, newKey: TKey): void;
setEntry(oldKey: TKey, newKey: TKey): void;
/** get value for key */
get(key: string): TValue;
get(key: TKey): TValue;
/**try get value for key or return exception in IOutParam.exception */
tryGetValue(key: string, outValue: IOutParam<TValue>): boolean;
tryGetValue(key: TKey, outValue: IOutParam<TValue>): boolean;
/**remove key and value for key */
remove(key: string): boolean;
remove(key: TKey): boolean;
/** check if key exist */
containsKey(key: string): boolean;
containsKey(key: TKey): boolean;
/** clear dictionary */
clear(): void;
}
export interface IndexerWithEnumKey<TKey, TValue> {
[index: number]: TValue;
}
export declare class ConfigurationApi {
static ConfigureXHR(xhrApi: IXHRApi): void;
static ConfigurePromise(promise: PromiseConstructor): void;
}
export declare const msToEpoch: number;
export declare enum DateTimeKind {
Unspecified = 0,
Utc = 1,
Local = 2,
}
/**
* DateTime - basic date time based on moment.js
*/
export declare class DateTime {
private static readonly DaysToMonth365;
private static readonly DaysToMonth366;
kind: DateTimeKind;
readonly MomentDate: moment.Moment;
readonly currentUtcOffset: number;
private readonly momentDate;
private getMomentDate;
private setMomentDate;
private originalDateInput;
static readonly Now: DateTime;
static readonly UtcNow: DateTime;
readonly TotalMilliSeconds: number;
constructor(ms: number);
constructor(date: DateTime);
constructor(momentInput: moment.MomentInput);
constructor(ms: number, kind: DateTimeKind);
constructor(year: number, month: number, day: number);
constructor(year: number, month: number, day: number, hour: number, minute: number, second: number);
constructor(year: number, month: number, day: number, hour: number, minute: number, second: number, millisecond: number);
constructor(year: number, month: number, day: number, hour: number, minute: number, second: number, millisecond: number, kind: DateTimeKind);
Add(ts: TimeSpan): DateTime;
Add(quantity: number, unit: moment.unitOfTime.Base): DateTime;
static Compare(x: DateTime, y: DateTime): number;
CompareTo(toDate: DateTime): number;
Difference(toDate: DateTime): TimeSpan;
Format(formatting: string): string;
private static getKindfromMoment(m);
static Parse(value: any, kind?: DateTimeKind): DateTime;
ToISOString(): string;
toString(): string;
utcOffset(value: number): void;
static DateimeStringToTimeZone(dtStr: string, zoneStr: string): DateTime;
static DateTimeToXSDateTime(dateTime: DateTime): string;
static DateTimeToXSDate(date: DateTime): string;
static MinValue: DateTime;
static MaxValue: DateTime;
readonly Date: DateTime;
readonly Day: number;
readonly DayOfWeek: DayOfWeek;
readonly DayOfYear: number;
readonly Hour: number;
readonly Kind: DateTimeKind;
readonly Millisecond: number;
readonly Minute: number;
readonly Month: number;
readonly Second: number;
readonly TimeOfDay: TimeSpan;
readonly Today: DateTime;
readonly Year: number;
AddDays(days: number): DateTime;
AddHours(hours: number): DateTime;
AddMilliseconds(ms: number): DateTime;
AddMinutes(minutes: number): DateTime;
AddMonths(months: number): DateTime;
AddSeconds(seconds: number): DateTime;
AddYears(years: number): DateTime;
static DaysInMonth(year: number, month: number): number;
Equals(value: any | DateTime): boolean;
static Equals(t1: DateTime, t2: DateTime): boolean;
IsDaylightSavingTime(): boolean;
/**
* Checks whether a given year is a leap year. This method returns true if year is a leap year, or false if not.
* @param {number} year
*/
static IsLeapYear(year: number): boolean;
static SpecifyKind(value: DateTime, kind: DateTimeKind): DateTime;
Subtract(date: DateTime): TimeSpan;
Subtract(ts: TimeSpan): DateTime;
ToLocalTime(): DateTime;
ToLongDateString(): string;
ToLongTimeString(): string;
ToShortDateString(): string;
ToShortTimeString(): string;
ToString(): string;
ToUniversalTime(): DateTime;
static TryParse(s: string | moment.MomentInput, outDate: IOutParam<DateTime>): boolean;
valueOf(): number;
}
export declare enum DateTimeStyles {
None = 0,
AllowLeadingWhite = 1,
AllowTrailingWhite = 2,
/**
* Summary:
* Extra white-space characters in the middle of the string must be ignored during
* parsing, except if they occur in the System.Globalization.DateTimeFormatInfo
* format patterns.
*/
AllowInnerWhite = 4,
/**
* Summary:
* Extra white-space characters anywhere in the string must be ignored during parsing,
* except if they occur in the System.Globalization.DateTimeFormatInfo format patterns.
* This value is a combination of the System.Globalization.DateTimeStyles.AllowLeadingWhite,
* System.Globalization.DateTimeStyles.AllowTrailingWhite, and System.Globalization.DateTimeStyles.AllowInnerWhite
* values.
*/
AllowWhiteSpaces = 7,
NoCurrentDateDefault = 8,
AdjustToUniversal = 16,
AssumeLocal = 32,
AssumeUniversal = 64,
RoundtripKind = 128,
}
export declare var unitOfTime: {
"year": "s" | "m" | "h" | "d" | "M" | "y" | "year" | "years" | "month" | "months" | "week" | "weeks" | "w" | "day" | "days" | "hour" | "hours" | "minute" | "minutes" | "second" | "seconds" | "millisecond" | "milliseconds" | "ms";
"years": "s" | "m" | "h" | "d" | "M" | "y" | "year" | "years" | "month" | "months" | "week" | "weeks" | "w" | "day" | "days" | "hour" | "hours" | "minute" | "minutes" | "second" | "seconds" | "millisecond" | "milliseconds" | "ms";
"y": "s" | "m" | "h" | "d" | "M" | "y" | "year" | "years" | "month" | "months" | "week" | "weeks" | "w" | "day" | "days" | "hour" | "hours" | "minute" | "minutes" | "second" | "seconds" | "millisecond" | "milliseconds" | "ms";
"month": "s" | "m" | "h" | "d" | "M" | "y" | "year" | "years" | "month" | "months" | "week" | "weeks" | "w" | "day" | "days" | "hour" | "hours" | "minute" | "minutes" | "second" | "seconds" | "millisecond" | "milliseconds" | "ms";
"months": "s" | "m" | "h" | "d" | "M" | "y" | "year" | "years" | "month" | "months" | "week" | "weeks" | "w" | "day" | "days" | "hour" | "hours" | "minute" | "minutes" | "second" | "seconds" | "millisecond" | "milliseconds" | "ms";
"M": "s" | "m" | "h" | "d" | "M" | "y" | "year" | "years" | "month" | "months" | "week" | "weeks" | "w" | "day" | "days" | "hour" | "hours" | "minute" | "minutes" | "second" | "seconds" | "millisecond" | "milliseconds" | "ms";
"week": "s" | "m" | "h" | "d" | "M" | "y" | "year" | "years" | "month" | "months" | "week" | "weeks" | "w" | "day" | "days" | "hour" | "hours" | "minute" | "minutes" | "second" | "seconds" | "millisecond" | "milliseconds" | "ms";
"weeks": "s" | "m" | "h" | "d" | "M" | "y" | "year" | "years" | "month" | "months" | "week" | "weeks" | "w" | "day" | "days" | "hour" | "hours" | "minute" | "minutes" | "second" | "seconds" | "millisecond" | "milliseconds" | "ms";
"w": "s" | "m" | "h" | "d" | "M" | "y" | "year" | "years" | "month" | "months" | "week" | "weeks" | "w" | "day" | "days" | "hour" | "hours" | "minute" | "minutes" | "second" | "seconds" | "millisecond" | "milliseconds" | "ms";
"day": "s" | "m" | "h" | "d" | "M" | "y" | "year" | "years" | "month" | "months" | "week" | "weeks" | "w" | "day" | "days" | "hour" | "hours" | "minute" | "minutes" | "second" | "seconds" | "millisecond" | "milliseconds" | "ms";
"days": "s" | "m" | "h" | "d" | "M" | "y" | "year" | "years" | "month" | "months" | "week" | "weeks" | "w" | "day" | "days" | "hour" | "hours" | "minute" | "minutes" | "second" | "seconds" | "millisecond" | "milliseconds" | "ms";
"d": "s" | "m" | "h" | "d" | "M" | "y" | "year" | "years" | "month" | "months" | "week" | "weeks" | "w" | "day" | "days" | "hour" | "hours" | "minute" | "minutes" | "second" | "seconds" | "millisecond" | "milliseconds" | "ms";
"hour": "s" | "m" | "h" | "d" | "M" | "y" | "year" | "years" | "month" | "months" | "week" | "weeks" | "w" | "day" | "days" | "hour" | "hours" | "minute" | "minutes" | "second" | "seconds" | "millisecond" | "milliseconds" | "ms";
"hours": "s" | "m" | "h" | "d" | "M" | "y" | "year" | "years" | "month" | "months" | "week" | "weeks" | "w" | "day" | "days" | "hour" | "hours" | "minute" | "minutes" | "second" | "seconds" | "millisecond" | "milliseconds" | "ms";
"h": "s" | "m" | "h" | "d" | "M" | "y" | "year" | "years" | "month" | "months" | "week" | "weeks" | "w" | "day" | "days" | "hour" | "hours" | "minute" | "minutes" | "second" | "seconds" | "millisecond" | "milliseconds" | "ms";
"minute": "s" | "m" | "h" | "d" | "M" | "y" | "year" | "years" | "month" | "months" | "week" | "weeks" | "w" | "day" | "days" | "hour" | "hours" | "minute" | "minutes" | "second" | "seconds" | "millisecond" | "milliseconds" | "ms";
"minutes": "s" | "m" | "h" | "d" | "M" | "y" | "year" | "years" | "month" | "months" | "week" | "weeks" | "w" | "day" | "days" | "hour" | "hours" | "minute" | "minutes" | "second" | "seconds" | "millisecond" | "milliseconds" | "ms";
"m": "s" | "m" | "h" | "d" | "M" | "y" | "year" | "years" | "month" | "months" | "week" | "weeks" | "w" | "day" | "days" | "hour" | "hours" | "minute" | "minutes" | "second" | "seconds" | "millisecond" | "milliseconds" | "ms";
"second": "s" | "m" | "h" | "d" | "M" | "y" | "year" | "years" | "month" | "months" | "week" | "weeks" | "w" | "day" | "days" | "hour" | "hours" | "minute" | "minutes" | "second" | "seconds" | "millisecond" | "milliseconds" | "ms";
"seconds": "s" | "m" | "h" | "d" | "M" | "y" | "year" | "years" | "month" | "months" | "week" | "weeks" | "w" | "day" | "days" | "hour" | "hours" | "minute" | "minutes" | "second" | "seconds" | "millisecond" | "milliseconds" | "ms";
"s": "s" | "m" | "h" | "d" | "M" | "y" | "year" | "years" | "month" | "months" | "week" | "weeks" | "w" | "day" | "days" | "hour" | "hours" | "minute" | "minutes" | "second" | "seconds" | "millisecond" | "milliseconds" | "ms";
"millisecond": "s" | "m" | "h" | "d" | "M" | "y" | "year" | "years" | "month" | "months" | "week" | "weeks" | "w" | "day" | "days" | "hour" | "hours" | "minute" | "minutes" | "second" | "seconds" | "millisecond" | "milliseconds" | "ms";
"milliseconds": "s" | "m" | "h" | "d" | "M" | "y" | "year" | "years" | "month" | "months" | "week" | "weeks" | "w" | "day" | "days" | "hour" | "hours" | "minute" | "minutes" | "second" | "seconds" | "millisecond" | "milliseconds" | "ms";
"ms": "s" | "m" | "h" | "d" | "M" | "y" | "year" | "years" | "month" | "months" | "week" | "weeks" | "w" | "day" | "days" | "hour" | "hours" | "minute" | "minutes" | "second" | "seconds" | "millisecond" | "milliseconds" | "ms";
};
export declare module StringHelper {
function IsNullOrEmpty(str: string): boolean;
function Format(source: string, ...args: any[]): string;
var Empty: string;
function Repeat(str?: string, times?: number): string;
function Tabs(times?: number): string;
function Compare(lhs: string, rhs: string, ignoreCase?: boolean): number;
}
export declare module EnumHelper {
function HasFlag(flags: number, checkFlag: number): boolean;
/**
* Writes "," separated values from Enumertion anf enum Flags
*
* @export
* @param {*} enumObj The Enumeration Object itself, for example 'ExchangeVersion' as the parameter Value.
* @param {number} checkFlag Flag value(s) to convert to string
* @param {boolean} [includeZero=false] include the default 0 value in the string, usually false
* @returns {string} returns the coma "," separated string representation of Flags
*/
function ToString(enumObj: any, checkFlag: number, includeZero?: boolean): string;
}
export declare module ArrayHelper {
function AddRange<T>(array: Array<T>, items: Array<T>, uniqueOnly?: boolean): void;
function RemoveEntry<T>(array: Array<T>, entry: T, comparer?: (T) => boolean): boolean;
function Find<T>(array: Array<T>, comparer: (item: T) => boolean): T;
function IndexOf<T>(array: Array<T>, comparer: (item: T) => boolean): number;
function OfType<T, U>(array: Array<T>, comparer: (item: T) => boolean): U[];
/**dirty calculation of max dimension, will return more than one if array contains any array element in first testElementCount items */
function Rank(array: any[], testElementCount?: number): number;
function isArray<T>(obj: any): obj is T[];
}
export declare class TypeSystem {
static GetProperties(obj: any): string[];
static GetMethods(obj: any): string[];
static GetObjectStaticPropertiesByClassName(className: string): string[];
static GetObjectMethodsByClassName(className: string, instanceMethod?: boolean): string[];
static GetObjectByClassName(className: string): any;
static GetJsObjectTypeName(obj: any): string;
static GetJsObjectOnlyChildName(obj: any): string;
static GetJsObjectTypeName_old(obj: any): string;
static IsGenericType(value: any): boolean;
}
export declare class xml2JsObject {
typeIncludedNS: string[];
parseXMLNode(xmlNode: Node, soapMode?: boolean, xmlnsRoot?: any): any;
private addXMLNS(xmlnsObj, xmlnsName, xmlnsValue, xmlnsAttrName?);
private containsXMLNS(obj, xmlnsName, xmlnsAttrName?);
}
export interface ParsedUrl {
scheme: string;
authority: string;
path: string;
query: string;
fragment: string;
}
export declare class UriHelper {
static parseString(url: string): ParsedUrl;
static getDomain(url: string): string;
static getHost(url: string): string;
}
export declare var DOMParser: any;
export declare class Convert {
static toInt(value: any, zeroIfError?: boolean): number;
static toNumber(value: any): number;
static toBool(value: any, truefalseString?: boolean, throwIfNotBool?: boolean): boolean;
static FromBase64String(encodedStr: string): number[];
static ToBase64String(byteArray: number[]): string;
}
export declare module base64Helper {
function btoa(textToEncode: string): string;
function atob(textToDecode: string): string;
}
/** Guid proxy class */
export declare class Guid {
static Empty: Guid;
private guid;
constructor();
constructor(str: string);
ToString(): string;
toString(): string;
static NewGuid(): Guid;
static Parse(str: string): Guid;
static TryParse(str: any, _parsed_output?: {
guid: Guid;
}): boolean;
}
export interface IXHROptions {
type?: string;
url: string;
user?: string;
password?: string;
headers?: any;
data?: any;
responseType?: string;
customRequestInitializer?: (request: XMLHttpRequest) => void;
}
export interface IXHRProgress {
type: 'data' | 'header' | 'end' | 'error';
data?: string;
chunk?: string;
progress?: number;
done?: boolean;
headers?: any;
originalHeaders?: any;
error?: any;
}
export interface IXHRApi {
xhr(xhroptions: IXHROptions, progressDelegate?: (progressData: IXHRProgress) => void): Promise<XMLHttpRequest>;
xhrStream(xhroptions: IXHROptions, progressDelegate: (progressData: IXHRProgress) => void): Promise<XMLHttpRequest>;
disconnect(): void;
apiName?: string;
}
/**
* Represents the completion of an asynchronous operation
* @typescript 2.1.1 lib.es6.d.ts Promise Description
*/
export interface Promise<T> {
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then<TResult>(onfulfilled: ((value: T) => T | PromiseLike<T>) | undefined | null, onrejected: (reason: any) => TResult | PromiseLike<TResult>): Promise<T | TResult>;
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then<TResult>(onfulfilled: (value: T) => TResult | PromiseLike<TResult>, onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): Promise<TResult>;
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then<TResult1, TResult2>(onfulfilled: (value: T) => TResult1 | PromiseLike<TResult1>, onrejected: (reason: any) => TResult2 | PromiseLike<TResult2>): Promise<TResult1 | TResult2>;
/**
* Attaches a callback for only the rejection of the Promise.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of the callback.
*/
catch(onrejected?: ((reason: any) => T | PromiseLike<T>) | undefined | null): Promise<T>;
/**
* Attaches a callback for only the rejection of the Promise.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of the callback.
*/
catch<TResult>(onrejected: (reason: any) => TResult | PromiseLike<TResult>): Promise<T | TResult>;
}
export interface PromiseLike<T> {
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then(onfulfilled?: ((value: T) => T | PromiseLike<T>) | undefined | null, onrejected?: ((reason: any) => T | PromiseLike<T>) | undefined | null): PromiseLike<T>;
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then<TResult>(onfulfilled: ((value: T) => T | PromiseLike<T>) | undefined | null, onrejected: (reason: any) => TResult | PromiseLike<TResult>): PromiseLike<T | TResult>;
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then<TResult>(onfulfilled: (value: T) => TResult | PromiseLike<TResult>, onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): PromiseLike<TResult>;
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then<TResult1, TResult2>(onfulfilled: (value: T) => TResult1 | PromiseLike<TResult1>, onrejected: (reason: any) => TResult2 | PromiseLike<TResult2>): PromiseLike<TResult1 | TResult2>;
}
export interface PromiseConstructor {
/**
* A reference to the prototype.
*/
readonly prototype: Promise<any>;
/**
* Creates a new Promise.
* @param executor A callback used to initialize the promise. This callback is passed two arguments:
* a resolve callback used resolve the promise with a value or the result of another promise,
* and a reject callback used to reject the promise with a provided reason or error.
*/
new <T>(executor: (resolve: (value?: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void): Promise<T>;
/**
* Creates a Promise that is resolved with an array of results when all of the provided Promises
* resolve, or rejected when any Promise is rejected.
* @param values An array of Promises.
* @returns A new Promise.
*/
all<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike<T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>, T8 | PromiseLike<T8>, T9 | PromiseLike<T9>, T10 | PromiseLike<T10>]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10]>;
/**
* Creates a Promise that is resolved with an array of results when all of the provided Promises
* resolve, or rejected when any Promise is rejected.
* @param values An array of Promises.
* @returns A new Promise.
*/
all<T1, T2, T3, T4, T5, T6, T7, T8, T9>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike<T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>, T8 | PromiseLike<T8>, T9 | PromiseLike<T9>]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8, T9]>;
/**
* Creates a Promise that is resolved with an array of results when all of the provided Promises
* resolve, or rejected when any Promise is rejected.
* @param values An array of Promises.
* @returns A new Promise.
*/
all<T1, T2, T3, T4, T5, T6, T7, T8>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike<T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>, T8 | PromiseLike<T8>]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8]>;
/**
* Creates a Promise that is resolved with an array of results when all of the provided Promises
* resolve, or rejected when any Promise is rejected.
* @param values An array of Promises.
* @returns A new Promise.
*/
all<T1, T2, T3, T4, T5, T6, T7>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike<T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>]): Promise<[T1, T2, T3, T4, T5, T6, T7]>;
/**
* Creates a Promise that is resolved with an array of results when all of the provided Promises
* resolve, or rejected when any Promise is rejected.
* @param values An array of Promises.
* @returns A new Promise.
*/
all<T1, T2, T3, T4, T5, T6>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike<T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>]): Promise<[T1, T2, T3, T4, T5, T6]>;
/**
* Creates a Promise that is resolved with an array of results when all of the provided Promises
* resolve, or rejected when any Promise is rejected.
* @param values An array of Promises.
* @returns A new Promise.
*/
all<T1, T2, T3, T4, T5>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike<T4>, T5 | PromiseLike<T5>]): Promise<[T1, T2, T3, T4, T5]>;
/**
* Creates a Promise that is resolved with an array of results when all of the provided Promises
* resolve, or rejected when any Promise is rejected.
* @param values An array of Promises.
* @returns A new Promise.
*/
all<T1, T2, T3, T4>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike<T4>]): Promise<[T1, T2, T3, T4]>;
/**
* Creates a Promise that is resolved with an array of results when all of the provided Promises
* resolve, or rejected when any Promise is rejected.
* @param values An array of Promises.
* @returns A new Promise.
*/
all<T1, T2, T3>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>]): Promise<[T1, T2, T3]>;
/**
* Creates a Promise that is resolved with an array of results when all of the provided Promises
* resolve, or rejected when any Promise is rejected.
* @param values An array of Promises.
* @returns A new Promise.
*/
all<T1, T2>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>]): Promise<[T1, T2]>;
/**
* Creates a Promise that is resolved with an array of results when all of the provided Promises
* resolve, or rejected when any Promise is rejected.
* @param values An array of Promises.
* @returns A new Promise.
*/
all<T>(values: (T | PromiseLike<T>)[]): Promise<T[]>;
/**
* Creates a Promise that is resolved or rejected when any of the provided Promises are resolved
* or rejected.
* @param values An array of Promises.
* @returns A new Promise.
*/
race<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike<T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>, T8 | PromiseLike<T8>, T9 | PromiseLike<T9>, T10 | PromiseLike<T10>]): Promise<T1 | T2 | T3 | T4 | T5 | T6 | T7 | T8 | T9 | T10>;
/**
* Creates a Promise that is resolved or rejected when any of the provided Promises are resolved
* or rejected.
* @param values An array of Promises.
* @returns A new Promise.
*/
race<T1, T2, T3, T4, T5, T6, T7, T8, T9>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike<T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>, T8 | PromiseLike<T8>, T9 | PromiseLike<T9>]): Promise<T1 | T2 | T3 | T4 | T5 | T6 | T7 | T8 | T9>;
/**
* Creates a Promise that is resolved or rejected when any of the provided Promises are resolved
* or rejected.
* @param values An array of Promises.
* @returns A new Promise.
*/
race<T1, T2, T3, T4, T5, T6, T7, T8>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike<T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>, T8 | PromiseLike<T8>]): Promise<T1 | T2 | T3 | T4 | T5 | T6 | T7 | T8>;
/**
* Creates a Promise that is resolved or rejected when any of the provided Promises are resolved
* or rejected.
* @param values An array of Promises.
* @returns A new Promise.
*/
race<T1, T2, T3, T4, T5, T6, T7>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike<T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>]): Promise<T1 | T2 | T3 | T4 | T5 | T6 | T7>;
/**
* Creates a Promise that is resolved or rejected when any of the provided Promises are resolved
* or rejected.
* @param values An array of Promises.
* @returns A new Promise.
*/
race<T1, T2, T3, T4, T5, T6>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike<T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>]): Promise<T1 | T2 | T3 | T4 | T5 | T6>;
/**
* Creates a Promise that is resolved or rejected when any of the provided Promises are resolved
* or rejected.
* @param values An array of Promises.
* @returns A new Promise.
*/
race<T1, T2, T3, T4, T5>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike<T4>, T5 | PromiseLike<T5>]): Promise<T1 | T2 | T3 | T4 | T5>;
/**
* Creates a Promise that is resolved or rejected when any of the provided Promises are resolved
* or rejected.
* @param values An array of Promises.
* @returns A new Promise.
*/
race<T1, T2, T3, T4>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike<T4>]): Promise<T1 | T2 | T3 | T4>;
/**
* Creates a Promise that is resolved or rejected when any of the provided Promises are resolved
* or rejected.
* @param values An array of Promises.
* @returns A new Promise.
*/
race<T1, T2, T3>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>]): Promise<T1 | T2 | T3>;
/**
* Creates a Promise that is resolved or rejected when any of the provided Promises are resolved
* or rejected.
* @param values An array of Promises.
* @returns A new Promise.
*/
race<T1, T2>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>]): Promise<T1 | T2>;
/**
* Creates a Promise that is resolved or rejected when any of the provided Promises are resolved
* or rejected.
* @param values An array of Promises.
* @returns A new Promise.
*/
race<T>(values: (T | PromiseLike<T>)[]): Promise<T>;
/**
* Creates a new rejected promise for the provided reason.
* @param reason The reason the promise was rejected.
* @returns A new rejected Promise.
*/
reject(reason: any): Promise<never>;
/**
* Creates a new rejected promise for the provided reason.
* @param reason The reason the promise was rejected.
* @returns A new rejected Promise.
*/
reject<T>(reason: any): Promise<T>;
/**
* Creates a new resolved promise for the provided value.
* @param value A promise.
* @returns A promise whose internal state matches the provided promise.
*/
resolve<T>(value: T | PromiseLike<T>): Promise<T>;
/**
* Creates a new resolved promise .
* @returns A resolved promise.
*/
resolve(): Promise<void>;
}
export declare var Promise: PromiseConstructor;
export declare function ConfigurePromise(promise: PromiseConstructor): void;
export declare class Strings {
static CannotRemoveSubscriptionFromLiveConnection: string;
static ReadAccessInvalidForNonCalendarFolder: string;
static PropertyDefinitionPropertyMustBeSet: string;
static ArgumentIsBlankString: string;
static InvalidAutodiscoverDomainsCount: string;
static MinutesMustBeBetween0And1439: string;
static DeleteInvalidForUnsavedUserConfiguration: string;
static PeriodNotFound: string;
static InvalidAutodiscoverSmtpAddress: string;
static InvalidOAuthToken: string;
static MaxScpHopsExceeded: string;
static ContactGroupMemberCannotBeUpdatedWithoutBeingLoadedFirst: string;
static CurrentPositionNotElementStart: string;
static CannotConvertBetweenTimeZones: string;
static FrequencyMustBeBetween1And1440: string;
static CannotSetDelegateFolderPermissionLevelToCustom: string;
static PartnerTokenIncompatibleWithRequestVersion: string;
static InvalidAutodiscoverRequest: string;
static InvalidAsyncResult: string;
static InvalidMailboxType: string;
static AttachmentCollectionNotLoaded: string;
static ParameterIncompatibleWithRequestVersion: string;
static DayOfWeekIndexMustBeSpecifiedForRecurrencePattern: string;
static WLIDCredentialsCannotBeUsedWithLegacyAutodiscover: string;
static PropertyCannotBeUpdated: string;
static IncompatibleTypeForArray: string;
static PercentCompleteMustBeBetween0And100: string;
static AutodiscoverServiceIncompatibleWithRequestVersion: string;
static InvalidAutodiscoverSmtpAddressesCount: string;
static ServiceUrlMustBeSet: string;
static ItemTypeNotCompatible: string;
static AttachmentItemTypeMismatch: string;
static UnsupportedWebProtocol: string;
static EnumValueIncompatibleWithRequestVersion: string;
static UnexpectedElement: string;
static InvalidOrderBy: string;
static NoAppropriateConstructorForItemClass: string;
static SearchFilterAtIndexIsInvalid: string;
static DeletingThisObjectTypeNotAuthorized: string;
static PropertyCannotBeDeleted: string;
static ValuePropertyMustBeSet: string;
static TagValueIsOutOfRange: string;
static ItemToUpdateCannotBeNullOrNew: string;
static SearchParametersRootFolderIdsEmpty: string;
static MailboxQueriesParameterIsNotSpecified: string;
static FolderPermissionHasInvalidUserId: string;
static InvalidAutodiscoverDomain: string;
static MailboxesParameterIsNotSpecified: string;
static ParentFolderDoesNotHaveId: string;
static DayOfMonthMustBeSpecifiedForRecurrencePattern: string;
static ClassIncompatibleWithRequestVersion: string;
static CertificateHasNoPrivateKey: string;
static InvalidOrUnsupportedTimeZoneDefinition: string;
static HourMustBeBetween0And23: string;
static TimeoutMustBeBetween1And1440: string;
static CredentialsRequired: string;
static MustLoadOrAssignPropertyBeforeAccess: string;
static InvalidAutodiscoverServiceResponse: string;
static CannotCallConnectDuringLiveConnection: string;
static ObjectDoesNotHaveId: string;
static CannotAddSubscriptionToLiveConnection: string;
static MaxChangesMustBeBetween1And512: string;
static AttributeValueCannotBeSerialized: string;
static NumberOfDaysMustBePositive: string;
static SearchFilterMustBeSet: string;
static EndDateMustBeGreaterThanStartDate: string;
static InvalidDateTime: string;
static UpdateItemsDoesNotAllowAttachments: string;
static TimeoutMustBeGreaterThanZero: string;
static AutodiscoverInvalidSettingForOutlookProvider: string;
static InvalidRedirectionResponseReturned: string;
static ExpectedStartElement: string;
static DaysOfTheWeekNotSpecified: string;
static FolderToUpdateCannotBeNullOrNew: string;
static PartnerTokenRequestRequiresUrl: string;
static NumberOfOccurrencesMustBeGreaterThanZero: string;
static StartTimeZoneRequired: string;
static PropertyAlreadyExistsInOrderByCollection: string;
static ItemAttachmentMustBeNamed: string;
static InvalidAutodiscoverSettingsCount: string;
static LoadingThisObjectTypeNotSupported: string;
static UserIdForDelegateUserNotSpecified: string;
static PhoneCallAlreadyDisconnected: string;
static OperationDoesNotSupportAttachments: string;
static UnsupportedTimeZonePeriodTransitionTarget: string;
static IEnumerableDoesNotContainThatManyObject: string;
static UpdateItemsDoesNotSupportNewOrUnchangedItems: string;
static ValidationFailed: string;
static InvalidRecurrencePattern: string;
static TimeWindowStartTimeMustBeGreaterThanEndTime: string;
static InvalidAttributeValue: string;
static FileAttachmentContentIsNotSet: string;
static AutodiscoverDidNotReturnEwsUrl: string;
static RecurrencePatternMustHaveStartDate: string;
static OccurrenceIndexMustBeGreaterThanZero: string;
static ServiceResponseDoesNotContainXml: string;
static ItemIsOutOfDate: string;
static MinuteMustBeBetween0And59: string;
static NoSoapOrWsSecurityEndpointAvailable: string;
static ElementNotFound: string;
static IndexIsOutOfRange: string;
static PropertyIsReadOnly: string;
static AttachmentCreationFailed: string;
static DayOfMonthMustBeBetween1And31: string;
static ServiceRequestFailed: string;
static DelegateUserHasInvalidUserId: string;
static SearchFilterComparisonValueTypeIsNotSupported: string;
static ElementValueCannotBeSerialized: string;
static PropertyValueMustBeSpecifiedForRecurrencePattern: string;
static NonSummaryPropertyCannotBeUsed: string;
static HoldIdParameterIsNotSpecified: string;
static TransitionGroupNotFound: string;
static ObjectTypeNotSupported: string;
static InvalidTimeoutValue: string;
static AutodiscoverRedirectBlocked: string;
static PropertySetCannotBeModified: string;
static DayOfTheWeekMustBeSpecifiedForRecurrencePattern: string;
static ServiceObjectAlreadyHasId: string;
static MethodIncompatibleWithRequestVersion: string;
static OperationNotSupportedForPropertyDefinitionType: string;
static InvalidElementStringValue: string;
static CollectionIsEmpty: string;
static InvalidFrequencyValue: string;
static UnexpectedEndOfXmlDocument: string;
static FolderTypeNotCompatible: string;
static RequestIncompatibleWithRequestVersion: string;
static PropertyTypeIncompatibleWhenUpdatingCollection: string;
static ServerVersionNotSupported: string;
static DurationMustBeSpecifiedWhenScheduled: string;
static NoError: string;
static CannotUpdateNewUserConfiguration: string;
static ObjectTypeIncompatibleWithRequestVersion: string;
static NullStringArrayElementInvalid: string;
static HttpsIsRequired: string;
static MergedFreeBusyIntervalMustBeSmallerThanTimeWindow: string;
static SecondMustBeBetween0And59: string;
static AtLeastOneAttachmentCouldNotBeDeleted: string;
static IdAlreadyInList: string;
static BothSearchFilterAndQueryStringCannotBeSpecified: string;
static AdditionalPropertyIsNull: string;
static InvalidEmailAddress: string;
static MaximumRedirectionHopsExceeded: string;
static AutodiscoverCouldNotBeLocated: string;
static NoSubscriptionsOnConnection: string;
static PermissionLevelInvalidForNonCalendarFolder: string;
static InvalidAuthScheme: string;
static ValuePropertyNotLoaded: string;
static PropertyIncompatibleWithRequestVersion: string;
static OffsetMustBeGreaterThanZero: string;
static CreateItemsDoesNotAllowAttachments: string;
static PropertyDefinitionTypeMismatch: string;
static IntervalMustBeGreaterOrEqualToOne: string;
static CannotSetPermissionLevelToCustom: string;
static CannotAddRequestHeader: string;
static ArrayMustHaveAtLeastOneElement: string;
static MonthMustBeSpecifiedForRecurrencePattern: string;
static ValueOfTypeCannotBeConverted: string;
static ValueCannotBeConverted: string;
static ServerErrorAndStackTraceDetails: string;
static FolderPermissionLevelMustBeSet: string;
static AutodiscoverError: string;
static ArrayMustHaveSingleDimension: string;
static InvalidPropertyValueNotInRange: string;
static RegenerationPatternsOnlyValidForTasks: string;
static ItemAttachmentCannotBeUpdated: string;
static EqualityComparisonFilterIsInvalid: string;
static AutodiscoverServiceRequestRequiresDomainOrUrl: string;
static InvalidUser: string;
static AccountIsLocked: string;
static InvalidDomainName: string;
static TooFewServiceReponsesReturned: string;
static CannotSubscribeToStatusEvents: string;
static InvalidSortByPropertyForMailboxSearch: string;
static UnexpectedElementType: string;
static ValueMustBeGreaterThanZero: string;
static AttachmentCannotBeUpdated: string;
static CreateItemsDoesNotHandleExistingItems: string;
static MultipleContactPhotosInAttachment: string;
static InvalidRecurrenceRange: string;
static CannotSetBothImpersonatedAndPrivilegedUser: string;
static NewMessagesWithAttachmentsCannotBeSentDirectly: string;
static CannotCallDisconnectWithNoLiveConnection: string;
static IdPropertyMustBeSet: string;
static ValuePropertyNotAssigned: string;
static ZeroLengthArrayInvalid: string;
static HoldMailboxesParameterIsNotSpecified: string;
static CannotSaveNotNewUserConfiguration: string;
static ServiceObjectDoesNotHaveId: string;
static PropertyCollectionSizeMismatch: string;
static XsDurationCouldNotBeParsed: string;
static UnknownTimeZonePeriodTransitionType: string;
static UserPhotoSizeNotSpecified: string;
static JsonSerializationNotImplemented: string;
static JsonDeserializationNotImplemented: string;
}
/**
* Uri: c# uri shim for js
*/
export declare class Uri {
private url;
private m_scheme;
/**returns string url component, no transformations yet */
readonly AbsoluteUri: string;
readonly Host: string;
readonly Scheme: string;
constructor(url: string);
ToString(): string;
toString(): string;
static ParseString(url: string): ParsedUrl;
static UriSchemeHttp: string;
static UriSchemeHttps: string;
}
export declare class XHRFactory {
static xhrHelper: IXHRApi;
static readonly XHRApi: IXHRApi;
}
export declare class TimeSpan {
private readonly duration;
private getMomentDuration;
private setMomentDuration;
constructor(ms: number);
constructor(duration: moment.DurationInputArg1 | moment.DurationInputObject);
constructor(hours: number, minutes: number, seconds: any);
constructor(days: number, hours: number, minutes: number, seconds: any);
constructor(days: number, hours: number, minutes: number, seconds: number, milliseconds: any);
humanize(withSuffix?: boolean): string;
as(units: moment.unitOfTime.Base): number;
readonly Milliseconds: number;
readonly TotalMilliseconds: number;
readonly Seconds: number;
readonly TotalSeconds: number;
readonly Minutes: number;
readonly TotalMinutes: number;
readonly Hours: number;
readonly TotalHours: number;
readonly Days: number;
readonly TotalDays: number;
readonly Months: number;
readonly TotalMonths: number;
readonly Years: number;
readonly TotalYears: number;
readonly Weeks: number;
readonly Totalweeks: number;
Add(num: number, unit: moment.unitOfTime.Base): TimeSpan;
Add(ms: number): TimeSpan;
Add(ts: TimeSpan): TimeSpan;
Subtract(n: number, p: moment.unitOfTime.Base): TimeSpan;
Subtract(n: number): TimeSpan;
Subtract(d: TimeSpan): TimeSpan;
ToISOString(): string;
ToJSON(): string;
private static MaxSeconds;
private static MinSeconds;
private static MaxMilliSeconds;
private static MinMilliSeconds;
static readonly Zero: TimeSpan;
static readonly MaxValueTimeSpan: TimeSpan;
static readonly MinValueTimeSpan: TimeSpan;
static FromDays(value: number): TimeSpan;
static FromHours(value: number): TimeSpan;
static FromMilliseconds(value: number): TimeSpan;
static FromMinutes(value: number): TimeSpan;
static FromSeconds(value: number): TimeSpan;
valueOf(): number;
toString(): string;
}
export declare let TimeZoneMappingData: {
"America/Aruba": string;
"Europe/Copenhagen": string;
"Europe/Brussels": string;
"Africa/Tunis": string;
"America/Pangnirtung": string;
"Africa/Malabo": string;
"America/Guyana": string;
"W. Mongolia Standard Time": (string | number | boolean | string[])[];
"Russia Time Zone 10": (string | number | boolean | string[])[];
"Ekaterinburg Standard Time": (string | number | boolean | string[])[];
"Australia/Lindeman": string;
"Asia/Famagusta": string;
"America/Mendoza": string;
"Indian/Cocos": string;
"America/North_Dakota/Beulah": string;
"America/Los_Angeles": string;
"Sakhalin Standard Time": (string | number | boolean | string[])[];
"Altai Standard Time": (string | number | boolean | string[])[];
"Pacific/Guam": string;
"Pacific/Nauru": string;
"Africa/Brazzaville": string;
"Europe/Jersey": string;
"Newfoundland Standard Time": (string | number | boolean | string[])[];
"Europe/Vaduz": string;
"Pacific/Ponape": string;
"America/Indiana/Knox": string;
"America/Argentina/Ushuaia": string;
"Tasmania Standard Time": (string | number | boolean | string[])[];
"Asia/Jakarta": string;
"Europe/Vilnius": string;
"Africa/Kigali": string;
"America/St_Kitts": string;
"Indian/Kerguelen": string;
"Africa/Libreville": string;
"West Pacific Standard Time": (string | number | boolean | string[])[];
"Atlantic Standard Time": (string | number | boolean | string[])[];
"W. Central Africa Standard Time": (string | number | boolean | string[])[];
"Etc/GMT+8": string;
"Atlantic/Faeroe": string;
"America/Sitka": string;
"UTC": (string | number | boolean | string[])[];
"Fiji Standard Time": (string | number | boolean | string[])[];
"Pacific/Kosrae": string;
"West Asia Standard Time": (string | number | boolean | string[])[];
"Europe/Belgrade": string;
"Mid-Atlantic Standard Time": (string | number | boolean)[];
"Magallanes Standard Time": (string | number | boolean)[];
"Kamchatka Standard Time": (string | number | boolean)[];
"America/Guatemala": string;
"Asia/Singapore": string;
"Indian/Mayotte": string;
"Nepal Standard Time": (string | number | boolean | string[])[];
"UTC-11": (string | number | boolean | string[])[];
"Asia/Qatar": string;
"Georgian Standard Time": (string | number | boolean | string[])[];
"Europe/Simferopol": string;
"Etc/GMT+10": string;
"Australia/Adelaide": string;
"America/Fort_Nelson": string;
"Transbaikal Standard Time": (string | number | boolean | string[])[];
"Aleutian Standard Time": (string | number | boolean | string[])[];
"America/Cayman": string;
"Pacific Standard Time (Mexico)": (string | number | boolean | string[])[];
"America/Thule": string;
"America/Puerto_Rico": string;
"Asia/Dili": string;
"Pacific/Kiritimati": string;
"Europe/Ljubljana": string;
"Europe/Tirane": string;
"Etc/GMT-5": string;
"Etc/GMT+9": string;
"Europe/Gibraltar": string;
"America/Manaus": string;
"America/Argentina/San_Luis": string;
"Venezuela Standard Time": (string | number | boolean | string[])[];
"Cen. Australia Standard Time": (string | number | boolean | string[])[];
"America/Guayaquil": string;
"Afghanistan Standard Time": (string | number | boolean | string[])[];
"Mauritius Standard Time": (string | number | boolean | string[])[];
"New Zealand Standard Time": (string | number | boolean | string[])[];
"US Mountain Standard Time": (string | number | boolean | string[])[];
"Tokyo Standard Time": (string | number | boolean | string[])[];
"Asia/Sakhalin": string;
"Europe/Astrakhan": string;
"America/Catamarca": string;
"Africa/Lubumbashi": string;
"America/Boise": string;
"America/Glace_Bay": string;
"America/Tegucigalpa": string;
"America/Chicago": string;
"Etc/GMT+6": string;
"Antarctica/Macquarie": string;
"Europe/Kirov": string;
"America/Campo_Grande": string;
"Indian/Mauritius": string;
"America/La_Paz": string;
"Russian Standard Time": (string | number | boolean | string[])[];
"America/Miquelon": string;
"Asia/Tbilisi": string;
"Asia/Aden": string;
"Asia/Tehran": string;
"Asia/Colombo": string;
"America/Lower_Princes": string;
"Azores Standard Time": (string | number | boolean | string[])[];
"America/Santo_Domingo": string;
"Iran Standard Time": (string | number | boolean | string[])[];
"Mountain Standard Time (Mexico)": (string | number | boolean | string[])[];
"Central Europe Standard Time": (string | number | boolean | string[])[];
"Asia/Beirut": string;
"America/Denver": string;
"America/Halifax": string;
"America/Barbados": string;
"Pacific/Noumea": string;
"Jordan Standard Time": (string | number | boolean | string[])[];
"Singapore Standard Time": (string | number | boolean | string[])[];
"Pacific/Rarotonga": string;
"Asia/Saigon": string;
"Europe/Lisbon": string;
"America/Jamaica": string;
"Atlantic/Stanley": string;
"Europe/Sarajevo": string;