@royalinvest/dto 0.11.24 → 0.11.26

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.
@@ -2,6 +2,7 @@ export interface ICheckout {
2
2
  user_id: string;
3
3
  contract_id: string;
4
4
  platform_fee: number;
5
+ signature_fee: number;
5
6
  email: string;
6
7
  product_unit_price: number;
7
8
  quantity: number;
@@ -36,3 +36,6 @@ export declare enum SignActionEnum {
36
36
  sentInvitation = "sentInvitation",
37
37
  signed = "signed"
38
38
  }
39
+ export declare enum SignatureDateTypeEnum {
40
+ equalDayMonthYearBoxes = "equalDayMonthYearBoxes"
41
+ }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SignActionEnum = exports.NotificationTypeEnum = exports.SignStatusEnum = exports.SignatureType = exports.LeaseStatusEnum = exports.RentTypeEnum = exports.PartyTypeEnum = void 0;
3
+ exports.SignatureDateTypeEnum = exports.SignActionEnum = exports.NotificationTypeEnum = exports.SignStatusEnum = exports.SignatureType = exports.LeaseStatusEnum = exports.RentTypeEnum = exports.PartyTypeEnum = void 0;
4
4
  var PartyTypeEnum;
5
5
  (function (PartyTypeEnum) {
6
6
  PartyTypeEnum["default"] = "";
@@ -46,3 +46,7 @@ var SignActionEnum;
46
46
  SignActionEnum["sentInvitation"] = "sentInvitation";
47
47
  SignActionEnum["signed"] = "signed";
48
48
  })(SignActionEnum || (exports.SignActionEnum = SignActionEnum = {}));
49
+ var SignatureDateTypeEnum;
50
+ (function (SignatureDateTypeEnum) {
51
+ SignatureDateTypeEnum["equalDayMonthYearBoxes"] = "equalDayMonthYearBoxes";
52
+ })(SignatureDateTypeEnum || (exports.SignatureDateTypeEnum = SignatureDateTypeEnum = {}));
@@ -1,4 +1,5 @@
1
1
  import { Sections } from "./quebec-lease-dwelling";
2
+ import { ISignaturePartySigned } from "./signaturePartySigned";
2
3
  export type ContractType = Sections;
3
4
  export interface IMessageGenerate {
4
5
  contract_id: string;
@@ -10,3 +11,6 @@ export interface IMessageGenerate {
10
11
  type: string;
11
12
  template_variant_id: string;
12
13
  }
14
+ export interface IMessageGenerateSigned {
15
+ parties: ISignaturePartySigned[];
16
+ }
@@ -1,4 +1,4 @@
1
- import { PartyTypeEnum, SignatureType } from "./enum";
1
+ import { PartyTypeEnum, SignatureDateTypeEnum, SignatureType } from "./enum";
2
2
  export interface IPlaceholder {
3
3
  id: string;
4
4
  party: PartyTypeEnum;
@@ -9,17 +9,24 @@ export interface IPlaceholder {
9
9
  y: number;
10
10
  width: number;
11
11
  height: number;
12
- date?: IPlaceholderDate;
13
12
  }
14
- export interface IPlaceholderDate {
13
+ export interface IDatePlaceholder {
14
+ signatureIds: string[];
15
+ page: number;
15
16
  x: number;
16
17
  y: number;
17
18
  width: number;
18
19
  height: number;
19
- markers: IPlaceholderDateMarkers;
20
+ type: SignatureDateTypeEnum;
21
+ markers?: IDatePlaceholderMarkers;
22
+ style?: IDatePlaceholderStyle;
20
23
  }
21
- export interface IPlaceholderDateMarkers {
24
+ export interface IDatePlaceholderMarkers {
22
25
  day: number;
23
26
  month: number;
24
27
  year: number;
25
28
  }
29
+ export interface IDatePlaceholderStyle {
30
+ padding: number;
31
+ fontSize: number;
32
+ }
@@ -1,9 +1,10 @@
1
1
  import { PartyTypeEnum, SignStatusEnum } from "./enum";
2
- import { IPlaceholder } from "./placeholder";
2
+ import { IPlaceholder, IDatePlaceholder } from "./placeholder";
3
3
  export interface ISignaturePartySigned {
4
4
  name: string;
5
5
  email: string;
6
6
  placeholder: IPlaceholder[];
7
+ date_placeholders: IDatePlaceholder[];
7
8
  type: PartyTypeEnum;
8
9
  security_code: string;
9
10
  file_id: string;
@@ -1,9 +1,10 @@
1
- import { IPlaceholder } from "./placeholder";
1
+ import { IPlaceholder, IDatePlaceholder } from "./placeholder";
2
2
  export interface ISignaturePartyViewer {
3
3
  name: string;
4
4
  email: string;
5
5
  file_name: string;
6
6
  placeholders: IPlaceholder[];
7
+ date_placeholders: IDatePlaceholder[];
7
8
  file: string;
8
9
  isSigned: boolean;
9
10
  }
package/package.json CHANGED
@@ -1,32 +1,32 @@
1
- {
2
- "name": "@royalinvest/dto",
3
- "version": "0.11.24",
4
- "description": "Data Transfer Objects (DTOs) to carry data between frontend and backend processes.",
5
- "main": "./src/index.ts",
6
- "types": "./dist/index.d.ts",
7
- "module": "./dist/index.js",
8
- "exports": {
9
- ".": {
10
- "types": "./dist/index.d.ts",
11
- "import": "./dist/index.js"
12
- }
13
- },
14
- "repository": {
15
- "type": "git",
16
- "url": "git@ssh.dev.azure.com:v3/royalinvest/royalinvest/royalinvestserver"
17
- },
18
- "files": [
19
- "./dist"
20
- ],
21
- "publishConfig": {
22
- "access": "public"
23
- },
24
- "scripts": {
25
- "build": "npx tsc",
26
- "clean": "rm -rf ./dist",
27
- "test": "echo \"Error: no test specified\" && exit 1"
28
- },
29
- "author": "Samos Technologies Inc.",
30
- "license": "ISC",
31
- "dependencies": {}
32
- }
1
+ {
2
+ "name": "@royalinvest/dto",
3
+ "version": "0.11.26",
4
+ "description": "Data Transfer Objects (DTOs) to carry data between frontend and backend processes.",
5
+ "main": "./src/index.ts",
6
+ "types": "./dist/index.d.ts",
7
+ "module": "./dist/index.js",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "import": "./dist/index.js"
12
+ }
13
+ },
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "git@ssh.dev.azure.com:v3/royalinvest/royalinvest/royalinvestserver"
17
+ },
18
+ "files": [
19
+ "./dist"
20
+ ],
21
+ "publishConfig": {
22
+ "access": "public"
23
+ },
24
+ "scripts": {
25
+ "build": "npx tsc",
26
+ "clean": "rm -rf ./dist",
27
+ "test": "echo \"Error: no test specified\" && exit 1"
28
+ },
29
+ "author": "Samos Technologies Inc.",
30
+ "license": "ISC",
31
+ "dependencies": {}
32
+ }
@@ -1,9 +0,0 @@
1
- import { IProperty } from "../property";
2
- export interface IExpense {
3
- id?: string;
4
- name?: string;
5
- price?: number;
6
- date?: Date;
7
- property: IProperty;
8
- image_url?: string;
9
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });