@royalinvest/dto 0.0.0

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 @@
1
+ export * from "./types/lease";
@@ -0,0 +1,9 @@
1
+ export interface IAddress {
2
+ no: string;
3
+ street: string;
4
+ apt?: string;
5
+ city: string;
6
+ postal: string;
7
+ state?: string;
8
+ country?: string;
9
+ }
@@ -0,0 +1,4 @@
1
+ export interface ICountry {
2
+ id: string;
3
+ name: string;
4
+ }
@@ -0,0 +1,6 @@
1
+ export interface IDate {
2
+ full_date: string;
3
+ day: string;
4
+ month: string;
5
+ year: string;
6
+ }
@@ -0,0 +1,41 @@
1
+ export declare enum PartyTypeEnum {
2
+ default = "",
3
+ lessor = "lessor",
4
+ lessee = "lessee"
5
+ }
6
+ export declare enum RentTypeEnum {
7
+ default = "",
8
+ fixed = "fixed",
9
+ indeterminate = "indeterminate"
10
+ }
11
+ export declare enum FrequencyEnum {
12
+ default = "",
13
+ week = "week",
14
+ month = "month",
15
+ other = "other"
16
+ }
17
+ export declare enum PaymentMethodEnum {
18
+ default = "",
19
+ cash = "cash",
20
+ cheque = "cheque",
21
+ electronic = "electronic",
22
+ bank_transfer = "bank transfer",
23
+ other = "other"
24
+ }
25
+ export declare enum HeatingTypeEnum {
26
+ default = "",
27
+ electricity = "electricity",
28
+ gas = "gas",
29
+ fuel_oil = "fuel oil"
30
+ }
31
+ export declare enum LeaseStatusEnum {
32
+ draft = "draft",
33
+ published = "published"
34
+ }
35
+ export declare enum Rent_period {
36
+ default = "",
37
+ year = "1 year",
38
+ months_6 = "6 months",
39
+ month = "1 month",
40
+ custom = "custom"
41
+ }
@@ -0,0 +1,10 @@
1
+ import { LeaseStatusEnum } from "./enums";
2
+ import { Sections } from "./quebec/sections";
3
+ export interface ILease {
4
+ id?: string;
5
+ details: Sections;
6
+ status: LeaseStatusEnum;
7
+ user_id: string;
8
+ created_at?: Date;
9
+ modified_at?: Date;
10
+ }
@@ -0,0 +1,8 @@
1
+ export interface ILeaseListItem {
2
+ id: string;
3
+ address: string;
4
+ start: Date;
5
+ end: Date;
6
+ amount: string;
7
+ status: string;
8
+ }
@@ -0,0 +1,8 @@
1
+ export interface IProperty {
2
+ address: string;
3
+ city: string;
4
+ state: string;
5
+ country: string;
6
+ postal: string;
7
+ number_of_units: number;
8
+ }
@@ -0,0 +1,16 @@
1
+ import { PartyTypeEnum } from "../enums";
2
+ import { IAddress } from "../address";
3
+ export interface sectionA {
4
+ lessor: fields[];
5
+ lessee: fields[];
6
+ represented_by: string;
7
+ }
8
+ interface fields extends IAddress {
9
+ id?: string;
10
+ name: string;
11
+ email: string;
12
+ type: PartyTypeEnum;
13
+ telephone: string;
14
+ other_telephone?: string;
15
+ }
16
+ export {};
@@ -0,0 +1,38 @@
1
+ import { IAddress } from "../address";
2
+ export interface sectionB extends IAddress {
3
+ id?: string;
4
+ number_of_rooms: string;
5
+ residential_purposes: string;
6
+ specify_if_not_residential?: string;
7
+ divided_co_ownership: string;
8
+ outdoor_parking: boolean;
9
+ outdoor_parking_number_of_places?: string;
10
+ outdoor_parking_spaces?: string;
11
+ indoor_parking: boolean;
12
+ indoor_parking_number_of_places?: string;
13
+ indoor_parking_spaces?: string;
14
+ locker_storage_space: boolean;
15
+ specify_locker_storage_space?: string;
16
+ other_accessories_dependencies: string;
17
+ furniture_included: string;
18
+ tables_included: boolean;
19
+ tables_amount?: string;
20
+ chairs_included: boolean;
21
+ chairs_amount?: string;
22
+ drawers_included: boolean;
23
+ drawers_amount?: string;
24
+ couches_included: boolean;
25
+ couches_amount?: string;
26
+ armchairs_included: boolean;
27
+ armchairs_amount?: string;
28
+ beds_included: boolean;
29
+ beds_amount?: string;
30
+ beds_size?: string;
31
+ other_furniture_info?: string;
32
+ stove_included: boolean;
33
+ microwave_included: boolean;
34
+ dishwasher_included: boolean;
35
+ fridge_included: boolean;
36
+ washer_included: boolean;
37
+ dryer_included: boolean;
38
+ }
@@ -0,0 +1,7 @@
1
+ export interface sectionC {
2
+ rent_type: string;
3
+ duration: string;
4
+ rent_start: Date | null;
5
+ rent_end: Date | null;
6
+ beginning_on: Date | null;
7
+ }
@@ -0,0 +1,15 @@
1
+ export interface sectionD {
2
+ rent_amount: string;
3
+ service_amount: string;
4
+ total_rent_amount: string;
5
+ rent_frequency: string;
6
+ subsidy_program: string;
7
+ subsidy_program_specify: string;
8
+ first_payment_date: Date | null;
9
+ rent_paid_first_day_of: string;
10
+ rent_paid_specify: string;
11
+ rent_payment_method: string;
12
+ rent_payment_other_specify: string;
13
+ post_dated_cheques: string;
14
+ place_of_payment: string;
15
+ }
@@ -0,0 +1,26 @@
1
+ export interface sectionE {
2
+ by_laws_immovable_given: Date | null;
3
+ by_laws_immovable_divided_coownership_given: Date | null;
4
+ work_repaire_before_lease: string;
5
+ work_repaire_during_lease: string;
6
+ janitorial_services: string;
7
+ janitor_name: string;
8
+ janitor_email: string;
9
+ janitor_telephone: string;
10
+ janitor_other_telephone: string;
11
+ heating: string;
12
+ heating_type: string[];
13
+ other_than_for_heating_electracity: string;
14
+ other_than_for_heating_gas: string;
15
+ hot_water_heater_rental_fee: string;
16
+ hot_water: string;
17
+ water_consuption_tax: string;
18
+ snow_removal_parking: string;
19
+ snow_removal_balcony: string;
20
+ snow_removal_entrance_driveway: string;
21
+ snow_removal_stairs: string;
22
+ right_access_land: string;
23
+ right_access_land_specify: string;
24
+ keep_animal: string;
25
+ keep_animal_specify: string;
26
+ }
@@ -0,0 +1,6 @@
1
+ export interface sectionF {
2
+ immovable_erected: boolean;
3
+ immovable_erected_ready_habitation_on: Date | null;
4
+ change_destination: boolean;
5
+ change_destination_ready_habitation_on: Date | null;
6
+ }
@@ -0,0 +1,7 @@
1
+ export interface sectionG {
2
+ lowest_rent_paid: string;
3
+ lowest_rent_paid_frequency: string;
4
+ other_lowest_rent_paid_frequency: string;
5
+ conditions_same: string;
6
+ conditions_same_if_no_specify: string;
7
+ }
@@ -0,0 +1,3 @@
1
+ export interface sectionH {
2
+ solidarily_liable_for_lease: string;
3
+ }
@@ -0,0 +1,3 @@
1
+ export interface sectionI {
2
+ married_civil_union_name_spouse: string;
3
+ }
@@ -0,0 +1,20 @@
1
+ import { sectionA } from "./sectionA";
2
+ import { sectionB } from "./sectionB";
3
+ import { sectionC } from "./sectionC";
4
+ import { sectionD } from "./sectionD";
5
+ import { sectionE } from "./sectionE";
6
+ import { sectionF } from "./sectionF";
7
+ import { sectionG } from "./sectionG";
8
+ import { sectionH } from "./sectionH";
9
+ import { sectionI } from "./sectionI";
10
+ export interface Sections {
11
+ sectionA: sectionA;
12
+ sectionB: sectionB;
13
+ sectionC: sectionC;
14
+ sectionD: sectionD;
15
+ sectionE: sectionE;
16
+ sectionF: sectionF;
17
+ sectionG: sectionG;
18
+ sectionH: sectionH;
19
+ sectionI: sectionI;
20
+ }
@@ -0,0 +1,6 @@
1
+ import { ILease } from "./lease";
2
+ export interface IResponse {
3
+ success: boolean;
4
+ message: string;
5
+ data: ILease;
6
+ }
@@ -0,0 +1,7 @@
1
+ import { ICountry } from "./country";
2
+ export interface IState {
3
+ id: string;
4
+ name: string;
5
+ abbrev: string;
6
+ country: ICountry;
7
+ }
@@ -0,0 +1,7 @@
1
+ export interface ITemplate {
2
+ id: string;
3
+ name: string;
4
+ description: string;
5
+ file_name: string;
6
+ state_id?: string;
7
+ }
@@ -0,0 +1,4 @@
1
+ export interface IYesNo {
2
+ yes: boolean;
3
+ no: boolean;
4
+ }
package/package.json ADDED
@@ -0,0 +1,36 @@
1
+ {
2
+ "name": "@royalinvest/dto",
3
+ "version": "0.0.0",
4
+ "description": "Data Transfer Objects (DTOs) to carry data between frontend and backend processes.",
5
+ "main": "./src/index.ts",
6
+ "type": "module",
7
+ "types": "./dist/index.d.ts",
8
+ "module": "./dist/index.js",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./dist/index.d.ts",
12
+ "import": "./dist/index.js"
13
+ },
14
+ "./*": {
15
+ "types": "./dist/types/*/*.d.ts",
16
+ "import": "./dist/types/*/*.js"
17
+ }
18
+ },
19
+ "repository": {
20
+ "type": "git",
21
+ "url": "git@ssh.dev.azure.com:v3/royalinvest/royalinvest/royalinvestserver"
22
+ },
23
+ "files": [
24
+ "./dist"
25
+ ],
26
+ "publishConfig": {
27
+ "access": "public"
28
+ },
29
+ "scripts": {
30
+ "build": "npm run clean && npx tsc",
31
+ "clean": "rm -rf ./dist",
32
+ "test": "echo \"Error: no test specified\" && exit 1"
33
+ },
34
+ "author": "Samos Technologies Inc.",
35
+ "license": "ISC"
36
+ }