@exclusive-website/types 1.9.8 → 2.0.0

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.
package/dist/types.d.ts CHANGED
@@ -25,9 +25,7 @@ export interface ModelWriteDto {
25
25
  description: string;
26
26
  practice: Practise[];
27
27
  otherService: OtherPractise[];
28
- country: Country;
29
- region: Region;
30
- city: City;
28
+ cityId: number;
31
29
  workingTime: DaySchedule[];
32
30
  featuredImage: MediaDto;
33
31
  photos: MediaDto[];
@@ -74,9 +72,7 @@ export interface ModelShortReadDto {
74
72
  id: number;
75
73
  nickname: string;
76
74
  age: number;
77
- country: Country;
78
- region: Region;
79
- city: City;
75
+ location: LocationDto;
80
76
  isNew: boolean;
81
77
  isTopped: boolean;
82
78
  isAvailable: boolean;
@@ -91,9 +87,7 @@ export interface ModelShortReadDto {
91
87
  export interface ModelShortPreviewReadDto {
92
88
  id: number;
93
89
  nickname: string;
94
- country: Country;
95
- region: Region;
96
- city: City;
90
+ location: LocationDto;
97
91
  isNew: boolean;
98
92
  isTopped: boolean;
99
93
  isAvailable: boolean;
@@ -105,9 +99,7 @@ export interface ModelReadDto {
105
99
  id: number;
106
100
  nickname: string;
107
101
  age: number;
108
- country: Country;
109
- region: Region;
110
- city: City;
102
+ location: LocationDto;
111
103
  isNew: boolean;
112
104
  isTopped: boolean;
113
105
  isAvailable: boolean;
@@ -153,10 +145,22 @@ export interface AuthJwtDto {
153
145
  export interface FavoritesListing {
154
146
  ids: number[];
155
147
  }
156
- export interface LocationFilterDto {
157
- countries: Country[];
158
- regions: Region[];
159
- cities: City[];
148
+ export interface LocationDto {
149
+ country: string;
150
+ region: string;
151
+ city: string;
152
+ }
153
+ export interface CountryDto {
154
+ countryId: number;
155
+ country: string;
156
+ }
157
+ export interface RegionDto {
158
+ regionId: number;
159
+ region: string;
160
+ }
161
+ export interface CityDto {
162
+ cityId: number;
163
+ city: string;
160
164
  }
161
165
  export type SupportedCurrency = "EUR" | "CZK" | null;
162
166
  export interface RegisterUserDto {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exclusive-website/types",
3
- "version": "1.9.8",
3
+ "version": "2.0.0",
4
4
  "description": "A collection of shared types (DTOs and DBEs) for the organization",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/types.ts CHANGED
@@ -47,9 +47,7 @@ export interface ModelWriteDto {
47
47
  practice: Practise[];
48
48
  otherService: OtherPractise[];
49
49
 
50
- country: Country;
51
- region: Region;
52
- city: City;
50
+ cityId: number;
53
51
  workingTime: DaySchedule[];
54
52
  featuredImage: MediaDto;
55
53
  photos: MediaDto[];
@@ -102,9 +100,7 @@ export interface ModelShortReadDto {
102
100
  id: number;
103
101
  nickname: string;
104
102
  age: number;
105
- country: Country;
106
- region: Region;
107
- city: City;
103
+ location: LocationDto;
108
104
  isNew: boolean;
109
105
  isTopped: boolean;
110
106
  isAvailable: boolean;
@@ -120,9 +116,7 @@ export interface ModelShortReadDto {
120
116
  export interface ModelShortPreviewReadDto {
121
117
  id: number;
122
118
  nickname: string;
123
- country: Country;
124
- region: Region;
125
- city: City;
119
+ location: LocationDto;
126
120
  isNew: boolean;
127
121
  isTopped: boolean;
128
122
  isAvailable: boolean;
@@ -135,9 +129,7 @@ export interface ModelReadDto {
135
129
  id: number;
136
130
  nickname: string;
137
131
  age: number;
138
- country: Country;
139
- region: Region;
140
- city: City;
132
+ location: LocationDto;
141
133
  isNew: boolean;
142
134
  isTopped: boolean;
143
135
  isAvailable: boolean;
@@ -188,10 +180,25 @@ export interface FavoritesListing {
188
180
  ids: number[];
189
181
  }
190
182
 
191
- export interface LocationFilterDto {
192
- countries: Country[];
193
- regions: Region[];
194
- cities: City[];
183
+ export interface LocationDto {
184
+ country: string;
185
+ region: string;
186
+ city: string;
187
+ }
188
+
189
+ export interface CountryDto {
190
+ countryId: number;
191
+ country: string;
192
+ }
193
+
194
+ export interface RegionDto {
195
+ regionId: number;
196
+ region: string;
197
+ }
198
+
199
+ export interface CityDto {
200
+ cityId: number;
201
+ city: string;
195
202
  }
196
203
 
197
204