Just v2
This commit is contained in:
Andras Bacsai
2022-02-10 15:47:44 +01:00
committed by GitHub
parent a64b095c13
commit 460ae85226
403 changed files with 22039 additions and 12465 deletions

176
src/global.d.ts vendored
View File

@@ -1,8 +1,75 @@
/// <reference types="@sveltejs/kit" />
/// <reference types="svelte" />
/// <reference types="vite/client" />
interface Cookies {
teamId?: string;
gitlabToken?: string;
'kit.session'?: string;
}
interface Locals {
gitlabToken?: string;
user: {
teamId: string;
permission: string;
isAdmin: boolean;
};
session: {
data: {
uid?: string;
teams?: string[];
expires?: string;
};
};
}
export type DateTimeFormatOptions = {
type Applications = {
name: string;
domain: string;
};
interface Hash {
iv: string;
content: string;
}
interface BuildPack {
name: string;
}
// TODO: Not used, not working what?!
enum GitSource {
Github = 'github',
Gitlab = 'gitlab',
Bitbucket = 'bitbucket'
}
type RawHaproxyConfiguration = {
_version: number;
data: string;
};
type NewTransaction = {
_version: number;
id: string;
status: string;
};
type HttpRequestRuleForceSSL = {
return_hdrs: null;
cond: string;
cond_test: string;
index: number;
redir_code: number;
redir_type: string;
redir_value: string;
type: string;
};
// TODO: No any please
type HttpRequestRule = {
_version: number;
data: Array<any>;
};
type DateTimeFormatOptions = {
localeMatcher?: 'lookup' | 'best fit';
weekday?: 'long' | 'short' | 'narrow';
era?: 'long' | 'short' | 'narrow';
@@ -17,106 +84,3 @@ export type DateTimeFormatOptions = {
hour12?: boolean;
timeZone?: string;
};
export type Application = {
github: {
installation: {
id: number;
};
app: {
id: number;
};
};
repository: {
id: number;
organization: string;
name: string;
branch: string;
};
general: {
deployId: string;
nickname: string;
workdir: string;
isPreviewDeploymentEnabled: boolean;
pullRequest: number;
};
build: {
pack: string;
directory: string;
command: {
build: string | null;
installation: string;
start: string;
python: {
module?: string;
instance?: string;
};
};
container: {
name: string;
tag: string;
baseSHA: string;
};
};
publish: {
directory: string;
domain: string;
path: string;
port: number;
secrets: Array<Record<string, unknown>>;
};
};
export type Database = {
config:
| {
general: {
deployId: string;
nickname: string;
workdir: string;
type: string;
};
database: {
usernames: Array;
passwords: Array;
defaultDatabaseName: string;
};
deploy: {
name: string;
};
}
| Record<string, unknown>;
envs: Array;
};
export type Dashboard = {
databases: {
deployed:
| [
{
configuration: Database;
}
]
| [];
};
services: {
deployed:
| [
{
configuration: any;
}
]
| [];
};
applications: {
deployed:
| [
{
configuration: Application;
UpdatedAt: any;
}
]
| [];
};
};
export type GithubInstallations = {
id: number;
app_id: number;
};