@exclusive-website/types 2.5.0 → 2.5.2

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
@@ -108,6 +108,22 @@ export interface ModelShortPreviewReadDto {
108
108
  created: Date;
109
109
  viewCount: number;
110
110
  }
111
+ export interface ModelShortPreviewClientReadDto {
112
+ id: number;
113
+ nickname: string;
114
+ location: LocationDto;
115
+ toppedSubscription: SubscriptionReadDto;
116
+ toppedHomeSubscription: SubscriptionReadDto;
117
+ publishedSubscription: SubscriptionReadDto;
118
+ transactionState: TransactionStatus;
119
+ featuredImage: MediaDto;
120
+ created: Date;
121
+ viewCount: number;
122
+ }
123
+ export interface SubscriptionReadDto {
124
+ typeOfSubscription: PricingCategory;
125
+ endOfSubscription: Date;
126
+ }
111
127
  export interface ModelReadDto {
112
128
  id: number;
113
129
  nickname: string;
@@ -264,7 +280,7 @@ export interface ModelAdminDetailReadDto {
264
280
  created: Date;
265
281
  approvedState: StateOfListing;
266
282
  paymentState: TransactionStatus;
267
- transactions: TransactionReadDto[];
283
+ activeTransaction: TransactionReadDto[];
268
284
  }
269
285
  export interface TransactionReadDto {
270
286
  status: TransactionStatus;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exclusive-website/types",
3
- "version": "2.5.0",
3
+ "version": "2.5.2",
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
@@ -141,6 +141,24 @@ export interface ModelShortPreviewReadDto {
141
141
  viewCount: number;
142
142
  }
143
143
 
144
+ export interface ModelShortPreviewClientReadDto {
145
+ id: number;
146
+ nickname: string;
147
+ location: LocationDto;
148
+ toppedSubscription: SubscriptionReadDto;
149
+ toppedHomeSubscription: SubscriptionReadDto;
150
+ publishedSubscription: SubscriptionReadDto;
151
+ transactionState: TransactionStatus;
152
+ featuredImage: MediaDto;
153
+ created: Date;
154
+ viewCount: number;
155
+ }
156
+
157
+ export interface SubscriptionReadDto {
158
+ typeOfSubscription: PricingCategory;
159
+ endOfSubscription: Date;
160
+ }
161
+
144
162
  export interface ModelReadDto {
145
163
  id: number;
146
164
  nickname: string;
@@ -316,7 +334,7 @@ export interface ModelAdminDetailReadDto {
316
334
  created: Date;
317
335
  approvedState: StateOfListing;
318
336
  paymentState: TransactionStatus;
319
- transactions: TransactionReadDto[];
337
+ activeTransaction: TransactionReadDto[];
320
338
  }
321
339
 
322
340
  export interface TransactionReadDto {