@easyedu/js-lsm-api 1.108.0 → 1.110.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 +16 -0
- package/README.md +19 -2
- package/dist/apis/ContentLibraryApi.d.ts +180 -0
- package/dist/apis/ContentLibraryApi.js +425 -1
- package/dist/apis/ContentLibraryQuizApi.d.ts +1 -0
- package/dist/apis/ContentLibraryQuizApi.js +3 -0
- package/dist/apis/CourseApi.d.ts +2 -2
- package/dist/apis/CourseApi.js +2 -2
- package/dist/apis/QuestionApi.d.ts +1 -12
- package/dist/apis/QuestionApi.js +3 -17
- package/dist/esm/apis/ContentLibraryApi.d.ts +180 -0
- package/dist/esm/apis/ContentLibraryApi.js +424 -0
- package/dist/esm/apis/ContentLibraryQuizApi.d.ts +1 -0
- package/dist/esm/apis/ContentLibraryQuizApi.js +3 -0
- package/dist/esm/apis/CourseApi.d.ts +2 -2
- package/dist/esm/apis/CourseApi.js +2 -2
- package/dist/esm/apis/QuestionApi.d.ts +1 -12
- package/dist/esm/apis/QuestionApi.js +2 -16
- package/dist/esm/models/ContentLibraryTag.d.ts +110 -0
- package/dist/esm/models/ContentLibraryTag.js +89 -0
- package/dist/esm/models/ContentLibraryTagItem.d.ts +85 -0
- package/dist/esm/models/ContentLibraryTagItem.js +77 -0
- package/dist/esm/models/CourseShareAcceptError.d.ts +54 -0
- package/dist/esm/models/CourseShareAcceptError.js +62 -0
- package/dist/esm/models/GetContentLibraryTagItemList.d.ts +57 -0
- package/dist/esm/models/GetContentLibraryTagItemList.js +60 -0
- package/dist/esm/models/GetContentLibraryTagList.d.ts +57 -0
- package/dist/esm/models/GetContentLibraryTagList.js +60 -0
- package/dist/esm/models/GetLibraryQuiz.d.ts +7 -0
- package/dist/esm/models/GetLibraryQuiz.js +5 -0
- package/dist/esm/models/GetQuestion.d.ts +4 -24
- package/dist/esm/models/GetQuestion.js +3 -18
- package/dist/esm/models/GetQuestionListFilters.d.ts +3 -24
- package/dist/esm/models/GetQuestionListFilters.js +2 -14
- package/dist/esm/models/GetResource.d.ts +7 -0
- package/dist/esm/models/GetResource.js +5 -0
- package/dist/esm/models/LibraryQuizCriteriaPreviewQuestion.d.ts +0 -21
- package/dist/esm/models/LibraryQuizCriteriaPreviewQuestion.js +0 -16
- package/dist/esm/models/LibraryQuizCriterion.d.ts +0 -21
- package/dist/esm/models/LibraryQuizCriterion.js +0 -12
- package/dist/esm/models/PostContentLibraryTag.d.ts +32 -0
- package/dist/esm/models/PostContentLibraryTag.js +43 -0
- package/dist/esm/models/PostContentLibraryTagMerge.d.ts +32 -0
- package/dist/esm/models/PostContentLibraryTagMerge.js +43 -0
- package/dist/esm/models/PostLibraryQuiz.d.ts +6 -0
- package/dist/esm/models/PostLibraryQuiz.js +2 -0
- package/dist/esm/models/PostQuestion.d.ts +0 -21
- package/dist/esm/models/PostQuestion.js +0 -16
- package/dist/esm/models/PostResource.d.ts +6 -0
- package/dist/esm/models/PostResource.js +2 -0
- package/dist/esm/models/PutContentLibraryTag.d.ts +32 -0
- package/dist/esm/models/PutContentLibraryTag.js +43 -0
- package/dist/esm/models/PutLibraryQuiz.d.ts +6 -0
- package/dist/esm/models/PutLibraryQuiz.js +2 -0
- package/dist/esm/models/PutQuestion.d.ts +0 -21
- package/dist/esm/models/PutQuestion.js +0 -12
- package/dist/esm/models/PutResource.d.ts +6 -0
- package/dist/esm/models/PutResource.js +2 -0
- package/dist/esm/models/index.d.ts +8 -0
- package/dist/esm/models/index.js +8 -0
- package/dist/models/ContentLibraryTag.d.ts +110 -0
- package/dist/models/ContentLibraryTag.js +96 -0
- package/dist/models/ContentLibraryTagItem.d.ts +85 -0
- package/dist/models/ContentLibraryTagItem.js +85 -0
- package/dist/models/CourseShareAcceptError.d.ts +54 -0
- package/dist/models/CourseShareAcceptError.js +70 -0
- package/dist/models/GetContentLibraryTagItemList.d.ts +57 -0
- package/dist/models/GetContentLibraryTagItemList.js +67 -0
- package/dist/models/GetContentLibraryTagList.d.ts +57 -0
- package/dist/models/GetContentLibraryTagList.js +67 -0
- package/dist/models/GetLibraryQuiz.d.ts +7 -0
- package/dist/models/GetLibraryQuiz.js +5 -0
- package/dist/models/GetQuestion.d.ts +4 -24
- package/dist/models/GetQuestion.js +4 -19
- package/dist/models/GetQuestionListFilters.d.ts +3 -24
- package/dist/models/GetQuestionListFilters.js +3 -15
- package/dist/models/GetResource.d.ts +7 -0
- package/dist/models/GetResource.js +5 -0
- package/dist/models/LibraryQuizCriteriaPreviewQuestion.d.ts +0 -21
- package/dist/models/LibraryQuizCriteriaPreviewQuestion.js +1 -17
- package/dist/models/LibraryQuizCriterion.d.ts +0 -21
- package/dist/models/LibraryQuizCriterion.js +1 -13
- package/dist/models/PostContentLibraryTag.d.ts +32 -0
- package/dist/models/PostContentLibraryTag.js +50 -0
- package/dist/models/PostContentLibraryTagMerge.d.ts +32 -0
- package/dist/models/PostContentLibraryTagMerge.js +50 -0
- package/dist/models/PostLibraryQuiz.d.ts +6 -0
- package/dist/models/PostLibraryQuiz.js +2 -0
- package/dist/models/PostQuestion.d.ts +0 -21
- package/dist/models/PostQuestion.js +1 -17
- package/dist/models/PostResource.d.ts +6 -0
- package/dist/models/PostResource.js +2 -0
- package/dist/models/PutContentLibraryTag.d.ts +32 -0
- package/dist/models/PutContentLibraryTag.js +50 -0
- package/dist/models/PutLibraryQuiz.d.ts +6 -0
- package/dist/models/PutLibraryQuiz.js +2 -0
- package/dist/models/PutQuestion.d.ts +0 -21
- package/dist/models/PutQuestion.js +1 -13
- package/dist/models/PutResource.d.ts +6 -0
- package/dist/models/PutResource.js +2 -0
- package/dist/models/index.d.ts +8 -0
- package/dist/models/index.js +8 -0
- package/docs/ContentLibraryApi.md +732 -90
- package/docs/ContentLibraryQuizApi.md +4 -1
- package/docs/ContentLibraryTag.md +60 -0
- package/docs/ContentLibraryTagItem.md +48 -0
- package/docs/CourseApi.md +1 -1
- package/docs/CourseShareAcceptError.md +37 -0
- package/docs/CourseShareApi.md +9 -2
- package/docs/GetContentLibraryTagItemList.md +42 -0
- package/docs/GetContentLibraryTagList.md +42 -0
- package/docs/GetLibraryQuiz.md +2 -0
- package/docs/GetQuestion.md +1 -5
- package/docs/GetQuestionListFilters.md +2 -6
- package/docs/GetResource.md +2 -0
- package/docs/LibraryQuizCriteriaPreviewQuestion.md +0 -4
- package/docs/LibraryQuizCriterion.md +0 -4
- package/docs/PostContentLibraryTag.md +34 -0
- package/docs/PostContentLibraryTagMerge.md +34 -0
- package/docs/PostLibraryQuiz.md +2 -0
- package/docs/PostQuestion.md +0 -4
- package/docs/PostResource.md +2 -0
- package/docs/PutContentLibraryTag.md +34 -0
- package/docs/PutLibraryQuiz.md +2 -0
- package/docs/PutQuestion.md +0 -4
- package/docs/PutResource.md +2 -0
- package/docs/QuestionApi.md +4 -10
- package/package.json +1 -1
- package/src/apis/ContentLibraryApi.ts +576 -0
- package/src/apis/ContentLibraryQuizApi.ts +5 -0
- package/src/apis/CourseApi.ts +2 -2
- package/src/apis/CourseShareApi.ts +5 -0
- package/src/apis/QuestionApi.ts +3 -22
- package/src/models/ContentLibraryTag.ts +180 -0
- package/src/models/ContentLibraryTagItem.ts +154 -0
- package/src/models/CourseShareAcceptError.ts +94 -0
- package/src/models/GetContentLibraryTagItemList.ts +110 -0
- package/src/models/GetContentLibraryTagList.ts +110 -0
- package/src/models/GetLibraryQuiz.ts +16 -0
- package/src/models/GetQuestion.ts +12 -33
- package/src/models/GetQuestionListFilters.ts +5 -31
- package/src/models/GetResource.ts +16 -0
- package/src/models/LibraryQuizCriteriaPreviewQuestion.ts +0 -28
- package/src/models/LibraryQuizCriterion.ts +0 -26
- package/src/models/PostContentLibraryTag.ts +66 -0
- package/src/models/PostContentLibraryTagMerge.ts +66 -0
- package/src/models/PostLibraryQuiz.ts +8 -0
- package/src/models/PostQuestion.ts +0 -28
- package/src/models/PostResource.ts +8 -0
- package/src/models/PutContentLibraryTag.ts +66 -0
- package/src/models/PutLibraryQuiz.ts +8 -0
- package/src/models/PutQuestion.ts +0 -26
- package/src/models/PutResource.ts +8 -0
- package/src/models/index.ts +8 -0
|
@@ -313,7 +313,7 @@ No authorization required
|
|
|
313
313
|
|
|
314
314
|
## getLibraryQuizList
|
|
315
315
|
|
|
316
|
-
> GetLibraryQuizList getLibraryQuizList(search, includeArchived, page, pageSize)
|
|
316
|
+
> GetLibraryQuizList getLibraryQuizList(search, includeArchived, tagId, page, pageSize)
|
|
317
317
|
|
|
318
318
|
List reusable quizzes
|
|
319
319
|
|
|
@@ -335,6 +335,8 @@ async function example() {
|
|
|
335
335
|
search: search_example,
|
|
336
336
|
// boolean (optional)
|
|
337
337
|
includeArchived: true,
|
|
338
|
+
// string (optional)
|
|
339
|
+
tagId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
338
340
|
// number (optional)
|
|
339
341
|
page: 56,
|
|
340
342
|
// number (optional)
|
|
@@ -360,6 +362,7 @@ example().catch(console.error);
|
|
|
360
362
|
|------------- | ------------- | ------------- | -------------|
|
|
361
363
|
| **search** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
362
364
|
| **includeArchived** | `boolean` | | [Optional] [Defaults to `false`] |
|
|
365
|
+
| **tagId** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
363
366
|
| **page** | `number` | | [Optional] [Defaults to `1`] |
|
|
364
367
|
| **pageSize** | `number` | | [Optional] [Defaults to `20`] |
|
|
365
368
|
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
|
|
2
|
+
# ContentLibraryTag
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | string
|
|
10
|
+
`name` | string
|
|
11
|
+
`key` | string
|
|
12
|
+
`value` | string
|
|
13
|
+
`archivedAt` | number
|
|
14
|
+
`mergedIntoTagId` | string
|
|
15
|
+
`totalItemCount` | number
|
|
16
|
+
`activeItemCount` | number
|
|
17
|
+
`archivedItemCount` | number
|
|
18
|
+
`resourceCount` | number
|
|
19
|
+
`quizCount` | number
|
|
20
|
+
`questionCount` | number
|
|
21
|
+
`createdAt` | number
|
|
22
|
+
`updatedAt` | number
|
|
23
|
+
|
|
24
|
+
## Example
|
|
25
|
+
|
|
26
|
+
```typescript
|
|
27
|
+
import type { ContentLibraryTag } from '@easyedu/js-lsm-api'
|
|
28
|
+
|
|
29
|
+
// TODO: Update the object below with actual values
|
|
30
|
+
const example = {
|
|
31
|
+
"id": null,
|
|
32
|
+
"name": null,
|
|
33
|
+
"key": null,
|
|
34
|
+
"value": null,
|
|
35
|
+
"archivedAt": null,
|
|
36
|
+
"mergedIntoTagId": null,
|
|
37
|
+
"totalItemCount": null,
|
|
38
|
+
"activeItemCount": null,
|
|
39
|
+
"archivedItemCount": null,
|
|
40
|
+
"resourceCount": null,
|
|
41
|
+
"quizCount": null,
|
|
42
|
+
"questionCount": null,
|
|
43
|
+
"createdAt": null,
|
|
44
|
+
"updatedAt": null,
|
|
45
|
+
} satisfies ContentLibraryTag
|
|
46
|
+
|
|
47
|
+
console.log(example)
|
|
48
|
+
|
|
49
|
+
// Convert the instance to a JSON string
|
|
50
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
51
|
+
console.log(exampleJSON)
|
|
52
|
+
|
|
53
|
+
// Parse the JSON string back to an object
|
|
54
|
+
const exampleParsed = JSON.parse(exampleJSON) as ContentLibraryTag
|
|
55
|
+
console.log(exampleParsed)
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
59
|
+
|
|
60
|
+
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
|
|
2
|
+
# ContentLibraryTagItem
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | string
|
|
10
|
+
`kind` | string
|
|
11
|
+
`name` | string
|
|
12
|
+
`description` | string
|
|
13
|
+
`resourceType` | [ResourceType](ResourceType.md)
|
|
14
|
+
`tags` | [Array<ContentLibraryTag>](ContentLibraryTag.md)
|
|
15
|
+
`updatedAt` | number
|
|
16
|
+
`archivedAt` | number
|
|
17
|
+
|
|
18
|
+
## Example
|
|
19
|
+
|
|
20
|
+
```typescript
|
|
21
|
+
import type { ContentLibraryTagItem } from '@easyedu/js-lsm-api'
|
|
22
|
+
|
|
23
|
+
// TODO: Update the object below with actual values
|
|
24
|
+
const example = {
|
|
25
|
+
"id": null,
|
|
26
|
+
"kind": null,
|
|
27
|
+
"name": null,
|
|
28
|
+
"description": null,
|
|
29
|
+
"resourceType": null,
|
|
30
|
+
"tags": null,
|
|
31
|
+
"updatedAt": null,
|
|
32
|
+
"archivedAt": null,
|
|
33
|
+
} satisfies ContentLibraryTagItem
|
|
34
|
+
|
|
35
|
+
console.log(example)
|
|
36
|
+
|
|
37
|
+
// Convert the instance to a JSON string
|
|
38
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
39
|
+
console.log(exampleJSON)
|
|
40
|
+
|
|
41
|
+
// Parse the JSON string back to an object
|
|
42
|
+
const exampleParsed = JSON.parse(exampleJSON) as ContentLibraryTagItem
|
|
43
|
+
console.log(exampleParsed)
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
47
|
+
|
|
48
|
+
|
package/docs/CourseApi.md
CHANGED
|
@@ -1812,7 +1812,7 @@ No authorization required
|
|
|
1812
1812
|
|
|
1813
1813
|
Create a new SCORM export for a course
|
|
1814
1814
|
|
|
1815
|
-
Enqueues a job to generate a SCORM export package for the course. Returns immediately with PENDING status. **NOTES:** - This endpoint enqueues a background job to generate the SCORM package - Poll GET /courses/{courseId}/exports/{exportId} to check status - Download URL will be available when status becomes COMPLETED
|
|
1815
|
+
Enqueues a job to generate a SCORM export package for the course. Returns immediately with PENDING status. **NOTES:** - This endpoint enqueues a background job to generate the SCORM package - Visible resource placements in the selected sections are exported - Reusable quiz placements are skipped and do not block the export - Poll GET /courses/{courseId}/exports/{exportId} to check status - Download URL will be available when status becomes COMPLETED
|
|
1816
1816
|
|
|
1817
1817
|
### Example
|
|
1818
1818
|
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
|
|
2
|
+
# CourseShareAcceptError
|
|
3
|
+
|
|
4
|
+
A safe, actionable error returned when a course-share offer cannot be accepted.
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
Name | Type
|
|
9
|
+
------------ | -------------
|
|
10
|
+
`code` | string
|
|
11
|
+
`message` | string
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import type { CourseShareAcceptError } from '@easyedu/js-lsm-api'
|
|
17
|
+
|
|
18
|
+
// TODO: Update the object below with actual values
|
|
19
|
+
const example = {
|
|
20
|
+
"code": null,
|
|
21
|
+
"message": null,
|
|
22
|
+
} satisfies CourseShareAcceptError
|
|
23
|
+
|
|
24
|
+
console.log(example)
|
|
25
|
+
|
|
26
|
+
// Convert the instance to a JSON string
|
|
27
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
28
|
+
console.log(exampleJSON)
|
|
29
|
+
|
|
30
|
+
// Parse the JSON string back to an object
|
|
31
|
+
const exampleParsed = JSON.parse(exampleJSON) as CourseShareAcceptError
|
|
32
|
+
console.log(exampleParsed)
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
36
|
+
|
|
37
|
+
|
package/docs/CourseShareApi.md
CHANGED
|
@@ -499,15 +499,19 @@ No authorization required
|
|
|
499
499
|
### HTTP request headers
|
|
500
500
|
|
|
501
501
|
- **Content-Type**: Not defined
|
|
502
|
-
- **Accept**:
|
|
502
|
+
- **Accept**: `application/json`
|
|
503
503
|
|
|
504
504
|
|
|
505
505
|
### HTTP response details
|
|
506
506
|
| Status code | Description | Response headers |
|
|
507
507
|
|-------------|-------------|------------------|
|
|
508
508
|
| **200** | Accepted, course cloned | - |
|
|
509
|
+
| **400** | Invalid portal or request | - |
|
|
509
510
|
| **403** | Share not addressed to your portal, or mode not allowed | - |
|
|
510
511
|
| **404** | Share not found | - |
|
|
512
|
+
| **409** | Share or source course is not in a cloneable state | - |
|
|
513
|
+
| **503** | Course storage could not be copied | - |
|
|
514
|
+
| **500** | Acceptance failed unexpectedly | - |
|
|
511
515
|
|
|
512
516
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
513
517
|
|
|
@@ -566,15 +570,18 @@ No authorization required
|
|
|
566
570
|
### HTTP request headers
|
|
567
571
|
|
|
568
572
|
- **Content-Type**: Not defined
|
|
569
|
-
- **Accept**:
|
|
573
|
+
- **Accept**: `application/json`
|
|
570
574
|
|
|
571
575
|
|
|
572
576
|
### HTTP response details
|
|
573
577
|
| Status code | Description | Response headers |
|
|
574
578
|
|-------------|-------------|------------------|
|
|
575
579
|
| **200** | Accepted | - |
|
|
580
|
+
| **400** | Invalid portal or request | - |
|
|
576
581
|
| **403** | Share not addressed to your portal, or mode not allowed | - |
|
|
577
582
|
| **404** | Share not found | - |
|
|
583
|
+
| **409** | Share is no longer available for mirror acceptance | - |
|
|
584
|
+
| **500** | Acceptance failed unexpectedly | - |
|
|
578
585
|
|
|
579
586
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
580
587
|
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
|
|
2
|
+
# GetContentLibraryTagItemList
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`page` | number
|
|
10
|
+
`pageSize` | number
|
|
11
|
+
`totalPages` | number
|
|
12
|
+
`totalItems` | number
|
|
13
|
+
`items` | [Array<ContentLibraryTagItem>](ContentLibraryTagItem.md)
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import type { GetContentLibraryTagItemList } from '@easyedu/js-lsm-api'
|
|
19
|
+
|
|
20
|
+
// TODO: Update the object below with actual values
|
|
21
|
+
const example = {
|
|
22
|
+
"page": null,
|
|
23
|
+
"pageSize": null,
|
|
24
|
+
"totalPages": null,
|
|
25
|
+
"totalItems": null,
|
|
26
|
+
"items": null,
|
|
27
|
+
} satisfies GetContentLibraryTagItemList
|
|
28
|
+
|
|
29
|
+
console.log(example)
|
|
30
|
+
|
|
31
|
+
// Convert the instance to a JSON string
|
|
32
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
33
|
+
console.log(exampleJSON)
|
|
34
|
+
|
|
35
|
+
// Parse the JSON string back to an object
|
|
36
|
+
const exampleParsed = JSON.parse(exampleJSON) as GetContentLibraryTagItemList
|
|
37
|
+
console.log(exampleParsed)
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
41
|
+
|
|
42
|
+
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
|
|
2
|
+
# GetContentLibraryTagList
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`page` | number
|
|
10
|
+
`pageSize` | number
|
|
11
|
+
`totalPages` | number
|
|
12
|
+
`totalItems` | number
|
|
13
|
+
`items` | [Array<ContentLibraryTag>](ContentLibraryTag.md)
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import type { GetContentLibraryTagList } from '@easyedu/js-lsm-api'
|
|
19
|
+
|
|
20
|
+
// TODO: Update the object below with actual values
|
|
21
|
+
const example = {
|
|
22
|
+
"page": null,
|
|
23
|
+
"pageSize": null,
|
|
24
|
+
"totalPages": null,
|
|
25
|
+
"totalItems": null,
|
|
26
|
+
"items": null,
|
|
27
|
+
} satisfies GetContentLibraryTagList
|
|
28
|
+
|
|
29
|
+
console.log(example)
|
|
30
|
+
|
|
31
|
+
// Convert the instance to a JSON string
|
|
32
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
33
|
+
console.log(exampleJSON)
|
|
34
|
+
|
|
35
|
+
// Parse the JSON string back to an object
|
|
36
|
+
const exampleParsed = JSON.parse(exampleJSON) as GetContentLibraryTagList
|
|
37
|
+
console.log(exampleParsed)
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
41
|
+
|
|
42
|
+
|
package/docs/GetLibraryQuiz.md
CHANGED
|
@@ -11,6 +11,7 @@ Name | Type
|
|
|
11
11
|
`name` | string
|
|
12
12
|
`description` | string
|
|
13
13
|
`ownerId` | string
|
|
14
|
+
`tags` | [Array<ContentLibraryTag>](ContentLibraryTag.md)
|
|
14
15
|
`latestPublishedVersion` | [GetLibraryQuizVersion](GetLibraryQuizVersion.md)
|
|
15
16
|
`draftVersion` | [GetLibraryQuizVersion](GetLibraryQuizVersion.md)
|
|
16
17
|
`versions` | [Array<GetLibraryQuizVersion>](GetLibraryQuizVersion.md)
|
|
@@ -34,6 +35,7 @@ const example = {
|
|
|
34
35
|
"name": null,
|
|
35
36
|
"description": null,
|
|
36
37
|
"ownerId": null,
|
|
38
|
+
"tags": null,
|
|
37
39
|
"latestPublishedVersion": null,
|
|
38
40
|
"draftVersion": null,
|
|
39
41
|
"versions": null,
|
package/docs/GetQuestion.md
CHANGED
|
@@ -12,9 +12,7 @@ Name | Type
|
|
|
12
12
|
`answerChoices` | [Array<GetQuestionAnswerChoicesInner>](GetQuestionAnswerChoicesInner.md)
|
|
13
13
|
`correctAnswer` | string
|
|
14
14
|
`explanation` | [RichTextDocument](RichTextDocument.md)
|
|
15
|
-
`
|
|
16
|
-
`difficultyLevel` | string
|
|
17
|
-
`tags` | Array<string>
|
|
15
|
+
`tags` | [Array<ContentLibraryTag>](ContentLibraryTag.md)
|
|
18
16
|
`version` | string
|
|
19
17
|
`versionNumber` | number
|
|
20
18
|
`createdDate` | Date
|
|
@@ -36,8 +34,6 @@ const example = {
|
|
|
36
34
|
"answerChoices": null,
|
|
37
35
|
"correctAnswer": null,
|
|
38
36
|
"explanation": null,
|
|
39
|
-
"topic": null,
|
|
40
|
-
"difficultyLevel": null,
|
|
41
37
|
"tags": null,
|
|
42
38
|
"version": null,
|
|
43
39
|
"versionNumber": null,
|
|
@@ -6,10 +6,8 @@
|
|
|
6
6
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
|
-
`topic` | string
|
|
10
9
|
`questionType` | string
|
|
11
|
-
`
|
|
12
|
-
`tags` | Array<string>
|
|
10
|
+
`tagId` | string
|
|
13
11
|
`search` | string
|
|
14
12
|
`createdAfter` | Date
|
|
15
13
|
`createdBefore` | Date
|
|
@@ -21,10 +19,8 @@ import type { GetQuestionListFilters } from '@easyedu/js-lsm-api'
|
|
|
21
19
|
|
|
22
20
|
// TODO: Update the object below with actual values
|
|
23
21
|
const example = {
|
|
24
|
-
"topic": null,
|
|
25
22
|
"questionType": null,
|
|
26
|
-
"
|
|
27
|
-
"tags": null,
|
|
23
|
+
"tagId": null,
|
|
28
24
|
"search": null,
|
|
29
25
|
"createdAfter": null,
|
|
30
26
|
"createdBefore": null,
|
package/docs/GetResource.md
CHANGED
|
@@ -11,6 +11,7 @@ Name | Type
|
|
|
11
11
|
`description` | string
|
|
12
12
|
`resourceType` | [ResourceType](ResourceType.md)
|
|
13
13
|
`ownerId` | string
|
|
14
|
+
`tags` | [Array<ContentLibraryTag>](ContentLibraryTag.md)
|
|
14
15
|
`latestPublishedVersion` | [GetContentLibraryVersion](GetContentLibraryVersion.md)
|
|
15
16
|
`draftVersion` | [GetContentLibraryVersion](GetContentLibraryVersion.md)
|
|
16
17
|
`versions` | [Array<GetContentLibraryVersion>](GetContentLibraryVersion.md)
|
|
@@ -34,6 +35,7 @@ const example = {
|
|
|
34
35
|
"description": null,
|
|
35
36
|
"resourceType": null,
|
|
36
37
|
"ownerId": null,
|
|
38
|
+
"tags": null,
|
|
37
39
|
"latestPublishedVersion": null,
|
|
38
40
|
"draftVersion": null,
|
|
39
41
|
"versions": null,
|
|
@@ -11,8 +11,6 @@ Name | Type
|
|
|
11
11
|
`questionType` | string
|
|
12
12
|
`versionNumber` | number
|
|
13
13
|
`version` | string
|
|
14
|
-
`topic` | string
|
|
15
|
-
`difficultyLevel` | string
|
|
16
14
|
`tags` | Array<string>
|
|
17
15
|
|
|
18
16
|
## Example
|
|
@@ -27,8 +25,6 @@ const example = {
|
|
|
27
25
|
"questionType": null,
|
|
28
26
|
"versionNumber": null,
|
|
29
27
|
"version": null,
|
|
30
|
-
"topic": null,
|
|
31
|
-
"difficultyLevel": null,
|
|
32
28
|
"tags": null,
|
|
33
29
|
} satisfies LibraryQuizCriteriaPreviewQuestion
|
|
34
30
|
|
|
@@ -7,8 +7,6 @@
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`id` | string
|
|
10
|
-
`topic` | string
|
|
11
|
-
`difficultyLevel` | string
|
|
12
10
|
`questionType` | string
|
|
13
11
|
`tags` | Array<string>
|
|
14
12
|
`minQuestions` | number
|
|
@@ -23,8 +21,6 @@ import type { LibraryQuizCriterion } from '@easyedu/js-lsm-api'
|
|
|
23
21
|
// TODO: Update the object below with actual values
|
|
24
22
|
const example = {
|
|
25
23
|
"id": null,
|
|
26
|
-
"topic": null,
|
|
27
|
-
"difficultyLevel": null,
|
|
28
24
|
"questionType": null,
|
|
29
25
|
"tags": null,
|
|
30
26
|
"minQuestions": null,
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
|
|
2
|
+
# PostContentLibraryTag
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`name` | string
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import type { PostContentLibraryTag } from '@easyedu/js-lsm-api'
|
|
15
|
+
|
|
16
|
+
// TODO: Update the object below with actual values
|
|
17
|
+
const example = {
|
|
18
|
+
"name": null,
|
|
19
|
+
} satisfies PostContentLibraryTag
|
|
20
|
+
|
|
21
|
+
console.log(example)
|
|
22
|
+
|
|
23
|
+
// Convert the instance to a JSON string
|
|
24
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
25
|
+
console.log(exampleJSON)
|
|
26
|
+
|
|
27
|
+
// Parse the JSON string back to an object
|
|
28
|
+
const exampleParsed = JSON.parse(exampleJSON) as PostContentLibraryTag
|
|
29
|
+
console.log(exampleParsed)
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
33
|
+
|
|
34
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
|
|
2
|
+
# PostContentLibraryTagMerge
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`targetTagId` | string
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import type { PostContentLibraryTagMerge } from '@easyedu/js-lsm-api'
|
|
15
|
+
|
|
16
|
+
// TODO: Update the object below with actual values
|
|
17
|
+
const example = {
|
|
18
|
+
"targetTagId": null,
|
|
19
|
+
} satisfies PostContentLibraryTagMerge
|
|
20
|
+
|
|
21
|
+
console.log(example)
|
|
22
|
+
|
|
23
|
+
// Convert the instance to a JSON string
|
|
24
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
25
|
+
console.log(exampleJSON)
|
|
26
|
+
|
|
27
|
+
// Parse the JSON string back to an object
|
|
28
|
+
const exampleParsed = JSON.parse(exampleJSON) as PostContentLibraryTagMerge
|
|
29
|
+
console.log(exampleParsed)
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
33
|
+
|
|
34
|
+
|
package/docs/PostLibraryQuiz.md
CHANGED
|
@@ -19,6 +19,7 @@ Name | Type
|
|
|
19
19
|
`allowReview` | boolean
|
|
20
20
|
`requireAllQuestions` | boolean
|
|
21
21
|
`settings` | { [key: string]: any; }
|
|
22
|
+
`tags` | Set<string>
|
|
22
23
|
|
|
23
24
|
## Example
|
|
24
25
|
|
|
@@ -40,6 +41,7 @@ const example = {
|
|
|
40
41
|
"allowReview": null,
|
|
41
42
|
"requireAllQuestions": null,
|
|
42
43
|
"settings": null,
|
|
44
|
+
"tags": null,
|
|
43
45
|
} satisfies PostLibraryQuiz
|
|
44
46
|
|
|
45
47
|
console.log(example)
|
package/docs/PostQuestion.md
CHANGED
|
@@ -11,8 +11,6 @@ Name | Type
|
|
|
11
11
|
`answerChoices` | [Array<PostQuestionAnswerChoicesInner>](PostQuestionAnswerChoicesInner.md)
|
|
12
12
|
`correctAnswer` | string
|
|
13
13
|
`explanation` | [RichTextInput](RichTextInput.md)
|
|
14
|
-
`topic` | string
|
|
15
|
-
`difficultyLevel` | string
|
|
16
14
|
`tags` | Array<string>
|
|
17
15
|
`version` | string
|
|
18
16
|
|
|
@@ -28,8 +26,6 @@ const example = {
|
|
|
28
26
|
"answerChoices": null,
|
|
29
27
|
"correctAnswer": null,
|
|
30
28
|
"explanation": null,
|
|
31
|
-
"topic": null,
|
|
32
|
-
"difficultyLevel": null,
|
|
33
29
|
"tags": null,
|
|
34
30
|
"version": null,
|
|
35
31
|
} satisfies PostQuestion
|
package/docs/PostResource.md
CHANGED
|
@@ -11,6 +11,7 @@ Name | Type
|
|
|
11
11
|
`resourceType` | [ResourceType](ResourceType.md)
|
|
12
12
|
`linkUrl` | string
|
|
13
13
|
`richText` | [RichTextInput](RichTextInput.md)
|
|
14
|
+
`tags` | Set<string>
|
|
14
15
|
|
|
15
16
|
## Example
|
|
16
17
|
|
|
@@ -24,6 +25,7 @@ const example = {
|
|
|
24
25
|
"resourceType": null,
|
|
25
26
|
"linkUrl": null,
|
|
26
27
|
"richText": null,
|
|
28
|
+
"tags": null,
|
|
27
29
|
} satisfies PostResource
|
|
28
30
|
|
|
29
31
|
console.log(example)
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
|
|
2
|
+
# PutContentLibraryTag
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`name` | string
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import type { PutContentLibraryTag } from '@easyedu/js-lsm-api'
|
|
15
|
+
|
|
16
|
+
// TODO: Update the object below with actual values
|
|
17
|
+
const example = {
|
|
18
|
+
"name": null,
|
|
19
|
+
} satisfies PutContentLibraryTag
|
|
20
|
+
|
|
21
|
+
console.log(example)
|
|
22
|
+
|
|
23
|
+
// Convert the instance to a JSON string
|
|
24
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
25
|
+
console.log(exampleJSON)
|
|
26
|
+
|
|
27
|
+
// Parse the JSON string back to an object
|
|
28
|
+
const exampleParsed = JSON.parse(exampleJSON) as PutContentLibraryTag
|
|
29
|
+
console.log(exampleParsed)
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
33
|
+
|
|
34
|
+
|
package/docs/PutLibraryQuiz.md
CHANGED
|
@@ -8,6 +8,7 @@ Name | Type
|
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`name` | string
|
|
10
10
|
`description` | string
|
|
11
|
+
`tags` | Set<string>
|
|
11
12
|
|
|
12
13
|
## Example
|
|
13
14
|
|
|
@@ -18,6 +19,7 @@ import type { PutLibraryQuiz } from '@easyedu/js-lsm-api'
|
|
|
18
19
|
const example = {
|
|
19
20
|
"name": null,
|
|
20
21
|
"description": null,
|
|
22
|
+
"tags": null,
|
|
21
23
|
} satisfies PutLibraryQuiz
|
|
22
24
|
|
|
23
25
|
console.log(example)
|
package/docs/PutQuestion.md
CHANGED
|
@@ -11,8 +11,6 @@ Name | Type
|
|
|
11
11
|
`answerChoices` | [Array<PutQuestionAnswerChoicesInner>](PutQuestionAnswerChoicesInner.md)
|
|
12
12
|
`correctAnswer` | string
|
|
13
13
|
`explanation` | [RichTextInput](RichTextInput.md)
|
|
14
|
-
`topic` | string
|
|
15
|
-
`difficultyLevel` | string
|
|
16
14
|
`tags` | Array<string>
|
|
17
15
|
`version` | string
|
|
18
16
|
|
|
@@ -28,8 +26,6 @@ const example = {
|
|
|
28
26
|
"answerChoices": null,
|
|
29
27
|
"correctAnswer": null,
|
|
30
28
|
"explanation": null,
|
|
31
|
-
"topic": null,
|
|
32
|
-
"difficultyLevel": null,
|
|
33
29
|
"tags": null,
|
|
34
30
|
"version": null,
|
|
35
31
|
} satisfies PutQuestion
|
package/docs/PutResource.md
CHANGED
|
@@ -8,6 +8,7 @@ Name | Type
|
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`name` | string
|
|
10
10
|
`description` | string
|
|
11
|
+
`tags` | Set<string>
|
|
11
12
|
|
|
12
13
|
## Example
|
|
13
14
|
|
|
@@ -18,6 +19,7 @@ import type { PutResource } from '@easyedu/js-lsm-api'
|
|
|
18
19
|
const example = {
|
|
19
20
|
"name": null,
|
|
20
21
|
"description": null,
|
|
22
|
+
"tags": null,
|
|
21
23
|
} satisfies PutResource
|
|
22
24
|
|
|
23
25
|
console.log(example)
|
package/docs/QuestionApi.md
CHANGED
|
@@ -147,7 +147,7 @@ No authorization required
|
|
|
147
147
|
|
|
148
148
|
## getQuestionList
|
|
149
149
|
|
|
150
|
-
> GetQuestionList getQuestionList(page, pageSize,
|
|
150
|
+
> GetQuestionList getQuestionList(page, pageSize, questionType, tagId, search)
|
|
151
151
|
|
|
152
152
|
Get list of questions with filtering and pagination
|
|
153
153
|
|
|
@@ -169,14 +169,10 @@ async function example() {
|
|
|
169
169
|
page: 56,
|
|
170
170
|
// number | Number of items per page (optional)
|
|
171
171
|
pageSize: 56,
|
|
172
|
-
// string | Filter by topic (optional)
|
|
173
|
-
topic: topic_example,
|
|
174
172
|
// 'single_answer' | 'multiple_answer' | 'fill_in_blank' | Filter by question type (optional)
|
|
175
173
|
questionType: questionType_example,
|
|
176
|
-
//
|
|
177
|
-
|
|
178
|
-
// Array<string> | Filter by tags (optional)
|
|
179
|
-
tags: ...,
|
|
174
|
+
// string | Filter by a shared tag (optional)
|
|
175
|
+
tagId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
180
176
|
// string | Search in question text (optional)
|
|
181
177
|
search: search_example,
|
|
182
178
|
} satisfies GetQuestionListRequest;
|
|
@@ -200,10 +196,8 @@ example().catch(console.error);
|
|
|
200
196
|
|------------- | ------------- | ------------- | -------------|
|
|
201
197
|
| **page** | `number` | Page number | [Optional] [Defaults to `1`] |
|
|
202
198
|
| **pageSize** | `number` | Number of items per page | [Optional] [Defaults to `20`] |
|
|
203
|
-
| **topic** | `string` | Filter by topic | [Optional] [Defaults to `undefined`] |
|
|
204
199
|
| **questionType** | `single_answer`, `multiple_answer`, `fill_in_blank` | Filter by question type | [Optional] [Defaults to `undefined`] [Enum: single_answer, multiple_answer, fill_in_blank] |
|
|
205
|
-
| **
|
|
206
|
-
| **tags** | `Array<string>` | Filter by tags | [Optional] |
|
|
200
|
+
| **tagId** | `string` | Filter by a shared tag | [Optional] [Defaults to `undefined`] |
|
|
207
201
|
| **search** | `string` | Search in question text | [Optional] [Defaults to `undefined`] |
|
|
208
202
|
|
|
209
203
|
### Return type
|