@exclusive-website/types 2.2.8 → 2.3.0

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.
@@ -236,3 +236,18 @@ export declare enum PricingCategory {
236
236
  FEATURED_MAIN_PAGE = "FEATURED_MAIN_PAGE",
237
237
  FEATURED_REGION = "FEATURED_REGION"
238
238
  }
239
+ export declare enum StateOfListing {
240
+ PENDING = "PENDING",
241
+ PUBLISHED = "PUBLISHED",
242
+ UNPUBLISHED = "UNPUBLISHED",
243
+ DISCARDED = "DISCARDED"
244
+ }
245
+ export declare enum ApprovedState {
246
+ ON_VERIFY = "ON_VERIFY",
247
+ ON_CHANGE = "ON_CHANGE",
248
+ APPROVED = "APPROVED"
249
+ }
250
+ export declare enum PaymentState {
251
+ PAID = "PAID",
252
+ UNPAID = "UNPAID"
253
+ }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
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;
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;
4
4
  // DAY STATUS
5
5
  var DayStatus;
6
6
  (function (DayStatus) {
@@ -280,3 +280,21 @@ var PricingCategory;
280
280
  PricingCategory["FEATURED_MAIN_PAGE"] = "FEATURED_MAIN_PAGE";
281
281
  PricingCategory["FEATURED_REGION"] = "FEATURED_REGION";
282
282
  })(PricingCategory = exports.PricingCategory || (exports.PricingCategory = {}));
283
+ var StateOfListing;
284
+ (function (StateOfListing) {
285
+ StateOfListing["PENDING"] = "PENDING";
286
+ StateOfListing["PUBLISHED"] = "PUBLISHED";
287
+ StateOfListing["UNPUBLISHED"] = "UNPUBLISHED";
288
+ StateOfListing["DISCARDED"] = "DISCARDED";
289
+ })(StateOfListing = exports.StateOfListing || (exports.StateOfListing = {}));
290
+ var ApprovedState;
291
+ (function (ApprovedState) {
292
+ ApprovedState["ON_VERIFY"] = "ON_VERIFY";
293
+ ApprovedState["ON_CHANGE"] = "ON_CHANGE";
294
+ ApprovedState["APPROVED"] = "APPROVED";
295
+ })(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 = {}));
package/dist/types.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Availability, ContactMethod, Currency, DayOfWeek, DayStatus, ExperienceLevel, HairColor, HairLength, Language, NationalityOption, OtherPractise, Practise, PricingCategory, ServicesFor, ServiceType, SexualOrientation, ShaveStatus, UserRole } from "./filterEnums";
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";
2
2
  export interface ModelWriteDto {
3
3
  nickname: string;
4
4
  phoneNumber: string;
@@ -70,6 +70,25 @@ 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
+ }
73
92
  export interface ModelShortReadDto {
74
93
  id: number;
75
94
  nickname: string;
@@ -165,7 +184,6 @@ export interface CityDto {
165
184
  cityId: number;
166
185
  city: string;
167
186
  }
168
- export type SupportedCurrency = "EUR" | "CZK" | null;
169
187
  export interface RegisterUserDto {
170
188
  email: string;
171
189
  password: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exclusive-website/types",
3
- "version": "2.2.8",
3
+ "version": "2.3.0",
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",
@@ -283,4 +283,22 @@ export enum PricingCategory {
283
283
  PUBLISHED = "PUBLISHED",
284
284
  FEATURED_MAIN_PAGE = "FEATURED_MAIN_PAGE",
285
285
  FEATURED_REGION = "FEATURED_REGION",
286
+ }
287
+
288
+ export enum StateOfListing {
289
+ PENDING = "PENDING",
290
+ PUBLISHED = "PUBLISHED",
291
+ UNPUBLISHED = "UNPUBLISHED",
292
+ DISCARDED = "DISCARDED",
293
+ }
294
+
295
+ export enum ApprovedState {
296
+ ON_VERIFY = "ON_VERIFY",
297
+ ON_CHANGE = "ON_CHANGE",
298
+ APPROVED = "APPROVED",
299
+ }
300
+
301
+ export enum PaymentState {
302
+ PAID = "PAID",
303
+ UNPAID = "UNPAID",
286
304
  }
package/src/types.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import {
2
+ ApprovedState,
2
3
  Availability,
3
4
  ContactMethod, Currency,
4
5
  DayOfWeek,
@@ -8,12 +9,12 @@ import {
8
9
  HairLength,
9
10
  Language,
10
11
  NationalityOption,
11
- OtherPractise,
12
+ OtherPractise, PaymentState,
12
13
  Practise, PricingCategory,
13
14
  ServicesFor,
14
15
  ServiceType,
15
16
  SexualOrientation,
16
- ShaveStatus,
17
+ ShaveStatus, StateOfListing,
17
18
  UserRole,
18
19
  } from "./filterEnums";
19
20
 
@@ -95,6 +96,28 @@ export interface ModelListReadDto {
95
96
  lastPage: number;
96
97
  }
97
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
+
98
121
  export interface ModelShortReadDto {
99
122
  id: number;
100
123
  nickname: string;
@@ -201,19 +224,6 @@ export interface CityDto {
201
224
  city: string;
202
225
  }
203
226
 
204
-
205
-
206
-
207
-
208
-
209
- export type SupportedCurrency = "EUR" | "CZK" | null;
210
-
211
-
212
-
213
-
214
-
215
-
216
- //SECURITY
217
227
  export interface RegisterUserDto {
218
228
  email: string;
219
229
  password: string;