UNPKG

2.38 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.WikiType = void 0;
13const GitInterfaces = require("../interfaces/GitInterfaces");
14/**
15 * Wiki types.
16 */
17var WikiType;
18(function (WikiType) {
19 /**
20 * Indicates that the wiki is provisioned for the team project
21 */
22 WikiType[WikiType["ProjectWiki"] = 0] = "ProjectWiki";
23 /**
24 * Indicates that the wiki is published from a git repository
25 */
26 WikiType[WikiType["CodeWiki"] = 1] = "CodeWiki";
27})(WikiType = exports.WikiType || (exports.WikiType = {}));
28exports.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};
44exports.TypeInfo.Wiki.fields = {
45 repository: {
46 typeInfo: GitInterfaces.TypeInfo.GitRepository
47 }
48};
49exports.TypeInfo.WikiCreateBaseParameters.fields = {
50 type: {
51 enumType: exports.TypeInfo.WikiType
52 }
53};
54exports.TypeInfo.WikiCreateParametersV2.fields = {
55 type: {
56 enumType: exports.TypeInfo.WikiType
57 },
58 version: {
59 typeInfo: GitInterfaces.TypeInfo.GitVersionDescriptor
60 }
61};
62exports.TypeInfo.WikiPageDetail.fields = {
63 viewStats: {
64 isArray: true,
65 typeInfo: exports.TypeInfo.WikiPageStat
66 }
67};
68exports.TypeInfo.WikiPageStat.fields = {
69 day: {
70 isDate: true,
71 }
72};
73exports.TypeInfo.WikiPageViewStats.fields = {
74 lastViewedTime: {
75 isDate: true,
76 }
77};
78exports.TypeInfo.WikiUpdateParameters.fields = {
79 versions: {
80 isArray: true,
81 typeInfo: GitInterfaces.TypeInfo.GitVersionDescriptor
82 }
83};
84exports.TypeInfo.WikiV2.fields = {
85 type: {
86 enumType: exports.TypeInfo.WikiType
87 },
88 versions: {
89 isArray: true,
90 typeInfo: GitInterfaces.TypeInfo.GitVersionDescriptor
91 }
92};