UNPKG

vso-node-api

Version:

Node client for Visual Studio Online/TFS REST APIs

482 lines (481 loc) 10.5 kB
/** * Represent a control in the form. */ export interface Control { /** * Contribution for the control. */ contribution: WitContribution; /** * Type of the control. */ controlType: string; /** * Height of the control, for html controls. */ height: number; /** * The id for the layout node. */ id: string; /** * A value indicating whether this layout node has been inherited from a parent layout. This is expected to only be only set by the combiner. */ inherited: boolean; /** * A value indicating if the layout node is contribution or not. */ isContribution: boolean; /** * Label for the field */ label: string; /** * Inner text of the control. */ metadata: string; order: number; /** * A value indicating whether this layout node has been overridden by a child layout. */ overridden: boolean; /** * A value indicating if the control is readonly. */ readOnly: boolean; /** * A value indicating if the control should be hidden or not. */ visible: boolean; /** * Watermark text for the textbox. */ watermark: string; } export interface CreateProcessModel { /** * Description of the process */ description: string; /** * Name of the process */ name: string; /** * The ID of the parent process */ parentProcessTypeId: string; /** * Reference name of the process */ referenceName: string; } /** * Represents the extensions part of the layout */ export interface Extension { id: string; } export interface FieldModel { description: string; id: string; isIdentity: boolean; name: string; type: FieldType; url: string; } export interface FieldRuleModel { actions: RuleActionModel[]; conditions: RuleConditionModel[]; friendlyName: string; id: string; isDisabled: boolean; isSystem: boolean; } export declare enum FieldType { String = 1, Integer = 2, DateTime = 3, PlainText = 5, Html = 7, TreePath = 8, History = 9, Double = 10, Guid = 11, Boolean = 12, Identity = 13, PicklistInteger = 14, PicklistString = 15, PicklistDouble = 16, } export interface FormLayout { /** * Gets and sets extensions list */ extensions: Extension[]; /** * Top level tabs of the layout. */ pages: Page[]; /** * Headers controls of the layout. */ systemControls: Control[]; } export declare enum GetBehaviorsExpand { None = 0, Fields = 1, } export declare enum GetProcessExpandLevel { None = 0, Projects = 1, } export declare enum GetWorkItemTypeExpand { None = 0, States = 1, Behaviors = 2, Layout = 4, } /** * Represent a group in the form that holds controls in it. */ export interface Group { /** * Contribution for the group. */ contribution: WitContribution; /** * Controls to be put in the group. */ controls: Control[]; /** * The height for the contribution. */ height: number; /** * The id for the layout node. */ id: string; /** * A value indicating whether this layout node has been inherited from a parent layout. This is expected to only be only set by the combiner. */ inherited: boolean; /** * A value indicating if the layout node is contribution are not. */ isContribution: boolean; /** * Label for the group. */ label: string; /** * Order in which the group should appear in the section. */ order: number; /** * A value indicating whether this layout node has been overridden by a child layout. */ overridden: boolean; /** * A value indicating if the group should be hidden or not. */ visible: boolean; } export interface Page { /** * Contribution for the page. */ contribution: WitContribution; /** * The id for the layout node. */ id: string; /** * A value indicating whether this layout node has been inherited from a parent layout. This is expected to only be only set by the combiner. */ inherited: boolean; /** * A value indicating if the layout node is contribution are not. */ isContribution: boolean; /** * The label for the page. */ label: string; /** * A value indicating whether any user operations are permitted on this page and the contents of this page */ locked: boolean; /** * Order in which the page should appear in the layout. */ order: number; /** * A value indicating whether this layout node has been overridden by a child layout. */ overridden: boolean; /** * The icon for the page. */ pageType: PageType; /** * The sections of the page. */ sections: Section[]; /** * A value indicating if the page should be hidden or not. */ visible: boolean; } export declare enum PageType { Custom = 1, History = 2, Links = 3, Attachments = 4, } export declare enum ProcessClass { System = 0, Derived = 1, Custom = 2, } export interface ProcessModel { /** * Description of the process */ description: string; /** * Name of the process */ name: string; /** * Projects in this process */ projects: ProjectReference[]; /** * Properties of the process */ properties: ProcessProperties; /** * Reference name of the process */ referenceName: string; /** * The ID of the process */ typeId: string; } /** * Properties of the process */ export interface ProcessProperties { /** * Class of the process */ class: ProcessClass; /** * Is the process default process */ isDefault: boolean; /** * Is the process enabled */ isEnabled: boolean; /** * ID of the parent process */ parentProcessTypeId: string; /** * Version of the process */ version: string; } export interface ProjectReference { /** * Description of the project */ description: string; /** * The ID of the project */ id: string; /** * Name of the project */ name: string; /** * Url of the project */ url: string; } export interface RuleActionModel { actionType: string; targetField: string; value: string; } export interface RuleConditionModel { conditionType: string; field: string; value: string; } export interface Section { groups: Group[]; /** * The id for the layout node. */ id: string; /** * A value indicating whether this layout node has been overridden by a child layout. */ overridden: boolean; } export interface UpdateProcessModel { description: string; isDefault: boolean; isEnabled: boolean; name: string; } export interface WitContribution { /** * The id for the contribution. */ contributionId: string; /** * The height for the contribution. */ height: number; /** * A dictionary holding key value pairs for contribution inputs. */ inputs: { [key: string]: any; }; /** * A value indicating if the contribution should be show on deleted workItem. */ showOnDeletedWorkItem: boolean; } export interface WorkItemBehavior { abstract: boolean; color: string; description: string; fields: WorkItemBehaviorField[]; id: string; inherits: WorkItemBehaviorReference; name: string; overriden: boolean; rank: number; url: string; } export interface WorkItemBehaviorField { behaviorFieldId: string; id: string; url: string; } export interface WorkItemBehaviorReference { id: string; url: string; } export interface WorkItemStateResultModel { color: string; hidden: boolean; id: string; name: string; order: number; stateCategory: string; url: string; } export interface WorkItemTypeBehavior { behavior: WorkItemBehaviorReference; isDefault: boolean; url: string; } export declare enum WorkItemTypeClass { System = 0, Derived = 1, Custom = 2, } export interface WorkItemTypeModel { behaviors: WorkItemTypeBehavior[]; class: WorkItemTypeClass; color: string; description: string; icon: string; id: string; /** * Parent WIT Id/Internal ReferenceName that it inherits from */ inherits: string; isDisabled: boolean; layout: FormLayout; name: string; states: WorkItemStateResultModel[]; url: string; } export declare var TypeInfo: { FieldModel: any; FieldType: { enumValues: { "string": number; "integer": number; "dateTime": number; "plainText": number; "html": number; "treePath": number; "history": number; "double": number; "guid": number; "boolean": number; "identity": number; "picklistInteger": number; "picklistString": number; "picklistDouble": number; }; }; FormLayout: any; GetBehaviorsExpand: { enumValues: { "none": number; "fields": number; }; }; GetProcessExpandLevel: { enumValues: { "none": number; "projects": number; }; }; GetWorkItemTypeExpand: { enumValues: { "none": number; "states": number; "behaviors": number; "layout": number; }; }; Page: any; PageType: { enumValues: { "custom": number; "history": number; "links": number; "attachments": number; }; }; ProcessClass: { enumValues: { "system": number; "derived": number; "custom": number; }; }; ProcessModel: any; ProcessProperties: any; WorkItemTypeClass: { enumValues: { "system": number; "derived": number; "custom": number; }; }; WorkItemTypeModel: any; };