@easyedu/js-lsm-api 1.28.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 (63) hide show
  1. package/.openapi-generator/FILES +10 -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/GetContentSessionDetailScormSessionDataInner.d.ts +38 -0
  10. package/dist/esm/models/GetContentSessionDetailScormSessionDataInner.js +47 -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/GetContentSessionListItemScormSessionData.d.ts +32 -0
  18. package/dist/esm/models/GetContentSessionListItemScormSessionData.js +43 -0
  19. package/dist/esm/models/GetScormApiLogItem.d.ts +73 -0
  20. package/dist/esm/models/GetScormApiLogItem.js +73 -0
  21. package/dist/esm/models/GetScormApiLogs.d.ts +57 -0
  22. package/dist/esm/models/GetScormApiLogs.js +60 -0
  23. package/dist/esm/models/GetScormSessionData.d.ts +59 -0
  24. package/dist/esm/models/GetScormSessionData.js +60 -0
  25. package/dist/esm/models/GetScormSessionDataActivity.d.ts +38 -0
  26. package/dist/esm/models/GetScormSessionDataActivity.js +47 -0
  27. package/dist/esm/models/index.d.ts +10 -0
  28. package/dist/esm/models/index.js +10 -0
  29. package/dist/models/GetContentSessionDetail.d.ts +103 -0
  30. package/dist/models/GetContentSessionDetail.js +104 -0
  31. package/dist/models/GetContentSessionDetailScormSessionDataInner.d.ts +38 -0
  32. package/dist/models/GetContentSessionDetailScormSessionDataInner.js +54 -0
  33. package/dist/models/GetContentSessionDetailUserData.d.ts +38 -0
  34. package/dist/models/GetContentSessionDetailUserData.js +54 -0
  35. package/dist/models/GetContentSessionList.d.ts +57 -0
  36. package/dist/models/GetContentSessionList.js +67 -0
  37. package/dist/models/GetContentSessionListItem.d.ts +64 -0
  38. package/dist/models/GetContentSessionListItem.js +72 -0
  39. package/dist/models/GetContentSessionListItemScormSessionData.d.ts +32 -0
  40. package/dist/models/GetContentSessionListItemScormSessionData.js +50 -0
  41. package/dist/models/GetScormApiLogItem.d.ts +73 -0
  42. package/dist/models/GetScormApiLogItem.js +81 -0
  43. package/dist/models/GetScormApiLogs.d.ts +57 -0
  44. package/dist/models/GetScormApiLogs.js +67 -0
  45. package/dist/models/GetScormSessionData.d.ts +59 -0
  46. package/dist/models/GetScormSessionData.js +67 -0
  47. package/dist/models/GetScormSessionDataActivity.d.ts +38 -0
  48. package/dist/models/GetScormSessionDataActivity.js +54 -0
  49. package/dist/models/index.d.ts +10 -0
  50. package/dist/models/index.js +10 -0
  51. package/package.json +1 -1
  52. package/src/apis/ContentApi.ts +242 -0
  53. package/src/models/GetContentSessionDetail.ts +178 -0
  54. package/src/models/GetContentSessionDetailScormSessionDataInner.ts +75 -0
  55. package/src/models/GetContentSessionDetailUserData.ts +75 -0
  56. package/src/models/GetContentSessionList.ts +110 -0
  57. package/src/models/GetContentSessionListItem.ts +126 -0
  58. package/src/models/GetContentSessionListItemScormSessionData.ts +66 -0
  59. package/src/models/GetScormApiLogItem.ts +125 -0
  60. package/src/models/GetScormApiLogs.ts +110 -0
  61. package/src/models/GetScormSessionData.ts +110 -0
  62. package/src/models/GetScormSessionDataActivity.ts +75 -0
  63. package/src/models/index.ts +10 -0
