expo-backend-types 0.6.0-EXPO-287-EB-CarpetaEvento.1 → 0.6.0-EXPO-286-EB-Location.2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/src/comment/dto/comment.dto.d.ts +3 -3
- package/dist/src/comment/dto/create-comment.dto.d.ts +3 -3
- package/dist/src/comment/dto/get-by-profile-comment.dto.d.ts +5 -5
- package/dist/src/comment/dto/toggle-solve-comment.dto.d.ts +3 -3
- package/dist/src/exports.d.ts +1 -1
- package/dist/src/exports.js +1 -1
- package/dist/src/i18n/es.d.ts +20 -20
- package/dist/src/i18n/es.js +20 -20
- package/dist/src/i18n/es.js.map +1 -1
- package/dist/src/location/dto/arg-city.dto.d.ts +130 -0
- package/dist/src/location/dto/arg-city.dto.js +33 -0
- 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/find-all-location.dto.d.ts +182 -0
- package/dist/src/location/dto/find-all-location.dto.js +32 -0
- package/dist/src/location/dto/find-arg-states.dto.d.ts +18 -0
- package/dist/src/location/dto/find-arg-states.dto.js +15 -0
- package/dist/src/location/dto/find-cities-by-arg-state.dto.d.ts +141 -0
- package/dist/src/location/dto/find-cities-by-arg-state.dto.js +20 -0
- package/dist/src/location/dto/location.dto.d.ts +29 -0
- package/dist/src/location/dto/location.dto.js +35 -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 +7 -0
- package/dist/src/{canned-response → location}/exports.js +7 -5
- package/dist/src/profile/dto/profile.dto.d.ts +6 -12
- package/dist/src/profile/dto/profile.dto.js +2 -4
- package/dist/src/shared/dto-modification/zod-without-dates.d.ts +2 -2
- package/dist/src/shared/dto-modification/zod-without-dates.js.map +1 -1
- package/dist/src/tag/dto/massive-allocation.dto.d.ts +30 -50
- package/dist/src/tag/dto/massive-deallocation.dto.d.ts +30 -50
- package/dist/types/prisma-schema/edge.js +7 -8
- package/dist/types/prisma-schema/index-browser.js +4 -5
- package/dist/types/prisma-schema/index.d.ts +148 -277
- package/dist/types/prisma-schema/index.js +7 -8
- package/dist/types/prisma-schema/package.json +1 -1
- package/dist/types/prisma-schema/schema.prisma +6 -8
- package/dist/types/prisma-schema/wasm.js +4 -5
- package/dist/types/schema.d.ts +104 -84
- package/package.json +2 -4
- package/dist/src/canned-response/dto/canned-response.dto.d.ts +0 -42
- package/dist/src/canned-response/dto/canned-response.dto.js +0 -23
- package/dist/src/canned-response/dto/create-canned-response.dto.d.ts +0 -66
- package/dist/src/canned-response/dto/create-canned-response.dto.js +0 -17
- package/dist/src/canned-response/dto/delete-canned-response.dto.d.ts +0 -41
- package/dist/src/canned-response/dto/delete-canned-response.dto.js +0 -10
- package/dist/src/canned-response/dto/get-all-canned-response.dto.d.ts +0 -78
- package/dist/src/canned-response/dto/get-all-canned-response.dto.js +0 -16
- package/dist/src/canned-response/dto/update-canned-response.dto.d.ts +0 -66
- package/dist/src/canned-response/dto/update-canned-response.dto.js +0 -17
- package/dist/src/canned-response/exports.d.ts +0 -5
@@ -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
|
@@ -0,0 +1,141 @@
|
|
1
|
+
import z from 'zod';
|
2
|
+
export declare const findCitiesByArgStateResponseSchema: z.ZodObject<{
|
3
|
+
cities: z.ZodArray<z.ZodObject<Pick<{
|
4
|
+
id: z.ZodString;
|
5
|
+
name: z.ZodString;
|
6
|
+
state: z.ZodObject<{
|
7
|
+
id: z.ZodString;
|
8
|
+
name: z.ZodString;
|
9
|
+
}, "strip", z.ZodTypeAny, {
|
10
|
+
id: string;
|
11
|
+
name: string;
|
12
|
+
}, {
|
13
|
+
id: string;
|
14
|
+
name: string;
|
15
|
+
}>;
|
16
|
+
department: z.ZodObject<{
|
17
|
+
id: z.ZodString;
|
18
|
+
name: z.ZodString;
|
19
|
+
}, "strip", z.ZodTypeAny, {
|
20
|
+
id: string;
|
21
|
+
name: string;
|
22
|
+
}, {
|
23
|
+
id: string;
|
24
|
+
name: string;
|
25
|
+
}>;
|
26
|
+
municipality: z.ZodObject<{
|
27
|
+
id: z.ZodString;
|
28
|
+
name: z.ZodString;
|
29
|
+
}, "strip", z.ZodTypeAny, {
|
30
|
+
id: string;
|
31
|
+
name: string;
|
32
|
+
}, {
|
33
|
+
id: string;
|
34
|
+
name: string;
|
35
|
+
}>;
|
36
|
+
censusLocality: z.ZodObject<{
|
37
|
+
id: z.ZodString;
|
38
|
+
name: z.ZodString;
|
39
|
+
}, "strip", z.ZodTypeAny, {
|
40
|
+
id: string;
|
41
|
+
name: string;
|
42
|
+
}, {
|
43
|
+
id: string;
|
44
|
+
name: string;
|
45
|
+
}>;
|
46
|
+
category: z.ZodString;
|
47
|
+
centroid: z.ZodObject<{
|
48
|
+
lon: z.ZodNumber;
|
49
|
+
lat: z.ZodNumber;
|
50
|
+
}, "strip", z.ZodTypeAny, {
|
51
|
+
lon: number;
|
52
|
+
lat: number;
|
53
|
+
}, {
|
54
|
+
lon: number;
|
55
|
+
lat: number;
|
56
|
+
}>;
|
57
|
+
}, "id" | "name" | "centroid">, "strip", z.ZodTypeAny, {
|
58
|
+
id: string;
|
59
|
+
name: string;
|
60
|
+
centroid: {
|
61
|
+
lon: number;
|
62
|
+
lat: number;
|
63
|
+
};
|
64
|
+
}, {
|
65
|
+
id: string;
|
66
|
+
name: string;
|
67
|
+
centroid: {
|
68
|
+
lon: number;
|
69
|
+
lat: number;
|
70
|
+
};
|
71
|
+
}>, "many">;
|
72
|
+
}, "strip", z.ZodTypeAny, {
|
73
|
+
cities: {
|
74
|
+
id: string;
|
75
|
+
name: string;
|
76
|
+
centroid: {
|
77
|
+
lon: number;
|
78
|
+
lat: number;
|
79
|
+
};
|
80
|
+
}[];
|
81
|
+
}, {
|
82
|
+
cities: {
|
83
|
+
id: string;
|
84
|
+
name: string;
|
85
|
+
centroid: {
|
86
|
+
lon: number;
|
87
|
+
lat: number;
|
88
|
+
};
|
89
|
+
}[];
|
90
|
+
}>;
|
91
|
+
declare const FindCitiesByArgStateResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
|
92
|
+
cities: z.ZodArray<z.ZodObject<{
|
93
|
+
id: z.ZodString;
|
94
|
+
name: z.ZodString;
|
95
|
+
centroid: z.ZodObject<{
|
96
|
+
lon: z.ZodNumber;
|
97
|
+
lat: z.ZodNumber;
|
98
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
99
|
+
lon: number;
|
100
|
+
lat: number;
|
101
|
+
}, {
|
102
|
+
lon: number;
|
103
|
+
lat: number;
|
104
|
+
}>;
|
105
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
106
|
+
id: string;
|
107
|
+
name: string;
|
108
|
+
centroid: {
|
109
|
+
lon: number;
|
110
|
+
lat: number;
|
111
|
+
};
|
112
|
+
}, {
|
113
|
+
id: string;
|
114
|
+
name: string;
|
115
|
+
centroid: {
|
116
|
+
lon: number;
|
117
|
+
lat: number;
|
118
|
+
};
|
119
|
+
}>, "many">;
|
120
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
121
|
+
cities: {
|
122
|
+
id: string;
|
123
|
+
name: string;
|
124
|
+
centroid: {
|
125
|
+
lon: number;
|
126
|
+
lat: number;
|
127
|
+
};
|
128
|
+
}[];
|
129
|
+
}, {
|
130
|
+
cities: {
|
131
|
+
id: string;
|
132
|
+
name: string;
|
133
|
+
centroid: {
|
134
|
+
lon: number;
|
135
|
+
lat: number;
|
136
|
+
};
|
137
|
+
}[];
|
138
|
+
}>>;
|
139
|
+
export declare class FindCitiesByArgStateResponseDto extends FindCitiesByArgStateResponseDto_base {
|
140
|
+
}
|
141
|
+
export {};
|
@@ -0,0 +1,20 @@
|
|
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.FindCitiesByArgStateResponseDto = exports.findCitiesByArgStateResponseSchema = void 0;
|
7
|
+
const arg_city_dto_1 = require("./arg-city.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
|
+
exports.findCitiesByArgStateResponseSchema = zod_1.default.object({
|
11
|
+
cities: zod_1.default.array(arg_city_dto_1.argCitySchema.pick({
|
12
|
+
id: true,
|
13
|
+
name: true,
|
14
|
+
centroid: true,
|
15
|
+
})),
|
16
|
+
});
|
17
|
+
class FindCitiesByArgStateResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.findCitiesByArgStateResponseSchema) {
|
18
|
+
}
|
19
|
+
exports.FindCitiesByArgStateResponseDto = FindCitiesByArgStateResponseDto;
|
20
|
+
//# sourceMappingURL=find-cities-by-arg-state.dto.js.map
|
@@ -0,0 +1,29 @@
|
|
1
|
+
import z from 'zod';
|
2
|
+
export declare const locationSchema: z.ZodObject<{
|
3
|
+
id: z.ZodString;
|
4
|
+
latitude: z.ZodNumber;
|
5
|
+
longitude: z.ZodNumber;
|
6
|
+
country: z.ZodString;
|
7
|
+
state: z.ZodString;
|
8
|
+
city: z.ZodString;
|
9
|
+
created_at: z.ZodDate;
|
10
|
+
updated_at: z.ZodDate;
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
12
|
+
id: string;
|
13
|
+
latitude: number;
|
14
|
+
longitude: number;
|
15
|
+
created_at: Date;
|
16
|
+
updated_at: Date;
|
17
|
+
state: string;
|
18
|
+
country: string;
|
19
|
+
city: string;
|
20
|
+
}, {
|
21
|
+
id: string;
|
22
|
+
latitude: number;
|
23
|
+
longitude: number;
|
24
|
+
created_at: Date;
|
25
|
+
updated_at: Date;
|
26
|
+
state: string;
|
27
|
+
country: string;
|
28
|
+
city: string;
|
29
|
+
}>;
|
@@ -0,0 +1,35 @@
|
|
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.locationSchema = void 0;
|
7
|
+
const translate_1 = require("../../i18n/translate");
|
8
|
+
const zod_1 = __importDefault(require("zod"));
|
9
|
+
exports.locationSchema = zod_1.default.object({
|
10
|
+
id: zod_1.default.string().uuid({
|
11
|
+
message: (0, translate_1.translate)('model.location.id.uuid'),
|
12
|
+
}),
|
13
|
+
latitude: zod_1.default
|
14
|
+
.number()
|
15
|
+
.min(-90, {
|
16
|
+
message: (0, translate_1.translate)('model.location.latitude.minmax'),
|
17
|
+
})
|
18
|
+
.max(90, {
|
19
|
+
message: (0, translate_1.translate)('model.location.latitude.minmax'),
|
20
|
+
}),
|
21
|
+
longitude: zod_1.default
|
22
|
+
.number()
|
23
|
+
.min(-180, {
|
24
|
+
message: (0, translate_1.translate)('model.location.longitude.minmax'),
|
25
|
+
})
|
26
|
+
.max(180, {
|
27
|
+
message: (0, translate_1.translate)('model.location.longitude.minmax'),
|
28
|
+
}),
|
29
|
+
country: zod_1.default.string(),
|
30
|
+
state: zod_1.default.string(),
|
31
|
+
city: zod_1.default.string(),
|
32
|
+
created_at: zod_1.default.date(),
|
33
|
+
updated_at: zod_1.default.date(),
|
34
|
+
});
|
35
|
+
//# sourceMappingURL=location.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
|
@@ -0,0 +1,7 @@
|
|
1
|
+
export * from './dto/arg-city.dto';
|
2
|
+
export * from './dto/find-all-countries.dto';
|
3
|
+
export * from './dto/find-all-location.dto';
|
4
|
+
export * from './dto/find-arg-states.dto';
|
5
|
+
export * from './dto/find-cities-by-arg-state.dto';
|
6
|
+
export * from './dto/location.dto';
|
7
|
+
export * from './dto/states-by-country.dto';
|
@@ -14,9 +14,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
15
|
};
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
-
__exportStar(require("./dto/
|
18
|
-
__exportStar(require("./dto/
|
19
|
-
__exportStar(require("./dto/
|
20
|
-
__exportStar(require("./dto/
|
21
|
-
__exportStar(require("./dto/
|
17
|
+
__exportStar(require("./dto/arg-city.dto"), exports);
|
18
|
+
__exportStar(require("./dto/find-all-countries.dto"), exports);
|
19
|
+
__exportStar(require("./dto/find-all-location.dto"), exports);
|
20
|
+
__exportStar(require("./dto/find-arg-states.dto"), exports);
|
21
|
+
__exportStar(require("./dto/find-cities-by-arg-state.dto"), exports);
|
22
|
+
__exportStar(require("./dto/location.dto"), exports);
|
23
|
+
__exportStar(require("./dto/states-by-country.dto"), exports);
|
22
24
|
//# sourceMappingURL=exports.js.map
|
@@ -13,10 +13,8 @@ export declare const profileSchema: z.ZodObject<{
|
|
13
13
|
mail: z.ZodNullable<z.ZodString>;
|
14
14
|
dni: z.ZodNullable<z.ZodString>;
|
15
15
|
alternativeNames: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
|
16
|
-
|
17
|
-
|
18
|
-
residenceLongitude: z.ZodNullable<z.ZodNumber>;
|
19
|
-
residenceLatitude: z.ZodNullable<z.ZodNumber>;
|
16
|
+
birthLocationId: z.ZodNullable<z.ZodString>;
|
17
|
+
residenceLocationId: z.ZodNullable<z.ZodString>;
|
20
18
|
isInTrash: z.ZodBoolean;
|
21
19
|
movedToTrashDate: z.ZodNullable<z.ZodDate>;
|
22
20
|
created_at: z.ZodDate;
|
@@ -37,10 +35,8 @@ export declare const profileSchema: z.ZodObject<{
|
|
37
35
|
mail: string | null;
|
38
36
|
dni: string | null;
|
39
37
|
alternativeNames: string[] | null;
|
40
|
-
|
41
|
-
|
42
|
-
residenceLongitude: number | null;
|
43
|
-
residenceLatitude: number | null;
|
38
|
+
birthLocationId: string | null;
|
39
|
+
residenceLocationId: string | null;
|
44
40
|
isInTrash: boolean;
|
45
41
|
movedToTrashDate: Date | null;
|
46
42
|
}, {
|
@@ -59,10 +55,8 @@ export declare const profileSchema: z.ZodObject<{
|
|
59
55
|
mail: string | null;
|
60
56
|
dni: string | null;
|
61
57
|
alternativeNames: string[] | null;
|
62
|
-
|
63
|
-
|
64
|
-
residenceLongitude: number | null;
|
65
|
-
residenceLatitude: number | null;
|
58
|
+
birthLocationId: string | null;
|
59
|
+
residenceLocationId: string | null;
|
66
60
|
isInTrash: boolean;
|
67
61
|
movedToTrashDate: Date | null;
|
68
62
|
}>;
|
@@ -47,10 +47,8 @@ exports.profileSchema = zod_1.default.object({
|
|
47
47
|
mail: zod_1.default.string().email().nullable(),
|
48
48
|
dni: zod_1.default.string().nullable(),
|
49
49
|
alternativeNames: zod_1.default.array(zod_1.default.string()).nullable(),
|
50
|
-
|
51
|
-
|
52
|
-
residenceLongitude: zod_1.default.number().min(-180).max(180).nullable(),
|
53
|
-
residenceLatitude: zod_1.default.number().min(-90).max(90).nullable(),
|
50
|
+
birthLocationId: zod_1.default.string().uuid().nullable(),
|
51
|
+
residenceLocationId: zod_1.default.string().uuid().nullable(),
|
54
52
|
isInTrash: zod_1.default.boolean(),
|
55
53
|
movedToTrashDate: zod_1.default.date().nullable(),
|
56
54
|
created_at: zod_1.default.date(),
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { OpenApiZodAny } from '@anatine/zod-openapi';
|
2
|
-
import { z, ZodArray, ZodDate, ZodIntersection,
|
2
|
+
import { z, ZodArray, ZodDate, ZodIntersection, ZodObject, ZodTypeAny, ZodUnion } from 'zod';
|
3
3
|
export type ReplaceDatesWithStrings<T extends ZodTypeAny> = T extends ZodDate ? ReturnType<typeof z.string> : T extends ZodObject<infer Shape> ? ZodObject<{
|
4
4
|
[k in keyof Shape]: ReplaceDatesWithStrings<Shape[k]>;
|
5
5
|
}> : T extends ZodArray<infer Item> ? ZodArray<ReplaceDatesWithStrings<Item>> : T extends ZodUnion<infer Options> ? ZodUnion<{
|
6
6
|
[k in keyof Options]: ReplaceDatesWithStrings<Options[k]>;
|
7
|
-
}> : T extends ZodIntersection<infer Left, infer Right> ? ZodIntersection<ReplaceDatesWithStrings<Left>, ReplaceDatesWithStrings<Right>> : T
|
7
|
+
}> : T extends ZodIntersection<infer Left, infer Right> ? ZodIntersection<ReplaceDatesWithStrings<Left>, ReplaceDatesWithStrings<Right>> : T;
|
8
8
|
export declare const replaceDatesWithStrings: <T extends OpenApiZodAny>(schema: T) => ReplaceDatesWithStrings<T>;
|