mirror of
https://github.com/Rolands-Laucis/Socio.git
synced 2026-05-15 14:15:57 -06:00
./types.d.ts import
This commit is contained in:
parent
af505bf073
commit
e992d69692
8 changed files with 13 additions and 13 deletions
|
|
@ -5,7 +5,7 @@ import { WebSocket as nodeWebSocket } from "ws";
|
|||
import { yaml_parse, yaml_stringify } from './utils';
|
||||
|
||||
//types
|
||||
import type { id, PropValue, LoggingOpts } from './types';
|
||||
import type { id, PropValue, LoggingOpts } from './types.d.ts';
|
||||
import { ClientMessageKind } from './core-client';
|
||||
type MessageDataObj = { id: id, status?: string, result?: string | object | boolean | PropValue, data?: object };
|
||||
type AdminClientOptions = { url: string, client_secret: string } & LoggingOpts;
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
// By silence, I hear other men’s imperfections and conceal my own. /Zeno of Citium/
|
||||
|
||||
//types
|
||||
import type { ClientID, S_SERV_data, ServerMessageDataObj } from "./types";
|
||||
import type { ClientID, S_SERV_data, ServerMessageDataObj } from "./types.d.ts";
|
||||
import type { SocioSession } from "./core-session";
|
||||
import { E, log } from "./logging";
|
||||
export type User = { client_id: ClientID, username?: string };
|
||||
|
|
|
|||
|
|
@ -7,14 +7,14 @@ import { LogHandler, E, err, log, info, done } from './logging';
|
|||
import { yaml_parse, yaml_stringify, clamp, CoreMessageKind } from './utils';
|
||||
|
||||
//types
|
||||
import type { id, PropKey, PropValue, PropOpts, Bit, ClientLifecycleHooks, ClientID, SocioFiles, LoggingOpts, ClientSubscribeOpts, data_result_block } from './types';
|
||||
import type { id, PropKey, PropValue, PropOpts, Bit, ClientLifecycleHooks, ClientID, SocioFiles, LoggingOpts, ClientSubscribeOpts, data_result_block } from './types.d.ts';
|
||||
|
||||
// cross network data objects
|
||||
// client data msg
|
||||
import type { data_base, C_RES_data, C_CON_data, C_UPD_data, C_AUTH_data, C_GET_PERM_data, C_PROP_UPD_data, C_RECON_Data, C_RECV_FILES_Data } from './types'; //types over network for the data object
|
||||
import type { data_base, C_RES_data, C_CON_data, C_UPD_data, C_AUTH_data, C_GET_PERM_data, C_PROP_UPD_data, C_RECON_Data, C_RECV_FILES_Data } from './types.d.ts'; //types over network for the data object
|
||||
// server data msg
|
||||
import type { S_SUB_data, S_UNSUB_data, S_SQL_data, S_AUTH_data, S_GET_PERM_data, S_PROP_SUB_data, S_PROP_UNSUB_data, S_PROP_GET_data, S_PROP_SET_data, S_PROP_REG_data, S_RECON_GET_data, S_RECON_USE_data, S_UP_FILES_data, S_GET_FILES_data } from './types';
|
||||
import type { ClientMessageDataObj } from './types';
|
||||
import type { S_SUB_data, S_UNSUB_data, S_SQL_data, S_AUTH_data, S_GET_PERM_data, S_PROP_SUB_data, S_PROP_UNSUB_data, S_PROP_GET_data, S_PROP_SET_data, S_PROP_REG_data, S_RECON_GET_data, S_RECON_USE_data, S_UP_FILES_data, S_GET_FILES_data } from './types.d.ts';
|
||||
import type { ClientMessageDataObj } from './types.d.ts';
|
||||
|
||||
import type { RateLimit } from './ratelimit';
|
||||
type SubscribeCallbackObjectSuccess = ((res: object | object[]) => void) | null;
|
||||
|
|
|
|||
|
|
@ -20,11 +20,11 @@ import type { IncomingMessage } from 'http';
|
|||
|
||||
// cross network data objects
|
||||
// server data msg
|
||||
import type { data_base, S_SUB_data, ServerMessageDataObj, S_UNSUB_data, S_SQL_data, S_AUTH_data, S_GET_PERM_data, S_PROP_SUB_data, S_PROP_UNSUB_data, S_PROP_GET_data, S_PROP_SET_data, S_PROP_REG_data, S_RECON_GET_data, S_RECON_USE_data, S_UP_FILES_data, S_GET_FILES_data } from './types';
|
||||
import type { data_base, S_SUB_data, ServerMessageDataObj, S_UNSUB_data, S_SQL_data, S_AUTH_data, S_GET_PERM_data, S_PROP_SUB_data, S_PROP_UNSUB_data, S_PROP_GET_data, S_PROP_SET_data, S_PROP_REG_data, S_RECON_GET_data, S_RECON_USE_data, S_UP_FILES_data, S_GET_FILES_data } from './types.d.ts';
|
||||
// client data msg
|
||||
import type { C_RES_data, C_CON_data, C_UPD_data, C_AUTH_data, C_GET_PERM_data, C_PROP_UPD_data, C_RECON_Data, C_RECV_FILES_Data } from './types'; //types over network for the data object
|
||||
import type { C_RES_data, C_CON_data, C_UPD_data, C_AUTH_data, C_GET_PERM_data, C_PROP_UPD_data, C_RECON_Data, C_RECV_FILES_Data } from './types.d.ts'; //types over network for the data object
|
||||
|
||||
import type { id, PropKey, PropValue, PropAssigner, PropOpts, ClientID, FS_Util_Response, ServerLifecycleHooks, LoggingOpts, Bit, SessionOpts } from './types';
|
||||
import type { id, PropKey, PropValue, PropAssigner, PropOpts, ClientID, FS_Util_Response, ServerLifecycleHooks, LoggingOpts, Bit, SessionOpts } from './types.d.ts';
|
||||
import { ClientMessageKind } from './core-client';
|
||||
import type { RateLimit } from './ratelimit';
|
||||
import type { SocioStringObj } from './sql-parsing';
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ import { ClientMessageKind } from './core-client';
|
|||
|
||||
//types
|
||||
import type { WebSocket } from 'ws'; //https://github.com/websockets/ws https://github.com/websockets/ws/blob/master/doc/ws.md
|
||||
import type { id, Bit, LoggingOpts, SessionOpts, Auth_Hook } from './types';
|
||||
import type { id, Bit, LoggingOpts, SessionOpts, Auth_Hook } from './types.d.ts';
|
||||
import type { RateLimit } from './ratelimit';
|
||||
|
||||
export type SubObj = {
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import { default as os_path } from "path";
|
|||
import pako from 'pako'; //https://github.com/nodeca/pako
|
||||
|
||||
//types
|
||||
import type { SocioFiles, FS_Util_Response } from './types';
|
||||
import type { SocioFiles, FS_Util_Response } from './types.d.ts';
|
||||
|
||||
//FS interaction
|
||||
export function SaveFilesToDiskPath(string_array_path: string[], files: SocioFiles): Promise<FS_Util_Response> {
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ import { LogHandler, E, log, info, done } from './logging';
|
|||
import { extname } from 'path';
|
||||
|
||||
//types
|
||||
import type { LoggingOpts } from './types';
|
||||
import type { LoggingOpts } from './types.d.ts';
|
||||
export type SocioSecurityOptions = { secure_private_key: Buffer | string, rand_int_gen?: ((min: number, max: number) => number) } & LoggingOpts;
|
||||
export type SocioSecurityPluginOptions = { include_file_types?: string[], exclude_file_types?: string[], exclude_svelte_server_files?: boolean, exclude_regex?:RegExp };
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
//I ask not for a lighter burden, but for broader shoulders. -Atlas, when asking Zeus for sympathy.
|
||||
|
||||
import type { QueryMarker } from "./types";
|
||||
import type { QueryMarker } from "./types.d.ts";
|
||||
import type { SocioStringObj } from "./sql-parsing";
|
||||
|
||||
export enum CoreMessageKind {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue