@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/dist/types.d.ts CHANGED
@@ -1,182 +1,160 @@
1
- import { AvailableService, BreastSize, ContactMethod, DayStatus, ExperienceLevel, HairColor, HairLength, Language, NationalityOption, OtherOption, Practice, ServicesFor, ServiceType, SexualOrientation, ShaveStatus, SpecialService, Location, AgeRange } from "./filterEnums";
2
- export interface ModelDTO {
3
- id: number;
4
- media: {
5
- images: string[];
6
- videos: string[];
7
- };
8
- identity: {
9
- nickname: string;
10
- nationality: NationalityOption;
11
- languages: Language[];
12
- sexualOrientation: SexualOrientation;
13
- phoneNumber: string;
14
- };
15
- location: {
16
- city: Location;
17
- };
18
- physical: {
19
- age: number;
20
- weight: number;
21
- height: number;
22
- breastSize: BreastSize;
23
- hairColor: HairColor;
24
- hairLength: HairLength;
25
- shaveStatus: ShaveStatus;
26
- hasTattoo: boolean;
27
- hasPiercing: boolean;
28
- isSmoker: boolean;
29
- };
30
- servicesInfo: {
31
- serviceType: ServiceType;
32
- experience: ExperienceLevel;
33
- services: AvailableService[];
34
- servicesFor: ServicesFor[];
35
- otherSpecialServices: OtherOption[];
36
- specialServices: SpecialService[];
37
- practices: Practice[];
38
- };
39
- listing: {
40
- isNew: boolean;
41
- isTopped: boolean;
42
- isAvailable: boolean;
43
- listingExpired: boolean;
44
- description: string;
45
- contactMethods: ContactMethod[];
46
- };
47
- schedule: ScheduleDTO;
48
- }
49
- export interface ListingDTO {
50
- id: string;
51
- contact: ContactDTO;
52
- additionalInfo: AdditionalInfoDTO;
53
- about: AboutDTO;
54
- languages: Language[];
55
- services: Record<AvailableService, boolean>;
56
- specialServices: Record<SpecialService, boolean>;
57
- images: string[];
58
- videos: string[];
59
- }
60
- export interface ContactDTO {
61
- name: string;
62
- phone: string;
63
- location: Location;
64
- address: string;
65
- methods: Record<ContactMethod, boolean>;
66
- }
67
- export interface AdditionalInfoDTO {
68
- nationality: NationalityOption;
69
- experience: ExperienceLevel;
70
- age: AgeRange;
71
- services: Record<ServiceType, boolean>;
72
- offersTo: Record<ServicesFor, boolean>;
73
- }
74
- export interface AboutDTO {
75
- height: number | null;
76
- weight: number | null;
77
- shoeSize: number | null;
78
- breastSize: BreastSize;
79
- implants: boolean;
80
- pubicStyle: ShaveStatus;
81
- orientation: SexualOrientation;
82
- smoker: boolean;
83
- piercing: boolean;
84
- tattoo: boolean;
85
- hairColor: HairColor;
86
- hairLength: HairLength;
87
- }
88
- export type CardDTO = Pick<ModelDTO, "id" | "media" | "identity" | "location" | "physical" | "listing">;
89
- export interface ModelListingDTO {
90
- id: string;
91
- listingId: string;
92
- nickname: string;
93
- city: string;
94
- image: string[];
95
- activityStatus: "active" | "inactive";
96
- approved: boolean;
97
- expirationTime: number;
98
- listingExpired: boolean;
99
- toppedDuration: number;
100
- toppedExpired: boolean;
101
- views: number;
102
- creationDate: string;
103
- inModelDashboard: boolean;
104
- }
105
- export type ActivityStatus = "active" | "inactive";
106
- export type SupportedCurrency = "EUR" | "CZK" | null;
107
- export interface RegisterUserDto {
108
- email: string;
109
- password: string;
110
- }
111
- export interface LoginUserDto {
112
- email: string;
113
- password: string;
114
- }
115
- export interface JwtDto {
116
- token: string;
117
- }
118
- export interface TimeRange {
119
- from: string;
120
- to: string;
121
- }
122
- export interface DaySchedule {
123
- status: DayStatus;
124
- delivery?: boolean;
125
- workingHours?: TimeRange;
126
- }
127
- export interface ScheduleDTO {
128
- monday: DaySchedule;
129
- tuesday: DaySchedule;
130
- wednesday: DaySchedule;
131
- thursday: DaySchedule;
132
- friday: DaySchedule;
133
- saturday: DaySchedule;
134
- sunday: DaySchedule;
135
- }
136
- export interface PaymentOptionDTO {
137
- id: string;
138
- title: string;
139
- description: string;
140
- images?: {
141
- url: string;
142
- alt: string;
143
- width: number;
144
- height: number;
145
- }[];
146
- }
147
- export interface ChargingOption {
148
- cost: number;
149
- currency: SupportedCurrency;
150
- duration: string;
151
- id?: string;
152
- }
153
- export interface FreeOfChargeOption {
154
- amount: string;
155
- }
156
- export interface InfoPoint {
157
- point: string;
158
- }
159
- export interface ListingPricingDTO {
160
- id: string;
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.0",
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
+ }