@easyedu/js-lsm-api 1.89.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 (110) hide show
  1. package/.openapi-generator/FILES +28 -0
  2. package/README.md +24 -2
  3. package/dist/apis/ContentLibraryApi.d.ts +19 -0
  4. package/dist/apis/ContentLibraryApi.js +47 -0
  5. package/dist/apis/PlayerApi.d.ts +187 -0
  6. package/dist/apis/PlayerApi.js +401 -1
  7. package/dist/esm/apis/ContentLibraryApi.d.ts +19 -0
  8. package/dist/esm/apis/ContentLibraryApi.js +47 -0
  9. package/dist/esm/apis/PlayerApi.d.ts +187 -0
  10. package/dist/esm/apis/PlayerApi.js +400 -0
  11. package/dist/esm/models/GetCourseVersionItemSession.d.ts +7 -0
  12. package/dist/esm/models/GetCourseVersionItemSession.js +5 -0
  13. package/dist/esm/models/GetResourceSession.d.ts +191 -0
  14. package/dist/esm/models/GetResourceSession.js +128 -0
  15. package/dist/esm/models/GetResourceSessionDiagnostics.d.ts +76 -0
  16. package/dist/esm/models/GetResourceSessionDiagnostics.js +69 -0
  17. package/dist/esm/models/GetResourceSessionDiagnosticsCourseContext.d.ts +81 -0
  18. package/dist/esm/models/GetResourceSessionDiagnosticsCourseContext.js +76 -0
  19. package/dist/esm/models/GetResourceSessionDiagnosticsResource.d.ts +51 -0
  20. package/dist/esm/models/GetResourceSessionDiagnosticsResource.js +56 -0
  21. package/dist/esm/models/GetResourceSessionDiagnosticsScormSummary.d.ts +74 -0
  22. package/dist/esm/models/GetResourceSessionDiagnosticsScormSummary.js +59 -0
  23. package/dist/esm/models/GetResourceSessionDiagnosticsUser.d.ts +38 -0
  24. package/dist/esm/models/GetResourceSessionDiagnosticsUser.js +47 -0
  25. package/dist/esm/models/GetResourceSessionDiagnosticsVersion.d.ts +88 -0
  26. package/dist/esm/models/GetResourceSessionDiagnosticsVersion.js +67 -0
  27. package/dist/esm/models/GetResourceSessionList.d.ts +57 -0
  28. package/dist/esm/models/GetResourceSessionList.js +60 -0
  29. package/dist/esm/models/GetResourceSessionScormApiLogs.d.ts +57 -0
  30. package/dist/esm/models/GetResourceSessionScormApiLogs.js +60 -0
  31. package/dist/esm/models/GetResourceSessionScormData.d.ts +77 -0
  32. package/dist/esm/models/GetResourceSessionScormData.js +66 -0
  33. package/dist/esm/models/GetResourceSessionScormDataActivity.d.ts +44 -0
  34. package/dist/esm/models/GetResourceSessionScormDataActivity.js +45 -0
  35. package/dist/esm/models/PostResourceVersionSession.d.ts +32 -0
  36. package/dist/esm/models/PostResourceVersionSession.js +41 -0
  37. package/dist/esm/models/ResourceSessionEnvironment.d.ts +25 -0
  38. package/dist/esm/models/ResourceSessionEnvironment.js +43 -0
  39. package/dist/esm/models/ResourceSessionScormApiLogItem.d.ts +79 -0
  40. package/dist/esm/models/ResourceSessionScormApiLogItem.js +73 -0
  41. package/dist/esm/models/index.d.ts +14 -0
  42. package/dist/esm/models/index.js +14 -0
  43. package/dist/models/GetCourseVersionItemSession.d.ts +7 -0
  44. package/dist/models/GetCourseVersionItemSession.js +5 -0
  45. package/dist/models/GetResourceSession.d.ts +191 -0
  46. package/dist/models/GetResourceSession.js +135 -0
  47. package/dist/models/GetResourceSessionDiagnostics.d.ts +76 -0
  48. package/dist/models/GetResourceSessionDiagnostics.js +76 -0
  49. package/dist/models/GetResourceSessionDiagnosticsCourseContext.d.ts +81 -0
  50. package/dist/models/GetResourceSessionDiagnosticsCourseContext.js +83 -0
  51. package/dist/models/GetResourceSessionDiagnosticsResource.d.ts +51 -0
  52. package/dist/models/GetResourceSessionDiagnosticsResource.js +63 -0
  53. package/dist/models/GetResourceSessionDiagnosticsScormSummary.d.ts +74 -0
  54. package/dist/models/GetResourceSessionDiagnosticsScormSummary.js +66 -0
  55. package/dist/models/GetResourceSessionDiagnosticsUser.d.ts +38 -0
  56. package/dist/models/GetResourceSessionDiagnosticsUser.js +54 -0
  57. package/dist/models/GetResourceSessionDiagnosticsVersion.d.ts +88 -0
  58. package/dist/models/GetResourceSessionDiagnosticsVersion.js +74 -0
  59. package/dist/models/GetResourceSessionList.d.ts +57 -0
  60. package/dist/models/GetResourceSessionList.js +67 -0
  61. package/dist/models/GetResourceSessionScormApiLogs.d.ts +57 -0
  62. package/dist/models/GetResourceSessionScormApiLogs.js +67 -0
  63. package/dist/models/GetResourceSessionScormData.d.ts +77 -0
  64. package/dist/models/GetResourceSessionScormData.js +73 -0
  65. package/dist/models/GetResourceSessionScormDataActivity.d.ts +44 -0
  66. package/dist/models/GetResourceSessionScormDataActivity.js +52 -0
  67. package/dist/models/PostResourceVersionSession.d.ts +32 -0
  68. package/dist/models/PostResourceVersionSession.js +48 -0
  69. package/dist/models/ResourceSessionEnvironment.d.ts +25 -0
  70. package/dist/models/ResourceSessionEnvironment.js +51 -0
  71. package/dist/models/ResourceSessionScormApiLogItem.d.ts +79 -0
  72. package/dist/models/ResourceSessionScormApiLogItem.js +81 -0
  73. package/dist/models/index.d.ts +14 -0
  74. package/dist/models/index.js +14 -0
  75. package/docs/ContentLibraryApi.md +73 -0
  76. package/docs/GetCourseVersionItemSession.md +2 -0
  77. package/docs/GetResourceSession.md +87 -0
  78. package/docs/GetResourceSessionDiagnostics.md +47 -0
  79. package/docs/GetResourceSessionDiagnosticsCourseContext.md +50 -0
  80. package/docs/GetResourceSessionDiagnosticsResource.md +40 -0
  81. package/docs/GetResourceSessionDiagnosticsScormSummary.md +48 -0
  82. package/docs/GetResourceSessionDiagnosticsUser.md +36 -0
  83. package/docs/GetResourceSessionDiagnosticsVersion.md +52 -0
  84. package/docs/GetResourceSessionList.md +43 -0
  85. package/docs/GetResourceSessionScormApiLogs.md +43 -0
  86. package/docs/GetResourceSessionScormData.md +49 -0
  87. package/docs/GetResourceSessionScormDataActivity.md +38 -0
  88. package/docs/PlayerApi.md +547 -0
  89. package/docs/PostResourceVersionSession.md +35 -0
  90. package/docs/ResourceSessionEnvironment.md +33 -0
  91. package/docs/ResourceSessionScormApiLogItem.md +47 -0
  92. package/package.json +1 -1
  93. package/src/apis/ContentLibraryApi.ts +72 -0
  94. package/src/apis/PlayerApi.ts +558 -0
  95. package/src/models/GetCourseVersionItemSession.ts +16 -0
  96. package/src/models/GetResourceSession.ts +313 -0
  97. package/src/models/GetResourceSessionDiagnostics.ts +161 -0
  98. package/src/models/GetResourceSessionDiagnosticsCourseContext.ts +148 -0
  99. package/src/models/GetResourceSessionDiagnosticsResource.ts +103 -0
  100. package/src/models/GetResourceSessionDiagnosticsScormSummary.ts +123 -0
  101. package/src/models/GetResourceSessionDiagnosticsUser.ts +75 -0
  102. package/src/models/GetResourceSessionDiagnosticsVersion.ts +141 -0
  103. package/src/models/GetResourceSessionList.ts +110 -0
  104. package/src/models/GetResourceSessionScormApiLogs.ts +110 -0
  105. package/src/models/GetResourceSessionScormData.ts +134 -0
  106. package/src/models/GetResourceSessionScormDataActivity.ts +81 -0
  107. package/src/models/PostResourceVersionSession.ts +65 -0
  108. package/src/models/ResourceSessionEnvironment.ts +53 -0
  109. package/src/models/ResourceSessionScormApiLogItem.ts +132 -0
  110. package/src/models/index.ts +14 -0
