@royalinvest/dto 0.53.0 → 0.55.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 (32) hide show
  1. package/dist/creditCheckReport.d.ts +33 -0
  2. package/dist/enum/index.d.ts +3 -0
  3. package/dist/enum/index.js +5 -1
  4. package/dist/index.d.ts +10 -7
  5. package/dist/index.js +10 -7
  6. package/dist/messageBrokerEvent.d.ts +5 -0
  7. package/dist/messageGenerate.d.ts +9 -1
  8. package/dist/quebec-lease-in-low-rental-housing/index.d.ts +19 -0
  9. package/dist/quebec-lease-in-low-rental-housing/index.js +2 -0
  10. package/dist/quebec-lease-in-low-rental-housing/sectionA.d.ts +6 -0
  11. package/dist/quebec-lease-in-low-rental-housing/sectionA.js +2 -0
  12. package/dist/quebec-lease-in-low-rental-housing/sectionB.d.ts +5 -0
  13. package/dist/quebec-lease-in-low-rental-housing/sectionB.js +2 -0
  14. package/dist/quebec-lease-in-low-rental-housing/sectionC.d.ts +12 -0
  15. package/dist/quebec-lease-in-low-rental-housing/sectionC.js +2 -0
  16. package/dist/quebec-lease-in-low-rental-housing/sectionD.d.ts +26 -0
  17. package/dist/quebec-lease-in-low-rental-housing/sectionD.js +2 -0
  18. package/dist/quebec-lease-in-low-rental-housing/sectionE.d.ts +17 -0
  19. package/dist/quebec-lease-in-low-rental-housing/sectionE.js +2 -0
  20. package/dist/quebec-lease-in-low-rental-housing/sectionF.d.ts +6 -0
  21. package/dist/quebec-lease-in-low-rental-housing/sectionF.js +2 -0
  22. package/dist/quebec-lease-in-low-rental-housing/sectionG.d.ts +6 -0
  23. package/dist/quebec-lease-in-low-rental-housing/sectionG.js +2 -0
  24. package/dist/quebec-lease-in-low-rental-housing/sectionH.d.ts +5 -0
  25. package/dist/quebec-lease-in-low-rental-housing/sectionH.js +2 -0
  26. package/dist/reportData.d.ts +2 -0
  27. package/dist/reportData.js +2 -0
  28. package/package.json +1 -1
  29. package/dist/invoiceFormData.d.ts +0 -51
  30. package/dist/payment.d.ts +0 -1
  31. /package/dist/{invoiceFormData.js → creditCheckReport.js} +0 -0
  32. /package/dist/{payment.js → messageBrokerEvent.js} +0 -0
@@ -0,0 +1,33 @@
1
+ import { IKeyValue } from "./key-value";
2
+ export interface ICreditCheckReportData {
3
+ bureau: string;
4
+ title: string;
5
+ subtitle: string;
6
+ header: IKeyValue[];
7
+ footer: ICreditCheckReportFooter;
8
+ details: ICreditCheckReportDetails;
9
+ sections: ICreditCheckReportSection[];
10
+ }
11
+ export interface ICreditCheckReportSection {
12
+ title: string;
13
+ newPage?: boolean;
14
+ subsections: ICreditCheckReportSubsection[];
15
+ }
16
+ export interface ICreditCheckReportSubsection {
17
+ title?: string;
18
+ description: string;
19
+ boxData?: BoxData;
20
+ selectedBoxIndex?: number;
21
+ }
22
+ export type BoxData = (string | string[])[];
23
+ export type ICreditCheckReportDetails = (ICreditCheckReportDetailsItem | ICreditCheckReportDetailsItem[])[][];
24
+ export interface ICreditCheckReportDetailsItem extends IKeyValue {
25
+ color?: string;
26
+ background?: string;
27
+ widthPercentage?: number;
28
+ }
29
+ export interface ICreditCheckReportFooter {
30
+ disclaimer: string[];
31
+ contacts: string[];
32
+ other: IKeyValue[];
33
+ }
@@ -101,3 +101,6 @@ export declare enum UnitMeasurementEnum {
101
101
  UNIT = "unit",
102
102
  MEGABYTE = "megabyte"
103
103
  }
104
+ export declare enum ReportTypeEnum {
105
+ CreditCheck = "CreditCheck"
106
+ }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UnitMeasurementEnum = exports.BulkPurchaseSourceTypeEnum = exports.TextAlignmentEnum = exports.LeaseDurationEnum = exports.LeaseTermTypeEnum = exports.LeaseCategoryEnum = exports.LeaseTypeEnum = exports.LeaseNoticeTypeEnum = exports.SignatureDateTypeEnum = exports.SignActionEnum = exports.NotificationTypeEnum = exports.SignStatusEnum = exports.SignatureType = exports.LeaseStatusEnum = exports.RentTypeEnum = exports.PartyTypeEnum = void 0;
3
+ exports.ReportTypeEnum = exports.UnitMeasurementEnum = exports.BulkPurchaseSourceTypeEnum = exports.TextAlignmentEnum = exports.LeaseDurationEnum = exports.LeaseTermTypeEnum = 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"] = "";
@@ -110,3 +110,7 @@ var UnitMeasurementEnum;
110
110
  UnitMeasurementEnum["UNIT"] = "unit";
111
111
  UnitMeasurementEnum["MEGABYTE"] = "megabyte";
112
112
  })(UnitMeasurementEnum || (exports.UnitMeasurementEnum = UnitMeasurementEnum = {}));
113
+ var ReportTypeEnum;
114
+ (function (ReportTypeEnum) {
115
+ ReportTypeEnum["CreditCheck"] = "CreditCheck";
116
+ })(ReportTypeEnum || (exports.ReportTypeEnum = ReportTypeEnum = {}));
package/dist/index.d.ts CHANGED
@@ -2,7 +2,9 @@ export * from "./address";
2
2
  export * from "./auth";
3
3
  export * from "./balance";
4
4
  export * from "./base64Image";
5
+ export * from "./billing";
5
6
  export * from "./ca";
7
+ export * from "./capability";
6
8
  export * from "./category";
7
9
  export * from "./certificateFormData";
8
10
  export * from "./checkout";
@@ -10,11 +12,14 @@ export * from "./co-singer";
10
12
  export * from "./contract-type";
11
13
  export * from "./contractAttachment";
12
14
  export * from "./contractParty";
15
+ export * from "./contractUsage";
13
16
  export * from "./country";
17
+ export * from "./creditCheckReport";
14
18
  export * from "./documentDrawingInstructions";
15
19
  export * from "./emailMessage";
16
20
  export * from "./enum";
17
21
  export * from "./expense";
22
+ export * from "./feature";
18
23
  export * from "./field";
19
24
  export * from "./file";
20
25
  export * from "./fileCertificate";
@@ -26,11 +31,13 @@ export * from "./layout";
26
31
  export * from "./lease-details";
27
32
  export * from "./lease-duplicate";
28
33
  export * from "./lease-list-item";
34
+ export * from "./lease-of-dwelling-notice-max-rent";
29
35
  export * from "./lease-of-dwelling-notice";
30
36
  export * from "./lease";
31
37
  export * from "./leaseNoticeRule";
32
38
  export * from "./leaseSaveTypeEnum";
33
39
  export * from "./list-response";
40
+ export * from "./messageBrokerEvent";
34
41
  export * from "./messageGenerate";
35
42
  export * from "./messageNotification";
36
43
  export * from "./noticeRule";
@@ -40,6 +47,7 @@ export * from "./physicalFileDetails";
40
47
  export * from "./placeholder-date";
41
48
  export * from "./placeholder";
42
49
  export * from "./placeholderCollection";
50
+ export * from "./plan";
43
51
  export * from "./profile";
44
52
  export * from "./property";
45
53
  export * from "./propertyUnit";
@@ -47,8 +55,10 @@ export * from "./quebec-lease-dwelling-annex6";
47
55
  export * from "./quebec-lease-dwelling-cooperative";
48
56
  export * from "./quebec-lease-dwelling";
49
57
  export * from "./quebec-lease-educational-institution";
58
+ export * from "./quebec-lease-in-low-rental-housing";
50
59
  export * from "./quebec-lease-land-mobile-home";
51
60
  export * from "./savedSignature";
61
+ export * from "./signature-confirmation";
52
62
  export * from "./signature-party";
53
63
  export * from "./signatureParty";
54
64
  export * from "./signaturePartyAuditDetails";
@@ -64,10 +74,3 @@ export * from "./template-variant";
64
74
  export * from "./template";
65
75
  export * from "./user";
66
76
  export * from "./yes-no";
67
- export * from "./contractUsage";
68
- export * from "./signature-confirmation";
69
- export * from "./billing";
70
- export * from "./plan";
71
- export * from "./feature";
72
- export * from "./capability";
73
- export * from "./lease-of-dwelling-notice-max-rent";
package/dist/index.js CHANGED
@@ -18,7 +18,9 @@ __exportStar(require("./address"), exports);
18
18
  __exportStar(require("./auth"), exports);
19
19
  __exportStar(require("./balance"), exports);
20
20
  __exportStar(require("./base64Image"), exports);
21
+ __exportStar(require("./billing"), exports);
21
22
  __exportStar(require("./ca"), exports);
23
+ __exportStar(require("./capability"), exports);
22
24
  __exportStar(require("./category"), exports);
23
25
  __exportStar(require("./certificateFormData"), exports);
24
26
  __exportStar(require("./checkout"), exports);
@@ -26,11 +28,14 @@ __exportStar(require("./co-singer"), exports);
26
28
  __exportStar(require("./contract-type"), exports);
27
29
  __exportStar(require("./contractAttachment"), exports);
28
30
  __exportStar(require("./contractParty"), exports);
31
+ __exportStar(require("./contractUsage"), exports);
29
32
  __exportStar(require("./country"), exports);
33
+ __exportStar(require("./creditCheckReport"), exports);
30
34
  __exportStar(require("./documentDrawingInstructions"), exports);
31
35
  __exportStar(require("./emailMessage"), exports);
32
36
  __exportStar(require("./enum"), exports);
33
37
  __exportStar(require("./expense"), exports);
38
+ __exportStar(require("./feature"), exports);
34
39
  __exportStar(require("./field"), exports);
35
40
  __exportStar(require("./file"), exports);
36
41
  __exportStar(require("./fileCertificate"), exports);
@@ -42,11 +47,13 @@ __exportStar(require("./layout"), exports);
42
47
  __exportStar(require("./lease-details"), exports);
43
48
  __exportStar(require("./lease-duplicate"), exports);
44
49
  __exportStar(require("./lease-list-item"), exports);
50
+ __exportStar(require("./lease-of-dwelling-notice-max-rent"), exports);
45
51
  __exportStar(require("./lease-of-dwelling-notice"), exports);
46
52
  __exportStar(require("./lease"), exports);
47
53
  __exportStar(require("./leaseNoticeRule"), exports);
48
54
  __exportStar(require("./leaseSaveTypeEnum"), exports);
49
55
  __exportStar(require("./list-response"), exports);
56
+ __exportStar(require("./messageBrokerEvent"), exports);
50
57
  __exportStar(require("./messageGenerate"), exports);
51
58
  __exportStar(require("./messageNotification"), exports);
52
59
  __exportStar(require("./noticeRule"), exports);
@@ -56,6 +63,7 @@ __exportStar(require("./physicalFileDetails"), exports);
56
63
  __exportStar(require("./placeholder-date"), exports);
57
64
  __exportStar(require("./placeholder"), exports);
58
65
  __exportStar(require("./placeholderCollection"), exports);
66
+ __exportStar(require("./plan"), exports);
59
67
  __exportStar(require("./profile"), exports);
60
68
  __exportStar(require("./property"), exports);
61
69
  __exportStar(require("./propertyUnit"), exports);
@@ -63,8 +71,10 @@ __exportStar(require("./quebec-lease-dwelling-annex6"), exports);
63
71
  __exportStar(require("./quebec-lease-dwelling-cooperative"), exports);
64
72
  __exportStar(require("./quebec-lease-dwelling"), exports);
65
73
  __exportStar(require("./quebec-lease-educational-institution"), exports);
