law-common 11.3.21-beta.9 → 11.3.22
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.
|
@@ -117,15 +117,15 @@ exports.billingFlowConfig = {
|
|
|
117
117
|
},
|
|
118
118
|
description: "Updates received payment details and recalculates outstanding amount.",
|
|
119
119
|
},
|
|
120
|
-
[
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
},
|
|
120
|
+
// [BillingActionsEnum.REJECT]: {
|
|
121
|
+
// permissions: ["BILLING_APPROVER_ORG", "BILLING_APPROVER_PROJECT"],
|
|
122
|
+
// next: () => BillingStatusEnum.CANCELLED,
|
|
123
|
+
// description: "Rejected state indicates that the Proforma Invoice was not approved and has been cancelled.",
|
|
124
|
+
// },
|
|
125
125
|
[billing_action_enum_1.BillingActionsEnum.EDIT]: {
|
|
126
126
|
permissions: ["BILLING_APPROVER_ORG", "BILLING_APPROVER_PROJECT"],
|
|
127
|
-
next: () => billing_status_enum_1.BillingStatusEnum.
|
|
128
|
-
description: "Allows stakeholders to edit the
|
|
127
|
+
next: () => billing_status_enum_1.BillingStatusEnum.INVOICE_SENT,
|
|
128
|
+
description: "Allows stakeholders to edit the invoice while keeping it in Invoice Sent status.",
|
|
129
129
|
},
|
|
130
130
|
[billing_action_enum_1.BillingActionsEnum.REGENERATE]: {
|
|
131
131
|
permissions: ["BILLING_UPDATE"],
|
|
@@ -151,8 +151,8 @@ exports.billingFlowConfig = {
|
|
|
151
151
|
},
|
|
152
152
|
[billing_action_enum_1.BillingActionsEnum.EDIT]: {
|
|
153
153
|
permissions: ["BILLING_APPROVER_ORG", "BILLING_APPROVER_PROJECT"],
|
|
154
|
-
next: () => billing_status_enum_1.BillingStatusEnum.
|
|
155
|
-
description: "Allows stakeholders to edit the
|
|
154
|
+
next: () => billing_status_enum_1.BillingStatusEnum.INVOICE_SENT,
|
|
155
|
+
description: "Allows stakeholders to edit the invoice while keeping it in Invoice Sent status.",
|
|
156
156
|
},
|
|
157
157
|
[billing_action_enum_1.BillingActionsEnum.REGENERATE]: {
|
|
158
158
|
permissions: ["BILLING_UPDATE"],
|
package/package.json
CHANGED
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "law-common",
|
|
3
|
-
"version": "11.3.
|
|
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
|
-
},
|
|
30
|
-
"keywords": [],
|
|
31
|
-
"author": "",
|
|
32
|
-
"license": "ISC",
|
|
33
|
-
"devDependencies": {
|
|
34
|
-
"@types/jest": "^29.5.13",
|
|
35
|
-
"@types/lodash": "^4.17.21",
|
|
36
|
-
"@types/node": "^22.6.1",
|
|
37
|
-
"jest": "^29.7.0",
|
|
38
|
-
"prettier": "3.8.1",
|
|
39
|
-
"semver": "^7.8.1",
|
|
40
|
-
"ts-jest": "^29.2.5",
|
|
41
|
-
"ts-node": "^10.9.2",
|
|
42
|
-
"typescript": "^5.6.2"
|
|
43
|
-
},
|
|
44
|
-
"dependencies": {
|
|
45
|
-
"@types/express": "^5.0.0",
|
|
46
|
-
"@types/multer": "^1.4.12",
|
|
47
|
-
"date-fns": "^4.1.0",
|
|
48
|
-
"lodash": "4.17.21"
|
|
49
|
-
}
|
|
50
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "law-common",
|
|
3
|
+
"version": "11.3.22",
|
|
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
|
+
},
|
|
30
|
+
"keywords": [],
|
|
31
|
+
"author": "",
|
|
32
|
+
"license": "ISC",
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"@types/jest": "^29.5.13",
|
|
35
|
+
"@types/lodash": "^4.17.21",
|
|
36
|
+
"@types/node": "^22.6.1",
|
|
37
|
+
"jest": "^29.7.0",
|
|
38
|
+
"prettier": "3.8.1",
|
|
39
|
+
"semver": "^7.8.1",
|
|
40
|
+
"ts-jest": "^29.2.5",
|
|
41
|
+
"ts-node": "^10.9.2",
|
|
42
|
+
"typescript": "^5.6.2"
|
|
43
|
+
},
|
|
44
|
+
"dependencies": {
|
|
45
|
+
"@types/express": "^5.0.0",
|
|
46
|
+
"@types/multer": "^1.4.12",
|
|
47
|
+
"date-fns": "^4.1.0",
|
|
48
|
+
"lodash": "4.17.21"
|
|
49
|
+
}
|
|
50
|
+
}
|