@travetto/model
Advanced tools
Comparing version 0.2.9 to 0.2.10
@@ -1,3 +0,1 @@ | ||
import { Request } from 'express'; | ||
import { Get } from '@travetto/rest'; | ||
@@ -7,4 +5,8 @@ import { ChangeEvent, Class } from '@travetto/registry'; | ||
import { ModelController } from '../extension/express'; | ||
import { Model, BaseModel, ModelSource, ModelService, ModelCore, ModelQuery, Query, BulkState, BulkResponse, PageableModelQuery } from '../src'; | ||
import { ModelController } from '../extension/rest'; | ||
import { | ||
Model, ModelSource, ModelService, ModelCore, | ||
ModelQuery, Query, BulkState, BulkResponse, | ||
PageableModelQuery | ||
} from '../src'; | ||
import { QueryVerifierService } from '../src/service/query'; | ||
@@ -86,3 +88,4 @@ | ||
@Model() | ||
class Simple extends BaseModel { | ||
class Simple implements ModelCore { | ||
id?: string; | ||
name: string; | ||
@@ -103,3 +106,3 @@ } | ||
@Get('/fun') | ||
getById(req: Request) { | ||
getById() { | ||
return { | ||
@@ -106,0 +109,0 @@ message: 'Custom get all by' |
@@ -11,3 +11,3 @@ { | ||
"@travetto/di": "^0.2.9", | ||
"@travetto/schema": "^0.2.9" | ||
"@travetto/schema": "^0.2.10" | ||
}, | ||
@@ -39,4 +39,4 @@ "description": "Datastore abstraction for CRUD operations with advanced query support.", | ||
}, | ||
"version": "0.2.9", | ||
"gitHead": "008ce38a83eb496bfe80b1d8ce572a87d558ce1b" | ||
"version": "0.2.10", | ||
"gitHead": "2a12d7cbc8185aef3508172a70104f2e27ad6dc5" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1246
52061
Updated@travetto/schema@^0.2.10