@easyedu/js-lsm-api 1.42.0 → 1.44.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.
Files changed (38) hide show
  1. package/.openapi-generator/FILES +4 -0
  2. package/README.md +6 -2
  3. package/dist/apis/CourseApi.d.ts +32 -1
  4. package/dist/apis/CourseApi.js +99 -0
  5. package/dist/esm/apis/CourseApi.d.ts +32 -1
  6. package/dist/esm/apis/CourseApi.js +100 -1
  7. package/dist/esm/models/GetCourseImageUpload.d.ts +32 -0
  8. package/dist/esm/models/GetCourseImageUpload.js +43 -0
  9. package/dist/esm/models/GetQuestion.d.ts +8 -1
  10. package/dist/esm/models/GetQuestion.js +2 -0
  11. package/dist/esm/models/GetQuestionQuizzesInner.d.ts +50 -0
  12. package/dist/esm/models/GetQuestionQuizzesInner.js +55 -0
  13. package/dist/esm/models/PutCourse.d.ts +0 -6
  14. package/dist/esm/models/PutCourse.js +0 -2
  15. package/dist/esm/models/index.d.ts +2 -0
  16. package/dist/esm/models/index.js +2 -0
  17. package/dist/models/GetCourseImageUpload.d.ts +32 -0
  18. package/dist/models/GetCourseImageUpload.js +50 -0
  19. package/dist/models/GetQuestion.d.ts +8 -1
  20. package/dist/models/GetQuestion.js +2 -0
  21. package/dist/models/GetQuestionQuizzesInner.d.ts +50 -0
  22. package/dist/models/GetQuestionQuizzesInner.js +62 -0
  23. package/dist/models/PutCourse.d.ts +0 -6
  24. package/dist/models/PutCourse.js +0 -2
  25. package/dist/models/index.d.ts +2 -0
  26. package/dist/models/index.js +2 -0
  27. package/docs/CourseApi.md +138 -0
  28. package/docs/GetCourseImageUpload.md +34 -0
  29. package/docs/GetQuestion.md +2 -0
  30. package/docs/GetQuestionQuizzesInner.md +40 -0
  31. package/docs/PutCourse.md +0 -2
  32. package/package.json +1 -1
  33. package/src/apis/CourseApi.ts +129 -0
  34. package/src/models/GetCourseImageUpload.ts +66 -0
  35. package/src/models/GetQuestion.ts +15 -1
  36. package/src/models/GetQuestionQuizzesInner.ts +93 -0
  37. package/src/models/PutCourse.ts +0 -8
  38. package/src/models/index.ts +2 -0
@@ -29,7 +29,6 @@ export function PutCourseFromJSONTyped(json, ignoreDiscriminator) {
29
29
  'name': json['name'] == null ? undefined : json['name'],
30
30
  'description': json['description'] == null ? undefined : json['description'],
31
31
  'instructor': json['instructor'] == null ? undefined : json['instructor'],
32
- 'imageUrl': json['image_url'] == null ? undefined : json['image_url'],
33
32
  'published': json['published'] == null ? undefined : json['published'],
34
33
  };
35
34
  }
@@ -44,7 +43,6 @@ export function PutCourseToJSONTyped(value, ignoreDiscriminator = false) {
44
43
  'name': value['name'],
45
44
  'description': value['description'],
46
45
  'instructor': value['instructor'],
47
- 'image_url': value['imageUrl'],
48
46
  'published': value['published'],
49
47
  };
50
48
  }
@@ -39,6 +39,7 @@ export * from './GetCourseEnrollmentList';
39
39
  export * from './GetCourseEnrollmentListItem';
40
40
  export * from './GetCourseExport';
41
41
  export * from './GetCourseExportList';
42
+ export * from './GetCourseImageUpload';
42
43
  export * from './GetCourseList';
43
44
  export * from './GetCourseReportingBasic';
44
45
  export * from './GetCourseStudentReporting';
@@ -72,6 +73,7 @@ export * from './GetQuestion';
72
73
  export * from './GetQuestionAnswerChoicesInner';
73
74
  export * from './GetQuestionList';
74
75
  export * from './GetQuestionListFilters';
76
+ export * from './GetQuestionQuizzesInner';
75
77
  export * from './GetQuiz';
76
78
  export * from './GetQuizAttempt';
77
79
  export * from './GetQuizAttemptAnalytics';
