This commit is contained in:
Benjamin Toby 2025-12-30 18:00:20 +01:00
parent 637ca6ea54
commit 276a0db83b
8 changed files with 9 additions and 2 deletions

View File

@ -16,7 +16,7 @@ exports.default = default_1;
const crud_1 = __importDefault(require("../../utils/data-fetching/crud"));
function default_1(_a) {
return __awaiter(this, arguments, void 0, function* ({ table, body }) {
const POST_RESULT = yield (0, crud_1.default)(Object.assign(Object.assign({}, body === null || body === void 0 ? void 0 : body.crudParams), { action: "insert", table, data: body === null || body === void 0 ? void 0 : body.data }));
const POST_RESULT = yield (0, crud_1.default)(Object.assign(Object.assign({}, body === null || body === void 0 ? void 0 : body.crudParams), { action: "insert", table, data: body === null || body === void 0 ? void 0 : body.data, batchData: body === null || body === void 0 ? void 0 : body.batchData }));
return POST_RESULT;
});
}

View File

@ -7,6 +7,7 @@ type Params = {
* # Query datasquirel.com
*/
useDefault?: boolean;
query?: any;
};
export default function apiMediaDELETE(params: Params): Promise<APIResponseObject<DSQL_DATASQUIREL_USER_MEDIA | DSQL_DATASQUIREL_USER_MEDIA[]>>;
export {};

View File

@ -32,6 +32,7 @@ function apiMediaDELETE(params) {
path: finalPath,
apiKey,
useDefault: params.useDefault,
query: params.query,
});
return DELETE_MEDIA_RES;
});

View File

@ -2235,6 +2235,7 @@ export type APIPathsBody<T extends {
[k: string]: any;
}> = APIPathsQuery<T> & {
data?: T;
batchData?: T[];
};
export type APIPathsQuery<T extends {
[k: string]: any;

View File

@ -9,6 +9,7 @@ export default async function <
action: "insert",
table,
data: body?.data,
batchData: body?.batchData,
});
return POST_RESULT;

View File

@ -12,6 +12,7 @@ type Params = {
* # Query datasquirel.com
*/
useDefault?: boolean;
query?: any;
};
export default async function apiMediaDELETE(
@ -37,6 +38,7 @@ export default async function apiMediaDELETE(
path: finalPath,
apiKey,
useDefault: params.useDefault,
query: params.query,
});
return DELETE_MEDIA_RES as APIResponseObject<

View File

@ -2895,6 +2895,7 @@ export type APIPathsBody<
T extends { [k: string]: any } = { [k: string]: any }
> = APIPathsQuery<T> & {
data?: T;
batchData?: T[];
};
export type APIPathsQuery<

View File

@ -1,6 +1,6 @@
{
"name": "@moduletrace/datasquirel",
"version": "5.7.2",
"version": "5.7.3",
"description": "Cloud-based SQL data management tool",
"main": "dist/index.js",
"bin": {