UNPKG

29.9 kBTypeScriptView Raw
1import basem = require('./ClientApiBases');
2import VsoBaseInterfaces = require('./interfaces/common/VsoBaseInterfaces');
3import WorkItemTrackingProcessDefinitionsInterfaces = require("./interfaces/WorkItemTrackingProcessDefinitionsInterfaces");
4export interface IWorkItemTrackingProcessDefinitionsApi extends basem.ClientApiBase {
5 createBehavior(behavior: WorkItemTrackingProcessDefinitionsInterfaces.BehaviorCreateModel, processId: string): Promise<WorkItemTrackingProcessDefinitionsInterfaces.BehaviorModel>;
6 deleteBehavior(processId: string, behaviorId: string): Promise<void>;
7 getBehavior(processId: string, behaviorId: string): Promise<WorkItemTrackingProcessDefinitionsInterfaces.BehaviorModel>;
8 getBehaviors(processId: string): Promise<WorkItemTrackingProcessDefinitionsInterfaces.BehaviorModel[]>;
9 replaceBehavior(behaviorData: WorkItemTrackingProcessDefinitionsInterfaces.BehaviorReplaceModel, processId: string, behaviorId: string): Promise<WorkItemTrackingProcessDefinitionsInterfaces.BehaviorModel>;
10 addControlToGroup(control: WorkItemTrackingProcessDefinitionsInterfaces.Control, processId: string, witRefName: string, groupId: string): Promise<WorkItemTrackingProcessDefinitionsInterfaces.Control>;
11 editControl(control: WorkItemTrackingProcessDefinitionsInterfaces.Control, processId: string, witRefName: string, groupId: string, controlId: string): Promise<WorkItemTrackingProcessDefinitionsInterfaces.Control>;
12 removeControlFromGroup(processId: string, witRefName: string, groupId: string, controlId: string): Promise<void>;
13 setControlInGroup(control: WorkItemTrackingProcessDefinitionsInterfaces.Control, processId: string, witRefName: string, groupId: string, controlId: string, removeFromGroupId?: string): Promise<WorkItemTrackingProcessDefinitionsInterfaces.Control>;
14 createField(field: WorkItemTrackingProcessDefinitionsInterfaces.FieldModel, processId: string): Promise<WorkItemTrackingProcessDefinitionsInterfaces.FieldModel>;
15 updateField(field: WorkItemTrackingProcessDefinitionsInterfaces.FieldUpdate, processId: string): Promise<WorkItemTrackingProcessDefinitionsInterfaces.FieldModel>;
16 addGroup(group: WorkItemTrackingProcessDefinitionsInterfaces.Group, processId: string, witRefName: string, pageId: string, sectionId: string): Promise<WorkItemTrackingProcessDefinitionsInterfaces.Group>;
17 editGroup(group: WorkItemTrackingProcessDefinitionsInterfaces.Group, processId: string, witRefName: string, pageId: string, sectionId: string, groupId: string): Promise<WorkItemTrackingProcessDefinitionsInterfaces.Group>;
18 removeGroup(processId: string, witRefName: string, pageId: string, sectionId: string, groupId: string): Promise<void>;
19 setGroupInPage(group: WorkItemTrackingProcessDefinitionsInterfaces.Group, processId: string, witRefName: string, pageId: string, sectionId: string, groupId: string, removeFromPageId: string, removeFromSectionId: string): Promise<WorkItemTrackingProcessDefinitionsInterfaces.Group>;
20 setGroupInSection(group: WorkItemTrackingProcessDefinitionsInterfaces.Group, processId: string, witRefName: string, pageId: string, sectionId: string, groupId: string, removeFromSectionId: string): Promise<WorkItemTrackingProcessDefinitionsInterfaces.Group>;
21 getFormLayout(processId: string, witRefName: string): Promise<WorkItemTrackingProcessDefinitionsInterfaces.FormLayout>;
22 getListsMetadata(): Promise<WorkItemTrackingProcessDefinitionsInterfaces.PickListMetadataModel[]>;
23 createList(picklist: WorkItemTrackingProcessDefinitionsInterfaces.PickListModel): Promise<WorkItemTrackingProcessDefinitionsInterfaces.PickListModel>;
24 deleteList(listId: string): Promise<void>;
25 getList(listId: string): Promise<WorkItemTrackingProcessDefinitionsInterfaces.PickListModel>;
26 updateList(picklist: WorkItemTrackingProcessDefinitionsInterfaces.PickListModel, listId: string): Promise<WorkItemTrackingProcessDefinitionsInterfaces.PickListModel>;
27 addPage(page: WorkItemTrackingProcessDefinitionsInterfaces.Page, processId: string, witRefName: string): Promise<WorkItemTrackingProcessDefinitionsInterfaces.Page>;
28 editPage(page: WorkItemTrackingProcessDefinitionsInterfaces.Page, processId: string, witRefName: string): Promise<WorkItemTrackingProcessDefinitionsInterfaces.Page>;
29 removePage(processId: string, witRefName: string, pageId: string): Promise<void>;
30 createStateDefinition(stateModel: WorkItemTrackingProcessDefinitionsInterfaces.WorkItemStateInputModel, processId: string, witRefName: string): Promise<WorkItemTrackingProcessDefinitionsInterfaces.WorkItemStateResultModel>;
31 deleteStateDefinition(processId: string, witRefName: string, stateId: string): Promise<void>;
32 getStateDefinition(processId: string, witRefName: string, stateId: string): Promise<WorkItemTrackingProcessDefinitionsInterfaces.WorkItemStateResultModel>;
33 getStateDefinitions(processId: string, witRefName: string): Promise<WorkItemTrackingProcessDefinitionsInterfaces.WorkItemStateResultModel[]>;
34 hideStateDefinition(hideStateModel: WorkItemTrackingProcessDefinitionsInterfaces.HideStateModel, processId: string, witRefName: string, stateId: string): Promise<WorkItemTrackingProcessDefinitionsInterfaces.WorkItemStateResultModel>;
35 updateStateDefinition(stateModel: WorkItemTrackingProcessDefinitionsInterfaces.WorkItemStateInputModel, processId: string, witRefName: string, stateId: string): Promise<WorkItemTrackingProcessDefinitionsInterfaces.WorkItemStateResultModel>;
36 addBehaviorToWorkItemType(behavior: WorkItemTrackingProcessDefinitionsInterfaces.WorkItemTypeBehavior, processId: string, witRefNameForBehaviors: string): Promise<WorkItemTrackingProcessDefinitionsInterfaces.WorkItemTypeBehavior>;
37 getBehaviorForWorkItemType(processId: string, witRefNameForBehaviors: string, behaviorRefName: string): Promise<WorkItemTrackingProcessDefinitionsInterfaces.WorkItemTypeBehavior>;
38 getBehaviorsForWorkItemType(processId: string, witRefNameForBehaviors: string): Promise<WorkItemTrackingProcessDefinitionsInterfaces.WorkItemTypeBehavior[]>;
39 removeBehaviorFromWorkItemType(processId: string, witRefNameForBehaviors: string, behaviorRefName: string): Promise<void>;
40 updateBehaviorToWorkItemType(behavior: WorkItemTrackingProcessDefinitionsInterfaces.WorkItemTypeBehavior, processId: string, witRefNameForBehaviors: string): Promise<WorkItemTrackingProcessDefinitionsInterfaces.WorkItemTypeBehavior>;
41 createWorkItemType(workItemType: WorkItemTrackingProcessDefinitionsInterfaces.WorkItemTypeModel, processId: string): Promise<WorkItemTrackingProcessDefinitionsInterfaces.WorkItemTypeModel>;
42 deleteWorkItemType(processId: string, witRefName: string): Promise<void>;
43 getWorkItemType(processId: string, witRefName: string, expand?: WorkItemTrackingProcessDefinitionsInterfaces.GetWorkItemTypeExpand): Promise<WorkItemTrackingProcessDefinitionsInterfaces.WorkItemTypeModel>;
44 getWorkItemTypes(processId: string, expand?: WorkItemTrackingProcessDefinitionsInterfaces.GetWorkItemTypeExpand): Promise<WorkItemTrackingProcessDefinitionsInterfaces.WorkItemTypeModel[]>;
45 updateWorkItemType(workItemTypeUpdate: WorkItemTrackingProcessDefinitionsInterfaces.WorkItemTypeUpdateModel, processId: string, witRefName: string): Promise<WorkItemTrackingProcessDefinitionsInterfaces.WorkItemTypeModel>;
46 addFieldToWorkItemType(field: WorkItemTrackingProcessDefinitionsInterfaces.WorkItemTypeFieldModel2, processId: string, witRefNameForFields: string): Promise<WorkItemTrackingProcessDefinitionsInterfaces.WorkItemTypeFieldModel2>;
47 getWorkItemTypeField(processId: string, witRefNameForFields: string, fieldRefName: string): Promise<WorkItemTrackingProcessDefinitionsInterfaces.WorkItemTypeFieldModel2>;
48 getWorkItemTypeFields(processId: string, witRefNameForFields: string): Promise<WorkItemTrackingProcessDefinitionsInterfaces.WorkItemTypeFieldModel2[]>;
49 removeFieldFromWorkItemType(processId: string, witRefNameForFields: string, fieldRefName: string): Promise<void>;
50 updateWorkItemTypeField(field: WorkItemTrackingProcessDefinitionsInterfaces.WorkItemTypeFieldModel2, processId: string, witRefNameForFields: string): Promise<WorkItemTrackingProcessDefinitionsInterfaces.WorkItemTypeFieldModel2>;
51}
52export declare class WorkItemTrackingProcessDefinitionsApi extends basem.ClientApiBase implements IWorkItemTrackingProcessDefinitionsApi {
53 constructor(baseUrl: string, handlers: VsoBaseInterfaces.IRequestHandler[], options?: VsoBaseInterfaces.IRequestOptions);
54 static readonly RESOURCE_AREA_ID = "5264459e-e5e0-4bd8-b118-0985e68a4ec5";
55 /**
56 * Creates a single behavior in the given process.
57 *
58 * @param {WorkItemTrackingProcessDefinitionsInterfaces.BehaviorCreateModel} behavior
59 * @param {string} processId - The ID of the process
60 */
61 createBehavior(behavior: WorkItemTrackingProcessDefinitionsInterfaces.BehaviorCreateModel, processId: string): Promise<WorkItemTrackingProcessDefinitionsInterfaces.BehaviorModel>;
62 /**
63 * Removes a behavior in the process.
64 *
65 * @param {string} processId - The ID of the process
66 * @param {string} behaviorId - The ID of the behavior
67 */
68 deleteBehavior(processId: string, behaviorId: string): Promise<void>;
69 /**
70 * Returns a single behavior in the process.
71 *
72 * @param {string} processId - The ID of the process
73 * @param {string} behaviorId - The ID of the behavior
74 */
75 getBehavior(processId: string, behaviorId: string): Promise<WorkItemTrackingProcessDefinitionsInterfaces.BehaviorModel>;
76 /**
77 * Returns a list of all behaviors in the process.
78 *
79 * @param {string} processId - The ID of the process
80 */
81 getBehaviors(processId: string): Promise<WorkItemTrackingProcessDefinitionsInterfaces.BehaviorModel[]>;
82 /**
83 * Replaces a behavior in the process.
84 *
85 * @param {WorkItemTrackingProcessDefinitionsInterfaces.BehaviorReplaceModel} behaviorData
86 * @param {string} processId - The ID of the process
87 * @param {string} behaviorId - The ID of the behavior
88 */
89 replaceBehavior(behaviorData: WorkItemTrackingProcessDefinitionsInterfaces.BehaviorReplaceModel, processId: string, behaviorId: string): Promise<WorkItemTrackingProcessDefinitionsInterfaces.BehaviorModel>;
90 /**
91 * Creates a control in a group
92 *
93 * @param {WorkItemTrackingProcessDefinitionsInterfaces.Control} control - The control
94 * @param {string} processId - The ID of the process
95 * @param {string} witRefName - The reference name of the work item type
96 * @param {string} groupId - The ID of the group to add the control to
97 */
98 addControlToGroup(control: WorkItemTrackingProcessDefinitionsInterfaces.Control, processId: string, witRefName: string, groupId: string): Promise<WorkItemTrackingProcessDefinitionsInterfaces.Control>;
99 /**
100 * Updates a control on the work item form
101 *
102 * @param {WorkItemTrackingProcessDefinitionsInterfaces.Control} control - The updated control
103 * @param {string} processId - The ID of the process
104 * @param {string} witRefName - The reference name of the work item type
105 * @param {string} groupId - The ID of the group
106 * @param {string} controlId - The ID of the control
107 */
108 editControl(control: WorkItemTrackingProcessDefinitionsInterfaces.Control, processId: string, witRefName: string, groupId: string, controlId: string): Promise<WorkItemTrackingProcessDefinitionsInterfaces.Control>;
109 /**
110 * Removes a control from the work item form
111 *
112 * @param {string} processId - The ID of the process
113 * @param {string} witRefName - The reference name of the work item type
114 * @param {string} groupId - The ID of the group
115 * @param {string} controlId - The ID of the control to remove
116 */
117 removeControlFromGroup(processId: string, witRefName: string, groupId: string, controlId: string): Promise<void>;
118 /**
119 * Moves a control to a new group
120 *
121 * @param {WorkItemTrackingProcessDefinitionsInterfaces.Control} control - The control
122 * @param {string} processId - The ID of the process
123 * @param {string} witRefName - The reference name of the work item type
124 * @param {string} groupId - The ID of the group to move the control to
125 * @param {string} controlId - The id of the control
126 * @param {string} removeFromGroupId - The group to remove the control from
127 */
128 setControlInGroup(control: WorkItemTrackingProcessDefinitionsInterfaces.Control, processId: string, witRefName: string, groupId: string, controlId: string, removeFromGroupId?: string): Promise<WorkItemTrackingProcessDefinitionsInterfaces.Control>;
129 /**
130 * Creates a single field in the process.
131 *
132 * @param {WorkItemTrackingProcessDefinitionsInterfaces.FieldModel} field
133 * @param {string} processId - The ID of the process
134 */
135 createField(field: WorkItemTrackingProcessDefinitionsInterfaces.FieldModel, processId: string): Promise<WorkItemTrackingProcessDefinitionsInterfaces.FieldModel>;
136 /**
137 * Updates a given field in the process.
138 *
139 * @param {WorkItemTrackingProcessDefinitionsInterfaces.FieldUpdate} field
140 * @param {string} processId - The ID of the process
141 */
142 updateField(field: WorkItemTrackingProcessDefinitionsInterfaces.FieldUpdate, processId: string): Promise<WorkItemTrackingProcessDefinitionsInterfaces.FieldModel>;
143 /**
144 * Adds a group to the work item form
145 *
146 * @param {WorkItemTrackingProcessDefinitionsInterfaces.Group} group - The group
147 * @param {string} processId - The ID of the process
148 * @param {string} witRefName - The reference name of the work item type
149 * @param {string} pageId - The ID of the page to add the group to
150 * @param {string} sectionId - The ID of the section to add the group to
151 */
152 addGroup(group: WorkItemTrackingProcessDefinitionsInterfaces.Group, processId: string, witRefName: string, pageId: string, sectionId: string): Promise<WorkItemTrackingProcessDefinitionsInterfaces.Group>;
153 /**
154 * Updates a group in the work item form
155 *
156 * @param {WorkItemTrackingProcessDefinitionsInterfaces.Group} group - The updated group
157 * @param {string} processId - The ID of the process
158 * @param {string} witRefName - The reference name of the work item type
159 * @param {string} pageId - The ID of the page the group is in
160 * @param {string} sectionId - The ID of the section the group is in
161 * @param {string} groupId - The ID of the group
162 */
163 editGroup(group: WorkItemTrackingProcessDefinitionsInterfaces.Group, processId: string, witRefName: string, pageId: string, sectionId: string, groupId: string): Promise<WorkItemTrackingProcessDefinitionsInterfaces.Group>;
164 /**
165 * Removes a group from the work item form
166 *
167 * @param {string} processId - The ID of the process
168 * @param {string} witRefName - The reference name of the work item type
169 * @param {string} pageId - The ID of the page the group is in
170 * @param {string} sectionId - The ID of the section to the group is in
171 * @param {string} groupId - The ID of the group
172 */
173 removeGroup(processId: string, witRefName: string, pageId: string, sectionId: string, groupId: string): Promise<void>;
174 /**
175 * Moves a group to a different page and section
176 *
177 * @param {WorkItemTrackingProcessDefinitionsInterfaces.Group} group - The updated group
178 * @param {string} processId - The ID of the process
179 * @param {string} witRefName - The reference name of the work item type
180 * @param {string} pageId - The ID of the page the group is in
181 * @param {string} sectionId - The ID of the section the group is in
182 * @param {string} groupId - The ID of the group
183 * @param {string} removeFromPageId - ID of the page to remove the group from
184 * @param {string} removeFromSectionId - ID of the section to remove the group from
185 */
186 setGroupInPage(group: WorkItemTrackingProcessDefinitionsInterfaces.Group, processId: string, witRefName: string, pageId: string, sectionId: string, groupId: string, removeFromPageId: string, removeFromSectionId: string): Promise<WorkItemTrackingProcessDefinitionsInterfaces.Group>;
187 /**
188 * Moves a group to a different section
189 *
190 * @param {WorkItemTrackingProcessDefinitionsInterfaces.Group} group - The updated group
191 * @param {string} processId - The ID of the process
192 * @param {string} witRefName - The reference name of the work item type
193 * @param {string} pageId - The ID of the page the group is in
194 * @param {string} sectionId - The ID of the section the group is in
195 * @param {string} groupId - The ID of the group
196 * @param {string} removeFromSectionId - ID of the section to remove the group from
197 */
198 setGroupInSection(group: WorkItemTrackingProcessDefinitionsInterfaces.Group, processId: string, witRefName: string, pageId: string, sectionId: string, groupId: string, removeFromSectionId: string): Promise<WorkItemTrackingProcessDefinitionsInterfaces.Group>;
199 /**
200 * Gets the form layout
201 *
202 * @param {string} processId - The ID of the process
203 * @param {string} witRefName - The reference name of the work item type
204 */
205 getFormLayout(processId: string, witRefName: string): Promise<WorkItemTrackingProcessDefinitionsInterfaces.FormLayout>;
206 /**
207 * Returns meta data of the picklist.
208 *
209 */
210 getListsMetadata(): Promise<WorkItemTrackingProcessDefinitionsInterfaces.PickListMetadataModel[]>;
211 /**
212 * Creates a picklist.
213 *
214 * @param {WorkItemTrackingProcessDefinitionsInterfaces.PickListModel} picklist
215 */
216 createList(picklist: WorkItemTrackingProcessDefinitionsInterfaces.PickListModel): Promise<WorkItemTrackingProcessDefinitionsInterfaces.PickListModel>;
217 /**
218 * Removes a picklist.
219 *
220 * @param {string} listId - The ID of the list
221 */
222 deleteList(listId: string): Promise<void>;
223 /**
224 * Returns a picklist.
225 *
226 * @param {string} listId - The ID of the list
227 */
228 getList(listId: string): Promise<WorkItemTrackingProcessDefinitionsInterfaces.PickListModel>;
229 /**
230 * Updates a list.
231 *
232 * @param {WorkItemTrackingProcessDefinitionsInterfaces.PickListModel} picklist
233 * @param {string} listId - The ID of the list
234 */
235 updateList(picklist: WorkItemTrackingProcessDefinitionsInterfaces.PickListModel, listId: string): Promise<WorkItemTrackingProcessDefinitionsInterfaces.PickListModel>;
236 /**
237 * Adds a page to the work item form
238 *
239 * @param {WorkItemTrackingProcessDefinitionsInterfaces.Page} page - The page
240 * @param {string} processId - The ID of the process
241 * @param {string} witRefName - The reference name of the work item type
242 */
243 addPage(page: WorkItemTrackingProcessDefinitionsInterfaces.Page, processId: string, witRefName: string): Promise<WorkItemTrackingProcessDefinitionsInterfaces.Page>;
244 /**
245 * Updates a page on the work item form
246 *
247 * @param {WorkItemTrackingProcessDefinitionsInterfaces.Page} page - The page
248 * @param {string} processId - The ID of the process
249 * @param {string} witRefName - The reference name of the work item type
250 */
251 editPage(page: WorkItemTrackingProcessDefinitionsInterfaces.Page, processId: string, witRefName: string): Promise<WorkItemTrackingProcessDefinitionsInterfaces.Page>;
252 /**
253 * Removes a page from the work item form
254 *
255 * @param {string} processId - The ID of the process
256 * @param {string} witRefName - The reference name of the work item type
257 * @param {string} pageId - The ID of the page
258 */
259 removePage(processId: string, witRefName: string, pageId: string): Promise<void>;
260 /**
261 * Creates a state definition in the work item type of the process.
262 *
263 * @param {WorkItemTrackingProcessDefinitionsInterfaces.WorkItemStateInputModel} stateModel
264 * @param {string} processId - The ID of the process
265 * @param {string} witRefName - The reference name of the work item type
266 */
267 createStateDefinition(stateModel: WorkItemTrackingProcessDefinitionsInterfaces.WorkItemStateInputModel, processId: string, witRefName: string): Promise<WorkItemTrackingProcessDefinitionsInterfaces.WorkItemStateResultModel>;
268 /**
269 * Removes a state definition in the work item type of the process.
270 *
271 * @param {string} processId - ID of the process
272 * @param {string} witRefName - The reference name of the work item type
273 * @param {string} stateId - ID of the state
274 */
275 deleteStateDefinition(processId: string, witRefName: string, stateId: string): Promise<void>;
276 /**
277 * Returns a state definition in the work item type of the process.
278 *
279 * @param {string} processId - The ID of the process
280 * @param {string} witRefName - The reference name of the work item type
281 * @param {string} stateId - The ID of the state
282 */
283 getStateDefinition(processId: string, witRefName: string, stateId: string): Promise<WorkItemTrackingProcessDefinitionsInterfaces.WorkItemStateResultModel>;
284 /**
285 * Returns a list of all state definitions in the work item type of the process.
286 *
287 * @param {string} processId - The ID of the process
288 * @param {string} witRefName - The reference name of the work item type
289 */
290 getStateDefinitions(processId: string, witRefName: string): Promise<WorkItemTrackingProcessDefinitionsInterfaces.WorkItemStateResultModel[]>;
291 /**
292 * Hides a state definition in the work item type of the process.
293 *
294 * @param {WorkItemTrackingProcessDefinitionsInterfaces.HideStateModel} hideStateModel
295 * @param {string} processId - The ID of the process
296 * @param {string} witRefName - The reference name of the work item type
297 * @param {string} stateId - The ID of the state
298 */
299 hideStateDefinition(hideStateModel: WorkItemTrackingProcessDefinitionsInterfaces.HideStateModel, processId: string, witRefName: string, stateId: string): Promise<WorkItemTrackingProcessDefinitionsInterfaces.WorkItemStateResultModel>;
300 /**
301 * Updates a given state definition in the work item type of the process.
302 *
303 * @param {WorkItemTrackingProcessDefinitionsInterfaces.WorkItemStateInputModel} stateModel
304 * @param {string} processId - ID of the process
305 * @param {string} witRefName - The reference name of the work item type
306 * @param {string} stateId - ID of the state
307 */
308 updateStateDefinition(stateModel: WorkItemTrackingProcessDefinitionsInterfaces.WorkItemStateInputModel, processId: string, witRefName: string, stateId: string): Promise<WorkItemTrackingProcessDefinitionsInterfaces.WorkItemStateResultModel>;
309 /**
310 * Adds a behavior to the work item type of the process.
311 *
312 * @param {WorkItemTrackingProcessDefinitionsInterfaces.WorkItemTypeBehavior} behavior
313 * @param {string} processId - The ID of the process
314 * @param {string} witRefNameForBehaviors - Work item type reference name for the behavior
315 */
316 addBehaviorToWorkItemType(behavior: WorkItemTrackingProcessDefinitionsInterfaces.WorkItemTypeBehavior, processId: string, witRefNameForBehaviors: string): Promise<WorkItemTrackingProcessDefinitionsInterfaces.WorkItemTypeBehavior>;
317 /**
318 * Returns a behavior for the work item type of the process.
319 *
320 * @param {string} processId - The ID of the process
321 * @param {string} witRefNameForBehaviors - Work item type reference name for the behavior
322 * @param {string} behaviorRefName - The reference name of the behavior
323 */
324 getBehaviorForWorkItemType(processId: string, witRefNameForBehaviors: string, behaviorRefName: string): Promise<WorkItemTrackingProcessDefinitionsInterfaces.WorkItemTypeBehavior>;
325 /**
326 * Returns a list of all behaviors for the work item type of the process.
327 *
328 * @param {string} processId - The ID of the process
329 * @param {string} witRefNameForBehaviors - Work item type reference name for the behavior
330 */
331 getBehaviorsForWorkItemType(processId: string, witRefNameForBehaviors: string): Promise<WorkItemTrackingProcessDefinitionsInterfaces.WorkItemTypeBehavior[]>;
332 /**
333 * Removes a behavior for the work item type of the process.
334 *
335 * @param {string} processId - The ID of the process
336 * @param {string} witRefNameForBehaviors - Work item type reference name for the behavior
337 * @param {string} behaviorRefName - The reference name of the behavior
338 */
339 removeBehaviorFromWorkItemType(processId: string, witRefNameForBehaviors: string, behaviorRefName: string): Promise<void>;
340 /**
341 * Updates default work item type for the behavior of the process.
342 *
343 * @param {WorkItemTrackingProcessDefinitionsInterfaces.WorkItemTypeBehavior} behavior
344 * @param {string} processId - The ID of the process
345 * @param {string} witRefNameForBehaviors - Work item type reference name for the behavior
346 */
347 updateBehaviorToWorkItemType(behavior: WorkItemTrackingProcessDefinitionsInterfaces.WorkItemTypeBehavior, processId: string, witRefNameForBehaviors: string): Promise<WorkItemTrackingProcessDefinitionsInterfaces.WorkItemTypeBehavior>;
348 /**
349 * Creates a work item type in the process.
350 *
351 * @param {WorkItemTrackingProcessDefinitionsInterfaces.WorkItemTypeModel} workItemType
352 * @param {string} processId - The ID of the process
353 */
354 createWorkItemType(workItemType: WorkItemTrackingProcessDefinitionsInterfaces.WorkItemTypeModel, processId: string): Promise<WorkItemTrackingProcessDefinitionsInterfaces.WorkItemTypeModel>;
355 /**
356 * Removes a work item type in the process.
357 *
358 * @param {string} processId - The ID of the process
359 * @param {string} witRefName - The reference name of the work item type
360 */
361 deleteWorkItemType(processId: string, witRefName: string): Promise<void>;
362 /**
363 * Returns a work item type of the process.
364 *
365 * @param {string} processId - The ID of the process
366 * @param {string} witRefName - The reference name of the work item type
367 * @param {WorkItemTrackingProcessDefinitionsInterfaces.GetWorkItemTypeExpand} expand
368 */
369 getWorkItemType(processId: string, witRefName: string, expand?: WorkItemTrackingProcessDefinitionsInterfaces.GetWorkItemTypeExpand): Promise<WorkItemTrackingProcessDefinitionsInterfaces.WorkItemTypeModel>;
370 /**
371 * Returns a list of all work item types in the process.
372 *
373 * @param {string} processId - The ID of the process
374 * @param {WorkItemTrackingProcessDefinitionsInterfaces.GetWorkItemTypeExpand} expand
375 */
376 getWorkItemTypes(processId: string, expand?: WorkItemTrackingProcessDefinitionsInterfaces.GetWorkItemTypeExpand): Promise<WorkItemTrackingProcessDefinitionsInterfaces.WorkItemTypeModel[]>;
377 /**
378 * Updates a work item type of the process.
379 *
380 * @param {WorkItemTrackingProcessDefinitionsInterfaces.WorkItemTypeUpdateModel} workItemTypeUpdate
381 * @param {string} processId - The ID of the process
382 * @param {string} witRefName - The reference name of the work item type
383 */
384 updateWorkItemType(workItemTypeUpdate: WorkItemTrackingProcessDefinitionsInterfaces.WorkItemTypeUpdateModel, processId: string, witRefName: string): Promise<WorkItemTrackingProcessDefinitionsInterfaces.WorkItemTypeModel>;
385 /**
386 * Adds a field to the work item type in the process.
387 *
388 * @param {WorkItemTrackingProcessDefinitionsInterfaces.WorkItemTypeFieldModel2} field
389 * @param {string} processId - The ID of the process
390 * @param {string} witRefNameForFields - Work item type reference name for the field
391 */
392 addFieldToWorkItemType(field: WorkItemTrackingProcessDefinitionsInterfaces.WorkItemTypeFieldModel2, processId: string, witRefNameForFields: string): Promise<WorkItemTrackingProcessDefinitionsInterfaces.WorkItemTypeFieldModel2>;
393 /**
394 * Returns a single field in the work item type of the process.
395 *
396 * @param {string} processId - The ID of the process
397 * @param {string} witRefNameForFields - Work item type reference name for fields
398 * @param {string} fieldRefName - The reference name of the field
399 */
400 getWorkItemTypeField(processId: string, witRefNameForFields: string, fieldRefName: string): Promise<WorkItemTrackingProcessDefinitionsInterfaces.WorkItemTypeFieldModel2>;
401 /**
402 * Returns a list of all fields in the work item type of the process.
403 *
404 * @param {string} processId - The ID of the process
405 * @param {string} witRefNameForFields - Work item type reference name for fields
406 */
407 getWorkItemTypeFields(processId: string, witRefNameForFields: string): Promise<WorkItemTrackingProcessDefinitionsInterfaces.WorkItemTypeFieldModel2[]>;
408 /**
409 * Removes a field in the work item type of the process.
410 *
411 * @param {string} processId - The ID of the process
412 * @param {string} witRefNameForFields - Work item type reference name for fields
413 * @param {string} fieldRefName - The reference name of the field
414 */
415 removeFieldFromWorkItemType(processId: string, witRefNameForFields: string, fieldRefName: string): Promise<void>;
416 /**
417 * Updates a single field in the scope of the given process and work item type.
418 *
419 * @param {WorkItemTrackingProcessDefinitionsInterfaces.WorkItemTypeFieldModel2} field - The model with which to update the field
420 * @param {string} processId - The ID of the process
421 * @param {string} witRefNameForFields - Work item type reference name for fields
422 */
423 updateWorkItemTypeField(field: WorkItemTrackingProcessDefinitionsInterfaces.WorkItemTypeFieldModel2, processId: string, witRefNameForFields: string): Promise<WorkItemTrackingProcessDefinitionsInterfaces.WorkItemTypeFieldModel2>;
424}