1 | export interface BehaviorCreateModel {
|
2 | /**
|
3 | * Color
|
4 | */
|
5 | color?: string;
|
6 | /**
|
7 | * Optional - Id
|
8 | */
|
9 | id?: string;
|
10 | /**
|
11 | * Parent behavior id
|
12 | */
|
13 | inherits?: string;
|
14 | /**
|
15 | * Name of the behavior
|
16 | */
|
17 | name?: string;
|
18 | }
|
19 | export interface BehaviorModel {
|
20 | /**
|
21 | * Is the behavior abstract (i.e. can not be associated with any work item type)
|
22 | */
|
23 | abstract?: boolean;
|
24 | /**
|
25 | * Color
|
26 | */
|
27 | color?: string;
|
28 | /**
|
29 | * Description
|
30 | */
|
31 | description?: string;
|
32 | /**
|
33 | * Behavior Id
|
34 | */
|
35 | id?: string;
|
36 | /**
|
37 | * Parent behavior reference
|
38 | */
|
39 | inherits?: WorkItemBehaviorReference;
|
40 | /**
|
41 | * Behavior Name
|
42 | */
|
43 | name?: string;
|
44 | /**
|
45 | * Is the behavior overrides a behavior from system process
|
46 | */
|
47 | overridden?: boolean;
|
48 | /**
|
49 | * Rank
|
50 | */
|
51 | rank?: number;
|
52 | /**
|
53 | * Url of the behavior
|
54 | */
|
55 | url?: string;
|
56 | }
|
57 | export interface BehaviorReplaceModel {
|
58 | /**
|
59 | * Color
|
60 | */
|
61 | color?: string;
|
62 | /**
|
63 | * Behavior Name
|
64 | */
|
65 | name?: string;
|
66 | }
|
67 | /**
|
68 | * Represent a control in the form.
|
69 | */
|
70 | export interface Control {
|
71 | /**
|
72 | * Contribution for the control.
|
73 | */
|
74 | contribution?: WitContribution;
|
75 | /**
|
76 | * Type of the control.
|
77 | */
|
78 | controlType?: string;
|
79 | /**
|
80 | * Height of the control, for html controls.
|
81 | */
|
82 | height?: number;
|
83 | /**
|
84 | * The id for the layout node.
|
85 | */
|
86 | id?: string;
|
87 | /**
|
88 | * 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.
|
89 | */
|
90 | inherited?: boolean;
|
91 | /**
|
92 | * A value indicating if the layout node is contribution or not.
|
93 | */
|
94 | isContribution?: boolean;
|
95 | /**
|
96 | * Label for the field
|
97 | */
|
98 | label?: string;
|
99 | /**
|
100 | * Inner text of the control.
|
101 | */
|
102 | metadata?: string;
|
103 | /**
|
104 | * Order in which the control should appear in its group.
|
105 | */
|
106 | order?: number;
|
107 | /**
|
108 | * A value indicating whether this layout node has been overridden by a child layout.
|
109 | */
|
110 | overridden?: boolean;
|
111 | /**
|
112 | * A value indicating if the control is readonly.
|
113 | */
|
114 | readOnly?: boolean;
|
115 | /**
|
116 | * A value indicating if the control should be hidden or not.
|
117 | */
|
118 | visible?: boolean;
|
119 | /**
|
120 | * Watermark text for the textbox.
|
121 | */
|
122 | watermark?: string;
|
123 | }
|
124 | /**
|
125 | * Represents the extensions part of the layout
|
126 | */
|
127 | export interface Extension {
|
128 | id?: string;
|
129 | }
|
130 | export interface FieldModel {
|
131 | /**
|
132 | * Description about field
|
133 | */
|
134 | description?: string;
|
135 | /**
|
136 | * ID of the field
|
137 | */
|
138 | id?: string;
|
139 | /**
|
140 | * Name of the field
|
141 | */
|
142 | name?: string;
|
143 | /**
|
144 | * Reference to picklist in this field
|
145 | */
|
146 | pickList?: PickListMetadataModel;
|
147 | /**
|
148 | * Type of field
|
149 | */
|
150 | type?: FieldType;
|
151 | /**
|
152 | * Url to the field
|
153 | */
|
154 | url?: string;
|
155 | }
|
156 | /**
|
157 | * Enum for the type of a field.
|
158 | */
|
159 | export declare enum FieldType {
|
160 | /**
|
161 | * String field type.
|
162 | */
|
163 | String = 1,
|
164 | /**
|
165 | * Integer field type.
|
166 | */
|
167 | Integer = 2,
|
168 | /**
|
169 | * Datetime field type.
|
170 | */
|
171 | DateTime = 3,
|
172 | /**
|
173 | * Plain Text field type.
|
174 | */
|
175 | PlainText = 5,
|
176 | /**
|
177 | * HTML (Multiline) field type.
|
178 | */
|
179 | Html = 7,
|
180 | /**
|
181 | * Treepath field type.
|
182 | */
|
183 | TreePath = 8,
|
184 | /**
|
185 | * History field type.
|
186 | */
|
187 | History = 9,
|
188 | /**
|
189 | * Double field type.
|
190 | */
|
191 | Double = 10,
|
192 | /**
|
193 | * Guid field type.
|
194 | */
|
195 | Guid = 11,
|
196 | /**
|
197 | * Boolean field type.
|
198 | */
|
199 | Boolean = 12,
|
200 | /**
|
201 | * Identity field type.
|
202 | */
|
203 | Identity = 13,
|
204 | /**
|
205 | * Integer picklist field type.
|
206 | */
|
207 | PicklistInteger = 14,
|
208 | /**
|
209 | * String picklist field type.
|
210 | */
|
211 | PicklistString = 15,
|
212 | /**
|
213 | * Double picklist field type.
|
214 | */
|
215 | PicklistDouble = 16
|
216 | }
|
217 | export interface FieldUpdate {
|
218 | description?: string;
|
219 | id?: string;
|
220 | }
|
221 | export interface FormLayout {
|
222 | /**
|
223 | * Gets and sets extensions list
|
224 | */
|
225 | extensions?: Extension[];
|
226 | /**
|
227 | * Top level tabs of the layout.
|
228 | */
|
229 | pages?: Page[];
|
230 | /**
|
231 | * Headers controls of the layout.
|
232 | */
|
233 | systemControls?: Control[];
|
234 | }
|
235 | export declare enum GetWorkItemTypeExpand {
|
236 | None = 0,
|
237 | States = 1,
|
238 | Behaviors = 2,
|
239 | Layout = 4
|
240 | }
|
241 | /**
|
242 | * Represent a group in the form that holds controls in it.
|
243 | */
|
244 | export interface Group {
|
245 | /**
|
246 | * Contribution for the group.
|
247 | */
|
248 | contribution?: WitContribution;
|
249 | /**
|
250 | * Controls to be put in the group.
|
251 | */
|
252 | controls?: Control[];
|
253 | /**
|
254 | * The height for the contribution.
|
255 | */
|
256 | height?: number;
|
257 | /**
|
258 | * The id for the layout node.
|
259 | */
|
260 | id?: string;
|
261 | /**
|
262 | * 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.
|
263 | */
|
264 | inherited?: boolean;
|
265 | /**
|
266 | * A value indicating if the layout node is contribution are not.
|
267 | */
|
268 | isContribution?: boolean;
|
269 | /**
|
270 | * Label for the group.
|
271 | */
|
272 | label?: string;
|
273 | /**
|
274 | * Order in which the group should appear in the section.
|
275 | */
|
276 | order?: number;
|
277 | /**
|
278 | * A value indicating whether this layout node has been overridden by a child layout.
|
279 | */
|
280 | overridden?: boolean;
|
281 | /**
|
282 | * A value indicating if the group should be hidden or not.
|
283 | */
|
284 | visible?: boolean;
|
285 | }
|
286 | export interface HideStateModel {
|
287 | hidden?: boolean;
|
288 | }
|
289 | export interface Page {
|
290 | /**
|
291 | * Contribution for the page.
|
292 | */
|
293 | contribution?: WitContribution;
|
294 | /**
|
295 | * The id for the layout node.
|
296 | */
|
297 | id?: string;
|
298 | /**
|
299 | * 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.
|
300 | */
|
301 | inherited?: boolean;
|
302 | /**
|
303 | * A value indicating if the layout node is contribution are not.
|
304 | */
|
305 | isContribution?: boolean;
|
306 | /**
|
307 | * The label for the page.
|
308 | */
|
309 | label?: string;
|
310 | /**
|
311 | * A value indicating whether any user operations are permitted on this page and the contents of this page
|
312 | */
|
313 | locked?: boolean;
|
314 | /**
|
315 | * Order in which the page should appear in the layout.
|
316 | */
|
317 | order?: number;
|
318 | /**
|
319 | * A value indicating whether this layout node has been overridden by a child layout.
|
320 | */
|
321 | overridden?: boolean;
|
322 | /**
|
323 | * The icon for the page.
|
324 | */
|
325 | pageType?: PageType;
|
326 | /**
|
327 | * The sections of the page.
|
328 | */
|
329 | sections?: Section[];
|
330 | /**
|
331 | * A value indicating if the page should be hidden or not.
|
332 | */
|
333 | visible?: boolean;
|
334 | }
|
335 | /**
|
336 | * Type of page
|
337 | */
|
338 | export declare enum PageType {
|
339 | Custom = 1,
|
340 | History = 2,
|
341 | Links = 3,
|
342 | Attachments = 4
|
343 | }
|
344 | export interface PickListItemModel {
|
345 | id?: string;
|
346 | value?: string;
|
347 | }
|
348 | export interface PickListMetadataModel {
|
349 | /**
|
350 | * ID of the picklist
|
351 | */
|
352 | id?: string;
|
353 | /**
|
354 | * Is input values by user only limited to suggested values
|
355 | */
|
356 | isSuggested?: boolean;
|
357 | /**
|
358 | * Name of the picklist
|
359 | */
|
360 | name?: string;
|
361 | /**
|
362 | * Type of picklist
|
363 | */
|
364 | type?: string;
|
365 | /**
|
366 | * Url of the picklist
|
367 | */
|
368 | url?: string;
|
369 | }
|
370 | export interface PickListModel extends PickListMetadataModel {
|
371 | /**
|
372 | * A list of PicklistItemModel
|
373 | */
|
374 | items?: PickListItemModel[];
|
375 | }
|
376 | /**
|
377 | * A layout node holding groups together in a page
|
378 | */
|
379 | export interface Section {
|
380 | groups?: Group[];
|
381 | /**
|
382 | * The id for the layout node.
|
383 | */
|
384 | id?: string;
|
385 | /**
|
386 | * A value indicating whether this layout node has been overridden by a child layout.
|
387 | */
|
388 | overridden?: boolean;
|
389 | }
|
390 | export interface WitContribution {
|
391 | /**
|
392 | * The id for the contribution.
|
393 | */
|
394 | contributionId?: string;
|
395 | /**
|
396 | * The height for the contribution.
|
397 | */
|
398 | height?: number;
|
399 | /**
|
400 | * A dictionary holding key value pairs for contribution inputs.
|
401 | */
|
402 | inputs?: {
|
403 | [key: string]: any;
|
404 | };
|
405 | /**
|
406 | * A value indicating if the contribution should be show on deleted workItem.
|
407 | */
|
408 | showOnDeletedWorkItem?: boolean;
|
409 | }
|
410 | export interface WorkItemBehaviorReference {
|
411 | /**
|
412 | * The ID of the reference behavior
|
413 | */
|
414 | id?: string;
|
415 | /**
|
416 | * The url of the reference behavior
|
417 | */
|
418 | url?: string;
|
419 | }
|
420 | export interface WorkItemStateInputModel {
|
421 | /**
|
422 | * Color of the state
|
423 | */
|
424 | color?: string;
|
425 | /**
|
426 | * Name of the state
|
427 | */
|
428 | name?: string;
|
429 | /**
|
430 | * Order in which state should appear
|
431 | */
|
432 | order?: number;
|
433 | /**
|
434 | * Category of the state
|
435 | */
|
436 | stateCategory?: string;
|
437 | }
|
438 | export interface WorkItemStateResultModel {
|
439 | /**
|
440 | * Color of the state
|
441 | */
|
442 | color?: string;
|
443 | /**
|
444 | * Is the state hidden
|
445 | */
|
446 | hidden?: boolean;
|
447 | /**
|
448 | * The ID of the State
|
449 | */
|
450 | id?: string;
|
451 | /**
|
452 | * Name of the state
|
453 | */
|
454 | name?: string;
|
455 | /**
|
456 | * Order in which state should appear
|
457 | */
|
458 | order?: number;
|
459 | /**
|
460 | * Category of the state
|
461 | */
|
462 | stateCategory?: string;
|
463 | /**
|
464 | * Url of the state
|
465 | */
|
466 | url?: string;
|
467 | }
|
468 | export interface WorkItemTypeBehavior {
|
469 | behavior?: WorkItemBehaviorReference;
|
470 | isDefault?: boolean;
|
471 | isLegacyDefault?: boolean;
|
472 | url?: string;
|
473 | }
|
474 | /**
|
475 | * Work item type classes'
|
476 | */
|
477 | export declare enum WorkItemTypeClass {
|
478 | System = 0,
|
479 | Derived = 1,
|
480 | Custom = 2
|
481 | }
|
482 | export interface WorkItemTypeFieldModel {
|
483 | allowGroups: boolean;
|
484 | defaultValue?: string;
|
485 | name?: string;
|
486 | pickList?: PickListMetadataModel;
|
487 | readOnly?: boolean;
|
488 | referenceName?: string;
|
489 | required?: boolean;
|
490 | type?: FieldType;
|
491 | url?: string;
|
492 | }
|
493 | /**
|
494 | * New version of WorkItemTypeFieldModel supporting defaultValue as object (such as IdentityRef) and description
|
495 | */
|
496 | export interface WorkItemTypeFieldModel2 {
|
497 | allowGroups: boolean;
|
498 | defaultValue?: any;
|
499 | description?: string;
|
500 | name?: string;
|
501 | pickList?: PickListMetadataModel;
|
502 | readOnly?: boolean;
|
503 | referenceName?: string;
|
504 | required?: boolean;
|
505 | type?: FieldType;
|
506 | url?: string;
|
507 | }
|
508 | export interface WorkItemTypeModel {
|
509 | /**
|
510 | * Behaviors of the work item type
|
511 | */
|
512 | behaviors?: WorkItemTypeBehavior[];
|
513 | /**
|
514 | * Class of the work item type
|
515 | */
|
516 | class?: WorkItemTypeClass;
|
517 | /**
|
518 | * Color of the work item type
|
519 | */
|
520 | color?: string;
|
521 | /**
|
522 | * Description of the work item type
|
523 | */
|
524 | description?: string;
|
525 | /**
|
526 | * Icon of the work item type
|
527 | */
|
528 | icon?: string;
|
529 | /**
|
530 | * The ID of the work item type
|
531 | */
|
532 | id?: string;
|
533 | /**
|
534 | * Parent WIT Id/Internal ReferenceName that it inherits from
|
535 | */
|
536 | inherits?: string;
|
537 | /**
|
538 | * Is work item type disabled
|
539 | */
|
540 | isDisabled?: boolean;
|
541 | /**
|
542 | * Layout of the work item type
|
543 | */
|
544 | layout?: FormLayout;
|
545 | /**
|
546 | * Name of the work item type
|
547 | */
|
548 | name?: string;
|
549 | /**
|
550 | * States of the work item type
|
551 | */
|
552 | states?: WorkItemStateResultModel[];
|
553 | /**
|
554 | * Url of the work item type
|
555 | */
|
556 | url?: string;
|
557 | }
|
558 | export interface WorkItemTypeUpdateModel {
|
559 | /**
|
560 | * Color of the work item type
|
561 | */
|
562 | color?: string;
|
563 | /**
|
564 | * Description of the work item type
|
565 | */
|
566 | description?: string;
|
567 | /**
|
568 | * Icon of the work item type
|
569 | */
|
570 | icon?: string;
|
571 | /**
|
572 | * Is the workitem type to be disabled
|
573 | */
|
574 | isDisabled?: boolean;
|
575 | }
|
576 | export declare var TypeInfo: {
|
577 | FieldModel: any;
|
578 | FieldType: {
|
579 | enumValues: {
|
580 | string: number;
|
581 | integer: number;
|
582 | dateTime: number;
|
583 | plainText: number;
|
584 | html: number;
|
585 | treePath: number;
|
586 | history: number;
|
587 | double: number;
|
588 | guid: number;
|
589 | boolean: number;
|
590 | identity: number;
|
591 | picklistInteger: number;
|
592 | picklistString: number;
|
593 | picklistDouble: number;
|
594 | };
|
595 | };
|
596 | FormLayout: any;
|
597 | GetWorkItemTypeExpand: {
|
598 | enumValues: {
|
599 | none: number;
|
600 | states: number;
|
601 | behaviors: number;
|
602 | layout: number;
|
603 | };
|
604 | };
|
605 | Page: any;
|
606 | PageType: {
|
607 | enumValues: {
|
608 | custom: number;
|
609 | history: number;
|
610 | links: number;
|
611 | attachments: number;
|
612 | };
|
613 | };
|
614 | WorkItemTypeClass: {
|
615 | enumValues: {
|
616 | system: number;
|
617 | derived: number;
|
618 | custom: number;
|
619 | };
|
620 | };
|
621 | WorkItemTypeFieldModel: any;
|
622 | WorkItemTypeFieldModel2: any;
|
623 | WorkItemTypeModel: any;
|
624 | };
|