@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,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 { ResourceSessionScormApiLogItem } from './ResourceSessionScormApiLogItem';
13
+ /**
14
+ * A filtered page of SCORM runtime calls for a resource session.
15
+ * @export
16
+ * @interface GetResourceSessionScormApiLogs
17
+ */
18
+ export interface GetResourceSessionScormApiLogs {
19
+ /**
20
+ *
21
+ * @type {number}
22
+ * @memberof GetResourceSessionScormApiLogs
23
+ */
24
+ page: number;
25
+ /**
26
+ *
27
+ * @type {number}
28
+ * @memberof GetResourceSessionScormApiLogs
29
+ */
30
+ pageSize: number;
31
+ /**
32
+ *
33
+ * @type {number}
34
+ * @memberof GetResourceSessionScormApiLogs
35
+ */
36
+ totalPages: number;
37
+ /**
38
+ *
39
+ * @type {number}
40
+ * @memberof GetResourceSessionScormApiLogs
41
+ */
42
+ totalItems: number;
43
+ /**
44
+ *
45
+ * @type {Array<ResourceSessionScormApiLogItem>}
46
+ * @memberof GetResourceSessionScormApiLogs
47
+ */
48
+ items: Array<ResourceSessionScormApiLogItem>;
49
+ }
50
+ /**
51
+ * Check if a given object implements the GetResourceSessionScormApiLogs interface.
52
+ */
53
+ export declare function instanceOfGetResourceSessionScormApiLogs(value: object): value is GetResourceSessionScormApiLogs;
54
+ export declare function GetResourceSessionScormApiLogsFromJSON(json: any): GetResourceSessionScormApiLogs;
55
+ export declare function GetResourceSessionScormApiLogsFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetResourceSessionScormApiLogs;
56
+ export declare function GetResourceSessionScormApiLogsToJSON(json: any): GetResourceSessionScormApiLogs;
57
+ export declare function GetResourceSessionScormApiLogsToJSONTyped(value?: GetResourceSessionScormApiLogs | 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 { 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,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
+ }
@@ -181,7 +181,16 @@ export * from './GetQuizStatistics';
181
181
  export * from './GetResource';
182
182
  export * from './GetResourceList';
183
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';
184
190
  export * from './GetResourceSessionList';
191
+ export * from './GetResourceSessionScormApiLogs';
192
+ export * from './GetResourceSessionScormData';
193
+ export * from './GetResourceSessionScormDataActivity';
185
194
  export * from './GetResourceUsage';
186
195
  export * from './GetResourceUsageCoursesInner';
187
196
  export * from './GetResourceVersionUpload';
@@ -352,6 +361,7 @@ export * from './QuizContent';
352
361
  export * from './QuizContentAssignment';
353
362
  export * from './QuizContentSettings';
354
363
  export * from './ResourceSessionEnvironment';
364
+ export * from './ResourceSessionScormApiLogItem';
355
365
  export * from './ResourceType';
356
366
  export * from './RichTextAsset';
357
367
  export * from './RichTextDocument';
@@ -183,7 +183,16 @@ export * from './GetQuizStatistics';
183
183
  export * from './GetResource';
184
184
  export * from './GetResourceList';
185
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';
186
192
  export * from './GetResourceSessionList';
193
+ export * from './GetResourceSessionScormApiLogs';
194
+ export * from './GetResourceSessionScormData';
195
+ export * from './GetResourceSessionScormDataActivity';
187
196
  export * from './GetResourceUsage';
188
197
  export * from './GetResourceUsageCoursesInner';
189
198
  export * from './GetResourceVersionUpload';
@@ -354,6 +363,7 @@ export * from './QuizContent';
354
363
  export * from './QuizContentAssignment';
355
364
  export * from './QuizContentSettings';
356
365
  export * from './ResourceSessionEnvironment';
366
+ export * from './ResourceSessionScormApiLogItem';
357
367
  export * from './ResourceType';
358
368
  export * from './RichTextAsset';
359
369
  export * from './RichTextDocument';
@@ -30,6 +30,12 @@ export interface GetResourceSession {
30
30
  * @memberof GetResourceSession
31
31
  */
32
32
  userId: string;
33
+ /**
34
+ *
35
+ * @type {string}
36
+ * @memberof GetResourceSession
37
+ */
38
+ userName: string;
33
39
  /**
34
40
  *
35
41
  * @type {ResourceSessionEnvironment}
@@ -42,12 +48,24 @@ export interface GetResourceSession {
42
48
  * @memberof GetResourceSession
43
49
  */
44
50
  courseId?: string | null;
51
+ /**
52
+ *
53
+ * @type {string}
54
+ * @memberof GetResourceSession
55
+ */
56
+ courseName?: string | null;
45
57
  /**
46
58
  *
47
59
  * @type {string}
48
60
  * @memberof GetResourceSession
49
61
  */
50
62
  courseVersionId?: string | null;
63
+ /**
64
+ *
65
+ * @type {number}
66
+ * @memberof GetResourceSession
67
+ */
68
+ courseVersionNumber?: number | null;
51
69
  /**
52
70
  *
53
71
  * @type {string}
@@ -66,6 +84,18 @@ export interface GetResourceSession {
66
84
  * @memberof GetResourceSession
67
85
  */
68
86
  contentLibraryVersionId: string;
87
+ /**
88
+ *
89
+ * @type {number}
90
+ * @memberof GetResourceSession
91
+ */
92
+ contentLibraryVersionNumber: number;
93
+ /**
94
+ *
95
+ * @type {string}
96
+ * @memberof GetResourceSession
97
+ */
98
+ contentLibraryVersionStatus: string;
69
99
  /**
70
100
  *
71
101
  * @type {string}
@@ -29,12 +29,18 @@ function instanceOfGetResourceSession(value) {
29
29
  return false;
30
30
  if (!('userId' in value) || value['userId'] === undefined)
31
31
  return false;
32
+ if (!('userName' in value) || value['userName'] === undefined)
33
+ return false;
32
34
  if (!('environment' in value) || value['environment'] === undefined)
33
35
  return false;
34
36
  if (!('contentLibraryItemId' in value) || value['contentLibraryItemId'] === undefined)
35
37
  return false;
36
38
  if (!('contentLibraryVersionId' in value) || value['contentLibraryVersionId'] === undefined)
37
39
  return false;
40
+ if (!('contentLibraryVersionNumber' in value) || value['contentLibraryVersionNumber'] === undefined)
41
+ return false;
42
+ if (!('contentLibraryVersionStatus' in value) || value['contentLibraryVersionStatus'] === undefined)
43
+ return false;
38
44
  if (!('resourceName' in value) || value['resourceName'] === undefined)
39
45
  return false;
40
46
  if (!('resourceType' in value) || value['resourceType'] === undefined)
@@ -63,12 +69,17 @@ function GetResourceSessionFromJSONTyped(json, ignoreDiscriminator) {
63
69
  return {
64
70
  'id': json['id'],
65
71
  'userId': json['user_id'],
72
+ 'userName': json['user_name'],
66
73
  'environment': (0, ResourceSessionEnvironment_1.ResourceSessionEnvironmentFromJSON)(json['environment']),
67
74
  'courseId': json['course_id'] == null ? undefined : json['course_id'],
75
+ 'courseName': json['course_name'] == null ? undefined : json['course_name'],
68
76
  'courseVersionId': json['course_version_id'] == null ? undefined : json['course_version_id'],
77
+ 'courseVersionNumber': json['course_version_number'] == null ? undefined : json['course_version_number'],
69
78
  'itemId': json['item_id'] == null ? undefined : json['item_id'],
70
79
  'contentLibraryItemId': json['content_library_item_id'],
71
80
  'contentLibraryVersionId': json['content_library_version_id'],
81
+ 'contentLibraryVersionNumber': json['content_library_version_number'],
82
+ 'contentLibraryVersionStatus': json['content_library_version_status'],
72
83
  'resourceName': json['resource_name'],
73
84
  'resourceType': (0, ResourceType_1.ResourceTypeFromJSON)(json['resource_type']),
74
85
  'launchMode': json['launch_mode'] == null ? undefined : (0, ContentLaunchMode_1.ContentLaunchModeFromJSON)(json['launch_mode']),
@@ -95,12 +106,17 @@ function GetResourceSessionToJSONTyped(value, ignoreDiscriminator = false) {
95
106
  return {
96
107
  'id': value['id'],
97
108
  'user_id': value['userId'],
109
+ 'user_name': value['userName'],
98
110
  'environment': (0, ResourceSessionEnvironment_1.ResourceSessionEnvironmentToJSON)(value['environment']),
99
111
  'course_id': value['courseId'],
112
+ 'course_name': value['courseName'],
100
113
  'course_version_id': value['courseVersionId'],
114
+ 'course_version_number': value['courseVersionNumber'],
101
115
  'item_id': value['itemId'],
102
116
  'content_library_item_id': value['contentLibraryItemId'],
103
117
  'content_library_version_id': value['contentLibraryVersionId'],
118
+ 'content_library_version_number': value['contentLibraryVersionNumber'],
119
+ 'content_library_version_status': value['contentLibraryVersionStatus'],
104
120
  'resource_name': value['resourceName'],
105
121
  'resource_type': (0, ResourceType_1.ResourceTypeToJSON)(value['resourceType']),
106
122
  'launch_mode': (0, ContentLaunchMode_1.ContentLaunchModeToJSON)(value['launchMode']),