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

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 (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
@@ -3,6 +3,7 @@ export * from './auth/exports';
3
3
  export * from './comment/exports';
4
4
  export * from './event-folder/exports';
5
5
  export * from './event/exports';
6
+ export * from './location/exports';
6
7
  export * from './profile/exports';
7
8
  export * from './tag-group/exports';
8
9
  export * from './tag/exports';
@@ -19,6 +19,7 @@ __exportStar(require("./auth/exports"), exports);
19
19
  __exportStar(require("./comment/exports"), exports);
20
20
  __exportStar(require("./event-folder/exports"), exports);
21
21
  __exportStar(require("./event/exports"), exports);
22
+ __exportStar(require("./location/exports"), exports);
22
23
  __exportStar(require("./profile/exports"), exports);
23
24
  __exportStar(require("./tag-group/exports"), exports);
24
25
  __exportStar(require("./tag/exports"), exports);
@@ -112,6 +112,17 @@ declare const _default: {
112
112
  readonly invalid: "La URL de la imagen de perfil no es válida";
113
113
  };
114
114
  };
115
+ readonly location: {
116
+ readonly id: {
117
+ readonly uuid: "El ID debe ser un UUID";
118
+ };
119
+ readonly latitude: {
120
+ readonly minmax: "La latitud debe estar entre -90 y 90";
121
+ };
122
+ readonly longitude: {
123
+ readonly minmax: "La longitud debe estar entre -180 y 180";
124
+ };
125
+ };
115
126
  };
116
127
  readonly route: {
117
128
  readonly auth: {
@@ -205,6 +216,26 @@ declare const _default: {
205
216
  readonly conflict: "El comentario no es resoluble";
206
217
  };
207
218
  };
219
+ readonly location: {
220
+ readonly 'find-all': {
221
+ readonly success: "Ubicaciones obtenidas";
222
+ };
223
+ readonly 'find-cities-by-arg-state': {
224
+ readonly success: "Localidades de Argentina obtenidas";
225
+ readonly 'not-found': "Provincia \"{{argState}}\" no encontrada";
226
+ };
227
+ readonly 'arg-states': {
228
+ readonly success: "Provincias de Argentina obtenidas";
229
+ };
230
+ readonly 'all-countries': {
231
+ readonly success: "Países obtenidos";
232
+ };
233
+ readonly 'states-by-country': {
234
+ readonly success: "Estados obtenidos";
235
+ readonly 'not-found-error': "No se encontraron estados para el país {{countryCode}}";
236
+ readonly 'not-found': "País no encontrado";
237
+ };
238
+ };
208
239
  };
209
240
  };
210
241
  export default _default;
@@ -114,6 +114,17 @@ exports.default = {
114
114
  invalid: 'La URL de la imagen de perfil no es válida',
115
115
  },
116
116
  },
117
+ location: {
118
+ id: {
119
+ uuid: 'El ID debe ser un UUID',
120
+ },
121
+ latitude: {
122
+ minmax: 'La latitud debe estar entre -90 y 90',
123
+ },
124
+ longitude: {
125
+ minmax: 'La longitud debe estar entre -180 y 180',
126
+ },
127
+ },
117
128
  },
118
129
  route: {
119
130
  auth: {
@@ -207,6 +218,26 @@ exports.default = {
207
218
  conflict: 'El comentario no es resoluble',
208
219
  },
209
220
  },
221
+ location: {
222
+ 'find-all': {
223
+ success: 'Ubicaciones obtenidas',
224
+ },
225
+ 'find-cities-by-arg-state': {
226
+ success: 'Localidades de Argentina obtenidas',
227
+ 'not-found': `Provincia "\{\{argState\}\}" no encontrada`,
228
+ },
229
+ 'arg-states': {
230
+ success: 'Provincias de Argentina obtenidas',
231
+ },
232
+ 'all-countries': {
233
+ success: 'Países obtenidos',
234
+ },
235
+ 'states-by-country': {
236
+ success: 'Estados obtenidos',
237
+ 'not-found-error': `No se encontraron estados para el país \{\{countryCode\}\}`,
238
+ 'not-found': 'País no encontrado',
239
+ },
240
+ },
210
241
  },
211
242
  };
