@easyedu/js-lsm-api 1.29.0 → 1.30.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 +2 -1
  2. package/README.md +2 -2
  3. package/dist/esm/models/GetContentSessionDetail.d.ts +4 -4
  4. package/dist/esm/models/GetContentSessionDetail.js +3 -3
  5. package/dist/esm/models/GetContentSessionDetailScormSessionDataInner.d.ts +38 -0
  6. package/dist/esm/models/GetContentSessionDetailScormSessionDataInner.js +47 -0
  7. package/dist/esm/models/GetContentSessionListItem.d.ts +3 -3
  8. package/dist/esm/models/GetContentSessionListItem.js +3 -3
  9. package/dist/esm/models/GetContentSessionListItemScormSessionData.d.ts +32 -0
  10. package/dist/esm/models/{GetContentSessionDetailScormSessionData.js → GetContentSessionListItemScormSessionData.js} +8 -8
  11. package/dist/esm/models/index.d.ts +2 -1
  12. package/dist/esm/models/index.js +2 -1
  13. package/dist/models/GetContentSessionDetail.d.ts +4 -4
  14. package/dist/models/GetContentSessionDetail.js +3 -3
  15. package/dist/models/GetContentSessionDetailScormSessionDataInner.d.ts +38 -0
  16. package/dist/models/GetContentSessionDetailScormSessionDataInner.js +54 -0
  17. package/dist/models/GetContentSessionListItem.d.ts +3 -3
  18. package/dist/models/GetContentSessionListItem.js +3 -3
  19. package/dist/models/GetContentSessionListItemScormSessionData.d.ts +32 -0
  20. package/dist/models/GetContentSessionListItemScormSessionData.js +50 -0
  21. package/dist/models/index.d.ts +2 -1
  22. package/dist/models/index.js +2 -1
  23. package/package.json +1 -1
  24. package/src/models/GetContentSessionDetail.ts +12 -12
  25. package/src/models/GetContentSessionDetailScormSessionDataInner.ts +75 -0
  26. package/src/models/GetContentSessionListItem.ts +11 -11
  27. package/src/models/GetContentSessionListItemScormSessionData.ts +66 -0
  28. package/src/models/index.ts +2 -1
  29. package/dist/esm/models/GetContentSessionDetailScormSessionData.d.ts +0 -32
  30. package/dist/models/GetContentSessionDetailScormSessionData.d.ts +0 -32
  31. package/dist/models/GetContentSessionDetailScormSessionData.js +0 -50
  32. package/src/models/GetContentSessionDetailScormSessionData.ts +0 -66
@@ -32,10 +32,11 @@ src/models/GetContentInstructorBasicReportingPerformance.ts
32
32
  src/models/GetContentList.ts
33
33
  src/models/GetContentSession.ts
34
34
  src/models/GetContentSessionDetail.ts
35
- src/models/GetContentSessionDetailScormSessionData.ts
35
+ src/models/GetContentSessionDetailScormSessionDataInner.ts
36
36
  src/models/GetContentSessionDetailUserData.ts
37
37
  src/models/GetContentSessionList.ts
38
38
  src/models/GetContentSessionListItem.ts
39
+ src/models/GetContentSessionListItemScormSessionData.ts
39
40
  src/models/GetContentUpload.ts
40
41
  src/models/GetContentVersion.ts
41
42
  src/models/GetContentVersionList.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @easyedu/js-lsm-api@1.29.0
1
+ ## @easyedu/js-lsm-api@1.30.0
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @easyedu/js-lsm-api@1.29.0 --save
39
+ npm install @easyedu/js-lsm-api@1.30.0 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -9,8 +9,8 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { GetContentSessionDetailScormSessionDataInner } from './GetContentSessionDetailScormSessionDataInner';
12
13
  import type { GetContentSessionDetailUserData } from './GetContentSessionDetailUserData';
13
- import type { GetContentSessionDetailScormSessionData } from './GetContentSessionDetailScormSessionData';
14
14
  /**
15
15
  * Detailed content session information
16
16
  * @export
@@ -66,11 +66,11 @@ export interface GetContentSessionDetail {
66
66
  */
67
67
  userData: GetContentSessionDetailUserData;
68
68
  /**
69
- *
70
- * @type {GetContentSessionDetailScormSessionData}
69
+ * SCORM session data if this is a SCORM session, null otherwise
70
+ * @type {Array<GetContentSessionDetailScormSessionDataInner>}
71
71
  * @memberof GetContentSessionDetail
72
72
  */
73
- scormSessionData: GetContentSessionDetailScormSessionData | null;
73
+ scormSessionData: Array<GetContentSessionDetailScormSessionDataInner> | null;
74
74
  }
75
75
  /**
76
76
  * @export
@@ -11,8 +11,8 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ import { GetContentSessionDetailScormSessionDataInnerFromJSON, GetContentSessionDetailScormSessionDataInnerToJSON, } from './GetContentSessionDetailScormSessionDataInner';
14
15
  import { GetContentSessionDetailUserDataFromJSON, GetContentSessionDetailUserDataToJSON, } from './GetContentSessionDetailUserData';
15
- import { GetContentSessionDetailScormSessionDataFromJSON, GetContentSessionDetailScormSessionDataToJSON, } from './GetContentSessionDetailScormSessionData';
16
16
  /**
17
17
  * @export
18
18
  */
@@ -72,7 +72,7 @@ export function GetContentSessionDetailFromJSONTyped(json, ignoreDiscriminator)
72
72
  'gradeStatus': json['grade_status'],
73
73
  'durationInSeconds': json['duration_in_seconds'],
74
74
  'userData': GetContentSessionDetailUserDataFromJSON(json['user_data']),
75
- 'scormSessionData': GetContentSessionDetailScormSessionDataFromJSON(json['scorm_session_data']),
75
+ 'scormSessionData': (json['scorm_session_data'] == null ? null : json['scorm_session_data'].map(GetContentSessionDetailScormSessionDataInnerFromJSON)),
76
76
  };
77
77
  }
