1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 | "use strict";
|
11 | Object.defineProperty(exports, "__esModule", { value: true });
|
12 | exports.TypeInfo = exports.VersionControlRecursionType = exports.VersionControlChangeType = exports.TfvcVersionType = exports.TfvcVersionOption = exports.ItemContentType = void 0;
|
13 | const TfsCoreInterfaces = require("../interfaces/CoreInterfaces");
|
14 | var ItemContentType;
|
15 | (function (ItemContentType) {
|
16 | ItemContentType[ItemContentType["RawText"] = 0] = "RawText";
|
17 | ItemContentType[ItemContentType["Base64Encoded"] = 1] = "Base64Encoded";
|
18 | })(ItemContentType = exports.ItemContentType || (exports.ItemContentType = {}));
|
19 |
|
20 |
|
21 |
|
22 | var TfvcVersionOption;
|
23 | (function (TfvcVersionOption) {
|
24 | |
25 |
|
26 |
|
27 | TfvcVersionOption[TfvcVersionOption["None"] = 0] = "None";
|
28 | |
29 |
|
30 |
|
31 | TfvcVersionOption[TfvcVersionOption["Previous"] = 1] = "Previous";
|
32 | |
33 |
|
34 |
|
35 | TfvcVersionOption[TfvcVersionOption["UseRename"] = 2] = "UseRename";
|
36 | })(TfvcVersionOption = exports.TfvcVersionOption || (exports.TfvcVersionOption = {}));
|
37 |
|
38 |
|
39 |
|
40 | var TfvcVersionType;
|
41 | (function (TfvcVersionType) {
|
42 | |
43 |
|
44 |
|
45 | TfvcVersionType[TfvcVersionType["None"] = 0] = "None";
|
46 | |
47 |
|
48 |
|
49 | TfvcVersionType[TfvcVersionType["Changeset"] = 1] = "Changeset";
|
50 | |
51 |
|
52 |
|
53 | TfvcVersionType[TfvcVersionType["Shelveset"] = 2] = "Shelveset";
|
54 | |
55 |
|
56 |
|
57 | TfvcVersionType[TfvcVersionType["Change"] = 3] = "Change";
|
58 | |
59 |
|
60 |
|
61 | TfvcVersionType[TfvcVersionType["Date"] = 4] = "Date";
|
62 | |
63 |
|
64 |
|
65 | TfvcVersionType[TfvcVersionType["Latest"] = 5] = "Latest";
|
66 | |
67 |
|
68 |
|
69 | TfvcVersionType[TfvcVersionType["Tip"] = 6] = "Tip";
|
70 | |
71 |
|
72 |
|
73 | TfvcVersionType[TfvcVersionType["MergeSource"] = 7] = "MergeSource";
|
74 | })(TfvcVersionType = exports.TfvcVersionType || (exports.TfvcVersionType = {}));
|
75 | var 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 = {}));
|
93 | var VersionControlRecursionType;
|
94 | (function (VersionControlRecursionType) {
|
95 | |
96 |
|
97 |
|
98 | VersionControlRecursionType[VersionControlRecursionType["None"] = 0] = "None";
|
99 | |
100 |
|
101 |
|
102 | VersionControlRecursionType[VersionControlRecursionType["OneLevel"] = 1] = "OneLevel";
|
103 | |
104 |
|
105 |
|
106 | VersionControlRecursionType[VersionControlRecursionType["OneLevelPlusNestedEmptyFolders"] = 4] = "OneLevelPlusNestedEmptyFolders";
|
107 | |
108 |
|
109 |
|
110 | VersionControlRecursionType[VersionControlRecursionType["Full"] = 120] = "Full";
|
111 | })(VersionControlRecursionType = exports.VersionControlRecursionType || (exports.VersionControlRecursionType = {}));
|
112 | exports.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 | };
|
184 | exports.TypeInfo.Change.fields = {
|
185 | changeType: {
|
186 | enumType: exports.TypeInfo.VersionControlChangeType
|
187 | },
|
188 | newContent: {
|
189 | typeInfo: exports.TypeInfo.ItemContent
|
190 | }
|
191 | };
|
192 | exports.TypeInfo.GitRepository.fields = {
|
193 | parentRepository: {
|
194 | typeInfo: exports.TypeInfo.GitRepositoryRef
|
195 | },
|
196 | project: {
|
197 | typeInfo: TfsCoreInterfaces.TypeInfo.TeamProjectReference
|
198 | }
|
199 | };
|
200 | exports.TypeInfo.GitRepositoryRef.fields = {
|
201 | project: {
|
202 | typeInfo: TfsCoreInterfaces.TypeInfo.TeamProjectReference
|
203 | }
|
204 | };
|
205 | exports.TypeInfo.ItemContent.fields = {
|
206 | contentType: {
|
207 | enumType: exports.TypeInfo.ItemContentType
|
208 | }
|
209 | };
|
210 | exports.TypeInfo.TfvcBranch.fields = {
|
211 | children: {
|
212 | isArray: true,
|
213 | typeInfo: exports.TypeInfo.TfvcBranch
|
214 | },
|
215 | createdDate: {
|
216 | isDate: true,
|
217 | }
|
218 | };
|
219 | exports.TypeInfo.TfvcBranchRef.fields = {
|
220 | createdDate: {
|
221 | isDate: true,
|
222 | }
|
223 | };
|
224 | exports.TypeInfo.TfvcChange.fields = {
|
225 | changeType: {
|
226 | enumType: exports.TypeInfo.VersionControlChangeType
|
227 | },
|
228 | newContent: {
|
229 | typeInfo: exports.TypeInfo.ItemContent
|
230 | }
|
231 | };
|
232 | exports.TypeInfo.TfvcChangeset.fields = {
|
233 | changes: {
|
234 | isArray: true,
|
235 | typeInfo: exports.TypeInfo.TfvcChange
|
236 | },
|
237 | createdDate: {
|
238 | isDate: true,
|
239 | }
|
240 | };
|
241 | exports.TypeInfo.TfvcChangesetRef.fields = {
|
242 | createdDate: {
|
243 | isDate: true,
|
244 | }
|
245 | };
|
246 | exports.TypeInfo.TfvcItem.fields = {
|
247 | changeDate: {
|
248 | isDate: true,
|
249 | }
|
250 | };
|
251 | exports.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 | };
|
262 | exports.TypeInfo.TfvcItemRequestData.fields = {
|
263 | itemDescriptors: {
|
264 | isArray: true,
|
265 | typeInfo: exports.TypeInfo.TfvcItemDescriptor
|
266 | }
|
267 | };
|
268 | exports.TypeInfo.TfvcLabel.fields = {
|
269 | items: {
|
270 | isArray: true,
|
271 | typeInfo: exports.TypeInfo.TfvcItem
|
272 | },
|
273 | modifiedDate: {
|
274 | isDate: true,
|
275 | }
|
276 | };
|
277 | exports.TypeInfo.TfvcLabelRef.fields = {
|
278 | modifiedDate: {
|
279 | isDate: true,
|
280 | }
|
281 | };
|
282 | exports.TypeInfo.TfvcShelveset.fields = {
|
283 | changes: {
|
284 | isArray: true,
|
285 | typeInfo: exports.TypeInfo.TfvcChange
|
286 | },
|
287 | createdDate: {
|
288 | isDate: true,
|
289 | }
|
290 | };
|
291 | exports.TypeInfo.TfvcShelvesetRef.fields = {
|
292 | createdDate: {
|
293 | isDate: true,
|
294 | }
|
295 | };
|
296 | exports.TypeInfo.TfvcVersionDescriptor.fields = {
|
297 | versionOption: {
|
298 | enumType: exports.TypeInfo.TfvcVersionOption
|
299 | },
|
300 | versionType: {
|
301 | enumType: exports.TypeInfo.TfvcVersionType
|
302 | }
|
303 | };
|
304 | exports.TypeInfo.VersionControlProjectInfo.fields = {
|
305 | defaultSourceControlType: {
|
306 | enumType: TfsCoreInterfaces.TypeInfo.SourceControlTypes
|
307 | },
|
308 | project: {
|
309 | typeInfo: TfsCoreInterfaces.TypeInfo.TeamProjectReference
|
310 | }
|
311 | };
|