@plumier/generic-controller
Advanced tools
Comparing version 1.0.0-canary.knwelcuw.0 to 1.0.0-canary.knwgask8.0
@@ -9,3 +9,3 @@ import { Class, ControllerGeneric, NestedControllerGeneric, NestedRepository, Repository, SelectQuery } from "@plumier/core"; | ||
declare type NestedRepositoryFactory<P, T> = (t: EntityWithRelation<P, T> | EntityWithRelation<T | P>) => NestedRepository<P, T>; | ||
declare class RepoBaseControllerGeneric<T = Object, TID = string> extends ControllerGeneric<T, TID> { | ||
declare class RepoBaseControllerGeneric<T = any, TID = string> extends ControllerGeneric<T, TID> { | ||
readonly entityType: Class<T>; | ||
@@ -17,3 +17,3 @@ readonly repo: Repository<T>; | ||
save(data: T, ctx: Context): Promise<IdentifierResult<TID>>; | ||
get(id: TID, select: SelectQuery, ctx: Context): Promise<T>; | ||
get(id: TID, select: SelectQuery, ctx: Context): Promise<any>; | ||
modify(id: TID, data: T, ctx: Context): Promise<IdentifierResult<TID>>; | ||
@@ -23,3 +23,3 @@ replace(id: TID, data: T, ctx: Context): Promise<IdentifierResult<TID>>; | ||
} | ||
declare class RepoBaseNestedControllerGeneric<P = Object, T = Object, PID = String, TID = String> extends NestedControllerGeneric<P, T, PID, TID> { | ||
declare class RepoBaseNestedControllerGeneric<P = any, T = any, PID = String, TID = String> extends NestedControllerGeneric<P, T, PID, TID> { | ||
readonly entityType: Class<T>; | ||
@@ -33,3 +33,3 @@ readonly parentEntityType: Class<P>; | ||
save(pid: PID, data: T, ctx: Context): Promise<IdentifierResult<TID>>; | ||
get(pid: PID, id: TID, select: SelectQuery, ctx: Context): Promise<T>; | ||
get(pid: PID, id: TID, select: SelectQuery, ctx: Context): Promise<any>; | ||
modify(pid: PID, id: TID, data: T, ctx: Context): Promise<IdentifierResult<TID>>; | ||
@@ -36,0 +36,0 @@ replace(pid: PID, id: TID, data: T, ctx: Context): Promise<IdentifierResult<TID>>; |
{ | ||
"name": "@plumier/generic-controller", | ||
"version": "1.0.0-canary.knwelcuw.0+2e9dfb5", | ||
"version": "1.0.0-canary.knwgask8.0+d348bd6", | ||
"description": "Plumier generic controller implementation", | ||
@@ -23,4 +23,4 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@plumier/core": "1.0.0-canary.knwelcuw.0+2e9dfb5", | ||
"@plumier/query-parser": "1.0.0-canary.knwelcuw.0+2e9dfb5" | ||
"@plumier/core": "1.0.0-canary.knwgask8.0+d348bd6", | ||
"@plumier/query-parser": "1.0.0-canary.knwgask8.0+d348bd6" | ||
}, | ||
@@ -40,3 +40,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "2e9dfb535aef20be5027aa8c61500b672a12d8b1" | ||
"gitHead": "d348bd61859115554fa9a2d03e7b0b3fbf2de68f" | ||
} |
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
55790