@easyedu/js-lsm-api 1.69.0 → 1.70.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 (32) hide show
  1. package/.openapi-generator/FILES +4 -0
  2. package/README.md +4 -2
  3. package/dist/esm/models/GetCourseStudentReporting.d.ts +7 -0
  4. package/dist/esm/models/GetCourseStudentReporting.js +5 -0
  5. package/dist/esm/models/GetCourseStudentReportingModulesInner.d.ts +71 -0
  6. package/dist/esm/models/GetCourseStudentReportingModulesInner.js +71 -0
  7. package/dist/esm/models/GetModuleStudentReporting.d.ts +7 -0
  8. package/dist/esm/models/GetModuleStudentReporting.js +5 -0
  9. package/dist/esm/models/GetModuleStudentReportingContentsInner.d.ts +101 -0
  10. package/dist/esm/models/GetModuleStudentReportingContentsInner.js +91 -0
  11. package/dist/esm/models/index.d.ts +2 -0
  12. package/dist/esm/models/index.js +2 -0
  13. package/dist/models/GetCourseStudentReporting.d.ts +7 -0
  14. package/dist/models/GetCourseStudentReporting.js +5 -0
  15. package/dist/models/GetCourseStudentReportingModulesInner.d.ts +71 -0
  16. package/dist/models/GetCourseStudentReportingModulesInner.js +79 -0
  17. package/dist/models/GetModuleStudentReporting.d.ts +7 -0
  18. package/dist/models/GetModuleStudentReporting.js +5 -0
  19. package/dist/models/GetModuleStudentReportingContentsInner.d.ts +101 -0
  20. package/dist/models/GetModuleStudentReportingContentsInner.js +99 -0
  21. package/dist/models/index.d.ts +2 -0
  22. package/dist/models/index.js +2 -0
  23. package/docs/GetCourseStudentReporting.md +2 -0
  24. package/docs/GetCourseStudentReportingModulesInner.md +44 -0
  25. package/docs/GetModuleStudentReporting.md +2 -0
  26. package/docs/GetModuleStudentReportingContentsInner.md +54 -0
  27. package/package.json +1 -1
  28. package/src/models/GetCourseStudentReporting.ts +16 -0
  29. package/src/models/GetCourseStudentReportingModulesInner.ts +123 -0
  30. package/src/models/GetModuleStudentReporting.ts +16 -0
  31. package/src/models/GetModuleStudentReportingContentsInner.ts +168 -0
  32. package/src/models/index.ts +2 -0
