@exclusive-website/types 2.3.0 → 2.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.
@@ -245,9 +245,11 @@ export declare enum StateOfListing {
245
245
  export declare enum ApprovedState {
246
246
  ON_VERIFY = "ON_VERIFY",
247
247
  ON_CHANGE = "ON_CHANGE",
248
- APPROVED = "APPROVED"
248
+ APPROVED = "APPROVED",
249
+ DISCARDED = "DISCARDED"
249
250
  }
250
- export declare enum PaymentState {
251
+ export declare enum TransactionStatus {
251
252
  PAID = "PAID",
252
- UNPAID = "UNPAID"
253
+ UNPAID = "UNPAID",
254
+ NONE = "NONE"
253
255
  }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PaymentState = exports.ApprovedState = exports.StateOfListing = 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;
3
+ exports.TransactionStatus = exports.ApprovedState = exports.StateOfListing = 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) {
@@ -292,9 +292,11 @@ var ApprovedState;
292
292
  ApprovedState["ON_VERIFY"] = "ON_VERIFY";
293
293
  ApprovedState["ON_CHANGE"] = "ON_CHANGE";
294
294
  ApprovedState["APPROVED"] = "APPROVED";
295
+ ApprovedState["DISCARDED"] = "DISCARDED";
295
296
  })(ApprovedState = exports.ApprovedState || (exports.ApprovedState = {}));
