expo-backend-types 0.5.0 → 0.6.0-EXPO-286-EB-Location.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. package/dist/src/exports.d.ts +1 -0
  2. package/dist/src/exports.js +1 -0
  3. package/dist/src/i18n/es.d.ts +31 -0
  4. package/dist/src/i18n/es.js +31 -0
  5. package/dist/src/i18n/es.js.map +1 -1
  6. package/dist/src/location/dto/arg-city.dto.d.ts +130 -0
  7. package/dist/src/location/dto/arg-city.dto.js +33 -0
  8. package/dist/src/location/dto/find-all-countries.dto.d.ts +48 -0
  9. package/dist/src/location/dto/find-all-countries.dto.js +18 -0
  10. package/dist/src/location/dto/find-all-location.dto.d.ts +182 -0
  11. package/dist/src/location/dto/find-all-location.dto.js +32 -0
  12. package/dist/src/location/dto/find-arg-states.dto.d.ts +18 -0
  13. package/dist/src/location/dto/find-arg-states.dto.js +15 -0
  14. package/dist/src/location/dto/find-cities-by-arg-state.dto.d.ts +141 -0
  15. package/dist/src/location/dto/find-cities-by-arg-state.dto.js +20 -0
  16. package/dist/src/location/dto/location.dto.d.ts +29 -0
  17. package/dist/src/location/dto/location.dto.js +35 -0
  18. package/dist/src/location/dto/states-by-country.dto.d.ts +88 -0
  19. package/dist/src/location/dto/states-by-country.dto.js +22 -0
  20. package/dist/src/location/exports.d.ts +7 -0
  21. package/dist/src/location/exports.js +24 -0
  22. package/dist/src/profile/dto/profile.dto.d.ts +6 -12
  23. package/dist/src/profile/dto/profile.dto.js +2 -4
  24. package/dist/src/tag/dto/massive-allocation.dto.d.ts +20 -40
  25. package/dist/src/tag/dto/massive-deallocation.dto.d.ts +20 -40
  26. package/dist/types/prisma-schema/edge.js +7 -8
  27. package/dist/types/prisma-schema/index-browser.js +4 -5
  28. package/dist/types/prisma-schema/index.d.ts +148 -277
  29. package/dist/types/prisma-schema/index.js +7 -8
  30. package/dist/types/prisma-schema/package.json +1 -1
  31. package/dist/types/prisma-schema/schema.prisma +6 -8
  32. package/dist/types/prisma-schema/wasm.js +4 -5
  33. package/dist/types/schema.d.ts +246 -8
  34. 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
  }
291
371
  export type webhooks = Record<string, never>;
292
372
  export interface components {
@@ -422,10 +502,8 @@ export interface components {
422
502
  mail: string | null;
423
503
  dni: string | null;
424
504
  alternativeNames: string[] | null;
425
- birthLongitude: number | null;
426
- birthLatitude: number | null;
427
- residenceLongitude: number | null;
428
- residenceLatitude: number | null;
505
+ birthLocationId: string | null;
506
+ residenceLocationId: string | null;
429
507
  isInTrash: boolean;
430
508
  movedToTrashDate: string | null;
431
509
  created_at: string;
@@ -451,10 +529,8 @@ export interface components {
451
529
  mail: string | null;
452
530
  dni: string | null;
453
531
  alternativeNames: string[] | null;
454
- birthLongitude: number | null;
455
- birthLatitude: number | null;
456
- residenceLongitude: number | null;
457
- residenceLatitude: number | null;
532
+ birthLocationId: string | null;
533
+ residenceLocationId: string | null;
458
534
  isInTrash: boolean;
459
535
  movedToTrashDate: string | null;
460
536
  created_at: string;
@@ -671,6 +747,53 @@ export interface components {
671
747
  created_at: string;
672
748
  updated_at: string;
673
749
  };
750
+ FindAllLocationResponseDto: {
751
+ birthLocations: {
752
+ city: string;
753
+ longitude: number;
754
+ latitude: number;
755
+ _count: {
756
+ birthProfiles: number;
757
+ };
758
+ }[];
759
+ residenceLocations: {
760
+ city: string;
761
+ longitude: number;
762
+ latitude: number;
763
+ _count: {
764
+ residenceProfiles: number;
765
+ };
766
+ }[];
767
+ };
768
+ FindArgStatesResponseDto: {
769
+ states: string[];
770
+ };
771
+ FindCitiesByArgStateResponseDto: {
772
+ cities: {
773
+ id: string;
774
+ name: string;
775
+ centroid: {
776
+ lon: number;
777
+ lat: number;
778
+ };
779
+ }[];
780
+ };
781
+ FindAllCountriesResponseDto: {
782
+ countries: {
783
+ name: string;
784
+ isoCode: string;
785
+ }[];
786
+ };
787
+ FindAllStatesByCountryResponseDto: {
788
+ states: {
789
+ name: string;
790
+ isoCode: string;
791
+ countryCode: string;
792
+ countryName: string;
793
+ latitude?: string | null;
794
+ longitude?: string | null;
795
+ }[];
796
+ };
674
797
  };
675
798
  responses: never;
676
799
  parameters: never;
@@ -1267,4 +1390,119 @@ export interface operations {
1267
1390
  };
1268
1391
  };
1269
1392
  };
1393
+ LocationController_findAll: {
1394
+ parameters: {
1395
+ query?: never;
1396
+ header?: never;
1397
+ path?: never;
1398
+ cookie?: never;
1399
+ };
1400
+ requestBody?: never;
1401
+ responses: {
1402
+ 200: {
1403
+ headers: {
1404
+ [name: string]: unknown;
1405
+ };
1406
+ content: {
1407
+ "application/json": components["schemas"]["FindAllLocationResponseDto"];
1408
+ };
1409
+ };
1410
+ };
1411
+ };
1412
+ LocationController_findArgStates: {
1413
+ parameters: {
1414
+ query?: never;
1415
+ header?: never;
1416
+ path?: never;
1417
+ cookie?: never;
1418
+ };
1419
+ requestBody?: never;
1420
+ responses: {
1421
+ 200: {
1422
+ headers: {
1423
+ [name: string]: unknown;
1424
+ };
1425
+ content: {
1426
+ "application/json": components["schemas"]["FindArgStatesResponseDto"];
1427
+ };
1428
+ };
1429
+ };
1430
+ };
1431
+ LocationController_findCitiesByArgState: {
1432
+ parameters: {
1433
+ query?: never;
1434
+ header?: never;
1435
+ path: {
1436
+ argState: string;
1437
+ };
1438
+ cookie?: never;
1439
+ };
1440
+ requestBody?: never;
1441
+ responses: {
1442
+ 200: {
1443
+ headers: {
1444
+ [name: string]: unknown;
1445
+ };
1446
+ content: {
1447
+ "application/json": components["schemas"]["FindCitiesByArgStateResponseDto"];
1448
+ };
1449
+ };
1450
+ 404: {
1451
+ headers: {
1452
+ [name: string]: unknown;
1453
+ };
1454
+ content: {
1455
+ "application/json": components["schemas"]["ErrorDto"];
1456
+ };
1457
+ };
1458
+ };
1459
+ };
1460
+ LocationController_findAllCountries: {
1461
+ parameters: {
1462
+ query?: never;
1463
+ header?: never;
1464
+ path?: never;
1465
+ cookie?: never;
1466
+ };
1467
+ requestBody?: never;
1468
+ responses: {
1469
+ 200: {
1470
+ headers: {
1471
+ [name: string]: unknown;
1472
+ };
1473
+ content: {
1474
+ "application/json": components["schemas"]["FindAllCountriesResponseDto"];
1475
+ };
1476
+ };
1477
+ };
1478
+ };
1479
+ LocationController_findStatesByCountry: {
1480
+ parameters: {
1481
+ query?: never;
1482
+ header?: never;
1483
+ path: {
1484
+ countryCode: string;
1485
+ };
1486
+ cookie?: never;
1487
+ };
1488
+ requestBody?: never;
1489
+ responses: {
1490
+ 200: {
1491
+ headers: {
1492
+ [name: string]: unknown;
1493
+ };
1494
+ content: {
1495
+ "application/json": components["schemas"]["FindAllStatesByCountryResponseDto"];
1496
+ };
1497
+ };
1498
+ 404: {
1499
+ headers: {
1500
+ [name: string]: unknown;
1501
+ };
1502
+ content: {
1503
+ "application/json": components["schemas"]["ErrorDto"];
1504
+ };
1505
+ };
1506
+ };
1507
+ };
1270
1508
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-backend-types",
3
- "version": "0.5.0",
3
+ "version": "0.6.0-EXPO-286-EB-Location.1",
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
  }