identity-admin 1.27.7 → 1.27.9

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.
@@ -144,7 +144,7 @@ let DashboardController = DashboardController_1 = class DashboardController {
144
144
  actionsArray.push(key);
145
145
  }
146
146
  }
147
- return actionsArray;
147
+ return actionsArray.length > 0 ? actionsArray : undefined;
148
148
  });
149
149
  }
150
150
  getModelConfiguration(modelName) {
@@ -5,10 +5,10 @@ import { IConfiguartionFile } from "../types/IConfigurationFile";
5
5
  import { IModelConfigurationDocument } from "../models/modelConfiguration/IModelConfigurations";
6
6
  import { Model } from "mongoose";
7
7
  export default class ResourceController {
8
- private resourceFiles;
9
- private configurations;
10
- private modelConfigurations?;
11
- private PermissionModel?;
8
+ protected resourceFiles: IResourceFile[];
9
+ protected configurations: IConfiguartionFile | undefined;
10
+ protected modelConfigurations?: Map<string, IModelConfigurationDocument> | undefined;
11
+ protected PermissionModel?: Model<any, any, {}, {}, any> | undefined;
12
12
  constructor(resourceFiles: IResourceFile[], configurations: IConfiguartionFile | undefined, modelConfigurations?: Map<string, IModelConfigurationDocument> | undefined, PermissionModel?: Model<any, any, {}, {}, any> | undefined);
13
13
  index(req: IRequest, res: Response): Promise<Response<any, Record<string, any>>>;
14
14
  getOne(req: IRequest, res: Response): Promise<Response<any, Record<string, any>>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "identity-admin",
3
- "version": "1.27.7",
3
+ "version": "1.27.9",
4
4
  "description": "",
5
5
  "main": "lib/Dashboard.js",
6
6
  "types": "lib/Dashbord.d.ts",