@exclusive-website/types 1.3.0 → 1.3.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/.idea/exclusive-girls-types.iml +12 -0
- package/.idea/modules.xml +8 -0
- package/.idea/vcs.xml +6 -0
- package/dist/filterEnums.d.ts +125 -136
- package/dist/filterEnums.js +150 -165
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/types.d.ts +160 -182
- package/dist/types.js +1 -1
- package/package.json +34 -34
- package/src/filterEnums.ts +148 -163
- package/src/index.ts +1 -1
- package/src/types.ts +196 -209
- package/tsconfig.json +15 -15
package/dist/types.d.ts
CHANGED
|
@@ -1,182 +1,160 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export interface
|
|
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
|
-
export interface
|
|
50
|
-
id:
|
|
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
|
-
export
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
}
|
|
105
|
-
export
|
|
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
|
-
title: string;
|
|
162
|
-
description: string;
|
|
163
|
-
chargingOptions: ChargingOption[];
|
|
164
|
-
infoPoints: InfoPoint[];
|
|
165
|
-
}
|
|
166
|
-
export interface ToppedPricingDTO {
|
|
167
|
-
id: string;
|
|
168
|
-
title: string;
|
|
169
|
-
description: string;
|
|
170
|
-
displayFreeOfChargeOption: boolean;
|
|
171
|
-
freeOfChargeOption?: FreeOfChargeOption;
|
|
172
|
-
generalTopped: {
|
|
173
|
-
title: string;
|
|
174
|
-
description: string;
|
|
175
|
-
chargingOptions: ChargingOption[];
|
|
176
|
-
};
|
|
177
|
-
countyTopped: {
|
|
178
|
-
title: string;
|
|
179
|
-
description: string;
|
|
180
|
-
chargingOptions: ChargingOption[];
|
|
181
|
-
};
|
|
182
|
-
}
|
|
1
|
+
import { ContactMethod, DayStatus, ExperienceLevel, HairColor, HairLength, Language, Location, NationalityOption, OtherPractise, Practise, ServicesFor, ServiceType, SexualOrientation, ShaveStatus } from "./filterEnums";
|
|
2
|
+
export interface ModelWriteDto {
|
|
3
|
+
nickname: string;
|
|
4
|
+
phoneNumber: string;
|
|
5
|
+
isClir: boolean;
|
|
6
|
+
contactMethods: ContactMethod[];
|
|
7
|
+
nationality: NationalityOption;
|
|
8
|
+
experience: ExperienceLevel;
|
|
9
|
+
age: number;
|
|
10
|
+
serviceType: ServiceType;
|
|
11
|
+
servicesFor: ServicesFor[];
|
|
12
|
+
height: number;
|
|
13
|
+
weight: number;
|
|
14
|
+
feetSize: number;
|
|
15
|
+
breastSize: number;
|
|
16
|
+
isSiliconeBreast: boolean;
|
|
17
|
+
shaveStatus: ShaveStatus;
|
|
18
|
+
sexualOrientation: SexualOrientation;
|
|
19
|
+
isSmoker: boolean;
|
|
20
|
+
hasPiercing: boolean;
|
|
21
|
+
hasTattoo: boolean;
|
|
22
|
+
hairColor: HairColor;
|
|
23
|
+
hairLength: HairLength;
|
|
24
|
+
language: Language[];
|
|
25
|
+
description: string;
|
|
26
|
+
practice: Practise[];
|
|
27
|
+
otherService: OtherPractise[];
|
|
28
|
+
region: Location;
|
|
29
|
+
address: string;
|
|
30
|
+
workingTime: DaySchedule[];
|
|
31
|
+
featuredImage: number;
|
|
32
|
+
media: number[];
|
|
33
|
+
}
|
|
34
|
+
export interface ModelShortReadDto {
|
|
35
|
+
nickname: string;
|
|
36
|
+
age: number;
|
|
37
|
+
region: Location;
|
|
38
|
+
isNew: boolean;
|
|
39
|
+
isTopped: boolean;
|
|
40
|
+
isAvailable: boolean;
|
|
41
|
+
featuredImage: string;
|
|
42
|
+
photos: string[];
|
|
43
|
+
height: number;
|
|
44
|
+
weight: number;
|
|
45
|
+
breastSize: number;
|
|
46
|
+
hairColor: HairColor;
|
|
47
|
+
hairLength: HairLength;
|
|
48
|
+
}
|
|
49
|
+
export interface ModelReadDto {
|
|
50
|
+
id: number;
|
|
51
|
+
nickname: string;
|
|
52
|
+
age: number;
|
|
53
|
+
region: Location;
|
|
54
|
+
isNew: boolean;
|
|
55
|
+
isTopped: boolean;
|
|
56
|
+
isAvailable: boolean;
|
|
57
|
+
featuredImage: string;
|
|
58
|
+
photos: string[];
|
|
59
|
+
height: number;
|
|
60
|
+
weight: number;
|
|
61
|
+
breastSize: number;
|
|
62
|
+
hairColor: HairColor;
|
|
63
|
+
hairLength: HairLength;
|
|
64
|
+
isSmoker: boolean;
|
|
65
|
+
shaveStatus: ShaveStatus;
|
|
66
|
+
hasPiercing: boolean;
|
|
67
|
+
hasTattoo: boolean;
|
|
68
|
+
experience: ExperienceLevel;
|
|
69
|
+
serviceType: ServiceType;
|
|
70
|
+
nationality: NationalityOption;
|
|
71
|
+
language: Language[];
|
|
72
|
+
servicesFor: ServicesFor[];
|
|
73
|
+
description: string;
|
|
74
|
+
practice: Practise[];
|
|
75
|
+
otherService: OtherPractise[];
|
|
76
|
+
phoneNumber: string;
|
|
77
|
+
isClir: boolean;
|
|
78
|
+
contactMethods: ContactMethod[];
|
|
79
|
+
workingTime: DaySchedule[];
|
|
80
|
+
seenCounter: number;
|
|
81
|
+
created: Date;
|
|
82
|
+
}
|
|
83
|
+
export type SupportedCurrency = "EUR" | "CZK" | null;
|
|
84
|
+
export interface RegisterUserDto {
|
|
85
|
+
email: string;
|
|
86
|
+
password: string;
|
|
87
|
+
}
|
|
88
|
+
export interface LoginUserDto {
|
|
89
|
+
email: string;
|
|
90
|
+
password: string;
|
|
91
|
+
}
|
|
92
|
+
export interface JwtDto {
|
|
93
|
+
token: string;
|
|
94
|
+
}
|
|
95
|
+
export interface TimeRange {
|
|
96
|
+
from: string;
|
|
97
|
+
to: string;
|
|
98
|
+
}
|
|
99
|
+
export interface DaySchedule {
|
|
100
|
+
status: DayStatus;
|
|
101
|
+
delivery?: boolean;
|
|
102
|
+
workingTimeFrom: String;
|
|
103
|
+
workingTimeTo: String;
|
|
104
|
+
}
|
|
105
|
+
export interface ScheduleDTO {
|
|
106
|
+
monday: DaySchedule;
|
|
107
|
+
tuesday: DaySchedule;
|
|
108
|
+
wednesday: DaySchedule;
|
|
109
|
+
thursday: DaySchedule;
|
|
110
|
+
friday: DaySchedule;
|
|
111
|
+
saturday: DaySchedule;
|
|
112
|
+
sunday: DaySchedule;
|
|
113
|
+
}
|
|
114
|
+
export interface PaymentOptionDTO {
|
|
115
|
+
id: string;
|
|
116
|
+
title: string;
|
|
117
|
+
description: string;
|
|
118
|
+
images?: {
|
|
119
|
+
url: string;
|
|
120
|
+
alt: string;
|
|
121
|
+
width: number;
|
|
122
|
+
height: number;
|
|
123
|
+
}[];
|
|
124
|
+
}
|
|
125
|
+
export interface ChargingOption {
|
|
126
|
+
cost: number;
|
|
127
|
+
currency: SupportedCurrency;
|
|
128
|
+
duration: string;
|
|
129
|
+
id?: string;
|
|
130
|
+
}
|
|
131
|
+
export interface FreeOfChargeOption {
|
|
132
|
+
amount: string;
|
|
133
|
+
}
|
|
134
|
+
export interface InfoPoint {
|
|
135
|
+
point: string;
|
|
136
|
+
}
|
|
137
|
+
export interface ListingPricingDTO {
|
|
138
|
+
id: string;
|
|
139
|
+
title: string;
|
|
140
|
+
description: string;
|
|
141
|
+
chargingOptions: ChargingOption[];
|
|
142
|
+
infoPoints: InfoPoint[];
|
|
143
|
+
}
|
|
144
|
+
export interface ToppedPricingDTO {
|
|
145
|
+
id: string;
|
|
146
|
+
title: string;
|
|
147
|
+
description: string;
|
|
148
|
+
displayFreeOfChargeOption: boolean;
|
|
149
|
+
freeOfChargeOption?: FreeOfChargeOption;
|
|
150
|
+
generalTopped: {
|
|
151
|
+
title: string;
|
|
152
|
+
description: string;
|
|
153
|
+
chargingOptions: ChargingOption[];
|
|
154
|
+
};
|
|
155
|
+
countyTopped: {
|
|
156
|
+
title: string;
|
|
157
|
+
description: string;
|
|
158
|
+
chargingOptions: ChargingOption[];
|
|
159
|
+
};
|
|
160
|
+
}
|
package/dist/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@exclusive-website/types",
|
|
3
|
-
"version": "1.3.
|
|
4
|
-
"description": "A collection of shared types (DTOs and DBEs) for the organization",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"types": "dist/index.d.ts",
|
|
7
|
-
"exports": {
|
|
8
|
-
".": {
|
|
9
|
-
"import": "./dist/index.js",
|
|
10
|
-
"types": "./dist/index.d.ts"
|
|
11
|
-
},
|
|
12
|
-
"./filterEnums": {
|
|
13
|
-
"import": "./dist/filterEnums.js",
|
|
14
|
-
"types": "./dist/filterEnums.d.ts"
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
"scripts": {
|
|
18
|
-
"build": "tsc",
|
|
19
|
-
"test": "echo \"No tests yet\" && exit 0"
|
|
20
|
-
},
|
|
21
|
-
"devDependencies": {
|
|
22
|
-
"typescript": "^4.0.0"
|
|
23
|
-
},
|
|
24
|
-
"dependencies": {},
|
|
25
|
-
"publishConfig": {
|
|
26
|
-
"access": "public"
|
|
27
|
-
},
|
|
28
|
-
"author": "Metinas",
|
|
29
|
-
"license": "MIT",
|
|
30
|
-
"repository": {
|
|
31
|
-
"type": "git",
|
|
32
|
-
"url": "https://github.com/exclusive-website/exclusive-girls-types.git"
|
|
33
|
-
}
|
|
34
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@exclusive-website/types",
|
|
3
|
+
"version": "1.3.2",
|
|
4
|
+
"description": "A collection of shared types (DTOs and DBEs) for the organization",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"import": "./dist/index.js",
|
|
10
|
+
"types": "./dist/index.d.ts"
|
|
11
|
+
},
|
|
12
|
+
"./filterEnums": {
|
|
13
|
+
"import": "./dist/filterEnums.js",
|
|
14
|
+
"types": "./dist/filterEnums.d.ts"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"scripts": {
|
|
18
|
+
"build": "tsc",
|
|
19
|
+
"test": "echo \"No tests yet\" && exit 0"
|
|
20
|
+
},
|
|
21
|
+
"devDependencies": {
|
|
22
|
+
"typescript": "^4.0.0"
|
|
23
|
+
},
|
|
24
|
+
"dependencies": {},
|
|
25
|
+
"publishConfig": {
|
|
26
|
+
"access": "public"
|
|
27
|
+
},
|
|
28
|
+
"author": "Metinas",
|
|
29
|
+
"license": "MIT",
|
|
30
|
+
"repository": {
|
|
31
|
+
"type": "git",
|
|
32
|
+
"url": "https://github.com/exclusive-website/exclusive-girls-types.git"
|
|
33
|
+
}
|
|
34
|
+
}
|