expo-backend-types 0.6.0 → 0.7.0-EXPO-287-EB-CarpetaEvento.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. package/dist/src/event/dto/event.dto.d.ts +9 -9
  2. package/dist/src/event/dto/event.dto.js +5 -7
  3. package/dist/src/event-folder/dto/create-event-folder.dto.d.ts +66 -0
  4. package/dist/src/event-folder/dto/create-event-folder.dto.js +17 -0
  5. package/dist/src/event-folder/dto/delete-event-folder.dto.d.ts +41 -0
  6. package/dist/src/event-folder/dto/delete-event-folder.dto.js +10 -0
  7. package/dist/src/event-folder/dto/event-folder.dto.js +2 -2
  8. package/dist/src/event-folder/dto/get-all-event-folder.dto.d.ts +243 -0
  9. package/dist/src/event-folder/dto/get-all-event-folder.dto.js +19 -0
  10. package/dist/src/event-folder/dto/get-by-id-event-folder.dto.d.ts +159 -0
  11. package/dist/src/event-folder/dto/get-by-id-event-folder.dto.js +17 -0
  12. package/dist/src/event-folder/dto/update-event-folder.dto.d.ts +63 -0
  13. package/dist/src/event-folder/dto/update-event-folder.dto.js +19 -0
  14. package/dist/src/event-folder/exports.d.ts +5 -0
  15. package/dist/src/event-folder/exports.js +5 -0
  16. package/dist/src/exports.d.ts +1 -0
  17. package/dist/src/exports.js +1 -0
  18. package/dist/src/i18n/es.d.ts +54 -1
  19. package/dist/src/i18n/es.js +54 -1
  20. package/dist/src/i18n/es.js.map +1 -1
  21. package/dist/src/location/dto/arg-city.dto.d.ts +130 -0
  22. package/dist/src/location/dto/arg-city.dto.js +33 -0
  23. package/dist/src/location/dto/find-all-countries.dto.d.ts +48 -0
  24. package/dist/src/location/dto/find-all-countries.dto.js +18 -0
  25. package/dist/src/location/dto/find-all-location.dto.d.ts +182 -0
  26. package/dist/src/location/dto/find-all-location.dto.js +32 -0
  27. package/dist/src/location/dto/find-arg-states.dto.d.ts +18 -0
  28. package/dist/src/location/dto/find-arg-states.dto.js +15 -0
  29. package/dist/src/location/dto/find-cities-by-arg-state.dto.d.ts +141 -0
  30. package/dist/src/location/dto/find-cities-by-arg-state.dto.js +20 -0
  31. package/dist/src/location/dto/location.dto.d.ts +29 -0
  32. package/dist/src/location/dto/location.dto.js +35 -0
  33. package/dist/src/location/dto/states-by-country.dto.d.ts +88 -0
  34. package/dist/src/location/dto/states-by-country.dto.js +22 -0
  35. package/dist/src/location/exports.d.ts +7 -0
  36. package/dist/src/location/exports.js +24 -0
  37. package/dist/src/profile/dto/profile.dto.d.ts +6 -12
  38. package/dist/src/profile/dto/profile.dto.js +2 -4
  39. package/dist/src/tag/dto/massive-allocation.dto.d.ts +20 -40
  40. package/dist/src/tag/dto/massive-deallocation.dto.d.ts +20 -40
  41. package/dist/types/index.d.ts +2 -2
  42. package/dist/types/index.js +2 -2
  43. package/dist/types/index.js.map +1 -1
  44. package/dist/types/prisma-schema/edge.js +7 -8
  45. package/dist/types/prisma-schema/index-browser.js +4 -5
  46. package/dist/types/prisma-schema/index.d.ts +148 -277
  47. package/dist/types/prisma-schema/index.js +7 -8
  48. package/dist/types/prisma-schema/package.json +1 -1
  49. package/dist/types/prisma-schema/schema.prisma +6 -8
  50. package/dist/types/prisma-schema/wasm.js +4 -5
  51. package/dist/types/schema.d.ts +246 -8
  52. package/package.json +2 -4
@@ -287,6 +287,86 @@ export interface paths {
287
287
  patch: operations["CommentController_toggleSolveComment"];
288
288
  trace?: never;
289
289
  };
