pokemon-io-core 0.0.43 → 0.0.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/battleState.d.ts +1 -1
- package/dist/core/index.d.ts +1 -1
- package/dist/core/index.js +1 -1
- package/dist/{core → engine}/engine.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/skins/CombatSkin.d.ts +1 -1
- package/dist/skins/pokemon/pokemonSkin.js +4 -5
- package/package.json +1 -1
- package/dist/api/battle.d.ts +0 -26
- package/dist/api/index.d.ts +0 -2
- package/dist/api/index.js +0 -2
- package/dist/api/room.d.ts +0 -21
- package/dist/api/room.js +0 -2
- package/dist/api/socketTypes.d.ts +0 -46
- package/dist/api/socketTypes.js +0 -1
- package/dist/core/actions.d.ts +0 -21
- package/dist/core/actions.js +0 -1
- package/dist/core/amulets.d.ts +0 -18
- package/dist/core/amulets.js +0 -1
- package/dist/core/events.d.ts +0 -67
- package/dist/core/events.js +0 -1
- package/dist/core/fighters.d.ts +0 -13
- package/dist/core/fighters.js +0 -1
- package/dist/core/ids.d.ts +0 -6
- package/dist/core/ids.js +0 -1
- package/dist/core/items.d.ts +0 -12
- package/dist/core/items.js +0 -1
- package/dist/core/moves.d.ts +0 -73
- package/dist/core/moves.js +0 -2
- package/dist/core/status.d.ts +0 -11
- package/dist/core/status.js +0 -1
- package/dist/core/types.d.ts +0 -14
- package/dist/core/types.js +0 -1
- package/dist/engine/index.d.ts +0 -1
- package/dist/engine/index.js +0 -1
- package/dist/engine/pokemonBattleService.d.ts +0 -6
- package/dist/engine/pokemonBattleService.js +0 -32
- package/dist/modules/auth/auth.schemas.d.ts +0 -24
- package/dist/modules/auth/auth.schemas.js +0 -26
- package/dist/modules/auth/index.d.ts +0 -1
- package/dist/modules/auth/index.js +0 -1
- package/dist/modules/enfrentamiento/enfrentamiento.enum.d.ts +0 -13
- package/dist/modules/enfrentamiento/enfrentamiento.enum.js +0 -15
- package/dist/modules/enfrentamiento/enfrentamiento.schemas.d.ts +0 -22
- package/dist/modules/enfrentamiento/enfrentamiento.schemas.js +0 -17
- package/dist/modules/enfrentamiento/enfrentamiento.types.d.ts +0 -19
- package/dist/modules/enfrentamiento/enfrentamiento.types.js +0 -1
- package/dist/modules/enfrentamiento/index.d.ts +0 -3
- package/dist/modules/enfrentamiento/index.js +0 -3
- package/dist/modules/equipos/equipos.enum.d.ts +0 -5
- package/dist/modules/equipos/equipos.enum.js +0 -6
- package/dist/modules/equipos/equipos.schemas.d.ts +0 -20
- package/dist/modules/equipos/equipos.schemas.js +0 -20
- package/dist/modules/equipos/equipos.types.d.ts +0 -14
- package/dist/modules/equipos/equipos.types.js +0 -1
- package/dist/modules/equipos/index.d.ts +0 -3
- package/dist/modules/equipos/index.js +0 -3
- package/dist/modules/liga/index.d.ts +0 -3
- package/dist/modules/liga/index.js +0 -3
- package/dist/modules/liga/liga.enum.d.ts +0 -14
- package/dist/modules/liga/liga.enum.js +0 -17
- package/dist/modules/liga/liga.schemas.d.ts +0 -59
- package/dist/modules/liga/liga.schemas.js +0 -41
- package/dist/modules/liga/liga.types.d.ts +0 -25
- package/dist/modules/liga/liga.types.js +0 -1
- package/dist/modules/user/index.d.ts +0 -2
- package/dist/modules/user/index.js +0 -2
- package/dist/modules/user/user.schemas.d.ts +0 -15
- package/dist/modules/user/user.schemas.js +0 -15
- package/dist/modules/user/user.types.d.ts +0 -16
- package/dist/modules/user/user.types.js +0 -1
- package/dist/shared/enums.d.ts +0 -0
- package/dist/shared/enums.js +0 -1
- package/dist/skins/index.d.ts +0 -2
- package/dist/skins/pokemon/fighters.d.ts +0 -2
- package/dist/skins/pokemon/img/items/index.d.ts +0 -12
- package/dist/skins/pokemon/img/items/index.js +0 -22
- package/dist/skins/pokemon/img/pokemons/index.d.ts +0 -11
- package/dist/skins/pokemon/img/pokemons/index.js +0 -20
- package/dist/skins/pokemon/index.d.ts +0 -6
- package/dist/skins/pokemon/index.js +0 -6
- package/dist/skins/pokemon/items.d.ts +0 -2
- package/dist/skins/pokemon/moves.d.ts +0 -2
- package/dist/skins/pokemon/pokemonSkin.d.ts +0 -13
- package/dist/skins/pokemon/statuses.d.ts +0 -2
- package/dist/skins/pokemon/types.d.ts +0 -13
- package/dist/utils/logger.d.ts +0 -9
- package/dist/utils/logger.js +0 -15
- /package/dist/{core → engine}/engine.js +0 -0
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import z from "zod";
|
|
2
|
-
export const EnfrentamientoIdParamSchema = z.object({
|
|
3
|
-
id: z.string().min(1, "El ID del enfrentamiento es requerido"),
|
|
4
|
-
});
|
|
5
|
-
const PartidoSchema = z.object({
|
|
6
|
-
golesA: z.number().int().min(0),
|
|
7
|
-
golesB: z.number().int().min(0),
|
|
8
|
-
});
|
|
9
|
-
export const ProponerResultadoSchema = z.object({
|
|
10
|
-
equipoId: z.string().min(1, "El ID del equipo es requerido"),
|
|
11
|
-
partidos: z.array(PartidoSchema).min(1, "Debe haber al menos un partido"),
|
|
12
|
-
});
|
|
13
|
-
export const AceptarRechazarResultadoSchema = z.object({
|
|
14
|
-
enfrentamientoId: z.string(),
|
|
15
|
-
equipoId: z.string(),
|
|
16
|
-
});
|
|
17
|
-
export const GetEnfrentamientosLigaParamsSchema = z.object({ ligaId: z.string('no hay id maricon') });
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { EquipoDTO } from "../equipos";
|
|
2
|
-
import { EstadoEnfrentamiento } from "./enfrentamiento.enum.js";
|
|
3
|
-
export interface EnfrentamientoDTO {
|
|
4
|
-
id: string;
|
|
5
|
-
idLiga: string;
|
|
6
|
-
equipoA: EquipoDTO;
|
|
7
|
-
equipoB: EquipoDTO;
|
|
8
|
-
estado: EstadoEnfrentamiento;
|
|
9
|
-
fecha: Date | null;
|
|
10
|
-
ubicacion: string;
|
|
11
|
-
partidos: PartidoDTO[];
|
|
12
|
-
resultadoPropuestoPor: string | null;
|
|
13
|
-
resultadoAceptadoPor: string | null;
|
|
14
|
-
resultadoRechazadoPor: string | null;
|
|
15
|
-
}
|
|
16
|
-
export interface PartidoDTO {
|
|
17
|
-
golesA: number;
|
|
18
|
-
golesB: number;
|
|
19
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export var EstadoJugadorEnEquipo;
|
|
2
|
-
(function (EstadoJugadorEnEquipo) {
|
|
3
|
-
EstadoJugadorEnEquipo["RECHAZADO"] = "RECHAZADO";
|
|
4
|
-
EstadoJugadorEnEquipo["ACEPTADO"] = "ACEPTADO";
|
|
5
|
-
EstadoJugadorEnEquipo["PENDIENTE"] = "PENDIENTE";
|
|
6
|
-
})(EstadoJugadorEnEquipo || (EstadoJugadorEnEquipo = {}));
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const CrearEquipoSchema: z.ZodObject<{
|
|
3
|
-
nombre: z.ZodString;
|
|
4
|
-
color: z.ZodOptional<z.ZodString>;
|
|
5
|
-
jugadores: z.ZodArray<z.ZodObject<{
|
|
6
|
-
nombre: z.ZodString;
|
|
7
|
-
idUsuario: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
8
|
-
suplente: z.ZodOptional<z.ZodBoolean>;
|
|
9
|
-
}, z.core.$strip>>;
|
|
10
|
-
}, z.core.$strip>;
|
|
11
|
-
export type CrearEquipoBody = z.infer<typeof CrearEquipoSchema>;
|
|
12
|
-
export declare const InvitacionEquipoSchema: z.ZodObject<{
|
|
13
|
-
equipoId: z.ZodString;
|
|
14
|
-
aceptar: z.ZodBoolean;
|
|
15
|
-
}, z.core.$strip>;
|
|
16
|
-
export type InvitacionEquipoBody = z.infer<typeof InvitacionEquipoSchema>;
|
|
17
|
-
export declare const GetEquiposDeUsuarioParamsSchema: z.ZodObject<{
|
|
18
|
-
id: z.ZodString;
|
|
19
|
-
}, z.core.$strip>;
|
|
20
|
-
export type GetEquiposDeUsuarioParams = z.infer<typeof GetEquiposDeUsuarioParamsSchema>;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export const CrearEquipoSchema = z.object({
|
|
3
|
-
nombre: z.string().min(3),
|
|
4
|
-
color: z.string().optional(),
|
|
5
|
-
jugadores: z
|
|
6
|
-
.array(z.object({
|
|
7
|
-
nombre: z.string().min(2),
|
|
8
|
-
idUsuario: z.string().optional().nullable(),
|
|
9
|
-
suplente: z.boolean().optional(),
|
|
10
|
-
}))
|
|
11
|
-
.min(2)
|
|
12
|
-
.max(3),
|
|
13
|
-
});
|
|
14
|
-
export const InvitacionEquipoSchema = z.object({
|
|
15
|
-
equipoId: z.string(),
|
|
16
|
-
aceptar: z.boolean(),
|
|
17
|
-
});
|
|
18
|
-
export const GetEquiposDeUsuarioParamsSchema = z.object({
|
|
19
|
-
id: z.string(),
|
|
20
|
-
});
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { EstadoJugadorEnEquipo } from "./equipos.enum.js";
|
|
2
|
-
export interface EquipoDTO {
|
|
3
|
-
id: string;
|
|
4
|
-
nombre: string;
|
|
5
|
-
color: string;
|
|
6
|
-
jugadores: JugadorDTO[];
|
|
7
|
-
idCreador: string;
|
|
8
|
-
}
|
|
9
|
-
export interface JugadorDTO {
|
|
10
|
-
nombre: string;
|
|
11
|
-
idUsuario: string | null;
|
|
12
|
-
estado: EstadoJugadorEnEquipo;
|
|
13
|
-
suplente: boolean;
|
|
14
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export declare enum EstadoLiga {
|
|
2
|
-
EnCurso = "EN_CURSO",
|
|
3
|
-
SinEmpezar = "SIN_EMPEZAR",
|
|
4
|
-
Finalizada = "FINALIZADA"
|
|
5
|
-
}
|
|
6
|
-
export declare enum TipoFutbolin {
|
|
7
|
-
Infinity = "INFINITY",
|
|
8
|
-
Tsunami = "TSUNAMI"
|
|
9
|
-
}
|
|
10
|
-
export declare enum EstadoEquipoEnLiga {
|
|
11
|
-
Pendiente = "PENDIENTE",
|
|
12
|
-
Aprobado = "APROBADO",
|
|
13
|
-
Rechazado = "RECHAZADO"
|
|
14
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export var EstadoLiga;
|
|
2
|
-
(function (EstadoLiga) {
|
|
3
|
-
EstadoLiga["EnCurso"] = "EN_CURSO";
|
|
4
|
-
EstadoLiga["SinEmpezar"] = "SIN_EMPEZAR";
|
|
5
|
-
EstadoLiga["Finalizada"] = "FINALIZADA";
|
|
6
|
-
})(EstadoLiga || (EstadoLiga = {}));
|
|
7
|
-
export var TipoFutbolin;
|
|
8
|
-
(function (TipoFutbolin) {
|
|
9
|
-
TipoFutbolin["Infinity"] = "INFINITY";
|
|
10
|
-
TipoFutbolin["Tsunami"] = "TSUNAMI";
|
|
11
|
-
})(TipoFutbolin || (TipoFutbolin = {}));
|
|
12
|
-
export var EstadoEquipoEnLiga;
|
|
13
|
-
(function (EstadoEquipoEnLiga) {
|
|
14
|
-
EstadoEquipoEnLiga["Pendiente"] = "PENDIENTE";
|
|
15
|
-
EstadoEquipoEnLiga["Aprobado"] = "APROBADO";
|
|
16
|
-
EstadoEquipoEnLiga["Rechazado"] = "RECHAZADO";
|
|
17
|
-
})(EstadoEquipoEnLiga || (EstadoEquipoEnLiga = {}));
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import { EstadoLiga, TipoFutbolin } from "./liga.enum.js";
|
|
3
|
-
export declare const CrearLigaSchema: z.ZodObject<{
|
|
4
|
-
nombre: z.ZodString;
|
|
5
|
-
descripcion: z.ZodOptional<z.ZodString>;
|
|
6
|
-
tipoFutbolin: z.ZodEnum<typeof TipoFutbolin>;
|
|
7
|
-
estadoLiga: z.ZodDefault<z.ZodEnum<typeof EstadoLiga>>;
|
|
8
|
-
premio: z.ZodOptional<z.ZodString>;
|
|
9
|
-
normas: z.ZodOptional<z.ZodString>;
|
|
10
|
-
ubicaciones: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
11
|
-
configuracion: z.ZodOptional<z.ZodObject<{
|
|
12
|
-
partidosPorEnfrentamiento: z.ZodDefault<z.ZodNumber>;
|
|
13
|
-
golesParaGanar: z.ZodDefault<z.ZodNumber>;
|
|
14
|
-
idaYVuelta: z.ZodDefault<z.ZodBoolean>;
|
|
15
|
-
}, z.core.$strip>>;
|
|
16
|
-
}, z.core.$strip>;
|
|
17
|
-
export type CrearLigaBody = z.infer<typeof CrearLigaSchema>;
|
|
18
|
-
export declare const InscribirEquipoSchema: z.ZodObject<{
|
|
19
|
-
equipoId: z.ZodString;
|
|
20
|
-
}, z.core.$strip>;
|
|
21
|
-
export type InscribirEquipoBody = z.infer<typeof InscribirEquipoSchema>;
|
|
22
|
-
export declare const InscribirEquipoParamsSchema: z.ZodObject<{
|
|
23
|
-
id: z.ZodString;
|
|
24
|
-
}, z.core.$strip>;
|
|
25
|
-
export type InscribirEquipoParams = z.infer<typeof InscribirEquipoParamsSchema>;
|
|
26
|
-
export declare const AprobarInscripcionSchema: z.ZodObject<{
|
|
27
|
-
aprobar: z.ZodBoolean;
|
|
28
|
-
}, z.core.$strip>;
|
|
29
|
-
export type AprobarInscripcionBody = z.infer<typeof AprobarInscripcionSchema>;
|
|
30
|
-
export declare const CambiarEstadoLigaSchema: z.ZodObject<{
|
|
31
|
-
nuevoEstado: z.ZodEnum<typeof EstadoLiga>;
|
|
32
|
-
}, z.core.$strip>;
|
|
33
|
-
export type CambiarEstadoLigaBody = z.infer<typeof CambiarEstadoLigaSchema>;
|
|
34
|
-
export declare const GetLigaParamsSchema: z.ZodObject<{
|
|
35
|
-
id: z.ZodString;
|
|
36
|
-
}, z.core.$strip>;
|
|
37
|
-
export type GetLigaParams = z.infer<typeof GetLigaParamsSchema>;
|
|
38
|
-
export declare const GetEquiposLigaParamsSchema: z.ZodObject<{
|
|
39
|
-
id: z.ZodString;
|
|
40
|
-
}, z.core.$strip>;
|
|
41
|
-
export type GetEquiposLigaParams = z.infer<typeof GetEquiposLigaParamsSchema>;
|
|
42
|
-
export declare const AprobarInscripcionParamsSchema: z.ZodObject<{
|
|
43
|
-
id: z.ZodString;
|
|
44
|
-
equipoId: z.ZodString;
|
|
45
|
-
}, z.core.$strip>;
|
|
46
|
-
export type AprobarInscripcionParams = z.infer<typeof AprobarInscripcionParamsSchema>;
|
|
47
|
-
export declare const CambiarEstadoLigaParamsSchema: z.ZodObject<{
|
|
48
|
-
id: z.ZodString;
|
|
49
|
-
}, z.core.$strip>;
|
|
50
|
-
export type CambiarEstadoLigaParams = z.infer<typeof CambiarEstadoLigaParamsSchema>;
|
|
51
|
-
export declare const MarcarPagadoParamsSchema: z.ZodObject<{
|
|
52
|
-
id: z.ZodString;
|
|
53
|
-
equipoId: z.ZodString;
|
|
54
|
-
}, z.core.$strip>;
|
|
55
|
-
export type MarcarPagadoParams = z.infer<typeof MarcarPagadoParamsSchema>;
|
|
56
|
-
export declare const GetClasificacionParamsSchema: z.ZodObject<{
|
|
57
|
-
id: z.ZodString;
|
|
58
|
-
}, z.core.$strip>;
|
|
59
|
-
export type GetClasificacionParams = z.infer<typeof GetClasificacionParamsSchema>;
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import { EstadoLiga, TipoFutbolin } from "./liga.enum.js";
|
|
3
|
-
const ConfiguracionLigaSchema = z.object({
|
|
4
|
-
partidosPorEnfrentamiento: z
|
|
5
|
-
.number()
|
|
6
|
-
.int()
|
|
7
|
-
.min(1, "Debe haber al menos un partido por enfrentamiento")
|
|
8
|
-
.default(3),
|
|
9
|
-
golesParaGanar: z
|
|
10
|
-
.number()
|
|
11
|
-
.int()
|
|
12
|
-
.min(1, "Debe haber al menos un gol para ganar")
|
|
13
|
-
.default(10),
|
|
14
|
-
idaYVuelta: z.boolean().default(false),
|
|
15
|
-
});
|
|
16
|
-
export const CrearLigaSchema = z.object({
|
|
17
|
-
nombre: z.string().min(3, "El nombre es obligatorio").trim(),
|
|
18
|
-
descripcion: z.string().optional(),
|
|
19
|
-
tipoFutbolin: z.enum(TipoFutbolin),
|
|
20
|
-
estadoLiga: z.enum(EstadoLiga).default(EstadoLiga.SinEmpezar),
|
|
21
|
-
premio: z.string().optional(),
|
|
22
|
-
normas: z.string().optional(),
|
|
23
|
-
ubicaciones: z.array(z.string()).default([]),
|
|
24
|
-
configuracion: ConfiguracionLigaSchema.optional(),
|
|
25
|
-
});
|
|
26
|
-
export const InscribirEquipoSchema = z.object({
|
|
27
|
-
equipoId: z.string().min(1, "Se requiere el ID del equipo"),
|
|
28
|
-
});
|
|
29
|
-
export const InscribirEquipoParamsSchema = z.object({ id: z.string() });
|
|
30
|
-
export const AprobarInscripcionSchema = z.object({
|
|
31
|
-
aprobar: z.boolean(),
|
|
32
|
-
});
|
|
33
|
-
export const CambiarEstadoLigaSchema = z.object({
|
|
34
|
-
nuevoEstado: z.enum(EstadoLiga),
|
|
35
|
-
});
|
|
36
|
-
export const GetLigaParamsSchema = z.object({ id: z.string() });
|
|
37
|
-
export const GetEquiposLigaParamsSchema = z.object({ id: z.string() });
|
|
38
|
-
export const AprobarInscripcionParamsSchema = z.object({ id: z.string(), equipoId: z.string() });
|
|
39
|
-
export const CambiarEstadoLigaParamsSchema = z.object({ id: z.string() });
|
|
40
|
-
export const MarcarPagadoParamsSchema = z.object({ id: z.string(), equipoId: z.string() });
|
|
41
|
-
export const GetClasificacionParamsSchema = z.object({ id: z.string() });
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { EquipoDTO } from "../equipos";
|
|
2
|
-
import { EstadoEquipoEnLiga, EstadoLiga, TipoFutbolin } from "./liga.enum.js";
|
|
3
|
-
export interface LigaDTO {
|
|
4
|
-
id: string;
|
|
5
|
-
nombre: string;
|
|
6
|
-
descripcion: string;
|
|
7
|
-
tipoFutbolin: TipoFutbolin;
|
|
8
|
-
estadoLiga: EstadoLiga;
|
|
9
|
-
ubicaciones: string[];
|
|
10
|
-
premio: string;
|
|
11
|
-
normas: string;
|
|
12
|
-
configuracion: ConfiguracionLigaDTO;
|
|
13
|
-
equipos: EquipoEnLigaDTO[];
|
|
14
|
-
createdBy: string;
|
|
15
|
-
}
|
|
16
|
-
export interface EquipoEnLigaDTO {
|
|
17
|
-
equipo: EquipoDTO;
|
|
18
|
-
pagado: boolean;
|
|
19
|
-
estado: EstadoEquipoEnLiga;
|
|
20
|
-
}
|
|
21
|
-
export interface ConfiguracionLigaDTO {
|
|
22
|
-
partidosPorEnfrentamiento: number;
|
|
23
|
-
golesParaGanar: number;
|
|
24
|
-
idaYVuelta: boolean;
|
|
25
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const GetUserByIdParamsSchema: z.ZodObject<{
|
|
3
|
-
id: z.ZodString;
|
|
4
|
-
}, z.core.$strip>;
|
|
5
|
-
export type GetUserByIdParams = z.infer<typeof GetUserByIdParamsSchema>;
|
|
6
|
-
export declare const UpdateUserSchema: z.ZodObject<{
|
|
7
|
-
nombre: z.ZodOptional<z.ZodString>;
|
|
8
|
-
telefono: z.ZodOptional<z.ZodString>;
|
|
9
|
-
}, z.core.$strip>;
|
|
10
|
-
export type UpdateUserBody = z.infer<typeof UpdateUserSchema>;
|
|
11
|
-
export declare const BuscarUsuariosQuery: z.ZodObject<{
|
|
12
|
-
q: z.ZodString;
|
|
13
|
-
limit: z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>;
|
|
14
|
-
}, z.core.$strip>;
|
|
15
|
-
export type BuscarUsuariosQueryType = z.infer<typeof BuscarUsuariosQuery>;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export const GetUserByIdParamsSchema = z.object({
|
|
3
|
-
id: z.string().min(1, "El id de usuario es obligatorio"),
|
|
4
|
-
});
|
|
5
|
-
export const UpdateUserSchema = z.object({
|
|
6
|
-
nombre: z.string().min(1, "El nombre es obligatorio").optional(),
|
|
7
|
-
telefono: z.string().optional(),
|
|
8
|
-
});
|
|
9
|
-
export const BuscarUsuariosQuery = z.object({
|
|
10
|
-
q: z.string().min(1, "El parámetro 'q' es requerido"),
|
|
11
|
-
limit: z
|
|
12
|
-
.string()
|
|
13
|
-
.transform((v) => parseInt(v))
|
|
14
|
-
.refine((v) => !isNaN(v) && v > 0 && v <= 50, "Limit inválido")
|
|
15
|
-
});
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export interface UserDTO {
|
|
2
|
-
id: string;
|
|
3
|
-
username: string;
|
|
4
|
-
nombre: string;
|
|
5
|
-
email: string;
|
|
6
|
-
movil: string;
|
|
7
|
-
verified: boolean;
|
|
8
|
-
admin: boolean;
|
|
9
|
-
createdAt: Date;
|
|
10
|
-
}
|
|
11
|
-
export interface SearchUserDTO {
|
|
12
|
-
id: string;
|
|
13
|
-
username: string;
|
|
14
|
-
nombre: string;
|
|
15
|
-
email: string;
|
|
16
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/shared/enums.d.ts
DELETED
|
File without changes
|
package/dist/shared/enums.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
package/dist/skins/index.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export declare const itemsImages: {
|
|
2
|
-
readonly antidote: string;
|
|
3
|
-
readonly bigMushroom: string;
|
|
4
|
-
readonly calcium: string;
|
|
5
|
-
readonly carbos: string;
|
|
6
|
-
readonly fancyApple: string;
|
|
7
|
-
readonly fireStone: string;
|
|
8
|
-
readonly hyperPotion: string;
|
|
9
|
-
readonly poison: string;
|
|
10
|
-
readonly revivalHerb: string;
|
|
11
|
-
readonly shoalSalt: string;
|
|
12
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import antidote from "./antidote.png";
|
|
2
|
-
import bigMushroom from "./big-mushroom.png";
|
|
3
|
-
import calcium from "./calcium.png";
|
|
4
|
-
import carbos from "./carbos.png";
|
|
5
|
-
import fancyApple from "./fancy-apple.png";
|
|
6
|
-
import fireStone from "./fire-stone.png";
|
|
7
|
-
import hyperPotion from "./hyper-potion.png";
|
|
8
|
-
import poison from "./poison.png";
|
|
9
|
-
import revivalHerb from "./revival-herb.png";
|
|
10
|
-
import shoalSalt from "./shoal-salt.png";
|
|
11
|
-
export const itemsImages = {
|
|
12
|
-
antidote,
|
|
13
|
-
bigMushroom,
|
|
14
|
-
calcium,
|
|
15
|
-
carbos,
|
|
16
|
-
fancyApple,
|
|
17
|
-
fireStone,
|
|
18
|
-
hyperPotion,
|
|
19
|
-
poison,
|
|
20
|
-
revivalHerb,
|
|
21
|
-
shoalSalt,
|
|
22
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare const pokemonImages: {
|
|
2
|
-
readonly blastoise: string;
|
|
3
|
-
readonly bulbasour: string;
|
|
4
|
-
readonly charizard: string;
|
|
5
|
-
readonly charmander: string;
|
|
6
|
-
readonly groudon: string;
|
|
7
|
-
readonly kyogre: string;
|
|
8
|
-
readonly mew: string;
|
|
9
|
-
readonly pikachu: string;
|
|
10
|
-
readonly venusaur: string;
|
|
11
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import blastoise from "./blastoise.png";
|
|
2
|
-
import bulbasour from "./bulbasaur.png";
|
|
3
|
-
import charizard from "./charizard.png";
|
|
4
|
-
import charmander from "./charmander.png";
|
|
5
|
-
import groudon from "./groudon.png";
|
|
6
|
-
import kyogre from "./kyogre.webp";
|
|
7
|
-
import mew from "./mew.png";
|
|
8
|
-
import pikachu from "./pikachu.png";
|
|
9
|
-
import venusaur from "./venusaur.png";
|
|
10
|
-
export const pokemonImages = {
|
|
11
|
-
blastoise,
|
|
12
|
-
bulbasour,
|
|
13
|
-
charizard,
|
|
14
|
-
charmander,
|
|
15
|
-
groudon,
|
|
16
|
-
kyogre,
|
|
17
|
-
mew,
|
|
18
|
-
pikachu,
|
|
19
|
-
venusaur,
|
|
20
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { ItemDefinition, MoveDefinition, PlayerBattleConfig } from "../../core";
|
|
2
|
-
import type { CombatSkin, FighterLoadout } from "../CombatSkin";
|
|
3
|
-
export declare class PokemonSkin implements CombatSkin {
|
|
4
|
-
readonly id = "pokemon";
|
|
5
|
-
getTypes(): import("../..").TypeDefinition[];
|
|
6
|
-
getTypeEffectiveness(): import("../..").TypeEffectivenessMatrix;
|
|
7
|
-
getMoves(): MoveDefinition[];
|
|
8
|
-
getItems(): ItemDefinition[];
|
|
9
|
-
getAmulets(): never[];
|
|
10
|
-
getStatuses(): import("../..").StatusDefinition[];
|
|
11
|
-
buildPlayerConfig(loadout: FighterLoadout): PlayerBattleConfig;
|
|
12
|
-
}
|
|
13
|
-
export declare const createPokemonSkin: () => CombatSkin;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { TypeDefinition, TypeEffectivenessMatrix, TypeId } from "../../core";
|
|
2
|
-
export declare const POKEMON_TYPE_IDS: {
|
|
3
|
-
readonly fire: "fire";
|
|
4
|
-
readonly water: "water";
|
|
5
|
-
readonly grass: "grass";
|
|
6
|
-
readonly electric: "electric";
|
|
7
|
-
readonly psychic: "psychic";
|
|
8
|
-
readonly rock: "rock";
|
|
9
|
-
};
|
|
10
|
-
export type PokemonTypeId = (typeof POKEMON_TYPE_IDS)[keyof typeof POKEMON_TYPE_IDS];
|
|
11
|
-
export declare const POKEMON_TYPES: TypeDefinition[];
|
|
12
|
-
export declare const POKEMON_TYPE_MATRIX: TypeEffectivenessMatrix;
|
|
13
|
-
export declare const getPokemonTypeEffectiveness: (attackerTypeId: TypeId, defenderTypeId: TypeId) => number;
|
package/dist/utils/logger.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export interface Logger {
|
|
2
|
-
info(message: string): void;
|
|
3
|
-
error(message: string, error?: unknown): void;
|
|
4
|
-
}
|
|
5
|
-
export declare class ConsoleLogger implements Logger {
|
|
6
|
-
info(message: string): void;
|
|
7
|
-
error(message: string, error?: unknown): void;
|
|
8
|
-
}
|
|
9
|
-
export declare const logger: ConsoleLogger;
|
package/dist/utils/logger.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export class ConsoleLogger {
|
|
2
|
-
info(message) {
|
|
3
|
-
// Podríamos mejorar formateo más adelante
|
|
4
|
-
console.log(`[INFO] ${message}`);
|
|
5
|
-
}
|
|
6
|
-
error(message, error) {
|
|
7
|
-
if (error) {
|
|
8
|
-
console.error(`[ERROR] ${message}`, error);
|
|
9
|
-
}
|
|
10
|
-
else {
|
|
11
|
-
console.error(`[ERROR] ${message}`);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
export const logger = new ConsoleLogger();
|
|
File without changes
|