UNPKG

52.3 kBTypeScriptView Raw
1import VSSInterfaces = require("../interfaces/common/VSSInterfaces");
2export interface AccountMyWorkResult {
3 /**
4 * True, when length of WorkItemDetails is same as the limit
5 */
6 querySizeLimitExceeded?: boolean;
7 /**
8 * WorkItem Details
9 */
10 workItemDetails?: AccountWorkWorkItemModel[];
11}
12/**
13 * Represents Work Item Recent Activity
14 */
15export interface AccountRecentActivityWorkItemModel extends AccountRecentActivityWorkItemModelBase {
16 /**
17 * Assigned To
18 */
19 assignedTo?: string;
20}
21/**
22 * Represents Work Item Recent Activity
23 */
24export interface AccountRecentActivityWorkItemModel2 extends AccountRecentActivityWorkItemModelBase {
25 /**
26 * Assigned To
27 */
28 assignedTo?: VSSInterfaces.IdentityRef;
29}
30/**
31 * Represents Work Item Recent Activity
32 */
33export interface AccountRecentActivityWorkItemModelBase {
34 /**
35 * Date of the last Activity by the user
36 */
37 activityDate?: Date;
38 /**
39 * Type of the activity
40 */
41 activityType?: WorkItemRecentActivityType;
42 /**
43 * Last changed date of the work item
44 */
45 changedDate?: Date;
46 /**
47 * Work Item Id
48 */
49 id?: number;
50 /**
51 * TeamFoundationId of the user this activity belongs to
52 */
53 identityId?: string;
54 /**
55 * State of the work item
56 */
57 state?: string;
58 /**
59 * Team project the work item belongs to
60 */
61 teamProject?: string;
62 /**
63 * Title of the work item
64 */
65 title?: string;
66 /**
67 * Type of Work Item
68 */
69 workItemType?: string;
70}
71/**
72 * Represents Recent Mention Work Item
73 */
74export interface AccountRecentMentionWorkItemModel {
75 /**
76 * Assigned To
77 */
78 assignedTo?: string;
79 /**
80 * Work Item Id
81 */
82 id?: number;
83 /**
84 * Latest date that the user were mentioned
85 */
86 mentionedDateField?: Date;
87 /**
88 * State of the work item
89 */
90 state?: string;
91 /**
92 * Team project the work item belongs to
93 */
94 teamProject?: string;
95 /**
96 * Title of the work item
97 */
98 title?: string;
99 /**
100 * Type of Work Item
101 */
102 workItemType?: string;
103}
104export interface AccountWorkWorkItemModel {
105 assignedTo?: string;
106 changedDate?: Date;
107 id?: number;
108 state?: string;
109 teamProject?: string;
110 title?: string;
111 workItemType?: string;
112}
113/**
114 * Contains criteria for querying work items based on artifact URI.
115 */
116export interface ArtifactUriQuery {
117 /**
118 * List of artifact URIs to use for querying work items.
119 */
120 artifactUris?: string[];
121}
122/**
123 * Defines result of artifact URI query on work items. Contains mapping of work item IDs to artifact URI.
124 */
125export interface ArtifactUriQueryResult {
126 /**
127 * A Dictionary that maps a list of work item references to the given list of artifact URI.
128 */
129 artifactUrisQueryResult?: {
130 [key: string]: WorkItemReference[];
131 };
132}
133export interface AttachmentReference {
134 id?: string;
135 url?: string;
136}
137/**
138 * Flag to control error policy in a batch classification nodes get request.
139 */
140export declare enum ClassificationNodesErrorPolicy {
141 Fail = 1,
142 Omit = 2
143}
144/**
145 * Comment on a Work Item.
146 */
147export interface Comment extends WorkItemTrackingResource {
148 /**
149 * IdentityRef of the creator of the comment.
150 */
151 createdBy?: VSSInterfaces.IdentityRef;
152 /**
153 * The creation date of the comment.
154 */
155 createdDate?: Date;
156 /**
157 * Effective Date/time value for adding the comment. Can be optionally different from CreatedDate.
158 */
159 createdOnBehalfDate?: Date;
160 /**
161 * Identity on whose behalf this comment has been added. Can be optionally different from CreatedBy.
162 */
163 createdOnBehalfOf?: VSSInterfaces.IdentityRef;
164 /**
165 * Represents the possible types for the comment format.
166 */
167 format?: CommentFormat;
168 /**
169 * The id assigned to the comment.
170 */
171 id?: number;
172 /**
173 * Indicates if the comment has been deleted.
174 */
175 isDeleted?: boolean;
176 /**
177 * The mentions of the comment.
178 */
179 mentions?: CommentMention[];
180 /**
181 * IdentityRef of the user who last modified the comment.
182 */
183 modifiedBy?: VSSInterfaces.IdentityRef;
184 /**
185 * The last modification date of the comment.
186 */
187 modifiedDate?: Date;
188 /**
189 * The reactions of the comment.
190 */
191 reactions?: CommentReaction[];
192 /**
193 * The text of the comment in HTML format.
194 */
195 renderedText?: string;
196 /**
197 * The text of the comment.
198 */
199 text?: string;
200 /**
201 * The current version of the comment.
202 */
203 version?: number;
204 /**
205 * The id of the work item this comment belongs to.
206 */
207 workItemId?: number;
208}
209/**
210 * Represents a request to create a work item comment.
211 */
212export interface CommentCreate {
213 /**
214 * The text of the comment.
215 */
216 text: string;
217}
218/**
219 * Specifies the additional data retrieval options for work item comments.
220 */
221export declare enum CommentExpandOptions {
222 None = 0,
223 /**
224 * Include comment reactions.
225 */
226 Reactions = 1,
227 /**
228 * Include the rendered text (html) in addition to MD text.
229 */
230 RenderedText = 8,
231 /**
232 * If specified, then ONLY rendered text (html) will be returned, w/o markdown. Supposed to be used internally from data provides for optimization purposes.
233 */
234 RenderedTextOnly = 16,
235 All = -17
236}
237/**
238 * Represents the possible types for the comment format. Should be in sync with WorkItemCommentFormat.cs
239 */
240export declare enum CommentFormat {
241 Markdown = 0,
242 Html = 1
243}
244/**
245 * Represents a list of work item comments.
246 */
247export interface CommentList extends WorkItemTrackingResource {
248 /**
249 * List of comments in the current batch.
250 */
251 comments?: Comment[];
252 /**
253 * A string token that can be used to retrieving next page of comments if available. Otherwise null.
254 */
255 continuationToken?: string;
256 /**
257 * The count of comments in the current batch.
258 */
259 count?: number;
260 /**
261 * Uri to the next page of comments if it is available. Otherwise null.
262 */
263 nextPage?: string;
264 /**
265 * Total count of comments on a work item.
266 */
267 totalCount?: number;
268}
269export interface CommentMention extends WorkItemTrackingResource {
270 /**
271 * The artifact portion of the parsed text. (i.e. the work item's id)
272 */
273 artifactId?: string;
274 /**
275 * The type the parser assigned to the mention. (i.e. person, work item, etc)
276 */
277 artifactType?: string;
278 /**
279 * The comment id of the mention.
280 */
281 commentId?: number;
282 /**
283 * The resolved target of the mention. An example of this could be a user's tfid
284 */
285 targetId?: string;
286}
287/**
288 * Contains information about work item comment reaction for a particular reaction type.
289 */
290export interface CommentReaction extends WorkItemTrackingResource {
291 /**
292 * The id of the comment this reaction belongs to.
293 */
294 commentId?: number;
295 /**
296 * Total number of reactions for the CommentReactionType.
297 */
298 count?: number;
299 /**
300 * Flag to indicate if the current user has engaged on this particular EngagementType (e.g. if they liked the associated comment).
301 */
302 isCurrentUserEngaged?: boolean;
303 /**
304 * Type of the reaction.
305 */
306 type?: CommentReactionType;
307}
308/**
309 * Represents different reaction types for a work item comment.
310 */
311export declare enum CommentReactionType {
312 Like = 0,
313 Dislike = 1,
314 Heart = 2,
315 Hooray = 3,
316 Smile = 4,
317 Confused = 5
318}
319export declare enum CommentSortOrder {
320 /**
321 * The results will be sorted in Ascending order.
322 */
323 Asc = 1,
324 /**
325 * The results will be sorted in Descending order.
326 */
327 Desc = 2
328}
329/**
330 * Represents a request to update a work item comment.
331 */
332export interface CommentUpdate {
333 /**
334 * The updated text of the comment.
335 */
336 text: string;
337}
338/**
339 * Represents a specific version of a comment on a work item.
340 */
341export interface CommentVersion extends WorkItemTrackingResource {
342 /**
343 * IdentityRef of the creator of the comment.
344 */
345 createdBy?: VSSInterfaces.IdentityRef;
346 /**
347 * The creation date of the comment.
348 */
349 createdDate?: Date;
350 /**
351 * Effective Date/time value for adding the comment. Can be optionally different from CreatedDate.
352 */
353 createdOnBehalfDate?: Date;
354 /**
355 * Identity on whose behalf this comment has been added. Can be optionally different from CreatedBy.
356 */
357 createdOnBehalfOf?: VSSInterfaces.IdentityRef;
358 /**
359 * The id assigned to the comment.
360 */
361 id?: number;
362 /**
363 * Indicates if the comment has been deleted at this version.
364 */
365 isDeleted?: boolean;
366 /**
367 * IdentityRef of the user who modified the comment at this version.
368 */
369 modifiedBy?: VSSInterfaces.IdentityRef;
370 /**
371 * The modification date of the comment for this version.
372 */
373 modifiedDate?: Date;
374 /**
375 * The rendered content of the comment at this version.
376 */
377 renderedText?: string;
378 /**
379 * The text of the comment at this version.
380 */
381 text?: string;
382 /**
383 * The version number.
384 */
385 version?: number;
386}
387export interface EmailRecipients {
388 /**
389 * Plaintext email addresses.
390 */
391 emailAddresses?: string[];
392 /**
393 * TfIds
394 */
395 tfIds?: string[];
396 /**
397 * Unresolved entity ids
398 */
399 unresolvedEntityIds?: string[];
400}
401export interface ExternalDeployment {
402 artifactId?: string;
403 createdBy?: string;
404 description?: string;
405 displayName?: string;
406 environment?: ExternalEnvironment;
407 group?: string;
408 pipeline?: ExternalPipeline;
409 relatedWorkItemIds?: number[];
410 runId?: number;
411 sequenceNumber?: number;
412 status?: string;
413 statusDate?: Date;
414 url?: string;
415}
416export interface ExternalEnvironment {
417 displayName?: string;
418 id?: number;
419 type?: string;
420}
421export interface ExternalPipeline {
422 displayName?: string;
423 id?: number;
424 url?: string;
425}
426/**
427 * Describes a list of dependent fields for a rule.
428 */
429export interface FieldDependentRule extends WorkItemTrackingResource {
430 /**
431 * The dependent fields.
432 */
433 dependentFields?: WorkItemFieldReference[];
434}
435/**
436 * Enum for field types.
437 */
438export declare enum FieldType {
439 /**
440 * String field type.
441 */
442 String = 0,
443 /**
444 * Integer field type.
445 */
446 Integer = 1,
447 /**
448 * Datetime field type.
449 */
450 DateTime = 2,
451 /**
452 * Plain text field type.
453 */
454 PlainText = 3,
455 /**
456 * HTML (Multiline) field type.
457 */
458 Html = 4,
459 /**
460 * Treepath field type.
461 */
462 TreePath = 5,
463 /**
464 * History field type.
465 */
466 History = 6,
467 /**
468 * Double field type.
469 */
470 Double = 7,
471 /**
472 * Guid field type.
473 */
474 Guid = 8,
475 /**
476 * Boolean field type.
477 */
478 Boolean = 9,
479 /**
480 * Identity field type.
481 */
482 Identity = 10,
483 /**
484 * String picklist field type. When creating a string picklist field from REST API, use "String" FieldType.
485 */
486 PicklistString = 11,
487 /**
488 * Integer picklist field type. When creating a integer picklist field from REST API, use "Integer" FieldType.
489 */
490 PicklistInteger = 12,
491 /**
492 * Double picklist field type. When creating a double picklist field from REST API, use "Double" FieldType.
493 */
494 PicklistDouble = 13
495}
496/**
497 * Describes an update request for a work item field.
498 */
499export interface FieldUpdate {
500 /**
501 * Indicates whether the user wants to restore the field.
502 */
503 isDeleted?: boolean;
504 /**
505 * Indicates whether the user wants to lock the field.
506 */
507 isLocked?: boolean;
508}
509/**
510 * Enum for field usages.
511 */
512export declare enum FieldUsage {
513 /**
514 * Empty usage.
515 */
516 None = 0,
517 /**
518 * Work item field usage.
519 */
520 WorkItem = 1,
521 /**
522 * Work item link field usage.
523 */
524 WorkItemLink = 2,
525 /**
526 * Treenode field usage.
527 */
528 Tree = 3,
529 /**
530 * Work Item Type Extension usage.
531 */
532 WorkItemTypeExtension = 4
533}
534/**
535 * Flag to expand types of fields.
536 */
537export declare enum GetFieldsExpand {
538 /**
539 * Default behavior.
540 */
541 None = 0,
542 /**
543 * Adds extension fields to the response.
544 */
545 ExtensionFields = 1,
546 /**
547 * Includes fields that have been deleted.
548 */
549 IncludeDeleted = 2
550}
551/**
552 * Describes Github connection.
553 */
554export interface GitHubConnectionModel {
555 /**
556 * Github connection authorization type (f. e. PAT, OAuth)
557 */
558 authorizationType?: string;
559 /**
560 * Github connection created by
561 */
562 createdBy?: VSSInterfaces.IdentityRef;
563 /**
564 * Github connection id
565 */
566 id?: string;
567 /**
568 * Whether current Github connection is valid or not
569 */
570 isConnectionValid?: boolean;
571 /**
572 * Github connection name (should contain organization/user name)
573 */
574 name?: string;
575}
576/**
577 * Describes Github connection's repo.
578 */
579export interface GitHubConnectionRepoModel {
580 /**
581 * Error message
582 */
583 errorMessage?: string;
584 /**
585 * Repository web url
586 */
587 gitHubRepositoryUrl?: string;
588}
589/**
590 * Describes Github connection's repo bulk request
591 */
592export interface GitHubConnectionReposBatchRequest {
593 /**
594 * Requested repos urls
595 */
596 gitHubRepositoryUrls?: GitHubConnectionRepoModel[];
597 /**
598 * Operation type (f. e. add, remove)
599 */
600 operationType?: string;
601}
602/**
603 * Describes a reference to an identity.
604 */
605export interface IdentityReference extends VSSInterfaces.IdentityRef {
606 /**
607 * Gets or sets the identifier of the identity.
608 */
609 id?: string;
610 /**
611 * Legacy back-compat property. This has been the WIT specific value from Constants. Will be hidden (but exists) on the client unless they are targeting the newest version
612 */
613 name?: string;
614}
615/**
616 * Link description.
617 */
618export interface Link {
619 /**
620 * Collection of link attributes.
621 */
622 attributes?: {
623 [key: string]: any;
624 };
625 /**
626 * Relation type.
627 */
628 rel?: string;
629 /**
630 * Link url.
631 */
632 url?: string;
633}
634/**
635 * The link query mode which determines the behavior of the query.
636 */
637export declare enum LinkQueryMode {
638 /**
639 * Returns flat list of work items.
640 */
641 WorkItems = 0,
642 /**
643 * Returns work items where the source, target, and link criteria are all satisfied.
644 */
645 LinksOneHopMustContain = 1,
646 /**
647 * Returns work items that satisfy the source and link criteria, even if no linked work item satisfies the target criteria.
648 */
649 LinksOneHopMayContain = 2,
650 /**
651 * Returns work items that satisfy the source, only if no linked work item satisfies the link and target criteria.
652 */
653 LinksOneHopDoesNotContain = 3,
654 LinksRecursiveMustContain = 4,
655 /**
656 * Returns work items a hierarchy of work items that by default satisfy the source
657 */
658 LinksRecursiveMayContain = 5,
659 LinksRecursiveDoesNotContain = 6
660}
661export declare enum LogicalOperation {
662 NONE = 0,
663 AND = 1,
664 OR = 2
665}
666export interface MailMessage {
667 /**
668 * The mail body in HTML format.
669 */
670 body?: string;
671 /**
672 * CC recipients.
673 */
674 cC?: EmailRecipients;
675 /**
676 * The in-reply-to header value
677 */
678 inReplyTo?: string;
679 /**
680 * The Message Id value
681 */
682 messageId?: string;
683 /**
684 * Reply To recipients.
685 */
686 replyTo?: EmailRecipients;
687 /**
688 * The mail subject.
689 */
690 subject?: string;
691 /**
692 * To recipients
693 */
694 to?: EmailRecipients;
695}
696/**
697 * Stores process ID.
698 */
699export interface ProcessIdModel {
700 /**
701 * The ID of the process.
702 */
703 typeId?: string;
704}
705/**
706 * Stores project ID and its process ID.
707 */
708export interface ProcessMigrationResultModel {
709 /**
710 * The ID of the process.
711 */
712 processId?: string;
713 /**
714 * The ID of the project.
715 */
716 projectId?: string;
717}
718/**
719 * Project work item type state colors
720 */
721export interface ProjectWorkItemStateColors {
722 /**
723 * Project name
724 */
725 projectName?: string;
726 /**
727 * State colors for all work item type in a project
728 */
729 workItemTypeStateColors?: WorkItemTypeStateColors[];
730}
731/**
732 * Enumerates the possible provisioning actions that can be triggered on process template update.
733 */
734export declare enum ProvisioningActionType {
735 Import = 0,
736 Validate = 1
737}
738/**
739 * Result of an update work item type XML update operation.
740 */
741export interface ProvisioningResult {
742 /**
743 * Details about of the provisioning import events.
744 */
745 provisioningImportEvents?: string[];
746}
747/**
748 * Describes a request to get a list of queries
749 */
750export interface QueryBatchGetRequest {
751 /**
752 * The expand parameters for queries. Possible options are { None, Wiql, Clauses, All, Minimal }
753 */
754 $expand?: QueryExpand;
755 /**
756 * The flag to control error policy in a query batch request. Possible options are { Fail, Omit }.
757 */
758 errorPolicy?: QueryErrorPolicy;
759 /**
760 * The requested query ids
761 */
762 ids?: string[];
763}
764/**
765 * Enum to control error policy in a query batch request.
766 */
767export declare enum QueryErrorPolicy {
768 Fail = 1,
769 Omit = 2
770}
771/**
772 * Determines which set of additional query properties to display
773 */
774export declare enum QueryExpand {
775 /**
776 * Expands Columns, Links and ChangeInfo
777 */
778 None = 0,
779 /**
780 * Expands Columns, Links, ChangeInfo and WIQL text
781 */
782 Wiql = 1,
783 /**
784 * Expands Columns, Links, ChangeInfo, WIQL text and clauses
785 */
786 Clauses = 2,
787 /**
788 * Expands all properties
789 */
790 All = 3,
791 /**
792 * Displays minimal properties and the WIQL text
793 */
794 Minimal = 4
795}
796/**
797 * Represents an item in the work item query hierarchy. This can be either a query or a folder.
798 */
799export interface QueryHierarchyItem extends WorkItemTrackingResource {
800 /**
801 * The child query items inside a query folder.
802 */
803 children?: QueryHierarchyItem[];
804 /**
805 * The clauses for a flat query.
806 */
807 clauses?: WorkItemQueryClause;
808 /**
809 * The columns of the query.
810 */
811 columns?: WorkItemFieldReference[];
812 /**
813 * The identity who created the query item.
814 */
815 createdBy?: IdentityReference;
816 /**
817 * When the query item was created.
818 */
819 createdDate?: Date;
820 /**
821 * The link query mode.
822 */
823 filterOptions?: LinkQueryMode;
824 /**
825 * If this is a query folder, indicates if it contains any children.
826 */
827 hasChildren?: boolean;
828 /**
829 * The id of the query item.
830 */
831 id?: string;
832 /**
833 * Indicates if this query item is deleted. Setting this to false on a deleted query item will undelete it. Undeleting a query or folder will not bring back the permission changes that were previously applied to it.
834 */
835 isDeleted?: boolean;
836 /**
837 * Indicates if this is a query folder or a query.
838 */
839 isFolder?: boolean;
840 /**
841 * Indicates if the WIQL of this query is invalid. This could be due to invalid syntax or a no longer valid area/iteration path.
842 */
843 isInvalidSyntax?: boolean;
844 /**
845 * Indicates if this query item is public or private.
846 */
847 isPublic?: boolean;
848 /**
849 * The identity who last ran the query.
850 */
851 lastExecutedBy?: IdentityReference;
852 /**
853 * When the query was last run.
854 */
855 lastExecutedDate?: Date;
856 /**
857 * The identity who last modified the query item.
858 */
859 lastModifiedBy?: IdentityReference;
860 /**
861 * When the query item was last modified.
862 */
863 lastModifiedDate?: Date;
864 /**
865 * The link query clause.
866 */
867 linkClauses?: WorkItemQueryClause;
868 /**
869 * The name of the query item.
870 */
871 name?: string;
872 /**
873 * The path of the query item.
874 */
875 path?: string;
876 /**
877 * The recursion option for use in a tree query.
878 */
879 queryRecursionOption?: QueryRecursionOption;
880 /**
881 * The type of query.
882 */
883 queryType?: QueryType;
884 /**
885 * The sort columns of the query.
886 */
887 sortColumns?: WorkItemQuerySortColumn[];
888 /**
889 * The source clauses in a tree or one-hop link query.
890 */
891 sourceClauses?: WorkItemQueryClause;
892 /**
893 * The target clauses in a tree or one-hop link query.
894 */
895 targetClauses?: WorkItemQueryClause;
896 /**
897 * The WIQL text of the query
898 */
899 wiql?: string;
900}
901export interface QueryHierarchyItemsResult {
902 /**
903 * The count of items.
904 */
905 count?: number;
906 /**
907 * Indicates if the max return limit was hit but there are still more items
908 */
909 hasMore?: boolean;
910 /**
911 * The list of items
912 */
913 value?: QueryHierarchyItem[];
914}
915export declare enum QueryOption {
916 Doing = 1,
917 Done = 2,
918 Followed = 3
919}
920/**
921 * Determines whether a tree query matches parents or children first.
922 */
923export declare enum QueryRecursionOption {
924 /**
925 * Returns work items that satisfy the source, even if no linked work item satisfies the target and link criteria.
926 */
927 ParentFirst = 0,
928 /**
929 * Returns work items that satisfy the target criteria, even if no work item satisfies the source and link criteria.
930 */
931 ChildFirst = 1
932}
933/**
934 * The query result type
935 */
936export declare enum QueryResultType {
937 /**
938 * A list of work items (for flat queries).
939 */
940 WorkItem = 1,
941 /**
942 * A list of work item links (for OneHop and Tree queries).
943 */
944 WorkItemLink = 2
945}
946/**
947 * The type of query.
948 */
949export declare enum QueryType {
950 /**
951 * Gets a flat list of work items.
952 */
953 Flat = 1,
954 /**
955 * Gets a tree of work items showing their link hierarchy.
956 */
957 Tree = 2,
958 /**
959 * Gets a list of work items and their direct links.
960 */
961 OneHop = 3
962}
963/**
964 * The reporting revision expand level.
965 */
966export declare enum ReportingRevisionsExpand {
967 /**
968 * Default behavior.
969 */
970 None = 0,
971 /**
972 * Add fields to the response.
973 */
974 Fields = 1
975}
976export interface ReportingWorkItemLinksBatch extends StreamedBatch<WorkItemRelation> {
977}
978export interface ReportingWorkItemRevisionsBatch extends StreamedBatch<WorkItem> {
979}
980/**
981 * The class represents the reporting work item revision filer.
982 */
983export interface ReportingWorkItemRevisionsFilter {
984 /**
985 * A list of fields to return in work item revisions. Omit this parameter to get all reportable fields.
986 */
987 fields?: string[];
988 /**
989 * Include deleted work item in the result.
990 */
991 includeDeleted?: boolean;
992 /**
993 * Return an identity reference instead of a string value for identity fields.
994 */
995 includeIdentityRef?: boolean;
996 /**
997 * Include only the latest version of a work item, skipping over all previous revisions of the work item.
998 */
999 includeLatestOnly?: boolean;
1000 /**
1001 * Include tag reference instead of string value for System.Tags field
1002 */
1003 includeTagRef?: boolean;
1004 /**
1005 * A list of types to filter the results to specific work item types. Omit this parameter to get work item revisions of all work item types.
1006 */
1007 types?: string[];
1008}
1009export interface SendMailBody {
1010 fields?: string[];
1011 ids?: number[];
1012 message?: MailMessage;
1013 persistenceId?: string;
1014 projectId?: string;
1015 sortFields?: string[];
1016 tempQueryId?: string;
1017 wiql?: string;
1018}
1019/**
1020 * The class describes reporting work item revision batch.
1021 */
1022export interface StreamedBatch<T> {
1023 /**
1024 * ContinuationToken acts as a waterMark. Used while querying large results.
1025 */
1026 continuationToken?: string;
1027 /**
1028 * Returns 'true' if it's last batch, 'false' otherwise.
1029 */
1030 isLastBatch?: boolean;
1031 /**
1032 * The next link for the work item.
1033 */
1034 nextLink?: string;
1035 /**
1036 * Values such as rel, sourceId, TargetId, ChangedDate, isActive.
1037 */
1038 values?: T[];
1039}
1040/**
1041 * Enumerates types of supported xml templates used for customization.
1042 */
1043export declare enum TemplateType {
1044 WorkItemType = 0,
1045 GlobalWorkflow = 1
1046}
1047/**
1048 * Describes a request to create a temporary query
1049 */
1050export interface TemporaryQueryRequestModel extends WorkItemTrackingResource {
1051 /**
1052 * The WIQL text of the temporary query
1053 */
1054 wiql?: string;
1055}
1056/**
1057 * The result of a temporary query creation.
1058 */
1059export interface TemporaryQueryResponseModel {
1060 /**
1061 * The id of the temporary query item.
1062 */
1063 id?: string;
1064}
1065/**
1066 * Types of tree node structures.
1067 */
1068export declare enum TreeNodeStructureType {
1069 /**
1070 * Area type.
1071 */
1072 Area = 0,
1073 /**
1074 * Iteration type.
1075 */
1076 Iteration = 1
1077}
1078/**
1079 * Types of tree structures groups.
1080 */
1081export declare enum TreeStructureGroup {
1082 Areas = 0,
1083 Iterations = 1
1084}
1085/**
1086 * Describes an update request for a work item field.
1087 */
1088export interface UpdateWorkItemField {
1089 /**
1090 * Indicates whether the user wants to restore the field.
1091 */
1092 isDeleted?: boolean;
1093}
1094/**
1095 * A WIQL query
1096 */
1097export interface Wiql {
1098 /**
1099 * The text of the WIQL query
1100 */
1101 query?: string;
1102}
1103/**
1104 * A work artifact link describes an outbound artifact link type.
1105 */
1106export interface WorkArtifactLink {
1107 /**
1108 * Target artifact type.
1109 */
1110 artifactType?: string;
1111 /**
1112 * Outbound link type.
1113 */
1114 linkType?: string;
1115 /**
1116 * Target tool type.
1117 */
1118 toolType?: string;
1119}
1120/**
1121 * Describes a work item.
1122 */
1123export interface WorkItem extends WorkItemTrackingResource {
1124 /**
1125 * Reference to a specific version of the comment added/edited/deleted in this revision.
1126 */
1127 commentVersionRef?: WorkItemCommentVersionRef;
1128 /**
1129 * Map of field and values for the work item.
1130 */
1131 fields?: {
1132 [key: string]: any;
1133 };
1134 /**
1135 * The work item ID.
1136 */
1137 id?: number;
1138 /**
1139 * Relations of the work item.
1140 */
1141 relations?: WorkItemRelation[];
1142 /**
1143 * Revision number of the work item.
1144 */
1145 rev?: number;
1146}
1147/**
1148 * Describes a request to get a set of work items
1149 */
1150export interface WorkItemBatchGetRequest {
1151 /**
1152 * The expand parameters for work item attributes. Possible options are { None, Relations, Fields, Links, All }
1153 */
1154 $expand?: WorkItemExpand;
1155 /**
1156 * AsOf UTC date time string
1157 */
1158 asOf?: Date;
1159 /**
1160 * The flag to control error policy in a bulk get work items request. Possible options are {Fail, Omit}.
1161 */
1162 errorPolicy?: WorkItemErrorPolicy;
1163 /**
1164 * The requested fields
1165 */
1166 fields?: string[];
1167 /**
1168 * The requested work item ids
1169 */
1170 ids?: number[];
1171}
1172/**
1173 * Defines a classification node for work item tracking.
1174 */
1175export interface WorkItemClassificationNode extends WorkItemTrackingResource {
1176 /**
1177 * Dictionary that has node attributes like start/finish date for iteration nodes.
1178 */
1179 attributes?: {
1180 [key: string]: any;
1181 };
1182 /**
1183 * List of child nodes fetched.
1184 */
1185 children?: WorkItemClassificationNode[];
1186 /**
1187 * Flag that indicates if the classification node has any child nodes.
1188 */
1189 hasChildren?: boolean;
1190 /**
1191 * Integer ID of the classification node.
1192 */
1193 id?: number;
1194 /**
1195 * GUID ID of the classification node.
1196 */
1197 identifier?: string;
1198 /**
1199 * Name of the classification node.
1200 */
1201 name?: string;
1202 /**
1203 * Path of the classification node.
1204 */
1205 path?: string;
1206 /**
1207 * Node structure type.
1208 */
1209 structureType?: TreeNodeStructureType;
1210}
1211/**
1212 * Comment on Work Item
1213 */
1214export interface WorkItemComment extends WorkItemTrackingResource {
1215 /**
1216 * Represents the possible types for the comment format.
1217 */
1218 format?: CommentFormat;
1219 /**
1220 * The text of the comment in HTML format.
1221 */
1222 renderedText?: string;
1223 /**
1224 * Identity of user who added the comment.
1225 */
1226 revisedBy?: IdentityReference;
1227 /**
1228 * The date of comment.
1229 */
1230 revisedDate?: Date;
1231 /**
1232 * The work item revision number.
1233 */
1234 revision?: number;
1235 /**
1236 * The text of the comment.
1237 */
1238 text?: string;
1239}
1240/**
1241 * Collection of comments.
1242 */
1243export interface WorkItemComments extends WorkItemTrackingResource {
1244 /**
1245 * Comments collection.
1246 */
1247 comments?: WorkItemComment[];
1248 /**
1249 * The count of comments.
1250 */
1251 count?: number;
1252 /**
1253 * Count of comments from the revision.
1254 */
1255 fromRevisionCount?: number;
1256 /**
1257 * Total count of comments.
1258 */
1259 totalCount?: number;
1260}
1261/**
1262 * Represents the reference to a specific version of a comment on a Work Item.
1263 */
1264export interface WorkItemCommentVersionRef extends WorkItemTrackingResourceReference {
1265 /**
1266 * The id assigned to the comment.
1267 */
1268 commentId?: number;
1269 /**
1270 * [Internal] The work item revision where this comment was originally added.
1271 */
1272 createdInRevision?: number;
1273 /**
1274 * [Internal] Specifies whether comment was deleted.
1275 */
1276 isDeleted?: boolean;
1277 /**
1278 * [Internal] The text of the comment.
1279 */
1280 text?: string;
1281 /**
1282 * The version number.
1283 */
1284 version?: number;
1285}
1286/**
1287 * Full deleted work item object. Includes the work item itself.
1288 */
1289export interface WorkItemDelete extends WorkItemDeleteReference {
1290 /**
1291 * The work item object that was deleted.
1292 */
1293 resource?: WorkItem;
1294}
1295/**
1296 * Describes response to delete a set of work items.
1297 */
1298export interface WorkItemDeleteBatch {
1299 /**
1300 * List of results for each work item
1301 */
1302 results?: WorkItemDelete[];
1303}
1304/**
1305 * Describes a request to delete a set of work items
1306 */
1307export interface WorkItemDeleteBatchRequest {
1308 /**
1309 * Optional parameter, if set to true, the work item is deleted permanently. Please note: the destroy action is PERMANENT and cannot be undone.
1310 */
1311 destroy?: boolean;
1312 /**
1313 * The requested work item ids
1314 */
1315 ids?: number[];
1316 /**
1317 * Optional parameter, if set to true, notifications will be disabled.
1318 */
1319 skipNotifications?: boolean;
1320}
1321/**
1322 * Reference to a deleted work item.
1323 */
1324export interface WorkItemDeleteReference {
1325 /**
1326 * The HTTP status code for work item operation in a batch request.
1327 */
1328 code?: number;
1329 /**
1330 * The user who deleted the work item type.
1331 */
1332 deletedBy?: string;
1333 /**
1334 * The work item deletion date.
1335 */
1336 deletedDate?: string;
1337 /**
1338 * Work item ID.
1339 */
1340 id?: number;
1341 /**
1342 * The exception message for work item operation in a batch request.
1343 */
1344 message?: string;
1345 /**
1346 * Name or title of the work item.
1347 */
1348 name?: string;
1349 /**
1350 * Parent project of the deleted work item.
1351 */
1352 project?: string;
1353 /**
1354 * Type of work item.
1355 */
1356 type?: string;
1357 /**
1358 * REST API URL of the resource
1359 */
1360 url?: string;
1361}
1362/**
1363 * Shallow Reference to a deleted work item.
1364 */
1365export interface WorkItemDeleteShallowReference {
1366 /**
1367 * Work item ID.
1368 */
1369 id?: number;
1370 /**
1371 * REST API URL of the resource
1372 */
1373 url?: string;
1374}
1375/**
1376 * Describes an update request for a deleted work item.
1377 */
1378export interface WorkItemDeleteUpdate {
1379 /**
1380 * Sets a value indicating whether this work item is deleted.
1381 */
1382 isDeleted?: boolean;
1383}
1384/**
1385 * Enum to control error policy in a bulk get work items request.
1386 */
1387export declare enum WorkItemErrorPolicy {
1388 /**
1389 * Fail work error policy.
1390 */
1391 Fail = 1,
1392 /**
1393 * Omit work error policy.
1394 */
1395 Omit = 2
1396}
1397/**
1398 * Flag to control payload properties from get work item command.
1399 */
1400export declare enum WorkItemExpand {
1401 /**
1402 * Default behavior.
1403 */
1404 None = 0,
1405 /**
1406 * Relations work item expand.
1407 */
1408 Relations = 1,
1409 /**
1410 * Fields work item expand.
1411 */
1412 Fields = 2,
1413 /**
1414 * Links work item expand.
1415 */
1416 Links = 3,
1417 /**
1418 * Expands all.
1419 */
1420 All = 4
1421}
1422/**
1423 * Describes a field on a work item and it's properties specific to that work item type.
1424 */
1425export interface WorkItemField extends WorkItemTrackingResource {
1426 /**
1427 * Indicates whether the field is sortable in server queries.
1428 */
1429 canSortBy?: boolean;
1430 /**
1431 * The description of the field.
1432 */
1433 description?: string;
1434 /**
1435 * Indicates whether this field is deleted.
1436 */
1437 isDeleted?: boolean;
1438 /**
1439 * Indicates whether this field is an identity field.
1440 */
1441 isIdentity?: boolean;
1442 /**
1443 * Indicates whether this instance is picklist.
1444 */
1445 isPicklist?: boolean;
1446 /**
1447 * Indicates whether this instance is a suggested picklist .
1448 */
1449 isPicklistSuggested?: boolean;
1450 /**
1451 * Indicates whether the field can be queried in the server.
1452 */
1453 isQueryable?: boolean;
1454 /**
1455 * The name of the field.
1456 */
1457 name?: string;
1458 /**
1459 * If this field is picklist, the identifier of the picklist associated, otherwise null
1460 */
1461 picklistId?: string;
1462 /**
1463 * Indicates whether the field is [read only].
1464 */
1465 readOnly?: boolean;
1466 /**
1467 * The reference name of the field.
1468 */
1469 referenceName?: string;
1470 /**
1471 * The supported operations on this field.
1472 */
1473 supportedOperations?: WorkItemFieldOperation[];
1474 /**
1475 * The type of the field.
1476 */
1477 type?: FieldType;
1478 /**
1479 * The usage of the field.
1480 */
1481 usage?: FieldUsage;
1482}
1483/**
1484 * Describes a field on a work item and it's properties specific to that work item type.
1485 */
1486export interface WorkItemField2 extends WorkItemField {
1487 /**
1488 * Indicates whether this field is marked as locked for editing.
1489 */
1490 isLocked?: boolean;
1491}
1492/**
1493 * Describes the list of allowed values of the field.
1494 */
1495export interface WorkItemFieldAllowedValues {
1496 /**
1497 * The list of field allowed values.
1498 */
1499 allowedValues?: string[];
1500 /**
1501 * Name of the field.
1502 */
1503 fieldName?: string;
1504}
1505/**
1506 * Describes a work item field operation.
1507 */
1508export interface WorkItemFieldOperation {
1509 /**
1510 * Friendly name of the operation.
1511 */
1512 name?: string;
1513 /**
1514 * Reference name of the operation.
1515 */
1516 referenceName?: string;
1517}
1518/**
1519 * Reference to a field in a work item
1520 */
1521export interface WorkItemFieldReference {
1522 /**
1523 * The friendly name of the field.
1524 */
1525 name?: string;
1526 /**
1527 * The reference name of the field.
1528 */
1529 referenceName?: string;
1530 /**
1531 * The REST URL of the resource.
1532 */
1533 url?: string;
1534}
1535/**
1536 * Describes an update to a work item field.
1537 */
1538export interface WorkItemFieldUpdate {
1539 /**
1540 * The new value of the field.
1541 */
1542 newValue?: any;
1543 /**
1544 * The old value of the field.
1545 */
1546 oldValue?: any;
1547}
1548export interface WorkItemHistory extends WorkItemTrackingResource {
1549 rev?: number;
1550 revisedBy?: IdentityReference;
1551 revisedDate?: Date;
1552 value?: string;
1553}
1554/**
1555 * Reference to a work item icon.
1556 */
1557export interface WorkItemIcon {
1558 /**
1559 * The identifier of the icon.
1560 */
1561 id?: string;
1562 /**
1563 * The REST URL of the resource.
1564 */
1565 url?: string;
1566}
1567/**
1568 * A link between two work items.
1569 */
1570export interface WorkItemLink {
1571 /**
1572 * The type of link.
1573 */
1574 rel?: string;
1575 /**
1576 * The source work item.
1577 */
1578 source?: WorkItemReference;
1579 /**
1580 * The target work item.
1581 */
1582 target?: WorkItemReference;
1583}
1584/**
1585 * Describes the next state for a work item.
1586 */
1587export interface WorkItemNextStateOnTransition {
1588 /**
1589 * Error code if there is no next state transition possible.
1590 */
1591 errorCode?: string;
1592 /**
1593 * Work item ID.
1594 */
1595 id?: number;
1596 /**
1597 * Error message if there is no next state transition possible.
1598 */
1599 message?: string;
1600 /**
1601 * Name of the next state on transition.
1602 */
1603 stateOnTransition?: string;
1604}
1605/**
1606 * Represents a clause in a work item query. This shows the structure of a work item query.
1607 */
1608export interface WorkItemQueryClause {
1609 /**
1610 * Child clauses if the current clause is a logical operator
1611 */
1612 clauses?: WorkItemQueryClause[];
1613 /**
1614 * Field associated with condition
1615 */
1616 field?: WorkItemFieldReference;
1617 /**
1618 * Right side of the condition when a field to field comparison
1619 */
1620 fieldValue?: WorkItemFieldReference;
1621 /**
1622 * Determines if this is a field to field comparison
1623 */
1624 isFieldValue?: boolean;
1625 /**
1626 * Logical operator separating the condition clause
1627 */
1628 logicalOperator?: LogicalOperation;
1629 /**
1630 * The field operator
1631 */
1632 operator?: WorkItemFieldOperation;
1633 /**
1634 * Right side of the condition when a field to value comparison
1635 */
1636 value?: string;
1637}
1638/**
1639 * The result of a work item query.
1640 */
1641export interface WorkItemQueryResult {
1642 /**
1643 * The date the query was run in the context of.
1644 */
1645 asOf?: Date;
1646 /**
1647 * The columns of the query.
1648 */
1649 columns?: WorkItemFieldReference[];
1650 /**
1651 * The result type
1652 */
1653 queryResultType?: QueryResultType;
1654 /**
1655 * The type of the query
1656 */
1657 queryType?: QueryType;
1658 /**
1659 * The sort columns of the query.
1660 */
1661 sortColumns?: WorkItemQuerySortColumn[];
1662 /**
1663 * The work item links returned by the query.
1664 */
1665 workItemRelations?: WorkItemLink[];
1666 /**
1667 * The work items returned by the query.
1668 */
1669 workItems?: WorkItemReference[];
1670}
1671/**
1672 * A sort column.
1673 */
1674export interface WorkItemQuerySortColumn {
1675 /**
1676 * The direction to sort by.
1677 */
1678 descending?: boolean;
1679 /**
1680 * A work item field.
1681 */
1682 field?: WorkItemFieldReference;
1683}
1684/**
1685 * Type of the activity
1686 */
1687export declare enum WorkItemRecentActivityType {
1688 Visited = 0,
1689 Edited = 1,
1690 Deleted = 2,
1691 Restored = 3
1692}
1693/**
1694 * Contains reference to a work item.
1695 */
1696export interface WorkItemReference {
1697 /**
1698 * Work item ID.
1699 */
1700 id?: number;
1701 /**
1702 * REST API URL of the resource
1703 */
1704 url?: string;
1705}
1706export interface WorkItemRelation extends Link {
1707}
1708/**
1709 * Represents the work item type relation type.
1710 */
1711export interface WorkItemRelationType extends WorkItemTrackingReference {
1712 /**
1713 * The collection of relation type attributes.
1714 */
1715 attributes?: {
1716 [key: string]: any;
1717 };
1718}
1719/**
1720 * Describes updates to a work item's relations.
1721 */
1722export interface WorkItemRelationUpdates {
1723 /**
1724 * List of newly added relations.
1725 */
1726 added?: WorkItemRelation[];
1727 /**
1728 * List of removed relations.
1729 */
1730 removed?: WorkItemRelation[];
1731 /**
1732 * List of updated relations.
1733 */
1734 updated?: WorkItemRelation[];
1735}
1736/**
1737 * Work item type state name, color and state category
1738 */
1739export interface WorkItemStateColor {
1740 /**
1741 * Category of state
1742 */
1743 category?: string;
1744 /**
1745 * Color value
1746 */
1747 color?: string;
1748 /**
1749 * Work item type state name
1750 */
1751 name?: string;
1752}
1753/**
1754 * Describes a state transition in a work item.
1755 */
1756export interface WorkItemStateTransition {
1757 /**
1758 * Gets a list of actions needed to transition to that state.
1759 */
1760 actions?: string[];
1761 /**
1762 * Name of the next state.
1763 */
1764 to?: string;
1765}
1766export interface WorkItemTagDefinition {
1767 id?: string;
1768 lastUpdated?: Date;
1769 name?: string;
1770 url?: string;
1771}
1772/**
1773 * Describes a work item template.
1774 */
1775export interface WorkItemTemplate extends WorkItemTemplateReference {
1776 /**
1777 * Mapping of field and its templated value.
1778 */
1779 fields: {
1780 [key: string]: string;
1781 };
1782}
1783/**
1784 * Describes a shallow reference to a work item template.
1785 */
1786export interface WorkItemTemplateReference extends WorkItemTrackingResource {
1787 /**
1788 * The description of the work item template.
1789 */
1790 description?: string;
1791 /**
1792 * The identifier of the work item template.
1793 */
1794 id?: string;
1795 /**
1796 * The name of the work item template.
1797 */
1798 name: string;
1799 /**
1800 * The name of the work item type.
1801 */
1802 workItemTypeName: string;
1803}
1804export interface WorkItemTrackingReference extends WorkItemTrackingResource {
1805 /**
1806 * The name.
1807 */
1808 name?: string;
1809 /**
1810 * The reference name.
1811 */
1812 referenceName?: string;
1813}
1814/**
1815 * Base class for WIT REST resources.
1816 */
1817export interface WorkItemTrackingResource extends WorkItemTrackingResourceReference {
1818 /**
1819 * Link references to related REST resources.
1820 */
1821 _links?: any;
1822}
1823/**
1824 * Base class for work item tracking resource references.
1825 */
1826export interface WorkItemTrackingResourceReference {
1827 /**
1828 * REST URL for the resource.
1829 */
1830 url?: string;
1831}
1832/**
1833 * Describes a work item type.
1834 */
1835export interface WorkItemType extends WorkItemTrackingResource {
1836 /**
1837 * The color.
1838 */
1839 color?: string;
1840 /**
1841 * The description of the work item type.
1842 */
1843 description?: string;
1844 /**
1845 * The fields that exist on the work item type.
1846 */
1847 fieldInstances?: WorkItemTypeFieldInstance[];
1848 /**
1849 * The fields that exist on the work item type.
1850 */
1851 fields?: WorkItemTypeFieldInstance[];
1852 /**
1853 * The icon of the work item type.
1854 */
1855 icon?: WorkItemIcon;
1856 /**
1857 * True if work item type is disabled
1858 */
1859 isDisabled?: boolean;
1860 /**
1861 * Gets the name of the work item type.
1862 */
1863 name?: string;
1864 /**
1865 * The reference name of the work item type.
1866 */
1867 referenceName?: string;
1868 /**
1869 * Gets state information for the work item type.
1870 */
1871 states?: WorkItemStateColor[];
1872 /**
1873 * Gets the various state transition mappings in the work item type.
1874 */
1875 transitions?: {
1876 [key: string]: WorkItemStateTransition[];
1877 };
1878 /**
1879 * The XML form.
1880 */
1881 xmlForm?: string;
1882}
1883/**
1884 * Describes a work item type category.
1885 */
1886export interface WorkItemTypeCategory extends WorkItemTrackingResource {
1887 /**
1888 * Gets or sets the default type of the work item.
1889 */
1890 defaultWorkItemType?: WorkItemTypeReference;
1891 /**
1892 * The name of the category.
1893 */
1894 name?: string;
1895 /**
1896 * The reference name of the category.
1897 */
1898 referenceName?: string;
1899 /**
1900 * The work item types that belong to the category.
1901 */
1902 workItemTypes?: WorkItemTypeReference[];
1903}
1904/**
1905 * Describes a work item type's colors.
1906 */
1907export interface WorkItemTypeColor {
1908 /**
1909 * Gets or sets the color of the primary.
1910 */
1911 primaryColor?: string;
1912 /**
1913 * Gets or sets the color of the secondary.
1914 */
1915 secondaryColor?: string;
1916 /**
1917 * The name of the work item type.
1918 */
1919 workItemTypeName?: string;
1920}
1921/**
1922 * Describes work item type name, its icon and color.
1923 */
1924export interface WorkItemTypeColorAndIcon {
1925 /**
1926 * The color of the work item type in hex format.
1927 */
1928 color?: string;
1929 /**
1930 * The work item type icon.
1931 */
1932 icon?: string;
1933 /**
1934 * Indicates if the work item is disabled in the process.
1935 */
1936 isDisabled?: boolean;
1937 /**
1938 * The name of the work item type.
1939 */
1940 workItemTypeName?: string;
1941}
1942/**
1943 * Field instance of a work item type.
1944 */
1945export interface WorkItemTypeFieldInstance extends WorkItemTypeFieldInstanceBase {
1946 /**
1947 * The list of field allowed values.
1948 */
1949 allowedValues?: string[];
1950 /**
1951 * Represents the default value of the field.
1952 */
1953 defaultValue?: string;
1954}
1955/**
1956 * Base field instance for workItemType fields.
1957 */
1958export interface WorkItemTypeFieldInstanceBase extends WorkItemFieldReference {
1959 /**
1960 * Indicates whether field value is always required.
1961 */
1962 alwaysRequired?: boolean;
1963 /**
1964 * The list of dependent fields.
1965 */
1966 dependentFields?: WorkItemFieldReference[];
1967 /**
1968 * Gets the help text for the field.
1969 */
1970 helpText?: string;
1971}
1972/**
1973 * Expand options for the work item field(s) request.
1974 */
1975export declare enum WorkItemTypeFieldsExpandLevel {
1976 /**
1977 * Includes only basic properties of the field.
1978 */
1979 None = 0,
1980 /**
1981 * Includes allowed values for the field.
1982 */
1983 AllowedValues = 1,
1984 /**
1985 * Includes dependent fields of the field.
1986 */
1987 DependentFields = 2,
1988 /**
1989 * Includes allowed values and dependent fields of the field.
1990 */
1991 All = 3
1992}
1993/**
1994 * Field Instance of a workItemype with detailed references.
1995 */
1996export interface WorkItemTypeFieldWithReferences extends WorkItemTypeFieldInstanceBase {
1997 /**
1998 * The list of field allowed values.
1999 */
2000 allowedValues?: any[];
2001 /**
2002 * Represents the default value of the field.
2003 */
2004 defaultValue?: any;
2005}
2006/**
2007 * Reference to a work item type.
2008 */
2009export interface WorkItemTypeReference extends WorkItemTrackingResourceReference {
2010 /**
2011 * Name of the work item type.
2012 */
2013 name?: string;
2014}
2015/**
2016 * State colors for a work item type
2017 */
2018export interface WorkItemTypeStateColors {
2019 /**
2020 * Work item type state colors
2021 */
2022 stateColors?: WorkItemStateColor[];
2023 /**
2024 * Work item type name
2025 */
2026 workItemTypeName?: string;
2027}
2028/**
2029 * Describes a work item type template.
2030 */
2031export interface WorkItemTypeTemplate {
2032 /**
2033 * XML template in string format.
2034 */
2035 template?: string;
2036}
2037/**
2038 * Describes a update work item type template request body.
2039 */
2040export interface WorkItemTypeTemplateUpdateModel {
2041 /**
2042 * Describes the type of the action for the update request.
2043 */
2044 actionType?: ProvisioningActionType;
2045 /**
2046 * Methodology to which the template belongs, eg. Agile, Scrum, CMMI.
2047 */
2048 methodology?: string;
2049 /**
2050 * String representation of the work item type template.
2051 */
2052 template?: string;
2053 /**
2054 * The type of the template described in the request body.
2055 */
2056 templateType?: TemplateType;
2057}
2058/**
2059 * Describes an update to a work item.
2060 */
2061export interface WorkItemUpdate extends WorkItemTrackingResource {
2062 /**
2063 * List of updates to fields.
2064 */
2065 fields?: {
2066 [key: string]: WorkItemFieldUpdate;
2067 };
2068 /**
2069 * ID of update.
2070 */
2071 id?: number;
2072 /**
2073 * List of updates to relations.
2074 */
2075 relations?: WorkItemRelationUpdates;
2076 /**
2077 * The revision number of work item update.
2078 */
2079 rev?: number;
2080 /**
2081 * Identity for the work item update.
2082 */
2083 revisedBy?: IdentityReference;
2084 /**
2085 * The work item updates revision date.
2086 */
2087 revisedDate?: Date;
2088 /**
2089 * The work item ID.
2090 */
2091 workItemId?: number;
2092}
2093export declare var TypeInfo: {
2094 AccountMyWorkResult: any;
2095 AccountRecentActivityWorkItemModel: any;
2096 AccountRecentActivityWorkItemModel2: any;
2097 AccountRecentActivityWorkItemModelBase: any;
2098 AccountRecentMentionWorkItemModel: any;
2099 AccountWorkWorkItemModel: any;
2100 ClassificationNodesErrorPolicy: {
2101 enumValues: {
2102 fail: number;
2103 omit: number;
2104 };
2105 };
2106 Comment: any;
2107 CommentExpandOptions: {
2108 enumValues: {
2109 none: number;
2110 reactions: number;
2111 renderedText: number;
2112 renderedTextOnly: number;
2113 all: number;
2114 };
2115 };
2116 CommentFormat: {
2117 enumValues: {
2118 markdown: number;
2119 html: number;
2120 };
2121 };
2122 CommentList: any;
2123 CommentReaction: any;
2124 CommentReactionType: {
2125 enumValues: {
2126 like: number;
2127 dislike: number;
2128 heart: number;
2129 hooray: number;
2130 smile: number;
2131 confused: number;
2132 };
2133 };
2134 CommentSortOrder: {
2135 enumValues: {
2136 asc: number;
2137 desc: number;
2138 };
2139 };
2140 CommentVersion: any;
2141 ExternalDeployment: any;
2142 FieldType: {
2143 enumValues: {
2144 string: number;
2145 integer: number;
2146 dateTime: number;
2147 plainText: number;
2148 html: number;
2149 treePath: number;
2150 history: number;
2151 double: number;
2152 guid: number;
2153 boolean: number;
2154 identity: number;
2155 picklistString: number;
2156 picklistInteger: number;
2157 picklistDouble: number;
2158 };
2159 };
2160 FieldUsage: {
2161 enumValues: {
2162 none: number;
2163 workItem: number;
2164 workItemLink: number;
2165 tree: number;
2166 workItemTypeExtension: number;
2167 };
2168 };
2169 GetFieldsExpand: {
2170 enumValues: {
2171 none: number;
2172 extensionFields: number;
2173 includeDeleted: number;
2174 };
2175 };
2176 LinkQueryMode: {
2177 enumValues: {
2178 workItems: number;
2179 linksOneHopMustContain: number;
2180 linksOneHopMayContain: number;
2181 linksOneHopDoesNotContain: number;
2182 linksRecursiveMustContain: number;
2183 linksRecursiveMayContain: number;
2184 linksRecursiveDoesNotContain: number;
2185 };
2186 };
2187 LogicalOperation: {
2188 enumValues: {
2189 none: number;
2190 and: number;
2191 or: number;
2192 };
2193 };
2194 ProvisioningActionType: {
2195 enumValues: {
2196 import: number;
2197 validate: number;
2198 };
2199 };
2200 QueryBatchGetRequest: any;
2201 QueryErrorPolicy: {
2202 enumValues: {
2203 fail: number;
2204 omit: number;
2205 };
2206 };
2207 QueryExpand: {
2208 enumValues: {
2209 none: number;
2210 wiql: number;
2211 clauses: number;
2212 all: number;
2213 minimal: number;
2214 };
2215 };
2216 QueryHierarchyItem: any;
2217 QueryHierarchyItemsResult: any;
2218 QueryOption: {
2219 enumValues: {
2220 doing: number;
2221 done: number;
2222 followed: number;
2223 };
2224 };
2225 QueryRecursionOption: {
2226 enumValues: {
2227 parentFirst: number;
2228 childFirst: number;
2229 };
2230 };
2231 QueryResultType: {
2232 enumValues: {
2233 workItem: number;
2234 workItemLink: number;
2235 };
2236 };
2237 QueryType: {
2238 enumValues: {
2239 flat: number;
2240 tree: number;
2241 oneHop: number;
2242 };
2243 };
2244 ReportingRevisionsExpand: {
2245 enumValues: {
2246 none: number;
2247 fields: number;
2248 };
2249 };
2250 TemplateType: {
2251 enumValues: {
2252 workItemType: number;
2253 globalWorkflow: number;
2254 };
2255 };
2256 TreeNodeStructureType: {
2257 enumValues: {
2258 area: number;
2259 iteration: number;
2260 };
2261 };
2262 TreeStructureGroup: {
2263 enumValues: {
2264 areas: number;
2265 iterations: number;
2266 };
2267 };
2268 WorkItemBatchGetRequest: any;
2269 WorkItemClassificationNode: any;
2270 WorkItemComment: any;
2271 WorkItemComments: any;
2272 WorkItemErrorPolicy: {
2273 enumValues: {
2274 fail: number;
2275 omit: number;
2276 };
2277 };
2278 WorkItemExpand: {
2279 enumValues: {
2280 none: number;
2281 relations: number;
2282 fields: number;
2283 links: number;
2284 all: number;
2285 };
2286 };
2287 WorkItemField: any;
2288 WorkItemField2: any;
2289 WorkItemHistory: any;
2290 WorkItemQueryClause: any;
2291 WorkItemQueryResult: any;
2292 WorkItemRecentActivityType: {
2293 enumValues: {
2294 visited: number;
2295 edited: number;
2296 deleted: number;
2297 restored: number;
2298 };
2299 };
2300 WorkItemTagDefinition: any;
2301 WorkItemTypeFieldsExpandLevel: {
2302 enumValues: {
2303 none: number;
2304 allowedValues: number;
2305 dependentFields: number;
2306 all: number;
2307 };
2308 };
2309 WorkItemTypeTemplateUpdateModel: any;
2310 WorkItemUpdate: any;
2311};