@@ -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 { ResourceSessionScormApiLogItemFromJSON, ResourceSessionScormApiLogItemToJSON, } from './ResourceSessionScormApiLogItem';
15
+ /**
16
+ * Check if a given object implements the GetResourceSessionScormApiLogs interface.
17
+ */
18
+ export function instanceOfGetResourceSessionScormApiLogs(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 GetResourceSessionScormApiLogsFromJSON(json) {
32
+ return GetResourceSessionScormApiLogsFromJSONTyped(json, false);
33
+ }
34
+ export function GetResourceSessionScormApiLogsFromJSONTyped(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(ResourceSessionScormApiLogItemFromJSON)),
44
+ };
45
+ }
46
+ export function GetResourceSessionScormApiLogsToJSON(json) {
47
+ return GetResourceSessionScormApiLogsToJSONTyped(json, false);
48
+ }
49
+ export function GetResourceSessionScormApiLogsToJSONTyped(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(ResourceSessionScormApiLogItemToJSON)),
59
+ };
60
+ }
@@ -0,0 +1,77 @@
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 { GetResourceSessionScormDataActivity } from './GetResourceSessionScormDataActivity';
13
+ /**
14
+ * Current SCORM CMI state for a reusable resource session.
15
+ * @export
16
+ * @interface GetResourceSessionScormData
17
+ */
18
+ export interface GetResourceSessionScormData {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof GetResourceSessionScormData
23
+ */
24
+ id: string;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof GetResourceSessionScormData
29
+ */
30
+ scormVersion: string;
31
+ /**
32
+ *
33
+ * @type {number}
34
+ * @memberof GetResourceSessionScormData
35
+ */
36
+ createdAt: number;
37
+ /**
38
+ *
39
+ * @type {number}
40
+ * @memberof GetResourceSessionScormData
41
+ */
42
+ updatedAt: number;
43
+ /**
44
+ *
45
+ * @type {number}
46
+ * @memberof GetResourceSessionScormData
47
+ */
48
+ initializedAt?: number | null;
49
+ /**
50
+ *
51
+ * @type {number}
52
+ * @memberof GetResourceSessionScormData
53
+ */
54
+ terminatedAt?: number | null;
55
+ /**
56
+ *
57
+ * @type {GetResourceSessionScormDataActivity}
58
+ * @memberof GetResourceSessionScormData
59
+ */
60
+ activity?: GetResourceSessionScormDataActivity | null;
61
+ /**
62
+ *
63
+ * @type {{ [key: string]: string; }}
64
+ * @memberof GetResourceSessionScormData
65
+ */
66
+ cmiData: {
67
+ [key: string]: string;
68
+ };
69
+ }
70
+ /**
71
+ * Check if a given object implements the GetResourceSessionScormData interface.
72
+ */
73
+ export declare function instanceOfGetResourceSessionScormData(value: object): value is GetResourceSessionScormData;
74
+ export declare function GetResourceSessionScormDataFromJSON(json: any): GetResourceSessionScormData;
75
+ export declare function GetResourceSessionScormDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetResourceSessionScormData;
76
+ export declare function GetResourceSessionScormDataToJSON(json: any): GetResourceSessionScormData;
77
+ export declare function GetResourceSessionScormDataToJSONTyped(value?: GetResourceSessionScormData | null, ignoreDiscriminator?: boolean): any;
@@ -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
+ import { GetResourceSessionScormDataActivityFromJSON, GetResourceSessionScormDataActivityToJSON, } from './GetResourceSessionScormDataActivity';
15
+ /**
16
+ * Check if a given object implements the GetResourceSessionScormData interface.
17
+ */
18
+ export function instanceOfGetResourceSessionScormData(value) {
19
+ if (!('id' in value) || value['id'] === undefined)
20
+ return false;
21
+ if (!('scormVersion' in value) || value['scormVersion'] === undefined)
22
+ return false;
23
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
24
+ return false;
25
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
26
+ return false;
27
+ if (!('cmiData' in value) || value['cmiData'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ export function GetResourceSessionScormDataFromJSON(json) {
32
+ return GetResourceSessionScormDataFromJSONTyped(json, false);
33
+ }
34
+ export function GetResourceSessionScormDataFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'id': json['id'],
40
+ 'scormVersion': json['scorm_version'],
41
+ 'createdAt': json['created_at'],
42
+ 'updatedAt': json['updated_at'],
43
+ 'initializedAt': json['initialized_at'] == null ? undefined : json['initialized_at'],
44
+ 'terminatedAt': json['terminated_at'] == null ? undefined : json['terminated_at'],
45
+ 'activity': json['activity'] == null ? undefined : GetResourceSessionScormDataActivityFromJSON(json['activity']),
46
+ 'cmiData': json['cmi_data'],
47
+ };
48
+ }
49
+ export function GetResourceSessionScormDataToJSON(json) {
50
+ return GetResourceSessionScormDataToJSONTyped(json, false);
51
+ }
52
+ export function GetResourceSessionScormDataToJSONTyped(value, ignoreDiscriminator = false) {
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+ 'id': value['id'],
58
+ 'scorm_version': value['scormVersion'],
59
+ 'created_at': value['createdAt'],
60
+ 'updated_at': value['updatedAt'],
61
+ 'initialized_at': value['initializedAt'],
62
+ 'terminated_at': value['terminatedAt'],
63
+ 'activity': GetResourceSessionScormDataActivityToJSON(value['activity']),
64
+ 'cmi_data': value['cmiData'],
65
+ };
66
+ }
@@ -0,0 +1,44 @@
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 GetResourceSessionScormDataActivity
16
+ */
17
+ export interface GetResourceSessionScormDataActivity {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof GetResourceSessionScormDataActivity
22
+ */
23
+ identifier?: string | null;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof GetResourceSessionScormDataActivity
28
+ */
29
+ name?: string | null;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof GetResourceSessionScormDataActivity
34
+ */
35
+ launchPath?: string | null;
36
+ }
37
+ /**
38
+ * Check if a given object implements the GetResourceSessionScormDataActivity interface.
39
+ */
40
+ export declare function instanceOfGetResourceSessionScormDataActivity(value: object): value is GetResourceSessionScormDataActivity;
41
+ export declare function GetResourceSessionScormDataActivityFromJSON(json: any): GetResourceSessionScormDataActivity;
42
+ export declare function GetResourceSessionScormDataActivityFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetResourceSessionScormDataActivity;
43
+ export declare function GetResourceSessionScormDataActivityToJSON(json: any): GetResourceSessionScormDataActivity;
44
+ export declare function GetResourceSessionScormDataActivityToJSONTyped(value?: GetResourceSessionScormDataActivity | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,45 @@
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 GetResourceSessionScormDataActivity interface.
16
+ */
17
+ export function instanceOfGetResourceSessionScormDataActivity(value) {
18
+ return true;
19
+ }
20
+ export function GetResourceSessionScormDataActivityFromJSON(json) {
21
+ return GetResourceSessionScormDataActivityFromJSONTyped(json, false);
22
+ }
23
+ export function GetResourceSessionScormDataActivityFromJSONTyped(json, ignoreDiscriminator) {
24
+ if (json == null) {
25
+ return json;
26
+ }
27
+ return {
28
+ 'identifier': json['identifier'] == null ? undefined : json['identifier'],
29
+ 'name': json['name'] == null ? undefined : json['name'],
30
+ 'launchPath': json['launch_path'] == null ? undefined : json['launch_path'],
31
+ };
32
+ }
33
+ export function GetResourceSessionScormDataActivityToJSON(json) {
34
+ return GetResourceSessionScormDataActivityToJSONTyped(json, false);
35
+ }
36
+ export function GetResourceSessionScormDataActivityToJSONTyped(value, ignoreDiscriminator = false) {
37
+ if (value == null) {
38
+ return value;
39
+ }
40
+ return {
41
+ 'identifier': value['identifier'],
42
+ 'name': value['name'],
43
+ 'launch_path': value['launchPath'],
44
+ };
45
+ }
@@ -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
+ * Start or resume an isolated demo session for an exact resource version.
14
+ * @export
15
+ * @interface PostResourceVersionSession
16
+ */
17
+ export interface PostResourceVersionSession {
18
+ /**
19
+ * Create a clean demo attempt instead of resuming the current demo session.
20
+ * @type {boolean}
21
+ * @memberof PostResourceVersionSession
22
+ */
23
+ restart?: boolean;
24
+ }
25
+ /**
26
+ * Check if a given object implements the PostResourceVersionSession interface.
27
+ */
28
+ export declare function instanceOfPostResourceVersionSession(value: object): value is PostResourceVersionSession;
29
+ export declare function PostResourceVersionSessionFromJSON(json: any): PostResourceVersionSession;
30
+ export declare function PostResourceVersionSessionFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostResourceVersionSession;
31
+ export declare function PostResourceVersionSessionToJSON(json: any): PostResourceVersionSession;
32
+ export declare function PostResourceVersionSessionToJSONTyped(value?: PostResourceVersionSession | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,41 @@
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 PostResourceVersionSession interface.
16
+ */
17
+ export function instanceOfPostResourceVersionSession(value) {
18
+ return true;
19
+ }
20
+ export function PostResourceVersionSessionFromJSON(json) {
21
+ return PostResourceVersionSessionFromJSONTyped(json, false);
22
+ }
23
+ export function PostResourceVersionSessionFromJSONTyped(json, ignoreDiscriminator) {
24
+ if (json == null) {
25
+ return json;
26
+ }
27
+ return {
28
+ 'restart': json['restart'] == null ? undefined : json['restart'],
29
+ };
30
+ }
31
+ export function PostResourceVersionSessionToJSON(json) {
32
+ return PostResourceVersionSessionToJSONTyped(json, false);
33
+ }
34
+ export function PostResourceVersionSessionToJSONTyped(value, ignoreDiscriminator = false) {
35
+ if (value == null) {
36
+ return value;
37
+ }
38
+ return {
39
+ 'restart': value['restart'],
40
+ };
41
+ }
@@ -0,0 +1,25 @@
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
+ * Whether the session contributes to learner activity or is isolated administrator testing.
14
+ * @export
15
+ */
16
+ export declare const ResourceSessionEnvironment: {
17
+ readonly Live: "live";
18
+ readonly Demo: "demo";
19
+ };
20
+ export type ResourceSessionEnvironment = typeof ResourceSessionEnvironment[keyof typeof ResourceSessionEnvironment];
21
+ export declare function instanceOfResourceSessionEnvironment(value: any): boolean;
22
+ export declare function ResourceSessionEnvironmentFromJSON(json: any): ResourceSessionEnvironment;
23
+ export declare function ResourceSessionEnvironmentFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResourceSessionEnvironment;
24
+ export declare function ResourceSessionEnvironmentToJSON(value?: ResourceSessionEnvironment | null): any;
25
+ export declare function ResourceSessionEnvironmentToJSONTyped(value: any, ignoreDiscriminator: boolean): ResourceSessionEnvironment;
@@ -0,0 +1,43 @@
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
+ * Whether the session contributes to learner activity or is isolated administrator testing.
16
+ * @export
17
+ */
18
+ export const ResourceSessionEnvironment = {
19
+ Live: 'live',
20
+ Demo: 'demo'
21
+ };
22
+ export function instanceOfResourceSessionEnvironment(value) {
23
+ for (const key in ResourceSessionEnvironment) {
24
+ if (Object.prototype.hasOwnProperty.call(ResourceSessionEnvironment, key)) {
25
+ if (ResourceSessionEnvironment[key] === value) {
26
+ return true;
27
+ }
28
+ }
29
+ }
30
+ return false;
31
+ }
32
+ export function ResourceSessionEnvironmentFromJSON(json) {
33
+ return ResourceSessionEnvironmentFromJSONTyped(json, false);
34
+ }
35
+ export function ResourceSessionEnvironmentFromJSONTyped(json, ignoreDiscriminator) {
36
+ return json;
37
+ }
38
+ export function ResourceSessionEnvironmentToJSON(value) {
39
+ return value;
40
+ }
41
+ export function ResourceSessionEnvironmentToJSONTyped(value, ignoreDiscriminator) {
42
+ return value;
43
+ }
@@ -0,0 +1,79 @@
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
+ * A recorded SCORM runtime call for a resource session.
14
+ * @export
15
+ * @interface ResourceSessionScormApiLogItem
16
+ */
17
+ export interface ResourceSessionScormApiLogItem {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof ResourceSessionScormApiLogItem
22
+ */
23
+ id: number;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof ResourceSessionScormApiLogItem
28
+ */
29
+ createdAt: number;
30
+ /**
31
+ *
32
+ * @type {ResourceSessionScormApiLogItemMethodEnum}
33
+ * @memberof ResourceSessionScormApiLogItem
34
+ */
35
+ method: ResourceSessionScormApiLogItemMethodEnum;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof ResourceSessionScormApiLogItem
40
+ */
41
+ element?: string | null;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof ResourceSessionScormApiLogItem
46
+ */
47
+ value?: string | null;
48
+ /**
49
+ *
50
+ * @type {boolean}
51
+ * @memberof ResourceSessionScormApiLogItem
52
+ */
53
+ valueTruncated: boolean;
54
+ /**
55
+ *
56
+ * @type {string}
57
+ * @memberof ResourceSessionScormApiLogItem
58
+ */
59
+ errorCode: string;
60
+ }
61
+ /**
62
+ * @export
63
+ */
64
+ export declare const ResourceSessionScormApiLogItemMethodEnum: {
65
+ readonly Initialize: "Initialize";
66
+ readonly GetValue: "GetValue";
67
+ readonly SetValue: "SetValue";
68
+ readonly Commit: "Commit";
69
+ readonly Terminate: "Terminate";
70
+ };
71
+ export type ResourceSessionScormApiLogItemMethodEnum = typeof ResourceSessionScormApiLogItemMethodEnum[keyof typeof ResourceSessionScormApiLogItemMethodEnum];
72
+ /**
73
+ * Check if a given object implements the ResourceSessionScormApiLogItem interface.
74
+ */
75
+ export declare function instanceOfResourceSessionScormApiLogItem(value: object): value is ResourceSessionScormApiLogItem;
76
+ export declare function ResourceSessionScormApiLogItemFromJSON(json: any): ResourceSessionScormApiLogItem;
77
+ export declare function ResourceSessionScormApiLogItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResourceSessionScormApiLogItem;
78
+ export declare function ResourceSessionScormApiLogItemToJSON(json: any): ResourceSessionScormApiLogItem;
79
+ export declare function ResourceSessionScormApiLogItemToJSONTyped(value?: ResourceSessionScormApiLogItem | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,73 @@
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
+ * @export
16
+ */
17
+ export const ResourceSessionScormApiLogItemMethodEnum = {
18
+ Initialize: 'Initialize',
19
+ GetValue: 'GetValue',
20
+ SetValue: 'SetValue',
21
+ Commit: 'Commit',
22
+ Terminate: 'Terminate'
23
+ };
24
+ /**
25
+ * Check if a given object implements the ResourceSessionScormApiLogItem interface.
26
+ */
27
+ export function instanceOfResourceSessionScormApiLogItem(value) {
28
+ if (!('id' in value) || value['id'] === undefined)
29
+ return false;
30
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
31
+ return false;
32
+ if (!('method' in value) || value['method'] === undefined)
33
+ return false;
34
+ if (!('valueTruncated' in value) || value['valueTruncated'] === undefined)
35
+ return false;
36
+ if (!('errorCode' in value) || value['errorCode'] === undefined)
37
+ return false;
38
+ return true;
39
+ }
40
+ export function ResourceSessionScormApiLogItemFromJSON(json) {
41
+ return ResourceSessionScormApiLogItemFromJSONTyped(json, false);
42
+ }
43
+ export function ResourceSessionScormApiLogItemFromJSONTyped(json, ignoreDiscriminator) {
44
+ if (json == null) {
45
+ return json;
46
+ }
47
+ return {
48
+ 'id': json['id'],
49
+ 'createdAt': json['created_at'],
50
+ 'method': json['method'],
51
+ 'element': json['element'] == null ? undefined : json['element'],
52
+ 'value': json['value'] == null ? undefined : json['value'],
53
+ 'valueTruncated': json['value_truncated'],
54
+ 'errorCode': json['error_code'],
55
+ };
56
+ }
57
+ export function ResourceSessionScormApiLogItemToJSON(json) {
58
+ return ResourceSessionScormApiLogItemToJSONTyped(json, false);
59
+ }
60
+ export function ResourceSessionScormApiLogItemToJSONTyped(value, ignoreDiscriminator = false) {
61
+ if (value == null) {
62
+ return value;
63
+ }
64
+ return {
65
+ 'id': value['id'],
66
+ 'created_at': value['createdAt'],
67
+ 'method': value['method'],
68
+ 'element': value['element'],
69
+ 'value': value['value'],
70
+ 'value_truncated': value['valueTruncated'],
71
+ 'error_code': value['errorCode'],
72
+ };
73
+ }
@@ -180,6 +180,17 @@ export * from './GetQuizResultsTiming';
180
180
  export * from './GetQuizStatistics';
181
181
  export * from './GetResource';
182
182
  export * from './GetResourceList';
183
+ export * from './GetResourceSession';
184
+ export * from './GetResourceSessionDiagnostics';
185
+ export * from './GetResourceSessionDiagnosticsCourseContext';
186
+ export * from './GetResourceSessionDiagnosticsResource';
187
+ export * from './GetResourceSessionDiagnosticsScormSummary';
188
+ export * from './GetResourceSessionDiagnosticsUser';
189
+ export * from './GetResourceSessionDiagnosticsVersion';
190
+ export * from './GetResourceSessionList';
191
+ export * from './GetResourceSessionScormApiLogs';
192
+ export * from './GetResourceSessionScormData';
193
+ export * from './GetResourceSessionScormDataActivity';
183
194
  export * from './GetResourceUsage';
184
195
  export * from './GetResourceUsageCoursesInner';
185
196
  export * from './GetResourceVersionUpload';
@@ -297,6 +308,7 @@ export * from './PostResetPassword';
297
308
  export * from './PostResource';
298
309
  export * from './PostResourceVersion';
299
310
  export * from './PostResourceVersionComplete';
311
+ export * from './PostResourceVersionSession';
300
312
  export * from './PostResourceVersionUpload';
301
313
  export * from './PostRevokeCertificate';
302
314
  export * from './PostRichTextAssetComplete';
@@ -348,6 +360,8 @@ export * from './PutUser';
348
360
  export * from './QuizContent';
349
361
  export * from './QuizContentAssignment';
350
362
  export * from './QuizContentSettings';
363
+ export * from './ResourceSessionEnvironment';
364
+ export * from './ResourceSessionScormApiLogItem';
351
365
  export * from './ResourceType';
352
366
  export * from './RichTextAsset';
353
367
  export * from './RichTextDocument';
@@ -182,6 +182,17 @@ export * from './GetQuizResultsTiming';
182
182
  export * from './GetQuizStatistics';
183
183
  export * from './GetResource';
184
184
  export * from './GetResourceList';
185
+ export * from './GetResourceSession';
186
+ export * from './GetResourceSessionDiagnostics';
187
+ export * from './GetResourceSessionDiagnosticsCourseContext';
188
+ export * from './GetResourceSessionDiagnosticsResource';
189
+ export * from './GetResourceSessionDiagnosticsScormSummary';
190
+ export * from './GetResourceSessionDiagnosticsUser';
191
+ export * from './GetResourceSessionDiagnosticsVersion';
192
+ export * from './GetResourceSessionList';
193
+ export * from './GetResourceSessionScormApiLogs';
194
+ export * from './GetResourceSessionScormData';
195
+ export * from './GetResourceSessionScormDataActivity';
185
196
  export * from './GetResourceUsage';
186
197
  export * from './GetResourceUsageCoursesInner';
187
198
  export * from './GetResourceVersionUpload';
@@ -299,6 +310,7 @@ export * from './PostResetPassword';
299
310
  export * from './PostResource';
300
311
  export * from './PostResourceVersion';
301
312
  export * from './PostResourceVersionComplete';
313
+ export * from './PostResourceVersionSession';
302
314
  export * from './PostResourceVersionUpload';
303
315
  export * from './PostRevokeCertificate';
304
316
  export * from './PostRichTextAssetComplete';
@@ -350,6 +362,8 @@ export * from './PutUser';
350
362
  export * from './QuizContent';
351
363
  export * from './QuizContentAssignment';
352
364
  export * from './QuizContentSettings';
365
+ export * from './ResourceSessionEnvironment';
366
+ export * from './ResourceSessionScormApiLogItem';
353
367
  export * from './ResourceType';
354
368
  export * from './RichTextAsset';
355
369
  export * from './RichTextDocument';
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { ResourceSessionEnvironment } from './ResourceSessionEnvironment';
12
13
  import type { ResourceType } from './ResourceType';
13
14
  import type { ContentLaunchMode } from './ContentLaunchMode';
14
15
  /**
@@ -23,6 +24,12 @@ export interface GetCourseVersionItemSession {
23
24
  * @memberof GetCourseVersionItemSession
24
25
  */
25
26
  id: string;
27
+ /**
28
+ *
29
+ * @type {ResourceSessionEnvironment}
30
+ * @memberof GetCourseVersionItemSession
31
+ */
32
+ environment: ResourceSessionEnvironment;
26
33
  /**
27
34
  *
28
35
  * @type {string}