@exclusive-website/types 1.8.5 → 1.8.7

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
@@ -28,9 +28,9 @@ export interface ModelWriteDto {
28
28
  region: Location;
29
29
  address: string;
30
30
  workingTime: DaySchedule[];
31
- featuredImage: string;
32
- photos: string[];
33
- videos: string[];
31
+ featuredImage: MediaDto;
32
+ photos: MediaDto[];
33
+ videos: MediaDto[];
34
34
  }
35
35
  export interface DaySchedule {
36
36
  dayOfWeek: DayOfWeek;
@@ -56,8 +56,8 @@ export interface ModelShortReadDto {
56
56
  isNew: boolean;
57
57
  isTopped: boolean;
58
58
  isAvailable: boolean;
59
- featuredImage: string;
60
- photos: string[];
59
+ featuredImage: MediaDto;
60
+ photos: MediaDto[];
61
61
  height: number;
62
62
  weight: number;
63
63
  breastSize: number;
@@ -71,7 +71,7 @@ export interface ModelShortPreviewReadDto {
71
71
  isNew: boolean;
72
72
  isTopped: boolean;
73
73
  isAvailable: boolean;
74
- featuredImage: string;
74
+ featuredImage: MediaDto;
75
75
  created: Date;
76
76
  viewCount: number;
77
77
  }
@@ -83,9 +83,9 @@ export interface ModelReadDto {
83
83
  isNew: boolean;
84
84
  isTopped: boolean;
85
85
  isAvailable: boolean;
86
- featuredImage: string;
87
- photos: string[];
88
- video: string[];
86
+ featuredImage: MediaDto;
87
+ photos: MediaDto[];
88
+ video: MediaDto[];
89
89
  height: number;
90
90
  weight: number;
91
91
  breastSize: number;
@@ -115,6 +115,12 @@ export interface UserInfoReadDto {
115
115
  email: string;
116
116
  role: UserRole;
117
117
  }
118
+ export interface MediaDto {
119
+ url: string;
120
+ }
121
+ export interface AuthJwtDto {
122
+ email: string;
123
+ }
118
124
  export type SupportedCurrency = "EUR" | "CZK" | null;
119
125
  export interface RegisterUserDto {
120
126
  email: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exclusive-website/types",
3
- "version": "1.8.5",
3
+ "version": "1.8.7",
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
@@ -48,9 +48,9 @@ export interface ModelWriteDto {
48
48
  region: Location;
49
49
  address: string;
50
50
  workingTime: DaySchedule[];
51
- featuredImage: string;
52
- photos: string[];
53
- videos: string[];
51
+ featuredImage: MediaDto;
52
+ photos: MediaDto[];
53
+ videos: MediaDto[];
54
54
  }
55
55
 
56
56
  export interface DaySchedule {
@@ -81,8 +81,8 @@ export interface ModelShortReadDto {
81
81
  isNew: boolean;
82
82
  isTopped: boolean;
83
83
  isAvailable: boolean;
84
- featuredImage: string;
85
- photos: string[];
84
+ featuredImage: MediaDto;
85
+ photos: MediaDto[];
86
86
  height: number;
87
87
  weight: number;
88
88
  breastSize: number;
@@ -97,7 +97,7 @@ export interface ModelShortPreviewReadDto {
97
97
  isNew: boolean;
98
98
  isTopped: boolean;
99
99
  isAvailable: boolean;
100
- featuredImage: string;
100
+ featuredImage: MediaDto;
101
101
  created: Date;
102
102
  viewCount: number;
103
103
  }
@@ -110,9 +110,9 @@ export interface ModelReadDto {
110
110
  isNew: boolean;
111
111
  isTopped: boolean;
112
112
  isAvailable: boolean;
113
- featuredImage: string;
114
- photos: string[];
115
- video: string[];
113
+ featuredImage: MediaDto;
114
+ photos: MediaDto[];
115
+ video: MediaDto[];
116
116
  height: number;
117
117
  weight: number;
118
118
  breastSize: number;
@@ -144,6 +144,13 @@ export interface UserInfoReadDto {
144
144
  role: UserRole;
145
145
  }
146
146
 
147
+ export interface MediaDto {
148
+ url: string;
149
+ }
150
+
151
+ export interface AuthJwtDto {
152
+ email : string;
153
+ }
147
154
 
148
155
 
149
156
 
package/tsconfig.json CHANGED
@@ -9,7 +9,9 @@
9
9
  "esModuleInterop": true,
10
10
  "forceConsistentCasingInFileNames": true,
11
11
  "strict": true,
12
- "skipLibCheck": true
12
+ "skipLibCheck": true,
13
+ "experimentalDecorators": true,
14
+ "emitDecoratorMetadata": true
13
15
  },
14
16
  "include": ["src"]
15
17
  }