@royalinvest/dto 0.22.1 → 0.22.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.
@@ -0,0 +1,3 @@
1
+ import { ILeaseOfDwellingNotice } from "./lease-of-dwelling-notice";
2
+ import { ILeaseOfDwelling } from "./quebec-lease-dwelling";
3
+ export type ContractType = ILeaseOfDwelling | ILeaseOfDwellingNotice;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,10 +1,8 @@
1
+ import { ITemplate } from "./template";
1
2
  export interface ILeaseListItem {
2
3
  id: string;
3
- address: string;
4
- start: Date;
5
- end: Date;
6
- amount: string;
4
+ name: string;
7
5
  status: string;
8
6
  created_at?: Date;
9
- rent_type: string;
7
+ template: ITemplate;
10
8
  }
package/dist/lease.d.ts CHANGED
@@ -1,9 +1,8 @@
1
+ import { ContractType } from "./contract-type";
1
2
  import { LeaseStatusEnum } from "./enum";
2
- import { ILeaseOfDwellingNotice } from "./lease-of-dwelling-notice";
3
- import { Sections } from "./quebec-lease-dwelling";
4
3
  export interface ILease {
5
4
  id: string;
6
- details: Sections | ILeaseOfDwellingNotice;
5
+ details: ContractType;
7
6
  status: LeaseStatusEnum;
8
7
  template_id: string;
9
8
  created_at?: Date;
@@ -1,6 +1,5 @@
1
- import { Sections } from "./quebec-lease-dwelling";
1
+ import { ContractType } from "./contract-type";
2
2
  import { ISignaturePartySigned } from "./signaturePartySigned";
3
- export type ContractType = Sections;
4
3
  export interface IMessageGenerate {
5
4
  contract_id: string;
6
5
  details: ContractType;
@@ -1,5 +1,5 @@
1
- import { Sections as QuebecLeaseOfDwelling } from "./quebec-lease-dwelling";
1
+ import { ContractType } from "./contract-type";
2
2
  export interface IProcessContractNotification {
3
3
  user_id: string;
4
- details: QuebecLeaseOfDwelling;
4
+ details: ContractType;
5
5
  }
@@ -8,7 +8,7 @@ import { sectionF } from "./sectionF";
8
8
  import { sectionG } from "./sectionG";
9
9
  import { sectionH } from "./sectionH";
10
10
  import { sectionI } from "./sectionI";
11
- export interface Sections {
11
+ export interface ILeaseOfDwelling {
12
12
  sectionA: sectionA;
13
13
  sectionB: sectionB;
14
14
  sectionC: sectionC;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@royalinvest/dto",
3
- "version": "0.22.1",
3
+ "version": "0.22.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",