@easyedu/js-lsm-api 1.90.0 → 1.91.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 (80) hide show
  1. package/.openapi-generator/FILES +20 -0
  2. package/README.md +15 -2
  3. package/dist/apis/PlayerApi.d.ts +115 -1
  4. package/dist/apis/PlayerApi.js +213 -1
  5. package/dist/esm/apis/PlayerApi.d.ts +115 -1
  6. package/dist/esm/apis/PlayerApi.js +212 -0
  7. package/dist/esm/models/GetResourceSession.d.ts +30 -0
  8. package/dist/esm/models/GetResourceSession.js +16 -0
  9. package/dist/esm/models/GetResourceSessionDiagnostics.d.ts +76 -0
  10. package/dist/esm/models/GetResourceSessionDiagnostics.js +69 -0
  11. package/dist/esm/models/GetResourceSessionDiagnosticsCourseContext.d.ts +81 -0
  12. package/dist/esm/models/GetResourceSessionDiagnosticsCourseContext.js +76 -0
  13. package/dist/esm/models/GetResourceSessionDiagnosticsResource.d.ts +51 -0
  14. package/dist/esm/models/GetResourceSessionDiagnosticsResource.js +56 -0
  15. package/dist/esm/models/GetResourceSessionDiagnosticsScormSummary.d.ts +74 -0
  16. package/dist/esm/models/GetResourceSessionDiagnosticsScormSummary.js +59 -0
  17. package/dist/esm/models/GetResourceSessionDiagnosticsUser.d.ts +38 -0
  18. package/dist/esm/models/GetResourceSessionDiagnosticsUser.js +47 -0
  19. package/dist/esm/models/GetResourceSessionDiagnosticsVersion.d.ts +88 -0
  20. package/dist/esm/models/GetResourceSessionDiagnosticsVersion.js +67 -0
  21. package/dist/esm/models/GetResourceSessionScormApiLogs.d.ts +57 -0
  22. package/dist/esm/models/GetResourceSessionScormApiLogs.js +60 -0
  23. package/dist/esm/models/GetResourceSessionScormData.d.ts +77 -0
  24. package/dist/esm/models/GetResourceSessionScormData.js +66 -0
  25. package/dist/esm/models/GetResourceSessionScormDataActivity.d.ts +44 -0
  26. package/dist/esm/models/GetResourceSessionScormDataActivity.js +45 -0
  27. package/dist/esm/models/ResourceSessionScormApiLogItem.d.ts +79 -0
  28. package/dist/esm/models/ResourceSessionScormApiLogItem.js +73 -0
  29. package/dist/esm/models/index.d.ts +10 -0
  30. package/dist/esm/models/index.js +10 -0
  31. package/dist/models/GetResourceSession.d.ts +30 -0
  32. package/dist/models/GetResourceSession.js +16 -0
  33. package/dist/models/GetResourceSessionDiagnostics.d.ts +76 -0
  34. package/dist/models/GetResourceSessionDiagnostics.js +76 -0
  35. package/dist/models/GetResourceSessionDiagnosticsCourseContext.d.ts +81 -0
  36. package/dist/models/GetResourceSessionDiagnosticsCourseContext.js +83 -0
  37. package/dist/models/GetResourceSessionDiagnosticsResource.d.ts +51 -0
  38. package/dist/models/GetResourceSessionDiagnosticsResource.js +63 -0
  39. package/dist/models/GetResourceSessionDiagnosticsScormSummary.d.ts +74 -0
  40. package/dist/models/GetResourceSessionDiagnosticsScormSummary.js +66 -0
  41. package/dist/models/GetResourceSessionDiagnosticsUser.d.ts +38 -0
  42. package/dist/models/GetResourceSessionDiagnosticsUser.js +54 -0
  43. package/dist/models/GetResourceSessionDiagnosticsVersion.d.ts +88 -0
  44. package/dist/models/GetResourceSessionDiagnosticsVersion.js +74 -0
  45. package/dist/models/GetResourceSessionScormApiLogs.d.ts +57 -0
  46. package/dist/models/GetResourceSessionScormApiLogs.js +67 -0
  47. package/dist/models/GetResourceSessionScormData.d.ts +77 -0
  48. package/dist/models/GetResourceSessionScormData.js +73 -0
  49. package/dist/models/GetResourceSessionScormDataActivity.d.ts +44 -0
  50. package/dist/models/GetResourceSessionScormDataActivity.js +52 -0
  51. package/dist/models/ResourceSessionScormApiLogItem.d.ts +79 -0
  52. package/dist/models/ResourceSessionScormApiLogItem.js +81 -0
  53. package/dist/models/index.d.ts +10 -0
  54. package/dist/models/index.js +10 -0
  55. package/docs/GetResourceSession.md +10 -0
  56. package/docs/GetResourceSessionDiagnostics.md +47 -0
  57. package/docs/GetResourceSessionDiagnosticsCourseContext.md +50 -0
  58. package/docs/GetResourceSessionDiagnosticsResource.md +40 -0
  59. package/docs/GetResourceSessionDiagnosticsScormSummary.md +48 -0
  60. package/docs/GetResourceSessionDiagnosticsUser.md +36 -0
  61. package/docs/GetResourceSessionDiagnosticsVersion.md +52 -0
  62. package/docs/GetResourceSessionScormApiLogs.md +43 -0
  63. package/docs/GetResourceSessionScormData.md +49 -0
  64. package/docs/GetResourceSessionScormDataActivity.md +38 -0
  65. package/docs/PlayerApi.md +254 -3
  66. package/docs/ResourceSessionScormApiLogItem.md +47 -0
  67. package/package.json +1 -1
  68. package/src/apis/PlayerApi.ts +298 -1
  69. package/src/models/GetResourceSession.ts +43 -0
  70. package/src/models/GetResourceSessionDiagnostics.ts +161 -0
  71. package/src/models/GetResourceSessionDiagnosticsCourseContext.ts +148 -0
  72. package/src/models/GetResourceSessionDiagnosticsResource.ts +103 -0
  73. package/src/models/GetResourceSessionDiagnosticsScormSummary.ts +123 -0
  74. package/src/models/GetResourceSessionDiagnosticsUser.ts +75 -0
  75. package/src/models/GetResourceSessionDiagnosticsVersion.ts +141 -0
  76. package/src/models/GetResourceSessionScormApiLogs.ts +110 -0
  77. package/src/models/GetResourceSessionScormData.ts +134 -0
  78. package/src/models/GetResourceSessionScormDataActivity.ts +81 -0
  79. package/src/models/ResourceSessionScormApiLogItem.ts +132 -0
  80. package/src/models/index.ts +10 -0
