@royalinvest/dto 0.3.2 → 0.4.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,4 @@
1
+ export interface ICategory {
2
+ id: string;
3
+ name: string;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/dist/country.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export interface ICountry {
2
- id: string;
2
+ id?: string;
3
3
  name: string;
4
+ abbrev: string;
4
5
  }
package/dist/expense.d.ts CHANGED
@@ -1,9 +1,11 @@
1
1
  import { IProperty } from "./property";
2
+ import { ICategory } from "./category";
2
3
  export interface IExpense {
3
4
  id?: string;
4
5
  name: string;
5
6
  amount: number;
6
7
  date: Date;
7
8
  property?: IProperty;
9
+ category?: ICategory;
8
10
  file_name?: string;
9
11
  }
package/dist/index.d.ts CHANGED
@@ -14,3 +14,6 @@ export * from "./user";
14
14
  export * from "./auth";
15
15
  export * from "./notification";
16
16
  export * from "./expense";
17
+ export * from "./sort";
18
+ export * from "./key-value";
19
+ export * from "./category";
package/dist/index.js CHANGED
@@ -30,3 +30,6 @@ __exportStar(require("./user"), exports);
30
30
  __exportStar(require("./auth"), exports);
31
31
  __exportStar(require("./notification"), exports);
32
32
  __exportStar(require("./expense"), exports);
33
+ __exportStar(require("./sort"), exports);
34
+ __exportStar(require("./key-value"), exports);
35
+ __exportStar(require("./category"), exports);
@@ -0,0 +1,4 @@
1
+ export interface IKeyValue {
2
+ key: string;
3
+ value: string;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/dist/state.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { ICountry } from "./country";
2
2
  export interface IState {
3
- id: string;
3
+ id?: string;
4
4
  name: string;
5
5
  abbrev: string;
6
6
  country: ICountry;
@@ -1,7 +1,7 @@
1
1
  export interface ITemplate {
2
- id: string;
2
+ id?: string;
3
3
  name: string;
4
4
  description: string;
5
5
  file_name: string;
6
- state_id?: string;
6
+ state_id: string;
7
7
  }
package/package.json CHANGED
@@ -1,32 +1,32 @@
1
- {
2
- "name": "@royalinvest/dto",
3
- "version": "0.3.2",
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.4.1",
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
+ }
package/readMe.md CHANGED
@@ -1 +1 @@
1
- # This is Royal Invest DTO package to share data between frontend and backend processes.
1
+ # This is Royal Invest DTO package to share data between frontend and backend processes.