@@ -41,6 +41,7 @@ export * from './GetCourseEnrollmentList';
41
41
  export * from './GetCourseEnrollmentListItem';
42
42
  export * from './GetCourseExport';
43
43
  export * from './GetCourseExportList';
44
+ export * from './GetCourseImageUpload';
44
45
  export * from './GetCourseList';
45
46
  export * from './GetCourseReportingBasic';
46
47
  export * from './GetCourseStudentReporting';
@@ -74,6 +75,7 @@ export * from './GetQuestion';
74
75
  export * from './GetQuestionAnswerChoicesInner';
75
76
  export * from './GetQuestionList';
76
77
  export * from './GetQuestionListFilters';
78
+ export * from './GetQuestionQuizzesInner';
77
79
  export * from './GetQuiz';
78
80
  export * from './GetQuizAttempt';
79
81
  export * from './GetQuizAttemptAnalytics';
@@ -0,0 +1,32 @@
1
+ /**
2
+ * LMS API
3
+ * LMS API
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface GetCourseImageUpload
16
+ */
17
+ export interface GetCourseImageUpload {
18
+ /**
19
+ * Presigned URL for the uploaded course image
20
+ * @type {string}
21
+ * @memberof GetCourseImageUpload
22
+ */
23
+ imageUrl: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the GetCourseImageUpload interface.
27
+ */
28
+ export declare function instanceOfGetCourseImageUpload(value: object): value is GetCourseImageUpload;
29
+ export declare function GetCourseImageUploadFromJSON(json: any): GetCourseImageUpload;
30
+ export declare function GetCourseImageUploadFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetCourseImageUpload;
31
+ export declare function GetCourseImageUploadToJSON(json: any): GetCourseImageUpload;
32
+ export declare function GetCourseImageUploadToJSONTyped(value?: GetCourseImageUpload | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * LMS API
6
+ * LMS API
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfGetCourseImageUpload = instanceOfGetCourseImageUpload;
17
+ exports.GetCourseImageUploadFromJSON = GetCourseImageUploadFromJSON;
18
+ exports.GetCourseImageUploadFromJSONTyped = GetCourseImageUploadFromJSONTyped;
19
+ exports.GetCourseImageUploadToJSON = GetCourseImageUploadToJSON;
20
+ exports.GetCourseImageUploadToJSONTyped = GetCourseImageUploadToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the GetCourseImageUpload interface.
23
+ */
24
+ function instanceOfGetCourseImageUpload(value) {
25
+ if (!('imageUrl' in value) || value['imageUrl'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function GetCourseImageUploadFromJSON(json) {
30
+ return GetCourseImageUploadFromJSONTyped(json, false);
31
+ }
32
+ function GetCourseImageUploadFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'imageUrl': json['image_url'],
38
+ };
39
+ }
40
+ function GetCourseImageUploadToJSON(json) {
41
+ return GetCourseImageUploadToJSONTyped(json, false);
42
+ }
43
+ function GetCourseImageUploadToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'image_url': value['imageUrl'],
49
+ };
50
+ }
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { GetQuestionAnswerChoicesInner } from './GetQuestionAnswerChoicesInner';
13
+ import type { GetQuestionQuizzesInner } from './GetQuestionQuizzesInner';
13
14
  /**
14
15
  *
15
16
  * @export
@@ -106,6 +107,12 @@ export interface GetQuestion {
106
107
  * @memberof GetQuestion
107
108
  */
108
109
  readonly quizCount?: number;
110
+ /**
111
+ * Quizzes that use this question
112
+ * @type {Array<GetQuestionQuizzesInner>}
113
+ * @memberof GetQuestion
114
+ */
115
+ readonly quizzes?: Array<GetQuestionQuizzesInner>;
109
116
  }
