identity-admin 1.26.5 → 1.26.6

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.
@@ -4,6 +4,7 @@ import { IRequest } from '../middlewares/isAuth';
4
4
  import { IRepository, PageInfo, PaginateParams } from '../repositories/Repository';
5
5
  import SaveResult from '../repositories/SaveResult';
6
6
  import { ActionNames, ActionTypes, FieldTypes, FileTypes, HandlerStrategy, ImageOptimizingCategories, NeighborTypes, Virtuals } from './helpers';
7
+ import * as Yup from 'yup';
7
8
  declare type orderTypes = 'asc' | 'desc';
8
9
  declare type VirtualFieldTypes = 'password' | 'ref' | 'Array';
9
10
  declare type Severity = 'success' | 'info' | 'warning' | 'error';
@@ -334,6 +335,11 @@ export interface IFieldValue {
334
335
  * @default undefined
335
336
  */
336
337
  multipleInFilter?: boolean;
338
+ /**
339
+ * Used if you want to override the validation of the original field. For example if you want to add your customized condition for password validations.
340
+ * @default 'Same as schema'
341
+ */
342
+ yupValidationSchema?: Yup.Schema;
337
343
  }
338
344
  export interface IVirtualValue {
339
345
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "identity-admin",
3
- "version": "1.26.5",
3
+ "version": "1.26.6",
4
4
  "description": "",
5
5
  "main": "lib/Dashboard.js",
6
6
  "types": "lib/Dashbord.d.ts",
@@ -56,6 +56,7 @@
56
56
  "passport-local": "^1.0.0",
57
57
  "pdfjs": "^2.5.3",
58
58
  "pluralize": "^8.0.0",
59
- "typescript": "^4.7.4"
59
+ "typescript": "^4.7.4",
60
+ "yup": "^1.4.0"
60
61
  }
61
62
  }