From 80caf983a6c4e917c032be47c3776b1ceb4aab3b Mon Sep 17 00:00:00 2001 From: Michael Franz <55514493+mfranz1@users.noreply.github.com> Date: Fri, 9 Dec 2022 09:31:16 -0500 Subject: [PATCH 1/3] added notes acl --- package-lock.json | 31 ++++++++++++++++++++++--------- package.json | 3 ++- src/const.ts | 7 +++++++ 3 files changed, 31 insertions(+), 10 deletions(-) diff --git a/package-lock.json b/package-lock.json index c532589..2ff1149 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,8 @@ "version": "0.2.0", "license": "ISC", "devDependencies": { - "@types/jest": "^28.1.4", + "@types/jest": "^28.1.8", + "@types/mocha": "^10.0.1", "@typescript-eslint/eslint-plugin": "^5.30.6", "eslint": "^8.19.0", "husky": "^8.0.1", @@ -1141,12 +1142,12 @@ } }, "node_modules/@types/jest": { - "version": "28.1.4", - "resolved": "https://registry.npmjs.org/@types/jest/-/jest-28.1.4.tgz", - "integrity": "sha512-telv6G5N7zRJiLcI3Rs3o+ipZ28EnE+7EvF0pSrt2pZOMnAVI/f+6/LucDxOvcBcTeTL3JMF744BbVQAVBUQRA==", + "version": "28.1.8", + "resolved": "https://registry.npmjs.org/@types/jest/-/jest-28.1.8.tgz", + "integrity": "sha512-8TJkV++s7B6XqnDrzR1m/TT0A0h948Pnl/097veySPN67VRAgQ4gZ7n2KfJo2rVq6njQjdxU3GCCyDvAeuHoiw==", "dev": true, "dependencies": { - "jest-matcher-utils": "^28.0.0", + "expect": "^28.0.0", "pretty-format": "^28.0.0" } }, @@ -1156,6 +1157,12 @@ "integrity": "sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==", "dev": true }, + "node_modules/@types/mocha": { + "version": "10.0.1", + "resolved": "https://registry.npmjs.org/@types/mocha/-/mocha-10.0.1.tgz", + "integrity": "sha512-/fvYntiO1GeICvqbQ3doGDIP97vWmvFt83GKguJ6prmQM2iXZfFcq6YE8KteFyRtX2/h5Hf91BYvPodJKFYv5Q==", + "dev": true + }, "node_modules/@types/node": { "version": "18.0.1", "resolved": "https://registry.npmjs.org/@types/node/-/node-18.0.1.tgz", @@ -5456,12 +5463,12 @@ } }, "@types/jest": { - "version": "28.1.4", - "resolved": "https://registry.npmjs.org/@types/jest/-/jest-28.1.4.tgz", - "integrity": "sha512-telv6G5N7zRJiLcI3Rs3o+ipZ28EnE+7EvF0pSrt2pZOMnAVI/f+6/LucDxOvcBcTeTL3JMF744BbVQAVBUQRA==", + "version": "28.1.8", + "resolved": "https://registry.npmjs.org/@types/jest/-/jest-28.1.8.tgz", + "integrity": "sha512-8TJkV++s7B6XqnDrzR1m/TT0A0h948Pnl/097veySPN67VRAgQ4gZ7n2KfJo2rVq6njQjdxU3GCCyDvAeuHoiw==", "dev": true, "requires": { - "jest-matcher-utils": "^28.0.0", + "expect": "^28.0.0", "pretty-format": "^28.0.0" } }, @@ -5471,6 +5478,12 @@ "integrity": "sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==", "dev": true }, + "@types/mocha": { + "version": "10.0.1", + "resolved": "https://registry.npmjs.org/@types/mocha/-/mocha-10.0.1.tgz", + "integrity": "sha512-/fvYntiO1GeICvqbQ3doGDIP97vWmvFt83GKguJ6prmQM2iXZfFcq6YE8KteFyRtX2/h5Hf91BYvPodJKFYv5Q==", + "dev": true + }, "@types/node": { "version": "18.0.1", "resolved": "https://registry.npmjs.org/@types/node/-/node-18.0.1.tgz", diff --git a/package.json b/package.json index e5c3885..7cb0977 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,8 @@ }, "homepage": "https://github.com/Cyber4All/competency-acl#readme", "devDependencies": { - "@types/jest": "^28.1.4", + "@types/jest": "^28.1.8", + "@types/mocha": "^10.0.1", "@typescript-eslint/eslint-plugin": "^5.30.6", "eslint": "^8.19.0", "husky": "^8.0.1", diff --git a/src/const.ts b/src/const.ts index 06e18b1..5e9705c 100644 --- a/src/const.ts +++ b/src/const.ts @@ -12,6 +12,7 @@ enum MODULES { behavior = "behavior", degree = "degree", employability = "employability", + notes = "notes", user = "user", apiKey = "apiKey", search = "search", @@ -64,6 +65,11 @@ export const competencyAcl = { updateDraft: `${SERVICES.competency}:${MODULES.employability}:updateDraft`, updateSubmitted: `${SERVICES.competency}:${MODULES.employability}:updateSubmitted` }, + notes: { + wildcard: `${SERVICES.competency}:${MODULES.notes}:*`, + updateDraft: `${SERVICES.competency}:${MODULES.notes}:updateDraft`, + updateSubmitted: `${SERVICES.competency}:${MODULES.notes}:updateSubmitted` + }, user: { wildcard: `${SERVICES.competency}:${MODULES.user}:*`, getUsers: `${SERVICES.competency}:${MODULES.user}:getUsers`, @@ -109,6 +115,7 @@ export const basic_user_permissions = [ competencyAcl.behavior.updateDraft, competencyAcl.degree.updateDraft, competencyAcl.employability.updateDraft, + competencyAcl.notes.updateDraft, competencyAcl.user.getProfile, competencyAcl.user.updateAccount, competencyAcl.search.wildcard, From 02169a7f74ae05d9f657d6a5a46927fe50f3c40d Mon Sep 17 00:00:00 2001 From: Michael Franz <55514493+mfranz1@users.noreply.github.com> Date: Fri, 9 Dec 2022 09:31:33 -0500 Subject: [PATCH 2/3] 0.3.0 --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 2ff1149..c31c020 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "competency-acl", - "version": "0.2.0", + "version": "0.3.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "competency-acl", - "version": "0.2.0", + "version": "0.3.0", "license": "ISC", "devDependencies": { "@types/jest": "^28.1.8", diff --git a/package.json b/package.json index 7cb0977..a9114c3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "competency-acl", - "version": "0.2.0", + "version": "0.3.0", "description": "", "main": "./lib/index.js", "types": "./lib/index.d.ts", From c72aea684edb7c2b1e6aa23d8296d4fa15af0dec Mon Sep 17 00:00:00 2001 From: Michael Franz <55514493+mfranz1@users.noreply.github.com> Date: Fri, 9 Dec 2022 10:55:14 -0500 Subject: [PATCH 3/3] removed mocha --- package-lock.json | 13 ------------- package.json | 1 - 2 files changed, 14 deletions(-) diff --git a/package-lock.json b/package-lock.json index c31c020..f331dc5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,6 @@ "license": "ISC", "devDependencies": { "@types/jest": "^28.1.8", - "@types/mocha": "^10.0.1", "@typescript-eslint/eslint-plugin": "^5.30.6", "eslint": "^8.19.0", "husky": "^8.0.1", @@ -1157,12 +1156,6 @@ "integrity": "sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==", "dev": true }, - "node_modules/@types/mocha": { - "version": "10.0.1", - "resolved": "https://registry.npmjs.org/@types/mocha/-/mocha-10.0.1.tgz", - "integrity": "sha512-/fvYntiO1GeICvqbQ3doGDIP97vWmvFt83GKguJ6prmQM2iXZfFcq6YE8KteFyRtX2/h5Hf91BYvPodJKFYv5Q==", - "dev": true - }, "node_modules/@types/node": { "version": "18.0.1", "resolved": "https://registry.npmjs.org/@types/node/-/node-18.0.1.tgz", @@ -5478,12 +5471,6 @@ "integrity": "sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==", "dev": true }, - "@types/mocha": { - "version": "10.0.1", - "resolved": "https://registry.npmjs.org/@types/mocha/-/mocha-10.0.1.tgz", - "integrity": "sha512-/fvYntiO1GeICvqbQ3doGDIP97vWmvFt83GKguJ6prmQM2iXZfFcq6YE8KteFyRtX2/h5Hf91BYvPodJKFYv5Q==", - "dev": true - }, "@types/node": { "version": "18.0.1", "resolved": "https://registry.npmjs.org/@types/node/-/node-18.0.1.tgz", diff --git a/package.json b/package.json index a9114c3..37b2a0c 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,6 @@ "homepage": "https://github.com/Cyber4All/competency-acl#readme", "devDependencies": { "@types/jest": "^28.1.8", - "@types/mocha": "^10.0.1", "@typescript-eslint/eslint-plugin": "^5.30.6", "eslint": "^8.19.0", "husky": "^8.0.1",