@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,103 @@
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 { GetContentSessionDetailScormSessionDataInner } from './GetContentSessionDetailScormSessionDataInner';
13
+ import type { GetContentSessionDetailUserData } from './GetContentSessionDetailUserData';
14
+ /**
15
+ * Detailed content session information
16
+ * @export
17
+ * @interface GetContentSessionDetail
18
+ */
19
+ export interface GetContentSessionDetail {
20
+ /**
21
+ * The external ID of the content session
22
+ * @type {string}
23
+ * @memberof GetContentSessionDetail
24
+ */
25
+ id: string;
26
+ /**
27
+ * The date and time the content session was created (Unix timestamp)
28
+ * @type {number}
29
+ * @memberof GetContentSessionDetail
30
+ */
31
+ createdAt: number;
32
+ /**
33
+ * The date and time the content session was updated (Unix timestamp)
34
+ * @type {number}
35
+ * @memberof GetContentSessionDetail
36
+ */
37
+ updatedAt: number;
38
+ /**
39
+ * The external ID of the content
40
+ * @type {string}
41
+ * @memberof GetContentSessionDetail
42
+ */
43
+ contentId: string;
44
+ /**
45
+ * The completion status of the content session
46
+ * @type {string}
47
+ * @memberof GetContentSessionDetail
48
+ */
49
+ completionStatus: GetContentSessionDetailCompletionStatusEnum;
50
+ /**
51
+ * The grade status of the content session
52
+ * @type {string}
53
+ * @memberof GetContentSessionDetail
54
+ */
55
+ gradeStatus: GetContentSessionDetailGradeStatusEnum;
56
+ /**
57
+ * The total duration of the session in seconds
58
+ * @type {number}
59
+ * @memberof GetContentSessionDetail
60
+ */
61
+ durationInSeconds: number;
62
+ /**
63
+ *
64
+ * @type {GetContentSessionDetailUserData}
65
+ * @memberof GetContentSessionDetail
66
+ */
67
+ userData: GetContentSessionDetailUserData;
68
+ /**
69
+ * SCORM session data if this is a SCORM session, null otherwise
70
+ * @type {Array<GetContentSessionDetailScormSessionDataInner>}
71
+ * @memberof GetContentSessionDetail
72
+ */
73
+ scormSessionData: Array<GetContentSessionDetailScormSessionDataInner> | null;
74
+ }
75
+ /**
76
+ * @export
77
+ */
78
+ export declare const GetContentSessionDetailCompletionStatusEnum: {
79
+ readonly NotAttempted: "NotAttempted";
80
+ readonly InProgress: "InProgress";
81
+ readonly Completed: "Completed";
82
+ };
83
+ export type GetContentSessionDetailCompletionStatusEnum = typeof GetContentSessionDetailCompletionStatusEnum[keyof typeof GetContentSessionDetailCompletionStatusEnum];
84
+ /**
85
+ * @export
86
+ */
87
+ export declare const GetContentSessionDetailGradeStatusEnum: {
88
+ readonly Ungraded: "Ungraded";
89
+ readonly Passed: "Passed";
90
+ readonly Failed: "Failed";
91
+ readonly PointsEarned: "PointsEarned";
92
+ readonly PercentageEarned: "PercentageEarned";
93
+ readonly NotApplicable: "NotApplicable";
94
+ };
95
+ export type GetContentSessionDetailGradeStatusEnum = typeof GetContentSessionDetailGradeStatusEnum[keyof typeof GetContentSessionDetailGradeStatusEnum];
96
+ /**
97
+ * Check if a given object implements the GetContentSessionDetail interface.
98
+ */
99
+ export declare function instanceOfGetContentSessionDetail(value: object): value is GetContentSessionDetail;
100
+ export declare function GetContentSessionDetailFromJSON(json: any): GetContentSessionDetail;
101
+ export declare function GetContentSessionDetailFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetContentSessionDetail;
102
+ export declare function GetContentSessionDetailToJSON(json: any): GetContentSessionDetail;
103
+ export declare function GetContentSessionDetailToJSONTyped(value?: GetContentSessionDetail | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,96 @@
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
+ import { GetContentSessionDetailScormSessionDataInnerFromJSON, GetContentSessionDetailScormSessionDataInnerToJSON, } from './GetContentSessionDetailScormSessionDataInner';
15
+ import { GetContentSessionDetailUserDataFromJSON, GetContentSessionDetailUserDataToJSON, } from './GetContentSessionDetailUserData';
16
+ /**
17
+ * @export
18
+ */
19
+ export const GetContentSessionDetailCompletionStatusEnum = {
20
+ NotAttempted: 'NotAttempted',
21
+ InProgress: 'InProgress',
22
+ Completed: 'Completed'
23
+ };
24
+ /**
25
+ * @export
26
+ */
27
+ export const GetContentSessionDetailGradeStatusEnum = {
28
+ Ungraded: 'Ungraded',
29
+ Passed: 'Passed',
30
+ Failed: 'Failed',
31
+ PointsEarned: 'PointsEarned',
32
+ PercentageEarned: 'PercentageEarned',
33
+ NotApplicable: 'NotApplicable'
34
+ };
35
+ /**
36
+ * Check if a given object implements the GetContentSessionDetail interface.
37
+ */
38
+ export function instanceOfGetContentSessionDetail(value) {
39
+ if (!('id' in value) || value['id'] === undefined)
40
+ return false;
41
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
42
+ return false;
43
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
44
+ return false;
45
+ if (!('contentId' in value) || value['contentId'] === undefined)
46
+ return false;
47
+ if (!('completionStatus' in value) || value['completionStatus'] === undefined)
48
+ return false;
49
+ if (!('gradeStatus' in value) || value['gradeStatus'] === undefined)
50
+ return false;
51
+ if (!('durationInSeconds' in value) || value['durationInSeconds'] === undefined)
52
+ return false;
53
+ if (!('userData' in value) || value['userData'] === undefined)
54
+ return false;
55
+ if (!('scormSessionData' in value) || value['scormSessionData'] === undefined)
56
+ return false;
57
+ return true;
58
+ }
59
+ export function GetContentSessionDetailFromJSON(json) {
60
+ return GetContentSessionDetailFromJSONTyped(json, false);
61
+ }
62
+ export function GetContentSessionDetailFromJSONTyped(json, ignoreDiscriminator) {
63
+ if (json == null) {
64
+ return json;
65
+ }
66
+ return {
67
+ 'id': json['id'],
68
+ 'createdAt': json['created_at'],
69
+ 'updatedAt': json['updated_at'],
70
+ 'contentId': json['content_id'],
71
+ 'completionStatus': json['completion_status'],
72
+ 'gradeStatus': json['grade_status'],
73
+ 'durationInSeconds': json['duration_in_seconds'],
74
+ 'userData': GetContentSessionDetailUserDataFromJSON(json['user_data']),
75
+ 'scormSessionData': (json['scorm_session_data'] == null ? null : json['scorm_session_data'].map(GetContentSessionDetailScormSessionDataInnerFromJSON)),
76
+ };
77
+ }
78
+ export function GetContentSessionDetailToJSON(json) {
79
+ return GetContentSessionDetailToJSONTyped(json, false);
80
+ }
81
+ export function GetContentSessionDetailToJSONTyped(value, ignoreDiscriminator = false) {
82
+ if (value == null) {
83
+ return value;
84
+ }
85
+ return {
86
+ 'id': value['id'],
87
+ 'created_at': value['createdAt'],
88
+ 'updated_at': value['updatedAt'],
89
+ 'content_id': value['contentId'],
90
+ 'completion_status': value['completionStatus'],
91
+ 'grade_status': value['gradeStatus'],
92
+ 'duration_in_seconds': value['durationInSeconds'],
93
+ 'user_data': GetContentSessionDetailUserDataToJSON(value['userData']),
94
+ 'scorm_session_data': (value['scormSessionData'] == null ? null : value['scormSessionData'].map(GetContentSessionDetailScormSessionDataInnerToJSON)),
95
+ };
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
+ }
@@ -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,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 GetContentSessionDetailUserData interface.
16
+ */
17
+ export function instanceOfGetContentSessionDetailUserData(value) {
18
+ if (!('userId' in value) || value['userId'] === undefined)
19
+ return false;
20
+ if (!('userName' in value) || value['userName'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function GetContentSessionDetailUserDataFromJSON(json) {
25
+ return GetContentSessionDetailUserDataFromJSONTyped(json, false);
26
+ }
27
+ export function GetContentSessionDetailUserDataFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'userId': json['user_id'],
33
+ 'userName': json['user_name'],
34
+ };
35
+ }
36
+ export function GetContentSessionDetailUserDataToJSON(json) {
37
+ return GetContentSessionDetailUserDataToJSONTyped(json, false);
38
+ }
39
+ export function GetContentSessionDetailUserDataToJSONTyped(value, ignoreDiscriminator = false) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'user_id': value['userId'],
45
+ 'user_name': value['userName'],
46
+ };
47
+ }
@@ -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,60 @@
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
+ import { GetContentSessionListItemFromJSON, GetContentSessionListItemToJSON, } from './GetContentSessionListItem';
15
+ /**
16
+ * Check if a given object implements the GetContentSessionList interface.
17
+ */
18
+ export function instanceOfGetContentSessionList(value) {
19
+ if (!('page' in value) || value['page'] === undefined)
20
+ return false;
21
+ if (!('pageSize' in value) || value['pageSize'] === undefined)
22
+ return false;
23
+ if (!('totalPages' in value) || value['totalPages'] === undefined)
24
+ return false;
25
+ if (!('totalItems' in value) || value['totalItems'] === undefined)
26
+ return false;
27
+ if (!('items' in value) || value['items'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ export function GetContentSessionListFromJSON(json) {
32
+ return GetContentSessionListFromJSONTyped(json, false);
33
+ }
34
+ export function GetContentSessionListFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'page': json['page'],
40
+ 'pageSize': json['pageSize'],
41
+ 'totalPages': json['totalPages'],
42
+ 'totalItems': json['totalItems'],
43
+ 'items': (json['items'].map(GetContentSessionListItemFromJSON)),
44
+ };
45
+ }
46
+ export function GetContentSessionListToJSON(json) {
47
+ return GetContentSessionListToJSONTyped(json, false);
48
+ }
49
+ export function GetContentSessionListToJSONTyped(value, ignoreDiscriminator = false) {
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'page': value['page'],
55
+ 'pageSize': value['pageSize'],
56
+ 'totalPages': value['totalPages'],
57
+ 'totalItems': value['totalItems'],
58
+ 'items': (value['items'].map(GetContentSessionListItemToJSON)),
59
+ };
60
+ }
@@ -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,65 @@
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
+ import { GetContentSessionListItemScormSessionDataFromJSON, GetContentSessionListItemScormSessionDataToJSON, } from './GetContentSessionListItemScormSessionData';
15
+ import { GetContentSessionDetailUserDataFromJSON, GetContentSessionDetailUserDataToJSON, } from './GetContentSessionDetailUserData';
16
+ /**
17
+ * Check if a given object implements the GetContentSessionListItem interface.
18
+ */
19
+ export function instanceOfGetContentSessionListItem(value) {
20
+ if (!('id' in value) || value['id'] === undefined)
21
+ return false;
22
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
23
+ return false;
24
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
25
+ return false;
26
+ if (!('contentId' in value) || value['contentId'] === undefined)
27
+ return false;
28
+ if (!('userData' in value) || value['userData'] === undefined)
29
+ return false;
30
+ if (!('scormSessionData' in value) || value['scormSessionData'] === undefined)
31
+ return false;
32
+ return true;
33
+ }
34
+ export function GetContentSessionListItemFromJSON(json) {
35
+ return GetContentSessionListItemFromJSONTyped(json, false);
36
+ }
37
+ export function GetContentSessionListItemFromJSONTyped(json, ignoreDiscriminator) {
38
+ if (json == null) {
39
+ return json;
40
+ }
41
+ return {
42
+ 'id': json['id'],
43
+ 'createdAt': json['created_at'],
44
+ 'updatedAt': json['updated_at'],
45
+ 'contentId': json['content_id'],
46
+ 'userData': GetContentSessionDetailUserDataFromJSON(json['user_data']),
47
+ 'scormSessionData': GetContentSessionListItemScormSessionDataFromJSON(json['scorm_session_data']),
48
+ };
49
+ }
50
+ export function GetContentSessionListItemToJSON(json) {
51
+ return GetContentSessionListItemToJSONTyped(json, false);
52
+ }
53
+ export function GetContentSessionListItemToJSONTyped(value, ignoreDiscriminator = false) {
54
+ if (value == null) {
55
+ return value;
56
+ }
57
+ return {
58
+ 'id': value['id'],
59
+ 'created_at': value['createdAt'],
60
+ 'updated_at': value['updatedAt'],
61
+ 'content_id': value['contentId'],
62
+ 'user_data': GetContentSessionDetailUserDataToJSON(value['userData']),
63
+ 'scorm_session_data': GetContentSessionListItemScormSessionDataToJSON(value['scormSessionData']),
64
+ };
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;