1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 | "use strict";
|
11 | Object.defineProperty(exports, "__esModule", { value: true });
|
12 | exports.TypeInfo = exports.RunState = exports.RunResult = exports.RepositoryType = exports.GetLogExpandOptions = exports.GetArtifactExpandOptions = exports.ConfigurationType = void 0;
|
13 | const VSSInterfaces = require("../interfaces/common/VSSInterfaces");
|
14 | var ConfigurationType;
|
15 | (function (ConfigurationType) {
|
16 | |
17 |
|
18 |
|
19 | ConfigurationType[ConfigurationType["Unknown"] = 0] = "Unknown";
|
20 | |
21 |
|
22 |
|
23 | ConfigurationType[ConfigurationType["Yaml"] = 1] = "Yaml";
|
24 | |
25 |
|
26 |
|
27 | ConfigurationType[ConfigurationType["DesignerJson"] = 2] = "DesignerJson";
|
28 | |
29 |
|
30 |
|
31 | ConfigurationType[ConfigurationType["JustInTime"] = 3] = "JustInTime";
|
32 | |
33 |
|
34 |
|
35 | ConfigurationType[ConfigurationType["DesignerHyphenJson"] = 2] = "DesignerHyphenJson";
|
36 | })(ConfigurationType = exports.ConfigurationType || (exports.ConfigurationType = {}));
|
37 |
|
38 |
|
39 |
|
40 | var GetArtifactExpandOptions;
|
41 | (function (GetArtifactExpandOptions) {
|
42 | |
43 |
|
44 |
|
45 | GetArtifactExpandOptions[GetArtifactExpandOptions["None"] = 0] = "None";
|
46 | |
47 |
|
48 |
|
49 | GetArtifactExpandOptions[GetArtifactExpandOptions["SignedContent"] = 1] = "SignedContent";
|
50 | })(GetArtifactExpandOptions = exports.GetArtifactExpandOptions || (exports.GetArtifactExpandOptions = {}));
|
51 |
|
52 |
|
53 |
|
54 | var GetLogExpandOptions;
|
55 | (function (GetLogExpandOptions) {
|
56 | GetLogExpandOptions[GetLogExpandOptions["None"] = 0] = "None";
|
57 | GetLogExpandOptions[GetLogExpandOptions["SignedContent"] = 1] = "SignedContent";
|
58 | })(GetLogExpandOptions = exports.GetLogExpandOptions || (exports.GetLogExpandOptions = {}));
|
59 | var 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 |
|
69 |
|
70 | var 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 |
|
79 |
|
80 | var 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 = {}));
|
87 | exports.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 | };
|
147 | exports.TypeInfo.Artifact.fields = {
|
148 | signedContent: {
|
149 | typeInfo: VSSInterfaces.TypeInfo.SignedUrl
|
150 | }
|
151 | };
|
152 | exports.TypeInfo.CreatePipelineConfigurationParameters.fields = {
|
153 | type: {
|
154 | enumType: exports.TypeInfo.ConfigurationType
|
155 | }
|
156 | };
|
157 | exports.TypeInfo.CreatePipelineParameters.fields = {
|
158 | configuration: {
|
159 | typeInfo: exports.TypeInfo.CreatePipelineConfigurationParameters
|
160 | }
|
161 | };
|
162 | exports.TypeInfo.Log.fields = {
|
163 | createdOn: {
|
164 | isDate: true,
|
165 | },
|
166 | lastChangedOn: {
|
167 | isDate: true,
|
168 | },
|
169 | signedContent: {
|
170 | typeInfo: VSSInterfaces.TypeInfo.SignedUrl
|
171 | }
|
172 | };
|
173 | exports.TypeInfo.LogCollection.fields = {
|
174 | logs: {
|
175 | isArray: true,
|
176 | typeInfo: exports.TypeInfo.Log
|
177 | },
|
178 | signedContent: {
|
179 | typeInfo: VSSInterfaces.TypeInfo.SignedUrl
|
180 | }
|
181 | };
|
182 | exports.TypeInfo.Pipeline.fields = {
|
183 | configuration: {
|
184 | typeInfo: exports.TypeInfo.PipelineConfiguration
|
185 | }
|
186 | };
|
187 | exports.TypeInfo.PipelineConfiguration.fields = {
|
188 | type: {
|
189 | enumType: exports.TypeInfo.ConfigurationType
|
190 | }
|
191 | };
|
192 | exports.TypeInfo.Repository.fields = {
|
193 | type: {
|
194 | enumType: exports.TypeInfo.RepositoryType
|
195 | }
|
196 | };
|
197 | exports.TypeInfo.RepositoryResource.fields = {
|
198 | repository: {
|
199 | typeInfo: exports.TypeInfo.Repository
|
200 | }
|
201 | };
|
202 | exports.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 | };
|
219 | exports.TypeInfo.RunResources.fields = {
|
220 | repositories: {
|
221 | isDictionary: true,
|
222 | dictionaryValueTypeInfo: exports.TypeInfo.RepositoryResource
|
223 | }
|
224 | };
|
225 | exports.TypeInfo.SignalRConnection.fields = {
|
226 | signedContent: {
|
227 | typeInfo: VSSInterfaces.TypeInfo.SignedUrl
|
228 | }
|
229 | };
|