bitrise-api-cli 0.0.11 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +37 -35
- package/dist/cli.js +3652 -10
- package/package.json +50 -14
- package/dist/chunk-CF25N4TY.js +0 -6
- package/dist/impl-KCO2VZ2R.js +0 -1696
package/dist/cli.js
CHANGED
|
@@ -1,11 +1,3657 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __esm = (fn, res, err) => function __init() {
|
|
5
|
+
if (err) throw err[0];
|
|
6
|
+
try {
|
|
7
|
+
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
8
|
+
} catch (e) {
|
|
9
|
+
throw err = [e], e;
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
var __export = (target, all) => {
|
|
13
|
+
for (var name2 in all)
|
|
14
|
+
__defProp(target, name2, { get: all[name2], enumerable: true });
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
// src/cliOptions.types.ts
|
|
18
|
+
var validArtifactTypes;
|
|
19
|
+
var init_cliOptions_types = __esm({
|
|
20
|
+
"src/cliOptions.types.ts"() {
|
|
21
|
+
"use strict";
|
|
22
|
+
validArtifactTypes = ["android-apk", "ios-ipa"];
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
// src/bitrise/env.ts
|
|
27
|
+
var ENV, saveOptions, isEnvValid, setupEnv;
|
|
28
|
+
var init_env = __esm({
|
|
29
|
+
"src/bitrise/env.ts"() {
|
|
30
|
+
"use strict";
|
|
31
|
+
init_cliOptions_types();
|
|
32
|
+
ENV = {
|
|
33
|
+
debug: false,
|
|
34
|
+
appSlug: "",
|
|
35
|
+
token: "",
|
|
36
|
+
workflow: "",
|
|
37
|
+
artifactType: "android-apk"
|
|
38
|
+
};
|
|
39
|
+
saveOptions = (options) => {
|
|
40
|
+
ENV.debug = options.debug;
|
|
41
|
+
ENV.appSlug = options.slug;
|
|
42
|
+
ENV.token = options.token;
|
|
43
|
+
ENV.workflow = options.workflow;
|
|
44
|
+
ENV.artifactType = options.artifact;
|
|
45
|
+
};
|
|
46
|
+
isEnvValid = () => {
|
|
47
|
+
if (ENV.appSlug.length < 1) {
|
|
48
|
+
console.log("No app slug provided! (see --help for more information)");
|
|
49
|
+
return false;
|
|
50
|
+
}
|
|
51
|
+
if (ENV.token?.length < 1) {
|
|
52
|
+
console.log("No token provided! (see --help for more information)");
|
|
53
|
+
return false;
|
|
54
|
+
}
|
|
55
|
+
if (ENV.workflow?.length < 1) {
|
|
56
|
+
console.log("No workflow provided! (see --help for more information)");
|
|
57
|
+
return false;
|
|
58
|
+
}
|
|
59
|
+
if (!validArtifactTypes.includes(ENV.artifactType)) {
|
|
60
|
+
console.log(`Invalid artifact type "${ENV.artifactType}"! (see --help for more information)`);
|
|
61
|
+
return false;
|
|
62
|
+
}
|
|
63
|
+
return true;
|
|
64
|
+
};
|
|
65
|
+
setupEnv = (flags) => {
|
|
66
|
+
if (flags.debug) console.log(JSON.stringify(flags, null, 2));
|
|
67
|
+
saveOptions(flags);
|
|
68
|
+
return isEnvValid();
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
// src/device/install/android.ts
|
|
74
|
+
import { $ } from "zx";
|
|
75
|
+
var adbPath, installApk, installSplitApk;
|
|
76
|
+
var init_android = __esm({
|
|
77
|
+
"src/device/install/android.ts"() {
|
|
78
|
+
"use strict";
|
|
79
|
+
adbPath = `${process.env.ANDROID_HOME}/platform-tools/adb`;
|
|
80
|
+
installApk = async (apkPath) => {
|
|
81
|
+
const { duration } = await $`${adbPath} install -r -d ${apkPath}`;
|
|
82
|
+
return { duration };
|
|
83
|
+
};
|
|
84
|
+
installSplitApk = async (apkFolder) => {
|
|
85
|
+
const { duration } = await $`${adbPath} install-multiple -r -d ${apkFolder}/*`;
|
|
86
|
+
return { duration };
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
|
|
91
|
+
// src/helper/formatTime.ts
|
|
92
|
+
var formatTime;
|
|
93
|
+
var init_formatTime = __esm({
|
|
94
|
+
"src/helper/formatTime.ts"() {
|
|
95
|
+
"use strict";
|
|
96
|
+
formatTime = (timeMs) => {
|
|
97
|
+
if (timeMs < 1e3) return `${timeMs}ms`;
|
|
98
|
+
return `${(timeMs / 1e3).toFixed(1)}s`;
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
|
|
103
|
+
// src/helper/typeHelper.ts
|
|
104
|
+
var isFetchError;
|
|
105
|
+
var init_typeHelper = __esm({
|
|
106
|
+
"src/helper/typeHelper.ts"() {
|
|
107
|
+
"use strict";
|
|
108
|
+
isFetchError = (e) => {
|
|
109
|
+
if (typeof e !== "object" || !e) return false;
|
|
110
|
+
return "response" in e && typeof e.response === "object" && !!e.response && "status" in e.response && "statusText" in e.response;
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
|
|
115
|
+
// src/helper/oraHelper.ts
|
|
116
|
+
var getOraTexts;
|
|
117
|
+
var init_oraHelper = __esm({
|
|
118
|
+
"src/helper/oraHelper.ts"() {
|
|
119
|
+
"use strict";
|
|
120
|
+
init_formatTime();
|
|
121
|
+
init_typeHelper();
|
|
122
|
+
getOraTexts = (label) => ({
|
|
123
|
+
text: label,
|
|
124
|
+
failText: (error) => {
|
|
125
|
+
if (isFetchError(error))
|
|
126
|
+
return `${label} failed with HTTP Error ${error.response.status} ${error.response.statusText}`;
|
|
127
|
+
return `${label} failed with error: ${error instanceof Error ? error.message : String(error)}`;
|
|
128
|
+
},
|
|
129
|
+
successText: (data) => {
|
|
130
|
+
if (data && typeof data === "object" && "duration" in data && typeof data.duration === "number") {
|
|
131
|
+
return `${label} [took ${formatTime(data.duration)}]`;
|
|
132
|
+
}
|
|
133
|
+
return label;
|
|
134
|
+
}
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
});
|
|
138
|
+
|
|
139
|
+
// src/helper/tempDir.ts
|
|
140
|
+
import fs from "fs/promises";
|
|
141
|
+
import { tmpdir } from "os";
|
|
142
|
+
import path from "path";
|
|
143
|
+
var createTempDir;
|
|
144
|
+
var init_tempDir = __esm({
|
|
145
|
+
"src/helper/tempDir.ts"() {
|
|
146
|
+
"use strict";
|
|
147
|
+
createTempDir = async (name2, suffix = `${Date.now()}`) => {
|
|
148
|
+
const tmpDir = path.join(tmpdir(), `${name2}-${suffix}`);
|
|
149
|
+
await fs.mkdir(tmpDir, { recursive: true });
|
|
150
|
+
return tmpDir;
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
});
|
|
154
|
+
|
|
155
|
+
// src/helper/tryCatch.ts
|
|
156
|
+
async function tryCatch(promise) {
|
|
157
|
+
try {
|
|
158
|
+
const data = await promise;
|
|
159
|
+
return { data, error: null };
|
|
160
|
+
} catch (error) {
|
|
161
|
+
return { data: null, error };
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
var init_tryCatch = __esm({
|
|
165
|
+
"src/helper/tryCatch.ts"() {
|
|
166
|
+
"use strict";
|
|
167
|
+
}
|
|
168
|
+
});
|
|
169
|
+
|
|
170
|
+
// src/device/install/bundletool.ts
|
|
171
|
+
import fs2 from "fs/promises";
|
|
172
|
+
import path2 from "path";
|
|
173
|
+
import { oraPromise } from "ora";
|
|
174
|
+
import { $ as $2, which } from "zx";
|
|
175
|
+
var getOrInstallBundletool, bundletoolVersion, bundletoolData, getBundletoolTmpJarPath, $$, getBundleToolJar, installBundleTool;
|
|
176
|
+
var init_bundletool = __esm({
|
|
177
|
+
"src/device/install/bundletool.ts"() {
|
|
178
|
+
"use strict";
|
|
179
|
+
init_oraHelper();
|
|
180
|
+
init_tempDir();
|
|
181
|
+
init_tryCatch();
|
|
182
|
+
getOrInstallBundletool = async () => {
|
|
183
|
+
const bundletoolPath = await which("bundletool", { nothrow: true });
|
|
184
|
+
if (bundletoolPath) return { type: "global", path: bundletoolPath };
|
|
185
|
+
const jarInfo = await getBundleToolJar();
|
|
186
|
+
if (jarInfo) return jarInfo;
|
|
187
|
+
return oraPromise(installBundleTool(), getOraTexts("Downloading bundletool"));
|
|
188
|
+
};
|
|
189
|
+
bundletoolVersion = "1.18.1";
|
|
190
|
+
bundletoolData = {
|
|
191
|
+
version: bundletoolVersion,
|
|
192
|
+
filename: `bundletool-all-${bundletoolVersion}.jar`,
|
|
193
|
+
url: `https://github.com/google/bundletool/releases/download/${bundletoolVersion}/bundletool-all-${bundletoolVersion}.jar`
|
|
194
|
+
};
|
|
195
|
+
getBundletoolTmpJarPath = async () => {
|
|
196
|
+
const bundletoolPath = await createTempDir("bitrise-api-cli", "bundletool");
|
|
197
|
+
return path2.join(bundletoolPath, bundletoolData.filename);
|
|
198
|
+
};
|
|
199
|
+
$$ = $2({ quiet: true });
|
|
200
|
+
getBundleToolJar = async () => {
|
|
201
|
+
const jarPath = await getBundletoolTmpJarPath();
|
|
202
|
+
const { error } = await tryCatch(fs2.access(jarPath));
|
|
203
|
+
if (!error) return { type: "jar", path: jarPath };
|
|
204
|
+
return false;
|
|
205
|
+
};
|
|
206
|
+
installBundleTool = async () => {
|
|
207
|
+
const jarPath = await getBundletoolTmpJarPath();
|
|
208
|
+
const { duration } = await $$`curl -L ${bundletoolData.url} -o ${jarPath}`;
|
|
209
|
+
await $2`java -jar ${jarPath} version`;
|
|
210
|
+
return { type: "jar", path: jarPath, duration };
|
|
211
|
+
};
|
|
212
|
+
}
|
|
213
|
+
});
|
|
214
|
+
|
|
215
|
+
// src/device/install/convertAabToApk.ts
|
|
216
|
+
import fs3 from "fs/promises";
|
|
217
|
+
import path3 from "path";
|
|
218
|
+
import { $ as $3 } from "zx";
|
|
219
|
+
var convertAabToApk;
|
|
220
|
+
var init_convertAabToApk = __esm({
|
|
221
|
+
"src/device/install/convertAabToApk.ts"() {
|
|
222
|
+
"use strict";
|
|
223
|
+
init_bundletool();
|
|
224
|
+
init_tempDir();
|
|
225
|
+
convertAabToApk = async (aabPath, flags) => {
|
|
226
|
+
const startTime = Date.now();
|
|
227
|
+
const tempDir = await createTempDir("bitrise-api-cli");
|
|
228
|
+
const fileName = path3.basename(aabPath, ".aab");
|
|
229
|
+
const outPath = path3.join(tempDir, `${fileName}.apks`);
|
|
230
|
+
const zipPath = path3.join(tempDir, `${fileName}.zip`);
|
|
231
|
+
const bundletool = await getOrInstallBundletool();
|
|
232
|
+
if (flags.debug) console.log(`bundletool installation type: ${bundletool.type} in path ${bundletool.path}`);
|
|
233
|
+
if (bundletool.type === "global") {
|
|
234
|
+
await $3`bundletool build-apks --connected-device --bundle=${fileName}.aab --output=${outPath}`;
|
|
235
|
+
} else if (bundletool.type === "jar") {
|
|
236
|
+
await $3`java -jar ${bundletool.path} build-apks --connected-device --bundle=${fileName}.aab --output=${outPath}`;
|
|
237
|
+
}
|
|
238
|
+
await fs3.rename(outPath, zipPath);
|
|
239
|
+
await $3`unzip -o ${zipPath} -d ${tempDir}`;
|
|
240
|
+
return { apkFolder: path3.join(tempDir, "./splits"), duration: Date.now() - startTime };
|
|
241
|
+
};
|
|
242
|
+
}
|
|
243
|
+
});
|
|
244
|
+
|
|
245
|
+
// src/device/install/run.ts
|
|
246
|
+
import { oraPromise as oraPromise2 } from "ora";
|
|
247
|
+
var installApp;
|
|
248
|
+
var init_run = __esm({
|
|
249
|
+
"src/device/install/run.ts"() {
|
|
250
|
+
"use strict";
|
|
251
|
+
init_android();
|
|
252
|
+
init_convertAabToApk();
|
|
253
|
+
init_oraHelper();
|
|
254
|
+
installApp = async ({ file, flags }) => {
|
|
255
|
+
if (flags.artifact === "android-apk" && file.endsWith(".aab")) {
|
|
256
|
+
const { apkFolder } = await oraPromise2(convertAabToApk(file, flags), getOraTexts("Convert AAB to Split APK"));
|
|
257
|
+
await oraPromise2(installSplitApk(apkFolder), getOraTexts("installing Split APK"));
|
|
258
|
+
} else if (flags.artifact === "android-apk" && file.endsWith(".apk")) {
|
|
259
|
+
await oraPromise2(installApk(file), getOraTexts("installing APK"));
|
|
260
|
+
} else if (flags.artifact === "android-apk") {
|
|
261
|
+
throw Error("Artifact is not an APK or AAB file");
|
|
262
|
+
} else {
|
|
263
|
+
return console.log("Installing on iOS is not supported yet");
|
|
264
|
+
}
|
|
265
|
+
};
|
|
266
|
+
}
|
|
267
|
+
});
|
|
268
|
+
|
|
269
|
+
// src/generated_api/runtime.ts
|
|
270
|
+
function isBlob(value) {
|
|
271
|
+
return typeof Blob !== "undefined" && value instanceof Blob;
|
|
272
|
+
}
|
|
273
|
+
function isFormData(value) {
|
|
274
|
+
return typeof FormData !== "undefined" && value instanceof FormData;
|
|
275
|
+
}
|
|
276
|
+
function querystring(params, prefix = "") {
|
|
277
|
+
return Object.keys(params).map((key) => querystringSingleKey(key, params[key], prefix)).filter((part) => part.length > 0).join("&");
|
|
278
|
+
}
|
|
279
|
+
function querystringSingleKey(key, value, keyPrefix = "") {
|
|
280
|
+
const fullKey = keyPrefix + (keyPrefix.length ? `[${key}]` : key);
|
|
281
|
+
if (value instanceof Array) {
|
|
282
|
+
const multiValue = value.map((singleValue) => encodeURIComponent(String(singleValue))).join(`&${encodeURIComponent(fullKey)}=`);
|
|
283
|
+
return `${encodeURIComponent(fullKey)}=${multiValue}`;
|
|
284
|
+
}
|
|
285
|
+
if (value instanceof Set) {
|
|
286
|
+
const valueAsArray = Array.from(value);
|
|
287
|
+
return querystringSingleKey(key, valueAsArray, keyPrefix);
|
|
288
|
+
}
|
|
289
|
+
if (value instanceof Date) {
|
|
290
|
+
return `${encodeURIComponent(fullKey)}=${encodeURIComponent(value.toISOString())}`;
|
|
291
|
+
}
|
|
292
|
+
if (value instanceof Object) {
|
|
293
|
+
return querystring(value, fullKey);
|
|
294
|
+
}
|
|
295
|
+
return `${encodeURIComponent(fullKey)}=${encodeURIComponent(String(value))}`;
|
|
296
|
+
}
|
|
297
|
+
var BASE_PATH, Configuration, DefaultConfig, BaseAPI, ResponseError, FetchError, RequiredError, JSONApiResponse, VoidApiResponse, TextApiResponse;
|
|
298
|
+
var init_runtime = __esm({
|
|
299
|
+
"src/generated_api/runtime.ts"() {
|
|
300
|
+
"use strict";
|
|
301
|
+
BASE_PATH = "https://api.bitrise.io/v0.1".replace(/\/+$/, "");
|
|
302
|
+
Configuration = class {
|
|
303
|
+
constructor(configuration = {}) {
|
|
304
|
+
this.configuration = configuration;
|
|
305
|
+
}
|
|
306
|
+
configuration;
|
|
307
|
+
set config(configuration) {
|
|
308
|
+
this.configuration = configuration;
|
|
309
|
+
}
|
|
310
|
+
get basePath() {
|
|
311
|
+
return this.configuration.basePath != null ? this.configuration.basePath : BASE_PATH;
|
|
312
|
+
}
|
|
313
|
+
get fetchApi() {
|
|
314
|
+
return this.configuration.fetchApi;
|
|
315
|
+
}
|
|
316
|
+
get middleware() {
|
|
317
|
+
return this.configuration.middleware || [];
|
|
318
|
+
}
|
|
319
|
+
get queryParamsStringify() {
|
|
320
|
+
return this.configuration.queryParamsStringify || querystring;
|
|
321
|
+
}
|
|
322
|
+
get username() {
|
|
323
|
+
return this.configuration.username;
|
|
324
|
+
}
|
|
325
|
+
get password() {
|
|
326
|
+
return this.configuration.password;
|
|
327
|
+
}
|
|
328
|
+
get apiKey() {
|
|
329
|
+
const apiKey = this.configuration.apiKey;
|
|
330
|
+
if (apiKey) {
|
|
331
|
+
return typeof apiKey === "function" ? apiKey : () => apiKey;
|
|
332
|
+
}
|
|
333
|
+
return void 0;
|
|
334
|
+
}
|
|
335
|
+
get accessToken() {
|
|
336
|
+
const accessToken = this.configuration.accessToken;
|
|
337
|
+
if (accessToken) {
|
|
338
|
+
return typeof accessToken === "function" ? accessToken : async () => accessToken;
|
|
339
|
+
}
|
|
340
|
+
return void 0;
|
|
341
|
+
}
|
|
342
|
+
get headers() {
|
|
343
|
+
return this.configuration.headers;
|
|
344
|
+
}
|
|
345
|
+
get credentials() {
|
|
346
|
+
return this.configuration.credentials;
|
|
347
|
+
}
|
|
348
|
+
};
|
|
349
|
+
DefaultConfig = new Configuration();
|
|
350
|
+
BaseAPI = class _BaseAPI {
|
|
351
|
+
constructor(configuration = DefaultConfig) {
|
|
352
|
+
this.configuration = configuration;
|
|
353
|
+
this.middleware = configuration.middleware;
|
|
354
|
+
}
|
|
355
|
+
configuration;
|
|
356
|
+
static jsonRegex = new RegExp("^(:?application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(:?;.*)?$", "i");
|
|
357
|
+
middleware;
|
|
358
|
+
withMiddleware(...middlewares) {
|
|
359
|
+
const next = this.clone();
|
|
360
|
+
next.middleware = next.middleware.concat(...middlewares);
|
|
361
|
+
return next;
|
|
362
|
+
}
|
|
363
|
+
withPreMiddleware(...preMiddlewares) {
|
|
364
|
+
const middlewares = preMiddlewares.map((pre) => ({ pre }));
|
|
365
|
+
return this.withMiddleware(...middlewares);
|
|
366
|
+
}
|
|
367
|
+
withPostMiddleware(...postMiddlewares) {
|
|
368
|
+
const middlewares = postMiddlewares.map((post) => ({ post }));
|
|
369
|
+
return this.withMiddleware(...middlewares);
|
|
370
|
+
}
|
|
371
|
+
/**
|
|
372
|
+
* Check if the given MIME is a JSON MIME.
|
|
373
|
+
* JSON MIME examples:
|
|
374
|
+
* application/json
|
|
375
|
+
* application/json; charset=UTF8
|
|
376
|
+
* APPLICATION/JSON
|
|
377
|
+
* application/vnd.company+json
|
|
378
|
+
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
379
|
+
* @return True if the given MIME is JSON, false otherwise.
|
|
380
|
+
*/
|
|
381
|
+
isJsonMime(mime) {
|
|
382
|
+
if (!mime) {
|
|
383
|
+
return false;
|
|
384
|
+
}
|
|
385
|
+
return _BaseAPI.jsonRegex.test(mime);
|
|
386
|
+
}
|
|
387
|
+
async request(context, initOverrides) {
|
|
388
|
+
const { url, init } = await this.createFetchParams(context, initOverrides);
|
|
389
|
+
const response = await this.fetchApi(url, init);
|
|
390
|
+
if (response && (response.status >= 200 && response.status < 300)) {
|
|
391
|
+
return response;
|
|
392
|
+
}
|
|
393
|
+
throw new ResponseError(response, "Response returned an error code");
|
|
394
|
+
}
|
|
395
|
+
async createFetchParams(context, initOverrides) {
|
|
396
|
+
let url = this.configuration.basePath + context.path;
|
|
397
|
+
if (context.query !== void 0 && Object.keys(context.query).length !== 0) {
|
|
398
|
+
url += "?" + this.configuration.queryParamsStringify(context.query);
|
|
399
|
+
}
|
|
400
|
+
const headers = Object.assign({}, this.configuration.headers, context.headers);
|
|
401
|
+
Object.keys(headers).forEach((key) => headers[key] === void 0 ? delete headers[key] : {});
|
|
402
|
+
const initOverrideFn = typeof initOverrides === "function" ? initOverrides : async () => initOverrides;
|
|
403
|
+
const initParams = {
|
|
404
|
+
method: context.method,
|
|
405
|
+
headers,
|
|
406
|
+
body: context.body,
|
|
407
|
+
credentials: this.configuration.credentials
|
|
408
|
+
};
|
|
409
|
+
const overriddenInit = {
|
|
410
|
+
...initParams,
|
|
411
|
+
...await initOverrideFn({
|
|
412
|
+
init: initParams,
|
|
413
|
+
context
|
|
414
|
+
})
|
|
415
|
+
};
|
|
416
|
+
let body;
|
|
417
|
+
if (isFormData(overriddenInit.body) || overriddenInit.body instanceof URLSearchParams || isBlob(overriddenInit.body)) {
|
|
418
|
+
body = overriddenInit.body;
|
|
419
|
+
} else if (this.isJsonMime(headers["Content-Type"])) {
|
|
420
|
+
body = JSON.stringify(overriddenInit.body);
|
|
421
|
+
} else {
|
|
422
|
+
body = overriddenInit.body;
|
|
423
|
+
}
|
|
424
|
+
const init = {
|
|
425
|
+
...overriddenInit,
|
|
426
|
+
body
|
|
427
|
+
};
|
|
428
|
+
return { url, init };
|
|
429
|
+
}
|
|
430
|
+
fetchApi = async (url, init) => {
|
|
431
|
+
let fetchParams = { url, init };
|
|
432
|
+
for (const middleware of this.middleware) {
|
|
433
|
+
if (middleware.pre) {
|
|
434
|
+
fetchParams = await middleware.pre({
|
|
435
|
+
fetch: this.fetchApi,
|
|
436
|
+
...fetchParams
|
|
437
|
+
}) || fetchParams;
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
let response = void 0;
|
|
441
|
+
try {
|
|
442
|
+
response = await (this.configuration.fetchApi || fetch)(fetchParams.url, fetchParams.init);
|
|
443
|
+
} catch (e) {
|
|
444
|
+
for (const middleware of this.middleware) {
|
|
445
|
+
if (middleware.onError) {
|
|
446
|
+
response = await middleware.onError({
|
|
447
|
+
fetch: this.fetchApi,
|
|
448
|
+
url: fetchParams.url,
|
|
449
|
+
init: fetchParams.init,
|
|
450
|
+
error: e,
|
|
451
|
+
response: response ? response.clone() : void 0
|
|
452
|
+
}) || response;
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
if (response === void 0) {
|
|
456
|
+
if (e instanceof Error) {
|
|
457
|
+
throw new FetchError(e, "The request failed and the interceptors did not return an alternative response");
|
|
458
|
+
} else {
|
|
459
|
+
throw e;
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
for (const middleware of this.middleware) {
|
|
464
|
+
if (middleware.post) {
|
|
465
|
+
response = await middleware.post({
|
|
466
|
+
fetch: this.fetchApi,
|
|
467
|
+
url: fetchParams.url,
|
|
468
|
+
init: fetchParams.init,
|
|
469
|
+
response: response.clone()
|
|
470
|
+
}) || response;
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
return response;
|
|
474
|
+
};
|
|
475
|
+
/**
|
|
476
|
+
* Create a shallow clone of `this` by constructing a new instance
|
|
477
|
+
* and then shallow cloning data members.
|
|
478
|
+
*/
|
|
479
|
+
clone() {
|
|
480
|
+
const constructor = this.constructor;
|
|
481
|
+
const next = new constructor(this.configuration);
|
|
482
|
+
next.middleware = this.middleware.slice();
|
|
483
|
+
return next;
|
|
484
|
+
}
|
|
485
|
+
};
|
|
486
|
+
ResponseError = class extends Error {
|
|
487
|
+
constructor(response, msg) {
|
|
488
|
+
super(msg);
|
|
489
|
+
this.response = response;
|
|
490
|
+
}
|
|
491
|
+
response;
|
|
492
|
+
name = "ResponseError";
|
|
493
|
+
};
|
|
494
|
+
FetchError = class extends Error {
|
|
495
|
+
constructor(cause, msg) {
|
|
496
|
+
super(msg);
|
|
497
|
+
this.cause = cause;
|
|
498
|
+
}
|
|
499
|
+
cause;
|
|
500
|
+
name = "FetchError";
|
|
501
|
+
};
|
|
502
|
+
RequiredError = class extends Error {
|
|
503
|
+
constructor(field, msg) {
|
|
504
|
+
super(msg);
|
|
505
|
+
this.field = field;
|
|
506
|
+
}
|
|
507
|
+
field;
|
|
508
|
+
name = "RequiredError";
|
|
509
|
+
};
|
|
510
|
+
JSONApiResponse = class {
|
|
511
|
+
constructor(raw, transformer = (jsonValue) => jsonValue) {
|
|
512
|
+
this.raw = raw;
|
|
513
|
+
this.transformer = transformer;
|
|
514
|
+
}
|
|
515
|
+
raw;
|
|
516
|
+
transformer;
|
|
517
|
+
async value() {
|
|
518
|
+
return this.transformer(await this.raw.json());
|
|
519
|
+
}
|
|
520
|
+
};
|
|
521
|
+
VoidApiResponse = class {
|
|
522
|
+
constructor(raw) {
|
|
523
|
+
this.raw = raw;
|
|
524
|
+
}
|
|
525
|
+
raw;
|
|
526
|
+
async value() {
|
|
527
|
+
return void 0;
|
|
528
|
+
}
|
|
529
|
+
};
|
|
530
|
+
TextApiResponse = class {
|
|
531
|
+
constructor(raw) {
|
|
532
|
+
this.raw = raw;
|
|
533
|
+
}
|
|
534
|
+
raw;
|
|
535
|
+
async value() {
|
|
536
|
+
return await this.raw.text();
|
|
537
|
+
}
|
|
538
|
+
};
|
|
539
|
+
}
|
|
540
|
+
});
|
|
541
|
+
|
|
542
|
+
// src/generated_api/models/AddonsSetupInstruction.ts
|
|
543
|
+
var init_AddonsSetupInstruction = __esm({
|
|
544
|
+
"src/generated_api/models/AddonsSetupInstruction.ts"() {
|
|
545
|
+
"use strict";
|
|
546
|
+
init_runtime();
|
|
547
|
+
}
|
|
548
|
+
});
|
|
549
|
+
|
|
550
|
+
// src/generated_api/models/AddonsSetupGuide.ts
|
|
551
|
+
var init_AddonsSetupGuide = __esm({
|
|
552
|
+
"src/generated_api/models/AddonsSetupGuide.ts"() {
|
|
553
|
+
"use strict";
|
|
554
|
+
init_runtime();
|
|
555
|
+
init_AddonsSetupInstruction();
|
|
556
|
+
}
|
|
557
|
+
});
|
|
558
|
+
|
|
559
|
+
// src/generated_api/models/AddonsFeature.ts
|
|
560
|
+
var init_AddonsFeature = __esm({
|
|
561
|
+
"src/generated_api/models/AddonsFeature.ts"() {
|
|
562
|
+
"use strict";
|
|
563
|
+
init_runtime();
|
|
564
|
+
}
|
|
565
|
+
});
|
|
566
|
+
|
|
567
|
+
// src/generated_api/models/AddonsPlan.ts
|
|
568
|
+
var init_AddonsPlan = __esm({
|
|
569
|
+
"src/generated_api/models/AddonsPlan.ts"() {
|
|
570
|
+
"use strict";
|
|
571
|
+
init_runtime();
|
|
572
|
+
init_AddonsFeature();
|
|
573
|
+
}
|
|
574
|
+
});
|
|
575
|
+
|
|
576
|
+
// src/generated_api/models/AddonsDeveloperLink.ts
|
|
577
|
+
var init_AddonsDeveloperLink = __esm({
|
|
578
|
+
"src/generated_api/models/AddonsDeveloperLink.ts"() {
|
|
579
|
+
"use strict";
|
|
580
|
+
init_runtime();
|
|
581
|
+
}
|
|
582
|
+
});
|
|
583
|
+
|
|
584
|
+
// src/generated_api/models/AddonsAddon.ts
|
|
585
|
+
var init_AddonsAddon = __esm({
|
|
586
|
+
"src/generated_api/models/AddonsAddon.ts"() {
|
|
587
|
+
"use strict";
|
|
588
|
+
init_runtime();
|
|
589
|
+
init_AddonsSetupGuide();
|
|
590
|
+
init_AddonsPlan();
|
|
591
|
+
init_AddonsDeveloperLink();
|
|
592
|
+
}
|
|
593
|
+
});
|
|
594
|
+
|
|
595
|
+
// src/generated_api/models/AppRolesQuery200Response.ts
|
|
596
|
+
var init_AppRolesQuery200Response = __esm({
|
|
597
|
+
"src/generated_api/models/AppRolesQuery200Response.ts"() {
|
|
598
|
+
"use strict";
|
|
599
|
+
init_runtime();
|
|
600
|
+
}
|
|
601
|
+
});
|
|
602
|
+
|
|
603
|
+
// src/generated_api/models/AppSecretCreateRequest.ts
|
|
604
|
+
var init_AppSecretCreateRequest = __esm({
|
|
605
|
+
"src/generated_api/models/AppSecretCreateRequest.ts"() {
|
|
606
|
+
"use strict";
|
|
607
|
+
init_runtime();
|
|
608
|
+
}
|
|
609
|
+
});
|
|
610
|
+
|
|
611
|
+
// src/generated_api/models/AppSecretUpdateRequest.ts
|
|
612
|
+
var init_AppSecretUpdateRequest = __esm({
|
|
613
|
+
"src/generated_api/models/AppSecretUpdateRequest.ts"() {
|
|
614
|
+
"use strict";
|
|
615
|
+
init_runtime();
|
|
616
|
+
}
|
|
617
|
+
});
|
|
618
|
+
|
|
619
|
+
// src/generated_api/models/AppSecretsShow200Response.ts
|
|
620
|
+
var init_AppSecretsShow200Response = __esm({
|
|
621
|
+
"src/generated_api/models/AppSecretsShow200Response.ts"() {
|
|
622
|
+
"use strict";
|
|
623
|
+
init_runtime();
|
|
624
|
+
}
|
|
625
|
+
});
|
|
626
|
+
|
|
627
|
+
// src/generated_api/models/GroupMemberAddRequest.ts
|
|
628
|
+
var init_GroupMemberAddRequest = __esm({
|
|
629
|
+
"src/generated_api/models/GroupMemberAddRequest.ts"() {
|
|
630
|
+
"use strict";
|
|
631
|
+
init_runtime();
|
|
632
|
+
}
|
|
633
|
+
});
|
|
634
|
+
|
|
635
|
+
// src/generated_api/models/MemberAddRequest.ts
|
|
636
|
+
var init_MemberAddRequest = __esm({
|
|
637
|
+
"src/generated_api/models/MemberAddRequest.ts"() {
|
|
638
|
+
"use strict";
|
|
639
|
+
init_runtime();
|
|
640
|
+
}
|
|
641
|
+
});
|
|
642
|
+
|
|
643
|
+
// src/generated_api/models/OrganizationGroupAddRequest.ts
|
|
644
|
+
var init_OrganizationGroupAddRequest = __esm({
|
|
645
|
+
"src/generated_api/models/OrganizationGroupAddRequest.ts"() {
|
|
646
|
+
"use strict";
|
|
647
|
+
init_runtime();
|
|
648
|
+
}
|
|
649
|
+
});
|
|
650
|
+
|
|
651
|
+
// src/generated_api/models/OrganizationSecretCreateRequest.ts
|
|
652
|
+
var init_OrganizationSecretCreateRequest = __esm({
|
|
653
|
+
"src/generated_api/models/OrganizationSecretCreateRequest.ts"() {
|
|
654
|
+
"use strict";
|
|
655
|
+
init_runtime();
|
|
656
|
+
}
|
|
657
|
+
});
|
|
658
|
+
|
|
659
|
+
// src/generated_api/models/PipelineabledomainArtifactMeta.ts
|
|
660
|
+
var init_PipelineabledomainArtifactMeta = __esm({
|
|
661
|
+
"src/generated_api/models/PipelineabledomainArtifactMeta.ts"() {
|
|
662
|
+
"use strict";
|
|
663
|
+
init_runtime();
|
|
664
|
+
}
|
|
665
|
+
});
|
|
666
|
+
|
|
667
|
+
// src/generated_api/models/PipelineabledomainBuildToolInvocation.ts
|
|
668
|
+
var init_PipelineabledomainBuildToolInvocation = __esm({
|
|
669
|
+
"src/generated_api/models/PipelineabledomainBuildToolInvocation.ts"() {
|
|
670
|
+
"use strict";
|
|
671
|
+
init_runtime();
|
|
672
|
+
}
|
|
673
|
+
});
|
|
674
|
+
|
|
675
|
+
// src/generated_api/models/PipelineabledomainEnvironments.ts
|
|
676
|
+
var init_PipelineabledomainEnvironments = __esm({
|
|
677
|
+
"src/generated_api/models/PipelineabledomainEnvironments.ts"() {
|
|
678
|
+
"use strict";
|
|
679
|
+
init_runtime();
|
|
680
|
+
}
|
|
681
|
+
});
|
|
682
|
+
|
|
683
|
+
// src/generated_api/models/PipelineabledomainLocalConfig.ts
|
|
684
|
+
var init_PipelineabledomainLocalConfig = __esm({
|
|
685
|
+
"src/generated_api/models/PipelineabledomainLocalConfig.ts"() {
|
|
686
|
+
"use strict";
|
|
687
|
+
init_runtime();
|
|
688
|
+
}
|
|
689
|
+
});
|
|
690
|
+
|
|
691
|
+
// src/generated_api/models/PipelineabledomainTriggerParams.ts
|
|
692
|
+
var init_PipelineabledomainTriggerParams = __esm({
|
|
693
|
+
"src/generated_api/models/PipelineabledomainTriggerParams.ts"() {
|
|
694
|
+
"use strict";
|
|
695
|
+
init_runtime();
|
|
696
|
+
init_PipelineabledomainEnvironments();
|
|
697
|
+
}
|
|
698
|
+
});
|
|
699
|
+
|
|
700
|
+
// src/generated_api/models/ServiceDtoCreatedSecretNoValue.ts
|
|
701
|
+
var init_ServiceDtoCreatedSecretNoValue = __esm({
|
|
702
|
+
"src/generated_api/models/ServiceDtoCreatedSecretNoValue.ts"() {
|
|
703
|
+
"use strict";
|
|
704
|
+
init_runtime();
|
|
705
|
+
}
|
|
706
|
+
});
|
|
707
|
+
|
|
708
|
+
// src/generated_api/models/SecretList200Response.ts
|
|
709
|
+
var init_SecretList200Response = __esm({
|
|
710
|
+
"src/generated_api/models/SecretList200Response.ts"() {
|
|
711
|
+
"use strict";
|
|
712
|
+
init_runtime();
|
|
713
|
+
init_ServiceDtoCreatedSecretNoValue();
|
|
714
|
+
}
|
|
715
|
+
});
|
|
716
|
+
|
|
717
|
+
// src/generated_api/models/SecretUpsertRequest.ts
|
|
718
|
+
var init_SecretUpsertRequest = __esm({
|
|
719
|
+
"src/generated_api/models/SecretUpsertRequest.ts"() {
|
|
720
|
+
"use strict";
|
|
721
|
+
init_runtime();
|
|
722
|
+
}
|
|
723
|
+
});
|
|
724
|
+
|
|
725
|
+
// src/generated_api/models/SecretValueGet200Response.ts
|
|
726
|
+
var init_SecretValueGet200Response = __esm({
|
|
727
|
+
"src/generated_api/models/SecretValueGet200Response.ts"() {
|
|
728
|
+
"use strict";
|
|
729
|
+
init_runtime();
|
|
730
|
+
}
|
|
731
|
+
});
|
|
732
|
+
|
|
733
|
+
// src/generated_api/models/ServiceDtoGroup.ts
|
|
734
|
+
var init_ServiceDtoGroup = __esm({
|
|
735
|
+
"src/generated_api/models/ServiceDtoGroup.ts"() {
|
|
736
|
+
"use strict";
|
|
737
|
+
init_runtime();
|
|
738
|
+
}
|
|
739
|
+
});
|
|
740
|
+
|
|
741
|
+
// src/generated_api/models/ServiceDtoMember.ts
|
|
742
|
+
var init_ServiceDtoMember = __esm({
|
|
743
|
+
"src/generated_api/models/ServiceDtoMember.ts"() {
|
|
744
|
+
"use strict";
|
|
745
|
+
init_runtime();
|
|
746
|
+
}
|
|
747
|
+
});
|
|
748
|
+
|
|
749
|
+
// src/generated_api/models/ServiceProxyErrorRespModel.ts
|
|
750
|
+
var init_ServiceProxyErrorRespModel = __esm({
|
|
751
|
+
"src/generated_api/models/ServiceProxyErrorRespModel.ts"() {
|
|
752
|
+
"use strict";
|
|
753
|
+
init_runtime();
|
|
754
|
+
}
|
|
755
|
+
});
|
|
756
|
+
|
|
757
|
+
// src/generated_api/models/ServiceStandardErrorRespModel.ts
|
|
758
|
+
var init_ServiceStandardErrorRespModel = __esm({
|
|
759
|
+
"src/generated_api/models/ServiceStandardErrorRespModel.ts"() {
|
|
760
|
+
"use strict";
|
|
761
|
+
init_runtime();
|
|
762
|
+
}
|
|
763
|
+
});
|
|
764
|
+
|
|
765
|
+
// src/generated_api/models/V0PagingResponseModel.ts
|
|
766
|
+
function V0PagingResponseModelFromJSON(json) {
|
|
767
|
+
return V0PagingResponseModelFromJSONTyped(json, false);
|
|
768
|
+
}
|
|
769
|
+
function V0PagingResponseModelFromJSONTyped(json, ignoreDiscriminator) {
|
|
770
|
+
if (json == null) {
|
|
771
|
+
return json;
|
|
772
|
+
}
|
|
773
|
+
return {
|
|
774
|
+
"next": json["next"] == null ? void 0 : json["next"],
|
|
775
|
+
"pageItemLimit": json["page_item_limit"] == null ? void 0 : json["page_item_limit"],
|
|
776
|
+
"totalItemCount": json["total_item_count"] == null ? void 0 : json["total_item_count"]
|
|
777
|
+
};
|
|
778
|
+
}
|
|
779
|
+
var init_V0PagingResponseModel = __esm({
|
|
780
|
+
"src/generated_api/models/V0PagingResponseModel.ts"() {
|
|
781
|
+
"use strict";
|
|
782
|
+
init_runtime();
|
|
783
|
+
}
|
|
784
|
+
});
|
|
785
|
+
|
|
786
|
+
// src/generated_api/models/V0ActivityEventResponseItemModel.ts
|
|
787
|
+
var init_V0ActivityEventResponseItemModel = __esm({
|
|
788
|
+
"src/generated_api/models/V0ActivityEventResponseItemModel.ts"() {
|
|
789
|
+
"use strict";
|
|
790
|
+
init_runtime();
|
|
791
|
+
}
|
|
792
|
+
});
|
|
793
|
+
|
|
794
|
+
// src/generated_api/models/V0ActivityEventListResponseModel.ts
|
|
795
|
+
var init_V0ActivityEventListResponseModel = __esm({
|
|
796
|
+
"src/generated_api/models/V0ActivityEventListResponseModel.ts"() {
|
|
797
|
+
"use strict";
|
|
798
|
+
init_runtime();
|
|
799
|
+
init_V0PagingResponseModel();
|
|
800
|
+
init_V0ActivityEventResponseItemModel();
|
|
801
|
+
}
|
|
802
|
+
});
|
|
803
|
+
|
|
804
|
+
// src/generated_api/models/V0AddOnAppResponseItemModel.ts
|
|
805
|
+
var init_V0AddOnAppResponseItemModel = __esm({
|
|
806
|
+
"src/generated_api/models/V0AddOnAppResponseItemModel.ts"() {
|
|
807
|
+
"use strict";
|
|
808
|
+
init_runtime();
|
|
809
|
+
init_AddonsPlan();
|
|
810
|
+
}
|
|
811
|
+
});
|
|
812
|
+
|
|
813
|
+
// src/generated_api/models/V0AddonsListResponseModel.ts
|
|
814
|
+
var init_V0AddonsListResponseModel = __esm({
|
|
815
|
+
"src/generated_api/models/V0AddonsListResponseModel.ts"() {
|
|
816
|
+
"use strict";
|
|
817
|
+
init_runtime();
|
|
818
|
+
init_AddonsAddon();
|
|
819
|
+
}
|
|
820
|
+
});
|
|
821
|
+
|
|
822
|
+
// src/generated_api/models/V0AddonsShowResponseModel.ts
|
|
823
|
+
var init_V0AddonsShowResponseModel = __esm({
|
|
824
|
+
"src/generated_api/models/V0AddonsShowResponseModel.ts"() {
|
|
825
|
+
"use strict";
|
|
826
|
+
init_runtime();
|
|
827
|
+
init_AddonsAddon();
|
|
828
|
+
}
|
|
829
|
+
});
|
|
830
|
+
|
|
831
|
+
// src/generated_api/models/V0AndroidKeystoreFileUploadParams.ts
|
|
832
|
+
var init_V0AndroidKeystoreFileUploadParams = __esm({
|
|
833
|
+
"src/generated_api/models/V0AndroidKeystoreFileUploadParams.ts"() {
|
|
834
|
+
"use strict";
|
|
835
|
+
init_runtime();
|
|
836
|
+
}
|
|
837
|
+
});
|
|
838
|
+
|
|
839
|
+
// src/generated_api/models/V0AppAddOnResponseItemModel.ts
|
|
840
|
+
var init_V0AppAddOnResponseItemModel = __esm({
|
|
841
|
+
"src/generated_api/models/V0AppAddOnResponseItemModel.ts"() {
|
|
842
|
+
"use strict";
|
|
843
|
+
init_runtime();
|
|
844
|
+
init_AddonsSetupGuide();
|
|
845
|
+
init_AddonsPlan();
|
|
846
|
+
}
|
|
847
|
+
});
|
|
848
|
+
|
|
849
|
+
// src/generated_api/models/V0AppAddOnsListResponseModel.ts
|
|
850
|
+
var init_V0AppAddOnsListResponseModel = __esm({
|
|
851
|
+
"src/generated_api/models/V0AppAddOnsListResponseModel.ts"() {
|
|
852
|
+
"use strict";
|
|
853
|
+
init_runtime();
|
|
854
|
+
init_V0AppAddOnResponseItemModel();
|
|
855
|
+
}
|
|
856
|
+
});
|
|
857
|
+
|
|
858
|
+
// src/generated_api/models/V0AppConfigRequestParam.ts
|
|
859
|
+
var init_V0AppConfigRequestParam = __esm({
|
|
860
|
+
"src/generated_api/models/V0AppConfigRequestParam.ts"() {
|
|
861
|
+
"use strict";
|
|
862
|
+
init_runtime();
|
|
863
|
+
}
|
|
864
|
+
});
|
|
865
|
+
|
|
866
|
+
// src/generated_api/models/V0AppDeleteRespModel.ts
|
|
867
|
+
var init_V0AppDeleteRespModel = __esm({
|
|
868
|
+
"src/generated_api/models/V0AppDeleteRespModel.ts"() {
|
|
869
|
+
"use strict";
|
|
870
|
+
init_runtime();
|
|
871
|
+
}
|
|
872
|
+
});
|
|
873
|
+
|
|
874
|
+
// src/generated_api/models/V0AppFinishParams.ts
|
|
875
|
+
var init_V0AppFinishParams = __esm({
|
|
876
|
+
"src/generated_api/models/V0AppFinishParams.ts"() {
|
|
877
|
+
"use strict";
|
|
878
|
+
init_runtime();
|
|
879
|
+
}
|
|
880
|
+
});
|
|
881
|
+
|
|
882
|
+
// src/generated_api/models/V0AppFinishRespModel.ts
|
|
883
|
+
var init_V0AppFinishRespModel = __esm({
|
|
884
|
+
"src/generated_api/models/V0AppFinishRespModel.ts"() {
|
|
885
|
+
"use strict";
|
|
886
|
+
init_runtime();
|
|
887
|
+
}
|
|
888
|
+
});
|
|
889
|
+
|
|
890
|
+
// src/generated_api/models/V0OwnerAccountResponseModel.ts
|
|
891
|
+
function V0OwnerAccountResponseModelFromJSON(json) {
|
|
892
|
+
return V0OwnerAccountResponseModelFromJSONTyped(json, false);
|
|
893
|
+
}
|
|
894
|
+
function V0OwnerAccountResponseModelFromJSONTyped(json, ignoreDiscriminator) {
|
|
895
|
+
if (json == null) {
|
|
896
|
+
return json;
|
|
897
|
+
}
|
|
898
|
+
return {
|
|
899
|
+
"accountType": json["account_type"] == null ? void 0 : json["account_type"],
|
|
900
|
+
"name": json["name"] == null ? void 0 : json["name"],
|
|
901
|
+
"slug": json["slug"] == null ? void 0 : json["slug"]
|
|
902
|
+
};
|
|
903
|
+
}
|
|
904
|
+
var init_V0OwnerAccountResponseModel = __esm({
|
|
905
|
+
"src/generated_api/models/V0OwnerAccountResponseModel.ts"() {
|
|
906
|
+
"use strict";
|
|
907
|
+
init_runtime();
|
|
908
|
+
}
|
|
909
|
+
});
|
|
910
|
+
|
|
911
|
+
// src/generated_api/models/V0AppResponseItemModel.ts
|
|
912
|
+
function V0AppResponseItemModelFromJSON(json) {
|
|
913
|
+
return V0AppResponseItemModelFromJSONTyped(json, false);
|
|
914
|
+
}
|
|
915
|
+
function V0AppResponseItemModelFromJSONTyped(json, ignoreDiscriminator) {
|
|
916
|
+
if (json == null) {
|
|
917
|
+
return json;
|
|
918
|
+
}
|
|
919
|
+
return {
|
|
920
|
+
"avatarUrl": json["avatar_url"] == null ? void 0 : json["avatar_url"],
|
|
921
|
+
"isDisabled": json["is_disabled"] == null ? void 0 : json["is_disabled"],
|
|
922
|
+
"isGithubChecksEnabled": json["is_github_checks_enabled"] == null ? void 0 : json["is_github_checks_enabled"],
|
|
923
|
+
"isPublic": json["is_public"] == null ? void 0 : json["is_public"],
|
|
924
|
+
"owner": json["owner"] == null ? void 0 : V0OwnerAccountResponseModelFromJSON(json["owner"]),
|
|
925
|
+
"projectId": json["project_id"] == null ? void 0 : json["project_id"],
|
|
926
|
+
"projectType": json["project_type"] == null ? void 0 : json["project_type"],
|
|
927
|
+
"provider": json["provider"] == null ? void 0 : json["provider"],
|
|
928
|
+
"repoOwner": json["repo_owner"] == null ? void 0 : json["repo_owner"],
|
|
929
|
+
"repoSlug": json["repo_slug"] == null ? void 0 : json["repo_slug"],
|
|
930
|
+
"repoUrl": json["repo_url"] == null ? void 0 : json["repo_url"],
|
|
931
|
+
"slug": json["slug"] == null ? void 0 : json["slug"],
|
|
932
|
+
"status": json["status"] == null ? void 0 : json["status"],
|
|
933
|
+
"title": json["title"] == null ? void 0 : json["title"]
|
|
934
|
+
};
|
|
935
|
+
}
|
|
936
|
+
var init_V0AppResponseItemModel = __esm({
|
|
937
|
+
"src/generated_api/models/V0AppResponseItemModel.ts"() {
|
|
938
|
+
"use strict";
|
|
939
|
+
init_runtime();
|
|
940
|
+
init_V0OwnerAccountResponseModel();
|
|
941
|
+
}
|
|
942
|
+
});
|
|
943
|
+
|
|
944
|
+
// src/generated_api/models/V0AppListResponseModel.ts
|
|
945
|
+
var init_V0AppListResponseModel = __esm({
|
|
946
|
+
"src/generated_api/models/V0AppListResponseModel.ts"() {
|
|
947
|
+
"use strict";
|
|
948
|
+
init_runtime();
|
|
949
|
+
init_V0PagingResponseModel();
|
|
950
|
+
init_V0AppResponseItemModel();
|
|
951
|
+
}
|
|
952
|
+
});
|
|
953
|
+
|
|
954
|
+
// src/generated_api/models/V0AppNotificationSettingsParams.ts
|
|
955
|
+
var init_V0AppNotificationSettingsParams = __esm({
|
|
956
|
+
"src/generated_api/models/V0AppNotificationSettingsParams.ts"() {
|
|
957
|
+
"use strict";
|
|
958
|
+
init_runtime();
|
|
959
|
+
}
|
|
960
|
+
});
|
|
961
|
+
|
|
962
|
+
// src/generated_api/models/V0AppNotificationSettingsUpdateResponse.ts
|
|
963
|
+
var init_V0AppNotificationSettingsUpdateResponse = __esm({
|
|
964
|
+
"src/generated_api/models/V0AppNotificationSettingsUpdateResponse.ts"() {
|
|
965
|
+
"use strict";
|
|
966
|
+
init_runtime();
|
|
967
|
+
}
|
|
968
|
+
});
|
|
969
|
+
|
|
970
|
+
// src/generated_api/models/V0AppRespModel.ts
|
|
971
|
+
var init_V0AppRespModel = __esm({
|
|
972
|
+
"src/generated_api/models/V0AppRespModel.ts"() {
|
|
973
|
+
"use strict";
|
|
974
|
+
init_runtime();
|
|
975
|
+
}
|
|
976
|
+
});
|
|
977
|
+
|
|
978
|
+
// src/generated_api/models/V0AppShowResponseModel.ts
|
|
979
|
+
var init_V0AppShowResponseModel = __esm({
|
|
980
|
+
"src/generated_api/models/V0AppShowResponseModel.ts"() {
|
|
981
|
+
"use strict";
|
|
982
|
+
init_runtime();
|
|
983
|
+
init_V0AppResponseItemModel();
|
|
984
|
+
}
|
|
985
|
+
});
|
|
986
|
+
|
|
987
|
+
// src/generated_api/models/V0AppUpdateParams.ts
|
|
988
|
+
var init_V0AppUpdateParams = __esm({
|
|
989
|
+
"src/generated_api/models/V0AppUpdateParams.ts"() {
|
|
990
|
+
"use strict";
|
|
991
|
+
init_runtime();
|
|
992
|
+
}
|
|
993
|
+
});
|
|
994
|
+
|
|
995
|
+
// src/generated_api/models/V0AppUpdateRespModel.ts
|
|
996
|
+
var init_V0AppUpdateRespModel = __esm({
|
|
997
|
+
"src/generated_api/models/V0AppUpdateRespModel.ts"() {
|
|
998
|
+
"use strict";
|
|
999
|
+
init_runtime();
|
|
1000
|
+
}
|
|
1001
|
+
});
|
|
1002
|
+
|
|
1003
|
+
// src/generated_api/models/V0AppUploadParams.ts
|
|
1004
|
+
var init_V0AppUploadParams = __esm({
|
|
1005
|
+
"src/generated_api/models/V0AppUploadParams.ts"() {
|
|
1006
|
+
"use strict";
|
|
1007
|
+
init_runtime();
|
|
1008
|
+
}
|
|
1009
|
+
});
|
|
1010
|
+
|
|
1011
|
+
// src/generated_api/models/V0AppWebhookCreateParams.ts
|
|
1012
|
+
var init_V0AppWebhookCreateParams = __esm({
|
|
1013
|
+
"src/generated_api/models/V0AppWebhookCreateParams.ts"() {
|
|
1014
|
+
"use strict";
|
|
1015
|
+
init_runtime();
|
|
1016
|
+
}
|
|
1017
|
+
});
|
|
1018
|
+
|
|
1019
|
+
// src/generated_api/models/V0AppWebhookResponseItemModel.ts
|
|
1020
|
+
var init_V0AppWebhookResponseItemModel = __esm({
|
|
1021
|
+
"src/generated_api/models/V0AppWebhookResponseItemModel.ts"() {
|
|
1022
|
+
"use strict";
|
|
1023
|
+
init_runtime();
|
|
1024
|
+
}
|
|
1025
|
+
});
|
|
1026
|
+
|
|
1027
|
+
// src/generated_api/models/V0AppWebhookCreatedResponseModel.ts
|
|
1028
|
+
var init_V0AppWebhookCreatedResponseModel = __esm({
|
|
1029
|
+
"src/generated_api/models/V0AppWebhookCreatedResponseModel.ts"() {
|
|
1030
|
+
"use strict";
|
|
1031
|
+
init_runtime();
|
|
1032
|
+
init_V0AppWebhookResponseItemModel();
|
|
1033
|
+
}
|
|
1034
|
+
});
|
|
1035
|
+
|
|
1036
|
+
// src/generated_api/models/V0AppWebhookDeletedResponseModel.ts
|
|
1037
|
+
var init_V0AppWebhookDeletedResponseModel = __esm({
|
|
1038
|
+
"src/generated_api/models/V0AppWebhookDeletedResponseModel.ts"() {
|
|
1039
|
+
"use strict";
|
|
1040
|
+
init_runtime();
|
|
1041
|
+
init_V0AppWebhookResponseItemModel();
|
|
1042
|
+
}
|
|
1043
|
+
});
|
|
1044
|
+
|
|
1045
|
+
// src/generated_api/models/V0AppWebhookListResponseModel.ts
|
|
1046
|
+
var init_V0AppWebhookListResponseModel = __esm({
|
|
1047
|
+
"src/generated_api/models/V0AppWebhookListResponseModel.ts"() {
|
|
1048
|
+
"use strict";
|
|
1049
|
+
init_runtime();
|
|
1050
|
+
init_V0PagingResponseModel();
|
|
1051
|
+
init_V0AppWebhookResponseItemModel();
|
|
1052
|
+
}
|
|
1053
|
+
});
|
|
1054
|
+
|
|
1055
|
+
// src/generated_api/models/V0AppWebhookResponseModel.ts
|
|
1056
|
+
var init_V0AppWebhookResponseModel = __esm({
|
|
1057
|
+
"src/generated_api/models/V0AppWebhookResponseModel.ts"() {
|
|
1058
|
+
"use strict";
|
|
1059
|
+
init_runtime();
|
|
1060
|
+
init_V0AppWebhookResponseItemModel();
|
|
1061
|
+
}
|
|
1062
|
+
});
|
|
1063
|
+
|
|
1064
|
+
// src/generated_api/models/V0AppWebhookUpdateParams.ts
|
|
1065
|
+
var init_V0AppWebhookUpdateParams = __esm({
|
|
1066
|
+
"src/generated_api/models/V0AppWebhookUpdateParams.ts"() {
|
|
1067
|
+
"use strict";
|
|
1068
|
+
init_runtime();
|
|
1069
|
+
}
|
|
1070
|
+
});
|
|
1071
|
+
|
|
1072
|
+
// src/generated_api/models/V0AppleAPICredentialResponseItem.ts
|
|
1073
|
+
var init_V0AppleAPICredentialResponseItem = __esm({
|
|
1074
|
+
"src/generated_api/models/V0AppleAPICredentialResponseItem.ts"() {
|
|
1075
|
+
"use strict";
|
|
1076
|
+
init_runtime();
|
|
1077
|
+
}
|
|
1078
|
+
});
|
|
1079
|
+
|
|
1080
|
+
// src/generated_api/models/V0AppleAPICredentialsListResponse.ts
|
|
1081
|
+
var init_V0AppleAPICredentialsListResponse = __esm({
|
|
1082
|
+
"src/generated_api/models/V0AppleAPICredentialsListResponse.ts"() {
|
|
1083
|
+
"use strict";
|
|
1084
|
+
init_runtime();
|
|
1085
|
+
init_V0AppleAPICredentialResponseItem();
|
|
1086
|
+
}
|
|
1087
|
+
});
|
|
1088
|
+
|
|
1089
|
+
// src/generated_api/models/V0ArchivedBuildArtifact.ts
|
|
1090
|
+
function V0ArchivedBuildArtifactFromJSON(json) {
|
|
1091
|
+
return V0ArchivedBuildArtifactFromJSONTyped(json, false);
|
|
1092
|
+
}
|
|
1093
|
+
function V0ArchivedBuildArtifactFromJSONTyped(json, ignoreDiscriminator) {
|
|
1094
|
+
if (json == null) {
|
|
1095
|
+
return json;
|
|
1096
|
+
}
|
|
1097
|
+
return {
|
|
1098
|
+
"artifactMeta": json["artifact_meta"] == null ? void 0 : json["artifact_meta"],
|
|
1099
|
+
"artifactType": json["artifact_type"] == null ? void 0 : json["artifact_type"],
|
|
1100
|
+
"createdAt": json["created_at"] == null ? void 0 : json["created_at"],
|
|
1101
|
+
"fileSizeBytes": json["file_size_bytes"] == null ? void 0 : json["file_size_bytes"],
|
|
1102
|
+
"id": json["id"] == null ? void 0 : json["id"],
|
|
1103
|
+
"isPublicPageEnabled": json["is_public_page_enabled"] == null ? void 0 : json["is_public_page_enabled"],
|
|
1104
|
+
"publicPageToken": json["public_page_token"] == null ? void 0 : json["public_page_token"],
|
|
1105
|
+
"title": json["title"] == null ? void 0 : json["title"]
|
|
1106
|
+
};
|
|
1107
|
+
}
|
|
1108
|
+
var init_V0ArchivedBuildArtifact = __esm({
|
|
1109
|
+
"src/generated_api/models/V0ArchivedBuildArtifact.ts"() {
|
|
1110
|
+
"use strict";
|
|
1111
|
+
init_runtime();
|
|
1112
|
+
}
|
|
1113
|
+
});
|
|
1114
|
+
|
|
1115
|
+
// src/generated_api/models/V0ArchivedBuildResponseItemModel.ts
|
|
1116
|
+
function V0ArchivedBuildResponseItemModelFromJSON(json) {
|
|
1117
|
+
return V0ArchivedBuildResponseItemModelFromJSONTyped(json, false);
|
|
1118
|
+
}
|
|
1119
|
+
function V0ArchivedBuildResponseItemModelFromJSONTyped(json, ignoreDiscriminator) {
|
|
1120
|
+
if (json == null) {
|
|
1121
|
+
return json;
|
|
1122
|
+
}
|
|
1123
|
+
return {
|
|
1124
|
+
"abortReason": json["abort_reason"] == null ? void 0 : json["abort_reason"],
|
|
1125
|
+
"branch": json["branch"] == null ? void 0 : json["branch"],
|
|
1126
|
+
"buildArtifacts": json["build_artifacts"] == null ? void 0 : json["build_artifacts"].map(V0ArchivedBuildArtifactFromJSON),
|
|
1127
|
+
"buildNumber": json["build_number"] == null ? void 0 : json["build_number"],
|
|
1128
|
+
"commitHash": json["commit_hash"] == null ? void 0 : json["commit_hash"],
|
|
1129
|
+
"commitMessage": json["commit_message"] == null ? void 0 : json["commit_message"],
|
|
1130
|
+
"creditCost": json["credit_cost"] == null ? void 0 : json["credit_cost"],
|
|
1131
|
+
"finishedAt": json["finished_at"] == null ? void 0 : json["finished_at"],
|
|
1132
|
+
"machineTypeId": json["machine_type_id"] == null ? void 0 : json["machine_type_id"],
|
|
1133
|
+
"originalBuildParams": json["original_build_params"] == null ? void 0 : json["original_build_params"],
|
|
1134
|
+
"pipelineWorkflowId": json["pipeline_workflow_id"] == null ? void 0 : json["pipeline_workflow_id"],
|
|
1135
|
+
"pullRequestId": json["pull_request_id"] == null ? void 0 : json["pull_request_id"],
|
|
1136
|
+
"pullRequestTargetBranch": json["pull_request_target_branch"] == null ? void 0 : json["pull_request_target_branch"],
|
|
1137
|
+
"pullRequestViewUrl": json["pull_request_view_url"] == null ? void 0 : json["pull_request_view_url"],
|
|
1138
|
+
"slug": json["slug"] == null ? void 0 : json["slug"],
|
|
1139
|
+
"stackIdentifier": json["stack_identifier"] == null ? void 0 : json["stack_identifier"],
|
|
1140
|
+
"startedOnWorkerAt": json["started_on_worker_at"] == null ? void 0 : json["started_on_worker_at"],
|
|
1141
|
+
"status": json["status"] == null ? void 0 : json["status"],
|
|
1142
|
+
"statusText": json["status_text"] == null ? void 0 : json["status_text"],
|
|
1143
|
+
"tag": json["tag"] == null ? void 0 : json["tag"],
|
|
1144
|
+
"triggeredBy": json["triggered_by"] == null ? void 0 : json["triggered_by"],
|
|
1145
|
+
"triggeredWorkflow": json["triggered_workflow"] == null ? void 0 : json["triggered_workflow"]
|
|
1146
|
+
};
|
|
1147
|
+
}
|
|
1148
|
+
var init_V0ArchivedBuildResponseItemModel = __esm({
|
|
1149
|
+
"src/generated_api/models/V0ArchivedBuildResponseItemModel.ts"() {
|
|
1150
|
+
"use strict";
|
|
1151
|
+
init_runtime();
|
|
1152
|
+
init_V0ArchivedBuildArtifact();
|
|
1153
|
+
}
|
|
1154
|
+
});
|
|
1155
|
+
|
|
1156
|
+
// src/generated_api/models/V0ArchivedBuildListResponseModel.ts
|
|
1157
|
+
function V0ArchivedBuildListResponseModelFromJSON(json) {
|
|
1158
|
+
return V0ArchivedBuildListResponseModelFromJSONTyped(json, false);
|
|
1159
|
+
}
|
|
1160
|
+
function V0ArchivedBuildListResponseModelFromJSONTyped(json, ignoreDiscriminator) {
|
|
1161
|
+
if (json == null) {
|
|
1162
|
+
return json;
|
|
1163
|
+
}
|
|
1164
|
+
return {
|
|
1165
|
+
"data": json["data"] == null ? void 0 : json["data"].map(V0ArchivedBuildResponseItemModelFromJSON),
|
|
1166
|
+
"paging": json["paging"] == null ? void 0 : V0PagingResponseModelFromJSON(json["paging"])
|
|
1167
|
+
};
|
|
1168
|
+
}
|
|
1169
|
+
var init_V0ArchivedBuildListResponseModel = __esm({
|
|
1170
|
+
"src/generated_api/models/V0ArchivedBuildListResponseModel.ts"() {
|
|
1171
|
+
"use strict";
|
|
1172
|
+
init_runtime();
|
|
1173
|
+
init_V0PagingResponseModel();
|
|
1174
|
+
init_V0ArchivedBuildResponseItemModel();
|
|
1175
|
+
}
|
|
1176
|
+
});
|
|
1177
|
+
|
|
1178
|
+
// src/generated_api/models/V0ArtifactResponseItemModel.ts
|
|
1179
|
+
function V0ArtifactResponseItemModelFromJSON(json) {
|
|
1180
|
+
return V0ArtifactResponseItemModelFromJSONTyped(json, false);
|
|
1181
|
+
}
|
|
1182
|
+
function V0ArtifactResponseItemModelFromJSONTyped(json, ignoreDiscriminator) {
|
|
1183
|
+
if (json == null) {
|
|
1184
|
+
return json;
|
|
1185
|
+
}
|
|
1186
|
+
return {
|
|
1187
|
+
"artifactMeta": json["artifact_meta"] == null ? void 0 : json["artifact_meta"],
|
|
1188
|
+
"artifactType": json["artifact_type"] == null ? void 0 : json["artifact_type"],
|
|
1189
|
+
"expiringDownloadUrl": json["expiring_download_url"] == null ? void 0 : json["expiring_download_url"],
|
|
1190
|
+
"fileSizeBytes": json["file_size_bytes"] == null ? void 0 : json["file_size_bytes"],
|
|
1191
|
+
"intermediateFileInfo": json["intermediate_file_info"] == null ? void 0 : json["intermediate_file_info"],
|
|
1192
|
+
"isPublicPageEnabled": json["is_public_page_enabled"] == null ? void 0 : json["is_public_page_enabled"],
|
|
1193
|
+
"publicInstallPageUrl": json["public_install_page_url"] == null ? void 0 : json["public_install_page_url"],
|
|
1194
|
+
"slug": json["slug"] == null ? void 0 : json["slug"],
|
|
1195
|
+
"title": json["title"] == null ? void 0 : json["title"]
|
|
1196
|
+
};
|
|
1197
|
+
}
|
|
1198
|
+
var init_V0ArtifactResponseItemModel = __esm({
|
|
1199
|
+
"src/generated_api/models/V0ArtifactResponseItemModel.ts"() {
|
|
1200
|
+
"use strict";
|
|
1201
|
+
init_runtime();
|
|
1202
|
+
}
|
|
1203
|
+
});
|
|
1204
|
+
|
|
1205
|
+
// src/generated_api/models/V0ArtifactDeleteResponseModel.ts
|
|
1206
|
+
function V0ArtifactDeleteResponseModelFromJSON(json) {
|
|
1207
|
+
return V0ArtifactDeleteResponseModelFromJSONTyped(json, false);
|
|
1208
|
+
}
|
|
1209
|
+
function V0ArtifactDeleteResponseModelFromJSONTyped(json, ignoreDiscriminator) {
|
|
1210
|
+
if (json == null) {
|
|
1211
|
+
return json;
|
|
1212
|
+
}
|
|
1213
|
+
return {
|
|
1214
|
+
"data": json["data"] == null ? void 0 : V0ArtifactResponseItemModelFromJSON(json["data"])
|
|
1215
|
+
};
|
|
1216
|
+
}
|
|
1217
|
+
var init_V0ArtifactDeleteResponseModel = __esm({
|
|
1218
|
+
"src/generated_api/models/V0ArtifactDeleteResponseModel.ts"() {
|
|
1219
|
+
"use strict";
|
|
1220
|
+
init_runtime();
|
|
1221
|
+
init_V0ArtifactResponseItemModel();
|
|
1222
|
+
}
|
|
1223
|
+
});
|
|
1224
|
+
|
|
1225
|
+
// src/generated_api/models/V0ArtifactListElementResponseModel.ts
|
|
1226
|
+
function V0ArtifactListElementResponseModelFromJSON(json) {
|
|
1227
|
+
return V0ArtifactListElementResponseModelFromJSONTyped(json, false);
|
|
1228
|
+
}
|
|
1229
|
+
function V0ArtifactListElementResponseModelFromJSONTyped(json, ignoreDiscriminator) {
|
|
1230
|
+
if (json == null) {
|
|
1231
|
+
return json;
|
|
1232
|
+
}
|
|
1233
|
+
return {
|
|
1234
|
+
"artifactMeta": json["artifact_meta"] == null ? void 0 : json["artifact_meta"],
|
|
1235
|
+
"artifactType": json["artifact_type"] == null ? void 0 : json["artifact_type"],
|
|
1236
|
+
"fileSizeBytes": json["file_size_bytes"] == null ? void 0 : json["file_size_bytes"],
|
|
1237
|
+
"intermediateFileInfo": json["intermediate_file_info"] == null ? void 0 : json["intermediate_file_info"],
|
|
1238
|
+
"isPublicPageEnabled": json["is_public_page_enabled"] == null ? void 0 : json["is_public_page_enabled"],
|
|
1239
|
+
"slug": json["slug"] == null ? void 0 : json["slug"],
|
|
1240
|
+
"title": json["title"] == null ? void 0 : json["title"]
|
|
1241
|
+
};
|
|
1242
|
+
}
|
|
1243
|
+
var init_V0ArtifactListElementResponseModel = __esm({
|
|
1244
|
+
"src/generated_api/models/V0ArtifactListElementResponseModel.ts"() {
|
|
1245
|
+
"use strict";
|
|
1246
|
+
init_runtime();
|
|
1247
|
+
}
|
|
1248
|
+
});
|
|
1249
|
+
|
|
1250
|
+
// src/generated_api/models/V0ArtifactListResponseModel.ts
|
|
1251
|
+
function V0ArtifactListResponseModelFromJSON(json) {
|
|
1252
|
+
return V0ArtifactListResponseModelFromJSONTyped(json, false);
|
|
1253
|
+
}
|
|
1254
|
+
function V0ArtifactListResponseModelFromJSONTyped(json, ignoreDiscriminator) {
|
|
1255
|
+
if (json == null) {
|
|
1256
|
+
return json;
|
|
1257
|
+
}
|
|
1258
|
+
return {
|
|
1259
|
+
"data": json["data"] == null ? void 0 : json["data"].map(V0ArtifactListElementResponseModelFromJSON),
|
|
1260
|
+
"paging": json["paging"] == null ? void 0 : V0PagingResponseModelFromJSON(json["paging"])
|
|
1261
|
+
};
|
|
1262
|
+
}
|
|
1263
|
+
var init_V0ArtifactListResponseModel = __esm({
|
|
1264
|
+
"src/generated_api/models/V0ArtifactListResponseModel.ts"() {
|
|
1265
|
+
"use strict";
|
|
1266
|
+
init_runtime();
|
|
1267
|
+
init_V0PagingResponseModel();
|
|
1268
|
+
init_V0ArtifactListElementResponseModel();
|
|
1269
|
+
}
|
|
1270
|
+
});
|
|
1271
|
+
|
|
1272
|
+
// src/generated_api/models/V0ArtifactShowResponseModel.ts
|
|
1273
|
+
function V0ArtifactShowResponseModelFromJSON(json) {
|
|
1274
|
+
return V0ArtifactShowResponseModelFromJSONTyped(json, false);
|
|
1275
|
+
}
|
|
1276
|
+
function V0ArtifactShowResponseModelFromJSONTyped(json, ignoreDiscriminator) {
|
|
1277
|
+
if (json == null) {
|
|
1278
|
+
return json;
|
|
1279
|
+
}
|
|
1280
|
+
return {
|
|
1281
|
+
"data": json["data"] == null ? void 0 : V0ArtifactResponseItemModelFromJSON(json["data"])
|
|
1282
|
+
};
|
|
1283
|
+
}
|
|
1284
|
+
var init_V0ArtifactShowResponseModel = __esm({
|
|
1285
|
+
"src/generated_api/models/V0ArtifactShowResponseModel.ts"() {
|
|
1286
|
+
"use strict";
|
|
1287
|
+
init_runtime();
|
|
1288
|
+
init_V0ArtifactResponseItemModel();
|
|
1289
|
+
}
|
|
1290
|
+
});
|
|
1291
|
+
|
|
1292
|
+
// src/generated_api/models/V0ArtifactUpdateParams.ts
|
|
1293
|
+
function V0ArtifactUpdateParamsToJSON(json) {
|
|
1294
|
+
return V0ArtifactUpdateParamsToJSONTyped(json, false);
|
|
1295
|
+
}
|
|
1296
|
+
function V0ArtifactUpdateParamsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1297
|
+
if (value == null) {
|
|
1298
|
+
return value;
|
|
1299
|
+
}
|
|
1300
|
+
return {
|
|
1301
|
+
"is_public_page_enabled": value["isPublicPageEnabled"]
|
|
1302
|
+
};
|
|
1303
|
+
}
|
|
1304
|
+
var init_V0ArtifactUpdateParams = __esm({
|
|
1305
|
+
"src/generated_api/models/V0ArtifactUpdateParams.ts"() {
|
|
1306
|
+
"use strict";
|
|
1307
|
+
init_runtime();
|
|
1308
|
+
}
|
|
1309
|
+
});
|
|
1310
|
+
|
|
1311
|
+
// src/generated_api/models/WebsiteBitriseYMLLocation.ts
|
|
1312
|
+
var init_WebsiteBitriseYMLLocation = __esm({
|
|
1313
|
+
"src/generated_api/models/WebsiteBitriseYMLLocation.ts"() {
|
|
1314
|
+
"use strict";
|
|
1315
|
+
}
|
|
1316
|
+
});
|
|
1317
|
+
|
|
1318
|
+
// src/generated_api/models/V0BitriseYMLConfigGetResponse.ts
|
|
1319
|
+
var init_V0BitriseYMLConfigGetResponse = __esm({
|
|
1320
|
+
"src/generated_api/models/V0BitriseYMLConfigGetResponse.ts"() {
|
|
1321
|
+
"use strict";
|
|
1322
|
+
init_runtime();
|
|
1323
|
+
init_WebsiteBitriseYMLLocation();
|
|
1324
|
+
}
|
|
1325
|
+
});
|
|
1326
|
+
|
|
1327
|
+
// src/generated_api/models/V0BitriseYMLConfigUpdateParams.ts
|
|
1328
|
+
var init_V0BitriseYMLConfigUpdateParams = __esm({
|
|
1329
|
+
"src/generated_api/models/V0BitriseYMLConfigUpdateParams.ts"() {
|
|
1330
|
+
"use strict";
|
|
1331
|
+
init_runtime();
|
|
1332
|
+
init_WebsiteBitriseYMLLocation();
|
|
1333
|
+
}
|
|
1334
|
+
});
|
|
1335
|
+
|
|
1336
|
+
// src/generated_api/models/V0BranchListResponseModel.ts
|
|
1337
|
+
var init_V0BranchListResponseModel = __esm({
|
|
1338
|
+
"src/generated_api/models/V0BranchListResponseModel.ts"() {
|
|
1339
|
+
"use strict";
|
|
1340
|
+
init_runtime();
|
|
1341
|
+
}
|
|
1342
|
+
});
|
|
1343
|
+
|
|
1344
|
+
// src/generated_api/models/V0BuildAbortParams.ts
|
|
1345
|
+
function V0BuildAbortParamsToJSON(json) {
|
|
1346
|
+
return V0BuildAbortParamsToJSONTyped(json, false);
|
|
1347
|
+
}
|
|
1348
|
+
function V0BuildAbortParamsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1349
|
+
if (value == null) {
|
|
1350
|
+
return value;
|
|
1351
|
+
}
|
|
1352
|
+
return {
|
|
1353
|
+
"abort_reason": value["abortReason"],
|
|
1354
|
+
"abort_with_success": value["abortWithSuccess"],
|
|
1355
|
+
"skip_notifications": value["skipNotifications"]
|
|
1356
|
+
};
|
|
1357
|
+
}
|
|
1358
|
+
var init_V0BuildAbortParams = __esm({
|
|
1359
|
+
"src/generated_api/models/V0BuildAbortParams.ts"() {
|
|
1360
|
+
"use strict";
|
|
1361
|
+
init_runtime();
|
|
1362
|
+
}
|
|
1363
|
+
});
|
|
1364
|
+
|
|
1365
|
+
// src/generated_api/models/V0BuildAbortResponseModel.ts
|
|
1366
|
+
function V0BuildAbortResponseModelFromJSON(json) {
|
|
1367
|
+
return V0BuildAbortResponseModelFromJSONTyped(json, false);
|
|
1368
|
+
}
|
|
1369
|
+
function V0BuildAbortResponseModelFromJSONTyped(json, ignoreDiscriminator) {
|
|
1370
|
+
if (json == null) {
|
|
1371
|
+
return json;
|
|
1372
|
+
}
|
|
1373
|
+
return {
|
|
1374
|
+
"status": json["status"] == null ? void 0 : json["status"]
|
|
1375
|
+
};
|
|
1376
|
+
}
|
|
1377
|
+
var init_V0BuildAbortResponseModel = __esm({
|
|
1378
|
+
"src/generated_api/models/V0BuildAbortResponseModel.ts"() {
|
|
1379
|
+
"use strict";
|
|
1380
|
+
init_runtime();
|
|
1381
|
+
}
|
|
1382
|
+
});
|
|
1383
|
+
|
|
1384
|
+
// src/generated_api/models/V0BuildCertificateDownloadResponseItemModel.ts
|
|
1385
|
+
var init_V0BuildCertificateDownloadResponseItemModel = __esm({
|
|
1386
|
+
"src/generated_api/models/V0BuildCertificateDownloadResponseItemModel.ts"() {
|
|
1387
|
+
"use strict";
|
|
1388
|
+
init_runtime();
|
|
1389
|
+
}
|
|
1390
|
+
});
|
|
1391
|
+
|
|
1392
|
+
// src/generated_api/models/V0BuildCertificateDownloadResponseModel.ts
|
|
1393
|
+
var init_V0BuildCertificateDownloadResponseModel = __esm({
|
|
1394
|
+
"src/generated_api/models/V0BuildCertificateDownloadResponseModel.ts"() {
|
|
1395
|
+
"use strict";
|
|
1396
|
+
init_runtime();
|
|
1397
|
+
init_V0BuildCertificateDownloadResponseItemModel();
|
|
1398
|
+
}
|
|
1399
|
+
});
|
|
1400
|
+
|
|
1401
|
+
// src/generated_api/models/V0BuildCertificateResponseItemModel.ts
|
|
1402
|
+
var init_V0BuildCertificateResponseItemModel = __esm({
|
|
1403
|
+
"src/generated_api/models/V0BuildCertificateResponseItemModel.ts"() {
|
|
1404
|
+
"use strict";
|
|
1405
|
+
init_runtime();
|
|
1406
|
+
}
|
|
1407
|
+
});
|
|
1408
|
+
|
|
1409
|
+
// src/generated_api/models/V0BuildCertificateListResponseModel.ts
|
|
1410
|
+
var init_V0BuildCertificateListResponseModel = __esm({
|
|
1411
|
+
"src/generated_api/models/V0BuildCertificateListResponseModel.ts"() {
|
|
1412
|
+
"use strict";
|
|
1413
|
+
init_runtime();
|
|
1414
|
+
init_V0PagingResponseModel();
|
|
1415
|
+
init_V0BuildCertificateResponseItemModel();
|
|
1416
|
+
}
|
|
1417
|
+
});
|
|
1418
|
+
|
|
1419
|
+
// src/generated_api/models/V0BuildCertificateResponseModel.ts
|
|
1420
|
+
var init_V0BuildCertificateResponseModel = __esm({
|
|
1421
|
+
"src/generated_api/models/V0BuildCertificateResponseModel.ts"() {
|
|
1422
|
+
"use strict";
|
|
1423
|
+
init_runtime();
|
|
1424
|
+
init_V0BuildCertificateResponseItemModel();
|
|
1425
|
+
}
|
|
1426
|
+
});
|
|
1427
|
+
|
|
1428
|
+
// src/generated_api/models/V0BuildCertificateUpdateParams.ts
|
|
1429
|
+
var init_V0BuildCertificateUpdateParams = __esm({
|
|
1430
|
+
"src/generated_api/models/V0BuildCertificateUpdateParams.ts"() {
|
|
1431
|
+
"use strict";
|
|
1432
|
+
init_runtime();
|
|
1433
|
+
}
|
|
1434
|
+
});
|
|
1435
|
+
|
|
1436
|
+
// src/generated_api/models/V0BuildCertificateUploadParams.ts
|
|
1437
|
+
var init_V0BuildCertificateUploadParams = __esm({
|
|
1438
|
+
"src/generated_api/models/V0BuildCertificateUploadParams.ts"() {
|
|
1439
|
+
"use strict";
|
|
1440
|
+
init_runtime();
|
|
1441
|
+
}
|
|
1442
|
+
});
|
|
1443
|
+
|
|
1444
|
+
// src/generated_api/models/V0BuildCertificateUploadResponseItemModel.ts
|
|
1445
|
+
var init_V0BuildCertificateUploadResponseItemModel = __esm({
|
|
1446
|
+
"src/generated_api/models/V0BuildCertificateUploadResponseItemModel.ts"() {
|
|
1447
|
+
"use strict";
|
|
1448
|
+
init_runtime();
|
|
1449
|
+
}
|
|
1450
|
+
});
|
|
1451
|
+
|
|
1452
|
+
// src/generated_api/models/V0BuildCertificateUploadResponseModel.ts
|
|
1453
|
+
var init_V0BuildCertificateUploadResponseModel = __esm({
|
|
1454
|
+
"src/generated_api/models/V0BuildCertificateUploadResponseModel.ts"() {
|
|
1455
|
+
"use strict";
|
|
1456
|
+
init_runtime();
|
|
1457
|
+
init_V0BuildCertificateUploadResponseItemModel();
|
|
1458
|
+
}
|
|
1459
|
+
});
|
|
1460
|
+
|
|
1461
|
+
// src/generated_api/models/V0BuildListAllResponseItemModel.ts
|
|
1462
|
+
function V0BuildListAllResponseItemModelFromJSON(json) {
|
|
1463
|
+
return V0BuildListAllResponseItemModelFromJSONTyped(json, false);
|
|
1464
|
+
}
|
|
1465
|
+
function V0BuildListAllResponseItemModelFromJSONTyped(json, ignoreDiscriminator) {
|
|
1466
|
+
if (json == null) {
|
|
1467
|
+
return json;
|
|
1468
|
+
}
|
|
1469
|
+
return {
|
|
1470
|
+
"abortReason": json["abort_reason"] == null ? void 0 : json["abort_reason"],
|
|
1471
|
+
"branch": json["branch"] == null ? void 0 : json["branch"],
|
|
1472
|
+
"buildNumber": json["build_number"] == null ? void 0 : json["build_number"],
|
|
1473
|
+
"commitHash": json["commit_hash"] == null ? void 0 : json["commit_hash"],
|
|
1474
|
+
"commitMessage": json["commit_message"] == null ? void 0 : json["commit_message"],
|
|
1475
|
+
"commitViewUrl": json["commit_view_url"] == null ? void 0 : json["commit_view_url"],
|
|
1476
|
+
"creditCost": json["credit_cost"] == null ? void 0 : json["credit_cost"],
|
|
1477
|
+
"environmentPrepareFinishedAt": json["environment_prepare_finished_at"] == null ? void 0 : json["environment_prepare_finished_at"],
|
|
1478
|
+
"finishedAt": json["finished_at"] == null ? void 0 : json["finished_at"],
|
|
1479
|
+
"isOnHold": json["is_on_hold"] == null ? void 0 : json["is_on_hold"],
|
|
1480
|
+
"isProcessed": json["is_processed"] == null ? void 0 : json["is_processed"],
|
|
1481
|
+
"machineTypeId": json["machine_type_id"] == null ? void 0 : json["machine_type_id"],
|
|
1482
|
+
"originalBuildParams": json["original_build_params"] == null ? void 0 : json["original_build_params"],
|
|
1483
|
+
"pullRequestId": json["pull_request_id"] == null ? void 0 : json["pull_request_id"],
|
|
1484
|
+
"pullRequestTargetBranch": json["pull_request_target_branch"] == null ? void 0 : json["pull_request_target_branch"],
|
|
1485
|
+
"pullRequestViewUrl": json["pull_request_view_url"] == null ? void 0 : json["pull_request_view_url"],
|
|
1486
|
+
"repository": json["repository"] == null ? void 0 : V0AppResponseItemModelFromJSON(json["repository"]),
|
|
1487
|
+
"slug": json["slug"] == null ? void 0 : json["slug"],
|
|
1488
|
+
"stackIdentifier": json["stack_identifier"] == null ? void 0 : json["stack_identifier"],
|
|
1489
|
+
"startedOnWorkerAt": json["started_on_worker_at"] == null ? void 0 : json["started_on_worker_at"],
|
|
1490
|
+
"status": json["status"] == null ? void 0 : json["status"],
|
|
1491
|
+
"statusText": json["status_text"] == null ? void 0 : json["status_text"],
|
|
1492
|
+
"tag": json["tag"] == null ? void 0 : json["tag"],
|
|
1493
|
+
"triggeredAt": json["triggered_at"] == null ? void 0 : json["triggered_at"],
|
|
1494
|
+
"triggeredBy": json["triggered_by"] == null ? void 0 : json["triggered_by"],
|
|
1495
|
+
"triggeredWorkflow": json["triggered_workflow"] == null ? void 0 : json["triggered_workflow"]
|
|
1496
|
+
};
|
|
1497
|
+
}
|
|
1498
|
+
var init_V0BuildListAllResponseItemModel = __esm({
|
|
1499
|
+
"src/generated_api/models/V0BuildListAllResponseItemModel.ts"() {
|
|
1500
|
+
"use strict";
|
|
1501
|
+
init_runtime();
|
|
1502
|
+
init_V0AppResponseItemModel();
|
|
1503
|
+
}
|
|
1504
|
+
});
|
|
1505
|
+
|
|
1506
|
+
// src/generated_api/models/V0BuildListAllResponseModel.ts
|
|
1507
|
+
function V0BuildListAllResponseModelFromJSON(json) {
|
|
1508
|
+
return V0BuildListAllResponseModelFromJSONTyped(json, false);
|
|
1509
|
+
}
|
|
1510
|
+
function V0BuildListAllResponseModelFromJSONTyped(json, ignoreDiscriminator) {
|
|
1511
|
+
if (json == null) {
|
|
1512
|
+
return json;
|
|
1513
|
+
}
|
|
1514
|
+
return {
|
|
1515
|
+
"data": json["data"] == null ? void 0 : json["data"].map(V0BuildListAllResponseItemModelFromJSON),
|
|
1516
|
+
"paging": json["paging"] == null ? void 0 : V0PagingResponseModelFromJSON(json["paging"])
|
|
1517
|
+
};
|
|
1518
|
+
}
|
|
1519
|
+
var init_V0BuildListAllResponseModel = __esm({
|
|
1520
|
+
"src/generated_api/models/V0BuildListAllResponseModel.ts"() {
|
|
1521
|
+
"use strict";
|
|
1522
|
+
init_runtime();
|
|
1523
|
+
init_V0PagingResponseModel();
|
|
1524
|
+
init_V0BuildListAllResponseItemModel();
|
|
1525
|
+
}
|
|
1526
|
+
});
|
|
1527
|
+
|
|
1528
|
+
// src/generated_api/models/V0BuildResponseItemModel.ts
|
|
1529
|
+
function V0BuildResponseItemModelFromJSON(json) {
|
|
1530
|
+
return V0BuildResponseItemModelFromJSONTyped(json, false);
|
|
1531
|
+
}
|
|
1532
|
+
function V0BuildResponseItemModelFromJSONTyped(json, ignoreDiscriminator) {
|
|
1533
|
+
if (json == null) {
|
|
1534
|
+
return json;
|
|
1535
|
+
}
|
|
1536
|
+
return {
|
|
1537
|
+
"abortReason": json["abort_reason"] == null ? void 0 : json["abort_reason"],
|
|
1538
|
+
"branch": json["branch"] == null ? void 0 : json["branch"],
|
|
1539
|
+
"buildNumber": json["build_number"] == null ? void 0 : json["build_number"],
|
|
1540
|
+
"commitHash": json["commit_hash"] == null ? void 0 : json["commit_hash"],
|
|
1541
|
+
"commitMessage": json["commit_message"] == null ? void 0 : json["commit_message"],
|
|
1542
|
+
"commitViewUrl": json["commit_view_url"] == null ? void 0 : json["commit_view_url"],
|
|
1543
|
+
"creditCost": json["credit_cost"] == null ? void 0 : json["credit_cost"],
|
|
1544
|
+
"environmentPrepareFinishedAt": json["environment_prepare_finished_at"] == null ? void 0 : json["environment_prepare_finished_at"],
|
|
1545
|
+
"finishedAt": json["finished_at"] == null ? void 0 : json["finished_at"],
|
|
1546
|
+
"isOnHold": json["is_on_hold"] == null ? void 0 : json["is_on_hold"],
|
|
1547
|
+
"isProcessed": json["is_processed"] == null ? void 0 : json["is_processed"],
|
|
1548
|
+
"isStatusSent": json["is_status_sent"] == null ? void 0 : json["is_status_sent"],
|
|
1549
|
+
"logFormat": json["log_format"] == null ? void 0 : json["log_format"],
|
|
1550
|
+
"machineTypeId": json["machine_type_id"] == null ? void 0 : json["machine_type_id"],
|
|
1551
|
+
"originalBuildParams": json["original_build_params"] == null ? void 0 : json["original_build_params"],
|
|
1552
|
+
"pipelineWorkflowId": json["pipeline_workflow_id"] == null ? void 0 : json["pipeline_workflow_id"],
|
|
1553
|
+
"pullRequestId": json["pull_request_id"] == null ? void 0 : json["pull_request_id"],
|
|
1554
|
+
"pullRequestTargetBranch": json["pull_request_target_branch"] == null ? void 0 : json["pull_request_target_branch"],
|
|
1555
|
+
"pullRequestViewUrl": json["pull_request_view_url"] == null ? void 0 : json["pull_request_view_url"],
|
|
1556
|
+
"rebuildable": json["rebuildable"] == null ? void 0 : json["rebuildable"],
|
|
1557
|
+
"slug": json["slug"] == null ? void 0 : json["slug"],
|
|
1558
|
+
"stackIdentifier": json["stack_identifier"] == null ? void 0 : json["stack_identifier"],
|
|
1559
|
+
"startedOnWorkerAt": json["started_on_worker_at"] == null ? void 0 : json["started_on_worker_at"],
|
|
1560
|
+
"status": json["status"] == null ? void 0 : json["status"],
|
|
1561
|
+
"statusText": json["status_text"] == null ? void 0 : json["status_text"],
|
|
1562
|
+
"tag": json["tag"] == null ? void 0 : json["tag"],
|
|
1563
|
+
"triggeredAt": json["triggered_at"] == null ? void 0 : json["triggered_at"],
|
|
1564
|
+
"triggeredBy": json["triggered_by"] == null ? void 0 : json["triggered_by"],
|
|
1565
|
+
"triggeredWorkflow": json["triggered_workflow"] == null ? void 0 : json["triggered_workflow"]
|
|
1566
|
+
};
|
|
1567
|
+
}
|
|
1568
|
+
var init_V0BuildResponseItemModel = __esm({
|
|
1569
|
+
"src/generated_api/models/V0BuildResponseItemModel.ts"() {
|
|
1570
|
+
"use strict";
|
|
1571
|
+
init_runtime();
|
|
1572
|
+
}
|
|
1573
|
+
});
|
|
1574
|
+
|
|
1575
|
+
// src/generated_api/models/V0BuildListResponseModel.ts
|
|
1576
|
+
function V0BuildListResponseModelFromJSON(json) {
|
|
1577
|
+
return V0BuildListResponseModelFromJSONTyped(json, false);
|
|
1578
|
+
}
|
|
1579
|
+
function V0BuildListResponseModelFromJSONTyped(json, ignoreDiscriminator) {
|
|
1580
|
+
if (json == null) {
|
|
1581
|
+
return json;
|
|
1582
|
+
}
|
|
1583
|
+
return {
|
|
1584
|
+
"data": json["data"] == null ? void 0 : json["data"].map(V0BuildResponseItemModelFromJSON),
|
|
1585
|
+
"paging": json["paging"] == null ? void 0 : V0PagingResponseModelFromJSON(json["paging"])
|
|
1586
|
+
};
|
|
1587
|
+
}
|
|
1588
|
+
var init_V0BuildListResponseModel = __esm({
|
|
1589
|
+
"src/generated_api/models/V0BuildListResponseModel.ts"() {
|
|
1590
|
+
"use strict";
|
|
1591
|
+
init_runtime();
|
|
1592
|
+
init_V0PagingResponseModel();
|
|
1593
|
+
init_V0BuildResponseItemModel();
|
|
1594
|
+
}
|
|
1595
|
+
});
|
|
1596
|
+
|
|
1597
|
+
// src/generated_api/models/V0BuildParamsEnvironment.ts
|
|
1598
|
+
function V0BuildParamsEnvironmentToJSON(json) {
|
|
1599
|
+
return V0BuildParamsEnvironmentToJSONTyped(json, false);
|
|
1600
|
+
}
|
|
1601
|
+
function V0BuildParamsEnvironmentToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1602
|
+
if (value == null) {
|
|
1603
|
+
return value;
|
|
1604
|
+
}
|
|
1605
|
+
return {
|
|
1606
|
+
"is_expand": value["isExpand"],
|
|
1607
|
+
"mapped_to": value["mappedTo"],
|
|
1608
|
+
"value": value["value"]
|
|
1609
|
+
};
|
|
1610
|
+
}
|
|
1611
|
+
var init_V0BuildParamsEnvironment = __esm({
|
|
1612
|
+
"src/generated_api/models/V0BuildParamsEnvironment.ts"() {
|
|
1613
|
+
"use strict";
|
|
1614
|
+
init_runtime();
|
|
1615
|
+
}
|
|
1616
|
+
});
|
|
1617
|
+
|
|
1618
|
+
// src/generated_api/models/V0BuildRequestResponseItemModel.ts
|
|
1619
|
+
var init_V0BuildRequestResponseItemModel = __esm({
|
|
1620
|
+
"src/generated_api/models/V0BuildRequestResponseItemModel.ts"() {
|
|
1621
|
+
"use strict";
|
|
1622
|
+
init_runtime();
|
|
1623
|
+
}
|
|
1624
|
+
});
|
|
1625
|
+
|
|
1626
|
+
// src/generated_api/models/V0BuildRequestListResponseModel.ts
|
|
1627
|
+
var init_V0BuildRequestListResponseModel = __esm({
|
|
1628
|
+
"src/generated_api/models/V0BuildRequestListResponseModel.ts"() {
|
|
1629
|
+
"use strict";
|
|
1630
|
+
init_runtime();
|
|
1631
|
+
init_V0BuildRequestResponseItemModel();
|
|
1632
|
+
}
|
|
1633
|
+
});
|
|
1634
|
+
|
|
1635
|
+
// src/generated_api/models/V0BuildRequestUpdateParams.ts
|
|
1636
|
+
var init_V0BuildRequestUpdateParams = __esm({
|
|
1637
|
+
"src/generated_api/models/V0BuildRequestUpdateParams.ts"() {
|
|
1638
|
+
"use strict";
|
|
1639
|
+
init_runtime();
|
|
1640
|
+
}
|
|
1641
|
+
});
|
|
1642
|
+
|
|
1643
|
+
// src/generated_api/models/V0BuildRequestUpdateResponseModel.ts
|
|
1644
|
+
var init_V0BuildRequestUpdateResponseModel = __esm({
|
|
1645
|
+
"src/generated_api/models/V0BuildRequestUpdateResponseModel.ts"() {
|
|
1646
|
+
"use strict";
|
|
1647
|
+
init_runtime();
|
|
1648
|
+
init_V0BuildRequestResponseItemModel();
|
|
1649
|
+
}
|
|
1650
|
+
});
|
|
1651
|
+
|
|
1652
|
+
// src/generated_api/models/V0BuildShowResponseModel.ts
|
|
1653
|
+
function V0BuildShowResponseModelFromJSON(json) {
|
|
1654
|
+
return V0BuildShowResponseModelFromJSONTyped(json, false);
|
|
1655
|
+
}
|
|
1656
|
+
function V0BuildShowResponseModelFromJSONTyped(json, ignoreDiscriminator) {
|
|
1657
|
+
if (json == null) {
|
|
1658
|
+
return json;
|
|
1659
|
+
}
|
|
1660
|
+
return {
|
|
1661
|
+
"data": json["data"] == null ? void 0 : V0BuildResponseItemModelFromJSON(json["data"])
|
|
1662
|
+
};
|
|
1663
|
+
}
|
|
1664
|
+
var init_V0BuildShowResponseModel = __esm({
|
|
1665
|
+
"src/generated_api/models/V0BuildShowResponseModel.ts"() {
|
|
1666
|
+
"use strict";
|
|
1667
|
+
init_runtime();
|
|
1668
|
+
init_V0BuildResponseItemModel();
|
|
1669
|
+
}
|
|
1670
|
+
});
|
|
1671
|
+
|
|
1672
|
+
// src/generated_api/models/V0CommitPaths.ts
|
|
1673
|
+
function V0CommitPathsToJSON(json) {
|
|
1674
|
+
return V0CommitPathsToJSONTyped(json, false);
|
|
1675
|
+
}
|
|
1676
|
+
function V0CommitPathsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1677
|
+
if (value == null) {
|
|
1678
|
+
return value;
|
|
1679
|
+
}
|
|
1680
|
+
return {
|
|
1681
|
+
"added": value["added"],
|
|
1682
|
+
"modified": value["modified"],
|
|
1683
|
+
"removed": value["removed"]
|
|
1684
|
+
};
|
|
1685
|
+
}
|
|
1686
|
+
var init_V0CommitPaths = __esm({
|
|
1687
|
+
"src/generated_api/models/V0CommitPaths.ts"() {
|
|
1688
|
+
"use strict";
|
|
1689
|
+
init_runtime();
|
|
1690
|
+
}
|
|
1691
|
+
});
|
|
1692
|
+
|
|
1693
|
+
// src/generated_api/models/V0BuildTriggerParamsBuildParams.ts
|
|
1694
|
+
function V0BuildTriggerParamsBuildParamsToJSON(json) {
|
|
1695
|
+
return V0BuildTriggerParamsBuildParamsToJSONTyped(json, false);
|
|
1696
|
+
}
|
|
1697
|
+
function V0BuildTriggerParamsBuildParamsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1698
|
+
if (value == null) {
|
|
1699
|
+
return value;
|
|
1700
|
+
}
|
|
1701
|
+
return {
|
|
1702
|
+
"base_repository_url": value["baseRepositoryUrl"],
|
|
1703
|
+
"branch": value["branch"],
|
|
1704
|
+
"branch_dest": value["branchDest"],
|
|
1705
|
+
"branch_dest_repo_owner": value["branchDestRepoOwner"],
|
|
1706
|
+
"branch_repo_owner": value["branchRepoOwner"],
|
|
1707
|
+
"build_request_slug": value["buildRequestSlug"],
|
|
1708
|
+
"commit_hash": value["commitHash"],
|
|
1709
|
+
"commit_message": value["commitMessage"],
|
|
1710
|
+
"commit_paths": value["commitPaths"] == null ? void 0 : value["commitPaths"].map(V0CommitPathsToJSON),
|
|
1711
|
+
"diff_url": value["diffUrl"],
|
|
1712
|
+
"environments": value["environments"] == null ? void 0 : value["environments"].map(V0BuildParamsEnvironmentToJSON),
|
|
1713
|
+
"head_repository_url": value["headRepositoryUrl"],
|
|
1714
|
+
"pipeline_id": value["pipelineId"],
|
|
1715
|
+
"priority": value["priority"],
|
|
1716
|
+
"pull_request_author": value["pullRequestAuthor"],
|
|
1717
|
+
"pull_request_head_branch": value["pullRequestHeadBranch"],
|
|
1718
|
+
"pull_request_id": value["pullRequestId"],
|
|
1719
|
+
"pull_request_merge_branch": value["pullRequestMergeBranch"],
|
|
1720
|
+
"pull_request_repository_url": value["pullRequestRepositoryUrl"],
|
|
1721
|
+
"pull_request_unverified_merge_branch": value["pullRequestUnverifiedMergeBranch"],
|
|
1722
|
+
"skip_git_status_report": value["skipGitStatusReport"],
|
|
1723
|
+
"tag": value["tag"],
|
|
1724
|
+
"workflow_id": value["workflowId"]
|
|
1725
|
+
};
|
|
1726
|
+
}
|
|
1727
|
+
var init_V0BuildTriggerParamsBuildParams = __esm({
|
|
1728
|
+
"src/generated_api/models/V0BuildTriggerParamsBuildParams.ts"() {
|
|
1729
|
+
"use strict";
|
|
1730
|
+
init_runtime();
|
|
1731
|
+
init_V0CommitPaths();
|
|
1732
|
+
init_V0BuildParamsEnvironment();
|
|
1733
|
+
}
|
|
1734
|
+
});
|
|
1735
|
+
|
|
1736
|
+
// src/generated_api/models/V0BuildTriggerParamsHookInfo.ts
|
|
1737
|
+
function V0BuildTriggerParamsHookInfoToJSON(json) {
|
|
1738
|
+
return V0BuildTriggerParamsHookInfoToJSONTyped(json, false);
|
|
1739
|
+
}
|
|
1740
|
+
function V0BuildTriggerParamsHookInfoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1741
|
+
if (value == null) {
|
|
1742
|
+
return value;
|
|
1743
|
+
}
|
|
1744
|
+
return {
|
|
1745
|
+
"type": value["type"]
|
|
1746
|
+
};
|
|
1747
|
+
}
|
|
1748
|
+
var init_V0BuildTriggerParamsHookInfo = __esm({
|
|
1749
|
+
"src/generated_api/models/V0BuildTriggerParamsHookInfo.ts"() {
|
|
1750
|
+
"use strict";
|
|
1751
|
+
init_runtime();
|
|
1752
|
+
}
|
|
1753
|
+
});
|
|
1754
|
+
|
|
1755
|
+
// src/generated_api/models/V0BuildTriggerParams.ts
|
|
1756
|
+
function V0BuildTriggerParamsToJSON(json) {
|
|
1757
|
+
return V0BuildTriggerParamsToJSONTyped(json, false);
|
|
1758
|
+
}
|
|
1759
|
+
function V0BuildTriggerParamsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1760
|
+
if (value == null) {
|
|
1761
|
+
return value;
|
|
1762
|
+
}
|
|
1763
|
+
return {
|
|
1764
|
+
"build_params": V0BuildTriggerParamsBuildParamsToJSON(value["buildParams"]),
|
|
1765
|
+
"hook_info": V0BuildTriggerParamsHookInfoToJSON(value["hookInfo"])
|
|
1766
|
+
};
|
|
1767
|
+
}
|
|
1768
|
+
var init_V0BuildTriggerParams = __esm({
|
|
1769
|
+
"src/generated_api/models/V0BuildTriggerParams.ts"() {
|
|
1770
|
+
"use strict";
|
|
1771
|
+
init_runtime();
|
|
1772
|
+
init_V0BuildTriggerParamsBuildParams();
|
|
1773
|
+
init_V0BuildTriggerParamsHookInfo();
|
|
1774
|
+
}
|
|
1775
|
+
});
|
|
1776
|
+
|
|
1777
|
+
// src/generated_api/models/V0BuildTriggerRespItemModel.ts
|
|
1778
|
+
function V0BuildTriggerRespItemModelFromJSON(json) {
|
|
1779
|
+
return V0BuildTriggerRespItemModelFromJSONTyped(json, false);
|
|
1780
|
+
}
|
|
1781
|
+
function V0BuildTriggerRespItemModelFromJSONTyped(json, ignoreDiscriminator) {
|
|
1782
|
+
if (json == null) {
|
|
1783
|
+
return json;
|
|
1784
|
+
}
|
|
1785
|
+
return {
|
|
1786
|
+
"buildNumber": json["build_number"] == null ? void 0 : json["build_number"],
|
|
1787
|
+
"buildSlug": json["build_slug"] == null ? void 0 : json["build_slug"],
|
|
1788
|
+
"buildUrl": json["build_url"] == null ? void 0 : json["build_url"],
|
|
1789
|
+
"message": json["message"] == null ? void 0 : json["message"],
|
|
1790
|
+
"status": json["status"] == null ? void 0 : json["status"],
|
|
1791
|
+
"triggeredPipeline": json["triggered_pipeline"] == null ? void 0 : json["triggered_pipeline"],
|
|
1792
|
+
"triggeredWorkflow": json["triggered_workflow"] == null ? void 0 : json["triggered_workflow"]
|
|
1793
|
+
};
|
|
1794
|
+
}
|
|
1795
|
+
var init_V0BuildTriggerRespItemModel = __esm({
|
|
1796
|
+
"src/generated_api/models/V0BuildTriggerRespItemModel.ts"() {
|
|
1797
|
+
"use strict";
|
|
1798
|
+
init_runtime();
|
|
1799
|
+
}
|
|
1800
|
+
});
|
|
1801
|
+
|
|
1802
|
+
// src/generated_api/models/V0BuildTriggerRespModel.ts
|
|
1803
|
+
function V0BuildTriggerRespModelFromJSON(json) {
|
|
1804
|
+
return V0BuildTriggerRespModelFromJSONTyped(json, false);
|
|
1805
|
+
}
|
|
1806
|
+
function V0BuildTriggerRespModelFromJSONTyped(json, ignoreDiscriminator) {
|
|
1807
|
+
if (json == null) {
|
|
1808
|
+
return json;
|
|
1809
|
+
}
|
|
1810
|
+
return {
|
|
1811
|
+
"buildNumber": json["build_number"] == null ? void 0 : json["build_number"],
|
|
1812
|
+
"buildSlug": json["build_slug"] == null ? void 0 : json["build_slug"],
|
|
1813
|
+
"buildUrl": json["build_url"] == null ? void 0 : json["build_url"],
|
|
1814
|
+
"message": json["message"] == null ? void 0 : json["message"],
|
|
1815
|
+
"results": json["results"] == null ? void 0 : json["results"].map(V0BuildTriggerRespItemModelFromJSON),
|
|
1816
|
+
"service": json["service"] == null ? void 0 : json["service"],
|
|
1817
|
+
"slug": json["slug"] == null ? void 0 : json["slug"],
|
|
1818
|
+
"status": json["status"] == null ? void 0 : json["status"],
|
|
1819
|
+
"triggeredWorkflow": json["triggered_workflow"] == null ? void 0 : json["triggered_workflow"]
|
|
1820
|
+
};
|
|
1821
|
+
}
|
|
1822
|
+
var init_V0BuildTriggerRespModel = __esm({
|
|
1823
|
+
"src/generated_api/models/V0BuildTriggerRespModel.ts"() {
|
|
1824
|
+
"use strict";
|
|
1825
|
+
init_runtime();
|
|
1826
|
+
init_V0BuildTriggerRespItemModel();
|
|
1827
|
+
}
|
|
1828
|
+
});
|
|
1829
|
+
|
|
1830
|
+
// src/generated_api/models/V0BuildWorkflowListResponseModel.ts
|
|
1831
|
+
function V0BuildWorkflowListResponseModelFromJSON(json) {
|
|
1832
|
+
return V0BuildWorkflowListResponseModelFromJSONTyped(json, false);
|
|
1833
|
+
}
|
|
1834
|
+
function V0BuildWorkflowListResponseModelFromJSONTyped(json, ignoreDiscriminator) {
|
|
1835
|
+
if (json == null) {
|
|
1836
|
+
return json;
|
|
1837
|
+
}
|
|
1838
|
+
return {
|
|
1839
|
+
"data": json["data"] == null ? void 0 : json["data"]
|
|
1840
|
+
};
|
|
1841
|
+
}
|
|
1842
|
+
var init_V0BuildWorkflowListResponseModel = __esm({
|
|
1843
|
+
"src/generated_api/models/V0BuildWorkflowListResponseModel.ts"() {
|
|
1844
|
+
"use strict";
|
|
1845
|
+
init_runtime();
|
|
1846
|
+
}
|
|
1847
|
+
});
|
|
1848
|
+
|
|
1849
|
+
// src/generated_api/models/V0CacheItemDownloadURLResponseModel.ts
|
|
1850
|
+
var init_V0CacheItemDownloadURLResponseModel = __esm({
|
|
1851
|
+
"src/generated_api/models/V0CacheItemDownloadURLResponseModel.ts"() {
|
|
1852
|
+
"use strict";
|
|
1853
|
+
init_runtime();
|
|
1854
|
+
}
|
|
1855
|
+
});
|
|
1856
|
+
|
|
1857
|
+
// src/generated_api/models/V0CacheItemDownloadResponseModel.ts
|
|
1858
|
+
var init_V0CacheItemDownloadResponseModel = __esm({
|
|
1859
|
+
"src/generated_api/models/V0CacheItemDownloadResponseModel.ts"() {
|
|
1860
|
+
"use strict";
|
|
1861
|
+
init_runtime();
|
|
1862
|
+
init_V0CacheItemDownloadURLResponseModel();
|
|
1863
|
+
}
|
|
1864
|
+
});
|
|
1865
|
+
|
|
1866
|
+
// src/generated_api/models/V0CacheItemListResponseItemModel.ts
|
|
1867
|
+
var init_V0CacheItemListResponseItemModel = __esm({
|
|
1868
|
+
"src/generated_api/models/V0CacheItemListResponseItemModel.ts"() {
|
|
1869
|
+
"use strict";
|
|
1870
|
+
init_runtime();
|
|
1871
|
+
}
|
|
1872
|
+
});
|
|
1873
|
+
|
|
1874
|
+
// src/generated_api/models/V0CacheItemListResponseModel.ts
|
|
1875
|
+
var init_V0CacheItemListResponseModel = __esm({
|
|
1876
|
+
"src/generated_api/models/V0CacheItemListResponseModel.ts"() {
|
|
1877
|
+
"use strict";
|
|
1878
|
+
init_runtime();
|
|
1879
|
+
init_V0PagingResponseModel();
|
|
1880
|
+
init_V0CacheItemListResponseItemModel();
|
|
1881
|
+
}
|
|
1882
|
+
});
|
|
1883
|
+
|
|
1884
|
+
// src/generated_api/models/V0OrganizationAppleAPICredentialResponseItem.ts
|
|
1885
|
+
var init_V0OrganizationAppleAPICredentialResponseItem = __esm({
|
|
1886
|
+
"src/generated_api/models/V0OrganizationAppleAPICredentialResponseItem.ts"() {
|
|
1887
|
+
"use strict";
|
|
1888
|
+
init_runtime();
|
|
1889
|
+
}
|
|
1890
|
+
});
|
|
1891
|
+
|
|
1892
|
+
// src/generated_api/models/V0OrganizationAppleAPICredentialsListResponse.ts
|
|
1893
|
+
var init_V0OrganizationAppleAPICredentialsListResponse = __esm({
|
|
1894
|
+
"src/generated_api/models/V0OrganizationAppleAPICredentialsListResponse.ts"() {
|
|
1895
|
+
"use strict";
|
|
1896
|
+
init_runtime();
|
|
1897
|
+
init_V0OrganizationAppleAPICredentialResponseItem();
|
|
1898
|
+
}
|
|
1899
|
+
});
|
|
1900
|
+
|
|
1901
|
+
// src/generated_api/models/V0OrganizationAppleAPICredetialCreateParams.ts
|
|
1902
|
+
var init_V0OrganizationAppleAPICredetialCreateParams = __esm({
|
|
1903
|
+
"src/generated_api/models/V0OrganizationAppleAPICredetialCreateParams.ts"() {
|
|
1904
|
+
"use strict";
|
|
1905
|
+
init_runtime();
|
|
1906
|
+
}
|
|
1907
|
+
});
|
|
1908
|
+
|
|
1909
|
+
// src/generated_api/models/V0OrganizationAppleAPICredetialCreateResponseItem.ts
|
|
1910
|
+
var init_V0OrganizationAppleAPICredetialCreateResponseItem = __esm({
|
|
1911
|
+
"src/generated_api/models/V0OrganizationAppleAPICredetialCreateResponseItem.ts"() {
|
|
1912
|
+
"use strict";
|
|
1913
|
+
init_runtime();
|
|
1914
|
+
}
|
|
1915
|
+
});
|
|
1916
|
+
|
|
1917
|
+
// src/generated_api/models/V0OrganizationAppleAPICredetialCreateResponse.ts
|
|
1918
|
+
var init_V0OrganizationAppleAPICredetialCreateResponse = __esm({
|
|
1919
|
+
"src/generated_api/models/V0OrganizationAppleAPICredetialCreateResponse.ts"() {
|
|
1920
|
+
"use strict";
|
|
1921
|
+
init_runtime();
|
|
1922
|
+
init_V0OrganizationAppleAPICredetialCreateResponseItem();
|
|
1923
|
+
}
|
|
1924
|
+
});
|
|
1925
|
+
|
|
1926
|
+
// src/generated_api/models/V0OrganizationOwner.ts
|
|
1927
|
+
var init_V0OrganizationOwner = __esm({
|
|
1928
|
+
"src/generated_api/models/V0OrganizationOwner.ts"() {
|
|
1929
|
+
"use strict";
|
|
1930
|
+
init_runtime();
|
|
1931
|
+
}
|
|
1932
|
+
});
|
|
1933
|
+
|
|
1934
|
+
// src/generated_api/models/V0OrganizationDataModel.ts
|
|
1935
|
+
var init_V0OrganizationDataModel = __esm({
|
|
1936
|
+
"src/generated_api/models/V0OrganizationDataModel.ts"() {
|
|
1937
|
+
"use strict";
|
|
1938
|
+
init_runtime();
|
|
1939
|
+
init_V0OrganizationOwner();
|
|
1940
|
+
}
|
|
1941
|
+
});
|
|
1942
|
+
|
|
1943
|
+
// src/generated_api/models/V0OrganizationGoogleServiceCredentialResponseItem.ts
|
|
1944
|
+
var init_V0OrganizationGoogleServiceCredentialResponseItem = __esm({
|
|
1945
|
+
"src/generated_api/models/V0OrganizationGoogleServiceCredentialResponseItem.ts"() {
|
|
1946
|
+
"use strict";
|
|
1947
|
+
init_runtime();
|
|
1948
|
+
}
|
|
1949
|
+
});
|
|
1950
|
+
|
|
1951
|
+
// src/generated_api/models/V0OrganizationGoogleServiceCredentialsListResponse.ts
|
|
1952
|
+
var init_V0OrganizationGoogleServiceCredentialsListResponse = __esm({
|
|
1953
|
+
"src/generated_api/models/V0OrganizationGoogleServiceCredentialsListResponse.ts"() {
|
|
1954
|
+
"use strict";
|
|
1955
|
+
init_runtime();
|
|
1956
|
+
init_V0OrganizationGoogleServiceCredentialResponseItem();
|
|
1957
|
+
}
|
|
1958
|
+
});
|
|
1959
|
+
|
|
1960
|
+
// src/generated_api/models/V0OrganizationGoogleServiceCredetialCreateParams.ts
|
|
1961
|
+
var init_V0OrganizationGoogleServiceCredetialCreateParams = __esm({
|
|
1962
|
+
"src/generated_api/models/V0OrganizationGoogleServiceCredetialCreateParams.ts"() {
|
|
1963
|
+
"use strict";
|
|
1964
|
+
init_runtime();
|
|
1965
|
+
}
|
|
1966
|
+
});
|
|
1967
|
+
|
|
1968
|
+
// src/generated_api/models/V0OrganizationGoogleServiceCredetialCreateResponseItem.ts
|
|
1969
|
+
var init_V0OrganizationGoogleServiceCredetialCreateResponseItem = __esm({
|
|
1970
|
+
"src/generated_api/models/V0OrganizationGoogleServiceCredetialCreateResponseItem.ts"() {
|
|
1971
|
+
"use strict";
|
|
1972
|
+
init_runtime();
|
|
1973
|
+
}
|
|
1974
|
+
});
|
|
1975
|
+
|
|
1976
|
+
// src/generated_api/models/V0OrganizationGoogleServiceCredetialCreateResponse.ts
|
|
1977
|
+
var init_V0OrganizationGoogleServiceCredetialCreateResponse = __esm({
|
|
1978
|
+
"src/generated_api/models/V0OrganizationGoogleServiceCredetialCreateResponse.ts"() {
|
|
1979
|
+
"use strict";
|
|
1980
|
+
init_runtime();
|
|
1981
|
+
init_V0OrganizationGoogleServiceCredetialCreateResponseItem();
|
|
1982
|
+
}
|
|
1983
|
+
});
|
|
1984
|
+
|
|
1985
|
+
// src/generated_api/models/V0OrganizationListRespModel.ts
|
|
1986
|
+
var init_V0OrganizationListRespModel = __esm({
|
|
1987
|
+
"src/generated_api/models/V0OrganizationListRespModel.ts"() {
|
|
1988
|
+
"use strict";
|
|
1989
|
+
init_runtime();
|
|
1990
|
+
init_V0OrganizationDataModel();
|
|
1991
|
+
}
|
|
1992
|
+
});
|
|
1993
|
+
|
|
1994
|
+
// src/generated_api/models/V0OrganizationRespModel.ts
|
|
1995
|
+
var init_V0OrganizationRespModel = __esm({
|
|
1996
|
+
"src/generated_api/models/V0OrganizationRespModel.ts"() {
|
|
1997
|
+
"use strict";
|
|
1998
|
+
init_runtime();
|
|
1999
|
+
init_V0OrganizationDataModel();
|
|
2000
|
+
}
|
|
2001
|
+
});
|
|
2002
|
+
|
|
2003
|
+
// src/generated_api/models/V0OrganizationUpdateMachineTypeParams.ts
|
|
2004
|
+
var init_V0OrganizationUpdateMachineTypeParams = __esm({
|
|
2005
|
+
"src/generated_api/models/V0OrganizationUpdateMachineTypeParams.ts"() {
|
|
2006
|
+
"use strict";
|
|
2007
|
+
init_runtime();
|
|
2008
|
+
}
|
|
2009
|
+
});
|
|
2010
|
+
|
|
2011
|
+
// src/generated_api/models/V0OrganizationUpdateMachineTypeResponseErrorsInner.ts
|
|
2012
|
+
var init_V0OrganizationUpdateMachineTypeResponseErrorsInner = __esm({
|
|
2013
|
+
"src/generated_api/models/V0OrganizationUpdateMachineTypeResponseErrorsInner.ts"() {
|
|
2014
|
+
"use strict";
|
|
2015
|
+
init_runtime();
|
|
2016
|
+
}
|
|
2017
|
+
});
|
|
2018
|
+
|
|
2019
|
+
// src/generated_api/models/V0OrganizationUpdateMachineTypeResponse.ts
|
|
2020
|
+
var init_V0OrganizationUpdateMachineTypeResponse = __esm({
|
|
2021
|
+
"src/generated_api/models/V0OrganizationUpdateMachineTypeResponse.ts"() {
|
|
2022
|
+
"use strict";
|
|
2023
|
+
init_runtime();
|
|
2024
|
+
init_V0OrganizationUpdateMachineTypeResponseErrorsInner();
|
|
2025
|
+
}
|
|
2026
|
+
});
|
|
2027
|
+
|
|
2028
|
+
// src/generated_api/models/V0OwnerAddOnResponseItemModel.ts
|
|
2029
|
+
var init_V0OwnerAddOnResponseItemModel = __esm({
|
|
2030
|
+
"src/generated_api/models/V0OwnerAddOnResponseItemModel.ts"() {
|
|
2031
|
+
"use strict";
|
|
2032
|
+
init_runtime();
|
|
2033
|
+
init_V0AddOnAppResponseItemModel();
|
|
2034
|
+
}
|
|
2035
|
+
});
|
|
2036
|
+
|
|
2037
|
+
// src/generated_api/models/V0OwnerAddOnsListResponseModel.ts
|
|
2038
|
+
var init_V0OwnerAddOnsListResponseModel = __esm({
|
|
2039
|
+
"src/generated_api/models/V0OwnerAddOnsListResponseModel.ts"() {
|
|
2040
|
+
"use strict";
|
|
2041
|
+
init_runtime();
|
|
2042
|
+
init_V0OwnerAddOnResponseItemModel();
|
|
2043
|
+
}
|
|
2044
|
+
});
|
|
2045
|
+
|
|
2046
|
+
// src/generated_api/models/V0PipelineAbortParams.ts
|
|
2047
|
+
var init_V0PipelineAbortParams = __esm({
|
|
2048
|
+
"src/generated_api/models/V0PipelineAbortParams.ts"() {
|
|
2049
|
+
"use strict";
|
|
2050
|
+
init_runtime();
|
|
2051
|
+
}
|
|
2052
|
+
});
|
|
2053
|
+
|
|
2054
|
+
// src/generated_api/models/V0PipelineListAllTriggerParams.ts
|
|
2055
|
+
var init_V0PipelineListAllTriggerParams = __esm({
|
|
2056
|
+
"src/generated_api/models/V0PipelineListAllTriggerParams.ts"() {
|
|
2057
|
+
"use strict";
|
|
2058
|
+
init_runtime();
|
|
2059
|
+
}
|
|
2060
|
+
});
|
|
2061
|
+
|
|
2062
|
+
// src/generated_api/models/V0PipelineListAllResponseItemModel.ts
|
|
2063
|
+
var init_V0PipelineListAllResponseItemModel = __esm({
|
|
2064
|
+
"src/generated_api/models/V0PipelineListAllResponseItemModel.ts"() {
|
|
2065
|
+
"use strict";
|
|
2066
|
+
init_runtime();
|
|
2067
|
+
init_V0PipelineListAllTriggerParams();
|
|
2068
|
+
init_V0AppResponseItemModel();
|
|
2069
|
+
}
|
|
2070
|
+
});
|
|
2071
|
+
|
|
2072
|
+
// src/generated_api/models/V0PipelineListAllResponseModel.ts
|
|
2073
|
+
var init_V0PipelineListAllResponseModel = __esm({
|
|
2074
|
+
"src/generated_api/models/V0PipelineListAllResponseModel.ts"() {
|
|
2075
|
+
"use strict";
|
|
2076
|
+
init_runtime();
|
|
2077
|
+
init_V0PagingResponseModel();
|
|
2078
|
+
init_V0PipelineListAllResponseItemModel();
|
|
2079
|
+
}
|
|
2080
|
+
});
|
|
2081
|
+
|
|
2082
|
+
// src/generated_api/models/V0PipelineListResponseItemModel.ts
|
|
2083
|
+
var init_V0PipelineListResponseItemModel = __esm({
|
|
2084
|
+
"src/generated_api/models/V0PipelineListResponseItemModel.ts"() {
|
|
2085
|
+
"use strict";
|
|
2086
|
+
init_runtime();
|
|
2087
|
+
init_PipelineabledomainBuildToolInvocation();
|
|
2088
|
+
init_PipelineabledomainTriggerParams();
|
|
2089
|
+
init_PipelineabledomainLocalConfig();
|
|
2090
|
+
init_PipelineabledomainArtifactMeta();
|
|
2091
|
+
}
|
|
2092
|
+
});
|
|
2093
|
+
|
|
2094
|
+
// src/generated_api/models/V0PipelineListResponseModel.ts
|
|
2095
|
+
var init_V0PipelineListResponseModel = __esm({
|
|
2096
|
+
"src/generated_api/models/V0PipelineListResponseModel.ts"() {
|
|
2097
|
+
"use strict";
|
|
2098
|
+
init_runtime();
|
|
2099
|
+
init_V0PagingResponseModel();
|
|
2100
|
+
init_V0PipelineListResponseItemModel();
|
|
2101
|
+
}
|
|
2102
|
+
});
|
|
2103
|
+
|
|
2104
|
+
// src/generated_api/models/V0PipelineRebuildParams.ts
|
|
2105
|
+
var init_V0PipelineRebuildParams = __esm({
|
|
2106
|
+
"src/generated_api/models/V0PipelineRebuildParams.ts"() {
|
|
2107
|
+
"use strict";
|
|
2108
|
+
init_runtime();
|
|
2109
|
+
}
|
|
2110
|
+
});
|
|
2111
|
+
|
|
2112
|
+
// src/generated_api/models/V0PipelineShowAppResponseModel.ts
|
|
2113
|
+
var init_V0PipelineShowAppResponseModel = __esm({
|
|
2114
|
+
"src/generated_api/models/V0PipelineShowAppResponseModel.ts"() {
|
|
2115
|
+
"use strict";
|
|
2116
|
+
init_runtime();
|
|
2117
|
+
}
|
|
2118
|
+
});
|
|
2119
|
+
|
|
2120
|
+
// src/generated_api/models/V0PipelineShowAttemptResponseModel.ts
|
|
2121
|
+
var init_V0PipelineShowAttemptResponseModel = __esm({
|
|
2122
|
+
"src/generated_api/models/V0PipelineShowAttemptResponseModel.ts"() {
|
|
2123
|
+
"use strict";
|
|
2124
|
+
init_runtime();
|
|
2125
|
+
}
|
|
2126
|
+
});
|
|
2127
|
+
|
|
2128
|
+
// src/generated_api/models/V0PipelineShowEnvironmentsResponseModel.ts
|
|
2129
|
+
var init_V0PipelineShowEnvironmentsResponseModel = __esm({
|
|
2130
|
+
"src/generated_api/models/V0PipelineShowEnvironmentsResponseModel.ts"() {
|
|
2131
|
+
"use strict";
|
|
2132
|
+
init_runtime();
|
|
2133
|
+
}
|
|
2134
|
+
});
|
|
2135
|
+
|
|
2136
|
+
// src/generated_api/models/V0PipelineShowWorkflowResponseModel.ts
|
|
2137
|
+
var init_V0PipelineShowWorkflowResponseModel = __esm({
|
|
2138
|
+
"src/generated_api/models/V0PipelineShowWorkflowResponseModel.ts"() {
|
|
2139
|
+
"use strict";
|
|
2140
|
+
init_runtime();
|
|
2141
|
+
}
|
|
2142
|
+
});
|
|
2143
|
+
|
|
2144
|
+
// src/generated_api/models/V0PipelineShowStageResponseModel.ts
|
|
2145
|
+
var init_V0PipelineShowStageResponseModel = __esm({
|
|
2146
|
+
"src/generated_api/models/V0PipelineShowStageResponseModel.ts"() {
|
|
2147
|
+
"use strict";
|
|
2148
|
+
init_runtime();
|
|
2149
|
+
init_V0PipelineShowWorkflowResponseModel();
|
|
2150
|
+
}
|
|
2151
|
+
});
|
|
2152
|
+
|
|
2153
|
+
// src/generated_api/models/V0PipelineShowTriggerParamsResponseModel.ts
|
|
2154
|
+
var init_V0PipelineShowTriggerParamsResponseModel = __esm({
|
|
2155
|
+
"src/generated_api/models/V0PipelineShowTriggerParamsResponseModel.ts"() {
|
|
2156
|
+
"use strict";
|
|
2157
|
+
init_runtime();
|
|
2158
|
+
init_V0PipelineShowEnvironmentsResponseModel();
|
|
2159
|
+
}
|
|
2160
|
+
});
|
|
2161
|
+
|
|
2162
|
+
// src/generated_api/models/V0PipelineShowResponseModel.ts
|
|
2163
|
+
var init_V0PipelineShowResponseModel = __esm({
|
|
2164
|
+
"src/generated_api/models/V0PipelineShowResponseModel.ts"() {
|
|
2165
|
+
"use strict";
|
|
2166
|
+
init_runtime();
|
|
2167
|
+
init_V0PipelineShowWorkflowResponseModel();
|
|
2168
|
+
init_V0PipelineShowStageResponseModel();
|
|
2169
|
+
init_V0PipelineShowTriggerParamsResponseModel();
|
|
2170
|
+
init_V0PipelineShowAppResponseModel();
|
|
2171
|
+
init_V0PipelineShowAttemptResponseModel();
|
|
2172
|
+
}
|
|
2173
|
+
});
|
|
2174
|
+
|
|
2175
|
+
// src/generated_api/models/V0ProjectFileStorageDocumentUpdateParams.ts
|
|
2176
|
+
var init_V0ProjectFileStorageDocumentUpdateParams = __esm({
|
|
2177
|
+
"src/generated_api/models/V0ProjectFileStorageDocumentUpdateParams.ts"() {
|
|
2178
|
+
"use strict";
|
|
2179
|
+
init_runtime();
|
|
2180
|
+
}
|
|
2181
|
+
});
|
|
2182
|
+
|
|
2183
|
+
// src/generated_api/models/V0ProjectFileStorageDownloadResponseItemModel.ts
|
|
2184
|
+
var init_V0ProjectFileStorageDownloadResponseItemModel = __esm({
|
|
2185
|
+
"src/generated_api/models/V0ProjectFileStorageDownloadResponseItemModel.ts"() {
|
|
2186
|
+
"use strict";
|
|
2187
|
+
init_runtime();
|
|
2188
|
+
}
|
|
2189
|
+
});
|
|
2190
|
+
|
|
2191
|
+
// src/generated_api/models/V0ProjectFileStorageDownloadResponseModel.ts
|
|
2192
|
+
var init_V0ProjectFileStorageDownloadResponseModel = __esm({
|
|
2193
|
+
"src/generated_api/models/V0ProjectFileStorageDownloadResponseModel.ts"() {
|
|
2194
|
+
"use strict";
|
|
2195
|
+
init_runtime();
|
|
2196
|
+
init_V0ProjectFileStorageDownloadResponseItemModel();
|
|
2197
|
+
}
|
|
2198
|
+
});
|
|
2199
|
+
|
|
2200
|
+
// src/generated_api/models/V0ProjectFileStorageResponseItemModel.ts
|
|
2201
|
+
var init_V0ProjectFileStorageResponseItemModel = __esm({
|
|
2202
|
+
"src/generated_api/models/V0ProjectFileStorageResponseItemModel.ts"() {
|
|
2203
|
+
"use strict";
|
|
2204
|
+
init_runtime();
|
|
2205
|
+
}
|
|
2206
|
+
});
|
|
2207
|
+
|
|
2208
|
+
// src/generated_api/models/V0ProjectFileStorageListResponseModel.ts
|
|
2209
|
+
var init_V0ProjectFileStorageListResponseModel = __esm({
|
|
2210
|
+
"src/generated_api/models/V0ProjectFileStorageListResponseModel.ts"() {
|
|
2211
|
+
"use strict";
|
|
2212
|
+
init_runtime();
|
|
2213
|
+
init_V0ProjectFileStorageResponseItemModel();
|
|
2214
|
+
init_V0PagingResponseModel();
|
|
2215
|
+
}
|
|
2216
|
+
});
|
|
2217
|
+
|
|
2218
|
+
// src/generated_api/models/V0ProjectFileStorageResponseModel.ts
|
|
2219
|
+
var init_V0ProjectFileStorageResponseModel = __esm({
|
|
2220
|
+
"src/generated_api/models/V0ProjectFileStorageResponseModel.ts"() {
|
|
2221
|
+
"use strict";
|
|
2222
|
+
init_runtime();
|
|
2223
|
+
init_V0ProjectFileStorageResponseItemModel();
|
|
2224
|
+
}
|
|
2225
|
+
});
|
|
2226
|
+
|
|
2227
|
+
// src/generated_api/models/V0ProjectFileStorageUploadParams.ts
|
|
2228
|
+
var init_V0ProjectFileStorageUploadParams = __esm({
|
|
2229
|
+
"src/generated_api/models/V0ProjectFileStorageUploadParams.ts"() {
|
|
2230
|
+
"use strict";
|
|
2231
|
+
init_runtime();
|
|
2232
|
+
}
|
|
2233
|
+
});
|
|
2234
|
+
|
|
2235
|
+
// src/generated_api/models/V0ProjectFileStorageUploadResponseItemModel.ts
|
|
2236
|
+
var init_V0ProjectFileStorageUploadResponseItemModel = __esm({
|
|
2237
|
+
"src/generated_api/models/V0ProjectFileStorageUploadResponseItemModel.ts"() {
|
|
2238
|
+
"use strict";
|
|
2239
|
+
init_runtime();
|
|
2240
|
+
}
|
|
2241
|
+
});
|
|
2242
|
+
|
|
2243
|
+
// src/generated_api/models/V0ProjectFileStorageUploadResponseModel.ts
|
|
2244
|
+
var init_V0ProjectFileStorageUploadResponseModel = __esm({
|
|
2245
|
+
"src/generated_api/models/V0ProjectFileStorageUploadResponseModel.ts"() {
|
|
2246
|
+
"use strict";
|
|
2247
|
+
init_runtime();
|
|
2248
|
+
init_V0ProjectFileStorageUploadResponseItemModel();
|
|
2249
|
+
}
|
|
2250
|
+
});
|
|
2251
|
+
|
|
2252
|
+
// src/generated_api/models/V0ProvProfileDocumentUpdateParams.ts
|
|
2253
|
+
var init_V0ProvProfileDocumentUpdateParams = __esm({
|
|
2254
|
+
"src/generated_api/models/V0ProvProfileDocumentUpdateParams.ts"() {
|
|
2255
|
+
"use strict";
|
|
2256
|
+
init_runtime();
|
|
2257
|
+
}
|
|
2258
|
+
});
|
|
2259
|
+
|
|
2260
|
+
// src/generated_api/models/V0ProvisionProfileDownloadResponseItemModel.ts
|
|
2261
|
+
var init_V0ProvisionProfileDownloadResponseItemModel = __esm({
|
|
2262
|
+
"src/generated_api/models/V0ProvisionProfileDownloadResponseItemModel.ts"() {
|
|
2263
|
+
"use strict";
|
|
2264
|
+
init_runtime();
|
|
2265
|
+
}
|
|
2266
|
+
});
|
|
2267
|
+
|
|
2268
|
+
// src/generated_api/models/V0ProvisionProfileDownloadResponseModel.ts
|
|
2269
|
+
var init_V0ProvisionProfileDownloadResponseModel = __esm({
|
|
2270
|
+
"src/generated_api/models/V0ProvisionProfileDownloadResponseModel.ts"() {
|
|
2271
|
+
"use strict";
|
|
2272
|
+
init_runtime();
|
|
2273
|
+
init_V0ProvisionProfileDownloadResponseItemModel();
|
|
2274
|
+
}
|
|
2275
|
+
});
|
|
2276
|
+
|
|
2277
|
+
// src/generated_api/models/V0ProvisionProfileResponseItemModel.ts
|
|
2278
|
+
var init_V0ProvisionProfileResponseItemModel = __esm({
|
|
2279
|
+
"src/generated_api/models/V0ProvisionProfileResponseItemModel.ts"() {
|
|
2280
|
+
"use strict";
|
|
2281
|
+
init_runtime();
|
|
2282
|
+
}
|
|
2283
|
+
});
|
|
2284
|
+
|
|
2285
|
+
// src/generated_api/models/V0ProvisionProfileListResponseModel.ts
|
|
2286
|
+
var init_V0ProvisionProfileListResponseModel = __esm({
|
|
2287
|
+
"src/generated_api/models/V0ProvisionProfileListResponseModel.ts"() {
|
|
2288
|
+
"use strict";
|
|
2289
|
+
init_runtime();
|
|
2290
|
+
init_V0ProvisionProfileResponseItemModel();
|
|
2291
|
+
init_V0PagingResponseModel();
|
|
2292
|
+
}
|
|
2293
|
+
});
|
|
2294
|
+
|
|
2295
|
+
// src/generated_api/models/V0ProvisionProfileResponseModel.ts
|
|
2296
|
+
var init_V0ProvisionProfileResponseModel = __esm({
|
|
2297
|
+
"src/generated_api/models/V0ProvisionProfileResponseModel.ts"() {
|
|
2298
|
+
"use strict";
|
|
2299
|
+
init_runtime();
|
|
2300
|
+
init_V0ProvisionProfileResponseItemModel();
|
|
2301
|
+
}
|
|
2302
|
+
});
|
|
2303
|
+
|
|
2304
|
+
// src/generated_api/models/V0ProvisionProfileUploadParams.ts
|
|
2305
|
+
var init_V0ProvisionProfileUploadParams = __esm({
|
|
2306
|
+
"src/generated_api/models/V0ProvisionProfileUploadParams.ts"() {
|
|
2307
|
+
"use strict";
|
|
2308
|
+
init_runtime();
|
|
2309
|
+
}
|
|
2310
|
+
});
|
|
2311
|
+
|
|
2312
|
+
// src/generated_api/models/V0ProvisionProfileUploadResponseItemModel.ts
|
|
2313
|
+
var init_V0ProvisionProfileUploadResponseItemModel = __esm({
|
|
2314
|
+
"src/generated_api/models/V0ProvisionProfileUploadResponseItemModel.ts"() {
|
|
2315
|
+
"use strict";
|
|
2316
|
+
init_runtime();
|
|
2317
|
+
}
|
|
2318
|
+
});
|
|
2319
|
+
|
|
2320
|
+
// src/generated_api/models/V0ProvisionProfileUploadResponseModel.ts
|
|
2321
|
+
var init_V0ProvisionProfileUploadResponseModel = __esm({
|
|
2322
|
+
"src/generated_api/models/V0ProvisionProfileUploadResponseModel.ts"() {
|
|
2323
|
+
"use strict";
|
|
2324
|
+
init_runtime();
|
|
2325
|
+
init_V0ProvisionProfileUploadResponseItemModel();
|
|
2326
|
+
}
|
|
2327
|
+
});
|
|
2328
|
+
|
|
2329
|
+
// src/generated_api/models/V0SSHKeyRespModel.ts
|
|
2330
|
+
var init_V0SSHKeyRespModel = __esm({
|
|
2331
|
+
"src/generated_api/models/V0SSHKeyRespModel.ts"() {
|
|
2332
|
+
"use strict";
|
|
2333
|
+
init_runtime();
|
|
2334
|
+
}
|
|
2335
|
+
});
|
|
2336
|
+
|
|
2337
|
+
// src/generated_api/models/V0SSHKeyUploadParams.ts
|
|
2338
|
+
var init_V0SSHKeyUploadParams = __esm({
|
|
2339
|
+
"src/generated_api/models/V0SSHKeyUploadParams.ts"() {
|
|
2340
|
+
"use strict";
|
|
2341
|
+
init_runtime();
|
|
2342
|
+
}
|
|
2343
|
+
});
|
|
2344
|
+
|
|
2345
|
+
// src/generated_api/models/V0TestDeviceResponseItemModel.ts
|
|
2346
|
+
var init_V0TestDeviceResponseItemModel = __esm({
|
|
2347
|
+
"src/generated_api/models/V0TestDeviceResponseItemModel.ts"() {
|
|
2348
|
+
"use strict";
|
|
2349
|
+
init_runtime();
|
|
2350
|
+
}
|
|
2351
|
+
});
|
|
2352
|
+
|
|
2353
|
+
// src/generated_api/models/V0TestDeviceListResponseModel.ts
|
|
2354
|
+
var init_V0TestDeviceListResponseModel = __esm({
|
|
2355
|
+
"src/generated_api/models/V0TestDeviceListResponseModel.ts"() {
|
|
2356
|
+
"use strict";
|
|
2357
|
+
init_runtime();
|
|
2358
|
+
init_V0TestDeviceResponseItemModel();
|
|
2359
|
+
}
|
|
2360
|
+
});
|
|
2361
|
+
|
|
2362
|
+
// src/generated_api/models/V0UserProfileDataModel.ts
|
|
2363
|
+
var init_V0UserProfileDataModel = __esm({
|
|
2364
|
+
"src/generated_api/models/V0UserProfileDataModel.ts"() {
|
|
2365
|
+
"use strict";
|
|
2366
|
+
init_runtime();
|
|
2367
|
+
}
|
|
2368
|
+
});
|
|
2369
|
+
|
|
2370
|
+
// src/generated_api/models/V0UserProfileRespModel.ts
|
|
2371
|
+
var init_V0UserProfileRespModel = __esm({
|
|
2372
|
+
"src/generated_api/models/V0UserProfileRespModel.ts"() {
|
|
2373
|
+
"use strict";
|
|
2374
|
+
init_runtime();
|
|
2375
|
+
init_V0UserProfileDataModel();
|
|
2376
|
+
}
|
|
2377
|
+
});
|
|
2378
|
+
|
|
2379
|
+
// src/generated_api/models/V0WebhookDeliveryItemResponseModel.ts
|
|
2380
|
+
var init_V0WebhookDeliveryItemResponseModel = __esm({
|
|
2381
|
+
"src/generated_api/models/V0WebhookDeliveryItemResponseModel.ts"() {
|
|
2382
|
+
"use strict";
|
|
2383
|
+
init_runtime();
|
|
2384
|
+
}
|
|
2385
|
+
});
|
|
2386
|
+
|
|
2387
|
+
// src/generated_api/models/V0WebhookDeliveryItemShowResponseModel.ts
|
|
2388
|
+
var init_V0WebhookDeliveryItemShowResponseModel = __esm({
|
|
2389
|
+
"src/generated_api/models/V0WebhookDeliveryItemShowResponseModel.ts"() {
|
|
2390
|
+
"use strict";
|
|
2391
|
+
init_runtime();
|
|
2392
|
+
init_V0WebhookDeliveryItemResponseModel();
|
|
2393
|
+
}
|
|
2394
|
+
});
|
|
2395
|
+
|
|
2396
|
+
// src/generated_api/models/V0WebhookRespModel.ts
|
|
2397
|
+
var init_V0WebhookRespModel = __esm({
|
|
2398
|
+
"src/generated_api/models/V0WebhookRespModel.ts"() {
|
|
2399
|
+
"use strict";
|
|
2400
|
+
init_runtime();
|
|
2401
|
+
}
|
|
2402
|
+
});
|
|
2403
|
+
|
|
2404
|
+
// src/generated_api/models/index.ts
|
|
2405
|
+
var init_models = __esm({
|
|
2406
|
+
"src/generated_api/models/index.ts"() {
|
|
2407
|
+
"use strict";
|
|
2408
|
+
init_AddonsAddon();
|
|
2409
|
+
init_AddonsDeveloperLink();
|
|
2410
|
+
init_AddonsFeature();
|
|
2411
|
+
init_AddonsPlan();
|
|
2412
|
+
init_AddonsSetupGuide();
|
|
2413
|
+
init_AddonsSetupInstruction();
|
|
2414
|
+
init_AppRolesQuery200Response();
|
|
2415
|
+
init_AppSecretCreateRequest();
|
|
2416
|
+
init_AppSecretUpdateRequest();
|
|
2417
|
+
init_AppSecretsShow200Response();
|
|
2418
|
+
init_GroupMemberAddRequest();
|
|
2419
|
+
init_MemberAddRequest();
|
|
2420
|
+
init_OrganizationGroupAddRequest();
|
|
2421
|
+
init_OrganizationSecretCreateRequest();
|
|
2422
|
+
init_PipelineabledomainArtifactMeta();
|
|
2423
|
+
init_PipelineabledomainBuildToolInvocation();
|
|
2424
|
+
init_PipelineabledomainEnvironments();
|
|
2425
|
+
init_PipelineabledomainLocalConfig();
|
|
2426
|
+
init_PipelineabledomainTriggerParams();
|
|
2427
|
+
init_SecretList200Response();
|
|
2428
|
+
init_SecretUpsertRequest();
|
|
2429
|
+
init_SecretValueGet200Response();
|
|
2430
|
+
init_ServiceDtoCreatedSecretNoValue();
|
|
2431
|
+
init_ServiceDtoGroup();
|
|
2432
|
+
init_ServiceDtoMember();
|
|
2433
|
+
init_ServiceProxyErrorRespModel();
|
|
2434
|
+
init_ServiceStandardErrorRespModel();
|
|
2435
|
+
init_V0ActivityEventListResponseModel();
|
|
2436
|
+
init_V0ActivityEventResponseItemModel();
|
|
2437
|
+
init_V0AddOnAppResponseItemModel();
|
|
2438
|
+
init_V0AddonsListResponseModel();
|
|
2439
|
+
init_V0AddonsShowResponseModel();
|
|
2440
|
+
init_V0AndroidKeystoreFileUploadParams();
|
|
2441
|
+
init_V0AppAddOnResponseItemModel();
|
|
2442
|
+
init_V0AppAddOnsListResponseModel();
|
|
2443
|
+
init_V0AppConfigRequestParam();
|
|
2444
|
+
init_V0AppDeleteRespModel();
|
|
2445
|
+
init_V0AppFinishParams();
|
|
2446
|
+
init_V0AppFinishRespModel();
|
|
2447
|
+
init_V0AppListResponseModel();
|
|
2448
|
+
init_V0AppNotificationSettingsParams();
|
|
2449
|
+
init_V0AppNotificationSettingsUpdateResponse();
|
|
2450
|
+
init_V0AppRespModel();
|
|
2451
|
+
init_V0AppResponseItemModel();
|
|
2452
|
+
init_V0AppShowResponseModel();
|
|
2453
|
+
init_V0AppUpdateParams();
|
|
2454
|
+
init_V0AppUpdateRespModel();
|
|
2455
|
+
init_V0AppUploadParams();
|
|
2456
|
+
init_V0AppWebhookCreateParams();
|
|
2457
|
+
init_V0AppWebhookCreatedResponseModel();
|
|
2458
|
+
init_V0AppWebhookDeletedResponseModel();
|
|
2459
|
+
init_V0AppWebhookListResponseModel();
|
|
2460
|
+
init_V0AppWebhookResponseItemModel();
|
|
2461
|
+
init_V0AppWebhookResponseModel();
|
|
2462
|
+
init_V0AppWebhookUpdateParams();
|
|
2463
|
+
init_V0AppleAPICredentialResponseItem();
|
|
2464
|
+
init_V0AppleAPICredentialsListResponse();
|
|
2465
|
+
init_V0ArchivedBuildArtifact();
|
|
2466
|
+
init_V0ArchivedBuildListResponseModel();
|
|
2467
|
+
init_V0ArchivedBuildResponseItemModel();
|
|
2468
|
+
init_V0ArtifactDeleteResponseModel();
|
|
2469
|
+
init_V0ArtifactListElementResponseModel();
|
|
2470
|
+
init_V0ArtifactListResponseModel();
|
|
2471
|
+
init_V0ArtifactResponseItemModel();
|
|
2472
|
+
init_V0ArtifactShowResponseModel();
|
|
2473
|
+
init_V0ArtifactUpdateParams();
|
|
2474
|
+
init_V0BitriseYMLConfigGetResponse();
|
|
2475
|
+
init_V0BitriseYMLConfigUpdateParams();
|
|
2476
|
+
init_V0BranchListResponseModel();
|
|
2477
|
+
init_V0BuildAbortParams();
|
|
2478
|
+
init_V0BuildAbortResponseModel();
|
|
2479
|
+
init_V0BuildCertificateDownloadResponseItemModel();
|
|
2480
|
+
init_V0BuildCertificateDownloadResponseModel();
|
|
2481
|
+
init_V0BuildCertificateListResponseModel();
|
|
2482
|
+
init_V0BuildCertificateResponseItemModel();
|
|
2483
|
+
init_V0BuildCertificateResponseModel();
|
|
2484
|
+
init_V0BuildCertificateUpdateParams();
|
|
2485
|
+
init_V0BuildCertificateUploadParams();
|
|
2486
|
+
init_V0BuildCertificateUploadResponseItemModel();
|
|
2487
|
+
init_V0BuildCertificateUploadResponseModel();
|
|
2488
|
+
init_V0BuildListAllResponseItemModel();
|
|
2489
|
+
init_V0BuildListAllResponseModel();
|
|
2490
|
+
init_V0BuildListResponseModel();
|
|
2491
|
+
init_V0BuildParamsEnvironment();
|
|
2492
|
+
init_V0BuildRequestListResponseModel();
|
|
2493
|
+
init_V0BuildRequestResponseItemModel();
|
|
2494
|
+
init_V0BuildRequestUpdateParams();
|
|
2495
|
+
init_V0BuildRequestUpdateResponseModel();
|
|
2496
|
+
init_V0BuildResponseItemModel();
|
|
2497
|
+
init_V0BuildShowResponseModel();
|
|
2498
|
+
init_V0BuildTriggerParams();
|
|
2499
|
+
init_V0BuildTriggerParamsBuildParams();
|
|
2500
|
+
init_V0BuildTriggerParamsHookInfo();
|
|
2501
|
+
init_V0BuildTriggerRespItemModel();
|
|
2502
|
+
init_V0BuildTriggerRespModel();
|
|
2503
|
+
init_V0BuildWorkflowListResponseModel();
|
|
2504
|
+
init_V0CacheItemDownloadResponseModel();
|
|
2505
|
+
init_V0CacheItemDownloadURLResponseModel();
|
|
2506
|
+
init_V0CacheItemListResponseItemModel();
|
|
2507
|
+
init_V0CacheItemListResponseModel();
|
|
2508
|
+
init_V0CommitPaths();
|
|
2509
|
+
init_V0OrganizationAppleAPICredentialResponseItem();
|
|
2510
|
+
init_V0OrganizationAppleAPICredentialsListResponse();
|
|
2511
|
+
init_V0OrganizationAppleAPICredetialCreateParams();
|
|
2512
|
+
init_V0OrganizationAppleAPICredetialCreateResponse();
|
|
2513
|
+
init_V0OrganizationAppleAPICredetialCreateResponseItem();
|
|
2514
|
+
init_V0OrganizationDataModel();
|
|
2515
|
+
init_V0OrganizationGoogleServiceCredentialResponseItem();
|
|
2516
|
+
init_V0OrganizationGoogleServiceCredentialsListResponse();
|
|
2517
|
+
init_V0OrganizationGoogleServiceCredetialCreateParams();
|
|
2518
|
+
init_V0OrganizationGoogleServiceCredetialCreateResponse();
|
|
2519
|
+
init_V0OrganizationGoogleServiceCredetialCreateResponseItem();
|
|
2520
|
+
init_V0OrganizationListRespModel();
|
|
2521
|
+
init_V0OrganizationOwner();
|
|
2522
|
+
init_V0OrganizationRespModel();
|
|
2523
|
+
init_V0OrganizationUpdateMachineTypeParams();
|
|
2524
|
+
init_V0OrganizationUpdateMachineTypeResponse();
|
|
2525
|
+
init_V0OrganizationUpdateMachineTypeResponseErrorsInner();
|
|
2526
|
+
init_V0OwnerAccountResponseModel();
|
|
2527
|
+
init_V0OwnerAddOnResponseItemModel();
|
|
2528
|
+
init_V0OwnerAddOnsListResponseModel();
|
|
2529
|
+
init_V0PagingResponseModel();
|
|
2530
|
+
init_V0PipelineAbortParams();
|
|
2531
|
+
init_V0PipelineListAllResponseItemModel();
|
|
2532
|
+
init_V0PipelineListAllResponseModel();
|
|
2533
|
+
init_V0PipelineListAllTriggerParams();
|
|
2534
|
+
init_V0PipelineListResponseItemModel();
|
|
2535
|
+
init_V0PipelineListResponseModel();
|
|
2536
|
+
init_V0PipelineRebuildParams();
|
|
2537
|
+
init_V0PipelineShowAppResponseModel();
|
|
2538
|
+
init_V0PipelineShowAttemptResponseModel();
|
|
2539
|
+
init_V0PipelineShowEnvironmentsResponseModel();
|
|
2540
|
+
init_V0PipelineShowResponseModel();
|
|
2541
|
+
init_V0PipelineShowStageResponseModel();
|
|
2542
|
+
init_V0PipelineShowTriggerParamsResponseModel();
|
|
2543
|
+
init_V0PipelineShowWorkflowResponseModel();
|
|
2544
|
+
init_V0ProjectFileStorageDocumentUpdateParams();
|
|
2545
|
+
init_V0ProjectFileStorageDownloadResponseItemModel();
|
|
2546
|
+
init_V0ProjectFileStorageDownloadResponseModel();
|
|
2547
|
+
init_V0ProjectFileStorageListResponseModel();
|
|
2548
|
+
init_V0ProjectFileStorageResponseItemModel();
|
|
2549
|
+
init_V0ProjectFileStorageResponseModel();
|
|
2550
|
+
init_V0ProjectFileStorageUploadParams();
|
|
2551
|
+
init_V0ProjectFileStorageUploadResponseItemModel();
|
|
2552
|
+
init_V0ProjectFileStorageUploadResponseModel();
|
|
2553
|
+
init_V0ProvProfileDocumentUpdateParams();
|
|
2554
|
+
init_V0ProvisionProfileDownloadResponseItemModel();
|
|
2555
|
+
init_V0ProvisionProfileDownloadResponseModel();
|
|
2556
|
+
init_V0ProvisionProfileListResponseModel();
|
|
2557
|
+
init_V0ProvisionProfileResponseItemModel();
|
|
2558
|
+
init_V0ProvisionProfileResponseModel();
|
|
2559
|
+
init_V0ProvisionProfileUploadParams();
|
|
2560
|
+
init_V0ProvisionProfileUploadResponseItemModel();
|
|
2561
|
+
init_V0ProvisionProfileUploadResponseModel();
|
|
2562
|
+
init_V0SSHKeyRespModel();
|
|
2563
|
+
init_V0SSHKeyUploadParams();
|
|
2564
|
+
init_V0TestDeviceListResponseModel();
|
|
2565
|
+
init_V0TestDeviceResponseItemModel();
|
|
2566
|
+
init_V0UserProfileDataModel();
|
|
2567
|
+
init_V0UserProfileRespModel();
|
|
2568
|
+
init_V0WebhookDeliveryItemResponseModel();
|
|
2569
|
+
init_V0WebhookDeliveryItemShowResponseModel();
|
|
2570
|
+
init_V0WebhookRespModel();
|
|
2571
|
+
init_WebsiteBitriseYMLLocation();
|
|
2572
|
+
}
|
|
2573
|
+
});
|
|
2574
|
+
|
|
2575
|
+
// src/generated_api/apis/ActivityApi.ts
|
|
2576
|
+
var init_ActivityApi = __esm({
|
|
2577
|
+
"src/generated_api/apis/ActivityApi.ts"() {
|
|
2578
|
+
"use strict";
|
|
2579
|
+
init_runtime();
|
|
2580
|
+
init_models();
|
|
2581
|
+
}
|
|
2582
|
+
});
|
|
2583
|
+
|
|
2584
|
+
// src/generated_api/apis/AddonsApi.ts
|
|
2585
|
+
var init_AddonsApi = __esm({
|
|
2586
|
+
"src/generated_api/apis/AddonsApi.ts"() {
|
|
2587
|
+
"use strict";
|
|
2588
|
+
init_runtime();
|
|
2589
|
+
init_models();
|
|
2590
|
+
}
|
|
2591
|
+
});
|
|
2592
|
+
|
|
2593
|
+
// src/generated_api/apis/AndroidKeystoreFileApi.ts
|
|
2594
|
+
var init_AndroidKeystoreFileApi = __esm({
|
|
2595
|
+
"src/generated_api/apis/AndroidKeystoreFileApi.ts"() {
|
|
2596
|
+
"use strict";
|
|
2597
|
+
init_runtime();
|
|
2598
|
+
init_models();
|
|
2599
|
+
}
|
|
2600
|
+
});
|
|
2601
|
+
|
|
2602
|
+
// src/generated_api/apis/AppSetupApi.ts
|
|
2603
|
+
var init_AppSetupApi = __esm({
|
|
2604
|
+
"src/generated_api/apis/AppSetupApi.ts"() {
|
|
2605
|
+
"use strict";
|
|
2606
|
+
init_runtime();
|
|
2607
|
+
init_models();
|
|
2608
|
+
}
|
|
2609
|
+
});
|
|
2610
|
+
|
|
2611
|
+
// src/generated_api/apis/AppleApiCredentialsApi.ts
|
|
2612
|
+
var init_AppleApiCredentialsApi = __esm({
|
|
2613
|
+
"src/generated_api/apis/AppleApiCredentialsApi.ts"() {
|
|
2614
|
+
"use strict";
|
|
2615
|
+
init_runtime();
|
|
2616
|
+
init_models();
|
|
2617
|
+
}
|
|
2618
|
+
});
|
|
2619
|
+
|
|
2620
|
+
// src/generated_api/apis/ApplicationApi.ts
|
|
2621
|
+
var init_ApplicationApi = __esm({
|
|
2622
|
+
"src/generated_api/apis/ApplicationApi.ts"() {
|
|
2623
|
+
"use strict";
|
|
2624
|
+
init_runtime();
|
|
2625
|
+
init_models();
|
|
2626
|
+
}
|
|
2627
|
+
});
|
|
2628
|
+
|
|
2629
|
+
// src/generated_api/apis/BuildArtifactApi.ts
|
|
2630
|
+
var BuildArtifactApi;
|
|
2631
|
+
var init_BuildArtifactApi = __esm({
|
|
2632
|
+
"src/generated_api/apis/BuildArtifactApi.ts"() {
|
|
2633
|
+
"use strict";
|
|
2634
|
+
init_runtime();
|
|
2635
|
+
init_models();
|
|
2636
|
+
BuildArtifactApi = class extends BaseAPI {
|
|
2637
|
+
/**
|
|
2638
|
+
* Delete a build artifact of an app\'s build. The required parameters are app slug, build slug and artifact slug. You can fetch the build artifact slug if you first list all build artifacts of an app with the [/apps/](https://api-docs.bitrise.io/#/build-artifact/artifact-list) endpoint.
|
|
2639
|
+
* Delete a build artifact
|
|
2640
|
+
*/
|
|
2641
|
+
async artifactDeleteRaw(requestParameters, initOverrides) {
|
|
2642
|
+
if (requestParameters["appSlug"] == null) {
|
|
2643
|
+
throw new RequiredError(
|
|
2644
|
+
"appSlug",
|
|
2645
|
+
'Required parameter "appSlug" was null or undefined when calling artifactDelete().'
|
|
2646
|
+
);
|
|
2647
|
+
}
|
|
2648
|
+
if (requestParameters["buildSlug"] == null) {
|
|
2649
|
+
throw new RequiredError(
|
|
2650
|
+
"buildSlug",
|
|
2651
|
+
'Required parameter "buildSlug" was null or undefined when calling artifactDelete().'
|
|
2652
|
+
);
|
|
2653
|
+
}
|
|
2654
|
+
if (requestParameters["artifactSlug"] == null) {
|
|
2655
|
+
throw new RequiredError(
|
|
2656
|
+
"artifactSlug",
|
|
2657
|
+
'Required parameter "artifactSlug" was null or undefined when calling artifactDelete().'
|
|
2658
|
+
);
|
|
2659
|
+
}
|
|
2660
|
+
const queryParameters = {};
|
|
2661
|
+
const headerParameters = {};
|
|
2662
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2663
|
+
headerParameters["Authorization"] = await this.configuration.apiKey("Authorization");
|
|
2664
|
+
}
|
|
2665
|
+
const response = await this.request({
|
|
2666
|
+
path: `/apps/{app-slug}/builds/{build-slug}/artifacts/{artifact-slug}`.replace(`{${"app-slug"}}`, encodeURIComponent(String(requestParameters["appSlug"]))).replace(`{${"build-slug"}}`, encodeURIComponent(String(requestParameters["buildSlug"]))).replace(`{${"artifact-slug"}}`, encodeURIComponent(String(requestParameters["artifactSlug"]))),
|
|
2667
|
+
method: "DELETE",
|
|
2668
|
+
headers: headerParameters,
|
|
2669
|
+
query: queryParameters
|
|
2670
|
+
}, initOverrides);
|
|
2671
|
+
return new JSONApiResponse(response, (jsonValue) => V0ArtifactDeleteResponseModelFromJSON(jsonValue));
|
|
2672
|
+
}
|
|
2673
|
+
/**
|
|
2674
|
+
* Delete a build artifact of an app\'s build. The required parameters are app slug, build slug and artifact slug. You can fetch the build artifact slug if you first list all build artifacts of an app with the [/apps/](https://api-docs.bitrise.io/#/build-artifact/artifact-list) endpoint.
|
|
2675
|
+
* Delete a build artifact
|
|
2676
|
+
*/
|
|
2677
|
+
async artifactDelete(requestParameters, initOverrides) {
|
|
2678
|
+
const response = await this.artifactDeleteRaw(requestParameters, initOverrides);
|
|
2679
|
+
return await response.value();
|
|
2680
|
+
}
|
|
2681
|
+
/**
|
|
2682
|
+
* List all build artifacts that have been generated for an app\'s build. This endpoint can retrieve artifacts from the archive as well. You can use the created build artifact slugs from the response output to retrieve data of a specific build artifact with the [GET/apps/](https://api-docs.bitrise.io/#/build-artifact/artifact-show) endpoint or update a build artifact with the [PATCH/apps](https://api-docs.bitrise.io/#/build-artifact/artifact-update) endpoint.
|
|
2683
|
+
* Get a list of all build artifacts
|
|
2684
|
+
*/
|
|
2685
|
+
async artifactListRaw(requestParameters, initOverrides) {
|
|
2686
|
+
if (requestParameters["appSlug"] == null) {
|
|
2687
|
+
throw new RequiredError(
|
|
2688
|
+
"appSlug",
|
|
2689
|
+
'Required parameter "appSlug" was null or undefined when calling artifactList().'
|
|
2690
|
+
);
|
|
2691
|
+
}
|
|
2692
|
+
if (requestParameters["buildSlug"] == null) {
|
|
2693
|
+
throw new RequiredError(
|
|
2694
|
+
"buildSlug",
|
|
2695
|
+
'Required parameter "buildSlug" was null or undefined when calling artifactList().'
|
|
2696
|
+
);
|
|
2697
|
+
}
|
|
2698
|
+
const queryParameters = {};
|
|
2699
|
+
if (requestParameters["next"] != null) {
|
|
2700
|
+
queryParameters["next"] = requestParameters["next"];
|
|
2701
|
+
}
|
|
2702
|
+
if (requestParameters["limit"] != null) {
|
|
2703
|
+
queryParameters["limit"] = requestParameters["limit"];
|
|
2704
|
+
}
|
|
2705
|
+
const headerParameters = {};
|
|
2706
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2707
|
+
headerParameters["Bitrise-Addon-Auth-Token"] = await this.configuration.apiKey("Bitrise-Addon-Auth-Token");
|
|
2708
|
+
}
|
|
2709
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2710
|
+
headerParameters["Authorization"] = await this.configuration.apiKey("Authorization");
|
|
2711
|
+
}
|
|
2712
|
+
const response = await this.request({
|
|
2713
|
+
path: `/apps/{app-slug}/builds/{build-slug}/artifacts`.replace(`{${"app-slug"}}`, encodeURIComponent(String(requestParameters["appSlug"]))).replace(`{${"build-slug"}}`, encodeURIComponent(String(requestParameters["buildSlug"]))),
|
|
2714
|
+
method: "GET",
|
|
2715
|
+
headers: headerParameters,
|
|
2716
|
+
query: queryParameters
|
|
2717
|
+
}, initOverrides);
|
|
2718
|
+
return new JSONApiResponse(response, (jsonValue) => V0ArtifactListResponseModelFromJSON(jsonValue));
|
|
2719
|
+
}
|
|
2720
|
+
/**
|
|
2721
|
+
* List all build artifacts that have been generated for an app\'s build. This endpoint can retrieve artifacts from the archive as well. You can use the created build artifact slugs from the response output to retrieve data of a specific build artifact with the [GET/apps/](https://api-docs.bitrise.io/#/build-artifact/artifact-show) endpoint or update a build artifact with the [PATCH/apps](https://api-docs.bitrise.io/#/build-artifact/artifact-update) endpoint.
|
|
2722
|
+
* Get a list of all build artifacts
|
|
2723
|
+
*/
|
|
2724
|
+
async artifactList(requestParameters, initOverrides) {
|
|
2725
|
+
const response = await this.artifactListRaw(requestParameters, initOverrides);
|
|
2726
|
+
return await response.value();
|
|
2727
|
+
}
|
|
2728
|
+
/**
|
|
2729
|
+
* Retrieve data of a specific build artifact. The endpoint can retrieve archived artifacts as well. The response output contains a time-limited download url (expires in 10 minutes) and a public install-page URL. You can view the build artifact with both URLs, but the public install-page url will not work unless you [enable it](https://devcenter.bitrise.io/tutorials/deploy/bitrise-app-deployment/#enabling-public-page-for-the-app).
|
|
2730
|
+
* Get a specific build artifact
|
|
2731
|
+
*/
|
|
2732
|
+
async artifactShowRaw(requestParameters, initOverrides) {
|
|
2733
|
+
if (requestParameters["appSlug"] == null) {
|
|
2734
|
+
throw new RequiredError(
|
|
2735
|
+
"appSlug",
|
|
2736
|
+
'Required parameter "appSlug" was null or undefined when calling artifactShow().'
|
|
2737
|
+
);
|
|
2738
|
+
}
|
|
2739
|
+
if (requestParameters["buildSlug"] == null) {
|
|
2740
|
+
throw new RequiredError(
|
|
2741
|
+
"buildSlug",
|
|
2742
|
+
'Required parameter "buildSlug" was null or undefined when calling artifactShow().'
|
|
2743
|
+
);
|
|
2744
|
+
}
|
|
2745
|
+
if (requestParameters["artifactSlug"] == null) {
|
|
2746
|
+
throw new RequiredError(
|
|
2747
|
+
"artifactSlug",
|
|
2748
|
+
'Required parameter "artifactSlug" was null or undefined when calling artifactShow().'
|
|
2749
|
+
);
|
|
2750
|
+
}
|
|
2751
|
+
const queryParameters = {};
|
|
2752
|
+
if (requestParameters["download"] != null) {
|
|
2753
|
+
queryParameters["download"] = requestParameters["download"];
|
|
2754
|
+
}
|
|
2755
|
+
const headerParameters = {};
|
|
2756
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2757
|
+
headerParameters["Bitrise-Addon-Auth-Token"] = await this.configuration.apiKey("Bitrise-Addon-Auth-Token");
|
|
2758
|
+
}
|
|
2759
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2760
|
+
headerParameters["Authorization"] = await this.configuration.apiKey("Authorization");
|
|
2761
|
+
}
|
|
2762
|
+
const response = await this.request({
|
|
2763
|
+
path: `/apps/{app-slug}/builds/{build-slug}/artifacts/{artifact-slug}`.replace(`{${"app-slug"}}`, encodeURIComponent(String(requestParameters["appSlug"]))).replace(`{${"build-slug"}}`, encodeURIComponent(String(requestParameters["buildSlug"]))).replace(`{${"artifact-slug"}}`, encodeURIComponent(String(requestParameters["artifactSlug"]))),
|
|
2764
|
+
method: "GET",
|
|
2765
|
+
headers: headerParameters,
|
|
2766
|
+
query: queryParameters
|
|
2767
|
+
}, initOverrides);
|
|
2768
|
+
return new JSONApiResponse(response, (jsonValue) => V0ArtifactShowResponseModelFromJSON(jsonValue));
|
|
2769
|
+
}
|
|
2770
|
+
/**
|
|
2771
|
+
* Retrieve data of a specific build artifact. The endpoint can retrieve archived artifacts as well. The response output contains a time-limited download url (expires in 10 minutes) and a public install-page URL. You can view the build artifact with both URLs, but the public install-page url will not work unless you [enable it](https://devcenter.bitrise.io/tutorials/deploy/bitrise-app-deployment/#enabling-public-page-for-the-app).
|
|
2772
|
+
* Get a specific build artifact
|
|
2773
|
+
*/
|
|
2774
|
+
async artifactShow(requestParameters, initOverrides) {
|
|
2775
|
+
const response = await this.artifactShowRaw(requestParameters, initOverrides);
|
|
2776
|
+
return await response.value();
|
|
2777
|
+
}
|
|
2778
|
+
/**
|
|
2779
|
+
* Update the `is_public_page_enabled` attribute of your app\'s build. The required parameters are app slug, build slug and artifact slug. You can fetch the build artifact slug if you first list all build artifacts of an app with the [GET /apps/](https://api-docs.bitrise.io/#/build-artifact/artifact-list) endpoint.
|
|
2780
|
+
* Update a build artifact
|
|
2781
|
+
*/
|
|
2782
|
+
async artifactUpdateRaw(requestParameters, initOverrides) {
|
|
2783
|
+
if (requestParameters["appSlug"] == null) {
|
|
2784
|
+
throw new RequiredError(
|
|
2785
|
+
"appSlug",
|
|
2786
|
+
'Required parameter "appSlug" was null or undefined when calling artifactUpdate().'
|
|
2787
|
+
);
|
|
2788
|
+
}
|
|
2789
|
+
if (requestParameters["buildSlug"] == null) {
|
|
2790
|
+
throw new RequiredError(
|
|
2791
|
+
"buildSlug",
|
|
2792
|
+
'Required parameter "buildSlug" was null or undefined when calling artifactUpdate().'
|
|
2793
|
+
);
|
|
2794
|
+
}
|
|
2795
|
+
if (requestParameters["artifactSlug"] == null) {
|
|
2796
|
+
throw new RequiredError(
|
|
2797
|
+
"artifactSlug",
|
|
2798
|
+
'Required parameter "artifactSlug" was null or undefined when calling artifactUpdate().'
|
|
2799
|
+
);
|
|
2800
|
+
}
|
|
2801
|
+
if (requestParameters["artifactParams"] == null) {
|
|
2802
|
+
throw new RequiredError(
|
|
2803
|
+
"artifactParams",
|
|
2804
|
+
'Required parameter "artifactParams" was null or undefined when calling artifactUpdate().'
|
|
2805
|
+
);
|
|
2806
|
+
}
|
|
2807
|
+
const queryParameters = {};
|
|
2808
|
+
const headerParameters = {};
|
|
2809
|
+
headerParameters["Content-Type"] = "application/json";
|
|
2810
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2811
|
+
headerParameters["Authorization"] = await this.configuration.apiKey("Authorization");
|
|
2812
|
+
}
|
|
2813
|
+
const response = await this.request({
|
|
2814
|
+
path: `/apps/{app-slug}/builds/{build-slug}/artifacts/{artifact-slug}`.replace(`{${"app-slug"}}`, encodeURIComponent(String(requestParameters["appSlug"]))).replace(`{${"build-slug"}}`, encodeURIComponent(String(requestParameters["buildSlug"]))).replace(`{${"artifact-slug"}}`, encodeURIComponent(String(requestParameters["artifactSlug"]))),
|
|
2815
|
+
method: "PATCH",
|
|
2816
|
+
headers: headerParameters,
|
|
2817
|
+
query: queryParameters,
|
|
2818
|
+
body: V0ArtifactUpdateParamsToJSON(requestParameters["artifactParams"])
|
|
2819
|
+
}, initOverrides);
|
|
2820
|
+
return new JSONApiResponse(response, (jsonValue) => V0ArtifactShowResponseModelFromJSON(jsonValue));
|
|
2821
|
+
}
|
|
2822
|
+
/**
|
|
2823
|
+
* Update the `is_public_page_enabled` attribute of your app\'s build. The required parameters are app slug, build slug and artifact slug. You can fetch the build artifact slug if you first list all build artifacts of an app with the [GET /apps/](https://api-docs.bitrise.io/#/build-artifact/artifact-list) endpoint.
|
|
2824
|
+
* Update a build artifact
|
|
2825
|
+
*/
|
|
2826
|
+
async artifactUpdate(requestParameters, initOverrides) {
|
|
2827
|
+
const response = await this.artifactUpdateRaw(requestParameters, initOverrides);
|
|
2828
|
+
return await response.value();
|
|
2829
|
+
}
|
|
2830
|
+
};
|
|
2831
|
+
}
|
|
2832
|
+
});
|
|
2833
|
+
|
|
2834
|
+
// src/generated_api/apis/BuildCertificateApi.ts
|
|
2835
|
+
var init_BuildCertificateApi = __esm({
|
|
2836
|
+
"src/generated_api/apis/BuildCertificateApi.ts"() {
|
|
2837
|
+
"use strict";
|
|
2838
|
+
init_runtime();
|
|
2839
|
+
init_models();
|
|
2840
|
+
}
|
|
2841
|
+
});
|
|
2842
|
+
|
|
2843
|
+
// src/generated_api/apis/BuildRequestApi.ts
|
|
2844
|
+
var init_BuildRequestApi = __esm({
|
|
2845
|
+
"src/generated_api/apis/BuildRequestApi.ts"() {
|
|
2846
|
+
"use strict";
|
|
2847
|
+
init_runtime();
|
|
2848
|
+
init_models();
|
|
2849
|
+
}
|
|
2850
|
+
});
|
|
2851
|
+
|
|
2852
|
+
// src/generated_api/apis/BuildsApi.ts
|
|
2853
|
+
var BuildsApi;
|
|
2854
|
+
var init_BuildsApi = __esm({
|
|
2855
|
+
"src/generated_api/apis/BuildsApi.ts"() {
|
|
2856
|
+
"use strict";
|
|
2857
|
+
init_runtime();
|
|
2858
|
+
init_models();
|
|
2859
|
+
BuildsApi = class extends BaseAPI {
|
|
2860
|
+
/**
|
|
2861
|
+
* List the first 1000 archived builds of a specified Bitrise app. Set parameters to filter builds:
|
|
2862
|
+
* List 1000 archived builds of an app
|
|
2863
|
+
*/
|
|
2864
|
+
async archivedBuildsListRaw(requestParameters, initOverrides) {
|
|
2865
|
+
if (requestParameters["appSlug"] == null) {
|
|
2866
|
+
throw new RequiredError(
|
|
2867
|
+
"appSlug",
|
|
2868
|
+
'Required parameter "appSlug" was null or undefined when calling archivedBuildsList().'
|
|
2869
|
+
);
|
|
2870
|
+
}
|
|
2871
|
+
if (requestParameters["after"] == null) {
|
|
2872
|
+
throw new RequiredError(
|
|
2873
|
+
"after",
|
|
2874
|
+
'Required parameter "after" was null or undefined when calling archivedBuildsList().'
|
|
2875
|
+
);
|
|
2876
|
+
}
|
|
2877
|
+
if (requestParameters["before"] == null) {
|
|
2878
|
+
throw new RequiredError(
|
|
2879
|
+
"before",
|
|
2880
|
+
'Required parameter "before" was null or undefined when calling archivedBuildsList().'
|
|
2881
|
+
);
|
|
2882
|
+
}
|
|
2883
|
+
if (requestParameters["limit"] == null) {
|
|
2884
|
+
throw new RequiredError(
|
|
2885
|
+
"limit",
|
|
2886
|
+
'Required parameter "limit" was null or undefined when calling archivedBuildsList().'
|
|
2887
|
+
);
|
|
2888
|
+
}
|
|
2889
|
+
const queryParameters = {};
|
|
2890
|
+
if (requestParameters["after"] != null) {
|
|
2891
|
+
queryParameters["after"] = requestParameters["after"];
|
|
2892
|
+
}
|
|
2893
|
+
if (requestParameters["before"] != null) {
|
|
2894
|
+
queryParameters["before"] = requestParameters["before"];
|
|
2895
|
+
}
|
|
2896
|
+
if (requestParameters["limit"] != null) {
|
|
2897
|
+
queryParameters["limit"] = requestParameters["limit"];
|
|
2898
|
+
}
|
|
2899
|
+
const headerParameters = {};
|
|
2900
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2901
|
+
headerParameters["Bitrise-Addon-Auth-Token"] = await this.configuration.apiKey("Bitrise-Addon-Auth-Token");
|
|
2902
|
+
}
|
|
2903
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2904
|
+
headerParameters["Authorization"] = await this.configuration.apiKey("Authorization");
|
|
2905
|
+
}
|
|
2906
|
+
const response = await this.request({
|
|
2907
|
+
path: `/apps/{app-slug}/archived-builds`.replace(`{${"app-slug"}}`, encodeURIComponent(String(requestParameters["appSlug"]))),
|
|
2908
|
+
method: "GET",
|
|
2909
|
+
headers: headerParameters,
|
|
2910
|
+
query: queryParameters
|
|
2911
|
+
}, initOverrides);
|
|
2912
|
+
return new JSONApiResponse(response, (jsonValue) => V0ArchivedBuildListResponseModelFromJSON(jsonValue));
|
|
2913
|
+
}
|
|
2914
|
+
/**
|
|
2915
|
+
* List the first 1000 archived builds of a specified Bitrise app. Set parameters to filter builds:
|
|
2916
|
+
* List 1000 archived builds of an app
|
|
2917
|
+
*/
|
|
2918
|
+
async archivedBuildsList(requestParameters, initOverrides) {
|
|
2919
|
+
const response = await this.archivedBuildsListRaw(requestParameters, initOverrides);
|
|
2920
|
+
return await response.value();
|
|
2921
|
+
}
|
|
2922
|
+
/**
|
|
2923
|
+
* Abort a specific build. Set an abort reason with the `abort_reason` parameter. Use the `abort_with_success` parameter to abort a build but still count it as a successful one.
|
|
2924
|
+
* Abort a specific build
|
|
2925
|
+
*/
|
|
2926
|
+
async buildAbortRaw(requestParameters, initOverrides) {
|
|
2927
|
+
if (requestParameters["appSlug"] == null) {
|
|
2928
|
+
throw new RequiredError(
|
|
2929
|
+
"appSlug",
|
|
2930
|
+
'Required parameter "appSlug" was null or undefined when calling buildAbort().'
|
|
2931
|
+
);
|
|
2932
|
+
}
|
|
2933
|
+
if (requestParameters["buildSlug"] == null) {
|
|
2934
|
+
throw new RequiredError(
|
|
2935
|
+
"buildSlug",
|
|
2936
|
+
'Required parameter "buildSlug" was null or undefined when calling buildAbort().'
|
|
2937
|
+
);
|
|
2938
|
+
}
|
|
2939
|
+
if (requestParameters["buildAbortParams"] == null) {
|
|
2940
|
+
throw new RequiredError(
|
|
2941
|
+
"buildAbortParams",
|
|
2942
|
+
'Required parameter "buildAbortParams" was null or undefined when calling buildAbort().'
|
|
2943
|
+
);
|
|
2944
|
+
}
|
|
2945
|
+
const queryParameters = {};
|
|
2946
|
+
const headerParameters = {};
|
|
2947
|
+
headerParameters["Content-Type"] = "application/json";
|
|
2948
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2949
|
+
headerParameters["Bitrise-Addon-Auth-Token"] = await this.configuration.apiKey("Bitrise-Addon-Auth-Token");
|
|
2950
|
+
}
|
|
2951
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2952
|
+
headerParameters["Authorization"] = await this.configuration.apiKey("Authorization");
|
|
2953
|
+
}
|
|
2954
|
+
const response = await this.request({
|
|
2955
|
+
path: `/apps/{app-slug}/builds/{build-slug}/abort`.replace(`{${"app-slug"}}`, encodeURIComponent(String(requestParameters["appSlug"]))).replace(`{${"build-slug"}}`, encodeURIComponent(String(requestParameters["buildSlug"]))),
|
|
2956
|
+
method: "POST",
|
|
2957
|
+
headers: headerParameters,
|
|
2958
|
+
query: queryParameters,
|
|
2959
|
+
body: V0BuildAbortParamsToJSON(requestParameters["buildAbortParams"])
|
|
2960
|
+
}, initOverrides);
|
|
2961
|
+
return new JSONApiResponse(response, (jsonValue) => V0BuildAbortResponseModelFromJSON(jsonValue));
|
|
2962
|
+
}
|
|
2963
|
+
/**
|
|
2964
|
+
* Abort a specific build. Set an abort reason with the `abort_reason` parameter. Use the `abort_with_success` parameter to abort a build but still count it as a successful one.
|
|
2965
|
+
* Abort a specific build
|
|
2966
|
+
*/
|
|
2967
|
+
async buildAbort(requestParameters, initOverrides) {
|
|
2968
|
+
const response = await this.buildAbortRaw(requestParameters, initOverrides);
|
|
2969
|
+
return await response.value();
|
|
2970
|
+
}
|
|
2971
|
+
/**
|
|
2972
|
+
* Get the bitrise.yml file of one of the builds of a given app. This will return the `bitrise.yml` configuration with which the build ran. You can compare it to [the current bitrise.yml configuration](https://api-docs.bitrise.io/#/application/app-config-datastore-show) of the app.
|
|
2973
|
+
* Get the bitrise.yml of a build
|
|
2974
|
+
*/
|
|
2975
|
+
async buildBitriseYmlShowRaw(requestParameters, initOverrides) {
|
|
2976
|
+
if (requestParameters["appSlug"] == null) {
|
|
2977
|
+
throw new RequiredError(
|
|
2978
|
+
"appSlug",
|
|
2979
|
+
'Required parameter "appSlug" was null or undefined when calling buildBitriseYmlShow().'
|
|
2980
|
+
);
|
|
2981
|
+
}
|
|
2982
|
+
if (requestParameters["buildSlug"] == null) {
|
|
2983
|
+
throw new RequiredError(
|
|
2984
|
+
"buildSlug",
|
|
2985
|
+
'Required parameter "buildSlug" was null or undefined when calling buildBitriseYmlShow().'
|
|
2986
|
+
);
|
|
2987
|
+
}
|
|
2988
|
+
const queryParameters = {};
|
|
2989
|
+
const headerParameters = {};
|
|
2990
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2991
|
+
headerParameters["Bitrise-Addon-Auth-Token"] = await this.configuration.apiKey("Bitrise-Addon-Auth-Token");
|
|
2992
|
+
}
|
|
2993
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2994
|
+
headerParameters["Authorization"] = await this.configuration.apiKey("Authorization");
|
|
2995
|
+
}
|
|
2996
|
+
const response = await this.request({
|
|
2997
|
+
path: `/apps/{app-slug}/builds/{build-slug}/bitrise.yml`.replace(`{${"app-slug"}}`, encodeURIComponent(String(requestParameters["appSlug"]))).replace(`{${"build-slug"}}`, encodeURIComponent(String(requestParameters["buildSlug"]))),
|
|
2998
|
+
method: "GET",
|
|
2999
|
+
headers: headerParameters,
|
|
3000
|
+
query: queryParameters
|
|
3001
|
+
}, initOverrides);
|
|
3002
|
+
if (this.isJsonMime(response.headers.get("content-type"))) {
|
|
3003
|
+
return new JSONApiResponse(response);
|
|
3004
|
+
} else {
|
|
3005
|
+
return new TextApiResponse(response);
|
|
3006
|
+
}
|
|
3007
|
+
}
|
|
3008
|
+
/**
|
|
3009
|
+
* Get the bitrise.yml file of one of the builds of a given app. This will return the `bitrise.yml` configuration with which the build ran. You can compare it to [the current bitrise.yml configuration](https://api-docs.bitrise.io/#/application/app-config-datastore-show) of the app.
|
|
3010
|
+
* Get the bitrise.yml of a build
|
|
3011
|
+
*/
|
|
3012
|
+
async buildBitriseYmlShow(requestParameters, initOverrides) {
|
|
3013
|
+
const response = await this.buildBitriseYmlShowRaw(requestParameters, initOverrides);
|
|
3014
|
+
return await response.value();
|
|
3015
|
+
}
|
|
3016
|
+
/**
|
|
3017
|
+
* List all the builds of a specified Bitrise app. Set parameters to filter builds: for example, you can search for builds run with a given workflow or all builds that were triggered by Pull Requests. It returns all the relevant data of the build.
|
|
3018
|
+
* List all builds of an app
|
|
3019
|
+
*/
|
|
3020
|
+
async buildListRaw(requestParameters, initOverrides) {
|
|
3021
|
+
if (requestParameters["appSlug"] == null) {
|
|
3022
|
+
throw new RequiredError(
|
|
3023
|
+
"appSlug",
|
|
3024
|
+
'Required parameter "appSlug" was null or undefined when calling buildList().'
|
|
3025
|
+
);
|
|
3026
|
+
}
|
|
3027
|
+
const queryParameters = {};
|
|
3028
|
+
if (requestParameters["sortBy"] != null) {
|
|
3029
|
+
queryParameters["sort_by"] = requestParameters["sortBy"];
|
|
3030
|
+
}
|
|
3031
|
+
if (requestParameters["branch"] != null) {
|
|
3032
|
+
queryParameters["branch"] = requestParameters["branch"];
|
|
3033
|
+
}
|
|
3034
|
+
if (requestParameters["workflow"] != null) {
|
|
3035
|
+
queryParameters["workflow"] = requestParameters["workflow"];
|
|
3036
|
+
}
|
|
3037
|
+
if (requestParameters["commitMessage"] != null) {
|
|
3038
|
+
queryParameters["commit_message"] = requestParameters["commitMessage"];
|
|
3039
|
+
}
|
|
3040
|
+
if (requestParameters["triggerEventType"] != null) {
|
|
3041
|
+
queryParameters["trigger_event_type"] = requestParameters["triggerEventType"];
|
|
3042
|
+
}
|
|
3043
|
+
if (requestParameters["pullRequestId"] != null) {
|
|
3044
|
+
queryParameters["pull_request_id"] = requestParameters["pullRequestId"];
|
|
3045
|
+
}
|
|
3046
|
+
if (requestParameters["buildNumber"] != null) {
|
|
3047
|
+
queryParameters["build_number"] = requestParameters["buildNumber"];
|
|
3048
|
+
}
|
|
3049
|
+
if (requestParameters["after"] != null) {
|
|
3050
|
+
queryParameters["after"] = requestParameters["after"];
|
|
3051
|
+
}
|
|
3052
|
+
if (requestParameters["before"] != null) {
|
|
3053
|
+
queryParameters["before"] = requestParameters["before"];
|
|
3054
|
+
}
|
|
3055
|
+
if (requestParameters["status"] != null) {
|
|
3056
|
+
queryParameters["status"] = requestParameters["status"];
|
|
3057
|
+
}
|
|
3058
|
+
if (requestParameters["isPipelineBuild"] != null) {
|
|
3059
|
+
queryParameters["is_pipeline_build"] = requestParameters["isPipelineBuild"];
|
|
3060
|
+
}
|
|
3061
|
+
if (requestParameters["next"] != null) {
|
|
3062
|
+
queryParameters["next"] = requestParameters["next"];
|
|
3063
|
+
}
|
|
3064
|
+
if (requestParameters["limit"] != null) {
|
|
3065
|
+
queryParameters["limit"] = requestParameters["limit"];
|
|
3066
|
+
}
|
|
3067
|
+
const headerParameters = {};
|
|
3068
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
3069
|
+
headerParameters["Bitrise-Addon-Auth-Token"] = await this.configuration.apiKey("Bitrise-Addon-Auth-Token");
|
|
3070
|
+
}
|
|
3071
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
3072
|
+
headerParameters["Authorization"] = await this.configuration.apiKey("Authorization");
|
|
3073
|
+
}
|
|
3074
|
+
const response = await this.request({
|
|
3075
|
+
path: `/apps/{app-slug}/builds`.replace(`{${"app-slug"}}`, encodeURIComponent(String(requestParameters["appSlug"]))),
|
|
3076
|
+
method: "GET",
|
|
3077
|
+
headers: headerParameters,
|
|
3078
|
+
query: queryParameters
|
|
3079
|
+
}, initOverrides);
|
|
3080
|
+
return new JSONApiResponse(response, (jsonValue) => V0BuildListResponseModelFromJSON(jsonValue));
|
|
3081
|
+
}
|
|
3082
|
+
/**
|
|
3083
|
+
* List all the builds of a specified Bitrise app. Set parameters to filter builds: for example, you can search for builds run with a given workflow or all builds that were triggered by Pull Requests. It returns all the relevant data of the build.
|
|
3084
|
+
* List all builds of an app
|
|
3085
|
+
*/
|
|
3086
|
+
async buildList(requestParameters, initOverrides) {
|
|
3087
|
+
const response = await this.buildListRaw(requestParameters, initOverrides);
|
|
3088
|
+
return await response.value();
|
|
3089
|
+
}
|
|
3090
|
+
/**
|
|
3091
|
+
* List all the Bitrise builds that can be accessed with the authenticated account. Filter builds based on their owner, using the owner slug, or the status of the build.
|
|
3092
|
+
* List all builds
|
|
3093
|
+
*/
|
|
3094
|
+
async buildListAllRaw(requestParameters, initOverrides) {
|
|
3095
|
+
const queryParameters = {};
|
|
3096
|
+
if (requestParameters["ownerSlug"] != null) {
|
|
3097
|
+
queryParameters["owner_slug"] = requestParameters["ownerSlug"];
|
|
3098
|
+
}
|
|
3099
|
+
if (requestParameters["isOnHold"] != null) {
|
|
3100
|
+
queryParameters["is_on_hold"] = requestParameters["isOnHold"];
|
|
3101
|
+
}
|
|
3102
|
+
if (requestParameters["status"] != null) {
|
|
3103
|
+
queryParameters["status"] = requestParameters["status"];
|
|
3104
|
+
}
|
|
3105
|
+
if (requestParameters["next"] != null) {
|
|
3106
|
+
queryParameters["next"] = requestParameters["next"];
|
|
3107
|
+
}
|
|
3108
|
+
if (requestParameters["limit"] != null) {
|
|
3109
|
+
queryParameters["limit"] = requestParameters["limit"];
|
|
3110
|
+
}
|
|
3111
|
+
const headerParameters = {};
|
|
3112
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
3113
|
+
headerParameters["Authorization"] = await this.configuration.apiKey("Authorization");
|
|
3114
|
+
}
|
|
3115
|
+
const response = await this.request({
|
|
3116
|
+
path: `/builds`,
|
|
3117
|
+
method: "GET",
|
|
3118
|
+
headers: headerParameters,
|
|
3119
|
+
query: queryParameters
|
|
3120
|
+
}, initOverrides);
|
|
3121
|
+
return new JSONApiResponse(response, (jsonValue) => V0BuildListAllResponseModelFromJSON(jsonValue));
|
|
3122
|
+
}
|
|
3123
|
+
/**
|
|
3124
|
+
* List all the Bitrise builds that can be accessed with the authenticated account. Filter builds based on their owner, using the owner slug, or the status of the build.
|
|
3125
|
+
* List all builds
|
|
3126
|
+
*/
|
|
3127
|
+
async buildListAll(requestParameters = {}, initOverrides) {
|
|
3128
|
+
const response = await this.buildListAllRaw(requestParameters, initOverrides);
|
|
3129
|
+
return await response.value();
|
|
3130
|
+
}
|
|
3131
|
+
/**
|
|
3132
|
+
* Get the build log of a specified build of a Bitrise app. You can get the build slug either by calling the [/builds](https://api-docs.bitrise.io/#/builds/build-list) endpoint or by clicking on the build on bitrise.io and copying the slug from the URL. Preview of the log is returned in `log_chunks` field in JSON format. You can download the full raw log in txt by using the signed url returned in `expiring_raw_log_url`. Be aware that this url is expiring in 10 minutes!
|
|
3133
|
+
* Get the build log of a build
|
|
3134
|
+
*/
|
|
3135
|
+
async buildLogRaw(requestParameters, initOverrides) {
|
|
3136
|
+
if (requestParameters["appSlug"] == null) {
|
|
3137
|
+
throw new RequiredError(
|
|
3138
|
+
"appSlug",
|
|
3139
|
+
'Required parameter "appSlug" was null or undefined when calling buildLog().'
|
|
3140
|
+
);
|
|
3141
|
+
}
|
|
3142
|
+
if (requestParameters["buildSlug"] == null) {
|
|
3143
|
+
throw new RequiredError(
|
|
3144
|
+
"buildSlug",
|
|
3145
|
+
'Required parameter "buildSlug" was null or undefined when calling buildLog().'
|
|
3146
|
+
);
|
|
3147
|
+
}
|
|
3148
|
+
const queryParameters = {};
|
|
3149
|
+
const headerParameters = {};
|
|
3150
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
3151
|
+
headerParameters["Bitrise-Addon-Auth-Token"] = await this.configuration.apiKey("Bitrise-Addon-Auth-Token");
|
|
3152
|
+
}
|
|
3153
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
3154
|
+
headerParameters["Authorization"] = await this.configuration.apiKey("Authorization");
|
|
3155
|
+
}
|
|
3156
|
+
const response = await this.request({
|
|
3157
|
+
path: `/apps/{app-slug}/builds/{build-slug}/log`.replace(`{${"app-slug"}}`, encodeURIComponent(String(requestParameters["appSlug"]))).replace(`{${"build-slug"}}`, encodeURIComponent(String(requestParameters["buildSlug"]))),
|
|
3158
|
+
method: "GET",
|
|
3159
|
+
headers: headerParameters,
|
|
3160
|
+
query: queryParameters
|
|
3161
|
+
}, initOverrides);
|
|
3162
|
+
return new VoidApiResponse(response);
|
|
3163
|
+
}
|
|
3164
|
+
/**
|
|
3165
|
+
* Get the build log of a specified build of a Bitrise app. You can get the build slug either by calling the [/builds](https://api-docs.bitrise.io/#/builds/build-list) endpoint or by clicking on the build on bitrise.io and copying the slug from the URL. Preview of the log is returned in `log_chunks` field in JSON format. You can download the full raw log in txt by using the signed url returned in `expiring_raw_log_url`. Be aware that this url is expiring in 10 minutes!
|
|
3166
|
+
* Get the build log of a build
|
|
3167
|
+
*/
|
|
3168
|
+
async buildLog(requestParameters, initOverrides) {
|
|
3169
|
+
await this.buildLogRaw(requestParameters, initOverrides);
|
|
3170
|
+
}
|
|
3171
|
+
/**
|
|
3172
|
+
* Get the specified build of a given Bitrise app. You need to provide both an app slug and a build slug. You can get the build slug either by calling the [/builds](https://api-docs.bitrise.io/#/builds/build-list) endpoint or by clicking on the build on bitrise.io and copying the slug from the URL. The endpoint returns all the relevant data of the build.
|
|
3173
|
+
* Get a build of a given app
|
|
3174
|
+
*/
|
|
3175
|
+
async buildShowRaw(requestParameters, initOverrides) {
|
|
3176
|
+
if (requestParameters["appSlug"] == null) {
|
|
3177
|
+
throw new RequiredError(
|
|
3178
|
+
"appSlug",
|
|
3179
|
+
'Required parameter "appSlug" was null or undefined when calling buildShow().'
|
|
3180
|
+
);
|
|
3181
|
+
}
|
|
3182
|
+
if (requestParameters["buildSlug"] == null) {
|
|
3183
|
+
throw new RequiredError(
|
|
3184
|
+
"buildSlug",
|
|
3185
|
+
'Required parameter "buildSlug" was null or undefined when calling buildShow().'
|
|
3186
|
+
);
|
|
3187
|
+
}
|
|
3188
|
+
const queryParameters = {};
|
|
3189
|
+
const headerParameters = {};
|
|
3190
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
3191
|
+
headerParameters["Bitrise-Addon-Auth-Token"] = await this.configuration.apiKey("Bitrise-Addon-Auth-Token");
|
|
3192
|
+
}
|
|
3193
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
3194
|
+
headerParameters["Authorization"] = await this.configuration.apiKey("Authorization");
|
|
3195
|
+
}
|
|
3196
|
+
const response = await this.request({
|
|
3197
|
+
path: `/apps/{app-slug}/builds/{build-slug}`.replace(`{${"app-slug"}}`, encodeURIComponent(String(requestParameters["appSlug"]))).replace(`{${"build-slug"}}`, encodeURIComponent(String(requestParameters["buildSlug"]))),
|
|
3198
|
+
method: "GET",
|
|
3199
|
+
headers: headerParameters,
|
|
3200
|
+
query: queryParameters
|
|
3201
|
+
}, initOverrides);
|
|
3202
|
+
return new JSONApiResponse(response, (jsonValue) => V0BuildShowResponseModelFromJSON(jsonValue));
|
|
3203
|
+
}
|
|
3204
|
+
/**
|
|
3205
|
+
* Get the specified build of a given Bitrise app. You need to provide both an app slug and a build slug. You can get the build slug either by calling the [/builds](https://api-docs.bitrise.io/#/builds/build-list) endpoint or by clicking on the build on bitrise.io and copying the slug from the URL. The endpoint returns all the relevant data of the build.
|
|
3206
|
+
* Get a build of a given app
|
|
3207
|
+
*/
|
|
3208
|
+
async buildShow(requestParameters, initOverrides) {
|
|
3209
|
+
const response = await this.buildShowRaw(requestParameters, initOverrides);
|
|
3210
|
+
return await response.value();
|
|
3211
|
+
}
|
|
3212
|
+
/**
|
|
3213
|
+
* Trigger a new build/pipeline. Specify an app slug and at least one parameter out of three: a git tag or git commit hash, a branch, or a workflow/pipeline ID. You can also set specific parameters for Pull Request builds/pipelines and define additional environment variables for your build/pipeline. [Check out our detailed guide](https://devcenter.bitrise.io/api/build-trigger/).
|
|
3214
|
+
* Trigger a new build/pipeline
|
|
3215
|
+
*/
|
|
3216
|
+
async buildTriggerRaw(requestParameters, initOverrides) {
|
|
3217
|
+
if (requestParameters["appSlug"] == null) {
|
|
3218
|
+
throw new RequiredError(
|
|
3219
|
+
"appSlug",
|
|
3220
|
+
'Required parameter "appSlug" was null or undefined when calling buildTrigger().'
|
|
3221
|
+
);
|
|
3222
|
+
}
|
|
3223
|
+
if (requestParameters["buildParams"] == null) {
|
|
3224
|
+
throw new RequiredError(
|
|
3225
|
+
"buildParams",
|
|
3226
|
+
'Required parameter "buildParams" was null or undefined when calling buildTrigger().'
|
|
3227
|
+
);
|
|
3228
|
+
}
|
|
3229
|
+
const queryParameters = {};
|
|
3230
|
+
const headerParameters = {};
|
|
3231
|
+
headerParameters["Content-Type"] = "application/json";
|
|
3232
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
3233
|
+
headerParameters["Bitrise-Addon-Auth-Token"] = await this.configuration.apiKey("Bitrise-Addon-Auth-Token");
|
|
3234
|
+
}
|
|
3235
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
3236
|
+
headerParameters["Authorization"] = await this.configuration.apiKey("Authorization");
|
|
3237
|
+
}
|
|
3238
|
+
const response = await this.request({
|
|
3239
|
+
path: `/apps/{app-slug}/builds`.replace(`{${"app-slug"}}`, encodeURIComponent(String(requestParameters["appSlug"]))),
|
|
3240
|
+
method: "POST",
|
|
3241
|
+
headers: headerParameters,
|
|
3242
|
+
query: queryParameters,
|
|
3243
|
+
body: V0BuildTriggerParamsToJSON(requestParameters["buildParams"])
|
|
3244
|
+
}, initOverrides);
|
|
3245
|
+
return new JSONApiResponse(response, (jsonValue) => V0BuildTriggerRespModelFromJSON(jsonValue));
|
|
3246
|
+
}
|
|
3247
|
+
/**
|
|
3248
|
+
* Trigger a new build/pipeline. Specify an app slug and at least one parameter out of three: a git tag or git commit hash, a branch, or a workflow/pipeline ID. You can also set specific parameters for Pull Request builds/pipelines and define additional environment variables for your build/pipeline. [Check out our detailed guide](https://devcenter.bitrise.io/api/build-trigger/).
|
|
3249
|
+
* Trigger a new build/pipeline
|
|
3250
|
+
*/
|
|
3251
|
+
async buildTrigger(requestParameters, initOverrides) {
|
|
3252
|
+
const response = await this.buildTriggerRaw(requestParameters, initOverrides);
|
|
3253
|
+
return await response.value();
|
|
3254
|
+
}
|
|
3255
|
+
/**
|
|
3256
|
+
* List the workflows that were triggered at any time for a given Bitrise app. Note that it might list workflows that are currently not defined in the app\'s `bitrise.yml` configuration - and conversely, workflows that were never triggered will not be listed even if they are defined in the `bitrise.yml` file.
|
|
3257
|
+
* List the workflows of an app
|
|
3258
|
+
*/
|
|
3259
|
+
async buildWorkflowListRaw(requestParameters, initOverrides) {
|
|
3260
|
+
if (requestParameters["appSlug"] == null) {
|
|
3261
|
+
throw new RequiredError(
|
|
3262
|
+
"appSlug",
|
|
3263
|
+
'Required parameter "appSlug" was null or undefined when calling buildWorkflowList().'
|
|
3264
|
+
);
|
|
3265
|
+
}
|
|
3266
|
+
const queryParameters = {};
|
|
3267
|
+
const headerParameters = {};
|
|
3268
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
3269
|
+
headerParameters["Bitrise-Addon-Auth-Token"] = await this.configuration.apiKey("Bitrise-Addon-Auth-Token");
|
|
3270
|
+
}
|
|
3271
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
3272
|
+
headerParameters["Authorization"] = await this.configuration.apiKey("Authorization");
|
|
3273
|
+
}
|
|
3274
|
+
const response = await this.request({
|
|
3275
|
+
path: `/apps/{app-slug}/build-workflows`.replace(`{${"app-slug"}}`, encodeURIComponent(String(requestParameters["appSlug"]))),
|
|
3276
|
+
method: "GET",
|
|
3277
|
+
headers: headerParameters,
|
|
3278
|
+
query: queryParameters
|
|
3279
|
+
}, initOverrides);
|
|
3280
|
+
return new JSONApiResponse(response, (jsonValue) => V0BuildWorkflowListResponseModelFromJSON(jsonValue));
|
|
3281
|
+
}
|
|
3282
|
+
/**
|
|
3283
|
+
* List the workflows that were triggered at any time for a given Bitrise app. Note that it might list workflows that are currently not defined in the app\'s `bitrise.yml` configuration - and conversely, workflows that were never triggered will not be listed even if they are defined in the `bitrise.yml` file.
|
|
3284
|
+
* List the workflows of an app
|
|
3285
|
+
*/
|
|
3286
|
+
async buildWorkflowList(requestParameters, initOverrides) {
|
|
3287
|
+
const response = await this.buildWorkflowListRaw(requestParameters, initOverrides);
|
|
3288
|
+
return await response.value();
|
|
3289
|
+
}
|
|
3290
|
+
};
|
|
3291
|
+
}
|
|
3292
|
+
});
|
|
3293
|
+
|
|
3294
|
+
// src/generated_api/apis/GenericProjectFileApi.ts
|
|
3295
|
+
var init_GenericProjectFileApi = __esm({
|
|
3296
|
+
"src/generated_api/apis/GenericProjectFileApi.ts"() {
|
|
3297
|
+
"use strict";
|
|
3298
|
+
init_runtime();
|
|
3299
|
+
init_models();
|
|
3300
|
+
}
|
|
3301
|
+
});
|
|
3302
|
+
|
|
3303
|
+
// src/generated_api/apis/GoogleServiceCredentialsApi.ts
|
|
3304
|
+
var init_GoogleServiceCredentialsApi = __esm({
|
|
3305
|
+
"src/generated_api/apis/GoogleServiceCredentialsApi.ts"() {
|
|
3306
|
+
"use strict";
|
|
3307
|
+
init_runtime();
|
|
3308
|
+
init_models();
|
|
3309
|
+
}
|
|
3310
|
+
});
|
|
3311
|
+
|
|
3312
|
+
// src/generated_api/apis/GroupsApi.ts
|
|
3313
|
+
var init_GroupsApi = __esm({
|
|
3314
|
+
"src/generated_api/apis/GroupsApi.ts"() {
|
|
3315
|
+
"use strict";
|
|
3316
|
+
init_runtime();
|
|
3317
|
+
init_models();
|
|
3318
|
+
}
|
|
3319
|
+
});
|
|
3320
|
+
|
|
3321
|
+
// src/generated_api/apis/KeyValueCacheApi.ts
|
|
3322
|
+
var init_KeyValueCacheApi = __esm({
|
|
3323
|
+
"src/generated_api/apis/KeyValueCacheApi.ts"() {
|
|
3324
|
+
"use strict";
|
|
3325
|
+
init_runtime();
|
|
3326
|
+
init_models();
|
|
3327
|
+
}
|
|
3328
|
+
});
|
|
3329
|
+
|
|
3330
|
+
// src/generated_api/apis/OrganizationsApi.ts
|
|
3331
|
+
var init_OrganizationsApi = __esm({
|
|
3332
|
+
"src/generated_api/apis/OrganizationsApi.ts"() {
|
|
3333
|
+
"use strict";
|
|
3334
|
+
init_runtime();
|
|
3335
|
+
init_models();
|
|
3336
|
+
}
|
|
3337
|
+
});
|
|
3338
|
+
|
|
3339
|
+
// src/generated_api/apis/OutgoingWebhookApi.ts
|
|
3340
|
+
var init_OutgoingWebhookApi = __esm({
|
|
3341
|
+
"src/generated_api/apis/OutgoingWebhookApi.ts"() {
|
|
3342
|
+
"use strict";
|
|
3343
|
+
init_runtime();
|
|
3344
|
+
init_models();
|
|
3345
|
+
}
|
|
3346
|
+
});
|
|
3347
|
+
|
|
3348
|
+
// src/generated_api/apis/PipelinesApi.ts
|
|
3349
|
+
var init_PipelinesApi = __esm({
|
|
3350
|
+
"src/generated_api/apis/PipelinesApi.ts"() {
|
|
3351
|
+
"use strict";
|
|
3352
|
+
init_runtime();
|
|
3353
|
+
init_models();
|
|
3354
|
+
}
|
|
3355
|
+
});
|
|
3356
|
+
|
|
3357
|
+
// src/generated_api/apis/ProvisioningProfileApi.ts
|
|
3358
|
+
var init_ProvisioningProfileApi = __esm({
|
|
3359
|
+
"src/generated_api/apis/ProvisioningProfileApi.ts"() {
|
|
3360
|
+
"use strict";
|
|
3361
|
+
init_runtime();
|
|
3362
|
+
init_models();
|
|
3363
|
+
}
|
|
3364
|
+
});
|
|
3365
|
+
|
|
3366
|
+
// src/generated_api/apis/SecretsApi.ts
|
|
3367
|
+
var init_SecretsApi = __esm({
|
|
3368
|
+
"src/generated_api/apis/SecretsApi.ts"() {
|
|
3369
|
+
"use strict";
|
|
3370
|
+
init_runtime();
|
|
3371
|
+
init_models();
|
|
3372
|
+
}
|
|
3373
|
+
});
|
|
3374
|
+
|
|
3375
|
+
// src/generated_api/apis/TestDevicesApi.ts
|
|
3376
|
+
var init_TestDevicesApi = __esm({
|
|
3377
|
+
"src/generated_api/apis/TestDevicesApi.ts"() {
|
|
3378
|
+
"use strict";
|
|
3379
|
+
init_runtime();
|
|
3380
|
+
init_models();
|
|
3381
|
+
}
|
|
3382
|
+
});
|
|
3383
|
+
|
|
3384
|
+
// src/generated_api/apis/UserApi.ts
|
|
3385
|
+
var init_UserApi = __esm({
|
|
3386
|
+
"src/generated_api/apis/UserApi.ts"() {
|
|
3387
|
+
"use strict";
|
|
3388
|
+
init_runtime();
|
|
3389
|
+
init_models();
|
|
3390
|
+
}
|
|
3391
|
+
});
|
|
3392
|
+
|
|
3393
|
+
// src/generated_api/apis/WebhookDeliveryItemApi.ts
|
|
3394
|
+
var init_WebhookDeliveryItemApi = __esm({
|
|
3395
|
+
"src/generated_api/apis/WebhookDeliveryItemApi.ts"() {
|
|
3396
|
+
"use strict";
|
|
3397
|
+
init_runtime();
|
|
3398
|
+
init_models();
|
|
3399
|
+
}
|
|
3400
|
+
});
|
|
3401
|
+
|
|
3402
|
+
// src/generated_api/apis/index.ts
|
|
3403
|
+
var init_apis = __esm({
|
|
3404
|
+
"src/generated_api/apis/index.ts"() {
|
|
3405
|
+
"use strict";
|
|
3406
|
+
init_ActivityApi();
|
|
3407
|
+
init_AddonsApi();
|
|
3408
|
+
init_AndroidKeystoreFileApi();
|
|
3409
|
+
init_AppSetupApi();
|
|
3410
|
+
init_AppleApiCredentialsApi();
|
|
3411
|
+
init_ApplicationApi();
|
|
3412
|
+
init_BuildArtifactApi();
|
|
3413
|
+
init_BuildCertificateApi();
|
|
3414
|
+
init_BuildRequestApi();
|
|
3415
|
+
init_BuildsApi();
|
|
3416
|
+
init_GenericProjectFileApi();
|
|
3417
|
+
init_GoogleServiceCredentialsApi();
|
|
3418
|
+
init_GroupsApi();
|
|
3419
|
+
init_KeyValueCacheApi();
|
|
3420
|
+
init_OrganizationsApi();
|
|
3421
|
+
init_OutgoingWebhookApi();
|
|
3422
|
+
init_PipelinesApi();
|
|
3423
|
+
init_ProvisioningProfileApi();
|
|
3424
|
+
init_SecretsApi();
|
|
3425
|
+
init_TestDevicesApi();
|
|
3426
|
+
init_UserApi();
|
|
3427
|
+
init_WebhookDeliveryItemApi();
|
|
3428
|
+
}
|
|
3429
|
+
});
|
|
3430
|
+
|
|
3431
|
+
// src/generated_api/index.ts
|
|
3432
|
+
var init_generated_api = __esm({
|
|
3433
|
+
"src/generated_api/index.ts"() {
|
|
3434
|
+
"use strict";
|
|
3435
|
+
init_runtime();
|
|
3436
|
+
init_apis();
|
|
3437
|
+
init_models();
|
|
3438
|
+
}
|
|
3439
|
+
});
|
|
3440
|
+
|
|
3441
|
+
// src/bitrise/api.ts
|
|
3442
|
+
var createApiConfig, apiBuildArtifact, apiBuilds;
|
|
3443
|
+
var init_api = __esm({
|
|
3444
|
+
"src/bitrise/api.ts"() {
|
|
3445
|
+
"use strict";
|
|
3446
|
+
init_env();
|
|
3447
|
+
init_generated_api();
|
|
3448
|
+
init_BuildArtifactApi();
|
|
3449
|
+
init_BuildsApi();
|
|
3450
|
+
createApiConfig = (token) => new Configuration({
|
|
3451
|
+
headers: { Authorization: token }
|
|
3452
|
+
});
|
|
3453
|
+
apiBuildArtifact = () => new BuildArtifactApi(createApiConfig(ENV.token));
|
|
3454
|
+
apiBuilds = () => new BuildsApi(createApiConfig(ENV.token));
|
|
3455
|
+
}
|
|
3456
|
+
});
|
|
3457
|
+
|
|
3458
|
+
// src/helper/debugLog.ts
|
|
3459
|
+
var debugLog;
|
|
3460
|
+
var init_debugLog = __esm({
|
|
3461
|
+
"src/helper/debugLog.ts"() {
|
|
3462
|
+
"use strict";
|
|
3463
|
+
debugLog = (label, data) => console.log(`${label}: ${JSON.stringify(data, void 0, 2)}`);
|
|
3464
|
+
}
|
|
3465
|
+
});
|
|
3466
|
+
|
|
3467
|
+
// src/helper/ensureMandatoryFields.ts
|
|
3468
|
+
var ensureMandatoryFields;
|
|
3469
|
+
var init_ensureMandatoryFields = __esm({
|
|
3470
|
+
"src/helper/ensureMandatoryFields.ts"() {
|
|
3471
|
+
"use strict";
|
|
3472
|
+
ensureMandatoryFields = (input, mandatory) => {
|
|
3473
|
+
for (const field of mandatory) {
|
|
3474
|
+
if (!input[field]) throw new Error(`Missing mandatory field: ${String(field)}`);
|
|
3475
|
+
}
|
|
3476
|
+
return input;
|
|
3477
|
+
};
|
|
3478
|
+
}
|
|
3479
|
+
});
|
|
3480
|
+
|
|
3481
|
+
// src/bitrise/fetchArtifact.ts
|
|
3482
|
+
var fetchArtifact;
|
|
3483
|
+
var init_fetchArtifact = __esm({
|
|
3484
|
+
"src/bitrise/fetchArtifact.ts"() {
|
|
3485
|
+
"use strict";
|
|
3486
|
+
init_api();
|
|
3487
|
+
init_debugLog();
|
|
3488
|
+
init_ensureMandatoryFields();
|
|
3489
|
+
init_env();
|
|
3490
|
+
fetchArtifact = async ({ artifactSlug, buildSlug }) => {
|
|
3491
|
+
const { data } = await apiBuildArtifact().artifactShow({ appSlug: ENV.appSlug, artifactSlug, buildSlug });
|
|
3492
|
+
if (!data) throw new Error("buildArtifact().artifactShow returned no data");
|
|
3493
|
+
if (ENV.debug) debugLog("artifact", data);
|
|
3494
|
+
return ensureMandatoryFields(data, ["expiringDownloadUrl"]);
|
|
3495
|
+
};
|
|
3496
|
+
}
|
|
3497
|
+
});
|
|
3498
|
+
|
|
3499
|
+
// src/bitrise/fetchArtifactList.ts
|
|
3500
|
+
var fetchArtifactList, fetchArtifactByType;
|
|
3501
|
+
var init_fetchArtifactList = __esm({
|
|
3502
|
+
"src/bitrise/fetchArtifactList.ts"() {
|
|
3503
|
+
"use strict";
|
|
3504
|
+
init_api();
|
|
3505
|
+
init_debugLog();
|
|
3506
|
+
init_ensureMandatoryFields();
|
|
3507
|
+
init_env();
|
|
3508
|
+
fetchArtifactList = async (buildSlug) => {
|
|
3509
|
+
const { data } = await apiBuildArtifact().artifactList({ appSlug: ENV.appSlug, buildSlug });
|
|
3510
|
+
if (!data) throw new Error("buildArtifact().artifactList returned no data");
|
|
3511
|
+
return data;
|
|
3512
|
+
};
|
|
3513
|
+
fetchArtifactByType = async (buildSlug) => {
|
|
3514
|
+
const artifactInfo = await fetchArtifactList(buildSlug);
|
|
3515
|
+
const artifactMetadata = artifactInfo.find((artifact) => artifact.artifactType === ENV.artifactType);
|
|
3516
|
+
if (ENV.debug) debugLog("artifactMetadata", artifactMetadata);
|
|
3517
|
+
if (!artifactMetadata) throw new Error(`Found no ${ENV.artifactType} in build Slug: ${buildSlug}`);
|
|
3518
|
+
return ensureMandatoryFields(artifactMetadata, ["slug", "title"]);
|
|
3519
|
+
};
|
|
3520
|
+
}
|
|
3521
|
+
});
|
|
3522
|
+
|
|
3523
|
+
// src/bitrise/fetchBuilds.ts
|
|
3524
|
+
var getAllBuilds, getLatestBuild;
|
|
3525
|
+
var init_fetchBuilds = __esm({
|
|
3526
|
+
"src/bitrise/fetchBuilds.ts"() {
|
|
3527
|
+
"use strict";
|
|
3528
|
+
init_api();
|
|
3529
|
+
init_env();
|
|
3530
|
+
init_debugLog();
|
|
3531
|
+
init_ensureMandatoryFields();
|
|
3532
|
+
getAllBuilds = async () => {
|
|
3533
|
+
const { data } = await apiBuilds().buildList({ appSlug: ENV.appSlug, status: 1 });
|
|
3534
|
+
if (!data) throw Error("no build data");
|
|
3535
|
+
return data;
|
|
3536
|
+
};
|
|
3537
|
+
getLatestBuild = async () => {
|
|
3538
|
+
const builds = await getAllBuilds();
|
|
3539
|
+
const latestBuild = builds.find((build) => build.triggeredWorkflow === ENV.workflow);
|
|
3540
|
+
if (!latestBuild) throw `Found no build with the workflow: "${ENV.workflow}"`;
|
|
3541
|
+
if (ENV.debug) debugLog("latestBuild", latestBuild);
|
|
3542
|
+
return ensureMandatoryFields(latestBuild, ["slug"]);
|
|
3543
|
+
};
|
|
3544
|
+
}
|
|
3545
|
+
});
|
|
3546
|
+
|
|
3547
|
+
// src/helper/downloadFile.ts
|
|
3548
|
+
import { createWriteStream } from "fs";
|
|
3549
|
+
import { get } from "https";
|
|
3550
|
+
import { pipeline } from "stream/promises";
|
|
3551
|
+
import { URL } from "url";
|
|
3552
|
+
var downloadFile;
|
|
3553
|
+
var init_downloadFile = __esm({
|
|
3554
|
+
"src/helper/downloadFile.ts"() {
|
|
3555
|
+
"use strict";
|
|
3556
|
+
downloadFile = async (fileUrl, outputLocationPath) => {
|
|
3557
|
+
const startTime = Date.now();
|
|
3558
|
+
const url = new URL(fileUrl);
|
|
3559
|
+
const response = await new Promise((resolve, reject) => {
|
|
3560
|
+
get(url, (res) => {
|
|
3561
|
+
if (res.statusCode !== 200) {
|
|
3562
|
+
reject(new Error(`Failed to get '${fileUrl}' (${res.statusCode})`));
|
|
3563
|
+
} else {
|
|
3564
|
+
resolve(res);
|
|
3565
|
+
}
|
|
3566
|
+
}).on("error", reject);
|
|
3567
|
+
});
|
|
3568
|
+
await pipeline(response, createWriteStream(outputLocationPath));
|
|
3569
|
+
return { file: outputLocationPath, duration: Date.now() - startTime };
|
|
3570
|
+
};
|
|
3571
|
+
}
|
|
3572
|
+
});
|
|
3573
|
+
|
|
3574
|
+
// src/helper/formatBytes.ts
|
|
3575
|
+
var decimals, formatBytes;
|
|
3576
|
+
var init_formatBytes = __esm({
|
|
3577
|
+
"src/helper/formatBytes.ts"() {
|
|
3578
|
+
"use strict";
|
|
3579
|
+
decimals = 0;
|
|
3580
|
+
formatBytes = (bytes) => {
|
|
3581
|
+
if (bytes === 0) return "0 Bytes";
|
|
3582
|
+
const k = 1024;
|
|
3583
|
+
const dm = decimals || 2;
|
|
3584
|
+
const sizes = ["Bytes", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"];
|
|
3585
|
+
const i = Math.floor(Math.log(bytes) / Math.log(k));
|
|
3586
|
+
const formattedSize = Number.parseFloat((bytes / k ** i).toFixed(dm));
|
|
3587
|
+
return `${formattedSize} ${sizes[i]}`;
|
|
3588
|
+
};
|
|
3589
|
+
}
|
|
3590
|
+
});
|
|
3591
|
+
|
|
3592
|
+
// src/downloadLatestArtifacts.ts
|
|
3593
|
+
import { oraPromise as oraPromise3 } from "ora";
|
|
3594
|
+
var downloadLatestArtifacts;
|
|
3595
|
+
var init_downloadLatestArtifacts = __esm({
|
|
3596
|
+
"src/downloadLatestArtifacts.ts"() {
|
|
3597
|
+
"use strict";
|
|
3598
|
+
init_fetchArtifact();
|
|
3599
|
+
init_fetchArtifactList();
|
|
3600
|
+
init_fetchBuilds();
|
|
3601
|
+
init_downloadFile();
|
|
3602
|
+
init_formatBytes();
|
|
3603
|
+
init_oraHelper();
|
|
3604
|
+
downloadLatestArtifacts = async (_options) => {
|
|
3605
|
+
const latestBuild = await oraPromise3(getLatestBuild(), getOraTexts("fetching latest build"));
|
|
3606
|
+
const artifactMetadata = await oraPromise3(
|
|
3607
|
+
fetchArtifactByType(latestBuild.slug),
|
|
3608
|
+
getOraTexts("fetching artifact list")
|
|
3609
|
+
);
|
|
3610
|
+
const artifact = await oraPromise3(
|
|
3611
|
+
fetchArtifact({ artifactSlug: artifactMetadata.slug, buildSlug: latestBuild.slug }),
|
|
3612
|
+
getOraTexts("fetching artifact metadata")
|
|
3613
|
+
);
|
|
3614
|
+
const fileType = artifact.title?.split(".").pop() ?? "unknown";
|
|
3615
|
+
const { file } = await oraPromise3(downloadFile(artifact.expiringDownloadUrl, artifactMetadata.title), {
|
|
3616
|
+
...getOraTexts(`downloading ${fileType} file`),
|
|
3617
|
+
text: `downloading ${fileType} file [${formatBytes(artifact.fileSizeBytes ?? 0)}]`
|
|
3618
|
+
});
|
|
3619
|
+
return file;
|
|
3620
|
+
};
|
|
3621
|
+
}
|
|
3622
|
+
});
|
|
3623
|
+
|
|
3624
|
+
// src/cli/commands/download/impl.ts
|
|
3625
|
+
var impl_exports = {};
|
|
3626
|
+
__export(impl_exports, {
|
|
3627
|
+
default: () => impl_default
|
|
3628
|
+
});
|
|
3629
|
+
async function impl_default(flags) {
|
|
3630
|
+
if (!setupEnv(flags)) return process.exit(1);
|
|
3631
|
+
const file = await downloadLatestArtifacts(flags);
|
|
3632
|
+
if (flags.install) {
|
|
3633
|
+
await installApp({ file, flags });
|
|
3634
|
+
}
|
|
3635
|
+
}
|
|
3636
|
+
var init_impl = __esm({
|
|
3637
|
+
"src/cli/commands/download/impl.ts"() {
|
|
3638
|
+
"use strict";
|
|
3639
|
+
init_env();
|
|
3640
|
+
init_run();
|
|
3641
|
+
init_downloadLatestArtifacts();
|
|
3642
|
+
}
|
|
3643
|
+
});
|
|
5
3644
|
|
|
6
3645
|
// src/cli/bin/cli.ts
|
|
7
3646
|
import { run } from "@stricli/core";
|
|
8
3647
|
|
|
3648
|
+
// src/cli/app.ts
|
|
3649
|
+
import { buildApplication, buildRouteMap } from "@stricli/core";
|
|
3650
|
+
|
|
3651
|
+
// src/cli/commands/download/command.ts
|
|
3652
|
+
init_cliOptions_types();
|
|
3653
|
+
import { buildCommand } from "@stricli/core";
|
|
3654
|
+
|
|
9
3655
|
// src/config/readConfig.ts
|
|
10
3656
|
import { cosmiconfigSync } from "cosmiconfig";
|
|
11
3657
|
var explorer = cosmiconfigSync("bitrise", {
|
|
@@ -21,9 +3667,8 @@ var readConfig = () => {
|
|
|
21
3667
|
};
|
|
22
3668
|
|
|
23
3669
|
// src/cli/commands/download/command.ts
|
|
24
|
-
import { buildCommand } from "@stricli/core";
|
|
25
3670
|
var downloadCommand = buildCommand({
|
|
26
|
-
loader: async () =>
|
|
3671
|
+
loader: async () => Promise.resolve().then(() => (init_impl(), impl_exports)),
|
|
27
3672
|
parameters: {
|
|
28
3673
|
flags: {
|
|
29
3674
|
artifact: {
|
|
@@ -78,13 +3723,10 @@ var downloadCommand = buildCommand({
|
|
|
78
3723
|
}
|
|
79
3724
|
});
|
|
80
3725
|
|
|
81
|
-
// src/cli/app.ts
|
|
82
|
-
import { buildApplication, buildRouteMap } from "@stricli/core";
|
|
83
|
-
|
|
84
3726
|
// package.json
|
|
85
3727
|
var name = "bitrise-api-cli";
|
|
86
|
-
var version = "0.0
|
|
87
|
-
var description = "
|
|
3728
|
+
var version = "0.1.0";
|
|
3729
|
+
var description = "Download the latest Bitrise build artifacts for a workflow from the command line.";
|
|
88
3730
|
|
|
89
3731
|
// src/cli/app.ts
|
|
90
3732
|
var root = buildRouteMap({
|