@easyedu/js-lsm-api 1.109.0 → 1.110.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/README.md +4 -4
- package/dist/apis/ContentLibraryApi.d.ts +5 -4
- package/dist/apis/ContentLibraryApi.js +6 -5
- package/dist/apis/QuestionApi.d.ts +1 -11
- package/dist/apis/QuestionApi.js +3 -14
- package/dist/esm/apis/ContentLibraryApi.d.ts +5 -4
- package/dist/esm/apis/ContentLibraryApi.js +6 -5
- package/dist/esm/apis/QuestionApi.d.ts +1 -11
- package/dist/esm/apis/QuestionApi.js +2 -13
- package/dist/esm/models/ContentLibraryTag.d.ts +6 -0
- package/dist/esm/models/ContentLibraryTag.js +4 -0
- package/dist/esm/models/ContentLibraryTagItem.d.ts +1 -0
- package/dist/esm/models/ContentLibraryTagItem.js +2 -1
- package/dist/esm/models/GetQuestion.d.ts +4 -18
- package/dist/esm/models/GetQuestion.js +3 -14
- package/dist/esm/models/GetQuestionListFilters.d.ts +3 -18
- package/dist/esm/models/GetQuestionListFilters.js +2 -12
- package/dist/esm/models/LibraryQuizCriteriaPreviewQuestion.d.ts +0 -15
- package/dist/esm/models/LibraryQuizCriteriaPreviewQuestion.js +0 -12
- package/dist/esm/models/LibraryQuizCriterion.d.ts +0 -15
- package/dist/esm/models/LibraryQuizCriterion.js +0 -10
- package/dist/esm/models/PostQuestion.d.ts +0 -15
- package/dist/esm/models/PostQuestion.js +0 -12
- package/dist/esm/models/PutQuestion.d.ts +0 -15
- package/dist/esm/models/PutQuestion.js +0 -10
- package/dist/models/ContentLibraryTag.d.ts +6 -0
- package/dist/models/ContentLibraryTag.js +4 -0
- package/dist/models/ContentLibraryTagItem.d.ts +1 -0
- package/dist/models/ContentLibraryTagItem.js +2 -1
- package/dist/models/GetQuestion.d.ts +4 -18
- package/dist/models/GetQuestion.js +4 -15
- package/dist/models/GetQuestionListFilters.d.ts +3 -18
- package/dist/models/GetQuestionListFilters.js +3 -13
- package/dist/models/LibraryQuizCriteriaPreviewQuestion.d.ts +0 -15
- package/dist/models/LibraryQuizCriteriaPreviewQuestion.js +1 -13
- package/dist/models/LibraryQuizCriterion.d.ts +0 -15
- package/dist/models/LibraryQuizCriterion.js +1 -11
- package/dist/models/PostQuestion.d.ts +0 -15
- package/dist/models/PostQuestion.js +1 -13
- package/dist/models/PutQuestion.d.ts +0 -15
- package/dist/models/PutQuestion.js +1 -11
- package/docs/ContentLibraryApi.md +7 -7
- package/docs/ContentLibraryTag.md +2 -0
- package/docs/GetQuestion.md +1 -3
- package/docs/GetQuestionListFilters.md +2 -4
- package/docs/LibraryQuizCriteriaPreviewQuestion.md +0 -2
- package/docs/LibraryQuizCriterion.md +0 -2
- package/docs/PostQuestion.md +0 -2
- package/docs/PutQuestion.md +0 -2
- package/docs/QuestionApi.md +4 -7
- package/package.json +1 -1
- package/src/apis/ContentLibraryApi.ts +6 -5
- package/src/apis/QuestionApi.ts +3 -17
- package/src/models/ContentLibraryTag.ts +9 -0
- package/src/models/ContentLibraryTagItem.ts +2 -1
- package/src/models/GetQuestion.ts +12 -24
- package/src/models/GetQuestionListFilters.ts +5 -23
- package/src/models/LibraryQuizCriteriaPreviewQuestion.ts +0 -19
- package/src/models/LibraryQuizCriterion.ts +0 -18
- package/src/models/PostQuestion.ts +0 -19
- package/src/models/PutQuestion.ts +0 -18
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @easyedu/js-lsm-api@1.
|
|
1
|
+
# @easyedu/js-lsm-api@1.110.0
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the sbzw93t49b.execute-api.us-east-2.amazonaws.com API.
|
|
4
4
|
|
|
@@ -128,11 +128,11 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
|
|
|
128
128
|
*ChatApi* | [**postConversation**](docs/ChatApi.md#postconversation) | **POST** /chat/conversations | Create a new conversation
|
|
129
129
|
*ChatApi* | [**postMessage**](docs/ChatApi.md#postmessage) | **POST** /chat/conversations/{conversationId}/messages | Send a message to a conversation
|
|
130
130
|
*ChatApi* | [**putChatAdminSettings**](docs/ChatApi.md#putchatadminsettings) | **PUT** /chat/admin/settings | Update chatbot settings for the selected portal
|
|
131
|
-
*ContentLibraryApi* | [**deleteContentLibraryTag**](docs/ContentLibraryApi.md#deletecontentlibrarytag) | **DELETE** /content-library/tags/{tagId} | Delete
|
|
131
|
+
*ContentLibraryApi* | [**deleteContentLibraryTag**](docs/ContentLibraryApi.md#deletecontentlibrarytag) | **DELETE** /content-library/tags/{tagId} | Delete a Content Library tag and remove it from associated content
|
|
132
132
|
*ContentLibraryApi* | [**deleteResourceVersion**](docs/ContentLibraryApi.md#deleteresourceversion) | **DELETE** /content-library/resources/{resourceId}/versions/{versionId} | Discard an unreferenced draft resource version
|
|
133
133
|
*ContentLibraryApi* | [**getContentLibraryItemList**](docs/ContentLibraryApi.md#getcontentlibraryitemlist) | **GET** /content-library/items | Search Content Library items
|
|
134
134
|
*ContentLibraryApi* | [**getContentLibraryTag**](docs/ContentLibraryApi.md#getcontentlibrarytag) | **GET** /content-library/tags/{tagId} | Get a Content Library tag
|
|
135
|
-
*ContentLibraryApi* | [**getContentLibraryTagItemList**](docs/ContentLibraryApi.md#getcontentlibrarytagitemlist) | **GET** /content-library/tags/{tagId}/items | List resources and
|
|
135
|
+
*ContentLibraryApi* | [**getContentLibraryTagItemList**](docs/ContentLibraryApi.md#getcontentlibrarytagitemlist) | **GET** /content-library/tags/{tagId}/items | List resources, quizzes, and questions associated with a tag
|
|
136
136
|
*ContentLibraryApi* | [**getContentLibraryTagList**](docs/ContentLibraryApi.md#getcontentlibrarytaglist) | **GET** /content-library/tags | List portal Content Library tags
|
|
137
137
|
*ContentLibraryApi* | [**getResource**](docs/ContentLibraryApi.md#getresource) | **GET** /content-library/resources/{resourceId} | Get a resource and all versions
|
|
138
138
|
*ContentLibraryApi* | [**getResourceList**](docs/ContentLibraryApi.md#getresourcelist) | **GET** /content-library/resources | List reusable resources
|
|
@@ -670,7 +670,7 @@ and is automatically generated by the
|
|
|
670
670
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
671
671
|
|
|
672
672
|
- API version: `1.0.0`
|
|
673
|
-
- Package version: `1.
|
|
673
|
+
- Package version: `1.110.0`
|
|
674
674
|
- Generator version: `7.22.0`
|
|
675
675
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
676
676
|
|
|
@@ -154,11 +154,11 @@ export declare class ContentLibraryApi extends runtime.BaseAPI {
|
|
|
154
154
|
*/
|
|
155
155
|
deleteContentLibraryTagRequestOpts(requestParameters: DeleteContentLibraryTagRequest): Promise<runtime.RequestOpts>;
|
|
156
156
|
/**
|
|
157
|
-
* Delete
|
|
157
|
+
* Delete a Content Library tag and remove it from associated content
|
|
158
158
|
*/
|
|
159
159
|
deleteContentLibraryTagRaw(requestParameters: DeleteContentLibraryTagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
160
160
|
/**
|
|
161
|
-
* Delete
|
|
161
|
+
* Delete a Content Library tag and remove it from associated content
|
|
162
162
|
*/
|
|
163
163
|
deleteContentLibraryTag(requestParameters: DeleteContentLibraryTagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
164
164
|
/**
|
|
@@ -202,11 +202,11 @@ export declare class ContentLibraryApi extends runtime.BaseAPI {
|
|
|
202
202
|
*/
|
|
203
203
|
getContentLibraryTagItemListRequestOpts(requestParameters: GetContentLibraryTagItemListRequest): Promise<runtime.RequestOpts>;
|
|
204
204
|
/**
|
|
205
|
-
* List resources and
|
|
205
|
+
* List resources, quizzes, and questions associated with a tag
|
|
206
206
|
*/
|
|
207
207
|
getContentLibraryTagItemListRaw(requestParameters: GetContentLibraryTagItemListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetContentLibraryTagItemList>>;
|
|
208
208
|
/**
|
|
209
|
-
* List resources and
|
|
209
|
+
* List resources, quizzes, and questions associated with a tag
|
|
210
210
|
*/
|
|
211
211
|
getContentLibraryTagItemList(requestParameters: GetContentLibraryTagItemListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetContentLibraryTagItemList>;
|
|
212
212
|
/**
|
|
@@ -468,6 +468,7 @@ export declare class ContentLibraryApi extends runtime.BaseAPI {
|
|
|
468
468
|
export declare const GetContentLibraryTagItemListKindEnum: {
|
|
469
469
|
readonly Resource: "resource";
|
|
470
470
|
readonly Quiz: "quiz";
|
|
471
|
+
readonly Question: "question";
|
|
471
472
|
};
|
|
472
473
|
export type GetContentLibraryTagItemListKindEnum = typeof GetContentLibraryTagItemListKindEnum[keyof typeof GetContentLibraryTagItemListKindEnum];
|
|
473
474
|
/**
|
|
@@ -68,7 +68,7 @@ class ContentLibraryApi extends runtime.BaseAPI {
|
|
|
68
68
|
});
|
|
69
69
|
}
|
|
70
70
|
/**
|
|
71
|
-
* Delete
|
|
71
|
+
* Delete a Content Library tag and remove it from associated content
|
|
72
72
|
*/
|
|
73
73
|
deleteContentLibraryTagRaw(requestParameters, initOverrides) {
|
|
74
74
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -78,7 +78,7 @@ class ContentLibraryApi extends runtime.BaseAPI {
|
|
|
78
78
|
});
|
|
79
79
|
}
|
|
80
80
|
/**
|
|
81
|
-
* Delete
|
|
81
|
+
* Delete a Content Library tag and remove it from associated content
|
|
82
82
|
*/
|
|
83
83
|
deleteContentLibraryTag(requestParameters, initOverrides) {
|
|
84
84
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -255,7 +255,7 @@ class ContentLibraryApi extends runtime.BaseAPI {
|
|
|
255
255
|
});
|
|
256
256
|
}
|
|
257
257
|
/**
|
|
258
|
-
* List resources and
|
|
258
|
+
* List resources, quizzes, and questions associated with a tag
|
|
259
259
|
*/
|
|
260
260
|
getContentLibraryTagItemListRaw(requestParameters, initOverrides) {
|
|
261
261
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -265,7 +265,7 @@ class ContentLibraryApi extends runtime.BaseAPI {
|
|
|
265
265
|
});
|
|
266
266
|
}
|
|
267
267
|
/**
|
|
268
|
-
* List resources and
|
|
268
|
+
* List resources, quizzes, and questions associated with a tag
|
|
269
269
|
*/
|
|
270
270
|
getContentLibraryTagItemList(requestParameters, initOverrides) {
|
|
271
271
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1196,7 +1196,8 @@ exports.ContentLibraryApi = ContentLibraryApi;
|
|
|
1196
1196
|
*/
|
|
1197
1197
|
exports.GetContentLibraryTagItemListKindEnum = {
|
|
1198
1198
|
Resource: 'resource',
|
|
1199
|
-
Quiz: 'quiz'
|
|
1199
|
+
Quiz: 'quiz',
|
|
1200
|
+
Question: 'question'
|
|
1200
1201
|
};
|
|
1201
1202
|
/**
|
|
1202
1203
|
* @export
|
|
@@ -24,8 +24,7 @@ export interface GetQuestionListRequest {
|
|
|
24
24
|
page?: number;
|
|
25
25
|
pageSize?: number;
|
|
26
26
|
questionType?: GetQuestionListQuestionTypeEnum;
|
|
27
|
-
|
|
28
|
-
tags?: Array<string>;
|
|
27
|
+
tagId?: string;
|
|
29
28
|
search?: string;
|
|
30
29
|
}
|
|
31
30
|
export interface PostQuestionRequest {
|
|
@@ -109,12 +108,3 @@ export declare const GetQuestionListQuestionTypeEnum: {
|
|
|
109
108
|
readonly FillInBlank: "fill_in_blank";
|
|
110
109
|
};
|
|
111
110
|
export type GetQuestionListQuestionTypeEnum = typeof GetQuestionListQuestionTypeEnum[keyof typeof GetQuestionListQuestionTypeEnum];
|
|
112
|
-
/**
|
|
113
|
-
* @export
|
|
114
|
-
*/
|
|
115
|
-
export declare const GetQuestionListDifficultyLevelEnum: {
|
|
116
|
-
readonly Beginner: "beginner";
|
|
117
|
-
readonly Intermediate: "intermediate";
|
|
118
|
-
readonly Advanced: "advanced";
|
|
119
|
-
};
|
|
120
|
-
export type GetQuestionListDifficultyLevelEnum = typeof GetQuestionListDifficultyLevelEnum[keyof typeof GetQuestionListDifficultyLevelEnum];
|
package/dist/apis/QuestionApi.js
CHANGED
|
@@ -22,7 +22,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.
|
|
25
|
+
exports.GetQuestionListQuestionTypeEnum = exports.QuestionApi = void 0;
|
|
26
26
|
const runtime = require("../runtime");
|
|
27
27
|
const GetQuestion_1 = require("../models/GetQuestion");
|
|
28
28
|
const GetQuestionList_1 = require("../models/GetQuestionList");
|
|
@@ -124,11 +124,8 @@ class QuestionApi extends runtime.BaseAPI {
|
|
|
124
124
|
if (requestParameters['questionType'] != null) {
|
|
125
125
|
queryParameters['question_type'] = requestParameters['questionType'];
|
|
126
126
|
}
|
|
127
|
-
if (requestParameters['
|
|
128
|
-
queryParameters['
|
|
129
|
-
}
|
|
130
|
-
if (requestParameters['tags'] != null) {
|
|
131
|
-
queryParameters['tags'] = requestParameters['tags'];
|
|
127
|
+
if (requestParameters['tagId'] != null) {
|
|
128
|
+
queryParameters['tag_id'] = requestParameters['tagId'];
|
|
132
129
|
}
|
|
133
130
|
if (requestParameters['search'] != null) {
|
|
134
131
|
queryParameters['search'] = requestParameters['search'];
|
|
@@ -256,11 +253,3 @@ exports.GetQuestionListQuestionTypeEnum = {
|
|
|
256
253
|
MultipleAnswer: 'multiple_answer',
|
|
257
254
|
FillInBlank: 'fill_in_blank'
|
|
258
255
|
};
|
|
259
|
-
/**
|
|
260
|
-
* @export
|
|
261
|
-
*/
|
|
262
|
-
exports.GetQuestionListDifficultyLevelEnum = {
|
|
263
|
-
Beginner: 'beginner',
|
|
264
|
-
Intermediate: 'intermediate',
|
|
265
|
-
Advanced: 'advanced'
|
|
266
|
-
};
|
|
@@ -154,11 +154,11 @@ export declare class ContentLibraryApi extends runtime.BaseAPI {
|
|
|
154
154
|
*/
|
|
155
155
|
deleteContentLibraryTagRequestOpts(requestParameters: DeleteContentLibraryTagRequest): Promise<runtime.RequestOpts>;
|
|
156
156
|
/**
|
|
157
|
-
* Delete
|
|
157
|
+
* Delete a Content Library tag and remove it from associated content
|
|
158
158
|
*/
|
|
159
159
|
deleteContentLibraryTagRaw(requestParameters: DeleteContentLibraryTagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
160
160
|
/**
|
|
161
|
-
* Delete
|
|
161
|
+
* Delete a Content Library tag and remove it from associated content
|
|
162
162
|
*/
|
|
163
163
|
deleteContentLibraryTag(requestParameters: DeleteContentLibraryTagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
164
164
|
/**
|
|
@@ -202,11 +202,11 @@ export declare class ContentLibraryApi extends runtime.BaseAPI {
|
|
|
202
202
|
*/
|
|
203
203
|
getContentLibraryTagItemListRequestOpts(requestParameters: GetContentLibraryTagItemListRequest): Promise<runtime.RequestOpts>;
|
|
204
204
|
/**
|
|
205
|
-
* List resources and
|
|
205
|
+
* List resources, quizzes, and questions associated with a tag
|
|
206
206
|
*/
|
|
207
207
|
getContentLibraryTagItemListRaw(requestParameters: GetContentLibraryTagItemListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetContentLibraryTagItemList>>;
|
|
208
208
|
/**
|
|
209
|
-
* List resources and
|
|
209
|
+
* List resources, quizzes, and questions associated with a tag
|
|
210
210
|
*/
|
|
211
211
|
getContentLibraryTagItemList(requestParameters: GetContentLibraryTagItemListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetContentLibraryTagItemList>;
|
|
212
212
|
/**
|
|
@@ -468,6 +468,7 @@ export declare class ContentLibraryApi extends runtime.BaseAPI {
|
|
|
468
468
|
export declare const GetContentLibraryTagItemListKindEnum: {
|
|
469
469
|
readonly Resource: "resource";
|
|
470
470
|
readonly Quiz: "quiz";
|
|
471
|
+
readonly Question: "question";
|
|
471
472
|
};
|
|
472
473
|
export type GetContentLibraryTagItemListKindEnum = typeof GetContentLibraryTagItemListKindEnum[keyof typeof GetContentLibraryTagItemListKindEnum];
|
|
473
474
|
/**
|
|
@@ -65,7 +65,7 @@ export class ContentLibraryApi extends runtime.BaseAPI {
|
|
|
65
65
|
});
|
|
66
66
|
}
|
|
67
67
|
/**
|
|
68
|
-
* Delete
|
|
68
|
+
* Delete a Content Library tag and remove it from associated content
|
|
69
69
|
*/
|
|
70
70
|
deleteContentLibraryTagRaw(requestParameters, initOverrides) {
|
|
71
71
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -75,7 +75,7 @@ export class ContentLibraryApi extends runtime.BaseAPI {
|
|
|
75
75
|
});
|
|
76
76
|
}
|
|
77
77
|
/**
|
|
78
|
-
* Delete
|
|
78
|
+
* Delete a Content Library tag and remove it from associated content
|
|
79
79
|
*/
|
|
80
80
|
deleteContentLibraryTag(requestParameters, initOverrides) {
|
|
81
81
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -252,7 +252,7 @@ export class ContentLibraryApi extends runtime.BaseAPI {
|
|
|
252
252
|
});
|
|
253
253
|
}
|
|
254
254
|
/**
|
|
255
|
-
* List resources and
|
|
255
|
+
* List resources, quizzes, and questions associated with a tag
|
|
256
256
|
*/
|
|
257
257
|
getContentLibraryTagItemListRaw(requestParameters, initOverrides) {
|
|
258
258
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -262,7 +262,7 @@ export class ContentLibraryApi extends runtime.BaseAPI {
|
|
|
262
262
|
});
|
|
263
263
|
}
|
|
264
264
|
/**
|
|
265
|
-
* List resources and
|
|
265
|
+
* List resources, quizzes, and questions associated with a tag
|
|
266
266
|
*/
|
|
267
267
|
getContentLibraryTagItemList(requestParameters, initOverrides) {
|
|
268
268
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1192,7 +1192,8 @@ export class ContentLibraryApi extends runtime.BaseAPI {
|
|
|
1192
1192
|
*/
|
|
1193
1193
|
export const GetContentLibraryTagItemListKindEnum = {
|
|
1194
1194
|
Resource: 'resource',
|
|
1195
|
-
Quiz: 'quiz'
|
|
1195
|
+
Quiz: 'quiz',
|
|
1196
|
+
Question: 'question'
|
|
1196
1197
|
};
|
|
1197
1198
|
/**
|
|
1198
1199
|
* @export
|
|
@@ -24,8 +24,7 @@ export interface GetQuestionListRequest {
|
|
|
24
24
|
page?: number;
|
|
25
25
|
pageSize?: number;
|
|
26
26
|
questionType?: GetQuestionListQuestionTypeEnum;
|
|
27
|
-
|
|
28
|
-
tags?: Array<string>;
|
|
27
|
+
tagId?: string;
|
|
29
28
|
search?: string;
|
|
30
29
|
}
|
|
31
30
|
export interface PostQuestionRequest {
|
|
@@ -109,12 +108,3 @@ export declare const GetQuestionListQuestionTypeEnum: {
|
|
|
109
108
|
readonly FillInBlank: "fill_in_blank";
|
|
110
109
|
};
|
|
111
110
|
export type GetQuestionListQuestionTypeEnum = typeof GetQuestionListQuestionTypeEnum[keyof typeof GetQuestionListQuestionTypeEnum];
|
|
112
|
-
/**
|
|
113
|
-
* @export
|
|
114
|
-
*/
|
|
115
|
-
export declare const GetQuestionListDifficultyLevelEnum: {
|
|
116
|
-
readonly Beginner: "beginner";
|
|
117
|
-
readonly Intermediate: "intermediate";
|
|
118
|
-
readonly Advanced: "advanced";
|
|
119
|
-
};
|
|
120
|
-
export type GetQuestionListDifficultyLevelEnum = typeof GetQuestionListDifficultyLevelEnum[keyof typeof GetQuestionListDifficultyLevelEnum];
|
|
@@ -121,11 +121,8 @@ export class QuestionApi extends runtime.BaseAPI {
|
|
|
121
121
|
if (requestParameters['questionType'] != null) {
|
|
122
122
|
queryParameters['question_type'] = requestParameters['questionType'];
|
|
123
123
|
}
|
|
124
|
-
if (requestParameters['
|
|
125
|
-
queryParameters['
|
|
126
|
-
}
|
|
127
|
-
if (requestParameters['tags'] != null) {
|
|
128
|
-
queryParameters['tags'] = requestParameters['tags'];
|
|
124
|
+
if (requestParameters['tagId'] != null) {
|
|
125
|
+
queryParameters['tag_id'] = requestParameters['tagId'];
|
|
129
126
|
}
|
|
130
127
|
if (requestParameters['search'] != null) {
|
|
131
128
|
queryParameters['search'] = requestParameters['search'];
|
|
@@ -252,11 +249,3 @@ export const GetQuestionListQuestionTypeEnum = {
|
|
|
252
249
|
MultipleAnswer: 'multiple_answer',
|
|
253
250
|
FillInBlank: 'fill_in_blank'
|
|
254
251
|
};
|
|
255
|
-
/**
|
|
256
|
-
* @export
|
|
257
|
-
*/
|
|
258
|
-
export const GetQuestionListDifficultyLevelEnum = {
|
|
259
|
-
Beginner: 'beginner',
|
|
260
|
-
Intermediate: 'intermediate',
|
|
261
|
-
Advanced: 'advanced'
|
|
262
|
-
};
|
|
@@ -31,6 +31,8 @@ export function instanceOfContentLibraryTag(value) {
|
|
|
31
31
|
return false;
|
|
32
32
|
if (!('quizCount' in value) || value['quizCount'] === undefined)
|
|
33
33
|
return false;
|
|
34
|
+
if (!('questionCount' in value) || value['questionCount'] === undefined)
|
|
35
|
+
return false;
|
|
34
36
|
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
35
37
|
return false;
|
|
36
38
|
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
@@ -56,6 +58,7 @@ export function ContentLibraryTagFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
56
58
|
'archivedItemCount': json['archived_item_count'],
|
|
57
59
|
'resourceCount': json['resource_count'],
|
|
58
60
|
'quizCount': json['quiz_count'],
|
|
61
|
+
'questionCount': json['question_count'],
|
|
59
62
|
'createdAt': json['created_at'],
|
|
60
63
|
'updatedAt': json['updated_at'],
|
|
61
64
|
};
|
|
@@ -79,6 +82,7 @@ export function ContentLibraryTagToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
79
82
|
'archived_item_count': value['archivedItemCount'],
|
|
80
83
|
'resource_count': value['resourceCount'],
|
|
81
84
|
'quiz_count': value['quizCount'],
|
|
85
|
+
'question_count': value['questionCount'],
|
|
82
86
|
'created_at': value['createdAt'],
|
|
83
87
|
'updated_at': value['updatedAt'],
|
|
84
88
|
};
|
|
@@ -72,6 +72,7 @@ export interface ContentLibraryTagItem {
|
|
|
72
72
|
export declare const ContentLibraryTagItemKindEnum: {
|
|
73
73
|
readonly Resource: "resource";
|
|
74
74
|
readonly Quiz: "quiz";
|
|
75
|
+
readonly Question: "question";
|
|
75
76
|
};
|
|
76
77
|
export type ContentLibraryTagItemKindEnum = typeof ContentLibraryTagItemKindEnum[keyof typeof ContentLibraryTagItemKindEnum];
|
|
77
78
|
/**
|
|
@@ -18,7 +18,8 @@ import { ResourceTypeFromJSON, ResourceTypeToJSON, } from './ResourceType';
|
|
|
18
18
|
*/
|
|
19
19
|
export const ContentLibraryTagItemKindEnum = {
|
|
20
20
|
Resource: 'resource',
|
|
21
|
-
Quiz: 'quiz'
|
|
21
|
+
Quiz: 'quiz',
|
|
22
|
+
Question: 'question'
|
|
22
23
|
};
|
|
23
24
|
/**
|
|
24
25
|
* Check if a given object implements the ContentLibraryTagItem interface.
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { RichTextDocument } from './RichTextDocument';
|
|
13
|
+
import type { ContentLibraryTag } from './ContentLibraryTag';
|
|
13
14
|
import type { GetQuestionAnswerChoicesInner } from './GetQuestionAnswerChoicesInner';
|
|
14
15
|
import type { GetQuestionQuizzesInner } from './GetQuestionQuizzesInner';
|
|
15
16
|
/**
|
|
@@ -55,17 +56,11 @@ export interface GetQuestion {
|
|
|
55
56
|
*/
|
|
56
57
|
explanation?: RichTextDocument;
|
|
57
58
|
/**
|
|
58
|
-
*
|
|
59
|
-
* @type {
|
|
59
|
+
* Shared tags associated with the question
|
|
60
|
+
* @type {Array<ContentLibraryTag>}
|
|
60
61
|
* @memberof GetQuestion
|
|
61
62
|
*/
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* Keywords/tags for granular filtering
|
|
65
|
-
* @type {Array<string>}
|
|
66
|
-
* @memberof GetQuestion
|
|
67
|
-
*/
|
|
68
|
-
tags?: Array<string>;
|
|
63
|
+
tags?: Array<ContentLibraryTag>;
|
|
69
64
|
/**
|
|
70
65
|
* Version identifier for triannual updates
|
|
71
66
|
* @type {string}
|
|
@@ -121,15 +116,6 @@ export declare const GetQuestionQuestionTypeEnum: {
|
|
|
121
116
|
readonly Essay: "essay";
|
|
122
117
|
};
|
|
123
118
|
export type GetQuestionQuestionTypeEnum = typeof GetQuestionQuestionTypeEnum[keyof typeof GetQuestionQuestionTypeEnum];
|
|
124
|
-
/**
|
|
125
|
-
* @export
|
|
126
|
-
*/
|
|
127
|
-
export declare const GetQuestionDifficultyLevelEnum: {
|
|
128
|
-
readonly Beginner: "beginner";
|
|
129
|
-
readonly Intermediate: "intermediate";
|
|
130
|
-
readonly Advanced: "advanced";
|
|
131
|
-
};
|
|
132
|
-
export type GetQuestionDifficultyLevelEnum = typeof GetQuestionDifficultyLevelEnum[keyof typeof GetQuestionDifficultyLevelEnum];
|
|
133
119
|
/**
|
|
134
120
|
* Check if a given object implements the GetQuestion interface.
|
|
135
121
|
*/
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import { RichTextDocumentFromJSON, RichTextDocumentToJSON, } from './RichTextDocument';
|
|
15
|
+
import { ContentLibraryTagFromJSON, ContentLibraryTagToJSON, } from './ContentLibraryTag';
|
|
15
16
|
import { GetQuestionAnswerChoicesInnerFromJSON, GetQuestionAnswerChoicesInnerToJSON, } from './GetQuestionAnswerChoicesInner';
|
|
16
17
|
import { GetQuestionQuizzesInnerFromJSON, } from './GetQuestionQuizzesInner';
|
|
17
18
|
/**
|
|
@@ -25,14 +26,6 @@ export const GetQuestionQuestionTypeEnum = {
|
|
|
25
26
|
Matching: 'matching',
|
|
26
27
|
Essay: 'essay'
|
|
27
28
|
};
|
|
28
|
-
/**
|
|
29
|
-
* @export
|
|
30
|
-
*/
|
|
31
|
-
export const GetQuestionDifficultyLevelEnum = {
|
|
32
|
-
Beginner: 'beginner',
|
|
33
|
-
Intermediate: 'intermediate',
|
|
34
|
-
Advanced: 'advanced'
|
|
35
|
-
};
|
|
36
29
|
/**
|
|
37
30
|
* Check if a given object implements the GetQuestion interface.
|
|
38
31
|
*/
|
|
@@ -43,8 +36,6 @@ export function instanceOfGetQuestion(value) {
|
|
|
43
36
|
return false;
|
|
44
37
|
if (!('questionType' in value) || value['questionType'] === undefined)
|
|
45
38
|
return false;
|
|
46
|
-
if (!('difficultyLevel' in value) || value['difficultyLevel'] === undefined)
|
|
47
|
-
return false;
|
|
48
39
|
if (!('versionNumber' in value) || value['versionNumber'] === undefined)
|
|
49
40
|
return false;
|
|
50
41
|
if (!('createdDate' in value) || value['createdDate'] === undefined)
|
|
@@ -67,8 +58,7 @@ export function GetQuestionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
67
58
|
'answerChoices': json['answer_choices'] == null ? undefined : (json['answer_choices'].map(GetQuestionAnswerChoicesInnerFromJSON)),
|
|
68
59
|
'correctAnswer': json['correct_answer'] == null ? undefined : json['correct_answer'],
|
|
69
60
|
'explanation': json['explanation'] == null ? undefined : RichTextDocumentFromJSON(json['explanation']),
|
|
70
|
-
'
|
|
71
|
-
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
61
|
+
'tags': json['tags'] == null ? undefined : (json['tags'].map(ContentLibraryTagFromJSON)),
|
|
72
62
|
'version': json['version'] == null ? undefined : json['version'],
|
|
73
63
|
'versionNumber': json['version_number'],
|
|
74
64
|
'createdDate': (new Date(json['created_date'])),
|
|
@@ -91,8 +81,7 @@ export function GetQuestionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
91
81
|
'answer_choices': value['answerChoices'] == null ? undefined : (value['answerChoices'].map(GetQuestionAnswerChoicesInnerToJSON)),
|
|
92
82
|
'correct_answer': value['correctAnswer'],
|
|
93
83
|
'explanation': RichTextDocumentToJSON(value['explanation']),
|
|
94
|
-
'
|
|
95
|
-
'tags': value['tags'],
|
|
84
|
+
'tags': value['tags'] == null ? undefined : (value['tags'].map(ContentLibraryTagToJSON)),
|
|
96
85
|
'version': value['version'],
|
|
97
86
|
};
|
|
98
87
|
}
|
|
@@ -22,17 +22,11 @@ export interface GetQuestionListFilters {
|
|
|
22
22
|
*/
|
|
23
23
|
questionType?: GetQuestionListFiltersQuestionTypeEnum;
|
|
24
24
|
/**
|
|
25
|
-
* Filter by
|
|
26
|
-
* @type {
|
|
27
|
-
* @memberof GetQuestionListFilters
|
|
28
|
-
*/
|
|
29
|
-
difficultyLevel?: GetQuestionListFiltersDifficultyLevelEnum;
|
|
30
|
-
/**
|
|
31
|
-
* Filter by tags/keywords
|
|
32
|
-
* @type {Array<string>}
|
|
25
|
+
* Filter by a shared tag
|
|
26
|
+
* @type {string}
|
|
33
27
|
* @memberof GetQuestionListFilters
|
|
34
28
|
*/
|
|
35
|
-
|
|
29
|
+
tagId?: string;
|
|
36
30
|
/**
|
|
37
31
|
* Search in question text
|
|
38
32
|
* @type {string}
|
|
@@ -64,15 +58,6 @@ export declare const GetQuestionListFiltersQuestionTypeEnum: {
|
|
|
64
58
|
readonly Essay: "essay";
|
|
65
59
|
};
|
|
66
60
|
export type GetQuestionListFiltersQuestionTypeEnum = typeof GetQuestionListFiltersQuestionTypeEnum[keyof typeof GetQuestionListFiltersQuestionTypeEnum];
|
|
67
|
-
/**
|
|
68
|
-
* @export
|
|
69
|
-
*/
|
|
70
|
-
export declare const GetQuestionListFiltersDifficultyLevelEnum: {
|
|
71
|
-
readonly Beginner: "beginner";
|
|
72
|
-
readonly Intermediate: "intermediate";
|
|
73
|
-
readonly Advanced: "advanced";
|
|
74
|
-
};
|
|
75
|
-
export type GetQuestionListFiltersDifficultyLevelEnum = typeof GetQuestionListFiltersDifficultyLevelEnum[keyof typeof GetQuestionListFiltersDifficultyLevelEnum];
|
|
76
61
|
/**
|
|
77
62
|
* Check if a given object implements the GetQuestionListFilters interface.
|
|
78
63
|
*/
|
|
@@ -22,14 +22,6 @@ export const GetQuestionListFiltersQuestionTypeEnum = {
|
|
|
22
22
|
Matching: 'matching',
|
|
23
23
|
Essay: 'essay'
|
|
24
24
|
};
|
|
25
|
-
/**
|
|
26
|
-
* @export
|
|
27
|
-
*/
|
|
28
|
-
export const GetQuestionListFiltersDifficultyLevelEnum = {
|
|
29
|
-
Beginner: 'beginner',
|
|
30
|
-
Intermediate: 'intermediate',
|
|
31
|
-
Advanced: 'advanced'
|
|
32
|
-
};
|
|
33
25
|
/**
|
|
34
26
|
* Check if a given object implements the GetQuestionListFilters interface.
|
|
35
27
|
*/
|
|
@@ -45,8 +37,7 @@ export function GetQuestionListFiltersFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
45
37
|
}
|
|
46
38
|
return {
|
|
47
39
|
'questionType': json['question_type'] == null ? undefined : json['question_type'],
|
|
48
|
-
'
|
|
49
|
-
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
40
|
+
'tagId': json['tag_id'] == null ? undefined : json['tag_id'],
|
|
50
41
|
'search': json['search'] == null ? undefined : json['search'],
|
|
51
42
|
'createdAfter': json['created_after'] == null ? undefined : (new Date(json['created_after'])),
|
|
52
43
|
'createdBefore': json['created_before'] == null ? undefined : (new Date(json['created_before'])),
|
|
@@ -61,8 +52,7 @@ export function GetQuestionListFiltersToJSONTyped(value, ignoreDiscriminator = f
|
|
|
61
52
|
}
|
|
62
53
|
return {
|
|
63
54
|
'question_type': value['questionType'],
|
|
64
|
-
'
|
|
65
|
-
'tags': value['tags'],
|
|
55
|
+
'tag_id': value['tagId'],
|
|
66
56
|
'search': value['search'],
|
|
67
57
|
'created_after': value['createdAfter'] == null ? value['createdAfter'] : value['createdAfter'].toISOString().substring(0, 10),
|
|
68
58
|
'created_before': value['createdBefore'] == null ? value['createdBefore'] : value['createdBefore'].toISOString().substring(0, 10),
|
|
@@ -46,12 +46,6 @@ export interface LibraryQuizCriteriaPreviewQuestion {
|
|
|
46
46
|
* @memberof LibraryQuizCriteriaPreviewQuestion
|
|
47
47
|
*/
|
|
48
48
|
version?: string | null;
|
|
49
|
-
/**
|
|
50
|
-
*
|
|
51
|
-
* @type {LibraryQuizCriteriaPreviewQuestionDifficultyLevelEnum}
|
|
52
|
-
* @memberof LibraryQuizCriteriaPreviewQuestion
|
|
53
|
-
*/
|
|
54
|
-
difficultyLevel: LibraryQuizCriteriaPreviewQuestionDifficultyLevelEnum;
|
|
55
49
|
/**
|
|
56
50
|
*
|
|
57
51
|
* @type {Array<string>}
|
|
@@ -71,15 +65,6 @@ export declare const LibraryQuizCriteriaPreviewQuestionQuestionTypeEnum: {
|
|
|
71
65
|
readonly Essay: "essay";
|
|
72
66
|
};
|
|
73
67
|
export type LibraryQuizCriteriaPreviewQuestionQuestionTypeEnum = typeof LibraryQuizCriteriaPreviewQuestionQuestionTypeEnum[keyof typeof LibraryQuizCriteriaPreviewQuestionQuestionTypeEnum];
|
|
74
|
-
/**
|
|
75
|
-
* @export
|
|
76
|
-
*/
|
|
77
|
-
export declare const LibraryQuizCriteriaPreviewQuestionDifficultyLevelEnum: {
|
|
78
|
-
readonly Beginner: "beginner";
|
|
79
|
-
readonly Intermediate: "intermediate";
|
|
80
|
-
readonly Advanced: "advanced";
|
|
81
|
-
};
|
|
82
|
-
export type LibraryQuizCriteriaPreviewQuestionDifficultyLevelEnum = typeof LibraryQuizCriteriaPreviewQuestionDifficultyLevelEnum[keyof typeof LibraryQuizCriteriaPreviewQuestionDifficultyLevelEnum];
|
|
83
68
|
/**
|
|
84
69
|
* Check if a given object implements the LibraryQuizCriteriaPreviewQuestion interface.
|
|
85
70
|
*/
|
|
@@ -23,14 +23,6 @@ export const LibraryQuizCriteriaPreviewQuestionQuestionTypeEnum = {
|
|
|
23
23
|
Matching: 'matching',
|
|
24
24
|
Essay: 'essay'
|
|
25
25
|
};
|
|
26
|
-
/**
|
|
27
|
-
* @export
|
|
28
|
-
*/
|
|
29
|
-
export const LibraryQuizCriteriaPreviewQuestionDifficultyLevelEnum = {
|
|
30
|
-
Beginner: 'beginner',
|
|
31
|
-
Intermediate: 'intermediate',
|
|
32
|
-
Advanced: 'advanced'
|
|
33
|
-
};
|
|
34
26
|
/**
|
|
35
27
|
* Check if a given object implements the LibraryQuizCriteriaPreviewQuestion interface.
|
|
36
28
|
*/
|
|
@@ -43,8 +35,6 @@ export function instanceOfLibraryQuizCriteriaPreviewQuestion(value) {
|
|
|
43
35
|
return false;
|
|
44
36
|
if (!('versionNumber' in value) || value['versionNumber'] === undefined)
|
|
45
37
|
return false;
|
|
46
|
-
if (!('difficultyLevel' in value) || value['difficultyLevel'] === undefined)
|
|
47
|
-
return false;
|
|
48
38
|
if (!('tags' in value) || value['tags'] === undefined)
|
|
49
39
|
return false;
|
|
50
40
|
return true;
|
|
@@ -62,7 +52,6 @@ export function LibraryQuizCriteriaPreviewQuestionFromJSONTyped(json, ignoreDisc
|
|
|
62
52
|
'questionType': json['question_type'],
|
|
63
53
|
'versionNumber': json['version_number'],
|
|
64
54
|
'version': json['version'] == null ? undefined : json['version'],
|
|
65
|
-
'difficultyLevel': json['difficulty_level'],
|
|
66
55
|
'tags': json['tags'],
|
|
67
56
|
};
|
|
68
57
|
}
|
|
@@ -79,7 +68,6 @@ export function LibraryQuizCriteriaPreviewQuestionToJSONTyped(value, ignoreDiscr
|
|
|
79
68
|
'question_type': value['questionType'],
|
|
80
69
|
'version_number': value['versionNumber'],
|
|
81
70
|
'version': value['version'],
|
|
82
|
-
'difficulty_level': value['difficultyLevel'],
|
|
83
71
|
'tags': value['tags'],
|
|
84
72
|
};
|
|
85
73
|
}
|
|
@@ -21,12 +21,6 @@ export interface LibraryQuizCriterion {
|
|
|
21
21
|
* @memberof LibraryQuizCriterion
|
|
22
22
|
*/
|
|
23
23
|
id?: string | null;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {LibraryQuizCriterionDifficultyLevelEnum}
|
|
27
|
-
* @memberof LibraryQuizCriterion
|
|
28
|
-
*/
|
|
29
|
-
difficultyLevel?: LibraryQuizCriterionDifficultyLevelEnum | null;
|
|
30
24
|
/**
|
|
31
25
|
*
|
|
32
26
|
* @type {LibraryQuizCriterionQuestionTypeEnum}
|
|
@@ -58,15 +52,6 @@ export interface LibraryQuizCriterion {
|
|
|
58
52
|
*/
|
|
59
53
|
priority: number;
|
|
60
54
|
}
|
|
61
|
-
/**
|
|
62
|
-
* @export
|
|
63
|
-
*/
|
|
64
|
-
export declare const LibraryQuizCriterionDifficultyLevelEnum: {
|
|
65
|
-
readonly Beginner: "beginner";
|
|
66
|
-
readonly Intermediate: "intermediate";
|
|
67
|
-
readonly Advanced: "advanced";
|
|
68
|
-
};
|
|
69
|
-
export type LibraryQuizCriterionDifficultyLevelEnum = typeof LibraryQuizCriterionDifficultyLevelEnum[keyof typeof LibraryQuizCriterionDifficultyLevelEnum];
|
|
70
55
|
/**
|
|
71
56
|
* @export
|
|
72
57
|
*/
|