@exclusive-website/types 1.2.8 → 1.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/package.json +1 -1
- package/src/types.ts +45 -43
package/package.json
CHANGED
package/src/types.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AvailableService, BreastSize, ContactMethod, DayStatus, ExperienceLevel, HairColor, HairLength, Language, NationalityOption, OtherOption, Practice, ServicesFor, ServiceType, SexualOrientation, ShaveStatus, SpecialService, Location } from "./filterEnums";
|
|
1
|
+
import { AvailableService, BreastSize, ContactMethod, DayStatus, ExperienceLevel, HairColor, HairLength, Language, NationalityOption, OtherOption, Practice, ServicesFor, ServiceType, SexualOrientation, ShaveStatus, SpecialService, Location, AgeRange } from "./filterEnums";
|
|
2
2
|
|
|
3
3
|
export interface ModelDTO {
|
|
4
4
|
id: number;
|
|
@@ -48,6 +48,49 @@ export interface ModelDTO {
|
|
|
48
48
|
schedule: ScheduleDTO;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
+
export interface ListingDTO {
|
|
52
|
+
id: string;
|
|
53
|
+
contact: ContactDTO;
|
|
54
|
+
additionalInfo: AdditionalInfoDTO;
|
|
55
|
+
about: AboutDTO;
|
|
56
|
+
languages: Language[];
|
|
57
|
+
services: Record<AvailableService, boolean>;
|
|
58
|
+
specialServices: Record<SpecialService, boolean>;
|
|
59
|
+
images: string[];
|
|
60
|
+
videos: string[];
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export interface ContactDTO {
|
|
64
|
+
name: string;
|
|
65
|
+
phone: string;
|
|
66
|
+
location: Location;
|
|
67
|
+
address: string;
|
|
68
|
+
methods: Record<ContactMethod, boolean>
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export interface AdditionalInfoDTO {
|
|
72
|
+
nationality: NationalityOption;
|
|
73
|
+
experience: ExperienceLevel;
|
|
74
|
+
age: AgeRange;
|
|
75
|
+
services: Record<ServiceType, boolean>;
|
|
76
|
+
offersTo: Record<ServicesFor, boolean>;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export interface AboutDTO {
|
|
80
|
+
height: number | null;
|
|
81
|
+
weight: number | null;
|
|
82
|
+
shoeSize: number | null;
|
|
83
|
+
breastSize: BreastSize;
|
|
84
|
+
implants: boolean;
|
|
85
|
+
pubicStyle: ShaveStatus;
|
|
86
|
+
orientation: SexualOrientation;
|
|
87
|
+
smoker: boolean;
|
|
88
|
+
piercing: boolean;
|
|
89
|
+
tattoo: boolean;
|
|
90
|
+
hairColor: HairColor;
|
|
91
|
+
hairLength: HairLength;
|
|
92
|
+
}
|
|
93
|
+
|
|
51
94
|
export type CardDTO = Pick<
|
|
52
95
|
ModelDTO,
|
|
53
96
|
"id" | "media" | "identity" | "location" | "physical" | "listing"
|
|
@@ -74,6 +117,7 @@ export type ActivityStatus = "active" | "inactive";
|
|
|
74
117
|
|
|
75
118
|
export type SupportedCurrency = "EUR" | "CZK" | null;
|
|
76
119
|
|
|
120
|
+
//SECURITY
|
|
77
121
|
export interface RegisterUserDto {
|
|
78
122
|
email: string;
|
|
79
123
|
password: string;
|
|
@@ -110,48 +154,6 @@ export interface ScheduleDTO {
|
|
|
110
154
|
sunday: DaySchedule;
|
|
111
155
|
}
|
|
112
156
|
|
|
113
|
-
//PRICING
|
|
114
|
-
export interface ChargingOption {
|
|
115
|
-
cost: number;
|
|
116
|
-
currency: SupportedCurrency;
|
|
117
|
-
duration: string;
|
|
118
|
-
id?: string; //id for radio
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
export interface FreeOfChargeOption {
|
|
122
|
-
amount: string; // "bez"
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
export interface InfoPoint {
|
|
126
|
-
point: string;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
export interface ListingPricingDTO {
|
|
130
|
-
id: string;
|
|
131
|
-
title: string;
|
|
132
|
-
description: string;
|
|
133
|
-
chargingOptions: ChargingOption[];
|
|
134
|
-
infoPoints: InfoPoint[];
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
export interface ToppedPricingDTO {
|
|
138
|
-
id: string;
|
|
139
|
-
title: string;
|
|
140
|
-
description: string;
|
|
141
|
-
displayFreeOfChargeOption: boolean;
|
|
142
|
-
freeOfChargeOption?: FreeOfChargeOption;
|
|
143
|
-
generalTopped: {
|
|
144
|
-
title: string;
|
|
145
|
-
description: string;
|
|
146
|
-
chargingOptions: ChargingOption[];
|
|
147
|
-
}
|
|
148
|
-
countyTopped: {
|
|
149
|
-
title: string;
|
|
150
|
-
description: string;
|
|
151
|
-
chargingOptions: ChargingOption[];
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
|
|
155
157
|
//PAYMENT
|
|
156
158
|
export interface PaymentOptionDTO {
|
|
157
159
|
id: string;
|