law-common 10.28.1-beta.0 → 10.29.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.
@@ -21,7 +21,7 @@ export type ITimesheetFlowConfig = {
21
21
  permissions: string[];
22
22
  isApplicable?: (data: ITimesheetFlowContextData) => boolean;
23
23
  next: (data: ITimesheetFlowContextData) => TimesheetStatusEnum;
24
- validActionPastThreshold: boolean;
24
+ validActionPastThreshold?: boolean;
25
25
  };
26
26
  };
27
27
  };
@@ -33,8 +33,3 @@ export type ITimesheetFlowContextData = {
33
33
  dto: ITimesheetEntityUpdateDto;
34
34
  timesheetEnterThresholdValue: number;
35
35
  };
36
- export type ITimesheetFlowAfterTimesheetEnterThreshold = {
37
- [key in TimesheetStatusEnum]?: {
38
- validActions: TimesheetActionEnum[];
39
- };
40
- };
@@ -1,6 +1,2 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- // export type ITimesheetFlowGet = {
4
- // timesheetFlowPriorThreshold: ITimesheetFlowConfig;
5
- // timesheetFlowPastThreshold: ITimesheetFlowAfterTimesheetEnterThreshold;
6
- // };
@@ -1,7 +1,6 @@
1
1
  export * from "./enums/task.entity.enum";
2
2
  export * from "./enums/user.entity.enum";
3
3
  export * from "./enums/organization.entity.enum";
4
- export * from "./interface/audit-column.entity.interface";
5
4
  export * from "./interface/entity.utils.interface";
6
5
  export * from "./interface/organization.entity.interface";
7
6
  export * from "./interface/task.entity.interface";
@@ -17,7 +17,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./enums/task.entity.enum"), exports);
18
18
  __exportStar(require("./enums/user.entity.enum"), exports);
19
19
  __exportStar(require("./enums/organization.entity.enum"), exports);
20
- __exportStar(require("./interface/audit-column.entity.interface"), exports);
21
20
  __exportStar(require("./interface/entity.utils.interface"), exports);
22
21
  __exportStar(require("./interface/organization.entity.interface"), exports);
23
22
  __exportStar(require("./interface/task.entity.interface"), exports);
@@ -21,7 +21,6 @@ import { ReimbursementEntityModel } from "../model/reimbursement.entity.model";
21
21
  import { TaskEntityModel } from "../model/task.entity.model";
22
22
  import { TimesheetEntityModel } from "../model/timesheet.entity.model";
23
23
  import { UserEntityModel } from "../model/user.entity.model";
24
- import { IAuditColumnEntity } from "./audit-column.entity.interface";
25
24
  import { IBankEntity } from "./bank.entity.interface";
26
25
  import { IBankHistoryEntity } from "./bank_history.entity.interface";
27
26
  import { IBillingReimbursementExpenseEntity } from "./billing-reimbursement-expense.entity.interface";
@@ -64,8 +63,8 @@ export type IApiEntity<T> = Modify<T, {
64
63
  createdOn: string;
65
64
  updatedOn: string;
66
65
  }>;
67
- export type IEntityCreateDto<T> = Omit<T, "id" | keyof IAuditColumnEntity>;
68
- export type IEntityUpdateDto<T> = Omit<Partial<T>, "id" | keyof IAuditColumnEntity>;
66
+ export type IEntityCreateDto<T> = Omit<T, "id" | keyof IEntityAuditColumn>;
67
+ export type IEntityUpdateDto<T> = Omit<Partial<T>, "id" | keyof IEntityAuditColumn>;
69
68
  /**
70
69
  * EntityEnum
71
70
  *
@@ -1,6 +1,5 @@
1
1
  import { CurrencyEnum, TimeUnitEnum } from "../../enums";
2
2
  import { PartialBy } from "../../misc";
3
- import { IAuditColumnEntity } from "./audit-column.entity.interface";
4
3
  import { IEntityAuditColumn } from "./entity-audit-columns.interface";
5
4
  import { IEntityCreateDto, IEntityFilterData, IEntityUpdateDto } from "./entity.utils.interface";
6
5
  export interface IRateEntity extends IEntityAuditColumn {
@@ -14,6 +13,6 @@ export interface IRateEntityCreateDto extends IEntityCreateDto<IRateEntity> {
14
13
  }
15
14
  export interface IRateEntityUpdateDto extends IEntityUpdateDto<IRateEntity> {
16
15
  }
17
- export interface IRateEntityUpdateByDesignationCurrencyDto extends PartialBy<Omit<IRateEntity, "id" | keyof IAuditColumnEntity>, "unit"> {
16
+ export interface IRateEntityUpdateByDesignationCurrencyDto extends PartialBy<Omit<IRateEntity, "id" | keyof IEntityAuditColumn>, "unit"> {
18
17
  }
19
18
  export type IRateEntityFilterData = IEntityFilterData<IRateEntity>;
package/package.json CHANGED
@@ -1,35 +1,35 @@
1
- {
2
- "name": "law-common",
3
- "version": "10.28.1-beta.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
+ {
2
+ "name": "law-common",
3
+ "version": "10.29.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,6 +0,0 @@
1
- export interface IAuditColumnEntity {
2
- createdOn: Date;
3
- updatedOn: Date;
4
- createdBy: number;
5
- updatedBy: number;
6
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });