ews javascript api

__extends

declaration
 __extends 

var __extends = this.__extends || function (d, b) {
    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
    function __() { this.constructor = d; }
    __.prototype = b.prototype;
    d.prototype = new __();
};
var XmlElementNames_1 = require("../../XmlElementNames");
var StringPropertyDefinition_1 = require("../../../PropertyDefinitions/StringPropertyDefinition");
var PropertyDefinitionFlags_1 = require("../../../Enumerations/PropertyDefinitionFlags");
var ExchangeVersion_1 = require("../../../Enumerations/ExchangeVersion");
var GenericPropertyDefinition_1 = require("../../../PropertyDefinitions/GenericPropertyDefinition");
var ComplexPropertyDefinition_1 = require("../../../PropertyDefinitions/ComplexPropertyDefinition");
var CompleteName_1 = require("../../../ComplexProperties/CompleteName");
var EmailAddressDictionary_1 = require("../../../ComplexProperties/EmailAddressDictionary");
var PhysicalAddressDictionary_1 = require("../../../ComplexProperties/PhysicalAddressDictionary");
var PhoneNumberDictionary_1 = require("../../../ComplexProperties/PhoneNumberDictionary");
var DateTimePropertyDefinition_1 = require("../../../PropertyDefinitions/DateTimePropertyDefinition");
var StringList_1 = require("../../../ComplexProperties/StringList");
var ImAddressDictionary_1 = require("../../../ComplexProperties/ImAddressDictionary");
var BoolPropertyDefinition_1 = require("../../../PropertyDefinitions/BoolPropertyDefinition");
var ByteArrayPropertyDefinition_1 = require("../../../PropertyDefinitions/ByteArrayPropertyDefinition");
var ByteArrayArray_1 = require("../../../ComplexProperties/ByteArrayArray");
var ContainedPropertyDefinition_1 = require("../../../PropertyDefinitions/ContainedPropertyDefinition");
var EmailAddress_1 = require("../../../ComplexProperties/EmailAddress");
var EmailAddressCollection_1 = require("../../../ComplexProperties/EmailAddressCollection");
var IndexedPropertyDefinition_1 = require("../../../PropertyDefinitions/IndexedPropertyDefinition");
var ItemSchema_1 = require("./ItemSchema");
//module ContactSchema {
var FieldUris;
(function (FieldUris) {
    FieldUris.FileAs = "contacts:FileAs";
    FieldUris.FileAsMapping = "contacts:FileAsMapping";
    FieldUris.DisplayName = "contacts:DisplayName";
    FieldUris.GivenName = "contacts:GivenName";
    FieldUris.Initials = "contacts:Initials";
    FieldUris.MiddleName = "contacts:MiddleName";
    FieldUris.NickName = "contacts:Nickname";
    FieldUris.CompleteName = "contacts:CompleteName";
    FieldUris.CompanyName = "contacts:CompanyName";
    FieldUris.EmailAddress = "contacts:EmailAddress";
    FieldUris.EmailAddresses = "contacts:EmailAddresses";
    FieldUris.PhysicalAddresses = "contacts:PhysicalAddresses";
    FieldUris.PhoneNumber = "contacts:PhoneNumber";
    FieldUris.PhoneNumbers = "contacts:PhoneNumbers";
    FieldUris.AssistantName = "contacts:AssistantName";
    FieldUris.Birthday = "contacts:Birthday";
    FieldUris.BusinessHomePage = "contacts:BusinessHomePage";
    FieldUris.Children = "contacts:Children";
    FieldUris.Companies = "contacts:Companies";
    FieldUris.ContactSource = "contacts:ContactSource";
    FieldUris.Department = "contacts:Department";
    FieldUris.Generation = "contacts:Generation";
    FieldUris.ImAddress = "contacts:ImAddress";
    FieldUris.ImAddresses = "contacts:ImAddresses";
    FieldUris.JobTitle = "contacts:JobTitle";
    FieldUris.Manager = "contacts:Manager";
    FieldUris.Mileage = "contacts:Mileage";
    FieldUris.OfficeLocation = "contacts:OfficeLocation";
    FieldUris.PhysicalAddressCity = "contacts:PhysicalAddress:City";
    FieldUris.PhysicalAddressCountryOrRegion = "contacts:PhysicalAddress:CountryOrRegion";
    FieldUris.PhysicalAddressState = "contacts:PhysicalAddress:State";
    FieldUris.PhysicalAddressStreet = "contacts:PhysicalAddress:Street";
    FieldUris.PhysicalAddressPostalCode = "contacts:PhysicalAddress:PostalCode";
    FieldUris.PostalAddressIndex = "contacts:PostalAddressIndex";
    FieldUris.Profession = "contacts:Profession";
    FieldUris.SpouseName = "contacts:SpouseName";
    FieldUris.Surname = "contacts:Surname";
    FieldUris.WeddingAnniversary = "contacts:WeddingAnniversary";
    FieldUris.HasPicture = "contacts:HasPicture";
    FieldUris.PhoneticFullName = "contacts:PhoneticFullName";
    FieldUris.PhoneticFirstName = "contacts:PhoneticFirstName";
    FieldUris.PhoneticLastName = "contacts:PhoneticLastName";
    FieldUris.Alias = "contacts:Alias";
    FieldUris.Notes = "contacts:Notes";
    FieldUris.Photo = "contacts:Photo";
    FieldUris.UserSMIMECertificate = "contacts:UserSMIMECertificate";
    FieldUris.MSExchangeCertificate = "contacts:MSExchangeCertificate";
    FieldUris.DirectoryId = "contacts:DirectoryId";
    FieldUris.ManagerMailbox = "contacts:ManagerMailbox";
    FieldUris.DirectReports = "contacts:DirectReports";
})(FieldUris || (FieldUris = {}));
//}
var ContactSchema = (function (_super) {
    __extends(ContactSchema, _super);
    function ContactSchema() {
        _super.apply(this, arguments);
    }
    ContactSchema.prototype.RegisterProperties = function () {
        _super.prototype.RegisterProperties.call(this);
        _super.prototype.RegisterProperty.call(this, ContactSchema.FileAs);
        _super.prototype.RegisterProperty.call(this, ContactSchema.FileAsMapping);
        _super.prototype.RegisterProperty.call(this, ContactSchema.DisplayName);
        _super.prototype.RegisterProperty.call(this, ContactSchema.GivenName);
        _super.prototype.RegisterProperty.call(this, ContactSchema.Initials);
        _super.prototype.RegisterProperty.call(this, ContactSchema.MiddleName);
        _super.prototype.RegisterProperty.call(this, ContactSchema.NickName);
        _super.prototype.RegisterProperty.call(this, ContactSchema.CompleteName);
        _super.prototype.RegisterProperty.call(this, ContactSchema.CompanyName);
        _super.prototype.RegisterProperty.call(this, ContactSchema.EmailAddresses);
        _super.prototype.RegisterProperty.call(this, ContactSchema.PhysicalAddresses);
        _super.prototype.RegisterProperty.call(this, ContactSchema.PhoneNumbers);
        _super.prototype.RegisterProperty.call(this, ContactSchema.AssistantName);
        _super.prototype.RegisterProperty.call(this, ContactSchema.Birthday);
        _super.prototype.RegisterProperty.call(this, ContactSchema.BusinessHomePage);
        _super.prototype.RegisterProperty.call(this, ContactSchema.Children);
        _super.prototype.RegisterProperty.call(this, ContactSchema.Companies);
        _super.prototype.RegisterProperty.call(this, ContactSchema.ContactSource);
        _super.prototype.RegisterProperty.call(this, ContactSchema.Department);
        _super.prototype.RegisterProperty.call(this, ContactSchema.Generation);
        _super.prototype.RegisterProperty.call(this, ContactSchema.ImAddresses);
        _super.prototype.RegisterProperty.call(this, ContactSchema.JobTitle);
        _super.prototype.RegisterProperty.call(this, ContactSchema.Manager);
        _super.prototype.RegisterProperty.call(this, ContactSchema.Mileage);
        _super.prototype.RegisterProperty.call(this, ContactSchema.OfficeLocation);
        _super.prototype.RegisterProperty.call(this, ContactSchema.PostalAddressIndex);
        _super.prototype.RegisterProperty.call(this, ContactSchema.Profession);
        _super.prototype.RegisterProperty.call(this, ContactSchema.SpouseName);
        _super.prototype.RegisterProperty.call(this, ContactSchema.Surname);
        _super.prototype.RegisterProperty.call(this, ContactSchema.WeddingAnniversary);
        _super.prototype.RegisterProperty.call(this, ContactSchema.HasPicture);
        _super.prototype.RegisterProperty.call(this, ContactSchema.PhoneticFullName);
        _super.prototype.RegisterProperty.call(this, ContactSchema.PhoneticFirstName);
        _super.prototype.RegisterProperty.call(this, ContactSchema.PhoneticLastName);
        _super.prototype.RegisterProperty.call(this, ContactSchema.Alias);
        _super.prototype.RegisterProperty.call(this, ContactSchema.Notes);
        _super.prototype.RegisterProperty.call(this, ContactSchema.Photo);
        _super.prototype.RegisterProperty.call(this, ContactSchema.UserSMIMECertificate);
        _super.prototype.RegisterProperty.call(this, ContactSchema.MSExchangeCertificate);
        _super.prototype.RegisterProperty.call(this, ContactSchema.DirectoryId);
        _super.prototype.RegisterProperty.call(this, ContactSchema.ManagerMailbox);
        _super.prototype.RegisterProperty.call(this, ContactSchema.DirectReports);
        _super.prototype.RegisterIndexedProperty.call(this, ContactSchema.EmailAddress1);
        _super.prototype.RegisterIndexedProperty.call(this, ContactSchema.EmailAddress2);
        _super.prototype.RegisterIndexedProperty.call(this, ContactSchema.EmailAddress3);
        _super.prototype.RegisterIndexedProperty.call(this, ContactSchema.ImAddress1);
        _super.prototype.RegisterIndexedProperty.call(this, ContactSchema.ImAddress2);
        _super.prototype.RegisterIndexedProperty.call(this, ContactSchema.ImAddress3);
        _super.prototype.RegisterIndexedProperty.call(this, ContactSchema.AssistantPhone);
        _super.prototype.RegisterIndexedProperty.call(this, ContactSchema.BusinessFax);
        _super.prototype.RegisterIndexedProperty.call(this, ContactSchema.BusinessPhone);
        _super.prototype.RegisterIndexedProperty.call(this, ContactSchema.BusinessPhone2);
        _super.prototype.RegisterIndexedProperty.call(this, ContactSchema.Callback);
        _super.prototype.RegisterIndexedProperty.call(this, ContactSchema.CarPhone);
        _super.prototype.RegisterIndexedProperty.call(this, ContactSchema.CompanyMainPhone);
        _super.prototype.RegisterIndexedProperty.call(this, ContactSchema.HomeFax);
        _super.prototype.RegisterIndexedProperty.call(this, ContactSchema.HomePhone);
        _super.prototype.RegisterIndexedProperty.call(this, ContactSchema.HomePhone2);
        _super.prototype.RegisterIndexedProperty.call(this, ContactSchema.Isdn);
        _super.prototype.RegisterIndexedProperty.call(this, ContactSchema.MobilePhone);
        _super.prototype.RegisterIndexedProperty.call(this, ContactSchema.OtherFax);
        _super.prototype.RegisterIndexedProperty.call(this, ContactSchema.OtherTelephone);
        _super.prototype.RegisterIndexedProperty.call(this, ContactSchema.Pager);
        _super.prototype.RegisterIndexedProperty.call(this, ContactSchema.PrimaryPhone);
        _super.prototype.RegisterIndexedProperty.call(this, ContactSchema.RadioPhone);
        _super.prototype.RegisterIndexedProperty.call(this, ContactSchema.Telex);
        _super.prototype.RegisterIndexedProperty.call(this, ContactSchema.TtyTddPhone);
        _super.prototype.RegisterIndexedProperty.call(this, ContactSchema.BusinessAddressStreet);
        _super.prototype.RegisterIndexedProperty.call(this, ContactSchema.BusinessAddressCity);
        _super.prototype.RegisterIndexedProperty.call(this, ContactSchema.BusinessAddressState);
        _super.prototype.RegisterIndexedProperty.call(this, ContactSchema.BusinessAddressCountryOrRegion);
        _super.prototype.RegisterIndexedProperty.call(this, ContactSchema.BusinessAddressPostalCode);
        _super.prototype.RegisterIndexedProperty.call(this, ContactSchema.HomeAddressStreet);
        _super.prototype.RegisterIndexedProperty.call(this, ContactSchema.HomeAddressCity);
        _super.prototype.RegisterIndexedProperty.call(this, ContactSchema.HomeAddressState);
        _super.prototype.RegisterIndexedProperty.call(this, ContactSchema.HomeAddressCountryOrRegion);
        _super.prototype.RegisterIndexedProperty.call(this, ContactSchema.HomeAddressPostalCode);
        _super.prototype.RegisterIndexedProperty.call(this, ContactSchema.OtherAddressStreet);
        _super.prototype.RegisterIndexedProperty.call(this, ContactSchema.OtherAddressCity);
        _super.prototype.RegisterIndexedProperty.call(this, ContactSchema.OtherAddressState);
        _super.prototype.RegisterIndexedProperty.call(this, ContactSchema.OtherAddressCountryOrRegion);
        _super.prototype.RegisterIndexedProperty.call(this, ContactSchema.OtherAddressPostalCode);
    };
    ContactSchema.FileAs = new StringPropertyDefinition_1.StringPropertyDefinition("FileAs", XmlElementNames_1.XmlElementNames.FileAs, ExchangeVersion_1.ExchangeVersion.Exchange2007_SP1, FieldUris.FileAs, PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanSet | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanUpdate | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanDelete | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanFind);
    ContactSchema.FileAsMapping = new GenericPropertyDefinition_1.GenericPropertyDefinition("FileAsMapping", XmlElementNames_1.XmlElementNames.FileAsMapping, ExchangeVersion_1.ExchangeVersion.Exchange2007_SP1, FieldUris.FileAsMapping, PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanSet | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanUpdate | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanDelete | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanFind);
    ContactSchema.DisplayName = new StringPropertyDefinition_1.StringPropertyDefinition("DisplayName", XmlElementNames_1.XmlElementNames.DisplayName, ExchangeVersion_1.ExchangeVersion.Exchange2007_SP1, FieldUris.DisplayName, PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanSet | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanUpdate | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanDelete | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanFind);
    ContactSchema.GivenName = new StringPropertyDefinition_1.StringPropertyDefinition("GivenName", XmlElementNames_1.XmlElementNames.GivenName, ExchangeVersion_1.ExchangeVersion.Exchange2007_SP1, FieldUris.GivenName, PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanSet | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanUpdate | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanDelete | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanFind);
    ContactSchema.Initials = new StringPropertyDefinition_1.StringPropertyDefinition("Initials", XmlElementNames_1.XmlElementNames.Initials, ExchangeVersion_1.ExchangeVersion.Exchange2007_SP1, FieldUris.Initials, PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanSet | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanUpdate | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanDelete | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanFind);
    ContactSchema.MiddleName = new StringPropertyDefinition_1.StringPropertyDefinition("MiddleName", XmlElementNames_1.XmlElementNames.MiddleName, ExchangeVersion_1.ExchangeVersion.Exchange2007_SP1, FieldUris.MiddleName, PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanSet | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanUpdate | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanDelete | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanFind);
    ContactSchema.NickName = new StringPropertyDefinition_1.StringPropertyDefinition("Nickname", XmlElementNames_1.XmlElementNames.NickName, ExchangeVersion_1.ExchangeVersion.Exchange2007_SP1, FieldUris.NickName, PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanSet | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanUpdate | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanDelete | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanFind);
    ContactSchema.CompleteName = new ComplexPropertyDefinition_1.ComplexPropertyDefinition("CompleteName", XmlElementNames_1.XmlElementNames.CompleteName, ExchangeVersion_1.ExchangeVersion.Exchange2007_SP1, FieldUris.CompleteName, PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanFind, function () { return new CompleteName_1.CompleteName(); });
    ContactSchema.CompanyName = new StringPropertyDefinition_1.StringPropertyDefinition("CompanyName", XmlElementNames_1.XmlElementNames.CompanyName, ExchangeVersion_1.ExchangeVersion.Exchange2007_SP1, FieldUris.CompanyName, PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanSet | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanUpdate | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanDelete | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanFind);
    ContactSchema.EmailAddresses = new ComplexPropertyDefinition_1.ComplexPropertyDefinition("EmailAddresses", XmlElementNames_1.XmlElementNames.EmailAddresses, ExchangeVersion_1.ExchangeVersion.Exchange2007_SP1, FieldUris.EmailAddresses, PropertyDefinitionFlags_1.PropertyDefinitionFlags.AutoInstantiateOnRead | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanSet | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanUpdate, function () { return new EmailAddressDictionary_1.EmailAddressDictionary(); });
    ContactSchema.PhysicalAddresses = new ComplexPropertyDefinition_1.ComplexPropertyDefinition("PhysicalAddresses", XmlElementNames_1.XmlElementNames.PhysicalAddresses, ExchangeVersion_1.ExchangeVersion.Exchange2007_SP1, FieldUris.PhysicalAddresses, PropertyDefinitionFlags_1.PropertyDefinitionFlags.AutoInstantiateOnRead | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanSet | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanUpdate, function () { return new PhysicalAddressDictionary_1.PhysicalAddressDictionary(); });
    ContactSchema.PhoneNumbers = new ComplexPropertyDefinition_1.ComplexPropertyDefinition("PhoneNumbers", XmlElementNames_1.XmlElementNames.PhoneNumbers, ExchangeVersion_1.ExchangeVersion.Exchange2007_SP1, FieldUris.PhoneNumbers, PropertyDefinitionFlags_1.PropertyDefinitionFlags.AutoInstantiateOnRead | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanSet | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanUpdate, function () { return new PhoneNumberDictionary_1.PhoneNumberDictionary(); });
    ContactSchema.AssistantName = new StringPropertyDefinition_1.StringPropertyDefinition("AssistantName", XmlElementNames_1.XmlElementNames.AssistantName, ExchangeVersion_1.ExchangeVersion.Exchange2007_SP1, FieldUris.AssistantName, PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanSet | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanUpdate | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanDelete | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanFind);
    ContactSchema.Birthday = new DateTimePropertyDefinition_1.DateTimePropertyDefinition("Birthday", XmlElementNames_1.XmlElementNames.Birthday, ExchangeVersion_1.ExchangeVersion.Exchange2007_SP1, FieldUris.Birthday, PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanSet | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanUpdate | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanDelete | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanFind);
    ContactSchema.BusinessHomePage = new StringPropertyDefinition_1.StringPropertyDefinition("BusinessHomePage", XmlElementNames_1.XmlElementNames.BusinessHomePage, ExchangeVersion_1.ExchangeVersion.Exchange2007_SP1, FieldUris.BusinessHomePage, PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanSet | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanUpdate | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanDelete | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanFind);
    ContactSchema.Children = new ComplexPropertyDefinition_1.ComplexPropertyDefinition("Children", XmlElementNames_1.XmlElementNames.Children, ExchangeVersion_1.ExchangeVersion.Exchange2007_SP1, FieldUris.Children, PropertyDefinitionFlags_1.PropertyDefinitionFlags.AutoInstantiateOnRead | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanSet | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanUpdate | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanDelete | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanFind, function () { return new StringList_1.StringList(); });
    ContactSchema.Companies = new ComplexPropertyDefinition_1.ComplexPropertyDefinition("Companies", XmlElementNames_1.XmlElementNames.Companies, ExchangeVersion_1.ExchangeVersion.Exchange2007_SP1, FieldUris.Companies, PropertyDefinitionFlags_1.PropertyDefinitionFlags.AutoInstantiateOnRead | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanSet | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanUpdate | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanDelete | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanFind, function () { return new StringList_1.StringList(); });
    ContactSchema.ContactSource = new GenericPropertyDefinition_1.GenericPropertyDefinition("ContactSource", XmlElementNames_1.XmlElementNames.ContactSource, ExchangeVersion_1.ExchangeVersion.Exchange2007_SP1, FieldUris.ContactSource, PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanFind);
    ContactSchema.Department = new StringPropertyDefinition_1.StringPropertyDefinition("Department", XmlElementNames_1.XmlElementNames.Department, ExchangeVersion_1.ExchangeVersion.Exchange2007_SP1, FieldUris.Department, PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanSet | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanUpdate | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanDelete | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanFind);
    ContactSchema.Generation = new StringPropertyDefinition_1.StringPropertyDefinition("Generation", XmlElementNames_1.XmlElementNames.Generation, ExchangeVersion_1.ExchangeVersion.Exchange2007_SP1, FieldUris.Generation, PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanSet | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanUpdate | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanDelete | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanFind);
    ContactSchema.ImAddresses = new ComplexPropertyDefinition_1.ComplexPropertyDefinition("ImAddresses", XmlElementNames_1.XmlElementNames.ImAddresses, ExchangeVersion_1.ExchangeVersion.Exchange2007_SP1, FieldUris.ImAddresses, PropertyDefinitionFlags_1.PropertyDefinitionFlags.AutoInstantiateOnRead | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanSet | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanUpdate, function () { return new ImAddressDictionary_1.ImAddressDictionary(); });
    ContactSchema.JobTitle = new StringPropertyDefinition_1.StringPropertyDefinition("JobTitle", XmlElementNames_1.XmlElementNames.JobTitle, ExchangeVersion_1.ExchangeVersion.Exchange2007_SP1, FieldUris.JobTitle, PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanSet | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanUpdate | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanDelete | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanFind);
    ContactSchema.Manager = new StringPropertyDefinition_1.StringPropertyDefinition("Manager", XmlElementNames_1.XmlElementNames.Manager, ExchangeVersion_1.ExchangeVersion.Exchange2007_SP1, FieldUris.Manager, PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanSet | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanUpdate | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanDelete | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanFind);
    ContactSchema.Mileage = new StringPropertyDefinition_1.StringPropertyDefinition("Mileage", XmlElementNames_1.XmlElementNames.Mileage, ExchangeVersion_1.ExchangeVersion.Exchange2007_SP1, FieldUris.Mileage, PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanSet | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanUpdate | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanDelete | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanFind);
    ContactSchema.OfficeLocation = new StringPropertyDefinition_1.StringPropertyDefinition("OfficeLocation", XmlElementNames_1.XmlElementNames.OfficeLocation, ExchangeVersion_1.ExchangeVersion.Exchange2007_SP1, FieldUris.OfficeLocation, PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanSet | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanUpdate | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanDelete | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanFind);
    ContactSchema.PostalAddressIndex = new GenericPropertyDefinition_1.GenericPropertyDefinition("PostalAddressIndex", XmlElementNames_1.XmlElementNames.PostalAddressIndex, ExchangeVersion_1.ExchangeVersion.Exchange2007_SP1, FieldUris.PostalAddressIndex, PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanSet | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanUpdate | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanDelete | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanFind);
    ContactSchema.Profession = new StringPropertyDefinition_1.StringPropertyDefinition("Profession", XmlElementNames_1.XmlElementNames.Profession, ExchangeVersion_1.ExchangeVersion.Exchange2007_SP1, FieldUris.Profession, PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanSet | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanUpdate | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanDelete | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanFind);
    ContactSchema.SpouseName = new StringPropertyDefinition_1.StringPropertyDefinition("SpouseName", XmlElementNames_1.XmlElementNames.SpouseName, ExchangeVersion_1.ExchangeVersion.Exchange2007_SP1, FieldUris.SpouseName, PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanSet | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanUpdate | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanDelete | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanFind);
    ContactSchema.Surname = new StringPropertyDefinition_1.StringPropertyDefinition("Surname", XmlElementNames_1.XmlElementNames.Surname, ExchangeVersion_1.ExchangeVersion.Exchange2007_SP1, FieldUris.Surname, PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanSet | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanUpdate | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanDelete | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanFind);
    ContactSchema.WeddingAnniversary = new DateTimePropertyDefinition_1.DateTimePropertyDefinition("WeddingAnniversary", XmlElementNames_1.XmlElementNames.WeddingAnniversary, ExchangeVersion_1.ExchangeVersion.Exchange2007_SP1, FieldUris.WeddingAnniversary, PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanSet | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanUpdate | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanDelete | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanFind);
    ContactSchema.HasPicture = new BoolPropertyDefinition_1.BoolPropertyDefinition("HasPicture", XmlElementNames_1.XmlElementNames.HasPicture, ExchangeVersion_1.ExchangeVersion.Exchange2010, FieldUris.HasPicture, PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanFind);
    ContactSchema.PhoneticFullName = new StringPropertyDefinition_1.StringPropertyDefinition("PhoneticFullName", XmlElementNames_1.XmlElementNames.PhoneticFullName, ExchangeVersion_1.ExchangeVersion.Exchange2010_SP1, FieldUris.PhoneticFullName, PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanFind);
    ContactSchema.PhoneticFirstName = new StringPropertyDefinition_1.StringPropertyDefinition("PhoneticFirstName", XmlElementNames_1.XmlElementNames.PhoneticFirstName, ExchangeVersion_1.ExchangeVersion.Exchange2010_SP1, FieldUris.PhoneticFirstName, PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanFind);
    ContactSchema.PhoneticLastName = new StringPropertyDefinition_1.StringPropertyDefinition("PhoneticLastName", XmlElementNames_1.XmlElementNames.PhoneticLastName, ExchangeVersion_1.ExchangeVersion.Exchange2010_SP1, FieldUris.PhoneticLastName, PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanFind);
    ContactSchema.Alias = new StringPropertyDefinition_1.StringPropertyDefinition("Alias", XmlElementNames_1.XmlElementNames.Alias, ExchangeVersion_1.ExchangeVersion.Exchange2010_SP1, FieldUris.Alias, PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanFind);
    ContactSchema.Notes = new StringPropertyDefinition_1.StringPropertyDefinition("Notes", XmlElementNames_1.XmlElementNames.Notes, ExchangeVersion_1.ExchangeVersion.Exchange2010_SP1, FieldUris.Notes, PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanFind);
    ContactSchema.Photo = new ByteArrayPropertyDefinition_1.ByteArrayPropertyDefinition("Photo", XmlElementNames_1.XmlElementNames.Photo, ExchangeVersion_1.ExchangeVersion.Exchange2010_SP1, FieldUris.Photo, PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanFind);
    ContactSchema.UserSMIMECertificate = new ComplexPropertyDefinition_1.ComplexPropertyDefinition("UserSMIMECertificate", XmlElementNames_1.XmlElementNames.UserSMIMECertificate, ExchangeVersion_1.ExchangeVersion.Exchange2010_SP1, FieldUris.UserSMIMECertificate, PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanFind, function () { return new ByteArrayArray_1.ByteArrayArray(); });
    ContactSchema.MSExchangeCertificate = new ComplexPropertyDefinition_1.ComplexPropertyDefinition("MSExchangeCertificate", XmlElementNames_1.XmlElementNames.MSExchangeCertificate, ExchangeVersion_1.ExchangeVersion.Exchange2010_SP1, FieldUris.MSExchangeCertificate, PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanFind, function () { return new ByteArrayArray_1.ByteArrayArray(); });
    ContactSchema.DirectoryId = new StringPropertyDefinition_1.StringPropertyDefinition("DirectoryId", XmlElementNames_1.XmlElementNames.DirectoryId, ExchangeVersion_1.ExchangeVersion.Exchange2010_SP1, FieldUris.DirectoryId, PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanFind);
    ContactSchema.ManagerMailbox = new ContainedPropertyDefinition_1.ContainedPropertyDefinition("ManagerMailbox", XmlElementNames_1.XmlElementNames.ManagerMailbox, XmlElementNames_1.XmlElementNames.Mailbox, ExchangeVersion_1.ExchangeVersion.Exchange2010_SP1, FieldUris.ManagerMailbox, PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanFind, function () { return new EmailAddress_1.EmailAddress(); });
    ContactSchema.DirectReports = new ComplexPropertyDefinition_1.ComplexPropertyDefinition("DirectReports", XmlElementNames_1.XmlElementNames.DirectReports, ExchangeVersion_1.ExchangeVersion.Exchange2010_SP1, FieldUris.DirectReports, PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanFind, function () { return new EmailAddressCollection_1.EmailAddressCollection(); });
    ContactSchema.EmailAddress1 = new IndexedPropertyDefinition_1.IndexedPropertyDefinition(FieldUris.EmailAddress, "EmailAddress1");
    ContactSchema.EmailAddress2 = new IndexedPropertyDefinition_1.IndexedPropertyDefinition(FieldUris.EmailAddress, "EmailAddress2");
    ContactSchema.EmailAddress3 = new IndexedPropertyDefinition_1.IndexedPropertyDefinition(FieldUris.EmailAddress, "EmailAddress3");
    ContactSchema.ImAddress1 = new IndexedPropertyDefinition_1.IndexedPropertyDefinition(FieldUris.ImAddress, "ImAddress1");
    ContactSchema.ImAddress2 = new IndexedPropertyDefinition_1.IndexedPropertyDefinition(FieldUris.ImAddress, "ImAddress2");
    ContactSchema.ImAddress3 = new IndexedPropertyDefinition_1.IndexedPropertyDefinition(FieldUris.ImAddress, "ImAddress3");
    ContactSchema.AssistantPhone = new IndexedPropertyDefinition_1.IndexedPropertyDefinition(FieldUris.PhoneNumber, "AssistantPhone");
    ContactSchema.BusinessFax = new IndexedPropertyDefinition_1.IndexedPropertyDefinition(FieldUris.PhoneNumber, "BusinessFax");
    ContactSchema.BusinessPhone = new IndexedPropertyDefinition_1.IndexedPropertyDefinition(FieldUris.PhoneNumber, "BusinessPhone");
    ContactSchema.BusinessPhone2 = new IndexedPropertyDefinition_1.IndexedPropertyDefinition(FieldUris.PhoneNumber, "BusinessPhone2");
    ContactSchema.Callback = new IndexedPropertyDefinition_1.IndexedPropertyDefinition(FieldUris.PhoneNumber, "Callback");
    ContactSchema.CarPhone = new IndexedPropertyDefinition_1.IndexedPropertyDefinition(FieldUris.PhoneNumber, "CarPhone");
    ContactSchema.CompanyMainPhone = new IndexedPropertyDefinition_1.IndexedPropertyDefinition(FieldUris.PhoneNumber, "CompanyMainPhone");
    ContactSchema.HomeFax = new IndexedPropertyDefinition_1.IndexedPropertyDefinition(FieldUris.PhoneNumber, "HomeFax");
    ContactSchema.HomePhone = new IndexedPropertyDefinition_1.IndexedPropertyDefinition(FieldUris.PhoneNumber, "HomePhone");
    ContactSchema.HomePhone2 = new IndexedPropertyDefinition_1.IndexedPropertyDefinition(FieldUris.PhoneNumber, "HomePhone2");
    ContactSchema.Isdn = new IndexedPropertyDefinition_1.IndexedPropertyDefinition(FieldUris.PhoneNumber, "Isdn");
    ContactSchema.MobilePhone = new IndexedPropertyDefinition_1.IndexedPropertyDefinition(FieldUris.PhoneNumber, "MobilePhone");
    ContactSchema.OtherFax = new IndexedPropertyDefinition_1.IndexedPropertyDefinition(FieldUris.PhoneNumber, "OtherFax");
    ContactSchema.OtherTelephone = new IndexedPropertyDefinition_1.IndexedPropertyDefinition(FieldUris.PhoneNumber, "OtherTelephone");
    ContactSchema.Pager = new IndexedPropertyDefinition_1.IndexedPropertyDefinition(FieldUris.PhoneNumber, "Pager");
    ContactSchema.PrimaryPhone = new IndexedPropertyDefinition_1.IndexedPropertyDefinition(FieldUris.PhoneNumber, "PrimaryPhone");
    ContactSchema.RadioPhone = new IndexedPropertyDefinition_1.IndexedPropertyDefinition(FieldUris.PhoneNumber, "RadioPhone");
    ContactSchema.Telex = new IndexedPropertyDefinition_1.IndexedPropertyDefinition(FieldUris.PhoneNumber, "Telex");
    ContactSchema.TtyTddPhone = new IndexedPropertyDefinition_1.IndexedPropertyDefinition(FieldUris.PhoneNumber, "TtyTddPhone");
    ContactSchema.BusinessAddressStreet = new IndexedPropertyDefinition_1.IndexedPropertyDefinition(FieldUris.PhysicalAddressStreet, "Business");
    ContactSchema.BusinessAddressCity = new IndexedPropertyDefinition_1.IndexedPropertyDefinition(FieldUris.PhysicalAddressCity, "Business");
    ContactSchema.BusinessAddressState = new IndexedPropertyDefinition_1.IndexedPropertyDefinition(FieldUris.PhysicalAddressState, "Business");
    ContactSchema.BusinessAddressCountryOrRegion = new IndexedPropertyDefinition_1.IndexedPropertyDefinition(FieldUris.PhysicalAddressCountryOrRegion, "Business");
    ContactSchema.BusinessAddressPostalCode = new IndexedPropertyDefinition_1.IndexedPropertyDefinition(FieldUris.PhysicalAddressPostalCode, "Business");
    ContactSchema.HomeAddressStreet = new IndexedPropertyDefinition_1.IndexedPropertyDefinition(FieldUris.PhysicalAddressStreet, "Home");
    ContactSchema.HomeAddressCity = new IndexedPropertyDefinition_1.IndexedPropertyDefinition(FieldUris.PhysicalAddressCity, "Home");
    ContactSchema.HomeAddressState = new IndexedPropertyDefinition_1.IndexedPropertyDefinition(FieldUris.PhysicalAddressState, "Home");
    ContactSchema.HomeAddressCountryOrRegion = new IndexedPropertyDefinition_1.IndexedPropertyDefinition(FieldUris.PhysicalAddressCountryOrRegion, "Home");
    ContactSchema.HomeAddressPostalCode = new IndexedPropertyDefinition_1.IndexedPropertyDefinition(FieldUris.PhysicalAddressPostalCode, "Home");
    ContactSchema.OtherAddressStreet = new IndexedPropertyDefinition_1.IndexedPropertyDefinition(FieldUris.PhysicalAddressStreet, "Other");
    ContactSchema.OtherAddressCity = new IndexedPropertyDefinition_1.IndexedPropertyDefinition(FieldUris.PhysicalAddressCity, "Other");
    ContactSchema.OtherAddressState = new IndexedPropertyDefinition_1.IndexedPropertyDefinition(FieldUris.PhysicalAddressState, "Other");
    ContactSchema.OtherAddressCountryOrRegion = new IndexedPropertyDefinition_1.IndexedPropertyDefinition(FieldUris.PhysicalAddressCountryOrRegion, "Other");
    ContactSchema.OtherAddressPostalCode = new IndexedPropertyDefinition_1.IndexedPropertyDefinition(FieldUris.PhysicalAddressPostalCode, "Other");
    ContactSchema.Instance = new ContactSchema();
    return ContactSchema;
})(ItemSchema_1.ItemSchema);
exports.ContactSchema = ContactSchema;