law-common 1.2.58-beta.17 → 1.2.58-beta.18

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.
@@ -30,6 +30,8 @@ export type IBillingEntityUpdateGet = {
30
30
  invoiceNumber?: number;
31
31
  writeoffAmount: number;
32
32
  totalAmountPaid: number;
33
+ tdsAmount: number;
34
+ creditNoteAmount: number;
33
35
  createdOn: string;
34
36
  updatedOn: string;
35
37
  createdBy: number;
@@ -14,6 +14,7 @@ export declare enum UserRoleEnum {
14
14
  }
15
15
  export declare namespace UserRoleEnum {
16
16
  function getNames(): string[];
17
+ function parse(value: string): UserRoleEnum;
17
18
  }
18
19
  export declare namespace UserStatusEnum {
19
20
  function getNames(): string[];
@@ -22,6 +22,13 @@ var UserRoleEnum;
22
22
  return Object.values(UserRoleEnum).filter((value) => typeof value === "string");
23
23
  }
24
24
  UserRoleEnum.getNames = getNames;
25
+ function parse(value) {
26
+ if (Object.values(UserRoleEnum).includes(value)) {
27
+ return value;
28
+ }
29
+ throw new Error("Invalid user role");
30
+ }
31
+ UserRoleEnum.parse = parse;
25
32
  })(UserRoleEnum || (exports.UserRoleEnum = UserRoleEnum = {}));
26
33
  (function (UserStatusEnum) {
27
34
  function getNames() {
@@ -16,6 +16,8 @@ export interface IBillingEntity extends IAuditColumnEntity {
16
16
  status: BillingStatusEnum;
17
17
  writeoffAmount: number;
18
18
  totalAmountPaid: number;
19
+ tdsAmount: number;
20
+ creditNoteAmount: number;
19
21
  }
20
22
  export interface IBillingTimesheetEntity extends IAuditColumnEntity {
21
23
  id: number;
package/package.json CHANGED
@@ -1,34 +1,34 @@
1
1
  {
2
- "name": "law-common",
3
- "version": "1.2.58-beta.17",
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
- "link": "npm run build && npm link",
16
- "test": "jest"
17
- },
18
- "keywords": [],
19
- "author": "",
20
- "license": "ISC",
21
- "devDependencies": {
22
- "@types/jest": "^29.5.13",
23
- "@types/node": "^22.6.1",
24
- "jest": "^29.7.0",
25
- "ts-jest": "^29.2.5",
26
- "ts-node": "^10.9.2",
27
- "typescript": "^5.6.2"
28
- },
29
- "dependencies": {
30
- "@types/express": "^5.0.0",
31
- "@types/multer": "^1.4.12",
32
- "date-fns": "^4.1.0"
33
- }
2
+ "name": "law-common",
3
+ "version": "1.2.58-beta.18",
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
+ "link": "npm run build && npm link",
16
+ "test": "jest"
17
+ },
18
+ "keywords": [],
19
+ "author": "",
20
+ "license": "ISC",
21
+ "devDependencies": {
22
+ "@types/jest": "^29.5.13",
23
+ "@types/node": "^22.6.1",
24
+ "jest": "^29.7.0",
25
+ "ts-jest": "^29.2.5",
26
+ "ts-node": "^10.9.2",
27
+ "typescript": "^5.6.2"
28
+ },
29
+ "dependencies": {
30
+ "@types/express": "^5.0.0",
31
+ "@types/multer": "^1.4.12",
32
+ "date-fns": "^4.1.0"
33
+ }
34
34
  }