adapt-authoring-content 2.1.8 → 3.0.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.
@@ -3,8 +3,8 @@
3
3
  "data": {
4
4
  "parentId": "_id of the parent item"
5
5
  },
6
- "description": "Specified item is not a valid content item Invalid parent itemparent",
7
- "statusCode": 500
6
+ "description": "Specified item is not a valid content parent",
7
+ "statusCode": 400
8
8
  },
9
9
  "DUPL_FRIENDLY_ID": {
10
10
  "data": {
@@ -14,13 +14,12 @@
14
14
  "description": "A content item with this _friendlyId already exists in this course",
15
15
  "statusCode": 409
16
16
  },
17
- "UNKNOWN_SCHEMA_NAME": {
17
+ "RESOURCE_IN_USE": {
18
18
  "data": {
19
- "_id": "The database _id",
20
- "_type": "The _type value",
21
- "_component": "The _component value"
19
+ "type": "Type of resource",
20
+ "courses": "Courses using the resource"
22
21
  },
23
- "description": "Failed to determine schema name",
24
- "statusCode": 500
22
+ "description": "Resource is currently being used in courses",
23
+ "statusCode": 400
25
24
  }
26
25
  }
package/index.js CHANGED
@@ -3,3 +3,4 @@
3
3
  * @namespace content
4
4
  */
5
5
  export { default } from './lib/ContentModule.js'
6
+ export { default as ContentTree } from './lib/ContentTree.js'