@easyedu/js-lsm-api 1.15.0 → 1.17.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 (158) hide show
  1. package/.openapi-generator/FILES +29 -0
  2. package/README.md +2 -2
  3. package/dist/apis/ReportingApi.d.ts +120 -0
  4. package/dist/apis/ReportingApi.js +299 -0
  5. package/dist/apis/index.d.ts +1 -0
  6. package/dist/apis/index.js +1 -0
  7. package/dist/esm/apis/ReportingApi.d.ts +120 -0
  8. package/dist/esm/apis/ReportingApi.js +295 -0
  9. package/dist/esm/apis/index.d.ts +1 -0
  10. package/dist/esm/apis/index.js +1 -0
  11. package/dist/esm/models/GetContentGradeDetail.d.ts +118 -0
  12. package/dist/esm/models/GetContentGradeDetail.js +104 -0
  13. package/dist/esm/models/GetContentGrades.d.ts +57 -0
  14. package/dist/esm/models/GetContentGrades.js +60 -0
  15. package/dist/esm/models/GetContentGradesItemsInner.d.ts +72 -0
  16. package/dist/esm/models/GetContentGradesItemsInner.js +73 -0
  17. package/dist/esm/models/GetContentGradesItemsInnerUser.d.ts +44 -0
  18. package/dist/esm/models/GetContentGradesItemsInnerUser.js +51 -0
  19. package/dist/esm/models/GetContentInstructorBasicReporting.d.ts +47 -0
  20. package/dist/esm/models/GetContentInstructorBasicReporting.js +54 -0
  21. package/dist/esm/models/GetContentInstructorBasicReportingContentInfo.d.ts +59 -0
  22. package/dist/esm/models/GetContentInstructorBasicReportingContentInfo.js +63 -0
  23. package/dist/esm/models/GetContentInstructorBasicReportingEngagement.d.ts +56 -0
  24. package/dist/esm/models/GetContentInstructorBasicReportingEngagement.js +59 -0
  25. package/dist/esm/models/GetContentInstructorBasicReportingPerformance.d.ts +38 -0
  26. package/dist/esm/models/GetContentInstructorBasicReportingPerformance.js +47 -0
  27. package/dist/esm/models/GetCourseStudentReporting.d.ts +47 -0
  28. package/dist/esm/models/GetCourseStudentReporting.js +54 -0
  29. package/dist/esm/models/GetCourseStudentReportingCourseInfo.d.ts +32 -0
  30. package/dist/esm/models/GetCourseStudentReportingCourseInfo.js +43 -0
  31. package/dist/esm/models/GetCourseStudentReportingEngagement.d.ts +38 -0
  32. package/dist/esm/models/GetCourseStudentReportingEngagement.js +47 -0
  33. package/dist/esm/models/GetCourseStudentReportingPerformance.d.ts +32 -0
  34. package/dist/esm/models/GetCourseStudentReportingPerformance.js +43 -0
  35. package/dist/esm/models/GetModuleInstructorBasicReporting.d.ts +47 -0
  36. package/dist/esm/models/GetModuleInstructorBasicReporting.js +54 -0
  37. package/dist/esm/models/GetModuleInstructorBasicReportingEngagement.d.ts +32 -0
  38. package/dist/esm/models/GetModuleInstructorBasicReportingEngagement.js +43 -0
  39. package/dist/esm/models/GetModuleInstructorBasicReportingModuleInfo.d.ts +32 -0
  40. package/dist/esm/models/GetModuleInstructorBasicReportingModuleInfo.js +43 -0
  41. package/dist/esm/models/GetModuleInstructorBasicReportingPerformance.d.ts +32 -0
  42. package/dist/esm/models/GetModuleInstructorBasicReportingPerformance.js +43 -0
  43. package/dist/esm/models/GetModuleStudentReporting.d.ts +47 -0
  44. package/dist/esm/models/GetModuleStudentReporting.js +54 -0
  45. package/dist/esm/models/GetModuleStudentReportingAccess.d.ts +38 -0
  46. package/dist/esm/models/GetModuleStudentReportingAccess.js +47 -0
  47. package/dist/esm/models/GetModuleStudentReportingProgress.d.ts +38 -0
  48. package/dist/esm/models/GetModuleStudentReportingProgress.js +47 -0
  49. package/dist/esm/models/GetPortalBasicReporting.d.ts +40 -0
  50. package/dist/esm/models/GetPortalBasicReporting.js +49 -0
  51. package/dist/esm/models/GetPortalBasicReportingCertificates.d.ts +32 -0
  52. package/dist/esm/models/GetPortalBasicReportingCertificates.js +43 -0
  53. package/dist/esm/models/GetPortalBasicReportingPortalInfo.d.ts +44 -0
  54. package/dist/esm/models/GetPortalBasicReportingPortalInfo.js +51 -0
  55. package/dist/esm/models/ScormSessionData.d.ts +61 -0
  56. package/dist/esm/models/ScormSessionData.js +54 -0
  57. package/dist/esm/models/ScormSessionDataProgress.d.ts +38 -0
  58. package/dist/esm/models/ScormSessionDataProgress.js +43 -0
  59. package/dist/esm/models/ScormSessionDataScore.d.ts +50 -0
  60. package/dist/esm/models/ScormSessionDataScore.js +47 -0
  61. package/dist/esm/models/ScormSessionDataSession.d.ts +32 -0
  62. package/dist/esm/models/ScormSessionDataSession.js +41 -0
  63. package/dist/esm/models/ScormSessionDataStatus.d.ts +50 -0
  64. package/dist/esm/models/ScormSessionDataStatus.js +47 -0
  65. package/dist/esm/models/ScormSessionDataTime.d.ts +50 -0
  66. package/dist/esm/models/ScormSessionDataTime.js +47 -0
  67. package/dist/esm/models/index.d.ts +28 -0
  68. package/dist/esm/models/index.js +28 -0
  69. package/dist/models/GetContentGradeDetail.d.ts +118 -0
  70. package/dist/models/GetContentGradeDetail.js +112 -0
  71. package/dist/models/GetContentGrades.d.ts +57 -0
  72. package/dist/models/GetContentGrades.js +67 -0
  73. package/dist/models/GetContentGradesItemsInner.d.ts +72 -0
  74. package/dist/models/GetContentGradesItemsInner.js +81 -0
  75. package/dist/models/GetContentGradesItemsInnerUser.d.ts +44 -0
  76. package/dist/models/GetContentGradesItemsInnerUser.js +58 -0
  77. package/dist/models/GetContentInstructorBasicReporting.d.ts +47 -0
  78. package/dist/models/GetContentInstructorBasicReporting.js +61 -0
  79. package/dist/models/GetContentInstructorBasicReportingContentInfo.d.ts +59 -0
  80. package/dist/models/GetContentInstructorBasicReportingContentInfo.js +71 -0
  81. package/dist/models/GetContentInstructorBasicReportingEngagement.d.ts +56 -0
  82. package/dist/models/GetContentInstructorBasicReportingEngagement.js +66 -0
  83. package/dist/models/GetContentInstructorBasicReportingPerformance.d.ts +38 -0
  84. package/dist/models/GetContentInstructorBasicReportingPerformance.js +54 -0
  85. package/dist/models/GetCourseStudentReporting.d.ts +47 -0
  86. package/dist/models/GetCourseStudentReporting.js +61 -0
  87. package/dist/models/GetCourseStudentReportingCourseInfo.d.ts +32 -0
  88. package/dist/models/GetCourseStudentReportingCourseInfo.js +50 -0
  89. package/dist/models/GetCourseStudentReportingEngagement.d.ts +38 -0
  90. package/dist/models/GetCourseStudentReportingEngagement.js +54 -0
  91. package/dist/models/GetCourseStudentReportingPerformance.d.ts +32 -0
  92. package/dist/models/GetCourseStudentReportingPerformance.js +50 -0
  93. package/dist/models/GetModuleInstructorBasicReporting.d.ts +47 -0
  94. package/dist/models/GetModuleInstructorBasicReporting.js +61 -0
  95. package/dist/models/GetModuleInstructorBasicReportingEngagement.d.ts +32 -0
  96. package/dist/models/GetModuleInstructorBasicReportingEngagement.js +50 -0
  97. package/dist/models/GetModuleInstructorBasicReportingModuleInfo.d.ts +32 -0
  98. package/dist/models/GetModuleInstructorBasicReportingModuleInfo.js +50 -0
  99. package/dist/models/GetModuleInstructorBasicReportingPerformance.d.ts +32 -0
  100. package/dist/models/GetModuleInstructorBasicReportingPerformance.js +50 -0
  101. package/dist/models/GetModuleStudentReporting.d.ts +47 -0
  102. package/dist/models/GetModuleStudentReporting.js +61 -0
  103. package/dist/models/GetModuleStudentReportingAccess.d.ts +38 -0
  104. package/dist/models/GetModuleStudentReportingAccess.js +54 -0
  105. package/dist/models/GetModuleStudentReportingProgress.d.ts +38 -0
  106. package/dist/models/GetModuleStudentReportingProgress.js +54 -0
  107. package/dist/models/GetPortalBasicReporting.d.ts +40 -0
  108. package/dist/models/GetPortalBasicReporting.js +56 -0
  109. package/dist/models/GetPortalBasicReportingCertificates.d.ts +32 -0
  110. package/dist/models/GetPortalBasicReportingCertificates.js +50 -0
  111. package/dist/models/GetPortalBasicReportingPortalInfo.d.ts +44 -0
  112. package/dist/models/GetPortalBasicReportingPortalInfo.js +58 -0
  113. package/dist/models/ScormSessionData.d.ts +61 -0
  114. package/dist/models/ScormSessionData.js +61 -0
  115. package/dist/models/ScormSessionDataProgress.d.ts +38 -0
  116. package/dist/models/ScormSessionDataProgress.js +50 -0
  117. package/dist/models/ScormSessionDataScore.d.ts +50 -0
  118. package/dist/models/ScormSessionDataScore.js +54 -0
  119. package/dist/models/ScormSessionDataSession.d.ts +32 -0
  120. package/dist/models/ScormSessionDataSession.js +48 -0
  121. package/dist/models/ScormSessionDataStatus.d.ts +50 -0
  122. package/dist/models/ScormSessionDataStatus.js +54 -0
  123. package/dist/models/ScormSessionDataTime.d.ts +50 -0
  124. package/dist/models/ScormSessionDataTime.js +54 -0
  125. package/dist/models/index.d.ts +28 -0
  126. package/dist/models/index.js +28 -0
  127. package/package.json +1 -1
  128. package/src/apis/ReportingApi.ts +450 -0
  129. package/src/apis/index.ts +1 -0
  130. package/src/models/GetContentGradeDetail.ts +191 -0
  131. package/src/models/GetContentGrades.ts +110 -0
  132. package/src/models/GetContentGradesItemsInner.ts +125 -0
  133. package/src/models/GetContentGradesItemsInnerUser.ts +84 -0
  134. package/src/models/GetContentInstructorBasicReporting.ts +106 -0
  135. package/src/models/GetContentInstructorBasicReportingContentInfo.ts +101 -0
  136. package/src/models/GetContentInstructorBasicReportingEngagement.ts +102 -0
  137. package/src/models/GetContentInstructorBasicReportingPerformance.ts +75 -0
  138. package/src/models/GetCourseStudentReporting.ts +106 -0
  139. package/src/models/GetCourseStudentReportingCourseInfo.ts +66 -0
  140. package/src/models/GetCourseStudentReportingEngagement.ts +75 -0
  141. package/src/models/GetCourseStudentReportingPerformance.ts +66 -0
  142. package/src/models/GetModuleInstructorBasicReporting.ts +106 -0
  143. package/src/models/GetModuleInstructorBasicReportingEngagement.ts +66 -0
  144. package/src/models/GetModuleInstructorBasicReportingModuleInfo.ts +66 -0
  145. package/src/models/GetModuleInstructorBasicReportingPerformance.ts +66 -0
  146. package/src/models/GetModuleStudentReporting.ts +106 -0
  147. package/src/models/GetModuleStudentReportingAccess.ts +75 -0
  148. package/src/models/GetModuleStudentReportingProgress.ts +75 -0
  149. package/src/models/GetPortalBasicReporting.ts +90 -0
  150. package/src/models/GetPortalBasicReportingCertificates.ts +66 -0
  151. package/src/models/GetPortalBasicReportingPortalInfo.ts +84 -0
  152. package/src/models/ScormSessionData.ts +133 -0
  153. package/src/models/ScormSessionDataProgress.ts +73 -0
  154. package/src/models/ScormSessionDataScore.ts +89 -0
  155. package/src/models/ScormSessionDataSession.ts +65 -0
  156. package/src/models/ScormSessionDataStatus.ts +89 -0
  157. package/src/models/ScormSessionDataTime.ts +89 -0
  158. package/src/models/index.ts +28 -0
