changemaker.lite/api/dist/modules/users/users.schemas.d.ts

113 lines
4.1 KiB
TypeScript

import { z } from 'zod';
export declare const createUserSchema: z.ZodObject<{
email: z.ZodString;
password: z.ZodString;
name: z.ZodOptional<z.ZodString>;
phone: z.ZodOptional<z.ZodString>;
role: z.ZodOptional<z.ZodNativeEnum<{
SUPER_ADMIN: "SUPER_ADMIN";
INFLUENCE_ADMIN: "INFLUENCE_ADMIN";
MAP_ADMIN: "MAP_ADMIN";
USER: "USER";
TEMP: "TEMP";
}>>;
status: z.ZodOptional<z.ZodNativeEnum<{
ACTIVE: "ACTIVE";
INACTIVE: "INACTIVE";
SUSPENDED: "SUSPENDED";
EXPIRED: "EXPIRED";
}>>;
expiresAt: z.ZodOptional<z.ZodString>;
expireDays: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
email: string;
password: string;
status?: "ACTIVE" | "INACTIVE" | "SUSPENDED" | "EXPIRED" | undefined;
name?: string | undefined;
phone?: string | undefined;
role?: "SUPER_ADMIN" | "INFLUENCE_ADMIN" | "MAP_ADMIN" | "USER" | "TEMP" | undefined;
expiresAt?: string | undefined;
expireDays?: number | undefined;
}, {
email: string;
password: string;
status?: "ACTIVE" | "INACTIVE" | "SUSPENDED" | "EXPIRED" | undefined;
name?: string | undefined;
phone?: string | undefined;
role?: "SUPER_ADMIN" | "INFLUENCE_ADMIN" | "MAP_ADMIN" | "USER" | "TEMP" | undefined;
expiresAt?: string | undefined;
expireDays?: number | undefined;
}>;
export declare const updateUserSchema: z.ZodObject<{
email: z.ZodOptional<z.ZodString>;
password: z.ZodOptional<z.ZodString>;
name: z.ZodOptional<z.ZodString>;
phone: z.ZodOptional<z.ZodString>;
role: z.ZodOptional<z.ZodNativeEnum<{
SUPER_ADMIN: "SUPER_ADMIN";
INFLUENCE_ADMIN: "INFLUENCE_ADMIN";
MAP_ADMIN: "MAP_ADMIN";
USER: "USER";
TEMP: "TEMP";
}>>;
status: z.ZodOptional<z.ZodNativeEnum<{
ACTIVE: "ACTIVE";
INACTIVE: "INACTIVE";
SUSPENDED: "SUSPENDED";
EXPIRED: "EXPIRED";
}>>;
expiresAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
expireDays: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
}, "strip", z.ZodTypeAny, {
status?: "ACTIVE" | "INACTIVE" | "SUSPENDED" | "EXPIRED" | undefined;
email?: string | undefined;
password?: string | undefined;
name?: string | undefined;
phone?: string | undefined;
role?: "SUPER_ADMIN" | "INFLUENCE_ADMIN" | "MAP_ADMIN" | "USER" | "TEMP" | undefined;
expiresAt?: string | null | undefined;
expireDays?: number | null | undefined;
}, {
status?: "ACTIVE" | "INACTIVE" | "SUSPENDED" | "EXPIRED" | undefined;
email?: string | undefined;
password?: string | undefined;
name?: string | undefined;
phone?: string | undefined;
role?: "SUPER_ADMIN" | "INFLUENCE_ADMIN" | "MAP_ADMIN" | "USER" | "TEMP" | undefined;
expiresAt?: string | null | undefined;
expireDays?: number | null | undefined;
}>;
export declare const listUsersSchema: z.ZodObject<{
page: z.ZodDefault<z.ZodNumber>;
limit: z.ZodDefault<z.ZodNumber>;
search: z.ZodOptional<z.ZodString>;
role: z.ZodOptional<z.ZodNativeEnum<{
SUPER_ADMIN: "SUPER_ADMIN";
INFLUENCE_ADMIN: "INFLUENCE_ADMIN";
MAP_ADMIN: "MAP_ADMIN";
USER: "USER";
TEMP: "TEMP";
}>>;
status: z.ZodOptional<z.ZodNativeEnum<{
ACTIVE: "ACTIVE";
INACTIVE: "INACTIVE";
SUSPENDED: "SUSPENDED";
EXPIRED: "EXPIRED";
}>>;
}, "strip", z.ZodTypeAny, {
limit: number;
page: number;
status?: "ACTIVE" | "INACTIVE" | "SUSPENDED" | "EXPIRED" | undefined;
role?: "SUPER_ADMIN" | "INFLUENCE_ADMIN" | "MAP_ADMIN" | "USER" | "TEMP" | undefined;
search?: string | undefined;
}, {
status?: "ACTIVE" | "INACTIVE" | "SUSPENDED" | "EXPIRED" | undefined;
role?: "SUPER_ADMIN" | "INFLUENCE_ADMIN" | "MAP_ADMIN" | "USER" | "TEMP" | undefined;
search?: string | undefined;
limit?: number | undefined;
page?: number | undefined;
}>;
export type CreateUserInput = z.infer<typeof createUserSchema>;
export type UpdateUserInput = z.infer<typeof updateUserSchema>;
export type ListUsersInput = z.infer<typeof listUsersSchema>;
//# sourceMappingURL=users.schemas.d.ts.map