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.
Files changed (97) hide show
  1. package/dist/src/account/dto/account.dto.d.ts +11 -201
  2. package/dist/src/account/dto/account.dto.js +4 -21
  3. package/dist/src/account/dto/create-account.dto.d.ts +9 -301
  4. package/dist/src/account/dto/create-account.dto.js +3 -4
  5. package/dist/src/account/dto/get-global-filter.dto.d.ts +24 -20
  6. package/dist/src/account/dto/get-global-filter.dto.js +10 -6
  7. package/dist/src/account/dto/get-me.dto.d.ts +214 -188
  8. package/dist/src/account/dto/get-me.dto.js +27 -4
  9. package/dist/src/account/dto/update-global-filter.dto.d.ts +136 -169
  10. package/dist/src/account/dto/update-global-filter.dto.js +7 -15
  11. package/dist/src/auth/dto/login.dto.d.ts +34 -414
  12. package/dist/src/auth/dto/login.dto.js +5 -4
  13. package/dist/src/auth/dto/refresh.dto.d.ts +30 -0
  14. package/dist/src/auth/dto/refresh.dto.js +17 -0
  15. package/dist/src/comment/dto/comment.dto.d.ts +21 -15
  16. package/dist/src/comment/dto/comment.dto.js +11 -6
  17. package/dist/src/comment/dto/create-comment.dto.d.ts +106 -0
  18. package/dist/src/comment/dto/create-comment.dto.js +18 -0
  19. package/dist/src/comment/dto/get-by-profile-comment.dto.d.ts +177 -0
  20. package/dist/src/comment/dto/get-by-profile-comment.dto.js +21 -0
  21. package/dist/src/comment/dto/toggle-solve-comment.dto.d.ts +71 -0
  22. package/dist/src/comment/dto/toggle-solve-comment.dto.js +10 -0
  23. package/dist/src/comment/exports.d.ts +3 -0
  24. package/dist/src/comment/exports.js +3 -0
  25. package/dist/src/event/dto/event.dto.d.ts +10 -16
  26. package/dist/src/event/dto/event.dto.js +6 -10
  27. package/dist/src/event-folder/dto/event-folder.dto.d.ts +6 -0
  28. package/dist/src/event-folder/dto/event-folder.dto.js +2 -0
  29. package/dist/src/event-folder/exports.d.ts +1 -0
  30. package/dist/src/event-folder/exports.js +18 -0
  31. package/dist/src/exports.d.ts +5 -3
  32. package/dist/src/exports.js +5 -3
  33. package/dist/src/i18n/es.d.ts +210 -0
  34. package/dist/src/i18n/es.js +212 -0
  35. package/dist/src/i18n/es.js.map +1 -0
  36. package/dist/src/i18n/translate.d.ts +9 -2
  37. package/dist/src/i18n/translate.js +3 -3
  38. package/dist/src/i18n/translate.js.map +1 -1
  39. package/dist/src/profile/dto/profile.dto.d.ts +68 -0
  40. package/dist/src/profile/dto/profile.dto.js +59 -0
  41. package/dist/src/profile/exports.d.ts +1 -0
  42. package/dist/src/profile/exports.js +18 -0
  43. package/dist/src/shared/dto-modification/create-zod-dto-without-date.d.ts +4 -0
  44. package/dist/src/shared/dto-modification/create-zod-dto-without-date.js +10 -0
  45. package/dist/src/shared/dto-modification/create-zod-dto-without-date.js.map +1 -0
  46. package/dist/src/shared/dto-modification/without-dates.d.ts +4 -0
  47. package/dist/src/shared/dto-modification/without-dates.js +6 -0
  48. package/dist/src/shared/dto-modification/without-dates.js.map +1 -0
  49. package/dist/src/shared/dto-modification/zod-without-dates.d.ts +8 -0
  50. package/dist/src/shared/dto-modification/zod-without-dates.js +28 -0
  51. package/dist/src/shared/dto-modification/zod-without-dates.js.map +1 -0
  52. package/dist/src/tag/dto/create-tag.dto.d.ts +5 -16
  53. package/dist/src/tag/dto/create-tag.dto.js +3 -3
  54. package/dist/src/tag/dto/delete-tag.dto.d.ts +7 -7
  55. package/dist/src/tag/dto/delete-tag.dto.js +2 -2
  56. package/dist/src/tag/dto/find-all-tag.dto.d.ts +34 -35
  57. package/dist/src/tag/dto/find-all-tag.dto.js +2 -2
  58. package/dist/src/tag/dto/find-by-group-tag.dto.d.ts +35 -36
  59. package/dist/src/tag/dto/find-by-group-tag.dto.js +5 -5
  60. package/dist/src/tag/dto/find-one-tag.dto.d.ts +23 -24
  61. package/dist/src/tag/dto/find-one-tag.dto.js +2 -2
  62. package/dist/src/tag/dto/massive-allocation.dto.d.ts +260 -0
  63. package/dist/src/tag/dto/massive-allocation.dto.js +24 -0
  64. package/dist/src/tag/dto/massive-deallocation.dto.d.ts +260 -0
  65. package/dist/src/tag/dto/massive-deallocation.dto.js +24 -0
  66. package/dist/src/tag/dto/tag.dto.d.ts +7 -7
  67. package/dist/src/tag/dto/tag.dto.js +3 -3
  68. package/dist/src/tag/dto/update-tag.dto.d.ts +31 -22
  69. package/dist/src/tag/dto/update-tag.dto.js +5 -7
  70. package/dist/src/tag/exports.d.ts +2 -1
  71. package/dist/src/tag/exports.js +2 -1
  72. package/dist/src/tag-group/dto/create-tag-group.dto.d.ts +78 -0
  73. package/dist/src/tag-group/dto/create-tag-group.dto.js +18 -0
  74. package/dist/src/tag-group/dto/delete-tag-group.dto.d.ts +47 -0
  75. package/dist/src/tag-group/dto/delete-tag-group.dto.js +10 -0
  76. package/dist/src/tag-group/dto/find-all-tag-group.dto.d.ts +207 -0
  77. package/dist/src/tag-group/dto/find-all-tag-group.dto.js +19 -0
  78. package/dist/src/{tag/dto/find-all-grouped-tag.dto.d.ts → tag-group/dto/find-all-with-tags.dto.d.ts} +24 -28
  79. package/dist/src/{tag/dto/find-all-grouped-tag.dto.js → tag-group/dto/find-all-with-tags.dto.js} +8 -8
  80. package/dist/src/tag-group/dto/find-one-tag-group.dto.d.ts +135 -0
  81. package/dist/src/tag-group/dto/find-one-tag-group.dto.js +17 -0
  82. package/dist/src/tag-group/dto/tag-group.dto.d.ts +9 -9
  83. package/dist/src/tag-group/dto/tag-group.dto.js +5 -3
  84. package/dist/src/tag-group/dto/update-tag-group.dto.d.ts +78 -0
  85. package/dist/src/tag-group/dto/update-tag-group.dto.js +18 -0
  86. package/dist/src/tag-group/exports.d.ts +6 -0
  87. package/dist/src/tag-group/exports.js +6 -0
  88. package/dist/types/prisma-schema/edge.js +4 -4
  89. package/dist/types/prisma-schema/index-browser.js +1 -1
  90. package/dist/types/prisma-schema/index.d.ts +53 -53
  91. package/dist/types/prisma-schema/index.js +4 -4
  92. package/dist/types/prisma-schema/package.json +1 -1
  93. package/dist/types/prisma-schema/schema.prisma +1 -1
  94. package/dist/types/prisma-schema/wasm.js +1 -1
  95. package/dist/types/schema.d.ts +787 -184
  96. package/package.json +10 -6
  97. 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.4.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": "^6.0.0",
69
- "@typescript-eslint/parser": "^6.0.0",
70
- "eslint": "^8.42.0",
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": "^3.2.0",
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",
@@ -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
- }