@easyedu/js-lsm-api 1.96.0 → 1.98.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.
- package/.openapi-generator/FILES +14 -14
- package/README.md +18 -19
- package/dist/apis/CourseApi.d.ts +69 -87
- package/dist/apis/CourseApi.js +115 -164
- package/dist/apis/ReportingApi.d.ts +16 -16
- package/dist/apis/ReportingApi.js +29 -29
- package/dist/esm/apis/CourseApi.d.ts +69 -87
- package/dist/esm/apis/CourseApi.js +115 -164
- package/dist/esm/apis/ReportingApi.d.ts +16 -16
- package/dist/esm/apis/ReportingApi.js +29 -29
- package/dist/esm/models/GetCourseEnrollment.d.ts +12 -0
- package/dist/esm/models/GetCourseEnrollment.js +8 -0
- package/dist/esm/models/GetCourseEnrollmentListItem.d.ts +12 -0
- package/dist/esm/models/GetCourseEnrollmentListItem.js +8 -0
- package/dist/esm/models/GetCourseExport.d.ts +2 -2
- package/dist/esm/models/GetCourseExport.js +3 -3
- package/dist/esm/models/GetCourseVersion.d.ts +3 -3
- package/dist/esm/models/GetCourseVersion.js +4 -4
- package/dist/esm/models/GetCourseVersionReporting.d.ts +3 -3
- package/dist/esm/models/GetCourseVersionReporting.js +4 -4
- package/dist/esm/models/GetCourseVersionSection.d.ts +64 -0
- package/dist/esm/models/{GetCourseVersionModule.js → GetCourseVersionSection.js} +12 -12
- package/dist/esm/models/GetCourseVersionSectionChild.d.ts +54 -0
- package/dist/esm/models/GetCourseVersionSectionChild.js +56 -0
- package/dist/esm/models/GetCourseVersionSectionReporting.d.ts +99 -0
- package/dist/esm/models/{GetCourseVersionModuleReporting.js → GetCourseVersionSectionReporting.js} +11 -11
- package/dist/esm/models/GetPermission.d.ts +1 -1
- package/dist/esm/models/PostCourseExport.d.ts +2 -2
- package/dist/esm/models/PostCourseExport.js +3 -3
- package/dist/esm/models/PostCourseResume.d.ts +1 -1
- package/dist/esm/models/PostCourseResume.js +3 -3
- package/dist/esm/models/PostCourseVersionPublish.d.ts +10 -0
- package/dist/esm/models/PostCourseVersionPublish.js +2 -0
- package/dist/esm/models/PostCourseVersionSection.d.ts +57 -0
- package/dist/esm/models/{PostCourseVersionModule.js → PostCourseVersionSection.js} +10 -8
- package/dist/esm/models/PostCourseVersionSectionDuplicate.d.ts +44 -0
- package/dist/esm/models/PostCourseVersionSectionDuplicate.js +45 -0
- package/dist/esm/models/PutCourseEnrollment.d.ts +9 -0
- package/dist/esm/models/PutCourseEnrollment.js +2 -0
- package/dist/esm/models/PutCourseVersionItem.d.ts +1 -1
- package/dist/esm/models/PutCourseVersionItem.js +2 -2
- package/dist/esm/models/PutCourseVersionOutlineEntryMove.d.ts +58 -0
- package/dist/esm/models/PutCourseVersionOutlineEntryMove.js +60 -0
- package/dist/esm/models/PutCourseVersionSection.d.ts +45 -0
- package/dist/esm/models/{PutCourseVersionModule.js → PutCourseVersionSection.js} +8 -10
- package/dist/esm/models/PutRolePermissions.d.ts +1 -1
- package/dist/esm/models/index.d.ts +7 -7
- package/dist/esm/models/index.js +7 -7
- package/dist/models/GetCourseEnrollment.d.ts +12 -0
- package/dist/models/GetCourseEnrollment.js +8 -0
- package/dist/models/GetCourseEnrollmentListItem.d.ts +12 -0
- package/dist/models/GetCourseEnrollmentListItem.js +8 -0
- package/dist/models/GetCourseExport.d.ts +2 -2
- package/dist/models/GetCourseExport.js +3 -3
- package/dist/models/GetCourseVersion.d.ts +3 -3
- package/dist/models/GetCourseVersion.js +4 -4
- package/dist/models/GetCourseVersionReporting.d.ts +3 -3
- package/dist/models/GetCourseVersionReporting.js +4 -4
- package/dist/models/GetCourseVersionSection.d.ts +64 -0
- package/dist/models/{GetCourseVersionModule.js → GetCourseVersionSection.js} +17 -17
- package/dist/models/GetCourseVersionSectionChild.d.ts +54 -0
- package/dist/models/GetCourseVersionSectionChild.js +64 -0
- package/dist/models/GetCourseVersionSectionReporting.d.ts +99 -0
- package/dist/models/{GetCourseVersionModuleReporting.js → GetCourseVersionSectionReporting.js} +16 -16
- package/dist/models/GetPermission.d.ts +1 -1
- package/dist/models/PostCourseExport.d.ts +2 -2
- package/dist/models/PostCourseExport.js +3 -3
- package/dist/models/PostCourseResume.d.ts +1 -1
- package/dist/models/PostCourseResume.js +3 -3
- package/dist/models/PostCourseVersionPublish.d.ts +10 -0
- package/dist/models/PostCourseVersionPublish.js +2 -0
- package/dist/models/PostCourseVersionSection.d.ts +57 -0
- package/dist/models/{PostCourseVersionModule.js → PostCourseVersionSection.js} +15 -13
- package/dist/models/PostCourseVersionSectionDuplicate.d.ts +44 -0
- package/dist/models/PostCourseVersionSectionDuplicate.js +52 -0
- package/dist/models/PutCourseEnrollment.d.ts +9 -0
- package/dist/models/PutCourseEnrollment.js +2 -0
- package/dist/models/PutCourseVersionItem.d.ts +1 -1
- package/dist/models/PutCourseVersionItem.js +2 -2
- package/dist/models/PutCourseVersionOutlineEntryMove.d.ts +58 -0
- package/dist/models/PutCourseVersionOutlineEntryMove.js +68 -0
- package/dist/models/PutCourseVersionSection.d.ts +45 -0
- package/dist/models/{PutCourseVersionModule.js → PutCourseVersionSection.js} +13 -15
- package/dist/models/PutRolePermissions.d.ts +1 -1
- package/dist/models/index.d.ts +7 -7
- package/dist/models/index.js +7 -7
- package/docs/CourseApi.md +94 -166
- package/docs/GetCourseEnrollment.md +4 -0
- package/docs/GetCourseEnrollmentListItem.md +4 -0
- package/docs/GetCourseExport.md +2 -2
- package/docs/GetCourseVersion.md +2 -2
- package/docs/GetCourseVersionReporting.md +2 -2
- package/docs/{GetCourseVersionModule.md → GetCourseVersionSection.md} +6 -6
- package/docs/{PutCourseVersionItemReorder.md → GetCourseVersionSectionChild.md} +11 -6
- package/docs/{GetCourseVersionModuleReporting.md → GetCourseVersionSectionReporting.md} +6 -6
- package/docs/PostCourseExport.md +2 -2
- package/docs/PostCourseResume.md +2 -2
- package/docs/PostCourseVersionPublish.md +2 -0
- package/docs/{PostCourseVersionModule.md → PostCourseVersionSection.md} +6 -4
- package/docs/{PostCourseVersionModuleDuplicate.md → PostCourseVersionSectionDuplicate.md} +6 -4
- package/docs/PutCourseEnrollment.md +2 -0
- package/docs/PutCourseVersionItem.md +2 -2
- package/docs/{PutCourseVersionModuleReorder.md → PutCourseVersionOutlineEntryMove.md} +12 -6
- package/docs/{PutCourseVersionModule.md → PutCourseVersionSection.md} +4 -6
- package/docs/ReportingApi.md +22 -22
- package/package.json +1 -1
- package/src/apis/CourseApi.ts +160 -234
- package/src/apis/ReportingApi.ts +40 -40
- package/src/models/GetCourseEnrollment.ts +18 -0
- package/src/models/GetCourseEnrollmentListItem.ts +18 -0
- package/src/models/GetCourseExport.ts +5 -5
- package/src/models/GetCourseVersion.ts +12 -12
- package/src/models/GetCourseVersionReporting.ts +11 -11
- package/src/models/{GetCourseVersionModule.ts → GetCourseVersionSection.ts} +28 -28
- package/src/models/GetCourseVersionSectionChild.ts +108 -0
- package/src/models/{GetCourseVersionModuleReporting.ts → GetCourseVersionSectionReporting.ts} +26 -26
- package/src/models/GetPermission.ts +1 -1
- package/src/models/PostCourseExport.ts +5 -5
- package/src/models/PostCourseResume.ts +4 -4
- package/src/models/PostCourseVersionPublish.ts +12 -0
- package/src/models/{PostCourseVersionModule.ts → PostCourseVersionSection.ts} +22 -14
- package/src/models/PostCourseVersionSectionDuplicate.ts +81 -0
- package/src/models/PutCourseEnrollment.ts +11 -0
- package/src/models/PutCourseVersionItem.ts +3 -3
- package/src/models/PutCourseVersionOutlineEntryMove.ts +103 -0
- package/src/models/{PutCourseVersionModule.ts → PutCourseVersionSection.ts} +13 -21
- package/src/models/PutRolePermissions.ts +1 -1
- package/src/models/index.ts +7 -7
- package/dist/esm/models/GetCourseVersionModule.d.ts +0 -64
- package/dist/esm/models/GetCourseVersionModuleReporting.d.ts +0 -99
- package/dist/esm/models/PostCourseVersionModule.d.ts +0 -51
- package/dist/esm/models/PostCourseVersionModuleDuplicate.d.ts +0 -38
- package/dist/esm/models/PostCourseVersionModuleDuplicate.js +0 -43
- package/dist/esm/models/PutCourseVersionItemReorder.d.ts +0 -32
- package/dist/esm/models/PutCourseVersionItemReorder.js +0 -43
- package/dist/esm/models/PutCourseVersionModule.d.ts +0 -51
- package/dist/esm/models/PutCourseVersionModuleReorder.d.ts +0 -32
- package/dist/esm/models/PutCourseVersionModuleReorder.js +0 -43
- package/dist/models/GetCourseVersionModule.d.ts +0 -64
- package/dist/models/GetCourseVersionModuleReporting.d.ts +0 -99
- package/dist/models/PostCourseVersionModule.d.ts +0 -51
- package/dist/models/PostCourseVersionModuleDuplicate.d.ts +0 -38
- package/dist/models/PostCourseVersionModuleDuplicate.js +0 -50
- package/dist/models/PutCourseVersionItemReorder.d.ts +0 -32
- package/dist/models/PutCourseVersionItemReorder.js +0 -50
- package/dist/models/PutCourseVersionModule.d.ts +0 -51
- package/dist/models/PutCourseVersionModuleReorder.d.ts +0 -32
- package/dist/models/PutCourseVersionModuleReorder.js +0 -50
- package/src/models/PostCourseVersionModuleDuplicate.ts +0 -73
- package/src/models/PutCourseVersionItemReorder.ts +0 -66
- package/src/models/PutCourseVersionModuleReorder.ts +0 -66
|
@@ -16,7 +16,7 @@ Name | Type
|
|
|
16
16
|
`completionRatePercentage` | number
|
|
17
17
|
`avgScorePercentage` | number
|
|
18
18
|
`totalDurationSeconds` | number
|
|
19
|
-
`
|
|
19
|
+
`sections` | [Array<GetCourseVersionSectionReporting>](GetCourseVersionSectionReporting.md)
|
|
20
20
|
|
|
21
21
|
## Example
|
|
22
22
|
|
|
@@ -35,7 +35,7 @@ const example = {
|
|
|
35
35
|
"completionRatePercentage": null,
|
|
36
36
|
"avgScorePercentage": null,
|
|
37
37
|
"totalDurationSeconds": null,
|
|
38
|
-
"
|
|
38
|
+
"sections": null,
|
|
39
39
|
} satisfies GetCourseVersionReporting
|
|
40
40
|
|
|
41
41
|
console.log(example)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# GetCourseVersionSection
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
@@ -11,12 +11,12 @@ Name | Type
|
|
|
11
11
|
`description` | string
|
|
12
12
|
`descriptionRich` | [RichTextDocument](RichTextDocument.md)
|
|
13
13
|
`displayOrder` | number
|
|
14
|
-
`
|
|
14
|
+
`children` | [Array<GetCourseVersionSectionChild>](GetCourseVersionSectionChild.md)
|
|
15
15
|
|
|
16
16
|
## Example
|
|
17
17
|
|
|
18
18
|
```typescript
|
|
19
|
-
import type {
|
|
19
|
+
import type { GetCourseVersionSection } from '@easyedu/js-lsm-api'
|
|
20
20
|
|
|
21
21
|
// TODO: Update the object below with actual values
|
|
22
22
|
const example = {
|
|
@@ -25,8 +25,8 @@ const example = {
|
|
|
25
25
|
"description": null,
|
|
26
26
|
"descriptionRich": null,
|
|
27
27
|
"displayOrder": null,
|
|
28
|
-
"
|
|
29
|
-
} satisfies
|
|
28
|
+
"children": null,
|
|
29
|
+
} satisfies GetCourseVersionSection
|
|
30
30
|
|
|
31
31
|
console.log(example)
|
|
32
32
|
|
|
@@ -35,7 +35,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
35
35
|
console.log(exampleJSON)
|
|
36
36
|
|
|
37
37
|
// Parse the JSON string back to an object
|
|
38
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
38
|
+
const exampleParsed = JSON.parse(exampleJSON) as GetCourseVersionSection
|
|
39
39
|
console.log(exampleParsed)
|
|
40
40
|
```
|
|
41
41
|
|
|
@@ -1,22 +1,27 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# GetCourseVersionSectionChild
|
|
3
3
|
|
|
4
|
+
An ordered child entry containing exactly one section or course item.
|
|
4
5
|
|
|
5
6
|
## Properties
|
|
6
7
|
|
|
7
8
|
Name | Type
|
|
8
9
|
------------ | -------------
|
|
9
|
-
`
|
|
10
|
+
`kind` | string
|
|
11
|
+
`section` | [GetCourseVersionSection](GetCourseVersionSection.md)
|
|
12
|
+
`item` | [GetCourseVersionItem](GetCourseVersionItem.md)
|
|
10
13
|
|
|
11
14
|
## Example
|
|
12
15
|
|
|
13
16
|
```typescript
|
|
14
|
-
import type {
|
|
17
|
+
import type { GetCourseVersionSectionChild } from '@easyedu/js-lsm-api'
|
|
15
18
|
|
|
16
19
|
// TODO: Update the object below with actual values
|
|
17
20
|
const example = {
|
|
18
|
-
"
|
|
19
|
-
|
|
21
|
+
"kind": null,
|
|
22
|
+
"section": null,
|
|
23
|
+
"item": null,
|
|
24
|
+
} satisfies GetCourseVersionSectionChild
|
|
20
25
|
|
|
21
26
|
console.log(example)
|
|
22
27
|
|
|
@@ -25,7 +30,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
25
30
|
console.log(exampleJSON)
|
|
26
31
|
|
|
27
32
|
// Parse the JSON string back to an object
|
|
28
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
33
|
+
const exampleParsed = JSON.parse(exampleJSON) as GetCourseVersionSectionChild
|
|
29
34
|
console.log(exampleParsed)
|
|
30
35
|
```
|
|
31
36
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# GetCourseVersionSectionReporting
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
|
-
`
|
|
9
|
+
`sectionId` | string
|
|
10
10
|
`name` | string
|
|
11
11
|
`itemCount` | number
|
|
12
12
|
`requiredItemCount` | number
|
|
@@ -22,11 +22,11 @@ Name | Type
|
|
|
22
22
|
## Example
|
|
23
23
|
|
|
24
24
|
```typescript
|
|
25
|
-
import type {
|
|
25
|
+
import type { GetCourseVersionSectionReporting } from '@easyedu/js-lsm-api'
|
|
26
26
|
|
|
27
27
|
// TODO: Update the object below with actual values
|
|
28
28
|
const example = {
|
|
29
|
-
"
|
|
29
|
+
"sectionId": null,
|
|
30
30
|
"name": null,
|
|
31
31
|
"itemCount": null,
|
|
32
32
|
"requiredItemCount": null,
|
|
@@ -38,7 +38,7 @@ const example = {
|
|
|
38
38
|
"avgScorePercentage": null,
|
|
39
39
|
"totalDurationSeconds": null,
|
|
40
40
|
"items": null,
|
|
41
|
-
} satisfies
|
|
41
|
+
} satisfies GetCourseVersionSectionReporting
|
|
42
42
|
|
|
43
43
|
console.log(example)
|
|
44
44
|
|
|
@@ -47,7 +47,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
47
47
|
console.log(exampleJSON)
|
|
48
48
|
|
|
49
49
|
// Parse the JSON string back to an object
|
|
50
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
50
|
+
const exampleParsed = JSON.parse(exampleJSON) as GetCourseVersionSectionReporting
|
|
51
51
|
console.log(exampleParsed)
|
|
52
52
|
```
|
|
53
53
|
|
package/docs/PostCourseExport.md
CHANGED
|
@@ -9,7 +9,7 @@ Name | Type
|
|
|
9
9
|
------------ | -------------
|
|
10
10
|
`courseVersionId` | string
|
|
11
11
|
`exportType` | string
|
|
12
|
-
`
|
|
12
|
+
`sectionIds` | Array<string>
|
|
13
13
|
|
|
14
14
|
## Example
|
|
15
15
|
|
|
@@ -20,7 +20,7 @@ import type { PostCourseExport } from '@easyedu/js-lsm-api'
|
|
|
20
20
|
const example = {
|
|
21
21
|
"courseVersionId": null,
|
|
22
22
|
"exportType": null,
|
|
23
|
-
"
|
|
23
|
+
"sectionIds": null,
|
|
24
24
|
} satisfies PostCourseExport
|
|
25
25
|
|
|
26
26
|
console.log(example)
|
package/docs/PostCourseResume.md
CHANGED
|
@@ -9,7 +9,7 @@ Name | Type
|
|
|
9
9
|
------------ | -------------
|
|
10
10
|
`courseId` | string
|
|
11
11
|
`courseVersionId` | string
|
|
12
|
-
`
|
|
12
|
+
`sectionId` | string
|
|
13
13
|
`itemId` | string
|
|
14
14
|
`kind` | string
|
|
15
15
|
`sessionId` | string
|
|
@@ -27,7 +27,7 @@ import type { PostCourseResume } from '@easyedu/js-lsm-api'
|
|
|
27
27
|
const example = {
|
|
28
28
|
"courseId": null,
|
|
29
29
|
"courseVersionId": null,
|
|
30
|
-
"
|
|
30
|
+
"sectionId": null,
|
|
31
31
|
"itemId": null,
|
|
32
32
|
"kind": null,
|
|
33
33
|
"sessionId": null,
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`changeNotes` | string
|
|
10
|
+
`promoteActiveEnrollments` | boolean
|
|
10
11
|
|
|
11
12
|
## Example
|
|
12
13
|
|
|
@@ -16,6 +17,7 @@ import type { PostCourseVersionPublish } from '@easyedu/js-lsm-api'
|
|
|
16
17
|
// TODO: Update the object below with actual values
|
|
17
18
|
const example = {
|
|
18
19
|
"changeNotes": null,
|
|
20
|
+
"promoteActiveEnrollments": null,
|
|
19
21
|
} satisfies PostCourseVersionPublish
|
|
20
22
|
|
|
21
23
|
console.log(example)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# PostCourseVersionSection
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
@@ -9,20 +9,22 @@ Name | Type
|
|
|
9
9
|
`name` | string
|
|
10
10
|
`description` | string
|
|
11
11
|
`descriptionRich` | [RichTextDocument](RichTextDocument.md)
|
|
12
|
+
`parentSectionId` | string
|
|
12
13
|
`position` | number
|
|
13
14
|
|
|
14
15
|
## Example
|
|
15
16
|
|
|
16
17
|
```typescript
|
|
17
|
-
import type {
|
|
18
|
+
import type { PostCourseVersionSection } from '@easyedu/js-lsm-api'
|
|
18
19
|
|
|
19
20
|
// TODO: Update the object below with actual values
|
|
20
21
|
const example = {
|
|
21
22
|
"name": null,
|
|
22
23
|
"description": null,
|
|
23
24
|
"descriptionRich": null,
|
|
25
|
+
"parentSectionId": null,
|
|
24
26
|
"position": null,
|
|
25
|
-
} satisfies
|
|
27
|
+
} satisfies PostCourseVersionSection
|
|
26
28
|
|
|
27
29
|
console.log(example)
|
|
28
30
|
|
|
@@ -31,7 +33,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
31
33
|
console.log(exampleJSON)
|
|
32
34
|
|
|
33
35
|
// Parse the JSON string back to an object
|
|
34
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
36
|
+
const exampleParsed = JSON.parse(exampleJSON) as PostCourseVersionSection
|
|
35
37
|
console.log(exampleParsed)
|
|
36
38
|
```
|
|
37
39
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# PostCourseVersionSectionDuplicate
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
@@ -7,18 +7,20 @@
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`name` | string
|
|
10
|
+
`targetSectionId` | string
|
|
10
11
|
`position` | number
|
|
11
12
|
|
|
12
13
|
## Example
|
|
13
14
|
|
|
14
15
|
```typescript
|
|
15
|
-
import type {
|
|
16
|
+
import type { PostCourseVersionSectionDuplicate } from '@easyedu/js-lsm-api'
|
|
16
17
|
|
|
17
18
|
// TODO: Update the object below with actual values
|
|
18
19
|
const example = {
|
|
19
20
|
"name": null,
|
|
21
|
+
"targetSectionId": null,
|
|
20
22
|
"position": null,
|
|
21
|
-
} satisfies
|
|
23
|
+
} satisfies PostCourseVersionSectionDuplicate
|
|
22
24
|
|
|
23
25
|
console.log(example)
|
|
24
26
|
|
|
@@ -27,7 +29,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
27
29
|
console.log(exampleJSON)
|
|
28
30
|
|
|
29
31
|
// Parse the JSON string back to an object
|
|
30
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
32
|
+
const exampleParsed = JSON.parse(exampleJSON) as PostCourseVersionSectionDuplicate
|
|
31
33
|
console.log(exampleParsed)
|
|
32
34
|
```
|
|
33
35
|
|
|
@@ -11,6 +11,7 @@ Name | Type
|
|
|
11
11
|
`enrollmentDateEnd` | number
|
|
12
12
|
`extensionDays` | number
|
|
13
13
|
`notes` | string
|
|
14
|
+
`courseVersionId` | string
|
|
14
15
|
|
|
15
16
|
## Example
|
|
16
17
|
|
|
@@ -24,6 +25,7 @@ const example = {
|
|
|
24
25
|
"enrollmentDateEnd": null,
|
|
25
26
|
"extensionDays": null,
|
|
26
27
|
"notes": null,
|
|
28
|
+
"courseVersionId": null,
|
|
27
29
|
} satisfies PutCourseEnrollment
|
|
28
30
|
|
|
29
31
|
console.log(example)
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`libraryVersionId` | string
|
|
10
|
-
`
|
|
10
|
+
`targetSectionId` | string
|
|
11
11
|
`displayName` | string
|
|
12
12
|
`position` | number
|
|
13
13
|
`isVisible` | boolean
|
|
@@ -25,7 +25,7 @@ import type { PutCourseVersionItem } from '@easyedu/js-lsm-api'
|
|
|
25
25
|
// TODO: Update the object below with actual values
|
|
26
26
|
const example = {
|
|
27
27
|
"libraryVersionId": null,
|
|
28
|
-
"
|
|
28
|
+
"targetSectionId": null,
|
|
29
29
|
"displayName": null,
|
|
30
30
|
"position": null,
|
|
31
31
|
"isVisible": null,
|
|
@@ -1,22 +1,28 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# PutCourseVersionOutlineEntryMove
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
|
-
`
|
|
9
|
+
`entryKind` | string
|
|
10
|
+
`entryId` | string
|
|
11
|
+
`targetSectionId` | string
|
|
12
|
+
`position` | number
|
|
10
13
|
|
|
11
14
|
## Example
|
|
12
15
|
|
|
13
16
|
```typescript
|
|
14
|
-
import type {
|
|
17
|
+
import type { PutCourseVersionOutlineEntryMove } from '@easyedu/js-lsm-api'
|
|
15
18
|
|
|
16
19
|
// TODO: Update the object below with actual values
|
|
17
20
|
const example = {
|
|
18
|
-
"
|
|
19
|
-
|
|
21
|
+
"entryKind": null,
|
|
22
|
+
"entryId": null,
|
|
23
|
+
"targetSectionId": null,
|
|
24
|
+
"position": null,
|
|
25
|
+
} satisfies PutCourseVersionOutlineEntryMove
|
|
20
26
|
|
|
21
27
|
console.log(example)
|
|
22
28
|
|
|
@@ -25,7 +31,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
25
31
|
console.log(exampleJSON)
|
|
26
32
|
|
|
27
33
|
// Parse the JSON string back to an object
|
|
28
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
34
|
+
const exampleParsed = JSON.parse(exampleJSON) as PutCourseVersionOutlineEntryMove
|
|
29
35
|
console.log(exampleParsed)
|
|
30
36
|
```
|
|
31
37
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# PutCourseVersionSection
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
@@ -9,20 +9,18 @@ Name | Type
|
|
|
9
9
|
`name` | string
|
|
10
10
|
`description` | string
|
|
11
11
|
`descriptionRich` | [RichTextDocument](RichTextDocument.md)
|
|
12
|
-
`position` | number
|
|
13
12
|
|
|
14
13
|
## Example
|
|
15
14
|
|
|
16
15
|
```typescript
|
|
17
|
-
import type {
|
|
16
|
+
import type { PutCourseVersionSection } from '@easyedu/js-lsm-api'
|
|
18
17
|
|
|
19
18
|
// TODO: Update the object below with actual values
|
|
20
19
|
const example = {
|
|
21
20
|
"name": null,
|
|
22
21
|
"description": null,
|
|
23
22
|
"descriptionRich": null,
|
|
24
|
-
|
|
25
|
-
} satisfies PutCourseVersionModule
|
|
23
|
+
} satisfies PutCourseVersionSection
|
|
26
24
|
|
|
27
25
|
console.log(example)
|
|
28
26
|
|
|
@@ -31,7 +29,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
31
29
|
console.log(exampleJSON)
|
|
32
30
|
|
|
33
31
|
// Parse the JSON string back to an object
|
|
34
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
32
|
+
const exampleParsed = JSON.parse(exampleJSON) as PutCourseVersionSection
|
|
35
33
|
console.log(exampleParsed)
|
|
36
34
|
```
|
|
37
35
|
|
package/docs/ReportingApi.md
CHANGED
|
@@ -4,16 +4,16 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
|
|
|
4
4
|
|
|
5
5
|
| Method | HTTP request | Description |
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
-
| [**getCourseVersionModuleReporting**](ReportingApi.md#getcourseversionmodulereporting) | **GET** /courses/{courseId}/versions/{courseVersionId}/modules/{moduleId}/reporting | Get instructor reporting for one module in an explicit course version |
|
|
8
7
|
| [**getCourseVersionReporting**](ReportingApi.md#getcourseversionreporting) | **GET** /courses/{courseId}/versions/{courseVersionId}/reporting | Get instructor reporting for one explicit course version |
|
|
8
|
+
| [**getCourseVersionSectionReporting**](ReportingApi.md#getcourseversionsectionreporting) | **GET** /courses/{courseId}/versions/{courseVersionId}/sections/{sectionId}/reporting | Get instructor reporting for one section and its descendants in an explicit course version |
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
##
|
|
12
|
+
## getCourseVersionReporting
|
|
13
13
|
|
|
14
|
-
>
|
|
14
|
+
> GetCourseVersionReporting getCourseVersionReporting(courseId, courseVersionId)
|
|
15
15
|
|
|
16
|
-
Get instructor reporting for one
|
|
16
|
+
Get instructor reporting for one explicit course version
|
|
17
17
|
|
|
18
18
|
### Example
|
|
19
19
|
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
Configuration,
|
|
23
23
|
ReportingApi,
|
|
24
24
|
} from '@easyedu/js-lsm-api';
|
|
25
|
-
import type {
|
|
25
|
+
import type { GetCourseVersionReportingRequest } from '@easyedu/js-lsm-api';
|
|
26
26
|
|
|
27
27
|
async function example() {
|
|
28
28
|
console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
|
|
@@ -33,12 +33,10 @@ async function example() {
|
|
|
33
33
|
courseId: courseId_example,
|
|
34
34
|
// string
|
|
35
35
|
courseVersionId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
36
|
-
|
|
37
|
-
moduleId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
38
|
-
} satisfies GetCourseVersionModuleReportingRequest;
|
|
36
|
+
} satisfies GetCourseVersionReportingRequest;
|
|
39
37
|
|
|
40
38
|
try {
|
|
41
|
-
const data = await api.
|
|
39
|
+
const data = await api.getCourseVersionReporting(body);
|
|
42
40
|
console.log(data);
|
|
43
41
|
} catch (error) {
|
|
44
42
|
console.error(error);
|
|
@@ -56,11 +54,10 @@ example().catch(console.error);
|
|
|
56
54
|
|------------- | ------------- | ------------- | -------------|
|
|
57
55
|
| **courseId** | `string` | | [Defaults to `undefined`] |
|
|
58
56
|
| **courseVersionId** | `string` | | [Defaults to `undefined`] |
|
|
59
|
-
| **moduleId** | `string` | | [Defaults to `undefined`] |
|
|
60
57
|
|
|
61
58
|
### Return type
|
|
62
59
|
|
|
63
|
-
[**
|
|
60
|
+
[**GetCourseVersionReporting**](GetCourseVersionReporting.md)
|
|
64
61
|
|
|
65
62
|
### Authorization
|
|
66
63
|
|
|
@@ -75,17 +72,17 @@ No authorization required
|
|
|
75
72
|
### HTTP response details
|
|
76
73
|
| Status code | Description | Response headers |
|
|
77
74
|
|-------------|-------------|------------------|
|
|
78
|
-
| **200** | Version-pinned
|
|
79
|
-
| **404** | Course version
|
|
75
|
+
| **200** | Version-pinned course reporting | - |
|
|
76
|
+
| **404** | Course version not found in the selected portal | - |
|
|
80
77
|
|
|
81
78
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
82
79
|
|
|
83
80
|
|
|
84
|
-
##
|
|
81
|
+
## getCourseVersionSectionReporting
|
|
85
82
|
|
|
86
|
-
>
|
|
83
|
+
> GetCourseVersionSectionReporting getCourseVersionSectionReporting(courseId, courseVersionId, sectionId)
|
|
87
84
|
|
|
88
|
-
Get instructor reporting for one explicit course version
|
|
85
|
+
Get instructor reporting for one section and its descendants in an explicit course version
|
|
89
86
|
|
|
90
87
|
### Example
|
|
91
88
|
|
|
@@ -94,7 +91,7 @@ import {
|
|
|
94
91
|
Configuration,
|
|
95
92
|
ReportingApi,
|
|
96
93
|
} from '@easyedu/js-lsm-api';
|
|
97
|
-
import type {
|
|
94
|
+
import type { GetCourseVersionSectionReportingRequest } from '@easyedu/js-lsm-api';
|
|
98
95
|
|
|
99
96
|
async function example() {
|
|
100
97
|
console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
|
|
@@ -105,10 +102,12 @@ async function example() {
|
|
|
105
102
|
courseId: courseId_example,
|
|
106
103
|
// string
|
|
107
104
|
courseVersionId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
108
|
-
|
|
105
|
+
// string
|
|
106
|
+
sectionId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
107
|
+
} satisfies GetCourseVersionSectionReportingRequest;
|
|
109
108
|
|
|
110
109
|
try {
|
|
111
|
-
const data = await api.
|
|
110
|
+
const data = await api.getCourseVersionSectionReporting(body);
|
|
112
111
|
console.log(data);
|
|
113
112
|
} catch (error) {
|
|
114
113
|
console.error(error);
|
|
@@ -126,10 +125,11 @@ example().catch(console.error);
|
|
|
126
125
|
|------------- | ------------- | ------------- | -------------|
|
|
127
126
|
| **courseId** | `string` | | [Defaults to `undefined`] |
|
|
128
127
|
| **courseVersionId** | `string` | | [Defaults to `undefined`] |
|
|
128
|
+
| **sectionId** | `string` | | [Defaults to `undefined`] |
|
|
129
129
|
|
|
130
130
|
### Return type
|
|
131
131
|
|
|
132
|
-
[**
|
|
132
|
+
[**GetCourseVersionSectionReporting**](GetCourseVersionSectionReporting.md)
|
|
133
133
|
|
|
134
134
|
### Authorization
|
|
135
135
|
|
|
@@ -144,8 +144,8 @@ No authorization required
|
|
|
144
144
|
### HTTP response details
|
|
145
145
|
| Status code | Description | Response headers |
|
|
146
146
|
|-------------|-------------|------------------|
|
|
147
|
-
| **200** | Version-pinned
|
|
148
|
-
| **404** | Course version not found in the selected portal | - |
|
|
147
|
+
| **200** | Version-pinned section and descendant-item reporting | - |
|
|
148
|
+
| **404** | Course version section not found in the selected portal | - |
|
|
149
149
|
|
|
150
150
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
151
151
|
|