expo-backend-types 0.5.0-EXPO-286-EB-Location.9 → 0.5.0-EXPO-283-EB-Respuesta-Enlatada.9
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/src/cannedResponse/dto/cannedResponse.dto.d.ts +42 -0
- package/dist/src/cannedResponse/dto/cannedResponse.dto.js +23 -0
- package/dist/src/cannedResponse/dto/create-cannedResponse.dto.d.ts +66 -0
- package/dist/src/cannedResponse/dto/create-cannedResponse.dto.js +17 -0
- package/dist/src/cannedResponse/dto/delete-cannedResponse.dto.d.ts +41 -0
- package/dist/src/cannedResponse/dto/delete-cannedResponse.dto.js +10 -0
- package/dist/src/cannedResponse/dto/get-all-cannedResponse.dto.d.ts +78 -0
- package/dist/src/cannedResponse/dto/get-all-cannedResponse.dto.js +16 -0
- package/dist/src/cannedResponse/dto/update-cannedResponse.dto.d.ts +66 -0
- package/dist/src/cannedResponse/dto/update-cannedResponse.dto.js +17 -0
- package/dist/src/cannedResponse/exports.d.ts +5 -0
- package/dist/src/{location → cannedResponse}/exports.js +5 -7
- 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 -19
- package/dist/src/i18n/es.js +20 -19
- package/dist/src/i18n/es.js.map +1 -1
- package/dist/src/profile/dto/profile.dto.d.ts +12 -6
- package/dist/src/profile/dto/profile.dto.js +4 -2
- 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 +50 -30
- package/dist/src/tag/dto/massive-deallocation.dto.d.ts +50 -30
- package/dist/types/prisma-schema/edge.js +7 -6
- package/dist/types/prisma-schema/index-browser.js +4 -3
- package/dist/types/prisma-schema/index.d.ts +242 -113
- package/dist/types/prisma-schema/index.js +7 -6
- package/dist/types/prisma-schema/package.json +1 -1
- package/dist/types/prisma-schema/schema.prisma +7 -5
- package/dist/types/prisma-schema/wasm.js +4 -3
- package/dist/types/schema.d.ts +80 -101
- package/package.json +4 -2
- package/dist/src/location/dto/arg-city.dto.d.ts +0 -130
- package/dist/src/location/dto/arg-city.dto.js +0 -33
- package/dist/src/location/dto/find-all-countries.dto.d.ts +0 -48
- package/dist/src/location/dto/find-all-countries.dto.js +0 -18
- package/dist/src/location/dto/find-all-location.dto.d.ts +0 -192
- package/dist/src/location/dto/find-all-location.dto.js +0 -32
- package/dist/src/location/dto/find-cities-by-province.dto.d.ts +0 -141
- package/dist/src/location/dto/find-cities-by-province.dto.js +0 -20
- package/dist/src/location/dto/find-provinces.dto.d.ts +0 -18
- package/dist/src/location/dto/find-provinces.dto.js +0 -15
- package/dist/src/location/dto/location.dto.d.ts +0 -29
- package/dist/src/location/dto/location.dto.js +0 -35
- package/dist/src/location/dto/states-by-country.dto.d.ts +0 -88
- package/dist/src/location/dto/states-by-country.dto.js +0 -22
- package/dist/src/location/exports.d.ts +0 -7
@@ -1,192 +0,0 @@
|
|
1
|
-
import z from 'zod';
|
2
|
-
export declare const findAllLocationResponseSchema: z.ZodObject<{
|
3
|
-
birthLocations: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<Pick<{
|
4
|
-
id: z.ZodString;
|
5
|
-
latitude: z.ZodNumber;
|
6
|
-
longitude: z.ZodNumber;
|
7
|
-
country: z.ZodString;
|
8
|
-
province: z.ZodString;
|
9
|
-
city: z.ZodString;
|
10
|
-
created_at: z.ZodDate;
|
11
|
-
updated_at: z.ZodDate;
|
12
|
-
}, "latitude" | "longitude" | "city">, {
|
13
|
-
_count: z.ZodObject<{
|
14
|
-
birthProfiles: z.ZodNumber;
|
15
|
-
}, "strip", z.ZodTypeAny, {
|
16
|
-
birthProfiles: number;
|
17
|
-
}, {
|
18
|
-
birthProfiles: number;
|
19
|
-
}>;
|
20
|
-
}>, "strip", z.ZodTypeAny, {
|
21
|
-
latitude: number;
|
22
|
-
longitude: number;
|
23
|
-
_count: {
|
24
|
-
birthProfiles: number;
|
25
|
-
};
|
26
|
-
city: string;
|
27
|
-
}, {
|
28
|
-
latitude: number;
|
29
|
-
longitude: number;
|
30
|
-
_count: {
|
31
|
-
birthProfiles: number;
|
32
|
-
};
|
33
|
-
city: string;
|
34
|
-
}>, "many">;
|
35
|
-
residenceLocations: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<Pick<{
|
36
|
-
id: z.ZodString;
|
37
|
-
latitude: z.ZodNumber;
|
38
|
-
longitude: z.ZodNumber;
|
39
|
-
country: z.ZodString;
|
40
|
-
province: z.ZodString;
|
41
|
-
city: z.ZodString;
|
42
|
-
created_at: z.ZodDate;
|
43
|
-
updated_at: z.ZodDate;
|
44
|
-
}, "latitude" | "longitude" | "city">, {
|
45
|
-
_count: z.ZodObject<{
|
46
|
-
residenceProfiles: z.ZodNumber;
|
47
|
-
}, "strip", z.ZodTypeAny, {
|
48
|
-
residenceProfiles: number;
|
49
|
-
}, {
|
50
|
-
residenceProfiles: number;
|
51
|
-
}>;
|
52
|
-
}>, "strip", z.ZodTypeAny, {
|
53
|
-
latitude: number;
|
54
|
-
longitude: number;
|
55
|
-
_count: {
|
56
|
-
residenceProfiles: number;
|
57
|
-
};
|
58
|
-
city: string;
|
59
|
-
}, {
|
60
|
-
latitude: number;
|
61
|
-
longitude: number;
|
62
|
-
_count: {
|
63
|
-
residenceProfiles: number;
|
64
|
-
};
|
65
|
-
city: string;
|
66
|
-
}>, "many">;
|
67
|
-
}, "strip", z.ZodTypeAny, {
|
68
|
-
birthLocations: {
|
69
|
-
latitude: number;
|
70
|
-
longitude: number;
|
71
|
-
_count: {
|
72
|
-
birthProfiles: number;
|
73
|
-
};
|
74
|
-
city: string;
|
75
|
-
}[];
|
76
|
-
residenceLocations: {
|
77
|
-
latitude: number;
|
78
|
-
longitude: number;
|
79
|
-
_count: {
|
80
|
-
residenceProfiles: number;
|
81
|
-
};
|
82
|
-
city: string;
|
83
|
-
}[];
|
84
|
-
}, {
|
85
|
-
birthLocations: {
|
86
|
-
latitude: number;
|
87
|
-
longitude: number;
|
88
|
-
_count: {
|
89
|
-
birthProfiles: number;
|
90
|
-
};
|
91
|
-
city: string;
|
92
|
-
}[];
|
93
|
-
residenceLocations: {
|
94
|
-
latitude: number;
|
95
|
-
longitude: number;
|
96
|
-
_count: {
|
97
|
-
residenceProfiles: number;
|
98
|
-
};
|
99
|
-
city: string;
|
100
|
-
}[];
|
101
|
-
}>;
|
102
|
-
declare const FindAllLocationResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
|
103
|
-
birthLocations: z.ZodArray<z.ZodObject<{
|
104
|
-
latitude: z.ZodNumber;
|
105
|
-
longitude: z.ZodNumber;
|
106
|
-
city: z.ZodString;
|
107
|
-
_count: z.ZodObject<{
|
108
|
-
birthProfiles: z.ZodNumber;
|
109
|
-
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
110
|
-
birthProfiles: number;
|
111
|
-
}, {
|
112
|
-
birthProfiles: number;
|
113
|
-
}>;
|
114
|
-
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
115
|
-
latitude: number;
|
116
|
-
longitude: number;
|
117
|
-
_count: {
|
118
|
-
birthProfiles: number;
|
119
|
-
};
|
120
|
-
city: string;
|
121
|
-
}, {
|
122
|
-
latitude: number;
|
123
|
-
longitude: number;
|
124
|
-
_count: {
|
125
|
-
birthProfiles: number;
|
126
|
-
};
|
127
|
-
city: string;
|
128
|
-
}>, "many">;
|
129
|
-
residenceLocations: z.ZodArray<z.ZodObject<{
|
130
|
-
latitude: z.ZodNumber;
|
131
|
-
longitude: z.ZodNumber;
|
132
|
-
city: z.ZodString;
|
133
|
-
_count: z.ZodObject<{
|
134
|
-
residenceProfiles: z.ZodNumber;
|
135
|
-
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
136
|
-
residenceProfiles: number;
|
137
|
-
}, {
|
138
|
-
residenceProfiles: number;
|
139
|
-
}>;
|
140
|
-
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
141
|
-
latitude: number;
|
142
|
-
longitude: number;
|
143
|
-
_count: {
|
144
|
-
residenceProfiles: number;
|
145
|
-
};
|
146
|
-
city: string;
|
147
|
-
}, {
|
148
|
-
latitude: number;
|
149
|
-
longitude: number;
|
150
|
-
_count: {
|
151
|
-
residenceProfiles: number;
|
152
|
-
};
|
153
|
-
city: string;
|
154
|
-
}>, "many">;
|
155
|
-
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
156
|
-
birthLocations: {
|
157
|
-
latitude: number;
|
158
|
-
longitude: number;
|
159
|
-
_count: {
|
160
|
-
birthProfiles: number;
|
161
|
-
};
|
162
|
-
city: string;
|
163
|
-
}[];
|
164
|
-
residenceLocations: {
|
165
|
-
latitude: number;
|
166
|
-
longitude: number;
|
167
|
-
_count: {
|
168
|
-
residenceProfiles: number;
|
169
|
-
};
|
170
|
-
city: string;
|
171
|
-
}[];
|
172
|
-
}, {
|
173
|
-
birthLocations: {
|
174
|
-
latitude: number;
|
175
|
-
longitude: number;
|
176
|
-
_count: {
|
177
|
-
birthProfiles: number;
|
178
|
-
};
|
179
|
-
city: string;
|
180
|
-
}[];
|
181
|
-
residenceLocations: {
|
182
|
-
latitude: number;
|
183
|
-
longitude: number;
|
184
|
-
_count: {
|
185
|
-
residenceProfiles: number;
|
186
|
-
};
|
187
|
-
city: string;
|
188
|
-
}[];
|
189
|
-
}>>;
|
190
|
-
export declare class FindAllLocationResponseDto extends FindAllLocationResponseDto_base {
|
191
|
-
}
|
192
|
-
export {};
|
@@ -1,32 +0,0 @@
|
|
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
|
@@ -1,141 +0,0 @@
|
|
1
|
-
import z from 'zod';
|
2
|
-
export declare const findCitiesByProvinceLocationResponseSchema: z.ZodObject<{
|
3
|
-
cities: z.ZodArray<z.ZodObject<Pick<{
|
4
|
-
id: z.ZodString;
|
5
|
-
name: z.ZodString;
|
6
|
-
province: 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 FindCitiesByProvinceLocationResponseDto_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 FindCitiesByProvinceLocationResponseDto extends FindCitiesByProvinceLocationResponseDto_base {
|
140
|
-
}
|
141
|
-
export {};
|
@@ -1,20 +0,0 @@
|
|
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.FindCitiesByProvinceLocationResponseDto = exports.findCitiesByProvinceLocationResponseSchema = 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.findCitiesByProvinceLocationResponseSchema = 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 FindCitiesByProvinceLocationResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.findCitiesByProvinceLocationResponseSchema) {
|
18
|
-
}
|
19
|
-
exports.FindCitiesByProvinceLocationResponseDto = FindCitiesByProvinceLocationResponseDto;
|
20
|
-
//# sourceMappingURL=find-cities-by-province.dto.js.map
|
@@ -1,18 +0,0 @@
|
|
1
|
-
import z from 'zod';
|
2
|
-
export declare const findProvincesResponseSchema: z.ZodObject<{
|
3
|
-
provinces: z.ZodArray<z.ZodString, "many">;
|
4
|
-
}, "strip", z.ZodTypeAny, {
|
5
|
-
provinces: string[];
|
6
|
-
}, {
|
7
|
-
provinces: string[];
|
8
|
-
}>;
|
9
|
-
declare const FindProvincesResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
|
10
|
-
provinces: z.ZodArray<z.ZodString, "many">;
|
11
|
-
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
12
|
-
provinces: string[];
|
13
|
-
}, {
|
14
|
-
provinces: string[];
|
15
|
-
}>>;
|
16
|
-
export declare class FindProvincesResponseDto extends FindProvincesResponseDto_base {
|
17
|
-
}
|
18
|
-
export {};
|
@@ -1,15 +0,0 @@
|
|
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.FindProvincesResponseDto = exports.findProvincesResponseSchema = 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.findProvincesResponseSchema = zod_1.default.object({
|
10
|
-
provinces: zod_1.default.array(zod_1.default.string()),
|
11
|
-
});
|
12
|
-
class FindProvincesResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.findProvincesResponseSchema) {
|
13
|
-
}
|
14
|
-
exports.FindProvincesResponseDto = FindProvincesResponseDto;
|
15
|
-
//# sourceMappingURL=find-provinces.dto.js.map
|
@@ -1,29 +0,0 @@
|
|
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
|
-
province: 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
|
-
province: 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
|
-
province: string;
|
27
|
-
country: string;
|
28
|
-
city: string;
|
29
|
-
}>;
|
@@ -1,35 +0,0 @@
|
|
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
|
-
province: 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
|
@@ -1,88 +0,0 @@
|
|
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 {};
|
@@ -1,22 +0,0 @@
|
|
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,7 +0,0 @@
|
|
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-cities-by-province.dto';
|
5
|
-
export * from './dto/find-provinces.dto';
|
6
|
-
export * from './dto/location.dto';
|
7
|
-
export * from './dto/states-by-country.dto';
|