@@ -0,0 +1,148 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * LMS API
5
+ * LMS API
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { ContentLaunchMode } from './ContentLaunchMode';
17
+ import {
18
+ ContentLaunchModeFromJSON,
19
+ ContentLaunchModeFromJSONTyped,
20
+ ContentLaunchModeToJSON,
21
+ ContentLaunchModeToJSONTyped,
22
+ } from './ContentLaunchMode';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface GetResourceSessionDiagnosticsCourseContext
28
+ */
29
+ export interface GetResourceSessionDiagnosticsCourseContext {
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof GetResourceSessionDiagnosticsCourseContext
34
+ */
35
+ courseId: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof GetResourceSessionDiagnosticsCourseContext
40
+ */
41
+ courseName: string;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof GetResourceSessionDiagnosticsCourseContext
46
+ */
47
+ courseVersionId: string;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof GetResourceSessionDiagnosticsCourseContext
52
+ */
53
+ courseVersionNumber: number;
54
+ /**
55
+ *
56
+ * @type {string}
57
+ * @memberof GetResourceSessionDiagnosticsCourseContext
58
+ */
59
+ itemId: string;
60
+ /**
61
+ *
62
+ * @type {string}
63
+ * @memberof GetResourceSessionDiagnosticsCourseContext
64
+ */
65
+ displayName: string;
66
+ /**
67
+ *
68
+ * @type {ContentLaunchMode}
69
+ * @memberof GetResourceSessionDiagnosticsCourseContext
70
+ */
71
+ launchMode: ContentLaunchMode;
72
+ /**
73
+ *
74
+ * @type {number}
75
+ * @memberof GetResourceSessionDiagnosticsCourseContext
76
+ */
77
+ maxAttempts: number;
78
+ /**
79
+ *
80
+ * @type {string}
81
+ * @memberof GetResourceSessionDiagnosticsCourseContext
82
+ */
83
+ scoreRollupStrategy: string;
84
+ }
85
+
86
+
87
+
88
+ /**
89
+ * Check if a given object implements the GetResourceSessionDiagnosticsCourseContext interface.
90
+ */
91
+ export function instanceOfGetResourceSessionDiagnosticsCourseContext(value: object): value is GetResourceSessionDiagnosticsCourseContext {
92
+ if (!('courseId' in value) || value['courseId'] === undefined) return false;
93
+ if (!('courseName' in value) || value['courseName'] === undefined) return false;
94
+ if (!('courseVersionId' in value) || value['courseVersionId'] === undefined) return false;
95
+ if (!('courseVersionNumber' in value) || value['courseVersionNumber'] === undefined) return false;
96
+ if (!('itemId' in value) || value['itemId'] === undefined) return false;
97
+ if (!('displayName' in value) || value['displayName'] === undefined) return false;
98
+ if (!('launchMode' in value) || value['launchMode'] === undefined) return false;
99
+ if (!('maxAttempts' in value) || value['maxAttempts'] === undefined) return false;
100
+ if (!('scoreRollupStrategy' in value) || value['scoreRollupStrategy'] === undefined) return false;
101
+ return true;
102
+ }
103
+
104
+ export function GetResourceSessionDiagnosticsCourseContextFromJSON(json: any): GetResourceSessionDiagnosticsCourseContext {
105
+ return GetResourceSessionDiagnosticsCourseContextFromJSONTyped(json, false);
106
+ }
107
+
108
+ export function GetResourceSessionDiagnosticsCourseContextFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetResourceSessionDiagnosticsCourseContext {
109
+ if (json == null) {
110
+ return json;
111
+ }
112
+ return {
113
+
114
+ 'courseId': json['course_id'],
115
+ 'courseName': json['course_name'],
116
+ 'courseVersionId': json['course_version_id'],
117
+ 'courseVersionNumber': json['course_version_number'],
118
+ 'itemId': json['item_id'],
119
+ 'displayName': json['display_name'],
120
+ 'launchMode': ContentLaunchModeFromJSON(json['launch_mode']),
121
+ 'maxAttempts': json['max_attempts'],
122
+ 'scoreRollupStrategy': json['score_rollup_strategy'],
123
+ };
124
+ }
125
+
126
+ export function GetResourceSessionDiagnosticsCourseContextToJSON(json: any): GetResourceSessionDiagnosticsCourseContext {
127
+ return GetResourceSessionDiagnosticsCourseContextToJSONTyped(json, false);
128
+ }
129
+
130
+ export function GetResourceSessionDiagnosticsCourseContextToJSONTyped(value?: GetResourceSessionDiagnosticsCourseContext | null, ignoreDiscriminator: boolean = false): any {
131
+ if (value == null) {
132
+ return value;
133
+ }
134
+
135
+ return {
136
+
137
+ 'course_id': value['courseId'],
138
+ 'course_name': value['courseName'],
139
+ 'course_version_id': value['courseVersionId'],
140
+ 'course_version_number': value['courseVersionNumber'],
141
+ 'item_id': value['itemId'],
142
+ 'display_name': value['displayName'],
143
+ 'launch_mode': ContentLaunchModeToJSON(value['launchMode']),
144
+ 'max_attempts': value['maxAttempts'],
145
+ 'score_rollup_strategy': value['scoreRollupStrategy'],
146
+ };
147
+ }
148
+
@@ -0,0 +1,103 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * LMS API
5
+ * LMS API
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { ResourceType } from './ResourceType';
17
+ import {
18
+ ResourceTypeFromJSON,
19
+ ResourceTypeFromJSONTyped,
20
+ ResourceTypeToJSON,
21
+ ResourceTypeToJSONTyped,
22
+ } from './ResourceType';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface GetResourceSessionDiagnosticsResource
28
+ */
29
+ export interface GetResourceSessionDiagnosticsResource {
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof GetResourceSessionDiagnosticsResource
34
+ */
35
+ id: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof GetResourceSessionDiagnosticsResource
40
+ */
41
+ name: string;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof GetResourceSessionDiagnosticsResource
46
+ */
47
+ description: string;
48
+ /**
49
+ *
50
+ * @type {ResourceType}
51
+ * @memberof GetResourceSessionDiagnosticsResource
52
+ */
53
+ resourceType: ResourceType;
54
+ }
55
+
56
+
57
+
58
+ /**
59
+ * Check if a given object implements the GetResourceSessionDiagnosticsResource interface.
60
+ */
61
+ export function instanceOfGetResourceSessionDiagnosticsResource(value: object): value is GetResourceSessionDiagnosticsResource {
62
+ if (!('id' in value) || value['id'] === undefined) return false;
63
+ if (!('name' in value) || value['name'] === undefined) return false;
64
+ if (!('description' in value) || value['description'] === undefined) return false;
65
+ if (!('resourceType' in value) || value['resourceType'] === undefined) return false;
66
+ return true;
67
+ }
68
+
69
+ export function GetResourceSessionDiagnosticsResourceFromJSON(json: any): GetResourceSessionDiagnosticsResource {
70
+ return GetResourceSessionDiagnosticsResourceFromJSONTyped(json, false);
71
+ }
72
+
73
+ export function GetResourceSessionDiagnosticsResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetResourceSessionDiagnosticsResource {
74
+ if (json == null) {
75
+ return json;
76
+ }
77
+ return {
78
+
79
+ 'id': json['id'],
80
+ 'name': json['name'],
81
+ 'description': json['description'],
82
+ 'resourceType': ResourceTypeFromJSON(json['resource_type']),
83
+ };
84
+ }
85
+
86
+ export function GetResourceSessionDiagnosticsResourceToJSON(json: any): GetResourceSessionDiagnosticsResource {
87
+ return GetResourceSessionDiagnosticsResourceToJSONTyped(json, false);
88
+ }
89
+
90
+ export function GetResourceSessionDiagnosticsResourceToJSONTyped(value?: GetResourceSessionDiagnosticsResource | null, ignoreDiscriminator: boolean = false): any {
91
+ if (value == null) {
92
+ return value;
93
+ }
94
+
95
+ return {
96
+
97
+ 'id': value['id'],
98
+ 'name': value['name'],
99
+ 'description': value['description'],
100
+ 'resource_type': ResourceTypeToJSON(value['resourceType']),
101
+ };
102
+ }
103
+
@@ -0,0 +1,123 @@
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 GetResourceSessionDiagnosticsScormSummary
20
+ */
21
+ export interface GetResourceSessionDiagnosticsScormSummary {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof GetResourceSessionDiagnosticsScormSummary
26
+ */
27
+ schemaVersion?: string | null;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof GetResourceSessionDiagnosticsScormSummary
32
+ */
33
+ manifestIdentifier?: string | null;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof GetResourceSessionDiagnosticsScormSummary
38
+ */
39
+ organizationIdentifier?: string | null;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof GetResourceSessionDiagnosticsScormSummary
44
+ */
45
+ organizationTitle?: string | null;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof GetResourceSessionDiagnosticsScormSummary
50
+ */
51
+ activityIdentifier?: string | null;
52
+ /**
53
+ *
54
+ * @type {string}
55
+ * @memberof GetResourceSessionDiagnosticsScormSummary
56
+ */
57
+ activityTitle?: string | null;
58
+ /**
59
+ *
60
+ * @type {number}
61
+ * @memberof GetResourceSessionDiagnosticsScormSummary
62
+ */
63
+ cmiElementCount: number;
64
+ /**
65
+ *
66
+ * @type {number}
67
+ * @memberof GetResourceSessionDiagnosticsScormSummary
68
+ */
69
+ apiLogCount: number;
70
+ }
71
+
72
+ /**
73
+ * Check if a given object implements the GetResourceSessionDiagnosticsScormSummary interface.
74
+ */
75
+ export function instanceOfGetResourceSessionDiagnosticsScormSummary(value: object): value is GetResourceSessionDiagnosticsScormSummary {
76
+ if (!('cmiElementCount' in value) || value['cmiElementCount'] === undefined) return false;
77
+ if (!('apiLogCount' in value) || value['apiLogCount'] === undefined) return false;
78
+ return true;
79
+ }
80
+
81
+ export function GetResourceSessionDiagnosticsScormSummaryFromJSON(json: any): GetResourceSessionDiagnosticsScormSummary {
82
+ return GetResourceSessionDiagnosticsScormSummaryFromJSONTyped(json, false);
83
+ }
84
+
85
+ export function GetResourceSessionDiagnosticsScormSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetResourceSessionDiagnosticsScormSummary {
86
+ if (json == null) {
87
+ return json;
88
+ }
89
+ return {
90
+
91
+ 'schemaVersion': json['schema_version'] == null ? undefined : json['schema_version'],
92
+ 'manifestIdentifier': json['manifest_identifier'] == null ? undefined : json['manifest_identifier'],
93
+ 'organizationIdentifier': json['organization_identifier'] == null ? undefined : json['organization_identifier'],
94
+ 'organizationTitle': json['organization_title'] == null ? undefined : json['organization_title'],
95
+ 'activityIdentifier': json['activity_identifier'] == null ? undefined : json['activity_identifier'],
96
+ 'activityTitle': json['activity_title'] == null ? undefined : json['activity_title'],
97
+ 'cmiElementCount': json['cmi_element_count'],
98
+ 'apiLogCount': json['api_log_count'],
99
+ };
100
+ }
101
+
102
+ export function GetResourceSessionDiagnosticsScormSummaryToJSON(json: any): GetResourceSessionDiagnosticsScormSummary {
103
+ return GetResourceSessionDiagnosticsScormSummaryToJSONTyped(json, false);
104
+ }
105
+
106
+ export function GetResourceSessionDiagnosticsScormSummaryToJSONTyped(value?: GetResourceSessionDiagnosticsScormSummary | null, ignoreDiscriminator: boolean = false): any {
107
+ if (value == null) {
108
+ return value;
109
+ }
110
+
111
+ return {
112
+
113
+ 'schema_version': value['schemaVersion'],
114
+ 'manifest_identifier': value['manifestIdentifier'],
115
+ 'organization_identifier': value['organizationIdentifier'],
116
+ 'organization_title': value['organizationTitle'],
117
+ 'activity_identifier': value['activityIdentifier'],
118
+ 'activity_title': value['activityTitle'],
119
+ 'cmi_element_count': value['cmiElementCount'],
120
+ 'api_log_count': value['apiLogCount'],
121
+ };
122
+ }
123
+
@@ -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 GetResourceSessionDiagnosticsUser
20
+ */
21
+ export interface GetResourceSessionDiagnosticsUser {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof GetResourceSessionDiagnosticsUser
26
+ */
27
+ id: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof GetResourceSessionDiagnosticsUser
32
+ */
33
+ name: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the GetResourceSessionDiagnosticsUser interface.
38
+ */
39
+ export function instanceOfGetResourceSessionDiagnosticsUser(value: object): value is GetResourceSessionDiagnosticsUser {
40
+ if (!('id' in value) || value['id'] === undefined) return false;
41
+ if (!('name' in value) || value['name'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function GetResourceSessionDiagnosticsUserFromJSON(json: any): GetResourceSessionDiagnosticsUser {
46
+ return GetResourceSessionDiagnosticsUserFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function GetResourceSessionDiagnosticsUserFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetResourceSessionDiagnosticsUser {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'id': json['id'],
56
+ 'name': json['name'],
57
+ };
58
+ }
59
+
60
+ export function GetResourceSessionDiagnosticsUserToJSON(json: any): GetResourceSessionDiagnosticsUser {
61
+ return GetResourceSessionDiagnosticsUserToJSONTyped(json, false);
62
+ }
63
+
64
+ export function GetResourceSessionDiagnosticsUserToJSONTyped(value?: GetResourceSessionDiagnosticsUser | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'id': value['id'],
72
+ 'name': value['name'],
73
+ };
74
+ }
75
+
@@ -0,0 +1,141 @@
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 GetResourceSessionDiagnosticsVersion
20
+ */
21
+ export interface GetResourceSessionDiagnosticsVersion {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof GetResourceSessionDiagnosticsVersion
26
+ */
27
+ id: string;
28
+ /**
29
+ *
30
+ * @type {number}
31
+ * @memberof GetResourceSessionDiagnosticsVersion
32
+ */
33
+ versionNumber: number;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof GetResourceSessionDiagnosticsVersion
38
+ */
39
+ status: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof GetResourceSessionDiagnosticsVersion
44
+ */
45
+ changeNotes?: string | null;
46
+ /**
47
+ *
48
+ * @type {{ [key: string]: any; }}
49
+ * @memberof GetResourceSessionDiagnosticsVersion
50
+ */
51
+ metadata: { [key: string]: any; };
52
+ /**
53
+ *
54
+ * @type {string}
55
+ * @memberof GetResourceSessionDiagnosticsVersion
56
+ */
57
+ filename?: string | null;
58
+ /**
59
+ *
60
+ * @type {string}
61
+ * @memberof GetResourceSessionDiagnosticsVersion
62
+ */
63
+ mimeType?: string | null;
64
+ /**
65
+ *
66
+ * @type {number}
67
+ * @memberof GetResourceSessionDiagnosticsVersion
68
+ */
69
+ fileSizeBytes?: number | null;
70
+ /**
71
+ *
72
+ * @type {string}
73
+ * @memberof GetResourceSessionDiagnosticsVersion
74
+ */
75
+ checksumSha256?: string | null;
76
+ /**
77
+ *
78
+ * @type {string}
79
+ * @memberof GetResourceSessionDiagnosticsVersion
80
+ */
81
+ linkUrl?: string | null;
82
+ }
83
+
84
+ /**
85
+ * Check if a given object implements the GetResourceSessionDiagnosticsVersion interface.
86
+ */
87
+ export function instanceOfGetResourceSessionDiagnosticsVersion(value: object): value is GetResourceSessionDiagnosticsVersion {
88
+ if (!('id' in value) || value['id'] === undefined) return false;
89
+ if (!('versionNumber' in value) || value['versionNumber'] === undefined) return false;
90
+ if (!('status' in value) || value['status'] === undefined) return false;
91
+ if (!('metadata' in value) || value['metadata'] === undefined) return false;
92
+ return true;
93
+ }
94
+
95
+ export function GetResourceSessionDiagnosticsVersionFromJSON(json: any): GetResourceSessionDiagnosticsVersion {
96
+ return GetResourceSessionDiagnosticsVersionFromJSONTyped(json, false);
97
+ }
98
+
99
+ export function GetResourceSessionDiagnosticsVersionFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetResourceSessionDiagnosticsVersion {
100
+ if (json == null) {
101
+ return json;
102
+ }
103
+ return {
104
+
105
+ 'id': json['id'],
106
+ 'versionNumber': json['version_number'],
107
+ 'status': json['status'],
108
+ 'changeNotes': json['change_notes'] == null ? undefined : json['change_notes'],
109
+ 'metadata': json['metadata'],
110
+ 'filename': json['filename'] == null ? undefined : json['filename'],
111
+ 'mimeType': json['mime_type'] == null ? undefined : json['mime_type'],
112
+ 'fileSizeBytes': json['file_size_bytes'] == null ? undefined : json['file_size_bytes'],
113
+ 'checksumSha256': json['checksum_sha256'] == null ? undefined : json['checksum_sha256'],
114
+ 'linkUrl': json['link_url'] == null ? undefined : json['link_url'],
115
+ };
116
+ }
117
+
118
+ export function GetResourceSessionDiagnosticsVersionToJSON(json: any): GetResourceSessionDiagnosticsVersion {
119
+ return GetResourceSessionDiagnosticsVersionToJSONTyped(json, false);
120
+ }
121
+
122
+ export function GetResourceSessionDiagnosticsVersionToJSONTyped(value?: GetResourceSessionDiagnosticsVersion | null, ignoreDiscriminator: boolean = false): any {
123
+ if (value == null) {
124
+ return value;
125
+ }
126
+
127
+ return {
128
+
129
+ 'id': value['id'],
130
+ 'version_number': value['versionNumber'],
131
+ 'status': value['status'],
132
+ 'change_notes': value['changeNotes'],
133
+ 'metadata': value['metadata'],
134
+ 'filename': value['filename'],
135
+ 'mime_type': value['mimeType'],
136
+ 'file_size_bytes': value['fileSizeBytes'],
137
+ 'checksum_sha256': value['checksumSha256'],
138
+ 'link_url': value['linkUrl'],
139
+ };
140
+ }
141
+
@@ -0,0 +1,110 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * LMS API
5
+ * LMS API
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { ResourceSessionScormApiLogItem } from './ResourceSessionScormApiLogItem';
17
+ import {
18
+ ResourceSessionScormApiLogItemFromJSON,
19
+ ResourceSessionScormApiLogItemFromJSONTyped,
20
+ ResourceSessionScormApiLogItemToJSON,
21
+ ResourceSessionScormApiLogItemToJSONTyped,
22
+ } from './ResourceSessionScormApiLogItem';
23
+
24
+ /**
25
+ * A filtered page of SCORM runtime calls for a resource session.
26
+ * @export
27
+ * @interface GetResourceSessionScormApiLogs
28
+ */
29
+ export interface GetResourceSessionScormApiLogs {
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof GetResourceSessionScormApiLogs
34
+ */
35
+ page: number;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof GetResourceSessionScormApiLogs
40
+ */
41
+ pageSize: number;
42
+ /**
43
+ *
44
+ * @type {number}
45
+ * @memberof GetResourceSessionScormApiLogs
46
+ */
47
+ totalPages: number;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof GetResourceSessionScormApiLogs
52
+ */
53
+ totalItems: number;
54
+ /**
55
+ *
56
+ * @type {Array<ResourceSessionScormApiLogItem>}
57
+ * @memberof GetResourceSessionScormApiLogs
58
+ */
59
+ items: Array<ResourceSessionScormApiLogItem>;
60
+ }
61
+
62
+ /**
63
+ * Check if a given object implements the GetResourceSessionScormApiLogs interface.
64
+ */
65
+ export function instanceOfGetResourceSessionScormApiLogs(value: object): value is GetResourceSessionScormApiLogs {
66
+ if (!('page' in value) || value['page'] === undefined) return false;
67
+ if (!('pageSize' in value) || value['pageSize'] === undefined) return false;
68
+ if (!('totalPages' in value) || value['totalPages'] === undefined) return false;
69
+ if (!('totalItems' in value) || value['totalItems'] === undefined) return false;
70
+ if (!('items' in value) || value['items'] === undefined) return false;
71
+ return true;
72
+ }
73
+
74
+ export function GetResourceSessionScormApiLogsFromJSON(json: any): GetResourceSessionScormApiLogs {
75
+ return GetResourceSessionScormApiLogsFromJSONTyped(json, false);
76
+ }
77
+
78
+ export function GetResourceSessionScormApiLogsFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetResourceSessionScormApiLogs {
79
+ if (json == null) {
80
+ return json;
81
+ }
82
+ return {
83
+
84
+ 'page': json['page'],
85
+ 'pageSize': json['pageSize'],
86
+ 'totalPages': json['totalPages'],
87
+ 'totalItems': json['totalItems'],
88
+ 'items': ((json['items'] as Array<any>).map(ResourceSessionScormApiLogItemFromJSON)),
89
+ };
90
+ }
91
+
92
+ export function GetResourceSessionScormApiLogsToJSON(json: any): GetResourceSessionScormApiLogs {
93
+ return GetResourceSessionScormApiLogsToJSONTyped(json, false);
94
+ }
95
+
96
+ export function GetResourceSessionScormApiLogsToJSONTyped(value?: GetResourceSessionScormApiLogs | null, ignoreDiscriminator: boolean = false): any {
97
+ if (value == null) {
98
+ return value;
99
+ }
100
+
101
+ return {
102
+
103
+ 'page': value['page'],
104
+ 'pageSize': value['pageSize'],
105
+ 'totalPages': value['totalPages'],
106
+ 'totalItems': value['totalItems'],
107
+ 'items': ((value['items'] as Array<any>).map(ResourceSessionScormApiLogItemToJSON)),
108
+ };
109
+ }
110
+