slate/node_common/data/index.js

45 lines
1.8 KiB
JavaScript
Raw Normal View History

import createUser from "~/node_common/data/methods/create-user";
import updateUserById from "~/node_common/data/methods/update-user-by-id";
import deleteUserByUsername from "~/node_common/data/methods/delete-user-by-username";
import getUserByUsername from "~/node_common/data/methods/get-user-by-username";
import getUserById from "~/node_common/data/methods/get-user-by-id";
import createSlate from "~/node_common/data/methods/create-slate";
import getSlateByName from "~/node_common/data/methods/get-slate-by-name";
import getSlateById from "~/node_common/data/methods/get-slate-by-id";
2020-07-27 04:51:51 +03:00
import getSlatesByUserId from "~/node_common/data/methods/get-slates-by-user-id";
import updateSlateById from "~/node_common/data/methods/update-slate-by-id";
import deleteSlatesForUserId from "~/node_common/data/methods/delete-slates-for-user-id";
2020-08-07 05:17:49 +03:00
import deleteSlateById from "~/node_common/data/methods/delete-slate-by-id";
import createAPIKeyForUserId from "~/node_common/data/methods/create-api-key-for-user-id";
import deleteAPIKeyById from "~/node_common/data/methods/delete-api-key-by-id";
import deleteAPIKeysForUserId from "~/node_common/data/methods/delete-api-keys-for-user-id";
import getAPIKey from "~/node_common/data/methods/get-api-key";
import getAPIKeyByKey from "~/node_common/data/methods/get-api-key-by-key";
import getAPIKeysByUserId from "~/node_common/data/methods/get-api-keys-by-user-id";
export {
// NOTE(jim): User operations.
createUser,
updateUserById,
deleteUserByUsername,
getUserByUsername,
getUserById,
// NOTE(jim): Slate operations.
createSlate,
getSlateByName,
getSlateById,
2020-07-27 04:51:51 +03:00
getSlatesByUserId,
updateSlateById,
deleteSlatesForUserId,
2020-08-07 05:17:49 +03:00
deleteSlateById,
// NOTE(jim): API key operations,
createAPIKeyForUserId,
deleteAPIKeyById,
deleteAPIKeysForUserId,
getAPIKey,
getAPIKeyByKey,
getAPIKeysByUserId,
};