identity-admin 1.8.0 → 1.9.0

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.
@@ -251,7 +251,6 @@ let DashboardController = DashboardController_1 = class DashboardController {
251
251
  if (!record) {
252
252
  return ResponseUtils_1.default.send(res, 404, 'record Not Found');
253
253
  }
254
- recordParams = LocalizedStringHelper_1.default.mapLocalizableString(recordParams, resource);
255
254
  const recordSaveResult = yield repository.update(record, recordParams);
256
255
  if (!recordSaveResult.isValid()) {
257
256
  return ResponseUtils_1.default.unprocessable(res, 'Invalid Data', recordSaveResult.getErrors());
@@ -72,18 +72,48 @@ interface ICrudOperations {
72
72
  };
73
73
  }
74
74
  export interface ActionData {
75
+ /**
76
+ * Record document
77
+ */
75
78
  record: any;
79
+ /**
80
+ * Current user data
81
+ */
76
82
  currentUser: Document;
83
+ /**
84
+ * Resource data to which this record belongs
85
+ */
77
86
  resource: {
87
+ /**
88
+ * Model name of this table.
89
+ */
78
90
  name: string;
91
+ /**
92
+ * Path of the resource to which you can redirect.
93
+ */
79
94
  path: string;
95
+ /**
96
+ * Repository of this resource.
97
+ */
80
98
  repository: any;
81
99
  };
82
100
  }
83
101
  interface IFilters {
102
+ /**
103
+ * Scope filter props. If used you should override the scope filter function in the controller of this resource. This filter is not accessible by default
104
+ */
84
105
  scopes?: {
106
+ /**
107
+ * Specify if this filter is accessible or not
108
+ */
85
109
  isAccessible: boolean;
110
+ /**
111
+ * Automatic scope that filters by the specified key with one of the given options
112
+ */
86
113
  auto?: IAutoScope;
114
+ /**
115
+ * Manual scope by using a handler
116
+ */
87
117
  manual?: IManualScope;
88
118
  };
89
119
  searchBar?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "identity-admin",
3
- "version": "1.8.0",
3
+ "version": "1.9.0",
4
4
  "description": "",
5
5
  "main": "lib/Dashboard.js",
6
6
  "types": "lib/Dashbord.d.ts",