UNPKG

5.12 kBJavaScriptView Raw
1/*
2 * ---------------------------------------------------------
3 * Copyright(C) Microsoft Corporation. All rights reserved.
4 * ---------------------------------------------------------
5 *
6 * ---------------------------------------------------------
7 * Generated file, DO NOT EDIT
8 * ---------------------------------------------------------
9 */
10"use strict";
11Object.defineProperty(exports, "__esModule", { value: true });
12exports.TypeInfo = exports.WorkItemTypeClass = exports.PageType = exports.GetWorkItemTypeExpand = exports.FieldType = void 0;
13/**
14 * Enum for the type of a field.
15 */
16var FieldType;
17(function (FieldType) {
18 /**
19 * String field type.
20 */
21 FieldType[FieldType["String"] = 1] = "String";
22 /**
23 * Integer field type.
24 */
25 FieldType[FieldType["Integer"] = 2] = "Integer";
26 /**
27 * Datetime field type.
28 */
29 FieldType[FieldType["DateTime"] = 3] = "DateTime";
30 /**
31 * Plain Text field type.
32 */
33 FieldType[FieldType["PlainText"] = 5] = "PlainText";
34 /**
35 * HTML (Multiline) field type.
36 */
37 FieldType[FieldType["Html"] = 7] = "Html";
38 /**
39 * Treepath field type.
40 */
41 FieldType[FieldType["TreePath"] = 8] = "TreePath";
42 /**
43 * History field type.
44 */
45 FieldType[FieldType["History"] = 9] = "History";
46 /**
47 * Double field type.
48 */
49 FieldType[FieldType["Double"] = 10] = "Double";
50 /**
51 * Guid field type.
52 */
53 FieldType[FieldType["Guid"] = 11] = "Guid";
54 /**
55 * Boolean field type.
56 */
57 FieldType[FieldType["Boolean"] = 12] = "Boolean";
58 /**
59 * Identity field type.
60 */
61 FieldType[FieldType["Identity"] = 13] = "Identity";
62 /**
63 * Integer picklist field type.
64 */
65 FieldType[FieldType["PicklistInteger"] = 14] = "PicklistInteger";
66 /**
67 * String picklist field type.
68 */
69 FieldType[FieldType["PicklistString"] = 15] = "PicklistString";
70 /**
71 * Double picklist field type.
72 */
73 FieldType[FieldType["PicklistDouble"] = 16] = "PicklistDouble";
74})(FieldType = exports.FieldType || (exports.FieldType = {}));
75var GetWorkItemTypeExpand;
76(function (GetWorkItemTypeExpand) {
77 GetWorkItemTypeExpand[GetWorkItemTypeExpand["None"] = 0] = "None";
78 GetWorkItemTypeExpand[GetWorkItemTypeExpand["States"] = 1] = "States";
79 GetWorkItemTypeExpand[GetWorkItemTypeExpand["Behaviors"] = 2] = "Behaviors";
80 GetWorkItemTypeExpand[GetWorkItemTypeExpand["Layout"] = 4] = "Layout";
81})(GetWorkItemTypeExpand = exports.GetWorkItemTypeExpand || (exports.GetWorkItemTypeExpand = {}));
82/**
83 * Type of page
84 */
85var PageType;
86(function (PageType) {
87 PageType[PageType["Custom"] = 1] = "Custom";
88 PageType[PageType["History"] = 2] = "History";
89 PageType[PageType["Links"] = 3] = "Links";
90 PageType[PageType["Attachments"] = 4] = "Attachments";
91})(PageType = exports.PageType || (exports.PageType = {}));
92/**
93 * Work item type classes'
94 */
95var WorkItemTypeClass;
96(function (WorkItemTypeClass) {
97 WorkItemTypeClass[WorkItemTypeClass["System"] = 0] = "System";
98 WorkItemTypeClass[WorkItemTypeClass["Derived"] = 1] = "Derived";
99 WorkItemTypeClass[WorkItemTypeClass["Custom"] = 2] = "Custom";
100})(WorkItemTypeClass = exports.WorkItemTypeClass || (exports.WorkItemTypeClass = {}));
101exports.TypeInfo = {
102 FieldModel: {},
103 FieldType: {
104 enumValues: {
105 "string": 1,
106 "integer": 2,
107 "dateTime": 3,
108 "plainText": 5,
109 "html": 7,
110 "treePath": 8,
111 "history": 9,
112 "double": 10,
113 "guid": 11,
114 "boolean": 12,
115 "identity": 13,
116 "picklistInteger": 14,
117 "picklistString": 15,
118 "picklistDouble": 16
119 }
120 },
121 FormLayout: {},
122 GetWorkItemTypeExpand: {
123 enumValues: {
124 "none": 0,
125 "states": 1,
126 "behaviors": 2,
127 "layout": 4
128 }
129 },
130 Page: {},
131 PageType: {
132 enumValues: {
133 "custom": 1,
134 "history": 2,
135 "links": 3,
136 "attachments": 4
137 }
138 },
139 WorkItemTypeClass: {
140 enumValues: {
141 "system": 0,
142 "derived": 1,
143 "custom": 2
144 }
145 },
146 WorkItemTypeFieldModel: {},
147 WorkItemTypeFieldModel2: {},
148 WorkItemTypeModel: {},
149};
150exports.TypeInfo.FieldModel.fields = {
151 type: {
152 enumType: exports.TypeInfo.FieldType
153 }
154};
155exports.TypeInfo.FormLayout.fields = {
156 pages: {
157 isArray: true,
158 typeInfo: exports.TypeInfo.Page
159 }
160};
161exports.TypeInfo.Page.fields = {
162 pageType: {
163 enumType: exports.TypeInfo.PageType
164 }
165};
166exports.TypeInfo.WorkItemTypeFieldModel.fields = {
167 type: {
168 enumType: exports.TypeInfo.FieldType
169 }
170};
171exports.TypeInfo.WorkItemTypeFieldModel2.fields = {
172 type: {
173 enumType: exports.TypeInfo.FieldType
174 }
175};
176exports.TypeInfo.WorkItemTypeModel.fields = {
177 class: {
178 enumType: exports.TypeInfo.WorkItemTypeClass
179 },
180 layout: {
181 typeInfo: exports.TypeInfo.FormLayout
182 }
183};