@easyedu/js-lsm-api 1.28.0 → 1.29.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 (58) hide show
  1. package/.openapi-generator/FILES +9 -0
  2. package/README.md +2 -2
  3. package/dist/apis/ContentApi.d.ts +71 -1
  4. package/dist/apis/ContentApi.js +158 -1
  5. package/dist/esm/apis/ContentApi.d.ts +71 -1
  6. package/dist/esm/apis/ContentApi.js +158 -1
  7. package/dist/esm/models/GetContentSessionDetail.d.ts +103 -0
  8. package/dist/esm/models/GetContentSessionDetail.js +96 -0
  9. package/dist/esm/models/GetContentSessionDetailScormSessionData.d.ts +32 -0
  10. package/dist/esm/models/GetContentSessionDetailScormSessionData.js +43 -0
  11. package/dist/esm/models/GetContentSessionDetailUserData.d.ts +38 -0
  12. package/dist/esm/models/GetContentSessionDetailUserData.js +47 -0
  13. package/dist/esm/models/GetContentSessionList.d.ts +57 -0
  14. package/dist/esm/models/GetContentSessionList.js +60 -0
  15. package/dist/esm/models/GetContentSessionListItem.d.ts +64 -0
  16. package/dist/esm/models/GetContentSessionListItem.js +65 -0
  17. package/dist/esm/models/GetScormApiLogItem.d.ts +73 -0
  18. package/dist/esm/models/GetScormApiLogItem.js +73 -0
  19. package/dist/esm/models/GetScormApiLogs.d.ts +57 -0
  20. package/dist/esm/models/GetScormApiLogs.js +60 -0
  21. package/dist/esm/models/GetScormSessionData.d.ts +59 -0
  22. package/dist/esm/models/GetScormSessionData.js +60 -0
  23. package/dist/esm/models/GetScormSessionDataActivity.d.ts +38 -0
  24. package/dist/esm/models/GetScormSessionDataActivity.js +47 -0
  25. package/dist/esm/models/index.d.ts +9 -0
  26. package/dist/esm/models/index.js +9 -0
  27. package/dist/models/GetContentSessionDetail.d.ts +103 -0
  28. package/dist/models/GetContentSessionDetail.js +104 -0
  29. package/dist/models/GetContentSessionDetailScormSessionData.d.ts +32 -0
  30. package/dist/models/GetContentSessionDetailScormSessionData.js +50 -0
  31. package/dist/models/GetContentSessionDetailUserData.d.ts +38 -0
  32. package/dist/models/GetContentSessionDetailUserData.js +54 -0
  33. package/dist/models/GetContentSessionList.d.ts +57 -0
  34. package/dist/models/GetContentSessionList.js +67 -0
  35. package/dist/models/GetContentSessionListItem.d.ts +64 -0
  36. package/dist/models/GetContentSessionListItem.js +72 -0
  37. package/dist/models/GetScormApiLogItem.d.ts +73 -0
  38. package/dist/models/GetScormApiLogItem.js +81 -0
  39. package/dist/models/GetScormApiLogs.d.ts +57 -0
  40. package/dist/models/GetScormApiLogs.js +67 -0
  41. package/dist/models/GetScormSessionData.d.ts +59 -0
  42. package/dist/models/GetScormSessionData.js +67 -0
  43. package/dist/models/GetScormSessionDataActivity.d.ts +38 -0
  44. package/dist/models/GetScormSessionDataActivity.js +54 -0
  45. package/dist/models/index.d.ts +9 -0
  46. package/dist/models/index.js +9 -0
  47. package/package.json +1 -1
  48. package/src/apis/ContentApi.ts +242 -0
  49. package/src/models/GetContentSessionDetail.ts +178 -0
  50. package/src/models/GetContentSessionDetailScormSessionData.ts +66 -0
  51. package/src/models/GetContentSessionDetailUserData.ts +75 -0
  52. package/src/models/GetContentSessionList.ts +110 -0
  53. package/src/models/GetContentSessionListItem.ts +126 -0
  54. package/src/models/GetScormApiLogItem.ts +125 -0
  55. package/src/models/GetScormApiLogs.ts +110 -0
  56. package/src/models/GetScormSessionData.ts +110 -0
  57. package/src/models/GetScormSessionDataActivity.ts +75 -0
  58. package/src/models/index.ts +9 -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 { GetScormApiLogItem } from './GetScormApiLogItem';
