Updates
This commit is contained in:
parent
8eebe3215a
commit
0858b18344
2
dist/index.d.ts
vendored
2
dist/index.d.ts
vendored
@ -23,6 +23,7 @@ import httpsRequest from "./package-shared/functions/backend/httpsRequest";
|
||||
import handleNodemailer from "./package-shared/functions/backend/handleNodemailer";
|
||||
import grabDSQLConnection from "./package-shared/utils/grab-dsql-connection";
|
||||
import grabDSQLConnectionConfig from "./package-shared/utils/grab-dsql-connection-config";
|
||||
import purgeDefaultFields from "./package-shared/utils/purge-default-fields";
|
||||
/**
|
||||
* Main Export
|
||||
*/
|
||||
@ -141,6 +142,7 @@ declare const datasquirel: {
|
||||
httpRequest: typeof httpsRequest;
|
||||
grabDSQLConnection: typeof grabDSQLConnection;
|
||||
grabDSQLConnectionConfig: typeof grabDSQLConnectionConfig;
|
||||
purgeDefaultFields: typeof purgeDefaultFields;
|
||||
};
|
||||
/**
|
||||
* Run Crud actions `get`, `insert`, `update`, `delete`
|
||||
|
||||
2
dist/index.js
vendored
2
dist/index.js
vendored
@ -30,6 +30,7 @@ const handleNodemailer_1 = __importDefault(require("./package-shared/functions/b
|
||||
const grab_dsql_connection_1 = __importDefault(require("./package-shared/utils/grab-dsql-connection"));
|
||||
const grab_dsql_connection_config_1 = __importDefault(require("./package-shared/utils/grab-dsql-connection-config"));
|
||||
const schema_1 = __importDefault(require("./package-shared/api/schema"));
|
||||
const purge_default_fields_1 = __importDefault(require("./package-shared/utils/purge-default-fields"));
|
||||
/**
|
||||
* API Functions Object
|
||||
*/
|
||||
@ -82,6 +83,7 @@ const datasquirel = {
|
||||
httpRequest: httpsRequest_1.default,
|
||||
grabDSQLConnection: grab_dsql_connection_1.default,
|
||||
grabDSQLConnectionConfig: grab_dsql_connection_config_1.default,
|
||||
purgeDefaultFields: purge_default_fields_1.default,
|
||||
},
|
||||
/**
|
||||
* Run Crud actions `get`, `insert`, `update`, `delete`
|
||||
|
||||
13
dist/package-shared/types/index.d.ts
vendored
13
dist/package-shared/types/index.d.ts
vendored
@ -2132,4 +2132,17 @@ export type APIConnectionOptions = {
|
||||
remoteHostPort?: number;
|
||||
isLocalhost?: boolean;
|
||||
};
|
||||
export type CRUDAPIHandlerParams = {
|
||||
req: IncomingMessage;
|
||||
};
|
||||
export type CrudQueryObject<P extends {
|
||||
[k: string]: any;
|
||||
} = {
|
||||
[k: string]: any;
|
||||
}> = {
|
||||
paths?: string[];
|
||||
query?: DsqlCrudQueryObject<P>;
|
||||
userKey?: string;
|
||||
crudParams?: Omit<DsqlCrudParam<P>, "action" | "table">;
|
||||
};
|
||||
export {};
|
||||
|
||||
2
index.ts
2
index.ts
@ -31,6 +31,7 @@ import handleNodemailer from "./package-shared/functions/backend/handleNodemaile
|
||||
import grabDSQLConnection from "./package-shared/utils/grab-dsql-connection";
|
||||
import grabDSQLConnectionConfig from "./package-shared/utils/grab-dsql-connection-config";
|
||||
import schema from "./package-shared/api/schema";
|
||||
import purgeDefaultFields from "./package-shared/utils/purge-default-fields";
|
||||
|
||||
/**
|
||||
* API Functions Object
|
||||
@ -86,6 +87,7 @@ const datasquirel = {
|
||||
httpRequest: httpsRequest,
|
||||
grabDSQLConnection,
|
||||
grabDSQLConnectionConfig,
|
||||
purgeDefaultFields,
|
||||
},
|
||||
/**
|
||||
* Run Crud actions `get`, `insert`, `update`, `delete`
|
||||
|
||||
@ -2787,3 +2787,16 @@ export type APIConnectionOptions = {
|
||||
remoteHostPort?: number;
|
||||
isLocalhost?: boolean;
|
||||
};
|
||||
|
||||
export type CRUDAPIHandlerParams = {
|
||||
req: IncomingMessage;
|
||||
};
|
||||
|
||||
export type CrudQueryObject<
|
||||
P extends { [k: string]: any } = { [k: string]: any }
|
||||
> = {
|
||||
paths?: string[];
|
||||
query?: DsqlCrudQueryObject<P>;
|
||||
userKey?: string;
|
||||
crudParams?: Omit<DsqlCrudParam<P>, "action" | "table">;
|
||||
};
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@moduletrace/datasquirel",
|
||||
"version": "5.4.2",
|
||||
"version": "5.4.3",
|
||||
"description": "Cloud-based SQL data management tool",
|
||||
"main": "dist/index.js",
|
||||
"bin": {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user