78
78
  export function GetContentSessionDetailToJSON(json) {
@@ -91,6 +91,6 @@ export function GetContentSessionDetailToJSONTyped(value, ignoreDiscriminator =
91
91
  'grade_status': value['gradeStatus'],
92
92
  'duration_in_seconds': value['durationInSeconds'],
93
93
  'user_data': GetContentSessionDetailUserDataToJSON(value['userData']),
94
- 'scorm_session_data': GetContentSessionDetailScormSessionDataToJSON(value['scormSessionData']),
94
+ 'scorm_session_data': (value['scormSessionData'] == null ? null : value['scormSessionData'].map(GetContentSessionDetailScormSessionDataInnerToJSON)),
95
95
  };
96
96
  }
@@ -0,0 +1,38 @@
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 GetContentSessionDetailScormSessionDataInner
16
+ */
17
+ export interface GetContentSessionDetailScormSessionDataInner {
18
+ /**
19
+ * The external ID of the SCORM session
20
+ * @type {string}
21
+ * @memberof GetContentSessionDetailScormSessionDataInner
22
+ */
23
+ scormSessionId: string;
24
+ /**
25
+ * The name of the SCORM activity
26
+ * @type {string}
27
+ * @memberof GetContentSessionDetailScormSessionDataInner
28
+ */
29
+ activityName: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the GetContentSessionDetailScormSessionDataInner interface.
33
+ */
34
+ export declare function instanceOfGetContentSessionDetailScormSessionDataInner(value: object): value is GetContentSessionDetailScormSessionDataInner;
35
+ export declare function GetContentSessionDetailScormSessionDataInnerFromJSON(json: any): GetContentSessionDetailScormSessionDataInner;
36
+ export declare function GetContentSessionDetailScormSessionDataInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetContentSessionDetailScormSessionDataInner;
37
+ export declare function GetContentSessionDetailScormSessionDataInnerToJSON(json: any): GetContentSessionDetailScormSessionDataInner;
38
+ export declare function GetContentSessionDetailScormSessionDataInnerToJSONTyped(value?: GetContentSessionDetailScormSessionDataInner | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,47 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * LMS API
5
+ * LMS API
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the GetContentSessionDetailScormSessionDataInner interface.
16
+ */
17
+ export function instanceOfGetContentSessionDetailScormSessionDataInner(value) {
18
+ if (!('scormSessionId' in value) || value['scormSessionId'] === undefined)
19
+ return false;
20
+ if (!('activityName' in value) || value['activityName'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function GetContentSessionDetailScormSessionDataInnerFromJSON(json) {
25
+ return GetContentSessionDetailScormSessionDataInnerFromJSONTyped(json, false);
26
+ }
27
+ export function GetContentSessionDetailScormSessionDataInnerFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'scormSessionId': json['scorm_session_id'],
33
+ 'activityName': json['activity_name'],
34
+ };
35
+ }
36
+ export function GetContentSessionDetailScormSessionDataInnerToJSON(json) {
37
+ return GetContentSessionDetailScormSessionDataInnerToJSONTyped(json, false);
38
+ }
39
+ export function GetContentSessionDetailScormSessionDataInnerToJSONTyped(value, ignoreDiscriminator = false) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'scorm_session_id': value['scormSessionId'],
45
+ 'activity_name': value['activityName'],
46
+ };
47
+ }
@@ -9,8 +9,8 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { GetContentSessionListItemScormSessionData } from './GetContentSessionListItemScormSessionData';
12
13
  import type { GetContentSessionDetailUserData } from './GetContentSessionDetailUserData';
13
- import type { GetContentSessionDetailScormSessionData } from './GetContentSessionDetailScormSessionData';
14
14
  /**
15
15
  * A content session list item
16
16
  * @export
@@ -49,10 +49,10 @@ export interface GetContentSessionListItem {
49
49
  userData: GetContentSessionDetailUserData;
50
50
  /**
51
51
  *
52
- * @type {GetContentSessionDetailScormSessionData}
52
+ * @type {GetContentSessionListItemScormSessionData}
53
53
  * @memberof GetContentSessionListItem
54
54
  */
55
- scormSessionData: GetContentSessionDetailScormSessionData | null;
55
+ scormSessionData: GetContentSessionListItemScormSessionData | null;
56
56
  }
57
57
  /**
58
58
  * Check if a given object implements the GetContentSessionListItem interface.
@@ -11,8 +11,8 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ import { GetContentSessionListItemScormSessionDataFromJSON, GetContentSessionListItemScormSessionDataToJSON, } from './GetContentSessionListItemScormSessionData';
14
15
  import { GetContentSessionDetailUserDataFromJSON, GetContentSessionDetailUserDataToJSON, } from './GetContentSessionDetailUserData';
15
- import { GetContentSessionDetailScormSessionDataFromJSON, GetContentSessionDetailScormSessionDataToJSON, } from './GetContentSessionDetailScormSessionData';
16
16
  /**
17
17
  * Check if a given object implements the GetContentSessionListItem interface.
18
18
  */
@@ -44,7 +44,7 @@ export function GetContentSessionListItemFromJSONTyped(json, ignoreDiscriminator
44
44
  'updatedAt': json['updated_at'],
45
45
  'contentId': json['content_id'],
46
46
  'userData': GetContentSessionDetailUserDataFromJSON(json['user_data']),
47
- 'scormSessionData': GetContentSessionDetailScormSessionDataFromJSON(json['scorm_session_data']),
47
+ 'scormSessionData': GetContentSessionListItemScormSessionDataFromJSON(json['scorm_session_data']),
48
48
  };
49
49
  }
50
50
  export function GetContentSessionListItemToJSON(json) {
@@ -60,6 +60,6 @@ export function GetContentSessionListItemToJSONTyped(value, ignoreDiscriminator
60
60
  'updated_at': value['updatedAt'],
61
61
  'content_id': value['contentId'],
62
62
  'user_data': GetContentSessionDetailUserDataToJSON(value['userData']),
63
- 'scorm_session_data': GetContentSessionDetailScormSessionDataToJSON(value['scormSessionData']),
63
+ 'scorm_session_data': GetContentSessionListItemScormSessionDataToJSON(value['scormSessionData']),
64
64
  };
65
65
  }
