UNPKG

9.83 kBJavaScriptView Raw
1/*
2 * ---------------------------------------------------------
3 * Copyright(C) Microsoft Corporation. All rights reserved.
4 * ---------------------------------------------------------
5 *
6 * ---------------------------------------------------------
7 * Generated file, DO NOT EDIT
8 * ---------------------------------------------------------
9 */
10"use strict";
11Object.defineProperty(exports, "__esModule", { value: true });
12exports.TypeInfo = exports.VersionControlRecursionType = exports.VersionControlChangeType = exports.TfvcVersionType = exports.TfvcVersionOption = exports.ItemContentType = void 0;
13const TfsCoreInterfaces = require("../interfaces/CoreInterfaces");
14var ItemContentType;
15(function (ItemContentType) {
16 ItemContentType[ItemContentType["RawText"] = 0] = "RawText";
17 ItemContentType[ItemContentType["Base64Encoded"] = 1] = "Base64Encoded";
18})(ItemContentType = exports.ItemContentType || (exports.ItemContentType = {}));
19/**
20 * Options for Version handling.
21 */
22var TfvcVersionOption;
23(function (TfvcVersionOption) {
24 /**
25 * None.
26 */
27 TfvcVersionOption[TfvcVersionOption["None"] = 0] = "None";
28 /**
29 * Return the previous version.
30 */
31 TfvcVersionOption[TfvcVersionOption["Previous"] = 1] = "Previous";
32 /**
33 * Only usuable with versiontype MergeSource and integer versions, uses RenameSource identifier instead of Merge identifier.
34 */
35 TfvcVersionOption[TfvcVersionOption["UseRename"] = 2] = "UseRename";
36})(TfvcVersionOption = exports.TfvcVersionOption || (exports.TfvcVersionOption = {}));
37/**
38 * Type of Version object
39 */
40var TfvcVersionType;
41(function (TfvcVersionType) {
42 /**
43 * Version is treated as a ChangesetId.
44 */
45 TfvcVersionType[TfvcVersionType["None"] = 0] = "None";
46 /**
47 * Version is treated as a ChangesetId.
48 */
49 TfvcVersionType[TfvcVersionType["Changeset"] = 1] = "Changeset";
50 /**
51 * Version is treated as a Shelveset name and owner.
52 */
53 TfvcVersionType[TfvcVersionType["Shelveset"] = 2] = "Shelveset";
54 /**
55 * Version is treated as a Change.
56 */
57 TfvcVersionType[TfvcVersionType["Change"] = 3] = "Change";
58 /**
59 * Version is treated as a Date.
60 */
61 TfvcVersionType[TfvcVersionType["Date"] = 4] = "Date";
62 /**
63 * If Version is defined the Latest of that Version will be used, if no version is defined the latest ChangesetId will be used.
64 */
65 TfvcVersionType[TfvcVersionType["Latest"] = 5] = "Latest";
66 /**
67 * Version will be treated as a Tip, if no version is defined latest will be used.
68 */
69 TfvcVersionType[TfvcVersionType["Tip"] = 6] = "Tip";
70 /**
71 * Version will be treated as a MergeSource.
72 */
73 TfvcVersionType[TfvcVersionType["MergeSource"] = 7] = "MergeSource";
74})(TfvcVersionType = exports.TfvcVersionType || (exports.TfvcVersionType = {}));
75var VersionControlChangeType;
76(function (VersionControlChangeType) {
77 VersionControlChangeType[VersionControlChangeType["None"] = 0] = "None";
78 VersionControlChangeType[VersionControlChangeType["Add"] = 1] = "Add";
79 VersionControlChangeType[VersionControlChangeType["Edit"] = 2] = "Edit";
80 VersionControlChangeType[VersionControlChangeType["Encoding"] = 4] = "Encoding";
81 VersionControlChangeType[VersionControlChangeType["Rename"] = 8] = "Rename";
82 VersionControlChangeType[VersionControlChangeType["Delete"] = 16] = "Delete";
83 VersionControlChangeType[VersionControlChangeType["Undelete"] = 32] = "Undelete";
84 VersionControlChangeType[VersionControlChangeType["Branch"] = 64] = "Branch";
85 VersionControlChangeType[VersionControlChangeType["Merge"] = 128] = "Merge";
86 VersionControlChangeType[VersionControlChangeType["Lock"] = 256] = "Lock";
87 VersionControlChangeType[VersionControlChangeType["Rollback"] = 512] = "Rollback";
88 VersionControlChangeType[VersionControlChangeType["SourceRename"] = 1024] = "SourceRename";
89 VersionControlChangeType[VersionControlChangeType["TargetRename"] = 2048] = "TargetRename";
90 VersionControlChangeType[VersionControlChangeType["Property"] = 4096] = "Property";
91 VersionControlChangeType[VersionControlChangeType["All"] = 8191] = "All";
92})(VersionControlChangeType = exports.VersionControlChangeType || (exports.VersionControlChangeType = {}));
93var VersionControlRecursionType;
94(function (VersionControlRecursionType) {
95 /**
96 * Only return the specified item.
97 */
98 VersionControlRecursionType[VersionControlRecursionType["None"] = 0] = "None";
99 /**
100 * Return the specified item and its direct children.
101 */
102 VersionControlRecursionType[VersionControlRecursionType["OneLevel"] = 1] = "OneLevel";
103 /**
104 * Return the specified item and its direct children, as well as recursive chains of nested child folders that only contain a single folder.
105 */
106 VersionControlRecursionType[VersionControlRecursionType["OneLevelPlusNestedEmptyFolders"] = 4] = "OneLevelPlusNestedEmptyFolders";
107 /**
108 * Return specified item and all descendants
109 */
110 VersionControlRecursionType[VersionControlRecursionType["Full"] = 120] = "Full";
111})(VersionControlRecursionType = exports.VersionControlRecursionType || (exports.VersionControlRecursionType = {}));
112exports.TypeInfo = {
113 Change: {},
114 GitRepository: {},
115 GitRepositoryRef: {},
116 ItemContent: {},
117 ItemContentType: {
118 enumValues: {
119 "rawText": 0,
120 "base64Encoded": 1
121 }
122 },
123 TfvcBranch: {},
124 TfvcBranchRef: {},
125 TfvcChange: {},
126 TfvcChangeset: {},
127 TfvcChangesetRef: {},
128 TfvcItem: {},
129 TfvcItemDescriptor: {},
130 TfvcItemRequestData: {},
131 TfvcLabel: {},
132 TfvcLabelRef: {},
133 TfvcShelveset: {},
134 TfvcShelvesetRef: {},
135 TfvcVersionDescriptor: {},
136 TfvcVersionOption: {
137 enumValues: {
138 "none": 0,
139 "previous": 1,
140 "useRename": 2
141 }
142 },
143 TfvcVersionType: {
144 enumValues: {
145 "none": 0,
146 "changeset": 1,
147 "shelveset": 2,
148 "change": 3,
149 "date": 4,
150 "latest": 5,
151 "tip": 6,
152 "mergeSource": 7
153 }
154 },
155 VersionControlChangeType: {
156 enumValues: {
157 "none": 0,
158 "add": 1,
159 "edit": 2,
160 "encoding": 4,
161 "rename": 8,
162 "delete": 16,
163 "undelete": 32,
164 "branch": 64,
165 "merge": 128,
166 "lock": 256,
167 "rollback": 512,
168 "sourceRename": 1024,
169 "targetRename": 2048,
170 "property": 4096,
171 "all": 8191
172 }
173 },
174 VersionControlProjectInfo: {},
175 VersionControlRecursionType: {
176 enumValues: {
177 "none": 0,
178 "oneLevel": 1,
179 "oneLevelPlusNestedEmptyFolders": 4,
180 "full": 120
181 }
182 },
183};
184exports.TypeInfo.Change.fields = {
185 changeType: {
186 enumType: exports.TypeInfo.VersionControlChangeType
187 },
188 newContent: {
189 typeInfo: exports.TypeInfo.ItemContent
190 }
191};
192exports.TypeInfo.GitRepository.fields = {
193 parentRepository: {
194 typeInfo: exports.TypeInfo.GitRepositoryRef
195 },
196 project: {
197 typeInfo: TfsCoreInterfaces.TypeInfo.TeamProjectReference
198 }
199};
200exports.TypeInfo.GitRepositoryRef.fields = {
201 project: {
202 typeInfo: TfsCoreInterfaces.TypeInfo.TeamProjectReference
203 }
204};
205exports.TypeInfo.ItemContent.fields = {
206 contentType: {
207 enumType: exports.TypeInfo.ItemContentType
208 }
209};
210exports.TypeInfo.TfvcBranch.fields = {
211 children: {
212 isArray: true,
213 typeInfo: exports.TypeInfo.TfvcBranch
214 },
215 createdDate: {
216 isDate: true,
217 }
218};
219exports.TypeInfo.TfvcBranchRef.fields = {
220 createdDate: {
221 isDate: true,
222 }
223};
224exports.TypeInfo.TfvcChange.fields = {
225 changeType: {
226 enumType: exports.TypeInfo.VersionControlChangeType
227 },
228 newContent: {
229 typeInfo: exports.TypeInfo.ItemContent
230 }
231};
232exports.TypeInfo.TfvcChangeset.fields = {
233 changes: {
234 isArray: true,
235 typeInfo: exports.TypeInfo.TfvcChange
236 },
237 createdDate: {
238 isDate: true,
239 }
240};
241exports.TypeInfo.TfvcChangesetRef.fields = {
242 createdDate: {
243 isDate: true,
244 }
245};
246exports.TypeInfo.TfvcItem.fields = {
247 changeDate: {
248 isDate: true,
249 }
250};
251exports.TypeInfo.TfvcItemDescriptor.fields = {
252 recursionLevel: {
253 enumType: exports.TypeInfo.VersionControlRecursionType
254 },
255 versionOption: {
256 enumType: exports.TypeInfo.TfvcVersionOption
257 },
258 versionType: {
259 enumType: exports.TypeInfo.TfvcVersionType
260 }
261};
262exports.TypeInfo.TfvcItemRequestData.fields = {
263 itemDescriptors: {
264 isArray: true,
265 typeInfo: exports.TypeInfo.TfvcItemDescriptor
266 }
267};
268exports.TypeInfo.TfvcLabel.fields = {
269 items: {
270 isArray: true,
271 typeInfo: exports.TypeInfo.TfvcItem
272 },
273 modifiedDate: {
274 isDate: true,
275 }
276};
277exports.TypeInfo.TfvcLabelRef.fields = {
278 modifiedDate: {
279 isDate: true,
280 }
281};
282exports.TypeInfo.TfvcShelveset.fields = {
283 changes: {
284 isArray: true,
285 typeInfo: exports.TypeInfo.TfvcChange
286 },
287 createdDate: {
288 isDate: true,
289 }
290};
291exports.TypeInfo.TfvcShelvesetRef.fields = {
292 createdDate: {
293 isDate: true,
294 }
295};
296exports.TypeInfo.TfvcVersionDescriptor.fields = {
297 versionOption: {
298 enumType: exports.TypeInfo.TfvcVersionOption
299 },
300 versionType: {
301 enumType: exports.TypeInfo.TfvcVersionType
302 }
303};
304exports.TypeInfo.VersionControlProjectInfo.fields = {
305 defaultSourceControlType: {
306 enumType: TfsCoreInterfaces.TypeInfo.SourceControlTypes
307 },
308 project: {
309 typeInfo: TfsCoreInterfaces.TypeInfo.TeamProjectReference
310 }
311};