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 ExchangeVersion_1 = require("../../../Enumerations/ExchangeVersion");
var IntPropertyDefinition_1 = require("../../../PropertyDefinitions/IntPropertyDefinition");
var PropertyDefinitionFlags_1 = require("../../../Enumerations/PropertyDefinitionFlags");
var DateTimePropertyDefinition_1 = require("../../../PropertyDefinitions/DateTimePropertyDefinition");
var StringPropertyDefinition_1 = require("../../../PropertyDefinitions/StringPropertyDefinition");
var ComplexPropertyDefinition_1 = require("../../../PropertyDefinitions/ComplexPropertyDefinition");
var StringList_1 = require("../../../ComplexProperties/StringList");
var TaskDelegationStatePropertyDefinition_1 = require("../../../PropertyDefinitions/TaskDelegationStatePropertyDefinition");
var GenericPropertyDefinition_1 = require("../../../PropertyDefinitions/GenericPropertyDefinition");
var BoolPropertyDefinition_1 = require("../../../PropertyDefinitions/BoolPropertyDefinition");
var DoublePropertyDefinition_1 = require("../../../PropertyDefinitions/DoublePropertyDefinition");
var RecurrencePropertyDefinition_1 = require("../../../PropertyDefinitions/RecurrencePropertyDefinition");
var ItemSchema_1 = require("./ItemSchema");
//module TaskSchema {
var FieldUris;
(function (FieldUris) {
    FieldUris.ActualWork = "task:ActualWork";
    FieldUris.AssignedTime = "task:AssignedTime";
    FieldUris.BillingInformation = "task:BillingInformation";
    FieldUris.ChangeCount = "task:ChangeCount";
    FieldUris.Companies = "task:Companies";
    FieldUris.CompleteDate = "task:CompleteDate";
    FieldUris.Contacts = "task:Contacts";
    FieldUris.DelegationState = "task:DelegationState";
    FieldUris.Delegator = "task:Delegator";
    FieldUris.DueDate = "task:DueDate";
    FieldUris.IsAssignmentEditable = "task:IsAssignmentEditable";
    FieldUris.IsComplete = "task:IsComplete";
    FieldUris.IsRecurring = "task:IsRecurring";
    FieldUris.IsTeamTask = "task:IsTeamTask";
    FieldUris.Mileage = "task:Mileage";
    FieldUris.Owner = "task:Owner";
    FieldUris.PercentComplete = "task:PercentComplete";
    FieldUris.Recurrence = "task:Recurrence";
    FieldUris.StartDate = "task:StartDate";
    FieldUris.Status = "task:Status";
    FieldUris.StatusDescription = "task:StatusDescription";
    FieldUris.TotalWork = "task:TotalWork";
})(FieldUris || (FieldUris = {}));
//}
var TaskSchema = (function (_super) {
    __extends(TaskSchema, _super);
    function TaskSchema() {
        _super.apply(this, arguments);
    }
    TaskSchema.prototype.RegisterProperties = function () {
        _super.prototype.RegisterProperties.call(this);
        _super.prototype.RegisterProperty.call(this, TaskSchema.ActualWork);
        _super.prototype.RegisterProperty.call(this, TaskSchema.AssignedTime);
        _super.prototype.RegisterProperty.call(this, TaskSchema.BillingInformation);
        _super.prototype.RegisterProperty.call(this, TaskSchema.ChangeCount);
        _super.prototype.RegisterProperty.call(this, TaskSchema.Companies);
        _super.prototype.RegisterProperty.call(this, TaskSchema.CompleteDate);
        _super.prototype.RegisterProperty.call(this, TaskSchema.Contacts);
        _super.prototype.RegisterProperty.call(this, TaskSchema.DelegationState);
        _super.prototype.RegisterProperty.call(this, TaskSchema.Delegator);
        _super.prototype.RegisterProperty.call(this, TaskSchema.DueDate);
        _super.prototype.RegisterProperty.call(this, TaskSchema.Mode);
        _super.prototype.RegisterProperty.call(this, TaskSchema.IsComplete);
        _super.prototype.RegisterProperty.call(this, TaskSchema.IsRecurring);
        _super.prototype.RegisterProperty.call(this, TaskSchema.IsTeamTask);
        _super.prototype.RegisterProperty.call(this, TaskSchema.Mileage);
        _super.prototype.RegisterProperty.call(this, TaskSchema.Owner);
        _super.prototype.RegisterProperty.call(this, TaskSchema.PercentComplete);
        _super.prototype.RegisterProperty.call(this, TaskSchema.Recurrence);
        _super.prototype.RegisterProperty.call(this, TaskSchema.StartDate);
        _super.prototype.RegisterProperty.call(this, TaskSchema.Status);
        _super.prototype.RegisterProperty.call(this, TaskSchema.StatusDescription);
        _super.prototype.RegisterProperty.call(this, TaskSchema.TotalWork);
    };
    TaskSchema.ActualWork = new IntPropertyDefinition_1.IntPropertyDefinition("ActualWork", "ActualWork", ExchangeVersion_1.ExchangeVersion.Exchange2007_SP1, FieldUris.ActualWork, PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanSet | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanUpdate | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanDelete | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanFind, true);
    TaskSchema.AssignedTime = new DateTimePropertyDefinition_1.DateTimePropertyDefinition("AssignedTime", "AssignedTime", ExchangeVersion_1.ExchangeVersion.Exchange2007_SP1, FieldUris.AssignedTime, PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanFind, true);
    TaskSchema.BillingInformation = new StringPropertyDefinition_1.StringPropertyDefinition("BillingInformation", "BillingInformation", ExchangeVersion_1.ExchangeVersion.Exchange2007_SP1, FieldUris.BillingInformation, PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanSet | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanUpdate | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanDelete | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanFind);
    TaskSchema.ChangeCount = new IntPropertyDefinition_1.IntPropertyDefinition("ChangeCount", "ChangeCount", ExchangeVersion_1.ExchangeVersion.Exchange2007_SP1, FieldUris.ChangeCount, PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanFind);
    TaskSchema.Companies = new ComplexPropertyDefinition_1.ComplexPropertyDefinition("Companies", "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(); });
    TaskSchema.CompleteDate = new DateTimePropertyDefinition_1.DateTimePropertyDefinition("CompleteDate", "CompleteDate", ExchangeVersion_1.ExchangeVersion.Exchange2007_SP1, FieldUris.CompleteDate, PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanSet | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanUpdate | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanDelete | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanFind, true);
    TaskSchema.Contacts = new ComplexPropertyDefinition_1.ComplexPropertyDefinition("Contacts", "Contacts", ExchangeVersion_1.ExchangeVersion.Exchange2007_SP1, FieldUris.Contacts, 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(); });
    TaskSchema.DelegationState = new TaskDelegationStatePropertyDefinition_1.TaskDelegationStatePropertyDefinition("DelegationState", "DelegationState", ExchangeVersion_1.ExchangeVersion.Exchange2007_SP1, FieldUris.DelegationState, PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanFind);
    TaskSchema.Delegator = new StringPropertyDefinition_1.StringPropertyDefinition("Delegator", "Delegator", ExchangeVersion_1.ExchangeVersion.Exchange2007_SP1, FieldUris.Delegator, PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanFind);
    TaskSchema.DueDate = new DateTimePropertyDefinition_1.DateTimePropertyDefinition("DueDate", "DueDate", ExchangeVersion_1.ExchangeVersion.Exchange2007_SP1, FieldUris.DueDate, PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanSet | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanUpdate | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanDelete | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanFind, true);
    TaskSchema.Mode = new GenericPropertyDefinition_1.GenericPropertyDefinition("IsAssignmentEditable", "IsAssignmentEditable", ExchangeVersion_1.ExchangeVersion.Exchange2007_SP1, FieldUris.IsAssignmentEditable, PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanFind);
    TaskSchema.IsComplete = new BoolPropertyDefinition_1.BoolPropertyDefinition("IsComplete", "IsComplete", ExchangeVersion_1.ExchangeVersion.Exchange2007_SP1, FieldUris.IsComplete, PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanFind);
    TaskSchema.IsRecurring = new BoolPropertyDefinition_1.BoolPropertyDefinition("IsRecurring", "IsRecurring", ExchangeVersion_1.ExchangeVersion.Exchange2007_SP1, FieldUris.IsRecurring, PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanFind);
    TaskSchema.IsTeamTask = new BoolPropertyDefinition_1.BoolPropertyDefinition("IsTeamTask", "IsTeamTask", ExchangeVersion_1.ExchangeVersion.Exchange2007_SP1, FieldUris.IsTeamTask, PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanFind);
    TaskSchema.Mileage = new StringPropertyDefinition_1.StringPropertyDefinition("Mileage", "Mileage", ExchangeVersion_1.ExchangeVersion.Exchange2007_SP1, FieldUris.Mileage, PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanSet | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanUpdate | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanDelete | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanFind);
    TaskSchema.Owner = new StringPropertyDefinition_1.StringPropertyDefinition("Owner", "Owner", ExchangeVersion_1.ExchangeVersion.Exchange2007_SP1, FieldUris.Owner, PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanFind);
    TaskSchema.PercentComplete = new DoublePropertyDefinition_1.DoublePropertyDefinition("PercentComplete", "PercentComplete", ExchangeVersion_1.ExchangeVersion.Exchange2007_SP1, FieldUris.PercentComplete, PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanSet | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanUpdate | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanFind);
    TaskSchema.Recurrence = new RecurrencePropertyDefinition_1.RecurrencePropertyDefinition("Recurrence", "Recurrence", ExchangeVersion_1.ExchangeVersion.Exchange2007_SP1, FieldUris.Recurrence, PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanSet | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanUpdate | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanDelete);
    TaskSchema.StartDate = new DateTimePropertyDefinition_1.DateTimePropertyDefinition("StartDate", "StartDate", ExchangeVersion_1.ExchangeVersion.Exchange2007_SP1, FieldUris.StartDate, PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanSet | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanUpdate | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanDelete | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanFind, true);
    TaskSchema.Status = new GenericPropertyDefinition_1.GenericPropertyDefinition("Status", "Status", ExchangeVersion_1.ExchangeVersion.Exchange2007_SP1, FieldUris.Status, PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanSet | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanUpdate | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanFind);
    TaskSchema.StatusDescription = new StringPropertyDefinition_1.StringPropertyDefinition("StatusDescription", "StatusDescription", ExchangeVersion_1.ExchangeVersion.Exchange2007_SP1, FieldUris.StatusDescription, PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanFind);
    TaskSchema.TotalWork = new IntPropertyDefinition_1.IntPropertyDefinition("TotalWork", "TotalWork", ExchangeVersion_1.ExchangeVersion.Exchange2007_SP1, FieldUris.TotalWork, PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanSet | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanUpdate | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanDelete | PropertyDefinitionFlags_1.PropertyDefinitionFlags.CanFind, true);
    TaskSchema.Instance = new TaskSchema();
    return TaskSchema;
})(ItemSchema_1.ItemSchema);
exports.TaskSchema = TaskSchema;