sdj-esm
Version:
Self Described JSON - ESM
52 lines (51 loc) • 2.08 kB
TypeScript
import type { EntityJI, ItemJI } from "./interfaces.js";
export declare const ESDJ_CLASS: {
readonly DATA: "SdjData";
readonly ENTITY: "SdjEntity";
readonly DESCRIPTION: "SdjDescription";
readonly ITEM: "SdjItem";
readonly JSON: "SdJson";
readonly HOST: "SdjHost";
};
export declare type ESDJ_CLASS = typeof ESDJ_CLASS[keyof typeof ESDJ_CLASS];
export declare const ESDJ_TYPE: {
readonly KEY: "sdkey";
readonly ID: "sdid";
readonly NUM: "numb";
readonly INT: "intg";
readonly FLT: "flpt";
readonly BOOL: "bool";
readonly STR: "strd";
readonly STRL: "strl";
readonly STRS: "strs";
readonly UTC: "date";
readonly ARY_BOOL: "arybool";
readonly ARY_NUM: "arynum";
readonly ARY_STR_SH: "arystrs";
readonly ART_STR_DF: "arystrd";
readonly OBJ_STR: "objstr";
readonly OBJ_BOOL: "objbool";
readonly OBJ_NUM: "objnum";
readonly INDEX: "sdindex";
};
export declare type ESDJ_TYPE = typeof ESDJ_TYPE[keyof typeof ESDJ_TYPE];
export declare const ESDJ_LOG: {
readonly PROD: "prod";
readonly DEV: "dev";
readonly LIB: "lib";
readonly RUN: "run";
readonly TEST: "test";
};
export declare type ESDJ_LOG = typeof ESDJ_LOG[keyof typeof ESDJ_LOG];
export declare const ESDJ_LIMIT: {
readonly NONE: "none";
readonly REQ: "req";
readonly REQ_HIDE: "req_user_hide";
readonly SYS_REQ: "sdj_sys";
readonly KEY_IDX: "sdj_index";
readonly ONE_NONE: "one_none";
readonly REQ_ONE: "at_least_one";
};
export declare const ESDJ_LIMIT_REQ: ESDJ_LIMIT[];
export declare type ESDJ_LIMIT = typeof ESDJ_LIMIT[keyof typeof ESDJ_LIMIT];
export declare const DEF_DESC = "def_desc", DEF_JSON = "sdj_file.json", DEF_MAX_STR_LEN = 64, STR_LEN_LNG = 300, STR_LEN_SHRT = 32, DESC_UNLOCK = "_$ULID", DESC_ALT = "_ALT", SDJ_SCHEMA: string[], GRAPH_ID = "sdGraphZero", SD_IDX = "sdIndex", RESTRICT_WORDS: string[], DATAJI_WORDS: string[], SYS_RESERVED: string[], GRAPH_ZERO: EntityJI, BASE_ITEMS_JI: ItemJI[], MIN_NAME_CHAR = 3, MIN_INFO_DATE = 1693709655818, MAX_OBJ_ARY_LEN = 200;