@exclusive-website/types 2.4.6 → 2.4.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.
@@ -238,7 +238,11 @@ export declare enum PricingCategory {
238
238
  }
239
239
  export declare enum StateOfListing {
240
240
  PUBLISHED = "PUBLISHED",
241
- UNPUBLISHED = "UNPUBLISHED"
241
+ UNPUBLISHED = "UNPUBLISHED",
242
+ ON_VERIFY = "ON_VERIFY",
243
+ ON_CHANGE = "ON_CHANGE",
244
+ APPROVED = "APPROVED",
245
+ DISCARDED = "DISCARDED"
242
246
  }
243
247
  export declare enum ApprovedState {
244
248
  ON_VERIFY = "ON_VERIFY",
@@ -284,6 +284,10 @@ var StateOfListing;
284
284
  (function (StateOfListing) {
285
285
  StateOfListing["PUBLISHED"] = "PUBLISHED";
286
286
  StateOfListing["UNPUBLISHED"] = "UNPUBLISHED";
287
+ StateOfListing["ON_VERIFY"] = "ON_VERIFY";
288
+ StateOfListing["ON_CHANGE"] = "ON_CHANGE";
289
+ StateOfListing["APPROVED"] = "APPROVED";
290
+ StateOfListing["DISCARDED"] = "DISCARDED";
287
291
  })(StateOfListing = exports.StateOfListing || (exports.StateOfListing = {}));
288
292
  var ApprovedState;
289
293
  (function (ApprovedState) {
package/dist/types.d.ts CHANGED
@@ -1,4 +1,4 @@
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";
1
+ import { 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;
@@ -33,6 +33,9 @@ export interface ModelWriteDto {
33
33
  photos: MediaDto[];
34
34
  videos: MediaDto[];
35
35
  }
36
+ export interface TransactionId {
37
+ id: number;
38
+ }
36
39
  export type PaymentDto = {
37
40
  listingId: number;
38
41
  items: PaymentItem[];
@@ -207,7 +210,7 @@ export interface PriceReadDto {
207
210
  export interface ListingAdminFilterQueryReadDto {
208
211
  query: ListingQueryReadDto;
209
212
  stateOfListing: StateOfListing;
210
- approvedState: ApprovedState;
213
+ approvedState: StateOfListing;
211
214
  transactionState: TransactionStatus;
212
215
  }
213
216
  export interface ModelAdminListReadDto {
@@ -222,7 +225,7 @@ export interface ModelAdminShortReadDto {
222
225
  nickname: string;
223
226
  location: LocationDto;
224
227
  featuredImage: MediaDto;
225
- approvedState: ApprovedState;
228
+ approvedState: StateOfListing;
226
229
  transactionStatus: TransactionStatus;
227
230
  }
228
231
  export interface ModelAdminDetailReadDto {
@@ -260,7 +263,7 @@ export interface ModelAdminDetailReadDto {
260
263
  contactMethods: ContactMethod[];
261
264
  schedule: DaySchedule[];
262
265
  created: Date;
263
- approvedState: ApprovedState;
266
+ approvedState: StateOfListing;
264
267
  paymentState: TransactionStatus;
265
268
  transactions: TransactionReadDto[];
266
269
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exclusive-website/types",
3
- "version": "2.4.6",
3
+ "version": "2.4.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",
@@ -288,6 +288,10 @@ export enum PricingCategory {
288
288
  export enum StateOfListing {
289
289
  PUBLISHED = "PUBLISHED",
290
290
  UNPUBLISHED = "UNPUBLISHED",
291
+ ON_VERIFY = "ON_VERIFY",
292
+ ON_CHANGE = "ON_CHANGE",
293
+ APPROVED = "APPROVED",
294
+ DISCARDED = "DISCARDED",
291
295
  }
292
296
 
293
297
  export enum ApprovedState {
package/src/types.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
- ApprovedState,
3
2
  Availability,
4
- ContactMethod, Currency,
3
+ ContactMethod,
4
+ Currency,
5
5
  DayOfWeek,
6
6
  DayStatus,
7
7
  ExperienceLevel,
@@ -10,11 +10,14 @@ import {
10
10
  Language,
11
11
  NationalityOption,
12
12
  OtherPractise,
13
- Practise, PricingCategory,
13
+ Practise,
14
+ PricingCategory,
14
15
  ServicesFor,
15
16
  ServiceType,
16
17
  SexualOrientation,
17
- ShaveStatus, StateOfListing, TransactionStatus,
18
+ ShaveStatus,
19
+ StateOfListing,
20
+ TransactionStatus,
18
21
  UserRole,
19
22
  } from "./filterEnums";
20
23
 
@@ -53,6 +56,10 @@ export interface ModelWriteDto {
53
56
  videos: MediaDto[];
54
57
  }
55
58
 
59
+ export interface TransactionId {
60
+ id: number;
61
+ }
62
+
56
63
  export type PaymentDto = {
57
64
  listingId: number;
58
65
  items: PaymentItem[];
@@ -252,7 +259,7 @@ export interface PriceReadDto {
252
259
  export interface ListingAdminFilterQueryReadDto {
253
260
  query: ListingQueryReadDto;
254
261
  stateOfListing: StateOfListing;
255
- approvedState: ApprovedState;
262
+ approvedState: StateOfListing;
256
263
  transactionState: TransactionStatus;
257
264
  }
258
265
 
@@ -269,7 +276,7 @@ export interface ModelAdminShortReadDto {
269
276
  nickname: string;
270
277
  location: LocationDto;
271
278
  featuredImage: MediaDto;
272
- approvedState: ApprovedState;
279
+ approvedState: StateOfListing;
273
280
  transactionStatus: TransactionStatus;
274
281
  }
275
282
 
@@ -308,7 +315,7 @@ export interface ModelAdminDetailReadDto {
308
315
  contactMethods: ContactMethod[];
309
316
  schedule: DaySchedule[];
310
317
  created: Date;
311
- approvedState: ApprovedState;
318
+ approvedState: StateOfListing;
312
319
  paymentState: TransactionStatus;
313
320
  transactions: TransactionReadDto[];
314
321
  }