@royalinvest/dto 0.67.2 → 0.68.1

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.
@@ -6,6 +6,7 @@ export type TCreditCheckStatus = "pass" | "fail" | "review" | "not_found";
6
6
  export type TCreditScoreTier = "a_plus" | "a" | "b_plus" | "b" | "c_plus" | "c" | "d" | "f";
7
7
  export type TCreditCheckRequestStatus = "draft" | "pending" | "completed" | "failed" | "expired" | "cancelled";
8
8
  export type TCreditCheckInitiated = "tenant_initiated" | "landlord_initiated";
9
+ export type TCreditCheckErrorType = "bureau" | "document-generation" | "report-processing" | "other";
9
10
  export type TConsentAuditAction = "sent" | "resent" | "viewed" | "confirmed" | "failed";
10
11
  export type TConsentStatus = "none" | "pending" | "confirmed" | "expired" | "cancelled";
11
12
  export type IConsentMethod = "checkbox" | "uploaded_file";
@@ -211,6 +212,7 @@ export interface ICreditCheckRequested {
211
212
  }
212
213
  export interface ICreditCheckFailed {
213
214
  credit_check_subject_id: string;
215
+ error_type: TCreditCheckErrorType;
214
216
  error_code: string;
215
217
  error_message: string;
216
218
  bureau_reference_id: string;
@@ -271,6 +273,7 @@ export interface ICreditCheckReportFileDownload {
271
273
  export interface ICreditCheckError {
272
274
  id: string;
273
275
  subject_id: string;
276
+ error_type: TCreditCheckErrorType;
274
277
  error_code: string;
275
278
  error_message: string;
276
279
  bureau_reference_id?: string;
package/dist/plan.d.ts CHANGED
@@ -10,4 +10,9 @@ export interface IPlan {
10
10
  discount_percentage: number;
11
11
  action_label: string;
12
12
  features: IFeature[];
13
+ promo_icon_name?: string;
14
+ promo_action_label?: string;
15
+ promo_discount_percentage?: number;
16
+ promo_start_date_utc?: Date;
17
+ promo_end_date_utc?: Date;
13
18
  }
@@ -49,6 +49,7 @@ export interface IMessageGenerateInvoice {
49
49
  export interface IMessageGenerateCreditCheckReport {
50
50
  report_data: ICreditCheckReportData;
51
51
  subject_id: string;
52
+ bureau_reference_id: string;
52
53
  blob_path: string;
53
54
  language: string;
54
55
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@royalinvest/dto",
3
- "version": "0.67.2",
3
+ "version": "0.68.1",
4
4
  "description": "Data Transfer Objects (DTOs) to carry data between frontend and backend processes.",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -1,5 +0,0 @@
1
- export interface IMessageBrokerEvent<TPayload> {
2
- http_request_id: string;
3
- user_id: string;
4
- payload: TPayload;
5
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,57 +0,0 @@
1
- import { LeaseTypeEnum } from "./enum";
2
- import { ICertificateFormData } from "./certificateFormData";
3
- import { IContractParty } from "./contractParty";
4
- import { IDocumentDrawingInstructions } from "./documentDrawingInstructions";
5
- import { IFileMetadata } from "./fileMetadata";
6
- import { ISignaturePartySigned } from "./signaturePartySigned";
7
- import { IInvoiceRenderData } from "./invoiceRenderData";
8
- import { ICreditCheckReportData } from "./creditCheckReport";
9
- export interface IMessageGenerate {
10
- contract_id: string;
11
- details: JSON;
12
- user_id: string;
13
- template_variant_file_name: string;
14
- template_variant_name: string;
15
- template_variant_language: string;
16
- template_variant_mime_type: string;
17
- template_variant_id: string;
18
- template_name: LeaseTypeEnum;
19
- file_id?: string;
20
- isEdit?: boolean;
21
- contract_parties?: IContractParty[];
22
- drawing_instructions?: IDocumentDrawingInstructions;
23
- metadata?: IFileMetadata;
24
- }
25
- export interface IMessageGenerateSigned {
26
- party: ISignaturePartySigned;
27
- generate_hash?: boolean;
28
- }
29
- export interface IMessageGenerateVoided {
30
- user_id: string;
31
- contract_id: string;
32
- file_id: string;
33
- file_name: string;
34
- notify_party_email: boolean;
35
- generate_hash?: boolean;
36
- }
37
- export interface IMessageGenerateCertificate {
38
- file_id: string;
39
- blob_path: string;
40
- form_data: ICertificateFormData;
41
- form_instructions: JSON;
42
- language: string;
43
- }
44
- export interface IMessageGenerateInvoice {
45
- user_id: string;
46
- billing_id: string;
47
- blob_path: string;
48
- invoice_number: string;
49
- language: string;
50
- data: IInvoiceRenderData;
51
- }
52
- export interface IMessageGenerateCreditCheckReport {
53
- report_data: ICreditCheckReportData;
54
- subject_id: string;
55
- blob_path: string;
56
- language: string;
57
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,45 +0,0 @@
1
- import { IPhysicalFileDetails } from "./physicalFileDetails";
2
- import { IPlaceholderCollection } from "./placeholderCollection";
3
- import { ISignaturePartyBasic } from "./signaturePartyBasic";
4
- export interface IGeneratedNotification {
5
- contract_id: string;
6
- user_id: string;
7
- file_name: string;
8
- file_language: string;
9
- mime_type: string;
10
- template_name: string;
11
- template_variant_id: string;
12
- file_id?: string;
13
- isEdit?: boolean;
14
- generated_placeholders?: IPlaceholderCollection;
15
- generated_file_details?: IPhysicalFileDetails;
16
- }
17
- export interface ISignedNotification {
18
- file_id: string;
19
- party: ISignaturePartyBasic;
20
- generated_file_details?: IPhysicalFileDetails;
21
- }
22
- export interface IVoidedNotification {
23
- user_id: string;
24
- file_id: string;
25
- contract_id: string;
26
- notify_party_email: boolean;
27
- generated_file_details?: IPhysicalFileDetails;
28
- }
29
- export interface IGeneratedCertificateNotification {
30
- file_id: string;
31
- blob_path: string;
32
- }
33
- export interface IGeneratedInvoiceNotification {
34
- user_id: string;
35
- billing_id: string;
36
- blob_path: string;
37
- invoice_number: string;
38
- language: string;
39
- }
40
- export interface IGeneratedCreditCheckReportNotification {
41
- subject_id: string;
42
- blob_path: string;
43
- hash: string;
44
- language: string;
45
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });