adminforth 1.2.1 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dataConnectors/postgres.ts +12 -0
- package/dist/dataConnectors/postgres.js +13 -0
- package/dist/index.js +12 -1001
- package/dist/modules/configValidator.js +408 -0
- package/dist/modules/restApi.js +625 -0
- package/index.ts +16 -1122
- package/modules/configValidator.ts +452 -0
- package/modules/restApi.ts +709 -0
- package/package.json +1 -1
- package/types/AdminForthConfig.ts +15 -0
package/package.json
CHANGED
|
@@ -5,6 +5,11 @@ export interface ICodeInjector {
|
|
|
5
5
|
allComponentNames: Object;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
+
export interface IConfigValidator {
|
|
9
|
+
validateConfig()
|
|
10
|
+
postProcessAfterDiscover(resource: AdminForthResource): void;
|
|
11
|
+
}
|
|
12
|
+
|
|
8
13
|
export interface IAdminForthHttpResponse {
|
|
9
14
|
setHeader: (key: string, value: string) => void,
|
|
10
15
|
setStatus: (code: number, message: string) => void,
|
|
@@ -208,6 +213,8 @@ export interface IAdminForthAuth {
|
|
|
208
213
|
removeCustomCookie({response, name}: {response: any, name: string}): void;
|
|
209
214
|
|
|
210
215
|
setAuthCookie({response, username, pk,}: {response: any, username: string, pk: string}): void;
|
|
216
|
+
|
|
217
|
+
removeAuthCookie(response: any): void;
|
|
211
218
|
}
|
|
212
219
|
|
|
213
220
|
export interface IAdminForth {
|
|
@@ -215,6 +222,14 @@ export interface IAdminForth {
|
|
|
215
222
|
codeInjector: ICodeInjector;
|
|
216
223
|
express: IHttpServer;
|
|
217
224
|
|
|
225
|
+
activatedPlugins: Array<IAdminForthPlugin>;
|
|
226
|
+
|
|
227
|
+
baseUrlSlashed: string;
|
|
228
|
+
|
|
229
|
+
statuses: {
|
|
230
|
+
dbDiscover: 'running' | 'done',
|
|
231
|
+
};
|
|
232
|
+
|
|
218
233
|
connectors: {
|
|
219
234
|
[key: string]: IAdminForthDataSourceConnectorBase;
|
|
220
235
|
};
|