74
+ __exportStar(require("./quebec-lease-in-low-rental-housing"), exports);
66
75
  __exportStar(require("./quebec-lease-land-mobile-home"), exports);
67
76
  __exportStar(require("./savedSignature"), exports);
77
+ __exportStar(require("./signature-confirmation"), exports);
68
78
  __exportStar(require("./signature-party"), exports);
69
79
  __exportStar(require("./signatureParty"), exports);
70
80
  __exportStar(require("./signaturePartyAuditDetails"), exports);
@@ -80,10 +90,3 @@ __exportStar(require("./template-variant"), exports);
80
90
  __exportStar(require("./template"), exports);
81
91
  __exportStar(require("./user"), exports);
82
92
  __exportStar(require("./yes-no"), exports);
83
- __exportStar(require("./contractUsage"), exports);
84
- __exportStar(require("./signature-confirmation"), exports);
85
- __exportStar(require("./billing"), exports);
86
- __exportStar(require("./plan"), exports);
87
- __exportStar(require("./feature"), exports);
88
- __exportStar(require("./capability"), exports);
89
- __exportStar(require("./lease-of-dwelling-notice-max-rent"), exports);
@@ -0,0 +1,5 @@
1
+ export interface IMessageBrokerEvent<TPayload> {
2
+ request_id: string;
3
+ user_id: string;
4
+ payload: TPayload;
5
+ }
@@ -1,10 +1,11 @@
1
- import { LeaseTypeEnum } from "./enum";
1
+ import { LeaseTypeEnum, ReportTypeEnum } from "./enum";
2
2
  import { ICertificateFormData } from "./certificateFormData";
3
3
  import { IContractParty } from "./contractParty";
4
4
  import { IDocumentDrawingInstructions } from "./documentDrawingInstructions";
5
5
  import { IFileMetadata } from "./fileMetadata";
6
6
  import { ISignaturePartySigned } from "./signaturePartySigned";
7
7
  import { IInvoiceRenderData } from "./invoiceRenderData";
