@royalinvest/dto 0.3.2 → 0.4.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.
Files changed (56) hide show
  1. package/package.json +32 -32
  2. package/readMe.md +1 -1
  3. package/dist/address.d.ts +0 -9
  4. package/dist/address.js +0 -2
  5. package/dist/auth.d.ts +0 -5
  6. package/dist/auth.js +0 -2
  7. package/dist/country.d.ts +0 -4
  8. package/dist/country.js +0 -2
  9. package/dist/enum/index.d.ts +0 -14
  10. package/dist/enum/index.js +0 -20
  11. package/dist/expense.d.ts +0 -9
  12. package/dist/expense.js +0 -2
  13. package/dist/index.d.ts +0 -16
  14. package/dist/index.js +0 -32
  15. package/dist/lease-list-item.d.ts +0 -8
  16. package/dist/lease-list-item.js +0 -2
  17. package/dist/lease.d.ts +0 -10
  18. package/dist/lease.js +0 -2
  19. package/dist/login.d.ts +0 -4
  20. package/dist/login.js +0 -2
  21. package/dist/notification.d.ts +0 -10
  22. package/dist/notification.js +0 -2
  23. package/dist/property.d.ts +0 -9
  24. package/dist/property.js +0 -2
  25. package/dist/quebec-lease-dwelling/index.d.ts +0 -20
  26. package/dist/quebec-lease-dwelling/index.js +0 -2
  27. package/dist/quebec-lease-dwelling/sectionA.d.ts +0 -16
  28. package/dist/quebec-lease-dwelling/sectionA.js +0 -2
  29. package/dist/quebec-lease-dwelling/sectionB.d.ts +0 -38
  30. package/dist/quebec-lease-dwelling/sectionB.js +0 -2
  31. package/dist/quebec-lease-dwelling/sectionC.d.ts +0 -7
  32. package/dist/quebec-lease-dwelling/sectionC.js +0 -2
  33. package/dist/quebec-lease-dwelling/sectionD.d.ts +0 -15
  34. package/dist/quebec-lease-dwelling/sectionD.js +0 -2
  35. package/dist/quebec-lease-dwelling/sectionE.d.ts +0 -26
  36. package/dist/quebec-lease-dwelling/sectionE.js +0 -2
  37. package/dist/quebec-lease-dwelling/sectionF.d.ts +0 -6
  38. package/dist/quebec-lease-dwelling/sectionF.js +0 -2
  39. package/dist/quebec-lease-dwelling/sectionG.d.ts +0 -7
  40. package/dist/quebec-lease-dwelling/sectionG.js +0 -2
  41. package/dist/quebec-lease-dwelling/sectionH.d.ts +0 -3
  42. package/dist/quebec-lease-dwelling/sectionH.js +0 -2
  43. package/dist/quebec-lease-dwelling/sectionI.d.ts +0 -3
  44. package/dist/quebec-lease-dwelling/sectionI.js +0 -2
  45. package/dist/sign-up.d.ts +0 -8
  46. package/dist/sign-up.js +0 -2
  47. package/dist/sort.d.ts +0 -1
  48. package/dist/sort.js +0 -2
  49. package/dist/state.d.ts +0 -7
  50. package/dist/state.js +0 -2
  51. package/dist/template.d.ts +0 -7
  52. package/dist/template.js +0 -2
  53. package/dist/user.d.ts +0 -6
  54. package/dist/user.js +0 -2
  55. package/dist/yes-no.d.ts +0 -4
  56. package/dist/yes-no.js +0 -2
