@easyedu/js-lsm-api 1.82.0 → 1.84.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 +60 -0
- package/README.md +64 -2
- package/dist/apis/ContentLibraryApi.d.ts +290 -0
- package/dist/apis/ContentLibraryApi.js +744 -0
- package/dist/apis/CourseApi.d.ts +172 -0
- package/dist/apis/CourseApi.js +443 -0
- package/dist/apis/PlayerApi.d.ts +112 -0
- package/dist/apis/PlayerApi.js +297 -0
- package/dist/apis/QuizApi.d.ts +3 -2
- package/dist/apis/QuizApi.js +4 -2
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/ContentLibraryApi.d.ts +290 -0
- package/dist/esm/apis/ContentLibraryApi.js +740 -0
- package/dist/esm/apis/CourseApi.d.ts +172 -0
- package/dist/esm/apis/CourseApi.js +443 -0
- package/dist/esm/apis/PlayerApi.d.ts +112 -0
- package/dist/esm/apis/PlayerApi.js +297 -0
- package/dist/esm/apis/QuizApi.d.ts +3 -2
- package/dist/esm/apis/QuizApi.js +4 -2
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/ContentLibraryVersionStatus.d.ts +26 -0
- package/dist/esm/models/ContentLibraryVersionStatus.js +44 -0
- package/dist/esm/models/GetContentLibraryVersion.d.ts +126 -0
- package/dist/esm/models/GetContentLibraryVersion.js +87 -0
- package/dist/esm/models/GetCourseVersion.d.ts +101 -0
- package/dist/esm/models/GetCourseVersion.js +86 -0
- package/dist/esm/models/GetCourseVersionItem.d.ts +135 -0
- package/dist/esm/models/GetCourseVersionItem.js +104 -0
- package/dist/esm/models/GetCourseVersionItemLaunch.d.ts +103 -0
- package/dist/esm/models/GetCourseVersionItemLaunch.js +82 -0
- package/dist/esm/models/GetCourseVersionItemSession.d.ts +124 -0
- package/dist/esm/models/GetCourseVersionItemSession.js +101 -0
- package/dist/esm/models/GetCourseVersionList.d.ts +33 -0
- package/dist/esm/models/GetCourseVersionList.js +44 -0
- package/dist/esm/models/GetCourseVersionModule.d.ts +64 -0
- package/dist/esm/models/GetCourseVersionModule.js +65 -0
- package/dist/esm/models/GetQuizAttemptQuestionsInner.d.ts +7 -0
- package/dist/esm/models/GetQuizAttemptQuestionsInner.js +3 -0
- package/dist/esm/models/GetQuizAttemptQuestionsInnerAnswerChoicesInner.d.ts +7 -0
- package/dist/esm/models/GetQuizAttemptQuestionsInnerAnswerChoicesInner.js +3 -0
- package/dist/esm/models/GetQuizResultsQuestionsInner.d.ts +13 -0
- package/dist/esm/models/GetQuizResultsQuestionsInner.js +5 -0
- package/dist/esm/models/GetQuizResultsQuestionsInnerAnswerChoicesInner.d.ts +7 -0
- package/dist/esm/models/GetQuizResultsQuestionsInnerAnswerChoicesInner.js +3 -0
- package/dist/esm/models/GetResource.d.ts +118 -0
- package/dist/esm/models/GetResource.js +95 -0
- package/dist/esm/models/GetResourceList.d.ts +57 -0
- package/dist/esm/models/GetResourceList.js +60 -0
- package/dist/esm/models/GetResourceUsage.d.ts +63 -0
- package/dist/esm/models/GetResourceUsage.js +64 -0
- package/dist/esm/models/GetResourceUsageCoursesInner.d.ts +63 -0
- package/dist/esm/models/GetResourceUsageCoursesInner.js +64 -0
- package/dist/esm/models/GetResourceVersionUpload.d.ts +38 -0
- package/dist/esm/models/GetResourceVersionUpload.js +47 -0
- package/dist/esm/models/PostCourseDraft.d.ts +32 -0
- package/dist/esm/models/PostCourseDraft.js +41 -0
- package/dist/esm/models/PostCourseVersionItem.d.ts +97 -0
- package/dist/esm/models/PostCourseVersionItem.js +71 -0
- package/dist/esm/models/PostCourseVersionItemSession.d.ts +32 -0
- package/dist/esm/models/PostCourseVersionItemSession.js +41 -0
- package/dist/esm/models/PostCourseVersionPublish.d.ts +32 -0
- package/dist/esm/models/PostCourseVersionPublish.js +41 -0
- package/dist/esm/models/PostQuizAttemptQuestionsInner.d.ts +7 -0
- package/dist/esm/models/PostQuizAttemptQuestionsInner.js +3 -0
- package/dist/esm/models/PostQuizAttemptQuestionsInnerAnswerChoicesInner.d.ts +7 -0
- package/dist/esm/models/PostQuizAttemptQuestionsInnerAnswerChoicesInner.js +3 -0
- package/dist/esm/models/PostResource.d.ts +58 -0
- package/dist/esm/models/PostResource.js +55 -0
- package/dist/esm/models/PostResourceVersion.d.ts +45 -0
- package/dist/esm/models/PostResourceVersion.js +46 -0
- package/dist/esm/models/PostResourceVersionComplete.d.ts +32 -0
- package/dist/esm/models/PostResourceVersionComplete.js +43 -0
- package/dist/esm/models/PostResourceVersionUpload.d.ts +50 -0
- package/dist/esm/models/PostResourceVersionUpload.js +55 -0
- package/dist/esm/models/PutCourseVersionItem.d.ts +85 -0
- package/dist/esm/models/PutCourseVersionItem.js +63 -0
- package/dist/esm/models/PutQuizAnswerResponse.d.ts +77 -0
- package/dist/esm/models/PutQuizAnswerResponse.js +64 -0
- package/dist/esm/models/PutQuizAnswerResponseNextQuestion.d.ts +102 -0
- package/dist/esm/models/PutQuizAnswerResponseNextQuestion.js +88 -0
- package/dist/esm/models/PutQuizAnswerResponseNextQuestionAnswerChoicesInner.d.ts +51 -0
- package/dist/esm/models/PutQuizAnswerResponseNextQuestionAnswerChoicesInner.js +54 -0
- package/dist/esm/models/PutQuizAnswerResponseProgress.d.ts +50 -0
- package/dist/esm/models/PutQuizAnswerResponseProgress.js +55 -0
- package/dist/esm/models/PutResource.d.ts +38 -0
- package/dist/esm/models/PutResource.js +43 -0
- package/dist/esm/models/PutResourceVersion.d.ts +53 -0
- package/dist/esm/models/PutResourceVersion.js +48 -0
- package/dist/esm/models/ResourceType.d.ts +32 -0
- package/dist/esm/models/ResourceType.js +50 -0
- package/dist/esm/models/index.d.ts +29 -0
- package/dist/esm/models/index.js +29 -0
- package/dist/models/ContentLibraryVersionStatus.d.ts +26 -0
- package/dist/models/ContentLibraryVersionStatus.js +52 -0
- package/dist/models/GetContentLibraryVersion.d.ts +126 -0
- package/dist/models/GetContentLibraryVersion.js +94 -0
- package/dist/models/GetCourseVersion.d.ts +101 -0
- package/dist/models/GetCourseVersion.js +93 -0
- package/dist/models/GetCourseVersionItem.d.ts +135 -0
- package/dist/models/GetCourseVersionItem.js +112 -0
- package/dist/models/GetCourseVersionItemLaunch.d.ts +103 -0
- package/dist/models/GetCourseVersionItemLaunch.js +89 -0
- package/dist/models/GetCourseVersionItemSession.d.ts +124 -0
- package/dist/models/GetCourseVersionItemSession.js +108 -0
- package/dist/models/GetCourseVersionList.d.ts +33 -0
- package/dist/models/GetCourseVersionList.js +51 -0
- package/dist/models/GetCourseVersionModule.d.ts +64 -0
- package/dist/models/GetCourseVersionModule.js +72 -0
- package/dist/models/GetQuizAttemptQuestionsInner.d.ts +7 -0
- package/dist/models/GetQuizAttemptQuestionsInner.js +3 -0
- package/dist/models/GetQuizAttemptQuestionsInnerAnswerChoicesInner.d.ts +7 -0
- package/dist/models/GetQuizAttemptQuestionsInnerAnswerChoicesInner.js +3 -0
- package/dist/models/GetQuizResultsQuestionsInner.d.ts +13 -0
- package/dist/models/GetQuizResultsQuestionsInner.js +5 -0
- package/dist/models/GetQuizResultsQuestionsInnerAnswerChoicesInner.d.ts +7 -0
- package/dist/models/GetQuizResultsQuestionsInnerAnswerChoicesInner.js +3 -0
- package/dist/models/GetResource.d.ts +118 -0
- package/dist/models/GetResource.js +102 -0
- package/dist/models/GetResourceList.d.ts +57 -0
- package/dist/models/GetResourceList.js +67 -0
- package/dist/models/GetResourceUsage.d.ts +63 -0
- package/dist/models/GetResourceUsage.js +71 -0
- package/dist/models/GetResourceUsageCoursesInner.d.ts +63 -0
- package/dist/models/GetResourceUsageCoursesInner.js +71 -0
- package/dist/models/GetResourceVersionUpload.d.ts +38 -0
- package/dist/models/GetResourceVersionUpload.js +54 -0
- package/dist/models/PostCourseDraft.d.ts +32 -0
- package/dist/models/PostCourseDraft.js +48 -0
- package/dist/models/PostCourseVersionItem.d.ts +97 -0
- package/dist/models/PostCourseVersionItem.js +79 -0
- package/dist/models/PostCourseVersionItemSession.d.ts +32 -0
- package/dist/models/PostCourseVersionItemSession.js +48 -0
- package/dist/models/PostCourseVersionPublish.d.ts +32 -0
- package/dist/models/PostCourseVersionPublish.js +48 -0
- package/dist/models/PostQuizAttemptQuestionsInner.d.ts +7 -0
- package/dist/models/PostQuizAttemptQuestionsInner.js +3 -0
- package/dist/models/PostQuizAttemptQuestionsInnerAnswerChoicesInner.d.ts +7 -0
- package/dist/models/PostQuizAttemptQuestionsInnerAnswerChoicesInner.js +3 -0
- package/dist/models/PostResource.d.ts +58 -0
- package/dist/models/PostResource.js +62 -0
- package/dist/models/PostResourceVersion.d.ts +45 -0
- package/dist/models/PostResourceVersion.js +53 -0
- package/dist/models/PostResourceVersionComplete.d.ts +32 -0
- package/dist/models/PostResourceVersionComplete.js +50 -0
- package/dist/models/PostResourceVersionUpload.d.ts +50 -0
- package/dist/models/PostResourceVersionUpload.js +62 -0
- package/dist/models/PutCourseVersionItem.d.ts +85 -0
- package/dist/models/PutCourseVersionItem.js +71 -0
- package/dist/models/PutQuizAnswerResponse.d.ts +77 -0
- package/dist/models/PutQuizAnswerResponse.js +71 -0
- package/dist/models/PutQuizAnswerResponseNextQuestion.d.ts +102 -0
- package/dist/models/PutQuizAnswerResponseNextQuestion.js +96 -0
- package/dist/models/PutQuizAnswerResponseNextQuestionAnswerChoicesInner.d.ts +51 -0
- package/dist/models/PutQuizAnswerResponseNextQuestionAnswerChoicesInner.js +61 -0
- package/dist/models/PutQuizAnswerResponseProgress.d.ts +50 -0
- package/dist/models/PutQuizAnswerResponseProgress.js +62 -0
- package/dist/models/PutResource.d.ts +38 -0
- package/dist/models/PutResource.js +50 -0
- package/dist/models/PutResourceVersion.d.ts +53 -0
- package/dist/models/PutResourceVersion.js +55 -0
- package/dist/models/ResourceType.d.ts +32 -0
- package/dist/models/ResourceType.js +58 -0
- package/dist/models/index.d.ts +29 -0
- package/dist/models/index.js +29 -0
- package/docs/ContentLibraryApi.md +1132 -0
- package/docs/ContentLibraryVersionStatus.md +33 -0
- package/docs/CourseApi.md +797 -96
- package/docs/GetContentLibraryVersion.md +64 -0
- package/docs/GetCourseVersion.md +56 -0
- package/docs/GetCourseVersionItem.md +62 -0
- package/docs/GetCourseVersionItemLaunch.md +56 -0
- package/docs/GetCourseVersionItemSession.md +65 -0
- package/docs/GetCourseVersionList.md +34 -0
- package/docs/GetCourseVersionModule.md +44 -0
- package/docs/GetQuizAttemptQuestionsInner.md +2 -0
- package/docs/GetQuizAttemptQuestionsInnerAnswerChoicesInner.md +2 -0
- package/docs/GetQuizResultsQuestionsInner.md +4 -0
- package/docs/GetQuizResultsQuestionsInnerAnswerChoicesInner.md +2 -0
- package/docs/GetResource.md +62 -0
- package/docs/GetResourceList.md +42 -0
- package/docs/GetResourceUsage.md +44 -0
- package/docs/GetResourceUsageCoursesInner.md +44 -0
- package/docs/GetResourceVersionUpload.md +36 -0
- package/docs/PlayerApi.md +480 -0
- package/docs/PostCourseDraft.md +34 -0
- package/docs/PostCourseVersionItem.md +52 -0
- package/docs/PostCourseVersionItemSession.md +35 -0
- package/docs/PostCourseVersionPublish.md +34 -0
- package/docs/PostQuizAttemptQuestionsInner.md +2 -0
- package/docs/PostQuizAttemptQuestionsInnerAnswerChoicesInner.md +2 -0
- package/docs/PostResource.md +42 -0
- package/docs/PostResourceVersion.md +38 -0
- package/docs/PostResourceVersionComplete.md +34 -0
- package/docs/PostResourceVersionUpload.md +40 -0
- package/docs/PutCourseVersionItem.md +48 -0
- package/docs/PutQuizAnswerResponse.md +48 -0
- package/docs/PutQuizAnswerResponseNextQuestion.md +52 -0
- package/docs/PutQuizAnswerResponseNextQuestionAnswerChoicesInner.md +40 -0
- package/docs/PutQuizAnswerResponseProgress.md +40 -0
- package/docs/PutResource.md +36 -0
- package/docs/PutResourceVersion.md +40 -0
- package/docs/QuizApi.md +3 -3
- package/docs/ResourceType.md +33 -0
- package/package.json +1 -1
- package/src/apis/ContentLibraryApi.ts +1024 -0
- package/src/apis/CourseApi.ts +636 -0
- package/src/apis/PlayerApi.ts +400 -0
- package/src/apis/QuizApi.ts +10 -4
- package/src/apis/index.ts +1 -0
- package/src/models/ContentLibraryVersionStatus.ts +54 -0
- package/src/models/GetContentLibraryVersion.ts +209 -0
- package/src/models/GetCourseVersion.ts +187 -0
- package/src/models/GetCourseVersionItem.ts +215 -0
- package/src/models/GetCourseVersionItemLaunch.ts +185 -0
- package/src/models/GetCourseVersionItemSession.ts +216 -0
- package/src/models/GetCourseVersionList.ts +74 -0
- package/src/models/GetCourseVersionModule.ts +126 -0
- package/src/models/GetQuizAttemptQuestionsInner.ts +15 -0
- package/src/models/GetQuizAttemptQuestionsInnerAnswerChoicesInner.ts +16 -0
- package/src/models/GetQuizResultsQuestionsInner.ts +23 -0
- package/src/models/GetQuizResultsQuestionsInnerAnswerChoicesInner.ts +16 -0
- package/src/models/GetResource.ts +206 -0
- package/src/models/GetResourceList.ts +110 -0
- package/src/models/GetResourceUsage.ts +119 -0
- package/src/models/GetResourceUsageCoursesInner.ts +121 -0
- package/src/models/GetResourceVersionUpload.ts +75 -0
- package/src/models/PostCourseDraft.ts +65 -0
- package/src/models/PostCourseVersionItem.ts +158 -0
- package/src/models/PostCourseVersionItemSession.ts +65 -0
- package/src/models/PostCourseVersionPublish.ts +65 -0
- package/src/models/PostQuizAttemptQuestionsInner.ts +15 -0
- package/src/models/PostQuizAttemptQuestionsInnerAnswerChoicesInner.ts +16 -0
- package/src/models/PostResource.ts +116 -0
- package/src/models/PostResourceVersion.ts +89 -0
- package/src/models/PostResourceVersionComplete.ts +66 -0
- package/src/models/PostResourceVersionUpload.ts +93 -0
- package/src/models/PutCourseVersionItem.ts +140 -0
- package/src/models/PutQuizAnswerResponse.ts +146 -0
- package/src/models/PutQuizAnswerResponseNextQuestion.ts +175 -0
- package/src/models/PutQuizAnswerResponseNextQuestionAnswerChoicesInner.ts +100 -0
- package/src/models/PutQuizAnswerResponseProgress.ts +93 -0
- package/src/models/PutResource.ts +73 -0
- package/src/models/PutResourceVersion.ts +97 -0
- package/src/models/ResourceType.ts +60 -0
- package/src/models/index.ts +29 -0
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
|
|
2
|
+
# GetContentLibraryVersion
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | string
|
|
10
|
+
`versionNumber` | number
|
|
11
|
+
`status` | [ContentLibraryVersionStatus](ContentLibraryVersionStatus.md)
|
|
12
|
+
`changeNotes` | string
|
|
13
|
+
`metadata` | { [key: string]: any; }
|
|
14
|
+
`filename` | string
|
|
15
|
+
`mimeType` | string
|
|
16
|
+
`fileSizeBytes` | number
|
|
17
|
+
`checksumSha256` | string
|
|
18
|
+
`linkUrl` | string
|
|
19
|
+
`richText` | [RichTextDocument](RichTextDocument.md)
|
|
20
|
+
`createdBy` | string
|
|
21
|
+
`createdAt` | number
|
|
22
|
+
`updatedAt` | number
|
|
23
|
+
`publishedAt` | number
|
|
24
|
+
`archivedAt` | number
|
|
25
|
+
|
|
26
|
+
## Example
|
|
27
|
+
|
|
28
|
+
```typescript
|
|
29
|
+
import type { GetContentLibraryVersion } from '@easyedu/js-lsm-api'
|
|
30
|
+
|
|
31
|
+
// TODO: Update the object below with actual values
|
|
32
|
+
const example = {
|
|
33
|
+
"id": null,
|
|
34
|
+
"versionNumber": null,
|
|
35
|
+
"status": null,
|
|
36
|
+
"changeNotes": null,
|
|
37
|
+
"metadata": null,
|
|
38
|
+
"filename": null,
|
|
39
|
+
"mimeType": null,
|
|
40
|
+
"fileSizeBytes": null,
|
|
41
|
+
"checksumSha256": null,
|
|
42
|
+
"linkUrl": null,
|
|
43
|
+
"richText": null,
|
|
44
|
+
"createdBy": null,
|
|
45
|
+
"createdAt": null,
|
|
46
|
+
"updatedAt": null,
|
|
47
|
+
"publishedAt": null,
|
|
48
|
+
"archivedAt": null,
|
|
49
|
+
} satisfies GetContentLibraryVersion
|
|
50
|
+
|
|
51
|
+
console.log(example)
|
|
52
|
+
|
|
53
|
+
// Convert the instance to a JSON string
|
|
54
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
55
|
+
console.log(exampleJSON)
|
|
56
|
+
|
|
57
|
+
// Parse the JSON string back to an object
|
|
58
|
+
const exampleParsed = JSON.parse(exampleJSON) as GetContentLibraryVersion
|
|
59
|
+
console.log(exampleParsed)
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
63
|
+
|
|
64
|
+
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
|
|
2
|
+
# GetCourseVersion
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | string
|
|
10
|
+
`courseId` | string
|
|
11
|
+
`versionNumber` | number
|
|
12
|
+
`status` | [ContentLibraryVersionStatus](ContentLibraryVersionStatus.md)
|
|
13
|
+
`name` | string
|
|
14
|
+
`description` | string
|
|
15
|
+
`descriptionRich` | [RichTextDocument](RichTextDocument.md)
|
|
16
|
+
`changeNotes` | string
|
|
17
|
+
`modules` | [Array<GetCourseVersionModule>](GetCourseVersionModule.md)
|
|
18
|
+
`createdAt` | number
|
|
19
|
+
`updatedAt` | number
|
|
20
|
+
`publishedAt` | number
|
|
21
|
+
|
|
22
|
+
## Example
|
|
23
|
+
|
|
24
|
+
```typescript
|
|
25
|
+
import type { GetCourseVersion } from '@easyedu/js-lsm-api'
|
|
26
|
+
|
|
27
|
+
// TODO: Update the object below with actual values
|
|
28
|
+
const example = {
|
|
29
|
+
"id": null,
|
|
30
|
+
"courseId": null,
|
|
31
|
+
"versionNumber": null,
|
|
32
|
+
"status": null,
|
|
33
|
+
"name": null,
|
|
34
|
+
"description": null,
|
|
35
|
+
"descriptionRich": null,
|
|
36
|
+
"changeNotes": null,
|
|
37
|
+
"modules": null,
|
|
38
|
+
"createdAt": null,
|
|
39
|
+
"updatedAt": null,
|
|
40
|
+
"publishedAt": null,
|
|
41
|
+
} satisfies GetCourseVersion
|
|
42
|
+
|
|
43
|
+
console.log(example)
|
|
44
|
+
|
|
45
|
+
// Convert the instance to a JSON string
|
|
46
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
47
|
+
console.log(exampleJSON)
|
|
48
|
+
|
|
49
|
+
// Parse the JSON string back to an object
|
|
50
|
+
const exampleParsed = JSON.parse(exampleJSON) as GetCourseVersion
|
|
51
|
+
console.log(exampleParsed)
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
55
|
+
|
|
56
|
+
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
|
|
2
|
+
# GetCourseVersionItem
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | string
|
|
10
|
+
`sourceKind` | string
|
|
11
|
+
`contentLibraryItemId` | string
|
|
12
|
+
`contentLibraryVersionId` | string
|
|
13
|
+
`resourceVersionNumber` | number
|
|
14
|
+
`latestPublishedVersionId` | string
|
|
15
|
+
`latestPublishedVersionNumber` | number
|
|
16
|
+
`updateAvailable` | boolean
|
|
17
|
+
`displayName` | string
|
|
18
|
+
`displayOrder` | number
|
|
19
|
+
`isVisible` | boolean
|
|
20
|
+
`launchMode` | [ContentLaunchMode](ContentLaunchMode.md)
|
|
21
|
+
`maxAttempts` | number
|
|
22
|
+
`scoreRollupStrategy` | string
|
|
23
|
+
`settings` | { [key: string]: any; }
|
|
24
|
+
|
|
25
|
+
## Example
|
|
26
|
+
|
|
27
|
+
```typescript
|
|
28
|
+
import type { GetCourseVersionItem } from '@easyedu/js-lsm-api'
|
|
29
|
+
|
|
30
|
+
// TODO: Update the object below with actual values
|
|
31
|
+
const example = {
|
|
32
|
+
"id": null,
|
|
33
|
+
"sourceKind": null,
|
|
34
|
+
"contentLibraryItemId": null,
|
|
35
|
+
"contentLibraryVersionId": null,
|
|
36
|
+
"resourceVersionNumber": null,
|
|
37
|
+
"latestPublishedVersionId": null,
|
|
38
|
+
"latestPublishedVersionNumber": null,
|
|
39
|
+
"updateAvailable": null,
|
|
40
|
+
"displayName": null,
|
|
41
|
+
"displayOrder": null,
|
|
42
|
+
"isVisible": null,
|
|
43
|
+
"launchMode": null,
|
|
44
|
+
"maxAttempts": null,
|
|
45
|
+
"scoreRollupStrategy": null,
|
|
46
|
+
"settings": null,
|
|
47
|
+
} satisfies GetCourseVersionItem
|
|
48
|
+
|
|
49
|
+
console.log(example)
|
|
50
|
+
|
|
51
|
+
// Convert the instance to a JSON string
|
|
52
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
53
|
+
console.log(exampleJSON)
|
|
54
|
+
|
|
55
|
+
// Parse the JSON string back to an object
|
|
56
|
+
const exampleParsed = JSON.parse(exampleJSON) as GetCourseVersionItem
|
|
57
|
+
console.log(exampleParsed)
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
61
|
+
|
|
62
|
+
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
|
|
2
|
+
# GetCourseVersionItemLaunch
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`courseVersionId` | string
|
|
10
|
+
`itemId` | string
|
|
11
|
+
`contentLibraryItemId` | string
|
|
12
|
+
`contentLibraryVersionId` | string
|
|
13
|
+
`resourceType` | [ResourceType](ResourceType.md)
|
|
14
|
+
`launchMode` | [ContentLaunchMode](ContentLaunchMode.md)
|
|
15
|
+
`maxAttempts` | number
|
|
16
|
+
`url` | string
|
|
17
|
+
`filename` | string
|
|
18
|
+
`mimeType` | string
|
|
19
|
+
`richText` | [RichTextDocument](RichTextDocument.md)
|
|
20
|
+
`metadata` | { [key: string]: any; }
|
|
21
|
+
|
|
22
|
+
## Example
|
|
23
|
+
|
|
24
|
+
```typescript
|
|
25
|
+
import type { GetCourseVersionItemLaunch } from '@easyedu/js-lsm-api'
|
|
26
|
+
|
|
27
|
+
// TODO: Update the object below with actual values
|
|
28
|
+
const example = {
|
|
29
|
+
"courseVersionId": null,
|
|
30
|
+
"itemId": null,
|
|
31
|
+
"contentLibraryItemId": null,
|
|
32
|
+
"contentLibraryVersionId": null,
|
|
33
|
+
"resourceType": null,
|
|
34
|
+
"launchMode": null,
|
|
35
|
+
"maxAttempts": null,
|
|
36
|
+
"url": null,
|
|
37
|
+
"filename": null,
|
|
38
|
+
"mimeType": null,
|
|
39
|
+
"richText": null,
|
|
40
|
+
"metadata": null,
|
|
41
|
+
} satisfies GetCourseVersionItemLaunch
|
|
42
|
+
|
|
43
|
+
console.log(example)
|
|
44
|
+
|
|
45
|
+
// Convert the instance to a JSON string
|
|
46
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
47
|
+
console.log(exampleJSON)
|
|
48
|
+
|
|
49
|
+
// Parse the JSON string back to an object
|
|
50
|
+
const exampleParsed = JSON.parse(exampleJSON) as GetCourseVersionItemLaunch
|
|
51
|
+
console.log(exampleParsed)
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
55
|
+
|
|
56
|
+
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
|
|
2
|
+
# GetCourseVersionItemSession
|
|
3
|
+
|
|
4
|
+
A learner resource attempt pinned to an immutable course and Content Library version.
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
Name | Type
|
|
9
|
+
------------ | -------------
|
|
10
|
+
`id` | string
|
|
11
|
+
`courseVersionId` | string
|
|
12
|
+
`itemId` | string
|
|
13
|
+
`contentLibraryItemId` | string
|
|
14
|
+
`contentLibraryVersionId` | string
|
|
15
|
+
`resourceType` | [ResourceType](ResourceType.md)
|
|
16
|
+
`launchMode` | [ContentLaunchMode](ContentLaunchMode.md)
|
|
17
|
+
`launchUrl` | string
|
|
18
|
+
`attemptNumber` | number
|
|
19
|
+
`isCurrent` | boolean
|
|
20
|
+
`completionStatus` | string
|
|
21
|
+
`gradeStatus` | string
|
|
22
|
+
`scoreRaw` | number
|
|
23
|
+
`createdAt` | number
|
|
24
|
+
`updatedAt` | number
|
|
25
|
+
`completedAt` | number
|
|
26
|
+
|
|
27
|
+
## Example
|
|
28
|
+
|
|
29
|
+
```typescript
|
|
30
|
+
import type { GetCourseVersionItemSession } from '@easyedu/js-lsm-api'
|
|
31
|
+
|
|
32
|
+
// TODO: Update the object below with actual values
|
|
33
|
+
const example = {
|
|
34
|
+
"id": null,
|
|
35
|
+
"courseVersionId": null,
|
|
36
|
+
"itemId": null,
|
|
37
|
+
"contentLibraryItemId": null,
|
|
38
|
+
"contentLibraryVersionId": null,
|
|
39
|
+
"resourceType": null,
|
|
40
|
+
"launchMode": null,
|
|
41
|
+
"launchUrl": null,
|
|
42
|
+
"attemptNumber": null,
|
|
43
|
+
"isCurrent": null,
|
|
44
|
+
"completionStatus": null,
|
|
45
|
+
"gradeStatus": null,
|
|
46
|
+
"scoreRaw": null,
|
|
47
|
+
"createdAt": null,
|
|
48
|
+
"updatedAt": null,
|
|
49
|
+
"completedAt": null,
|
|
50
|
+
} satisfies GetCourseVersionItemSession
|
|
51
|
+
|
|
52
|
+
console.log(example)
|
|
53
|
+
|
|
54
|
+
// Convert the instance to a JSON string
|
|
55
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
56
|
+
console.log(exampleJSON)
|
|
57
|
+
|
|
58
|
+
// Parse the JSON string back to an object
|
|
59
|
+
const exampleParsed = JSON.parse(exampleJSON) as GetCourseVersionItemSession
|
|
60
|
+
console.log(exampleParsed)
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
64
|
+
|
|
65
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
|
|
2
|
+
# GetCourseVersionList
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`items` | [Array<GetCourseVersion>](GetCourseVersion.md)
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import type { GetCourseVersionList } from '@easyedu/js-lsm-api'
|
|
15
|
+
|
|
16
|
+
// TODO: Update the object below with actual values
|
|
17
|
+
const example = {
|
|
18
|
+
"items": null,
|
|
19
|
+
} satisfies GetCourseVersionList
|
|
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 GetCourseVersionList
|
|
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,44 @@
|
|
|
1
|
+
|
|
2
|
+
# GetCourseVersionModule
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | string
|
|
10
|
+
`name` | string
|
|
11
|
+
`description` | string
|
|
12
|
+
`descriptionRich` | [RichTextDocument](RichTextDocument.md)
|
|
13
|
+
`displayOrder` | number
|
|
14
|
+
`items` | [Array<GetCourseVersionItem>](GetCourseVersionItem.md)
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import type { GetCourseVersionModule } from '@easyedu/js-lsm-api'
|
|
20
|
+
|
|
21
|
+
// TODO: Update the object below with actual values
|
|
22
|
+
const example = {
|
|
23
|
+
"id": null,
|
|
24
|
+
"name": null,
|
|
25
|
+
"description": null,
|
|
26
|
+
"descriptionRich": null,
|
|
27
|
+
"displayOrder": null,
|
|
28
|
+
"items": null,
|
|
29
|
+
} satisfies GetCourseVersionModule
|
|
30
|
+
|
|
31
|
+
console.log(example)
|
|
32
|
+
|
|
33
|
+
// Convert the instance to a JSON string
|
|
34
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
35
|
+
console.log(exampleJSON)
|
|
36
|
+
|
|
37
|
+
// Parse the JSON string back to an object
|
|
38
|
+
const exampleParsed = JSON.parse(exampleJSON) as GetCourseVersionModule
|
|
39
|
+
console.log(exampleParsed)
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
43
|
+
|
|
44
|
+
|
|
@@ -11,6 +11,7 @@ Name | Type
|
|
|
11
11
|
`questionOrder` | number
|
|
12
12
|
`points` | number
|
|
13
13
|
`questionText` | string
|
|
14
|
+
`questionTextRich` | [RichTextDocument](RichTextDocument.md)
|
|
14
15
|
`questionType` | string
|
|
15
16
|
`answerChoices` | [Array<GetQuizAttemptQuestionsInnerAnswerChoicesInner>](GetQuizAttemptQuestionsInnerAnswerChoicesInner.md)
|
|
16
17
|
`isAnswered` | boolean
|
|
@@ -29,6 +30,7 @@ const example = {
|
|
|
29
30
|
"questionOrder": null,
|
|
30
31
|
"points": null,
|
|
31
32
|
"questionText": null,
|
|
33
|
+
"questionTextRich": null,
|
|
32
34
|
"questionType": null,
|
|
33
35
|
"answerChoices": null,
|
|
34
36
|
"isAnswered": null,
|
|
@@ -8,6 +8,7 @@ Name | Type
|
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`id` | string
|
|
10
10
|
`text` | string
|
|
11
|
+
`textRich` | [RichTextDocument](RichTextDocument.md)
|
|
11
12
|
`displayOrder` | number
|
|
12
13
|
|
|
13
14
|
## Example
|
|
@@ -19,6 +20,7 @@ import type { GetQuizAttemptQuestionsInnerAnswerChoicesInner } from '@easyedu/js
|
|
|
19
20
|
const example = {
|
|
20
21
|
"id": null,
|
|
21
22
|
"text": null,
|
|
23
|
+
"textRich": null,
|
|
22
24
|
"displayOrder": null,
|
|
23
25
|
} satisfies GetQuizAttemptQuestionsInnerAnswerChoicesInner
|
|
24
26
|
|
|
@@ -9,10 +9,12 @@ Name | Type
|
|
|
9
9
|
`questionId` | string
|
|
10
10
|
`questionOrder` | number
|
|
11
11
|
`questionText` | string
|
|
12
|
+
`questionTextRich` | [RichTextDocument](RichTextDocument.md)
|
|
12
13
|
`questionType` | string
|
|
13
14
|
`answerChoices` | [Array<GetQuizResultsQuestionsInnerAnswerChoicesInner>](GetQuizResultsQuestionsInnerAnswerChoicesInner.md)
|
|
14
15
|
`studentAnswer` | [GetQuizResultsQuestionsInnerStudentAnswer](GetQuizResultsQuestionsInnerStudentAnswer.md)
|
|
15
16
|
`explanation` | string
|
|
17
|
+
`explanationRich` | [RichTextDocument](RichTextDocument.md)
|
|
16
18
|
`timeSpent` | number
|
|
17
19
|
`wasFlagged` | boolean
|
|
18
20
|
|
|
@@ -26,10 +28,12 @@ const example = {
|
|
|
26
28
|
"questionId": null,
|
|
27
29
|
"questionOrder": null,
|
|
28
30
|
"questionText": null,
|
|
31
|
+
"questionTextRich": null,
|
|
29
32
|
"questionType": null,
|
|
30
33
|
"answerChoices": null,
|
|
31
34
|
"studentAnswer": null,
|
|
32
35
|
"explanation": null,
|
|
36
|
+
"explanationRich": null,
|
|
33
37
|
"timeSpent": null,
|
|
34
38
|
"wasFlagged": null,
|
|
35
39
|
} satisfies GetQuizResultsQuestionsInner
|
|
@@ -8,6 +8,7 @@ Name | Type
|
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`id` | string
|
|
10
10
|
`text` | string
|
|
11
|
+
`textRich` | [RichTextDocument](RichTextDocument.md)
|
|
11
12
|
`isCorrect` | boolean
|
|
12
13
|
`wasSelected` | boolean
|
|
13
14
|
|
|
@@ -20,6 +21,7 @@ import type { GetQuizResultsQuestionsInnerAnswerChoicesInner } from '@easyedu/js
|
|
|
20
21
|
const example = {
|
|
21
22
|
"id": null,
|
|
22
23
|
"text": null,
|
|
24
|
+
"textRich": null,
|
|
23
25
|
"isCorrect": null,
|
|
24
26
|
"wasSelected": null,
|
|
25
27
|
} satisfies GetQuizResultsQuestionsInnerAnswerChoicesInner
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
|
|
2
|
+
# GetResource
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | string
|
|
10
|
+
`name` | string
|
|
11
|
+
`description` | string
|
|
12
|
+
`resourceType` | [ResourceType](ResourceType.md)
|
|
13
|
+
`ownerId` | string
|
|
14
|
+
`latestPublishedVersion` | [GetContentLibraryVersion](GetContentLibraryVersion.md)
|
|
15
|
+
`draftVersion` | [GetContentLibraryVersion](GetContentLibraryVersion.md)
|
|
16
|
+
`versions` | [Array<GetContentLibraryVersion>](GetContentLibraryVersion.md)
|
|
17
|
+
`publishedCourseCount` | number
|
|
18
|
+
`draftCourseCount` | number
|
|
19
|
+
`historicalCourseCount` | number
|
|
20
|
+
`activeLearnerCount` | number
|
|
21
|
+
`createdAt` | number
|
|
22
|
+
`updatedAt` | number
|
|
23
|
+
`archivedAt` | number
|
|
24
|
+
|
|
25
|
+
## Example
|
|
26
|
+
|
|
27
|
+
```typescript
|
|
28
|
+
import type { GetResource } from '@easyedu/js-lsm-api'
|
|
29
|
+
|
|
30
|
+
// TODO: Update the object below with actual values
|
|
31
|
+
const example = {
|
|
32
|
+
"id": null,
|
|
33
|
+
"name": null,
|
|
34
|
+
"description": null,
|
|
35
|
+
"resourceType": null,
|
|
36
|
+
"ownerId": null,
|
|
37
|
+
"latestPublishedVersion": null,
|
|
38
|
+
"draftVersion": null,
|
|
39
|
+
"versions": null,
|
|
40
|
+
"publishedCourseCount": null,
|
|
41
|
+
"draftCourseCount": null,
|
|
42
|
+
"historicalCourseCount": null,
|
|
43
|
+
"activeLearnerCount": null,
|
|
44
|
+
"createdAt": null,
|
|
45
|
+
"updatedAt": null,
|
|
46
|
+
"archivedAt": null,
|
|
47
|
+
} satisfies GetResource
|
|
48
|
+
|
|
49
|
+
console.log(example)
|
|
50
|
+
|
|
51
|
+
// Convert the instance to a JSON string
|
|
52
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
53
|
+
console.log(exampleJSON)
|
|
54
|
+
|
|
55
|
+
// Parse the JSON string back to an object
|
|
56
|
+
const exampleParsed = JSON.parse(exampleJSON) as GetResource
|
|
57
|
+
console.log(exampleParsed)
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
61
|
+
|
|
62
|
+
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
|
|
2
|
+
# GetResourceList
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`page` | number
|
|
10
|
+
`pageSize` | number
|
|
11
|
+
`totalPages` | number
|
|
12
|
+
`totalItems` | number
|
|
13
|
+
`items` | [Array<GetResource>](GetResource.md)
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import type { GetResourceList } 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 GetResourceList
|
|
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 GetResourceList
|
|
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,44 @@
|
|
|
1
|
+
|
|
2
|
+
# GetResourceUsage
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`resourceId` | string
|
|
10
|
+
`publishedCourseCount` | number
|
|
11
|
+
`draftCourseCount` | number
|
|
12
|
+
`historicalCourseCount` | number
|
|
13
|
+
`activeLearnerCount` | number
|
|
14
|
+
`courses` | [Array<GetResourceUsageCoursesInner>](GetResourceUsageCoursesInner.md)
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import type { GetResourceUsage } from '@easyedu/js-lsm-api'
|
|
20
|
+
|
|
21
|
+
// TODO: Update the object below with actual values
|
|
22
|
+
const example = {
|
|
23
|
+
"resourceId": null,
|
|
24
|
+
"publishedCourseCount": null,
|
|
25
|
+
"draftCourseCount": null,
|
|
26
|
+
"historicalCourseCount": null,
|
|
27
|
+
"activeLearnerCount": null,
|
|
28
|
+
"courses": null,
|
|
29
|
+
} satisfies GetResourceUsage
|
|
30
|
+
|
|
31
|
+
console.log(example)
|
|
32
|
+
|
|
33
|
+
// Convert the instance to a JSON string
|
|
34
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
35
|
+
console.log(exampleJSON)
|
|
36
|
+
|
|
37
|
+
// Parse the JSON string back to an object
|
|
38
|
+
const exampleParsed = JSON.parse(exampleJSON) as GetResourceUsage
|
|
39
|
+
console.log(exampleParsed)
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
43
|
+
|
|
44
|
+
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
|
|
2
|
+
# GetResourceUsageCoursesInner
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`courseId` | string
|
|
10
|
+
`courseVersionId` | string
|
|
11
|
+
`courseVersionNumber` | number
|
|
12
|
+
`courseStatus` | [ContentLibraryVersionStatus](ContentLibraryVersionStatus.md)
|
|
13
|
+
`resourceVersionId` | string
|
|
14
|
+
`resourceVersionNumber` | number
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import type { GetResourceUsageCoursesInner } from '@easyedu/js-lsm-api'
|
|
20
|
+
|
|
21
|
+
// TODO: Update the object below with actual values
|
|
22
|
+
const example = {
|
|
23
|
+
"courseId": null,
|
|
24
|
+
"courseVersionId": null,
|
|
25
|
+
"courseVersionNumber": null,
|
|
26
|
+
"courseStatus": null,
|
|
27
|
+
"resourceVersionId": null,
|
|
28
|
+
"resourceVersionNumber": null,
|
|
29
|
+
} satisfies GetResourceUsageCoursesInner
|
|
30
|
+
|
|
31
|
+
console.log(example)
|
|
32
|
+
|
|
33
|
+
// Convert the instance to a JSON string
|
|
34
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
35
|
+
console.log(exampleJSON)
|
|
36
|
+
|
|
37
|
+
// Parse the JSON string back to an object
|
|
38
|
+
const exampleParsed = JSON.parse(exampleJSON) as GetResourceUsageCoursesInner
|
|
39
|
+
console.log(exampleParsed)
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
43
|
+
|
|
44
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# GetResourceVersionUpload
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`uploadUrl` | string
|
|
10
|
+
`versionId` | string
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { GetResourceVersionUpload } from '@easyedu/js-lsm-api'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"uploadUrl": null,
|
|
20
|
+
"versionId": null,
|
|
21
|
+
} satisfies GetResourceVersionUpload
|
|
22
|
+
|
|
23
|
+
console.log(example)
|
|
24
|
+
|
|
25
|
+
// Convert the instance to a JSON string
|
|
26
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
27
|
+
console.log(exampleJSON)
|
|
28
|
+
|
|
29
|
+
// Parse the JSON string back to an object
|
|
30
|
+
const exampleParsed = JSON.parse(exampleJSON) as GetResourceVersionUpload
|
|
31
|
+
console.log(exampleParsed)
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
35
|
+
|
|
36
|
+
|