290
+ "/location/all": {
291
+ parameters: {
292
+ query?: never;
293
+ header?: never;
294
+ path?: never;
295
+ cookie?: never;
296
+ };
297
+ get: operations["LocationController_findAll"];
298
+ put?: never;
299
+ post?: never;
300
+ delete?: never;
301
+ options?: never;
302
+ head?: never;
303
+ patch?: never;
304
+ trace?: never;
305
+ };
306
+ "/location/arg-states": {
307
+ parameters: {
308
+ query?: never;
309
+ header?: never;
310
+ path?: never;
311
+ cookie?: never;
312
+ };
313
+ get: operations["LocationController_findArgStates"];
314
+ put?: never;
315
+ post?: never;
316
+ delete?: never;
317
+ options?: never;
318
+ head?: never;
319
+ patch?: never;
320
+ trace?: never;
321
+ };
322
+ "/location/find-cities-by-arg-state/{argState}": {
323
+ parameters: {
324
+ query?: never;
325
+ header?: never;
326
+ path?: never;
327
+ cookie?: never;
328
+ };
329
+ get: operations["LocationController_findCitiesByArgState"];
330
+ put?: never;
331
+ post?: never;
332
+ delete?: never;
333
+ options?: never;
334
+ head?: never;
335
+ patch?: never;
336
+ trace?: never;
337
+ };
338
+ "/location/all-countries": {
339
+ parameters: {
340
+ query?: never;
341
+ header?: never;
342
+ path?: never;
343
+ cookie?: never;
344
+ };
345
+ get: operations["LocationController_findAllCountries"];
346
+ put?: never;
347
+ post?: never;
348
+ delete?: never;
349
+ options?: never;
350
+ head?: never;
351
+ patch?: never;
352
+ trace?: never;
353
+ };
354
+ "/location/states-by-country/{countryCode}": {
355
+ parameters: {
356
+ query?: never;
357
+ header?: never;
358
+ path?: never;
359
+ cookie?: never;
360
+ };
361
+ get: operations["LocationController_findStatesByCountry"];
362
+ put?: never;
363
+ post?: never;
364
+ delete?: never;
365
+ options?: never;
366
+ head?: never;
367
+ patch?: never;
368
+ trace?: never;
369
+ };
290
370
  "/canned-response/create": {
291
371
  parameters: {
292
372
  query?: never;
@@ -486,10 +566,8 @@ export interface components {
486
566
  mail: string | null;
487
567
  dni: string | null;
488
568
  alternativeNames: string[] | null;
489
- birthLongitude: number | null;
490
- birthLatitude: number | null;
491
- residenceLongitude: number | null;
492
- residenceLatitude: number | null;
569
+ birthLocationId: string | null;
570
+ residenceLocationId: string | null;
493
571
  isInTrash: boolean;
494
572
  movedToTrashDate: string | null;
495
573
  created_at: string;
@@ -515,10 +593,8 @@ export interface components {
515
593
  mail: string | null;
516
594
  dni: string | null;
517
595
  alternativeNames: string[] | null;
518
- birthLongitude: number | null;
519
- birthLatitude: number | null;
520
- residenceLongitude: number | null;
521
- residenceLatitude: number | null;
596
+ birthLocationId: string | null;
597
+ residenceLocationId: string | null;
522
598
  isInTrash: boolean;
523
599
  movedToTrashDate: string | null;
524
600
  created_at: string;
@@ -735,6 +811,53 @@ export interface components {
735
811
  created_at: string;
736
812
  updated_at: string;
737
813
  };
814
+ FindAllLocationResponseDto: {
815
+ birthLocations: {
816
+ city: string;
817
+ longitude: number;
818
+ latitude: number;
819
+ _count: {
820
+ birthProfiles: number;
821
+ };
822
+ }[];
823
+ residenceLocations: {
824
+ city: string;
825
+ longitude: number;
826
+ latitude: number;
827
+ _count: {
828
+ residenceProfiles: number;
829
+ };
830
+ }[];
831
+ };
832
+ FindArgStatesResponseDto: {
833
+ states: string[];
834
+ };
835
+ FindCitiesByArgStateResponseDto: {
836
+ cities: {
837
+ id: string;
838
+ name: string;
839
+ centroid: {
840
+ lon: number;
841
+ lat: number;
842
+ };
843
+ }[];
844
+ };
845
+ FindAllCountriesResponseDto: {
846
+ countries: {
847
+ name: string;
848
+ isoCode: string;
849
+ }[];
850
+ };
851
+ FindAllStatesByCountryResponseDto: {
852
+ states: {
853
+ name: string;
854
+ isoCode: string;
855
+ countryCode: string;
856
+ countryName: string;
857
+ latitude?: string | null;
858
+ longitude?: string | null;
859
+ }[];
860
+ };
738
861
  CreateCannedResponseDto: {
739
862
  name: string;
740
863
  content: string;
@@ -1373,6 +1496,121 @@ export interface operations {
1373
1496
  };
1374
1497
  };
1375
1498
  };
1499
+ LocationController_findAll: {
1500
+ parameters: {
1501
+ query?: never;
1502
+ header?: never;
1503
+ path?: never;
1504
+ cookie?: never;
1505
+ };
1506
+ requestBody?: never;
1507
+ responses: {
1508
+ 200: {
1509
+ headers: {
1510
+ [name: string]: unknown;
1511
+ };
1512
+ content: {
1513
+ "application/json": components["schemas"]["FindAllLocationResponseDto"];
1514
+ };
1515
+ };
1516
+ };
1517
+ };
1518
+ LocationController_findArgStates: {
1519
+ parameters: {
1520
+ query?: never;
1521
+ header?: never;
1522
+ path?: never;
1523
+ cookie?: never;
1524
+ };
1525
+ requestBody?: never;
1526
+ responses: {
1527
+ 200: {
1528
+ headers: {
1529
+ [name: string]: unknown;
1530
+ };
1531
+ content: {
1532
+ "application/json": components["schemas"]["FindArgStatesResponseDto"];
1533
+ };
1534
+ };
1535
+ };
1536
+ };
1537
+ LocationController_findCitiesByArgState: {
1538
+ parameters: {
1539
+ query?: never;
1540
+ header?: never;
1541
+ path: {
1542
+ argState: string;
1543
+ };
1544
+ cookie?: never;
1545
+ };
1546
+ requestBody?: never;
1547
+ responses: {
1548
+ 200: {
1549
+ headers: {
1550
+ [name: string]: unknown;
1551
+ };
1552
+ content: {
1553
+ "application/json": components["schemas"]["FindCitiesByArgStateResponseDto"];
1554
+ };
1555
+ };
1556
+ 404: {
1557
+ headers: {
1558
+ [name: string]: unknown;
1559
+ };
1560
+ content: {
1561
+ "application/json": components["schemas"]["ErrorDto"];
1562
+ };
1563
+ };
1564
+ };
1565
+ };
1566
+ LocationController_findAllCountries: {
1567
+ parameters: {
1568
+ query?: never;
1569
+ header?: never;
1570
+ path?: never;
1571
+ cookie?: never;
1572
+ };
1573
+ requestBody?: never;
1574
+ responses: {
1575
+ 200: {
1576
+ headers: {
1577
+ [name: string]: unknown;
1578
+ };
1579
+ content: {
1580
+ "application/json": components["schemas"]["FindAllCountriesResponseDto"];
1581
+ };
1582
+ };
1583
+ };
1584
+ };
1585
+ LocationController_findStatesByCountry: {
1586
+ parameters: {
1587
+ query?: never;
1588
+ header?: never;
1589
+ path: {
1590
+ countryCode: string;
1591
+ };
1592
+ cookie?: never;
1593
+ };
1594
+ requestBody?: never;
1595
+ responses: {
1596
+ 200: {
1597
+ headers: {
1598
+ [name: string]: unknown;
1599
+ };
1600
+ content: {
1601
+ "application/json": components["schemas"]["FindAllStatesByCountryResponseDto"];
1602
+ };
1603
+ };
1604
+ 404: {
1605
+ headers: {
1606
+ [name: string]: unknown;
1607
+ };
1608
+ content: {
1609
+ "application/json": components["schemas"]["ErrorDto"];
1610
+ };
1611
+ };
1612
+ };
1613
+ };
1376
1614
  CannedResponseController_createCannedResponse: {
1377
1615
  parameters: {
1378
1616
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-backend-types",
3
- "version": "0.6.0",
3
+ "version": "0.7.0-EXPO-287-EB-CarpetaEvento.2",
4
4
  "description": "",
5
5
  "author": "Expo",
6
6
  "private": false,
@@ -48,6 +48,7 @@
48
48
  "bcrypt": "^5.1.1",
49
49
  "class-transformer": "^0.5.1",
50
50
  "class-validator": "^0.14.1",
51
+ "country-state-city": "^3.2.1",
51
52
  "i18n-js": "^4.4.3",
52
53
  "json-to-pretty-yaml": "^1.2.2",
53
54
  "openapi3-ts": "^4.4.0",
@@ -102,9 +103,6 @@
102
103
  "**/*.{js,ts,jsx,tsx}": [
103
104
  "prettier --write",
104
105
  "eslint --fix"
105
- ],
106
- "*.json": [
107
- "prettier --write"
108
106
  ]
109
107
  }
110
108
  }