@easyedu/js-lsm-api 1.132.0 → 1.133.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/.openapi-generator/FILES +4 -0
  2. package/README.md +5 -2
  3. package/dist/apis/PortalApi.d.ts +9 -0
  4. package/dist/apis/PortalApi.js +11 -1
  5. package/dist/apis/QuestionApi.d.ts +19 -0
  6. package/dist/apis/QuestionApi.js +44 -0
  7. package/dist/esm/apis/PortalApi.d.ts +9 -0
  8. package/dist/esm/apis/PortalApi.js +10 -0
  9. package/dist/esm/apis/QuestionApi.d.ts +19 -0
  10. package/dist/esm/apis/QuestionApi.js +44 -0
  11. package/dist/esm/models/GetCourseEnrollmentListItem.d.ts +6 -0
  12. package/dist/esm/models/GetCourseEnrollmentListItem.js +2 -0
  13. package/dist/esm/models/GetResourceUsageCoursesInner.d.ts +6 -0
  14. package/dist/esm/models/GetResourceUsageCoursesInner.js +4 -0
  15. package/dist/esm/models/PostQuestionTags.d.ts +38 -0
  16. package/dist/esm/models/PostQuestionTags.js +47 -0
  17. package/dist/esm/models/PostQuestionTagsResponse.d.ts +32 -0
  18. package/dist/esm/models/PostQuestionTagsResponse.js +43 -0
  19. package/dist/esm/models/index.d.ts +2 -0
  20. package/dist/esm/models/index.js +2 -0
  21. package/dist/models/GetCourseEnrollmentListItem.d.ts +6 -0
  22. package/dist/models/GetCourseEnrollmentListItem.js +2 -0
  23. package/dist/models/GetResourceUsageCoursesInner.d.ts +6 -0
  24. package/dist/models/GetResourceUsageCoursesInner.js +4 -0
  25. package/dist/models/PostQuestionTags.d.ts +38 -0
  26. package/dist/models/PostQuestionTags.js +54 -0
  27. package/dist/models/PostQuestionTagsResponse.d.ts +32 -0
  28. package/dist/models/PostQuestionTagsResponse.js +50 -0
  29. package/dist/models/index.d.ts +2 -0
  30. package/dist/models/index.js +2 -0
  31. package/docs/GetCourseEnrollmentListItem.md +2 -0
  32. package/docs/GetResourceUsageCoursesInner.md +2 -0
  33. package/docs/PortalApi.md +4 -1
  34. package/docs/PostQuestionTags.md +37 -0
  35. package/docs/PostQuestionTagsResponse.md +34 -0
  36. package/docs/QuestionApi.md +71 -0
  37. package/package.json +1 -1
  38. package/src/apis/PortalApi.ts +13 -0
  39. package/src/apis/QuestionApi.ts +63 -0
  40. package/src/models/GetCourseEnrollmentListItem.ts +8 -0
  41. package/src/models/GetResourceUsageCoursesInner.ts +9 -0
  42. package/src/models/PostQuestionTags.ts +75 -0
  43. package/src/models/PostQuestionTagsResponse.ts +66 -0
  44. package/src/models/index.ts +2 -0
@@ -299,6 +299,8 @@ docs/PostQuestionImportCommit.md
299
299
  docs/PostQuestionImportCommitItem.md
300
300
  docs/PostQuestionImportCommitResponse.md
301
301
  docs/PostQuestionImportParseResponse.md
302
+ docs/PostQuestionTags.md
303
+ docs/PostQuestionTagsResponse.md
302
304
  docs/PostReportExport.md
303
305
  docs/PostReportQuery.md
304
306
  docs/PostResetPassword.md
@@ -737,6 +739,8 @@ src/models/PostQuestionImportCommit.ts
737
739
  src/models/PostQuestionImportCommitItem.ts
738
740
  src/models/PostQuestionImportCommitResponse.ts
739
741
  src/models/PostQuestionImportParseResponse.ts
742
+ src/models/PostQuestionTags.ts
743
+ src/models/PostQuestionTagsResponse.ts
740
744
  src/models/PostReportExport.ts
741
745
  src/models/PostReportQuery.ts
742
746
  src/models/PostResetPassword.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @easyedu/js-lsm-api@1.132.0
1
+ # @easyedu/js-lsm-api@1.133.0
2
2
 
3
3
  A TypeScript SDK client for the sbzw93t49b.execute-api.us-east-2.amazonaws.com API.
4
4
 
@@ -361,6 +361,7 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
361
361
  *QuestionApi* | [**getQuestionList**](docs/QuestionApi.md#getquestionlist) | **GET** /questions | Get list of questions with filtering and pagination
362
362
  *QuestionApi* | [**getQuestionVersions**](docs/QuestionApi.md#getquestionversions) | **GET** /questions/{questionId}/versions | Get all versions of a question
363
363
  *QuestionApi* | [**postQuestion**](docs/QuestionApi.md#postquestion) | **POST** /questions | Create a new question
364
+ *QuestionApi* | [**postQuestionTags**](docs/QuestionApi.md#postquestiontags) | **POST** /questions/tags | Add tags to several questions
364
365
  *QuestionApi* | [**putQuestion**](docs/QuestionApi.md#putquestion) | **PUT** /questions/{questionId} | Create the next version of a question
365
366
  *QuestionImportApi* | [**postQuestionImportCommit**](docs/QuestionImportApi.md#postquestionimportcommit) | **POST** /question-imports/commit | Validate and atomically create, version, or skip approved question drafts
366
367
  *QuestionImportApi* | [**postQuestionImportParse**](docs/QuestionImportApi.md#postquestionimportparse) | **POST** /question-imports/parse | Parse a question document into stateless review drafts
@@ -698,6 +699,8 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
698
699
  - [PostQuestionImportCommitItem](docs/PostQuestionImportCommitItem.md)
699
700
  - [PostQuestionImportCommitResponse](docs/PostQuestionImportCommitResponse.md)
700
701
  - [PostQuestionImportParseResponse](docs/PostQuestionImportParseResponse.md)
702
+ - [PostQuestionTags](docs/PostQuestionTags.md)
703
+ - [PostQuestionTagsResponse](docs/PostQuestionTagsResponse.md)
701
704
  - [PostReportExport](docs/PostReportExport.md)
702
705
  - [PostReportQuery](docs/PostReportQuery.md)
703
706
  - [PostResetPassword](docs/PostResetPassword.md)
@@ -831,7 +834,7 @@ and is automatically generated by the
831
834
  [OpenAPI Generator](https://openapi-generator.tech) project:
832
835
 
833
836
  - API version: `1.0.0`
834
- - Package version: `1.132.0`
837
+ - Package version: `1.133.0`
835
838
  - Generator version: `7.22.0`
836
839
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
837
840
 
@@ -50,6 +50,7 @@ export interface GetPortalUsersRequest {
50
50
  type?: GetPortalUsersTypeEnum;
51
51
  roles?: Array<GetPortalUsersRolesEnum>;
52
52
  search?: string;
53
+ status?: GetPortalUsersStatusEnum;
53
54
  page?: number;
54
55
  pageSize?: number;
55
56
  }
@@ -368,3 +369,11 @@ export declare const GetPortalUsersRolesEnum: {
368
369
  readonly Learner: "Learner";
369
370
  };
370
371
  export type GetPortalUsersRolesEnum = typeof GetPortalUsersRolesEnum[keyof typeof GetPortalUsersRolesEnum];
372
+ /**
373
+ * @export
374
+ */
375
+ export declare const GetPortalUsersStatusEnum: {
376
+ readonly Active: "active";
377
+ readonly Removed: "removed";
378
+ };
379
+ export type GetPortalUsersStatusEnum = typeof GetPortalUsersStatusEnum[keyof typeof GetPortalUsersStatusEnum];
@@ -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.GetPortalUsersRolesEnum = exports.GetPortalUsersTypeEnum = exports.PortalApi = void 0;
25
+ exports.GetPortalUsersStatusEnum = exports.GetPortalUsersRolesEnum = exports.GetPortalUsersTypeEnum = exports.PortalApi = void 0;
26
26
  const runtime = require("../runtime");
27
27
  const GetPortal_1 = require("../models/GetPortal");
28
28
  const GetPortalFaviconUpload_1 = require("../models/GetPortalFaviconUpload");
@@ -369,6 +369,9 @@ class PortalApi extends runtime.BaseAPI {
369
369
  if (requestParameters['search'] != null) {
370
370
  queryParameters['search'] = requestParameters['search'];
371
371
  }
372
+ if (requestParameters['status'] != null) {
373
+ queryParameters['status'] = requestParameters['status'];
374
+ }
372
375
  if (requestParameters['page'] != null) {
373
376
  queryParameters['page'] = requestParameters['page'];
374
377
  }
@@ -955,3 +958,10 @@ exports.GetPortalUsersRolesEnum = {
955
958
  Instructor: 'Instructor',
956
959
  Learner: 'Learner'
957
960
  };
961
+ /**
962
+ * @export
963
+ */
964
+ exports.GetPortalUsersStatusEnum = {
965
+ Active: 'active',
966
+ Removed: 'removed'
967
+ };
@@ -13,6 +13,8 @@ import * as runtime from '../runtime';
13
13
  import { type GetQuestion } from '../models/GetQuestion';
14
14
  import { type GetQuestionList } from '../models/GetQuestionList';
15
15
  import { type PostQuestion } from '../models/PostQuestion';
16
+ import { type PostQuestionTags } from '../models/PostQuestionTags';
17
+ import { type PostQuestionTagsResponse } from '../models/PostQuestionTagsResponse';
16
18
  import { type PutQuestion } from '../models/PutQuestion';
17
19
  export interface DeleteQuestionRequest {
18
20
  questionId: string;
@@ -33,6 +35,9 @@ export interface GetQuestionVersionsRequest {
33
35
  export interface PostQuestionRequest {
34
36
  postQuestion: PostQuestion;
35
37
  }
38
+ export interface PostQuestionTagsRequest {
39
+ postQuestionTags: PostQuestionTags;
40
+ }
36
41
  export interface PutQuestionRequest {
37
42
  questionId: string;
38
43
  putQuestion: PutQuestion;
@@ -101,6 +106,20 @@ export declare class QuestionApi extends runtime.BaseAPI {
101
106
  * Create a new question
102
107
  */
103
108
  postQuestion(requestParameters: PostQuestionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetQuestion>;
109
+ /**
110
+ * Creates request options for postQuestionTags without sending the request
111
+ */
112
+ postQuestionTagsRequestOpts(requestParameters: PostQuestionTagsRequest): Promise<runtime.RequestOpts>;
113
+ /**
114
+ * Adds the given tags to every listed question, keeping existing tags. Tags are metadata, so no new question versions are created.
115
+ * Add tags to several questions
116
+ */
117
+ postQuestionTagsRaw(requestParameters: PostQuestionTagsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PostQuestionTagsResponse>>;
118
+ /**
119
+ * Adds the given tags to every listed question, keeping existing tags. Tags are metadata, so no new question versions are created.
120
+ * Add tags to several questions
121
+ */
122
+ postQuestionTags(requestParameters: PostQuestionTagsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PostQuestionTagsResponse>;
104
123
  /**
105
124
  * Creates request options for putQuestion without sending the request
106
125
  */
@@ -27,6 +27,8 @@ const runtime = require("../runtime");
27
27
  const GetQuestion_1 = require("../models/GetQuestion");
28
28
  const GetQuestionList_1 = require("../models/GetQuestionList");
29
29
  const PostQuestion_1 = require("../models/PostQuestion");
30
+ const PostQuestionTags_1 = require("../models/PostQuestionTags");
31
+ const PostQuestionTagsResponse_1 = require("../models/PostQuestionTagsResponse");
30
32
  const PutQuestion_1 = require("../models/PutQuestion");
31
33
  /**
32
34
  *
@@ -238,6 +240,48 @@ class QuestionApi extends runtime.BaseAPI {
238
240
  return yield response.value();
239
241
  });
240
242
  }
243
+ /**
244
+ * Creates request options for postQuestionTags without sending the request
245
+ */
246
+ postQuestionTagsRequestOpts(requestParameters) {
247
+ return __awaiter(this, void 0, void 0, function* () {
248
+ if (requestParameters['postQuestionTags'] == null) {
249
+ throw new runtime.RequiredError('postQuestionTags', 'Required parameter "postQuestionTags" was null or undefined when calling postQuestionTags().');
250
+ }
251
+ const queryParameters = {};
252
+ const headerParameters = {};
253
+ headerParameters['Content-Type'] = 'application/json';
254
+ let urlPath = `/questions/tags`;
255
+ return {
256
+ path: urlPath,
257
+ method: 'POST',
258
+ headers: headerParameters,
259
+ query: queryParameters,
260
+ body: (0, PostQuestionTags_1.PostQuestionTagsToJSON)(requestParameters['postQuestionTags']),
261
+ };
262
+ });
263
+ }
264
+ /**
265
+ * Adds the given tags to every listed question, keeping existing tags. Tags are metadata, so no new question versions are created.
266
+ * Add tags to several questions
267
+ */
268
+ postQuestionTagsRaw(requestParameters, initOverrides) {
269
+ return __awaiter(this, void 0, void 0, function* () {
270
+ const requestOptions = yield this.postQuestionTagsRequestOpts(requestParameters);
271
+ const response = yield this.request(requestOptions, initOverrides);
272
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, PostQuestionTagsResponse_1.PostQuestionTagsResponseFromJSON)(jsonValue));
273
+ });
274
+ }
275
+ /**
276
+ * Adds the given tags to every listed question, keeping existing tags. Tags are metadata, so no new question versions are created.
277
+ * Add tags to several questions
278
+ */
279
+ postQuestionTags(requestParameters, initOverrides) {
280
+ return __awaiter(this, void 0, void 0, function* () {
281
+ const response = yield this.postQuestionTagsRaw(requestParameters, initOverrides);
282
+ return yield response.value();
283
+ });
284
+ }
241
285
  /**
242
286
  * Creates request options for putQuestion without sending the request
243
287
  */
@@ -50,6 +50,7 @@ export interface GetPortalUsersRequest {
50
50
  type?: GetPortalUsersTypeEnum;
51
51
  roles?: Array<GetPortalUsersRolesEnum>;
52
52
  search?: string;
53
+ status?: GetPortalUsersStatusEnum;
53
54
  page?: number;
54
55
  pageSize?: number;
55
56
  }
@@ -368,3 +369,11 @@ export declare const GetPortalUsersRolesEnum: {
368
369
  readonly Learner: "Learner";
369
370
  };
370
371
  export type GetPortalUsersRolesEnum = typeof GetPortalUsersRolesEnum[keyof typeof GetPortalUsersRolesEnum];
372
+ /**
373
+ * @export
374
+ */
375
+ export declare const GetPortalUsersStatusEnum: {
376
+ readonly Active: "active";
377
+ readonly Removed: "removed";
378
+ };
379
+ export type GetPortalUsersStatusEnum = typeof GetPortalUsersStatusEnum[keyof typeof GetPortalUsersStatusEnum];
@@ -366,6 +366,9 @@ export class PortalApi extends runtime.BaseAPI {
366
366
  if (requestParameters['search'] != null) {
367
367
  queryParameters['search'] = requestParameters['search'];
368
368
  }
369
+ if (requestParameters['status'] != null) {
370
+ queryParameters['status'] = requestParameters['status'];
371
+ }
369
372
  if (requestParameters['page'] != null) {
370
373
  queryParameters['page'] = requestParameters['page'];
371
374
  }
@@ -951,3 +954,10 @@ export const GetPortalUsersRolesEnum = {
951
954
  Instructor: 'Instructor',
952
955
  Learner: 'Learner'
953
956
  };
957
+ /**
958
+ * @export
959
+ */
960
+ export const GetPortalUsersStatusEnum = {
961
+ Active: 'active',
962
+ Removed: 'removed'
963
+ };
@@ -13,6 +13,8 @@ import * as runtime from '../runtime';
13
13
  import { type GetQuestion } from '../models/GetQuestion';
14
14
  import { type GetQuestionList } from '../models/GetQuestionList';
15
15
  import { type PostQuestion } from '../models/PostQuestion';
16
+ import { type PostQuestionTags } from '../models/PostQuestionTags';
17
+ import { type PostQuestionTagsResponse } from '../models/PostQuestionTagsResponse';
16
18
  import { type PutQuestion } from '../models/PutQuestion';
17
19
  export interface DeleteQuestionRequest {
18
20
  questionId: string;
@@ -33,6 +35,9 @@ export interface GetQuestionVersionsRequest {
33
35
  export interface PostQuestionRequest {
34
36
  postQuestion: PostQuestion;
35
37
  }
38
+ export interface PostQuestionTagsRequest {
39
+ postQuestionTags: PostQuestionTags;
40
+ }
36
41
  export interface PutQuestionRequest {
37
42
  questionId: string;
38
43
  putQuestion: PutQuestion;
@@ -101,6 +106,20 @@ export declare class QuestionApi extends runtime.BaseAPI {
101
106
  * Create a new question
102
107
  */
103
108
  postQuestion(requestParameters: PostQuestionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetQuestion>;
109
+ /**
110
+ * Creates request options for postQuestionTags without sending the request
111
+ */
112
+ postQuestionTagsRequestOpts(requestParameters: PostQuestionTagsRequest): Promise<runtime.RequestOpts>;
113
+ /**
114
+ * Adds the given tags to every listed question, keeping existing tags. Tags are metadata, so no new question versions are created.
115
+ * Add tags to several questions
116
+ */
117
+ postQuestionTagsRaw(requestParameters: PostQuestionTagsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PostQuestionTagsResponse>>;
118
+ /**
119
+ * Adds the given tags to every listed question, keeping existing tags. Tags are metadata, so no new question versions are created.
120
+ * Add tags to several questions
121
+ */
122
+ postQuestionTags(requestParameters: PostQuestionTagsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PostQuestionTagsResponse>;
104
123
  /**
105
124
  * Creates request options for putQuestion without sending the request
106
125
  */
@@ -24,6 +24,8 @@ import * as runtime from '../runtime';
24
24
  import { GetQuestionFromJSON, } from '../models/GetQuestion';
25
25
  import { GetQuestionListFromJSON, } from '../models/GetQuestionList';
26
26
  import { PostQuestionToJSON, } from '../models/PostQuestion';
27
+ import { PostQuestionTagsToJSON, } from '../models/PostQuestionTags';
28
+ import { PostQuestionTagsResponseFromJSON, } from '../models/PostQuestionTagsResponse';
27
29
  import { PutQuestionToJSON, } from '../models/PutQuestion';
28
30
  /**
29
31
  *
@@ -235,6 +237,48 @@ export class QuestionApi extends runtime.BaseAPI {
235
237
  return yield response.value();
236
238
  });
237
239
  }
240
+ /**
241
+ * Creates request options for postQuestionTags without sending the request
242
+ */
243
+ postQuestionTagsRequestOpts(requestParameters) {
244
+ return __awaiter(this, void 0, void 0, function* () {
245
+ if (requestParameters['postQuestionTags'] == null) {
246
+ throw new runtime.RequiredError('postQuestionTags', 'Required parameter "postQuestionTags" was null or undefined when calling postQuestionTags().');
247
+ }
248
+ const queryParameters = {};
249
+ const headerParameters = {};
250
+ headerParameters['Content-Type'] = 'application/json';
251
+ let urlPath = `/questions/tags`;
252
+ return {
253
+ path: urlPath,
254
+ method: 'POST',
255
+ headers: headerParameters,
256
+ query: queryParameters,
257
+ body: PostQuestionTagsToJSON(requestParameters['postQuestionTags']),
258
+ };
259
+ });
260
+ }
261
+ /**
262
+ * Adds the given tags to every listed question, keeping existing tags. Tags are metadata, so no new question versions are created.
263
+ * Add tags to several questions
264
+ */
265
+ postQuestionTagsRaw(requestParameters, initOverrides) {
266
+ return __awaiter(this, void 0, void 0, function* () {
267
+ const requestOptions = yield this.postQuestionTagsRequestOpts(requestParameters);
268
+ const response = yield this.request(requestOptions, initOverrides);
269
+ return new runtime.JSONApiResponse(response, (jsonValue) => PostQuestionTagsResponseFromJSON(jsonValue));
270
+ });
271
+ }
272
+ /**
273
+ * Adds the given tags to every listed question, keeping existing tags. Tags are metadata, so no new question versions are created.
274
+ * Add tags to several questions
275
+ */
276
+ postQuestionTags(requestParameters, initOverrides) {
277
+ return __awaiter(this, void 0, void 0, function* () {
278
+ const response = yield this.postQuestionTagsRaw(requestParameters, initOverrides);
279
+ return yield response.value();
280
+ });
281
+ }
238
282
  /**
239
283
  * Creates request options for putQuestion without sending the request
240
284
  */
@@ -57,6 +57,12 @@ export interface GetCourseEnrollmentListItem {
57
57
  * @memberof GetCourseEnrollmentListItem
58
58
  */
59
59
  lastName: string;
60
+ /**
61
+ * Contact email of the enrolled user. Only populated for Instructor enrollments so learners can contact course instructors; null for Student enrollments.
62
+ * @type {string}
63
+ * @memberof GetCourseEnrollmentListItem
64
+ */
65
+ email?: string | null;
60
66
  /**
61
67
  * Start date of the enrollment (Unix timestamp)
62
68
  * @type {number}
@@ -94,6 +94,7 @@ export function GetCourseEnrollmentListItemFromJSONTyped(json, ignoreDiscriminat
94
94
  'courseVersionNumber': json['course_version_number'],
95
95
  'firstName': json['first_name'],
96
96
  'lastName': json['last_name'],
97
+ 'email': json['email'] == null ? undefined : json['email'],
97
98
  'enrollmentDateStart': json['enrollment_date_start'],
98
99
  'enrollmentDateEnd': json['enrollment_date_end'],
99
100
  'status': json['status'],
@@ -118,6 +119,7 @@ export function GetCourseEnrollmentListItemToJSONTyped(value, ignoreDiscriminato
118
119
  'course_version_number': value['courseVersionNumber'],
119
120
  'first_name': value['firstName'],
120
121
  'last_name': value['lastName'],
122
+ 'email': value['email'],
121
123
  'enrollment_date_start': value['enrollmentDateStart'],
122
124
  'enrollment_date_end': value['enrollmentDateEnd'],
123
125
  'status': value['status'],
@@ -22,6 +22,12 @@ export interface GetResourceUsageCoursesInner {
22
22
  * @memberof GetResourceUsageCoursesInner
23
23
  */
24
24
  courseId: string;
25
+ /**
26
+ * Display name of the course
27
+ * @type {string}
28
+ * @memberof GetResourceUsageCoursesInner
29
+ */
30
+ courseName: string;
25
31
  /**
26
32
  *
27
33
  * @type {string}
@@ -18,6 +18,8 @@ import { ContentLibraryVersionStatusFromJSON, ContentLibraryVersionStatusToJSON,
18
18
  export function instanceOfGetResourceUsageCoursesInner(value) {
19
19
  if (!('courseId' in value) || value['courseId'] === undefined)
20
20
  return false;
21
+ if (!('courseName' in value) || value['courseName'] === undefined)
22
+ return false;
21
23
  if (!('courseVersionId' in value) || value['courseVersionId'] === undefined)
22
24
  return false;
23
25
  if (!('courseVersionNumber' in value) || value['courseVersionNumber'] === undefined)
@@ -39,6 +41,7 @@ export function GetResourceUsageCoursesInnerFromJSONTyped(json, ignoreDiscrimina
39
41
  }
40
42
  return {
41
43
  'courseId': json['course_id'],
44
+ 'courseName': json['course_name'],
42
45
  'courseVersionId': json['course_version_id'],
43
46
  'courseVersionNumber': json['course_version_number'],
44
47
  'courseStatus': ContentLibraryVersionStatusFromJSON(json['course_status']),
@@ -55,6 +58,7 @@ export function GetResourceUsageCoursesInnerToJSONTyped(value, ignoreDiscriminat
55
58
  }
56
59
  return {
57
60
  'course_id': value['courseId'],
61
+ 'course_name': value['courseName'],
58
62
  'course_version_id': value['courseVersionId'],
59
63
  'course_version_number': value['courseVersionNumber'],
60
64
  'course_status': ContentLibraryVersionStatusToJSON(value['courseStatus']),
@@ -0,0 +1,38 @@
1
+ /**
2
+ * LMS API
3
+ * LMS API
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * Adds shared tags to several questions at once without creating new question versions.
14
+ * @export
15
+ * @interface PostQuestionTags
16
+ */
17
+ export interface PostQuestionTags {
18
+ /**
19
+ * External IDs of the questions to tag
20
+ * @type {Array<string>}
21
+ * @memberof PostQuestionTags
22
+ */
23
+ questionIds: Array<string>;
24
+ /**
25
+ * Tag names to add. Existing tags on each question are kept.
26
+ * @type {Array<string>}
27
+ * @memberof PostQuestionTags
28
+ */
29
+ tags: Array<string>;
30
+ }
31
+ /**
32
+ * Check if a given object implements the PostQuestionTags interface.
33
+ */
34
+ export declare function instanceOfPostQuestionTags(value: object): value is PostQuestionTags;
35
+ export declare function PostQuestionTagsFromJSON(json: any): PostQuestionTags;
36
+ export declare function PostQuestionTagsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostQuestionTags;
37
+ export declare function PostQuestionTagsToJSON(json: any): PostQuestionTags;
38
+ export declare function PostQuestionTagsToJSONTyped(value?: PostQuestionTags | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,47 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * LMS API
5
+ * LMS API
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the PostQuestionTags interface.
16
+ */
17
+ export function instanceOfPostQuestionTags(value) {
18
+ if (!('questionIds' in value) || value['questionIds'] === undefined)
19
+ return false;
20
+ if (!('tags' in value) || value['tags'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function PostQuestionTagsFromJSON(json) {
25
+ return PostQuestionTagsFromJSONTyped(json, false);
26
+ }
27
+ export function PostQuestionTagsFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'questionIds': json['question_ids'],
33
+ 'tags': json['tags'],
34
+ };
35
+ }
36
+ export function PostQuestionTagsToJSON(json) {
37
+ return PostQuestionTagsToJSONTyped(json, false);
38
+ }
39
+ export function PostQuestionTagsToJSONTyped(value, ignoreDiscriminator = false) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'question_ids': value['questionIds'],
45
+ 'tags': value['tags'],
46
+ };
47
+ }
@@ -0,0 +1,32 @@
1
+ /**
2
+ * LMS API
3
+ * LMS API
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface PostQuestionTagsResponse
16
+ */
17
+ export interface PostQuestionTagsResponse {
18
+ /**
19
+ * Number of questions that received the tags
20
+ * @type {number}
21
+ * @memberof PostQuestionTagsResponse
22
+ */
23
+ updatedCount: number;
24
+ }
25
+ /**
26
+ * Check if a given object implements the PostQuestionTagsResponse interface.
27
+ */
28
+ export declare function instanceOfPostQuestionTagsResponse(value: object): value is PostQuestionTagsResponse;
29
+ export declare function PostQuestionTagsResponseFromJSON(json: any): PostQuestionTagsResponse;
30
+ export declare function PostQuestionTagsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostQuestionTagsResponse;
31
+ export declare function PostQuestionTagsResponseToJSON(json: any): PostQuestionTagsResponse;
32
+ export declare function PostQuestionTagsResponseToJSONTyped(value?: PostQuestionTagsResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,43 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * LMS API
5
+ * LMS API
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the PostQuestionTagsResponse interface.
16
+ */
17
+ export function instanceOfPostQuestionTagsResponse(value) {
18
+ if (!('updatedCount' in value) || value['updatedCount'] === undefined)
19
+ return false;
20
+ return true;
21
+ }
22
+ export function PostQuestionTagsResponseFromJSON(json) {
23
+ return PostQuestionTagsResponseFromJSONTyped(json, false);
24
+ }
25
+ export function PostQuestionTagsResponseFromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'updatedCount': json['updated_count'],
31
+ };
32
+ }
33
+ export function PostQuestionTagsResponseToJSON(json) {
34
+ return PostQuestionTagsResponseToJSONTyped(json, false);
35
+ }
36
+ export function PostQuestionTagsResponseToJSONTyped(value, ignoreDiscriminator = false) {
37
+ if (value == null) {
38
+ return value;
39
+ }
40
+ return {
41
+ 'updated_count': value['updatedCount'],
42
+ };
43
+ }
@@ -277,6 +277,8 @@ export * from './PostQuestionImportCommit';
277
277
  export * from './PostQuestionImportCommitItem';
278
278
  export * from './PostQuestionImportCommitResponse';
279
279
  export * from './PostQuestionImportParseResponse';
280
+ export * from './PostQuestionTags';
281
+ export * from './PostQuestionTagsResponse';
280
282
  export * from './PostReportExport';
281
283
  export * from './PostReportQuery';
282
284
  export * from './PostResetPassword';
@@ -279,6 +279,8 @@ export * from './PostQuestionImportCommit';
279
279
  export * from './PostQuestionImportCommitItem';
280
280
  export * from './PostQuestionImportCommitResponse';
281
281
  export * from './PostQuestionImportParseResponse';
282
+ export * from './PostQuestionTags';
283
+ export * from './PostQuestionTagsResponse';
282
284
  export * from './PostReportExport';
283
285
  export * from './PostReportQuery';
284
286
  export * from './PostResetPassword';
@@ -57,6 +57,12 @@ export interface GetCourseEnrollmentListItem {
57
57
  * @memberof GetCourseEnrollmentListItem
58
58
  */
59
59
  lastName: string;
60
+ /**
61
+ * Contact email of the enrolled user. Only populated for Instructor enrollments so learners can contact course instructors; null for Student enrollments.
62
+ * @type {string}
63
+ * @memberof GetCourseEnrollmentListItem
64
+ */
65
+ email?: string | null;
60
66
  /**
61
67
  * Start date of the enrollment (Unix timestamp)
62
68
  * @type {number}
@@ -102,6 +102,7 @@ function GetCourseEnrollmentListItemFromJSONTyped(json, ignoreDiscriminator) {
102
102
  'courseVersionNumber': json['course_version_number'],
103
103
  'firstName': json['first_name'],
104
104
  'lastName': json['last_name'],
105
+ 'email': json['email'] == null ? undefined : json['email'],
105
106
  'enrollmentDateStart': json['enrollment_date_start'],
106
107
  'enrollmentDateEnd': json['enrollment_date_end'],
107
108
  'status': json['status'],
@@ -126,6 +127,7 @@ function GetCourseEnrollmentListItemToJSONTyped(value, ignoreDiscriminator = fal
126
127
  'course_version_number': value['courseVersionNumber'],
127
128
  'first_name': value['firstName'],
128
129
  'last_name': value['lastName'],
130
+ 'email': value['email'],
129
131
  'enrollment_date_start': value['enrollmentDateStart'],
130
132
  'enrollment_date_end': value['enrollmentDateEnd'],
131
133
  'status': value['status'],
@@ -22,6 +22,12 @@ export interface GetResourceUsageCoursesInner {
22
22
  * @memberof GetResourceUsageCoursesInner
23
23
  */
24
24
  courseId: string;
25
+ /**
26
+ * Display name of the course
27
+ * @type {string}
28
+ * @memberof GetResourceUsageCoursesInner
29
+ */
30
+ courseName: string;
25
31
  /**
26
32
  *
27
33
  * @type {string}