@exclusive-website/types 1.2.7 → 1.2.9

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
@@ -64,20 +64,6 @@ export interface ModelListingDTO {
64
64
  inModelDashboard: boolean;
65
65
  }
66
66
  export type ActivityStatus = "active" | "inactive";
67
- export interface ModelListingDTO {
68
- id: string;
69
- listingId: string;
70
- nickname: string;
71
- city: string;
72
- image: string[];
73
- activityStatus: ActivityStatus;
74
- approved: boolean;
75
- expirationTime: number;
76
- toppedDuration: number;
77
- views: number;
78
- creationDate: string;
79
- inModelDashboard: boolean;
80
- }
81
67
  export type SupportedCurrency = "EUR" | "CZK" | null;
82
68
  export interface RegisterUserDto {
83
69
  email: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exclusive-website/types",
3
- "version": "1.2.7",
3
+ "version": "1.2.9",
4
4
  "description": "A collection of shared types (DTOs and DBEs) for the organization",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/types.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { AvailableService, BreastSize, ContactMethod, DayStatus, ExperienceLevel, HairColor, HairLength, Language, NationalityOption, OtherOption, Practice, ServicesFor, ServiceType, SexualOrientation, ShaveStatus, SpecialService, Location } from "./filterEnums";
1
+ import { AvailableService, BreastSize, ContactMethod, DayStatus, ExperienceLevel, HairColor, HairLength, Language, NationalityOption, OtherOption, Practice, ServicesFor, ServiceType, SexualOrientation, ShaveStatus, SpecialService, Location, AgeRange } from "./filterEnums";
2
2
 
3
3
  export interface ModelDTO {
4
4
  id: number;
@@ -48,6 +48,49 @@ export interface ModelDTO {
48
48
  schedule: ScheduleDTO;
49
49
  }
50
50
 
51
+ export interface ListingDTO {
52
+ id: string;
53
+ contact: ContactDTO;
54
+ additionalInfo: AdditionalInfoDTO;
55
+ about: AboutDTO;
56
+ languages: Language[];
57
+ services: Record<AvailableService, boolean>;
58
+ specialServices: Record<SpecialService, boolean>;
59
+ images: string[];
60
+ videos: string[];
61
+ }
62
+
63
+ export interface ContactDTO {
64
+ name: string;
65
+ phone: string;
66
+ location: Location;
67
+ address: string;
68
+ methods: Record<ContactMethod, boolean>
69
+ }
70
+
71
+ export interface AdditionalInfoDTO {
72
+ nationality: NationalityOption;
73
+ experience: ExperienceLevel;
74
+ age: AgeRange;
75
+ services: Record<ServiceType, boolean>;
76
+ offersTo: Record<ServicesFor, boolean>;
77
+ }
78
+
79
+ export interface AboutDTO {
80
+ height: number | null;
81
+ weight: number | null;
82
+ shoeSize: number | null;
83
+ breastSize: BreastSize;
84
+ implants: boolean;
85
+ pubicStyle: ShaveStatus;
86
+ orientation: SexualOrientation;
87
+ smoker: boolean;
88
+ piercing: boolean;
89
+ tattoo: boolean;
90
+ hairColor: HairColor;
91
+ hairLength: HairLength;
92
+ }
93
+
51
94
  export type CardDTO = Pick<
52
95
  ModelDTO,
53
96
  "id" | "media" | "identity" | "location" | "physical" | "listing"
@@ -72,23 +115,9 @@ export interface ModelListingDTO {
72
115
 
73
116
  export type ActivityStatus = "active" | "inactive";
74
117
 
75
- export interface ModelListingDTO {
76
- id: string;
77
- listingId: string;
78
- nickname: string;
79
- city: string;
80
- image: string[]; //array of urls
81
- activityStatus: ActivityStatus;
82
- approved: boolean;
83
- expirationTime: number; //in hours
84
- toppedDuration: number; //in hours
85
- views: number;
86
- creationDate: string; //format DD.MM.YYYY
87
- inModelDashboard: boolean;
88
- }
89
-
90
118
  export type SupportedCurrency = "EUR" | "CZK" | null;
91
119
 
120
+ //SECURITY
92
121
  export interface RegisterUserDto {
93
122
  email: string;
94
123
  password: string;
@@ -125,48 +154,6 @@ export interface ScheduleDTO {
125
154
  sunday: DaySchedule;
126
155
  }
127
156
 
128
- //PRICING
129
- export interface ChargingOption {
130
- cost: number;
131
- currency: SupportedCurrency;
132
- duration: string;
133
- id?: string; //id for radio
134
- }
135
-
136
- export interface FreeOfChargeOption {
137
- amount: string; // "bez"
138
- }
139
-
140
- export interface InfoPoint {
141
- point: string;
142
- }
143
-
144
- export interface ListingPricingDTO {
145
- id: string;
146
- title: string;
147
- description: string;
148
- chargingOptions: ChargingOption[];
149
- infoPoints: InfoPoint[];
150
- }
151
-
152
- export interface ToppedPricingDTO {
153
- id: string;
154
- title: string;
155
- description: string;
156
- displayFreeOfChargeOption: boolean;
157
- freeOfChargeOption?: FreeOfChargeOption;
158
- generalTopped: {
159
- title: string;
160
- description: string;
161
- chargingOptions: ChargingOption[];
162
- }
163
- countyTopped: {
164
- title: string;
165
- description: string;
166
- chargingOptions: ChargingOption[];
167
- }
168
- }
169
-
170
157
  //PAYMENT
171
158
  export interface PaymentOptionDTO {
172
159
  id: string;