@exclusive-website/types 2.2.6 → 2.2.8

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.
@@ -0,0 +1,12 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module type="WEB_MODULE" version="4">
3
+ <component name="NewModuleRootManager">
4
+ <content url="file://$MODULE_DIR$">
5
+ <excludeFolder url="file://$MODULE_DIR$/.tmp" />
6
+ <excludeFolder url="file://$MODULE_DIR$/temp" />
7
+ <excludeFolder url="file://$MODULE_DIR$/tmp" />
8
+ </content>
9
+ <orderEntry type="inheritedJdk" />
10
+ <orderEntry type="sourceFolder" forTests="false" />
11
+ </component>
12
+ </module>
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectModuleManager">
4
+ <modules>
5
+ <module fileurl="file://$PROJECT_DIR$/.idea/exclusive-girls-types.iml" filepath="$PROJECT_DIR$/.idea/exclusive-girls-types.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
package/.idea/vcs.xml ADDED
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="" vcs="Git" />
5
+ </component>
6
+ </project>
@@ -225,3 +225,14 @@ export declare enum Availability {
225
225
  AVAILABLE = "AVAILABLE",
226
226
  UNAVAILABLE = "UNAVAILABLE"
227
227
  }
228
+ export declare enum Currency {
229
+ EUR = "EUR",
230
+ CZK = "CZK",
231
+ HUF = "HUF",
232
+ PLN = "PLN"
233
+ }
234
+ export declare enum PricingCategory {
235
+ PUBLISHED = "PUBLISHED",
236
+ FEATURED_MAIN_PAGE = "FEATURED_MAIN_PAGE",
237
+ FEATURED_REGION = "FEATURED_REGION"
238
+ }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Availability = exports.HairLength = exports.HairColor = exports.ShaveStatus = exports.OtherPractise = exports.Practise = exports.UserRole = exports.ServicesFor = exports.ContactMethod = exports.NationalityOption = exports.BreastSize = exports.AvailabilityStatus = exports.AgeRange = exports.Language = exports.DayOfWeek = exports.City = exports.Region = exports.Country = exports.ServiceType = exports.ExperienceLevel = exports.SexualOrientation = exports.DayStatus = void 0;
3
+ exports.PricingCategory = exports.Currency = exports.Availability = exports.HairLength = exports.HairColor = exports.ShaveStatus = exports.OtherPractise = exports.Practise = exports.UserRole = exports.ServicesFor = exports.ContactMethod = exports.NationalityOption = exports.BreastSize = exports.AvailabilityStatus = exports.AgeRange = exports.Language = exports.DayOfWeek = exports.City = exports.Region = exports.Country = exports.ServiceType = exports.ExperienceLevel = exports.SexualOrientation = exports.DayStatus = void 0;
4
4
  // DAY STATUS
5
5
  var DayStatus;
6
6
  (function (DayStatus) {
@@ -267,3 +267,16 @@ var Availability;
267
267
  Availability["AVAILABLE"] = "AVAILABLE";
268
268
  Availability["UNAVAILABLE"] = "UNAVAILABLE";
269
269
  })(Availability = exports.Availability || (exports.Availability = {}));
270
+ var Currency;
271
+ (function (Currency) {
272
+ Currency["EUR"] = "EUR";
273
+ Currency["CZK"] = "CZK";
274
+ Currency["HUF"] = "HUF";
275
+ Currency["PLN"] = "PLN";
276
+ })(Currency = exports.Currency || (exports.Currency = {}));
277
+ var PricingCategory;
278
+ (function (PricingCategory) {
279
+ PricingCategory["PUBLISHED"] = "PUBLISHED";
280
+ PricingCategory["FEATURED_MAIN_PAGE"] = "FEATURED_MAIN_PAGE";
281
+ PricingCategory["FEATURED_REGION"] = "FEATURED_REGION";
282
+ })(PricingCategory = exports.PricingCategory || (exports.PricingCategory = {}));
package/dist/types.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Availability, ContactMethod, DayOfWeek, DayStatus, ExperienceLevel, HairColor, HairLength, Language, NationalityOption, OtherPractise, Practise, ServicesFor, ServiceType, SexualOrientation, ShaveStatus, UserRole } from "./filterEnums";
1
+ import { Availability, ContactMethod, Currency, DayOfWeek, DayStatus, ExperienceLevel, HairColor, HairLength, Language, NationalityOption, OtherPractise, Practise, PricingCategory, ServicesFor, ServiceType, SexualOrientation, ShaveStatus, UserRole } from "./filterEnums";
2
2
  export interface ModelWriteDto {
3
3
  nickname: string;
4
4
  phoneNumber: string;
@@ -186,54 +186,14 @@ export interface ResetPasswordDto {
186
186
  email: string;
187
187
  code: string;
188
188
  }
189
- export interface TimeRange {
190
- from: string;
191
- to: string;
192
- }
193
- export interface PaymentOptionDTO {
194
- id: string;
195
- title: string;
196
- description: string;
197
- images?: {
198
- url: string;
199
- alt: string;
200
- width: number;
201
- height: number;
202
- }[];
203
- }
204
- export interface ChargingOption {
205
- cost: number;
206
- currency: SupportedCurrency;
207
- duration: string;
208
- id?: string;
209
- }
210
- export interface FreeOfChargeOption {
211
- amount: string;
212
- }
213
- export interface InfoPoint {
214
- point: string;
215
- }
216
- export interface ListingPricingDTO {
217
- id: string;
218
- title: string;
219
- description: string;
220
- chargingOptions: ChargingOption[];
221
- infoPoints: InfoPoint[];
189
+ export interface ListingPricingReadDto {
190
+ id: number;
191
+ durationDays: number;
192
+ category: PricingCategory;
193
+ prices: PriceReadDto[];
222
194
  }
223
- export interface ToppedPricingDTO {
224
- id: string;
225
- title: string;
226
- description: string;
227
- displayFreeOfChargeOption: boolean;
228
- freeOfChargeOption?: FreeOfChargeOption;
229
- generalTopped: {
230
- title: string;
231
- description: string;
232
- chargingOptions: ChargingOption[];
233
- };
234
- countyTopped: {
235
- title: string;
236
- description: string;
237
- chargingOptions: ChargingOption[];
238
- };
195
+ export interface PriceReadDto {
196
+ id: number;
197
+ amount: number;
198
+ currency: Currency;
239
199
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exclusive-website/types",
3
- "version": "2.2.6",
3
+ "version": "2.2.8",
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",
@@ -270,4 +270,17 @@ export enum HairLength {
270
270
  export enum Availability {
271
271
  AVAILABLE = "AVAILABLE",
272
272
  UNAVAILABLE = "UNAVAILABLE",
273
+ }
274
+
275
+ export enum Currency {
276
+ EUR = "EUR",
277
+ CZK = "CZK",
278
+ HUF = "HUF",
279
+ PLN = "PLN",
280
+ }
281
+
282
+ export enum PricingCategory {
283
+ PUBLISHED = "PUBLISHED",
284
+ FEATURED_MAIN_PAGE = "FEATURED_MAIN_PAGE",
285
+ FEATURED_REGION = "FEATURED_REGION",
273
286
  }
package/src/types.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Availability,
3
- ContactMethod,
3
+ ContactMethod, Currency,
4
4
  DayOfWeek,
5
5
  DayStatus,
6
6
  ExperienceLevel,
@@ -9,7 +9,7 @@ import {
9
9
  Language,
10
10
  NationalityOption,
11
11
  OtherPractise,
12
- Practise,
12
+ Practise, PricingCategory,
13
13
  ServicesFor,
14
14
  ServiceType,
15
15
  SexualOrientation,
@@ -239,83 +239,15 @@ export interface ResetPasswordDto {
239
239
  code: string;
240
240
  }
241
241
 
242
-
243
-
244
-
245
-
246
-
247
-
248
-
249
- //SCHEDULE
250
- export interface TimeRange {
251
- from: string; // Format: "HH:mm"
252
- to: string; // Format: "HH:mm"
253
- }
254
-
255
- //PAYMENT
256
- export interface PaymentOptionDTO {
257
- id: string;
258
- title: string;
259
- description: string;
260
- images?: {
261
- url: string;
262
- alt: string;
263
- width: number;
264
- height: number;
265
- }[];
266
- }
267
-
268
-
269
-
270
-
271
-
272
-
273
-
274
-
275
-
276
- export interface ChargingOption {
277
- cost: number;
278
- currency: SupportedCurrency;
279
- duration: string;
280
- id?: string; //id for radio
281
- }
282
-
283
- export interface FreeOfChargeOption {
284
- amount: string; // "bez"
285
- }
286
-
287
- export interface InfoPoint {
288
- point: string;
289
- }
290
-
291
-
292
-
293
-
294
-
295
-
296
-
297
- export interface ListingPricingDTO {
298
- id: string;
299
- title: string;
300
- description: string;
301
- chargingOptions: ChargingOption[];
302
- infoPoints: InfoPoint[];
242
+ export interface ListingPricingReadDto {
243
+ id: number;
244
+ durationDays: number;
245
+ category: PricingCategory;
246
+ prices: PriceReadDto[];
303
247
  }
304
248
 
305
- export interface ToppedPricingDTO {
306
- id: string;
307
- title: string;
308
- description: string;
309
- displayFreeOfChargeOption: boolean;
310
- freeOfChargeOption?: FreeOfChargeOption;
311
- generalTopped: {
312
- title: string;
313
- description: string;
314
- chargingOptions: ChargingOption[];
315
- };
316
- countyTopped: {
317
- title: string;
318
- description: string;
319
- chargingOptions: ChargingOption[];
320
- };
249
+ export interface PriceReadDto {
250
+ id: number;
251
+ amount: number;
252
+ currency: Currency;
321
253
  }