@royalinvest/dto 0.4.0 → 0.4.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.
Files changed (59) hide show
  1. package/dist/address.d.ts +9 -0
  2. package/dist/address.js +2 -0
  3. package/dist/auth.d.ts +5 -0
  4. package/dist/auth.js +2 -0
  5. package/dist/category.d.ts +4 -0
  6. package/dist/category.js +2 -0
  7. package/dist/country.d.ts +5 -0
  8. package/dist/country.js +2 -0
  9. package/dist/enum/index.d.ts +14 -0
  10. package/dist/enum/index.js +20 -0
  11. package/dist/expense.d.ts +11 -0
  12. package/dist/expense.js +2 -0
  13. package/dist/index.d.ts +19 -0
  14. package/dist/index.js +35 -0
  15. package/dist/key-value.d.ts +4 -0
  16. package/dist/key-value.js +2 -0
  17. package/dist/lease-list-item.d.ts +8 -0
  18. package/dist/lease-list-item.js +2 -0
  19. package/dist/lease.d.ts +10 -0
  20. package/dist/lease.js +2 -0
  21. package/dist/login.d.ts +4 -0
  22. package/dist/login.js +2 -0
  23. package/dist/notification.d.ts +12 -0
  24. package/dist/notification.js +2 -0
  25. package/dist/property.d.ts +9 -0
  26. package/dist/property.js +2 -0
  27. package/dist/quebec-lease-dwelling/index.d.ts +20 -0
  28. package/dist/quebec-lease-dwelling/index.js +2 -0
  29. package/dist/quebec-lease-dwelling/sectionA.d.ts +16 -0
  30. package/dist/quebec-lease-dwelling/sectionA.js +2 -0
  31. package/dist/quebec-lease-dwelling/sectionB.d.ts +38 -0
  32. package/dist/quebec-lease-dwelling/sectionB.js +2 -0
  33. package/dist/quebec-lease-dwelling/sectionC.d.ts +7 -0
  34. package/dist/quebec-lease-dwelling/sectionC.js +2 -0
  35. package/dist/quebec-lease-dwelling/sectionD.d.ts +15 -0
  36. package/dist/quebec-lease-dwelling/sectionD.js +2 -0
  37. package/dist/quebec-lease-dwelling/sectionE.d.ts +26 -0
  38. package/dist/quebec-lease-dwelling/sectionE.js +2 -0
  39. package/dist/quebec-lease-dwelling/sectionF.d.ts +6 -0
  40. package/dist/quebec-lease-dwelling/sectionF.js +2 -0
  41. package/dist/quebec-lease-dwelling/sectionG.d.ts +7 -0
  42. package/dist/quebec-lease-dwelling/sectionG.js +2 -0
  43. package/dist/quebec-lease-dwelling/sectionH.d.ts +3 -0
  44. package/dist/quebec-lease-dwelling/sectionH.js +2 -0
  45. package/dist/quebec-lease-dwelling/sectionI.d.ts +3 -0
  46. package/dist/quebec-lease-dwelling/sectionI.js +2 -0
  47. package/dist/sign-up.d.ts +8 -0
  48. package/dist/sign-up.js +2 -0
  49. package/dist/sort.d.ts +1 -0
  50. package/dist/sort.js +2 -0
  51. package/dist/state.d.ts +7 -0
  52. package/dist/state.js +2 -0
  53. package/dist/template.d.ts +7 -0
  54. package/dist/template.js +2 -0
  55. package/dist/user.d.ts +6 -0
  56. package/dist/user.js +2 -0
  57. package/dist/yes-no.d.ts +4 -0
  58. package/dist/yes-no.js +2 -0
  59. package/package.json +1 -1
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/dist/auth.d.ts ADDED
@@ -0,0 +1,5 @@
1
+ import { IUser } from "./user";
2
+ export type IAuth = {
3
+ accessToken: string;
4
+ user: IUser;
5
+ };
package/dist/auth.js ADDED
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ export interface ICategory {
2
+ id: string;
3
+ name: string;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ export interface ICountry {
2
+ id?: string;
3
+ name: string;
4
+ abbrev: string;
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,14 @@
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 LeaseStatusEnum {
12
+ draft = "draft",
13
+ published = "published"
14
+ }
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LeaseStatusEnum = exports.RentTypeEnum = exports.PartyTypeEnum = void 0;
4
+ var PartyTypeEnum;
5
+ (function (PartyTypeEnum) {
6
+ PartyTypeEnum["default"] = "";
7
+ PartyTypeEnum["lessor"] = "lessor";
8
+ PartyTypeEnum["lessee"] = "lessee";
9
+ })(PartyTypeEnum || (exports.PartyTypeEnum = PartyTypeEnum = {}));
10
+ var RentTypeEnum;
11
+ (function (RentTypeEnum) {
12
+ RentTypeEnum["default"] = "";
13
+ RentTypeEnum["fixed"] = "fixed";
14
+ RentTypeEnum["indeterminate"] = "indeterminate";
15
+ })(RentTypeEnum || (exports.RentTypeEnum = RentTypeEnum = {}));
16
+ var LeaseStatusEnum;
17
+ (function (LeaseStatusEnum) {
18
+ LeaseStatusEnum["draft"] = "draft";
19
+ LeaseStatusEnum["published"] = "published";
20
+ })(LeaseStatusEnum || (exports.LeaseStatusEnum = LeaseStatusEnum = {}));
@@ -0,0 +1,11 @@
1
+ import { IProperty } from "./property";
2
+ import { ICategory } from "./category";
3
+ export interface IExpense {
4
+ id?: string;
5
+ name: string;
6
+ amount: number;
7
+ date: Date;
8
+ property?: IProperty;
9
+ category?: ICategory;
10
+ file_name?: string;
11
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,19 @@
1
+ export * from "./enum";
2
+ export * from "./quebec-lease-dwelling";
3
+ export * from "./address";
4
+ export * from "./country";
5
+ export * from "./lease-list-item";
6
+ export * from "./lease";
7
+ export * from "./property";
8
+ export * from "./state";
9
+ export * from "./template";
10
+ export * from "./yes-no";
11
+ export * from "./login";
12
+ export * from "./sign-up";
13
+ export * from "./user";
14
+ export * from "./auth";
15
+ export * from "./notification";
16
+ export * from "./expense";
17
+ export * from "./sort";
18
+ export * from "./key-value";
19
+ export * from "./category";
package/dist/index.js ADDED
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./enum"), exports);
18
+ __exportStar(require("./quebec-lease-dwelling"), exports);
19
+ __exportStar(require("./address"), exports);
20
+ __exportStar(require("./country"), exports);
21
+ __exportStar(require("./lease-list-item"), exports);
22
+ __exportStar(require("./lease"), exports);
23
+ __exportStar(require("./property"), exports);
24
+ __exportStar(require("./state"), exports);
25
+ __exportStar(require("./template"), exports);
26
+ __exportStar(require("./yes-no"), exports);
27
+ __exportStar(require("./login"), exports);
28
+ __exportStar(require("./sign-up"), exports);
29
+ __exportStar(require("./user"), exports);
30
+ __exportStar(require("./auth"), exports);
31
+ __exportStar(require("./notification"), exports);
32
+ __exportStar(require("./expense"), exports);
33
+ __exportStar(require("./sort"), exports);
34
+ __exportStar(require("./key-value"), exports);
35
+ __exportStar(require("./category"), exports);
@@ -0,0 +1,4 @@
1
+ export interface IKeyValue {
2
+ key: string;
3
+ value: string;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ import { LeaseStatusEnum } from "./enum";
2
+ import { Sections } from "./quebec-lease-dwelling";
3
+ export interface ILease {
4
+ id: string;
5
+ details: Sections;
6
+ status: LeaseStatusEnum;
7
+ template_id: string;
8
+ created_at?: Date;
9
+ modified_at?: Date;
10
+ }
package/dist/lease.js ADDED
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ export interface ILogin {
2
+ email: string;
3
+ password: string;
4
+ }
package/dist/login.js ADDED
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ export interface INotification {
2
+ id?: string;
3
+ user_id?: string;
4
+ payload: IPayload;
5
+ isRead: boolean;
6
+ created_at: Date;
7
+ }
8
+ export interface IPayload {
9
+ type: string;
10
+ message: string;
11
+ link?: string;
12
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ export interface IProperty {
2
+ id: string;
3
+ address: string;
4
+ city: string;
5
+ state: string;
6
+ country: string;
7
+ postal: string;
8
+ number_of_units: number;
9
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,16 @@
1
+ import { PartyTypeEnum } from "../enum";
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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ export interface sectionH {
2
+ solidarily_liable_for_lease: string;
3
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ export interface sectionI {
2
+ married_civil_union_name_spouse: string;
3
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ export type ISignUp = {
2
+ id?: string;
3
+ first_name?: string;
4
+ last_name?: string;
5
+ company_name?: string;
6
+ email: string;
7
+ password: string;
8
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/dist/sort.d.ts ADDED
@@ -0,0 +1 @@
1
+ export type SortType = "asc" | "desc";
package/dist/sort.js ADDED
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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
+ }
package/dist/state.js ADDED
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/dist/user.d.ts ADDED
@@ -0,0 +1,6 @@
1
+ export interface IUser {
2
+ id: string;
3
+ displayName: string;
4
+ email: string;
5
+ photoURL: string;
6
+ }
package/dist/user.js ADDED
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ export interface IYesNo {
2
+ yes: boolean;
3
+ no: boolean;
4
+ }
package/dist/yes-no.js ADDED
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@royalinvest/dto",
3
- "version": "0.4.0",
3
+ "version": "0.4.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",