@royalinvest/dto 0.11.13 → 0.11.15

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.
@@ -25,3 +25,7 @@ export declare enum SignStatusEnum {
25
25
  cancelled = "cancelled",
26
26
  signaturePending = "signaturePending"
27
27
  }
28
+ export declare enum NotificationTypeEnum {
29
+ documentReady = "document_ready",
30
+ documentSigned = "document_signed"
31
+ }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SignStatusEnum = exports.SignatureType = exports.LeaseStatusEnum = exports.RentTypeEnum = exports.PartyTypeEnum = void 0;
3
+ 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"] = "";
@@ -33,3 +33,8 @@ var SignStatusEnum;
33
33
  SignStatusEnum["cancelled"] = "cancelled";
34
34
  SignStatusEnum["signaturePending"] = "signaturePending";
35
35
  })(SignStatusEnum || (exports.SignStatusEnum = SignStatusEnum = {}));
36
+ var NotificationTypeEnum;
37
+ (function (NotificationTypeEnum) {
38
+ NotificationTypeEnum["documentReady"] = "document_ready";
39
+ NotificationTypeEnum["documentSigned"] = "document_signed";
40
+ })(NotificationTypeEnum || (exports.NotificationTypeEnum = NotificationTypeEnum = {}));
package/dist/index.d.ts CHANGED
@@ -24,12 +24,12 @@ export * from "./file";
24
24
  export * from "./checkout";
25
25
  export * from "./profile";
26
26
  export * from "./signatureParty";
27
+ export * from "./signaturePartyBasic";
27
28
  export * from "./signaturePartySigned";
29
+ export * from "./signaturePartyViewer";
28
30
  export * from "./party";
29
31
  export * from "./placeholder";
30
- export * from "./signaturePartyViewer";
31
32
  export * from "./field";
32
33
  export * from "./co-singer";
33
34
  export * from "./signatureInitials";
34
35
  export * from "./lease-details";
35
- export * from "./fileView";
package/dist/index.js CHANGED
@@ -40,12 +40,12 @@ __exportStar(require("./file"), exports);
40
40
  __exportStar(require("./checkout"), exports);
41
41
  __exportStar(require("./profile"), exports);
42
42
  __exportStar(require("./signatureParty"), exports);
43
+ __exportStar(require("./signaturePartyBasic"), exports);
43
44
  __exportStar(require("./signaturePartySigned"), exports);
45
+ __exportStar(require("./signaturePartyViewer"), exports);
44
46
  __exportStar(require("./party"), exports);
45
47
  __exportStar(require("./placeholder"), exports);
46
- __exportStar(require("./signaturePartyViewer"), exports);
47
48
  __exportStar(require("./field"), exports);
48
49
  __exportStar(require("./co-singer"), exports);
49
50
  __exportStar(require("./signatureInitials"), exports);
50
51
  __exportStar(require("./lease-details"), exports);
51
- __exportStar(require("./fileView"), exports);
@@ -1,13 +1,14 @@
1
+ import { ISignaturePartyBasic } from "./signaturePartyBasic";
1
2
  export interface IGeneratedNotification {
2
3
  contract_id: string;
3
4
  user_id: string;
4
5
  file_name: string;
5
- type: string;
6
- title: string;
7
- language: string;
8
- message: string;
6
+ file_language: string;
7
+ mime_type: string;
8
+ template_name: string;
9
9
  template_variant_id: string;
10
10
  }
11
11
  export interface ISignedNotification {
12
12
  file_id: string;
13
+ parties: ISignaturePartyBasic[];
13
14
  }
@@ -1,13 +1,16 @@
1
+ import { NotificationTypeEnum } from "./enum";
1
2
  export interface INotification {
2
3
  id?: string;
3
4
  payload: IPayload;
4
5
  isRead: boolean;
5
6
  created_at: Date;
7
+ type: NotificationTypeEnum;
6
8
  }
7
9
  export interface IPayload {
8
- type: string;
9
- title: string;
10
- file_name: string;
10
+ }
11
+ export interface IFilePayload extends IPayload {
12
+ name: string;
11
13
  language: string;
12
- message?: string;
14
+ mime_type: string;
15
+ template_name: string;
13
16
  }
@@ -0,0 +1,5 @@
1
+ export interface ISignaturePartyBasic {
2
+ name: string;
3
+ email: string;
4
+ security_code: string;
5
+ }
package/package.json CHANGED
@@ -1,32 +1,32 @@
1
- {
2
- "name": "@royalinvest/dto",
3
- "version": "0.11.13",
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.15",
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,5 +0,0 @@
1
- export interface IFileView {
2
- file: string;
3
- file_name: string;
4
- status: string;
5
- }
@@ -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 });
File without changes