@royalinvest/dto 0.49.5 → 0.49.6

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.
@@ -1,4 +1,4 @@
1
- import { PaymentIntervalEnum } from "./payment";
1
+ import { PaymentIntervalType } from "./payment";
2
2
  export interface ICheckout {
3
3
  contract_id?: string;
4
4
  template_variant_id?: string;
@@ -22,12 +22,12 @@ export type ICheckoutItem = {
22
22
  export interface IBulkPurchase {
23
23
  feature_id: string;
24
24
  source_type: BulkPurchaseSourceTypeEnum;
25
- source_id: string | null;
26
- expires_at: Date | null;
25
+ source_id?: string | null;
26
+ expires_at?: Date | null;
27
27
  }
28
28
  export interface ISubscribe {
29
29
  plan_id: string;
30
- interval: PaymentIntervalEnum;
30
+ interval: PaymentIntervalType;
31
31
  }
32
32
  export declare enum BulkPurchaseSourceTypeEnum {
33
33
  SYSTEM = "system",
@@ -62,8 +62,6 @@ export declare enum LeaseTypeEnum {
62
62
  export declare enum LeaseCategoryEnum {
63
63
  Draft = "draft",
64
64
  Active = "active",
65
- Deleted = "deleted",
66
- Archived = "archived",
67
65
  Other = "other",
68
66
  Default = "default"
69
67
  }
@@ -76,8 +76,6 @@ var LeaseCategoryEnum;
76
76
  (function (LeaseCategoryEnum) {
77
77
  LeaseCategoryEnum["Draft"] = "draft";
78
78
  LeaseCategoryEnum["Active"] = "active";
79
- LeaseCategoryEnum["Deleted"] = "deleted";
80
- LeaseCategoryEnum["Archived"] = "archived";
81
79
  LeaseCategoryEnum["Other"] = "other";
82
80
  LeaseCategoryEnum["Default"] = "default";
83
81
  })(LeaseCategoryEnum || (exports.LeaseCategoryEnum = LeaseCategoryEnum = {}));
package/dist/payment.d.ts CHANGED
@@ -1,4 +1 @@
1
- export declare enum PaymentIntervalEnum {
2
- MONTH = "month",
3
- YEAR = "year"
4
- }
1
+ export type PaymentIntervalType = "month" | "year";
package/dist/payment.js CHANGED
@@ -1,8 +1,2 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PaymentIntervalEnum = void 0;
4
- var PaymentIntervalEnum;
5
- (function (PaymentIntervalEnum) {
6
- PaymentIntervalEnum["MONTH"] = "month";
7
- PaymentIntervalEnum["YEAR"] = "year";
8
- })(PaymentIntervalEnum || (exports.PaymentIntervalEnum = PaymentIntervalEnum = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@royalinvest/dto",
3
- "version": "0.49.5",
3
+ "version": "0.49.6",
4
4
  "description": "Data Transfer Objects (DTOs) to carry data between frontend and backend processes.",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./dist/index.d.ts",