law-common 12.2.0 → 12.2.1-beta.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.
@@ -54,13 +54,13 @@ export interface IProjectHourlyRate {
54
54
  export interface IProjectFixedTypeRate {
55
55
  rate: number;
56
56
  unit: TimeUnitEnum;
57
- maxEstimatedHours: number;
58
- extraHoursRate: number;
57
+ maxEstimatedHours?: number;
58
+ extraHoursRate?: number;
59
59
  }
60
60
  export interface IProjectAdhocRate {
61
61
  rate: number;
62
- maxEstimatedHours: number;
63
- extraHoursRate: number;
62
+ maxEstimatedHours?: number;
63
+ extraHoursRate?: number;
64
64
  }
65
65
  export interface IProjectCreateDtoExtra {
66
66
  projectBillingRate: IProjectHourlyRate[] | IProjectFixedTypeRate | IProjectAdhocRate;
package/package.json CHANGED
@@ -1,56 +1,56 @@
1
- {
2
- "name": "law-common",
3
- "version": "12.2.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 run build && npm version prerelease --preid beta && git push && npm publish --tag beta",
13
- "publish:beta:link": "npm run build && npm version prerelease --preid beta && git push && npm publish --tag beta && npm run link",
14
- "publish:patch": "npm version patch && git push && npm run build && npm publish",
15
- "publish:minor": "npm version minor && git push && npm run build && npm publish",
16
- "publish:major": "npm verYsion major && git push && npm run build && npm publish",
17
- "link": "npm run build && npm link",
18
- "link:backend": "npm run build && npm link && cd ../law-backend && npm link law-common && cd ../law-common",
19
- "link:frontend": "npm run build && npm link && cd ../law-admin-web && npm link law-common && cd ../law-common",
20
- "link:both": "npm run build && npm link && cd ../law-backend && npm link law-common && cd ../law-admin-web && npm link law-common && cd ../law-common",
21
- "test": "jest",
22
- "format": "prettier --write .",
23
- "check-format": "prettier --check .",
24
- "pull:link": "git pull && npm run link",
25
- "check-version": "npm view law-common versions --json | jq -r '.[-1]'",
26
- "script:publish": "node scripts/publish.js",
27
- "script:publish:latest:beta": "npm run build && node scripts/publish.js prerelease beta && git push",
28
- "script:publish:latest:patch": "npm run build && node scripts/publish.js patch && git push",
29
- "script:nobuild:publish:latest:beta": "node scripts/publish.js prerelease beta && git push",
30
- "install:version": "node scripts/install-version.js",
31
- "script:publish:install:beta": "node scripts/publish-and-install.js prerelease beta",
32
- "script:publish:install:patch": "node scripts/publish-and-install.js patch",
33
- "script:publish:install:minor": "node scripts/publish-and-install.js minor",
34
- "script:publish:install:major": "node scripts/publish-and-install.js major"
35
- },
36
- "keywords": [],
37
- "author": "",
38
- "license": "ISC",
39
- "devDependencies": {
40
- "@types/jest": "^29.5.13",
41
- "@types/lodash": "^4.17.21",
42
- "@types/node": "^22.6.1",
43
- "jest": "^29.7.0",
44
- "prettier": "3.8.1",
45
- "semver": "^7.8.1",
46
- "ts-jest": "^29.2.5",
47
- "ts-node": "^10.9.2",
48
- "typescript": "^5.6.2"
49
- },
50
- "dependencies": {
51
- "@types/express": "^5.0.0",
52
- "@types/multer": "^1.4.12",
53
- "date-fns": "^4.1.0",
54
- "lodash": "4.17.21"
55
- }
56
- }
1
+ {
2
+ "name": "law-common",
3
+ "version": "12.2.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 run build && npm version prerelease --preid beta && git push && npm publish --tag beta",
13
+ "publish:beta:link": "npm run build && npm version prerelease --preid beta && git push && npm publish --tag beta && npm run link",
14
+ "publish:patch": "npm version patch && git push && npm run build && npm publish",
15
+ "publish:minor": "npm version minor && git push && npm run build && npm publish",
16
+ "publish:major": "npm verYsion major && git push && npm run build && npm publish",
17
+ "link": "npm run build && npm link",
18
+ "link:backend": "npm run build && npm link && cd ../law-backend && npm link law-common && cd ../law-common",
19
+ "link:frontend": "npm run build && npm link && cd ../law-admin-web && npm link law-common && cd ../law-common",
20
+ "link:both": "npm run build && npm link && cd ../law-backend && npm link law-common && cd ../law-admin-web && npm link law-common && cd ../law-common",
21
+ "test": "jest",
22
+ "format": "prettier --write .",
23
+ "check-format": "prettier --check .",
24
+ "pull:link": "git pull && npm run link",
25
+ "check-version": "npm view law-common versions --json | jq -r '.[-1]'",
26
+ "script:publish": "node scripts/publish.js",
27
+ "script:publish:latest:beta": "npm run build && node scripts/publish.js prerelease beta && git push",
28
+ "script:publish:latest:patch": "npm run build && node scripts/publish.js patch && git push",
29
+ "script:nobuild:publish:latest:beta": "node scripts/publish.js prerelease beta && git push",
30
+ "install:version": "node scripts/install-version.js",
31
+ "script:publish:install:beta": "node scripts/publish-and-install.js prerelease beta",
32
+ "script:publish:install:patch": "node scripts/publish-and-install.js patch",
33
+ "script:publish:install:minor": "node scripts/publish-and-install.js minor",
34
+ "script:publish:install:major": "node scripts/publish-and-install.js major"
35
+ },
36
+ "keywords": [],
37
+ "author": "",
38
+ "license": "ISC",
39
+ "devDependencies": {
40
+ "@types/jest": "^29.5.13",
41
+ "@types/lodash": "^4.17.21",
42
+ "@types/node": "^22.6.1",
43
+ "jest": "^29.7.0",
44
+ "prettier": "3.8.1",
45
+ "semver": "^7.8.1",
46
+ "ts-jest": "^29.2.5",
47
+ "ts-node": "^10.9.2",
48
+ "typescript": "^5.6.2"
49
+ },
50
+ "dependencies": {
51
+ "@types/express": "^5.0.0",
52
+ "@types/multer": "^1.4.12",
53
+ "date-fns": "^4.1.0",
54
+ "lodash": "4.17.21"
55
+ }
56
+ }