onecore 0.5.8 → 0.5.10

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "onecore",
3
- "version": "0.5.8",
3
+ "version": "0.5.10",
4
4
  "description": "onecore",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./src/index.ts",
package/src/db.ts CHANGED
@@ -62,7 +62,7 @@ export interface ApproversRepository {
62
62
  getApprovers(tx?: Transaction): Promise<string[]>
63
63
  }
64
64
  export interface HistoryRepository<T> {
65
- create(id: string, author: string, action: string, data: T, tx?: Transaction): Promise<number>
65
+ create(id: string, author: string, data: T, tx?: Transaction): Promise<number>
66
66
  }
67
67
 
68
68
 
@@ -99,5 +99,5 @@ export interface ApproversPort {
99
99
  getApprovers(tx?: Transaction): Promise<string[]>
100
100
  }
101
101
  export interface HistoryPort<T> {
102
- create(id: string, author: string, action: string, data: T, tx?: Transaction): Promise<number>
102
+ create(id: string, author: string, data: T, tx?: Transaction): Promise<number>
103
103
  }
package/src/model.ts CHANGED
@@ -44,14 +44,17 @@ export interface Domain {
44
44
  status?: string;
45
45
  }
46
46
  export interface Item {
47
+ id?: string;
47
48
  value: string;
48
49
  text?: string;
49
50
  }
50
51
  export interface ValueText {
52
+ id?: string;
51
53
  value: string;
52
54
  text?: string;
53
55
  }
54
56
  export interface ValueCode {
57
+ id?: string;
55
58
  value: string;
56
59
  code?: string;
57
60
  }