@easyedu/js-lsm-api 1.14.0 → 1.16.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,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 { GetModuleInstructorBasicReportingModuleInfo } from './GetModuleInstructorBasicReportingModuleInfo';
17
+ import {
18
+ GetModuleInstructorBasicReportingModuleInfoFromJSON,
19
+ GetModuleInstructorBasicReportingModuleInfoFromJSONTyped,
20
+ GetModuleInstructorBasicReportingModuleInfoToJSON,
21
+ GetModuleInstructorBasicReportingModuleInfoToJSONTyped,
22
+ } from './GetModuleInstructorBasicReportingModuleInfo';
23
+ import type { GetModuleStudentReportingAccess } from './GetModuleStudentReportingAccess';
24
+ import {
25
+ GetModuleStudentReportingAccessFromJSON,
26
+ GetModuleStudentReportingAccessFromJSONTyped,
27
+ GetModuleStudentReportingAccessToJSON,
28
+ GetModuleStudentReportingAccessToJSONTyped,
29
+ } from './GetModuleStudentReportingAccess';
30
+ import type { GetModuleStudentReportingProgress } from './GetModuleStudentReportingProgress';
31
+ import {
32
+ GetModuleStudentReportingProgressFromJSON,
33
+ GetModuleStudentReportingProgressFromJSONTyped,
34
+ GetModuleStudentReportingProgressToJSON,
35
+ GetModuleStudentReportingProgressToJSONTyped,
36
+ } from './GetModuleStudentReportingProgress';
37
+
38
+ /**
39
+ *
40
+ * @export
41
+ * @interface GetModuleStudentReporting
42
+ */
43
+ export interface GetModuleStudentReporting {
44
+ /**
45
+ *
46
+ * @type {GetModuleInstructorBasicReportingModuleInfo}
47
+ * @memberof GetModuleStudentReporting
48
+ */
49
+ moduleInfo: GetModuleInstructorBasicReportingModuleInfo;
50
+ /**
51
+ *
52
+ * @type {GetModuleStudentReportingProgress}
53
+ * @memberof GetModuleStudentReporting
54
+ */
55
+ progress: GetModuleStudentReportingProgress;
56
+ /**
57
+ *
58
+ * @type {GetModuleStudentReportingAccess}
59
+ * @memberof GetModuleStudentReporting
60
+ */
61
+ access: GetModuleStudentReportingAccess;
62
+ }
63
+
64
+ /**
65
+ * Check if a given object implements the GetModuleStudentReporting interface.
66
+ */
67
+ export function instanceOfGetModuleStudentReporting(value: object): value is GetModuleStudentReporting {
68
+ if (!('moduleInfo' in value) || value['moduleInfo'] === undefined) return false;
69
+ if (!('progress' in value) || value['progress'] === undefined) return false;
70
+ if (!('access' in value) || value['access'] === undefined) return false;
71
+ return true;
72
+ }
73
+
74
+ export function GetModuleStudentReportingFromJSON(json: any): GetModuleStudentReporting {
75
+ return GetModuleStudentReportingFromJSONTyped(json, false);
76
+ }
77
+
78
+ export function GetModuleStudentReportingFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetModuleStudentReporting {
79
+ if (json == null) {
80
+ return json;
81
+ }
82
+ return {
83
+
84
+ 'moduleInfo': GetModuleInstructorBasicReportingModuleInfoFromJSON(json['module_info']),
85
+ 'progress': GetModuleStudentReportingProgressFromJSON(json['progress']),
86
+ 'access': GetModuleStudentReportingAccessFromJSON(json['access']),
87
+ };
88
+ }
89
+
90
+ export function GetModuleStudentReportingToJSON(json: any): GetModuleStudentReporting {
91
+ return GetModuleStudentReportingToJSONTyped(json, false);
92
+ }
93
+
94
+ export function GetModuleStudentReportingToJSONTyped(value?: GetModuleStudentReporting | null, ignoreDiscriminator: boolean = false): any {
95
+ if (value == null) {
96
+ return value;
97
+ }
98
+
99
+ return {
100
+
101
+ 'module_info': GetModuleInstructorBasicReportingModuleInfoToJSON(value['moduleInfo']),
102
+ 'progress': GetModuleStudentReportingProgressToJSON(value['progress']),
103
+ 'access': GetModuleStudentReportingAccessToJSON(value['access']),
104
+ };
105
+ }
106
+
@@ -0,0 +1,75 @@
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 GetModuleStudentReportingAccess
20
+ */
21
+ export interface GetModuleStudentReportingAccess {
22
+ /**
23
+ * Last access timestamp (epoch seconds)
24
+ * @type {number}
25
+ * @memberof GetModuleStudentReportingAccess
26
+ */
27
+ lastAccessedAt: number | null;
28
+ /**
29
+ * Total time spent on the module in hours
30
+ * @type {number}
31
+ * @memberof GetModuleStudentReportingAccess
32
+ */
33
+ totalTimeSpent: number | null;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the GetModuleStudentReportingAccess interface.
38
+ */
39
+ export function instanceOfGetModuleStudentReportingAccess(value: object): value is GetModuleStudentReportingAccess {
40
+ if (!('lastAccessedAt' in value) || value['lastAccessedAt'] === undefined) return false;
41
+ if (!('totalTimeSpent' in value) || value['totalTimeSpent'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function GetModuleStudentReportingAccessFromJSON(json: any): GetModuleStudentReportingAccess {
46
+ return GetModuleStudentReportingAccessFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function GetModuleStudentReportingAccessFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetModuleStudentReportingAccess {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'lastAccessedAt': json['last_accessed_at'],
56
+ 'totalTimeSpent': json['total_time_spent'],
57
+ };
58
+ }
59
+
60
+ export function GetModuleStudentReportingAccessToJSON(json: any): GetModuleStudentReportingAccess {
61
+ return GetModuleStudentReportingAccessToJSONTyped(json, false);
62
+ }
63
+
64
+ export function GetModuleStudentReportingAccessToJSONTyped(value?: GetModuleStudentReportingAccess | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'last_accessed_at': value['lastAccessedAt'],
72
+ 'total_time_spent': value['totalTimeSpent'],
73
+ };
74
+ }
75
+
@@ -0,0 +1,75 @@
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 GetModuleStudentReportingProgress
20
+ */
21
+ export interface GetModuleStudentReportingProgress {
22
+ /**
23
+ * Number of content items completed by the user
24
+ * @type {number}
25
+ * @memberof GetModuleStudentReportingProgress
26
+ */
27
+ contentCompletedCount: number;
28
+ /**
29
+ * Total time spent on the module in hours
30
+ * @type {number}
31
+ * @memberof GetModuleStudentReportingProgress
32
+ */
33
+ totalTimeSpent: number | null;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the GetModuleStudentReportingProgress interface.
38
+ */
39
+ export function instanceOfGetModuleStudentReportingProgress(value: object): value is GetModuleStudentReportingProgress {
40
+ if (!('contentCompletedCount' in value) || value['contentCompletedCount'] === undefined) return false;
41
+ if (!('totalTimeSpent' in value) || value['totalTimeSpent'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function GetModuleStudentReportingProgressFromJSON(json: any): GetModuleStudentReportingProgress {
46
+ return GetModuleStudentReportingProgressFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function GetModuleStudentReportingProgressFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetModuleStudentReportingProgress {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'contentCompletedCount': json['content_completed_count'],
56
+ 'totalTimeSpent': json['total_time_spent'],
57
+ };
58
+ }
59
+
60
+ export function GetModuleStudentReportingProgressToJSON(json: any): GetModuleStudentReportingProgress {
61
+ return GetModuleStudentReportingProgressToJSONTyped(json, false);
62
+ }
63
+
64
+ export function GetModuleStudentReportingProgressToJSONTyped(value?: GetModuleStudentReportingProgress | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'content_completed_count': value['contentCompletedCount'],
72
+ 'total_time_spent': value['totalTimeSpent'],
73
+ };
74
+ }
75
+
@@ -0,0 +1,90 @@
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 { GetPortalBasicReportingPortalInfo } from './GetPortalBasicReportingPortalInfo';
17
+ import {
18
+ GetPortalBasicReportingPortalInfoFromJSON,
19
+ GetPortalBasicReportingPortalInfoFromJSONTyped,
20
+ GetPortalBasicReportingPortalInfoToJSON,
21
+ GetPortalBasicReportingPortalInfoToJSONTyped,
22
+ } from './GetPortalBasicReportingPortalInfo';
23
+ import type { GetPortalBasicReportingCertificates } from './GetPortalBasicReportingCertificates';
24
+ import {
25
+ GetPortalBasicReportingCertificatesFromJSON,
26
+ GetPortalBasicReportingCertificatesFromJSONTyped,
27
+ GetPortalBasicReportingCertificatesToJSON,
28
+ GetPortalBasicReportingCertificatesToJSONTyped,
29
+ } from './GetPortalBasicReportingCertificates';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface GetPortalBasicReporting
35
+ */
36
+ export interface GetPortalBasicReporting {
37
+ /**
38
+ *
39
+ * @type {GetPortalBasicReportingPortalInfo}
40
+ * @memberof GetPortalBasicReporting
41
+ */
42
+ portalInfo: GetPortalBasicReportingPortalInfo;
43
+ /**
44
+ *
45
+ * @type {GetPortalBasicReportingCertificates}
46
+ * @memberof GetPortalBasicReporting
47
+ */
48
+ certificates: GetPortalBasicReportingCertificates;
49
+ }
50
+
51
+ /**
52
+ * Check if a given object implements the GetPortalBasicReporting interface.
53
+ */
54
+ export function instanceOfGetPortalBasicReporting(value: object): value is GetPortalBasicReporting {
55
+ if (!('portalInfo' in value) || value['portalInfo'] === undefined) return false;
56
+ if (!('certificates' in value) || value['certificates'] === undefined) return false;
57
+ return true;
58
+ }
59
+
60
+ export function GetPortalBasicReportingFromJSON(json: any): GetPortalBasicReporting {
61
+ return GetPortalBasicReportingFromJSONTyped(json, false);
62
+ }
63
+
64
+ export function GetPortalBasicReportingFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetPortalBasicReporting {
65
+ if (json == null) {
66
+ return json;
67
+ }
68
+ return {
69
+
70
+ 'portalInfo': GetPortalBasicReportingPortalInfoFromJSON(json['portal_info']),
71
+ 'certificates': GetPortalBasicReportingCertificatesFromJSON(json['certificates']),
72
+ };
73
+ }
74
+
75
+ export function GetPortalBasicReportingToJSON(json: any): GetPortalBasicReporting {
76
+ return GetPortalBasicReportingToJSONTyped(json, false);
77
+ }
78
+
79
+ export function GetPortalBasicReportingToJSONTyped(value?: GetPortalBasicReporting | null, ignoreDiscriminator: boolean = false): any {
80
+ if (value == null) {
81
+ return value;
82
+ }
83
+
84
+ return {
85
+
86
+ 'portal_info': GetPortalBasicReportingPortalInfoToJSON(value['portalInfo']),
87
+ 'certificates': GetPortalBasicReportingCertificatesToJSON(value['certificates']),
88
+ };
89
+ }
90
+
@@ -0,0 +1,66 @@
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 GetPortalBasicReportingCertificates
20
+ */
21
+ export interface GetPortalBasicReportingCertificates {
22
+ /**
23
+ * Total number of certificates earned in the portal
24
+ * @type {number}
25
+ * @memberof GetPortalBasicReportingCertificates
26
+ */
27
+ certificatesEarnedCount: number;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the GetPortalBasicReportingCertificates interface.
32
+ */
33
+ export function instanceOfGetPortalBasicReportingCertificates(value: object): value is GetPortalBasicReportingCertificates {
34
+ if (!('certificatesEarnedCount' in value) || value['certificatesEarnedCount'] === undefined) return false;
35
+ return true;
36
+ }
37
+
38
+ export function GetPortalBasicReportingCertificatesFromJSON(json: any): GetPortalBasicReportingCertificates {
39
+ return GetPortalBasicReportingCertificatesFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function GetPortalBasicReportingCertificatesFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetPortalBasicReportingCertificates {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'certificatesEarnedCount': json['certificates_earned_count'],
49
+ };
50
+ }
51
+
52
+ export function GetPortalBasicReportingCertificatesToJSON(json: any): GetPortalBasicReportingCertificates {
53
+ return GetPortalBasicReportingCertificatesToJSONTyped(json, false);
54
+ }
55
+
56
+ export function GetPortalBasicReportingCertificatesToJSONTyped(value?: GetPortalBasicReportingCertificates | null, ignoreDiscriminator: boolean = false): any {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+
61
+ return {
62
+
63
+ 'certificates_earned_count': value['certificatesEarnedCount'],
64
+ };
65
+ }
66
+
@@ -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 GetPortalBasicReportingPortalInfo
20
+ */
21
+ export interface GetPortalBasicReportingPortalInfo {
22
+ /**
23
+ * Total number of students in the portal
24
+ * @type {number}
25
+ * @memberof GetPortalBasicReportingPortalInfo
26
+ */
27
+ studentCount: number;
28
+ /**
29
+ * Total number of instructors in the portal
30
+ * @type {number}
31
+ * @memberof GetPortalBasicReportingPortalInfo
32
+ */
33
+ instructorCount: number;
34
+ /**
35
+ * Total number of courses in the portal
36
+ * @type {number}
37
+ * @memberof GetPortalBasicReportingPortalInfo
38
+ */
39
+ courseCount: number;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the GetPortalBasicReportingPortalInfo interface.
44
+ */
45
+ export function instanceOfGetPortalBasicReportingPortalInfo(value: object): value is GetPortalBasicReportingPortalInfo {
46
+ if (!('studentCount' in value) || value['studentCount'] === undefined) return false;
47
+ if (!('instructorCount' in value) || value['instructorCount'] === undefined) return false;
48
+ if (!('courseCount' in value) || value['courseCount'] === undefined) return false;
49
+ return true;
50
+ }
51
+
52
+ export function GetPortalBasicReportingPortalInfoFromJSON(json: any): GetPortalBasicReportingPortalInfo {
53
+ return GetPortalBasicReportingPortalInfoFromJSONTyped(json, false);
54
+ }
55
+
56
+ export function GetPortalBasicReportingPortalInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetPortalBasicReportingPortalInfo {
57
+ if (json == null) {
58
+ return json;
59
+ }
60
+ return {
61
+
62
+ 'studentCount': json['student_count'],
63
+ 'instructorCount': json['instructor_count'],
64
+ 'courseCount': json['course_count'],
65
+ };
66
+ }
67
+
68
+ export function GetPortalBasicReportingPortalInfoToJSON(json: any): GetPortalBasicReportingPortalInfo {
69
+ return GetPortalBasicReportingPortalInfoToJSONTyped(json, false);
70
+ }
71
+
72
+ export function GetPortalBasicReportingPortalInfoToJSONTyped(value?: GetPortalBasicReportingPortalInfo | null, ignoreDiscriminator: boolean = false): any {
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+
77
+ return {
78
+
79
+ 'student_count': value['studentCount'],
80
+ 'instructor_count': value['instructorCount'],
81
+ 'course_count': value['courseCount'],
82
+ };
83
+ }
84
+
@@ -0,0 +1,133 @@
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 { ScormSessionDataSession } from './ScormSessionDataSession';
17
+ import {
18
+ ScormSessionDataSessionFromJSON,
19
+ ScormSessionDataSessionFromJSONTyped,
20
+ ScormSessionDataSessionToJSON,
21
+ ScormSessionDataSessionToJSONTyped,
22
+ } from './ScormSessionDataSession';
23
+ import type { ScormSessionDataScore } from './ScormSessionDataScore';
24
+ import {
25
+ ScormSessionDataScoreFromJSON,
26
+ ScormSessionDataScoreFromJSONTyped,
27
+ ScormSessionDataScoreToJSON,
28
+ ScormSessionDataScoreToJSONTyped,
29
+ } from './ScormSessionDataScore';
30
+ import type { ScormSessionDataStatus } from './ScormSessionDataStatus';
31
+ import {
32
+ ScormSessionDataStatusFromJSON,
33
+ ScormSessionDataStatusFromJSONTyped,
34
+ ScormSessionDataStatusToJSON,
35
+ ScormSessionDataStatusToJSONTyped,
36
+ } from './ScormSessionDataStatus';
37
+ import type { ScormSessionDataTime } from './ScormSessionDataTime';
38
+ import {
39
+ ScormSessionDataTimeFromJSON,
40
+ ScormSessionDataTimeFromJSONTyped,
41
+ ScormSessionDataTimeToJSON,
42
+ ScormSessionDataTimeToJSONTyped,
43
+ } from './ScormSessionDataTime';
44
+ import type { ScormSessionDataProgress } from './ScormSessionDataProgress';
45
+ import {
46
+ ScormSessionDataProgressFromJSON,
47
+ ScormSessionDataProgressFromJSONTyped,
48
+ ScormSessionDataProgressToJSON,
49
+ ScormSessionDataProgressToJSONTyped,
50
+ } from './ScormSessionDataProgress';
51
+
52
+ /**
53
+ * Detailed SCORM session data
54
+ * @export
55
+ * @interface ScormSessionData
56
+ */
57
+ export interface ScormSessionData {
58
+ /**
59
+ *
60
+ * @type {ScormSessionDataStatus}
61
+ * @memberof ScormSessionData
62
+ */
63
+ status?: ScormSessionDataStatus;
64
+ /**
65
+ *
66
+ * @type {ScormSessionDataScore}
67
+ * @memberof ScormSessionData
68
+ */
69
+ score?: ScormSessionDataScore;
70
+ /**
71
+ *
72
+ * @type {ScormSessionDataTime}
73
+ * @memberof ScormSessionData
74
+ */
75
+ time?: ScormSessionDataTime;
76
+ /**
77
+ *
78
+ * @type {ScormSessionDataSession}
79
+ * @memberof ScormSessionData
80
+ */
81
+ session?: ScormSessionDataSession;
82
+ /**
83
+ *
84
+ * @type {ScormSessionDataProgress}
85
+ * @memberof ScormSessionData
86
+ */
87
+ progress?: ScormSessionDataProgress;
88
+ }
89
+
90
+ /**
91
+ * Check if a given object implements the ScormSessionData interface.
92
+ */
93
+ export function instanceOfScormSessionData(value: object): value is ScormSessionData {
94
+ return true;
95
+ }
96
+
97
+ export function ScormSessionDataFromJSON(json: any): ScormSessionData {
98
+ return ScormSessionDataFromJSONTyped(json, false);
99
+ }
100
+
101
+ export function ScormSessionDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScormSessionData {
102
+ if (json == null) {
103
+ return json;
104
+ }
105
+ return {
106
+
107
+ 'status': json['status'] == null ? undefined : ScormSessionDataStatusFromJSON(json['status']),
108
+ 'score': json['score'] == null ? undefined : ScormSessionDataScoreFromJSON(json['score']),
109
+ 'time': json['time'] == null ? undefined : ScormSessionDataTimeFromJSON(json['time']),
110
+ 'session': json['session'] == null ? undefined : ScormSessionDataSessionFromJSON(json['session']),
111
+ 'progress': json['progress'] == null ? undefined : ScormSessionDataProgressFromJSON(json['progress']),
112
+ };
113
+ }
114
+
115
+ export function ScormSessionDataToJSON(json: any): ScormSessionData {
116
+ return ScormSessionDataToJSONTyped(json, false);
117
+ }
118
+
119
+ export function ScormSessionDataToJSONTyped(value?: ScormSessionData | null, ignoreDiscriminator: boolean = false): any {
120
+ if (value == null) {
121
+ return value;
122
+ }
123
+
124
+ return {
125
+
126
+ 'status': ScormSessionDataStatusToJSON(value['status']),
127
+ 'score': ScormSessionDataScoreToJSON(value['score']),
128
+ 'time': ScormSessionDataTimeToJSON(value['time']),
129
+ 'session': ScormSessionDataSessionToJSON(value['session']),
130
+ 'progress': ScormSessionDataProgressToJSON(value['progress']),
131
+ };
132
+ }
133
+