@easyedu/js-lsm-api 1.43.0 → 1.45.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.
@@ -80,6 +80,7 @@ docs/GetQuestion.md
80
80
  docs/GetQuestionAnswerChoicesInner.md
81
81
  docs/GetQuestionList.md
82
82
  docs/GetQuestionListFilters.md
83
+ docs/GetQuestionQuizzesInner.md
83
84
  docs/GetQuiz.md
84
85
  docs/GetQuizAttempt.md
85
86
  docs/GetQuizAttemptAnalytics.md
@@ -331,6 +332,7 @@ src/models/GetQuestion.ts
331
332
  src/models/GetQuestionAnswerChoicesInner.ts
332
333
  src/models/GetQuestionList.ts
333
334
  src/models/GetQuestionListFilters.ts
335
+ src/models/GetQuestionQuizzesInner.ts
334
336
  src/models/GetQuiz.ts
335
337
  src/models/GetQuizAttempt.ts
336
338
  src/models/GetQuizAttemptAnalytics.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @easyedu/js-lsm-api@1.43.0
1
+ # @easyedu/js-lsm-api@1.45.0
2
2
 
3
3
  A TypeScript SDK client for the sbzw93t49b.execute-api.us-east-2.amazonaws.com API.
4
4
 
@@ -251,6 +251,7 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
251
251
  - [GetQuestionAnswerChoicesInner](docs/GetQuestionAnswerChoicesInner.md)
252
252
  - [GetQuestionList](docs/GetQuestionList.md)
253
253
  - [GetQuestionListFilters](docs/GetQuestionListFilters.md)
254
+ - [GetQuestionQuizzesInner](docs/GetQuestionQuizzesInner.md)
254
255
  - [GetQuiz](docs/GetQuiz.md)
255
256
  - [GetQuizAttempt](docs/GetQuizAttempt.md)
256
257
  - [GetQuizAttemptAnalytics](docs/GetQuizAttemptAnalytics.md)
@@ -416,7 +417,7 @@ and is automatically generated by the
416
417
  [OpenAPI Generator](https://openapi-generator.tech) project:
417
418
 
418
419
  - API version: `1.0.0`
419
- - Package version: `1.43.0`
420
+ - Package version: `1.45.0`
420
421
  - Generator version: `7.21.0`
421
422
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
422
423
 
@@ -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;
@@ -12,6 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  import { GetQuestionAnswerChoicesInnerFromJSON, GetQuestionAnswerChoicesInnerToJSON, } from './GetQuestionAnswerChoicesInner';
15
+ import { GetQuestionQuizzesInnerFromJSON, } from './GetQuestionQuizzesInner';
15
16
  /**
16
17
  * @export
17
18
  */
@@ -74,6 +75,7 @@ export function GetQuestionFromJSONTyped(json, ignoreDiscriminator) {
74
75
  'updatedDate': (new Date(json['updated_date'])),
75
76
  'createdBy': json['created_by'] == null ? undefined : json['created_by'],
76
77
  'quizCount': json['quiz_count'] == null ? undefined : json['quiz_count'],
78
+ 'quizzes': json['quizzes'] == null ? undefined : (json['quizzes'].map(GetQuestionQuizzesInnerFromJSON)),
77
79
  };
78
80
  }
79
81
  export 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,55 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * LMS API
5
+ * LMS API
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the GetQuestionQuizzesInner interface.
16
+ */
17
+ export function instanceOfGetQuestionQuizzesInner(value) {
18
+ if (!('quizId' in value) || value['quizId'] === undefined)
19
+ return false;
20
+ if (!('quizName' in value) || value['quizName'] === undefined)
21
+ return false;
22
+ if (!('moduleId' in value) || value['moduleId'] === undefined)
23
+ return false;
24
+ if (!('courseId' in value) || value['courseId'] === undefined)
25
+ return false;
26
+ return true;
27
+ }
28
+ export function GetQuestionQuizzesInnerFromJSON(json) {
29
+ return GetQuestionQuizzesInnerFromJSONTyped(json, false);
30
+ }
31
+ export function GetQuestionQuizzesInnerFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'quizId': json['quiz_id'],
37
+ 'quizName': json['quiz_name'],
38
+ 'moduleId': json['module_id'],
39
+ 'courseId': json['course_id'],
40
+ };
41
+ }
42
+ export function GetQuestionQuizzesInnerToJSON(json) {
43
+ return GetQuestionQuizzesInnerToJSONTyped(json, false);
44
+ }
45
+ export function GetQuestionQuizzesInnerToJSONTyped(value, ignoreDiscriminator = false) {
46
+ if (value == null) {
47
+ return value;
48
+ }
49
+ return {
50
+ 'quiz_id': value['quizId'],
51
+ 'quiz_name': value['quizName'],
52
+ 'module_id': value['moduleId'],
53
+ 'course_id': value['courseId'],
54
+ };
55
+ }
@@ -39,7 +39,21 @@ export interface PostCourseEnrollment {
39
39
  * @memberof PostCourseEnrollment
40
40
  */
41
41
  notes?: string | null;
42
+ /**
43
+ * The role/type of the user in this enrollment
44
+ * @type {PostCourseEnrollmentUserTypeEnum}
45
+ * @memberof PostCourseEnrollment
46
+ */
47
+ userType?: PostCourseEnrollmentUserTypeEnum | null;
42
48
  }
49
+ /**
50
+ * @export
51
+ */
52
+ export declare const PostCourseEnrollmentUserTypeEnum: {
53
+ readonly Student: "Student";
54
+ readonly Instructor: "Instructor";
55
+ };
56
+ export type PostCourseEnrollmentUserTypeEnum = typeof PostCourseEnrollmentUserTypeEnum[keyof typeof PostCourseEnrollmentUserTypeEnum];
43
57
  /**
44
58
  * Check if a given object implements the PostCourseEnrollment interface.
45
59
  */
@@ -11,6 +11,13 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ /**
15
+ * @export
16
+ */
17
+ export const PostCourseEnrollmentUserTypeEnum = {
18
+ Student: 'Student',
19
+ Instructor: 'Instructor'
20
+ };
14
21
  /**
15
22
  * Check if a given object implements the PostCourseEnrollment interface.
16
23
  */
@@ -33,6 +40,7 @@ export function PostCourseEnrollmentFromJSONTyped(json, ignoreDiscriminator) {
33
40
  'enrollmentDateStart': json['enrollment_date_start'],
34
41
  'enrollmentDateEnd': json['enrollment_date_end'] == null ? undefined : json['enrollment_date_end'],
35
42
  'notes': json['notes'] == null ? undefined : json['notes'],
43
+ 'userType': json['user_type'] == null ? undefined : json['user_type'],
36
44
  };
37
45
  }
38
46
  export function PostCourseEnrollmentToJSON(json) {
@@ -47,5 +55,6 @@ export function PostCourseEnrollmentToJSONTyped(value, ignoreDiscriminator = fal
47
55
  'enrollment_date_start': value['enrollmentDateStart'],
48
56
  'enrollment_date_end': value['enrollmentDateEnd'],
49
57
  'notes': value['notes'],
58
+ 'user_type': value['userType'],
50
59
  };
51
60
  }
@@ -73,6 +73,7 @@ export * from './GetQuestion';
73
73
  export * from './GetQuestionAnswerChoicesInner';
74
74
  export * from './GetQuestionList';
75
75
  export * from './GetQuestionListFilters';
76
+ export * from './GetQuestionQuizzesInner';
76
77
  export * from './GetQuiz';
77
78
  export * from './GetQuizAttempt';
78
79
  export * from './GetQuizAttemptAnalytics';
@@ -75,6 +75,7 @@ export * from './GetQuestion';
75
75
  export * from './GetQuestionAnswerChoicesInner';
76
76
  export * from './GetQuestionList';
77
77
  export * from './GetQuestionListFilters';
78
+ export * from './GetQuestionQuizzesInner';
78
79
  export * from './GetQuiz';
79
80
  export * from './GetQuizAttempt';
80
81
  export * from './GetQuizAttemptAnalytics';