@@ -0,0 +1,110 @@
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
+ import type { GetContentGradesItemsInner } from './GetContentGradesItemsInner';
17
+ import {
18
+ GetContentGradesItemsInnerFromJSON,
19
+ GetContentGradesItemsInnerFromJSONTyped,
20
+ GetContentGradesItemsInnerToJSON,
21
+ GetContentGradesItemsInnerToJSONTyped,
22
+ } from './GetContentGradesItemsInner';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface GetContentGrades
28
+ */
29
+ export interface GetContentGrades {
30
+ /**
31
+ * The current page number
32
+ * @type {number}
33
+ * @memberof GetContentGrades
34
+ */
35
+ page: number;
36
+ /**
37
+ * The number of items per page
38
+ * @type {number}
39
+ * @memberof GetContentGrades
40
+ */
41
+ pageSize: number;
42
+ /**
43
+ * The total number of pages
44
+ * @type {number}
45
+ * @memberof GetContentGrades
46
+ */
47
+ totalPages: number;
48
+ /**
49
+ * The total number of items
50
+ * @type {number}
51
+ * @memberof GetContentGrades
52
+ */
53
+ totalItems: number;
54
+ /**
55
+ *
56
+ * @type {Array<GetContentGradesItemsInner>}
57
+ * @memberof GetContentGrades
58
+ */
59
+ items: Array<GetContentGradesItemsInner>;
60
+ }
61
+
62
+ /**
63
+ * Check if a given object implements the GetContentGrades interface.
64
+ */
65
+ export function instanceOfGetContentGrades(value: object): value is GetContentGrades {
66
+ if (!('page' in value) || value['page'] === undefined) return false;
67
+ if (!('pageSize' in value) || value['pageSize'] === undefined) return false;
68
+ if (!('totalPages' in value) || value['totalPages'] === undefined) return false;
69
+ if (!('totalItems' in value) || value['totalItems'] === undefined) return false;
70
+ if (!('items' in value) || value['items'] === undefined) return false;
71
+ return true;
72
+ }
73
+
74
+ export function GetContentGradesFromJSON(json: any): GetContentGrades {
75
+ return GetContentGradesFromJSONTyped(json, false);
76
+ }
77
+
78
+ export function GetContentGradesFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetContentGrades {
79
+ if (json == null) {
80
+ return json;
81
+ }
82
+ return {
83
+
84
+ 'page': json['page'],
85
+ 'pageSize': json['pageSize'],
86
+ 'totalPages': json['totalPages'],
87
+ 'totalItems': json['totalItems'],
88
+ 'items': ((json['items'] as Array<any>).map(GetContentGradesItemsInnerFromJSON)),
89
+ };
90
+ }
91
+
92
+ export function GetContentGradesToJSON(json: any): GetContentGrades {
93
+ return GetContentGradesToJSONTyped(json, false);
94
+ }
95
+
96
+ export function GetContentGradesToJSONTyped(value?: GetContentGrades | null, ignoreDiscriminator: boolean = false): any {
97
+ if (value == null) {
98
+ return value;
99
+ }
100
+
101
+ return {
102
+
103
+ 'page': value['page'],
104
+ 'pageSize': value['pageSize'],
105
+ 'totalPages': value['totalPages'],
106
+ 'totalItems': value['totalItems'],
107
+ 'items': ((value['items'] as Array<any>).map(GetContentGradesItemsInnerToJSON)),
108
+ };
109
+ }
110
+
@@ -0,0 +1,125 @@
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
+ import type { GetContentGradesItemsInnerUser } from './GetContentGradesItemsInnerUser';
17
+ import {
18
+ GetContentGradesItemsInnerUserFromJSON,
19
+ GetContentGradesItemsInnerUserFromJSONTyped,
20
+ GetContentGradesItemsInnerUserToJSON,
21
+ GetContentGradesItemsInnerUserToJSONTyped,
22
+ } from './GetContentGradesItemsInnerUser';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface GetContentGradesItemsInner
28
+ */
29
+ export interface GetContentGradesItemsInner {
30
+ /**
31
+ * Content session external ID
32
+ * @type {string}
33
+ * @memberof GetContentGradesItemsInner
34
+ */
35
+ id?: string | null;
36
+ /**
37
+ *
38
+ * @type {GetContentGradesItemsInnerUser}
39
+ * @memberof GetContentGradesItemsInner
40
+ */
41
+ user: GetContentGradesItemsInnerUser;
42
+ /**
43
+ * Content completion status
44
+ * @type {string}
45
+ * @memberof GetContentGradesItemsInner
46
+ */
47
+ completion: GetContentGradesItemsInnerCompletionEnum;
48
+ /**
49
+ * Content grade status
50
+ * @type {string}
51
+ * @memberof GetContentGradesItemsInner
52
+ */
53
+ gradeStatus: GetContentGradesItemsInnerGradeStatusEnum;
54
+ }
55
+
56
+
57
+ /**
58
+ * @export
59
+ */
60
+ export const GetContentGradesItemsInnerCompletionEnum = {
61
+ NotAttempted: 'NotAttempted',
62
+ InProgress: 'InProgress',
63
+ Completed: 'Completed'
64
+ } as const;
65
+ export type GetContentGradesItemsInnerCompletionEnum = typeof GetContentGradesItemsInnerCompletionEnum[keyof typeof GetContentGradesItemsInnerCompletionEnum];
66
+
67
+ /**
68
+ * @export
69
+ */
70
+ export const GetContentGradesItemsInnerGradeStatusEnum = {
71
+ Ungraded: 'Ungraded',
72
+ Passed: 'Passed',
73
+ Failed: 'Failed',
74
+ PointsEarned: 'PointsEarned',
75
+ PercentageEarned: 'PercentageEarned',
76
+ NotApplicable: 'NotApplicable'
77
+ } as const;
78
+ export type GetContentGradesItemsInnerGradeStatusEnum = typeof GetContentGradesItemsInnerGradeStatusEnum[keyof typeof GetContentGradesItemsInnerGradeStatusEnum];
79
+
80
+
81
+ /**
82
+ * Check if a given object implements the GetContentGradesItemsInner interface.
83
+ */
84
+ export function instanceOfGetContentGradesItemsInner(value: object): value is GetContentGradesItemsInner {
85
+ if (!('user' in value) || value['user'] === undefined) return false;
86
+ if (!('completion' in value) || value['completion'] === undefined) return false;
87
+ if (!('gradeStatus' in value) || value['gradeStatus'] === undefined) return false;
88
+ return true;
89
+ }
90
+
91
+ export function GetContentGradesItemsInnerFromJSON(json: any): GetContentGradesItemsInner {
92
+ return GetContentGradesItemsInnerFromJSONTyped(json, false);
93
+ }
94
+
95
+ export function GetContentGradesItemsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetContentGradesItemsInner {
96
+ if (json == null) {
97
+ return json;
98
+ }
99
+ return {
100
+
101
+ 'id': json['id'] == null ? undefined : json['id'],
102
+ 'user': GetContentGradesItemsInnerUserFromJSON(json['user']),
103
+ 'completion': json['completion'],
104
+ 'gradeStatus': json['grade_status'],
105
+ };
106
+ }
107
+
108
+ export function GetContentGradesItemsInnerToJSON(json: any): GetContentGradesItemsInner {
109
+ return GetContentGradesItemsInnerToJSONTyped(json, false);
110
+ }
111
+
112
+ export function GetContentGradesItemsInnerToJSONTyped(value?: GetContentGradesItemsInner | null, ignoreDiscriminator: boolean = false): any {
113
+ if (value == null) {
114
+ return value;
115
+ }
116
+
117
+ return {
118
+
119
+ 'id': value['id'],
120
+ 'user': GetContentGradesItemsInnerUserToJSON(value['user']),
121
+ 'completion': value['completion'],
122
+ 'grade_status': value['gradeStatus'],
123
+ };
124
+ }
125
+
@@ -0,0 +1,84 @@
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 GetContentGradesItemsInnerUser
20
+ */
21
+ export interface GetContentGradesItemsInnerUser {
22
+ /**
23
+ * User's first name
24
+ * @type {string}
25
+ * @memberof GetContentGradesItemsInnerUser
26
+ */
27
+ firstName: string;
28
+ /**
29
+ * User's last name
30
+ * @type {string}
31
+ * @memberof GetContentGradesItemsInnerUser
32
+ */
33
+ lastName: string;
34
+ /**
35
+ * User's external ID
36
+ * @type {string}
37
+ * @memberof GetContentGradesItemsInnerUser
38
+ */
39
+ userId: string;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the GetContentGradesItemsInnerUser interface.
44
+ */
45
+ export function instanceOfGetContentGradesItemsInnerUser(value: object): value is GetContentGradesItemsInnerUser {
46
+ if (!('firstName' in value) || value['firstName'] === undefined) return false;
47
+ if (!('lastName' in value) || value['lastName'] === undefined) return false;
48
+ if (!('userId' in value) || value['userId'] === undefined) return false;
49
+ return true;
50
+ }
51
+
52
+ export function GetContentGradesItemsInnerUserFromJSON(json: any): GetContentGradesItemsInnerUser {
53
+ return GetContentGradesItemsInnerUserFromJSONTyped(json, false);
54
+ }
55
+
56
+ export function GetContentGradesItemsInnerUserFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetContentGradesItemsInnerUser {
57
+ if (json == null) {
58
+ return json;
59
+ }
60
+ return {
61
+
62
+ 'firstName': json['first_name'],
63
+ 'lastName': json['last_name'],
64
+ 'userId': json['user_id'],
65
+ };
66
+ }
67
+
68
+ export function GetContentGradesItemsInnerUserToJSON(json: any): GetContentGradesItemsInnerUser {
69
+ return GetContentGradesItemsInnerUserToJSONTyped(json, false);
70
+ }
71
+
72
+ export function GetContentGradesItemsInnerUserToJSONTyped(value?: GetContentGradesItemsInnerUser | null, ignoreDiscriminator: boolean = false): any {
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+
77
+ return {
78
+
79
+ 'first_name': value['firstName'],
80
+ 'last_name': value['lastName'],
81
+ 'user_id': value['userId'],
82
+ };
83
+ }
84
+
@@ -0,0 +1,106 @@
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
+ import type { GetContentInstructorBasicReportingContentInfo } from './GetContentInstructorBasicReportingContentInfo';
17
+ import {
18
+ GetContentInstructorBasicReportingContentInfoFromJSON,
19
+ GetContentInstructorBasicReportingContentInfoFromJSONTyped,
20
+ GetContentInstructorBasicReportingContentInfoToJSON,
21
+ GetContentInstructorBasicReportingContentInfoToJSONTyped,
22
+ } from './GetContentInstructorBasicReportingContentInfo';
23
+ import type { GetContentInstructorBasicReportingEngagement } from './GetContentInstructorBasicReportingEngagement';
24
+ import {
25
+ GetContentInstructorBasicReportingEngagementFromJSON,
26
+ GetContentInstructorBasicReportingEngagementFromJSONTyped,
27
+ GetContentInstructorBasicReportingEngagementToJSON,
28
+ GetContentInstructorBasicReportingEngagementToJSONTyped,
29
+ } from './GetContentInstructorBasicReportingEngagement';
30
+ import type { GetContentInstructorBasicReportingPerformance } from './GetContentInstructorBasicReportingPerformance';
31
+ import {
32
+ GetContentInstructorBasicReportingPerformanceFromJSON,
33
+ GetContentInstructorBasicReportingPerformanceFromJSONTyped,
34
+ GetContentInstructorBasicReportingPerformanceToJSON,
35
+ GetContentInstructorBasicReportingPerformanceToJSONTyped,
36
+ } from './GetContentInstructorBasicReportingPerformance';
37
+
38
+ /**
39
+ *
40
+ * @export
41
+ * @interface GetContentInstructorBasicReporting
42
+ */
43
+ export interface GetContentInstructorBasicReporting {
44
+ /**
45
+ *
46
+ * @type {GetContentInstructorBasicReportingContentInfo}
47
+ * @memberof GetContentInstructorBasicReporting
48
+ */
49
+ contentInfo: GetContentInstructorBasicReportingContentInfo;
50
+ /**
51
+ *
52
+ * @type {GetContentInstructorBasicReportingEngagement}
53
+ * @memberof GetContentInstructorBasicReporting
54
+ */
55
+ engagement: GetContentInstructorBasicReportingEngagement;
56
+ /**
57
+ *
58
+ * @type {GetContentInstructorBasicReportingPerformance}
59
+ * @memberof GetContentInstructorBasicReporting
60
+ */
61
+ performance: GetContentInstructorBasicReportingPerformance;
62
+ }
63
+
64
+ /**
65
+ * Check if a given object implements the GetContentInstructorBasicReporting interface.
66
+ */
67
+ export function instanceOfGetContentInstructorBasicReporting(value: object): value is GetContentInstructorBasicReporting {
68
+ if (!('contentInfo' in value) || value['contentInfo'] === undefined) return false;
69
+ if (!('engagement' in value) || value['engagement'] === undefined) return false;
70
+ if (!('performance' in value) || value['performance'] === undefined) return false;
71
+ return true;
72
+ }
73
+
74
+ export function GetContentInstructorBasicReportingFromJSON(json: any): GetContentInstructorBasicReporting {
75
+ return GetContentInstructorBasicReportingFromJSONTyped(json, false);
76
+ }
77
+
78
+ export function GetContentInstructorBasicReportingFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetContentInstructorBasicReporting {
79
+ if (json == null) {
80
+ return json;
81
+ }
82
+ return {
83
+
84
+ 'contentInfo': GetContentInstructorBasicReportingContentInfoFromJSON(json['content_info']),
85
+ 'engagement': GetContentInstructorBasicReportingEngagementFromJSON(json['engagement']),
86
+ 'performance': GetContentInstructorBasicReportingPerformanceFromJSON(json['performance']),
87
+ };
88
+ }
89
+
90
+ export function GetContentInstructorBasicReportingToJSON(json: any): GetContentInstructorBasicReporting {
91
+ return GetContentInstructorBasicReportingToJSONTyped(json, false);
92
+ }
93
+
94
+ export function GetContentInstructorBasicReportingToJSONTyped(value?: GetContentInstructorBasicReporting | null, ignoreDiscriminator: boolean = false): any {
95
+ if (value == null) {
96
+ return value;
97
+ }
98
+
99
+ return {
100
+
101
+ 'content_info': GetContentInstructorBasicReportingContentInfoToJSON(value['contentInfo']),
102
+ 'engagement': GetContentInstructorBasicReportingEngagementToJSON(value['engagement']),
103
+ 'performance': GetContentInstructorBasicReportingPerformanceToJSON(value['performance']),
104
+ };
105
+ }
106
+
@@ -0,0 +1,101 @@
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 GetContentInstructorBasicReportingContentInfo
20
+ */
21
+ export interface GetContentInstructorBasicReportingContentInfo {
22
+ /**
23
+ * Content external ID
24
+ * @type {string}
25
+ * @memberof GetContentInstructorBasicReportingContentInfo
26
+ */
27
+ contentId: string;
28
+ /**
29
+ * Type of content
30
+ * @type {string}
31
+ * @memberof GetContentInstructorBasicReportingContentInfo
32
+ */
33
+ contentType: GetContentInstructorBasicReportingContentInfoContentTypeEnum;
34
+ /**
35
+ * Content title
36
+ * @type {string}
37
+ * @memberof GetContentInstructorBasicReportingContentInfo
38
+ */
39
+ title?: string | null;
40
+ }
41
+
42
+
43
+ /**
44
+ * @export
45
+ */
46
+ export const GetContentInstructorBasicReportingContentInfoContentTypeEnum = {
47
+ Scorm: 'Scorm',
48
+ Video: 'Video',
49
+ Audio: 'Audio',
50
+ Image: 'Image',
51
+ Text: 'Text',
52
+ Link: 'Link',
53
+ File: 'File',
54
+ Pdf: 'Pdf',
55
+ Quiz: 'Quiz'
56
+ } as const;
57
+ export type GetContentInstructorBasicReportingContentInfoContentTypeEnum = typeof GetContentInstructorBasicReportingContentInfoContentTypeEnum[keyof typeof GetContentInstructorBasicReportingContentInfoContentTypeEnum];
58
+
59
+
60
+ /**
61
+ * Check if a given object implements the GetContentInstructorBasicReportingContentInfo interface.
62
+ */
63
+ export function instanceOfGetContentInstructorBasicReportingContentInfo(value: object): value is GetContentInstructorBasicReportingContentInfo {
64
+ if (!('contentId' in value) || value['contentId'] === undefined) return false;
65
+ if (!('contentType' in value) || value['contentType'] === undefined) return false;
66
+ return true;
67
+ }
68
+
69
+ export function GetContentInstructorBasicReportingContentInfoFromJSON(json: any): GetContentInstructorBasicReportingContentInfo {
70
+ return GetContentInstructorBasicReportingContentInfoFromJSONTyped(json, false);
71
+ }
72
+
73
+ export function GetContentInstructorBasicReportingContentInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetContentInstructorBasicReportingContentInfo {
74
+ if (json == null) {
75
+ return json;
76
+ }
77
+ return {
78
+
79
+ 'contentId': json['content_id'],
80
+ 'contentType': json['content_type'],
81
+ 'title': json['title'] == null ? undefined : json['title'],
82
+ };
83
+ }
84
+
85
+ export function GetContentInstructorBasicReportingContentInfoToJSON(json: any): GetContentInstructorBasicReportingContentInfo {
86
+ return GetContentInstructorBasicReportingContentInfoToJSONTyped(json, false);
87
+ }
88
+
89
+ export function GetContentInstructorBasicReportingContentInfoToJSONTyped(value?: GetContentInstructorBasicReportingContentInfo | null, ignoreDiscriminator: boolean = false): any {
90
+ if (value == null) {
91
+ return value;
92
+ }
93
+
94
+ return {
95
+
96
+ 'content_id': value['contentId'],
97
+ 'content_type': value['contentType'],
98
+ 'title': value['title'],
99
+ };
100
+ }
101
+
@@ -0,0 +1,102 @@
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 GetContentInstructorBasicReportingEngagement
20
+ */
21
+ export interface GetContentInstructorBasicReportingEngagement {
22
+ /**
23
+ * Average time spent by students on this content in hours
24
+ * @type {number}
25
+ * @memberof GetContentInstructorBasicReportingEngagement
26
+ */
27
+ avgTimeSpentHours: number | null;
28
+ /**
29
+ * Number of students who completed the content
30
+ * @type {number}
31
+ * @memberof GetContentInstructorBasicReportingEngagement
32
+ */
33
+ studentsCompletedCount: number;
34
+ /**
35
+ * Number of students currently in progress
36
+ * @type {number}
37
+ * @memberof GetContentInstructorBasicReportingEngagement
38
+ */
39
+ studentsInProgressCount: number;
40
+ /**
41
+ * Number of students who have not started
42
+ * @type {number}
43
+ * @memberof GetContentInstructorBasicReportingEngagement
44
+ */
45
+ studentsNotStartedCount: number;
46
+ /**
47
+ * Total number of enrolled students
48
+ * @type {number}
49
+ * @memberof GetContentInstructorBasicReportingEngagement
50
+ */
51
+ totalStudentsCount: number;
52
+ }
53
+
54
+ /**
55
+ * Check if a given object implements the GetContentInstructorBasicReportingEngagement interface.
56
+ */
57
+ export function instanceOfGetContentInstructorBasicReportingEngagement(value: object): value is GetContentInstructorBasicReportingEngagement {
58
+ if (!('avgTimeSpentHours' in value) || value['avgTimeSpentHours'] === undefined) return false;
59
+ if (!('studentsCompletedCount' in value) || value['studentsCompletedCount'] === undefined) return false;
60
+ if (!('studentsInProgressCount' in value) || value['studentsInProgressCount'] === undefined) return false;
61
+ if (!('studentsNotStartedCount' in value) || value['studentsNotStartedCount'] === undefined) return false;
62
+ if (!('totalStudentsCount' in value) || value['totalStudentsCount'] === undefined) return false;
63
+ return true;
64
+ }
65
+
66
+ export function GetContentInstructorBasicReportingEngagementFromJSON(json: any): GetContentInstructorBasicReportingEngagement {
67
+ return GetContentInstructorBasicReportingEngagementFromJSONTyped(json, false);
68
+ }
69
+
70
+ export function GetContentInstructorBasicReportingEngagementFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetContentInstructorBasicReportingEngagement {
71
+ if (json == null) {
72
+ return json;
73
+ }
74
+ return {
75
+
76
+ 'avgTimeSpentHours': json['avg_time_spent_hours'],
77
+ 'studentsCompletedCount': json['students_completed_count'],
78
+ 'studentsInProgressCount': json['students_in_progress_count'],
79
+ 'studentsNotStartedCount': json['students_not_started_count'],
80
+ 'totalStudentsCount': json['total_students_count'],
81
+ };
82
+ }
83
+
84
+ export function GetContentInstructorBasicReportingEngagementToJSON(json: any): GetContentInstructorBasicReportingEngagement {
85
+ return GetContentInstructorBasicReportingEngagementToJSONTyped(json, false);
86
+ }
87
+
88
+ export function GetContentInstructorBasicReportingEngagementToJSONTyped(value?: GetContentInstructorBasicReportingEngagement | null, ignoreDiscriminator: boolean = false): any {
89
+ if (value == null) {
90
+ return value;
91
+ }
92
+
93
+ return {
94
+
95
+ 'avg_time_spent_hours': value['avgTimeSpentHours'],
96
+ 'students_completed_count': value['studentsCompletedCount'],
97
+ 'students_in_progress_count': value['studentsInProgressCount'],
98
+ 'students_not_started_count': value['studentsNotStartedCount'],
99
+ 'total_students_count': value['totalStudentsCount'],
100
+ };
101
+ }
102
+