UNPKG

appwrite-server-wrapper

Version:

Wrapper library to handle Appwrite methods including server handling using SSR with NextJS v15 (useActionState, useAction,...)

32 lines (31 loc) 2.89 kB
import { live, hostInternal, hostExternal, originInternal, originExternal, } from "./host"; import { imgToWebP, apwManager, isEmptyObject, isValidJsonObject, temporaryPassword, isValidJsonString, isEmptyKeyValuePair, } from "./utils"; import { paths } from "./appwriteConfig"; import { checkPathsExists } from "./ssr-utils"; export { ID, Query } from "node-appwrite"; export { Client as RealtimeClient } from "./appwriteRealtimeClient"; checkPathsExists(paths); export { createRealtime } from "./methods/realtime"; export { // Account functions addPrefs, createAccount, createAnonymousSession, createEmailPasswordSession, createJWT, createMagicURLSession, createOAuth2Token, createPhoneVerification, createRecovery, createSession, createVerification, deletePrefs, deleteSession, deleteSessions, getApwUser, getSession, getUser, listSessions, updateEmail, updateName, updatePassword, updatePhone, updatePhoneVerification, updateRecovery, updateSession, updateStatus, updateVerification, } from "./methods/account"; export { // Avatars functions getBrowserIcon, getCreditCardIcon, getFavicon, getFlag, getImage, getInitials, getQr, } from "./methods/avatars"; export { // Storage functions createBucket, deleteBucket, getBucket, getFile, getFileDownload, getFilePreview, getFileView, deleteFile, listBuckets, listFiles, updateBucket, updateFile, uploadFile, //uploadFileFromPath, } from "./methods/storage"; export { // Teams functions createTeam, createTeamMembership, deleteTeam, deleteTeamMembership, getTeam, getTeamMembership, getTeamPreferences, listTeamMemberships, listTeams, updateTeamMembership, updateTeamMembershipStatus, updateTeamName, updateTeamPreferences, } from "./methods/teams"; export { // Users functions addLabelsForUserId, addPrefsForUserId, createSessionForUserId, createToken, deleteLabelsForUserId, deletePrefsForUserId, deleteSessionForUserId, deleteSessionsForUserId, deleteUserForUserId, getApwUserForUserId, getUserForUserId, // INcl. deleted=false as default listApwUsers, listUsers, // INcl. deleted=false as default listIdentities, listIdentitiesForUserId, listSessionsForUserId, updateEmailForUserId, updateEmailVerificationForUserId, updateLabelsForUserId, updateNameForUserId, updatePasswordForUserId, updatePhoneForUserId, updatePhoneVerificationForUserId, updatePrefsForUserId, updateStatusForUserId, } from "./methods/users"; export { // ApwWrapper Config envCheck, apiKeySsr, appDomain, cookiePrefix, cookieName, databaseId, endpoint, pathI18n, liveEnvVarName, oauthSuccessPath, oauthFailurePath, projectId, port, paths, pathLogs, pathSchemas, signInPath, usersCollectionId, verificationPath, logsBucketId, logsBucketName, } from "./appwriteConfig"; export { apwManager, temporaryPassword, imgToWebP, hostInternal, hostExternal, live, originInternal, originExternal, isValidJsonString, isEmptyKeyValuePair, isEmptyObject, isValidJsonObject, };