@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
@@ -0,0 +1,75 @@
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
+ /**
17
+ * Adds shared tags to several questions at once without creating new question versions.
18
+ * @export
19
+ * @interface PostQuestionTags
20
+ */
21
+ export interface PostQuestionTags {
22
+ /**
23
+ * External IDs of the questions to tag
24
+ * @type {Array<string>}
25
+ * @memberof PostQuestionTags
26
+ */
27
+ questionIds: Array<string>;
28
+ /**
29
+ * Tag names to add. Existing tags on each question are kept.
30
+ * @type {Array<string>}
31
+ * @memberof PostQuestionTags
32
+ */
33
+ tags: Array<string>;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the PostQuestionTags interface.
38
+ */
39
+ export function instanceOfPostQuestionTags(value: object): value is PostQuestionTags {
40
+ if (!('questionIds' in value) || value['questionIds'] === undefined) return false;
41
+ if (!('tags' in value) || value['tags'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function PostQuestionTagsFromJSON(json: any): PostQuestionTags {
46
+ return PostQuestionTagsFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function PostQuestionTagsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostQuestionTags {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'questionIds': json['question_ids'],
56
+ 'tags': json['tags'],
57
+ };
58
+ }
59
+
60
+ export function PostQuestionTagsToJSON(json: any): PostQuestionTags {
61
+ return PostQuestionTagsToJSONTyped(json, false);
62
+ }
63
+
64
+ export function PostQuestionTagsToJSONTyped(value?: PostQuestionTags | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'question_ids': value['questionIds'],
72
+ 'tags': value['tags'],
73
+ };
74
+ }
75
+
@@ -0,0 +1,66 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * LMS API
5
+ * LMS API
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface PostQuestionTagsResponse
20
+ */
21
+ export interface PostQuestionTagsResponse {
22
+ /**
23
+ * Number of questions that received the tags
24
+ * @type {number}
25
+ * @memberof PostQuestionTagsResponse
26
+ */
27
+ updatedCount: number;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the PostQuestionTagsResponse interface.
32
+ */
33
+ export function instanceOfPostQuestionTagsResponse(value: object): value is PostQuestionTagsResponse {
34
+ if (!('updatedCount' in value) || value['updatedCount'] === undefined) return false;
35
+ return true;
36
+ }
37
+
38
+ export function PostQuestionTagsResponseFromJSON(json: any): PostQuestionTagsResponse {
39
+ return PostQuestionTagsResponseFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function PostQuestionTagsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostQuestionTagsResponse {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'updatedCount': json['updated_count'],
49
+ };
50
+ }
51
+
52
+ export function PostQuestionTagsResponseToJSON(json: any): PostQuestionTagsResponse {
53
+ return PostQuestionTagsResponseToJSONTyped(json, false);
54
+ }
55
+
56
+ export function PostQuestionTagsResponseToJSONTyped(value?: PostQuestionTagsResponse | null, ignoreDiscriminator: boolean = false): any {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+
61
+ return {
62
+
63
+ 'updated_count': value['updatedCount'],
64
+ };
65
+ }
66
+
@@ -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';