ews-js-api-browser
Version:
EWS Managed api in JavaScript fo Ionic and Electron
103 lines • 1.61 MB
JavaScript
var __extends=this&&this.__extends||function(){var extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)if(b.hasOwnProperty(p))d[p]=b[p]};return function(d,b){extendStatics(d,b);function __(){this.constructor=d}d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __)}}();var b64=require("base64-js");var uuid=require("uuid");var moment=require("moment-timezone");
var Dictionary=function(){function Dictionary(keyPickerFunc){this.keys=[];this.keysToObjs={};this.objects={};if(typeof keyPickerFunc!=="function")throw new Error("Dictionary - keyPickerFunc must be a function");this.keyPicker=keyPickerFunc}Object.defineProperty(Dictionary.prototype,"Keys",{get:function(){var keys=[];for(var _a=0,_b=this.keys;_a<_b.length;_a++){var key=_b[_a];keys.push(this.keysToObjs[key])}return keys},enumerable:true,configurable:true});Object.defineProperty(Dictionary.prototype,
"Items",{get:function(){var items=[];for(var _a=0,_b=this.keys;_a<_b.length;_a++){var k=_b[_a];items.push({key:this.keysToObjs[k],value:this.objects[k]})}return items},enumerable:true,configurable:true});Object.defineProperty(Dictionary.prototype,"Values",{get:function(){var ret=[];for(var _a=0,_b=this.keys;_a<_b.length;_a++){var key=_b[_a];ret.push(this.objects[key])}return ret},enumerable:true,configurable:true});Object.defineProperty(Dictionary.prototype,"length",{get:function(){return this.keys.length},
enumerable:true,configurable:true});Object.defineProperty(Dictionary.prototype,"Count",{get:function(){return this.length},enumerable:true,configurable:true});Dictionary.prototype.getStringKeys=function(){return this.keys};Dictionary.prototype.Add=function(key,value){return this.addUpdate(key,value)};Dictionary.prototype.addUpdate=function(key,value){var strKey=this.keyPicker(key);if(StringHelper.IsNullOrEmpty(strKey))throw new Error("Dictionary - invalid key object, keyPicker return null");if(!this.containsKey(strKey))this.keys.push(strKey);
this.keysToObjs[strKey]=key;this.objects[strKey]=value};Dictionary.prototype.set=function(key,value){this.addUpdate(key,value)};Dictionary.prototype.setEntry=function(oldKey,newKey){var strKey=oldKey;if(typeof oldKey!=="string")strKey=this.keyPicker(oldKey);if(StringHelper.IsNullOrEmpty(strKey))throw new Error("Dictionary - invalid key object, keyPicker return null");if(this.containsKey(strKey))throw new Error("Dictionary - does not contain old key");var oldval=this.objects[strKey];this.remove(strKey);
this.addUpdate(newKey,oldval)};Dictionary.prototype.get=function(key){var strKey=key;if(typeof key!=="string")strKey=this.keyPicker(key);if(StringHelper.IsNullOrEmpty(strKey))throw new Error("Dictionary - invalid key object, keyPicker return null");return this.objects[strKey]};Dictionary.prototype.tryGetValue=function(key,outValue){outValue.outValue=null;outValue.success=false;var strKey=key;if(typeof key!=="string")strKey=this.keyPicker(key);if(StringHelper.IsNullOrEmpty(strKey)){outValue.exception=
new Error("Dictionary - invalid key,not a string value or keyPicker return null");return false}if(this.containsKey(strKey)){outValue.outValue=this.objects[strKey];outValue.success=true;return true}return false};Dictionary.prototype.remove=function(key){var strKey=key;if(typeof key!=="string")strKey=this.keyPicker(key);if(StringHelper.IsNullOrEmpty(strKey))throw new Error("Dictionary - invalid key,not a string value or keyPicker return null");if(!this.containsKey(strKey))return false;var keyindex=
this.keys.indexOf(strKey);var delKeyAr=this.keys.splice(keyindex,1);var delkeyObj=delete this.keysToObjs[strKey];var delObj=delete this.objects[strKey];return delKeyAr.length>0&&delkeyObj&&delObj};Dictionary.prototype.containsKey=function(key){var strKey=key;if(typeof key!=="string")strKey=this.keyPicker(key);if(StringHelper.IsNullOrEmpty(strKey))throw new Error("Dictionary - invalid key object, keyPicker return null");if(this.keys.indexOf(strKey)>=0)return true;return false};Dictionary.prototype.clear=
function(){this.keys=[];this.keysToObjs={};this.objects={}};return Dictionary}();exports.Dictionary=Dictionary;var StringPropertyDefinitionBaseDictionary=function(_super){__extends(StringPropertyDefinitionBaseDictionary,_super);function StringPropertyDefinitionBaseDictionary(){return _super!==null&&_super.apply(this,arguments)||this}return StringPropertyDefinitionBaseDictionary}(Dictionary);exports.StringPropertyDefinitionBaseDictionary=StringPropertyDefinitionBaseDictionary;
var PropertyDefinitionDictionary=function(_super){__extends(PropertyDefinitionDictionary,_super);function PropertyDefinitionDictionary(){return _super!==null&&_super.apply(this,arguments)||this}return PropertyDefinitionDictionary}(StringPropertyDefinitionBaseDictionary);exports.PropertyDefinitionDictionary=PropertyDefinitionDictionary;
var DictionaryWithStringKey=function(_super){__extends(DictionaryWithStringKey,_super);function DictionaryWithStringKey(){return _super.call(this,function(value){return value})||this}return DictionaryWithStringKey}(Dictionary);exports.DictionaryWithStringKey=DictionaryWithStringKey;var DictionaryWithNumericKey=function(_super){__extends(DictionaryWithNumericKey,_super);function DictionaryWithNumericKey(){return _super.call(this,function(value){return value.toString()})||this}return DictionaryWithNumericKey}(Dictionary);
exports.DictionaryWithNumericKey=DictionaryWithNumericKey;var DictionaryWithPropertyDefitionKey=function(_super){__extends(DictionaryWithPropertyDefitionKey,_super);function DictionaryWithPropertyDefitionKey(){return _super.call(this,function(value){return value.Name})||this}return DictionaryWithPropertyDefitionKey}(Dictionary);exports.DictionaryWithPropertyDefitionKey=DictionaryWithPropertyDefitionKey;
var PropDictionary2=function(){function PropDictionary2(){this.keys=[];this.objects={}}Object.defineProperty(PropDictionary2.prototype,"KeyNames",{get:function(){return this.keys},enumerable:true,configurable:true});Object.defineProperty(PropDictionary2.prototype,"Keys",{get:function(){var ret=[];for(var key in this.objects)ret.push(this.objects[key].keyObject);return ret},enumerable:true,configurable:true});Object.defineProperty(PropDictionary2.prototype,"Items",{get:function(){var all=[];for(var obj in this.objects)all.push({key:this.objects[obj].keyObject,
value:this.objects[obj].value});return all},enumerable:true,configurable:true});Object.defineProperty(PropDictionary2.prototype,"Values",{get:function(){var ret=[];for(var key in this.objects)ret.push(this.objects[key].value);return ret},enumerable:true,configurable:true});Object.defineProperty(PropDictionary2.prototype,"length",{get:function(){return this.keys.length},enumerable:true,configurable:true});PropDictionary2.prototype.add=function(key,value){var keyString=key.Name;if(this.keys.indexOf(key.Name)==
-1)this.keys.push(keyString);this.objects[keyString]={key:keyString,keyObject:key,value:value}};PropDictionary2.prototype.set=function(key,value){this.add(key,value)};PropDictionary2.prototype.setEntry=function(oldKeyString,oldKey,value,isNull){if(isNull===void 0)isNull=false;if(this.keys.indexOf(oldKeyString)==-1||typeof this.objects[oldKeyString]==="undefined")throw new Error("invalid old keystring");var oldval=isNull?null:value||this.objects[oldKeyString].value;this.objects[oldKeyString]={key:oldKey.Name,
keyObject:oldKey,value:value||oldval}};PropDictionary2.prototype.get=function(key){if(StringHelper.IsNullOrEmpty(key.Name))throw new Error("invalid operation, object does not have valid Name property");var val=this.objects[key.Name];return val?val.value:undefined};PropDictionary2.prototype.tryGet=function(key,outValue){outValue.outValue=null;outValue.success=false;if(StringHelper.IsNullOrEmpty(key.Name))outValue.exception=new Error("invalid operation, object does not have valid Name property");if(this.containsKey(key)){var val=
this.objects[key.Name];outValue.outValue=val?val.value:null;return true}return false};PropDictionary2.prototype.remove=function(key){if(StringHelper.IsNullOrEmpty(key.Name))throw new Error("missing keyString");return delete this.objects[key.Name]};PropDictionary2.prototype.containsKey=function(key){if(this.keys.indexOf(key.Name)>=0||typeof this.objects[key.Name]!=="undefined")return true;return false};PropDictionary2.prototype.clear=function(){this.keys=[];this.objects={}};return PropDictionary2}();
var ConfigurationApi=function(){function ConfigurationApi(){}ConfigurationApi.ConfigureXHR=function(xhrApi){XHRFactory.xhrHelper=xhrApi};ConfigurationApi.ConfigurePromise=function(promise){ConfigurePromise(promise)};return ConfigurationApi}();exports.ConfigurationApi=ConfigurationApi;var ticksToEpoch=621355968E9;exports.msToEpoch=621355968E5;
var invalidDateTimeMessage={"years":"year is less than 1 or greater than 9999.","months":"month is less than 1 or greater than 12.","days":"day is less than 1 or greater than the number of days in month.","hours":"hour is less than 0 or greater than 23.","minutes":"minute is less than 0 or greater than 59.","seconds":"second is less than 0 or greater than 59.","milliseconds":"millisecond is less than 0 or greater than 999."};var DateTimeKind;
(function(DateTimeKind){DateTimeKind[DateTimeKind["Unspecified"]=0]="Unspecified";DateTimeKind[DateTimeKind["Utc"]=1]="Utc";DateTimeKind[DateTimeKind["Local"]=2]="Local"})(DateTimeKind=exports.DateTimeKind||(exports.DateTimeKind={}));
var DateTime=function(){function DateTime(msOrDateOrMomentOrYear,monthOrKind,day,hour,minute,second,millisecond,kind){if(kind===void 0)kind=DateTimeKind.Unspecified;this.kind=DateTimeKind.Unspecified;this.originalDateInput=null;var argsLength=arguments.length;var momentdate=moment();this.kind=kind;if(argsLength===1)if(msOrDateOrMomentOrYear instanceof DateTime){momentdate=msOrDateOrMomentOrYear.MomentDate.clone();this.kind=msOrDateOrMomentOrYear.kind}else{momentdate=moment(msOrDateOrMomentOrYear);
this.originalDateInput=msOrDateOrMomentOrYear}else if(argsLength===2){if(monthOrKind===DateTimeKind.Utc&&!(msOrDateOrMomentOrYear instanceof moment))momentdate=moment.utc(msOrDateOrMomentOrYear);else momentdate=moment(msOrDateOrMomentOrYear);this.kind=monthOrKind;if(this.kind===DateTimeKind.Unspecified&&!(msOrDateOrMomentOrYear instanceof moment))this.originalDateInput=msOrDateOrMomentOrYear}else{var momentInput={};if(argsLength>=3){momentInput.year=msOrDateOrMomentOrYear;momentInput.month=monthOrKind-
1;momentInput.day=day}if(argsLength>=6){momentInput.hour=hour;momentInput.minute=minute;momentInput.second=second}if(argsLength>=7)momentInput.millisecond=millisecond;momentdate=moment(momentInput)}if(momentdate&&!momentdate.isValid()){var invalid=momentdate.invalidAt();throw new ArgumentOutOfRangeException(momentValidity[invalid],invalidDateTimeMessage[momentValidity[invalid]]);}this.getMomentDate=function(){return momentdate};this.setMomentDate=function(value){return momentdate=value}}Object.defineProperty(DateTime.prototype,
"MomentDate",{get:function(){return this.momentDate},enumerable:true,configurable:true});Object.defineProperty(DateTime.prototype,"currentUtcOffset",{get:function(){return this.momentDate.utcOffset()},enumerable:true,configurable:true});Object.defineProperty(DateTime.prototype,"momentDate",{get:function(){return this.getMomentDate()},enumerable:true,configurable:true});Object.defineProperty(DateTime,"Now",{get:function(){return new DateTime(moment())},enumerable:true,configurable:true});Object.defineProperty(DateTime,
"UtcNow",{get:function(){return new DateTime(moment.utc())},enumerable:true,configurable:true});Object.defineProperty(DateTime.prototype,"TotalMilliSeconds",{get:function(){return this.momentDate.valueOf()},enumerable:true,configurable:true});DateTime.prototype.Add=function(quantity,unit){if(unit===void 0)unit="ms";if(typeof quantity!=="number"){quantity=quantity.TotalMilliseconds;unit="ms"}var date=moment(this.momentDate);date.add(quantity,unit);return new DateTime(date)};DateTime.Compare=function(x,
y){var diff=x.momentDate.diff(y.momentDate);if(diff===0)return 0;if(diff<0)return-1;return 1};DateTime.prototype.CompareTo=function(toDate){return DateTime.Compare(this,toDate)};DateTime.prototype.Difference=function(toDate){return new TimeSpan(toDate.momentDate.diff(this.momentDate))};DateTime.prototype.Format=function(formatting){return this.momentDate.format(formatting)};DateTime.getKindfromMoment=function(m){if(m.isUTC())return DateTimeKind.Utc;if(m.isLocal())return DateTimeKind.Local;return DateTimeKind.Unspecified};
DateTime.Parse=function(value,kind){if(kind===void 0)kind=DateTimeKind.Unspecified;var mdate=moment(value);var tempDate=null;if(mdate.isValid())switch(kind){case DateTimeKind.Local:tempDate=new DateTime(mdate.local());tempDate.kind=kind;return tempDate;case DateTimeKind.Utc:tempDate=new DateTime(moment.utc(value));tempDate.kind=kind;return tempDate;default:tempDate=new DateTime(mdate);tempDate.originalDateInput=value;tempDate.kind=kind;return tempDate}else throw new ArgumentException("invalid date value");
};DateTime.prototype.ToISOString=function(){return this.momentDate.toISOString()};DateTime.prototype.toString=function(){return this.momentDate.toString()};DateTime.prototype.utcOffset=function(value){this.momentDate.utcOffset(value)};DateTime.DateimeStringToTimeZone=function(dtStr,zoneStr){return new DateTime(moment.tz(dtStr,zoneStr))};DateTime.DateTimeToXSDateTime=function(dateTime){var format="YYYY-MM-DDTHH:mm:ss.SSSZ";return dateTime.Format(format)};DateTime.DateTimeToXSDate=function(date){var format=
"YYYY-MM-DDZ";return date.Format(format)};Object.defineProperty(DateTime.prototype,"Date",{get:function(){return new DateTime(this.momentDate.format("Y-MM-DD"))},enumerable:true,configurable:true});Object.defineProperty(DateTime.prototype,"Day",{get:function(){return this.momentDate.date()},enumerable:true,configurable:true});Object.defineProperty(DateTime.prototype,"DayOfWeek",{get:function(){return this.momentDate.day()},enumerable:true,configurable:true});Object.defineProperty(DateTime.prototype,
"DayOfYear",{get:function(){return this.momentDate.dayOfYear()},enumerable:true,configurable:true});Object.defineProperty(DateTime.prototype,"Hour",{get:function(){return this.momentDate.hour()},enumerable:true,configurable:true});Object.defineProperty(DateTime.prototype,"Kind",{get:function(){return this.kind},enumerable:true,configurable:true});Object.defineProperty(DateTime.prototype,"Millisecond",{get:function(){return this.momentDate.millisecond()},enumerable:true,configurable:true});Object.defineProperty(DateTime.prototype,
"Minute",{get:function(){return this.momentDate.minute()},enumerable:true,configurable:true});Object.defineProperty(DateTime.prototype,"Month",{get:function(){return this.momentDate.month()+1},enumerable:true,configurable:true});Object.defineProperty(DateTime.prototype,"Second",{get:function(){return this.momentDate.second()},enumerable:true,configurable:true});Object.defineProperty(DateTime.prototype,"TimeOfDay",{get:function(){return TimeSpan.FromMilliseconds(this.momentDate.millisecond())},enumerable:true,
configurable:true});Object.defineProperty(DateTime.prototype,"Today",{get:function(){return new DateTime(moment(this.momentDate.format("LL"),"LL"))},enumerable:true,configurable:true});Object.defineProperty(DateTime.prototype,"Year",{get:function(){return this.momentDate.year()},enumerable:true,configurable:true});DateTime.prototype.AddDays=function(days){return this.Add(days,exports.unitOfTime.days)};DateTime.prototype.AddHours=function(hours){return this.Add(hours,exports.unitOfTime.hours)};DateTime.prototype.AddMilliseconds=
function(ms){return this.Add(ms,exports.unitOfTime.ms)};DateTime.prototype.AddMinutes=function(minutes){return this.Add(minutes,exports.unitOfTime.minutes)};DateTime.prototype.AddMonths=function(months){return this.Add(months,exports.unitOfTime.months)};DateTime.prototype.AddSeconds=function(seconds){return this.Add(seconds,exports.unitOfTime.seconds)};DateTime.prototype.AddYears=function(years){return this.Add(years,exports.unitOfTime.years)};DateTime.DaysInMonth=function(year,month){if(month<1||
month>12)throw new ArgumentOutOfRangeException("month",invalidDateTimeMessage["months"]);var days=DateTime.IsLeapYear(year)?DateTime.DaysToMonth366:DateTime.DaysToMonth365;return days[month]-days[month-1]};DateTime.prototype.Equals=function(value){if(value instanceof DateTime)return value.TotalMilliSeconds===this.TotalMilliSeconds;return false};DateTime.Equals=function(t1,t2){return t1.TotalMilliSeconds===t2.TotalMilliSeconds};DateTime.prototype.IsDaylightSavingTime=function(){return this.momentDate.isDST()};
DateTime.IsLeapYear=function(year){if(year<1||year>9999)throw new ArgumentOutOfRangeException("year",invalidDateTimeMessage["years"]);return year%4==0&&(year%100!=0||year%400==0)};DateTime.SpecifyKind=function(value,kind){return new DateTime(value.TotalMilliSeconds,kind)};DateTime.prototype.Subtract=function(dateTime){if(dateTime instanceof DateTime)return new TimeSpan(this.TotalMilliSeconds-dateTime.TotalMilliSeconds);else return new DateTime(this.TotalMilliSeconds-dateTime.TotalMilliseconds)};DateTime.prototype.ToLocalTime=
function(){return new DateTime(this.momentDate.local())};DateTime.prototype.ToLongDateString=function(){return this.momentDate.format("dddd, MMMM D, YYYY")};DateTime.prototype.ToLongTimeString=function(){return this.momentDate.format("LTS")};DateTime.prototype.ToShortDateString=function(){return this.MomentDate.format("l")};DateTime.prototype.ToShortTimeString=function(){return this.MomentDate.format("LT")};DateTime.prototype.ToString=function(){return this.toString()};DateTime.prototype.ToUniversalTime=
function(){return new DateTime(this.MomentDate.utc())};DateTime.TryParse=function(s,outDate){try{outDate.outValue=DateTime.Parse(s);outDate.outValue.kind=this.getKindfromMoment(outDate.outValue.momentDate);return true}catch(error){outDate.exception=error}return false};DateTime.prototype.valueOf=function(){return this.TotalMilliSeconds};return DateTime}();DateTime.DaysToMonth365=[0,31,59,90,120,151,181,212,243,273,304,334,365];DateTime.DaysToMonth366=[0,31,60,91,121,152,182,213,244,274,305,335,366];
DateTime.MinValue=new DateTime("0001-01-01T00:00:00+00:00");DateTime.MaxValue=new DateTime("9999-12-31T23:59:59.9999999+00:00");exports.DateTime=DateTime;var DateTimeStyles;
(function(DateTimeStyles){DateTimeStyles[DateTimeStyles["None"]=0]="None";DateTimeStyles[DateTimeStyles["AllowLeadingWhite"]=1]="AllowLeadingWhite";DateTimeStyles[DateTimeStyles["AllowTrailingWhite"]=2]="AllowTrailingWhite";DateTimeStyles[DateTimeStyles["AllowInnerWhite"]=4]="AllowInnerWhite";DateTimeStyles[DateTimeStyles["AllowWhiteSpaces"]=7]="AllowWhiteSpaces";DateTimeStyles[DateTimeStyles["NoCurrentDateDefault"]=8]="NoCurrentDateDefault";DateTimeStyles[DateTimeStyles["AdjustToUniversal"]=16]=
"AdjustToUniversal";DateTimeStyles[DateTimeStyles["AssumeLocal"]=32]="AssumeLocal";DateTimeStyles[DateTimeStyles["AssumeUniversal"]=64]="AssumeUniversal";DateTimeStyles[DateTimeStyles["RoundtripKind"]=128]="RoundtripKind"})(DateTimeStyles=exports.DateTimeStyles||(exports.DateTimeStyles={}));
exports.unitOfTime={"year":"year","years":"years","y":"y","month":"month","months":"months","M":"M","week":"week","weeks":"weeks","w":"w","day":"day","days":"days","d":"d","hour":"hour","hours":"hours","h":"h","minute":"minute","minutes":"minutes","m":"m","second":"second","seconds":"seconds","s":"s","millisecond":"millisecond","milliseconds":"milliseconds","ms":"ms"};var momentValidity;
(function(momentValidity){momentValidity[momentValidity["years"]=0]="years";momentValidity[momentValidity["months"]=1]="months";momentValidity[momentValidity["days"]=2]="days";momentValidity[momentValidity["hours"]=3]="hours";momentValidity[momentValidity["minutes"]=4]="minutes";momentValidity[momentValidity["seconds"]=5]="seconds";momentValidity[momentValidity["milliseconds"]=6]="milliseconds"})(momentValidity||(momentValidity={}));var StringHelper;
(function(StringHelper){function IsNullOrEmpty(str){return str==null||typeof str==="undefined"||str===""}StringHelper.IsNullOrEmpty=IsNullOrEmpty;function Format(source){var args=[];for(var _a=1;_a<arguments.length;_a++)args[_a-1]=arguments[_a];for(var i=0;i<args.length;i++)source=source.replace("{"+i+"}",args[i]);return source}StringHelper.Format=Format;StringHelper.Empty="";function Repeat(str,times){if(str===void 0)str="";if(times===void 0)times=1;return(new Array(times+1)).join(str)}StringHelper.Repeat=
Repeat;function Tabs(times){if(times===void 0)times=0;return Repeat("\t",times)}StringHelper.Tabs=Tabs;function Compare(lhs,rhs,ignoreCase){if(ignoreCase===void 0)ignoreCase=false;if(ignoreCase)return lhs.toLocaleLowerCase().localeCompare(rhs.toLocaleLowerCase());else return lhs.localeCompare(rhs)}StringHelper.Compare=Compare})(StringHelper=exports.StringHelper||(exports.StringHelper={}));var EnumHelper;
(function(EnumHelper){function HasFlag(flags,checkFlag){return(flags&checkFlag)==checkFlag}EnumHelper.HasFlag=HasFlag;function ToString(enumObj,checkFlag,includeZero){if(includeZero===void 0)includeZero=false;if((checkFlag&checkFlag-1)==0)return enumObj[checkFlag];var result=[];var diff=checkFlag;var largestFlag=0;while(diff>1){largestFlag=Math.pow(2,Math.floor(Math.log(diff)/Math.log(2)));diff=diff-largestFlag;var largestValue=enumObj[largestFlag];if(largestValue===undefined)return undefined;result.push(largestValue)}if(diff==
1)result.push(enumObj[1]);if(includeZero&&enumObj[0])result.push(enumObj[0]);result.reverse();return result.join(", ")}EnumHelper.ToString=ToString})(EnumHelper=exports.EnumHelper||(exports.EnumHelper={}));var object;(function(object){function getPrototypeChain(ctor){var chain=[];var proto=ctor.prototype;while(proto){chain.push(proto.constructor);proto=Object.getPrototypeOf(proto)}return chain}})(object||(object={}));var ArrayHelper;
(function(ArrayHelper){function AddRange(array,items,uniqueOnly){if(uniqueOnly===void 0)uniqueOnly=false;if(Object.prototype.toString.call(array)!=="[object Array]")throw new Error("input obj is not an array");if(Object.prototype.toString.call(items)!=="[object Array]")throw new Error("input range is not an array");for(var _a=0,items_1=items;_a<items_1.length;_a++){var item=items_1[_a];if(!(uniqueOnly&&array.indexOf(item)>=0))array.push(item)}}ArrayHelper.AddRange=AddRange;function RemoveEntry(array,
entry,comparer){if(comparer===void 0)comparer=null;var index=array.indexOf(entry);if(comparer){var entry_1=ArrayHelper.Find(array,comparer);index=array.indexOf(entry_1)}var lastLength=array.length;if(index>=0){array.splice(index,1);return lastLength-array.length===1}else return false}ArrayHelper.RemoveEntry=RemoveEntry;function Find(array,comparer){for(var _a=0,array_1=array;_a<array_1.length;_a++){var entry=array_1[_a];if(comparer(entry))return entry}return null}ArrayHelper.Find=Find;function IndexOf(array,
comparer){var item=ArrayHelper.Find(array,comparer);return array.indexOf(item)}ArrayHelper.IndexOf=IndexOf;function OfType(array,comparer){var result=[];for(var _a=0,array_2=array;_a<array_2.length;_a++){var entry=array_2[_a];if(comparer(entry))result.push(entry)}return result}ArrayHelper.OfType=OfType;function Rank(array,testElementCount){if(testElementCount===void 0)testElementCount=4;var rank=1;if(array.length===0)return rank;var length=array.length<=testElementCount?array.length:testElementCount;
var maxDepthRank=0;for(var index=0;index<length;index++){var element=array[index];if(Array.isArray(element)){var _tRank=Rank(element,testElementCount);maxDepthRank=_tRank>maxDepthRank?_tRank:maxDepthRank}}rank+=maxDepthRank;return rank}ArrayHelper.Rank=Rank;function isArray(obj){return Object.prototype.toString.call(obj)==="[object Array]"}ArrayHelper.isArray=isArray})(ArrayHelper=exports.ArrayHelper||(exports.ArrayHelper={}));
var TypeSystem=function(){function TypeSystem(){}TypeSystem.GetProperties=function(obj){var props=new Array;for(var s in obj)if(typeof obj[s]!="function")props[props.length]=s;return props};TypeSystem.GetMethods=function(obj){var methods=new Array;for(var s in obj)if(typeof obj[s]=="function")methods[methods.length]=s;return methods};TypeSystem.GetObjectStaticPropertiesByClassName=function(className){var obj=this.GetObjectByClassName(className);if(obj==null||typeof obj==undefined)return[];return this.GetProperties(obj)};
TypeSystem.GetObjectMethodsByClassName=function(className,instanceMethod){if(instanceMethod===void 0)instanceMethod=true;var obj=this.GetObjectByClassName(className);if(obj==null||typeof obj==undefined)return[];else if(instanceMethod)obj=obj.prototype||obj;return this.GetMethods(obj)};TypeSystem.GetObjectByClassName=function(className){var obj;if(className.indexOf(".")>0){var objs=className.split(".");obj=window[objs[0]];for(var i=1;i<objs.length;i++)obj=obj[objs[i]]}else obj=window[className];return obj};
TypeSystem.GetJsObjectTypeName=function(obj){var keys=Object.keys(obj);if(keys&&keys.indexOf("__type")>=0)return obj["__type"];return undefined};TypeSystem.GetJsObjectOnlyChildName=function(obj){for(var key in obj){if(key.indexOf("__")>=0)continue;return key}return null};TypeSystem.GetJsObjectTypeName_old=function(obj){for(var key in obj)if(obj.hasOwnProperty(key)){var element=obj[key];if(element["__type"])return element["__type"]}return undefined};TypeSystem.IsGenericType=function(value){if(value===
null||typeof value==="undefined")return false;var valueType=typeof value;return valueType==="string"||valueType==="boolean"||valueType==="number"};return TypeSystem}();exports.TypeSystem=TypeSystem;
var xml2JsObject=function(){function xml2JsObject(){this.typeIncludedNS=["http://schemas.microsoft.com/exchange/services/2006/types","http://schemas.microsoft.com/exchange/services/2006/messages"]}xml2JsObject.prototype.parseXMLNode=function(xmlNode,soapMode,xmlnsRoot){if(soapMode===void 0)soapMode=false;if(xmlnsRoot===void 0)xmlnsRoot=undefined;var obj={};if(!xmlnsRoot)xmlnsRoot=obj;if(typeof xmlNode==="undefined")return obj;var textNodeName=undefined;var PREFIX_STR="__prefix";var TYPE_STR="__type";
var TEXT_STR="__text";switch(xmlNode.nodeType){case 1:if(xmlNode.prefix&&xmlNode.localName!==xmlNode.nodeName)obj[PREFIX_STR]=xmlNode.prefix;if(this.typeIncludedNS.indexOf(xmlNode.namespaceURI)>=0)obj[TYPE_STR]=xmlNode.localName;var nonGenericAttributeCount=0;for(var i=0;i<xmlNode.attributes.length;i++){nonGenericAttributeCount++;var attr=xmlNode.attributes.item(i);if(attr.prefix)if(attr.prefix==="xmlns"){this.addXMLNS(xmlnsRoot,attr.localName,attr.value);nonGenericAttributeCount--}else if(this.containsXMLNS(xmlnsRoot,
attr.prefix))obj[attr.localName]=attr.value;else obj[attr.name]=attr.value;else if(attr.localName==="xmlns"){if(xmlNode.namespaceURI!==attr.value&&typeof obj[TYPE_STR]==="undefiend")obj[TYPE_STR]=attr.value;nonGenericAttributeCount--}else obj[attr.localName]=attr.value}if(soapMode){if(nonGenericAttributeCount===0&&xmlNode.childNodes.length===0)return null;if(xmlNode.childNodes.length===1&&xmlNode.firstChild.nodeType===3)if(xmlNode.firstChild.nodeValue.trim()!=="")if(nonGenericAttributeCount===0)return xmlNode.firstChild.nodeValue.trim();
else{obj[xmlNode.localName]=xmlNode.firstChild.nodeValue.trim();return obj}if(soapMode&&obj["nil"]&&obj["nil"]==="true")return null}break;case 2:break;case 3:return xmlNode.nodeValue;break;default:return obj}if(xmlNode.childNodes.length>0){var skip=false;if(soapMode&&xmlNode.childNodes.length===1&&xmlNode.firstChild.nodeType===3)skip=true;if(!skip)for(var i=0;i<xmlNode.childNodes.length;i++){var node=xmlNode.childNodes.item(i);var localName=node.localName||TEXT_STR;if(localName===TEXT_STR&&node.nodeValue.trim()===
"")continue;var nodeObj=this.parseXMLNode(node,soapMode,xmlnsRoot);if(obj[localName])if(Object.prototype.toString.call(obj[localName])==="[object Array]")obj[localName].push(nodeObj);else{var old=obj[localName];obj[localName]=[];obj[localName].push(old);obj[localName].push(nodeObj)}else obj[localName]=nodeObj}}return obj};xml2JsObject.prototype.addXMLNS=function(xmlnsObj,xmlnsName,xmlnsValue,xmlnsAttrName){if(xmlnsAttrName===void 0)xmlnsAttrName="__xmlns";if(!xmlnsObj[xmlnsAttrName])xmlnsObj[xmlnsAttrName]=
{};xmlnsObj[xmlnsAttrName][xmlnsName]=xmlnsValue};xml2JsObject.prototype.containsXMLNS=function(obj,xmlnsName,xmlnsAttrName){if(xmlnsAttrName===void 0)xmlnsAttrName="__xmlns";if(obj[xmlnsAttrName])return typeof obj[xmlnsAttrName][xmlnsName]!=="undefined";return false};return xml2JsObject}();exports.xml2JsObject=xml2JsObject;
var UriHelper=function(){function UriHelper(){}UriHelper.parseString=function(url){var regex=RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?");var parts=url.match(regex);return{scheme:parts[2],authority:parts[4],path:parts[5],query:parts[7],fragment:parts[9]}};UriHelper.getDomain=function(url){return this.parseString(url).authority};UriHelper.getHost=function(url){return this.getDomain(url)};return UriHelper}();exports.UriHelper=UriHelper;var isNode=typeof window==="undefined";
var dp=undefined;dp=window.DOMParser;exports.DOMParser=dp;
var Convert=function(){function Convert(){}Convert.toInt=function(value,zeroIfError){if(zeroIfError===void 0)zeroIfError=true;var result=0;try{result=parseInt(value)}catch(ex){if(!zeroIfError)throw ex;}return result};Convert.toNumber=function(value){return Number(value)};Convert.toBool=function(value,truefalseString,throwIfNotBool){if(truefalseString===void 0)truefalseString=true;if(throwIfNotBool===void 0)throwIfNotBool=false;if(typeof value==="boolean")return value;var num=Number(value);if(!isNaN(num))return num!==
0;if(truefalseString)return value.toLowerCase()==="true";if(throwIfNotBool)throw new Error("not a boolean");return false};Convert.FromBase64String=function(encodedStr){return b64.toByteArray(encodedStr)};Convert.ToBase64String=function(byteArray){return b64.fromByteArray(byteArray)};return Convert}();exports.Convert=Convert;var base64Helper;
(function(base64Helper){function btoa(textToEncode){if(isNode){var b=new Buffer(textToEncode);return b.toString("base64")}else return window.btoa(textToEncode)}base64Helper.btoa=btoa;function atob(textToDecode){if(isNode){var b=new Buffer(textToDecode,"base64");return b.toString()}else return window.atob(textToDecode)}base64Helper.atob=atob})(base64Helper=exports.base64Helper||(exports.base64Helper={}));
var Guid=function(){function Guid(str){this.guid="00000000-0000-0000-0000-000000000000";var regx=/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;if(arguments.length>0){if(StringHelper.IsNullOrEmpty(str)||str===null)throw new TypeError("Guid.ctor - invalid input");str=str.replace("{","").replace("}","").toLowerCase();if(regx.test(str))this.guid=str;else throw new TypeError("Guid.ctor - invalid input");}}Guid.prototype.ToString=function(){return this.guid};Guid.prototype.toString=
function(){return this.guid};Guid.NewGuid=function(){return new Guid(uuid.v4())};Guid.Parse=function(str){return new Guid(str)};Guid.TryParse=function(str,_parsed_output){if(_parsed_output===void 0)_parsed_output={guid:null};try{_parsed_output.guid=new Guid(str);return true}catch(error){return false}};return Guid}();Guid.Empty=new Guid;exports.Guid=Guid;exports.Promise=window.Promise;function ConfigurePromise(promise){exports.Promise=promise}exports.ConfigurePromise=ConfigurePromise;
var Strings=function(){function Strings(){}return Strings}();Strings.CannotRemoveSubscriptionFromLiveConnection="Subscriptions can't be removed from an open connection.";Strings.ReadAccessInvalidForNonCalendarFolder="The Permission read access value {0} can't be used with a non-calendar folder.";Strings.PropertyDefinitionPropertyMustBeSet="The PropertyDefinition property must be set.";Strings.ArgumentIsBlankString="The argument contains only white space characters.";
Strings.InvalidAutodiscoverDomainsCount="At least one domain name must be requested.";Strings.MinutesMustBeBetween0And1439="minutes must be between 0 and 1439, inclusive.";Strings.DeleteInvalidForUnsavedUserConfiguration="This user configuration object can't be deleted because it's never been saved.";Strings.PeriodNotFound="Invalid transition. A period with the specified Id couldn't be found: {0}";Strings.InvalidAutodiscoverSmtpAddress="A valid SMTP address must be specified.";
Strings.InvalidOAuthToken="The given token is invalid.";Strings.MaxScpHopsExceeded="The number of SCP URL hops exceeded the limit.";Strings.ContactGroupMemberCannotBeUpdatedWithoutBeingLoadedFirst="The contact group's Members property must be reloaded before newly-added members can be updated.";Strings.CurrentPositionNotElementStart="The current position is not the start of an element.";Strings.CannotConvertBetweenTimeZones="Unable to convert {0} from {1} to {2}.";
Strings.FrequencyMustBeBetween1And1440="The frequency must be a value between 1 and 1440.";Strings.CannotSetDelegateFolderPermissionLevelToCustom="This operation can't be performed because one or more folder permission levels were set to Custom.";Strings.PartnerTokenIncompatibleWithRequestVersion="TryGetPartnerAccess only supports {0} or a later version in Microsoft-hosted data center.";Strings.InvalidAutodiscoverRequest="Invalid Autodiscover request: '{0}'";Strings.InvalidAsyncResult="The IAsyncResult object was not returned from the corresponding asynchronous method of the original ExchangeService object.";
Strings.InvalidMailboxType="The mailbox type isn't valid.";Strings.AttachmentCollectionNotLoaded="The attachment collection must be loaded.";Strings.ParameterIncompatibleWithRequestVersion="The parameter {0} is only valid for Exchange Server version {1} or a later version.";Strings.DayOfWeekIndexMustBeSpecifiedForRecurrencePattern="The recurrence pattern's DayOfWeekIndex property must be specified.";Strings.WLIDCredentialsCannotBeUsedWithLegacyAutodiscover="This type of credentials can't be used with this AutodiscoverService.";
Strings.PropertyCannotBeUpdated="This property can't be updated.";Strings.IncompatibleTypeForArray="Type {0} can't be used as an array of type {1}.";Strings.PercentCompleteMustBeBetween0And100="PercentComplete must be between 0 and 100.";Strings.AutodiscoverServiceIncompatibleWithRequestVersion="The Autodiscover service only supports {0} or a later version.";Strings.InvalidAutodiscoverSmtpAddressesCount="At least one SMTP address must be requested.";Strings.ServiceUrlMustBeSet="The Url property on the ExchangeService object must be set.";
Strings.ItemTypeNotCompatible="The item type returned by the service ({0}) isn't compatible with the requested item type ({1}).";Strings.AttachmentItemTypeMismatch="Can not update this attachment item since the item in the response has a different type.";Strings.UnsupportedWebProtocol="Protocol {0} isn't supported for service requests.";Strings.EnumValueIncompatibleWithRequestVersion="Enumeration value {0} in enumeration type {1} is only valid for Exchange version {2} or later.";
Strings.UnexpectedElement="An element node '{0}:{1}' of the type {2} was expected, but node '{3}' of type {4} was found.";Strings.InvalidOrderBy="At least one of the property definitions in the OrderBy clause is null.";Strings.NoAppropriateConstructorForItemClass="No appropriate constructor could be found for this item class.";Strings.SearchFilterAtIndexIsInvalid="The search filter at index {0} is invalid.";Strings.DeletingThisObjectTypeNotAuthorized="Deleting this type of object isn't authorized.";
Strings.PropertyCannotBeDeleted="This property can't be deleted.";Strings.ValuePropertyMustBeSet="The Value property must be set.";Strings.TagValueIsOutOfRange="The extended property tag value must be in the range of 0 to 65,535.";Strings.ItemToUpdateCannotBeNullOrNew="Items[{0}] is either null or does not have an Id.";Strings.SearchParametersRootFolderIdsEmpty="SearchParameters must contain at least one folder id.";Strings.MailboxQueriesParameterIsNotSpecified="The collection of query and mailboxes parameter is not specified.";
Strings.FolderPermissionHasInvalidUserId="The UserId in the folder permission at index {0} is invalid. The StandardUser, PrimarySmtpAddress, or SID property must be set.";Strings.InvalidAutodiscoverDomain="The domain name must be specified.";Strings.MailboxesParameterIsNotSpecified="The array of mailboxes (in legacy DN) is not specified.";Strings.ParentFolderDoesNotHaveId="parentFolder doesn't have an Id.";Strings.DayOfMonthMustBeSpecifiedForRecurrencePattern="The recurrence pattern's DayOfMonth property must be specified.";
Strings.ClassIncompatibleWithRequestVersion="Class {0} is only valid for Exchange version {1} or later.";Strings.CertificateHasNoPrivateKey="The given certificate does not have the private key. The private key is necessary to sign part of the request message.";Strings.InvalidOrUnsupportedTimeZoneDefinition="The time zone definition is invalid or unsupported.";Strings.HourMustBeBetween0And23="Hour must be between 0 and 23.";Strings.TimeoutMustBeBetween1And1440="Timeout must be a value between 1 and 1440.";
Strings.CredentialsRequired="Credentials are required to make a service request.";Strings.MustLoadOrAssignPropertyBeforeAccess="You must load or assign this property before you can read its value.";Strings.InvalidAutodiscoverServiceResponse="The Autodiscover service response was invalid.";Strings.CannotCallConnectDuringLiveConnection="The connection has already opened.";Strings.ObjectDoesNotHaveId="This service object doesn't have an ID.";Strings.CannotAddSubscriptionToLiveConnection="Subscriptions can't be added to an open connection.";
Strings.MaxChangesMustBeBetween1And512="MaxChangesReturned must be between 1 and 512.";Strings.AttributeValueCannotBeSerialized="Values of type '{0}' can't be used for the '{1}' attribute.";Strings.NumberOfDaysMustBePositive="NumberOfDays must be zero or greater. Zero indicates no limit.";Strings.SearchFilterMustBeSet="The SearchFilter property must be set.";Strings.EndDateMustBeGreaterThanStartDate="EndDate must be greater than StartDate.";Strings.InvalidDateTime="Invalid date and time: {0}.";
Strings.UpdateItemsDoesNotAllowAttachments="This operation can't be performed because attachments have been added or deleted for one or more items.";Strings.TimeoutMustBeGreaterThanZero="Timeout must be greater than zero.";Strings.AutodiscoverInvalidSettingForOutlookProvider="The requested setting, '{0}', isn't supported by this Autodiscover endpoint.";Strings.InvalidRedirectionResponseReturned="The service returned an invalid redirection response.";Strings.ExpectedStartElement="The start element was expected, but node '{0}' of type {1} was found.";
Strings.DaysOfTheWeekNotSpecified="The recurrence pattern's property DaysOfTheWeek must contain at least one day of the week.";Strings.FolderToUpdateCannotBeNullOrNew="Folders[{0}] is either null or does not have an Id.";Strings.PartnerTokenRequestRequiresUrl="TryGetPartnerAccess request requires the Url be set with the partner's autodiscover url first.";Strings.NumberOfOccurrencesMustBeGreaterThanZero="NumberOfOccurrences must be greater than 0.";Strings.StartTimeZoneRequired="StartTimeZone required when setting the Start, End, IsAllDayEvent, or Recurrence properties. You must load or assign this property before attempting to update the appointment.";
Strings.PropertyAlreadyExistsInOrderByCollection="Property {0} already exists in OrderByCollection.";Strings.ItemAttachmentMustBeNamed="The name of the item attachment at index {0} must be set.";Strings.InvalidAutodiscoverSettingsCount="At least one setting must be requested.";Strings.LoadingThisObjectTypeNotSupported="Loading this type of object is not supported.";Strings.UserIdForDelegateUserNotSpecified="The UserId in the DelegateUser hasn't been specified.";
Strings.PhoneCallAlreadyDisconnected="The phone call has already been disconnected.";Strings.OperationDoesNotSupportAttachments="This operation isn't supported on attachments.";Strings.UnsupportedTimeZonePeriodTransitionTarget="The time zone transition target isn't supported.";Strings.IEnumerableDoesNotContainThatManyObject="The IEnumerable doesn't contain that many objects.";Strings.UpdateItemsDoesNotSupportNewOrUnchangedItems="This operation can't be performed because one or more items are new or unmodified.";
Strings.ValidationFailed="Validation failed.";Strings.InvalidRecurrencePattern="Invalid recurrence pattern: ({0}).";Strings.TimeWindowStartTimeMustBeGreaterThanEndTime="The time window's end time must be greater than its start time.";Strings.InvalidAttributeValue="The invalid value '{0}' was specified for the '{1}' attribute.";Strings.FileAttachmentContentIsNotSet="The content of the file attachment at index {0} must be set.";Strings.AutodiscoverDidNotReturnEwsUrl="The Autodiscover service didn't return an appropriate URL that can be used for the ExchangeService Autodiscover URL.";
Strings.RecurrencePatternMustHaveStartDate="The recurrence pattern's StartDate property must be specified.";Strings.OccurrenceIndexMustBeGreaterThanZero="OccurrenceIndex must be greater than 0.";Strings.ServiceResponseDoesNotContainXml="The response received from the service didn't contain valid XML.";Strings.ItemIsOutOfDate="The operation can't be performed because the item is out of date. Reload the item and try again.";Strings.MinuteMustBeBetween0And59="Minute must be between 0 and 59.";
Strings.NoSoapOrWsSecurityEndpointAvailable="No appropriate Autodiscover SOAP or WS-Security endpoint is available.";Strings.ElementNotFound="The element '{0}' in namespace '{1}' wasn't found at the current position.";Strings.IndexIsOutOfRange="index is out of range.";Strings.PropertyIsReadOnly="This property is read-only and can't be set.";Strings.AttachmentCreationFailed="At least one attachment couldn't be created.";Strings.DayOfMonthMustBeBetween1And31="DayOfMonth must be between 1 and 31.";
Strings.ServiceRequestFailed="The request failed. {0}";Strings.DelegateUserHasInvalidUserId="The UserId in the DelegateUser is invalid. The StandardUser, PrimarySmtpAddress or SID property must be set.";Strings.SearchFilterComparisonValueTypeIsNotSupported="Values of type '{0}' can't be used as comparison values in search filters.";Strings.ElementValueCannotBeSerialized="Values of type '{0}' can't be used for the '{1}' element.";Strings.PropertyValueMustBeSpecifiedForRecurrencePattern="The recurrence pattern's {0} property must be specified.";
Strings.NonSummaryPropertyCannotBeUsed="The property {0} can't be used in {1} requests.";Strings.HoldIdParameterIsNotSpecified="The hold id parameter is not specified.";Strings.TransitionGroupNotFound="Invalid transition. A transition group with the specified ID couldn't be found: {0}";Strings.ObjectTypeNotSupported="Objects of type {0} can't be added to the dictionary. The following types are supported: array, byte array, boolean, byte, DateTime, integer, long,, unsigned integer, and unsigned long.";
Strings.InvalidTimeoutValue="{0} is not a valid timeout value. Valid values range from 1 to 1440.";Strings.AutodiscoverRedirectBlocked="Autodiscover blocked a potentially insecure redirection to {0}. To allow Autodiscover to follow the redirection, use the AutodiscoverUrl(string, AutodiscoverRedirectionUrlValidationCallback) overload.";Strings.PropertySetCannotBeModified="This PropertySet is read-only and can't be modified.";Strings.DayOfTheWeekMustBeSpecifiedForRecurrencePattern="The recurrence pattern's property DayOfTheWeek must be specified.";
Strings.ServiceObjectAlreadyHasId="This operation can't be performed because this service object already has an ID. To update this service object, use the Update() method instead.";Strings.MethodIncompatibleWithRequestVersion="Method {0} is only valid for Exchange Server version {1} or later.";Strings.OperationNotSupportedForPropertyDefinitionType="This operation isn't supported for property definition type {0}.";Strings.InvalidElementStringValue="The invalid value '{0}' was specified for the '{1}' element.";
Strings.CollectionIsEmpty="The collection is empty.";Strings.InvalidFrequencyValue="{0} is not a valid frequency value. Valid values range from 1 to 1440.";Strings.UnexpectedEndOfXmlDocument="The XML document ended unexpectedly.";Strings.FolderTypeNotCompatible="The folder type returned by the service ({0}) isn't compatible with the requested folder type ({1}).";Strings.RequestIncompatibleWithRequestVersion="The service request {0} is only valid for Exchange version {1} or later.";
Strings.PropertyTypeIncompatibleWhenUpdatingCollection="Can not update the existing collection item since the item in the response has a different type.";Strings.ServerVersionNotSupported="Exchange Server doesn't support the requested version.";Strings.DurationMustBeSpecifiedWhenScheduled="Duration must be specified when State is equal to Scheduled.";Strings.NoError="No error.";Strings.CannotUpdateNewUserConfiguration="This user configuration can't be updated because it's never been saved.";
Strings.ObjectTypeIncompatibleWithRequestVersion="The object type {0} is only valid for Exchange Server version {1} or later versions.";Strings.NullStringArrayElementInvalid="The array contains at least one null element.";Strings.HttpsIsRequired="Https is required when partner token is expected.";Strings.MergedFreeBusyIntervalMustBeSmallerThanTimeWindow="MergedFreeBusyInterval must be smaller than the specified time window.";Strings.SecondMustBeBetween0And59="Second must be between 0 and 59.";
Strings.AtLeastOneAttachmentCouldNotBeDeleted="At least one attachment couldn't be deleted.";Strings.IdAlreadyInList="The ID is already in the list.";Strings.BothSearchFilterAndQueryStringCannotBeSpecified="Both search filter and query can't be specified. One of them must be null.";Strings.AdditionalPropertyIsNull="The additional property at index {0} is null.";Strings.InvalidEmailAddress="The e-mail address is formed incorrectly.";Strings.MaximumRedirectionHopsExceeded="The maximum redirection hop count has been reached.";
Strings.AutodiscoverCouldNotBeLocated="The Autodiscover service couldn't be located.";Strings.NoSubscriptionsOnConnection="You must add at least one subscription to this connection before it can be opened.";Strings.PermissionLevelInvalidForNonCalendarFolder="The Permission level value {0} can't be used with a non-calendar folder.";Strings.InvalidAuthScheme="The token auth scheme should be bearer.";Strings.ValuePropertyNotLoaded="This property was requested, but it wasn't returned by the server.";
Strings.PropertyIncompatibleWithRequestVersion="The property {0} is valid only for Exchange {1} or later versions.";Strings.OffsetMustBeGreaterThanZero="The offset must be greater than 0.";Strings.CreateItemsDoesNotAllowAttachments="This operation doesn't support items that have attachments.";Strings.PropertyDefinitionTypeMismatch="Property definition type '{0}' and type parameter '{1}' aren't compatible.";Strings.IntervalMustBeGreaterOrEqualToOne="The interval must be greater than or equal to 1.";
Strings.CannotSetPermissionLevelToCustom="The PermissionLevel property can't be set to FolderPermissionLevel.Custom. To define a custom permission, set its individual properties to the values you want.";Strings.CannotAddRequestHeader="HTTP header '{0}' isn't permitted. Only HTTP headers with the 'X-' prefix are permitted.";Strings.ArrayMustHaveAtLeastOneElement="The Array value must have at least one element.";Strings.MonthMustBeSpecifiedForRecurrencePattern="The recurrence pattern's Month property must be specified.";
Strings.ValueOfTypeCannotBeConverted="The value '{0}' of type {1} can't be converted to a value of type {2}.";Strings.ValueCannotBeConverted="The value '{0}' couldn't be converted to type {1}.";Strings.ServerErrorAndStackTraceDetails="{0} -- Server Error: {1}: {2} {3}";Strings.FolderPermissionLevelMustBeSet="The permission level of the folder permission at index {0} must be set.";Strings.AutodiscoverError="The Autodiscover service returned an error.";Strings.ArrayMustHaveSingleDimension="The array value must have a single dimension.";
Strings.InvalidPropertyValueNotInRange="{0} must be between {1} and {2}.";Strings.RegenerationPatternsOnlyValidForTasks="Regeneration patterns can only be used with Task items.";Strings.ItemAttachmentCannotBeUpdated="Item attachments can't be updated.";Strings.EqualityComparisonFilterIsInvalid="Either the OtherPropertyDefinition or the Value properties must be set.";Strings.AutodiscoverServiceRequestRequiresDomainOrUrl="This Autodiscover request requires that either the Domain or Url be specified.";
Strings.InvalidUser="Invalid user: '{0}'";Strings.AccountIsLocked="This account is locked. Visit {0} to unlock it.";Strings.InvalidDomainName="'{0}' is not a valid domain name.";Strings.TooFewServiceReponsesReturned="The service was expected to return {1} responses of type '{0}', but {2} responses were received.";Strings.CannotSubscribeToStatusEvents="Status events can't be subscribed to.";Strings.InvalidSortByPropertyForMailboxSearch="Specified SortBy property '{0}' is invalid.";
Strings.UnexpectedElementType="The expected XML node type was {0}, but the actual type is {1}.";Strings.ValueMustBeGreaterThanZero="The value must be greater than 0.";Strings.AttachmentCannotBeUpdated="Attachments can't be updated.";Strings.CreateItemsDoesNotHandleExistingItems="This operation can't be performed because at least one item already has an ID.";Strings.MultipleContactPhotosInAttachment="This operation only allows at most 1 file attachment with IsContactPhoto set.";
Strings.InvalidRecurrenceRange="Invalid recurrence range: ({0}).";Strings.CannotSetBothImpersonatedAndPrivilegedUser="Can't set both impersonated user and privileged user in the ExchangeService object.";Strings.NewMessagesWithAttachmentsCannotBeSentDirectly="New messages with attachments can't be sent directly. You must first save the message and then send it.";Strings.C