law-common 10.5.1-beta.1 → 10.6.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.
@@ -79,4 +79,3 @@ export * from "./interface/holiday.entity.response";
79
79
  export * from "./interface/holiday-list.entity.response";
80
80
  export * from "./interface/cron-job-manual-trigger.dto.interface";
81
81
  export * from "./interface/cron-job.entity.response";
82
- export * from "./interface/to-do.entity.api";
@@ -95,4 +95,3 @@ __exportStar(require("./interface/holiday.entity.response"), exports);
95
95
  __exportStar(require("./interface/holiday-list.entity.response"), exports);
96
96
  __exportStar(require("./interface/cron-job-manual-trigger.dto.interface"), exports);
97
97
  __exportStar(require("./interface/cron-job.entity.response"), exports);
98
- __exportStar(require("./interface/to-do.entity.api"), exports);
@@ -2,7 +2,6 @@ export declare const timesheetViewThreshold = "timesheetViewThreshold";
2
2
  export declare const timesheetThreshold = "timesheetThreshold";
3
3
  export declare const timesheetEnterThreshold = "timesheetEnterThreshold";
4
4
  export declare const timesheetMinimumTotalDuration = 15;
5
- export declare const toDoListMinimumEstimatedDuration = 15;
6
5
  export declare const reimbursementPaymentProcessorPermissionName = "REIMBURSEMENT_PAYMENT_PROCESSOR";
7
6
  export declare const leaveImplicitDays: string[];
8
7
  export declare const usersToExcludeFromSearchResponse: string[];
@@ -1,11 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.usersToExcludeFromSearchResponse = exports.leaveImplicitDays = exports.reimbursementPaymentProcessorPermissionName = exports.toDoListMinimumEstimatedDuration = exports.timesheetMinimumTotalDuration = exports.timesheetEnterThreshold = exports.timesheetThreshold = exports.timesheetViewThreshold = void 0;
3
+ exports.usersToExcludeFromSearchResponse = exports.leaveImplicitDays = exports.reimbursementPaymentProcessorPermissionName = exports.timesheetMinimumTotalDuration = exports.timesheetEnterThreshold = exports.timesheetThreshold = exports.timesheetViewThreshold = void 0;
4
4
  exports.timesheetViewThreshold = "timesheetViewThreshold";
5
5
  exports.timesheetThreshold = "timesheetThreshold";
6
6
  exports.timesheetEnterThreshold = "timesheetEnterThreshold";
7
7
  exports.timesheetMinimumTotalDuration = 15;
8
- exports.toDoListMinimumEstimatedDuration = 15;
9
8
  exports.reimbursementPaymentProcessorPermissionName = "REIMBURSEMENT_PAYMENT_PROCESSOR";
10
9
  exports.leaveImplicitDays = ["Saturday", "Sunday"];
11
10
  exports.usersToExcludeFromSearchResponse = ["DB migration"];
@@ -70,4 +70,3 @@ export * from "./enums/configuration-key.enum";
70
70
  export * from "./enums/timezone.enum";
71
71
  export * from "./interface/cron-job.entity.interface";
72
72
  export * from "./model/configuration.model";
73
- export * from "./interface/to-do.entity.interface";
@@ -87,4 +87,3 @@ __exportStar(require("./enums/configuration-key.enum"), exports);
87
87
  __exportStar(require("./enums/timezone.enum"), exports);
88
88
  __exportStar(require("./interface/cron-job.entity.interface"), exports);
89
89
  __exportStar(require("./model/configuration.model"), exports);
90
- __exportStar(require("./interface/to-do.entity.interface"), exports);
@@ -33,7 +33,6 @@ import { IRoleEntity } from "./role.entity.interface";
33
33
  import { IRolePermissionMappingEntity } from "./role.permission.mapping.entity.interface";
34
34
  import { ITaskEntity } from "./task.entity.interface";
35
35
  import { ITimesheetEntity } from "./timesheet.entity.interface";
36
- import { IToDoListEntity } from "./to-do.entity.interface";
37
36
  import { IUserEntity } from "./user.entity.interface";
38
37
  import { IWorkFromHomeEntity } from "./work_from_home.entity.interface";
