@easyedu/js-lsm-api 1.90.0 → 1.92.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 +70 -0
- package/README.md +65 -2
- package/dist/apis/ContentLibraryQuizApi.d.ts +451 -0
- package/dist/apis/ContentLibraryQuizApi.js +1162 -0
- package/dist/apis/PlayerApi.d.ts +130 -1
- package/dist/apis/PlayerApi.js +257 -1
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/ContentLibraryQuizApi.d.ts +451 -0
- package/dist/esm/apis/ContentLibraryQuizApi.js +1158 -0
- package/dist/esm/apis/PlayerApi.d.ts +130 -1
- package/dist/esm/apis/PlayerApi.js +256 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/GetCourseVersionItem.d.ts +14 -0
- package/dist/esm/models/GetCourseVersionItem.js +9 -0
- package/dist/esm/models/GetLibraryQuiz.d.ts +124 -0
- package/dist/esm/models/GetLibraryQuiz.js +100 -0
- package/dist/esm/models/GetLibraryQuizAnalytics.d.ts +68 -0
- package/dist/esm/models/GetLibraryQuizAnalytics.js +67 -0
- package/dist/esm/models/GetLibraryQuizList.d.ts +57 -0
- package/dist/esm/models/GetLibraryQuizList.js +60 -0
- package/dist/esm/models/GetLibraryQuizResult.d.ts +94 -0
- package/dist/esm/models/GetLibraryQuizResult.js +79 -0
- package/dist/esm/models/GetLibraryQuizSession.d.ts +177 -0
- package/dist/esm/models/GetLibraryQuizSession.js +129 -0
- package/dist/esm/models/GetLibraryQuizSessionList.d.ts +57 -0
- package/dist/esm/models/GetLibraryQuizSessionList.js +60 -0
- package/dist/esm/models/GetLibraryQuizUsage.d.ts +56 -0
- package/dist/esm/models/GetLibraryQuizUsage.js +59 -0
- package/dist/esm/models/GetLibraryQuizVersion.d.ts +170 -0
- package/dist/esm/models/GetLibraryQuizVersion.js +125 -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/LibraryQuizCriterion.d.ts +95 -0
- package/dist/esm/models/LibraryQuizCriterion.js +76 -0
- package/dist/esm/models/LibraryQuizQuestion.d.ts +70 -0
- package/dist/esm/models/LibraryQuizQuestion.js +63 -0
- package/dist/esm/models/LibraryQuizQuestionInput.d.ts +50 -0
- package/dist/esm/models/LibraryQuizQuestionInput.js +51 -0
- package/dist/esm/models/LibraryQuizSessionAnswerChoice.d.ts +51 -0
- package/dist/esm/models/LibraryQuizSessionAnswerChoice.js +54 -0
- package/dist/esm/models/LibraryQuizSessionQuestion.d.ts +96 -0
- package/dist/esm/models/LibraryQuizSessionQuestion.js +84 -0
- package/dist/esm/models/PostCourseLibraryQuizSession.d.ts +32 -0
- package/dist/esm/models/PostCourseLibraryQuizSession.js +41 -0
- package/dist/esm/models/PostLibraryQuiz.d.ts +107 -0
- package/dist/esm/models/PostLibraryQuiz.js +70 -0
- package/dist/esm/models/PostLibraryQuizSession.d.ts +32 -0
- package/dist/esm/models/PostLibraryQuizSession.js +41 -0
- package/dist/esm/models/PostLibraryQuizVersion.d.ts +32 -0
- package/dist/esm/models/PostLibraryQuizVersion.js +41 -0
- package/dist/esm/models/PutLibraryQuiz.d.ts +38 -0
- package/dist/esm/models/PutLibraryQuiz.js +43 -0
- package/dist/esm/models/PutLibraryQuizCriteria.d.ts +33 -0
- package/dist/esm/models/PutLibraryQuizCriteria.js +44 -0
- package/dist/esm/models/PutLibraryQuizQuestions.d.ts +33 -0
- package/dist/esm/models/PutLibraryQuizQuestions.js +44 -0
- package/dist/esm/models/PutLibraryQuizSessionAnswer.d.ts +40 -0
- package/dist/esm/models/PutLibraryQuizSessionAnswer.js +45 -0
- package/dist/esm/models/PutLibraryQuizSessionGrade.d.ts +38 -0
- package/dist/esm/models/PutLibraryQuizSessionGrade.js +45 -0
- package/dist/esm/models/PutLibraryQuizVersion.d.ts +101 -0
- package/dist/esm/models/PutLibraryQuizVersion.js +64 -0
- package/dist/esm/models/QuestionSelectionMethod.d.ts +25 -0
- package/dist/esm/models/QuestionSelectionMethod.js +43 -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 +34 -0
- package/dist/esm/models/index.js +34 -0
- package/dist/models/GetCourseVersionItem.d.ts +14 -0
- package/dist/models/GetCourseVersionItem.js +10 -1
- package/dist/models/GetLibraryQuiz.d.ts +124 -0
- package/dist/models/GetLibraryQuiz.js +108 -0
- package/dist/models/GetLibraryQuizAnalytics.d.ts +68 -0
- package/dist/models/GetLibraryQuizAnalytics.js +74 -0
- package/dist/models/GetLibraryQuizList.d.ts +57 -0
- package/dist/models/GetLibraryQuizList.js +67 -0
- package/dist/models/GetLibraryQuizResult.d.ts +94 -0
- package/dist/models/GetLibraryQuizResult.js +86 -0
- package/dist/models/GetLibraryQuizSession.d.ts +177 -0
- package/dist/models/GetLibraryQuizSession.js +137 -0
- package/dist/models/GetLibraryQuizSessionList.d.ts +57 -0
- package/dist/models/GetLibraryQuizSessionList.js +67 -0
- package/dist/models/GetLibraryQuizUsage.d.ts +56 -0
- package/dist/models/GetLibraryQuizUsage.js +66 -0
- package/dist/models/GetLibraryQuizVersion.d.ts +170 -0
- package/dist/models/GetLibraryQuizVersion.js +132 -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/LibraryQuizCriterion.d.ts +95 -0
- package/dist/models/LibraryQuizCriterion.js +84 -0
- package/dist/models/LibraryQuizQuestion.d.ts +70 -0
- package/dist/models/LibraryQuizQuestion.js +70 -0
- package/dist/models/LibraryQuizQuestionInput.d.ts +50 -0
- package/dist/models/LibraryQuizQuestionInput.js +58 -0
- package/dist/models/LibraryQuizSessionAnswerChoice.d.ts +51 -0
- package/dist/models/LibraryQuizSessionAnswerChoice.js +61 -0
- package/dist/models/LibraryQuizSessionQuestion.d.ts +96 -0
- package/dist/models/LibraryQuizSessionQuestion.js +92 -0
- package/dist/models/PostCourseLibraryQuizSession.d.ts +32 -0
- package/dist/models/PostCourseLibraryQuizSession.js +48 -0
- package/dist/models/PostLibraryQuiz.d.ts +107 -0
- package/dist/models/PostLibraryQuiz.js +77 -0
- package/dist/models/PostLibraryQuizSession.d.ts +32 -0
- package/dist/models/PostLibraryQuizSession.js +48 -0
- package/dist/models/PostLibraryQuizVersion.d.ts +32 -0
- package/dist/models/PostLibraryQuizVersion.js +48 -0
- package/dist/models/PutLibraryQuiz.d.ts +38 -0
- package/dist/models/PutLibraryQuiz.js +50 -0
- package/dist/models/PutLibraryQuizCriteria.d.ts +33 -0
- package/dist/models/PutLibraryQuizCriteria.js +51 -0
- package/dist/models/PutLibraryQuizQuestions.d.ts +33 -0
- package/dist/models/PutLibraryQuizQuestions.js +51 -0
- package/dist/models/PutLibraryQuizSessionAnswer.d.ts +40 -0
- package/dist/models/PutLibraryQuizSessionAnswer.js +52 -0
- package/dist/models/PutLibraryQuizSessionGrade.d.ts +38 -0
- package/dist/models/PutLibraryQuizSessionGrade.js +52 -0
- package/dist/models/PutLibraryQuizVersion.d.ts +101 -0
- package/dist/models/PutLibraryQuizVersion.js +71 -0
- package/dist/models/QuestionSelectionMethod.d.ts +25 -0
- package/dist/models/QuestionSelectionMethod.js +51 -0
- package/dist/models/ResourceSessionScormApiLogItem.d.ts +79 -0
- package/dist/models/ResourceSessionScormApiLogItem.js +81 -0
- package/dist/models/index.d.ts +34 -0
- package/dist/models/index.js +34 -0
- package/docs/ContentLibraryQuizApi.md +1780 -0
- package/docs/GetCourseVersionItem.md +2 -0
- package/docs/GetLibraryQuiz.md +62 -0
- package/docs/GetLibraryQuizAnalytics.md +46 -0
- package/docs/GetLibraryQuizList.md +42 -0
- package/docs/GetLibraryQuizResult.md +54 -0
- package/docs/GetLibraryQuizSession.md +78 -0
- package/docs/GetLibraryQuizSessionList.md +42 -0
- package/docs/GetLibraryQuizUsage.md +42 -0
- package/docs/GetLibraryQuizVersion.md +78 -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/LibraryQuizCriterion.md +48 -0
- package/docs/LibraryQuizQuestion.md +46 -0
- package/docs/LibraryQuizQuestionInput.md +40 -0
- package/docs/LibraryQuizSessionAnswerChoice.md +40 -0
- package/docs/LibraryQuizSessionQuestion.md +50 -0
- package/docs/PlayerApi.md +320 -3
- package/docs/PostCourseLibraryQuizSession.md +34 -0
- package/docs/PostLibraryQuiz.md +58 -0
- package/docs/PostLibraryQuizSession.md +34 -0
- package/docs/PostLibraryQuizVersion.md +34 -0
- package/docs/PutLibraryQuiz.md +36 -0
- package/docs/PutLibraryQuizCriteria.md +34 -0
- package/docs/PutLibraryQuizQuestions.md +34 -0
- package/docs/PutLibraryQuizSessionAnswer.md +36 -0
- package/docs/PutLibraryQuizSessionGrade.md +36 -0
- package/docs/PutLibraryQuizVersion.md +56 -0
- package/docs/QuestionSelectionMethod.md +32 -0
- package/docs/ResourceSessionScormApiLogItem.md +47 -0
- package/package.json +1 -1
- package/src/apis/ContentLibraryQuizApi.ts +1624 -0
- package/src/apis/PlayerApi.ts +351 -1
- package/src/apis/index.ts +1 -0
- package/src/models/GetCourseVersionItem.ts +17 -0
- package/src/models/GetLibraryQuiz.ts +207 -0
- package/src/models/GetLibraryQuizAnalytics.ts +120 -0
- package/src/models/GetLibraryQuizList.ts +110 -0
- package/src/models/GetLibraryQuizResult.ts +154 -0
- package/src/models/GetLibraryQuizSession.ts +286 -0
- package/src/models/GetLibraryQuizSessionList.ts +110 -0
- package/src/models/GetLibraryQuizUsage.ts +102 -0
- package/src/models/GetLibraryQuizVersion.ts +290 -0
- 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/LibraryQuizCriterion.ts +147 -0
- package/src/models/LibraryQuizQuestion.ts +118 -0
- package/src/models/LibraryQuizQuestionInput.ts +91 -0
- package/src/models/LibraryQuizSessionAnswerChoice.ts +100 -0
- package/src/models/LibraryQuizSessionQuestion.ts +166 -0
- package/src/models/PostCourseLibraryQuizSession.ts +65 -0
- package/src/models/PostLibraryQuiz.ts +173 -0
- package/src/models/PostLibraryQuizSession.ts +65 -0
- package/src/models/PostLibraryQuizVersion.ts +65 -0
- package/src/models/PutLibraryQuiz.ts +73 -0
- package/src/models/PutLibraryQuizCriteria.ts +74 -0
- package/src/models/PutLibraryQuizQuestions.ts +74 -0
- package/src/models/PutLibraryQuizSessionAnswer.ts +74 -0
- package/src/models/PutLibraryQuizSessionGrade.ts +74 -0
- package/src/models/PutLibraryQuizVersion.ts +163 -0
- package/src/models/QuestionSelectionMethod.ts +53 -0
- package/src/models/ResourceSessionScormApiLogItem.ts +132 -0
- package/src/models/index.ts +34 -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,
|
|
@@ -70,6 +90,10 @@ export interface GetImagePlayerRequest {
|
|
|
70
90
|
sessionId: string;
|
|
71
91
|
}
|
|
72
92
|
|
|
93
|
+
export interface GetLibraryQuizSessionPlayerRequest {
|
|
94
|
+
sessionId: string;
|
|
95
|
+
}
|
|
96
|
+
|
|
73
97
|
export interface GetPdfAssetRequest {
|
|
74
98
|
contentId: string;
|
|
75
99
|
}
|
|
@@ -96,15 +120,30 @@ export interface GetResourceSessionAssetRequest {
|
|
|
96
120
|
assetPath: string;
|
|
97
121
|
}
|
|
98
122
|
|
|
123
|
+
export interface GetResourceSessionDiagnosticsRequest {
|
|
124
|
+
sessionId: string;
|
|
125
|
+
}
|
|
126
|
+
|
|
99
127
|
export interface GetResourceSessionListRequest {
|
|
100
128
|
userId?: string;
|
|
101
129
|
resourceId?: string;
|
|
102
130
|
versionId?: string;
|
|
103
131
|
courseId?: string;
|
|
132
|
+
courseVersionId?: string;
|
|
133
|
+
itemId?: string;
|
|
134
|
+
resourceType?: ResourceType;
|
|
104
135
|
environment?: ResourceSessionEnvironment;
|
|
105
|
-
completionStatus?:
|
|
136
|
+
completionStatus?: GetResourceSessionListCompletionStatusEnum;
|
|
137
|
+
gradeStatus?: GetResourceSessionListGradeStatusEnum;
|
|
138
|
+
isCurrent?: boolean;
|
|
139
|
+
attemptNumber?: number;
|
|
106
140
|
createdFrom?: number;
|
|
107
141
|
createdTo?: number;
|
|
142
|
+
updatedFrom?: number;
|
|
143
|
+
updatedTo?: number;
|
|
144
|
+
hasScormErrors?: boolean;
|
|
145
|
+
sortBy?: GetResourceSessionListSortByEnum;
|
|
146
|
+
sortDirection?: GetResourceSessionListSortDirectionEnum;
|
|
108
147
|
page?: number;
|
|
109
148
|
pageSize?: number;
|
|
110
149
|
}
|
|
@@ -113,6 +152,19 @@ export interface GetResourceSessionPlayerRequest {
|
|
|
113
152
|
sessionId: string;
|
|
114
153
|
}
|
|
115
154
|
|
|
155
|
+
export interface GetResourceSessionScormApiLogsRequest {
|
|
156
|
+
sessionId: string;
|
|
157
|
+
method?: GetResourceSessionScormApiLogsMethodEnum;
|
|
158
|
+
element?: string;
|
|
159
|
+
errorsOnly?: boolean;
|
|
160
|
+
page?: number;
|
|
161
|
+
pageSize?: number;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
export interface GetResourceSessionScormDataRequest {
|
|
165
|
+
sessionId: string;
|
|
166
|
+
}
|
|
167
|
+
|
|
116
168
|
export interface GetScormAssetRequest {
|
|
117
169
|
contentId: string;
|
|
118
170
|
assetPath: string;
|
|
@@ -433,6 +485,55 @@ export class PlayerApi extends runtime.BaseAPI {
|
|
|
433
485
|
await this.getImagePlayerRaw(requestParameters, initOverrides);
|
|
434
486
|
}
|
|
435
487
|
|
|
488
|
+
/**
|
|
489
|
+
* Creates request options for getLibraryQuizSessionPlayer without sending the request
|
|
490
|
+
*/
|
|
491
|
+
async getLibraryQuizSessionPlayerRequestOpts(requestParameters: GetLibraryQuizSessionPlayerRequest): Promise<runtime.RequestOpts> {
|
|
492
|
+
if (requestParameters['sessionId'] == null) {
|
|
493
|
+
throw new runtime.RequiredError(
|
|
494
|
+
'sessionId',
|
|
495
|
+
'Required parameter "sessionId" was null or undefined when calling getLibraryQuizSessionPlayer().'
|
|
496
|
+
);
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
const queryParameters: any = {};
|
|
500
|
+
|
|
501
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
502
|
+
|
|
503
|
+
|
|
504
|
+
let urlPath = `/quiz/sessions/{sessionId}/player`;
|
|
505
|
+
urlPath = urlPath.replace('{sessionId}', encodeURIComponent(String(requestParameters['sessionId'])));
|
|
506
|
+
|
|
507
|
+
return {
|
|
508
|
+
path: urlPath,
|
|
509
|
+
method: 'GET',
|
|
510
|
+
headers: headerParameters,
|
|
511
|
+
query: queryParameters,
|
|
512
|
+
};
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
/**
|
|
516
|
+
* Serve the player for a reusable quiz session
|
|
517
|
+
*/
|
|
518
|
+
async getLibraryQuizSessionPlayerRaw(requestParameters: GetLibraryQuizSessionPlayerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>> {
|
|
519
|
+
const requestOptions = await this.getLibraryQuizSessionPlayerRequestOpts(requestParameters);
|
|
520
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
521
|
+
|
|
522
|
+
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
523
|
+
return new runtime.JSONApiResponse<string>(response);
|
|
524
|
+
} else {
|
|
525
|
+
return new runtime.TextApiResponse(response) as any;
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
/**
|
|
530
|
+
* Serve the player for a reusable quiz session
|
|
531
|
+
*/
|
|
532
|
+
async getLibraryQuizSessionPlayer(requestParameters: GetLibraryQuizSessionPlayerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string> {
|
|
533
|
+
const response = await this.getLibraryQuizSessionPlayerRaw(requestParameters, initOverrides);
|
|
534
|
+
return await response.value();
|
|
535
|
+
}
|
|
536
|
+
|
|
436
537
|
/**
|
|
437
538
|
* Creates request options for getPdfAsset without sending the request
|
|
438
539
|
*/
|
|
@@ -719,6 +820,51 @@ export class PlayerApi extends runtime.BaseAPI {
|
|
|
719
820
|
return await response.value();
|
|
720
821
|
}
|
|
721
822
|
|
|
823
|
+
/**
|
|
824
|
+
* Creates request options for getResourceSessionDiagnostics without sending the request
|
|
825
|
+
*/
|
|
826
|
+
async getResourceSessionDiagnosticsRequestOpts(requestParameters: GetResourceSessionDiagnosticsRequest): Promise<runtime.RequestOpts> {
|
|
827
|
+
if (requestParameters['sessionId'] == null) {
|
|
828
|
+
throw new runtime.RequiredError(
|
|
829
|
+
'sessionId',
|
|
830
|
+
'Required parameter "sessionId" was null or undefined when calling getResourceSessionDiagnostics().'
|
|
831
|
+
);
|
|
832
|
+
}
|
|
833
|
+
|
|
834
|
+
const queryParameters: any = {};
|
|
835
|
+
|
|
836
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
837
|
+
|
|
838
|
+
|
|
839
|
+
let urlPath = `/resource/sessions/{sessionId}/diagnostics`;
|
|
840
|
+
urlPath = urlPath.replace('{sessionId}', encodeURIComponent(String(requestParameters['sessionId'])));
|
|
841
|
+
|
|
842
|
+
return {
|
|
843
|
+
path: urlPath,
|
|
844
|
+
method: 'GET',
|
|
845
|
+
headers: headerParameters,
|
|
846
|
+
query: queryParameters,
|
|
847
|
+
};
|
|
848
|
+
}
|
|
849
|
+
|
|
850
|
+
/**
|
|
851
|
+
* Get administrator diagnostics for a resource session
|
|
852
|
+
*/
|
|
853
|
+
async getResourceSessionDiagnosticsRaw(requestParameters: GetResourceSessionDiagnosticsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetResourceSessionDiagnostics>> {
|
|
854
|
+
const requestOptions = await this.getResourceSessionDiagnosticsRequestOpts(requestParameters);
|
|
855
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
856
|
+
|
|
857
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetResourceSessionDiagnosticsFromJSON(jsonValue));
|
|
858
|
+
}
|
|
859
|
+
|
|
860
|
+
/**
|
|
861
|
+
* Get administrator diagnostics for a resource session
|
|
862
|
+
*/
|
|
863
|
+
async getResourceSessionDiagnostics(requestParameters: GetResourceSessionDiagnosticsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetResourceSessionDiagnostics> {
|
|
864
|
+
const response = await this.getResourceSessionDiagnosticsRaw(requestParameters, initOverrides);
|
|
865
|
+
return await response.value();
|
|
866
|
+
}
|
|
867
|
+
|
|
722
868
|
/**
|
|
723
869
|
* Creates request options for getResourceSessionList without sending the request
|
|
724
870
|
*/
|
|
@@ -741,6 +887,18 @@ export class PlayerApi extends runtime.BaseAPI {
|
|
|
741
887
|
queryParameters['course_id'] = requestParameters['courseId'];
|
|
742
888
|
}
|
|
743
889
|
|
|
890
|
+
if (requestParameters['courseVersionId'] != null) {
|
|
891
|
+
queryParameters['course_version_id'] = requestParameters['courseVersionId'];
|
|
892
|
+
}
|
|
893
|
+
|
|
894
|
+
if (requestParameters['itemId'] != null) {
|
|
895
|
+
queryParameters['item_id'] = requestParameters['itemId'];
|
|
896
|
+
}
|
|
897
|
+
|
|
898
|
+
if (requestParameters['resourceType'] != null) {
|
|
899
|
+
queryParameters['resource_type'] = requestParameters['resourceType'];
|
|
900
|
+
}
|
|
901
|
+
|
|
744
902
|
if (requestParameters['environment'] != null) {
|
|
745
903
|
queryParameters['environment'] = requestParameters['environment'];
|
|
746
904
|
}
|
|
@@ -749,6 +907,18 @@ export class PlayerApi extends runtime.BaseAPI {
|
|
|
749
907
|
queryParameters['completion_status'] = requestParameters['completionStatus'];
|
|
750
908
|
}
|
|
751
909
|
|
|
910
|
+
if (requestParameters['gradeStatus'] != null) {
|
|
911
|
+
queryParameters['grade_status'] = requestParameters['gradeStatus'];
|
|
912
|
+
}
|
|
913
|
+
|
|
914
|
+
if (requestParameters['isCurrent'] != null) {
|
|
915
|
+
queryParameters['is_current'] = requestParameters['isCurrent'];
|
|
916
|
+
}
|
|
917
|
+
|
|
918
|
+
if (requestParameters['attemptNumber'] != null) {
|
|
919
|
+
queryParameters['attempt_number'] = requestParameters['attemptNumber'];
|
|
920
|
+
}
|
|
921
|
+
|
|
752
922
|
if (requestParameters['createdFrom'] != null) {
|
|
753
923
|
queryParameters['created_from'] = requestParameters['createdFrom'];
|
|
754
924
|
}
|
|
@@ -757,6 +927,26 @@ export class PlayerApi extends runtime.BaseAPI {
|
|
|
757
927
|
queryParameters['created_to'] = requestParameters['createdTo'];
|
|
758
928
|
}
|
|
759
929
|
|
|
930
|
+
if (requestParameters['updatedFrom'] != null) {
|
|
931
|
+
queryParameters['updated_from'] = requestParameters['updatedFrom'];
|
|
932
|
+
}
|
|
933
|
+
|
|
934
|
+
if (requestParameters['updatedTo'] != null) {
|
|
935
|
+
queryParameters['updated_to'] = requestParameters['updatedTo'];
|
|
936
|
+
}
|
|
937
|
+
|
|
938
|
+
if (requestParameters['hasScormErrors'] != null) {
|
|
939
|
+
queryParameters['has_scorm_errors'] = requestParameters['hasScormErrors'];
|
|
940
|
+
}
|
|
941
|
+
|
|
942
|
+
if (requestParameters['sortBy'] != null) {
|
|
943
|
+
queryParameters['sort_by'] = requestParameters['sortBy'];
|
|
944
|
+
}
|
|
945
|
+
|
|
946
|
+
if (requestParameters['sortDirection'] != null) {
|
|
947
|
+
queryParameters['sort_direction'] = requestParameters['sortDirection'];
|
|
948
|
+
}
|
|
949
|
+
|
|
760
950
|
if (requestParameters['page'] != null) {
|
|
761
951
|
queryParameters['page'] = requestParameters['page'];
|
|
762
952
|
}
|
|
@@ -845,6 +1035,116 @@ export class PlayerApi extends runtime.BaseAPI {
|
|
|
845
1035
|
return await response.value();
|
|
846
1036
|
}
|
|
847
1037
|
|
|
1038
|
+
/**
|
|
1039
|
+
* Creates request options for getResourceSessionScormApiLogs without sending the request
|
|
1040
|
+
*/
|
|
1041
|
+
async getResourceSessionScormApiLogsRequestOpts(requestParameters: GetResourceSessionScormApiLogsRequest): Promise<runtime.RequestOpts> {
|
|
1042
|
+
if (requestParameters['sessionId'] == null) {
|
|
1043
|
+
throw new runtime.RequiredError(
|
|
1044
|
+
'sessionId',
|
|
1045
|
+
'Required parameter "sessionId" was null or undefined when calling getResourceSessionScormApiLogs().'
|
|
1046
|
+
);
|
|
1047
|
+
}
|
|
1048
|
+
|
|
1049
|
+
const queryParameters: any = {};
|
|
1050
|
+
|
|
1051
|
+
if (requestParameters['method'] != null) {
|
|
1052
|
+
queryParameters['method'] = requestParameters['method'];
|
|
1053
|
+
}
|
|
1054
|
+
|
|
1055
|
+
if (requestParameters['element'] != null) {
|
|
1056
|
+
queryParameters['element'] = requestParameters['element'];
|
|
1057
|
+
}
|
|
1058
|
+
|
|
1059
|
+
if (requestParameters['errorsOnly'] != null) {
|
|
1060
|
+
queryParameters['errors_only'] = requestParameters['errorsOnly'];
|
|
1061
|
+
}
|
|
1062
|
+
|
|
1063
|
+
if (requestParameters['page'] != null) {
|
|
1064
|
+
queryParameters['page'] = requestParameters['page'];
|
|
1065
|
+
}
|
|
1066
|
+
|
|
1067
|
+
if (requestParameters['pageSize'] != null) {
|
|
1068
|
+
queryParameters['pageSize'] = requestParameters['pageSize'];
|
|
1069
|
+
}
|
|
1070
|
+
|
|
1071
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1072
|
+
|
|
1073
|
+
|
|
1074
|
+
let urlPath = `/resource/sessions/{sessionId}/api-logs`;
|
|
1075
|
+
urlPath = urlPath.replace('{sessionId}', encodeURIComponent(String(requestParameters['sessionId'])));
|
|
1076
|
+
|
|
1077
|
+
return {
|
|
1078
|
+
path: urlPath,
|
|
1079
|
+
method: 'GET',
|
|
1080
|
+
headers: headerParameters,
|
|
1081
|
+
query: queryParameters,
|
|
1082
|
+
};
|
|
1083
|
+
}
|
|
1084
|
+
|
|
1085
|
+
/**
|
|
1086
|
+
* Get SCORM runtime logs for a resource session
|
|
1087
|
+
*/
|
|
1088
|
+
async getResourceSessionScormApiLogsRaw(requestParameters: GetResourceSessionScormApiLogsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetResourceSessionScormApiLogs>> {
|
|
1089
|
+
const requestOptions = await this.getResourceSessionScormApiLogsRequestOpts(requestParameters);
|
|
1090
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1091
|
+
|
|
1092
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetResourceSessionScormApiLogsFromJSON(jsonValue));
|
|
1093
|
+
}
|
|
1094
|
+
|
|
1095
|
+
/**
|
|
1096
|
+
* Get SCORM runtime logs for a resource session
|
|
1097
|
+
*/
|
|
1098
|
+
async getResourceSessionScormApiLogs(requestParameters: GetResourceSessionScormApiLogsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetResourceSessionScormApiLogs> {
|
|
1099
|
+
const response = await this.getResourceSessionScormApiLogsRaw(requestParameters, initOverrides);
|
|
1100
|
+
return await response.value();
|
|
1101
|
+
}
|
|
1102
|
+
|
|
1103
|
+
/**
|
|
1104
|
+
* Creates request options for getResourceSessionScormData without sending the request
|
|
1105
|
+
*/
|
|
1106
|
+
async getResourceSessionScormDataRequestOpts(requestParameters: GetResourceSessionScormDataRequest): Promise<runtime.RequestOpts> {
|
|
1107
|
+
if (requestParameters['sessionId'] == null) {
|
|
1108
|
+
throw new runtime.RequiredError(
|
|
1109
|
+
'sessionId',
|
|
1110
|
+
'Required parameter "sessionId" was null or undefined when calling getResourceSessionScormData().'
|
|
1111
|
+
);
|
|
1112
|
+
}
|
|
1113
|
+
|
|
1114
|
+
const queryParameters: any = {};
|
|
1115
|
+
|
|
1116
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1117
|
+
|
|
1118
|
+
|
|
1119
|
+
let urlPath = `/resource/sessions/{sessionId}/scorm-data`;
|
|
1120
|
+
urlPath = urlPath.replace('{sessionId}', encodeURIComponent(String(requestParameters['sessionId'])));
|
|
1121
|
+
|
|
1122
|
+
return {
|
|
1123
|
+
path: urlPath,
|
|
1124
|
+
method: 'GET',
|
|
1125
|
+
headers: headerParameters,
|
|
1126
|
+
query: queryParameters,
|
|
1127
|
+
};
|
|
1128
|
+
}
|
|
1129
|
+
|
|
1130
|
+
/**
|
|
1131
|
+
* Get SCORM CMI data for a resource session
|
|
1132
|
+
*/
|
|
1133
|
+
async getResourceSessionScormDataRaw(requestParameters: GetResourceSessionScormDataRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetResourceSessionScormData>> {
|
|
1134
|
+
const requestOptions = await this.getResourceSessionScormDataRequestOpts(requestParameters);
|
|
1135
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1136
|
+
|
|
1137
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetResourceSessionScormDataFromJSON(jsonValue));
|
|
1138
|
+
}
|
|
1139
|
+
|
|
1140
|
+
/**
|
|
1141
|
+
* Get SCORM CMI data for a resource session
|
|
1142
|
+
*/
|
|
1143
|
+
async getResourceSessionScormData(requestParameters: GetResourceSessionScormDataRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetResourceSessionScormData> {
|
|
1144
|
+
const response = await this.getResourceSessionScormDataRaw(requestParameters, initOverrides);
|
|
1145
|
+
return await response.value();
|
|
1146
|
+
}
|
|
1147
|
+
|
|
848
1148
|
/**
|
|
849
1149
|
* Creates request options for getScormAsset without sending the request
|
|
850
1150
|
*/
|
|
@@ -1218,3 +1518,53 @@ export class PlayerApi extends runtime.BaseAPI {
|
|
|
1218
1518
|
}
|
|
1219
1519
|
|
|
1220
1520
|
}
|
|
1521
|
+
|
|
1522
|
+
/**
|
|
1523
|
+
* @export
|
|
1524
|
+
*/
|
|
1525
|
+
export const GetResourceSessionListCompletionStatusEnum = {
|
|
1526
|
+
NotAttempted: 'not_attempted',
|
|
1527
|
+
InProgress: 'in_progress',
|
|
1528
|
+
Completed: 'completed'
|
|
1529
|
+
} as const;
|
|
1530
|
+
export type GetResourceSessionListCompletionStatusEnum = typeof GetResourceSessionListCompletionStatusEnum[keyof typeof GetResourceSessionListCompletionStatusEnum];
|
|
1531
|
+
/**
|
|
1532
|
+
* @export
|
|
1533
|
+
*/
|
|
1534
|
+
export const GetResourceSessionListGradeStatusEnum = {
|
|
1535
|
+
Ungraded: 'ungraded',
|
|
1536
|
+
Passed: 'passed',
|
|
1537
|
+
Failed: 'failed',
|
|
1538
|
+
PointsEarned: 'points_earned',
|
|
1539
|
+
PercentageEarned: 'percentage_earned',
|
|
1540
|
+
NotApplicable: 'not_applicable'
|
|
1541
|
+
} as const;
|
|
1542
|
+
export type GetResourceSessionListGradeStatusEnum = typeof GetResourceSessionListGradeStatusEnum[keyof typeof GetResourceSessionListGradeStatusEnum];
|
|
1543
|
+
/**
|
|
1544
|
+
* @export
|
|
1545
|
+
*/
|
|
1546
|
+
export const GetResourceSessionListSortByEnum = {
|
|
1547
|
+
CreatedAt: 'created_at',
|
|
1548
|
+
UpdatedAt: 'updated_at',
|
|
1549
|
+
AttemptNumber: 'attempt_number'
|
|
1550
|
+
} as const;
|
|
1551
|
+
export type GetResourceSessionListSortByEnum = typeof GetResourceSessionListSortByEnum[keyof typeof GetResourceSessionListSortByEnum];
|
|
1552
|
+
/**
|
|
1553
|
+
* @export
|
|
1554
|
+
*/
|
|
1555
|
+
export const GetResourceSessionListSortDirectionEnum = {
|
|
1556
|
+
Asc: 'asc',
|
|
1557
|
+
Desc: 'desc'
|
|
1558
|
+
} as const;
|
|
1559
|
+
export type GetResourceSessionListSortDirectionEnum = typeof GetResourceSessionListSortDirectionEnum[keyof typeof GetResourceSessionListSortDirectionEnum];
|
|
1560
|
+
/**
|
|
1561
|
+
* @export
|
|
1562
|
+
*/
|
|
1563
|
+
export const GetResourceSessionScormApiLogsMethodEnum = {
|
|
1564
|
+
Initialize: 'Initialize',
|
|
1565
|
+
GetValue: 'GetValue',
|
|
1566
|
+
SetValue: 'SetValue',
|
|
1567
|
+
Commit: 'Commit',
|
|
1568
|
+
Terminate: 'Terminate'
|
|
1569
|
+
} as const;
|
|
1570
|
+
export type GetResourceSessionScormApiLogsMethodEnum = typeof GetResourceSessionScormApiLogsMethodEnum[keyof typeof GetResourceSessionScormApiLogsMethodEnum];
|
package/src/apis/index.ts
CHANGED
|
@@ -5,6 +5,7 @@ export * from './CertificateTemplateApi';
|
|
|
5
5
|
export * from './ChatApi';
|
|
6
6
|
export * from './ContentApi';
|
|
7
7
|
export * from './ContentLibraryApi';
|
|
8
|
+
export * from './ContentLibraryQuizApi';
|
|
8
9
|
export * from './CourseApi';
|
|
9
10
|
export * from './CourseCatalogApi';
|
|
10
11
|
export * from './CourseShareApi';
|
|
@@ -39,6 +39,12 @@ export interface GetCourseVersionItem {
|
|
|
39
39
|
* @memberof GetCourseVersionItem
|
|
40
40
|
*/
|
|
41
41
|
sourceKind: GetCourseVersionItemSourceKindEnum;
|
|
42
|
+
/**
|
|
43
|
+
* Discriminates reusable Content Library placements without changing source_kind.
|
|
44
|
+
* @type {GetCourseVersionItemContentLibraryKindEnum}
|
|
45
|
+
* @memberof GetCourseVersionItem
|
|
46
|
+
*/
|
|
47
|
+
contentLibraryKind?: GetCourseVersionItemContentLibraryKindEnum | null;
|
|
42
48
|
/**
|
|
43
49
|
*
|
|
44
50
|
* @type {string}
|
|
@@ -129,6 +135,15 @@ export const GetCourseVersionItemSourceKindEnum = {
|
|
|
129
135
|
} as const;
|
|
130
136
|
export type GetCourseVersionItemSourceKindEnum = typeof GetCourseVersionItemSourceKindEnum[keyof typeof GetCourseVersionItemSourceKindEnum];
|
|
131
137
|
|
|
138
|
+
/**
|
|
139
|
+
* @export
|
|
140
|
+
*/
|
|
141
|
+
export const GetCourseVersionItemContentLibraryKindEnum = {
|
|
142
|
+
Resource: 'resource',
|
|
143
|
+
Quiz: 'quiz'
|
|
144
|
+
} as const;
|
|
145
|
+
export type GetCourseVersionItemContentLibraryKindEnum = typeof GetCourseVersionItemContentLibraryKindEnum[keyof typeof GetCourseVersionItemContentLibraryKindEnum];
|
|
146
|
+
|
|
132
147
|
/**
|
|
133
148
|
* @export
|
|
134
149
|
*/
|
|
@@ -168,6 +183,7 @@ export function GetCourseVersionItemFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
168
183
|
|
|
169
184
|
'id': json['id'],
|
|
170
185
|
'sourceKind': json['source_kind'],
|
|
186
|
+
'contentLibraryKind': json['content_library_kind'] == null ? undefined : json['content_library_kind'],
|
|
171
187
|
'contentLibraryItemId': json['content_library_item_id'] == null ? undefined : json['content_library_item_id'],
|
|
172
188
|
'contentLibraryVersionId': json['content_library_version_id'] == null ? undefined : json['content_library_version_id'],
|
|
173
189
|
'resourceVersionNumber': json['resource_version_number'] == null ? undefined : json['resource_version_number'],
|
|
@@ -197,6 +213,7 @@ export function GetCourseVersionItemToJSONTyped(value?: GetCourseVersionItem | n
|
|
|
197
213
|
|
|
198
214
|
'id': value['id'],
|
|
199
215
|
'source_kind': value['sourceKind'],
|
|
216
|
+
'content_library_kind': value['contentLibraryKind'],
|
|
200
217
|
'content_library_item_id': value['contentLibraryItemId'],
|
|
201
218
|
'content_library_version_id': value['contentLibraryVersionId'],
|
|
202
219
|
'resource_version_number': value['resourceVersionNumber'],
|
|
@@ -0,0 +1,207 @@
|
|
|
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 { GetLibraryQuizVersion } from './GetLibraryQuizVersion';
|
|
17
|
+
import {
|
|
18
|
+
GetLibraryQuizVersionFromJSON,
|
|
19
|
+
GetLibraryQuizVersionFromJSONTyped,
|
|
20
|
+
GetLibraryQuizVersionToJSON,
|
|
21
|
+
GetLibraryQuizVersionToJSONTyped,
|
|
22
|
+
} from './GetLibraryQuizVersion';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface GetLibraryQuiz
|
|
28
|
+
*/
|
|
29
|
+
export interface GetLibraryQuiz {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof GetLibraryQuiz
|
|
34
|
+
*/
|
|
35
|
+
id: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {GetLibraryQuizKindEnum}
|
|
39
|
+
* @memberof GetLibraryQuiz
|
|
40
|
+
*/
|
|
41
|
+
kind: GetLibraryQuizKindEnum;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof GetLibraryQuiz
|
|
46
|
+
*/
|
|
47
|
+
name: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof GetLibraryQuiz
|
|
52
|
+
*/
|
|
53
|
+
description: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof GetLibraryQuiz
|
|
58
|
+
*/
|
|
59
|
+
ownerId: string;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {GetLibraryQuizVersion}
|
|
63
|
+
* @memberof GetLibraryQuiz
|
|
64
|
+
*/
|
|
65
|
+
latestPublishedVersion?: GetLibraryQuizVersion | null;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {GetLibraryQuizVersion}
|
|
69
|
+
* @memberof GetLibraryQuiz
|
|
70
|
+
*/
|
|
71
|
+
draftVersion?: GetLibraryQuizVersion | null;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {Array<GetLibraryQuizVersion>}
|
|
75
|
+
* @memberof GetLibraryQuiz
|
|
76
|
+
*/
|
|
77
|
+
versions: Array<GetLibraryQuizVersion>;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {number}
|
|
81
|
+
* @memberof GetLibraryQuiz
|
|
82
|
+
*/
|
|
83
|
+
publishedCourseCount: number;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {number}
|
|
87
|
+
* @memberof GetLibraryQuiz
|
|
88
|
+
*/
|
|
89
|
+
draftCourseCount: number;
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @type {number}
|
|
93
|
+
* @memberof GetLibraryQuiz
|
|
94
|
+
*/
|
|
95
|
+
historicalCourseCount: number;
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
* @type {number}
|
|
99
|
+
* @memberof GetLibraryQuiz
|
|
100
|
+
*/
|
|
101
|
+
activeLearnerCount: number;
|
|
102
|
+
/**
|
|
103
|
+
*
|
|
104
|
+
* @type {number}
|
|
105
|
+
* @memberof GetLibraryQuiz
|
|
106
|
+
*/
|
|
107
|
+
createdAt: number;
|
|
108
|
+
/**
|
|
109
|
+
*
|
|
110
|
+
* @type {number}
|
|
111
|
+
* @memberof GetLibraryQuiz
|
|
112
|
+
*/
|
|
113
|
+
updatedAt: number;
|
|
114
|
+
/**
|
|
115
|
+
*
|
|
116
|
+
* @type {number}
|
|
117
|
+
* @memberof GetLibraryQuiz
|
|
118
|
+
*/
|
|
119
|
+
archivedAt?: number | null;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* @export
|
|
125
|
+
*/
|
|
126
|
+
export const GetLibraryQuizKindEnum = {
|
|
127
|
+
Quiz: 'quiz'
|
|
128
|
+
} as const;
|
|
129
|
+
export type GetLibraryQuizKindEnum = typeof GetLibraryQuizKindEnum[keyof typeof GetLibraryQuizKindEnum];
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Check if a given object implements the GetLibraryQuiz interface.
|
|
134
|
+
*/
|
|
135
|
+
export function instanceOfGetLibraryQuiz(value: object): value is GetLibraryQuiz {
|
|
136
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
137
|
+
if (!('kind' in value) || value['kind'] === undefined) return false;
|
|
138
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
139
|
+
if (!('description' in value) || value['description'] === undefined) return false;
|
|
140
|
+
if (!('ownerId' in value) || value['ownerId'] === undefined) return false;
|
|
141
|
+
if (!('versions' in value) || value['versions'] === undefined) return false;
|
|
142
|
+
if (!('publishedCourseCount' in value) || value['publishedCourseCount'] === undefined) return false;
|
|
143
|
+
if (!('draftCourseCount' in value) || value['draftCourseCount'] === undefined) return false;
|
|
144
|
+
if (!('historicalCourseCount' in value) || value['historicalCourseCount'] === undefined) return false;
|
|
145
|
+
if (!('activeLearnerCount' in value) || value['activeLearnerCount'] === undefined) return false;
|
|
146
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
147
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
148
|
+
return true;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
export function GetLibraryQuizFromJSON(json: any): GetLibraryQuiz {
|
|
152
|
+
return GetLibraryQuizFromJSONTyped(json, false);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
export function GetLibraryQuizFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetLibraryQuiz {
|
|
156
|
+
if (json == null) {
|
|
157
|
+
return json;
|
|
158
|
+
}
|
|
159
|
+
return {
|
|
160
|
+
|
|
161
|
+
'id': json['id'],
|
|
162
|
+
'kind': json['kind'],
|
|
163
|
+
'name': json['name'],
|
|
164
|
+
'description': json['description'],
|
|
165
|
+
'ownerId': json['owner_id'],
|
|
166
|
+
'latestPublishedVersion': json['latest_published_version'] == null ? undefined : GetLibraryQuizVersionFromJSON(json['latest_published_version']),
|
|
167
|
+
'draftVersion': json['draft_version'] == null ? undefined : GetLibraryQuizVersionFromJSON(json['draft_version']),
|
|
168
|
+
'versions': ((json['versions'] as Array<any>).map(GetLibraryQuizVersionFromJSON)),
|
|
169
|
+
'publishedCourseCount': json['published_course_count'],
|
|
170
|
+
'draftCourseCount': json['draft_course_count'],
|
|
171
|
+
'historicalCourseCount': json['historical_course_count'],
|
|
172
|
+
'activeLearnerCount': json['active_learner_count'],
|
|
173
|
+
'createdAt': json['created_at'],
|
|
174
|
+
'updatedAt': json['updated_at'],
|
|
175
|
+
'archivedAt': json['archived_at'] == null ? undefined : json['archived_at'],
|
|
176
|
+
};
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
export function GetLibraryQuizToJSON(json: any): GetLibraryQuiz {
|
|
180
|
+
return GetLibraryQuizToJSONTyped(json, false);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
export function GetLibraryQuizToJSONTyped(value?: GetLibraryQuiz | null, ignoreDiscriminator: boolean = false): any {
|
|
184
|
+
if (value == null) {
|
|
185
|
+
return value;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
return {
|
|
189
|
+
|
|
190
|
+
'id': value['id'],
|
|
191
|
+
'kind': value['kind'],
|
|
192
|
+
'name': value['name'],
|
|
193
|
+
'description': value['description'],
|
|
194
|
+
'owner_id': value['ownerId'],
|
|
195
|
+
'latest_published_version': GetLibraryQuizVersionToJSON(value['latestPublishedVersion']),
|
|
196
|
+
'draft_version': GetLibraryQuizVersionToJSON(value['draftVersion']),
|
|
197
|
+
'versions': ((value['versions'] as Array<any>).map(GetLibraryQuizVersionToJSON)),
|
|
198
|
+
'published_course_count': value['publishedCourseCount'],
|
|
199
|
+
'draft_course_count': value['draftCourseCount'],
|
|
200
|
+
'historical_course_count': value['historicalCourseCount'],
|
|
201
|
+
'active_learner_count': value['activeLearnerCount'],
|
|
202
|
+
'created_at': value['createdAt'],
|
|
203
|
+
'updated_at': value['updatedAt'],
|
|
204
|
+
'archived_at': value['archivedAt'],
|
|
205
|
+
};
|
|
206
|
+
}
|
|
207
|
+
|