UNPKG

7.07 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.RunState = exports.RunResult = exports.RepositoryType = exports.GetLogExpandOptions = exports.GetArtifactExpandOptions = exports.ConfigurationType = void 0;
13const VSSInterfaces = require("../interfaces/common/VSSInterfaces");
14var ConfigurationType;
15(function (ConfigurationType) {
16 /**
17 * Unknown type.
18 */
19 ConfigurationType[ConfigurationType["Unknown"] = 0] = "Unknown";
20 /**
21 * YAML.
22 */
23 ConfigurationType[ConfigurationType["Yaml"] = 1] = "Yaml";
24 /**
25 * Designer JSON.
26 */
27 ConfigurationType[ConfigurationType["DesignerJson"] = 2] = "DesignerJson";
28 /**
29 * Just-in-time.
30 */
31 ConfigurationType[ConfigurationType["JustInTime"] = 3] = "JustInTime";
32 /**
33 * Designer-JSON.
34 */
35 ConfigurationType[ConfigurationType["DesignerHyphenJson"] = 2] = "DesignerHyphenJson";
36})(ConfigurationType = exports.ConfigurationType || (exports.ConfigurationType = {}));
37/**
38 * Expansion options for GetArtifact and ListArtifacts.
39 */
40var GetArtifactExpandOptions;
41(function (GetArtifactExpandOptions) {
42 /**
43 * No expansion.
44 */
45 GetArtifactExpandOptions[GetArtifactExpandOptions["None"] = 0] = "None";
46 /**
47 * Include signed content.
48 */
49 GetArtifactExpandOptions[GetArtifactExpandOptions["SignedContent"] = 1] = "SignedContent";
50})(GetArtifactExpandOptions = exports.GetArtifactExpandOptions || (exports.GetArtifactExpandOptions = {}));
51/**
52 * $expand options for GetLog and ListLogs.
53 */
54var GetLogExpandOptions;
55(function (GetLogExpandOptions) {
56 GetLogExpandOptions[GetLogExpandOptions["None"] = 0] = "None";
57 GetLogExpandOptions[GetLogExpandOptions["SignedContent"] = 1] = "SignedContent";
58})(GetLogExpandOptions = exports.GetLogExpandOptions || (exports.GetLogExpandOptions = {}));
59var RepositoryType;
60(function (RepositoryType) {
61 RepositoryType[RepositoryType["Unknown"] = 0] = "Unknown";
62 RepositoryType[RepositoryType["GitHub"] = 1] = "GitHub";
63 RepositoryType[RepositoryType["AzureReposGit"] = 2] = "AzureReposGit";
64 RepositoryType[RepositoryType["GitHubEnterprise"] = 3] = "GitHubEnterprise";
65 RepositoryType[RepositoryType["AzureReposGitHyphenated"] = 2] = "AzureReposGitHyphenated";
66})(RepositoryType = exports.RepositoryType || (exports.RepositoryType = {}));
67/**
68 * This is not a Flags enum because we don't want to set multiple results on a build. However, when adding values, please stick to powers of 2 as if it were a Flags enum. This will make it easier to query multiple results.
69 */
70var RunResult;
71(function (RunResult) {
72 RunResult[RunResult["Unknown"] = 0] = "Unknown";
73 RunResult[RunResult["Succeeded"] = 1] = "Succeeded";
74 RunResult[RunResult["Failed"] = 2] = "Failed";
75 RunResult[RunResult["Canceled"] = 4] = "Canceled";
76})(RunResult = exports.RunResult || (exports.RunResult = {}));
77/**
78 * This is not a Flags enum because we don't want to set multiple states on a build. However, when adding values, please stick to powers of 2 as if it were a Flags enum. This will make it easier to query multiple states.
79 */
80var RunState;
81(function (RunState) {
82 RunState[RunState["Unknown"] = 0] = "Unknown";
83 RunState[RunState["InProgress"] = 1] = "InProgress";
84 RunState[RunState["Canceling"] = 2] = "Canceling";
85 RunState[RunState["Completed"] = 4] = "Completed";
86})(RunState = exports.RunState || (exports.RunState = {}));
87exports.TypeInfo = {
88 Artifact: {},
89 ConfigurationType: {
90 enumValues: {
91 "unknown": 0,
92 "yaml": 1,
93 "designerJson": 2,
94 "justInTime": 3,
95 "designerHyphenJson": 2
96 }
97 },
98 CreatePipelineConfigurationParameters: {},
99 CreatePipelineParameters: {},
100 GetArtifactExpandOptions: {
101 enumValues: {
102 "none": 0,
103 "signedContent": 1
104 }
105 },
106 GetLogExpandOptions: {
107 enumValues: {
108 "none": 0,
109 "signedContent": 1
110 }
111 },
112 Log: {},
113 LogCollection: {},
114 Pipeline: {},
115 PipelineConfiguration: {},
116 Repository: {},
117 RepositoryResource: {},
118 RepositoryType: {
119 enumValues: {
120 "unknown": 0,
121 "gitHub": 1,
122 "azureReposGit": 2,
123 "gitHubEnterprise": 3,
124 "azureReposGitHyphenated": 2
125 }
126 },
127 Run: {},
128 RunResources: {},
129 RunResult: {
130 enumValues: {
131 "unknown": 0,
132 "succeeded": 1,
133 "failed": 2,
134 "canceled": 4
135 }
136 },
137 RunState: {
138 enumValues: {
139 "unknown": 0,
140 "inProgress": 1,
141 "canceling": 2,
142 "completed": 4
143 }
144 },
145 SignalRConnection: {},
146};
147exports.TypeInfo.Artifact.fields = {
148 signedContent: {
149 typeInfo: VSSInterfaces.TypeInfo.SignedUrl
150 }
151};
152exports.TypeInfo.CreatePipelineConfigurationParameters.fields = {
153 type: {
154 enumType: exports.TypeInfo.ConfigurationType
155 }
156};
157exports.TypeInfo.CreatePipelineParameters.fields = {
158 configuration: {
159 typeInfo: exports.TypeInfo.CreatePipelineConfigurationParameters
160 }
161};
162exports.TypeInfo.Log.fields = {
163 createdOn: {
164 isDate: true,
165 },
166 lastChangedOn: {
167 isDate: true,
168 },
169 signedContent: {
170 typeInfo: VSSInterfaces.TypeInfo.SignedUrl
171 }
172};
173exports.TypeInfo.LogCollection.fields = {
174 logs: {
175 isArray: true,
176 typeInfo: exports.TypeInfo.Log
177 },
178 signedContent: {
179 typeInfo: VSSInterfaces.TypeInfo.SignedUrl
180 }
181};
182exports.TypeInfo.Pipeline.fields = {
183 configuration: {
184 typeInfo: exports.TypeInfo.PipelineConfiguration
185 }
186};
187exports.TypeInfo.PipelineConfiguration.fields = {
188 type: {
189 enumType: exports.TypeInfo.ConfigurationType
190 }
191};
192exports.TypeInfo.Repository.fields = {
193 type: {
194 enumType: exports.TypeInfo.RepositoryType
195 }
196};
197exports.TypeInfo.RepositoryResource.fields = {
198 repository: {
199 typeInfo: exports.TypeInfo.Repository
200 }
201};
202exports.TypeInfo.Run.fields = {
203 createdDate: {
204 isDate: true,
205 },
206 finishedDate: {
207 isDate: true,
208 },
209 resources: {
210 typeInfo: exports.TypeInfo.RunResources
211 },
212 result: {
213 enumType: exports.TypeInfo.RunResult
214 },
215 state: {
216 enumType: exports.TypeInfo.RunState
217 }
218};
219exports.TypeInfo.RunResources.fields = {
220 repositories: {
221 isDictionary: true,
222 dictionaryValueTypeInfo: exports.TypeInfo.RepositoryResource
223 }
224};
225exports.TypeInfo.SignalRConnection.fields = {
226 signedContent: {
227 typeInfo: VSSInterfaces.TypeInfo.SignedUrl
228 }
229};