@@ -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,7 +39,21 @@ export interface PostCourseEnrollment {
39
39
  * @memberof PostCourseEnrollment
40
40
  */
41
41
  notes?: string | null;
42
+ /**
43
+ * The role/type of the user in this enrollment
44
+ * @type {PostCourseEnrollmentUserTypeEnum}
45
+ * @memberof PostCourseEnrollment
46
+ */
47
+ userType?: PostCourseEnrollmentUserTypeEnum | null;
42
48
  }
49
+ /**
50
+ * @export
51
+ */
52
+ export declare const PostCourseEnrollmentUserTypeEnum: {
53
+ readonly Student: "Student";
54
+ readonly Instructor: "Instructor";
55
+ };
56
+ export type PostCourseEnrollmentUserTypeEnum = typeof PostCourseEnrollmentUserTypeEnum[keyof typeof PostCourseEnrollmentUserTypeEnum];
43
57
  /**
44
58
  * Check if a given object implements the PostCourseEnrollment interface.
45
59
  */
@@ -13,11 +13,19 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.PostCourseEnrollmentUserTypeEnum = void 0;
16
17
  exports.instanceOfPostCourseEnrollment = instanceOfPostCourseEnrollment;
17
18
  exports.PostCourseEnrollmentFromJSON = PostCourseEnrollmentFromJSON;
18
19
  exports.PostCourseEnrollmentFromJSONTyped = PostCourseEnrollmentFromJSONTyped;
19
20
  exports.PostCourseEnrollmentToJSON = PostCourseEnrollmentToJSON;
20
21
  exports.PostCourseEnrollmentToJSONTyped = PostCourseEnrollmentToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.PostCourseEnrollmentUserTypeEnum = {
26
+ Student: 'Student',
27
+ Instructor: 'Instructor'
28
+ };
21
29
  /**
22
30
  * Check if a given object implements the PostCourseEnrollment interface.
23
31
  */
@@ -40,6 +48,7 @@ function PostCourseEnrollmentFromJSONTyped(json, ignoreDiscriminator) {
40
48
  'enrollmentDateStart': json['enrollment_date_start'],
41
49
  'enrollmentDateEnd': json['enrollment_date_end'] == null ? undefined : json['enrollment_date_end'],
42
50
  'notes': json['notes'] == null ? undefined : json['notes'],
51
+ 'userType': json['user_type'] == null ? undefined : json['user_type'],
43
52
  };
44
53
  }
45
54
  function PostCourseEnrollmentToJSON(json) {
@@ -54,5 +63,6 @@ function PostCourseEnrollmentToJSONTyped(value, ignoreDiscriminator = false) {
54
63
  'enrollment_date_start': value['enrollmentDateStart'],
55
64
  'enrollment_date_end': value['enrollmentDateEnd'],
56
65
  'notes': value['notes'],
66
+ 'user_type': value['userType'],
57
67
  };
58
68
  }
@@ -73,6 +73,7 @@ export * from './GetQuestion';
73
73
  export * from './GetQuestionAnswerChoicesInner';
74
74
  export * from './GetQuestionList';
75
75
  export * from './GetQuestionListFilters';
76
+ export * from './GetQuestionQuizzesInner';
76
77
  export * from './GetQuiz';
77
78
  export * from './GetQuizAttempt';
78
79
  export * from './GetQuizAttemptAnalytics';
@@ -91,6 +91,7 @@ __exportStar(require("./GetQuestion"), exports);
91
91
  __exportStar(require("./GetQuestionAnswerChoicesInner"), exports);
92
92
  __exportStar(require("./GetQuestionList"), exports);
93
93
  __exportStar(require("./GetQuestionListFilters"), exports);
94
+ __exportStar(require("./GetQuestionQuizzesInner"), exports);
94
95
  __exportStar(require("./GetQuiz"), exports);
95
96
  __exportStar(require("./GetQuizAttempt"), exports);
96
97
  __exportStar(require("./GetQuizAttemptAnalytics"), exports);
@@ -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
+
@@ -10,6 +10,7 @@ Name | Type
10
10
  `enrollmentDateStart` | number
11
11
  `enrollmentDateEnd` | number
12
12
  `notes` | string
13
+ `userType` | string
13
14
 
14
15
  ## Example
15
16
 
