@exclusive-website/types 2.3.1 → 2.3.3
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/filterEnums.d.ts +1 -1
- package/dist/filterEnums.js +7 -7
- package/dist/types.d.ts +73 -20
- package/package.json +1 -1
- package/src/filterEnums.ts +1 -1
- package/src/types.ts +80 -24
package/dist/filterEnums.d.ts
CHANGED
package/dist/filterEnums.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
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) {
|
|
@@ -294,9 +294,9 @@ var ApprovedState;
|
|
|
294
294
|
ApprovedState["APPROVED"] = "APPROVED";
|
|
295
295
|
ApprovedState["DISCARDED"] = "DISCARDED";
|
|
296
296
|
})(ApprovedState = exports.ApprovedState || (exports.ApprovedState = {}));
|
|
297
|
-
var
|
|
298
|
-
(function (
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
})(
|
|
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,
|
|
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
|
+
publishActiveUntil: Date;
|
|
224
|
+
topHomeActiveUntil: Date;
|
|
225
|
+
topGlobalActiveUntil: Date;
|
|
226
|
+
location: LocationDto;
|
|
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
package/src/filterEnums.ts
CHANGED
package/src/types.ts
CHANGED
|
@@ -9,12 +9,12 @@ import {
|
|
|
9
9
|
HairLength,
|
|
10
10
|
Language,
|
|
11
11
|
NationalityOption,
|
|
12
|
-
OtherPractise,
|
|
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
|
+
publishActiveUntil: Date;
|
|
271
|
+
topHomeActiveUntil: Date;
|
|
272
|
+
topGlobalActiveUntil: Date;
|
|
273
|
+
location: LocationDto;
|
|
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
|
}
|