110
117
  /**
111
118
  * @export
@@ -135,4 +142,4 @@ export declare function instanceOfGetQuestion(value: object): value is GetQuesti
135
142
  export declare function GetQuestionFromJSON(json: any): GetQuestion;
136
143
  export declare function GetQuestionFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetQuestion;
137
144
  export declare function GetQuestionToJSON(json: any): GetQuestion;
138
- export declare function GetQuestionToJSONTyped(value?: Omit<GetQuestion, 'id' | 'created_date' | 'updated_date' | 'created_by' | 'quiz_count'> | null, ignoreDiscriminator?: boolean): any;
145
+ export declare function GetQuestionToJSONTyped(value?: Omit<GetQuestion, 'id' | 'created_date' | 'updated_date' | 'created_by' | 'quiz_count' | 'quizzes'> | null, ignoreDiscriminator?: boolean): any;
@@ -20,6 +20,7 @@ exports.GetQuestionFromJSONTyped = GetQuestionFromJSONTyped;
20
20
  exports.GetQuestionToJSON = GetQuestionToJSON;
21
21
  exports.GetQuestionToJSONTyped = GetQuestionToJSONTyped;
22
22
  const GetQuestionAnswerChoicesInner_1 = require("./GetQuestionAnswerChoicesInner");
23
+ const GetQuestionQuizzesInner_1 = require("./GetQuestionQuizzesInner");
23
24
  /**
24
25
  * @export
25
26
  */
@@ -82,6 +83,7 @@ function GetQuestionFromJSONTyped(json, ignoreDiscriminator) {
82
83
  'updatedDate': (new Date(json['updated_date'])),
83
84
  'createdBy': json['created_by'] == null ? undefined : json['created_by'],
84
85
  'quizCount': json['quiz_count'] == null ? undefined : json['quiz_count'],
86
+ 'quizzes': json['quizzes'] == null ? undefined : (json['quizzes'].map(GetQuestionQuizzesInner_1.GetQuestionQuizzesInnerFromJSON)),
85
87
  };
86
88
  }