@@ -22,6 +23,7 @@ const example = {
22
23
  "enrollmentDateStart": null,
23
24
  "enrollmentDateEnd": null,
24
25
  "notes": null,
26
+ "userType": null,
25
27
  } satisfies PostCourseEnrollment
26
28
 
27
29
  console.log(example)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easyedu/js-lsm-api",
3
- "version": "1.43.0",
3
+ "version": "1.45.0",
4
4
  "description": "OpenAPI client for @easyedu/js-lsm-api",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -20,6 +20,13 @@ import {
20
20
  GetQuestionAnswerChoicesInnerToJSON,
21
21
  GetQuestionAnswerChoicesInnerToJSONTyped,
22
22
  } from './GetQuestionAnswerChoicesInner';
23
+ import type { GetQuestionQuizzesInner } from './GetQuestionQuizzesInner';
24
+ import {
25
+ GetQuestionQuizzesInnerFromJSON,
26
+ GetQuestionQuizzesInnerFromJSONTyped,
27
+ GetQuestionQuizzesInnerToJSON,
28
+ GetQuestionQuizzesInnerToJSONTyped,
29
+ } from './GetQuestionQuizzesInner';
23
30
 
24
31
  /**
25
32
  *
@@ -117,6 +124,12 @@ export interface GetQuestion {
117
124
  * @memberof GetQuestion
118
125
  */
119
126
  readonly quizCount?: number;
127
+ /**
128
+ * Quizzes that use this question
129
+ * @type {Array<GetQuestionQuizzesInner>}
130
+ * @memberof GetQuestion
131
+ */
132
+ readonly quizzes?: Array<GetQuestionQuizzesInner>;
120
133
  }
121
134
 
122
135
 
@@ -183,6 +196,7 @@ export function GetQuestionFromJSONTyped(json: any, ignoreDiscriminator: boolean
183
196
  'updatedDate': (new Date(json['updated_date'])),
184
197
  'createdBy': json['created_by'] == null ? undefined : json['created_by'],
185
198
  'quizCount': json['quiz_count'] == null ? undefined : json['quiz_count'],
199
+ 'quizzes': json['quizzes'] == null ? undefined : ((json['quizzes'] as Array<any>).map(GetQuestionQuizzesInnerFromJSON)),
186
200
  };
187
201
  }
188
202
 
@@ -190,7 +204,7 @@ export function GetQuestionToJSON(json: any): GetQuestion {
190
204
  return GetQuestionToJSONTyped(json, false);
191
205
  }
192
206
 
193
- export function GetQuestionToJSONTyped(value?: Omit<GetQuestion, 'id'|'created_date'|'updated_date'|'created_by'|'quiz_count'> | null, ignoreDiscriminator: boolean = false): any {
207
+ export function GetQuestionToJSONTyped(value?: Omit<GetQuestion, 'id'|'created_date'|'updated_date'|'created_by'|'quiz_count'|'quizzes'> | null, ignoreDiscriminator: boolean = false): any {
194
208
  if (value == null) {
195
209
  return value;
196
210
  }
@@ -0,0 +1,93 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * LMS API
5
+ * LMS API
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface GetQuestionQuizzesInner
20
+ */
21
+ export interface GetQuestionQuizzesInner {
22
+ /**
23
+ * Quiz external identifier
24
+ * @type {string}
25
+ * @memberof GetQuestionQuizzesInner
26
+ */
27
+ quizId: string;
28
+ /**
29
+ * Quiz name
30
+ * @type {string}
31
+ * @memberof GetQuestionQuizzesInner
32
+ */
33
+ quizName: string;
34
+ /**
35
+ * Module external identifier
36
+ * @type {string}
37
+ * @memberof GetQuestionQuizzesInner
38
+ */
39
+ moduleId: string;
40
+ /**
41
+ * Course external identifier
42
+ * @type {string}
43
+ * @memberof GetQuestionQuizzesInner
44
+ */
45
+ courseId: string;
46
+ }
47
+
48
+ /**
49
+ * Check if a given object implements the GetQuestionQuizzesInner interface.
50
+ */
51
+ export function instanceOfGetQuestionQuizzesInner(value: object): value is GetQuestionQuizzesInner {
52
+ if (!('quizId' in value) || value['quizId'] === undefined) return false;
53
+ if (!('quizName' in value) || value['quizName'] === undefined) return false;
54
+ if (!('moduleId' in value) || value['moduleId'] === undefined) return false;
55
+ if (!('courseId' in value) || value['courseId'] === undefined) return false;
56
+ return true;
57
+ }
58
+
59
+ export function GetQuestionQuizzesInnerFromJSON(json: any): GetQuestionQuizzesInner {
60
+ return GetQuestionQuizzesInnerFromJSONTyped(json, false);
61
+ }
62
+
63
+ export function GetQuestionQuizzesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetQuestionQuizzesInner {
64
+ if (json == null) {
65
+ return json;
66
+ }
67
+ return {
68
+
69
+ 'quizId': json['quiz_id'],
70
+ 'quizName': json['quiz_name'],
71
+ 'moduleId': json['module_id'],
72
+ 'courseId': json['course_id'],
73
+ };
74
+ }
75
+
76
+ export function GetQuestionQuizzesInnerToJSON(json: any): GetQuestionQuizzesInner {
77
+ return GetQuestionQuizzesInnerToJSONTyped(json, false);
78
+ }
79
+
80
+ export function GetQuestionQuizzesInnerToJSONTyped(value?: GetQuestionQuizzesInner | null, ignoreDiscriminator: boolean = false): any {
81
+ if (value == null) {
82
+ return value;
83
+ }
84
+
85
+ return {
86
+
87
+ 'quiz_id': value['quizId'],
88
+ 'quiz_name': value['quizName'],
89
+ 'module_id': value['moduleId'],
90
+ 'course_id': value['courseId'],
91
+ };
92
+ }
93
+
@@ -43,8 +43,25 @@ export interface PostCourseEnrollment {
43
43
  * @memberof PostCourseEnrollment
44
44
  */
45
45
  notes?: string | null;
46
+ /**
47
+ * The role/type of the user in this enrollment
48
+ * @type {PostCourseEnrollmentUserTypeEnum}
49
+ * @memberof PostCourseEnrollment
50
+ */
51
+ userType?: PostCourseEnrollmentUserTypeEnum | null;
46
52
  }
47
53
 
54
+
55
+ /**
56
+ * @export
57
+ */
58
+ export const PostCourseEnrollmentUserTypeEnum = {
59
+ Student: 'Student',
60
+ Instructor: 'Instructor'
61
+ } as const;
62
+ export type PostCourseEnrollmentUserTypeEnum = typeof PostCourseEnrollmentUserTypeEnum[keyof typeof PostCourseEnrollmentUserTypeEnum];
63
+
64
+
48
65
  /**
49
66
  * Check if a given object implements the PostCourseEnrollment interface.
50
67
  */
@@ -68,6 +85,7 @@ export function PostCourseEnrollmentFromJSONTyped(json: any, ignoreDiscriminator
68
85
  'enrollmentDateStart': json['enrollment_date_start'],
69
86
  'enrollmentDateEnd': json['enrollment_date_end'] == null ? undefined : json['enrollment_date_end'],
70
87
  'notes': json['notes'] == null ? undefined : json['notes'],
88
+ 'userType': json['user_type'] == null ? undefined : json['user_type'],
71
89
  };
72
90
  }
73
91
 
@@ -86,6 +104,7 @@ export function PostCourseEnrollmentToJSONTyped(value?: PostCourseEnrollment | n
86
104
  'enrollment_date_start': value['enrollmentDateStart'],
87
105
  'enrollment_date_end': value['enrollmentDateEnd'],
88
106
  'notes': value['notes'],
107
+ 'user_type': value['userType'],
89
108
  };
90
109
  }
91
110
 
@@ -75,6 +75,7 @@ export * from './GetQuestion';
75
75
  export * from './GetQuestionAnswerChoicesInner';
76
76
  export * from './GetQuestionList';
77
77
  export * from './GetQuestionListFilters';
78
+ export * from './GetQuestionQuizzesInner';
78
79
  export * from './GetQuiz';
79
80
  export * from './GetQuizAttempt';
80
81
  export * from './GetQuizAttemptAnalytics';