@plumier/generic-controller
Advanced tools
Comparing version 1.0.0-canary.klmi2vb6.0 to 1.0.0-canary.km12ir1x.0
@@ -1,2 +0,2 @@ | ||
import { Class, ControllerGeneric, FilterEntity, HttpMethod, OneToManyControllerGeneric, OneToManyRepository, OrderQuery, Repository } from "@plumier/core"; | ||
import { Class, ControllerGeneric, HttpMethod, OneToManyControllerGeneric, OneToManyRepository, OrderQuery, Repository } from "@plumier/core"; | ||
import { Context } from "koa"; | ||
@@ -26,3 +26,3 @@ import { getGenericControllerInverseProperty } from "./helper"; | ||
select: string[]; | ||
filter: FilterEntity<T>; | ||
filter: any; | ||
order: OrderQuery[]; | ||
@@ -49,3 +49,3 @@ } | ||
protected findByIdOrNotFound(id: TID, select?: string[]): Promise<T>; | ||
list(offset: number | undefined, limit: number | undefined, filter: FilterEntity<T>, select: string, order: string, ctx: Context): Promise<any>; | ||
list(offset: number | undefined, limit: number | undefined, filter: any, select: string, order: string, ctx: Context): Promise<any>; | ||
save(data: T, ctx: Context): Promise<IdentifierResult<TID>>; | ||
@@ -65,3 +65,3 @@ get(id: TID, select: string, ctx: Context): Promise<T>; | ||
protected findParentByIdOrNotFound(id: PID): Promise<P>; | ||
list(pid: PID, offset: number | undefined, limit: number | undefined, filter: FilterEntity<T>, select: string, order: string, ctx: Context): Promise<any>; | ||
list(pid: PID, offset: number | undefined, limit: number | undefined, filter: any, select: string, order: string, ctx: Context): Promise<any>; | ||
save(pid: PID, data: T, ctx: Context): Promise<IdentifierResult<TID>>; | ||
@@ -68,0 +68,0 @@ get(pid: PID, id: TID, select: string, ctx: Context): Promise<T>; |
@@ -11,2 +11,3 @@ "use strict"; | ||
const request_hook_1 = require("./request-hook"); | ||
const filter_parser_1 = require("@plumier/filter-parser"); | ||
// --------------------------------------------------------------------- // | ||
@@ -172,3 +173,3 @@ // ----------------------------- DECORATORS ---------------------------- // | ||
reflect_1.default.type(["T"]), | ||
tslib_1.__param(2, core_1.entity.filter()), tslib_1.__param(2, reflect_1.default.type("T")), tslib_1.__param(2, validator_1.val.partial("T")), tslib_1.__param(2, validator_1.val.filter()), tslib_1.__param(5, core_1.bind.ctx()), | ||
tslib_1.__param(2, filter_parser_1.filterParser(() => "T")), tslib_1.__param(5, core_1.bind.ctx()), | ||
tslib_1.__metadata("design:type", Function), | ||
@@ -306,3 +307,3 @@ tslib_1.__metadata("design:paramtypes", [Number, Number, Object, String, String, Object]), | ||
reflect_1.default.type(["T"]), | ||
tslib_1.__param(0, validator_1.val.required()), tslib_1.__param(0, reflect_1.default.type("PID")), tslib_1.__param(3, core_1.entity.filter()), tslib_1.__param(3, reflect_1.default.type("T")), tslib_1.__param(3, validator_1.val.partial("T")), tslib_1.__param(3, validator_1.val.filter()), tslib_1.__param(6, core_1.bind.ctx()), | ||
tslib_1.__param(0, validator_1.val.required()), tslib_1.__param(0, reflect_1.default.type("PID")), tslib_1.__param(3, filter_parser_1.filterParser(() => "T")), tslib_1.__param(6, core_1.bind.ctx()), | ||
tslib_1.__metadata("design:type", Function), | ||
@@ -309,0 +310,0 @@ tslib_1.__metadata("design:paramtypes", [Object, Number, Number, Object, String, String, Object]), |
{ | ||
"name": "@plumier/generic-controller", | ||
"version": "1.0.0-canary.klmi2vb6.0+d7a6872", | ||
"version": "1.0.0-canary.km12ir1x.0+80bc699", | ||
"description": "Plumier generic controller implementation", | ||
@@ -23,3 +23,4 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@plumier/core": "1.0.0-canary.klmi2vb6.0+d7a6872" | ||
"@plumier/core": "1.0.0-canary.km12ir1x.0+80bc699", | ||
"@plumier/filter-parser": "1.0.0-canary.km12ir1x.0+80bc699" | ||
}, | ||
@@ -39,3 +40,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "d7a6872abe5def4c7156811b7b4d4d1677e15abd" | ||
"gitHead": "80bc699ba9743c10db02a287b860fed8888fae82" | ||
} |
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
58259
2