@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/src/types.ts CHANGED
@@ -1,212 +1,212 @@
1
- import {
2
- ContactMethod,
3
- DayStatus,
4
- ExperienceLevel,
5
- HairColor,
6
- HairLength,
7
- Language,
8
- Location,
9
- NationalityOption,
10
- OtherPractise,
11
- Practise,
12
- ServicesFor,
13
- ServiceType,
14
- SexualOrientation,
15
- ShaveStatus,
16
- UserRole,
17
- } from "./filterEnums";
18
-
19
- export interface ModelWriteDto {
20
- nickname: string
21
- phoneNumber: string
22
- isClir: boolean
23
- contactMethods: ContactMethod[]
24
- nationality: NationalityOption
25
- experience: ExperienceLevel
26
- age: number
27
- serviceType: ServiceType
28
- servicesFor: ServicesFor[]
29
- height: number
30
- weight: number
31
- feetSize: number
32
- breastSize: number
33
- isSiliconeBreast: boolean
34
- shaveStatus: ShaveStatus
35
- sexualOrientation: SexualOrientation
36
- isSmoker: boolean
37
- hasPiercing: boolean
38
- hasTattoo: boolean
39
- hairColor: HairColor
40
- hairLength: HairLength
41
- language: Language[]
42
- description: string
43
- practice: Practise[]
44
- otherService: OtherPractise[]
45
-
46
- region: Location
47
- address: string
48
- workingTime: DaySchedule[]
49
- featuredImage: number
50
- media: number[]
51
- }
52
-
53
- export interface ModelListReadDto {
54
- models: ModelShortReadDto[];
55
- currentPage: number;
56
- pageSize: number;
57
- lastPage: number;
58
- }
59
-
60
- export interface ModelShortReadDto {
61
- nickname: string
62
- age: number
63
- region: Location
64
- isNew: boolean
65
- isTopped: boolean
66
- isAvailable: boolean
67
- featuredImage: string
68
- photos: string[]
69
- height: number
70
- weight: number
71
- breastSize: number
72
- hairColor: HairColor
73
- hairLength: HairLength
74
- }
75
-
76
- export interface ModelReadDto {
77
- id: number
78
- nickname: string
79
- age: number
80
- region: Location
81
- isNew: boolean
82
- isTopped: boolean
83
- isAvailable: boolean
84
- featuredImage: string
85
- photos: string[]
86
- video: string[]
87
- height: number
88
- weight: number
89
- breastSize: number
90
- hairColor: HairColor
91
- hairLength: HairLength
92
- isSmoker: boolean
93
- shaveStatus: ShaveStatus
94
- hasPiercing: boolean
95
- hasTattoo: boolean
96
- experience: ExperienceLevel
97
- serviceType: ServiceType
98
- nationality: NationalityOption
99
- language: Language[]
100
- servicesFor: ServicesFor[]
101
- description: string
102
- practice: Practise[]
103
- otherService: OtherPractise[]
104
-
105
- phoneNumber: string
106
- isClir: boolean
107
- contactMethods: ContactMethod[]
108
- workingTime: DaySchedule[]
109
- seenCounter: number
110
- created: Date
111
- }
112
-
113
- export interface UserInfoReadDto {
114
- id: number;
115
- email: string;
116
- role: UserRole;
117
- }
118
-
119
- export type SupportedCurrency = "EUR" | "CZK" | null;
120
-
121
- //SECURITY
122
- export interface RegisterUserDto {
123
- email: string;
124
- password: string;
125
- }
126
-
127
- export interface LoginUserDto {
128
- email: string;
129
- password: string;
130
- }
131
-
132
- export interface JwtDto {
133
- token: string;
134
- }
135
-
136
- //SCHEDULE
137
- export interface TimeRange {
138
- from: string; // Format: "HH:mm"
139
- to: string; // Format: "HH:mm"
140
- }
141
-
142
- export interface DaySchedule {
143
- status: DayStatus;
144
- delivery?: boolean; // Optional, only relevant for PRACUJEM
145
- workingTimeFrom: String;
146
- workingTimeTo: String;
147
- }
148
-
149
- export interface ScheduleDTO {
150
- monday: DaySchedule;
151
- tuesday: DaySchedule;
152
- wednesday: DaySchedule;
153
- thursday: DaySchedule;
154
- friday: DaySchedule;
155
- saturday: DaySchedule;
156
- sunday: DaySchedule;
157
- }
158
-
159
- //PAYMENT
160
- export interface PaymentOptionDTO {
161
- id: string;
162
- title: string;
163
- description: string;
164
- images?:
165
- {
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
- }
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": "CommonJS",
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>
package/.idea/vcs.xml DELETED
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="VcsDirectoryMappings">
4
- <mapping directory="" vcs="Git" />
5
- </component>
6
- </project>