law-common 11.3.21-beta.8 → 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.
@@ -1,6 +1,5 @@
1
1
  export declare enum BillingReimbursementExpenseChangedStatusEnum {
2
2
  UNCHANGED = "unchanged",
3
3
  UPDATED = "updated",
4
- NEW = "new",
5
4
  DELETED = "deleted"
6
5
  }
@@ -5,6 +5,5 @@ var BillingReimbursementExpenseChangedStatusEnum;
5
5
  (function (BillingReimbursementExpenseChangedStatusEnum) {
6
6
  BillingReimbursementExpenseChangedStatusEnum["UNCHANGED"] = "unchanged";
7
7
  BillingReimbursementExpenseChangedStatusEnum["UPDATED"] = "updated";
8
- BillingReimbursementExpenseChangedStatusEnum["NEW"] = "new";
9
8
  BillingReimbursementExpenseChangedStatusEnum["DELETED"] = "deleted";
10
9
  })(BillingReimbursementExpenseChangedStatusEnum || (exports.BillingReimbursementExpenseChangedStatusEnum = BillingReimbursementExpenseChangedStatusEnum = {}));
@@ -117,6 +117,21 @@ exports.billingFlowConfig = {
117
117
  },
118
118
  description: "Updates received payment details and recalculates outstanding amount.",
119
119
  },
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
+ [billing_action_enum_1.BillingActionsEnum.EDIT]: {
126
+ permissions: ["BILLING_APPROVER_ORG", "BILLING_APPROVER_PROJECT"],
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
+ },
130
+ [billing_action_enum_1.BillingActionsEnum.REGENERATE]: {
131
+ permissions: ["BILLING_UPDATE"],
132
+ next: () => billing_status_enum_1.BillingStatusEnum.CANCELLED,
133
+ description: "Regenerates the billing by cancelling the current one and creating a replacement",
134
+ },
120
135
  },
121
136
  },
122
137
  [billing_status_enum_1.BillingStatusEnum.PENDING_PAYMENT]: {
@@ -136,8 +151,8 @@ exports.billingFlowConfig = {
136
151
  },
137
152
  [billing_action_enum_1.BillingActionsEnum.EDIT]: {
138
153
  permissions: ["BILLING_APPROVER_ORG", "BILLING_APPROVER_PROJECT"],
139
- next: () => billing_status_enum_1.BillingStatusEnum.PENDING_PAYMENT,
140
- description: "Allows stakeholders to edit the Proforma Invoice while keeping it in Pending Payment status.",
154
+ next: () => billing_status_enum_1.BillingStatusEnum.INVOICE_SENT,
155
+ description: "Allows stakeholders to edit the invoice while keeping it in Invoice Sent status.",
141
156
  },
142
157
  [billing_action_enum_1.BillingActionsEnum.REGENERATE]: {
143
158
  permissions: ["BILLING_UPDATE"],
package/package.json CHANGED
@@ -1,50 +1,50 @@
1
- {
2
- "name": "law-common",
3
- "version": "11.3.21-beta.8",
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
+ }