@royalinvest/dto 0.24.2 → 0.25.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.
@@ -53,3 +53,9 @@ export declare enum LeaseTypeEnum {
53
53
  LeaseOfDwelling = "LeaseOfDwelling",
54
54
  LeaseOfDwellingNotice = "LeaseOfDwellingNotice"
55
55
  }
56
+ export declare enum LeaseCategoryEnum {
57
+ Draft = "draft",
58
+ Active = "active",
59
+ Other = "other",
60
+ Default = "default"
61
+ }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LeaseTypeEnum = exports.LeaseNoticeTypeEnum = exports.SignatureDateTypeEnum = exports.SignActionEnum = exports.NotificationTypeEnum = exports.SignStatusEnum = exports.SignatureType = exports.LeaseStatusEnum = exports.RentTypeEnum = exports.PartyTypeEnum = void 0;
3
+ exports.LeaseCategoryEnum = exports.LeaseTypeEnum = exports.LeaseNoticeTypeEnum = exports.SignatureDateTypeEnum = exports.SignActionEnum = exports.NotificationTypeEnum = exports.SignStatusEnum = exports.SignatureType = exports.LeaseStatusEnum = exports.RentTypeEnum = exports.PartyTypeEnum = void 0;
4
4
  var PartyTypeEnum;
5
5
  (function (PartyTypeEnum) {
6
6
  PartyTypeEnum["default"] = "";
@@ -66,3 +66,10 @@ var LeaseTypeEnum;
66
66
  LeaseTypeEnum["LeaseOfDwelling"] = "LeaseOfDwelling";
67
67
  LeaseTypeEnum["LeaseOfDwellingNotice"] = "LeaseOfDwellingNotice";
68
68
  })(LeaseTypeEnum || (exports.LeaseTypeEnum = LeaseTypeEnum = {}));
69
+ var LeaseCategoryEnum;
70
+ (function (LeaseCategoryEnum) {
71
+ LeaseCategoryEnum["Draft"] = "draft";
72
+ LeaseCategoryEnum["Active"] = "active";
73
+ LeaseCategoryEnum["Other"] = "other";
74
+ LeaseCategoryEnum["Default"] = "default";
75
+ })(LeaseCategoryEnum || (exports.LeaseCategoryEnum = LeaseCategoryEnum = {}));
package/dist/index.d.ts CHANGED
@@ -47,3 +47,4 @@ export * from "./template-variant";
47
47
  export * from "./template";
48
48
  export * from "./user";
49
49
  export * from "./yes-no";
50
+ export * from "./list-response";
package/dist/index.js CHANGED
@@ -63,3 +63,4 @@ __exportStar(require("./template-variant"), exports);
63
63
  __exportStar(require("./template"), exports);
64
64
  __exportStar(require("./user"), exports);
65
65
  __exportStar(require("./yes-no"), exports);
66
+ __exportStar(require("./list-response"), exports);
@@ -1,3 +1,4 @@
1
+ import { LeaseCategoryEnum } from "./enum";
1
2
  import { IFile } from "./file";
2
3
  import { IParty } from "./party";
3
4
  import { ITemplate } from "./template";
@@ -13,4 +14,5 @@ export interface ILeaseListItem {
13
14
  template: ITemplate;
14
15
  parties?: IParty[];
15
16
  file?: IFile;
17
+ category: LeaseCategoryEnum;
16
18
  }
package/dist/lease.d.ts CHANGED
@@ -1,5 +1,7 @@
1
1
  import { ContractType } from "./contract-type";
2
2
  import { LeaseStatusEnum } from "./enum";
3
+ import { IParty } from "./party";
4
+ import { IProperty } from "./property";
3
5
  export interface ILease {
4
6
  id?: string;
5
7
  name: string;
@@ -12,4 +14,6 @@ export interface ILease {
12
14
  created_at?: Date;
13
15
  modified_at?: Date;
14
16
  allowed_edit_before: Date | null;
17
+ parties?: IParty[];
18
+ property?: IProperty;
15
19
  }
@@ -0,0 +1,5 @@
1
+ export interface IListResponse<T> {
2
+ items: T[];
3
+ totalCount: number;
4
+ cursor: string | null;
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/dist/party.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import { PartyTypeEnum } from "./enum";
2
2
  export interface IParty {
3
+ id?: string;
3
4
  name: string;
4
5
  email: string;
5
6
  order: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@royalinvest/dto",
3
- "version": "0.24.2",
3
+ "version": "0.25.2",
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",