This commit is contained in:
@@ -36,6 +36,12 @@ export type LauncherBuildJob = {
|
||||
updatedAt?: string;
|
||||
};
|
||||
|
||||
export type LauncherBuildEnvVariable = {
|
||||
key: string;
|
||||
value: string;
|
||||
isSecret: boolean;
|
||||
};
|
||||
|
||||
export type LauncherSource = {
|
||||
repository?: string | null;
|
||||
branch?: string | null;
|
||||
@@ -193,6 +199,17 @@ export function listLauncherBuildJobs() {
|
||||
return apiRequest<LauncherBuildJob[]>('/launcher/builds');
|
||||
}
|
||||
|
||||
export function listLauncherBuildEnv() {
|
||||
return apiRequest<{ variables: LauncherBuildEnvVariable[] }>('/launcher/build-env');
|
||||
}
|
||||
|
||||
export function saveLauncherBuildEnv(variables: LauncherBuildEnvVariable[]) {
|
||||
return apiRequest<{ variables: LauncherBuildEnvVariable[] }>('/launcher/build-env', {
|
||||
method: 'PUT',
|
||||
body: JSON.stringify({ variables })
|
||||
});
|
||||
}
|
||||
|
||||
export function createLauncherBuildJob(input: {
|
||||
target?: string;
|
||||
repository?: string;
|
||||
|
||||
Reference in New Issue
Block a user