mirror of
https://github.com/filecoin-project/slate.git
synced 2024-11-24 14:56:27 +03:00
60 lines
2.3 KiB
JavaScript
60 lines
2.3 KiB
JavaScript
// NOTE(jim):
|
|
// User postgres queries
|
|
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";
|
|
|
|
// NOTE(jim):
|
|
// Slate postgres queries
|
|
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";
|
|
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";
|
|
import deleteSlateById from "~/node_common/data/methods/delete-slate-by-id";
|
|
|
|
// NOTE(jim):
|
|
// API postgres queries
|
|
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";
|
|
|
|
// NOTE(jim):
|
|
import getSubscriptionsByUserId from "~/node_common/data/methods/get-subscriptions-by-user-id";
|
|
import createSubscription from "~/node_common/data/methods/create-subscription";
|
|
import deleteSubscriptionById from "~/node_common/data/methods/delete-subscription-by-id";
|
|
|
|
export {
|
|
// NOTE(jim): User operations.
|
|
createUser,
|
|
updateUserById,
|
|
deleteUserByUsername,
|
|
getUserByUsername,
|
|
getUserById,
|
|
// NOTE(jim): Slate operations.
|
|
createSlate,
|
|
getSlateByName,
|
|
getSlateById,
|
|
getSlatesByUserId,
|
|
updateSlateById,
|
|
deleteSlatesForUserId,
|
|
deleteSlateById,
|
|
// NOTE(jim): API key operations,
|
|
createAPIKeyForUserId,
|
|
deleteAPIKeyById,
|
|
deleteAPIKeysForUserId,
|
|
getAPIKey,
|
|
getAPIKeyByKey,
|
|
getAPIKeysByUserId,
|
|
// NOTE(jim): Subscription operations,
|
|
getSubscriptionsByUserId,
|
|
deleteSubscriptionById
|
|
createSubscription
|
|
};
|