1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 | "use strict";
|
11 | Object.defineProperty(exports, "__esModule", { value: true });
|
12 | exports.TypeInfo = exports.WikiType = void 0;
|
13 | const GitInterfaces = require("../interfaces/GitInterfaces");
|
14 |
|
15 |
|
16 |
|
17 | var WikiType;
|
18 | (function (WikiType) {
|
19 | |
20 |
|
21 |
|
22 | WikiType[WikiType["ProjectWiki"] = 0] = "ProjectWiki";
|
23 | |
24 |
|
25 |
|
26 | WikiType[WikiType["CodeWiki"] = 1] = "CodeWiki";
|
27 | })(WikiType = exports.WikiType || (exports.WikiType = {}));
|
28 | exports.TypeInfo = {
|
29 | Wiki: {},
|
30 | WikiCreateBaseParameters: {},
|
31 | WikiCreateParametersV2: {},
|
32 | WikiPageDetail: {},
|
33 | WikiPageStat: {},
|
34 | WikiPageViewStats: {},
|
35 | WikiType: {
|
36 | enumValues: {
|
37 | "projectWiki": 0,
|
38 | "codeWiki": 1
|
39 | }
|
40 | },
|
41 | WikiUpdateParameters: {},
|
42 | WikiV2: {},
|
43 | };
|
44 | exports.TypeInfo.Wiki.fields = {
|
45 | repository: {
|
46 | typeInfo: GitInterfaces.TypeInfo.GitRepository
|
47 | }
|
48 | };
|
49 | exports.TypeInfo.WikiCreateBaseParameters.fields = {
|
50 | type: {
|
51 | enumType: exports.TypeInfo.WikiType
|
52 | }
|
53 | };
|
54 | exports.TypeInfo.WikiCreateParametersV2.fields = {
|
55 | type: {
|
56 | enumType: exports.TypeInfo.WikiType
|
57 | },
|
58 | version: {
|
59 | typeInfo: GitInterfaces.TypeInfo.GitVersionDescriptor
|
60 | }
|
61 | };
|
62 | exports.TypeInfo.WikiPageDetail.fields = {
|
63 | viewStats: {
|
64 | isArray: true,
|
65 | typeInfo: exports.TypeInfo.WikiPageStat
|
66 | }
|
67 | };
|
68 | exports.TypeInfo.WikiPageStat.fields = {
|
69 | day: {
|
70 | isDate: true,
|
71 | }
|
72 | };
|
73 | exports.TypeInfo.WikiPageViewStats.fields = {
|
74 | lastViewedTime: {
|
75 | isDate: true,
|
76 | }
|
77 | };
|
78 | exports.TypeInfo.WikiUpdateParameters.fields = {
|
79 | versions: {
|
80 | isArray: true,
|
81 | typeInfo: GitInterfaces.TypeInfo.GitVersionDescriptor
|
82 | }
|
83 | };
|
84 | exports.TypeInfo.WikiV2.fields = {
|
85 | type: {
|
86 | enumType: exports.TypeInfo.WikiType
|
87 | },
|
88 | versions: {
|
89 | isArray: true,
|
90 | typeInfo: GitInterfaces.TypeInfo.GitVersionDescriptor
|
91 | }
|
92 | };
|