law-common 8.0.1-beta.0 → 8.1.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.
- package/dist/src/constants/entity_constants.d.ts +2 -0
- package/dist/src/constants/entity_constants.js +5 -0
- package/dist/src/constants/index.d.ts +1 -0
- package/dist/src/constants/index.js +1 -0
- package/dist/src/entities/interface/configuration.entity.interface.d.ts +1 -1
- package/dist/src/utils/models/date-code.model.util.js +3 -3
- package/package.json +1 -1
|
@@ -13,6 +13,6 @@ export interface IConfigurationEntity extends IAuditColumnEntity {
|
|
|
13
13
|
export type IConfigurationExclude = "organizationId";
|
|
14
14
|
export interface IConfigurationEntityCreateDto extends Omit<IEntityCreateDto<IConfigurationEntity>, IConfigurationExclude> {
|
|
15
15
|
}
|
|
16
|
-
export interface
|
|
16
|
+
export interface IConfigurationEntityBulkUpdateDto extends IEntityUpdateDto<IConfigurationEntity> {
|
|
17
17
|
}
|
|
18
18
|
export type IConfigurationEntityFilterData = IEntityFilterData<IConfigurationEntity>;
|
|
@@ -47,9 +47,9 @@ class DateCodeModel {
|
|
|
47
47
|
return (0, date_fns_1.format)(date, "yyyyMMdd");
|
|
48
48
|
}
|
|
49
49
|
isWithinOffset(offsetInDays) {
|
|
50
|
-
const
|
|
51
|
-
const
|
|
52
|
-
return
|
|
50
|
+
const todaysDateModel = new DateCodeModel(DateCodeModel.fromDate(new Date()));
|
|
51
|
+
const onTimeDateModel = todaysDateModel.getByOffset(offsetInDays);
|
|
52
|
+
return this.getDate() >= onTimeDateModel.getDate();
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
exports.DateCodeModel = DateCodeModel;
|