Updates
This commit is contained in:
Vendored
+115
-1
@@ -1,4 +1,5 @@
|
||||
import type { RequestOptions } from "https";
|
||||
import { DSQL_DATASQUIREL_PROCESS_QUEUE } from "@/package-shared/types/dsql";
|
||||
import { Editor } from "tinymce";
|
||||
export type DSQL_DatabaseFullName = string;
|
||||
export interface DSQL_DatabaseSchemaType {
|
||||
@@ -336,7 +337,7 @@ export interface PostInsertReturn {
|
||||
protocol41: boolean;
|
||||
changedRows: number;
|
||||
}
|
||||
export type UserType = DATASQUIREL_LoggedInUser;
|
||||
export type UserType = DATASQUIREL_LoggedInUser & {};
|
||||
export interface ApiKeyDef {
|
||||
name: string;
|
||||
scope: string;
|
||||
@@ -1414,4 +1415,117 @@ export interface MariaDBUser {
|
||||
default_role: string;
|
||||
max_statement_time: number;
|
||||
}
|
||||
export type PagePropsType = {
|
||||
user?: UserType | null;
|
||||
pageUrl?: string | null;
|
||||
query?: any;
|
||||
};
|
||||
export type APIResponseObject<T extends any = any> = {
|
||||
success: boolean;
|
||||
payload?: T;
|
||||
error?: any;
|
||||
msg?: string;
|
||||
queryRes?: any;
|
||||
status?: number;
|
||||
};
|
||||
export declare const UserTypes: readonly ["su", "admin"];
|
||||
export declare const SignUpParadigms: readonly [{
|
||||
readonly name: "email";
|
||||
}, {
|
||||
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 type WebSocketDataType = {
|
||||
event: (typeof WebSocketEvents)[number];
|
||||
data?: {
|
||||
queue?: DSQL_DATASQUIREL_PROCESS_QUEUE;
|
||||
};
|
||||
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
|
||||
*/
|
||||
export type DockerCompose = {
|
||||
services: DockerComposeServices;
|
||||
networks: DockerComposeNetworks;
|
||||
name: string;
|
||||
};
|
||||
export declare const DockerComposeServices: readonly ["setup", "cron", "reverse-proxy", "webapp", "websocket", "static", "db", "db-load-balancer", "post-db-setup"];
|
||||
export type DockerComposeServices = {
|
||||
[key in (typeof DockerComposeServices)[number]]: DockerComposeServiceWithBuildObject;
|
||||
};
|
||||
export type DockerComposeNetworks = {
|
||||
datasquirel: {
|
||||
driver: "bridge";
|
||||
ipam: {
|
||||
config: DockerComposeNetworkConfigObject[];
|
||||
};
|
||||
};
|
||||
};
|
||||
export type DockerComposeNetworkConfigObject = {
|
||||
subnet: string;
|
||||
gateway: string;
|
||||
};
|
||||
export type DockerComposeServiceWithBuildObject = {
|
||||
build: DockerComposeServicesBuildObject;
|
||||
env_file: string;
|
||||
container_name: string;
|
||||
hostname: string;
|
||||
volumes: string[];
|
||||
environment: string[];
|
||||
networks?: DockerComposeServiceNetworkObject;
|
||||
restart?: string;
|
||||
depends_on?: {
|
||||
[k: string]: {
|
||||
condition: string;
|
||||
};
|
||||
};
|
||||
user?: string;
|
||||
};
|
||||
export type DockerComposeServiceWithImage = Omit<DockerComposeServiceWithBuildObject, "build"> & {
|
||||
image: string;
|
||||
};
|
||||
export type DockerComposeServicesBuildObject = {
|
||||
context: string;
|
||||
dockerfile: string;
|
||||
};
|
||||
export type DockerComposeServiceNetworkObject = {
|
||||
datasquirel: {
|
||||
ipv4_address: string;
|
||||
};
|
||||
};
|
||||
/**
|
||||
* # Site Setup Types
|
||||
*/
|
||||
export type SiteSetup = {
|
||||
docker: {
|
||||
network: {
|
||||
subnet: string;
|
||||
};
|
||||
};
|
||||
};
|
||||
export type AppRefObject = {};
|
||||
export type DsqlAppData = {
|
||||
DSQL_REMOTE_SQL_HOST?: string;
|
||||
DSQL_SU_USER_ID?: string;
|
||||
DSQL_HOST_ENV?: string;
|
||||
DSQL_HOST?: string;
|
||||
DSQL_STATIC_HOST?: string;
|
||||
DSQL_GOOGLE_CLIENT_ID?: string;
|
||||
DSQL_TINY_MCE_API_KEY?: string;
|
||||
DSQL_WEBSOCKET_URL?: string;
|
||||
DSQL_FACEBOOK_APP_ID?: string;
|
||||
DSQL_GITHUB_ID?: string;
|
||||
};
|
||||
export {};
|
||||
|
||||
Vendored
+50
-1
@@ -1,6 +1,6 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.DsqlCrudActions = exports.DataCrudRequestMethods = exports.ServerQueryEqualities = exports.ServerQueryOperators = exports.TextFieldTypesArray = void 0;
|
||||
exports.DockerComposeServices = exports.DatasquirelWindowEvents = exports.WebSocketEvents = exports.QueueJobTypes = exports.SignUpParadigms = exports.UserTypes = exports.DsqlCrudActions = exports.DataCrudRequestMethods = exports.ServerQueryEqualities = exports.ServerQueryOperators = exports.TextFieldTypesArray = void 0;
|
||||
exports.TextFieldTypesArray = [
|
||||
{ title: "Plain Text", value: "plain" },
|
||||
{ title: "Rich Text", value: "richText" },
|
||||
@@ -21,3 +21,52 @@ exports.ServerQueryEqualities = [
|
||||
];
|
||||
exports.DataCrudRequestMethods = ["GET", "POST", "PUT", "DELETE"];
|
||||
exports.DsqlCrudActions = ["insert", "update", "delete", "get"];
|
||||
exports.UserTypes = ["su", "admin"];
|
||||
exports.SignUpParadigms = [
|
||||
{
|
||||
name: "email",
|
||||
},
|
||||
{
|
||||
name: "google",
|
||||
},
|
||||
];
|
||||
exports.QueueJobTypes = ["dummy", "import-database"];
|
||||
exports.WebSocketEvents = [
|
||||
/**
|
||||
* # Client Events
|
||||
* @description Events sent from Client to Server
|
||||
*/
|
||||
"client:check-queue",
|
||||
"client:dev:queue",
|
||||
"client:delete-queue",
|
||||
"client:pty-shell",
|
||||
/**
|
||||
* # Server Events
|
||||
* @description Events sent from Server to Client
|
||||
*/
|
||||
"server:error",
|
||||
"server:message",
|
||||
"server:ready",
|
||||
"server:success",
|
||||
"server:update",
|
||||
"server:queue",
|
||||
"server:dev:queue",
|
||||
"server:queue-deleted",
|
||||
"server:pty-shell",
|
||||
];
|
||||
exports.DatasquirelWindowEvents = [
|
||||
"queue-started",
|
||||
"queue-complete",
|
||||
"queue-running",
|
||||
];
|
||||
exports.DockerComposeServices = [
|
||||
"setup",
|
||||
"cron",
|
||||
"reverse-proxy",
|
||||
"webapp",
|
||||
"websocket",
|
||||
"static",
|
||||
"db",
|
||||
"db-load-balancer",
|
||||
"post-db-setup",
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user