@exclusive-website/types 1.2.4 → 1.2.6

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,4 +1,4 @@
1
- import { AvailableService, BreastSize, ContactMethod, DayStatus, ExperienceLevel, HairColor, HairLength, Language, NationalityOption, OtherOption, Practice, ServicesFor, ServiceType, SexualOrientation, ShaveStatus, SpecialService } from "./filterEnums";
1
+ import { AvailableService, BreastSize, ContactMethod, DayStatus, ExperienceLevel, HairColor, HairLength, Language, NationalityOption, OtherOption, Practice, ServicesFor, ServiceType, SexualOrientation, ShaveStatus, SpecialService, Location } from "./filterEnums";
2
2
  export interface ModelDTO {
3
3
  id: number;
4
4
  media: {
@@ -128,3 +128,50 @@ export interface ToppedPricingDTO {
128
128
  chargingOptions: ChargingOption[];
129
129
  };
130
130
  }
131
+ export interface PaymentOptionDTO {
132
+ id: string;
133
+ title: string;
134
+ description: string;
135
+ images?: {
136
+ url: string;
137
+ alt: string;
138
+ width: number;
139
+ height: number;
140
+ }[];
141
+ }
142
+ export interface ChargingOption {
143
+ cost: number;
144
+ currency: SupportedCurrency;
145
+ duration: string;
146
+ id?: string;
147
+ }
148
+ export interface FreeOfChargeOption {
149
+ amount: string;
150
+ }
151
+ export interface InfoPoint {
152
+ point: string;
153
+ }
154
+ export interface ListingPricingDTO {
155
+ id: string;
156
+ title: string;
157
+ description: string;
158
+ chargingOptions: ChargingOption[];
159
+ infoPoints: InfoPoint[];
160
+ }
161
+ export interface ToppedPricingDTO {
162
+ id: string;
163
+ title: string;
164
+ description: string;
165
+ displayFreeOfChargeOption: boolean;
166
+ freeOfChargeOption?: FreeOfChargeOption;
167
+ generalTopped: {
168
+ title: string;
169
+ description: string;
170
+ chargingOptions: ChargingOption[];
171
+ };
172
+ countyTopped: {
173
+ title: string;
174
+ description: string;
175
+ chargingOptions: ChargingOption[];
176
+ };
177
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exclusive-website/types",
3
- "version": "1.2.4",
3
+ "version": "1.2.6",
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 { AvailabilityStatus, AvailableService, BreastSize, ContactMethod, DayStatus, ExperienceLevel, HairColor, HairLength, Language, NationalityOption, OtherOption, Practice, ServicesFor, ServiceType, SexualOrientation, ShaveStatus, SpecialService } from "./filterEnums";
1
+ import { AvailableService, BreastSize, ContactMethod, DayStatus, ExperienceLevel, HairColor, HairLength, Language, NationalityOption, OtherOption, Practice, ServicesFor, ServiceType, SexualOrientation, ShaveStatus, SpecialService, Location } from "./filterEnums";
2
2
 
3
3
  export interface ModelDTO {
4
4
  id: number;
@@ -132,6 +132,61 @@ export interface ListingPricingDTO {
132
132
  infoPoints: InfoPoint[];
133
133
  }
134
134
 
135
+ export interface ToppedPricingDTO {
136
+ id: string;
137
+ title: string;
138
+ description: string;
139
+ displayFreeOfChargeOption: boolean;
140
+ freeOfChargeOption?: FreeOfChargeOption;
141
+ generalTopped: {
142
+ title: string;
143
+ description: string;
144
+ chargingOptions: ChargingOption[];
145
+ }
146
+ countyTopped: {
147
+ title: string;
148
+ description: string;
149
+ chargingOptions: ChargingOption[];
150
+ }
151
+ }
152
+
153
+ //PAYMENT
154
+ export interface PaymentOptionDTO {
155
+ id: string;
156
+ title: string;
157
+ description: string;
158
+ images?:
159
+ {
160
+ url: string,
161
+ alt: string,
162
+ width: number,
163
+ height: number,
164
+ }[],
165
+ }
166
+
167
+ export interface ChargingOption {
168
+ cost: number;
169
+ currency: SupportedCurrency;
170
+ duration: string;
171
+ id?: string; //id for radio
172
+ }
173
+
174
+ export interface FreeOfChargeOption {
175
+ amount: string; // "bez"
176
+ }
177
+
178
+ export interface InfoPoint {
179
+ point: string;
180
+ }
181
+
182
+ export interface ListingPricingDTO {
183
+ id: string;
184
+ title: string;
185
+ description: string;
186
+ chargingOptions: ChargingOption[];
187
+ infoPoints: InfoPoint[];
188
+ }
189
+
135
190
  export interface ToppedPricingDTO {
136
191
  id: string;
137
192
  title: string;