@royalinvest/dto 0.25.4 → 0.26.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.
@@ -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/index.d.ts CHANGED
@@ -32,8 +32,8 @@ export * from "./profile";
32
32
  export * from "./property";
33
33
  export * from "./propertyUnit";
34
34
  export * from "./quebec-lease-dwelling";
35
+ export * from "./savedSignature";
35
36
  export * from "./signature-party";
36
- export * from "./signatureInitials";
37
37
  export * from "./signatureParty";
38
38
  export * from "./signaturePartyAuditDetails";
39
39
  export * from "./signaturePartyBasic";
package/dist/index.js CHANGED
@@ -48,8 +48,8 @@ __exportStar(require("./profile"), exports);
48
48
  __exportStar(require("./property"), exports);
49
49
  __exportStar(require("./propertyUnit"), exports);
50
50
  __exportStar(require("./quebec-lease-dwelling"), exports);
51
+ __exportStar(require("./savedSignature"), exports);
51
52
  __exportStar(require("./signature-party"), exports);
52
- __exportStar(require("./signatureInitials"), exports);
53
53
  __exportStar(require("./signatureParty"), exports);
54
54
  __exportStar(require("./signaturePartyAuditDetails"), exports);
55
55
  __exportStar(require("./signaturePartyBasic"), exports);
@@ -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.26.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",