expo-backend-types 0.5.0-EXPO-286-EB-Location.3 → 0.5.0-EXPO-286-EB-Location.4
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/src/i18n/es.d.ts +8 -0
- package/dist/src/i18n/es.js +8 -0
- package/dist/src/i18n/es.js.map +1 -1
- package/dist/src/location/dto/find-all-countries.dto.d.ts +48 -0
- package/dist/src/location/dto/find-all-countries.dto.js +18 -0
- package/dist/src/location/dto/states-by-country.dto.d.ts +88 -0
- package/dist/src/location/dto/states-by-country.dto.js +22 -0
- package/dist/src/location/exports.d.ts +2 -0
- package/dist/src/location/exports.js +2 -0
- package/dist/types/schema.d.ts +96 -0
- package/package.json +2 -1
package/dist/src/i18n/es.d.ts
CHANGED
@@ -226,6 +226,14 @@ declare const _default: {
|
|
226
226
|
readonly provinces: {
|
227
227
|
readonly success: "Provincias de Argentina obtenidas";
|
228
228
|
};
|
229
|
+
readonly 'all-countries': {
|
230
|
+
readonly success: "Países obtenidos";
|
231
|
+
};
|
232
|
+
readonly 'states-by-country': {
|
233
|
+
readonly success: "Estados obtenidos";
|
234
|
+
readonly 'not-found-error': "No se encontraron estados para el país {{countryCode}}";
|
235
|
+
readonly 'not-found': "País no encontrado";
|
236
|
+
};
|
229
237
|
};
|
230
238
|
};
|
231
239
|
};
|
package/dist/src/i18n/es.js
CHANGED
@@ -228,6 +228,14 @@ exports.default = {
|
|
228
228
|
provinces: {
|
229
229
|
success: 'Provincias de Argentina obtenidas',
|
230
230
|
},
|
231
|
+
'all-countries': {
|
232
|
+
success: 'Países obtenidos',
|
233
|
+
},
|
234
|
+
'states-by-country': {
|
235
|
+
success: 'Estados obtenidos',
|
236
|
+
'not-found-error': `No se encontraron estados para el país \{\{countryCode\}\}`,
|
237
|
+
'not-found': 'País no encontrado',
|
238
|
+
},
|
231
239
|
},
|
232
240
|
},
|
233
241
|
};
|
package/dist/src/i18n/es.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"es.js","sourceRoot":"","sources":["../../../src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SACF;QACD,WAAW,EAAE;YACX,MAAM,EAAE;gBACN,OAAO,EAAE,qCAAqC;aAC/C;YACD,UAAU,EAAE;gBACV,OAAO,EAAE,+BAA+B;aACzC;YACD,oBAAoB,EAAE;gBACpB,OAAO,EAAE,qBAAqB;aAC/B;YACD,UAAU,EAAE;gBACV,OAAO,EAAE,6BAA6B;gBACtC,WAAW,EAAE,kCAAkC;aAChD;YACD,MAAM,EAAE;gBACN,OAAO,EAAE,gCAAgC;gBACzC,WAAW,EAAE,kCAAkC;aAChD;YACD,MAAM,EAAE;gBACN,OAAO,EAAE,8BAA8B;gBACvC,WAAW,EAAE,kCAAkC;aAChD;SACF;QACD,OAAO,EAAE;YACP,MAAM,EAAE;gBACN,OAAO,EAAE,6BAA6B;gBACtC,WAAW,EAAE,sBAAsB;aACpC;YACD,gBAAgB,EAAE;gBAChB,OAAO,EAAE,uBAAuB;gBAChC,WAAW,EAAE,sBAAsB;aACpC;YACD,cAAc,EAAE;gBACd,OAAO,EAAE,kDAAkD;gBAC3D,WAAW,EAAE,0BAA0B;gBACvC,QAAQ,EAAE,+BAA+B;aAC1C;SACF;QACD,QAAQ,EAAE;YACR,UAAU,EAAE;gBACV,OAAO,EAAE,uBAAuB;aACjC;YACD,yBAAyB,EAAE;gBACzB,OAAO,EAAE,oCAAoC;aAC9C;YACD,SAAS,EAAE;gBACT,OAAO,EAAE,mCAAmC;aAC7C;YACD,eAAe,EAAE;gBACf,OAAO,EAAE,kBAAkB;aAC5B;YACD,mBAAmB,EAAE;gBACnB,OAAO,EAAE,mBAAmB;gBAC5B,iBAAiB,EAAE,4DAA4D;gBAC/E,WAAW,EAAE,oBAAoB;aAClC;SACF;KACF;CACO,CAAC"}
|
@@ -0,0 +1,48 @@
|
|
1
|
+
import z from 'zod';
|
2
|
+
export declare const findAllCountriesResponseSchema: z.ZodObject<{
|
3
|
+
countries: z.ZodArray<z.ZodObject<{
|
4
|
+
name: z.ZodString;
|
5
|
+
isoCode: z.ZodString;
|
6
|
+
}, "strip", z.ZodTypeAny, {
|
7
|
+
name: string;
|
8
|
+
isoCode: string;
|
9
|
+
}, {
|
10
|
+
name: string;
|
11
|
+
isoCode: string;
|
12
|
+
}>, "many">;
|
13
|
+
}, "strip", z.ZodTypeAny, {
|
14
|
+
countries: {
|
15
|
+
name: string;
|
16
|
+
isoCode: string;
|
17
|
+
}[];
|
18
|
+
}, {
|
19
|
+
countries: {
|
20
|
+
name: string;
|
21
|
+
isoCode: string;
|
22
|
+
}[];
|
23
|
+
}>;
|
24
|
+
declare const FindAllCountriesResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
|
25
|
+
countries: z.ZodArray<z.ZodObject<{
|
26
|
+
name: z.ZodString;
|
27
|
+
isoCode: z.ZodString;
|
28
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
29
|
+
name: string;
|
30
|
+
isoCode: string;
|
31
|
+
}, {
|
32
|
+
name: string;
|
33
|
+
isoCode: string;
|
34
|
+
}>, "many">;
|
35
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
36
|
+
countries: {
|
37
|
+
name: string;
|
38
|
+
isoCode: string;
|
39
|
+
}[];
|
40
|
+
}, {
|
41
|
+
countries: {
|
42
|
+
name: string;
|
43
|
+
isoCode: string;
|
44
|
+
}[];
|
45
|
+
}>>;
|
46
|
+
export declare class FindAllCountriesResponseDto extends FindAllCountriesResponseDto_base {
|
47
|
+
}
|
48
|
+
export {};
|
@@ -0,0 +1,18 @@
|
|
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.FindAllCountriesResponseDto = exports.findAllCountriesResponseSchema = void 0;
|
7
|
+
const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
|
8
|
+
const zod_1 = __importDefault(require("zod"));
|
9
|
+
exports.findAllCountriesResponseSchema = zod_1.default.object({
|
10
|
+
countries: zod_1.default.array(zod_1.default.object({
|
11
|
+
name: zod_1.default.string(),
|
12
|
+
isoCode: zod_1.default.string(),
|
13
|
+
})),
|
14
|
+
});
|
15
|
+
class FindAllCountriesResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.findAllCountriesResponseSchema) {
|
16
|
+
}
|
17
|
+
exports.FindAllCountriesResponseDto = FindAllCountriesResponseDto;
|
18
|
+
//# sourceMappingURL=find-all-countries.dto.js.map
|
@@ -0,0 +1,88 @@
|
|
1
|
+
import z from 'zod';
|
2
|
+
export declare const findAllStatesByCountryResponseSchema: z.ZodObject<{
|
3
|
+
states: z.ZodArray<z.ZodObject<{
|
4
|
+
name: z.ZodString;
|
5
|
+
isoCode: z.ZodString;
|
6
|
+
countryCode: z.ZodString;
|
7
|
+
countryName: z.ZodString;
|
8
|
+
latitude: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
9
|
+
longitude: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
10
|
+
}, "strip", z.ZodTypeAny, {
|
11
|
+
name: string;
|
12
|
+
countryCode: string;
|
13
|
+
isoCode: string;
|
14
|
+
countryName: string;
|
15
|
+
latitude?: string | null | undefined;
|
16
|
+
longitude?: string | null | undefined;
|
17
|
+
}, {
|
18
|
+
name: string;
|
19
|
+
countryCode: string;
|
20
|
+
isoCode: string;
|
21
|
+
countryName: string;
|
22
|
+
latitude?: string | null | undefined;
|
23
|
+
longitude?: string | null | undefined;
|
24
|
+
}>, "many">;
|
25
|
+
}, "strip", z.ZodTypeAny, {
|
26
|
+
states: {
|
27
|
+
name: string;
|
28
|
+
countryCode: string;
|
29
|
+
isoCode: string;
|
30
|
+
countryName: string;
|
31
|
+
latitude?: string | null | undefined;
|
32
|
+
longitude?: string | null | undefined;
|
33
|
+
}[];
|
34
|
+
}, {
|
35
|
+
states: {
|
36
|
+
name: string;
|
37
|
+
countryCode: string;
|
38
|
+
isoCode: string;
|
39
|
+
countryName: string;
|
40
|
+
latitude?: string | null | undefined;
|
41
|
+
longitude?: string | null | undefined;
|
42
|
+
}[];
|
43
|
+
}>;
|
44
|
+
declare const FindAllStatesByCountryResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
|
45
|
+
states: z.ZodArray<z.ZodObject<{
|
46
|
+
name: z.ZodString;
|
47
|
+
isoCode: z.ZodString;
|
48
|
+
countryCode: z.ZodString;
|
49
|
+
countryName: z.ZodString;
|
50
|
+
latitude: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
51
|
+
longitude: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
52
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
53
|
+
name: string;
|
54
|
+
countryCode: string;
|
55
|
+
isoCode: string;
|
56
|
+
countryName: string;
|
57
|
+
latitude?: string | null | undefined;
|
58
|
+
longitude?: string | null | undefined;
|
59
|
+
}, {
|
60
|
+
name: string;
|
61
|
+
countryCode: string;
|
62
|
+
isoCode: string;
|
63
|
+
countryName: string;
|
64
|
+
latitude?: string | null | undefined;
|
65
|
+
longitude?: string | null | undefined;
|
66
|
+
}>, "many">;
|
67
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
68
|
+
states: {
|
69
|
+
name: string;
|
70
|
+
countryCode: string;
|
71
|
+
isoCode: string;
|
72
|
+
countryName: string;
|
73
|
+
latitude?: string | null | undefined;
|
74
|
+
longitude?: string | null | undefined;
|
75
|
+
}[];
|
76
|
+
}, {
|
77
|
+
states: {
|
78
|
+
name: string;
|
79
|
+
countryCode: string;
|
80
|
+
isoCode: string;
|
81
|
+
countryName: string;
|
82
|
+
latitude?: string | null | undefined;
|
83
|
+
longitude?: string | null | undefined;
|
84
|
+
}[];
|
85
|
+
}>>;
|
86
|
+
export declare class FindAllStatesByCountryResponseDto extends FindAllStatesByCountryResponseDto_base {
|
87
|
+
}
|
88
|
+
export {};
|
@@ -0,0 +1,22 @@
|
|
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.FindAllStatesByCountryResponseDto = exports.findAllStatesByCountryResponseSchema = void 0;
|
7
|
+
const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
|
8
|
+
const zod_1 = __importDefault(require("zod"));
|
9
|
+
exports.findAllStatesByCountryResponseSchema = zod_1.default.object({
|
10
|
+
states: zod_1.default.array(zod_1.default.object({
|
11
|
+
name: zod_1.default.string(),
|
12
|
+
isoCode: zod_1.default.string(),
|
13
|
+
countryCode: zod_1.default.string(),
|
14
|
+
countryName: zod_1.default.string(),
|
15
|
+
latitude: zod_1.default.string().nullish(),
|
16
|
+
longitude: zod_1.default.string().nullish(),
|
17
|
+
})),
|
18
|
+
});
|
19
|
+
class FindAllStatesByCountryResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.findAllStatesByCountryResponseSchema) {
|
20
|
+
}
|
21
|
+
exports.FindAllStatesByCountryResponseDto = FindAllStatesByCountryResponseDto;
|
22
|
+
//# sourceMappingURL=states-by-country.dto.js.map
|
@@ -1,5 +1,7 @@
|
|
1
1
|
export * from './dto/arg-city.dto';
|
2
|
+
export * from './dto/find-all-countries.dto';
|
2
3
|
export * from './dto/find-all-location.dto';
|
3
4
|
export * from './dto/find-cities-by-province.dto';
|
4
5
|
export * from './dto/find-provinces.dto';
|
5
6
|
export * from './dto/location.dto';
|
7
|
+
export * from './dto/states-by-country.dto';
|
@@ -15,8 +15,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
15
|
};
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
17
|
__exportStar(require("./dto/arg-city.dto"), exports);
|
18
|
+
__exportStar(require("./dto/find-all-countries.dto"), exports);
|
18
19
|
__exportStar(require("./dto/find-all-location.dto"), exports);
|
19
20
|
__exportStar(require("./dto/find-cities-by-province.dto"), exports);
|
20
21
|
__exportStar(require("./dto/find-provinces.dto"), exports);
|
21
22
|
__exportStar(require("./dto/location.dto"), exports);
|
23
|
+
__exportStar(require("./dto/states-by-country.dto"), exports);
|
22
24
|
//# sourceMappingURL=exports.js.map
|
package/dist/types/schema.d.ts
CHANGED
@@ -335,6 +335,38 @@ export interface paths {
|
|
335
335
|
patch?: never;
|
336
336
|
trace?: never;
|
337
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/{country}": {
|
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
|
+
};
|
338
370
|
}
|
339
371
|
export type webhooks = Record<string, never>;
|
340
372
|
export interface components {
|
@@ -746,6 +778,22 @@ export interface components {
|
|
746
778
|
};
|
747
779
|
}[];
|
748
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
|
+
};
|
749
797
|
};
|
750
798
|
responses: never;
|
751
799
|
parameters: never;
|
@@ -1401,4 +1449,52 @@ export interface operations {
|
|
1401
1449
|
};
|
1402
1450
|
};
|
1403
1451
|
};
|
1452
|
+
LocationController_findAllCountries: {
|
1453
|
+
parameters: {
|
1454
|
+
query?: never;
|
1455
|
+
header?: never;
|
1456
|
+
path?: never;
|
1457
|
+
cookie?: never;
|
1458
|
+
};
|
1459
|
+
requestBody?: never;
|
1460
|
+
responses: {
|
1461
|
+
200: {
|
1462
|
+
headers: {
|
1463
|
+
[name: string]: unknown;
|
1464
|
+
};
|
1465
|
+
content: {
|
1466
|
+
"application/json": components["schemas"]["FindAllCountriesResponseDto"];
|
1467
|
+
};
|
1468
|
+
};
|
1469
|
+
};
|
1470
|
+
};
|
1471
|
+
LocationController_findStatesByCountry: {
|
1472
|
+
parameters: {
|
1473
|
+
query?: never;
|
1474
|
+
header?: never;
|
1475
|
+
path: {
|
1476
|
+
country: string;
|
1477
|
+
};
|
1478
|
+
cookie?: never;
|
1479
|
+
};
|
1480
|
+
requestBody?: never;
|
1481
|
+
responses: {
|
1482
|
+
200: {
|
1483
|
+
headers: {
|
1484
|
+
[name: string]: unknown;
|
1485
|
+
};
|
1486
|
+
content: {
|
1487
|
+
"application/json": components["schemas"]["FindAllStatesByCountryResponseDto"];
|
1488
|
+
};
|
1489
|
+
};
|
1490
|
+
404: {
|
1491
|
+
headers: {
|
1492
|
+
[name: string]: unknown;
|
1493
|
+
};
|
1494
|
+
content: {
|
1495
|
+
"application/json": components["schemas"]["ErrorDto"];
|
1496
|
+
};
|
1497
|
+
};
|
1498
|
+
};
|
1499
|
+
};
|
1404
1500
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "expo-backend-types",
|
3
|
-
"version": "0.5.0-EXPO-286-EB-Location.
|
3
|
+
"version": "0.5.0-EXPO-286-EB-Location.4",
|
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
|
"fs": "^0.0.1-security",
|
52
53
|
"i18n-js": "^4.4.3",
|
53
54
|
"json-to-pretty-yaml": "^1.2.2",
|