UNPKG

@coko/server

Version:

Reusable server for use by Coko's projects

87 lines 3.13 kB
import model from './user.model'; declare const _default: { model: typeof model; modelName: string; modelLoaders: { usersBasedOnTeamMemberIdsLoader: (userIds: any) => Promise<model[]>; }; typeDefs: string; resolvers: { Query: { user: (_: any, { id }: { id: any; }) => Promise<model>; users: (_: any, { filter, pagination }: { filter: any; pagination: any; }) => Promise<import("..").QueryResult<model>>; currentUser: (_: any, __: any, ctx: any) => Promise<model>; }; Mutation: { activateUser: (_: any, { id }: { id: any; }) => Promise<model>; activateUsers: (_: any, { ids }: { ids: any; }) => Promise<model[]>; deleteUser: (_: any, { id }: { id: any; }) => Promise<number>; deleteUsers: (_: any, { ids }: { ids: any; }) => Promise<number>; deactivateUser: (_: any, { id }: { id: any; }) => Promise<model>; deactivateUsers: (_: any, { ids }: { ids: any; }) => Promise<model[]>; updateUser: (_: any, { id, input }: { id: any; input: any; }) => Promise<model>; login: (_: any, { input }: { input: any; }) => Promise<import("./user.controller").LoginResponse>; signUp: (_: any, { input }: { input: any; }) => Promise<string>; setDefaultIdentity: (_: any, { userId, identityId }: { userId: any; identityId: any; }) => Promise<model>; verifyEmail: (_: any, { token }: { token: any; }) => Promise<boolean>; resendVerificationEmail: (_: any, { token }: { token: any; }) => Promise<boolean>; resendVerificationEmailAfterLogin: (_: any, __: any, ctx: any) => Promise<boolean>; updatePassword: (_: any, { input }: { input: any; }) => Promise<boolean>; sendPasswordResetEmail: (_: any, { email }: { email: any; }) => Promise<boolean>; resetPassword: (_: any, { token, password }: { token: any; password: any; }) => Promise<boolean>; }; User: { identities: (user: any, _: any) => Promise<import("..").Identity[]>; defaultIdentity: (user: any) => Promise<import("..").Identity>; displayName: (user: any) => string; teams: (user: any) => Promise<import("..").Team[]>; }; Subscription: { userUpdated: { subscribe: (...args: any[]) => Promise<AsyncIterator<{ userUpdated: model; }>>; }; }; }; }; export default _default; //# sourceMappingURL=index.d.ts.map