law-common 12.11.1-beta.113 → 12.11.1-beta.115
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/index.d.ts +2 -0
- package/dist/src/entities/index.js +2 -0
- package/dist/src/entities/interface/field-constraint/configuration_field_constraints.interface.d.ts +21 -0
- package/dist/src/entities/interface/field-constraint/configuration_field_constraints.interface.js +19 -0
- package/dist/src/entities/interface/field-constraint/cron_jobs_field_constraints.interface.d.ts +22 -0
- package/dist/src/entities/interface/field-constraint/cron_jobs_field_constraints.interface.js +14 -0
- package/package.json +1 -1
|
@@ -11,6 +11,7 @@ export * from "./interface/field-constraint/user_field_constraints.interface";
|
|
|
11
11
|
export * from "./interface/designation.entity.interface";
|
|
12
12
|
export * from "./interface/industry.entity.interface";
|
|
13
13
|
export * from "./interface/configuration.entity.interface";
|
|
14
|
+
export * from "./interface/field-constraint/configuration_field_constraints.interface";
|
|
14
15
|
export * from "./interface/rate.entity.interface";
|
|
15
16
|
export * from "./interface/client.entity.interface";
|
|
16
17
|
export * from "./interface/field-constraint/client_field_constraints.interface";
|
|
@@ -109,6 +110,7 @@ export * from "./enums/cron_jobs_name_enum";
|
|
|
109
110
|
export * from "./enums/cron_jobs_status_enum";
|
|
110
111
|
export * from "./enums/timezone.enum";
|
|
111
112
|
export * from "./interface/cron_jobs.entity.interface";
|
|
113
|
+
export * from "./interface/field-constraint/cron_jobs_field_constraints.interface";
|
|
112
114
|
export * from "./interface/to_do_list.entity.interface";
|
|
113
115
|
export * from "./interface/field-constraint/to_do_list_field_constraints.interface";
|
|
114
116
|
export * from "./model/configuration.entity.model";
|
|
@@ -27,6 +27,7 @@ __exportStar(require("./interface/field-constraint/user_field_constraints.interf
|
|
|
27
27
|
__exportStar(require("./interface/designation.entity.interface"), exports);
|
|
28
28
|
__exportStar(require("./interface/industry.entity.interface"), exports);
|
|
29
29
|
__exportStar(require("./interface/configuration.entity.interface"), exports);
|
|
30
|
+
__exportStar(require("./interface/field-constraint/configuration_field_constraints.interface"), exports);
|
|
30
31
|
__exportStar(require("./interface/rate.entity.interface"), exports);
|
|
31
32
|
__exportStar(require("./interface/client.entity.interface"), exports);
|
|
32
33
|
__exportStar(require("./interface/field-constraint/client_field_constraints.interface"), exports);
|
|
@@ -125,6 +126,7 @@ __exportStar(require("./enums/cron_jobs_name_enum"), exports);
|
|
|
125
126
|
__exportStar(require("./enums/cron_jobs_status_enum"), exports);
|
|
126
127
|
__exportStar(require("./enums/timezone.enum"), exports);
|
|
127
128
|
__exportStar(require("./interface/cron_jobs.entity.interface"), exports);
|
|
129
|
+
__exportStar(require("./interface/field-constraint/cron_jobs_field_constraints.interface"), exports);
|
|
128
130
|
__exportStar(require("./interface/to_do_list.entity.interface"), exports);
|
|
129
131
|
__exportStar(require("./interface/field-constraint/to_do_list_field_constraints.interface"), exports);
|
|
130
132
|
__exportStar(require("./model/configuration.entity.model"), exports);
|
package/dist/src/entities/interface/field-constraint/configuration_field_constraints.interface.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { IConfigurationEntity } from "../configuration.entity.interface";
|
|
2
|
+
import { IEntityAuditColumn } from "../entity-audit-columns.interface";
|
|
3
|
+
import { IFieldMinMaxConstraint } from "./utils";
|
|
4
|
+
/**
|
|
5
|
+
* excluded, and why:
|
|
6
|
+
* - "key", "type" enums, they carry no min/max
|
|
7
|
+
* - "id", keyof IEntityAuditColumn generated columns
|
|
8
|
+
*
|
|
9
|
+
* ConfigurationEntityUpdateDto extends PartialType(OmitType(ConfigurationEntityCreateDto, ...)), so
|
|
10
|
+
* it inherits every create bound — create and update cannot disagree for this entity
|
|
11
|
+
*/
|
|
12
|
+
export type IConfigurationFieldLengthConstraintsExclude = "id" | "key" | "type" | keyof IEntityAuditColumn;
|
|
13
|
+
/**
|
|
14
|
+
* since some fields are optional, but we still need their
|
|
15
|
+
* min & max length constraints, we need to make them required in this type
|
|
16
|
+
* hence we are using -? to make all properties required in this type
|
|
17
|
+
*/
|
|
18
|
+
export type IConfigurationFieldMinMaxConstraints = {
|
|
19
|
+
[K in keyof Omit<IConfigurationEntity, IConfigurationFieldLengthConstraintsExclude>]-?: IFieldMinMaxConstraint;
|
|
20
|
+
};
|
|
21
|
+
export declare const configurationFieldMinMaxConstraints: IConfigurationFieldMinMaxConstraints;
|
package/dist/src/entities/interface/field-constraint/configuration_field_constraints.interface.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.configurationFieldMinMaxConstraints = void 0;
|
|
4
|
+
exports.configurationFieldMinMaxConstraints = {
|
|
5
|
+
value: {
|
|
6
|
+
max: 255,
|
|
7
|
+
},
|
|
8
|
+
organizationId: {
|
|
9
|
+
max: 9999999,
|
|
10
|
+
},
|
|
11
|
+
/** the column is varchar(128) but the create DTO allows @MaxLength(255) — the DTO bound stays as a
|
|
12
|
+
* literal, reconciling the two is step-4 material */
|
|
13
|
+
label: {
|
|
14
|
+
max: 128,
|
|
15
|
+
},
|
|
16
|
+
description: {
|
|
17
|
+
max: 255,
|
|
18
|
+
},
|
|
19
|
+
};
|
package/dist/src/entities/interface/field-constraint/cron_jobs_field_constraints.interface.d.ts
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ICronJobsEntity } from "../cron_jobs.entity.interface";
|
|
2
|
+
import { IEntityAuditColumn } from "../entity-audit-columns.interface";
|
|
3
|
+
import { IFieldMinMaxConstraint } from "./utils";
|
|
4
|
+
/**
|
|
5
|
+
* excluded, and why:
|
|
6
|
+
* - "job", "status" enums, they carry no min/max
|
|
7
|
+
* - "startTime", "endTime" datetime columns, they carry no length
|
|
8
|
+
* - "id", keyof IEntityAuditColumn generated columns
|
|
9
|
+
*
|
|
10
|
+
* there is no CronJobsCreateDto / CronJobsUpdateDto in the backend — rows are written by the cron
|
|
11
|
+
* runner itself — so every bound below comes from the column definition alone
|
|
12
|
+
*/
|
|
13
|
+
export type ICronJobsFieldLengthConstraintsExclude = "id" | "job" | "status" | "startTime" | "endTime" | keyof IEntityAuditColumn;
|
|
14
|
+
/**
|
|
15
|
+
* since some fields are optional, but we still need their
|
|
16
|
+
* min & max length constraints, we need to make them required in this type
|
|
17
|
+
* hence we are using -? to make all properties required in this type
|
|
18
|
+
*/
|
|
19
|
+
export type ICronJobsFieldMinMaxConstraints = {
|
|
20
|
+
[K in keyof Omit<ICronJobsEntity, ICronJobsFieldLengthConstraintsExclude>]-?: IFieldMinMaxConstraint;
|
|
21
|
+
};
|
|
22
|
+
export declare const cronJobsFieldMinMaxConstraints: ICronJobsFieldMinMaxConstraints;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.cronJobsFieldMinMaxConstraints = void 0;
|
|
4
|
+
exports.cronJobsFieldMinMaxConstraints = {
|
|
5
|
+
message: {
|
|
6
|
+
max: 512,
|
|
7
|
+
},
|
|
8
|
+
error: {
|
|
9
|
+
max: 512,
|
|
10
|
+
},
|
|
11
|
+
parameters: {
|
|
12
|
+
max: 512,
|
|
13
|
+
},
|
|
14
|
+
};
|