8
+ import { IReportData } from "./reportData";
8
9
  export interface IMessageGenerate {
9
10
  contract_id: string;
10
11
  details: JSON;
@@ -48,3 +49,10 @@ export interface IMessageGenerateInvoice {
48
49
  language: string;
49
50
  data: IInvoiceRenderData;
50
51
  }
52
+ export interface IMessageGenerateReport {
53
+ report_id: string;
54
+ report_type: ReportTypeEnum;
55
+ report_data: IReportData;
56
+ blob_path: string;
57
+ language?: string;
58
+ }
@@ -0,0 +1,19 @@
1
+ import { IBaseLeaseDetails } from "../baseLeaseDetails";
2
+ import { sectionA } from "./sectionA";
3
+ import { sectionB } from "./sectionB";
4
+ import { sectionC } from "./sectionC";
5
+ import { sectionD } from "./sectionD";
6
+ import { sectionE } from "./sectionE";
7
+ import { sectionF } from "./sectionF";
8
+ import { sectionG } from "./sectionG";
9
+ import { sectionH } from "./sectionH";
10
+ export interface ILeaseInLowRentalHousing extends IBaseLeaseDetails {
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
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ import { field } from "../field";
2
+ export interface sectionA {
3
+ lessor: field[];
4
+ lessee: field[];
5
+ represented_by: string;
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ import { IAddress } from "../address";
2
+ export interface sectionB extends IAddress {
3
+ id?: string;
4
+ number_of_rooms: string;
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ export interface sectionC {
2
+ rent_type: string;
3
+ duration: string;
4
+ rent_start: Date | null;
5
+ rent_start_day?: string;
6
+ rent_start_month?: string;
7
+ rent_start_year?: string;
8
+ rent_end: Date | null;
9
+ rent_end_day?: string;
10
+ rent_end_month?: string;
11
+ rent_end_year?: string;
12
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,26 @@
1
+ export interface sectionD {
2
+ rent_amount: string;
3
+ service_amount: string;
4
+ total_rent_amount: string;
5
+ rent_frequency_month: boolean;
6
+ total_cost_frequency_month: boolean;
7
+ total_rent_frequency_month: boolean;
8
+ rent_frequency_week: boolean;
9
+ total_cost_frequency_week: boolean;
10
+ total_rent_frequency_week: boolean;
11
+ first_payment_date: Date | null;
12
+ first_payment_date_day?: string;
13
+ first_payment_date_month?: string;
14
+ first_payment_date_year?: string;
15
+ rent_paid_first_day_of_month: boolean;
16
+ rent_paid_first_day_of_week: boolean;
17
+ rent_paid_specify: string;
18
+ rent_payment_method_cash: boolean;
19
+ rent_payment_method_cheque: boolean;
20
+ rent_payment_method_bank_transfer: boolean;
21
+ rent_payment_method_other: boolean;
22
+ rent_payment_other_specify: string;
23
+ post_dated_cheques_yes: boolean;
24
+ post_dated_cheques_no: boolean;
25
+ place_of_payment: string;
26
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,17 @@
1
+ export interface sectionE {
2
+ by_laws_immovable_given: Date | null;
3
+ by_laws_immovable_given_day?: string;
4
+ by_laws_immovable_given_month?: string;
5
+ by_laws_immovable_given_year?: string;
6
+ other_conditions: string;
7
+ other_conditions_line_1?: string;
8
+ other_conditions_line_2?: string;
9
+ other_conditions_line_3?: string;
10
+ other_conditions_line_4?: string;
11
+ right_access_land_yes: boolean;
12
+ right_access_land_no: boolean;
13
+ right_access_land_specify: string;
14
+ keep_animal_yes: boolean;
15
+ keep_animal_no: boolean;
16
+ keep_animal_specify: string;
17
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ export interface sectionF {
2
+ schedules: string;
3
+ schedules_line_1?: string;
4
+ schedules_line_2?: string;
5
+ schedules_line_3?: string;
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ import { ICosinger } from "../co-singer";
2
+ export interface sectionG {
3
+ solidarily_liable_for_lease_yes: boolean;
4
+ solidarily_liable_for_lease_no: boolean;
5
+ co_signer: ICosinger[];
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ export interface sectionH {
2
+ spouse_id?: string;
3
+ married_civil_union_name_spouse: string;
4
+ spouse_email: string;
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ import { ICreditCheckReportData } from "./creditCheckReport";
2
+ export type IReportData = ICreditCheckReportData;
@@ -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.53.0",
3
+ "version": "0.55.0",
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",
@@ -1,51 +0,0 @@
1
- export interface IInvoiceContact {
2
- name: string;
3
- address: string;
4
- city: string;
5
- postal: string;
6
- country: string;
7
- phone?: string;
8
- email: string;
9
- website?: string;
10
- }
11
- export interface IInvoiceField {
12
- label: string;
13
- value: string | number | IInvoiceContact | null;
14
- }
15
- export interface IInvoiceTable<T> {
16
- headers: string[];
17
- items: T[];
18
- }
19
- export interface IInvoiceItem {
20
- description: string;
21
- quantity: number;
22
- unit_price: string;
23
- total_price: string;
24
- }
25
- export interface ITax {
26
- description: string;
27
- rate: string;
28
- amount: string;
29
- }
30
- export interface IPaymentInfo {
31
- message: IInvoiceField;
32
- support: IInvoiceField;
33
- }
34
- export interface IInvoiceFormData {
35
- invoice_number: IInvoiceField;
36
- currency: string;
37
- date: IInvoiceField;
38
- status: IInvoiceField;
39
- company_info: IInvoiceField;
40
- customer_info: IInvoiceField;
41
- tax_registration_numbers: IInvoiceField[];
42
- items_table: IInvoiceTable<IInvoiceItem>;
43
- taxes_table: IInvoiceTable<ITax>;
44
- subtotal: IInvoiceField;
45
- total: IInvoiceField;
46
- payment_info: IPaymentInfo;
47
- payment_method: IInvoiceField;
48
- last4_digits: IInvoiceField;
49
- stripe_transaction_id: string;
50
- stripe_session_id: string;
51
- }
package/dist/payment.d.ts DELETED
@@ -1 +0,0 @@
1
- export type PaymentIntervalType = "month" | "year";
File without changes