296
- var PaymentState;
297
- (function (PaymentState) {
298
- PaymentState["PAID"] = "PAID";
299
- PaymentState["UNPAID"] = "UNPAID";
300
- })(PaymentState = exports.PaymentState || (exports.PaymentState = {}));
297
+ var TransactionStatus;
298
+ (function (TransactionStatus) {
299
+ TransactionStatus["PAID"] = "PAID";
300
+ TransactionStatus["UNPAID"] = "UNPAID";
301
+ TransactionStatus["NONE"] = "NONE";
302
+ })(TransactionStatus = exports.TransactionStatus || (exports.TransactionStatus = {}));
package/dist/types.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { ApprovedState, Availability, ContactMethod, Currency, DayOfWeek, DayStatus, ExperienceLevel, HairColor, HairLength, Language, NationalityOption, OtherPractise, PaymentState, Practise, PricingCategory, ServicesFor, ServiceType, SexualOrientation, ShaveStatus, StateOfListing, UserRole } from "./filterEnums";
1
+ import { ApprovedState, Availability, ContactMethod, Currency, DayOfWeek, DayStatus, ExperienceLevel, HairColor, HairLength, Language, NationalityOption, OtherPractise, Practise, PricingCategory, ServicesFor, ServiceType, SexualOrientation, ShaveStatus, StateOfListing, TransactionStatus, UserRole } from "./filterEnums";
2
2
  export interface ModelWriteDto {
3
3
  nickname: string;
4
4
  phoneNumber: string;
@@ -70,25 +70,6 @@ export interface ModelListReadDto {
70
70
  pageSize: number;
71
71
  lastPage: number;
72
72
  }
73
- export interface ListingAdminFilterQueryReadDto {
74
- query: ListingQueryReadDto;
75
- state: StateOfListing;
76
- }
77
- export interface ModelAdminListReadDto {
78
- models: ModelAdminShortReadDto[];
79
- currentPage: number;
80
- pageSize: number;
81
- lastPage: number;
82
- }
83
- export interface ModelAdminShortReadDto {
84
- id: number;
85
- variableSymbol: string;
86
- nickname: string;
87
- location: LocationDto;
88
- featuredImage: MediaDto;
89
- approvedState: ApprovedState;
90
- paymentState: PaymentState;
91
- }
92
73
  export interface ModelShortReadDto {
93
74
  id: number;
94
75
  nickname: string;
@@ -215,3 +196,75 @@ export interface PriceReadDto {
215
196
  amount: number;
216
197
  currency: Currency;
217
198
  }
199
+ export interface ListingAdminFilterQueryReadDto {
200
+ query: ListingQueryReadDto;
201
+ state: StateOfListing;
202
+ }
203
+ export interface ModelAdminListReadDto {
204
+ models: ModelAdminShortReadDto[];
205
+ currentPage: number;
206
+ pageSize: number;
207
+ lastPage: number;
208
+ }
209
+ export interface ModelAdminShortReadDto {
210
+ id: number;
211
+ variableSymbol: string;
212
+ nickname: string;
213
+ location: LocationDto;
214
+ featuredImage: MediaDto;
215
+ approvedState: ApprovedState;
216
+ transactionStatus: TransactionStatus;
217
+ }
218
+ export interface ModelAdminDetailReadDto {
219
+ id: number;
220
+ variableSymbol: string;
221
+ nickname: string;
222
+ age: number;
223
+ location: LocationDto;
224
+ isNew: boolean;
225
+ isTopped: boolean;
226
+ isAvailable: boolean;
227
+ featuredImage: MediaDto;
228
+ photos: MediaDto[];
229
+ video: MediaDto[];
230
+ height: number;
231
+ weight: number;
232
+ breastSize: number;
233
+ feetSize: number;
234
+ hairColor: HairColor;
235
+ hairLength: HairLength;
236
+ isSmoker: boolean;
237
+ shaveStatus: ShaveStatus;
238
+ hasPiercing: boolean;
239
+ hasTattoo: boolean;
240
+ experience: ExperienceLevel;
241
+ serviceType: ServiceType[];
242
+ nationality: NationalityOption;
243
+ language: Language[];
244
+ servicesFor: ServicesFor[];
245
+ description: string;
246
+ practice: Practise[];
247
+ otherService: OtherPractise[];
248
+ phoneNumber: string;
249
+ isClir: boolean;
250
+ contactMethods: ContactMethod[];
251
+ schedule: DaySchedule[];
252
+ created: Date;
253
+ approvedState: ApprovedState;
254
+ paymentState: TransactionStatus;
255
+ transactions: TransactionReadDto[];
256
+ }
257
+ export interface TransactionReadDto {
258
+ status: TransactionStatus;
259
+ totalAmount: number;
260
+ currency: Currency;
261
+ createdAt: Date;
262
+ paidAt: Date;
263
+ items: TransactionReadItemDto[];
264
+ }
265
+ export interface TransactionReadItemDto {
266
+ category: PricingCategory;
267
+ durationDays: number;
268
+ amount: number;
269
+ currency: Currency;
270
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exclusive-website/types",
3
- "version": "2.3.0",
3
+ "version": "2.3.2",
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",
@@ -296,9 +296,11 @@ export enum ApprovedState {
296
296
  ON_VERIFY = "ON_VERIFY",
297
297
  ON_CHANGE = "ON_CHANGE",
298
298
  APPROVED = "APPROVED",
299
+ DISCARDED = "DISCARDED",
299
300
  }
300
301
 
301
- export enum PaymentState {
302
+ export enum TransactionStatus {
302
303
  PAID = "PAID",
303
304
  UNPAID = "UNPAID",
305
+ NONE = "NONE",
304
306
  }
package/src/types.ts CHANGED
@@ -9,12 +9,12 @@ import {
9
9
  HairLength,
10
10
  Language,
11
11
  NationalityOption,
12
- OtherPractise, PaymentState,
12
+ OtherPractise,
13
13
  Practise, PricingCategory,
14
14
  ServicesFor,
15
15
  ServiceType,
16
16
  SexualOrientation,
17
- ShaveStatus, StateOfListing,
17
+ ShaveStatus, StateOfListing, TransactionStatus,
18
18
  UserRole,
19
19
  } from "./filterEnums";
20
20
 
@@ -96,28 +96,6 @@ export interface ModelListReadDto {
96
96
  lastPage: number;
97
97
  }
98
98
 
99
- export interface ListingAdminFilterQueryReadDto {
100
- query: ListingQueryReadDto;
101
- state: StateOfListing;
102
- }
103
-
104
- export interface ModelAdminListReadDto {
105
- models: ModelAdminShortReadDto[];
106
- currentPage: number;
107
- pageSize: number;
108
- lastPage: number;
109
- }
110
-
111
- export interface ModelAdminShortReadDto {
112
- id: number;
113
- variableSymbol: string;
114
- nickname: string;
115
- location: LocationDto;
116
- featuredImage: MediaDto;
117
- approvedState: ApprovedState;
118
- paymentState: PaymentState;
119
- }
120
-
121
99
  export interface ModelShortReadDto {
122
100
  id: number;
123
101
  nickname: string;
@@ -260,4 +238,82 @@ export interface PriceReadDto {
260
238
  id: number;
261
239
  amount: number;
262
240
  currency: Currency;
241
+ }
242
+
243
+ export interface ListingAdminFilterQueryReadDto {
244
+ query: ListingQueryReadDto;
245
+ state: StateOfListing;
246
+ }
247
+
248
+ export interface ModelAdminListReadDto {
249
+ models: ModelAdminShortReadDto[];
250
+ currentPage: number;
251
+ pageSize: number;
252
+ lastPage: number;
253
+ }
254
+
255
+ export interface ModelAdminShortReadDto {
256
+ id: number;
257
+ variableSymbol: string;
258
+ nickname: string;
259
+ location: LocationDto;
260
+ featuredImage: MediaDto;
261
+ approvedState: ApprovedState;
262
+ transactionStatus: TransactionStatus;
263
+ }
264
+
265
+ export interface ModelAdminDetailReadDto {
266
+ id: number;
267
+ variableSymbol: string;
268
+ nickname: string;
269
+ age: number;
270
+ location: LocationDto;
271
+ isNew: boolean;
272
+ isTopped: boolean;
273
+ isAvailable: boolean;
274
+ featuredImage: MediaDto;
275
+ photos: MediaDto[];
276
+ video: MediaDto[];
277
+ height: number;
278
+ weight: number;
279
+ breastSize: number;
280
+ feetSize: number;
281
+ hairColor: HairColor;
282
+ hairLength: HairLength;
283
+ isSmoker: boolean;
284
+ shaveStatus: ShaveStatus;
285
+ hasPiercing: boolean;
286
+ hasTattoo: boolean;
287
+ experience: ExperienceLevel;
288
+ serviceType: ServiceType[];
289
+ nationality: NationalityOption;
290
+ language: Language[];
291
+ servicesFor: ServicesFor[];
292
+ description: string;
293
+ practice: Practise[];
294
+ otherService: OtherPractise[];
295
+ phoneNumber: string;
296
+ isClir: boolean;
297
+ contactMethods: ContactMethod[];
298
+ schedule: DaySchedule[];
299
+ created: Date;
300
+ approvedState: ApprovedState;
301
+ paymentState: TransactionStatus;
302
+ transactions: TransactionReadDto[];
303
+ }
304
+
305
+ export interface TransactionReadDto {
306
+ status: TransactionStatus;
307
+ totalAmount: number;
308
+ currency: Currency
309
+ createdAt: Date;
310
+ paidAt: Date;
311
+ items: TransactionReadItemDto[]
312
+ }
313
+
314
+ export interface TransactionReadItemDto {
315
+ category: PricingCategory
316
+ durationDays: number;
317
+ amount: number;
318
+ currency: Currency;
263
319
  }