@mcma/api
Advanced tools
Comparing version 0.4.3 to 0.4.4
@@ -111,4 +111,4 @@ import { ContextVariableProvider, Resource, ResourceType } from "@mcma/core"; | ||
overrideHandler(handler: McmaApiRouteHandler): void; | ||
onStarted(handleOnStarted: ((requestContext: McmaApiRequestContext) => Promise<void>)); | ||
onCompleted(handleOnCompleted: ((requestContext: McmaApiRequestContext) => Promise<T>)); | ||
onStarted(handleOnStarted: ((requestContext: McmaApiRequestContext) => Promise<void>)): void; | ||
onCompleted(handleOnCompleted: ((requestContext: McmaApiRequestContext) => Promise<T>)): void; | ||
build(): McmaApiRoute; | ||
@@ -125,6 +125,6 @@ } | ||
export interface DefaultRouteConfigurator<T> { | ||
configure(configureRoute: (defaultRouteBuilder: DefaultRouteBuilder<T>) => void): DefaultRouteCollectionBuilder; | ||
add(): DefaultRouteCollectionBuilder; | ||
remove(): DefaultRouteCollectionBuilder; | ||
export interface DefaultRouteConfigurator<T extends Resource> { | ||
configure<TConfigure = T | T[]>(configureRoute: (defaultRouteBuilder: DefaultRouteBuilder<TConfigure>) => void): DefaultRouteCollectionBuilder<T>; | ||
add(): DefaultRouteCollectionBuilder<T>; | ||
remove(): DefaultRouteCollectionBuilder<T>; | ||
} | ||
@@ -134,3 +134,3 @@ | ||
constructor(dbTableProvider: DbTableProvider<T>, resourceType: ResourceType<T>, root?: string); | ||
addAll(): DefaultRouteCollectionBuilder; | ||
addAll(): DefaultRouteCollectionBuilder<T>; | ||
route(selectRoute: (defaultRoutes: DefaultRoutes<T>) => DefaultRouteBuilder<T>): DefaultRouteConfigurator<T>; | ||
@@ -142,6 +142,2 @@ build(): McmaApiRouteCollection; | ||
export interface DefaultRoutesBuilderFactory { | ||
builder<T extends Resource>(getDbTableProvider: DbTableProviderFactory<T>, root?: string): DefaultRouteCollectionBuilder; | ||
} | ||
export class McmaApiController { | ||
@@ -148,0 +144,0 @@ constructor(routes: McmaApiRouteCollection); |
{ | ||
"name": "@mcma/api", | ||
"version": "0.4.3", | ||
"version": "0.4.4", | ||
"description": "Node module for building APIs based on the EBU MCMA framework", | ||
@@ -29,4 +29,4 @@ "engines": { | ||
"dependencies": { | ||
"@mcma/client": "0.4.3", | ||
"@mcma/data": "0.4.3", | ||
"@mcma/client": "0.4.4", | ||
"@mcma/data": "0.4.4", | ||
"pluralize": "^7.0.0", | ||
@@ -33,0 +33,0 @@ "uri-templates": "^0.2.0", |
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
30985
754
+ Added@mcma/client@0.4.4(transitive)
+ Added@mcma/core@0.4.4(transitive)
+ Added@mcma/data@0.4.4(transitive)
- Removed@mcma/client@0.4.3(transitive)
- Removed@mcma/core@0.4.3(transitive)
- Removed@mcma/data@0.4.3(transitive)
Updated@mcma/client@0.4.4
Updated@mcma/data@0.4.4