adapt-authoring-roles 1.5.2 → 1.6.1

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.
@@ -0,0 +1,18 @@
1
+ name: Add to project
2
+ on:
3
+ issues:
4
+ types:
5
+ - opened
6
+ - reopened
7
+ pull_request:
8
+ types:
9
+ - opened
10
+ - reopened
11
+ workflow_dispatch:
12
+ jobs:
13
+ add-to-project:
14
+ uses: adapt-security/.github/.github/workflows/addtoproject.yml@main
15
+ with:
16
+ project-url: https://github.com/orgs/adapt-security/projects/5
17
+ secrets:
18
+ ADDTOPROJECT_TOKEN: ${{ secrets.ADDTOPROJECT_TOKEN }}
package/README.md ADDED
@@ -0,0 +1,5 @@
1
+ # adapt-authoring-roles
2
+
3
+ Manages user roles. A role bundles a set of access scopes; assigning roles to [users](../adapt-authoring-users) is how the authoring tool grants the permissions enforced by the [auth](../adapt-authoring-auth) module.
4
+
5
+ Extends `AbstractApiModule` from [adapt-authoring-core](../adapt-authoring-core).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adapt-authoring-roles",
3
- "version": "1.5.2",
3
+ "version": "1.6.1",
4
4
  "description": "Module for managing user roles",
5
5
  "homepage": "https://github.com/adapt-security/adapt-authoring-roles",
6
6
  "license": "GPL-3.0",
@@ -18,7 +18,7 @@
18
18
  "extends": "@adaptlearning/semantic-release-config"
19
19
  },
20
20
  "dependencies": {
21
- "adapt-authoring-api": "^3.0.0"
21
+ "adapt-authoring-api": "^4.0.1"
22
22
  },
23
23
  "peerDependencies": {
24
24
  "adapt-authoring-auth": "^2.0.0",
@@ -7,13 +7,17 @@
7
7
  "with": {
8
8
  "properties": {
9
9
  "roles": {
10
+ "title": "Role",
10
11
  "description": "Roles assigned to this user",
11
12
  "type": "array",
12
13
  "items": {
13
14
  "type": "string",
14
15
  "isObjectId": true
15
16
  },
16
- "default": []
17
+ "default": [],
18
+ "_adapt": {
19
+ "inputType": "Roles"
20
+ }
17
21
  }
18
22
  }
19
23
  }
@@ -1,15 +0,0 @@
1
- # Calls the org-level reusable workflow to add PRs to the TODO Board
2
-
3
- name: Add PR to Project
4
-
5
- on:
6
- pull_request:
7
- types:
8
- - opened
9
- - reopened
10
-
11
- jobs:
12
- add-to-project:
13
- uses: adapt-security/.github/.github/workflows/new.yml@main
14
- secrets:
15
- PROJECTS_SECRET: ${{ secrets.PROJECTS_SECRET }}