@exclusive-website/types 1.6.1 → 1.6.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/src/types.ts CHANGED
@@ -1,212 +1,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
- }
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
+ schedule: ScheduleDTO;
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": "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
+ {
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
+ }