@exclusive-website/types 1.2.6 → 1.2.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.
package/dist/types.d.ts CHANGED
@@ -47,21 +47,23 @@ export interface ModelDTO {
47
47
  schedule: ScheduleDTO;
48
48
  }
49
49
  export type CardDTO = Pick<ModelDTO, "id" | "media" | "identity" | "location" | "physical" | "listing">;
50
- export type ActivityStatus = "active" | "inactive";
51
50
  export interface ModelListingDTO {
52
51
  id: string;
53
52
  listingId: string;
54
53
  nickname: string;
55
54
  city: string;
56
55
  image: string[];
57
- activityStatus: ActivityStatus;
56
+ activityStatus: "active" | "inactive";
58
57
  approved: boolean;
59
58
  expirationTime: number;
59
+ listingExpired: boolean;
60
60
  toppedDuration: number;
61
+ toppedExpired: boolean;
61
62
  views: number;
62
63
  creationDate: string;
63
64
  inModelDashboard: boolean;
64
65
  }
66
+ export type ActivityStatus = "active" | "inactive";
65
67
  export type SupportedCurrency = "EUR" | "CZK" | null;
66
68
  export interface RegisterUserDto {
67
69
  email: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exclusive-website/types",
3
- "version": "1.2.6",
3
+ "version": "1.2.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",
package/src/types.ts CHANGED
@@ -53,23 +53,25 @@ export type CardDTO = Pick<
53
53
  "id" | "media" | "identity" | "location" | "physical" | "listing"
54
54
  >;
55
55
 
56
- export type ActivityStatus = "active" | "inactive";
57
-
58
56
  export interface ModelListingDTO {
59
57
  id: string;
60
58
  listingId: string;
61
59
  nickname: string;
62
60
  city: string;
63
- image: string[]; //array of urls
64
- activityStatus: ActivityStatus;
61
+ image: string[];
62
+ activityStatus: "active" | "inactive";
65
63
  approved: boolean;
66
- expirationTime: number; //in hours
67
- toppedDuration: number; //in hours
64
+ expirationTime: number;
65
+ listingExpired: boolean;
66
+ toppedDuration: number;
67
+ toppedExpired: boolean;
68
68
  views: number;
69
- creationDate: string; //format DD.MM.YYYY
69
+ creationDate: string;
70
70
  inModelDashboard: boolean;
71
71
  }
72
72
 
73
+ export type ActivityStatus = "active" | "inactive";
74
+
73
75
  export type SupportedCurrency = "EUR" | "CZK" | null;
74
76
 
75
77
  export interface RegisterUserDto {