@@ -0,0 +1,32 @@
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
+ * SCORM session data if this is a SCORM session, null otherwise
14
+ * @export
15
+ * @interface GetContentSessionListItemScormSessionData
16
+ */
17
+ export interface GetContentSessionListItemScormSessionData {
18
+ /**
19
+ * The external ID of the SCORM session
20
+ * @type {string}
21
+ * @memberof GetContentSessionListItemScormSessionData
22
+ */
23
+ scormSessionId: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the GetContentSessionListItemScormSessionData interface.
27
+ */
28
+ export declare function instanceOfGetContentSessionListItemScormSessionData(value: object): value is GetContentSessionListItemScormSessionData;
29
+ export declare function GetContentSessionListItemScormSessionDataFromJSON(json: any): GetContentSessionListItemScormSessionData;
30
+ export declare function GetContentSessionListItemScormSessionDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetContentSessionListItemScormSessionData;
31
+ export declare function GetContentSessionListItemScormSessionDataToJSON(json: any): GetContentSessionListItemScormSessionData;
32
+ export declare function GetContentSessionListItemScormSessionDataToJSONTyped(value?: GetContentSessionListItemScormSessionData | null, ignoreDiscriminator?: boolean): any;
@@ -12,17 +12,17 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  /**
15
- * Check if a given object implements the GetContentSessionDetailScormSessionData interface.
15
+ * Check if a given object implements the GetContentSessionListItemScormSessionData interface.
16
16
  */
17
- export function instanceOfGetContentSessionDetailScormSessionData(value) {
17
+ export function instanceOfGetContentSessionListItemScormSessionData(value) {
18
18
  if (!('scormSessionId' in value) || value['scormSessionId'] === undefined)
19
19
  return false;
20
20
  return true;
21
21
  }
22
- export function GetContentSessionDetailScormSessionDataFromJSON(json) {
23
- return GetContentSessionDetailScormSessionDataFromJSONTyped(json, false);
22
+ export function GetContentSessionListItemScormSessionDataFromJSON(json) {
23
+ return GetContentSessionListItemScormSessionDataFromJSONTyped(json, false);
24
24
  }
25
- export function GetContentSessionDetailScormSessionDataFromJSONTyped(json, ignoreDiscriminator) {
25
+ export function GetContentSessionListItemScormSessionDataFromJSONTyped(json, ignoreDiscriminator) {
26
26
  if (json == null) {
27
27
  return json;
28
28
  }
@@ -30,10 +30,10 @@ export function GetContentSessionDetailScormSessionDataFromJSONTyped(json, ignor
30
30
  'scormSessionId': json['scorm_session_id'],
31
31
  };
32
32
  }
33
- export function GetContentSessionDetailScormSessionDataToJSON(json) {
34
- return GetContentSessionDetailScormSessionDataToJSONTyped(json, false);
33
+ export function GetContentSessionListItemScormSessionDataToJSON(json) {
34
+ return GetContentSessionListItemScormSessionDataToJSONTyped(json, false);
35
35
  }
36
- export function GetContentSessionDetailScormSessionDataToJSONTyped(value, ignoreDiscriminator = false) {
36
+ export function GetContentSessionListItemScormSessionDataToJSONTyped(value, ignoreDiscriminator = false) {
37
37
  if (value == null) {
38
38
  return value;
39
39
  }
@@ -16,10 +16,11 @@ export * from './GetContentInstructorBasicReportingPerformance';
16
16
  export * from './GetContentList';
17
17
  export * from './GetContentSession';
18
18
  export * from './GetContentSessionDetail';
19
- export * from './GetContentSessionDetailScormSessionData';
19
+ export * from './GetContentSessionDetailScormSessionDataInner';
20
20
  export * from './GetContentSessionDetailUserData';
21
21
  export * from './GetContentSessionList';
22
22
  export * from './GetContentSessionListItem';
23
+ export * from './GetContentSessionListItemScormSessionData';
23
24
  export * from './GetContentUpload';
24
25
  export * from './GetContentVersion';
25
26
  export * from './GetContentVersionList';
@@ -18,10 +18,11 @@ export * from './GetContentInstructorBasicReportingPerformance';
18
18
  export * from './GetContentList';
19
19
  export * from './GetContentSession';
20
20
  export * from './GetContentSessionDetail';
21
- export * from './GetContentSessionDetailScormSessionData';
21
+ export * from './GetContentSessionDetailScormSessionDataInner';
22
22
  export * from './GetContentSessionDetailUserData';
23
23
  export * from './GetContentSessionList';
24
24
  export * from './GetContentSessionListItem';
25
+ export * from './GetContentSessionListItemScormSessionData';
25
26
  export * from './GetContentUpload';
26
27
  export * from './GetContentVersion';
27
28
  export * from './GetContentVersionList';
@@ -9,8 +9,8 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { GetContentSessionDetailScormSessionDataInner } from './GetContentSessionDetailScormSessionDataInner';
12
13
  import type { GetContentSessionDetailUserData } from './GetContentSessionDetailUserData';
13
- import type { GetContentSessionDetailScormSessionData } from './GetContentSessionDetailScormSessionData';
14
14
  /**
15
15
  * Detailed content session information
16
16
  * @export
@@ -66,11 +66,11 @@ export interface GetContentSessionDetail {
66
66
  */
67
67
  userData: GetContentSessionDetailUserData;
68
68
  /**
69
- *
70
- * @type {GetContentSessionDetailScormSessionData}
69
+ * SCORM session data if this is a SCORM session, null otherwise
70
+ * @type {Array<GetContentSessionDetailScormSessionDataInner>}
71
71
  * @memberof GetContentSessionDetail
72
72
  */
73
- scormSessionData: GetContentSessionDetailScormSessionData | null;
73
+ scormSessionData: Array<GetContentSessionDetailScormSessionDataInner> | null;
74
74
  }
75
75
  /**
76
76
  * @export
@@ -19,8 +19,8 @@ exports.GetContentSessionDetailFromJSON = GetContentSessionDetailFromJSON;
19
19
  exports.GetContentSessionDetailFromJSONTyped = GetContentSessionDetailFromJSONTyped;
20
20
  exports.GetContentSessionDetailToJSON = GetContentSessionDetailToJSON;
21
21
  exports.GetContentSessionDetailToJSONTyped = GetContentSessionDetailToJSONTyped;
22
+ const GetContentSessionDetailScormSessionDataInner_1 = require("./GetContentSessionDetailScormSessionDataInner");
22
23
  const GetContentSessionDetailUserData_1 = require("./GetContentSessionDetailUserData");
23
- const GetContentSessionDetailScormSessionData_1 = require("./GetContentSessionDetailScormSessionData");
24
24
  /**
25
25
  * @export
26
26
  */
@@ -80,7 +80,7 @@ function GetContentSessionDetailFromJSONTyped(json, ignoreDiscriminator) {
80
80
  'gradeStatus': json['grade_status'],
81
81
  'durationInSeconds': json['duration_in_seconds'],
82
82
  'userData': (0, GetContentSessionDetailUserData_1.GetContentSessionDetailUserDataFromJSON)(json['user_data']),
83
- 'scormSessionData': (0, GetContentSessionDetailScormSessionData_1.GetContentSessionDetailScormSessionDataFromJSON)(json['scorm_session_data']),
83
+ 'scormSessionData': (json['scorm_session_data'] == null ? null : json['scorm_session_data'].map(GetContentSessionDetailScormSessionDataInner_1.GetContentSessionDetailScormSessionDataInnerFromJSON)),
84
84
  };
85
85
  }
86
86
  function GetContentSessionDetailToJSON(json) {
@@ -99,6 +99,6 @@ function GetContentSessionDetailToJSONTyped(value, ignoreDiscriminator = false)
99
99
  'grade_status': value['gradeStatus'],
100
100
  'duration_in_seconds': value['durationInSeconds'],
101
101
  'user_data': (0, GetContentSessionDetailUserData_1.GetContentSessionDetailUserDataToJSON)(value['userData']),
102
- 'scorm_session_data': (0, GetContentSessionDetailScormSessionData_1.GetContentSessionDetailScormSessionDataToJSON)(value['scormSessionData']),
102
+ 'scorm_session_data': (value['scormSessionData'] == null ? null : value['scormSessionData'].map(GetContentSessionDetailScormSessionDataInner_1.GetContentSessionDetailScormSessionDataInnerToJSON)),
103
103
  };
104
104
  }
@@ -0,0 +1,38 @@
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 GetContentSessionDetailScormSessionDataInner
16
+ */
17
+ export interface GetContentSessionDetailScormSessionDataInner {
18
+ /**
19
+ * The external ID of the SCORM session
20
+ * @type {string}
21
+ * @memberof GetContentSessionDetailScormSessionDataInner
22
+ */
23
+ scormSessionId: string;
24
+ /**
25
+ * The name of the SCORM activity
26
+ * @type {string}
27
+ * @memberof GetContentSessionDetailScormSessionDataInner
28
+ */
29
+ activityName: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the GetContentSessionDetailScormSessionDataInner interface.
33
+ */
34
+ export declare function instanceOfGetContentSessionDetailScormSessionDataInner(value: object): value is GetContentSessionDetailScormSessionDataInner;
35
+ export declare function GetContentSessionDetailScormSessionDataInnerFromJSON(json: any): GetContentSessionDetailScormSessionDataInner;
36
+ export declare function GetContentSessionDetailScormSessionDataInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetContentSessionDetailScormSessionDataInner;
37
+ export declare function GetContentSessionDetailScormSessionDataInnerToJSON(json: any): GetContentSessionDetailScormSessionDataInner;
38
+ export declare function GetContentSessionDetailScormSessionDataInnerToJSONTyped(value?: GetContentSessionDetailScormSessionDataInner | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,54 @@
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.instanceOfGetContentSessionDetailScormSessionDataInner = instanceOfGetContentSessionDetailScormSessionDataInner;
17
+ exports.GetContentSessionDetailScormSessionDataInnerFromJSON = GetContentSessionDetailScormSessionDataInnerFromJSON;
18
+ exports.GetContentSessionDetailScormSessionDataInnerFromJSONTyped = GetContentSessionDetailScormSessionDataInnerFromJSONTyped;
19
+ exports.GetContentSessionDetailScormSessionDataInnerToJSON = GetContentSessionDetailScormSessionDataInnerToJSON;
20
+ exports.GetContentSessionDetailScormSessionDataInnerToJSONTyped = GetContentSessionDetailScormSessionDataInnerToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the GetContentSessionDetailScormSessionDataInner interface.
23
+ */
24
+ function instanceOfGetContentSessionDetailScormSessionDataInner(value) {
25
+ if (!('scormSessionId' in value) || value['scormSessionId'] === undefined)
26
+ return false;
27
+ if (!('activityName' in value) || value['activityName'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function GetContentSessionDetailScormSessionDataInnerFromJSON(json) {
32
+ return GetContentSessionDetailScormSessionDataInnerFromJSONTyped(json, false);
33
+ }
34
+ function GetContentSessionDetailScormSessionDataInnerFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'scormSessionId': json['scorm_session_id'],
40
+ 'activityName': json['activity_name'],
41
+ };
42
+ }
43
+ function GetContentSessionDetailScormSessionDataInnerToJSON(json) {
44
+ return GetContentSessionDetailScormSessionDataInnerToJSONTyped(json, false);
45
+ }
46
+ function GetContentSessionDetailScormSessionDataInnerToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'scorm_session_id': value['scormSessionId'],
52
+ 'activity_name': value['activityName'],
53
+ };
54
+ }
@@ -9,8 +9,8 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { GetContentSessionListItemScormSessionData } from './GetContentSessionListItemScormSessionData';
12
13
  import type { GetContentSessionDetailUserData } from './GetContentSessionDetailUserData';
13
- import type { GetContentSessionDetailScormSessionData } from './GetContentSessionDetailScormSessionData';
14
14
  /**
15
15
  * A content session list item
16
16
  * @export
@@ -49,10 +49,10 @@ export interface GetContentSessionListItem {
49
49
  userData: GetContentSessionDetailUserData;
50
50
  /**
51
51
  *
52
- * @type {GetContentSessionDetailScormSessionData}
52
+ * @type {GetContentSessionListItemScormSessionData}
53
53
  * @memberof GetContentSessionListItem
54
54
  */
55
- scormSessionData: GetContentSessionDetailScormSessionData | null;
55
+ scormSessionData: GetContentSessionListItemScormSessionData | null;
56
56
  }
57
57
  /**
58
58
  * Check if a given object implements the GetContentSessionListItem interface.
@@ -18,8 +18,8 @@ exports.GetContentSessionListItemFromJSON = GetContentSessionListItemFromJSON;
18
18
  exports.GetContentSessionListItemFromJSONTyped = GetContentSessionListItemFromJSONTyped;
19
19
  exports.GetContentSessionListItemToJSON = GetContentSessionListItemToJSON;
20
20
  exports.GetContentSessionListItemToJSONTyped = GetContentSessionListItemToJSONTyped;
21
+ const GetContentSessionListItemScormSessionData_1 = require("./GetContentSessionListItemScormSessionData");
21
22
  const GetContentSessionDetailUserData_1 = require("./GetContentSessionDetailUserData");
22
- const GetContentSessionDetailScormSessionData_1 = require("./GetContentSessionDetailScormSessionData");
23
23
  /**
24
24
  * Check if a given object implements the GetContentSessionListItem interface.
25
25
  */
@@ -51,7 +51,7 @@ function GetContentSessionListItemFromJSONTyped(json, ignoreDiscriminator) {
51
51
  'updatedAt': json['updated_at'],
52
52
  'contentId': json['content_id'],
53
53
  'userData': (0, GetContentSessionDetailUserData_1.GetContentSessionDetailUserDataFromJSON)(json['user_data']),
54
- 'scormSessionData': (0, GetContentSessionDetailScormSessionData_1.GetContentSessionDetailScormSessionDataFromJSON)(json['scorm_session_data']),
54
+ 'scormSessionData': (0, GetContentSessionListItemScormSessionData_1.GetContentSessionListItemScormSessionDataFromJSON)(json['scorm_session_data']),
55
55
  };
56
56
  }
57
57
  function GetContentSessionListItemToJSON(json) {
@@ -67,6 +67,6 @@ function GetContentSessionListItemToJSONTyped(value, ignoreDiscriminator = false
67
67
  'updated_at': value['updatedAt'],
68
68
  'content_id': value['contentId'],
69
69
  'user_data': (0, GetContentSessionDetailUserData_1.GetContentSessionDetailUserDataToJSON)(value['userData']),
70
- 'scorm_session_data': (0, GetContentSessionDetailScormSessionData_1.GetContentSessionDetailScormSessionDataToJSON)(value['scormSessionData']),
70
+ 'scorm_session_data': (0, GetContentSessionListItemScormSessionData_1.GetContentSessionListItemScormSessionDataToJSON)(value['scormSessionData']),
71
71
  };
72
72
  }
@@ -0,0 +1,32 @@
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
+ * SCORM session data if this is a SCORM session, null otherwise
14
+ * @export
15
+ * @interface GetContentSessionListItemScormSessionData
16
+ */
17
+ export interface GetContentSessionListItemScormSessionData {
18
+ /**
19
+ * The external ID of the SCORM session
20
+ * @type {string}
21
+ * @memberof GetContentSessionListItemScormSessionData
22
+ */
23
+ scormSessionId: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the GetContentSessionListItemScormSessionData interface.
27
+ */
28
+ export declare function instanceOfGetContentSessionListItemScormSessionData(value: object): value is GetContentSessionListItemScormSessionData;
29
+ export declare function GetContentSessionListItemScormSessionDataFromJSON(json: any): GetContentSessionListItemScormSessionData;
30
+ export declare function GetContentSessionListItemScormSessionDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetContentSessionListItemScormSessionData;
31
+ export declare function GetContentSessionListItemScormSessionDataToJSON(json: any): GetContentSessionListItemScormSessionData;
32
+ export declare function GetContentSessionListItemScormSessionDataToJSONTyped(value?: GetContentSessionListItemScormSessionData | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,50 @@
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.instanceOfGetContentSessionListItemScormSessionData = instanceOfGetContentSessionListItemScormSessionData;
17
+ exports.GetContentSessionListItemScormSessionDataFromJSON = GetContentSessionListItemScormSessionDataFromJSON;
18
+ exports.GetContentSessionListItemScormSessionDataFromJSONTyped = GetContentSessionListItemScormSessionDataFromJSONTyped;
19
+ exports.GetContentSessionListItemScormSessionDataToJSON = GetContentSessionListItemScormSessionDataToJSON;
20
+ exports.GetContentSessionListItemScormSessionDataToJSONTyped = GetContentSessionListItemScormSessionDataToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the GetContentSessionListItemScormSessionData interface.
23
+ */
24
+ function instanceOfGetContentSessionListItemScormSessionData(value) {
25
+ if (!('scormSessionId' in value) || value['scormSessionId'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function GetContentSessionListItemScormSessionDataFromJSON(json) {
30
+ return GetContentSessionListItemScormSessionDataFromJSONTyped(json, false);
31
+ }
32
+ function GetContentSessionListItemScormSessionDataFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'scormSessionId': json['scorm_session_id'],
38
+ };
39
+ }
40
+ function GetContentSessionListItemScormSessionDataToJSON(json) {
41
+ return GetContentSessionListItemScormSessionDataToJSONTyped(json, false);
42
+ }
43
+ function GetContentSessionListItemScormSessionDataToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'scorm_session_id': value['scormSessionId'],
49
+ };
50
+ }
@@ -16,10 +16,11 @@ export * from './GetContentInstructorBasicReportingPerformance';
16
16
  export * from './GetContentList';
17
17
  export * from './GetContentSession';
18
18
  export * from './GetContentSessionDetail';
19
- export * from './GetContentSessionDetailScormSessionData';
19
+ export * from './GetContentSessionDetailScormSessionDataInner';
20
20
  export * from './GetContentSessionDetailUserData';
21
21
  export * from './GetContentSessionList';
22
22
  export * from './GetContentSessionListItem';
23
+ export * from './GetContentSessionListItemScormSessionData';
23
24
  export * from './GetContentUpload';
24
25
  export * from './GetContentVersion';
25
26
  export * from './GetContentVersionList';
@@ -34,10 +34,11 @@ __exportStar(require("./GetContentInstructorBasicReportingPerformance"), exports
34
34
  __exportStar(require("./GetContentList"), exports);
35
35
  __exportStar(require("./GetContentSession"), exports);
36
36
  __exportStar(require("./GetContentSessionDetail"), exports);
37
- __exportStar(require("./GetContentSessionDetailScormSessionData"), exports);
37
+ __exportStar(require("./GetContentSessionDetailScormSessionDataInner"), exports);
38
38
  __exportStar(require("./GetContentSessionDetailUserData"), exports);
39
39
  __exportStar(require("./GetContentSessionList"), exports);
40
40
  __exportStar(require("./GetContentSessionListItem"), exports);
41
+ __exportStar(require("./GetContentSessionListItemScormSessionData"), exports);
41
42
  __exportStar(require("./GetContentUpload"), exports);
42
43
  __exportStar(require("./GetContentVersion"), exports);
43
44
  __exportStar(require("./GetContentVersionList"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easyedu/js-lsm-api",
3
- "version": "1.29.0",
3
+ "version": "1.30.0",
4
4
  "description": "OpenAPI client for @easyedu/js-lsm-api",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -13,6 +13,13 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
+ import type { GetContentSessionDetailScormSessionDataInner } from './GetContentSessionDetailScormSessionDataInner';
17
+ import {
18
+ GetContentSessionDetailScormSessionDataInnerFromJSON,
19
+ GetContentSessionDetailScormSessionDataInnerFromJSONTyped,
20
+ GetContentSessionDetailScormSessionDataInnerToJSON,
21
+ GetContentSessionDetailScormSessionDataInnerToJSONTyped,
22
+ } from './GetContentSessionDetailScormSessionDataInner';
16
23
  import type { GetContentSessionDetailUserData } from './GetContentSessionDetailUserData';
17
24
  import {
18
25
  GetContentSessionDetailUserDataFromJSON,
@@ -20,13 +27,6 @@ import {
20
27
  GetContentSessionDetailUserDataToJSON,
21
28
  GetContentSessionDetailUserDataToJSONTyped,
22
29
  } from './GetContentSessionDetailUserData';
23
- import type { GetContentSessionDetailScormSessionData } from './GetContentSessionDetailScormSessionData';
24
- import {
25
- GetContentSessionDetailScormSessionDataFromJSON,
26
- GetContentSessionDetailScormSessionDataFromJSONTyped,
27
- GetContentSessionDetailScormSessionDataToJSON,
28
- GetContentSessionDetailScormSessionDataToJSONTyped,
29
- } from './GetContentSessionDetailScormSessionData';
30
30
 
31
31
  /**
32
32
  * Detailed content session information
@@ -83,11 +83,11 @@ export interface GetContentSessionDetail {
83
83
  */
84
84
  userData: GetContentSessionDetailUserData;
85
85
  /**
86
- *
87
- * @type {GetContentSessionDetailScormSessionData}
86
+ * SCORM session data if this is a SCORM session, null otherwise
87
+ * @type {Array<GetContentSessionDetailScormSessionDataInner>}
88
88
  * @memberof GetContentSessionDetail
89
89
  */
90
- scormSessionData: GetContentSessionDetailScormSessionData | null;
90
+ scormSessionData: Array<GetContentSessionDetailScormSessionDataInner> | null;
91
91
  }
92
92
 
93
93
 
@@ -149,7 +149,7 @@ export function GetContentSessionDetailFromJSONTyped(json: any, ignoreDiscrimina
149
149
  'gradeStatus': json['grade_status'],
150
150
  'durationInSeconds': json['duration_in_seconds'],
151
151
  'userData': GetContentSessionDetailUserDataFromJSON(json['user_data']),
152
- 'scormSessionData': GetContentSessionDetailScormSessionDataFromJSON(json['scorm_session_data']),
152
+ 'scormSessionData': (json['scorm_session_data'] == null ? null : (json['scorm_session_data'] as Array<any>).map(GetContentSessionDetailScormSessionDataInnerFromJSON)),
153
153
  };
154
154
  }
155
155
 
@@ -172,7 +172,7 @@ export function GetContentSessionDetailToJSONTyped(value?: GetContentSessionDeta
172
172
  'grade_status': value['gradeStatus'],
173
173
  'duration_in_seconds': value['durationInSeconds'],
174
174
  'user_data': GetContentSessionDetailUserDataToJSON(value['userData']),
175
- 'scorm_session_data': GetContentSessionDetailScormSessionDataToJSON(value['scormSessionData']),
175
+ 'scorm_session_data': (value['scormSessionData'] == null ? null : (value['scormSessionData'] as Array<any>).map(GetContentSessionDetailScormSessionDataInnerToJSON)),
176
176
  };
177
177
  }
178
178
 
@@ -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 GetContentSessionDetailScormSessionDataInner
20
+ */
21
+ export interface GetContentSessionDetailScormSessionDataInner {
22
+ /**
23
+ * The external ID of the SCORM session
24
+ * @type {string}
25
+ * @memberof GetContentSessionDetailScormSessionDataInner
26
+ */
27
+ scormSessionId: string;
28
+ /**
29
+ * The name of the SCORM activity
30
+ * @type {string}
31
+ * @memberof GetContentSessionDetailScormSessionDataInner
32
+ */
33
+ activityName: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the GetContentSessionDetailScormSessionDataInner interface.
38
+ */
39
+ export function instanceOfGetContentSessionDetailScormSessionDataInner(value: object): value is GetContentSessionDetailScormSessionDataInner {
40
+ if (!('scormSessionId' in value) || value['scormSessionId'] === undefined) return false;
41
+ if (!('activityName' in value) || value['activityName'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function GetContentSessionDetailScormSessionDataInnerFromJSON(json: any): GetContentSessionDetailScormSessionDataInner {
46
+ return GetContentSessionDetailScormSessionDataInnerFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function GetContentSessionDetailScormSessionDataInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetContentSessionDetailScormSessionDataInner {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'scormSessionId': json['scorm_session_id'],
56
+ 'activityName': json['activity_name'],
57
+ };
58
+ }
59
+
60
+ export function GetContentSessionDetailScormSessionDataInnerToJSON(json: any): GetContentSessionDetailScormSessionDataInner {
61
+ return GetContentSessionDetailScormSessionDataInnerToJSONTyped(json, false);
62
+ }
63
+
64
+ export function GetContentSessionDetailScormSessionDataInnerToJSONTyped(value?: GetContentSessionDetailScormSessionDataInner | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'scorm_session_id': value['scormSessionId'],
72
+ 'activity_name': value['activityName'],
73
+ };
74
+ }
75
+
@@ -13,6 +13,13 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
+ import type { GetContentSessionListItemScormSessionData } from './GetContentSessionListItemScormSessionData';
17
+ import {
18
+ GetContentSessionListItemScormSessionDataFromJSON,
19
+ GetContentSessionListItemScormSessionDataFromJSONTyped,
20
+ GetContentSessionListItemScormSessionDataToJSON,
21
+ GetContentSessionListItemScormSessionDataToJSONTyped,
22
+ } from './GetContentSessionListItemScormSessionData';
16
23
  import type { GetContentSessionDetailUserData } from './GetContentSessionDetailUserData';
17
24
  import {
18
25
  GetContentSessionDetailUserDataFromJSON,
@@ -20,13 +27,6 @@ import {
20
27
  GetContentSessionDetailUserDataToJSON,
21
28
  GetContentSessionDetailUserDataToJSONTyped,
22
29
  } from './GetContentSessionDetailUserData';
23
- import type { GetContentSessionDetailScormSessionData } from './GetContentSessionDetailScormSessionData';
24
- import {
25
- GetContentSessionDetailScormSessionDataFromJSON,
26
- GetContentSessionDetailScormSessionDataFromJSONTyped,
27
- GetContentSessionDetailScormSessionDataToJSON,
28
- GetContentSessionDetailScormSessionDataToJSONTyped,
29
- } from './GetContentSessionDetailScormSessionData';
30
30
 
31
31
  /**
32
32
  * A content session list item
@@ -66,10 +66,10 @@ export interface GetContentSessionListItem {
66
66
  userData: GetContentSessionDetailUserData;
67
67
  /**
68
68
  *
69
- * @type {GetContentSessionDetailScormSessionData}
69
+ * @type {GetContentSessionListItemScormSessionData}
70
70
  * @memberof GetContentSessionListItem
71
71
  */
72
- scormSessionData: GetContentSessionDetailScormSessionData | null;
72
+ scormSessionData: GetContentSessionListItemScormSessionData | null;
73
73
  }
74
74
 
75
75
  /**
@@ -100,7 +100,7 @@ export function GetContentSessionListItemFromJSONTyped(json: any, ignoreDiscrimi
100
100
  'updatedAt': json['updated_at'],
101
101
  'contentId': json['content_id'],
102
102
  'userData': GetContentSessionDetailUserDataFromJSON(json['user_data']),
103
- 'scormSessionData': GetContentSessionDetailScormSessionDataFromJSON(json['scorm_session_data']),
103
+ 'scormSessionData': GetContentSessionListItemScormSessionDataFromJSON(json['scorm_session_data']),
104
104
  };
105
105
  }
106
106
 
@@ -120,7 +120,7 @@ export function GetContentSessionListItemToJSONTyped(value?: GetContentSessionLi
120
120
  'updated_at': value['updatedAt'],
121
121
  'content_id': value['contentId'],
122
122
  'user_data': GetContentSessionDetailUserDataToJSON(value['userData']),
123
- 'scorm_session_data': GetContentSessionDetailScormSessionDataToJSON(value['scormSessionData']),
123
+ 'scorm_session_data': GetContentSessionListItemScormSessionDataToJSON(value['scormSessionData']),
124
124
  };
125
125
  }
126
126
 
@@ -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
+ * SCORM session data if this is a SCORM session, null otherwise
18
+ * @export
19
+ * @interface GetContentSessionListItemScormSessionData
20
+ */
21
+ export interface GetContentSessionListItemScormSessionData {
22
+ /**
23
+ * The external ID of the SCORM session
24
+ * @type {string}
25
+ * @memberof GetContentSessionListItemScormSessionData
26
+ */
27
+ scormSessionId: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the GetContentSessionListItemScormSessionData interface.
32
+ */
33
+ export function instanceOfGetContentSessionListItemScormSessionData(value: object): value is GetContentSessionListItemScormSessionData {
34
+ if (!('scormSessionId' in value) || value['scormSessionId'] === undefined) return false;
35
+ return true;
36
+ }
37
+
38
+ export function GetContentSessionListItemScormSessionDataFromJSON(json: any): GetContentSessionListItemScormSessionData {
39
+ return GetContentSessionListItemScormSessionDataFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function GetContentSessionListItemScormSessionDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetContentSessionListItemScormSessionData {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'scormSessionId': json['scorm_session_id'],
49
+ };
50
+ }
51
+
52
+ export function GetContentSessionListItemScormSessionDataToJSON(json: any): GetContentSessionListItemScormSessionData {
53
+ return GetContentSessionListItemScormSessionDataToJSONTyped(json, false);
54
+ }
55
+
56
+ export function GetContentSessionListItemScormSessionDataToJSONTyped(value?: GetContentSessionListItemScormSessionData | null, ignoreDiscriminator: boolean = false): any {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+
61
+ return {
62
+
63
+ 'scorm_session_id': value['scormSessionId'],
64
+ };
65
+ }
66
+
@@ -18,10 +18,11 @@ export * from './GetContentInstructorBasicReportingPerformance';
18
18
  export * from './GetContentList';
19
19
  export * from './GetContentSession';
20
20
  export * from './GetContentSessionDetail';
21
- export * from './GetContentSessionDetailScormSessionData';
21
+ export * from './GetContentSessionDetailScormSessionDataInner';
22
22
  export * from './GetContentSessionDetailUserData';
23
23
  export * from './GetContentSessionList';
24
24
  export * from './GetContentSessionListItem';
25
+ export * from './GetContentSessionListItemScormSessionData';
25
26
  export * from './GetContentUpload';
26
27
  export * from './GetContentVersion';
27
28
  export * from './GetContentVersionList';
@@ -1,32 +0,0 @@
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
- * SCORM session data if this is a SCORM session, null otherwise
14
- * @export
15
- * @interface GetContentSessionDetailScormSessionData
16
- */
17
- export interface GetContentSessionDetailScormSessionData {
18
- /**
19
- * The external ID of the SCORM session
20
- * @type {string}
21
- * @memberof GetContentSessionDetailScormSessionData
22
- */
23
- scormSessionId: string;
24
- }
25
- /**
26
- * Check if a given object implements the GetContentSessionDetailScormSessionData interface.
27
- */
28
- export declare function instanceOfGetContentSessionDetailScormSessionData(value: object): value is GetContentSessionDetailScormSessionData;
29
- export declare function GetContentSessionDetailScormSessionDataFromJSON(json: any): GetContentSessionDetailScormSessionData;
30
- export declare function GetContentSessionDetailScormSessionDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetContentSessionDetailScormSessionData;
31
- export declare function GetContentSessionDetailScormSessionDataToJSON(json: any): GetContentSessionDetailScormSessionData;
32
- export declare function GetContentSessionDetailScormSessionDataToJSONTyped(value?: GetContentSessionDetailScormSessionData | null, ignoreDiscriminator?: boolean): any;
@@ -1,32 +0,0 @@
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
- * SCORM session data if this is a SCORM session, null otherwise
14
- * @export
15
- * @interface GetContentSessionDetailScormSessionData
16
- */
17
- export interface GetContentSessionDetailScormSessionData {
18
- /**
19
- * The external ID of the SCORM session
20
- * @type {string}
21
- * @memberof GetContentSessionDetailScormSessionData
22
- */
23
- scormSessionId: string;
24
- }
25
- /**
26
- * Check if a given object implements the GetContentSessionDetailScormSessionData interface.
27
- */
28
- export declare function instanceOfGetContentSessionDetailScormSessionData(value: object): value is GetContentSessionDetailScormSessionData;
29
- export declare function GetContentSessionDetailScormSessionDataFromJSON(json: any): GetContentSessionDetailScormSessionData;
30
- export declare function GetContentSessionDetailScormSessionDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetContentSessionDetailScormSessionData;
31
- export declare function GetContentSessionDetailScormSessionDataToJSON(json: any): GetContentSessionDetailScormSessionData;
32
- export declare function GetContentSessionDetailScormSessionDataToJSONTyped(value?: GetContentSessionDetailScormSessionData | null, ignoreDiscriminator?: boolean): any;
@@ -1,50 +0,0 @@
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.instanceOfGetContentSessionDetailScormSessionData = instanceOfGetContentSessionDetailScormSessionData;
17
- exports.GetContentSessionDetailScormSessionDataFromJSON = GetContentSessionDetailScormSessionDataFromJSON;
18
- exports.GetContentSessionDetailScormSessionDataFromJSONTyped = GetContentSessionDetailScormSessionDataFromJSONTyped;
19
- exports.GetContentSessionDetailScormSessionDataToJSON = GetContentSessionDetailScormSessionDataToJSON;
20
- exports.GetContentSessionDetailScormSessionDataToJSONTyped = GetContentSessionDetailScormSessionDataToJSONTyped;
21
- /**
22
- * Check if a given object implements the GetContentSessionDetailScormSessionData interface.
23
- */
24
- function instanceOfGetContentSessionDetailScormSessionData(value) {
25
- if (!('scormSessionId' in value) || value['scormSessionId'] === undefined)
26
- return false;
27
- return true;
28
- }
29
- function GetContentSessionDetailScormSessionDataFromJSON(json) {
30
- return GetContentSessionDetailScormSessionDataFromJSONTyped(json, false);
31
- }
32
- function GetContentSessionDetailScormSessionDataFromJSONTyped(json, ignoreDiscriminator) {
33
- if (json == null) {
34
- return json;
35
- }
36
- return {
37
- 'scormSessionId': json['scorm_session_id'],
38
- };
39
- }
40
- function GetContentSessionDetailScormSessionDataToJSON(json) {
41
- return GetContentSessionDetailScormSessionDataToJSONTyped(json, false);
42
- }
43
- function GetContentSessionDetailScormSessionDataToJSONTyped(value, ignoreDiscriminator = false) {
44
- if (value == null) {
45
- return value;
46
- }
47
- return {
48
- 'scorm_session_id': value['scormSessionId'],
49
- };
50
- }
@@ -1,66 +0,0 @@
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
- * SCORM session data if this is a SCORM session, null otherwise
18
- * @export
19
- * @interface GetContentSessionDetailScormSessionData
20
- */
21
- export interface GetContentSessionDetailScormSessionData {
22
- /**
23
- * The external ID of the SCORM session
24
- * @type {string}
25
- * @memberof GetContentSessionDetailScormSessionData
26
- */
27
- scormSessionId: string;
28
- }
29
-
30
- /**
31
- * Check if a given object implements the GetContentSessionDetailScormSessionData interface.
32
- */
33
- export function instanceOfGetContentSessionDetailScormSessionData(value: object): value is GetContentSessionDetailScormSessionData {
34
- if (!('scormSessionId' in value) || value['scormSessionId'] === undefined) return false;
35
- return true;
36
- }
37
-
38
- export function GetContentSessionDetailScormSessionDataFromJSON(json: any): GetContentSessionDetailScormSessionData {
39
- return GetContentSessionDetailScormSessionDataFromJSONTyped(json, false);
40
- }
41
-
42
- export function GetContentSessionDetailScormSessionDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetContentSessionDetailScormSessionData {
43
- if (json == null) {
44
- return json;
45
- }
46
- return {
47
-
48
- 'scormSessionId': json['scorm_session_id'],
49
- };
50
- }
51
-
52
- export function GetContentSessionDetailScormSessionDataToJSON(json: any): GetContentSessionDetailScormSessionData {
53
- return GetContentSessionDetailScormSessionDataToJSONTyped(json, false);
54
- }
55
-
56
- export function GetContentSessionDetailScormSessionDataToJSONTyped(value?: GetContentSessionDetailScormSessionData | null, ignoreDiscriminator: boolean = false): any {
57
- if (value == null) {
58
- return value;
59
- }
60
-
61
- return {
62
-
63
- 'scorm_session_id': value['scormSessionId'],
64
- };
65
- }
66
-