@exclusive-website/types 2.5.9 → 2.6.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.
@@ -251,8 +251,8 @@ export declare enum ApprovedState {
251
251
  DISCARDED = "DISCARDED"
252
252
  }
253
253
  export declare enum TransactionStatus {
254
+ PENDING = "PENDING",
254
255
  PAID = "PAID",
255
- UNPAID = "UNPAID",
256
256
  CANCELLED = "CANCELLED",
257
257
  NONE = "NONE"
258
258
  }
@@ -298,8 +298,8 @@ var ApprovedState;
298
298
  })(ApprovedState = exports.ApprovedState || (exports.ApprovedState = {}));
299
299
  var TransactionStatus;
300
300
  (function (TransactionStatus) {
301
+ TransactionStatus["PENDING"] = "PENDING";
301
302
  TransactionStatus["PAID"] = "PAID";
302
- TransactionStatus["UNPAID"] = "UNPAID";
303
303
  TransactionStatus["CANCELLED"] = "CANCELLED";
304
304
  TransactionStatus["NONE"] = "NONE";
305
305
  })(TransactionStatus = exports.TransactionStatus || (exports.TransactionStatus = {}));
package/dist/types.d.ts CHANGED
@@ -218,6 +218,12 @@ export interface ListingPricingReadDto {
218
218
  category: PricingCategory;
219
219
  prices: PriceReadDto[];
220
220
  }
221
+ export interface ListingPricingWriteDto {
222
+ id: number;
223
+ durationDays: number;
224
+ category: PricingCategory;
225
+ prices: PriceReadDto[];
226
+ }
221
227
  export interface PriceReadDto {
222
228
  id: number;
223
229
  amount: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exclusive-website/types",
3
- "version": "2.5.9",
3
+ "version": "2.6.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",
@@ -302,8 +302,8 @@ export enum ApprovedState {
302
302
  }
303
303
 
304
304
  export enum TransactionStatus {
305
+ PENDING = "PENDING",
305
306
  PAID = "PAID",
306
- UNPAID = "UNPAID",
307
307
  CANCELLED = "CANCELLED",
308
308
  NONE = "NONE",
309
309
  }
package/src/types.ts CHANGED
@@ -269,6 +269,13 @@ export interface ListingPricingReadDto {
269
269
  prices: PriceReadDto[];
270
270
  }
271
271
 
272
+ export interface ListingPricingWriteDto {
273
+ id: number;
274
+ durationDays: number;
275
+ category: PricingCategory;
276
+ prices: PriceReadDto[];
277
+ }
278
+
272
279
  export interface PriceReadDto {
273
280
  id: number;
274
281
  amount: number;