@frontastic/extension-types
Advanced tools
Comparing version 0.0.9 to 0.0.10
{ | ||
"name": "@frontastic/extension-types", | ||
"version": "0.0.9", | ||
"version": "0.0.10", | ||
"description": "Type definitions required for backend extension development with Frontastic", | ||
@@ -5,0 +5,0 @@ "main": "./src/ts/exports.ts", |
@@ -47,2 +47,9 @@ /* | ||
} from './basicComponentValues'; | ||
export type { ExtensionRegistry, ActionHandler, DataSourceHandler, DynamicPageHandler } from './extensions'; | ||
export type { | ||
ExtensionRegistry, | ||
DataSourceRegistry, | ||
ActionRegistry, | ||
ActionHandler, | ||
DataSourceHandler, | ||
DynamicPageHandler | ||
} from './extensions'; |
import { | ||
ActionContext, | ||
DataSourceConfiguration, | ||
@@ -12,11 +13,15 @@ DataSourceContext, | ||
export interface ExtensionRegistry { | ||
'data-sources': { | ||
[dataSourceType: string]: DataSourceHandler; | ||
'data-sources'?: DataSourceRegistry; | ||
actions?: ActionRegistry; | ||
'dynamic-page-handler'?: DynamicPageHandler; | ||
} | ||
export interface DataSourceRegistry { | ||
[dataSourceType: string]: DataSourceHandler; | ||
} | ||
export interface ActionRegistry { | ||
[actionNamespace: string]: { | ||
[actionIdentifier: string]: ActionHandler; | ||
}; | ||
actions: { | ||
[actionNamespace: string]: { | ||
[actionIdentifier: string]: ActionHandler; | ||
}; | ||
}; | ||
'dynamic-page-handler': DynamicPageHandler; | ||
} | ||
@@ -29,3 +34,3 @@ | ||
export interface ActionHandler { | ||
(request: Request): Promise<Response> | Response; | ||
(request: Request, actionContext: ActionContext): Promise<Response> | Response; | ||
} | ||
@@ -32,0 +37,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
13468
422