@royalinvest/dto 0.68.2 → 0.69.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.
package/dist/index.d.ts CHANGED
@@ -27,6 +27,7 @@ export * from "./fileCertificate";
27
27
  export * from "./fileMetadata";
28
28
  export * from "./fileView";
29
29
  export * from "./invoiceRenderData";
30
+ export * from "./jobs";
30
31
  export * from "./key-value";
31
32
  export * from "./layout";
32
33
  export * from "./lease-details";
package/dist/index.js CHANGED
@@ -43,6 +43,7 @@ __exportStar(require("./fileCertificate"), exports);
43
43
  __exportStar(require("./fileMetadata"), exports);
44
44
  __exportStar(require("./fileView"), exports);
45
45
  __exportStar(require("./invoiceRenderData"), exports);
46
+ __exportStar(require("./jobs"), exports);
46
47
  __exportStar(require("./key-value"), exports);
47
48
  __exportStar(require("./layout"), exports);
48
49
  __exportStar(require("./lease-details"), exports);
package/dist/jobs.d.ts ADDED
@@ -0,0 +1,8 @@
1
+ export interface IJobCreate {
2
+ execute_at: Date;
3
+ resource_id: string;
4
+ }
5
+ export interface IJobCancel {
6
+ resource_id: string;
7
+ job_key?: string;
8
+ }
package/dist/jobs.js ADDED
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ export interface IMessageBrokerEvent<TPayload> {
2
+ http_request_id: string;
3
+ user_id: string;
4
+ payload: TPayload;
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,57 @@
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
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,45 @@
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
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -78,9 +78,16 @@ export declare const RABBITMQ_EXCHANGES: {
78
78
  readonly keys: {
79
79
  readonly create: "job_scheduling.create";
80
80
  readonly cancel: "job_scheduling.cancel";
81
+ readonly report_status: "job_scheduling.report_status";
82
+ readonly rent_payment_initiate: "job_scheduling.rent_payment_initiated";
83
+ readonly rent_payment_checkout_completed: "job_scheduling.rent_payment_checkout_session_completed";
84
+ readonly rent_payment_invoice_paid: "job_scheduling_rent_payment_invoice_paid";
85
+ readonly rent_payment_subscription_delete: "job_scheduling.rent_payment_subscription_delete";
86
+ readonly rent_collection_subscription_update: "job_scheduling.rent_payment_subscription_update";
81
87
  };
82
88
  readonly queues: {
83
89
  readonly job_scheduling: "job_scheduling_queue";
90
+ readonly job_execution: "job_execution_queue";
84
91
  };
85
92
  };
86
93
  };
@@ -81,9 +81,16 @@ exports.RABBITMQ_EXCHANGES = {
81
81
  keys: {
82
82
  create: "job_scheduling.create",
83
83
  cancel: "job_scheduling.cancel",
84
+ report_status: "job_scheduling.report_status",
85
+ rent_payment_initiate: "job_scheduling.rent_payment_initiated",
86
+ rent_payment_checkout_completed: "job_scheduling.rent_payment_checkout_session_completed",
87
+ rent_payment_invoice_paid: "job_scheduling_rent_payment_invoice_paid",
88
+ rent_payment_subscription_delete: "job_scheduling.rent_payment_subscription_delete",
89
+ rent_collection_subscription_update: "job_scheduling.rent_payment_subscription_update",
84
90
  },
85
91
  queues: {
86
92
  job_scheduling: "job_scheduling_queue",
93
+ job_execution: "job_execution_queue",
87
94
  },
88
95
  },
89
96
  };
@@ -3,3 +3,16 @@ export interface IMessageBrokerEvent<TPayload> {
3
3
  user_id: string;
4
4
  payload: TPayload;
5
5
  }
6
+ export interface IMessageBrokerEventWithResponse<TPayload> {
7
+ http_request_id: string;
8
+ user_id: string;
9
+ payload: TPayload;
10
+ response?: {
11
+ message_key: string;
12
+ message_payload: JSON;
13
+ };
14
+ status?: {
15
+ success: boolean;
16
+ error?: string;
17
+ };
18
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@royalinvest/dto",
3
- "version": "0.68.2",
3
+ "version": "0.69.2",
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",