@exclusive-website/types 1.7.0 → 1.7.2
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/.idea/exclusive-girls-types.iml +12 -0
- package/.idea/modules.xml +8 -0
- package/.idea/vcs.xml +6 -0
- package/dist/types.d.ts +22 -16
- package/package.json +1 -1
- package/src/types.ts +59 -18
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<module type="WEB_MODULE" version="4">
|
|
3
|
+
<component name="NewModuleRootManager">
|
|
4
|
+
<content url="file://$MODULE_DIR$">
|
|
5
|
+
<excludeFolder url="file://$MODULE_DIR$/.tmp" />
|
|
6
|
+
<excludeFolder url="file://$MODULE_DIR$/temp" />
|
|
7
|
+
<excludeFolder url="file://$MODULE_DIR$/tmp" />
|
|
8
|
+
</content>
|
|
9
|
+
<orderEntry type="inheritedJdk" />
|
|
10
|
+
<orderEntry type="sourceFolder" forTests="false" />
|
|
11
|
+
</component>
|
|
12
|
+
</module>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="ProjectModuleManager">
|
|
4
|
+
<modules>
|
|
5
|
+
<module fileurl="file://$PROJECT_DIR$/.idea/exclusive-girls-types.iml" filepath="$PROJECT_DIR$/.idea/exclusive-girls-types.iml" />
|
|
6
|
+
</modules>
|
|
7
|
+
</component>
|
|
8
|
+
</project>
|
package/.idea/vcs.xml
ADDED
package/dist/types.d.ts
CHANGED
|
@@ -27,9 +27,29 @@ export interface ModelWriteDto {
|
|
|
27
27
|
otherService: OtherPractise[];
|
|
28
28
|
region: Location;
|
|
29
29
|
address: string;
|
|
30
|
-
workingTime:
|
|
30
|
+
workingTime: ScheduleDTO[];
|
|
31
31
|
featuredImage: number;
|
|
32
|
-
|
|
32
|
+
photos: number[];
|
|
33
|
+
videos: number[];
|
|
34
|
+
}
|
|
35
|
+
export interface DaySchedule {
|
|
36
|
+
status: DayStatus;
|
|
37
|
+
delivery?: boolean;
|
|
38
|
+
workingHoursFrom?: string;
|
|
39
|
+
workingHoursTo?: string;
|
|
40
|
+
}
|
|
41
|
+
export interface ScheduleDTO {
|
|
42
|
+
monday: DaySchedule;
|
|
43
|
+
tuesday: DaySchedule;
|
|
44
|
+
wednesday: DaySchedule;
|
|
45
|
+
thursday: DaySchedule;
|
|
46
|
+
friday: DaySchedule;
|
|
47
|
+
saturday: DaySchedule;
|
|
48
|
+
sunday: DaySchedule;
|
|
49
|
+
}
|
|
50
|
+
export interface ListingQueryReadDto {
|
|
51
|
+
page: number;
|
|
52
|
+
perPage: number;
|
|
33
53
|
}
|
|
34
54
|
export interface ModelListReadDto {
|
|
35
55
|
models: ModelShortReadDto[];
|
|
@@ -108,20 +128,6 @@ export interface TimeRange {
|
|
|
108
128
|
from: string;
|
|
109
129
|
to: string;
|
|
110
130
|
}
|
|
111
|
-
export interface DaySchedule {
|
|
112
|
-
status: DayStatus;
|
|
113
|
-
delivery?: boolean;
|
|
114
|
-
workingHours?: TimeRange;
|
|
115
|
-
}
|
|
116
|
-
export interface ScheduleDTO {
|
|
117
|
-
monday: DaySchedule;
|
|
118
|
-
tuesday: DaySchedule;
|
|
119
|
-
wednesday: DaySchedule;
|
|
120
|
-
thursday: DaySchedule;
|
|
121
|
-
friday: DaySchedule;
|
|
122
|
-
saturday: DaySchedule;
|
|
123
|
-
sunday: DaySchedule;
|
|
124
|
-
}
|
|
125
131
|
export interface PaymentOptionDTO {
|
|
126
132
|
id: string;
|
|
127
133
|
title: string;
|
package/package.json
CHANGED
package/src/types.ts
CHANGED
|
@@ -47,11 +47,35 @@ export interface ModelWriteDto {
|
|
|
47
47
|
|
|
48
48
|
region: Location;
|
|
49
49
|
address: string;
|
|
50
|
-
workingTime:
|
|
50
|
+
workingTime: ScheduleDTO[];
|
|
51
51
|
featuredImage: number;
|
|
52
|
-
|
|
52
|
+
photos: number[];
|
|
53
|
+
videos: number[];
|
|
53
54
|
}
|
|
54
55
|
|
|
56
|
+
export interface DaySchedule {
|
|
57
|
+
status: DayStatus;
|
|
58
|
+
delivery?: boolean; // Optional, only relevant for PRACUJEM
|
|
59
|
+
workingHoursFrom?: string;
|
|
60
|
+
workingHoursTo?: string;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export interface ScheduleDTO {
|
|
64
|
+
monday: DaySchedule;
|
|
65
|
+
tuesday: DaySchedule;
|
|
66
|
+
wednesday: DaySchedule;
|
|
67
|
+
thursday: DaySchedule;
|
|
68
|
+
friday: DaySchedule;
|
|
69
|
+
saturday: DaySchedule;
|
|
70
|
+
sunday: DaySchedule;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export interface ListingQueryReadDto {
|
|
74
|
+
page: number;
|
|
75
|
+
perPage: number;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
|
|
55
79
|
export interface ModelListReadDto {
|
|
56
80
|
models: ModelShortReadDto[];
|
|
57
81
|
currentPage: number;
|
|
@@ -118,8 +142,20 @@ export interface UserInfoReadDto {
|
|
|
118
142
|
role: UserRole;
|
|
119
143
|
}
|
|
120
144
|
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
|
|
121
152
|
export type SupportedCurrency = "EUR" | "CZK" | null;
|
|
122
153
|
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
|
|
123
159
|
//SECURITY
|
|
124
160
|
export interface RegisterUserDto {
|
|
125
161
|
email: string;
|
|
@@ -135,28 +171,19 @@ export interface JwtDto {
|
|
|
135
171
|
token: string;
|
|
136
172
|
}
|
|
137
173
|
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
|
|
138
181
|
//SCHEDULE
|
|
139
182
|
export interface TimeRange {
|
|
140
183
|
from: string; // Format: "HH:mm"
|
|
141
184
|
to: string; // Format: "HH:mm"
|
|
142
185
|
}
|
|
143
186
|
|
|
144
|
-
export interface DaySchedule {
|
|
145
|
-
status: DayStatus;
|
|
146
|
-
delivery?: boolean; // Optional, only relevant for PRACUJEM
|
|
147
|
-
workingHours?: TimeRange; // Optional, only for PRACUJEM with delivery
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
export interface ScheduleDTO {
|
|
151
|
-
monday: DaySchedule;
|
|
152
|
-
tuesday: DaySchedule;
|
|
153
|
-
wednesday: DaySchedule;
|
|
154
|
-
thursday: DaySchedule;
|
|
155
|
-
friday: DaySchedule;
|
|
156
|
-
saturday: DaySchedule;
|
|
157
|
-
sunday: DaySchedule;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
187
|
//PAYMENT
|
|
161
188
|
export interface PaymentOptionDTO {
|
|
162
189
|
id: string;
|
|
@@ -170,6 +197,14 @@ export interface PaymentOptionDTO {
|
|
|
170
197
|
}[];
|
|
171
198
|
}
|
|
172
199
|
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
|
|
173
208
|
export interface ChargingOption {
|
|
174
209
|
cost: number;
|
|
175
210
|
currency: SupportedCurrency;
|
|
@@ -185,6 +220,12 @@ export interface InfoPoint {
|
|
|
185
220
|
point: string;
|
|
186
221
|
}
|
|
187
222
|
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
|
|
188
229
|
export interface ListingPricingDTO {
|
|
189
230
|
id: string;
|
|
190
231
|
title: string;
|