78 lines
2.7 KiB
TypeScript
78 lines
2.7 KiB
TypeScript
import { Prisma } from '@prisma/client';
|
|
import type { CreateUserInput, UpdateUserInput, ListUsersInput } from './users.schemas';
|
|
export declare const usersService: {
|
|
findAll(filters: ListUsersInput): Promise<{
|
|
users: {
|
|
status: import(".prisma/client").$Enums.UserStatus;
|
|
id: string;
|
|
email: string;
|
|
name: string | null;
|
|
phone: string | null;
|
|
role: import(".prisma/client").$Enums.UserRole;
|
|
permissions: Prisma.JsonValue;
|
|
createdVia: import(".prisma/client").$Enums.UserCreatedVia;
|
|
expiresAt: Date | null;
|
|
expireDays: number | null;
|
|
lastLoginAt: Date | null;
|
|
emailVerified: boolean;
|
|
createdAt: Date;
|
|
updatedAt: Date;
|
|
}[];
|
|
pagination: {
|
|
page: number;
|
|
limit: number;
|
|
total: number;
|
|
totalPages: number;
|
|
};
|
|
}>;
|
|
findById(id: string): Promise<{
|
|
status: import(".prisma/client").$Enums.UserStatus;
|
|
id: string;
|
|
email: string;
|
|
name: string | null;
|
|
phone: string | null;
|
|
role: import(".prisma/client").$Enums.UserRole;
|
|
permissions: Prisma.JsonValue;
|
|
createdVia: import(".prisma/client").$Enums.UserCreatedVia;
|
|
expiresAt: Date | null;
|
|
expireDays: number | null;
|
|
lastLoginAt: Date | null;
|
|
emailVerified: boolean;
|
|
createdAt: Date;
|
|
updatedAt: Date;
|
|
}>;
|
|
create(data: CreateUserInput): Promise<{
|
|
status: import(".prisma/client").$Enums.UserStatus;
|
|
id: string;
|
|
email: string;
|
|
name: string | null;
|
|
phone: string | null;
|
|
role: import(".prisma/client").$Enums.UserRole;
|
|
permissions: Prisma.JsonValue;
|
|
createdVia: import(".prisma/client").$Enums.UserCreatedVia;
|
|
expiresAt: Date | null;
|
|
expireDays: number | null;
|
|
lastLoginAt: Date | null;
|
|
emailVerified: boolean;
|
|
createdAt: Date;
|
|
updatedAt: Date;
|
|
}>;
|
|
update(id: string, data: UpdateUserInput): Promise<{
|
|
status: import(".prisma/client").$Enums.UserStatus;
|
|
id: string;
|
|
email: string;
|
|
name: string | null;
|
|
phone: string | null;
|
|
role: import(".prisma/client").$Enums.UserRole;
|
|
permissions: Prisma.JsonValue;
|
|
createdVia: import(".prisma/client").$Enums.UserCreatedVia;
|
|
expiresAt: Date | null;
|
|
expireDays: number | null;
|
|
lastLoginAt: Date | null;
|
|
emailVerified: boolean;
|
|
createdAt: Date;
|
|
updatedAt: Date;
|
|
}>;
|
|
delete(id: string): Promise<void>;
|
|
};
|
|
//# sourceMappingURL=users.service.d.ts.map
|