@@ -0,0 +1,79 @@
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.GetCourseStudentReportingModulesInnerCompletionStatusEnum = void 0;
17
+ exports.instanceOfGetCourseStudentReportingModulesInner = instanceOfGetCourseStudentReportingModulesInner;
18
+ exports.GetCourseStudentReportingModulesInnerFromJSON = GetCourseStudentReportingModulesInnerFromJSON;
19
+ exports.GetCourseStudentReportingModulesInnerFromJSONTyped = GetCourseStudentReportingModulesInnerFromJSONTyped;
20
+ exports.GetCourseStudentReportingModulesInnerToJSON = GetCourseStudentReportingModulesInnerToJSON;
21
+ exports.GetCourseStudentReportingModulesInnerToJSONTyped = GetCourseStudentReportingModulesInnerToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.GetCourseStudentReportingModulesInnerCompletionStatusEnum = {
26
+ NotAttempted: 'NotAttempted',
27
+ InProgress: 'InProgress',
28
+ Completed: 'Completed'
29
+ };
30
+ /**
31
+ * Check if a given object implements the GetCourseStudentReportingModulesInner interface.
32
+ */
33
+ function instanceOfGetCourseStudentReportingModulesInner(value) {
34
+ if (!('moduleId' in value) || value['moduleId'] === undefined)
35
+ return false;
36
+ if (!('name' in value) || value['name'] === undefined)
37
+ return false;
38
+ if (!('order' in value) || value['order'] === undefined)
39
+ return false;
40
+ if (!('contentCount' in value) || value['contentCount'] === undefined)
41
+ return false;
42
+ if (!('contentCompletedCount' in value) || value['contentCompletedCount'] === undefined)
43
+ return false;
44
+ if (!('completionStatus' in value) || value['completionStatus'] === undefined)
45
+ return false;
46
+ return true;
47
+ }
48
+ function GetCourseStudentReportingModulesInnerFromJSON(json) {
49
+ return GetCourseStudentReportingModulesInnerFromJSONTyped(json, false);
50
+ }
51
+ function GetCourseStudentReportingModulesInnerFromJSONTyped(json, ignoreDiscriminator) {
52
+ if (json == null) {
53
+ return json;
54
+ }
55
+ return {
56
+ 'moduleId': json['module_id'],
57
+ 'name': json['name'],
58
+ 'order': json['order'],
59
+ 'contentCount': json['content_count'],
60
+ 'contentCompletedCount': json['content_completed_count'],
61
+ 'completionStatus': json['completion_status'],
62
+ };
63
+ }
64
+ function GetCourseStudentReportingModulesInnerToJSON(json) {
65
+ return GetCourseStudentReportingModulesInnerToJSONTyped(json, false);
66
+ }
67
+ function GetCourseStudentReportingModulesInnerToJSONTyped(value, ignoreDiscriminator = false) {
68
+ if (value == null) {
69
+ return value;
70
+ }
71
+ return {
72
+ 'module_id': value['moduleId'],
73
+ 'name': value['name'],
74
+ 'order': value['order'],
75
+ 'content_count': value['contentCount'],
76
+ 'content_completed_count': value['contentCompletedCount'],
77
+ 'completion_status': value['completionStatus'],
78
+ };
79
+ }
@@ -11,6 +11,7 @@
11
11
  */
12
12
  import type { GetModuleInstructorBasicReportingModuleInfo } from './GetModuleInstructorBasicReportingModuleInfo';
13
13
  import type { GetModuleStudentReportingAccess } from './GetModuleStudentReportingAccess';
14
+ import type { GetModuleStudentReportingContentsInner } from './GetModuleStudentReportingContentsInner';
14
15
  import type { GetModuleStudentReportingProgress } from './GetModuleStudentReportingProgress';
15
16
  /**
16
17
  *
@@ -36,6 +37,12 @@ export interface GetModuleStudentReporting {
36
37
  * @memberof GetModuleStudentReporting
37
38
  */
38
39
  access: GetModuleStudentReportingAccess;
40
+ /**
41
+ * Content-level progress for the student within this module.
42
+ * @type {Array<GetModuleStudentReportingContentsInner>}
43
+ * @memberof GetModuleStudentReporting
44
+ */
45
+ contents: Array<GetModuleStudentReportingContentsInner>;
39
46
  }
40
47
  /**
41
48
  * Check if a given object implements the GetModuleStudentReporting interface.
@@ -20,6 +20,7 @@ exports.GetModuleStudentReportingToJSON = GetModuleStudentReportingToJSON;
20
20
  exports.GetModuleStudentReportingToJSONTyped = GetModuleStudentReportingToJSONTyped;
21
21
  const GetModuleInstructorBasicReportingModuleInfo_1 = require("./GetModuleInstructorBasicReportingModuleInfo");
22
22
  const GetModuleStudentReportingAccess_1 = require("./GetModuleStudentReportingAccess");
23
+ const GetModuleStudentReportingContentsInner_1 = require("./GetModuleStudentReportingContentsInner");
23
24
  const GetModuleStudentReportingProgress_1 = require("./GetModuleStudentReportingProgress");
24
25
  /**
25
26
  * Check if a given object implements the GetModuleStudentReporting interface.
@@ -31,6 +32,8 @@ function instanceOfGetModuleStudentReporting(value) {
31
32
  return false;
32
33
  if (!('access' in value) || value['access'] === undefined)
33
34
  return false;
35
+ if (!('contents' in value) || value['contents'] === undefined)
36
+ return false;
34
37
  return true;
35
38
  }
36
39
  function GetModuleStudentReportingFromJSON(json) {
@@ -44,6 +47,7 @@ function GetModuleStudentReportingFromJSONTyped(json, ignoreDiscriminator) {
44
47
  'moduleInfo': (0, GetModuleInstructorBasicReportingModuleInfo_1.GetModuleInstructorBasicReportingModuleInfoFromJSON)(json['module_info']),
45
48
  'progress': (0, GetModuleStudentReportingProgress_1.GetModuleStudentReportingProgressFromJSON)(json['progress']),
46
49
  'access': (0, GetModuleStudentReportingAccess_1.GetModuleStudentReportingAccessFromJSON)(json['access']),
50
+ 'contents': (json['contents'].map(GetModuleStudentReportingContentsInner_1.GetModuleStudentReportingContentsInnerFromJSON)),
47
51
  };
48
52
  }
49
53
  function GetModuleStudentReportingToJSON(json) {
@@ -57,5 +61,6 @@ function GetModuleStudentReportingToJSONTyped(value, ignoreDiscriminator = false
57
61
  'module_info': (0, GetModuleInstructorBasicReportingModuleInfo_1.GetModuleInstructorBasicReportingModuleInfoToJSON)(value['moduleInfo']),
58
62
  'progress': (0, GetModuleStudentReportingProgress_1.GetModuleStudentReportingProgressToJSON)(value['progress']),
59
63
  'access': (0, GetModuleStudentReportingAccess_1.GetModuleStudentReportingAccessToJSON)(value['access']),
64
+ 'contents': (value['contents'].map(GetModuleStudentReportingContentsInner_1.GetModuleStudentReportingContentsInnerToJSON)),
60
65
  };
61
66
  }
@@ -0,0 +1,101 @@
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 GetModuleStudentReportingContentsInner
16
+ */
17
+ export interface GetModuleStudentReportingContentsInner {
18
+ /**
19
+ * The module external ID.
20
+ * @type {string}
21
+ * @memberof GetModuleStudentReportingContentsInner
22
+ */
23
+ moduleId: string;
24
+ /**
25
+ * The content external ID.
26
+ * @type {string}
27
+ * @memberof GetModuleStudentReportingContentsInner
28
+ */
29
+ contentId: string;
30
+ /**
31
+ * Content name.
32
+ * @type {string}
33
+ * @memberof GetModuleStudentReportingContentsInner
34
+ */
35
+ name: string;
36
+ /**
37
+ * Content type.
38
+ * @type {string}
39
+ * @memberof GetModuleStudentReportingContentsInner
40
+ */
41
+ contentType: string;
42
+ /**
43
+ * Order of the content within the module.
44
+ * @type {number}
45
+ * @memberof GetModuleStudentReportingContentsInner
46
+ */
47
+ order: number;
48
+ /**
49
+ * Current live completion status for this student's content progress.
50
+ * @type {GetModuleStudentReportingContentsInnerCompletionStatusEnum}
51
+ * @memberof GetModuleStudentReportingContentsInner
52
+ */
53
+ completionStatus: GetModuleStudentReportingContentsInnerCompletionStatusEnum;
54
+ /**
55
+ * Current live grade status for this student's content progress, if a session exists.
56
+ * @type {string}
57
+ * @memberof GetModuleStudentReportingContentsInner
58
+ */
59
+ gradeStatus: string | null;
60
+ /**
61
+ * Current live content session external ID, if a session exists.
62
+ * @type {string}
63
+ * @memberof GetModuleStudentReportingContentsInner
64
+ */
65
+ contentSessionId: string | null;
66
+ /**
67
+ * Current live attempt number, if a session exists.
68
+ * @type {number}
69
+ * @memberof GetModuleStudentReportingContentsInner
70
+ */
71
+ attemptNumber: number | null;
72
+ /**
73
+ * Last content session update timestamp (epoch seconds), if a session exists.
74
+ * @type {number}
75
+ * @memberof GetModuleStudentReportingContentsInner
76
+ */
77
+ lastAccessedAt: number | null;
78
+ /**
79
+ * Duration tracked on the current live content session, or 0 when not started.
80
+ * @type {number}
81
+ * @memberof GetModuleStudentReportingContentsInner
82
+ */
83
+ durationInSeconds: number;
84
+ }
85
+ /**
86
+ * @export
87
+ */
88
+ export declare const GetModuleStudentReportingContentsInnerCompletionStatusEnum: {
89
+ readonly NotAttempted: "NotAttempted";
90
+ readonly InProgress: "InProgress";
91
+ readonly Completed: "Completed";
92
+ };
93
+ export type GetModuleStudentReportingContentsInnerCompletionStatusEnum = typeof GetModuleStudentReportingContentsInnerCompletionStatusEnum[keyof typeof GetModuleStudentReportingContentsInnerCompletionStatusEnum];
94
+ /**
95
+ * Check if a given object implements the GetModuleStudentReportingContentsInner interface.
96
+ */
97
+ export declare function instanceOfGetModuleStudentReportingContentsInner(value: object): value is GetModuleStudentReportingContentsInner;
98
+ export declare function GetModuleStudentReportingContentsInnerFromJSON(json: any): GetModuleStudentReportingContentsInner;
99
+ export declare function GetModuleStudentReportingContentsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetModuleStudentReportingContentsInner;
100
+ export declare function GetModuleStudentReportingContentsInnerToJSON(json: any): GetModuleStudentReportingContentsInner;
101
+ export declare function GetModuleStudentReportingContentsInnerToJSONTyped(value?: GetModuleStudentReportingContentsInner | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,99 @@
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.GetModuleStudentReportingContentsInnerCompletionStatusEnum = void 0;
17
+ exports.instanceOfGetModuleStudentReportingContentsInner = instanceOfGetModuleStudentReportingContentsInner;
18
+ exports.GetModuleStudentReportingContentsInnerFromJSON = GetModuleStudentReportingContentsInnerFromJSON;
19
+ exports.GetModuleStudentReportingContentsInnerFromJSONTyped = GetModuleStudentReportingContentsInnerFromJSONTyped;
20
+ exports.GetModuleStudentReportingContentsInnerToJSON = GetModuleStudentReportingContentsInnerToJSON;
21
+ exports.GetModuleStudentReportingContentsInnerToJSONTyped = GetModuleStudentReportingContentsInnerToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.GetModuleStudentReportingContentsInnerCompletionStatusEnum = {
26
+ NotAttempted: 'NotAttempted',
27
+ InProgress: 'InProgress',
28
+ Completed: 'Completed'
29
+ };
30
+ /**
31
+ * Check if a given object implements the GetModuleStudentReportingContentsInner interface.
32
+ */
33
+ function instanceOfGetModuleStudentReportingContentsInner(value) {
34
+ if (!('moduleId' in value) || value['moduleId'] === undefined)
35
+ return false;
36
+ if (!('contentId' in value) || value['contentId'] === undefined)
37
+ return false;
38
+ if (!('name' in value) || value['name'] === undefined)
39
+ return false;
40
+ if (!('contentType' in value) || value['contentType'] === undefined)
41
+ return false;
42
+ if (!('order' in value) || value['order'] === undefined)
43
+ return false;
44
+ if (!('completionStatus' in value) || value['completionStatus'] === undefined)
45
+ return false;
46
+ if (!('gradeStatus' in value) || value['gradeStatus'] === undefined)
47
+ return false;
48
+ if (!('contentSessionId' in value) || value['contentSessionId'] === undefined)
49
+ return false;
50
+ if (!('attemptNumber' in value) || value['attemptNumber'] === undefined)
51
+ return false;
52
+ if (!('lastAccessedAt' in value) || value['lastAccessedAt'] === undefined)
53
+ return false;
54
+ if (!('durationInSeconds' in value) || value['durationInSeconds'] === undefined)
55
+ return false;
56
+ return true;
57
+ }
58
+ function GetModuleStudentReportingContentsInnerFromJSON(json) {
59
+ return GetModuleStudentReportingContentsInnerFromJSONTyped(json, false);
60
+ }
61
+ function GetModuleStudentReportingContentsInnerFromJSONTyped(json, ignoreDiscriminator) {
62
+ if (json == null) {
63
+ return json;
64
+ }
65
+ return {
66
+ 'moduleId': json['module_id'],
67
+ 'contentId': json['content_id'],
68
+ 'name': json['name'],
69
+ 'contentType': json['content_type'],
70
+ 'order': json['order'],
71
+ 'completionStatus': json['completion_status'],
72
+ 'gradeStatus': json['grade_status'],
73
+ 'contentSessionId': json['content_session_id'],
74
+ 'attemptNumber': json['attempt_number'],
75
+ 'lastAccessedAt': json['last_accessed_at'],
76
+ 'durationInSeconds': json['duration_in_seconds'],
77
+ };
78
+ }
79
+ function GetModuleStudentReportingContentsInnerToJSON(json) {
80
+ return GetModuleStudentReportingContentsInnerToJSONTyped(json, false);
81
+ }
82
+ function GetModuleStudentReportingContentsInnerToJSONTyped(value, ignoreDiscriminator = false) {
83
+ if (value == null) {
84
+ return value;
85
+ }
86
+ return {
87
+ 'module_id': value['moduleId'],
88
+ 'content_id': value['contentId'],
89
+ 'name': value['name'],
90
+ 'content_type': value['contentType'],
91
+ 'order': value['order'],
92
+ 'completion_status': value['completionStatus'],
93
+ 'grade_status': value['gradeStatus'],
94
+ 'content_session_id': value['contentSessionId'],
95
+ 'attempt_number': value['attemptNumber'],
96
+ 'last_accessed_at': value['lastAccessedAt'],
97
+ 'duration_in_seconds': value['durationInSeconds'],
98
+ };
99
+ }
@@ -58,6 +58,7 @@ export * from './GetCourseReportingBasic';
58
58
  export * from './GetCourseStudentReporting';
59
59
  export * from './GetCourseStudentReportingCourseInfo';
60
60
  export * from './GetCourseStudentReportingEngagement';
61
+ export * from './GetCourseStudentReportingModulesInner';
61
62
  export * from './GetCourseStudentReportingPerformance';
62
63
  export * from './GetManualQuestionSelectionItem';
63
64
  export * from './GetManualQuestionSelectionList';
@@ -69,6 +70,7 @@ export * from './GetModuleInstructorBasicReportingPerformance';
69
70
  export * from './GetModuleList';
70
71
  export * from './GetModuleStudentReporting';
71
72
  export * from './GetModuleStudentReportingAccess';
73
+ export * from './GetModuleStudentReportingContentsInner';
72
74
  export * from './GetModuleStudentReportingProgress';
73
75
  export * from './GetPermission';
74
76
  export * from './GetPortal';
@@ -76,6 +76,7 @@ __exportStar(require("./GetCourseReportingBasic"), exports);
76
76
  __exportStar(require("./GetCourseStudentReporting"), exports);
77
77
  __exportStar(require("./GetCourseStudentReportingCourseInfo"), exports);
78
78
  __exportStar(require("./GetCourseStudentReportingEngagement"), exports);
79
+ __exportStar(require("./GetCourseStudentReportingModulesInner"), exports);
79
80
  __exportStar(require("./GetCourseStudentReportingPerformance"), exports);
80
81
  __exportStar(require("./GetManualQuestionSelectionItem"), exports);
81
82
  __exportStar(require("./GetManualQuestionSelectionList"), exports);
@@ -87,6 +88,7 @@ __exportStar(require("./GetModuleInstructorBasicReportingPerformance"), exports)
87
88
  __exportStar(require("./GetModuleList"), exports);
88
89
  __exportStar(require("./GetModuleStudentReporting"), exports);
89
90
  __exportStar(require("./GetModuleStudentReportingAccess"), exports);
91
+ __exportStar(require("./GetModuleStudentReportingContentsInner"), exports);
90
92
  __exportStar(require("./GetModuleStudentReportingProgress"), exports);
91
93
  __exportStar(require("./GetPermission"), exports);
92
94
  __exportStar(require("./GetPortal"), exports);
@@ -9,6 +9,7 @@ Name | Type
9
9
  `courseInfo` | [GetCourseStudentReportingCourseInfo](GetCourseStudentReportingCourseInfo.md)
10
10
  `engagement` | [GetCourseStudentReportingEngagement](GetCourseStudentReportingEngagement.md)
11
11
  `performance` | [GetCourseStudentReportingPerformance](GetCourseStudentReportingPerformance.md)
12
+ `modules` | [Array&lt;GetCourseStudentReportingModulesInner&gt;](GetCourseStudentReportingModulesInner.md)
12
13
 
13
14
  ## Example
14
15
 
@@ -20,6 +21,7 @@ const example = {
20
21
  "courseInfo": null,
21
22
  "engagement": null,
22
23
  "performance": null,
24
+ "modules": null,
23
25
  } satisfies GetCourseStudentReporting
24
26
 
25
27
  console.log(example)
@@ -0,0 +1,44 @@
1
+
2
+ # GetCourseStudentReportingModulesInner
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `moduleId` | string
10
+ `name` | string
11
+ `order` | number
12
+ `contentCount` | number
13
+ `contentCompletedCount` | number
14
+ `completionStatus` | string
15
+
16
+ ## Example
17
+
18
+ ```typescript
19
+ import type { GetCourseStudentReportingModulesInner } from '@easyedu/js-lsm-api'
20
+
21
+ // TODO: Update the object below with actual values
22
+ const example = {
23
+ "moduleId": null,
24
+ "name": null,
25
+ "order": null,
26
+ "contentCount": null,
27
+ "contentCompletedCount": null,
28
+ "completionStatus": null,
29
+ } satisfies GetCourseStudentReportingModulesInner
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 GetCourseStudentReportingModulesInner
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
+
@@ -9,6 +9,7 @@ Name | Type
9
9
  `moduleInfo` | [GetModuleInstructorBasicReportingModuleInfo](GetModuleInstructorBasicReportingModuleInfo.md)
10
10
  `progress` | [GetModuleStudentReportingProgress](GetModuleStudentReportingProgress.md)
11
11
  `access` | [GetModuleStudentReportingAccess](GetModuleStudentReportingAccess.md)
12
+ `contents` | [Array&lt;GetModuleStudentReportingContentsInner&gt;](GetModuleStudentReportingContentsInner.md)
12
13
 
13
14
  ## Example
14
15
 
@@ -20,6 +21,7 @@ const example = {
20
21
  "moduleInfo": null,
21
22
  "progress": null,
22
23
  "access": null,
24
+ "contents": null,
23
25
  } satisfies GetModuleStudentReporting
24
26
 
25
27
  console.log(example)
@@ -0,0 +1,54 @@
1
+
2
+ # GetModuleStudentReportingContentsInner
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `moduleId` | string
10
+ `contentId` | string
11
+ `name` | string
12
+ `contentType` | string
13
+ `order` | number
14
+ `completionStatus` | string
15
+ `gradeStatus` | string
16
+ `contentSessionId` | string
17
+ `attemptNumber` | number
18
+ `lastAccessedAt` | number
19
+ `durationInSeconds` | number
20
+
21
+ ## Example
22
+
23
+ ```typescript
24
+ import type { GetModuleStudentReportingContentsInner } from '@easyedu/js-lsm-api'
25
+
26
+ // TODO: Update the object below with actual values
27
+ const example = {
28
+ "moduleId": null,
29
+ "contentId": null,
30
+ "name": null,
31
+ "contentType": null,
32
+ "order": null,
33
+ "completionStatus": null,
34
+ "gradeStatus": null,
35
+ "contentSessionId": null,
36
+ "attemptNumber": null,
37
+ "lastAccessedAt": null,
38
+ "durationInSeconds": null,
39
+ } satisfies GetModuleStudentReportingContentsInner
40
+
41
+ console.log(example)
42
+
43
+ // Convert the instance to a JSON string
44
+ const exampleJSON: string = JSON.stringify(example)
45
+ console.log(exampleJSON)
46
+
47
+ // Parse the JSON string back to an object
48
+ const exampleParsed = JSON.parse(exampleJSON) as GetModuleStudentReportingContentsInner
49
+ console.log(exampleParsed)
50
+ ```
51
+
52
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
53
+
54
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easyedu/js-lsm-api",
3
- "version": "1.69.0",
3
+ "version": "1.70.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
  GetCourseStudentReportingEngagementToJSON,
21
21
  GetCourseStudentReportingEngagementToJSONTyped,
22
22
  } from './GetCourseStudentReportingEngagement';
23
+ import type { GetCourseStudentReportingModulesInner } from './GetCourseStudentReportingModulesInner';
24
+ import {
25
+ GetCourseStudentReportingModulesInnerFromJSON,
26
+ GetCourseStudentReportingModulesInnerFromJSONTyped,
27
+ GetCourseStudentReportingModulesInnerToJSON,
28
+ GetCourseStudentReportingModulesInnerToJSONTyped,
29
+ } from './GetCourseStudentReportingModulesInner';
23
30
  import type { GetCourseStudentReportingCourseInfo } from './GetCourseStudentReportingCourseInfo';
24
31
  import {
25
32
  GetCourseStudentReportingCourseInfoFromJSON,
@@ -59,6 +66,12 @@ export interface GetCourseStudentReporting {
59
66
  * @memberof GetCourseStudentReporting
60
67
  */
61
68
  performance: GetCourseStudentReportingPerformance;
69
+ /**
70
+ * Module-level progress for the student within this course.
71
+ * @type {Array<GetCourseStudentReportingModulesInner>}
72
+ * @memberof GetCourseStudentReporting
73
+ */
74
+ modules: Array<GetCourseStudentReportingModulesInner>;
62
75
  }
63
76
 
64
77
  /**
@@ -68,6 +81,7 @@ export function instanceOfGetCourseStudentReporting(value: object): value is Get
68
81
  if (!('courseInfo' in value) || value['courseInfo'] === undefined) return false;
69
82
  if (!('engagement' in value) || value['engagement'] === undefined) return false;
70
83
  if (!('performance' in value) || value['performance'] === undefined) return false;
84
+ if (!('modules' in value) || value['modules'] === undefined) return false;
71
85
  return true;
72
86
  }
73
87
 
@@ -84,6 +98,7 @@ export function GetCourseStudentReportingFromJSONTyped(json: any, ignoreDiscrimi
84
98
  'courseInfo': GetCourseStudentReportingCourseInfoFromJSON(json['course_info']),
85
99
  'engagement': GetCourseStudentReportingEngagementFromJSON(json['engagement']),
86
100
  'performance': GetCourseStudentReportingPerformanceFromJSON(json['performance']),
101
+ 'modules': ((json['modules'] as Array<any>).map(GetCourseStudentReportingModulesInnerFromJSON)),
87
102
  };
88
103
  }
89
104
 
@@ -101,6 +116,7 @@ export function GetCourseStudentReportingToJSONTyped(value?: GetCourseStudentRep
101
116
  'course_info': GetCourseStudentReportingCourseInfoToJSON(value['courseInfo']),
102
117
  'engagement': GetCourseStudentReportingEngagementToJSON(value['engagement']),
103
118
  'performance': GetCourseStudentReportingPerformanceToJSON(value['performance']),
119
+ 'modules': ((value['modules'] as Array<any>).map(GetCourseStudentReportingModulesInnerToJSON)),
104
120
  };
105
121
  }
106
122