1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 | "use strict";
|
11 | Object.defineProperty(exports, "__esModule", { value: true });
|
12 | exports.TypeInfo = exports.TimelineTeamStatusCode = exports.TimelineIterationStatusCode = exports.TimelineCriteriaStatusCode = exports.TimeFrame = exports.PlanUserPermissions = exports.PlanType = exports.IdentityDisplayFormat = exports.FieldType = exports.BugsBehavior = exports.BoardColumnType = exports.BoardBadgeColumnOptions = exports.BacklogType = void 0;
|
13 | const SystemInterfaces = require("../interfaces/common/System");
|
14 |
|
15 |
|
16 |
|
17 | var BacklogType;
|
18 | (function (BacklogType) {
|
19 | |
20 |
|
21 |
|
22 | BacklogType[BacklogType["Portfolio"] = 0] = "Portfolio";
|
23 | |
24 |
|
25 |
|
26 | BacklogType[BacklogType["Requirement"] = 1] = "Requirement";
|
27 | |
28 |
|
29 |
|
30 | BacklogType[BacklogType["Task"] = 2] = "Task";
|
31 | })(BacklogType = exports.BacklogType || (exports.BacklogType = {}));
|
32 |
|
33 |
|
34 |
|
35 | var BoardBadgeColumnOptions;
|
36 | (function (BoardBadgeColumnOptions) {
|
37 | |
38 |
|
39 |
|
40 | BoardBadgeColumnOptions[BoardBadgeColumnOptions["InProgressColumns"] = 0] = "InProgressColumns";
|
41 | |
42 |
|
43 |
|
44 | BoardBadgeColumnOptions[BoardBadgeColumnOptions["AllColumns"] = 1] = "AllColumns";
|
45 | |
46 |
|
47 |
|
48 | BoardBadgeColumnOptions[BoardBadgeColumnOptions["CustomColumns"] = 2] = "CustomColumns";
|
49 | })(BoardBadgeColumnOptions = exports.BoardBadgeColumnOptions || (exports.BoardBadgeColumnOptions = {}));
|
50 | var BoardColumnType;
|
51 | (function (BoardColumnType) {
|
52 | BoardColumnType[BoardColumnType["Incoming"] = 0] = "Incoming";
|
53 | BoardColumnType[BoardColumnType["InProgress"] = 1] = "InProgress";
|
54 | BoardColumnType[BoardColumnType["Outgoing"] = 2] = "Outgoing";
|
55 | })(BoardColumnType = exports.BoardColumnType || (exports.BoardColumnType = {}));
|
56 |
|
57 |
|
58 |
|
59 | var BugsBehavior;
|
60 | (function (BugsBehavior) {
|
61 | BugsBehavior[BugsBehavior["Off"] = 0] = "Off";
|
62 | BugsBehavior[BugsBehavior["AsRequirements"] = 1] = "AsRequirements";
|
63 | BugsBehavior[BugsBehavior["AsTasks"] = 2] = "AsTasks";
|
64 | })(BugsBehavior = exports.BugsBehavior || (exports.BugsBehavior = {}));
|
65 | var FieldType;
|
66 | (function (FieldType) {
|
67 | FieldType[FieldType["String"] = 0] = "String";
|
68 | FieldType[FieldType["PlainText"] = 1] = "PlainText";
|
69 | FieldType[FieldType["Integer"] = 2] = "Integer";
|
70 | FieldType[FieldType["DateTime"] = 3] = "DateTime";
|
71 | FieldType[FieldType["TreePath"] = 4] = "TreePath";
|
72 | FieldType[FieldType["Boolean"] = 5] = "Boolean";
|
73 | FieldType[FieldType["Double"] = 6] = "Double";
|
74 | })(FieldType = exports.FieldType || (exports.FieldType = {}));
|
75 |
|
76 |
|
77 |
|
78 | var IdentityDisplayFormat;
|
79 | (function (IdentityDisplayFormat) {
|
80 | |
81 |
|
82 |
|
83 | IdentityDisplayFormat[IdentityDisplayFormat["AvatarOnly"] = 0] = "AvatarOnly";
|
84 | |
85 |
|
86 |
|
87 | IdentityDisplayFormat[IdentityDisplayFormat["FullName"] = 1] = "FullName";
|
88 | |
89 |
|
90 |
|
91 | IdentityDisplayFormat[IdentityDisplayFormat["AvatarAndFullName"] = 2] = "AvatarAndFullName";
|
92 | })(IdentityDisplayFormat = exports.IdentityDisplayFormat || (exports.IdentityDisplayFormat = {}));
|
93 |
|
94 |
|
95 |
|
96 | var PlanType;
|
97 | (function (PlanType) {
|
98 | PlanType[PlanType["DeliveryTimelineView"] = 0] = "DeliveryTimelineView";
|
99 | })(PlanType = exports.PlanType || (exports.PlanType = {}));
|
100 |
|
101 |
|
102 |
|
103 | var PlanUserPermissions;
|
104 | (function (PlanUserPermissions) {
|
105 | |
106 |
|
107 |
|
108 | PlanUserPermissions[PlanUserPermissions["None"] = 0] = "None";
|
109 | |
110 |
|
111 |
|
112 | PlanUserPermissions[PlanUserPermissions["View"] = 1] = "View";
|
113 | |
114 |
|
115 |
|
116 | PlanUserPermissions[PlanUserPermissions["Edit"] = 2] = "Edit";
|
117 | |
118 |
|
119 |
|
120 | PlanUserPermissions[PlanUserPermissions["Delete"] = 4] = "Delete";
|
121 | |
122 |
|
123 |
|
124 | PlanUserPermissions[PlanUserPermissions["Manage"] = 8] = "Manage";
|
125 | |
126 |
|
127 |
|
128 | PlanUserPermissions[PlanUserPermissions["AllPermissions"] = 15] = "AllPermissions";
|
129 | })(PlanUserPermissions = exports.PlanUserPermissions || (exports.PlanUserPermissions = {}));
|
130 | var TimeFrame;
|
131 | (function (TimeFrame) {
|
132 | TimeFrame[TimeFrame["Past"] = 0] = "Past";
|
133 | TimeFrame[TimeFrame["Current"] = 1] = "Current";
|
134 | TimeFrame[TimeFrame["Future"] = 2] = "Future";
|
135 | })(TimeFrame = exports.TimeFrame || (exports.TimeFrame = {}));
|
136 | var TimelineCriteriaStatusCode;
|
137 | (function (TimelineCriteriaStatusCode) {
|
138 | |
139 |
|
140 |
|
141 | TimelineCriteriaStatusCode[TimelineCriteriaStatusCode["OK"] = 0] = "OK";
|
142 | |
143 |
|
144 |
|
145 | TimelineCriteriaStatusCode[TimelineCriteriaStatusCode["InvalidFilterClause"] = 1] = "InvalidFilterClause";
|
146 | |
147 |
|
148 |
|
149 | TimelineCriteriaStatusCode[TimelineCriteriaStatusCode["Unknown"] = 2] = "Unknown";
|
150 | })(TimelineCriteriaStatusCode = exports.TimelineCriteriaStatusCode || (exports.TimelineCriteriaStatusCode = {}));
|
151 | var TimelineIterationStatusCode;
|
152 | (function (TimelineIterationStatusCode) {
|
153 | |
154 |
|
155 |
|
156 | TimelineIterationStatusCode[TimelineIterationStatusCode["OK"] = 0] = "OK";
|
157 | |
158 |
|
159 |
|
160 | TimelineIterationStatusCode[TimelineIterationStatusCode["IsOverlapping"] = 1] = "IsOverlapping";
|
161 | })(TimelineIterationStatusCode = exports.TimelineIterationStatusCode || (exports.TimelineIterationStatusCode = {}));
|
162 | var TimelineTeamStatusCode;
|
163 | (function (TimelineTeamStatusCode) {
|
164 | |
165 |
|
166 |
|
167 | TimelineTeamStatusCode[TimelineTeamStatusCode["OK"] = 0] = "OK";
|
168 | |
169 |
|
170 |
|
171 | TimelineTeamStatusCode[TimelineTeamStatusCode["DoesntExistOrAccessDenied"] = 1] = "DoesntExistOrAccessDenied";
|
172 | |
173 |
|
174 |
|
175 | TimelineTeamStatusCode[TimelineTeamStatusCode["MaxTeamsExceeded"] = 2] = "MaxTeamsExceeded";
|
176 | |
177 |
|
178 |
|
179 | TimelineTeamStatusCode[TimelineTeamStatusCode["MaxTeamFieldsExceeded"] = 3] = "MaxTeamFieldsExceeded";
|
180 | |
181 |
|
182 |
|
183 | TimelineTeamStatusCode[TimelineTeamStatusCode["BacklogInError"] = 4] = "BacklogInError";
|
184 | |
185 |
|
186 |
|
187 | TimelineTeamStatusCode[TimelineTeamStatusCode["MissingTeamFieldValue"] = 5] = "MissingTeamFieldValue";
|
188 | |
189 |
|
190 |
|
191 | TimelineTeamStatusCode[TimelineTeamStatusCode["NoIterationsExist"] = 6] = "NoIterationsExist";
|
192 | })(TimelineTeamStatusCode = exports.TimelineTeamStatusCode || (exports.TimelineTeamStatusCode = {}));
|
193 | exports.TypeInfo = {
|
194 | BacklogConfiguration: {},
|
195 | BacklogLevelConfiguration: {},
|
196 | BacklogType: {
|
197 | enumValues: {
|
198 | "portfolio": 0,
|
199 | "requirement": 1,
|
200 | "task": 2
|
201 | }
|
202 | },
|
203 | Board: {},
|
204 | BoardBadgeColumnOptions: {
|
205 | enumValues: {
|
206 | "inProgressColumns": 0,
|
207 | "allColumns": 1,
|
208 | "customColumns": 2
|
209 | }
|
210 | },
|
211 | BoardColumn: {},
|
212 | BoardColumnType: {
|
213 | enumValues: {
|
214 | "incoming": 0,
|
215 | "inProgress": 1,
|
216 | "outgoing": 2
|
217 | }
|
218 | },
|
219 | BugsBehavior: {
|
220 | enumValues: {
|
221 | "off": 0,
|
222 | "asRequirements": 1,
|
223 | "asTasks": 2
|
224 | }
|
225 | },
|
226 | CapacityContractBase: {},
|
227 | CapacityPatch: {},
|
228 | CardFieldSettings: {},
|
229 | CardSettings: {},
|
230 | CreatePlan: {},
|
231 | DateRange: {},
|
232 | DeliveryViewData: {},
|
233 | DeliveryViewPropertyCollection: {},
|
234 | FieldInfo: {},
|
235 | FieldType: {
|
236 | enumValues: {
|
237 | "string": 0,
|
238 | "plainText": 1,
|
239 | "integer": 2,
|
240 | "dateTime": 3,
|
241 | "treePath": 4,
|
242 | "boolean": 5,
|
243 | "double": 6
|
244 | }
|
245 | },
|
246 | IdentityDisplayFormat: {
|
247 | enumValues: {
|
248 | "avatarOnly": 0,
|
249 | "fullName": 1,
|
250 | "avatarAndFullName": 2
|
251 | }
|
252 | },
|
253 | Marker: {},
|
254 | Plan: {},
|
255 | PlanMetadata: {},
|
256 | PlanType: {
|
257 | enumValues: {
|
258 | "deliveryTimelineView": 0
|
259 | }
|
260 | },
|
261 | PlanUserPermissions: {
|
262 | enumValues: {
|
263 | "none": 0,
|
264 | "view": 1,
|
265 | "edit": 2,
|
266 | "delete": 4,
|
267 | "manage": 8,
|
268 | "allPermissions": 15
|
269 | }
|
270 | },
|
271 | TeamCapacity: {},
|
272 | TeamIterationAttributes: {},
|
273 | TeamMemberCapacity: {},
|
274 | TeamMemberCapacityIdentityRef: {},
|
275 | TeamSetting: {},
|
276 | TeamSettingsDaysOff: {},
|
277 | TeamSettingsDaysOffPatch: {},
|
278 | TeamSettingsIteration: {},
|
279 | TeamSettingsPatch: {},
|
280 | TimeFrame: {
|
281 | enumValues: {
|
282 | "past": 0,
|
283 | "current": 1,
|
284 | "future": 2
|
285 | }
|
286 | },
|
287 | TimelineCriteriaStatus: {},
|
288 | TimelineCriteriaStatusCode: {
|
289 | enumValues: {
|
290 | "ok": 0,
|
291 | "invalidFilterClause": 1,
|
292 | "unknown": 2
|
293 | }
|
294 | },
|
295 | TimelineIterationStatus: {},
|
296 | TimelineIterationStatusCode: {
|
297 | enumValues: {
|
298 | "ok": 0,
|
299 | "isOverlapping": 1
|
300 | }
|
301 | },
|
302 | TimelineTeamData: {},
|
303 | TimelineTeamIteration: {},
|
304 | TimelineTeamStatus: {},
|
305 | TimelineTeamStatusCode: {
|
306 | enumValues: {
|
307 | "ok": 0,
|
308 | "doesntExistOrAccessDenied": 1,
|
309 | "maxTeamsExceeded": 2,
|
310 | "maxTeamFieldsExceeded": 3,
|
311 | "backlogInError": 4,
|
312 | "missingTeamFieldValue": 5,
|
313 | "noIterationsExist": 6
|
314 | }
|
315 | },
|
316 | UpdatePlan: {},
|
317 | };
|
318 | exports.TypeInfo.BacklogConfiguration.fields = {
|
319 | bugsBehavior: {
|
320 | enumType: exports.TypeInfo.BugsBehavior
|
321 | },
|
322 | portfolioBacklogs: {
|
323 | isArray: true,
|
324 | typeInfo: exports.TypeInfo.BacklogLevelConfiguration
|
325 | },
|
326 | requirementBacklog: {
|
327 | typeInfo: exports.TypeInfo.BacklogLevelConfiguration
|
328 | },
|
329 | taskBacklog: {
|
330 | typeInfo: exports.TypeInfo.BacklogLevelConfiguration
|
331 | }
|
332 | };
|
333 | exports.TypeInfo.BacklogLevelConfiguration.fields = {
|
334 | type: {
|
335 | enumType: exports.TypeInfo.BacklogType
|
336 | }
|
337 | };
|
338 | exports.TypeInfo.Board.fields = {
|
339 | columns: {
|
340 | isArray: true,
|
341 | typeInfo: exports.TypeInfo.BoardColumn
|
342 | }
|
343 | };
|
344 | exports.TypeInfo.BoardColumn.fields = {
|
345 | columnType: {
|
346 | enumType: exports.TypeInfo.BoardColumnType
|
347 | }
|
348 | };
|
349 | exports.TypeInfo.CapacityContractBase.fields = {
|
350 | daysOff: {
|
351 | isArray: true,
|
352 | typeInfo: exports.TypeInfo.DateRange
|
353 | }
|
354 | };
|
355 | exports.TypeInfo.CapacityPatch.fields = {
|
356 | daysOff: {
|
357 | isArray: true,
|
358 | typeInfo: exports.TypeInfo.DateRange
|
359 | }
|
360 | };
|
361 | exports.TypeInfo.CardFieldSettings.fields = {
|
362 | additionalFields: {
|
363 | isArray: true,
|
364 | typeInfo: exports.TypeInfo.FieldInfo
|
365 | },
|
366 | assignedToDisplayFormat: {
|
367 | enumType: exports.TypeInfo.IdentityDisplayFormat
|
368 | },
|
369 | coreFields: {
|
370 | isArray: true,
|
371 | typeInfo: exports.TypeInfo.FieldInfo
|
372 | }
|
373 | };
|
374 | exports.TypeInfo.CardSettings.fields = {
|
375 | fields: {
|
376 | typeInfo: exports.TypeInfo.CardFieldSettings
|
377 | }
|
378 | };
|
379 | exports.TypeInfo.CreatePlan.fields = {
|
380 | type: {
|
381 | enumType: exports.TypeInfo.PlanType
|
382 | }
|
383 | };
|
384 | exports.TypeInfo.DateRange.fields = {
|
385 | end: {
|
386 | isDate: true,
|
387 | },
|
388 | start: {
|
389 | isDate: true,
|
390 | }
|
391 | };
|
392 | exports.TypeInfo.DeliveryViewData.fields = {
|
393 | criteriaStatus: {
|
394 | typeInfo: exports.TypeInfo.TimelineCriteriaStatus
|
395 | },
|
396 | endDate: {
|
397 | isDate: true,
|
398 | },
|
399 | startDate: {
|
400 | isDate: true,
|
401 | },
|
402 | teams: {
|
403 | isArray: true,
|
404 | typeInfo: exports.TypeInfo.TimelineTeamData
|
405 | }
|
406 | };
|
407 | exports.TypeInfo.DeliveryViewPropertyCollection.fields = {
|
408 | cardSettings: {
|
409 | typeInfo: exports.TypeInfo.CardSettings
|
410 | },
|
411 | markers: {
|
412 | isArray: true,
|
413 | typeInfo: exports.TypeInfo.Marker
|
414 | }
|
415 | };
|
416 | exports.TypeInfo.FieldInfo.fields = {
|
417 | fieldType: {
|
418 | enumType: exports.TypeInfo.FieldType
|
419 | }
|
420 | };
|
421 | exports.TypeInfo.Marker.fields = {
|
422 | date: {
|
423 | isDate: true,
|
424 | }
|
425 | };
|
426 | exports.TypeInfo.Plan.fields = {
|
427 | createdDate: {
|
428 | isDate: true,
|
429 | },
|
430 | lastAccessed: {
|
431 | isDate: true,
|
432 | },
|
433 | modifiedDate: {
|
434 | isDate: true,
|
435 | },
|
436 | type: {
|
437 | enumType: exports.TypeInfo.PlanType
|
438 | },
|
439 | userPermissions: {
|
440 | enumType: exports.TypeInfo.PlanUserPermissions
|
441 | }
|
442 | };
|
443 | exports.TypeInfo.PlanMetadata.fields = {
|
444 | modifiedDate: {
|
445 | isDate: true,
|
446 | },
|
447 | userPermissions: {
|
448 | enumType: exports.TypeInfo.PlanUserPermissions
|
449 | }
|
450 | };
|
451 | exports.TypeInfo.TeamCapacity.fields = {
|
452 | teamMembers: {
|
453 | isArray: true,
|
454 | typeInfo: exports.TypeInfo.TeamMemberCapacityIdentityRef
|
455 | }
|
456 | };
|
457 | exports.TypeInfo.TeamIterationAttributes.fields = {
|
458 | finishDate: {
|
459 | isDate: true,
|
460 | },
|
461 | startDate: {
|
462 | isDate: true,
|
463 | },
|
464 | timeFrame: {
|
465 | enumType: exports.TypeInfo.TimeFrame
|
466 | }
|
467 | };
|
468 | exports.TypeInfo.TeamMemberCapacity.fields = {
|
469 | daysOff: {
|
470 | isArray: true,
|
471 | typeInfo: exports.TypeInfo.DateRange
|
472 | }
|
473 | };
|
474 | exports.TypeInfo.TeamMemberCapacityIdentityRef.fields = {
|
475 | daysOff: {
|
476 | isArray: true,
|
477 | typeInfo: exports.TypeInfo.DateRange
|
478 | }
|
479 | };
|
480 | exports.TypeInfo.TeamSetting.fields = {
|
481 | backlogIteration: {
|
482 | typeInfo: exports.TypeInfo.TeamSettingsIteration
|
483 | },
|
484 | bugsBehavior: {
|
485 | enumType: exports.TypeInfo.BugsBehavior
|
486 | },
|
487 | defaultIteration: {
|
488 | typeInfo: exports.TypeInfo.TeamSettingsIteration
|
489 | },
|
490 | workingDays: {
|
491 | isArray: true,
|
492 | enumType: SystemInterfaces.TypeInfo.DayOfWeek
|
493 | }
|
494 | };
|
495 | exports.TypeInfo.TeamSettingsDaysOff.fields = {
|
496 | daysOff: {
|
497 | isArray: true,
|
498 | typeInfo: exports.TypeInfo.DateRange
|
499 | }
|
500 | };
|
501 | exports.TypeInfo.TeamSettingsDaysOffPatch.fields = {
|
502 | daysOff: {
|
503 | isArray: true,
|
504 | typeInfo: exports.TypeInfo.DateRange
|
505 | }
|
506 | };
|
507 | exports.TypeInfo.TeamSettingsIteration.fields = {
|
508 | attributes: {
|
509 | typeInfo: exports.TypeInfo.TeamIterationAttributes
|
510 | }
|
511 | };
|
512 | exports.TypeInfo.TeamSettingsPatch.fields = {
|
513 | bugsBehavior: {
|
514 | enumType: exports.TypeInfo.BugsBehavior
|
515 | },
|
516 | workingDays: {
|
517 | isArray: true,
|
518 | enumType: SystemInterfaces.TypeInfo.DayOfWeek
|
519 | }
|
520 | };
|
521 | exports.TypeInfo.TimelineCriteriaStatus.fields = {
|
522 | type: {
|
523 | enumType: exports.TypeInfo.TimelineCriteriaStatusCode
|
524 | }
|
525 | };
|
526 | exports.TypeInfo.TimelineIterationStatus.fields = {
|
527 | type: {
|
528 | enumType: exports.TypeInfo.TimelineIterationStatusCode
|
529 | }
|
530 | };
|
531 | exports.TypeInfo.TimelineTeamData.fields = {
|
532 | iterations: {
|
533 | isArray: true,
|
534 | typeInfo: exports.TypeInfo.TimelineTeamIteration
|
535 | },
|
536 | status: {
|
537 | typeInfo: exports.TypeInfo.TimelineTeamStatus
|
538 | }
|
539 | };
|
540 | exports.TypeInfo.TimelineTeamIteration.fields = {
|
541 | finishDate: {
|
542 | isDate: true,
|
543 | },
|
544 | startDate: {
|
545 | isDate: true,
|
546 | },
|
547 | status: {
|
548 | typeInfo: exports.TypeInfo.TimelineIterationStatus
|
549 | }
|
550 | };
|
551 | exports.TypeInfo.TimelineTeamStatus.fields = {
|
552 | type: {
|
553 | enumType: exports.TypeInfo.TimelineTeamStatusCode
|
554 | }
|
555 | };
|
556 | exports.TypeInfo.UpdatePlan.fields = {
|
557 | type: {
|
558 | enumType: exports.TypeInfo.PlanType
|
559 | }
|
560 | };
|