Updates
This commit is contained in:
@@ -19,6 +19,7 @@ export const DsqlTables = [
|
||||
"mariadb_users",
|
||||
"mariadb_user_databases",
|
||||
"mariadb_user_tables",
|
||||
"user_private_media_keys",
|
||||
] as const
|
||||
|
||||
export type DSQL_DATASQUIREL_USERS = {
|
||||
@@ -392,4 +393,22 @@ export type DSQL_DATASQUIREL_MARIADB_USER_TABLES = {
|
||||
date_updated?: string;
|
||||
date_updated_code?: number;
|
||||
date_updated_timestamp?: string;
|
||||
}
|
||||
|
||||
export type DSQL_DATASQUIREL_USER_PRIVATE_MEDIA_KEYS = {
|
||||
id?: number;
|
||||
uuid?: string;
|
||||
user_id?: number;
|
||||
media_id?: number;
|
||||
key?: string;
|
||||
description?: string;
|
||||
expiration?: number;
|
||||
expiration_paradigm?: "seconds" | "minutes" | "hours" | "days" | "weeks" | "months" | "years";
|
||||
expiration_milliseconds?: number;
|
||||
date_created?: string;
|
||||
date_created_code?: number;
|
||||
date_created_timestamp?: string;
|
||||
date_updated?: string;
|
||||
date_updated_code?: number;
|
||||
date_updated_timestamp?: string;
|
||||
}
|
||||
@@ -429,6 +429,8 @@ export interface PostInsertReturn {
|
||||
export type UserType = DATASQUIREL_LoggedInUser & {
|
||||
isSuperUser?: boolean;
|
||||
staticHost?: string;
|
||||
appHost?: string;
|
||||
appName?: string;
|
||||
};
|
||||
|
||||
export interface ApiKeyDef {
|
||||
@@ -1596,6 +1598,9 @@ export type PagePropsType = {
|
||||
appVersion?: (typeof AppVersions)[number];
|
||||
isMailAvailable?: boolean;
|
||||
websocketURL?: string;
|
||||
docsObject?: DocsServerProps | null;
|
||||
docsPages?: DocsLinkType[] | null;
|
||||
docsPageEditURL?: string | null;
|
||||
};
|
||||
|
||||
export type APIResponseObject<T extends any = any> = {
|
||||
@@ -1649,6 +1654,8 @@ export const WebSocketEvents = [
|
||||
"client:dev:queue",
|
||||
"client:delete-queue",
|
||||
"client:pty-shell",
|
||||
"client:su-logs",
|
||||
"client:su-kill-logs",
|
||||
|
||||
/**
|
||||
* # Server Events
|
||||
@@ -1663,12 +1670,16 @@ export const WebSocketEvents = [
|
||||
"server:dev:queue",
|
||||
"server:queue-deleted",
|
||||
"server:pty-shell",
|
||||
"server:su-logs",
|
||||
"server:su-kill-logs",
|
||||
] as const;
|
||||
|
||||
export type WebSocketDataType = {
|
||||
event: (typeof WebSocketEvents)[number];
|
||||
data?: {
|
||||
queue?: DSQL_DATASQUIREL_PROCESS_QUEUE;
|
||||
containerName?: string;
|
||||
killLogs?: boolean;
|
||||
};
|
||||
error?: string;
|
||||
message?: string;
|
||||
@@ -1680,15 +1691,6 @@ export const DatasquirelWindowEvents = [
|
||||
"queue-running",
|
||||
] as const;
|
||||
|
||||
export type DatasquirelWindowEventPayloadType = {
|
||||
event: (typeof DatasquirelWindowEvents)[number];
|
||||
data?: {
|
||||
queue?: DSQL_DATASQUIREL_PROCESS_QUEUE;
|
||||
};
|
||||
error?: string;
|
||||
message?: string;
|
||||
};
|
||||
|
||||
/**
|
||||
* # Docker Compose Types
|
||||
*/
|
||||
@@ -1798,6 +1800,7 @@ export type DsqlAppData = {
|
||||
DSQL_FACEBOOK_APP_ID?: string | null;
|
||||
DSQL_GITHUB_ID?: string | null;
|
||||
DSQL_HOST_MACHINE_IP?: string | null;
|
||||
DSQL_DEPLOYMENT_NAME?: string | null;
|
||||
};
|
||||
|
||||
export const MediaTypes = ["image", "file", "video"] as const;
|
||||
@@ -2008,6 +2011,7 @@ export type DefaultLocalResourcesHookParams<
|
||||
> = {
|
||||
refresh?: number;
|
||||
setLoading?: React.Dispatch<React.SetStateAction<boolean>>;
|
||||
setReady?: React.Dispatch<React.SetStateAction<boolean>>;
|
||||
loadingEndTimeout?: number;
|
||||
user?: UserType | null;
|
||||
ready?: boolean;
|
||||
@@ -2422,6 +2426,10 @@ export type SendEmailCodeParams = {
|
||||
useLocal?: boolean;
|
||||
apiVersion?: string;
|
||||
dbUserId?: string | number;
|
||||
/**
|
||||
* HTML string with {{code}} placeholder for the code
|
||||
*/
|
||||
html?: string;
|
||||
};
|
||||
|
||||
export type UpdateUserParams<
|
||||
@@ -2479,4 +2487,158 @@ export type GoogleAuthParams = {
|
||||
*/
|
||||
useLocal?: boolean;
|
||||
apiVersion?: string;
|
||||
skipWriteAuthFile?: boolean;
|
||||
cleanupTokens?: boolean;
|
||||
};
|
||||
|
||||
export type ContactFormType = {
|
||||
first_name?: string;
|
||||
last_name?: string;
|
||||
email?: string;
|
||||
phone?: string;
|
||||
message?: string;
|
||||
};
|
||||
|
||||
export const TimeParadigms = [
|
||||
{
|
||||
value: "seconds",
|
||||
label: "Seconds",
|
||||
},
|
||||
{
|
||||
value: "minutes",
|
||||
label: "Minutes",
|
||||
},
|
||||
{
|
||||
value: "hours",
|
||||
label: "Hours",
|
||||
},
|
||||
{
|
||||
value: "days",
|
||||
label: "Days",
|
||||
},
|
||||
{
|
||||
value: "weeks",
|
||||
label: "Weeks",
|
||||
},
|
||||
{
|
||||
value: "months",
|
||||
label: "Months",
|
||||
},
|
||||
{
|
||||
value: "years",
|
||||
label: "Years",
|
||||
},
|
||||
] as const;
|
||||
|
||||
export type GithubPublicAPIResJSON = {
|
||||
name: string;
|
||||
path: string;
|
||||
sha: string;
|
||||
size: number;
|
||||
url: string;
|
||||
html_url: string;
|
||||
git_url: string;
|
||||
download_url: string;
|
||||
type: string;
|
||||
content: string;
|
||||
encoding: string;
|
||||
_links: {
|
||||
self: string;
|
||||
git: string;
|
||||
html: string;
|
||||
};
|
||||
};
|
||||
|
||||
export type DocsServerProps = {
|
||||
md?: string | null;
|
||||
mdx_source?: any | null;
|
||||
meta_title?: string | null;
|
||||
meta_description?: string | null;
|
||||
page_title?: string | null;
|
||||
page_description?: string | null;
|
||||
page_path?: string | null;
|
||||
};
|
||||
|
||||
export type DocsLinkType = {
|
||||
title: string;
|
||||
href: string;
|
||||
strict?: boolean;
|
||||
children?: DocsLinkType[];
|
||||
editPage?: string;
|
||||
};
|
||||
|
||||
export interface GiteaBranchRes {
|
||||
name: string;
|
||||
commit: GiteaBranchResCommit;
|
||||
protected: boolean;
|
||||
required_approvals: number;
|
||||
enable_status_check: boolean;
|
||||
status_check_contexts: any[];
|
||||
user_can_push: boolean;
|
||||
user_can_merge: boolean;
|
||||
effective_branch_protection_name: string;
|
||||
}
|
||||
|
||||
export interface GiteaBranchResCommit {
|
||||
id: string;
|
||||
message: string;
|
||||
url: string;
|
||||
author: GiteaBranchResCommitAuthor;
|
||||
committer: GiteaBranchResCommitCommitter;
|
||||
verification: GiteaBranchResCommitVerification;
|
||||
timestamp: string;
|
||||
added: any;
|
||||
removed: any;
|
||||
modified: any;
|
||||
}
|
||||
|
||||
export interface GiteaBranchResCommitAuthor {
|
||||
name: string;
|
||||
email: string;
|
||||
username: string;
|
||||
}
|
||||
|
||||
export interface GiteaBranchResCommitCommitter {
|
||||
name: string;
|
||||
email: string;
|
||||
username: string;
|
||||
}
|
||||
|
||||
export interface GiteaBranchResCommitVerification {
|
||||
verified: boolean;
|
||||
reason: string;
|
||||
signature: string;
|
||||
signer: any;
|
||||
payload: string;
|
||||
}
|
||||
|
||||
export interface GiteaTreeRes {
|
||||
sha: string;
|
||||
url: string;
|
||||
tree: GiteaTreeResTree[];
|
||||
truncated: boolean;
|
||||
page: number;
|
||||
total_count: number;
|
||||
}
|
||||
|
||||
export interface GiteaTreeResTree {
|
||||
path: string;
|
||||
mode: string;
|
||||
type: "tree" | "blob";
|
||||
size: number;
|
||||
sha: string;
|
||||
url: string;
|
||||
}
|
||||
|
||||
export const OpsActions = [
|
||||
"exit",
|
||||
"test",
|
||||
"restart-web-app",
|
||||
"restart-db",
|
||||
"restart-all",
|
||||
"clear",
|
||||
] as const;
|
||||
|
||||
export type OpsObject = {
|
||||
action: (typeof OpsActions)[number];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user