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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adminforth",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "description": "OpenSource Vue3 powered forth-generation admin panel",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -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
  };