Updates
This commit is contained in:
parent
637ca6ea54
commit
276a0db83b
@ -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;
|
||||
});
|
||||
}
|
||||
|
||||
1
dist/package-shared/api/media/delete.d.ts
vendored
1
dist/package-shared/api/media/delete.d.ts
vendored
@ -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 {};
|
||||
|
||||
1
dist/package-shared/api/media/delete.js
vendored
1
dist/package-shared/api/media/delete.js
vendored
@ -32,6 +32,7 @@ function apiMediaDELETE(params) {
|
||||
path: finalPath,
|
||||
apiKey,
|
||||
useDefault: params.useDefault,
|
||||
query: params.query,
|
||||
});
|
||||
return DELETE_MEDIA_RES;
|
||||
});
|
||||
|
||||
1
dist/package-shared/types/index.d.ts
vendored
1
dist/package-shared/types/index.d.ts
vendored
@ -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;
|
||||
|
||||
@ -9,6 +9,7 @@ export default async function <
|
||||
action: "insert",
|
||||
table,
|
||||
data: body?.data,
|
||||
batchData: body?.batchData,
|
||||
});
|
||||
|
||||
return POST_RESULT;
|
||||
|
||||
@ -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<
|
||||
|
||||
@ -2895,6 +2895,7 @@ export type APIPathsBody<
|
||||
T extends { [k: string]: any } = { [k: string]: any }
|
||||
> = APIPathsQuery<T> & {
|
||||
data?: T;
|
||||
batchData?: T[];
|
||||
};
|
||||
|
||||
export type APIPathsQuery<
|
||||
|
||||
@ -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": {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user