@@ -0,0 +1,104 @@
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.GetContentSessionDetailGradeStatusEnum = exports.GetContentSessionDetailCompletionStatusEnum = void 0;
17
+ exports.instanceOfGetContentSessionDetail = instanceOfGetContentSessionDetail;
18
+ exports.GetContentSessionDetailFromJSON = GetContentSessionDetailFromJSON;
19
+ exports.GetContentSessionDetailFromJSONTyped = GetContentSessionDetailFromJSONTyped;
20
+ exports.GetContentSessionDetailToJSON = GetContentSessionDetailToJSON;
21
+ exports.GetContentSessionDetailToJSONTyped = GetContentSessionDetailToJSONTyped;
22
+ const GetContentSessionDetailScormSessionDataInner_1 = require("./GetContentSessionDetailScormSessionDataInner");
23
+ const GetContentSessionDetailUserData_1 = require("./GetContentSessionDetailUserData");
24
+ /**
25
+ * @export
26
+ */
27
+ exports.GetContentSessionDetailCompletionStatusEnum = {
28
+ NotAttempted: 'NotAttempted',
29
+ InProgress: 'InProgress',
30
+ Completed: 'Completed'
31
+ };
32
+ /**
33
+ * @export
34
+ */
35
+ exports.GetContentSessionDetailGradeStatusEnum = {
36
+ Ungraded: 'Ungraded',
37
+ Passed: 'Passed',
38
+ Failed: 'Failed',
39
+ PointsEarned: 'PointsEarned',
40
+ PercentageEarned: 'PercentageEarned',
41
+ NotApplicable: 'NotApplicable'
42
+ };
43
+ /**
44
+ * Check if a given object implements the GetContentSessionDetail interface.
45
+ */
46
+ function instanceOfGetContentSessionDetail(value) {
47
+ if (!('id' in value) || value['id'] === undefined)
48
+ return false;
49
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
50
+ return false;
51
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
52
+ return false;
53
+ if (!('contentId' in value) || value['contentId'] === undefined)
54
+ return false;
55
+ if (!('completionStatus' in value) || value['completionStatus'] === undefined)
56
+ return false;
57
+ if (!('gradeStatus' in value) || value['gradeStatus'] === undefined)
58
+ return false;
59
+ if (!('durationInSeconds' in value) || value['durationInSeconds'] === undefined)
60
+ return false;
61
+ if (!('userData' in value) || value['userData'] === undefined)
62
+ return false;
63
+ if (!('scormSessionData' in value) || value['scormSessionData'] === undefined)
64
+ return false;
65
+ return true;
66
+ }
67
+ function GetContentSessionDetailFromJSON(json) {
68
+ return GetContentSessionDetailFromJSONTyped(json, false);
69
+ }
70
+ function GetContentSessionDetailFromJSONTyped(json, ignoreDiscriminator) {
71
+ if (json == null) {
72
+ return json;
73
+ }
74
+ return {
75
+ 'id': json['id'],
76
+ 'createdAt': json['created_at'],
77
+ 'updatedAt': json['updated_at'],
78
+ 'contentId': json['content_id'],
79
+ 'completionStatus': json['completion_status'],
80
+ 'gradeStatus': json['grade_status'],
81
+ 'durationInSeconds': json['duration_in_seconds'],
82
+ 'userData': (0, GetContentSessionDetailUserData_1.GetContentSessionDetailUserDataFromJSON)(json['user_data']),
83
+ 'scormSessionData': (json['scorm_session_data'] == null ? null : json['scorm_session_data'].map(GetContentSessionDetailScormSessionDataInner_1.GetContentSessionDetailScormSessionDataInnerFromJSON)),
84
+ };
85
+ }
86
+ function GetContentSessionDetailToJSON(json) {
87
+ return GetContentSessionDetailToJSONTyped(json, false);
88
+ }
89
+ function GetContentSessionDetailToJSONTyped(value, ignoreDiscriminator = false) {
90
+ if (value == null) {
91
+ return value;
92
+ }
93
+ return {
94
+ 'id': value['id'],
95
+ 'created_at': value['createdAt'],
96
+ 'updated_at': value['updatedAt'],
97
+ 'content_id': value['contentId'],
98
+ 'completion_status': value['completionStatus'],
99
+ 'grade_status': value['gradeStatus'],
100
+ 'duration_in_seconds': value['durationInSeconds'],
101
+ 'user_data': (0, GetContentSessionDetailUserData_1.GetContentSessionDetailUserDataToJSON)(value['userData']),
102
+ 'scorm_session_data': (value['scormSessionData'] == null ? null : value['scormSessionData'].map(GetContentSessionDetailScormSessionDataInner_1.GetContentSessionDetailScormSessionDataInnerToJSON)),
103
+ };
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
+ }
@@ -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 GetContentSessionDetailUserData
16
+ */
17
+ export interface GetContentSessionDetailUserData {
18
+ /**
19
+ * The external ID of the user
20
+ * @type {string}
21
+ * @memberof GetContentSessionDetailUserData
22
+ */
23
+ userId: string;
24
+ /**
25
+ * The name of the user
26
+ * @type {string}
27
+ * @memberof GetContentSessionDetailUserData
28
+ */
29
+ userName: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the GetContentSessionDetailUserData interface.
33
+ */
34
+ export declare function instanceOfGetContentSessionDetailUserData(value: object): value is GetContentSessionDetailUserData;
35
+ export declare function GetContentSessionDetailUserDataFromJSON(json: any): GetContentSessionDetailUserData;
36
+ export declare function GetContentSessionDetailUserDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetContentSessionDetailUserData;
37
+ export declare function GetContentSessionDetailUserDataToJSON(json: any): GetContentSessionDetailUserData;
38
+ export declare function GetContentSessionDetailUserDataToJSONTyped(value?: GetContentSessionDetailUserData | 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.instanceOfGetContentSessionDetailUserData = instanceOfGetContentSessionDetailUserData;
17
+ exports.GetContentSessionDetailUserDataFromJSON = GetContentSessionDetailUserDataFromJSON;
18
+ exports.GetContentSessionDetailUserDataFromJSONTyped = GetContentSessionDetailUserDataFromJSONTyped;
19
+ exports.GetContentSessionDetailUserDataToJSON = GetContentSessionDetailUserDataToJSON;
20
+ exports.GetContentSessionDetailUserDataToJSONTyped = GetContentSessionDetailUserDataToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the GetContentSessionDetailUserData interface.
23
+ */
24
+ function instanceOfGetContentSessionDetailUserData(value) {
25
+ if (!('userId' in value) || value['userId'] === undefined)
26
+ return false;
27
+ if (!('userName' in value) || value['userName'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function GetContentSessionDetailUserDataFromJSON(json) {
32
+ return GetContentSessionDetailUserDataFromJSONTyped(json, false);
33
+ }
34
+ function GetContentSessionDetailUserDataFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'userId': json['user_id'],
40
+ 'userName': json['user_name'],
41
+ };
42
+ }
43
+ function GetContentSessionDetailUserDataToJSON(json) {
44
+ return GetContentSessionDetailUserDataToJSONTyped(json, false);
45
+ }
46
+ function GetContentSessionDetailUserDataToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'user_id': value['userId'],
52
+ 'user_name': value['userName'],
53
+ };
54
+ }
@@ -0,0 +1,57 @@
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
+ import type { GetContentSessionListItem } from './GetContentSessionListItem';
13
+ /**
14
+ * A list of content sessions with pagination information
15
+ * @export
16
+ * @interface GetContentSessionList
17
+ */
18
+ export interface GetContentSessionList {
19
+ /**
20
+ * The current page number
21
+ * @type {number}
22
+ * @memberof GetContentSessionList
23
+ */
24
+ page: number;
25
+ /**
26
+ * The number of items per page
27
+ * @type {number}
28
+ * @memberof GetContentSessionList
29
+ */
30
+ pageSize: number;
31
+ /**
32
+ * The total number of pages
33
+ * @type {number}
34
+ * @memberof GetContentSessionList
35
+ */
36
+ totalPages: number;
37
+ /**
38
+ * The total number of items
39
+ * @type {number}
40
+ * @memberof GetContentSessionList
41
+ */
42
+ totalItems: number;
43
+ /**
44
+ *
45
+ * @type {Array<GetContentSessionListItem>}
46
+ * @memberof GetContentSessionList
47
+ */
48
+ items: Array<GetContentSessionListItem>;
49
+ }
50
+ /**
51
+ * Check if a given object implements the GetContentSessionList interface.
52
+ */
53
+ export declare function instanceOfGetContentSessionList(value: object): value is GetContentSessionList;
54
+ export declare function GetContentSessionListFromJSON(json: any): GetContentSessionList;
55
+ export declare function GetContentSessionListFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetContentSessionList;
56
+ export declare function GetContentSessionListToJSON(json: any): GetContentSessionList;
57
+ export declare function GetContentSessionListToJSONTyped(value?: GetContentSessionList | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,67 @@
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.instanceOfGetContentSessionList = instanceOfGetContentSessionList;
17
+ exports.GetContentSessionListFromJSON = GetContentSessionListFromJSON;
18
+ exports.GetContentSessionListFromJSONTyped = GetContentSessionListFromJSONTyped;
19
+ exports.GetContentSessionListToJSON = GetContentSessionListToJSON;
20
+ exports.GetContentSessionListToJSONTyped = GetContentSessionListToJSONTyped;
21
+ const GetContentSessionListItem_1 = require("./GetContentSessionListItem");
22
+ /**
23
+ * Check if a given object implements the GetContentSessionList interface.
24
+ */
25
+ function instanceOfGetContentSessionList(value) {
26
+ if (!('page' in value) || value['page'] === undefined)
27
+ return false;
28
+ if (!('pageSize' in value) || value['pageSize'] === undefined)
29
+ return false;
30
+ if (!('totalPages' in value) || value['totalPages'] === undefined)
31
+ return false;
32
+ if (!('totalItems' in value) || value['totalItems'] === undefined)
33
+ return false;
34
+ if (!('items' in value) || value['items'] === undefined)
35
+ return false;
36
+ return true;
37
+ }
38
+ function GetContentSessionListFromJSON(json) {
39
+ return GetContentSessionListFromJSONTyped(json, false);
40
+ }
41
+ function GetContentSessionListFromJSONTyped(json, ignoreDiscriminator) {
42
+ if (json == null) {
43
+ return json;
44
+ }
45
+ return {
46
+ 'page': json['page'],
47
+ 'pageSize': json['pageSize'],
48
+ 'totalPages': json['totalPages'],
49
+ 'totalItems': json['totalItems'],
50
+ 'items': (json['items'].map(GetContentSessionListItem_1.GetContentSessionListItemFromJSON)),
51
+ };
52
+ }
53
+ function GetContentSessionListToJSON(json) {
54
+ return GetContentSessionListToJSONTyped(json, false);
55
+ }
56
+ function GetContentSessionListToJSONTyped(value, ignoreDiscriminator = false) {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+ return {
61
+ 'page': value['page'],
62
+ 'pageSize': value['pageSize'],
63
+ 'totalPages': value['totalPages'],
64
+ 'totalItems': value['totalItems'],
65
+ 'items': (value['items'].map(GetContentSessionListItem_1.GetContentSessionListItemToJSON)),
66
+ };
67
+ }
@@ -0,0 +1,64 @@
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
+ import type { GetContentSessionListItemScormSessionData } from './GetContentSessionListItemScormSessionData';
13
+ import type { GetContentSessionDetailUserData } from './GetContentSessionDetailUserData';
14
+ /**
15
+ * A content session list item
16
+ * @export
17
+ * @interface GetContentSessionListItem
18
+ */
19
+ export interface GetContentSessionListItem {
20
+ /**
21
+ * The external ID of the content session
22
+ * @type {string}
23
+ * @memberof GetContentSessionListItem
24
+ */
25
+ id: string;
26
+ /**
27
+ * The date and time the content session was created (Unix timestamp)
28
+ * @type {number}
29
+ * @memberof GetContentSessionListItem
30
+ */
31
+ createdAt: number;
32
+ /**
33
+ * The date and time the content session was updated (Unix timestamp)
34
+ * @type {number}
35
+ * @memberof GetContentSessionListItem
36
+ */
37
+ updatedAt: number;
38
+ /**
39
+ * The external ID of the content
40
+ * @type {string}
41
+ * @memberof GetContentSessionListItem
42
+ */
43
+ contentId: string;
44
+ /**
45
+ *
46
+ * @type {GetContentSessionDetailUserData}
47
+ * @memberof GetContentSessionListItem
48
+ */
49
+ userData: GetContentSessionDetailUserData;
50
+ /**
51
+ *
52
+ * @type {GetContentSessionListItemScormSessionData}
53
+ * @memberof GetContentSessionListItem
54
+ */
55
+ scormSessionData: GetContentSessionListItemScormSessionData | null;
56
+ }
57
+ /**
58
+ * Check if a given object implements the GetContentSessionListItem interface.
59
+ */
60
+ export declare function instanceOfGetContentSessionListItem(value: object): value is GetContentSessionListItem;
61
+ export declare function GetContentSessionListItemFromJSON(json: any): GetContentSessionListItem;
62
+ export declare function GetContentSessionListItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetContentSessionListItem;
63
+ export declare function GetContentSessionListItemToJSON(json: any): GetContentSessionListItem;
64
+ export declare function GetContentSessionListItemToJSONTyped(value?: GetContentSessionListItem | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,72 @@
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.instanceOfGetContentSessionListItem = instanceOfGetContentSessionListItem;
17
+ exports.GetContentSessionListItemFromJSON = GetContentSessionListItemFromJSON;
18
+ exports.GetContentSessionListItemFromJSONTyped = GetContentSessionListItemFromJSONTyped;
19
+ exports.GetContentSessionListItemToJSON = GetContentSessionListItemToJSON;
20
+ exports.GetContentSessionListItemToJSONTyped = GetContentSessionListItemToJSONTyped;
21
+ const GetContentSessionListItemScormSessionData_1 = require("./GetContentSessionListItemScormSessionData");
22
+ const GetContentSessionDetailUserData_1 = require("./GetContentSessionDetailUserData");
23
+ /**
24
+ * Check if a given object implements the GetContentSessionListItem interface.
25
+ */
26
+ function instanceOfGetContentSessionListItem(value) {
27
+ if (!('id' in value) || value['id'] === undefined)
28
+ return false;
29
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
30
+ return false;
31
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
32
+ return false;
33
+ if (!('contentId' in value) || value['contentId'] === undefined)
34
+ return false;
35
+ if (!('userData' in value) || value['userData'] === undefined)
36
+ return false;
37
+ if (!('scormSessionData' in value) || value['scormSessionData'] === undefined)
38
+ return false;
39
+ return true;
40
+ }
41
+ function GetContentSessionListItemFromJSON(json) {
42
+ return GetContentSessionListItemFromJSONTyped(json, false);
43
+ }
44
+ function GetContentSessionListItemFromJSONTyped(json, ignoreDiscriminator) {
45
+ if (json == null) {
46
+ return json;
47
+ }
48
+ return {
49
+ 'id': json['id'],
50
+ 'createdAt': json['created_at'],
51
+ 'updatedAt': json['updated_at'],
52
+ 'contentId': json['content_id'],
53
+ 'userData': (0, GetContentSessionDetailUserData_1.GetContentSessionDetailUserDataFromJSON)(json['user_data']),
54
+ 'scormSessionData': (0, GetContentSessionListItemScormSessionData_1.GetContentSessionListItemScormSessionDataFromJSON)(json['scorm_session_data']),
55
+ };
56
+ }
57
+ function GetContentSessionListItemToJSON(json) {
58
+ return GetContentSessionListItemToJSONTyped(json, false);
59
+ }
60
+ function GetContentSessionListItemToJSONTyped(value, ignoreDiscriminator = false) {
61
+ if (value == null) {
62
+ return value;
63
+ }
64
+ return {
65
+ 'id': value['id'],
66
+ 'created_at': value['createdAt'],
67
+ 'updated_at': value['updatedAt'],
68
+ 'content_id': value['contentId'],
69
+ 'user_data': (0, GetContentSessionDetailUserData_1.GetContentSessionDetailUserDataToJSON)(value['userData']),
70
+ 'scorm_session_data': (0, GetContentSessionListItemScormSessionData_1.GetContentSessionListItemScormSessionDataToJSON)(value['scormSessionData']),
71
+ };
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
+ }