@universe/models
Advanced tools
Comparing version 2.0.1 to 2.1.0
@@ -85,2 +85,10 @@ import { Database } from 'better-sqlite3'; | ||
}; | ||
Score: { | ||
getById: (personId: string, source: string, score: string) => Models.IScore | null; | ||
insert: (data: Models.IPartialScore | Models.IPartialSQLScore) => Models.CreateDiff<Models.ModelType.SCORE>; | ||
upsert: (data: Models.IPartialScore | Models.IPartialSQLScore) => Models.CreateDiff<Models.ModelType.SCORE> | Models.UpdateDiff<Models.ModelType.SCORE> | null; | ||
delete: (personId: string, source: string, score: string) => Models.DeleteDiff<Models.ModelType.SCORE> | null; | ||
apply(diff: Models.Diff<Models.ModelType.SCORE>): Models.Diff<Models.ModelType.SCORE> | null; | ||
rollback(diff: Models.Diff<Models.ModelType.SCORE>): Models.Diff<Models.ModelType.SCORE> | null; | ||
}; | ||
Metadata: { | ||
@@ -165,2 +173,5 @@ getById: (key: string) => Models.IMetadata | null; | ||
export declare function diffExperience(before: Models.ISQLExperience | null, after: Models.IPartialSQLExperience | null): Models.UpdateDiff<Models.ModelType.EXPERIENCE> | null; | ||
export declare function diffScore(before: null, after: Models.ISQLScore | null): Models.CreateDiff<Models.ModelType.SCORE>; | ||
export declare function diffScore(before: Models.ISQLScore | null, after: null): Models.DeleteDiff<Models.ModelType.SCORE>; | ||
export declare function diffScore(before: Models.ISQLScore | null, after: Models.IPartialSQLScore | null): Models.UpdateDiff<Models.ModelType.SCORE> | null; | ||
export declare function diffMetadata(before: null, after: Models.ISQLMetadata | null): Models.CreateDiff<Models.ModelType.METADATA>; | ||
@@ -167,0 +178,0 @@ export declare function diffMetadata(before: Models.ISQLMetadata | null, after: null): Models.DeleteDiff<Models.ModelType.METADATA>; |
{ | ||
"name": "@universe/models", | ||
"version": "2.0.1", | ||
"version": "2.1.0", | ||
"main": "dist/src/index.js", | ||
@@ -26,3 +26,3 @@ "description": "Universe data models.", | ||
"dependencies": { | ||
"@universe/util": "^1.1.0" | ||
"@universe/util": "^1.1.1" | ||
}, | ||
@@ -29,0 +29,0 @@ "optionalDependencies": {}, |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
1871641
14781
Updated@universe/util@^1.1.1