2021-05-14 19:51:14 +00:00
|
|
|
/// <reference types="@sveltejs/kit" />
|
2022-02-18 12:59:23 +00:00
|
|
|
|
|
|
|
declare namespace App {
|
|
|
|
interface Locals {
|
|
|
|
session: import('svelte-kit-cookie-session').Session<SessionData>;
|
|
|
|
cookies: Record<string, string>;
|
|
|
|
}
|
|
|
|
interface Platform {}
|
2022-04-19 16:23:04 +00:00
|
|
|
interface Session extends SessionData {
|
|
|
|
whiteLabelDetails: {
|
|
|
|
icon: string | null;
|
|
|
|
};
|
|
|
|
}
|
2022-03-20 22:51:50 +00:00
|
|
|
interface Stuff {
|
2022-03-27 12:05:36 +00:00
|
|
|
service: any;
|
2022-03-20 22:51:50 +00:00
|
|
|
application: any;
|
2022-03-23 09:25:32 +00:00
|
|
|
isRunning: boolean;
|
2022-03-25 09:36:47 +00:00
|
|
|
appId: string;
|
2022-03-27 12:05:36 +00:00
|
|
|
readOnly: boolean;
|
2022-03-31 13:11:51 +00:00
|
|
|
source: string;
|
|
|
|
settings: string;
|
2022-04-07 12:29:40 +00:00
|
|
|
database: Record<string, any>;
|
|
|
|
versions: string;
|
|
|
|
privatePort: string;
|
2022-03-20 22:51:50 +00:00
|
|
|
}
|
2022-02-10 14:47:44 +00:00
|
|
|
}
|
2022-02-18 12:59:23 +00:00
|
|
|
|
|
|
|
interface SessionData {
|
2022-04-06 20:01:41 +00:00
|
|
|
whiteLabeled: boolean;
|
2022-02-18 12:59:23 +00:00
|
|
|
version?: string;
|
|
|
|
userId?: string | null;
|
|
|
|
teamId?: string | null;
|
|
|
|
permission?: string;
|
2022-04-02 19:08:55 +00:00
|
|
|
lang?: string;
|
2022-02-18 12:59:23 +00:00
|
|
|
isAdmin?: boolean;
|
|
|
|
expires?: string | null;
|
2022-02-10 14:47:44 +00:00
|
|
|
}
|
|
|
|
|
2022-02-18 12:59:23 +00:00
|
|
|
type DateTimeFormatOptions = {
|
|
|
|
localeMatcher?: 'lookup' | 'best fit';
|
|
|
|
weekday?: 'long' | 'short' | 'narrow';
|
|
|
|
era?: 'long' | 'short' | 'narrow';
|
|
|
|
year?: 'numeric' | '2-digit';
|
|
|
|
month?: 'numeric' | '2-digit' | 'long' | 'short' | 'narrow';
|
|
|
|
day?: 'numeric' | '2-digit';
|
|
|
|
hour?: 'numeric' | '2-digit';
|
|
|
|
minute?: 'numeric' | '2-digit';
|
|
|
|
second?: 'numeric' | '2-digit';
|
|
|
|
timeZoneName?: 'long' | 'short';
|
|
|
|
formatMatcher?: 'basic' | 'best fit';
|
|
|
|
hour12?: boolean;
|
|
|
|
timeZone?: string;
|
2022-02-10 14:47:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
interface Hash {
|
|
|
|
iv: string;
|
|
|
|
content: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
type RawHaproxyConfiguration = {
|
|
|
|
_version: number;
|
|
|
|
data: string;
|
|
|
|
};
|
|
|
|
|
|
|
|
type NewTransaction = {
|
|
|
|
_version: number;
|
|
|
|
id: string;
|
|
|
|
status: string;
|
|
|
|
};
|
|
|
|
|
2022-02-18 12:59:23 +00:00
|
|
|
type Application = {
|
|
|
|
name: string;
|
|
|
|
domain: string;
|
2021-05-14 19:51:14 +00:00
|
|
|
};
|