datasquirel/index.d.ts

51 lines
1.9 KiB
TypeScript
Raw Normal View History

2024-11-08 15:41:22 +00:00
import get = require("./utils/get");
import post = require("./utils/post");
export namespace media {
export { uploadImage };
export { uploadFile };
export { deleteFile };
}
export namespace user {
export { createUser };
export { loginUser };
export { sendEmailCode };
export { logoutUser };
export { userAuth };
export { reAuthUser };
export { updateUser };
export { getUser };
export { getToken };
export { validateToken };
export namespace social {
export { loginWithGoogle };
export { loginWithGithub };
}
}
import getSchema = require("./utils/get-schema");
import sanitizeSql = require("./utils/functions/sanitizeSql");
import datasquirelClient = require("./client");
2024-11-08 18:54:14 +00:00
export namespace sql {
export { sqlGenerator };
2024-11-12 11:01:39 +00:00
export { sqlInsertGenerator };
2024-11-12 18:46:41 +00:00
export { sqlDeleteGenerator };
2024-11-08 18:54:14 +00:00
}
2024-11-08 15:41:22 +00:00
import uploadImage = require("./utils/upload-image");
import uploadFile = require("./utils/upload-file");
import deleteFile = require("./utils/delete-file");
import createUser = require("./users/add-user");
import loginUser = require("./users/login-user");
import sendEmailCode = require("./users/send-email-code");
import logoutUser = require("./users/logout-user");
import userAuth = require("./users/user-auth");
import reAuthUser = require("./users/reauth-user");
import updateUser = require("./users/update-user");
import getUser = require("./users/get-user");
import getToken = require("./users/get-token");
import validateToken = require("./users/validate-token");
import loginWithGoogle = require("./users/social/google-auth");
import loginWithGithub = require("./users/social/github-auth");
2024-11-08 18:54:14 +00:00
import sqlGenerator = require("./functions/sql/sql-generator");
2024-11-12 11:01:39 +00:00
import sqlInsertGenerator = require("./functions/sql/sql-insert-generator");
2024-11-12 18:46:41 +00:00
import sqlDeleteGenerator = require("./functions/sql/sql-delete-generator");
2024-11-08 15:41:22 +00:00
export { get, post, getSchema, sanitizeSql, datasquirelClient as client };