17
+ import {
18
+ GetScormApiLogItemFromJSON,
19
+ GetScormApiLogItemFromJSONTyped,
20
+ GetScormApiLogItemToJSON,
21
+ GetScormApiLogItemToJSONTyped,
22
+ } from './GetScormApiLogItem';
23
+
24
+ /**
25
+ * A list of SCORM API logs with pagination information
26
+ * @export
27
+ * @interface GetScormApiLogs
28
+ */
29
+ export interface GetScormApiLogs {
30
+ /**
31
+ * The current page number
32
+ * @type {number}
33
+ * @memberof GetScormApiLogs
34
+ */
35
+ page: number;
36
+ /**
37
+ * The number of items per page
38
+ * @type {number}
39
+ * @memberof GetScormApiLogs
40
+ */
41
+ pageSize: number;
42
+ /**
43
+ * The total number of pages
44
+ * @type {number}
45
+ * @memberof GetScormApiLogs
46
+ */
47
+ totalPages: number;
48
+ /**
49
+ * The total number of items
50
+ * @type {number}
51
+ * @memberof GetScormApiLogs
52
+ */
53
+ totalItems: number;
54
+ /**
55
+ *
56
+ * @type {Array<GetScormApiLogItem>}
57
+ * @memberof GetScormApiLogs
58
+ */
59
+ items: Array<GetScormApiLogItem>;
60
+ }
61
+
62
+ /**
63
+ * Check if a given object implements the GetScormApiLogs interface.
64
+ */
65
+ export function instanceOfGetScormApiLogs(value: object): value is GetScormApiLogs {
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 GetScormApiLogsFromJSON(json: any): GetScormApiLogs {
75
+ return GetScormApiLogsFromJSONTyped(json, false);
76
+ }
77
+
78
+ export function GetScormApiLogsFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetScormApiLogs {
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(GetScormApiLogItemFromJSON)),
89
+ };
90
+ }
91
+
92
+ export function GetScormApiLogsToJSON(json: any): GetScormApiLogs {
93
+ return GetScormApiLogsToJSONTyped(json, false);
94
+ }
95
+
96
+ export function GetScormApiLogsToJSONTyped(value?: GetScormApiLogs | 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(GetScormApiLogItemToJSON)),
108
+ };
109
+ }
110
+
@@ -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 { GetScormSessionDataActivity } from './GetScormSessionDataActivity';
17
+ import {
18
+ GetScormSessionDataActivityFromJSON,
19
+ GetScormSessionDataActivityFromJSONTyped,
20
+ GetScormSessionDataActivityToJSON,
21
+ GetScormSessionDataActivityToJSONTyped,
22
+ } from './GetScormSessionDataActivity';
23
+
24
+ /**
25
+ * SCORM session data with CMI information
26
+ * @export
27
+ * @interface GetScormSessionData
28
+ */
29
+ export interface GetScormSessionData {
30
+ /**
31
+ * The external ID of the SCORM session
32
+ * @type {string}
33
+ * @memberof GetScormSessionData
34
+ */
35
+ id: string;
36
+ /**
37
+ * The date and time the SCORM session was created (Unix timestamp)
38
+ * @type {number}
39
+ * @memberof GetScormSessionData
40
+ */
41
+ createdAt: number;
42
+ /**
43
+ * The date and time the SCORM session was updated (Unix timestamp)
44
+ * @type {number}
45
+ * @memberof GetScormSessionData
46
+ */
47
+ updatedAt: number;
48
+ /**
49
+ * The SCORM CMI data (complete dump of scorm_data)
50
+ * @type {{ [key: string]: any; }}
51
+ * @memberof GetScormSessionData
52
+ */
53
+ cmiData: { [key: string]: any; };
54
+ /**
55
+ *
56
+ * @type {GetScormSessionDataActivity}
57
+ * @memberof GetScormSessionData
58
+ */
59
+ activity: GetScormSessionDataActivity;
60
+ }
61
+
62
+ /**
63
+ * Check if a given object implements the GetScormSessionData interface.
64
+ */
65
+ export function instanceOfGetScormSessionData(value: object): value is GetScormSessionData {
66
+ if (!('id' in value) || value['id'] === undefined) return false;
67
+ if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
68
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
69
+ if (!('cmiData' in value) || value['cmiData'] === undefined) return false;
70
+ if (!('activity' in value) || value['activity'] === undefined) return false;
71
+ return true;
72
+ }
73
+
74
+ export function GetScormSessionDataFromJSON(json: any): GetScormSessionData {
75
+ return GetScormSessionDataFromJSONTyped(json, false);
76
+ }
77
+
78
+ export function GetScormSessionDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetScormSessionData {
79
+ if (json == null) {
80
+ return json;
81
+ }
82
+ return {
83
+
84
+ 'id': json['id'],
85
+ 'createdAt': json['created_at'],
86
+ 'updatedAt': json['updated_at'],
87
+ 'cmiData': json['cmi_data'],
88
+ 'activity': GetScormSessionDataActivityFromJSON(json['activity']),
89
+ };
90
+ }
91
+
92
+ export function GetScormSessionDataToJSON(json: any): GetScormSessionData {
93
+ return GetScormSessionDataToJSONTyped(json, false);
94
+ }
95
+
96
+ export function GetScormSessionDataToJSONTyped(value?: GetScormSessionData | null, ignoreDiscriminator: boolean = false): any {
97
+ if (value == null) {
98
+ return value;
99
+ }
100
+
101
+ return {
102
+
103
+ 'id': value['id'],
104
+ 'created_at': value['createdAt'],
105
+ 'updated_at': value['updatedAt'],
106
+ 'cmi_data': value['cmiData'],
107
+ 'activity': GetScormSessionDataActivityToJSON(value['activity']),
108
+ };
109
+ }
110
+
@@ -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 GetScormSessionDataActivity
20
+ */
21
+ export interface GetScormSessionDataActivity {
22
+ /**
23
+ * The external ID of the SCORM activity
24
+ * @type {string}
25
+ * @memberof GetScormSessionDataActivity
26
+ */
27
+ activityId: string;
28
+ /**
29
+ * The name/title of the SCORM activity
30
+ * @type {string}
31
+ * @memberof GetScormSessionDataActivity
32
+ */
33
+ name: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the GetScormSessionDataActivity interface.
38
+ */
39
+ export function instanceOfGetScormSessionDataActivity(value: object): value is GetScormSessionDataActivity {
40
+ if (!('activityId' in value) || value['activityId'] === undefined) return false;
41
+ if (!('name' in value) || value['name'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function GetScormSessionDataActivityFromJSON(json: any): GetScormSessionDataActivity {
46
+ return GetScormSessionDataActivityFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function GetScormSessionDataActivityFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetScormSessionDataActivity {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'activityId': json['activity_id'],
56
+ 'name': json['name'],
57
+ };
58
+ }
59
+
60
+ export function GetScormSessionDataActivityToJSON(json: any): GetScormSessionDataActivity {
61
+ return GetScormSessionDataActivityToJSONTyped(json, false);
62
+ }
63
+
64
+ export function GetScormSessionDataActivityToJSONTyped(value?: GetScormSessionDataActivity | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'activity_id': value['activityId'],
72
+ 'name': value['name'],
73
+ };
74
+ }
75
+
@@ -17,6 +17,11 @@ export * from './GetContentInstructorBasicReportingEngagement';
17
17
  export * from './GetContentInstructorBasicReportingPerformance';
18
18
  export * from './GetContentList';
19
19
  export * from './GetContentSession';
20
+ export * from './GetContentSessionDetail';
21
+ export * from './GetContentSessionDetailScormSessionData';
22
+ export * from './GetContentSessionDetailUserData';
23
+ export * from './GetContentSessionList';
24
+ export * from './GetContentSessionListItem';
20
25
  export * from './GetContentUpload';
21
26
  export * from './GetContentVersion';
22
27
  export * from './GetContentVersionList';
@@ -105,8 +110,12 @@ export * from './GetQuizResultsQuestionsInnerStudentAnswer';
105
110
  export * from './GetQuizResultsScore';
106
111
  export * from './GetQuizResultsTiming';
107
112
  export * from './GetQuizStatistics';
113
+ export * from './GetScormApiLogItem';
114
+ export * from './GetScormApiLogs';
108
115
  export * from './GetScormPackage';
109
116
  export * from './GetScormPackagePackageInfo';
117
+ export * from './GetScormSessionData';
118
+ export * from './GetScormSessionDataActivity';
110
119
  export * from './GetUser';
111
120
  export * from './GetUserQuizAttempts';
112
121
  export * from './GetUserQuizAttemptsAllOfAttempts';