212
243
  //# sourceMappingURL=es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"es.js","sourceRoot":"","sources":["../../../src/i18n/es.ts"],"names":[],"mappings":";;AAAA,kBAAe;IACb,MAAM,EAAE;QACN,KAAK,EAAE;YACL,OAAO,EAAE,QAAQ;YACjB,GAAG,EAAE,UAAU;YACf,QAAQ,EAAE,oBAAoB;YAC9B,KAAK,EAAE,QAAQ;YACf,WAAW,EAAE,oBAAoB;YACjC,OAAO,EAAE,YAAY;YACrB,OAAO,EAAE,QAAQ;YACjB,QAAQ,EAAE,WAAW;YACrB,cA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AsB;gBAC/B,WAAW,EAAE,wBAAwB;aACtC;YACD,MAAM,EAAE;gBACN,OAAO,EAAE,oBAAoB;gBAC7B,WAAW,EAAE,wBAAwB;aACtC;YACD,eAAe,EAAE;gBACf,OAAO,EAAE,qBAAqB;gBAC9B,WAAW,EAAE,kCAAkC;aAChD;YACD,oBAAoB,EAAE;gBACpB,OAAO,EAAE,+BAA+B;aACzC;YACD,sBAAsB,EAAE;gBACtB,OAAO,EAAE,kCAAkC;aAC5C;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;KACF;CACO,CAAC"}
1
+ {"version":3,"file":"es.js","sourceRoot":"","sources":["../../../src/i18n/es.ts"],"names":[],"mappings":";;AAAA,kBAAe;IACb,MAAM,EAAE;QACN,KAAK,EAAE;YACL,OAAO,EAAE,QAAQ;YACjB,GAAG,EAAE,UAAU;YACf,QAAQ,EAAE,oBAAoB;YAC9B,KAAK,EAAE,Q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AW,EAAE,0BAA0B;gBACvC,QAAQ,EAAE,+BAA+B;aAC1C;SACF;QACD,QAAQ,EAAE;YACR,UAAU,EAAE;gBACV,OAAO,EAAE,uBAAuB;aACjC;YACD,0BAA0B,EAAE;gBAC1B,OAAO,EAAE,oCAAoC;gBAC7C,WAAW,EAAE,4CAA4C;aAC1D;YACD,YAAY,EAAE;gBACZ,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,130 @@
1
+ import z from 'zod';
2
+ export type ArgCity = {
3
+ id: string;
4
+ nombre: string;
5
+ fuente: string;
6
+ provincia: {
7
+ id: string;
8
+ nombre: string;
9
+ };
10
+ departamento: {
11
+ id: string;
12
+ nombre: string;
13
+ };
14
+ municipio: {
15
+ id: string;
16
+ nombre: string;
17
+ };
18
+ localidad_censal: {
19
+ id: string;
20
+ nombre: string;
21
+ };
22
+ categoria: string;
23
+ centroide: {
24
+ lon: number;
25
+ lat: number;
26
+ };
27
+ };
28
+ export declare const argCitySchema: z.ZodObject<{
29
+ id: z.ZodString;
30
+ name: z.ZodString;
31
+ state: z.ZodObject<{
32
+ id: z.ZodString;
33
+ name: z.ZodString;
34
+ }, "strip", z.ZodTypeAny, {
35
+ id: string;
36
+ name: string;
37
+ }, {
38
+ id: string;
39
+ name: string;
40
+ }>;
41
+ department: z.ZodObject<{
42
+ id: z.ZodString;
43
+ name: z.ZodString;
44
+ }, "strip", z.ZodTypeAny, {
45
+ id: string;
46
+ name: string;
47
+ }, {
48
+ id: string;
49
+ name: string;
50
+ }>;
51
+ municipality: z.ZodObject<{
52
+ id: z.ZodString;
53
+ name: z.ZodString;
54
+ }, "strip", z.ZodTypeAny, {
55
+ id: string;
56
+ name: string;
57
+ }, {
58
+ id: string;
59
+ name: string;
60
+ }>;
61
+ censusLocality: z.ZodObject<{
62
+ id: z.ZodString;
63
+ name: z.ZodString;
64
+ }, "strip", z.ZodTypeAny, {
65
+ id: string;
66
+ name: string;
67
+ }, {
68
+ id: string;
69
+ name: string;
70
+ }>;
71
+ category: z.ZodString;
72
+ centroid: z.ZodObject<{
73
+ lon: z.ZodNumber;
74
+ lat: z.ZodNumber;
75
+ }, "strip", z.ZodTypeAny, {
76
+ lon: number;
77
+ lat: number;
78
+ }, {
79
+ lon: number;
80
+ lat: number;
81
+ }>;
82
+ }, "strip", z.ZodTypeAny, {
83
+ id: string;
84
+ name: string;
85
+ state: {
86
+ id: string;
87
+ name: string;
88
+ };
89
+ department: {
90
+ id: string;
91
+ name: string;
92
+ };
93
+ municipality: {
94
+ id: string;
95
+ name: string;
96
+ };
97
+ censusLocality: {
98
+ id: string;
99
+ name: string;
100
+ };
101
+ category: string;
102
+ centroid: {
103
+ lon: number;
104
+ lat: number;
105
+ };
106
+ }, {
107
+ id: string;
108
+ name: string;
109
+ state: {
110
+ id: string;
111
+ name: string;
112
+ };
113
+ department: {
114
+ id: string;
115
+ name: string;
116
+ };
117
+ municipality: {
118
+ id: string;
119
+ name: string;
120
+ };
121
+ censusLocality: {
122
+ id: string;
123
+ name: string;
124
+ };
125
+ category: string;
126
+ centroid: {
127
+ lon: number;
128
+ lat: number;
129
+ };
130
+ }>;
@@ -0,0 +1,33 @@
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.argCitySchema = void 0;
7
+ const zod_1 = __importDefault(require("zod"));
8
+ exports.argCitySchema = zod_1.default.object({
9
+ id: zod_1.default.string(),
10
+ name: zod_1.default.string(),
11
+ state: zod_1.default.object({
12
+ id: zod_1.default.string(),
13
+ name: zod_1.default.string(),
14
+ }),
15
+ department: zod_1.default.object({
16
+ id: zod_1.default.string(),
17
+ name: zod_1.default.string(),
18
+ }),
19
+ municipality: zod_1.default.object({
20
+ id: zod_1.default.string(),
21
+ name: zod_1.default.string(),
22
+ }),
23
+ censusLocality: zod_1.default.object({
24
+ id: zod_1.default.string(),
25
+ name: zod_1.default.string(),
26
+ }),
27
+ category: zod_1.default.string(),
28
+ centroid: zod_1.default.object({
29
+ lon: zod_1.default.number(),
30
+ lat: zod_1.default.number(),
31
+ }),
32
+ });
33
+ //# sourceMappingURL=arg-city.dto.js.map
@@ -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,182 @@
1
+ import z from 'zod';
2
+ export declare const findAllLocationResponseSchema: z.ZodObject<{
3
+ birthLocations: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
4
+ city: z.ZodString;
5
+ longitude: z.ZodNumber;
6
+ latitude: z.ZodNumber;
7
+ }, {
8
+ _count: z.ZodObject<{
9
+ birthProfiles: z.ZodNumber;
10
+ }, "strip", z.ZodTypeAny, {
11
+ birthProfiles: number;
12
+ }, {
13
+ birthProfiles: number;
14
+ }>;
15
+ }>, "strip", z.ZodTypeAny, {
16
+ latitude: number;
17
+ longitude: number;
18
+ _count: {
19
+ birthProfiles: number;
20
+ };
21
+ city: string;
22
+ }, {
23
+ latitude: number;
24
+ longitude: number;
25
+ _count: {
26
+ birthProfiles: number;
27
+ };
28
+ city: string;
29
+ }>, "many">;
30
+ residenceLocations: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
31
+ city: z.ZodString;
32
+ longitude: z.ZodNumber;
33
+ latitude: z.ZodNumber;
34
+ }, {
35
+ _count: z.ZodObject<{
36
+ residenceProfiles: z.ZodNumber;
37
+ }, "strip", z.ZodTypeAny, {
38
+ residenceProfiles: number;
39
+ }, {
40
+ residenceProfiles: number;
41
+ }>;
42
+ }>, "strip", z.ZodTypeAny, {
43
+ latitude: number;
44
+ longitude: number;
45
+ _count: {
46
+ residenceProfiles: number;
47
+ };
48
+ city: string;
49
+ }, {
50
+ latitude: number;
51
+ longitude: number;
52
+ _count: {
53
+ residenceProfiles: number;
54
+ };
55
+ city: string;
56
+ }>, "many">;
57
+ }, "strip", z.ZodTypeAny, {
58
+ birthLocations: {
59
+ latitude: number;
60
+ longitude: number;
61
+ _count: {
62
+ birthProfiles: number;
63
+ };
64
+ city: string;
65
+ }[];
66
+ residenceLocations: {
67
+ latitude: number;
68
+ longitude: number;
69
+ _count: {
70
+ residenceProfiles: number;
71
+ };
72
+ city: string;
73
+ }[];
74
+ }, {
75
+ birthLocations: {
76
+ latitude: number;
77
+ longitude: number;
78
+ _count: {
79
+ birthProfiles: number;
80
+ };
81
+ city: string;
82
+ }[];
83
+ residenceLocations: {
84
+ latitude: number;
85
+ longitude: number;
86
+ _count: {
87
+ residenceProfiles: number;
88
+ };
89
+ city: string;
90
+ }[];
91
+ }>;
92
+ declare const FindAllLocationResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
93
+ birthLocations: z.ZodArray<z.ZodObject<{
94
+ city: z.ZodString;
95
+ longitude: z.ZodNumber;
96
+ latitude: z.ZodNumber;
97
+ _count: z.ZodObject<{
98
+ birthProfiles: z.ZodNumber;
99
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
100
+ birthProfiles: number;
101
+ }, {
102
+ birthProfiles: number;
103
+ }>;
104
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
105
+ latitude: number;
106
+ longitude: number;
107
+ _count: {
108
+ birthProfiles: number;
109
+ };
110
+ city: string;
111
+ }, {
112
+ latitude: number;
113
+ longitude: number;
114
+ _count: {
115
+ birthProfiles: number;
116
+ };
117
+ city: string;
118
+ }>, "many">;
119
+ residenceLocations: z.ZodArray<z.ZodObject<{
120
+ city: z.ZodString;
121
+ longitude: z.ZodNumber;
122
+ latitude: z.ZodNumber;
123
+ _count: z.ZodObject<{
124
+ residenceProfiles: z.ZodNumber;
125
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
126
+ residenceProfiles: number;
127
+ }, {
128
+ residenceProfiles: number;
129
+ }>;
130
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
131
+ latitude: number;
132
+ longitude: number;
133
+ _count: {
134
+ residenceProfiles: number;
135
+ };
136
+ city: string;
137
+ }, {
138
+ latitude: number;
139
+ longitude: number;
140
+ _count: {
141
+ residenceProfiles: number;
142
+ };
143
+ city: string;
144
+ }>, "many">;
145
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
146
+ birthLocations: {
147
+ latitude: number;
148
+ longitude: number;
149
+ _count: {
150
+ birthProfiles: number;
151
+ };
152
+ city: string;
153
+ }[];
154
+ residenceLocations: {
155
+ latitude: number;
156
+ longitude: number;
157
+ _count: {
158
+ residenceProfiles: number;
159
+ };
160
+ city: string;
161
+ }[];
162
+ }, {
163
+ birthLocations: {
164
+ latitude: number;
165
+ longitude: number;
166
+ _count: {
167
+ birthProfiles: number;
168
+ };
169
+ city: string;
170
+ }[];
171
+ residenceLocations: {
172
+ latitude: number;
173
+ longitude: number;
174
+ _count: {
175
+ residenceProfiles: number;
176
+ };
177
+ city: string;
178
+ }[];
179
+ }>>;
180
+ export declare class FindAllLocationResponseDto extends FindAllLocationResponseDto_base {
181
+ }
182
+ export {};
@@ -0,0 +1,32 @@
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.FindAllLocationResponseDto = exports.findAllLocationResponseSchema = void 0;
7
+ const location_dto_1 = require("./location.dto");
8
+ const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
9
+ const zod_1 = __importDefault(require("zod"));
10
+ function locationPickedSchema() {
11
+ return location_dto_1.locationSchema.pick({
12
+ city: true,
13
+ longitude: true,
14
+ latitude: true,
15
+ });
16
+ }
17
+ exports.findAllLocationResponseSchema = zod_1.default.object({
18
+ birthLocations: zod_1.default.array(locationPickedSchema().merge(zod_1.default.object({
19
+ _count: zod_1.default.object({
20
+ birthProfiles: zod_1.default.number(),
21
+ }),
22
+ }))),
23
+ residenceLocations: zod_1.default.array(locationPickedSchema().merge(zod_1.default.object({
24
+ _count: zod_1.default.object({
25
+ residenceProfiles: zod_1.default.number(),
26
+ }),
27
+ }))),
28
+ });
29
+ class FindAllLocationResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.findAllLocationResponseSchema) {
30
+ }
31
+ exports.FindAllLocationResponseDto = FindAllLocationResponseDto;
32
+ //# sourceMappingURL=find-all-location.dto.js.map
@@ -0,0 +1,18 @@
1
+ import z from 'zod';
2
+ export declare const findArgStatesResponseSchema: z.ZodObject<{
3
+ states: z.ZodArray<z.ZodString, "many">;
4
+ }, "strip", z.ZodTypeAny, {
5
+ states: string[];
6
+ }, {
7
+ states: string[];
8
+ }>;
9
+ declare const FindArgStatesResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
10
+ states: z.ZodArray<z.ZodString, "many">;
11
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
12
+ states: string[];
13
+ }, {
14
+ states: string[];
15
+ }>>;
16
+ export declare class FindArgStatesResponseDto extends FindArgStatesResponseDto_base {
17
+ }
18
+ export {};
@@ -0,0 +1,15 @@
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.FindArgStatesResponseDto = exports.findArgStatesResponseSchema = 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.findArgStatesResponseSchema = zod_1.default.object({
10
+ states: zod_1.default.array(zod_1.default.string()),
11
+ });
12
+ class FindArgStatesResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.findArgStatesResponseSchema) {
13
+ }
14
+ exports.FindArgStatesResponseDto = FindArgStatesResponseDto;
15
+ //# sourceMappingURL=find-arg-states.dto.js.map