futbol-in-core 1.0.0

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.
@@ -0,0 +1,4 @@
1
+ export declare enum AuthProvider {
2
+ GOOGLE = "google",
3
+ CREDENTIALS = "credentials"
4
+ }
@@ -0,0 +1,6 @@
1
+ export declare enum Posicion {
2
+ DELANTERO = "Delantero",
3
+ PORTERO = "Portero",
4
+ POLIVALENTE = "Polivalente",
5
+ NOT_SET = ""
6
+ }
@@ -0,0 +1,8 @@
1
+ export declare enum UserRole {
2
+ USER = "user",
3
+ VERIFICADO = "verificado",
4
+ ADMIN = "admin",
5
+ CREA_TORNEOS = "crea_torneos",
6
+ OPERADOR = "operador",
7
+ GOD = "god"
8
+ }
@@ -0,0 +1,6 @@
1
+ export declare enum UserStatus {
2
+ MUST_CONFIRM_EMAIL = "MUST_CONFIRM_EMAIL",
3
+ MUST_INIT_ACCOUNT = "MUST_INIT_ACCOUNT",
4
+ MUST_CREATE_USERNAME = "MUST_CREATE_USERNAME",
5
+ DONE = "done"
6
+ }
@@ -0,0 +1,4 @@
1
+ export * from './AuthProvider';
2
+ export * from './Posicion';
3
+ export * from './Role';
4
+ export * from './Status';
@@ -0,0 +1 @@
1
+ export * from './User';
@@ -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 * from './UserDTO';
@@ -0,0 +1 @@
1
+ export * from './User';
package/package.json ADDED
@@ -0,0 +1,47 @@
1
+ {
2
+ "name": "futbol-in-core",
3
+ "version": "1.0.0",
4
+ "description": "",
5
+ "main": "index.js",
6
+ "type": "module",
7
+ "private": false,
8
+ "publishConfig": {
9
+ "access": "public"
10
+ },
11
+ "files": [
12
+ "dist"
13
+ ],
14
+ "types": "./dist/index.d.ts",
15
+ "exports": {
16
+ ".": {
17
+ "types": "./dist/index.d.ts"
18
+ },
19
+ "./interfaces": {
20
+ "types": "./dist/interfaces/index.d.ts"
21
+ },
22
+ "./enum": {
23
+ "types": "./dist/enum/index.d.ts"
24
+ }
25
+ },
26
+ "typesVersions": {
27
+ "*": {
28
+ "interfaces": [
29
+ "dist/interfaces/*"
30
+ ],
31
+ "enum": [
32
+ "dist/enum/*"
33
+ ]
34
+ }
35
+ },
36
+ "scripts": {
37
+ "build": "tsc -p .",
38
+ "prepublishOnly": "pnpm run build",
39
+ "publish": "npm publish --access public"
40
+ },
41
+ "keywords": [],
42
+ "author": "",
43
+ "license": "ISC",
44
+ "devDependencies": {
45
+ "typescript": "^5.8.3"
46
+ }
47
+ }