expo-backend-types 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (71) hide show
  1. package/dist/src/account/dto/account.dto.d.ts +256 -0
  2. package/dist/src/account/dto/account.dto.js +53 -0
  3. package/dist/src/account/dto/create-account.dto.d.ts +381 -0
  4. package/dist/src/account/dto/create-account.dto.js +23 -0
  5. package/dist/src/account/dto/get-global-filter.dto.d.ts +154 -0
  6. package/dist/src/account/dto/get-global-filter.dto.js +30 -0
  7. package/dist/src/account/dto/get-me.dto.d.ts +251 -0
  8. package/dist/src/account/dto/get-me.dto.js +12 -0
  9. package/dist/src/account/dto/update-global-filter.dto.d.ts +208 -0
  10. package/dist/src/account/dto/update-global-filter.dto.js +29 -0
  11. package/dist/src/account/exports.d.ts +5 -0
  12. package/dist/src/account/exports.js +22 -0
  13. package/dist/src/auth/dto/login.dto.d.ts +416 -24
  14. package/dist/src/auth/dto/login.dto.js +3 -3
  15. package/dist/src/auth/exports.d.ts +0 -1
  16. package/dist/src/auth/exports.js +0 -1
  17. package/dist/src/comment/dto/comment.dto.d.ts +66 -0
  18. package/dist/src/comment/dto/comment.dto.js +26 -0
  19. package/dist/src/comment/exports.d.ts +1 -0
  20. package/dist/src/comment/exports.js +18 -0
  21. package/dist/src/event/dto/event.dto.d.ts +41 -0
  22. package/dist/src/event/dto/event.dto.js +33 -0
  23. package/dist/src/event/exports.d.ts +1 -0
  24. package/dist/src/{cuenta → event}/exports.js +1 -1
  25. package/dist/src/event-folder/dto/event-folder.dto.d.ts +14 -0
  26. package/dist/src/event-folder/dto/event-folder.dto.js +22 -0
  27. package/dist/src/exports.d.ts +5 -1
  28. package/dist/src/exports.js +5 -1
  29. package/dist/src/i18n/es.json +125 -0
  30. package/dist/src/i18n/translate.d.ts +8 -0
  31. package/dist/src/i18n/translate.js +21 -0
  32. package/dist/src/i18n/translate.js.map +1 -0
  33. package/dist/src/tag/dto/create-tag.dto.d.ts +89 -0
  34. package/dist/src/tag/dto/create-tag.dto.js +20 -0
  35. package/dist/src/tag/dto/delete-tag.dto.d.ts +57 -0
  36. package/dist/src/tag/dto/delete-tag.dto.js +10 -0
  37. package/dist/src/tag/dto/find-all-grouped-tag.dto.d.ts +282 -0
  38. package/dist/src/tag/dto/find-all-grouped-tag.dto.js +33 -0
  39. package/dist/src/tag/dto/find-all-tag.dto.d.ts +208 -0
  40. package/dist/src/tag/dto/find-all-tag.dto.js +19 -0
  41. package/dist/src/tag/dto/find-by-group-tag.dto.d.ts +208 -0
  42. package/dist/src/tag/dto/find-by-group-tag.dto.js +19 -0
  43. package/dist/src/tag/dto/find-one-tag.dto.d.ts +136 -0
  44. package/dist/src/tag/dto/find-one-tag.dto.js +17 -0
  45. package/dist/src/tag/dto/tag.dto.d.ts +58 -0
  46. package/dist/src/tag/dto/tag.dto.js +30 -0
  47. package/dist/src/tag/dto/update-tag.dto.d.ts +79 -0
  48. package/dist/src/tag/dto/update-tag.dto.js +19 -0
  49. package/dist/src/tag/exports.d.ts +8 -0
  50. package/dist/src/tag/exports.js +25 -0
  51. package/dist/src/tag-group/dto/tag-group.dto.d.ts +48 -0
  52. package/dist/src/tag-group/dto/tag-group.dto.js +28 -0
  53. package/dist/src/tag-group/exports.d.ts +1 -0
  54. package/dist/src/tag-group/exports.js +18 -0
  55. package/dist/types/index.d.ts +1 -1
  56. package/dist/types/index.js +1 -1
  57. package/dist/types/index.js.map +1 -1
  58. package/dist/types/prisma-schema/edge.js +106 -64
  59. package/dist/types/prisma-schema/index-browser.js +103 -61
  60. package/dist/types/prisma-schema/index.d.ts +11442 -6088
  61. package/dist/types/prisma-schema/index.js +106 -64
  62. package/dist/types/prisma-schema/package.json +1 -1
  63. package/dist/types/prisma-schema/schema.prisma +175 -103
  64. package/dist/types/prisma-schema/wasm.js +103 -61
  65. package/dist/types/schema.d.ts +539 -26
  66. package/package.json +11 -7
  67. package/dist/src/auth/dto/register.dto.d.ts +0 -73
  68. package/dist/src/auth/dto/register.dto.js +0 -20
  69. package/dist/src/cuenta/dto/cuenta.dto.d.ts +0 -60
  70. package/dist/src/cuenta/dto/cuenta.dto.js +0 -31
  71. package/dist/src/cuenta/exports.d.ts +0 -1