87
89
  function GetQuestionToJSON(json) {
@@ -0,0 +1,50 @@
1
+ /**
2
+ * LMS API
3
+ * LMS API
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface GetQuestionQuizzesInner
16
+ */
17
+ export interface GetQuestionQuizzesInner {
18
+ /**
19
+ * Quiz external identifier
20
+ * @type {string}
21
+ * @memberof GetQuestionQuizzesInner
22
+ */
23
+ quizId: string;
24
+ /**
25
+ * Quiz name
26
+ * @type {string}
27
+ * @memberof GetQuestionQuizzesInner
28
+ */
29
+ quizName: string;
30
+ /**
31
+ * Module external identifier
32
+ * @type {string}
33
+ * @memberof GetQuestionQuizzesInner
34
+ */
35
+ moduleId: string;
36
+ /**
37
+ * Course external identifier
38
+ * @type {string}
39
+ * @memberof GetQuestionQuizzesInner
40
+ */
41
+ courseId: string;
42
+ }
43
+ /**
44
+ * Check if a given object implements the GetQuestionQuizzesInner interface.
45
+ */
46
+ export declare function instanceOfGetQuestionQuizzesInner(value: object): value is GetQuestionQuizzesInner;
47
+ export declare function GetQuestionQuizzesInnerFromJSON(json: any): GetQuestionQuizzesInner;
48
+ export declare function GetQuestionQuizzesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetQuestionQuizzesInner;
49
+ export declare function GetQuestionQuizzesInnerToJSON(json: any): GetQuestionQuizzesInner;
50
+ export declare function GetQuestionQuizzesInnerToJSONTyped(value?: GetQuestionQuizzesInner | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * LMS API
6
+ * LMS API
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfGetQuestionQuizzesInner = instanceOfGetQuestionQuizzesInner;
17
+ exports.GetQuestionQuizzesInnerFromJSON = GetQuestionQuizzesInnerFromJSON;
18
+ exports.GetQuestionQuizzesInnerFromJSONTyped = GetQuestionQuizzesInnerFromJSONTyped;
19
+ exports.GetQuestionQuizzesInnerToJSON = GetQuestionQuizzesInnerToJSON;
20
+ exports.GetQuestionQuizzesInnerToJSONTyped = GetQuestionQuizzesInnerToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the GetQuestionQuizzesInner interface.
23
+ */
24
+ function instanceOfGetQuestionQuizzesInner(value) {
25
+ if (!('quizId' in value) || value['quizId'] === undefined)
26
+ return false;
27
+ if (!('quizName' in value) || value['quizName'] === undefined)
28
+ return false;
29
+ if (!('moduleId' in value) || value['moduleId'] === undefined)
30
+ return false;
31
+ if (!('courseId' in value) || value['courseId'] === undefined)
32
+ return false;
33
+ return true;
34
+ }
35
+ function GetQuestionQuizzesInnerFromJSON(json) {
36
+ return GetQuestionQuizzesInnerFromJSONTyped(json, false);
37
+ }
38
+ function GetQuestionQuizzesInnerFromJSONTyped(json, ignoreDiscriminator) {
39
+ if (json == null) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'quizId': json['quiz_id'],
44
+ 'quizName': json['quiz_name'],
45
+ 'moduleId': json['module_id'],
46
+ 'courseId': json['course_id'],
47
+ };
48
+ }
49
+ function GetQuestionQuizzesInnerToJSON(json) {
50
+ return GetQuestionQuizzesInnerToJSONTyped(json, false);
51
+ }
52
+ function GetQuestionQuizzesInnerToJSONTyped(value, ignoreDiscriminator = false) {
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+ 'quiz_id': value['quizId'],
58
+ 'quiz_name': value['quizName'],
59
+ 'module_id': value['moduleId'],
60
+ 'course_id': value['courseId'],
61
+ };
62
+ }
@@ -39,12 +39,6 @@ export interface PutCourse {
39
39
  * @memberof PutCourse
40
40
  */
41
41
  instructor?: string;
42
- /**
43
- *
44
- * @type {string}
45
- * @memberof PutCourse
46
- */
47
- imageUrl?: string;
48
42
  /**
49
43
  * Whether the course is published and visible to students
50
44
  * @type {boolean}
@@ -36,7 +36,6 @@ function PutCourseFromJSONTyped(json, ignoreDiscriminator) {
36
36
  'name': json['name'] == null ? undefined : json['name'],
37
37
  'description': json['description'] == null ? undefined : json['description'],
38
38
  'instructor': json['instructor'] == null ? undefined : json['instructor'],
39
- 'imageUrl': json['image_url'] == null ? undefined : json['image_url'],
40
39
  'published': json['published'] == null ? undefined : json['published'],
41
40
  };
42
41
  }
@@ -51,7 +50,6 @@ function PutCourseToJSONTyped(value, ignoreDiscriminator = false) {
51
50
  'name': value['name'],
52
51
  'description': value['description'],
53
52
  'instructor': value['instructor'],
54
- 'image_url': value['imageUrl'],
55
53
  'published': value['published'],
56
54
  };
57
55
  }
@@ -39,6 +39,7 @@ export * from './GetCourseEnrollmentList';
39
39
  export * from './GetCourseEnrollmentListItem';
40
40
  export * from './GetCourseExport';
41
41
  export * from './GetCourseExportList';
42
+ export * from './GetCourseImageUpload';
42
43
  export * from './GetCourseList';
43
44
  export * from './GetCourseReportingBasic';
44
45
  export * from './GetCourseStudentReporting';
@@ -72,6 +73,7 @@ export * from './GetQuestion';
72
73
  export * from './GetQuestionAnswerChoicesInner';
73
74
  export * from './GetQuestionList';
74
75
  export * from './GetQuestionListFilters';
76
+ export * from './GetQuestionQuizzesInner';
75
77
  export * from './GetQuiz';
76
78
  export * from './GetQuizAttempt';
77
79
  export * from './GetQuizAttemptAnalytics';
@@ -57,6 +57,7 @@ __exportStar(require("./GetCourseEnrollmentList"), exports);
57
57
  __exportStar(require("./GetCourseEnrollmentListItem"), exports);
58
58
  __exportStar(require("./GetCourseExport"), exports);
59
59
  __exportStar(require("./GetCourseExportList"), exports);
60
+ __exportStar(require("./GetCourseImageUpload"), exports);
60
61
  __exportStar(require("./GetCourseList"), exports);
61
62
  __exportStar(require("./GetCourseReportingBasic"), exports);
62
63
  __exportStar(require("./GetCourseStudentReporting"), exports);
@@ -90,6 +91,7 @@ __exportStar(require("./GetQuestion"), exports);
90
91
  __exportStar(require("./GetQuestionAnswerChoicesInner"), exports);
91
92
  __exportStar(require("./GetQuestionList"), exports);
92
93
  __exportStar(require("./GetQuestionListFilters"), exports);
94
+ __exportStar(require("./GetQuestionQuizzesInner"), exports);
93
95
  __exportStar(require("./GetQuiz"), exports);
94
96
  __exportStar(require("./GetQuizAttempt"), exports);
95
97
  __exportStar(require("./GetQuizAttemptAnalytics"), exports);
package/docs/CourseApi.md CHANGED
@@ -4,6 +4,7 @@ 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
+ | [**deleteCourseImage**](CourseApi.md#deletecourseimage) | **DELETE** /courses/{courseId}/image | Remove the course image |
7
8
  | [**getCourse**](CourseApi.md#getcourse) | **GET** /courses/{courseId} | get course |
8
9
  | [**getCourseEnrollment**](CourseApi.md#getcourseenrollment) | **GET** /courses/{courseId}/enrollments/{enrollmentId} | Get a specific course enrollment |
9
10
  | [**getCourseEnrollments**](CourseApi.md#getcourseenrollments) | **GET** /courses/{courseId}/enrollments | Get course enrollments |
@@ -14,11 +15,78 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
14
15
  | [**postCourse**](CourseApi.md#postcourse) | **POST** /courses | Post a new course |
15
16
  | [**postCourseEnrollment**](CourseApi.md#postcourseenrollment) | **POST** /courses/{courseId}/enrollments | Create a new course enrollment |
16
17
  | [**postCourseExport**](CourseApi.md#postcourseexport) | **POST** /courses/{courseId}/exports | Create a new SCORM export for a course |
18
+ | [**postCourseImageUpload**](CourseApi.md#postcourseimageupload) | **POST** /courses/{courseId}/image | Upload a course image |
17
19
  | [**putCourse**](CourseApi.md#putcourse) | **PUT** /courses/{courseId} | Update a course by id |
18
20
  | [**putCourseEnrollment**](CourseApi.md#putcourseenrollment) | **PUT** /courses/{courseId}/enrollments/{enrollmentId} | Update a course enrollment |
19
21
 
20
22
 
21
23
 
24
+ ## deleteCourseImage
25
+
26
+ > deleteCourseImage(courseId)
27
+
28
+ Remove the course image
29
+
30
+ ### Example
31
+
32
+ ```ts
33
+ import {
34
+ Configuration,
35
+ CourseApi,
36
+ } from '@easyedu/js-lsm-api';
37
+ import type { DeleteCourseImageRequest } from '@easyedu/js-lsm-api';
38
+
39
+ async function example() {
40
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
41
+ const api = new CourseApi();
42
+
43
+ const body = {
44
+ // string
45
+ courseId: courseId_example,
46
+ } satisfies DeleteCourseImageRequest;
47
+
48
+ try {
49
+ const data = await api.deleteCourseImage(body);
50
+ console.log(data);
51
+ } catch (error) {
52
+ console.error(error);
53
+ }
54
+ }
55
+
56
+ // Run the test
57
+ example().catch(console.error);
58
+ ```
59
+
60
+ ### Parameters
61
+
62
+
63
+ | Name | Type | Description | Notes |
64
+ |------------- | ------------- | ------------- | -------------|
65
+ | **courseId** | `string` | | [Defaults to `undefined`] |
66
+
67
+ ### Return type
68
+
69
+ `void` (Empty response body)
70
+
71
+ ### Authorization
72
+
73
+ No authorization required
74
+
75
+ ### HTTP request headers
76
+
77
+ - **Content-Type**: Not defined
78
+ - **Accept**: Not defined
79
+
80
+
81
+ ### HTTP response details
82
+ | Status code | Description | Response headers |
83
+ |-------------|-------------|------------------|
84
+ | **204** | Image removed successfully | - |
85
+ | **404** | Course not found | - |
86
+
87
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
88
+
89
+
22
90
  ## getCourse
23
91
 
24
92
  > GetCourse getCourse(courseId)
@@ -705,6 +773,76 @@ No authorization required
705
773
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
706
774
 
707
775
 
776
+ ## postCourseImageUpload
777
+
778
+ > GetCourseImageUpload postCourseImageUpload(courseId, file)
779
+
780
+ Upload a course image
781
+
782
+ ### Example
783
+
784
+ ```ts
785
+ import {
786
+ Configuration,
787
+ CourseApi,
788
+ } from '@easyedu/js-lsm-api';
789
+ import type { PostCourseImageUploadRequest } from '@easyedu/js-lsm-api';
790
+
791
+ async function example() {
792
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
793
+ const api = new CourseApi();
794
+
795
+ const body = {
796
+ // string
797
+ courseId: courseId_example,
798
+ // Blob | Course image file (PNG, JPEG, or SVG). Max 5MB.
799
+ file: BINARY_DATA_HERE,
800
+ } satisfies PostCourseImageUploadRequest;
801
+
802
+ try {
803
+ const data = await api.postCourseImageUpload(body);
804
+ console.log(data);
805
+ } catch (error) {
806
+ console.error(error);
807
+ }
808
+ }
809
+
810
+ // Run the test
811
+ example().catch(console.error);
812
+ ```
813
+
814
+ ### Parameters
815
+
816
+
817
+ | Name | Type | Description | Notes |
818
+ |------------- | ------------- | ------------- | -------------|
819
+ | **courseId** | `string` | | [Defaults to `undefined`] |
820
+ | **file** | `Blob` | Course image file (PNG, JPEG, or SVG). Max 5MB. | [Defaults to `undefined`] |
821
+
822
+ ### Return type
823
+
824
+ [**GetCourseImageUpload**](GetCourseImageUpload.md)
825
+
826
+ ### Authorization
827
+
828
+ No authorization required
829
+
830
+ ### HTTP request headers
831
+
832
+ - **Content-Type**: `multipart/form-data`
833
+ - **Accept**: `application/json`
834
+
835
+
836
+ ### HTTP response details
837
+ | Status code | Description | Response headers |
838
+ |-------------|-------------|------------------|
839
+ | **200** | Image uploaded successfully | - |
840
+ | **400** | Invalid file type or file too large | - |
841
+ | **404** | Course not found | - |
842
+
843
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
844
+
845
+
708
846
  ## putCourse
709
847
 
710
848
  > GetCourse putCourse(courseId, putCourse)
@@ -0,0 +1,34 @@
1
+
2
+ # GetCourseImageUpload
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `imageUrl` | string
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { GetCourseImageUpload } from '@easyedu/js-lsm-api'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "imageUrl": null,
19
+ } satisfies GetCourseImageUpload
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 GetCourseImageUpload
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
+
@@ -21,6 +21,7 @@ Name | Type
21
21
  `updatedDate` | Date
22
22
  `createdBy` | string
23
23
  `quizCount` | number
24
+ `quizzes` | [Array&lt;GetQuestionQuizzesInner&gt;](GetQuestionQuizzesInner.md)
24
25
 
25
26
  ## Example
26
27
 
@@ -44,6 +45,7 @@ const example = {
44
45
  "updatedDate": null,
45
46
  "createdBy": null,
46
47
  "quizCount": null,
48
+ "quizzes": null,
47
49
  } satisfies GetQuestion
48
50
 
49
51
  console.log(example)
@@ -0,0 +1,40 @@
1
+
2
+ # GetQuestionQuizzesInner
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `quizId` | string
10
+ `quizName` | string
11
+ `moduleId` | string
12
+ `courseId` | string
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import type { GetQuestionQuizzesInner } from '@easyedu/js-lsm-api'
18
+
19
+ // TODO: Update the object below with actual values
20
+ const example = {
21
+ "quizId": null,
22
+ "quizName": null,
23
+ "moduleId": null,
24
+ "courseId": null,
25
+ } satisfies GetQuestionQuizzesInner
26
+
27
+ console.log(example)
28
+
29
+ // Convert the instance to a JSON string
30
+ const exampleJSON: string = JSON.stringify(example)
31
+ console.log(exampleJSON)
32
+
33
+ // Parse the JSON string back to an object
34
+ const exampleParsed = JSON.parse(exampleJSON) as GetQuestionQuizzesInner
35
+ console.log(exampleParsed)
36
+ ```
37
+
38
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
39
+
40
+
package/docs/PutCourse.md CHANGED
@@ -10,7 +10,6 @@ Name | Type
10
10
  `name` | string
11
11
  `description` | string
12
12
  `instructor` | string
13
- `imageUrl` | string
14
13
  `published` | boolean
15
14
 
16
15
  ## Example
@@ -24,7 +23,6 @@ const example = {
24
23
  "name": null,
25
24
  "description": null,
26
25
  "instructor": null,
27
- "imageUrl": null,
28
26
  "published": null,
29
27
  } satisfies PutCourse
30
28
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easyedu/js-lsm-api",
3
- "version": "1.42.0",
3
+ "version": "1.44.0",
4
4
  "description": "OpenAPI client for @easyedu/js-lsm-api",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {