@royalinvest/dto 0.35.2 → 0.36.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/balance.d.ts CHANGED
@@ -1,7 +1,8 @@
1
1
  export interface IBalance {
2
2
  id: string;
3
- template_id: string;
4
- template_name: string;
3
+ purchased_count: number;
5
4
  remaining_count: number;
5
+ created_at?: Date;
6
+ updated_at?: Date;
6
7
  expires_at?: Date;
7
8
  }
@@ -0,0 +1,4 @@
1
+ export interface IDocumentDrawingInstructions {
2
+ addendum: JSON;
3
+ attachments: JSON;
4
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ ;
@@ -0,0 +1,8 @@
1
+ export interface IFileMetadata {
2
+ title?: string;
3
+ subject?: string;
4
+ keywords?: string;
5
+ author?: string;
6
+ producer?: string;
7
+ creatorTool?: string;
8
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ ;
package/dist/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  export * from "./address";
2
2
  export * from "./auth";
3
+ export * from "./balance";
3
4
  export * from "./category";
4
5
  export * from "./certificateFormData";
5
6
  export * from "./checkout";
@@ -8,11 +9,13 @@ export * from "./contract-type";
8
9
  export * from "./contractAttachment";
9
10
  export * from "./contractParty";
10
11
  export * from "./country";
12
+ export * from "./documentDrawingInstructions";
11
13
  export * from "./emailMessage";
12
14
  export * from "./enum";
13
15
  export * from "./expense";
14
16
  export * from "./field";
15
17
  export * from "./file";
18
+ export * from "./fileMetadata";
16
19
  export * from "./fileView";
17
20
  export * from "./key-value";
18
21
  export * from "./layout";
@@ -29,6 +32,7 @@ export * from "./messageNotification";
29
32
  export * from "./noticeRule";
30
33
  export * from "./notification";
31
34
  export * from "./party";
35
+ export * from "./physicalFileDetails";
32
36
  export * from "./placeholder-date";
33
37
  export * from "./placeholder";
34
38
  export * from "./placeholderCollection";
@@ -52,4 +56,3 @@ export * from "./template-variant";
52
56
  export * from "./template";
53
57
  export * from "./user";
54
58
  export * from "./yes-no";
55
- export * from "./balance";
package/dist/index.js CHANGED
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./address"), exports);
18
18
  __exportStar(require("./auth"), exports);
19
+ __exportStar(require("./balance"), exports);
19
20
  __exportStar(require("./category"), exports);
20
21
  __exportStar(require("./certificateFormData"), exports);
21
22
  __exportStar(require("./checkout"), exports);
@@ -24,11 +25,13 @@ __exportStar(require("./contract-type"), exports);
24
25
  __exportStar(require("./contractAttachment"), exports);
25
26
  __exportStar(require("./contractParty"), exports);
26
27
  __exportStar(require("./country"), exports);
28
+ __exportStar(require("./documentDrawingInstructions"), exports);
27
29
  __exportStar(require("./emailMessage"), exports);
28
30
  __exportStar(require("./enum"), exports);
29
31
  __exportStar(require("./expense"), exports);
30
32
  __exportStar(require("./field"), exports);
31
33
  __exportStar(require("./file"), exports);
34
+ __exportStar(require("./fileMetadata"), exports);
32
35
  __exportStar(require("./fileView"), exports);
33
36
  __exportStar(require("./key-value"), exports);
34
37
  __exportStar(require("./layout"), exports);
@@ -45,6 +48,7 @@ __exportStar(require("./messageNotification"), exports);
45
48
  __exportStar(require("./noticeRule"), exports);
46
49
  __exportStar(require("./notification"), exports);
47
50
  __exportStar(require("./party"), exports);
51
+ __exportStar(require("./physicalFileDetails"), exports);
48
52
  __exportStar(require("./placeholder-date"), exports);
49
53
  __exportStar(require("./placeholder"), exports);
50
54
  __exportStar(require("./placeholderCollection"), exports);
@@ -68,4 +72,3 @@ __exportStar(require("./template-variant"), exports);
68
72
  __exportStar(require("./template"), exports);
69
73
  __exportStar(require("./user"), exports);
70
74
  __exportStar(require("./yes-no"), exports);
71
- __exportStar(require("./balance"), exports);
@@ -1,7 +1,9 @@
1
1
  import { LeaseTypeEnum } from "./enum";
2
- import { ISignaturePartySigned } from "./signaturePartySigned";
3
- import { IContractParty } from "./contractParty";
4
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";
5
7
  export interface IMessageGenerate {
6
8
  contract_id: string;
7
9
  details: JSON;
@@ -15,10 +17,12 @@ export interface IMessageGenerate {
15
17
  file_id?: string;
16
18
  isEdit?: boolean;
17
19
  contract_parties?: IContractParty[];
18
- drawing_instructions?: IMessageGenerateDrawingInstructions;
20
+ drawing_instructions?: IDocumentDrawingInstructions;
21
+ metadata?: IFileMetadata;
19
22
  }
20
23
  export interface IMessageGenerateSigned {
21
24
  party: ISignaturePartySigned;
25
+ generate_hash?: boolean;
22
26
  }
23
27
  export interface IMessageGenerateVoided {
24
28
  user_id: string;
@@ -26,10 +30,7 @@ export interface IMessageGenerateVoided {
26
30
  file_id: string;
27
31
  file_name: string;
28
32
  notify_party_email: boolean;
29
- }
30
- export interface IMessageGenerateDrawingInstructions {
31
- addendum: JSON;
32
- attachments: JSON;
33
+ generate_hash?: boolean;
33
34
  }
34
35
  export interface IMessageGenerateCertificate {
35
36
  language: string;
@@ -1,4 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  ;
4
- ;
@@ -1,3 +1,4 @@
1
+ import { IPhysicalFileDetails } from "./physicalFileDetails";
1
2
  import { IPlaceholderCollection } from "./placeholderCollection";
2
3
  import { ISignaturePartyBasic } from "./signaturePartyBasic";
3
4
  export interface IGeneratedNotification {
@@ -11,14 +12,17 @@ export interface IGeneratedNotification {
11
12
  file_id?: string;
12
13
  isEdit?: boolean;
13
14
  generated_placeholders?: IPlaceholderCollection;
15
+ generated_file_details?: IPhysicalFileDetails;
14
16
  }
15
17
  export interface ISignedNotification {
16
18
  file_id: string;
17
19
  party: ISignaturePartyBasic;
20
+ generated_file_details?: IPhysicalFileDetails;
18
21
  }
19
22
  export interface IVoidedNotification {
20
23
  user_id: string;
21
24
  file_id: string;
22
25
  contract_id: string;
23
26
  notify_party_email: boolean;
27
+ generated_file_details?: IPhysicalFileDetails;
24
28
  }
@@ -0,0 +1,5 @@
1
+ export interface IPhysicalFileDetails {
2
+ size_in_kb: number;
3
+ page_count: number;
4
+ hash?: string;
5
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ ;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@royalinvest/dto",
3
- "version": "0.35.2",
3
+ "version": "0.36.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",