@@ -1,5 +1,5 @@
1
1
  export interface paths {
2
- "/auth/register": {
2
+ "/auth/login": {
3
3
  parameters: {
4
4
  query?: never;
5
5
  header?: never;
@@ -8,14 +8,14 @@ export interface paths {
8
8
  };
9
9
  get?: never;
10
10
  put?: never;
11
- post: operations["AuthController_registerUser"];
11
+ post: operations["AuthController_loginUser"];
12
12
  delete?: never;
13
13
  options?: never;
14
14
  head?: never;
15
15
  patch?: never;
16
16
  trace?: never;
17
17
  };
18
- "/auth/login": {
18
+ "/auth/refresh": {
19
19
  parameters: {
20
20
  query?: never;
21
21
  header?: never;
@@ -24,14 +24,14 @@ export interface paths {
24
24
  };
25
25
  get?: never;
26
26
  put?: never;
27
- post: operations["AuthController_loginUser"];
27
+ post: operations["AuthController_refreshToken"];
28
28
  delete?: never;
29
29
  options?: never;
30
30
  head?: never;
31
31
  patch?: never;
32
32
  trace?: never;
33
33
  };
34
- "/auth/refresh": {
34
+ "/tag/create": {
35
35
  parameters: {
36
36
  query?: never;
37
37
  header?: never;
@@ -40,7 +40,119 @@ export interface paths {
40
40
  };
41
41
  get?: never;
42
42
  put?: never;
43
- post: operations["AuthController_refreshToken"];
43
+ post: operations["TagController_create"];
44
+ delete?: never;
45
+ options?: never;
46
+ head?: never;
47
+ patch?: never;
48
+ trace?: never;
49
+ };
50
+ "/tag/all": {
51
+ parameters: {
52
+ query?: never;
53
+ header?: never;
54
+ path?: never;
55
+ cookie?: never;
56
+ };
57
+ get: operations["TagController_findAll"];
58
+ put?: never;
59
+ post?: never;
60
+ delete?: never;
61
+ options?: never;
62
+ head?: never;
63
+ patch?: never;
64
+ trace?: never;
65
+ };
66
+ "/tag/all-grouped": {
67
+ parameters: {
68
+ query?: never;
69
+ header?: never;
70
+ path?: never;
71
+ cookie?: never;
72
+ };
73
+ get: operations["TagController_findAllGrouped"];
74
+ put?: never;
75
+ post?: never;
76
+ delete?: never;
77
+ options?: never;
78
+ head?: never;
79
+ patch?: never;
80
+ trace?: never;
81
+ };
82
+ "/tag/find-by-group/{groupId}": {
83
+ parameters: {
84
+ query?: never;
85
+ header?: never;
86
+ path?: never;
87
+ cookie?: never;
88
+ };
89
+ get: operations["TagController_findByGroup"];
90
+ put?: never;
91
+ post?: never;
92
+ delete?: never;
93
+ options?: never;
94
+ head?: never;
95
+ patch?: never;
96
+ trace?: never;
97
+ };
98
+ "/tag/{id}": {
99
+ parameters: {
100
+ query?: never;
101
+ header?: never;
102
+ path?: never;
103
+ cookie?: never;
104
+ };
105
+ get: operations["TagController_findById"];
106
+ put?: never;
107
+ post?: never;
108
+ delete: operations["TagController_remove"];
109
+ options?: never;
110
+ head?: never;
111
+ patch: operations["TagController_update"];
112
+ trace?: never;
113
+ };
114
+ "/account/create": {
115
+ parameters: {
116
+ query?: never;
117
+ header?: never;
118
+ path?: never;
119
+ cookie?: never;
120
+ };
121
+ get?: never;
122
+ put?: never;
123
+ post: operations["AccountController_create"];
124
+ delete?: never;
125
+ options?: never;
126
+ head?: never;
127
+ patch?: never;
128
+ trace?: never;
129
+ };
130
+ "/account/global-filter": {
131
+ parameters: {
132
+ query?: never;
133
+ header?: never;
134
+ path?: never;
135
+ cookie?: never;
136
+ };
137
+ get: operations["AccountController_getGlobalFilter"];
138
+ put?: never;
139
+ post?: never;
140
+ delete?: never;
141
+ options?: never;
142
+ head?: never;
143
+ patch: operations["AccountController_updateGlobalFilter"];
144
+ trace?: never;
145
+ };
146
+ "/account/me": {
147
+ parameters: {
148
+ query?: never;
149
+ header?: never;
150
+ path?: never;
151
+ cookie?: never;
152
+ };
153
+ get: operations["AccountController_getMe"];
154
+ put?: never;
155
+ post?: never;
44
156
  delete?: never;
45
157
  options?: never;
46
158
  head?: never;
@@ -51,15 +163,6 @@ export interface paths {
51
163
  export type webhooks = Record<string, never>;
52
164
  export interface components {
53
165
  schemas: {
54
- RegisterDto: {
55
- username: string;
56
- password: string;
57
- isAdmin: boolean;
58
- };
59
- RegisterResponseDto: {
60
- username: string;
61
- isAdmin: boolean;
62
- };
63
166
  LoginDto: {
64
167
  username: string;
65
168
  password: string;
@@ -68,10 +171,22 @@ export interface components {
68
171
  user: {
69
172
  id?: string;
70
173
  username?: string;
71
- isAdmin: boolean;
174
+ role?: "USER" | "ADMIN";
72
175
  created_at?: string;
73
176
  updated_at?: string;
74
- filtroBaseActivo: boolean;
177
+ globalFilter?: {
178
+ tags: {
179
+ id: string;
180
+ name: string;
181
+ group: {
182
+ id: string;
183
+ color: string;
184
+ isExclusive: boolean;
185
+ };
186
+ };
187
+ active: boolean;
188
+ };
189
+ isGlobalFilterActive: boolean;
75
190
  fcmToken: string[];
76
191
  };
77
192
  backendTokens: {
@@ -79,6 +194,170 @@ export interface components {
79
194
  refreshToken?: string;
80
195
  };
81
196
  };
197
+ CreateTagDto: {
198
+ name: string;
199
+ groupId: string;
200
+ };
201
+ CreateTagResponseDto: {
202
+ id: string;
203
+ name: string;
204
+ groupId: string;
205
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
206
+ };
207
+ FindAllTagResponseDto: {
208
+ tags: {
209
+ id: string;
210
+ name: string;
211
+ groupId: string;
212
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
213
+ created_at: string;
214
+ updated_at: string;
215
+ group: {
216
+ id: string;
217
+ name: string;
218
+ color: string;
219
+ isExclusive: boolean;
220
+ created_at: string;
221
+ updated_at: string;
222
+ };
223
+ }[];
224
+ };
225
+ FindAllGroupedTagResponseDto: {
226
+ groups: {
227
+ id: string;
228
+ name: string;
229
+ isExclusive: boolean;
230
+ color: string;
231
+ tags: {
232
+ id: string;
233
+ name: string;
234
+ groupId: string;
235
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
236
+ created_at: string;
237
+ updated_at: string;
238
+ _count: {
239
+ profiles: number;
240
+ };
241
+ }[];
242
+ _count: {
243
+ tags: number;
244
+ };
245
+ }[];
246
+ };
247
+ FindByGroupTagResponseDto: {
248
+ tags: {
249
+ id: string;
250
+ name: string;
251
+ groupId: string;
252
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
253
+ created_at: string;
254
+ updated_at: string;
255
+ group: {
256
+ id: string;
257
+ name: string;
258
+ color: string;
259
+ isExclusive: boolean;
260
+ created_at: string;
261
+ updated_at: string;
262
+ };
263
+ }[];
264
+ };
265
+ FindOneTagResponseDto: {
266
+ id: string;
267
+ name: string;
268
+ groupId: string;
269
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
270
+ created_at: string;
271
+ updated_at: string;
272
+ group: {
273
+ id?: string;
274
+ name?: string;
275
+ color?: string;
276
+ isExclusive?: boolean;
277
+ created_at?: string;
278
+ updated_at?: string;
279
+ };
280
+ };
281
+ UpdateTagDto: {
282
+ name: string;
283
+ groupId: string;
284
+ };
285
+ DeleteTagResponseDto: {
286
+ id: string;
287
+ name: string;
288
+ groupId: string;
289
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
290
+ created_at: string;
291
+ updated_at: string;
292
+ };
293
+ CreateAccountDto: {
294
+ username: string;
295
+ password: string;
296
+ role: "USER" | "ADMIN";
297
+ };
298
+ CreateAccountResponseDto: {
299
+ id: string;
300
+ username: string;
301
+ role: "USER" | "ADMIN";
302
+ isGlobalFilterActive: boolean;
303
+ fcmToken: string[];
304
+ };
305
+ UpdateGlobalFilterDto: {
306
+ active: boolean;
307
+ tagsIds: string[];
308
+ };
309
+ UpdateGlobalFilterResponseDto: {
310
+ id: string;
311
+ nombreUsuario: string;
312
+ esAdmin: boolean;
313
+ fcmToken: string | null;
314
+ filtroBaseActivo: boolean;
315
+ filtroBase: {
316
+ active?: boolean;
317
+ etiquetas?: {
318
+ id: string;
319
+ name: string;
320
+ groupId: string;
321
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
322
+ created_at: string;
323
+ updated_at: string;
324
+ }[];
325
+ };
326
+ };
327
+ GetGlobalFilterResponseDto: {
328
+ active: boolean;
329
+ globalFilter: {
330
+ id: string;
331
+ name: string;
332
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
333
+ group: {
334
+ id: string;
335
+ color: string;
336
+ isExclusive: boolean;
337
+ };
338
+ }[];
339
+ };
340
+ GetMeResponseDto: {
341
+ id: string;
342
+ username: string;
343
+ role: "USER" | "ADMIN";
344
+ created_at: string;
345
+ updated_at: string;
346
+ globalFilter: {
347
+ tags?: {
348
+ id: string;
349
+ name: string;
350
+ group: {
351
+ id: string;
352
+ color: string;
353
+ isExclusive: boolean;
354
+ };
355
+ };
356
+ active?: boolean;
357
+ };
358
+ isGlobalFilterActive: boolean;
359
+ fcmToken: string[];
360
+ };
82
361
  };
83
362
  responses: never;
84
363
  parameters: never;
@@ -88,7 +367,7 @@ export interface components {
88
367
  }
89
368
  export type $defs = Record<string, never>;
90
369
  export interface operations {
91
- AuthController_registerUser: {
370
+ AuthController_loginUser: {
92
371
  parameters: {
93
372
  query?: never;
94
373
  header?: never;
@@ -97,21 +376,38 @@ export interface operations {
97
376
  };
98
377
  requestBody: {
99
378
  content: {
100
- "application/json": components["schemas"]["RegisterDto"];
379
+ "application/json": components["schemas"]["LoginDto"];
101
380
  };
102
381
  };
103
382
  responses: {
104
- 201: {
383
+ 200: {
105
384
  headers: {
106
385
  [name: string]: unknown;
107
386
  };
108
387
  content: {
109
- "application/json": components["schemas"]["RegisterResponseDto"];
388
+ "application/json": components["schemas"]["LoginResponseDto"];
110
389
  };
111
390
  };
112
391
  };
113
392
  };
114
- AuthController_loginUser: {
393
+ AuthController_refreshToken: {
394
+ parameters: {
395
+ query?: never;
396
+ header?: never;
397
+ path?: never;
398
+ cookie?: never;
399
+ };
400
+ requestBody?: never;
401
+ responses: {
402
+ 201: {
403
+ headers: {
404
+ [name: string]: unknown;
405
+ };
406
+ content?: never;
407
+ };
408
+ };
409
+ };
410
+ TagController_create: {
115
411
  parameters: {
116
412
  query?: never;
117
413
  header?: never;
@@ -120,21 +416,40 @@ export interface operations {
120
416
  };
121
417
  requestBody: {
122
418
  content: {
123
- "application/json": components["schemas"]["LoginDto"];
419
+ "application/json": components["schemas"]["CreateTagDto"];
124
420
  };
125
421
  };
422
+ responses: {
423
+ 201: {
424
+ headers: {
425
+ [name: string]: unknown;
426
+ };
427
+ content: {
428
+ "application/json": components["schemas"]["CreateTagResponseDto"];
429
+ };
430
+ };
431
+ };
432
+ };
433
+ TagController_findAll: {
434
+ parameters: {
435
+ query?: never;
436
+ header?: never;
437
+ path?: never;
438
+ cookie?: never;
439
+ };
440
+ requestBody?: never;
126
441
  responses: {
127
442
  200: {
128
443
  headers: {
129
444
  [name: string]: unknown;
130
445
  };
131
446
  content: {
132
- "application/json": components["schemas"]["LoginResponseDto"];
447
+ "application/json": components["schemas"]["FindAllTagResponseDto"];
133
448
  };
134
449
  };
135
450
  };
136
451
  };
137
- AuthController_refreshToken: {
452
+ TagController_findAllGrouped: {
138
453
  parameters: {
139
454
  query?: never;
140
455
  header?: never;
@@ -143,7 +458,63 @@ export interface operations {
143
458
  };
144
459
  requestBody?: never;
145
460
  responses: {
146
- 201: {
461
+ 200: {
462
+ headers: {
463
+ [name: string]: unknown;
464
+ };
465
+ content: {
466
+ "application/json": components["schemas"]["FindAllGroupedTagResponseDto"];
467
+ };
468
+ };
469
+ };
470
+ };
471
+ TagController_findByGroup: {
472
+ parameters: {
473
+ query?: never;
474
+ header?: never;
475
+ path: {
476
+ groupId: string;
477
+ };
478
+ cookie?: never;
479
+ };
480
+ requestBody?: never;
481
+ responses: {
482
+ 200: {
483
+ headers: {
484
+ [name: string]: unknown;
485
+ };
486
+ content: {
487
+ "application/json": components["schemas"]["FindByGroupTagResponseDto"];
488
+ };
489
+ };
490
+ 404: {
491
+ headers: {
492
+ [name: string]: unknown;
493
+ };
494
+ content?: never;
495
+ };
496
+ };
497
+ };
498
+ TagController_findById: {
499
+ parameters: {
500
+ query?: never;
501
+ header?: never;
502
+ path: {
503
+ id: string;
504
+ };
505
+ cookie?: never;
506
+ };
507
+ requestBody?: never;
508
+ responses: {
509
+ 200: {
510
+ headers: {
511
+ [name: string]: unknown;
512
+ };
513
+ content: {
514
+ "application/json": components["schemas"]["FindOneTagResponseDto"];
515
+ };
516
+ };
517
+ 404: {
147
518
  headers: {
148
519
  [name: string]: unknown;
149
520
  };
@@ -151,4 +522,146 @@ export interface operations {
151
522
  };
152
523
  };
153
524
  };
525
+ TagController_remove: {
526
+ parameters: {
527
+ query?: never;
528
+ header?: never;
529
+ path: {
530
+ id: string;
531
+ };
532
+ cookie?: never;
533
+ };
534
+ requestBody?: never;
535
+ responses: {
536
+ 404: {
537
+ headers: {
538
+ [name: string]: unknown;
539
+ };
540
+ content?: never;
541
+ };
542
+ 410: {
543
+ headers: {
544
+ [name: string]: unknown;
545
+ };
546
+ content: {
547
+ "application/json": components["schemas"]["DeleteTagResponseDto"];
548
+ };
549
+ };
550
+ };
551
+ };
552
+ TagController_update: {
553
+ parameters: {
554
+ query?: never;
555
+ header?: never;
556
+ path: {
557
+ id: string;
558
+ };
559
+ cookie?: never;
560
+ };
561
+ requestBody: {
562
+ content: {
563
+ "application/json": components["schemas"]["UpdateTagDto"];
564
+ };
565
+ };
566
+ responses: {
567
+ 200: {
568
+ headers: {
569
+ [name: string]: unknown;
570
+ };
571
+ content: {
572
+ "application/json": components["schemas"]["FindOneTagResponseDto"];
573
+ };
574
+ };
575
+ 404: {
576
+ headers: {
577
+ [name: string]: unknown;
578
+ };
579
+ content?: never;
580
+ };
581
+ };
582
+ };
583
+ AccountController_create: {
584
+ parameters: {
585
+ query?: never;
586
+ header?: never;
587
+ path?: never;
588
+ cookie?: never;
589
+ };
590
+ requestBody: {
591
+ content: {
592
+ "application/json": components["schemas"]["CreateAccountDto"];
593
+ };
594
+ };
595
+ responses: {
596
+ 201: {
597
+ headers: {
598
+ [name: string]: unknown;
599
+ };
600
+ content: {
601
+ "application/json": components["schemas"]["CreateAccountResponseDto"];
602
+ };
603
+ };
604
+ };
605
+ };
606
+ AccountController_getGlobalFilter: {
607
+ parameters: {
608
+ query?: never;
609
+ header?: never;
610
+ path?: never;
611
+ cookie?: never;
612
+ };
613
+ requestBody?: never;
614
+ responses: {
615
+ 200: {
616
+ headers: {
617
+ [name: string]: unknown;
618
+ };
619
+ content: {
620
+ "application/json": components["schemas"]["GetGlobalFilterResponseDto"];
621
+ };
622
+ };
623
+ };
624
+ };
625
+ AccountController_updateGlobalFilter: {
626
+ parameters: {
627
+ query?: never;
628
+ header?: never;
629
+ path?: never;
630
+ cookie?: never;
631
+ };
632
+ requestBody: {
633
+ content: {
634
+ "application/json": components["schemas"]["UpdateGlobalFilterDto"];
635
+ };
636
+ };
637
+ responses: {
638
+ 200: {
639
+ headers: {
640
+ [name: string]: unknown;
641
+ };
642
+ content: {
643
+ "application/json": components["schemas"]["UpdateGlobalFilterResponseDto"];
644
+ };
645
+ };
646
+ };
647
+ };
648
+ AccountController_getMe: {
649
+ parameters: {
650
+ query?: never;
651
+ header?: never;
652
+ path?: never;
653
+ cookie?: never;
654
+ };
655
+ requestBody?: never;
656
+ responses: {
657
+ 200: {
658
+ headers: {
659
+ [name: string]: unknown;
660
+ };
661
+ content: {
662
+ "application/json": components["schemas"]["GetMeResponseDto"];
663
+ };
664
+ };
665
+ };
666
+ };
154
667
  }