@royalinvest/dto 0.25.4 → 0.27.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.
@@ -0,0 +1,8 @@
1
+ import { PartyTypeEnum } from "./enum";
2
+ import { field } from "./field";
3
+ export interface IContractParty {
4
+ id?: string;
5
+ order: number;
6
+ type: PartyTypeEnum;
7
+ party: field;
8
+ }
@@ -59,3 +59,13 @@ export declare enum LeaseCategoryEnum {
59
59
  Other = "other",
60
60
  Default = "default"
61
61
  }
62
+ export declare enum PlaceholderPrerequisiteTypeEnum {
63
+ MultiCheckbox = "MultiCheckbox"
64
+ }
65
+ export declare enum FieldTypeEnum {
66
+ Checkbox = "checkbox"
67
+ }
68
+ export declare enum AnswerTypeEnum {
69
+ Fixed = "fixed",
70
+ Freeform = "freeform"
71
+ }
package/dist/field.d.ts CHANGED
@@ -1,10 +1,8 @@
1
1
  import { IAddress } from "./address";
2
- import { PartyTypeEnum } from "./enum";
3
2
  export interface field extends IAddress {
4
3
  id?: string;
5
4
  name: string;
6
5
  email: string;
7
- type: PartyTypeEnum;
8
6
  telephone: string;
9
7
  other_telephone?: string;
10
8
  }
package/dist/index.d.ts CHANGED
@@ -5,6 +5,7 @@ export * from "./checkout";
5
5
  export * from "./co-singer";
6
6
  export * from "./contract-type";
7
7
  export * from "./contractAttachment";
8
+ export * from "./contractParty";
8
9
  export * from "./country";
9
10
  export * from "./emailMessage";
10
11
  export * from "./enum";
@@ -32,8 +33,8 @@ export * from "./profile";
32
33
  export * from "./property";
33
34
  export * from "./propertyUnit";
34
35
  export * from "./quebec-lease-dwelling";
36
+ export * from "./savedSignature";
35
37
  export * from "./signature-party";
36
- export * from "./signatureInitials";
37
38
  export * from "./signatureParty";
38
39
  export * from "./signaturePartyAuditDetails";
39
40
  export * from "./signaturePartyBasic";
package/dist/index.js CHANGED
@@ -21,6 +21,7 @@ __exportStar(require("./checkout"), exports);
21
21
  __exportStar(require("./co-singer"), exports);
22
22
  __exportStar(require("./contract-type"), exports);
23
23
  __exportStar(require("./contractAttachment"), exports);
24
+ __exportStar(require("./contractParty"), exports);
24
25
  __exportStar(require("./country"), exports);
25
26
  __exportStar(require("./emailMessage"), exports);
26
27
  __exportStar(require("./enum"), exports);
@@ -48,8 +49,8 @@ __exportStar(require("./profile"), exports);
48
49
  __exportStar(require("./property"), exports);
49
50
  __exportStar(require("./propertyUnit"), exports);
50
51
  __exportStar(require("./quebec-lease-dwelling"), exports);
52
+ __exportStar(require("./savedSignature"), exports);
51
53
  __exportStar(require("./signature-party"), exports);
52
- __exportStar(require("./signatureInitials"), exports);
53
54
  __exportStar(require("./signatureParty"), exports);
54
55
  __exportStar(require("./signaturePartyAuditDetails"), exports);
55
56
  __exportStar(require("./signaturePartyBasic"), exports);
package/dist/lease.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { ContractType } from "./contract-type";
2
1
  import { LeaseStatusEnum } from "./enum";
3
- import { IParty } from "./party";
2
+ import { ContractType } from "./contract-type";
3
+ import { IContractParty } from "./contractParty";
4
4
  import { IProperty } from "./property";
5
5
  export interface ILease {
6
6
  id?: string;
@@ -14,6 +14,6 @@ export interface ILease {
14
14
  created_at?: Date;
15
15
  modified_at?: Date;
16
16
  allowed_edit_before: Date | null;
17
- parties?: IParty[];
17
+ parties?: IContractParty[];
18
18
  property?: IProperty;
19
19
  }
@@ -1,6 +1,8 @@
1
- import { ContractType } from "./contract-type";
1
+ import { IContractParty } from "./contractParty";
2
+ import { IProperty } from "./property";
2
3
  export interface IProcessContractNotification {
3
4
  user_id: string;
4
5
  contract_id: string;
5
- details: ContractType;
6
+ parties?: IContractParty[];
7
+ property?: IProperty;
6
8
  }
@@ -1,9 +1,20 @@
1
1
  import { ILayout } from "./layout";
2
- import { PartyTypeEnum, SignatureType } from "./enum";
2
+ import { AnswerTypeEnum, FieldTypeEnum, PartyTypeEnum, PlaceholderPrerequisiteTypeEnum, SignatureType } from "./enum";
3
3
  export interface IPlaceholder extends ILayout {
4
4
  id: string;
5
5
  party: PartyTypeEnum;
6
6
  type: SignatureType;
7
7
  order: number;
8
8
  page: number;
9
+ prerequisite?: IPlaceholderPrerequisite;
10
+ }
11
+ export interface IPlaceholderPrerequisite {
12
+ key: string;
13
+ type: PlaceholderPrerequisiteTypeEnum;
14
+ answer_type: AnswerTypeEnum;
15
+ fields: IPlaceholderPrerequisiteField[];
16
+ }
17
+ export interface IPlaceholderPrerequisiteField extends ILayout {
18
+ type: FieldTypeEnum;
19
+ answer?: string;
9
20
  }
@@ -0,0 +1,9 @@
1
+ export interface ISavedSignature {
2
+ initials: string;
3
+ signature: string;
4
+ timestamp: string;
5
+ answers: SavedSignatureAnswers;
6
+ }
7
+ export type SavedSignatureAnswers = {
8
+ [key: string]: any;
9
+ };
@@ -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.25.4",
3
+ "version": "0.27.1",
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,5 +0,0 @@
1
- export interface ISignatureInitials {
2
- initials: string;
3
- signature: string;
4
- timestamp: string;
5
- }
File without changes