law-common 12.6.3-beta.7 → 12.6.3-beta.8

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.
@@ -458,7 +458,7 @@ export type IPremissionFilterConfig<T extends EntityEnum | VirtualEntityEnum> =
458
458
  * @template T - The underlying value type.
459
459
  */
460
460
  export type Nullable<T> = T | null;
461
- export interface IFieldLengthConstraint {
462
- min: number;
461
+ export interface IFieldMinMaxConstraint {
462
+ min?: number;
463
463
  max: number;
464
464
  }
@@ -1,6 +1,6 @@
1
1
  import { IndustryStatusEnum } from "../enums/industry_status_enum";
2
2
  import { IEntityAuditColumn } from "./entity-audit-columns.interface";
3
- import { IEntityCreateDto, IEntityFilterData, IEntityUpdateDto, IFieldLengthConstraint, Nullable } from "./entity.utils.interface";
3
+ import { IEntityCreateDto, IEntityFilterData, IEntityUpdateDto, IFieldMinMaxConstraint, Nullable } from "./entity.utils.interface";
4
4
  export interface IIndustryEntity extends IEntityAuditColumn {
5
5
  id: number;
6
6
  name: string;
@@ -19,7 +19,7 @@ export type IIndustryFieldLengthConstraintsExclude = "status" | "id" | keyof IEn
19
19
  * min & max length constraints, we need to make it required in this type
20
20
  * hence we are using -? to make all properties required in this type
21
21
  */
22
- export type IIndustryFieldLengthConstraints = {
23
- [K in keyof Omit<IIndustryEntity, IIndustryFieldLengthConstraintsExclude>]-?: IFieldLengthConstraint;
22
+ export type IIndustryFieldMinMaxConstraints = {
23
+ [K in keyof Omit<IIndustryEntity, IIndustryFieldLengthConstraintsExclude>]-?: IFieldMinMaxConstraint;
24
24
  };
25
- export declare const industryFieldLengthConstraints: IIndustryFieldLengthConstraints;
25
+ export declare const industryFieldMinMaxConstraints: IIndustryFieldMinMaxConstraints;
@@ -1,13 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.industryFieldLengthConstraints = void 0;
4
- exports.industryFieldLengthConstraints = {
3
+ exports.industryFieldMinMaxConstraints = void 0;
4
+ exports.industryFieldMinMaxConstraints = {
5
5
  name: {
6
6
  min: 3,
7
7
  max: 128,
8
8
  },
9
9
  description: {
10
- min: 0,
11
10
  max: 255,
12
11
  },
13
12
  };
@@ -1,7 +1,7 @@
1
1
  import { TaskStatusEnum } from "../enums/task_status_enum";
2
2
  import { TaskTypeEnum } from "../enums/task_type_enum";
3
3
  import { IEntityAuditColumn } from "./entity-audit-columns.interface";
4
- import { IEntityFilterData, IFieldLengthConstraint } from "./entity.utils.interface";
4
+ import { IEntityFilterData, IFieldMinMaxConstraint } from "./entity.utils.interface";
5
5
  export interface ITaskEntity extends IEntityAuditColumn {
6
6
  id: number;
7
7
  name: string;
@@ -12,7 +12,7 @@ export interface ITaskEntity extends IEntityAuditColumn {
12
12
  export interface ITaskEntityFilterDto extends IEntityFilterData<ITaskEntity> {
13
13
  }
14
14
  export type ITaskFieldLengthConstraintsExclude = "status" | "type" | "id" | keyof IEntityAuditColumn;
15
- export type ITaskFieldLengthConstraints = {
16
- [K in keyof Omit<ITaskEntity, ITaskFieldLengthConstraintsExclude>]-?: IFieldLengthConstraint;
15
+ export type ITaskFieldMinMaxConstraints = {
16
+ [K in keyof Omit<ITaskEntity, ITaskFieldLengthConstraintsExclude>]-?: IFieldMinMaxConstraint;
17
17
  };
18
- export declare const taskFieldLengthConstraints: ITaskFieldLengthConstraints;
18
+ export declare const taskFieldMinMaxConstraints: ITaskFieldMinMaxConstraints;
@@ -1,13 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.taskFieldLengthConstraints = void 0;
4
- exports.taskFieldLengthConstraints = {
3
+ exports.taskFieldMinMaxConstraints = void 0;
4
+ exports.taskFieldMinMaxConstraints = {
5
5
  name: {
6
6
  min: 3,
7
7
  max: 255,
8
8
  },
9
9
  description: {
10
- min: 0,
11
10
  max: 1028,
12
11
  },
13
12
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "law-common",
3
- "version": "12.6.3-beta.7",
3
+ "version": "12.6.3-beta.8",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "files": [