@exclusive-website/types 2.2.6 → 2.2.9
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/filterEnums.d.ts +11 -0
- package/dist/filterEnums.js +14 -1
- package/dist/types.d.ts +23 -51
- package/package.json +1 -1
- package/src/filterEnums.ts +13 -0
- package/src/types.ts +26 -92
|
@@ -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/filterEnums.d.ts
CHANGED
|
@@ -225,3 +225,14 @@ export declare enum Availability {
|
|
|
225
225
|
AVAILABLE = "AVAILABLE",
|
|
226
226
|
UNAVAILABLE = "UNAVAILABLE"
|
|
227
227
|
}
|
|
228
|
+
export declare enum Currency {
|
|
229
|
+
EUR = "EUR",
|
|
230
|
+
CZK = "CZK",
|
|
231
|
+
HUF = "HUF",
|
|
232
|
+
PLN = "PLN"
|
|
233
|
+
}
|
|
234
|
+
export declare enum PricingCategory {
|
|
235
|
+
PUBLISHED = "PUBLISHED",
|
|
236
|
+
FEATURED_MAIN_PAGE = "FEATURED_MAIN_PAGE",
|
|
237
|
+
FEATURED_REGION = "FEATURED_REGION"
|
|
238
|
+
}
|
package/dist/filterEnums.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Availability = exports.HairLength = exports.HairColor = exports.ShaveStatus = exports.OtherPractise = exports.Practise = exports.UserRole = exports.ServicesFor = exports.ContactMethod = exports.NationalityOption = exports.BreastSize = exports.AvailabilityStatus = exports.AgeRange = exports.Language = exports.DayOfWeek = exports.City = exports.Region = exports.Country = exports.ServiceType = exports.ExperienceLevel = exports.SexualOrientation = exports.DayStatus = void 0;
|
|
3
|
+
exports.PricingCategory = exports.Currency = exports.Availability = exports.HairLength = exports.HairColor = exports.ShaveStatus = exports.OtherPractise = exports.Practise = exports.UserRole = exports.ServicesFor = exports.ContactMethod = exports.NationalityOption = exports.BreastSize = exports.AvailabilityStatus = exports.AgeRange = exports.Language = exports.DayOfWeek = exports.City = exports.Region = exports.Country = exports.ServiceType = exports.ExperienceLevel = exports.SexualOrientation = exports.DayStatus = void 0;
|
|
4
4
|
// DAY STATUS
|
|
5
5
|
var DayStatus;
|
|
6
6
|
(function (DayStatus) {
|
|
@@ -267,3 +267,16 @@ var Availability;
|
|
|
267
267
|
Availability["AVAILABLE"] = "AVAILABLE";
|
|
268
268
|
Availability["UNAVAILABLE"] = "UNAVAILABLE";
|
|
269
269
|
})(Availability = exports.Availability || (exports.Availability = {}));
|
|
270
|
+
var Currency;
|
|
271
|
+
(function (Currency) {
|
|
272
|
+
Currency["EUR"] = "EUR";
|
|
273
|
+
Currency["CZK"] = "CZK";
|
|
274
|
+
Currency["HUF"] = "HUF";
|
|
275
|
+
Currency["PLN"] = "PLN";
|
|
276
|
+
})(Currency = exports.Currency || (exports.Currency = {}));
|
|
277
|
+
var PricingCategory;
|
|
278
|
+
(function (PricingCategory) {
|
|
279
|
+
PricingCategory["PUBLISHED"] = "PUBLISHED";
|
|
280
|
+
PricingCategory["FEATURED_MAIN_PAGE"] = "FEATURED_MAIN_PAGE";
|
|
281
|
+
PricingCategory["FEATURED_REGION"] = "FEATURED_REGION";
|
|
282
|
+
})(PricingCategory = exports.PricingCategory || (exports.PricingCategory = {}));
|
package/dist/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Availability, ContactMethod, DayOfWeek, DayStatus, ExperienceLevel, HairColor, HairLength, Language, NationalityOption, OtherPractise, Practise, ServicesFor, ServiceType, SexualOrientation, ShaveStatus, UserRole } from "./filterEnums";
|
|
1
|
+
import { Availability, ContactMethod, Currency, DayOfWeek, DayStatus, ExperienceLevel, HairColor, HairLength, Language, NationalityOption, OtherPractise, Practise, PricingCategory, ServicesFor, ServiceType, SexualOrientation, ShaveStatus, UserRole } from "./filterEnums";
|
|
2
2
|
export interface ModelWriteDto {
|
|
3
3
|
nickname: string;
|
|
4
4
|
phoneNumber: string;
|
|
@@ -70,6 +70,19 @@ export interface ModelListReadDto {
|
|
|
70
70
|
pageSize: number;
|
|
71
71
|
lastPage: number;
|
|
72
72
|
}
|
|
73
|
+
export interface ModelAdminListReadDto {
|
|
74
|
+
models: ModelShortReadDto[];
|
|
75
|
+
currentPage: number;
|
|
76
|
+
pageSize: number;
|
|
77
|
+
lastPage: number;
|
|
78
|
+
}
|
|
79
|
+
export interface ModelAdminShortReadDto {
|
|
80
|
+
id: number;
|
|
81
|
+
variableSymbol: string;
|
|
82
|
+
nickname: string;
|
|
83
|
+
location: LocationDto;
|
|
84
|
+
featuredImage: MediaDto;
|
|
85
|
+
}
|
|
73
86
|
export interface ModelShortReadDto {
|
|
74
87
|
id: number;
|
|
75
88
|
nickname: string;
|
|
@@ -165,7 +178,6 @@ export interface CityDto {
|
|
|
165
178
|
cityId: number;
|
|
166
179
|
city: string;
|
|
167
180
|
}
|
|
168
|
-
export type SupportedCurrency = "EUR" | "CZK" | null;
|
|
169
181
|
export interface RegisterUserDto {
|
|
170
182
|
email: string;
|
|
171
183
|
password: string;
|
|
@@ -186,54 +198,14 @@ export interface ResetPasswordDto {
|
|
|
186
198
|
email: string;
|
|
187
199
|
code: string;
|
|
188
200
|
}
|
|
189
|
-
export interface
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
id: string;
|
|
195
|
-
title: string;
|
|
196
|
-
description: string;
|
|
197
|
-
images?: {
|
|
198
|
-
url: string;
|
|
199
|
-
alt: string;
|
|
200
|
-
width: number;
|
|
201
|
-
height: number;
|
|
202
|
-
}[];
|
|
203
|
-
}
|
|
204
|
-
export interface ChargingOption {
|
|
205
|
-
cost: number;
|
|
206
|
-
currency: SupportedCurrency;
|
|
207
|
-
duration: string;
|
|
208
|
-
id?: string;
|
|
209
|
-
}
|
|
210
|
-
export interface FreeOfChargeOption {
|
|
211
|
-
amount: string;
|
|
212
|
-
}
|
|
213
|
-
export interface InfoPoint {
|
|
214
|
-
point: string;
|
|
215
|
-
}
|
|
216
|
-
export interface ListingPricingDTO {
|
|
217
|
-
id: string;
|
|
218
|
-
title: string;
|
|
219
|
-
description: string;
|
|
220
|
-
chargingOptions: ChargingOption[];
|
|
221
|
-
infoPoints: InfoPoint[];
|
|
201
|
+
export interface ListingPricingReadDto {
|
|
202
|
+
id: number;
|
|
203
|
+
durationDays: number;
|
|
204
|
+
category: PricingCategory;
|
|
205
|
+
prices: PriceReadDto[];
|
|
222
206
|
}
|
|
223
|
-
export interface
|
|
224
|
-
id:
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
displayFreeOfChargeOption: boolean;
|
|
228
|
-
freeOfChargeOption?: FreeOfChargeOption;
|
|
229
|
-
generalTopped: {
|
|
230
|
-
title: string;
|
|
231
|
-
description: string;
|
|
232
|
-
chargingOptions: ChargingOption[];
|
|
233
|
-
};
|
|
234
|
-
countyTopped: {
|
|
235
|
-
title: string;
|
|
236
|
-
description: string;
|
|
237
|
-
chargingOptions: ChargingOption[];
|
|
238
|
-
};
|
|
207
|
+
export interface PriceReadDto {
|
|
208
|
+
id: number;
|
|
209
|
+
amount: number;
|
|
210
|
+
currency: Currency;
|
|
239
211
|
}
|
package/package.json
CHANGED
package/src/filterEnums.ts
CHANGED
|
@@ -270,4 +270,17 @@ export enum HairLength {
|
|
|
270
270
|
export enum Availability {
|
|
271
271
|
AVAILABLE = "AVAILABLE",
|
|
272
272
|
UNAVAILABLE = "UNAVAILABLE",
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
export enum Currency {
|
|
276
|
+
EUR = "EUR",
|
|
277
|
+
CZK = "CZK",
|
|
278
|
+
HUF = "HUF",
|
|
279
|
+
PLN = "PLN",
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
export enum PricingCategory {
|
|
283
|
+
PUBLISHED = "PUBLISHED",
|
|
284
|
+
FEATURED_MAIN_PAGE = "FEATURED_MAIN_PAGE",
|
|
285
|
+
FEATURED_REGION = "FEATURED_REGION",
|
|
273
286
|
}
|
package/src/types.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Availability,
|
|
3
|
-
ContactMethod,
|
|
3
|
+
ContactMethod, Currency,
|
|
4
4
|
DayOfWeek,
|
|
5
5
|
DayStatus,
|
|
6
6
|
ExperienceLevel,
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
Language,
|
|
10
10
|
NationalityOption,
|
|
11
11
|
OtherPractise,
|
|
12
|
-
Practise,
|
|
12
|
+
Practise, PricingCategory,
|
|
13
13
|
ServicesFor,
|
|
14
14
|
ServiceType,
|
|
15
15
|
SexualOrientation,
|
|
@@ -95,6 +95,21 @@ export interface ModelListReadDto {
|
|
|
95
95
|
lastPage: number;
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
+
export interface ModelAdminListReadDto {
|
|
99
|
+
models: ModelShortReadDto[];
|
|
100
|
+
currentPage: number;
|
|
101
|
+
pageSize: number;
|
|
102
|
+
lastPage: number;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export interface ModelAdminShortReadDto {
|
|
106
|
+
id: number;
|
|
107
|
+
variableSymbol: string;
|
|
108
|
+
nickname: string;
|
|
109
|
+
location: LocationDto;
|
|
110
|
+
featuredImage: MediaDto;
|
|
111
|
+
}
|
|
112
|
+
|
|
98
113
|
export interface ModelShortReadDto {
|
|
99
114
|
id: number;
|
|
100
115
|
nickname: string;
|
|
@@ -201,19 +216,6 @@ export interface CityDto {
|
|
|
201
216
|
city: string;
|
|
202
217
|
}
|
|
203
218
|
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
export type SupportedCurrency = "EUR" | "CZK" | null;
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
//SECURITY
|
|
217
219
|
export interface RegisterUserDto {
|
|
218
220
|
email: string;
|
|
219
221
|
password: string;
|
|
@@ -239,83 +241,15 @@ export interface ResetPasswordDto {
|
|
|
239
241
|
code: string;
|
|
240
242
|
}
|
|
241
243
|
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
//SCHEDULE
|
|
250
|
-
export interface TimeRange {
|
|
251
|
-
from: string; // Format: "HH:mm"
|
|
252
|
-
to: string; // Format: "HH:mm"
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
//PAYMENT
|
|
256
|
-
export interface PaymentOptionDTO {
|
|
257
|
-
id: string;
|
|
258
|
-
title: string;
|
|
259
|
-
description: string;
|
|
260
|
-
images?: {
|
|
261
|
-
url: string;
|
|
262
|
-
alt: string;
|
|
263
|
-
width: number;
|
|
264
|
-
height: number;
|
|
265
|
-
}[];
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
export interface ChargingOption {
|
|
277
|
-
cost: number;
|
|
278
|
-
currency: SupportedCurrency;
|
|
279
|
-
duration: string;
|
|
280
|
-
id?: string; //id for radio
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
export interface FreeOfChargeOption {
|
|
284
|
-
amount: string; // "bez"
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
export interface InfoPoint {
|
|
288
|
-
point: string;
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
export interface ListingPricingDTO {
|
|
298
|
-
id: string;
|
|
299
|
-
title: string;
|
|
300
|
-
description: string;
|
|
301
|
-
chargingOptions: ChargingOption[];
|
|
302
|
-
infoPoints: InfoPoint[];
|
|
244
|
+
export interface ListingPricingReadDto {
|
|
245
|
+
id: number;
|
|
246
|
+
durationDays: number;
|
|
247
|
+
category: PricingCategory;
|
|
248
|
+
prices: PriceReadDto[];
|
|
303
249
|
}
|
|
304
250
|
|
|
305
|
-
export interface
|
|
306
|
-
id:
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
displayFreeOfChargeOption: boolean;
|
|
310
|
-
freeOfChargeOption?: FreeOfChargeOption;
|
|
311
|
-
generalTopped: {
|
|
312
|
-
title: string;
|
|
313
|
-
description: string;
|
|
314
|
-
chargingOptions: ChargingOption[];
|
|
315
|
-
};
|
|
316
|
-
countyTopped: {
|
|
317
|
-
title: string;
|
|
318
|
-
description: string;
|
|
319
|
-
chargingOptions: ChargingOption[];
|
|
320
|
-
};
|
|
251
|
+
export interface PriceReadDto {
|
|
252
|
+
id: number;
|
|
253
|
+
amount: number;
|
|
254
|
+
currency: Currency;
|
|
321
255
|
}
|