@exclusive-website/types 2.2.9 → 2.3.1

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,20 @@ 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
+ DISCARDED = "DISCARDED"
250
+ }
251
+ export declare enum PaymentState {
252
+ PAID = "PAID",
253
+ UNPAID = "UNPAID",
254
+ NONE = "NONE"
255
+ }
@@ -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,23 @@ 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["DISCARDED"] = "DISCARDED";
296
+ })(ApprovedState = exports.ApprovedState || (exports.ApprovedState = {}));
297
+ var PaymentState;
298
+ (function (PaymentState) {
299
+ PaymentState["PAID"] = "PAID";
300
+ PaymentState["UNPAID"] = "UNPAID";
301
+ PaymentState["NONE"] = "NONE";
302
+ })(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,8 +70,12 @@ export interface ModelListReadDto {
70
70
  pageSize: number;
71
71
  lastPage: number;
72
72
  }
73
+ export interface ListingAdminFilterQueryReadDto {
74
+ query: ListingQueryReadDto;
75
+ state: StateOfListing;
76
+ }
73
77
  export interface ModelAdminListReadDto {
74
- models: ModelShortReadDto[];
78
+ models: ModelAdminShortReadDto[];
75
79
  currentPage: number;
76
80
  pageSize: number;
77
81
  lastPage: number;
@@ -82,6 +86,8 @@ export interface ModelAdminShortReadDto {
82
86
  nickname: string;
83
87
  location: LocationDto;
84
88
  featuredImage: MediaDto;
89
+ approvedState: ApprovedState;
90
+ paymentState: PaymentState;
85
91
  }
86
92
  export interface ModelShortReadDto {
87
93
  id: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exclusive-website/types",
3
- "version": "2.2.9",
3
+ "version": "2.3.1",
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,24 @@ 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
+ DISCARDED = "DISCARDED",
300
+ }
301
+
302
+ export enum PaymentState {
303
+ PAID = "PAID",
304
+ UNPAID = "UNPAID",
305
+ NONE = "NONE",
286
306
  }
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,8 +96,13 @@ export interface ModelListReadDto {
95
96
  lastPage: number;
96
97
  }
97
98
 
99
+ export interface ListingAdminFilterQueryReadDto {
100
+ query: ListingQueryReadDto;
101
+ state: StateOfListing;
102
+ }
103
+
98
104
  export interface ModelAdminListReadDto {
99
- models: ModelShortReadDto[];
105
+ models: ModelAdminShortReadDto[];
100
106
  currentPage: number;
101
107
  pageSize: number;
102
108
  lastPage: number;
@@ -108,6 +114,8 @@ export interface ModelAdminShortReadDto {
108
114
  nickname: string;
109
115
  location: LocationDto;
110
116
  featuredImage: MediaDto;
117
+ approvedState: ApprovedState;
118
+ paymentState: PaymentState;
111
119
  }
112
120
 
113
121
  export interface ModelShortReadDto {