@exclusive-website/types 1.5.2 → 1.5.4
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/filterEnums.d.ts +129 -129
- package/dist/filterEnums.js +155 -158
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -18
- package/dist/types.d.ts +171 -172
- package/dist/types.js +1 -2
- package/package.json +34 -36
- package/src/filterEnums.ts +153 -153
- package/src/index.ts +1 -1
- package/src/types.ts +212 -212
- package/tsconfig.json +15 -15
- package/.idea/exclusive-girls-types.iml +0 -12
- package/.idea/modules.xml +0 -8
- package/.idea/vcs.xml +0 -6
package/src/types.ts
CHANGED
|
@@ -1,212 +1,212 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
export interface ChargingOption {
|
|
174
|
-
cost: number;
|
|
175
|
-
currency: SupportedCurrency;
|
|
176
|
-
duration: string;
|
|
177
|
-
id?: string; //id for radio
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
export interface FreeOfChargeOption {
|
|
181
|
-
amount: string; // "bez"
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
export interface InfoPoint {
|
|
185
|
-
point: string;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
export interface ListingPricingDTO {
|
|
189
|
-
id: string;
|
|
190
|
-
title: string;
|
|
191
|
-
description: string;
|
|
192
|
-
chargingOptions: ChargingOption[];
|
|
193
|
-
infoPoints: InfoPoint[];
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
export interface ToppedPricingDTO {
|
|
197
|
-
id: string;
|
|
198
|
-
title: string;
|
|
199
|
-
description: string;
|
|
200
|
-
displayFreeOfChargeOption: boolean;
|
|
201
|
-
freeOfChargeOption?: FreeOfChargeOption;
|
|
202
|
-
generalTopped: {
|
|
203
|
-
title: string;
|
|
204
|
-
description: string;
|
|
205
|
-
chargingOptions: ChargingOption[];
|
|
206
|
-
}
|
|
207
|
-
countyTopped: {
|
|
208
|
-
title: string;
|
|
209
|
-
description: string;
|
|
210
|
-
chargingOptions: ChargingOption[];
|
|
211
|
-
}
|
|
212
|
-
}
|
|
1
|
+
import {
|
|
2
|
+
AgeRange,
|
|
3
|
+
BreastSize,
|
|
4
|
+
ContactMethod,
|
|
5
|
+
DayStatus,
|
|
6
|
+
ExperienceLevel,
|
|
7
|
+
HairColor,
|
|
8
|
+
HairLength,
|
|
9
|
+
Language,
|
|
10
|
+
Location,
|
|
11
|
+
NationalityOption,
|
|
12
|
+
OtherPractise,
|
|
13
|
+
Practise,
|
|
14
|
+
ServicesFor,
|
|
15
|
+
ServiceType,
|
|
16
|
+
SexualOrientation,
|
|
17
|
+
ShaveStatus,
|
|
18
|
+
UserRole,
|
|
19
|
+
} from "./filterEnums";
|
|
20
|
+
|
|
21
|
+
export interface ModelWriteDto {
|
|
22
|
+
nickname: string;
|
|
23
|
+
phoneNumber: string;
|
|
24
|
+
isClir: boolean;
|
|
25
|
+
contactMethods: ContactMethod[];
|
|
26
|
+
nationality: NationalityOption;
|
|
27
|
+
experience: ExperienceLevel;
|
|
28
|
+
age: number;
|
|
29
|
+
serviceType: ServiceType;
|
|
30
|
+
servicesFor: ServicesFor[];
|
|
31
|
+
height: number;
|
|
32
|
+
weight: number;
|
|
33
|
+
feetSize: number;
|
|
34
|
+
breastSize: number;
|
|
35
|
+
isSiliconeBreast: boolean;
|
|
36
|
+
shaveStatus: ShaveStatus;
|
|
37
|
+
sexualOrientation: SexualOrientation;
|
|
38
|
+
isSmoker: boolean;
|
|
39
|
+
hasPiercing: boolean;
|
|
40
|
+
hasTattoo: boolean;
|
|
41
|
+
hairColor: HairColor;
|
|
42
|
+
hairLength: HairLength;
|
|
43
|
+
language: Language[];
|
|
44
|
+
description: string;
|
|
45
|
+
practice: Practise[];
|
|
46
|
+
otherService: OtherPractise[];
|
|
47
|
+
|
|
48
|
+
region: Location;
|
|
49
|
+
address: string;
|
|
50
|
+
workingTime: DaySchedule[];
|
|
51
|
+
featuredImage: number;
|
|
52
|
+
media: number[];
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export interface ModelListReadDto {
|
|
56
|
+
models: ModelShortReadDto[];
|
|
57
|
+
currentPage: number;
|
|
58
|
+
pageSize: number;
|
|
59
|
+
lastPage: number;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export interface ModelShortReadDto {
|
|
63
|
+
nickname: string;
|
|
64
|
+
age: number;
|
|
65
|
+
region: Location;
|
|
66
|
+
isNew: boolean;
|
|
67
|
+
isTopped: boolean;
|
|
68
|
+
isAvailable: boolean;
|
|
69
|
+
featuredImage: string;
|
|
70
|
+
photos: string[];
|
|
71
|
+
height: number;
|
|
72
|
+
weight: number;
|
|
73
|
+
breastSize: number;
|
|
74
|
+
hairColor: HairColor;
|
|
75
|
+
hairLength: HairLength;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export interface ModelReadDto {
|
|
79
|
+
id: number;
|
|
80
|
+
nickname: string;
|
|
81
|
+
age: number;
|
|
82
|
+
region: Location;
|
|
83
|
+
isNew: boolean;
|
|
84
|
+
isTopped: boolean;
|
|
85
|
+
isAvailable: boolean;
|
|
86
|
+
featuredImage: string;
|
|
87
|
+
photos: string[];
|
|
88
|
+
video: string[];
|
|
89
|
+
height: number;
|
|
90
|
+
weight: number;
|
|
91
|
+
breastSize: number;
|
|
92
|
+
hairColor: HairColor;
|
|
93
|
+
hairLength: HairLength;
|
|
94
|
+
isSmoker: boolean;
|
|
95
|
+
shaveStatus: ShaveStatus;
|
|
96
|
+
hasPiercing: boolean;
|
|
97
|
+
hasTattoo: boolean;
|
|
98
|
+
experience: ExperienceLevel;
|
|
99
|
+
serviceType: ServiceType;
|
|
100
|
+
nationality: NationalityOption;
|
|
101
|
+
language: Language[];
|
|
102
|
+
servicesFor: ServicesFor[];
|
|
103
|
+
description: string;
|
|
104
|
+
practice: Practise[];
|
|
105
|
+
otherService: OtherPractise[];
|
|
106
|
+
|
|
107
|
+
phoneNumber: string;
|
|
108
|
+
isClir: boolean;
|
|
109
|
+
contactMethods: ContactMethod[];
|
|
110
|
+
workingTime: DaySchedule[];
|
|
111
|
+
seenCounter: number;
|
|
112
|
+
created: Date;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export interface UserInfoReadDto {
|
|
116
|
+
id: number;
|
|
117
|
+
email: string;
|
|
118
|
+
role: UserRole;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export type SupportedCurrency = "EUR" | "CZK" | null;
|
|
122
|
+
|
|
123
|
+
//SECURITY
|
|
124
|
+
export interface RegisterUserDto {
|
|
125
|
+
email: string;
|
|
126
|
+
password: string;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export interface LoginUserDto {
|
|
130
|
+
email: string;
|
|
131
|
+
password: string;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export interface JwtDto {
|
|
135
|
+
token: string;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
//SCHEDULE
|
|
139
|
+
export interface TimeRange {
|
|
140
|
+
from: string; // Format: "HH:mm"
|
|
141
|
+
to: string; // Format: "HH:mm"
|
|
142
|
+
}
|
|
143
|
+
|
|
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
|
+
//PAYMENT
|
|
161
|
+
export interface PaymentOptionDTO {
|
|
162
|
+
id: string;
|
|
163
|
+
title: string;
|
|
164
|
+
description: string;
|
|
165
|
+
images?: {
|
|
166
|
+
url: string;
|
|
167
|
+
alt: string;
|
|
168
|
+
width: number;
|
|
169
|
+
height: number;
|
|
170
|
+
}[];
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
export interface ChargingOption {
|
|
174
|
+
cost: number;
|
|
175
|
+
currency: SupportedCurrency;
|
|
176
|
+
duration: string;
|
|
177
|
+
id?: string; //id for radio
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
export interface FreeOfChargeOption {
|
|
181
|
+
amount: string; // "bez"
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
export interface InfoPoint {
|
|
185
|
+
point: string;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
export interface ListingPricingDTO {
|
|
189
|
+
id: string;
|
|
190
|
+
title: string;
|
|
191
|
+
description: string;
|
|
192
|
+
chargingOptions: ChargingOption[];
|
|
193
|
+
infoPoints: InfoPoint[];
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
export interface ToppedPricingDTO {
|
|
197
|
+
id: string;
|
|
198
|
+
title: string;
|
|
199
|
+
description: string;
|
|
200
|
+
displayFreeOfChargeOption: boolean;
|
|
201
|
+
freeOfChargeOption?: FreeOfChargeOption;
|
|
202
|
+
generalTopped: {
|
|
203
|
+
title: string;
|
|
204
|
+
description: string;
|
|
205
|
+
chargingOptions: ChargingOption[];
|
|
206
|
+
};
|
|
207
|
+
countyTopped: {
|
|
208
|
+
title: string;
|
|
209
|
+
description: string;
|
|
210
|
+
chargingOptions: ChargingOption[];
|
|
211
|
+
};
|
|
212
|
+
}
|
package/tsconfig.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "ES2015",
|
|
4
|
-
"module": "
|
|
5
|
-
"declaration": true,
|
|
6
|
-
"outDir": "dist",
|
|
7
|
-
"rootDir": "src",
|
|
8
|
-
"moduleResolution": "Node",
|
|
9
|
-
"esModuleInterop": true,
|
|
10
|
-
"forceConsistentCasingInFileNames": true,
|
|
11
|
-
"strict": true,
|
|
12
|
-
"skipLibCheck": true
|
|
13
|
-
},
|
|
14
|
-
"include": ["src"]
|
|
15
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2015",
|
|
4
|
+
"module": "ESNext",
|
|
5
|
+
"declaration": true,
|
|
6
|
+
"outDir": "dist",
|
|
7
|
+
"rootDir": "src",
|
|
8
|
+
"moduleResolution": "Node",
|
|
9
|
+
"esModuleInterop": true,
|
|
10
|
+
"forceConsistentCasingInFileNames": true,
|
|
11
|
+
"strict": true,
|
|
12
|
+
"skipLibCheck": true
|
|
13
|
+
},
|
|
14
|
+
"include": ["src"]
|
|
15
|
+
}
|
|
@@ -1,12 +0,0 @@
|
|
|
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>
|
package/.idea/modules.xml
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
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>
|