futbol-in-core 1.0.8 → 1.0.9

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.
@@ -1,5 +1,5 @@
1
1
  import { TipoLogroEnum } from "../../enum";
2
- import { ILogro } from "../../interfaces";
2
+ import { ILogro } from "../../types/Logros/Logro";
3
3
  export type Logro = ILogro & {
4
4
  id: number;
5
5
  };
@@ -1,2 +1,2 @@
1
- import { UserDTO } from "../interfaces";
1
+ import { UserDTO } from "../types/User";
2
2
  export declare const esGod: (u: UserDTO) => boolean;
@@ -1,3 +1,3 @@
1
- import { UserDTO } from "../interfaces";
1
+ import { UserDTO } from "../types/User";
2
2
  export declare const esOperador: (u: UserDTO) => boolean;
3
3
  export declare const cuentaOperadorIniciada: (u: UserDTO) => boolean;
@@ -1,2 +1,2 @@
1
- import { UserDTO } from "../interfaces";
1
+ import { UserDTO } from "../types/User";
2
2
  export declare const esUsuarioVerificado: (u: UserDTO) => boolean;
@@ -1,2 +1,2 @@
1
- import { UserDTO } from "../interfaces";
1
+ import { UserDTO } from "../types/User";
2
2
  export declare const puedeCrearTorneos: (u: UserDTO) => boolean;
@@ -1,7 +1,8 @@
1
+ import { IconosLogros } from "../../constants/Logros/iconosLogros";
1
2
  export interface ILogro {
2
3
  nombre: string;
3
4
  descripcion: string;
4
- icon: string;
5
+ icon: IconosLogros;
5
6
  steps: number[];
6
7
  stepDescription: (n: number) => string;
7
8
  }
@@ -0,0 +1,26 @@
1
+ import { Posicion } from "../../enum/User/Posicion";
2
+ import { AuthProvider } from "../../enum/User/AuthProvider";
3
+ import { UserRole } from "../../enum/User/Role";
4
+ import { UserStatus } from "../../enum/User/Status";
5
+ export interface UserDTO {
6
+ id: string;
7
+ idOperador: string | null;
8
+ name: string;
9
+ email: string;
10
+ imagen: string;
11
+ status: UserStatus;
12
+ role: UserRole[];
13
+ provider: AuthProvider;
14
+ createdAt?: Date;
15
+ stats: {
16
+ lugaresAgregados: number;
17
+ lugaresRevisados: number;
18
+ lugaresVerificados: number;
19
+ };
20
+ equipos: string[];
21
+ nombre: string | undefined | null;
22
+ telefono: string | undefined | null;
23
+ posicion: Posicion | undefined | null;
24
+ ciudad: string | undefined | null;
25
+ ciudadActual: string | undefined | null;
26
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export * from './UserDTO';
@@ -0,0 +1 @@
1
+ export * from './UserDTO';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "futbol-in-core",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -17,9 +17,9 @@
17
17
  "import": "./dist/index.js",
18
18
  "types": "./dist/index.d.ts"
19
19
  },
20
- "./interfaces": {
21
- "import": "./dist/interfaces/index.js",
22
- "types": "./dist/interfaces/index.d.ts"
20
+ "./types": {
21
+ "import": "./dist/types/index.js",
22
+ "types": "./dist/types/index.d.ts"
23
23
  },
24
24
  "./enum": {
25
25
  "import": "./dist/enum/index.js",
@@ -28,18 +28,25 @@
28
28
  "./constants": {
29
29
  "import": "./dist/constants/index.js",
30
30
  "types": "./dist/constants/index.d.ts"
31
+ },
32
+ "./helpers": {
33
+ "import": "./dist/helpers/index.js",
34
+ "types": "./dist/helpers/index.d.ts"
31
35
  }
32
36
  },
33
37
  "typesVersions": {
34
38
  "*": {
35
- "interfaces": [
36
- "dist/interfaces/*"
39
+ "types": [
40
+ "dist/types/*"
37
41
  ],
38
42
  "enum": [
39
43
  "dist/enum/*"
40
44
  ],
41
45
  "constants": [
42
46
  "dist/constants/*"
47
+ ],
48
+ "helpers": [
49
+ "dist/helpers/*"
43
50
  ]
44
51
  }
45
52
  },
@@ -55,4 +62,4 @@
55
62
  "mongoose": "^8.16.3",
56
63
  "typescript": "^5.8.3"
57
64
  }
58
- }
65
+ }