package/package.json CHANGED
@@ -1,32 +1,32 @@
1
- {
2
- "name": "@royalinvest/dto",
3
- "version": "0.3.2",
4
- "description": "Data Transfer Objects (DTOs) to carry data between frontend and backend processes.",
5
- "main": "./src/index.ts",
6
- "types": "./dist/index.d.ts",
7
- "module": "./dist/index.js",
8
- "exports": {
9
- ".": {
10
- "types": "./dist/index.d.ts",
11
- "import": "./dist/index.js"
12
- }
13
- },
14
- "repository": {
15
- "type": "git",
16
- "url": "git@ssh.dev.azure.com:v3/royalinvest/royalinvest/royalinvestserver"
17
- },
18
- "files": [
19
- "./dist"
20
- ],
21
- "publishConfig": {
22
- "access": "public"
23
- },
24
- "scripts": {
25
- "build": "npx tsc",
26
- "clean": "rm -rf ./dist",
27
- "test": "echo \"Error: no test specified\" && exit 1"
28
- },
29
- "author": "Samos Technologies Inc.",
30
- "license": "ISC",
31
- "dependencies": {}
32
- }
1
+ {
2
+ "name": "@royalinvest/dto",
3
+ "version": "0.4.0",
4
+ "description": "Data Transfer Objects (DTOs) to carry data between frontend and backend processes.",
5
+ "main": "./src/index.ts",
6
+ "types": "./dist/index.d.ts",
7
+ "module": "./dist/index.js",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "import": "./dist/index.js"
12
+ }
13
+ },
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "git@ssh.dev.azure.com:v3/royalinvest/royalinvest/royalinvestserver"
17
+ },
18
+ "files": [
19
+ "./dist"
20
+ ],
21
+ "publishConfig": {
22
+ "access": "public"
23
+ },
24
+ "scripts": {
25
+ "build": "npx tsc",
26
+ "clean": "rm -rf ./dist",
27
+ "test": "echo \"Error: no test specified\" && exit 1"
28
+ },
29
+ "author": "Samos Technologies Inc.",
30
+ "license": "ISC",
31
+ "dependencies": {}
32
+ }
package/readMe.md CHANGED
@@ -1 +1 @@
1
- # This is Royal Invest DTO package to share data between frontend and backend processes.
1
+ # This is Royal Invest DTO package to share data between frontend and backend processes.
package/dist/address.d.ts DELETED
@@ -1,9 +0,0 @@
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
- }
package/dist/address.js DELETED
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
package/dist/auth.d.ts DELETED
@@ -1,5 +0,0 @@
1
- import { IUser } from "./user";
2
- export type IAuth = {
3
- accessToken: string;
4
- user: IUser;
5
- };
package/dist/auth.js DELETED
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
package/dist/country.d.ts DELETED
@@ -1,4 +0,0 @@
1
- export interface ICountry {
2
- id: string;
3
- name: string;
4
- }
package/dist/country.js DELETED
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,14 +0,0 @@
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
- }
@@ -1,20 +0,0 @@
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 = {}));
package/dist/expense.d.ts DELETED
@@ -1,9 +0,0 @@
1
- import { IProperty } from "./property";
2
- export interface IExpense {
3
- id?: string;
4
- name: string;
5
- amount: number;
6
- date: Date;
7
- property?: IProperty;
8
- file_name?: string;
9
- }
package/dist/expense.js DELETED
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
package/dist/index.d.ts DELETED
@@ -1,16 +0,0 @@
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";
package/dist/index.js DELETED
@@ -1,32 +0,0 @@
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);
@@ -1,8 +0,0 @@
1
- export interface ILeaseListItem {
2
- id: string;
3
- address: string;
4
- start: Date;
5
- end: Date;
6
- amount: string;
7
- status: string;
8
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
package/dist/lease.d.ts DELETED
@@ -1,10 +0,0 @@
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 DELETED
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
package/dist/login.d.ts DELETED
@@ -1,4 +0,0 @@
1
- export interface ILogin {
2
- email: string;
3
- password: string;
4
- }
package/dist/login.js DELETED
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,10 +0,0 @@
1
- export interface INotification {
2
- id?: string;
3
- user_id?: string;
4
- payload: IPayload;
5
- }
6
- export interface IPayload {
7
- type: string;
8
- message: string;
9
- link?: string;
10
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,9 +0,0 @@
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
- }
package/dist/property.js DELETED
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,20 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,16 +0,0 @@
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 {};
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,38 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,15 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,26 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,3 +0,0 @@
1
- export interface sectionH {
2
- solidarily_liable_for_lease: string;
3
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,3 +0,0 @@
1
- export interface sectionI {
2
- married_civil_union_name_spouse: string;
3
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
package/dist/sign-up.d.ts DELETED
@@ -1,8 +0,0 @@
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
- };
package/dist/sign-up.js DELETED
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
package/dist/sort.d.ts DELETED
@@ -1 +0,0 @@
1
- export type SortType = "asc" | "desc";
package/dist/sort.js DELETED
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
package/dist/state.d.ts DELETED
@@ -1,7 +0,0 @@
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 DELETED
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +0,0 @@
1
- export interface ITemplate {
2
- id: string;
3
- name: string;
4
- description: string;
5
- file_name: string;
6
- state_id?: string;
7
- }
package/dist/template.js DELETED
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
package/dist/user.d.ts DELETED
@@ -1,6 +0,0 @@
1
- export interface IUser {
2
- id: string;
3
- displayName: string;
4
- email: string;
5
- photoURL: string;
6
- }
package/dist/user.js DELETED
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
package/dist/yes-no.d.ts DELETED
@@ -1,4 +0,0 @@
1
- export interface IYesNo {
2
- yes: boolean;
3
- no: boolean;
4
- }
package/dist/yes-no.js DELETED
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });