Updates
This commit is contained in:
Vendored
+18
-1
@@ -1,4 +1,4 @@
|
||||
export declare const DsqlTables: readonly ["users", "api_keys", "api_keys_scoped_resources", "invitations", "user_databases", "user_database_tables", "user_media", "user_private_folders", "delegated_users", "delegated_resources", "mariadb_user_privileges", "unsubscribes", "notifications", "deleted_api_keys", "servers", "process_queue", "backups", "mariadb_users", "mariadb_user_databases", "mariadb_user_tables"];
|
||||
export declare const DsqlTables: readonly ["users", "api_keys", "api_keys_scoped_resources", "invitations", "user_databases", "user_database_tables", "user_media", "user_private_folders", "delegated_users", "delegated_resources", "mariadb_user_privileges", "unsubscribes", "notifications", "deleted_api_keys", "servers", "process_queue", "backups", "mariadb_users", "mariadb_user_databases", "mariadb_user_tables", "user_private_media_keys"];
|
||||
export type DSQL_DATASQUIREL_USERS = {
|
||||
id?: number;
|
||||
uuid?: string;
|
||||
@@ -352,3 +352,20 @@ export type DSQL_DATASQUIREL_MARIADB_USER_TABLES = {
|
||||
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;
|
||||
};
|
||||
|
||||
Vendored
+1
@@ -22,4 +22,5 @@ exports.DsqlTables = [
|
||||
"mariadb_users",
|
||||
"mariadb_user_databases",
|
||||
"mariadb_user_tables",
|
||||
"user_private_media_keys",
|
||||
];
|
||||
|
||||
Vendored
+139
-9
@@ -371,6 +371,8 @@ export interface PostInsertReturn {
|
||||
export type UserType = DATASQUIREL_LoggedInUser & {
|
||||
isSuperUser?: boolean;
|
||||
staticHost?: string;
|
||||
appHost?: string;
|
||||
appName?: string;
|
||||
};
|
||||
export interface ApiKeyDef {
|
||||
name: string;
|
||||
@@ -1377,6 +1379,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> = {
|
||||
success: boolean;
|
||||
@@ -1413,24 +1418,18 @@ export declare const SignUpParadigms: readonly [{
|
||||
readonly name: "google";
|
||||
}];
|
||||
export declare const QueueJobTypes: readonly ["dummy", "import-database"];
|
||||
export declare const WebSocketEvents: readonly ["client:check-queue", "client:dev:queue", "client:delete-queue", "client:pty-shell", "server:error", "server:message", "server:ready", "server:success", "server:update", "server:queue", "server:dev:queue", "server:queue-deleted", "server:pty-shell"];
|
||||
export declare const WebSocketEvents: readonly ["client:check-queue", "client:dev:queue", "client:delete-queue", "client:pty-shell", "client:su-logs", "client:su-kill-logs", "server:error", "server:message", "server:ready", "server:success", "server:update", "server:queue", "server:dev:queue", "server:queue-deleted", "server:pty-shell", "server:su-logs", "server:su-kill-logs"];
|
||||
export type WebSocketDataType = {
|
||||
event: (typeof WebSocketEvents)[number];
|
||||
data?: {
|
||||
queue?: DSQL_DATASQUIREL_PROCESS_QUEUE;
|
||||
containerName?: string;
|
||||
killLogs?: boolean;
|
||||
};
|
||||
error?: string;
|
||||
message?: string;
|
||||
};
|
||||
export declare const DatasquirelWindowEvents: readonly ["queue-started", "queue-complete", "queue-running"];
|
||||
export type DatasquirelWindowEventPayloadType = {
|
||||
event: (typeof DatasquirelWindowEvents)[number];
|
||||
data?: {
|
||||
queue?: DSQL_DATASQUIREL_PROCESS_QUEUE;
|
||||
};
|
||||
error?: string;
|
||||
message?: string;
|
||||
};
|
||||
/**
|
||||
* # Docker Compose Types
|
||||
*/
|
||||
@@ -1510,6 +1509,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 declare const MediaTypes: readonly ["image", "file", "video"];
|
||||
export type MediaUploadDataType = ImageObjectType & FileObjectType & {
|
||||
@@ -1643,6 +1643,7 @@ export type DefaultLocalResourcesHookParams<T extends {
|
||||
}> = {
|
||||
refresh?: number;
|
||||
setLoading?: React.Dispatch<React.SetStateAction<boolean>>;
|
||||
setReady?: React.Dispatch<React.SetStateAction<boolean>>;
|
||||
loadingEndTimeout?: number;
|
||||
user?: UserType | null;
|
||||
ready?: boolean;
|
||||
@@ -1878,6 +1879,10 @@ export type SendEmailCodeParams = {
|
||||
useLocal?: boolean;
|
||||
apiVersion?: string;
|
||||
dbUserId?: string | number;
|
||||
/**
|
||||
* HTML string with {{code}} placeholder for the code
|
||||
*/
|
||||
html?: string;
|
||||
};
|
||||
export type UpdateUserParams<T extends DSQL_DATASQUIREL_USERS = DSQL_DATASQUIREL_USERS & {
|
||||
[k: string]: any;
|
||||
@@ -1929,5 +1934,130 @@ 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 declare const TimeParadigms: readonly [{
|
||||
readonly value: "seconds";
|
||||
readonly label: "Seconds";
|
||||
}, {
|
||||
readonly value: "minutes";
|
||||
readonly label: "Minutes";
|
||||
}, {
|
||||
readonly value: "hours";
|
||||
readonly label: "Hours";
|
||||
}, {
|
||||
readonly value: "days";
|
||||
readonly label: "Days";
|
||||
}, {
|
||||
readonly value: "weeks";
|
||||
readonly label: "Weeks";
|
||||
}, {
|
||||
readonly value: "months";
|
||||
readonly label: "Months";
|
||||
}, {
|
||||
readonly value: "years";
|
||||
readonly label: "Years";
|
||||
}];
|
||||
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 declare const OpsActions: readonly ["exit", "test", "restart-web-app", "restart-db", "restart-all", "clear"];
|
||||
export type OpsObject = {
|
||||
action: (typeof OpsActions)[number];
|
||||
};
|
||||
export {};
|
||||
|
||||
Vendored
+43
-1
@@ -1,6 +1,6 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.UserAPIAuthActions = exports.UserAPIParadigms = exports.TargetMediaParadigms = exports.EnvKeys = exports.AppVersions = exports.APIParadigms = exports.UserSQLPermissions = exports.SQLPermissions = exports.InvitedUserSelectFields = exports.DelegatedUserSelectFields = exports.UserSelectFields = exports.IndexTypes = exports.DefaultSQLValuesLiteral = exports.CurrentlyEditedFieldActions = exports.VideoMimeTypes = exports.FileMimeTypes = exports.ImageMimeTypes = exports.MediaTypes = exports.DockerComposeServices = exports.DatasquirelWindowEvents = exports.WebSocketEvents = exports.QueueJobTypes = exports.SignUpParadigms = exports.UserTypes = exports.QueryFields = exports.DsqlCrudActions = exports.DataCrudRequestMethodsLowerCase = exports.DataCrudRequestMethods = exports.ServerQueryEqualities = exports.ServerQueryOperators = exports.TextFieldTypesArray = exports.UsersOmitedFields = void 0;
|
||||
exports.OpsActions = exports.TimeParadigms = exports.UserAPIAuthActions = exports.UserAPIParadigms = exports.TargetMediaParadigms = exports.EnvKeys = exports.AppVersions = exports.APIParadigms = exports.UserSQLPermissions = exports.SQLPermissions = exports.InvitedUserSelectFields = exports.DelegatedUserSelectFields = exports.UserSelectFields = exports.IndexTypes = exports.DefaultSQLValuesLiteral = exports.CurrentlyEditedFieldActions = exports.VideoMimeTypes = exports.FileMimeTypes = exports.ImageMimeTypes = exports.MediaTypes = exports.DockerComposeServices = exports.DatasquirelWindowEvents = exports.WebSocketEvents = exports.QueueJobTypes = exports.SignUpParadigms = exports.UserTypes = exports.QueryFields = exports.DsqlCrudActions = exports.DataCrudRequestMethodsLowerCase = exports.DataCrudRequestMethods = exports.ServerQueryEqualities = exports.ServerQueryOperators = exports.TextFieldTypesArray = exports.UsersOmitedFields = void 0;
|
||||
exports.UsersOmitedFields = [
|
||||
"password",
|
||||
"social_id",
|
||||
@@ -90,6 +90,8 @@ exports.WebSocketEvents = [
|
||||
"client:dev:queue",
|
||||
"client:delete-queue",
|
||||
"client:pty-shell",
|
||||
"client:su-logs",
|
||||
"client:su-kill-logs",
|
||||
/**
|
||||
* # Server Events
|
||||
* @description Events sent from Server to Client
|
||||
@@ -103,6 +105,8 @@ exports.WebSocketEvents = [
|
||||
"server:dev:queue",
|
||||
"server:queue-deleted",
|
||||
"server:pty-shell",
|
||||
"server:su-logs",
|
||||
"server:su-kill-logs",
|
||||
];
|
||||
exports.DatasquirelWindowEvents = [
|
||||
"queue-started",
|
||||
@@ -409,3 +413,41 @@ exports.UserAPIAuthActions = [
|
||||
"reset-password",
|
||||
"google-login",
|
||||
];
|
||||
exports.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",
|
||||
},
|
||||
];
|
||||
exports.OpsActions = [
|
||||
"exit",
|
||||
"test",
|
||||
"restart-web-app",
|
||||
"restart-db",
|
||||
"restart-all",
|
||||
"clear",
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user