@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.
- package/.openapi-generator/FILES +20 -0
- package/README.md +15 -2
- package/dist/apis/PlayerApi.d.ts +115 -1
- package/dist/apis/PlayerApi.js +213 -1
- package/dist/esm/apis/PlayerApi.d.ts +115 -1
- package/dist/esm/apis/PlayerApi.js +212 -0
- package/dist/esm/models/GetResourceSession.d.ts +30 -0
- package/dist/esm/models/GetResourceSession.js +16 -0
- package/dist/esm/models/GetResourceSessionDiagnostics.d.ts +76 -0
- package/dist/esm/models/GetResourceSessionDiagnostics.js +69 -0
- package/dist/esm/models/GetResourceSessionDiagnosticsCourseContext.d.ts +81 -0
- package/dist/esm/models/GetResourceSessionDiagnosticsCourseContext.js +76 -0
- package/dist/esm/models/GetResourceSessionDiagnosticsResource.d.ts +51 -0
- package/dist/esm/models/GetResourceSessionDiagnosticsResource.js +56 -0
- package/dist/esm/models/GetResourceSessionDiagnosticsScormSummary.d.ts +74 -0
- package/dist/esm/models/GetResourceSessionDiagnosticsScormSummary.js +59 -0
- package/dist/esm/models/GetResourceSessionDiagnosticsUser.d.ts +38 -0
- package/dist/esm/models/GetResourceSessionDiagnosticsUser.js +47 -0
- package/dist/esm/models/GetResourceSessionDiagnosticsVersion.d.ts +88 -0
- package/dist/esm/models/GetResourceSessionDiagnosticsVersion.js +67 -0
- package/dist/esm/models/GetResourceSessionScormApiLogs.d.ts +57 -0
- package/dist/esm/models/GetResourceSessionScormApiLogs.js +60 -0
- package/dist/esm/models/GetResourceSessionScormData.d.ts +77 -0
- package/dist/esm/models/GetResourceSessionScormData.js +66 -0
- package/dist/esm/models/GetResourceSessionScormDataActivity.d.ts +44 -0
- package/dist/esm/models/GetResourceSessionScormDataActivity.js +45 -0
- package/dist/esm/models/ResourceSessionScormApiLogItem.d.ts +79 -0
- package/dist/esm/models/ResourceSessionScormApiLogItem.js +73 -0
- package/dist/esm/models/index.d.ts +10 -0
- package/dist/esm/models/index.js +10 -0
- package/dist/models/GetResourceSession.d.ts +30 -0
- package/dist/models/GetResourceSession.js +16 -0
- package/dist/models/GetResourceSessionDiagnostics.d.ts +76 -0
- package/dist/models/GetResourceSessionDiagnostics.js +76 -0
- package/dist/models/GetResourceSessionDiagnosticsCourseContext.d.ts +81 -0
- package/dist/models/GetResourceSessionDiagnosticsCourseContext.js +83 -0
- package/dist/models/GetResourceSessionDiagnosticsResource.d.ts +51 -0
- package/dist/models/GetResourceSessionDiagnosticsResource.js +63 -0
- package/dist/models/GetResourceSessionDiagnosticsScormSummary.d.ts +74 -0
- package/dist/models/GetResourceSessionDiagnosticsScormSummary.js +66 -0
- package/dist/models/GetResourceSessionDiagnosticsUser.d.ts +38 -0
- package/dist/models/GetResourceSessionDiagnosticsUser.js +54 -0
- package/dist/models/GetResourceSessionDiagnosticsVersion.d.ts +88 -0
- package/dist/models/GetResourceSessionDiagnosticsVersion.js +74 -0
- package/dist/models/GetResourceSessionScormApiLogs.d.ts +57 -0
- package/dist/models/GetResourceSessionScormApiLogs.js +67 -0
- package/dist/models/GetResourceSessionScormData.d.ts +77 -0
- package/dist/models/GetResourceSessionScormData.js +73 -0
- package/dist/models/GetResourceSessionScormDataActivity.d.ts +44 -0
- package/dist/models/GetResourceSessionScormDataActivity.js +52 -0
- package/dist/models/ResourceSessionScormApiLogItem.d.ts +79 -0
- package/dist/models/ResourceSessionScormApiLogItem.js +81 -0
- package/dist/models/index.d.ts +10 -0
- package/dist/models/index.js +10 -0
- package/docs/GetResourceSession.md +10 -0
- package/docs/GetResourceSessionDiagnostics.md +47 -0
- package/docs/GetResourceSessionDiagnosticsCourseContext.md +50 -0
- package/docs/GetResourceSessionDiagnosticsResource.md +40 -0
- package/docs/GetResourceSessionDiagnosticsScormSummary.md +48 -0
- package/docs/GetResourceSessionDiagnosticsUser.md +36 -0
- package/docs/GetResourceSessionDiagnosticsVersion.md +52 -0
- package/docs/GetResourceSessionScormApiLogs.md +43 -0
- package/docs/GetResourceSessionScormData.md +49 -0
- package/docs/GetResourceSessionScormDataActivity.md +38 -0
- package/docs/PlayerApi.md +254 -3
- package/docs/ResourceSessionScormApiLogItem.md +47 -0
- package/package.json +1 -1
- package/src/apis/PlayerApi.ts +298 -1
- package/src/models/GetResourceSession.ts +43 -0
- package/src/models/GetResourceSessionDiagnostics.ts +161 -0
- package/src/models/GetResourceSessionDiagnosticsCourseContext.ts +148 -0
- package/src/models/GetResourceSessionDiagnosticsResource.ts +103 -0
- package/src/models/GetResourceSessionDiagnosticsScormSummary.ts +123 -0
- package/src/models/GetResourceSessionDiagnosticsUser.ts +75 -0
- package/src/models/GetResourceSessionDiagnosticsVersion.ts +141 -0
- package/src/models/GetResourceSessionScormApiLogs.ts +110 -0
- package/src/models/GetResourceSessionScormData.ts +134 -0
- package/src/models/GetResourceSessionScormDataActivity.ts +81 -0
- package/src/models/ResourceSessionScormApiLogItem.ts +132 -0
- package/src/models/index.ts +10 -0
package/src/apis/PlayerApi.ts
CHANGED
|
@@ -18,16 +18,36 @@ import {
|
|
|
18
18
|
GetResourceSessionFromJSON,
|
|
19
19
|
GetResourceSessionToJSON,
|
|
20
20
|
} from '../models/GetResourceSession';
|
|
21
|
+
import {
|
|
22
|
+
type GetResourceSessionDiagnostics,
|
|
23
|
+
GetResourceSessionDiagnosticsFromJSON,
|
|
24
|
+
GetResourceSessionDiagnosticsToJSON,
|
|
25
|
+
} from '../models/GetResourceSessionDiagnostics';
|
|
21
26
|
import {
|
|
22
27
|
type GetResourceSessionList,
|
|
23
28
|
GetResourceSessionListFromJSON,
|
|
24
29
|
GetResourceSessionListToJSON,
|
|
25
30
|
} from '../models/GetResourceSessionList';
|
|
31
|
+
import {
|
|
32
|
+
type GetResourceSessionScormApiLogs,
|
|
33
|
+
GetResourceSessionScormApiLogsFromJSON,
|
|
34
|
+
GetResourceSessionScormApiLogsToJSON,
|
|
35
|
+
} from '../models/GetResourceSessionScormApiLogs';
|
|
36
|
+
import {
|
|
37
|
+
type GetResourceSessionScormData,
|
|
38
|
+
GetResourceSessionScormDataFromJSON,
|
|
39
|
+
GetResourceSessionScormDataToJSON,
|
|
40
|
+
} from '../models/GetResourceSessionScormData';
|
|
26
41
|
import {
|
|
27
42
|
type ResourceSessionEnvironment,
|
|
28
43
|
ResourceSessionEnvironmentFromJSON,
|
|
29
44
|
ResourceSessionEnvironmentToJSON,
|
|
30
45
|
} from '../models/ResourceSessionEnvironment';
|
|
46
|
+
import {
|
|
47
|
+
type ResourceType,
|
|
48
|
+
ResourceTypeFromJSON,
|
|
49
|
+
ResourceTypeToJSON,
|
|
50
|
+
} from '../models/ResourceType';
|
|
31
51
|
import {
|
|
32
52
|
type ScormGetValueResponse,
|
|
33
53
|
ScormGetValueResponseFromJSON,
|
|
@@ -96,15 +116,30 @@ export interface GetResourceSessionAssetRequest {
|
|
|
96
116
|
assetPath: string;
|
|
97
117
|
}
|
|
98
118
|
|
|
119
|
+
export interface GetResourceSessionDiagnosticsRequest {
|
|
120
|
+
sessionId: string;
|
|
121
|
+
}
|
|
122
|
+
|
|
99
123
|
export interface GetResourceSessionListRequest {
|
|
100
124
|
userId?: string;
|
|
101
125
|
resourceId?: string;
|
|
102
126
|
versionId?: string;
|
|
103
127
|
courseId?: string;
|
|
128
|
+
courseVersionId?: string;
|
|
129
|
+
itemId?: string;
|
|
130
|
+
resourceType?: ResourceType;
|
|
104
131
|
environment?: ResourceSessionEnvironment;
|
|
105
|
-
completionStatus?:
|
|
132
|
+
completionStatus?: GetResourceSessionListCompletionStatusEnum;
|
|
133
|
+
gradeStatus?: GetResourceSessionListGradeStatusEnum;
|
|
134
|
+
isCurrent?: boolean;
|
|
135
|
+
attemptNumber?: number;
|
|
106
136
|
createdFrom?: number;
|
|
107
137
|
createdTo?: number;
|
|
138
|
+
updatedFrom?: number;
|
|
139
|
+
updatedTo?: number;
|
|
140
|
+
hasScormErrors?: boolean;
|
|
141
|
+
sortBy?: GetResourceSessionListSortByEnum;
|
|
142
|
+
sortDirection?: GetResourceSessionListSortDirectionEnum;
|
|
108
143
|
page?: number;
|
|
109
144
|
pageSize?: number;
|
|
110
145
|
}
|
|
@@ -113,6 +148,19 @@ export interface GetResourceSessionPlayerRequest {
|
|
|
113
148
|
sessionId: string;
|
|
114
149
|
}
|
|
115
150
|
|
|
151
|
+
export interface GetResourceSessionScormApiLogsRequest {
|
|
152
|
+
sessionId: string;
|
|
153
|
+
method?: GetResourceSessionScormApiLogsMethodEnum;
|
|
154
|
+
element?: string;
|
|
155
|
+
errorsOnly?: boolean;
|
|
156
|
+
page?: number;
|
|
157
|
+
pageSize?: number;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
export interface GetResourceSessionScormDataRequest {
|
|
161
|
+
sessionId: string;
|
|
162
|
+
}
|
|
163
|
+
|
|
116
164
|
export interface GetScormAssetRequest {
|
|
117
165
|
contentId: string;
|
|
118
166
|
assetPath: string;
|
|
@@ -719,6 +767,51 @@ export class PlayerApi extends runtime.BaseAPI {
|
|
|
719
767
|
return await response.value();
|
|
720
768
|
}
|
|
721
769
|
|
|
770
|
+
/**
|
|
771
|
+
* Creates request options for getResourceSessionDiagnostics without sending the request
|
|
772
|
+
*/
|
|
773
|
+
async getResourceSessionDiagnosticsRequestOpts(requestParameters: GetResourceSessionDiagnosticsRequest): Promise<runtime.RequestOpts> {
|
|
774
|
+
if (requestParameters['sessionId'] == null) {
|
|
775
|
+
throw new runtime.RequiredError(
|
|
776
|
+
'sessionId',
|
|
777
|
+
'Required parameter "sessionId" was null or undefined when calling getResourceSessionDiagnostics().'
|
|
778
|
+
);
|
|
779
|
+
}
|
|
780
|
+
|
|
781
|
+
const queryParameters: any = {};
|
|
782
|
+
|
|
783
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
784
|
+
|
|
785
|
+
|
|
786
|
+
let urlPath = `/resource/sessions/{sessionId}/diagnostics`;
|
|
787
|
+
urlPath = urlPath.replace('{sessionId}', encodeURIComponent(String(requestParameters['sessionId'])));
|
|
788
|
+
|
|
789
|
+
return {
|
|
790
|
+
path: urlPath,
|
|
791
|
+
method: 'GET',
|
|
792
|
+
headers: headerParameters,
|
|
793
|
+
query: queryParameters,
|
|
794
|
+
};
|
|
795
|
+
}
|
|
796
|
+
|
|
797
|
+
/**
|
|
798
|
+
* Get administrator diagnostics for a resource session
|
|
799
|
+
*/
|
|
800
|
+
async getResourceSessionDiagnosticsRaw(requestParameters: GetResourceSessionDiagnosticsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetResourceSessionDiagnostics>> {
|
|
801
|
+
const requestOptions = await this.getResourceSessionDiagnosticsRequestOpts(requestParameters);
|
|
802
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
803
|
+
|
|
804
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetResourceSessionDiagnosticsFromJSON(jsonValue));
|
|
805
|
+
}
|
|
806
|
+
|
|
807
|
+
/**
|
|
808
|
+
* Get administrator diagnostics for a resource session
|
|
809
|
+
*/
|
|
810
|
+
async getResourceSessionDiagnostics(requestParameters: GetResourceSessionDiagnosticsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetResourceSessionDiagnostics> {
|
|
811
|
+
const response = await this.getResourceSessionDiagnosticsRaw(requestParameters, initOverrides);
|
|
812
|
+
return await response.value();
|
|
813
|
+
}
|
|
814
|
+
|
|
722
815
|
/**
|
|
723
816
|
* Creates request options for getResourceSessionList without sending the request
|
|
724
817
|
*/
|
|
@@ -741,6 +834,18 @@ export class PlayerApi extends runtime.BaseAPI {
|
|
|
741
834
|
queryParameters['course_id'] = requestParameters['courseId'];
|
|
742
835
|
}
|
|
743
836
|
|
|
837
|
+
if (requestParameters['courseVersionId'] != null) {
|
|
838
|
+
queryParameters['course_version_id'] = requestParameters['courseVersionId'];
|
|
839
|
+
}
|
|
840
|
+
|
|
841
|
+
if (requestParameters['itemId'] != null) {
|
|
842
|
+
queryParameters['item_id'] = requestParameters['itemId'];
|
|
843
|
+
}
|
|
844
|
+
|
|
845
|
+
if (requestParameters['resourceType'] != null) {
|
|
846
|
+
queryParameters['resource_type'] = requestParameters['resourceType'];
|
|
847
|
+
}
|
|
848
|
+
|
|
744
849
|
if (requestParameters['environment'] != null) {
|
|
745
850
|
queryParameters['environment'] = requestParameters['environment'];
|
|
746
851
|
}
|
|
@@ -749,6 +854,18 @@ export class PlayerApi extends runtime.BaseAPI {
|
|
|
749
854
|
queryParameters['completion_status'] = requestParameters['completionStatus'];
|
|
750
855
|
}
|
|
751
856
|
|
|
857
|
+
if (requestParameters['gradeStatus'] != null) {
|
|
858
|
+
queryParameters['grade_status'] = requestParameters['gradeStatus'];
|
|
859
|
+
}
|
|
860
|
+
|
|
861
|
+
if (requestParameters['isCurrent'] != null) {
|
|
862
|
+
queryParameters['is_current'] = requestParameters['isCurrent'];
|
|
863
|
+
}
|
|
864
|
+
|
|
865
|
+
if (requestParameters['attemptNumber'] != null) {
|
|
866
|
+
queryParameters['attempt_number'] = requestParameters['attemptNumber'];
|
|
867
|
+
}
|
|
868
|
+
|
|
752
869
|
if (requestParameters['createdFrom'] != null) {
|
|
753
870
|
queryParameters['created_from'] = requestParameters['createdFrom'];
|
|
754
871
|
}
|
|
@@ -757,6 +874,26 @@ export class PlayerApi extends runtime.BaseAPI {
|
|
|
757
874
|
queryParameters['created_to'] = requestParameters['createdTo'];
|
|
758
875
|
}
|
|
759
876
|
|
|
877
|
+
if (requestParameters['updatedFrom'] != null) {
|
|
878
|
+
queryParameters['updated_from'] = requestParameters['updatedFrom'];
|
|
879
|
+
}
|
|
880
|
+
|
|
881
|
+
if (requestParameters['updatedTo'] != null) {
|
|
882
|
+
queryParameters['updated_to'] = requestParameters['updatedTo'];
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
if (requestParameters['hasScormErrors'] != null) {
|
|
886
|
+
queryParameters['has_scorm_errors'] = requestParameters['hasScormErrors'];
|
|
887
|
+
}
|
|
888
|
+
|
|
889
|
+
if (requestParameters['sortBy'] != null) {
|
|
890
|
+
queryParameters['sort_by'] = requestParameters['sortBy'];
|
|
891
|
+
}
|
|
892
|
+
|
|
893
|
+
if (requestParameters['sortDirection'] != null) {
|
|
894
|
+
queryParameters['sort_direction'] = requestParameters['sortDirection'];
|
|
895
|
+
}
|
|
896
|
+
|
|
760
897
|
if (requestParameters['page'] != null) {
|
|
761
898
|
queryParameters['page'] = requestParameters['page'];
|
|
762
899
|
}
|
|
@@ -845,6 +982,116 @@ export class PlayerApi extends runtime.BaseAPI {
|
|
|
845
982
|
return await response.value();
|
|
846
983
|
}
|
|
847
984
|
|
|
985
|
+
/**
|
|
986
|
+
* Creates request options for getResourceSessionScormApiLogs without sending the request
|
|
987
|
+
*/
|
|
988
|
+
async getResourceSessionScormApiLogsRequestOpts(requestParameters: GetResourceSessionScormApiLogsRequest): Promise<runtime.RequestOpts> {
|
|
989
|
+
if (requestParameters['sessionId'] == null) {
|
|
990
|
+
throw new runtime.RequiredError(
|
|
991
|
+
'sessionId',
|
|
992
|
+
'Required parameter "sessionId" was null or undefined when calling getResourceSessionScormApiLogs().'
|
|
993
|
+
);
|
|
994
|
+
}
|
|
995
|
+
|
|
996
|
+
const queryParameters: any = {};
|
|
997
|
+
|
|
998
|
+
if (requestParameters['method'] != null) {
|
|
999
|
+
queryParameters['method'] = requestParameters['method'];
|
|
1000
|
+
}
|
|
1001
|
+
|
|
1002
|
+
if (requestParameters['element'] != null) {
|
|
1003
|
+
queryParameters['element'] = requestParameters['element'];
|
|
1004
|
+
}
|
|
1005
|
+
|
|
1006
|
+
if (requestParameters['errorsOnly'] != null) {
|
|
1007
|
+
queryParameters['errors_only'] = requestParameters['errorsOnly'];
|
|
1008
|
+
}
|
|
1009
|
+
|
|
1010
|
+
if (requestParameters['page'] != null) {
|
|
1011
|
+
queryParameters['page'] = requestParameters['page'];
|
|
1012
|
+
}
|
|
1013
|
+
|
|
1014
|
+
if (requestParameters['pageSize'] != null) {
|
|
1015
|
+
queryParameters['pageSize'] = requestParameters['pageSize'];
|
|
1016
|
+
}
|
|
1017
|
+
|
|
1018
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1019
|
+
|
|
1020
|
+
|
|
1021
|
+
let urlPath = `/resource/sessions/{sessionId}/api-logs`;
|
|
1022
|
+
urlPath = urlPath.replace('{sessionId}', encodeURIComponent(String(requestParameters['sessionId'])));
|
|
1023
|
+
|
|
1024
|
+
return {
|
|
1025
|
+
path: urlPath,
|
|
1026
|
+
method: 'GET',
|
|
1027
|
+
headers: headerParameters,
|
|
1028
|
+
query: queryParameters,
|
|
1029
|
+
};
|
|
1030
|
+
}
|
|
1031
|
+
|
|
1032
|
+
/**
|
|
1033
|
+
* Get SCORM runtime logs for a resource session
|
|
1034
|
+
*/
|
|
1035
|
+
async getResourceSessionScormApiLogsRaw(requestParameters: GetResourceSessionScormApiLogsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetResourceSessionScormApiLogs>> {
|
|
1036
|
+
const requestOptions = await this.getResourceSessionScormApiLogsRequestOpts(requestParameters);
|
|
1037
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1038
|
+
|
|
1039
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetResourceSessionScormApiLogsFromJSON(jsonValue));
|
|
1040
|
+
}
|
|
1041
|
+
|
|
1042
|
+
/**
|
|
1043
|
+
* Get SCORM runtime logs for a resource session
|
|
1044
|
+
*/
|
|
1045
|
+
async getResourceSessionScormApiLogs(requestParameters: GetResourceSessionScormApiLogsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetResourceSessionScormApiLogs> {
|
|
1046
|
+
const response = await this.getResourceSessionScormApiLogsRaw(requestParameters, initOverrides);
|
|
1047
|
+
return await response.value();
|
|
1048
|
+
}
|
|
1049
|
+
|
|
1050
|
+
/**
|
|
1051
|
+
* Creates request options for getResourceSessionScormData without sending the request
|
|
1052
|
+
*/
|
|
1053
|
+
async getResourceSessionScormDataRequestOpts(requestParameters: GetResourceSessionScormDataRequest): Promise<runtime.RequestOpts> {
|
|
1054
|
+
if (requestParameters['sessionId'] == null) {
|
|
1055
|
+
throw new runtime.RequiredError(
|
|
1056
|
+
'sessionId',
|
|
1057
|
+
'Required parameter "sessionId" was null or undefined when calling getResourceSessionScormData().'
|
|
1058
|
+
);
|
|
1059
|
+
}
|
|
1060
|
+
|
|
1061
|
+
const queryParameters: any = {};
|
|
1062
|
+
|
|
1063
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1064
|
+
|
|
1065
|
+
|
|
1066
|
+
let urlPath = `/resource/sessions/{sessionId}/scorm-data`;
|
|
1067
|
+
urlPath = urlPath.replace('{sessionId}', encodeURIComponent(String(requestParameters['sessionId'])));
|
|
1068
|
+
|
|
1069
|
+
return {
|
|
1070
|
+
path: urlPath,
|
|
1071
|
+
method: 'GET',
|
|
1072
|
+
headers: headerParameters,
|
|
1073
|
+
query: queryParameters,
|
|
1074
|
+
};
|
|
1075
|
+
}
|
|
1076
|
+
|
|
1077
|
+
/**
|
|
1078
|
+
* Get SCORM CMI data for a resource session
|
|
1079
|
+
*/
|
|
1080
|
+
async getResourceSessionScormDataRaw(requestParameters: GetResourceSessionScormDataRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetResourceSessionScormData>> {
|
|
1081
|
+
const requestOptions = await this.getResourceSessionScormDataRequestOpts(requestParameters);
|
|
1082
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1083
|
+
|
|
1084
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetResourceSessionScormDataFromJSON(jsonValue));
|
|
1085
|
+
}
|
|
1086
|
+
|
|
1087
|
+
/**
|
|
1088
|
+
* Get SCORM CMI data for a resource session
|
|
1089
|
+
*/
|
|
1090
|
+
async getResourceSessionScormData(requestParameters: GetResourceSessionScormDataRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetResourceSessionScormData> {
|
|
1091
|
+
const response = await this.getResourceSessionScormDataRaw(requestParameters, initOverrides);
|
|
1092
|
+
return await response.value();
|
|
1093
|
+
}
|
|
1094
|
+
|
|
848
1095
|
/**
|
|
849
1096
|
* Creates request options for getScormAsset without sending the request
|
|
850
1097
|
*/
|
|
@@ -1218,3 +1465,53 @@ export class PlayerApi extends runtime.BaseAPI {
|
|
|
1218
1465
|
}
|
|
1219
1466
|
|
|
1220
1467
|
}
|
|
1468
|
+
|
|
1469
|
+
/**
|
|
1470
|
+
* @export
|
|
1471
|
+
*/
|
|
1472
|
+
export const GetResourceSessionListCompletionStatusEnum = {
|
|
1473
|
+
NotAttempted: 'not_attempted',
|
|
1474
|
+
InProgress: 'in_progress',
|
|
1475
|
+
Completed: 'completed'
|
|
1476
|
+
} as const;
|
|
1477
|
+
export type GetResourceSessionListCompletionStatusEnum = typeof GetResourceSessionListCompletionStatusEnum[keyof typeof GetResourceSessionListCompletionStatusEnum];
|
|
1478
|
+
/**
|
|
1479
|
+
* @export
|
|
1480
|
+
*/
|
|
1481
|
+
export const GetResourceSessionListGradeStatusEnum = {
|
|
1482
|
+
Ungraded: 'ungraded',
|
|
1483
|
+
Passed: 'passed',
|
|
1484
|
+
Failed: 'failed',
|
|
1485
|
+
PointsEarned: 'points_earned',
|
|
1486
|
+
PercentageEarned: 'percentage_earned',
|
|
1487
|
+
NotApplicable: 'not_applicable'
|
|
1488
|
+
} as const;
|
|
1489
|
+
export type GetResourceSessionListGradeStatusEnum = typeof GetResourceSessionListGradeStatusEnum[keyof typeof GetResourceSessionListGradeStatusEnum];
|
|
1490
|
+
/**
|
|
1491
|
+
* @export
|
|
1492
|
+
*/
|
|
1493
|
+
export const GetResourceSessionListSortByEnum = {
|
|
1494
|
+
CreatedAt: 'created_at',
|
|
1495
|
+
UpdatedAt: 'updated_at',
|
|
1496
|
+
AttemptNumber: 'attempt_number'
|
|
1497
|
+
} as const;
|
|
1498
|
+
export type GetResourceSessionListSortByEnum = typeof GetResourceSessionListSortByEnum[keyof typeof GetResourceSessionListSortByEnum];
|
|
1499
|
+
/**
|
|
1500
|
+
* @export
|
|
1501
|
+
*/
|
|
1502
|
+
export const GetResourceSessionListSortDirectionEnum = {
|
|
1503
|
+
Asc: 'asc',
|
|
1504
|
+
Desc: 'desc'
|
|
1505
|
+
} as const;
|
|
1506
|
+
export type GetResourceSessionListSortDirectionEnum = typeof GetResourceSessionListSortDirectionEnum[keyof typeof GetResourceSessionListSortDirectionEnum];
|
|
1507
|
+
/**
|
|
1508
|
+
* @export
|
|
1509
|
+
*/
|
|
1510
|
+
export const GetResourceSessionScormApiLogsMethodEnum = {
|
|
1511
|
+
Initialize: 'Initialize',
|
|
1512
|
+
GetValue: 'GetValue',
|
|
1513
|
+
SetValue: 'SetValue',
|
|
1514
|
+
Commit: 'Commit',
|
|
1515
|
+
Terminate: 'Terminate'
|
|
1516
|
+
} as const;
|
|
1517
|
+
export type GetResourceSessionScormApiLogsMethodEnum = typeof GetResourceSessionScormApiLogsMethodEnum[keyof typeof GetResourceSessionScormApiLogsMethodEnum];
|
|
@@ -53,6 +53,12 @@ export interface GetResourceSession {
|
|
|
53
53
|
* @memberof GetResourceSession
|
|
54
54
|
*/
|
|
55
55
|
userId: string;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof GetResourceSession
|
|
60
|
+
*/
|
|
61
|
+
userName: string;
|
|
56
62
|
/**
|
|
57
63
|
*
|
|
58
64
|
* @type {ResourceSessionEnvironment}
|
|
@@ -65,12 +71,24 @@ export interface GetResourceSession {
|
|
|
65
71
|
* @memberof GetResourceSession
|
|
66
72
|
*/
|
|
67
73
|
courseId?: string | null;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @type {string}
|
|
77
|
+
* @memberof GetResourceSession
|
|
78
|
+
*/
|
|
79
|
+
courseName?: string | null;
|
|
68
80
|
/**
|
|
69
81
|
*
|
|
70
82
|
* @type {string}
|
|
71
83
|
* @memberof GetResourceSession
|
|
72
84
|
*/
|
|
73
85
|
courseVersionId?: string | null;
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
* @type {number}
|
|
89
|
+
* @memberof GetResourceSession
|
|
90
|
+
*/
|
|
91
|
+
courseVersionNumber?: number | null;
|
|
74
92
|
/**
|
|
75
93
|
*
|
|
76
94
|
* @type {string}
|
|
@@ -89,6 +107,18 @@ export interface GetResourceSession {
|
|
|
89
107
|
* @memberof GetResourceSession
|
|
90
108
|
*/
|
|
91
109
|
contentLibraryVersionId: string;
|
|
110
|
+
/**
|
|
111
|
+
*
|
|
112
|
+
* @type {number}
|
|
113
|
+
* @memberof GetResourceSession
|
|
114
|
+
*/
|
|
115
|
+
contentLibraryVersionNumber: number;
|
|
116
|
+
/**
|
|
117
|
+
*
|
|
118
|
+
* @type {string}
|
|
119
|
+
* @memberof GetResourceSession
|
|
120
|
+
*/
|
|
121
|
+
contentLibraryVersionStatus: string;
|
|
92
122
|
/**
|
|
93
123
|
*
|
|
94
124
|
* @type {string}
|
|
@@ -183,9 +213,12 @@ export interface GetResourceSession {
|
|
|
183
213
|
export function instanceOfGetResourceSession(value: object): value is GetResourceSession {
|
|
184
214
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
185
215
|
if (!('userId' in value) || value['userId'] === undefined) return false;
|
|
216
|
+
if (!('userName' in value) || value['userName'] === undefined) return false;
|
|
186
217
|
if (!('environment' in value) || value['environment'] === undefined) return false;
|
|
187
218
|
if (!('contentLibraryItemId' in value) || value['contentLibraryItemId'] === undefined) return false;
|
|
188
219
|
if (!('contentLibraryVersionId' in value) || value['contentLibraryVersionId'] === undefined) return false;
|
|
220
|
+
if (!('contentLibraryVersionNumber' in value) || value['contentLibraryVersionNumber'] === undefined) return false;
|
|
221
|
+
if (!('contentLibraryVersionStatus' in value) || value['contentLibraryVersionStatus'] === undefined) return false;
|
|
189
222
|
if (!('resourceName' in value) || value['resourceName'] === undefined) return false;
|
|
190
223
|
if (!('resourceType' in value) || value['resourceType'] === undefined) return false;
|
|
191
224
|
if (!('attemptNumber' in value) || value['attemptNumber'] === undefined) return false;
|
|
@@ -209,12 +242,17 @@ export function GetResourceSessionFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
209
242
|
|
|
210
243
|
'id': json['id'],
|
|
211
244
|
'userId': json['user_id'],
|
|
245
|
+
'userName': json['user_name'],
|
|
212
246
|
'environment': ResourceSessionEnvironmentFromJSON(json['environment']),
|
|
213
247
|
'courseId': json['course_id'] == null ? undefined : json['course_id'],
|
|
248
|
+
'courseName': json['course_name'] == null ? undefined : json['course_name'],
|
|
214
249
|
'courseVersionId': json['course_version_id'] == null ? undefined : json['course_version_id'],
|
|
250
|
+
'courseVersionNumber': json['course_version_number'] == null ? undefined : json['course_version_number'],
|
|
215
251
|
'itemId': json['item_id'] == null ? undefined : json['item_id'],
|
|
216
252
|
'contentLibraryItemId': json['content_library_item_id'],
|
|
217
253
|
'contentLibraryVersionId': json['content_library_version_id'],
|
|
254
|
+
'contentLibraryVersionNumber': json['content_library_version_number'],
|
|
255
|
+
'contentLibraryVersionStatus': json['content_library_version_status'],
|
|
218
256
|
'resourceName': json['resource_name'],
|
|
219
257
|
'resourceType': ResourceTypeFromJSON(json['resource_type']),
|
|
220
258
|
'launchMode': json['launch_mode'] == null ? undefined : ContentLaunchModeFromJSON(json['launch_mode']),
|
|
@@ -245,12 +283,17 @@ export function GetResourceSessionToJSONTyped(value?: GetResourceSession | null,
|
|
|
245
283
|
|
|
246
284
|
'id': value['id'],
|
|
247
285
|
'user_id': value['userId'],
|
|
286
|
+
'user_name': value['userName'],
|
|
248
287
|
'environment': ResourceSessionEnvironmentToJSON(value['environment']),
|
|
249
288
|
'course_id': value['courseId'],
|
|
289
|
+
'course_name': value['courseName'],
|
|
250
290
|
'course_version_id': value['courseVersionId'],
|
|
291
|
+
'course_version_number': value['courseVersionNumber'],
|
|
251
292
|
'item_id': value['itemId'],
|
|
252
293
|
'content_library_item_id': value['contentLibraryItemId'],
|
|
253
294
|
'content_library_version_id': value['contentLibraryVersionId'],
|
|
295
|
+
'content_library_version_number': value['contentLibraryVersionNumber'],
|
|
296
|
+
'content_library_version_status': value['contentLibraryVersionStatus'],
|
|
254
297
|
'resource_name': value['resourceName'],
|
|
255
298
|
'resource_type': ResourceTypeToJSON(value['resourceType']),
|
|
256
299
|
'launch_mode': ContentLaunchModeToJSON(value['launchMode']),
|
|
@@ -0,0 +1,161 @@
|
|
|
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 { GetResourceSessionDiagnosticsResource } from './GetResourceSessionDiagnosticsResource';
|
|
17
|
+
import {
|
|
18
|
+
GetResourceSessionDiagnosticsResourceFromJSON,
|
|
19
|
+
GetResourceSessionDiagnosticsResourceFromJSONTyped,
|
|
20
|
+
GetResourceSessionDiagnosticsResourceToJSON,
|
|
21
|
+
GetResourceSessionDiagnosticsResourceToJSONTyped,
|
|
22
|
+
} from './GetResourceSessionDiagnosticsResource';
|
|
23
|
+
import type { GetResourceSessionDiagnosticsScormSummary } from './GetResourceSessionDiagnosticsScormSummary';
|
|
24
|
+
import {
|
|
25
|
+
GetResourceSessionDiagnosticsScormSummaryFromJSON,
|
|
26
|
+
GetResourceSessionDiagnosticsScormSummaryFromJSONTyped,
|
|
27
|
+
GetResourceSessionDiagnosticsScormSummaryToJSON,
|
|
28
|
+
GetResourceSessionDiagnosticsScormSummaryToJSONTyped,
|
|
29
|
+
} from './GetResourceSessionDiagnosticsScormSummary';
|
|
30
|
+
import type { GetResourceSessionDiagnosticsUser } from './GetResourceSessionDiagnosticsUser';
|
|
31
|
+
import {
|
|
32
|
+
GetResourceSessionDiagnosticsUserFromJSON,
|
|
33
|
+
GetResourceSessionDiagnosticsUserFromJSONTyped,
|
|
34
|
+
GetResourceSessionDiagnosticsUserToJSON,
|
|
35
|
+
GetResourceSessionDiagnosticsUserToJSONTyped,
|
|
36
|
+
} from './GetResourceSessionDiagnosticsUser';
|
|
37
|
+
import type { GetResourceSession } from './GetResourceSession';
|
|
38
|
+
import {
|
|
39
|
+
GetResourceSessionFromJSON,
|
|
40
|
+
GetResourceSessionFromJSONTyped,
|
|
41
|
+
GetResourceSessionToJSON,
|
|
42
|
+
GetResourceSessionToJSONTyped,
|
|
43
|
+
} from './GetResourceSession';
|
|
44
|
+
import type { GetResourceSessionDiagnosticsCourseContext } from './GetResourceSessionDiagnosticsCourseContext';
|
|
45
|
+
import {
|
|
46
|
+
GetResourceSessionDiagnosticsCourseContextFromJSON,
|
|
47
|
+
GetResourceSessionDiagnosticsCourseContextFromJSONTyped,
|
|
48
|
+
GetResourceSessionDiagnosticsCourseContextToJSON,
|
|
49
|
+
GetResourceSessionDiagnosticsCourseContextToJSONTyped,
|
|
50
|
+
} from './GetResourceSessionDiagnosticsCourseContext';
|
|
51
|
+
import type { GetResourceSessionDiagnosticsVersion } from './GetResourceSessionDiagnosticsVersion';
|
|
52
|
+
import {
|
|
53
|
+
GetResourceSessionDiagnosticsVersionFromJSON,
|
|
54
|
+
GetResourceSessionDiagnosticsVersionFromJSONTyped,
|
|
55
|
+
GetResourceSessionDiagnosticsVersionToJSON,
|
|
56
|
+
GetResourceSessionDiagnosticsVersionToJSONTyped,
|
|
57
|
+
} from './GetResourceSessionDiagnosticsVersion';
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Administrator diagnostics for a resource session and its exact resource-version pin.
|
|
61
|
+
* @export
|
|
62
|
+
* @interface GetResourceSessionDiagnostics
|
|
63
|
+
*/
|
|
64
|
+
export interface GetResourceSessionDiagnostics {
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {GetResourceSession}
|
|
68
|
+
* @memberof GetResourceSessionDiagnostics
|
|
69
|
+
*/
|
|
70
|
+
session: GetResourceSession;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @type {{ [key: string]: any; }}
|
|
74
|
+
* @memberof GetResourceSessionDiagnostics
|
|
75
|
+
*/
|
|
76
|
+
sessionData: { [key: string]: any; };
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
* @type {GetResourceSessionDiagnosticsUser}
|
|
80
|
+
* @memberof GetResourceSessionDiagnostics
|
|
81
|
+
*/
|
|
82
|
+
user: GetResourceSessionDiagnosticsUser;
|
|
83
|
+
/**
|
|
84
|
+
*
|
|
85
|
+
* @type {GetResourceSessionDiagnosticsResource}
|
|
86
|
+
* @memberof GetResourceSessionDiagnostics
|
|
87
|
+
*/
|
|
88
|
+
resource: GetResourceSessionDiagnosticsResource;
|
|
89
|
+
/**
|
|
90
|
+
*
|
|
91
|
+
* @type {GetResourceSessionDiagnosticsVersion}
|
|
92
|
+
* @memberof GetResourceSessionDiagnostics
|
|
93
|
+
*/
|
|
94
|
+
version: GetResourceSessionDiagnosticsVersion;
|
|
95
|
+
/**
|
|
96
|
+
*
|
|
97
|
+
* @type {GetResourceSessionDiagnosticsCourseContext}
|
|
98
|
+
* @memberof GetResourceSessionDiagnostics
|
|
99
|
+
*/
|
|
100
|
+
courseContext?: GetResourceSessionDiagnosticsCourseContext | null;
|
|
101
|
+
/**
|
|
102
|
+
*
|
|
103
|
+
* @type {GetResourceSessionDiagnosticsScormSummary}
|
|
104
|
+
* @memberof GetResourceSessionDiagnostics
|
|
105
|
+
*/
|
|
106
|
+
scormSummary?: GetResourceSessionDiagnosticsScormSummary | null;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Check if a given object implements the GetResourceSessionDiagnostics interface.
|
|
111
|
+
*/
|
|
112
|
+
export function instanceOfGetResourceSessionDiagnostics(value: object): value is GetResourceSessionDiagnostics {
|
|
113
|
+
if (!('session' in value) || value['session'] === undefined) return false;
|
|
114
|
+
if (!('sessionData' in value) || value['sessionData'] === undefined) return false;
|
|
115
|
+
if (!('user' in value) || value['user'] === undefined) return false;
|
|
116
|
+
if (!('resource' in value) || value['resource'] === undefined) return false;
|
|
117
|
+
if (!('version' in value) || value['version'] === undefined) return false;
|
|
118
|
+
return true;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export function GetResourceSessionDiagnosticsFromJSON(json: any): GetResourceSessionDiagnostics {
|
|
122
|
+
return GetResourceSessionDiagnosticsFromJSONTyped(json, false);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export function GetResourceSessionDiagnosticsFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetResourceSessionDiagnostics {
|
|
126
|
+
if (json == null) {
|
|
127
|
+
return json;
|
|
128
|
+
}
|
|
129
|
+
return {
|
|
130
|
+
|
|
131
|
+
'session': GetResourceSessionFromJSON(json['session']),
|
|
132
|
+
'sessionData': json['session_data'],
|
|
133
|
+
'user': GetResourceSessionDiagnosticsUserFromJSON(json['user']),
|
|
134
|
+
'resource': GetResourceSessionDiagnosticsResourceFromJSON(json['resource']),
|
|
135
|
+
'version': GetResourceSessionDiagnosticsVersionFromJSON(json['version']),
|
|
136
|
+
'courseContext': json['course_context'] == null ? undefined : GetResourceSessionDiagnosticsCourseContextFromJSON(json['course_context']),
|
|
137
|
+
'scormSummary': json['scorm_summary'] == null ? undefined : GetResourceSessionDiagnosticsScormSummaryFromJSON(json['scorm_summary']),
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
export function GetResourceSessionDiagnosticsToJSON(json: any): GetResourceSessionDiagnostics {
|
|
142
|
+
return GetResourceSessionDiagnosticsToJSONTyped(json, false);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export function GetResourceSessionDiagnosticsToJSONTyped(value?: GetResourceSessionDiagnostics | null, ignoreDiscriminator: boolean = false): any {
|
|
146
|
+
if (value == null) {
|
|
147
|
+
return value;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
return {
|
|
151
|
+
|
|
152
|
+
'session': GetResourceSessionToJSON(value['session']),
|
|
153
|
+
'session_data': value['sessionData'],
|
|
154
|
+
'user': GetResourceSessionDiagnosticsUserToJSON(value['user']),
|
|
155
|
+
'resource': GetResourceSessionDiagnosticsResourceToJSON(value['resource']),
|
|
156
|
+
'version': GetResourceSessionDiagnosticsVersionToJSON(value['version']),
|
|
157
|
+
'course_context': GetResourceSessionDiagnosticsCourseContextToJSON(value['courseContext']),
|
|
158
|
+
'scorm_summary': GetResourceSessionDiagnosticsScormSummaryToJSON(value['scormSummary']),
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
|