expo-backend-types 0.0.48 → 0.2.0-EXPO-239.4
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +73 -73
- package/dist/types/prisma-schema/edge.js +7 -7
- package/dist/types/prisma-schema/index.js +9 -9
- package/dist/types/prisma-schema/{query_engine-windows.dll.node → libquery_engine-debian-openssl-1.1.x.so.node} +0 -0
- package/dist/types/prisma-schema/package.json +1 -1
- package/dist/types/prisma-schema/schema.prisma +6 -1
- package/package.json +8 -26
package/README.md
CHANGED
@@ -1,73 +1,73 @@
|
|
1
|
-
<p align="center">
|
2
|
-
<a href="http://nestjs.com/" target="blank"><img src="https://nestjs.com/img/logo-small.svg" width="200" alt="Nest Logo" /></a>
|
3
|
-
</p>
|
4
|
-
|
5
|
-
[circleci-image]: https://img.shields.io/circleci/build/github/nestjs/nest/master?token=abc123def456
|
6
|
-
[circleci-url]: https://circleci.com/gh/nestjs/nest
|
7
|
-
|
8
|
-
<p align="center">A progressive <a href="http://nodejs.org" target="_blank">Node.js</a> framework for building efficient and scalable server-side applications.</p>
|
9
|
-
<p align="center">
|
10
|
-
<a href="https://www.npmjs.com/~nestjscore" target="_blank"><img src="https://img.shields.io/npm/v/@nestjs/core.svg" alt="NPM Version" /></a>
|
11
|
-
<a href="https://www.npmjs.com/~nestjscore" target="_blank"><img src="https://img.shields.io/npm/l/@nestjs/core.svg" alt="Package License" /></a>
|
12
|
-
<a href="https://www.npmjs.com/~nestjscore" target="_blank"><img src="https://img.shields.io/npm/dm/@nestjs/common.svg" alt="NPM Downloads" /></a>
|
13
|
-
<a href="https://circleci.com/gh/nestjs/nest" target="_blank"><img src="https://img.shields.io/circleci/build/github/nestjs/nest/master" alt="CircleCI" /></a>
|
14
|
-
<a href="https://coveralls.io/github/nestjs/nest?branch=master" target="_blank"><img src="https://coveralls.io/repos/github/nestjs/nest/badge.svg?branch=master#9" alt="Coverage" /></a>
|
15
|
-
<a href="https://discord.gg/G7Qnnhy" target="_blank"><img src="https://img.shields.io/badge/discord-online-brightgreen.svg" alt="Discord"/></a>
|
16
|
-
<a href="https://opencollective.com/nest#backer" target="_blank"><img src="https://opencollective.com/nest/backers/badge.svg" alt="Backers on Open Collective" /></a>
|
17
|
-
<a href="https://opencollective.com/nest#sponsor" target="_blank"><img src="https://opencollective.com/nest/sponsors/badge.svg" alt="Sponsors on Open Collective" /></a>
|
18
|
-
<a href="https://paypal.me/kamilmysliwiec" target="_blank"><img src="https://img.shields.io/badge/Donate-PayPal-ff3f59.svg"/></a>
|
19
|
-
<a href="https://opencollective.com/nest#sponsor" target="_blank"><img src="https://img.shields.io/badge/Support%20us-Open%20Collective-41B883.svg" alt="Support us"></a>
|
20
|
-
<a href="https://twitter.com/nestframework" target="_blank"><img src="https://img.shields.io/twitter/follow/nestframework.svg?style=social&label=Follow"></a>
|
21
|
-
</p>
|
22
|
-
<!--[![Backers on Open Collective](https://opencollective.com/nest/backers/badge.svg)](https://opencollective.com/nest#backer)
|
23
|
-
[![Sponsors on Open Collective](https://opencollective.com/nest/sponsors/badge.svg)](https://opencollective.com/nest#sponsor)-->
|
24
|
-
|
25
|
-
## Description
|
26
|
-
|
27
|
-
[Nest](https://github.com/nestjs/nest) framework TypeScript starter repository.
|
28
|
-
|
29
|
-
## Installation
|
30
|
-
|
31
|
-
```bash
|
32
|
-
$ npm install
|
33
|
-
```
|
34
|
-
|
35
|
-
## Running the app
|
36
|
-
|
37
|
-
```bash
|
38
|
-
# development
|
39
|
-
$ npm run start
|
40
|
-
|
41
|
-
# watch mode
|
42
|
-
$ npm run start:dev
|
43
|
-
|
44
|
-
# production mode
|
45
|
-
$ npm run start:prod
|
46
|
-
```
|
47
|
-
|
48
|
-
## Test
|
49
|
-
|
50
|
-
```bash
|
51
|
-
# unit tests
|
52
|
-
$ npm run test
|
53
|
-
|
54
|
-
# e2e tests
|
55
|
-
$ npm run test:e2e
|
56
|
-
|
57
|
-
# test coverage
|
58
|
-
$ npm run test:cov
|
59
|
-
```
|
60
|
-
|
61
|
-
## Support
|
62
|
-
|
63
|
-
Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please [read more here](https://docs.nestjs.com/support).
|
64
|
-
|
65
|
-
## Stay in touch
|
66
|
-
|
67
|
-
- Author - [Kamil Myśliwiec](https://kamilmysliwiec.com)
|
68
|
-
- Website - [https://nestjs.com](https://nestjs.com/)
|
69
|
-
- Twitter - [@nestframework](https://twitter.com/nestframework)
|
70
|
-
|
71
|
-
## License
|
72
|
-
|
73
|
-
Nest is [MIT licensed](LICENSE).
|
1
|
+
<p align="center">
|
2
|
+
<a href="http://nestjs.com/" target="blank"><img src="https://nestjs.com/img/logo-small.svg" width="200" alt="Nest Logo" /></a>
|
3
|
+
</p>
|
4
|
+
|
5
|
+
[circleci-image]: https://img.shields.io/circleci/build/github/nestjs/nest/master?token=abc123def456
|
6
|
+
[circleci-url]: https://circleci.com/gh/nestjs/nest
|
7
|
+
|
8
|
+
<p align="center">A progressive <a href="http://nodejs.org" target="_blank">Node.js</a> framework for building efficient and scalable server-side applications.</p>
|
9
|
+
<p align="center">
|
10
|
+
<a href="https://www.npmjs.com/~nestjscore" target="_blank"><img src="https://img.shields.io/npm/v/@nestjs/core.svg" alt="NPM Version" /></a>
|
11
|
+
<a href="https://www.npmjs.com/~nestjscore" target="_blank"><img src="https://img.shields.io/npm/l/@nestjs/core.svg" alt="Package License" /></a>
|
12
|
+
<a href="https://www.npmjs.com/~nestjscore" target="_blank"><img src="https://img.shields.io/npm/dm/@nestjs/common.svg" alt="NPM Downloads" /></a>
|
13
|
+
<a href="https://circleci.com/gh/nestjs/nest" target="_blank"><img src="https://img.shields.io/circleci/build/github/nestjs/nest/master" alt="CircleCI" /></a>
|
14
|
+
<a href="https://coveralls.io/github/nestjs/nest?branch=master" target="_blank"><img src="https://coveralls.io/repos/github/nestjs/nest/badge.svg?branch=master#9" alt="Coverage" /></a>
|
15
|
+
<a href="https://discord.gg/G7Qnnhy" target="_blank"><img src="https://img.shields.io/badge/discord-online-brightgreen.svg" alt="Discord"/></a>
|
16
|
+
<a href="https://opencollective.com/nest#backer" target="_blank"><img src="https://opencollective.com/nest/backers/badge.svg" alt="Backers on Open Collective" /></a>
|
17
|
+
<a href="https://opencollective.com/nest#sponsor" target="_blank"><img src="https://opencollective.com/nest/sponsors/badge.svg" alt="Sponsors on Open Collective" /></a>
|
18
|
+
<a href="https://paypal.me/kamilmysliwiec" target="_blank"><img src="https://img.shields.io/badge/Donate-PayPal-ff3f59.svg"/></a>
|
19
|
+
<a href="https://opencollective.com/nest#sponsor" target="_blank"><img src="https://img.shields.io/badge/Support%20us-Open%20Collective-41B883.svg" alt="Support us"></a>
|
20
|
+
<a href="https://twitter.com/nestframework" target="_blank"><img src="https://img.shields.io/twitter/follow/nestframework.svg?style=social&label=Follow"></a>
|
21
|
+
</p>
|
22
|
+
<!--[![Backers on Open Collective](https://opencollective.com/nest/backers/badge.svg)](https://opencollective.com/nest#backer)
|
23
|
+
[![Sponsors on Open Collective](https://opencollective.com/nest/sponsors/badge.svg)](https://opencollective.com/nest#sponsor)-->
|
24
|
+
|
25
|
+
## Description
|
26
|
+
|
27
|
+
[Nest](https://github.com/nestjs/nest) framework TypeScript starter repository.
|
28
|
+
|
29
|
+
## Installation
|
30
|
+
|
31
|
+
```bash
|
32
|
+
$ npm install
|
33
|
+
```
|
34
|
+
|
35
|
+
## Running the app
|
36
|
+
|
37
|
+
```bash
|
38
|
+
# development
|
39
|
+
$ npm run start
|
40
|
+
|
41
|
+
# watch mode
|
42
|
+
$ npm run start:dev
|
43
|
+
|
44
|
+
# production mode
|
45
|
+
$ npm run start:prod
|
46
|
+
```
|
47
|
+
|
48
|
+
## Test
|
49
|
+
|
50
|
+
```bash
|
51
|
+
# unit tests
|
52
|
+
$ npm run test
|
53
|
+
|
54
|
+
# e2e tests
|
55
|
+
$ npm run test:e2e
|
56
|
+
|
57
|
+
# test coverage
|
58
|
+
$ npm run test:cov
|
59
|
+
```
|
60
|
+
|
61
|
+
## Support
|
62
|
+
|
63
|
+
Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please [read more here](https://docs.nestjs.com/support).
|
64
|
+
|
65
|
+
## Stay in touch
|
66
|
+
|
67
|
+
- Author - [Kamil Myśliwiec](https://kamilmysliwiec.com)
|
68
|
+
- Website - [https://nestjs.com](https://nestjs.com/)
|
69
|
+
- Twitter - [@nestframework](https://twitter.com/nestframework)
|
70
|
+
|
71
|
+
## License
|
72
|
+
|
73
|
+
Nest is [MIT licensed](LICENSE).
|
@@ -238,13 +238,13 @@ exports.Prisma.ModelName = {
|
|
238
238
|
*/
|
239
239
|
const config = {
|
240
240
|
"generator": {
|
241
|
-
"name": "
|
241
|
+
"name": "toDist",
|
242
242
|
"provider": {
|
243
243
|
"fromEnvVar": null,
|
244
244
|
"value": "prisma-client-js"
|
245
245
|
},
|
246
246
|
"output": {
|
247
|
-
"value": "
|
247
|
+
"value": "/home/runner/work/expo-backend/expo-backend/dist/types/prisma-schema",
|
248
248
|
"fromEnvVar": null
|
249
249
|
},
|
250
250
|
"config": {
|
@@ -253,7 +253,7 @@ const config = {
|
|
253
253
|
"binaryTargets": [
|
254
254
|
{
|
255
255
|
"fromEnvVar": null,
|
256
|
-
"value": "
|
256
|
+
"value": "debian-openssl-1.1.x",
|
257
257
|
"native": true
|
258
258
|
}
|
259
259
|
],
|
@@ -261,8 +261,7 @@ const config = {
|
|
261
261
|
"isCustomOutput": true
|
262
262
|
},
|
263
263
|
"relativeEnvPaths": {
|
264
|
-
"rootEnvPath":
|
265
|
-
"schemaEnvPath": "../../../.env"
|
264
|
+
"rootEnvPath": null
|
266
265
|
},
|
267
266
|
"relativePath": "../../../prisma",
|
268
267
|
"clientVersion": "5.14.0",
|
@@ -272,6 +271,7 @@ const config = {
|
|
272
271
|
],
|
273
272
|
"activeProvider": "postgresql",
|
274
273
|
"postinstall": false,
|
274
|
+
"ciName": "GitHub Actions",
|
275
275
|
"inlineDatasources": {
|
276
276
|
"db": {
|
277
277
|
"url": {
|
@@ -280,8 +280,8 @@ const config = {
|
|
280
280
|
}
|
281
281
|
}
|
282
282
|
},
|
283
|
-
"inlineSchema": "generator
|
284
|
-
"inlineSchemaHash": "
|
283
|
+
"inlineSchema": "generator toDist {\n output = \"../dist/types/prisma-schema\"\n provider = \"prisma-client-js\"\n}\n\ngenerator client {\n output = \"../types/prisma-schema\"\n provider = \"prisma-client-js\"\n}\n\ndatasource db {\n provider = \"postgresql\"\n url = env(\"DATABASE_URL\")\n relationMode = \"foreignKeys\"\n}\n\nmodel Cuenta {\n id String @id @default(uuid())\n nombreUsuario String @unique @map(\"nombre_usuario\")\n contrasena String\n esAdmin Boolean @default(false) @map(\"es_admin\")\n\n comentarios Comentario[]\n etiquetas Etiqueta[] @relation(\"CUENTA_X_ETIQUETA\")\n\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n filtroBase Etiqueta[] @relation(\"FILTRO_BASE_X_ETIQUETA\")\n filtroBaseActivo Boolean @default(false) @map(\"filtro_base_activo\")\n\n fcmToken String[] @map(\"fcm_token\")\n\n @@map(\"CUENTA\")\n}\n\nmodel Perfil {\n id String @id @default(uuid())\n idLegible Int @map(\"id_legible\")\n\n telefono String @unique\n nombreCompleto String @map(\"nombre_completo\")\n nombrePila String? @map(\"nombre_pila\")\n genero String?\n fechaNacimiento DateTime? @map(\"fecha_nacimiento\")\n fotoUrl String? @map(\"foto_url\")\n instagram String?\n mail String?\n dni String?\n nombresAlternativos String[] @map(\"nombres_alternativos\")\n\n comentarios Comentario[]\n mensajes Mensaje[] @relation(\"PERFIL_X_MENSAJE\")\n etiquetas Etiqueta[] @relation(\"PERFIL_X_ETIQUETA\")\n esPapelera Boolean @default(false)\n fechaPapelera DateTime? @map(\"fecha_papelera\")\n\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n @@map(\"PERFIL\")\n}\n\nmodel Comentario {\n id String @id @default(uuid())\n contenido String\n\n creadoPor String @map(\"creado_por\")\n cuenta Cuenta @relation(fields: [creadoPor], references: [id])\n perfilId String @map(\"perfil_id\")\n perfil Perfil @relation(fields: [perfilId], references: [id], onDelete: Cascade)\n\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n @@map(\"COMENTARIO\")\n}\n\nmodel Etiqueta {\n id String @id @default(uuid())\n nombre String\n grupoId String @map(\"grupo_id\")\n tipo TipoEtiqueta @default(PERSONAL)\n grupo EtiquetaGrupo @relation(fields: [grupoId], references: [id], onDelete: Cascade)\n\n eventosAsistidos Evento[] @relation(\"EVENTOASISTIDO_X_ETIQUETA\")\n eventosConfirmados Evento[] @relation(\"EVENTOCONFIRMADO_X_ETIQUETA\")\n cuentas Cuenta[] @relation(\"CUENTA_X_ETIQUETA\")\n perfiles Perfil[] @relation(\"PERFIL_X_ETIQUETA\")\n cuentasFiltroBase Cuenta[] @relation(\"FILTRO_BASE_X_ETIQUETA\")\n\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n @@map(\"ETIQUETA\")\n}\n\nmodel EtiquetaGrupo {\n id String @id @default(uuid())\n nombre String\n color String\n esExclusivo Boolean @map(\"es_exclusivo\")\n etiquetas Etiqueta[]\n\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n @@map(\"GRUPO_ETIQUETA\")\n}\n\nmodel Evento {\n id String @id @default(uuid())\n nombre String\n fecha DateTime\n ubicacion String\n\n etiquetaAsistioId String @map(\"etiqueta_asistio\")\n etiquetaAsistio Etiqueta @relation(\"EVENTOASISTIDO_X_ETIQUETA\", fields: [etiquetaAsistioId], references: [id], onDelete: Cascade)\n etiquetaConfirmoId String @map(\"etiqueta_confirmo\")\n etiquetaConfirmo Etiqueta @relation(\"EVENTOCONFIRMADO_X_ETIQUETA\", fields: [etiquetaConfirmoId], references: [id], onDelete: Cascade)\n eventoPadreId String? @map(\"evento_padre\")\n eventoPadre Evento? @relation(\"SubEventos\", fields: [eventoPadreId], references: [id], onDelete: Cascade)\n subEventos Evento[] @relation(\"SubEventos\")\n\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n @@map(\"EVENTO\")\n}\n\nmodel Mensaje {\n id String @id @default(uuid())\n wamId String @unique @map(\"wam_id\")\n message Json\n perfilTelefono String @map(\"perfil_telefono\")\n perfil Perfil @relation(\"PERFIL_X_MENSAJE\", fields: [perfilTelefono], references: [telefono], onDelete: Cascade)\n status MensajeStatus @default(ENVIADO)\n statusAt DateTime? @map(\"status_at\")\n visto Boolean @default(false)\n\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n @@map(\"MENSAJE\")\n}\n\nmodel Enums {\n id String @id\n EstadoPlantilla EstadoPlantilla\n CategoriaPlantilla CategoriaPlantilla\n}\n\nenum EstadoPlantilla {\n APRROVED\n PENDING\n REJECTED\n}\n\nenum CategoriaPlantilla {\n MARKETING\n UTILITY\n AUTHENTICATION\n}\n\nenum TipoEtiqueta {\n PERSONAL\n EVENTO\n MODELO\n TENTATIVA\n}\n\nenum MensajeStatus {\n ENVIADO\n RECIBIDO\n LEIDO\n}\n",
|
284
|
+
"inlineSchemaHash": "ef4c82a4b76ddf6183c7a5bea814be6c416bc84b104125185846246314c3914e",
|
285
285
|
"copyEngine": true
|
286
286
|
}
|
287
287
|
config.dirname = '/'
|
@@ -239,13 +239,13 @@ exports.Prisma.ModelName = {
|
|
239
239
|
*/
|
240
240
|
const config = {
|
241
241
|
"generator": {
|
242
|
-
"name": "
|
242
|
+
"name": "toDist",
|
243
243
|
"provider": {
|
244
244
|
"fromEnvVar": null,
|
245
245
|
"value": "prisma-client-js"
|
246
246
|
},
|
247
247
|
"output": {
|
248
|
-
"value": "
|
248
|
+
"value": "/home/runner/work/expo-backend/expo-backend/dist/types/prisma-schema",
|
249
249
|
"fromEnvVar": null
|
250
250
|
},
|
251
251
|
"config": {
|
@@ -254,7 +254,7 @@ const config = {
|
|
254
254
|
"binaryTargets": [
|
255
255
|
{
|
256
256
|
"fromEnvVar": null,
|
257
|
-
"value": "
|
257
|
+
"value": "debian-openssl-1.1.x",
|
258
258
|
"native": true
|
259
259
|
}
|
260
260
|
],
|
@@ -262,8 +262,7 @@ const config = {
|
|
262
262
|
"isCustomOutput": true
|
263
263
|
},
|
264
264
|
"relativeEnvPaths": {
|
265
|
-
"rootEnvPath":
|
266
|
-
"schemaEnvPath": "../../../.env"
|
265
|
+
"rootEnvPath": null
|
267
266
|
},
|
268
267
|
"relativePath": "../../../prisma",
|
269
268
|
"clientVersion": "5.14.0",
|
@@ -273,6 +272,7 @@ const config = {
|
|
273
272
|
],
|
274
273
|
"activeProvider": "postgresql",
|
275
274
|
"postinstall": false,
|
275
|
+
"ciName": "GitHub Actions",
|
276
276
|
"inlineDatasources": {
|
277
277
|
"db": {
|
278
278
|
"url": {
|
@@ -281,8 +281,8 @@ const config = {
|
|
281
281
|
}
|
282
282
|
}
|
283
283
|
},
|
284
|
-
"inlineSchema": "generator
|
285
|
-
"inlineSchemaHash": "
|
284
|
+
"inlineSchema": "generator toDist {\n output = \"../dist/types/prisma-schema\"\n provider = \"prisma-client-js\"\n}\n\ngenerator client {\n output = \"../types/prisma-schema\"\n provider = \"prisma-client-js\"\n}\n\ndatasource db {\n provider = \"postgresql\"\n url = env(\"DATABASE_URL\")\n relationMode = \"foreignKeys\"\n}\n\nmodel Cuenta {\n id String @id @default(uuid())\n nombreUsuario String @unique @map(\"nombre_usuario\")\n contrasena String\n esAdmin Boolean @default(false) @map(\"es_admin\")\n\n comentarios Comentario[]\n etiquetas Etiqueta[] @relation(\"CUENTA_X_ETIQUETA\")\n\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n filtroBase Etiqueta[] @relation(\"FILTRO_BASE_X_ETIQUETA\")\n filtroBaseActivo Boolean @default(false) @map(\"filtro_base_activo\")\n\n fcmToken String[] @map(\"fcm_token\")\n\n @@map(\"CUENTA\")\n}\n\nmodel Perfil {\n id String @id @default(uuid())\n idLegible Int @map(\"id_legible\")\n\n telefono String @unique\n nombreCompleto String @map(\"nombre_completo\")\n nombrePila String? @map(\"nombre_pila\")\n genero String?\n fechaNacimiento DateTime? @map(\"fecha_nacimiento\")\n fotoUrl String? @map(\"foto_url\")\n instagram String?\n mail String?\n dni String?\n nombresAlternativos String[] @map(\"nombres_alternativos\")\n\n comentarios Comentario[]\n mensajes Mensaje[] @relation(\"PERFIL_X_MENSAJE\")\n etiquetas Etiqueta[] @relation(\"PERFIL_X_ETIQUETA\")\n esPapelera Boolean @default(false)\n fechaPapelera DateTime? @map(\"fecha_papelera\")\n\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n @@map(\"PERFIL\")\n}\n\nmodel Comentario {\n id String @id @default(uuid())\n contenido String\n\n creadoPor String @map(\"creado_por\")\n cuenta Cuenta @relation(fields: [creadoPor], references: [id])\n perfilId String @map(\"perfil_id\")\n perfil Perfil @relation(fields: [perfilId], references: [id], onDelete: Cascade)\n\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n @@map(\"COMENTARIO\")\n}\n\nmodel Etiqueta {\n id String @id @default(uuid())\n nombre String\n grupoId String @map(\"grupo_id\")\n tipo TipoEtiqueta @default(PERSONAL)\n grupo EtiquetaGrupo @relation(fields: [grupoId], references: [id], onDelete: Cascade)\n\n eventosAsistidos Evento[] @relation(\"EVENTOASISTIDO_X_ETIQUETA\")\n eventosConfirmados Evento[] @relation(\"EVENTOCONFIRMADO_X_ETIQUETA\")\n cuentas Cuenta[] @relation(\"CUENTA_X_ETIQUETA\")\n perfiles Perfil[] @relation(\"PERFIL_X_ETIQUETA\")\n cuentasFiltroBase Cuenta[] @relation(\"FILTRO_BASE_X_ETIQUETA\")\n\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n @@map(\"ETIQUETA\")\n}\n\nmodel EtiquetaGrupo {\n id String @id @default(uuid())\n nombre String\n color String\n esExclusivo Boolean @map(\"es_exclusivo\")\n etiquetas Etiqueta[]\n\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n @@map(\"GRUPO_ETIQUETA\")\n}\n\nmodel Evento {\n id String @id @default(uuid())\n nombre String\n fecha DateTime\n ubicacion String\n\n etiquetaAsistioId String @map(\"etiqueta_asistio\")\n etiquetaAsistio Etiqueta @relation(\"EVENTOASISTIDO_X_ETIQUETA\", fields: [etiquetaAsistioId], references: [id], onDelete: Cascade)\n etiquetaConfirmoId String @map(\"etiqueta_confirmo\")\n etiquetaConfirmo Etiqueta @relation(\"EVENTOCONFIRMADO_X_ETIQUETA\", fields: [etiquetaConfirmoId], references: [id], onDelete: Cascade)\n eventoPadreId String? @map(\"evento_padre\")\n eventoPadre Evento? @relation(\"SubEventos\", fields: [eventoPadreId], references: [id], onDelete: Cascade)\n subEventos Evento[] @relation(\"SubEventos\")\n\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n @@map(\"EVENTO\")\n}\n\nmodel Mensaje {\n id String @id @default(uuid())\n wamId String @unique @map(\"wam_id\")\n message Json\n perfilTelefono String @map(\"perfil_telefono\")\n perfil Perfil @relation(\"PERFIL_X_MENSAJE\", fields: [perfilTelefono], references: [telefono], onDelete: Cascade)\n status MensajeStatus @default(ENVIADO)\n statusAt DateTime? @map(\"status_at\")\n visto Boolean @default(false)\n\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n @@map(\"MENSAJE\")\n}\n\nmodel Enums {\n id String @id\n EstadoPlantilla EstadoPlantilla\n CategoriaPlantilla CategoriaPlantilla\n}\n\nenum EstadoPlantilla {\n APRROVED\n PENDING\n REJECTED\n}\n\nenum CategoriaPlantilla {\n MARKETING\n UTILITY\n AUTHENTICATION\n}\n\nenum TipoEtiqueta {\n PERSONAL\n EVENTO\n MODELO\n TENTATIVA\n}\n\nenum MensajeStatus {\n ENVIADO\n RECIBIDO\n LEIDO\n}\n",
|
285
|
+
"inlineSchemaHash": "ef4c82a4b76ddf6183c7a5bea814be6c416bc84b104125185846246314c3914e",
|
286
286
|
"copyEngine": true
|
287
287
|
}
|
288
288
|
|
@@ -320,8 +320,8 @@ exports.PrismaClient = PrismaClient
|
|
320
320
|
Object.assign(exports, Prisma)
|
321
321
|
|
322
322
|
// file annotations for bundling tools to include these files
|
323
|
-
path.join(__dirname, "
|
324
|
-
path.join(process.cwd(), "dist/types/prisma-schema/
|
323
|
+
path.join(__dirname, "libquery_engine-debian-openssl-1.1.x.so.node");
|
324
|
+
path.join(process.cwd(), "dist/types/prisma-schema/libquery_engine-debian-openssl-1.1.x.so.node")
|
325
325
|
// file annotations for bundling tools to include these files
|
326
326
|
path.join(__dirname, "schema.prisma");
|
327
327
|
path.join(process.cwd(), "dist/types/prisma-schema/schema.prisma")
|
Binary file
|
@@ -1,8 +1,13 @@
|
|
1
|
-
generator
|
1
|
+
generator toDist {
|
2
2
|
output = "../dist/types/prisma-schema"
|
3
3
|
provider = "prisma-client-js"
|
4
4
|
}
|
5
5
|
|
6
|
+
generator client {
|
7
|
+
output = "../types/prisma-schema"
|
8
|
+
provider = "prisma-client-js"
|
9
|
+
}
|
10
|
+
|
6
11
|
datasource db {
|
7
12
|
provider = "postgresql"
|
8
13
|
url = env("DATABASE_URL")
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "expo-backend-types",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.2.0-EXPO-239.4",
|
4
4
|
"description": "",
|
5
5
|
"author": "Expo",
|
6
6
|
"private": false,
|
@@ -11,11 +11,12 @@
|
|
11
11
|
"dist/src/**/exports.{js,d.ts,ts}"
|
12
12
|
],
|
13
13
|
"scripts": {
|
14
|
-
"ci": "npm run generate-ts-schema && npm run build && npx prisma generate && npm run format && npm run lint && npm run check-exports",
|
14
|
+
"ci": "npm install && npm run generate-ts-schema && npm run build && npx prisma generate && npm run format && npm run lint && npm run check-exports",
|
15
|
+
"postinstall": "npx prisma generate",
|
15
16
|
"build": "nest build",
|
16
17
|
"format": "prettier --write \"src/**/*.ts\"",
|
17
18
|
"check-format": "prettier --check \"src/**/*.ts\"",
|
18
|
-
"check-exports": "attw --pack .
|
19
|
+
"check-exports": "attw --pack .",
|
19
20
|
"local-release": "changeset version && changeset publish",
|
20
21
|
"commit-schema": "git add ./types/schema.d.ts swagger.yaml && git commit -m \"Update schema\"",
|
21
22
|
"start": "nest start",
|
@@ -28,7 +29,7 @@
|
|
28
29
|
"test:cov": "jest --coverage",
|
29
30
|
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
|
30
31
|
"test:e2e": "jest --config ./test/jest-e2e.json",
|
31
|
-
"generate-ts-schema": "node
|
32
|
+
"generate-ts-schema": "npx ts-node -r tsconfig-paths/register src/main.swagger.ts && openapi-typescript ./swagger.yaml -o ./types/schema.ts",
|
32
33
|
"prepare": "husky",
|
33
34
|
"prepublishOnly": "npm run ci"
|
34
35
|
},
|
@@ -46,7 +47,6 @@
|
|
46
47
|
"json-to-pretty-yaml": "^1.2.2",
|
47
48
|
"openapi3-ts": "^4.4.0",
|
48
49
|
"reflect-metadata": "^0.2.0",
|
49
|
-
"rxjs": "^7.8.1",
|
50
50
|
"zod": "^3.23.8"
|
51
51
|
},
|
52
52
|
"devDependencies": {
|
@@ -78,7 +78,7 @@
|
|
78
78
|
"supertest": "^6.3.3",
|
79
79
|
"ts-jest": "^29.1.0",
|
80
80
|
"ts-loader": "^9.4.3",
|
81
|
-
"ts-node": "^10.9.
|
81
|
+
"ts-node": "^10.9.2",
|
82
82
|
"tsconfig-paths": "^4.2.0",
|
83
83
|
"typescript": "^5.4.5"
|
84
84
|
},
|
@@ -89,33 +89,15 @@
|
|
89
89
|
"require": "./dist/types/index.js",
|
90
90
|
"default": "./dist/types/index.js",
|
91
91
|
"types": "./dist/types/index.d.ts"
|
92
|
-
},
|
93
|
-
"./dto": {
|
94
|
-
"import": "./dist/types/dto.js",
|
95
|
-
"require": "./dist/types/dto.js",
|
96
|
-
"default": "./dist/types/dto.js",
|
97
|
-
"types": "./dist/types/dto.d.ts"
|
98
92
|
}
|
99
93
|
},
|
100
94
|
"lint-staged": {
|
101
95
|
"**/*.{js,ts,jsx,tsx}": [
|
102
96
|
"prettier --write",
|
103
|
-
"eslint --fix"
|
104
|
-
"git add"
|
105
|
-
],
|
106
|
-
"swagger.yaml": [
|
107
|
-
"git add"
|
108
|
-
],
|
109
|
-
"types/schema.d.ts": [
|
110
|
-
"git add"
|
97
|
+
"eslint --fix"
|
111
98
|
],
|
112
99
|
"*.json": [
|
113
|
-
"prettier --write"
|
114
|
-
"git add"
|
115
|
-
],
|
116
|
-
"packages/prisma/schema.prisma": [
|
117
|
-
"prisma format",
|
118
|
-
"git add"
|
100
|
+
"prettier --write"
|
119
101
|
]
|
120
102
|
}
|
121
103
|
}
|