expo-backend-types 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/src/account/dto/account.dto.d.ts +11 -201
- package/dist/src/account/dto/account.dto.js +4 -21
- package/dist/src/account/dto/create-account.dto.d.ts +9 -301
- package/dist/src/account/dto/create-account.dto.js +3 -4
- package/dist/src/account/dto/get-global-filter.dto.d.ts +24 -20
- package/dist/src/account/dto/get-global-filter.dto.js +10 -6
- package/dist/src/account/dto/get-me.dto.d.ts +214 -188
- package/dist/src/account/dto/get-me.dto.js +27 -4
- package/dist/src/account/dto/update-global-filter.dto.d.ts +136 -169
- package/dist/src/account/dto/update-global-filter.dto.js +7 -15
- package/dist/src/auth/dto/login.dto.d.ts +34 -414
- package/dist/src/auth/dto/login.dto.js +5 -4
- package/dist/src/auth/dto/refresh.dto.d.ts +30 -0
- package/dist/src/auth/dto/refresh.dto.js +17 -0
- package/dist/src/comment/dto/comment.dto.d.ts +21 -15
- package/dist/src/comment/dto/comment.dto.js +11 -6
- package/dist/src/comment/dto/create-comment.dto.d.ts +106 -0
- package/dist/src/comment/dto/create-comment.dto.js +18 -0
- package/dist/src/comment/dto/get-by-profile-comment.dto.d.ts +177 -0
- package/dist/src/comment/dto/get-by-profile-comment.dto.js +21 -0
- package/dist/src/comment/dto/toggle-solve-comment.dto.d.ts +71 -0
- package/dist/src/comment/dto/toggle-solve-comment.dto.js +10 -0
- package/dist/src/comment/exports.d.ts +3 -0
- package/dist/src/comment/exports.js +3 -0
- package/dist/src/event/dto/event.dto.d.ts +10 -16
- package/dist/src/event/dto/event.dto.js +6 -10
- package/dist/src/event-folder/dto/event-folder.dto.d.ts +6 -0
- package/dist/src/event-folder/dto/event-folder.dto.js +2 -0
- package/dist/src/event-folder/exports.d.ts +1 -0
- package/dist/src/event-folder/exports.js +18 -0
- package/dist/src/exports.d.ts +5 -3
- package/dist/src/exports.js +5 -3
- package/dist/src/i18n/es.d.ts +210 -0
- package/dist/src/i18n/es.js +212 -0
- package/dist/src/i18n/es.js.map +1 -0
- package/dist/src/i18n/translate.d.ts +9 -2
- package/dist/src/i18n/translate.js +3 -3
- package/dist/src/i18n/translate.js.map +1 -1
- package/dist/src/profile/dto/profile.dto.d.ts +68 -0
- package/dist/src/profile/dto/profile.dto.js +59 -0
- package/dist/src/profile/exports.d.ts +1 -0
- package/dist/src/profile/exports.js +18 -0
- package/dist/src/shared/dto-modification/create-zod-dto-without-date.d.ts +4 -0
- package/dist/src/shared/dto-modification/create-zod-dto-without-date.js +10 -0
- package/dist/src/shared/dto-modification/create-zod-dto-without-date.js.map +1 -0
- package/dist/src/shared/dto-modification/without-dates.d.ts +4 -0
- package/dist/src/shared/dto-modification/without-dates.js +6 -0
- package/dist/src/shared/dto-modification/without-dates.js.map +1 -0
- package/dist/src/shared/dto-modification/zod-without-dates.d.ts +8 -0
- package/dist/src/shared/dto-modification/zod-without-dates.js +28 -0
- package/dist/src/shared/dto-modification/zod-without-dates.js.map +1 -0
- package/dist/src/tag/dto/create-tag.dto.d.ts +5 -16
- package/dist/src/tag/dto/create-tag.dto.js +3 -3
- package/dist/src/tag/dto/delete-tag.dto.d.ts +7 -7
- package/dist/src/tag/dto/delete-tag.dto.js +2 -2
- package/dist/src/tag/dto/find-all-tag.dto.d.ts +34 -35
- package/dist/src/tag/dto/find-all-tag.dto.js +2 -2
- package/dist/src/tag/dto/find-by-group-tag.dto.d.ts +35 -36
- package/dist/src/tag/dto/find-by-group-tag.dto.js +5 -5
- package/dist/src/tag/dto/find-one-tag.dto.d.ts +23 -24
- package/dist/src/tag/dto/find-one-tag.dto.js +2 -2
- package/dist/src/tag/dto/massive-allocation.dto.d.ts +260 -0
- package/dist/src/tag/dto/massive-allocation.dto.js +24 -0
- package/dist/src/tag/dto/massive-deallocation.dto.d.ts +260 -0
- package/dist/src/tag/dto/massive-deallocation.dto.js +24 -0
- package/dist/src/tag/dto/tag.dto.d.ts +7 -7
- package/dist/src/tag/dto/tag.dto.js +3 -3
- package/dist/src/tag/dto/update-tag.dto.d.ts +31 -22
- package/dist/src/tag/dto/update-tag.dto.js +5 -7
- package/dist/src/tag/exports.d.ts +2 -1
- package/dist/src/tag/exports.js +2 -1
- package/dist/src/tag-group/dto/create-tag-group.dto.d.ts +78 -0
- package/dist/src/tag-group/dto/create-tag-group.dto.js +18 -0
- package/dist/src/tag-group/dto/delete-tag-group.dto.d.ts +47 -0
- package/dist/src/tag-group/dto/delete-tag-group.dto.js +10 -0
- package/dist/src/tag-group/dto/find-all-tag-group.dto.d.ts +207 -0
- package/dist/src/tag-group/dto/find-all-tag-group.dto.js +19 -0
- package/dist/src/{tag/dto/find-all-grouped-tag.dto.d.ts → tag-group/dto/find-all-with-tags.dto.d.ts} +24 -28
- package/dist/src/{tag/dto/find-all-grouped-tag.dto.js → tag-group/dto/find-all-with-tags.dto.js} +8 -8
- package/dist/src/tag-group/dto/find-one-tag-group.dto.d.ts +135 -0
- package/dist/src/tag-group/dto/find-one-tag-group.dto.js +17 -0
- package/dist/src/tag-group/dto/tag-group.dto.d.ts +9 -9
- package/dist/src/tag-group/dto/tag-group.dto.js +5 -3
- package/dist/src/tag-group/dto/update-tag-group.dto.d.ts +78 -0
- package/dist/src/tag-group/dto/update-tag-group.dto.js +18 -0
- package/dist/src/tag-group/exports.d.ts +6 -0
- package/dist/src/tag-group/exports.js +6 -0
- package/dist/types/prisma-schema/edge.js +4 -4
- package/dist/types/prisma-schema/index-browser.js +1 -1
- package/dist/types/prisma-schema/index.d.ts +53 -53
- package/dist/types/prisma-schema/index.js +4 -4
- package/dist/types/prisma-schema/package.json +1 -1
- package/dist/types/prisma-schema/schema.prisma +1 -1
- package/dist/types/prisma-schema/wasm.js +1 -1
- package/dist/types/schema.d.ts +787 -184
- package/package.json +10 -6
- package/dist/src/i18n/es.json +0 -125
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "expo-backend-types",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.5.0",
|
4
4
|
"description": "",
|
5
5
|
"author": "Expo",
|
6
6
|
"private": false,
|
@@ -9,13 +9,14 @@
|
|
9
9
|
"dist/types",
|
10
10
|
"dist/src/**/*.dto.{js,d.ts,ts}",
|
11
11
|
"dist/src/**/exports.{js,d.ts,ts}",
|
12
|
+
"dist/src/shared/dto-modification",
|
12
13
|
"dist/src/i18n"
|
13
14
|
],
|
14
15
|
"scripts": {
|
15
16
|
"ci": "npm install && npx prisma generate && npm run generate-ts-schema && npm run build && npx prisma generate && npm run format && npm run lint && npm run check-exports",
|
16
17
|
"build": "nest build",
|
17
18
|
"postinstall": "patch-package",
|
18
|
-
"format": "prettier --write \"src/**/*.ts\"",
|
19
|
+
"format": "prettier --write \"src/**/*.ts\" \"types/**/*.ts\"",
|
19
20
|
"check-format": "prettier --check \"src/**/*.ts\"",
|
20
21
|
"check-exports": "attw --pack .",
|
21
22
|
"local-release": "changeset version && changeset publish",
|
@@ -45,6 +46,8 @@
|
|
45
46
|
"@nestjs/swagger": "^7.3.1",
|
46
47
|
"@prisma/client": "^5.14.0",
|
47
48
|
"bcrypt": "^5.1.1",
|
49
|
+
"class-transformer": "^0.5.1",
|
50
|
+
"class-validator": "^0.14.1",
|
48
51
|
"i18n-js": "^4.4.3",
|
49
52
|
"json-to-pretty-yaml": "^1.2.2",
|
50
53
|
"openapi3-ts": "^4.4.0",
|
@@ -65,12 +68,13 @@
|
|
65
68
|
"@types/json-to-pretty-yaml": "^1.2.1",
|
66
69
|
"@types/node": "^20.3.1",
|
67
70
|
"@types/supertest": "^6.0.0",
|
68
|
-
"@typescript-eslint/eslint-plugin": "^
|
69
|
-
"@typescript-eslint/parser": "^
|
70
|
-
"eslint": "^
|
71
|
+
"@typescript-eslint/eslint-plugin": "^8.8.0",
|
72
|
+
"@typescript-eslint/parser": "^8.8.0",
|
73
|
+
"eslint": "^9.11.1",
|
71
74
|
"eslint-config-prettier": "^9.0.0",
|
72
75
|
"eslint-plugin-prettier": "^5.0.0",
|
73
|
-
"eslint-plugin-unused-imports": "^
|
76
|
+
"eslint-plugin-unused-imports": "^4.1.4",
|
77
|
+
"globals": "^15.10.0",
|
74
78
|
"husky": "^9.0.11",
|
75
79
|
"jest": "^29.5.0",
|
76
80
|
"lint-staged": "^15.2.5",
|
package/dist/src/i18n/es.json
DELETED
@@ -1,125 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"model": {
|
3
|
-
"comment": {
|
4
|
-
"id": {
|
5
|
-
"uuid": "El ID debe ser un UUID"
|
6
|
-
},
|
7
|
-
"content": {
|
8
|
-
"min": "El contenido debe tener al menos 1 caracter"
|
9
|
-
}
|
10
|
-
},
|
11
|
-
"account": {
|
12
|
-
"id": {
|
13
|
-
"required": "El ID es requerido",
|
14
|
-
"uuid": "El ID debe ser un UUID"
|
15
|
-
},
|
16
|
-
"username": {
|
17
|
-
"required": "El nombre de usuario es requerido"
|
18
|
-
},
|
19
|
-
"email": {
|
20
|
-
"required": "El email es requerido",
|
21
|
-
"email": "El email debe ser un email válido"
|
22
|
-
},
|
23
|
-
"password": {
|
24
|
-
"required": "La contraseña es requerida",
|
25
|
-
"min": "La contraseña debe tener al menos 6 caracteres"
|
26
|
-
},
|
27
|
-
"role": {
|
28
|
-
"required": "El rol es requerido",
|
29
|
-
"invalid": "El rol es inválido"
|
30
|
-
}
|
31
|
-
},
|
32
|
-
"tag": {
|
33
|
-
"id": {
|
34
|
-
"uuid": "El ID debe ser un UUID"
|
35
|
-
},
|
36
|
-
"name": {
|
37
|
-
"required": "El nombre es requerido",
|
38
|
-
"min": "El nombre debe tener al menos 1 caracter"
|
39
|
-
},
|
40
|
-
"type": {
|
41
|
-
"invalid": "El tipo de etiqueta es inválido"
|
42
|
-
}
|
43
|
-
},
|
44
|
-
"event": {
|
45
|
-
"id": {
|
46
|
-
"uuid": "El ID debe ser un UUID"
|
47
|
-
},
|
48
|
-
"name": {
|
49
|
-
"required": "El nombre es requerido"
|
50
|
-
},
|
51
|
-
"date": {
|
52
|
-
"required": "La fecha es requerida",
|
53
|
-
"invalid": "La fecha debe ser una fecha válida"
|
54
|
-
},
|
55
|
-
"location": {
|
56
|
-
"required": "La ubicación es requerida"
|
57
|
-
}
|
58
|
-
},
|
59
|
-
"tagGroup": {
|
60
|
-
"id": {
|
61
|
-
"uuid": "El ID debe ser un UUID"
|
62
|
-
},
|
63
|
-
"name": {
|
64
|
-
"required": "El nombre es requerido"
|
65
|
-
},
|
66
|
-
"color": {
|
67
|
-
"invalid": "El color debe tener el formato hexadecimal (#ABCDEF)"
|
68
|
-
}
|
69
|
-
},
|
70
|
-
"eventFolder": {
|
71
|
-
"id": {
|
72
|
-
"uuid": "El ID debe ser un UUID"
|
73
|
-
},
|
74
|
-
"color": {
|
75
|
-
"invalid": "El color debe tener el formato hexadecimal (#ABCDEF)"
|
76
|
-
}
|
77
|
-
}
|
78
|
-
},
|
79
|
-
"route": {
|
80
|
-
"account": {
|
81
|
-
"create": {
|
82
|
-
"success": "Cuenta creada con éxito",
|
83
|
-
"conflict": "Cuenta ya existente"
|
84
|
-
},
|
85
|
-
"global-filter-patch": {
|
86
|
-
"success": "Filtro base actualizado",
|
87
|
-
"conflict": "Etiquetas Inválidas"
|
88
|
-
},
|
89
|
-
"global-filter-get": {
|
90
|
-
"success": "Filtro base obtenido",
|
91
|
-
"not-found": "Cuenta no encontrada"
|
92
|
-
},
|
93
|
-
"me": {
|
94
|
-
"success": "Cuenta obtenida"
|
95
|
-
}
|
96
|
-
},
|
97
|
-
"tag": {
|
98
|
-
"create": {
|
99
|
-
"success": "Etiqueta creada con éxito"
|
100
|
-
},
|
101
|
-
"find-all": {
|
102
|
-
"success": "Etiquetas obtenidas"
|
103
|
-
},
|
104
|
-
"find-one": {
|
105
|
-
"success": "Etiqueta obtenida",
|
106
|
-
"not-found": "Etiqueta no encontrada"
|
107
|
-
},
|
108
|
-
"update": {
|
109
|
-
"success": "Etiqueta actualizada",
|
110
|
-
"not-found": "Etiqueta no encontrada"
|
111
|
-
},
|
112
|
-
"delete": {
|
113
|
-
"success": "Etiqueta eliminada",
|
114
|
-
"not-found": "Etiqueta no encontrada"
|
115
|
-
},
|
116
|
-
"find-by-group": {
|
117
|
-
"success": "Etiquetas obtenidas",
|
118
|
-
"not-found": "Grupo de etiquetas no encontrado"
|
119
|
-
},
|
120
|
-
"find-all-grouped": {
|
121
|
-
"success": "Etiquetas obtenidas"
|
122
|
-
}
|
123
|
-
}
|
124
|
-
}
|
125
|
-
}
|