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.
- package/dist/src/entities/interface/entity.utils.interface.d.ts +2 -2
- package/dist/src/entities/interface/industry.entity.interface.d.ts +4 -4
- package/dist/src/entities/interface/industry.entity.interface.js +2 -3
- package/dist/src/entities/interface/task.entity.interface.d.ts +4 -4
- package/dist/src/entities/interface/task.entity.interface.js +2 -3
- package/package.json +1 -1
|
@@ -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
|
|
462
|
-
min
|
|
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,
|
|
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
|
|
23
|
-
[K in keyof Omit<IIndustryEntity, IIndustryFieldLengthConstraintsExclude>]-?:
|
|
22
|
+
export type IIndustryFieldMinMaxConstraints = {
|
|
23
|
+
[K in keyof Omit<IIndustryEntity, IIndustryFieldLengthConstraintsExclude>]-?: IFieldMinMaxConstraint;
|
|
24
24
|
};
|
|
25
|
-
export declare const
|
|
25
|
+
export declare const industryFieldMinMaxConstraints: IIndustryFieldMinMaxConstraints;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
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,
|
|
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
|
|
16
|
-
[K in keyof Omit<ITaskEntity, ITaskFieldLengthConstraintsExclude>]-?:
|
|
15
|
+
export type ITaskFieldMinMaxConstraints = {
|
|
16
|
+
[K in keyof Omit<ITaskEntity, ITaskFieldLengthConstraintsExclude>]-?: IFieldMinMaxConstraint;
|
|
17
17
|
};
|
|
18
|
-
export declare const
|
|
18
|
+
export declare const taskFieldMinMaxConstraints: ITaskFieldMinMaxConstraints;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
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
|
};
|