39
38
  export type IApiEntity<T extends {
@@ -85,8 +84,7 @@ export declare enum EntityEnum {
85
84
  ROLE_PERMISSION_MAPPING = "role_permission_mapping",
86
85
  HOLIDAY = "holiday",
87
86
  HOLIDAY_LIST = "holiday_list",
88
- CRON_JOBS = "cron_jobs",
89
- TO_DO_LIST = "to_do_list"
87
+ CRON_JOBS = "cron_jobs"
90
88
  }
91
89
  export type EntityRelations = {
92
90
  [K in EntityEnum]: K;
@@ -116,7 +114,7 @@ export type IBaseEntityApiResponse<T extends {
116
114
  [K in EntityEnum]?: IBaseEntityApiResponse<EnumEntityType<K>>;
117
115
  };
118
116
  };
119
- export type EnumEntityType<T extends EntityEnum> = (T extends EntityEnum.BILLING ? IBillingEntity : T extends EntityEnum.BILLING_TIMESHEET ? IBillingTimesheetEntity : T extends EntityEnum.TIMESHEET ? ITimesheetEntity : T extends EntityEnum.USER ? IUserEntity : T extends EntityEnum.PROJECT ? IProjectEntity : T extends EntityEnum.CLIENT ? IClientEntity : T extends EntityEnum.LEAVE ? ILeaveEntity : T extends EntityEnum.BANK ? IBankEntity : T extends EntityEnum.BANK_HISTORY ? IBankHistoryEntity : T extends EntityEnum.BILLING_PAYMENT ? IBillingPaymentEntity : T extends EntityEnum.BILLING_TRANSACTION ? IBillingTransactionEntity : T extends EntityEnum.CLIENT_AFFILIATE ? IClientAffiliateEntity : T extends EntityEnum.CONFIGURATION ? IConfigurationEntity : T extends EntityEnum.HOLIDAY ? IHolidayEntity : T extends EntityEnum.HOLIDAY_LIST ? IHolidayListEntity : T extends EntityEnum.COUNTRY ? ICountryEntity : T extends EntityEnum.EXPENSE_TYPE ? IExpenseTypeEntity : T extends EntityEnum.INDUSTRY ? IIndustryEntity : T extends EntityEnum.INTERMEDIARY_BANK ? IIntermediaryBankEntity : T extends EntityEnum.OFFICE_LOCATION ? IOfficeLocationEntity : T extends EntityEnum.PERMISSION ? IPermissionEntity : T extends EntityEnum.ROLE ? IRoleEntity : T extends EntityEnum.TASK ? ITaskEntity : T extends EntityEnum.DESIGNATION ? IDesignationEntity : T extends EntityEnum.RATE ? IRateEntity : T extends EntityEnum.REIMBURSEMENT ? IReimbursementEntity : T extends EntityEnum.REIMBURSEMENT_EXPENSE ? IReimbursementExpenseEntity : T extends EntityEnum.WORK_FROM_HOME ? IWorkFromHomeEntity : T extends EntityEnum.ORGANIZATION ? IOrganizationEntity : T extends EntityEnum.PROJECT_USER_MAPPING ? IProjectUserMappingEntity : T extends EntityEnum.CLIENT_USER_MAPPING ? IClientUserMappingEntity : T extends EntityEnum.TO_DO_LIST ? IToDoListEntity : T extends EntityEnum.CRON_JOBS ? ICronJobsEntity : T extends EntityEnum.ROLE_PERMISSION_MAPPING ? IRolePermissionMappingEntity : never) & {
117
+ export type EnumEntityType<T extends EntityEnum> = (T extends EntityEnum.BILLING ? IBillingEntity : T extends EntityEnum.BILLING_TIMESHEET ? IBillingTimesheetEntity : T extends EntityEnum.TIMESHEET ? ITimesheetEntity : T extends EntityEnum.USER ? IUserEntity : T extends EntityEnum.PROJECT ? IProjectEntity : T extends EntityEnum.CLIENT ? IClientEntity : T extends EntityEnum.LEAVE ? ILeaveEntity : T extends EntityEnum.BANK ? IBankEntity : T extends EntityEnum.BANK_HISTORY ? IBankHistoryEntity : T extends EntityEnum.BILLING_PAYMENT ? IBillingPaymentEntity : T extends EntityEnum.BILLING_TRANSACTION ? IBillingTransactionEntity : T extends EntityEnum.CLIENT_AFFILIATE ? IClientAffiliateEntity : T extends EntityEnum.CONFIGURATION ? IConfigurationEntity : T extends EntityEnum.HOLIDAY ? IHolidayEntity : T extends EntityEnum.HOLIDAY_LIST ? IHolidayListEntity : T extends EntityEnum.COUNTRY ? ICountryEntity : T extends EntityEnum.EXPENSE_TYPE ? IExpenseTypeEntity : T extends EntityEnum.INDUSTRY ? IIndustryEntity : T extends EntityEnum.INTERMEDIARY_BANK ? IIntermediaryBankEntity : T extends EntityEnum.OFFICE_LOCATION ? IOfficeLocationEntity : T extends EntityEnum.PERMISSION ? IPermissionEntity : T extends EntityEnum.ROLE ? IRoleEntity : T extends EntityEnum.TASK ? ITaskEntity : T extends EntityEnum.DESIGNATION ? IDesignationEntity : T extends EntityEnum.RATE ? IRateEntity : T extends EntityEnum.REIMBURSEMENT ? IReimbursementEntity : T extends EntityEnum.REIMBURSEMENT_EXPENSE ? IReimbursementExpenseEntity : T extends EntityEnum.WORK_FROM_HOME ? IWorkFromHomeEntity : T extends EntityEnum.ORGANIZATION ? IOrganizationEntity : T extends EntityEnum.PROJECT_USER_MAPPING ? IProjectUserMappingEntity : T extends EntityEnum.CLIENT_USER_MAPPING ? IClientUserMappingEntity : T extends EntityEnum.CRON_JOBS ? ICronJobsEntity : T extends EntityEnum.ROLE_PERMISSION_MAPPING ? IRolePermissionMappingEntity : never) & {
120
118
  id: number;
121
119
  };
122
120
  export type EntityRelationConfig<T extends EntityEnum> = {
@@ -43,5 +43,4 @@ var EntityEnum;
43
43
  EntityEnum["HOLIDAY"] = "holiday";
44
44
  EntityEnum["HOLIDAY_LIST"] = "holiday_list";
45
45
  EntityEnum["CRON_JOBS"] = "cron_jobs";
46
- EntityEnum["TO_DO_LIST"] = "to_do_list";
47
46
  })(EntityEnum || (exports.EntityEnum = EntityEnum = {}));
package/package.json CHANGED
@@ -1,35 +1,35 @@
1
- {
2
- "name": "law-common",
3
- "version": "10.5.1-beta.1",
4
- "description": "",
5
- "main": "dist/index.js",
6
- "files": [
7
- "dist/**/*"
8
- ],
9
- "scripts": {
10
- "clean": "rm -rf dist",
11
- "build": "npm run clean && tsc",
12
- "publish:beta": "npm version prerelease --preid beta && git push && npm run build && npm publish --tag beta",
13
- "publish:patch": "npm version patch && git push && npm run build && npm publish",
14
- "publish:minor": "npm version minor && git push && npm run build && npm publish",
15
- "publish:major": "npm version major && git push && npm run build && npm publish",
16
- "link": "npm run build && npm link",
17
- "test": "jest"
18
- },
19
- "keywords": [],
20
- "author": "",
21
- "license": "ISC",
22
- "devDependencies": {
23
- "@types/jest": "^29.5.13",
24
- "@types/node": "^22.6.1",
25
- "jest": "^29.7.0",
26
- "ts-jest": "^29.2.5",
27
- "ts-node": "^10.9.2",
28
- "typescript": "^5.6.2"
29
- },
30
- "dependencies": {
31
- "@types/express": "^5.0.0",
32
- "@types/multer": "^1.4.12",
33
- "date-fns": "^4.1.0"
34
- }
35
- }
1
+ {
2
+ "name": "law-common",
3
+ "version": "10.6.0",
4
+ "description": "",
5
+ "main": "dist/index.js",
6
+ "files": [
7
+ "dist/**/*"
8
+ ],
9
+ "scripts": {
10
+ "clean": "rm -rf dist",
11
+ "build": "npm run clean && tsc",
12
+ "publish:beta": "npm version prerelease --preid beta && git push && npm run build && npm publish --tag beta",
13
+ "publish:patch": "npm version patch && git push && npm run build && npm publish",
14
+ "publish:minor": "npm version minor && git push && npm run build && npm publish",
15
+ "publish:major": "npm version major && git push && npm run build && npm publish",
16
+ "link": "npm run build && npm link",
17
+ "test": "jest"
18
+ },
19
+ "keywords": [],
20
+ "author": "",
21
+ "license": "ISC",
22
+ "devDependencies": {
23
+ "@types/jest": "^29.5.13",
24
+ "@types/node": "^22.6.1",
25
+ "jest": "^29.7.0",
26
+ "ts-jest": "^29.2.5",
27
+ "ts-node": "^10.9.2",
28
+ "typescript": "^5.6.2"
29
+ },
30
+ "dependencies": {
31
+ "@types/express": "^5.0.0",
32
+ "@types/multer": "^1.4.12",
33
+ "date-fns": "^4.1.0"
34
+ }
35
+ }
@@ -1,3 +0,0 @@
1
- import { IApiEntity, IToDoListEntity } from "../../entities";
2
- export type IToDoListApiEntity = IApiEntity<IToDoListEntity>;
3
- export type IToDoApiEntityArray = IToDoListApiEntity[];
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,19 +0,0 @@
1
- import { IAuditColumnEntity } from "./audit-column.entity.interface";
2
- import { IEntityCreateDto, IEntityFilterData, IEntityUpdateDto } from "./entity.utils.interface";
3
- export interface IToDoListEntity extends IAuditColumnEntity {
4
- id: number;
5
- description: string;
6
- dateCode: string;
7
- estimatedDuration: number;
8
- projectId: number;
9
- userId: number;
10
- }
11
- export interface IToDoListCreateDto extends IEntityCreateDto<IToDoListEntity> {
12
- }
13
- export interface IToDoListUpdateDto extends IEntityUpdateDto<IToDoListEntity> {
14
- }
15
- export interface IToDoListEntityFilterData extends IEntityFilterData<IToDoListEntity> {
16
- }
17
- export interface IToDoListEntityUpdateDtoValidationData {
18
- toDoListEntity: IToDoListEntity;
19
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });