expo-backend-types 0.0.40 → 0.0.42

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.
Files changed (53) hide show
  1. package/package.json +114 -122
  2. package/src/auth/dto/login.dto.ts +22 -0
  3. package/src/auth/dto/register.dto.ts +16 -0
  4. package/src/cuenta/dto/cuenta.dto.ts +28 -0
  5. package/{dist/types/dto.d.ts → types/dto.ts} +1 -1
  6. package/types/index.d.ts +2 -0
  7. package/types/prisma-schema/default.d.ts +1 -0
  8. package/types/prisma-schema/default.js +1 -0
  9. package/types/prisma-schema/edge.d.ts +1 -0
  10. package/types/prisma-schema/edge.js +306 -0
  11. package/types/prisma-schema/index-browser.js +298 -0
  12. package/types/prisma-schema/index.d.ts +16638 -0
  13. package/types/prisma-schema/index.js +327 -0
  14. package/types/prisma-schema/package.json +84 -0
  15. package/types/prisma-schema/query_engine-windows.dll.node +0 -0
  16. package/types/prisma-schema/runtime/edge-esm.js +28 -0
  17. package/types/prisma-schema/runtime/edge.js +28 -0
  18. package/types/prisma-schema/runtime/index-browser.d.ts +365 -0
  19. package/types/prisma-schema/runtime/index-browser.js +13 -0
  20. package/types/prisma-schema/runtime/library.d.ts +3193 -0
  21. package/types/prisma-schema/runtime/library.js +140 -0
  22. package/types/prisma-schema/runtime/react-native.js +77 -0
  23. package/types/prisma-schema/runtime/wasm.js +29 -0
  24. package/types/prisma-schema/schema.prisma +170 -0
  25. package/types/prisma-schema/wasm.d.ts +1 -0
  26. package/types/prisma-schema/wasm.js +298 -0
  27. package/{dist/types → types}/schema.d.ts +15 -0
  28. package/dist/src/auth/dto/login.dto.d.ts +0 -170
  29. package/dist/src/auth/dto/login.dto.js +0 -29
  30. package/dist/src/auth/dto/login.dto.js.map +0 -1
  31. package/dist/src/auth/dto/register.dto.d.ts +0 -73
  32. package/dist/src/auth/dto/register.dto.js +0 -20
  33. package/dist/src/auth/dto/register.dto.js.map +0 -1
  34. package/dist/src/auth/exports.d.ts +0 -2
  35. package/dist/src/auth/exports.js +0 -19
  36. package/dist/src/auth/exports.js.map +0 -1
  37. package/dist/src/cuenta/dto/cuenta.dto.d.ts +0 -60
  38. package/dist/src/cuenta/dto/cuenta.dto.js +0 -31
  39. package/dist/src/cuenta/dto/cuenta.dto.js.map +0 -1
  40. package/dist/src/cuenta/exports.d.ts +0 -1
  41. package/dist/src/cuenta/exports.js +0 -18
  42. package/dist/src/cuenta/exports.js.map +0 -1
  43. package/dist/src/exports.d.ts +0 -2
  44. package/dist/src/exports.js +0 -19
  45. package/dist/src/exports.js.map +0 -1
  46. package/dist/types/dto.js +0 -18
  47. package/dist/types/dto.js.map +0 -1
  48. package/dist/types/index.d.ts +0 -2
  49. package/dist/types/index.js +0 -19
  50. package/dist/types/index.js.map +0 -1
  51. package/dist/types/schema.js +0 -3
  52. package/dist/types/schema.js.map +0 -1
  53. package/tsconfig.json +0 -27
@@ -0,0 +1,298 @@
1
+
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+
4
+ const {
5
+ Decimal,
6
+ objectEnumValues,
7
+ makeStrictEnum,
8
+ Public,
9
+ getRuntime,
10
+ } = require('./runtime/index-browser.js')
11
+
12
+
13
+ const Prisma = {}
14
+
15
+ exports.Prisma = Prisma
16
+ exports.$Enums = {}
17
+
18
+ /**
19
+ * Prisma Client JS version: 5.14.0
20
+ * Query Engine version: e9771e62de70f79a5e1c604a2d7c8e2a0a874b48
21
+ */
22
+ Prisma.prismaVersion = {
23
+ client: "5.14.0",
24
+ engine: "e9771e62de70f79a5e1c604a2d7c8e2a0a874b48"
25
+ }
26
+
27
+ Prisma.PrismaClientKnownRequestError = () => {
28
+ const runtimeName = getRuntime().prettyName;
29
+ throw new Error(`PrismaClientKnownRequestError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
30
+ In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
31
+ )};
32
+ Prisma.PrismaClientUnknownRequestError = () => {
33
+ const runtimeName = getRuntime().prettyName;
34
+ throw new Error(`PrismaClientUnknownRequestError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
35
+ In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
36
+ )}
37
+ Prisma.PrismaClientRustPanicError = () => {
38
+ const runtimeName = getRuntime().prettyName;
39
+ throw new Error(`PrismaClientRustPanicError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
40
+ In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
41
+ )}
42
+ Prisma.PrismaClientInitializationError = () => {
43
+ const runtimeName = getRuntime().prettyName;
44
+ throw new Error(`PrismaClientInitializationError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
45
+ In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
46
+ )}
47
+ Prisma.PrismaClientValidationError = () => {
48
+ const runtimeName = getRuntime().prettyName;
49
+ throw new Error(`PrismaClientValidationError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
50
+ In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
51
+ )}
52
+ Prisma.NotFoundError = () => {
53
+ const runtimeName = getRuntime().prettyName;
54
+ throw new Error(`NotFoundError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
55
+ In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
56
+ )}
57
+ Prisma.Decimal = Decimal
58
+
59
+ /**
60
+ * Re-export of sql-template-tag
61
+ */
62
+ Prisma.sql = () => {
63
+ const runtimeName = getRuntime().prettyName;
64
+ throw new Error(`sqltag is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
65
+ In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
66
+ )}
67
+ Prisma.empty = () => {
68
+ const runtimeName = getRuntime().prettyName;
69
+ throw new Error(`empty is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
70
+ In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
71
+ )}
72
+ Prisma.join = () => {
73
+ const runtimeName = getRuntime().prettyName;
74
+ throw new Error(`join is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
75
+ In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
76
+ )}
77
+ Prisma.raw = () => {
78
+ const runtimeName = getRuntime().prettyName;
79
+ throw new Error(`raw is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
80
+ In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
81
+ )}
82
+ Prisma.validator = Public.validator
83
+
84
+ /**
85
+ * Extensions
86
+ */
87
+ Prisma.getExtensionContext = () => {
88
+ const runtimeName = getRuntime().prettyName;
89
+ throw new Error(`Extensions.getExtensionContext is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
90
+ In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
91
+ )}
92
+ Prisma.defineExtension = () => {
93
+ const runtimeName = getRuntime().prettyName;
94
+ throw new Error(`Extensions.defineExtension is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
95
+ In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
96
+ )}
97
+
98
+ /**
99
+ * Shorthand utilities for JSON filtering
100
+ */
101
+ Prisma.DbNull = objectEnumValues.instances.DbNull
102
+ Prisma.JsonNull = objectEnumValues.instances.JsonNull
103
+ Prisma.AnyNull = objectEnumValues.instances.AnyNull
104
+
105
+ Prisma.NullTypes = {
106
+ DbNull: objectEnumValues.classes.DbNull,
107
+ JsonNull: objectEnumValues.classes.JsonNull,
108
+ AnyNull: objectEnumValues.classes.AnyNull
109
+ }
110
+
111
+ /**
112
+ * Enums
113
+ */
114
+
115
+ exports.Prisma.TransactionIsolationLevel = makeStrictEnum({
116
+ ReadUncommitted: 'ReadUncommitted',
117
+ ReadCommitted: 'ReadCommitted',
118
+ RepeatableRead: 'RepeatableRead',
119
+ Serializable: 'Serializable'
120
+ });
121
+
122
+ exports.Prisma.CuentaScalarFieldEnum = {
123
+ id: 'id',
124
+ nombreUsuario: 'nombreUsuario',
125
+ contrasena: 'contrasena',
126
+ esAdmin: 'esAdmin',
127
+ created_at: 'created_at',
128
+ updated_at: 'updated_at',
129
+ filtroBaseActivo: 'filtroBaseActivo',
130
+ fcmToken: 'fcmToken'
131
+ };
132
+
133
+ exports.Prisma.PerfilScalarFieldEnum = {
134
+ id: 'id',
135
+ idLegible: 'idLegible',
136
+ telefono: 'telefono',
137
+ nombreCompleto: 'nombreCompleto',
138
+ nombrePila: 'nombrePila',
139
+ genero: 'genero',
140
+ fechaNacimiento: 'fechaNacimiento',
141
+ fotoUrl: 'fotoUrl',
142
+ instagram: 'instagram',
143
+ mail: 'mail',
144
+ dni: 'dni',
145
+ nombresAlternativos: 'nombresAlternativos',
146
+ esPapelera: 'esPapelera',
147
+ fechaPapelera: 'fechaPapelera',
148
+ created_at: 'created_at',
149
+ updated_at: 'updated_at'
150
+ };
151
+
152
+ exports.Prisma.ComentarioScalarFieldEnum = {
153
+ id: 'id',
154
+ contenido: 'contenido',
155
+ creadoPor: 'creadoPor',
156
+ perfilId: 'perfilId',
157
+ created_at: 'created_at',
158
+ updated_at: 'updated_at'
159
+ };
160
+
161
+ exports.Prisma.EtiquetaScalarFieldEnum = {
162
+ id: 'id',
163
+ nombre: 'nombre',
164
+ grupoId: 'grupoId',
165
+ tipo: 'tipo',
166
+ created_at: 'created_at',
167
+ updated_at: 'updated_at'
168
+ };
169
+
170
+ exports.Prisma.EtiquetaGrupoScalarFieldEnum = {
171
+ id: 'id',
172
+ nombre: 'nombre',
173
+ color: 'color',
174
+ esExclusivo: 'esExclusivo',
175
+ created_at: 'created_at',
176
+ updated_at: 'updated_at'
177
+ };
178
+
179
+ exports.Prisma.EventoScalarFieldEnum = {
180
+ id: 'id',
181
+ nombre: 'nombre',
182
+ fecha: 'fecha',
183
+ ubicacion: 'ubicacion',
184
+ etiquetaAsistioId: 'etiquetaAsistioId',
185
+ etiquetaConfirmoId: 'etiquetaConfirmoId',
186
+ eventoPadreId: 'eventoPadreId',
187
+ created_at: 'created_at',
188
+ updated_at: 'updated_at'
189
+ };
190
+
191
+ exports.Prisma.MensajeScalarFieldEnum = {
192
+ id: 'id',
193
+ wamId: 'wamId',
194
+ message: 'message',
195
+ perfilTelefono: 'perfilTelefono',
196
+ status: 'status',
197
+ statusAt: 'statusAt',
198
+ visto: 'visto',
199
+ created_at: 'created_at',
200
+ updated_at: 'updated_at'
201
+ };
202
+
203
+ exports.Prisma.EnumsScalarFieldEnum = {
204
+ id: 'id',
205
+ EstadoPlantilla: 'EstadoPlantilla',
206
+ CategoriaPlantilla: 'CategoriaPlantilla'
207
+ };
208
+
209
+ exports.Prisma.SortOrder = {
210
+ asc: 'asc',
211
+ desc: 'desc'
212
+ };
213
+
214
+ exports.Prisma.JsonNullValueInput = {
215
+ JsonNull: Prisma.JsonNull
216
+ };
217
+
218
+ exports.Prisma.QueryMode = {
219
+ default: 'default',
220
+ insensitive: 'insensitive'
221
+ };
222
+
223
+ exports.Prisma.NullsOrder = {
224
+ first: 'first',
225
+ last: 'last'
226
+ };
227
+
228
+ exports.Prisma.JsonNullValueFilter = {
229
+ DbNull: Prisma.DbNull,
230
+ JsonNull: Prisma.JsonNull,
231
+ AnyNull: Prisma.AnyNull
232
+ };
233
+ exports.TipoEtiqueta = exports.$Enums.TipoEtiqueta = {
234
+ PERSONAL: 'PERSONAL',
235
+ EVENTO: 'EVENTO',
236
+ MODELO: 'MODELO',
237
+ TENTATIVA: 'TENTATIVA'
238
+ };
239
+
240
+ exports.MensajeStatus = exports.$Enums.MensajeStatus = {
241
+ ENVIADO: 'ENVIADO',
242
+ RECIBIDO: 'RECIBIDO',
243
+ LEIDO: 'LEIDO'
244
+ };
245
+
246
+ exports.EstadoPlantilla = exports.$Enums.EstadoPlantilla = {
247
+ APRROVED: 'APRROVED',
248
+ PENDING: 'PENDING',
249
+ REJECTED: 'REJECTED'
250
+ };
251
+
252
+ exports.CategoriaPlantilla = exports.$Enums.CategoriaPlantilla = {
253
+ MARKETING: 'MARKETING',
254
+ UTILITY: 'UTILITY',
255
+ AUTHENTICATION: 'AUTHENTICATION'
256
+ };
257
+
258
+ exports.Prisma.ModelName = {
259
+ Cuenta: 'Cuenta',
260
+ Perfil: 'Perfil',
261
+ Comentario: 'Comentario',
262
+ Etiqueta: 'Etiqueta',
263
+ EtiquetaGrupo: 'EtiquetaGrupo',
264
+ Evento: 'Evento',
265
+ Mensaje: 'Mensaje',
266
+ Enums: 'Enums'
267
+ };
268
+
269
+ /**
270
+ * This is a stub Prisma Client that will error at runtime if called.
271
+ */
272
+ class PrismaClient {
273
+ constructor() {
274
+ return new Proxy(this, {
275
+ get(target, prop) {
276
+ let message
277
+ const runtime = getRuntime()
278
+ if (runtime.isEdge) {
279
+ message = `PrismaClient is not configured to run in ${runtime.prettyName}. In order to run Prisma Client on edge runtime, either:
280
+ - Use Prisma Accelerate: https://pris.ly/d/accelerate
281
+ - Use Driver Adapters: https://pris.ly/d/driver-adapters
282
+ `;
283
+ } else {
284
+ message = 'PrismaClient is unable to run in this browser environment, or has been bundled for the browser (running in `' + runtime.prettyName + '`).'
285
+ }
286
+
287
+ message += `
288
+ If this is unexpected, please open an issue: https://pris.ly/prisma-prisma-bug-report`
289
+
290
+ throw new Error(message)
291
+ }
292
+ })
293
+ }
294
+ }
295
+
296
+ exports.PrismaClient = PrismaClient
297
+
298
+ Object.assign(exports, Prisma)
@@ -1,3 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by openapi-typescript.
3
+ * Do not make direct changes to the file.
4
+ */
5
+
1
6
  export interface paths {
2
7
  "/auth/register": {
3
8
  parameters: {
@@ -54,10 +59,12 @@ export interface components {
54
59
  RegisterDto: {
55
60
  username: string;
56
61
  password: string;
62
+ /** @default false */
57
63
  isAdmin: boolean;
58
64
  };
59
65
  RegisterResponseDto: {
60
66
  username: string;
67
+ /** @default false */
61
68
  isAdmin: boolean;
62
69
  };
63
70
  LoginDto: {
@@ -66,12 +73,18 @@ export interface components {
66
73
  };
67
74
  LoginResponseDto: {
68
75
  user: {
76
+ /** Format: uuid */
69
77
  id?: string;
70
78
  username?: string;
79
+ /** @default false */
71
80
  isAdmin: boolean;
81
+ /** Format: date-time */
72
82
  created_at?: string;
83
+ /** Format: date-time */
73
84
  updated_at?: string;
85
+ /** @default false */
74
86
  filtroBaseActivo: boolean;
87
+ /** @default [] */
75
88
  fcmToken: string[];
76
89
  };
77
90
  backendTokens: {
@@ -101,6 +114,7 @@ export interface operations {
101
114
  };
102
115
  };
103
116
  responses: {
117
+ /** @description Cuenta creada */
104
118
  201: {
105
119
  headers: {
106
120
  [name: string]: unknown;
@@ -124,6 +138,7 @@ export interface operations {
124
138
  };
125
139
  };
126
140
  responses: {
141
+ /** @description Cuenta creada */
127
142
  200: {
128
143
  headers: {
129
144
  [name: string]: unknown;
@@ -1,170 +0,0 @@
1
- import z from 'zod';
2
- export declare const loginSchema: z.ZodObject<Pick<{
3
- id: z.ZodString;
4
- username: z.ZodString;
5
- password: z.ZodString;
6
- isAdmin: z.ZodDefault<z.ZodBoolean>;
7
- created_at: z.ZodString;
8
- updated_at: z.ZodString;
9
- filtroBaseActivo: z.ZodDefault<z.ZodBoolean>;
10
- fcmToken: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
11
- }, "username" | "password">, "strip", z.ZodTypeAny, {
12
- username: string;
13
- password: string;
14
- }, {
15
- username: string;
16
- password: string;
17
- }>;
18
- declare const LoginDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<Pick<{
19
- id: z.ZodString;
20
- username: z.ZodString;
21
- password: z.ZodString;
22
- isAdmin: z.ZodDefault<z.ZodBoolean>;
23
- created_at: z.ZodString;
24
- updated_at: z.ZodString;
25
- filtroBaseActivo: z.ZodDefault<z.ZodBoolean>;
26
- fcmToken: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
27
- }, "username" | "password">, "strip", z.ZodTypeAny, {
28
- username: string;
29
- password: string;
30
- }, {
31
- username: string;
32
- password: string;
33
- }>>;
34
- export declare class LoginDto extends LoginDto_base {
35
- }
36
- export declare const loginResponseSchema: z.ZodObject<{
37
- user: z.ZodObject<Omit<{
38
- id: z.ZodString;
39
- username: z.ZodString;
40
- password: z.ZodString;
41
- isAdmin: z.ZodDefault<z.ZodBoolean>;
42
- created_at: z.ZodString;
43
- updated_at: z.ZodString;
44
- filtroBaseActivo: z.ZodDefault<z.ZodBoolean>;
45
- fcmToken: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
46
- }, "password">, "strip", z.ZodTypeAny, {
47
- id: string;
48
- username: string;
49
- isAdmin: boolean;
50
- created_at: string;
51
- updated_at: string;
52
- filtroBaseActivo: boolean;
53
- fcmToken: string[];
54
- }, {
55
- id: string;
56
- username: string;
57
- created_at: string;
58
- updated_at: string;
59
- isAdmin?: boolean | undefined;
60
- filtroBaseActivo?: boolean | undefined;
61
- fcmToken?: string[] | undefined;
62
- }>;
63
- backendTokens: z.ZodObject<{
64
- accessToken: z.ZodString;
65
- refreshToken: z.ZodString;
66
- }, "strip", z.ZodTypeAny, {
67
- accessToken: string;
68
- refreshToken: string;
69
- }, {
70
- accessToken: string;
71
- refreshToken: string;
72
- }>;
73
- }, "strip", z.ZodTypeAny, {
74
- user: {
75
- id: string;
76
- username: string;
77
- isAdmin: boolean;
78
- created_at: string;
79
- updated_at: string;
80
- filtroBaseActivo: boolean;
81
- fcmToken: string[];
82
- };
83
- backendTokens: {
84
- accessToken: string;
85
- refreshToken: string;
86
- };
87
- }, {
88
- user: {
89
- id: string;
90
- username: string;
91
- created_at: string;
92
- updated_at: string;
93
- isAdmin?: boolean | undefined;
94
- filtroBaseActivo?: boolean | undefined;
95
- fcmToken?: string[] | undefined;
96
- };
97
- backendTokens: {
98
- accessToken: string;
99
- refreshToken: string;
100
- };
101
- }>;
102
- declare const LoginResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
103
- user: z.ZodObject<Omit<{
104
- id: z.ZodString;
105
- username: z.ZodString;
106
- password: z.ZodString;
107
- isAdmin: z.ZodDefault<z.ZodBoolean>;
108
- created_at: z.ZodString;
109
- updated_at: z.ZodString;
110
- filtroBaseActivo: z.ZodDefault<z.ZodBoolean>;
111
- fcmToken: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
112
- }, "password">, "strip", z.ZodTypeAny, {
113
- id: string;
114
- username: string;
115
- isAdmin: boolean;
116
- created_at: string;
117
- updated_at: string;
118
- filtroBaseActivo: boolean;
119
- fcmToken: string[];
120
- }, {
121
- id: string;
122
- username: string;
123
- created_at: string;
124
- updated_at: string;
125
- isAdmin?: boolean | undefined;
126
- filtroBaseActivo?: boolean | undefined;
127
- fcmToken?: string[] | undefined;
128
- }>;
129
- backendTokens: z.ZodObject<{
130
- accessToken: z.ZodString;
131
- refreshToken: z.ZodString;
132
- }, "strip", z.ZodTypeAny, {
133
- accessToken: string;
134
- refreshToken: string;
135
- }, {
136
- accessToken: string;
137
- refreshToken: string;
138
- }>;
139
- }, "strip", z.ZodTypeAny, {
140
- user: {
141
- id: string;
142
- username: string;
143
- isAdmin: boolean;
144
- created_at: string;
145
- updated_at: string;
146
- filtroBaseActivo: boolean;
147
- fcmToken: string[];
148
- };
149
- backendTokens: {
150
- accessToken: string;
151
- refreshToken: string;
152
- };
153
- }, {
154
- user: {
155
- id: string;
156
- username: string;
157
- created_at: string;
158
- updated_at: string;
159
- isAdmin?: boolean | undefined;
160
- filtroBaseActivo?: boolean | undefined;
161
- fcmToken?: string[] | undefined;
162
- };
163
- backendTokens: {
164
- accessToken: string;
165
- refreshToken: string;
166
- };
167
- }>>;
168
- export declare class LoginResponseDto extends LoginResponseDto_base {
169
- }
170
- export {};
@@ -1,29 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.LoginResponseDto = exports.loginResponseSchema = exports.LoginDto = exports.loginSchema = void 0;
7
- const zod_nestjs_1 = require("@anatine/zod-nestjs");
8
- const cuenta_dto_1 = require("../../cuenta/dto/cuenta.dto");
9
- const zod_1 = __importDefault(require("zod"));
10
- exports.loginSchema = cuenta_dto_1.cuentaSchema.pick({
11
- username: true,
12
- password: true,
13
- });
14
- class LoginDto extends (0, zod_nestjs_1.createZodDto)(exports.loginSchema) {
15
- }
16
- exports.LoginDto = LoginDto;
17
- exports.loginResponseSchema = zod_1.default.object({
18
- user: cuenta_dto_1.cuentaSchema.omit({
19
- password: true,
20
- }),
21
- backendTokens: zod_1.default.object({
22
- accessToken: zod_1.default.string(),
23
- refreshToken: zod_1.default.string(),
24
- }),
25
- });
26
- class LoginResponseDto extends (0, zod_nestjs_1.createZodDto)(exports.loginResponseSchema) {
27
- }
28
- exports.LoginResponseDto = LoginResponseDto;
29
- //# sourceMappingURL=login.dto.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"login.dto.js","sourceRoot":"","sources":["../../../../src/auth/dto/login.dto.ts"],"names":[],"mappings":";;;;;;AAAA,oDAAmD;AACnD,4DAAuD;AACvD,8CAAoB;AAEP,QAAA,WAAW,GAAG,yBAAY,CAAC,IAAI,CAAC;IAC3C,QAAQ,EAAE,IAAI;IACd,QAAQ,EAAE,IAAI;CACf,CAAC,CAAC;AAEH,MAAa,QAAS,SAAQ,IAAA,yBAAY,EAAC,mBAAW,CAAC;CAAG;AAA1D,4BAA0D;AAE7C,QAAA,mBAAmB,GAAG,aAAC,CAAC,MAAM,CAAC;IAC1C,IAAI,EAAE,yBAAY,CAAC,IAAI,CAAC;QACtB,QAAQ,EAAE,IAAI;KACf,CAAC;IACF,aAAa,EAAE,aAAC,CAAC,MAAM,CAAC;QACtB,WAAW,EAAE,aAAC,CAAC,MAAM,EAAE;QACvB,YAAY,EAAE,aAAC,CAAC,MAAM,EAAE;KACzB,CAAC;CACH,CAAC,CAAC;AAEH,MAAa,gBAAiB,SAAQ,IAAA,yBAAY,EAAC,2BAAmB,CAAC;CAAG;AAA1E,4CAA0E"}
@@ -1,73 +0,0 @@
1
- export declare const registerSchema: import("zod").ZodObject<Pick<{
2
- id: import("zod").ZodString;
3
- username: import("zod").ZodString;
4
- password: import("zod").ZodString;
5
- isAdmin: import("zod").ZodDefault<import("zod").ZodBoolean>;
6
- created_at: import("zod").ZodString;
7
- updated_at: import("zod").ZodString;
8
- filtroBaseActivo: import("zod").ZodDefault<import("zod").ZodBoolean>;
9
- fcmToken: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString, "many">>;
10
- }, "username" | "password" | "isAdmin">, "strip", import("zod").ZodTypeAny, {
11
- username: string;
12
- password: string;
13
- isAdmin: boolean;
14
- }, {
15
- username: string;
16
- password: string;
17
- isAdmin?: boolean | undefined;
18
- }>;
19
- declare const RegisterDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<import("zod").ZodObject<Pick<{
20
- id: import("zod").ZodString;
21
- username: import("zod").ZodString;
22
- password: import("zod").ZodString;
23
- isAdmin: import("zod").ZodDefault<import("zod").ZodBoolean>;
24
- created_at: import("zod").ZodString;
25
- updated_at: import("zod").ZodString;
26
- filtroBaseActivo: import("zod").ZodDefault<import("zod").ZodBoolean>;
27
- fcmToken: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString, "many">>;
28
- }, "username" | "password" | "isAdmin">, "strip", import("zod").ZodTypeAny, {
29
- username: string;
30
- password: string;
31
- isAdmin: boolean;
32
- }, {
33
- username: string;
34
- password: string;
35
- isAdmin?: boolean | undefined;
36
- }>>;
37
- export declare class RegisterDto extends RegisterDto_base {
38
- }
39
- export declare const registerResponseSchema: import("zod").ZodObject<Omit<Pick<{
40
- id: import("zod").ZodString;
41
- username: import("zod").ZodString;
42
- password: import("zod").ZodString;
43
- isAdmin: import("zod").ZodDefault<import("zod").ZodBoolean>;
44
- created_at: import("zod").ZodString;
45
- updated_at: import("zod").ZodString;
46
- filtroBaseActivo: import("zod").ZodDefault<import("zod").ZodBoolean>;
47
- fcmToken: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString, "many">>;
48
- }, "username" | "password" | "isAdmin">, "password">, "strip", import("zod").ZodTypeAny, {
49
- username: string;
50
- isAdmin: boolean;
51
- }, {
52
- username: string;
53
- isAdmin?: boolean | undefined;
54
- }>;
55
- declare const RegisterResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<import("zod").ZodObject<Omit<Pick<{
56
- id: import("zod").ZodString;
57
- username: import("zod").ZodString;
58
- password: import("zod").ZodString;
59
- isAdmin: import("zod").ZodDefault<import("zod").ZodBoolean>;
60
- created_at: import("zod").ZodString;
61
- updated_at: import("zod").ZodString;
62
- filtroBaseActivo: import("zod").ZodDefault<import("zod").ZodBoolean>;
63
- fcmToken: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString, "many">>;
64
- }, "username" | "password" | "isAdmin">, "password">, "strip", import("zod").ZodTypeAny, {
65
- username: string;
66
- isAdmin: boolean;
67
- }, {
68
- username: string;
69
- isAdmin?: boolean | undefined;
70
- }>>;
71
- export declare class RegisterResponseDto extends RegisterResponseDto_base {
72
- }
73
- export {};
@@ -1,20 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RegisterResponseDto = exports.registerResponseSchema = exports.RegisterDto = exports.registerSchema = void 0;
4
- const zod_nestjs_1 = require("@anatine/zod-nestjs");
5
- const cuenta_dto_1 = require("../../cuenta/dto/cuenta.dto");
6
- exports.registerSchema = cuenta_dto_1.cuentaSchema.pick({
7
- username: true,
8
- password: true,
9
- isAdmin: true,
10
- });
11
- class RegisterDto extends (0, zod_nestjs_1.createZodDto)(exports.registerSchema) {
12
- }
13
- exports.RegisterDto = RegisterDto;
14
- exports.registerResponseSchema = exports.registerSchema.omit({
15
- password: true,
16
- });
17
- class RegisterResponseDto extends (0, zod_nestjs_1.createZodDto)(exports.registerResponseSchema) {
18
- }
19
- exports.RegisterResponseDto = RegisterResponseDto;
20
- //# sourceMappingURL=register.dto.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"register.dto.js","sourceRoot":"","sources":["../../../../src/auth/dto/register.dto.ts"],"names":[],"mappings":";;;AAAA,oDAAmD;AACnD,4DAAuD;AAE1C,QAAA,cAAc,GAAG,yBAAY,CAAC,IAAI,CAAC;IAC9C,QAAQ,EAAE,IAAI;IACd,QAAQ,EAAE,IAAI;IACd,OAAO,EAAE,IAAI;CACd,CAAC,CAAC;AAEH,MAAa,WAAY,SAAQ,IAAA,yBAAY,EAAC,sBAAc,CAAC;CAAG;AAAhE,kCAAgE;AAEnD,QAAA,sBAAsB,GAAG,sBAAc,CAAC,IAAI,CAAC;IACxD,QAAQ,EAAE,IAAI;CACf,CAAC,CAAC;AAEH,MAAa,mBAAoB,SAAQ,IAAA,yBAAY,EAAC,8BAAsB,CAAC;CAAG;AAAhF,kDAAgF"}
@@ -1,2 +0,0 @@
1
- export * from './dto/login.dto';
2
- export * from './dto/register.dto';
@@ -1,19 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./dto/login.dto"), exports);
18
- __exportStar(require("./dto/register.dto"), exports);
19
- //# sourceMappingURL=exports.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"exports.js","sourceRoot":"","sources":["../../../src/auth/exports.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC;AAChC,qDAAmC"}