@easyedu/js-lsm-api 1.109.0 → 1.111.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 (132) hide show
  1. package/.openapi-generator/FILES +20 -0
  2. package/README.md +23 -4
  3. package/dist/apis/ContentLibraryApi.d.ts +5 -4
  4. package/dist/apis/ContentLibraryApi.js +6 -5
  5. package/dist/apis/LearnerExperienceApi.d.ts +153 -0
  6. package/dist/apis/LearnerExperienceApi.js +401 -0
  7. package/dist/apis/QuestionApi.d.ts +1 -11
  8. package/dist/apis/QuestionApi.js +3 -14
  9. package/dist/apis/index.d.ts +1 -0
  10. package/dist/apis/index.js +1 -0
  11. package/dist/esm/apis/ContentLibraryApi.d.ts +5 -4
  12. package/dist/esm/apis/ContentLibraryApi.js +6 -5
  13. package/dist/esm/apis/LearnerExperienceApi.d.ts +153 -0
  14. package/dist/esm/apis/LearnerExperienceApi.js +397 -0
  15. package/dist/esm/apis/QuestionApi.d.ts +1 -11
  16. package/dist/esm/apis/QuestionApi.js +2 -13
  17. package/dist/esm/apis/index.d.ts +1 -0
  18. package/dist/esm/apis/index.js +1 -0
  19. package/dist/esm/models/ContentLibraryTag.d.ts +6 -0
  20. package/dist/esm/models/ContentLibraryTag.js +4 -0
  21. package/dist/esm/models/ContentLibraryTagItem.d.ts +1 -0
  22. package/dist/esm/models/ContentLibraryTagItem.js +2 -1
  23. package/dist/esm/models/GetEffectiveLearnerExperience.d.ts +62 -0
  24. package/dist/esm/models/GetEffectiveLearnerExperience.js +62 -0
  25. package/dist/esm/models/GetLearnerDashboard.d.ts +47 -0
  26. package/dist/esm/models/GetLearnerDashboard.js +54 -0
  27. package/dist/esm/models/GetLearnerDashboardCourseList.d.ts +39 -0
  28. package/dist/esm/models/GetLearnerDashboardCourseList.js +48 -0
  29. package/dist/esm/models/GetLearnerDashboardSummary.d.ts +56 -0
  30. package/dist/esm/models/GetLearnerDashboardSummary.js +59 -0
  31. package/dist/esm/models/GetLearnerExperience.d.ts +67 -0
  32. package/dist/esm/models/GetLearnerExperience.js +65 -0
  33. package/dist/esm/models/GetLearnerExperiencePreview.d.ts +40 -0
  34. package/dist/esm/models/GetLearnerExperiencePreview.js +47 -0
  35. package/dist/esm/models/GetQuestion.d.ts +4 -18
  36. package/dist/esm/models/GetQuestion.js +3 -14
  37. package/dist/esm/models/GetQuestionListFilters.d.ts +3 -18
  38. package/dist/esm/models/GetQuestionListFilters.js +2 -12
  39. package/dist/esm/models/LearnerExperienceVersion.d.ts +86 -0
  40. package/dist/esm/models/LearnerExperienceVersion.js +76 -0
  41. package/dist/esm/models/LibraryQuizCriteriaPreviewQuestion.d.ts +0 -15
  42. package/dist/esm/models/LibraryQuizCriteriaPreviewQuestion.js +0 -12
  43. package/dist/esm/models/LibraryQuizCriterion.d.ts +0 -15
  44. package/dist/esm/models/LibraryQuizCriterion.js +0 -10
  45. package/dist/esm/models/PostLearnerExperiencePreview.d.ts +40 -0
  46. package/dist/esm/models/PostLearnerExperiencePreview.js +45 -0
  47. package/dist/esm/models/PostQuestion.d.ts +0 -15
  48. package/dist/esm/models/PostQuestion.js +0 -12
  49. package/dist/esm/models/PutLearnerExperienceDraft.d.ts +40 -0
  50. package/dist/esm/models/PutLearnerExperienceDraft.js +45 -0
  51. package/dist/esm/models/PutQuestion.d.ts +0 -15
  52. package/dist/esm/models/PutQuestion.js +0 -10
  53. package/dist/esm/models/index.d.ts +9 -0
  54. package/dist/esm/models/index.js +9 -0
  55. package/dist/models/ContentLibraryTag.d.ts +6 -0
  56. package/dist/models/ContentLibraryTag.js +4 -0
  57. package/dist/models/ContentLibraryTagItem.d.ts +1 -0
  58. package/dist/models/ContentLibraryTagItem.js +2 -1
  59. package/dist/models/GetEffectiveLearnerExperience.d.ts +62 -0
  60. package/dist/models/GetEffectiveLearnerExperience.js +70 -0
  61. package/dist/models/GetLearnerDashboard.d.ts +47 -0
  62. package/dist/models/GetLearnerDashboard.js +61 -0
  63. package/dist/models/GetLearnerDashboardCourseList.d.ts +39 -0
  64. package/dist/models/GetLearnerDashboardCourseList.js +55 -0
  65. package/dist/models/GetLearnerDashboardSummary.d.ts +56 -0
  66. package/dist/models/GetLearnerDashboardSummary.js +66 -0
  67. package/dist/models/GetLearnerExperience.d.ts +67 -0
  68. package/dist/models/GetLearnerExperience.js +73 -0
  69. package/dist/models/GetLearnerExperiencePreview.d.ts +40 -0
  70. package/dist/models/GetLearnerExperiencePreview.js +54 -0
  71. package/dist/models/GetQuestion.d.ts +4 -18
  72. package/dist/models/GetQuestion.js +4 -15
  73. package/dist/models/GetQuestionListFilters.d.ts +3 -18
  74. package/dist/models/GetQuestionListFilters.js +3 -13
  75. package/dist/models/LearnerExperienceVersion.d.ts +86 -0
  76. package/dist/models/LearnerExperienceVersion.js +84 -0
  77. package/dist/models/LibraryQuizCriteriaPreviewQuestion.d.ts +0 -15
  78. package/dist/models/LibraryQuizCriteriaPreviewQuestion.js +1 -13
  79. package/dist/models/LibraryQuizCriterion.d.ts +0 -15
  80. package/dist/models/LibraryQuizCriterion.js +1 -11
  81. package/dist/models/PostLearnerExperiencePreview.d.ts +40 -0
  82. package/dist/models/PostLearnerExperiencePreview.js +52 -0
  83. package/dist/models/PostQuestion.d.ts +0 -15
  84. package/dist/models/PostQuestion.js +1 -13
  85. package/dist/models/PutLearnerExperienceDraft.d.ts +40 -0
  86. package/dist/models/PutLearnerExperienceDraft.js +52 -0
  87. package/dist/models/PutQuestion.d.ts +0 -15
  88. package/dist/models/PutQuestion.js +1 -11
  89. package/dist/models/index.d.ts +9 -0
  90. package/dist/models/index.js +9 -0
  91. package/docs/ContentLibraryApi.md +7 -7
  92. package/docs/ContentLibraryTag.md +2 -0
  93. package/docs/GetEffectiveLearnerExperience.md +40 -0
  94. package/docs/GetLearnerDashboard.md +38 -0
  95. package/docs/GetLearnerDashboardCourseList.md +36 -0
  96. package/docs/GetLearnerDashboardSummary.md +42 -0
  97. package/docs/GetLearnerExperience.md +42 -0
  98. package/docs/GetLearnerExperiencePreview.md +36 -0
  99. package/docs/GetQuestion.md +1 -3
  100. package/docs/GetQuestionListFilters.md +2 -4
  101. package/docs/LearnerExperienceApi.md +622 -0
  102. package/docs/LearnerExperienceVersion.md +48 -0
  103. package/docs/LibraryQuizCriteriaPreviewQuestion.md +0 -2
  104. package/docs/LibraryQuizCriterion.md +0 -2
  105. package/docs/PostLearnerExperiencePreview.md +36 -0
  106. package/docs/PostQuestion.md +0 -2
  107. package/docs/PutLearnerExperienceDraft.md +36 -0
  108. package/docs/PutQuestion.md +0 -2
  109. package/docs/QuestionApi.md +4 -7
  110. package/package.json +1 -1
  111. package/src/apis/ContentLibraryApi.ts +6 -5
  112. package/src/apis/LearnerExperienceApi.ts +465 -0
  113. package/src/apis/QuestionApi.ts +3 -17
  114. package/src/apis/index.ts +1 -0
  115. package/src/models/ContentLibraryTag.ts +9 -0
  116. package/src/models/ContentLibraryTagItem.ts +2 -1
  117. package/src/models/GetEffectiveLearnerExperience.ts +105 -0
  118. package/src/models/GetLearnerDashboard.ts +106 -0
  119. package/src/models/GetLearnerDashboardCourseList.ts +83 -0
  120. package/src/models/GetLearnerDashboardSummary.ts +102 -0
  121. package/src/models/GetLearnerExperience.ts +121 -0
  122. package/src/models/GetLearnerExperiencePreview.ts +75 -0
  123. package/src/models/GetQuestion.ts +12 -24
  124. package/src/models/GetQuestionListFilters.ts +5 -23
  125. package/src/models/LearnerExperienceVersion.ts +140 -0
  126. package/src/models/LibraryQuizCriteriaPreviewQuestion.ts +0 -19
  127. package/src/models/LibraryQuizCriterion.ts +0 -18
  128. package/src/models/PostLearnerExperiencePreview.ts +74 -0
  129. package/src/models/PostQuestion.ts +0 -19
  130. package/src/models/PutLearnerExperienceDraft.ts +74 -0
  131. package/src/models/PutQuestion.ts +0 -18
  132. package/src/models/index.ts +9 -0
@@ -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
- * Difficulty level of the question
59
- * @type {GetQuestionDifficultyLevelEnum}
59
+ * Shared tags associated with the question
60
+ * @type {Array<ContentLibraryTag>}
60
61
  * @memberof GetQuestion
61
62
  */
62
- difficultyLevel: GetQuestionDifficultyLevelEnum;
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
- 'difficultyLevel': json['difficulty_level'],
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
- 'difficulty_level': value['difficultyLevel'],
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 difficulty level
26
- * @type {GetQuestionListFiltersDifficultyLevelEnum}
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
- tags?: Array<string>;
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
- 'difficultyLevel': json['difficulty_level'] == null ? undefined : json['difficulty_level'],
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
- 'difficulty_level': value['difficultyLevel'],
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),
@@ -0,0 +1,86 @@
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 LearnerExperienceVersion
16
+ */
17
+ export interface LearnerExperienceVersion {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof LearnerExperienceVersion
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof LearnerExperienceVersion
28
+ */
29
+ versionNumber: number;
30
+ /**
31
+ *
32
+ * @type {LearnerExperienceVersionStatusEnum}
33
+ * @memberof LearnerExperienceVersion
34
+ */
35
+ status: LearnerExperienceVersionStatusEnum;
36
+ /**
37
+ * Validated learner-experience-v1 shell and dashboard document.
38
+ * @type {{ [key: string]: any; }}
39
+ * @memberof LearnerExperienceVersion
40
+ */
41
+ designDocument: {
42
+ [key: string]: any;
43
+ };
44
+ /**
45
+ *
46
+ * @type {string}
47
+ * @memberof LearnerExperienceVersion
48
+ */
49
+ changeNotes?: string | null;
50
+ /**
51
+ *
52
+ * @type {number}
53
+ * @memberof LearnerExperienceVersion
54
+ */
55
+ createdAt: number;
56
+ /**
57
+ *
58
+ * @type {number}
59
+ * @memberof LearnerExperienceVersion
60
+ */
61
+ updatedAt: number;
62
+ /**
63
+ *
64
+ * @type {number}
65
+ * @memberof LearnerExperienceVersion
66
+ */
67
+ publishedAt?: number | null;
68
+ }
69
+ /**
70
+ * @export
71
+ */
72
+ export declare const LearnerExperienceVersionStatusEnum: {
73
+ readonly Draft: "draft";
74
+ readonly Published: "published";
75
+ readonly Archived: "archived";
76
+ readonly System: "system";
77
+ };
78
+ export type LearnerExperienceVersionStatusEnum = typeof LearnerExperienceVersionStatusEnum[keyof typeof LearnerExperienceVersionStatusEnum];
79
+ /**
80
+ * Check if a given object implements the LearnerExperienceVersion interface.
81
+ */
82
+ export declare function instanceOfLearnerExperienceVersion(value: object): value is LearnerExperienceVersion;
83
+ export declare function LearnerExperienceVersionFromJSON(json: any): LearnerExperienceVersion;
84
+ export declare function LearnerExperienceVersionFromJSONTyped(json: any, ignoreDiscriminator: boolean): LearnerExperienceVersion;
85
+ export declare function LearnerExperienceVersionToJSON(json: any): LearnerExperienceVersion;
86
+ export declare function LearnerExperienceVersionToJSONTyped(value?: LearnerExperienceVersion | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,76 @@
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
+ * @export
16
+ */
17
+ export const LearnerExperienceVersionStatusEnum = {
18
+ Draft: 'draft',
19
+ Published: 'published',
20
+ Archived: 'archived',
21
+ System: 'system'
22
+ };
23
+ /**
24
+ * Check if a given object implements the LearnerExperienceVersion interface.
25
+ */
26
+ export function instanceOfLearnerExperienceVersion(value) {
27
+ if (!('id' in value) || value['id'] === undefined)
28
+ return false;
29
+ if (!('versionNumber' in value) || value['versionNumber'] === undefined)
30
+ return false;
31
+ if (!('status' in value) || value['status'] === undefined)
32
+ return false;
33
+ if (!('designDocument' in value) || value['designDocument'] === undefined)
34
+ return false;
35
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
36
+ return false;
37
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
38
+ return false;
39
+ return true;
40
+ }
41
+ export function LearnerExperienceVersionFromJSON(json) {
42
+ return LearnerExperienceVersionFromJSONTyped(json, false);
43
+ }
44
+ export function LearnerExperienceVersionFromJSONTyped(json, ignoreDiscriminator) {
45
+ if (json == null) {
46
+ return json;
47
+ }
48
+ return {
49
+ 'id': json['id'],
50
+ 'versionNumber': json['version_number'],
51
+ 'status': json['status'],
52
+ 'designDocument': json['design_document'],
53
+ 'changeNotes': json['change_notes'] == null ? undefined : json['change_notes'],
54
+ 'createdAt': json['created_at'],
55
+ 'updatedAt': json['updated_at'],
56
+ 'publishedAt': json['published_at'] == null ? undefined : json['published_at'],
57
+ };
58
+ }
59
+ export function LearnerExperienceVersionToJSON(json) {
60
+ return LearnerExperienceVersionToJSONTyped(json, false);
61
+ }
62
+ export function LearnerExperienceVersionToJSONTyped(value, ignoreDiscriminator = false) {
63
+ if (value == null) {
64
+ return value;
65
+ }
66
+ return {
67
+ 'id': value['id'],
68
+ 'version_number': value['versionNumber'],
69
+ 'status': value['status'],
70
+ 'design_document': value['designDocument'],
71
+ 'change_notes': value['changeNotes'],
72
+ 'created_at': value['createdAt'],
73
+ 'updated_at': value['updatedAt'],
74
+ 'published_at': value['publishedAt'],
75
+ };
76
+ }
@@ -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
  */
@@ -11,14 +11,6 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
- /**
15
- * @export
16
- */
17
- export const LibraryQuizCriterionDifficultyLevelEnum = {
18
- Beginner: 'beginner',
19
- Intermediate: 'intermediate',
20
- Advanced: 'advanced'
21
- };
22
14
  /**
23
15
  * @export
24
16
  */
@@ -47,7 +39,6 @@ export function LibraryQuizCriterionFromJSONTyped(json, ignoreDiscriminator) {
47
39
  }
48
40
  return {
49
41
  'id': json['id'] == null ? undefined : json['id'],
50
- 'difficultyLevel': json['difficulty_level'] == null ? undefined : json['difficulty_level'],
51
42
  'questionType': json['question_type'] == null ? undefined : json['question_type'],
52
43
  'tags': json['tags'] == null ? undefined : json['tags'],
53
44
  'minQuestions': json['min_questions'] == null ? undefined : json['min_questions'],
@@ -64,7 +55,6 @@ export function LibraryQuizCriterionToJSONTyped(value, ignoreDiscriminator = fal
64
55
  }
65
56
  return {
66
57
  'id': value['id'],
67
- 'difficulty_level': value['difficultyLevel'],
68
58
  'question_type': value['questionType'],
69
59
  'tags': value['tags'],
70
60
  'min_questions': value['minQuestions'],
@@ -0,0 +1,40 @@
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 PostLearnerExperiencePreview
16
+ */
17
+ export interface PostLearnerExperiencePreview {
18
+ /**
19
+ *
20
+ * @type {{ [key: string]: any; }}
21
+ * @memberof PostLearnerExperiencePreview
22
+ */
23
+ designDocument: {
24
+ [key: string]: any;
25
+ };
26
+ /**
27
+ *
28
+ * @type {string}
29
+ * @memberof PostLearnerExperiencePreview
30
+ */
31
+ changeNotes?: string | null;
32
+ }
33
+ /**
34
+ * Check if a given object implements the PostLearnerExperiencePreview interface.
35
+ */
36
+ export declare function instanceOfPostLearnerExperiencePreview(value: object): value is PostLearnerExperiencePreview;
37
+ export declare function PostLearnerExperiencePreviewFromJSON(json: any): PostLearnerExperiencePreview;
38
+ export declare function PostLearnerExperiencePreviewFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostLearnerExperiencePreview;
39
+ export declare function PostLearnerExperiencePreviewToJSON(json: any): PostLearnerExperiencePreview;
40
+ export declare function PostLearnerExperiencePreviewToJSONTyped(value?: PostLearnerExperiencePreview | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,45 @@
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 PostLearnerExperiencePreview interface.
16
+ */
17
+ export function instanceOfPostLearnerExperiencePreview(value) {
18
+ if (!('designDocument' in value) || value['designDocument'] === undefined)
19
+ return false;
20
+ return true;
21
+ }
22
+ export function PostLearnerExperiencePreviewFromJSON(json) {
23
+ return PostLearnerExperiencePreviewFromJSONTyped(json, false);
24
+ }
25
+ export function PostLearnerExperiencePreviewFromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'designDocument': json['design_document'],
31
+ 'changeNotes': json['change_notes'] == null ? undefined : json['change_notes'],
32
+ };
33
+ }
34
+ export function PostLearnerExperiencePreviewToJSON(json) {
35
+ return PostLearnerExperiencePreviewToJSONTyped(json, false);
36
+ }
37
+ export function PostLearnerExperiencePreviewToJSONTyped(value, ignoreDiscriminator = false) {
38
+ if (value == null) {
39
+ return value;
40
+ }
41
+ return {
42
+ 'design_document': value['designDocument'],
43
+ 'change_notes': value['changeNotes'],
44
+ };
45
+ }
@@ -47,12 +47,6 @@ export interface PostQuestion {
47
47
  * @memberof PostQuestion
48
48
  */
49
49
  explanation?: RichTextInput;
50
- /**
51
- * Difficulty level of the question
52
- * @type {PostQuestionDifficultyLevelEnum}
53
- * @memberof PostQuestion
54
- */
55
- difficultyLevel: PostQuestionDifficultyLevelEnum;
56
50
  /**
57
51
  * Keywords/tags for granular filtering
58
52
  * @type {Array<string>}
@@ -78,15 +72,6 @@ export declare const PostQuestionQuestionTypeEnum: {
78
72
  readonly Essay: "essay";
79
73
  };
80
74
  export type PostQuestionQuestionTypeEnum = typeof PostQuestionQuestionTypeEnum[keyof typeof PostQuestionQuestionTypeEnum];
81
- /**
82
- * @export
83
- */
84
- export declare const PostQuestionDifficultyLevelEnum: {
85
- readonly Beginner: "beginner";
86
- readonly Intermediate: "intermediate";
87
- readonly Advanced: "advanced";
88
- };
89
- export type PostQuestionDifficultyLevelEnum = typeof PostQuestionDifficultyLevelEnum[keyof typeof PostQuestionDifficultyLevelEnum];
90
75
  /**
91
76
  * Check if a given object implements the PostQuestion interface.
92
77
  */
@@ -24,14 +24,6 @@ export const PostQuestionQuestionTypeEnum = {
24
24
  Matching: 'matching',
25
25
  Essay: 'essay'
26
26
  };
27
- /**
28
- * @export
29
- */
30
- export const PostQuestionDifficultyLevelEnum = {
31
- Beginner: 'beginner',
32
- Intermediate: 'intermediate',
33
- Advanced: 'advanced'
34
- };
35
27
  /**
36
28
  * Check if a given object implements the PostQuestion interface.
37
29
  */
@@ -40,8 +32,6 @@ export function instanceOfPostQuestion(value) {
40
32
  return false;
41
33
  if (!('questionType' in value) || value['questionType'] === undefined)
42
34
  return false;
43
- if (!('difficultyLevel' in value) || value['difficultyLevel'] === undefined)
44
- return false;
45
35
  return true;
46
36
  }
47
37
  export function PostQuestionFromJSON(json) {
@@ -57,7 +47,6 @@ export function PostQuestionFromJSONTyped(json, ignoreDiscriminator) {
57
47
  'answerChoices': json['answer_choices'] == null ? undefined : (json['answer_choices'].map(PostQuestionAnswerChoicesInnerFromJSON)),
58
48
  'correctAnswer': json['correct_answer'] == null ? undefined : json['correct_answer'],
59
49
  'explanation': json['explanation'] == null ? undefined : RichTextInputFromJSON(json['explanation']),
60
- 'difficultyLevel': json['difficulty_level'],
61
50
  'tags': json['tags'] == null ? undefined : json['tags'],
62
51
  'version': json['version'] == null ? undefined : json['version'],
63
52
  };
@@ -75,7 +64,6 @@ export function PostQuestionToJSONTyped(value, ignoreDiscriminator = false) {
75
64
  'answer_choices': value['answerChoices'] == null ? undefined : (value['answerChoices'].map(PostQuestionAnswerChoicesInnerToJSON)),
76
65
  'correct_answer': value['correctAnswer'],
77
66
  'explanation': RichTextInputToJSON(value['explanation']),
78
- 'difficulty_level': value['difficultyLevel'],
79
67
  'tags': value['tags'],
80
68
  'version': value['version'],
81
69
  };
@@ -0,0 +1,40 @@
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 PutLearnerExperienceDraft
16
+ */
17
+ export interface PutLearnerExperienceDraft {
18
+ /**
19
+ *
20
+ * @type {{ [key: string]: any; }}
21
+ * @memberof PutLearnerExperienceDraft
22
+ */
23
+ designDocument: {
24
+ [key: string]: any;
25
+ };
26
+ /**
27
+ *
28
+ * @type {string}
29
+ * @memberof PutLearnerExperienceDraft
30
+ */
31
+ changeNotes?: string | null;
32
+ }
33
+ /**
34
+ * Check if a given object implements the PutLearnerExperienceDraft interface.
35
+ */
36
+ export declare function instanceOfPutLearnerExperienceDraft(value: object): value is PutLearnerExperienceDraft;
37
+ export declare function PutLearnerExperienceDraftFromJSON(json: any): PutLearnerExperienceDraft;
38
+ export declare function PutLearnerExperienceDraftFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutLearnerExperienceDraft;
39
+ export declare function PutLearnerExperienceDraftToJSON(json: any): PutLearnerExperienceDraft;
40
+ export declare function PutLearnerExperienceDraftToJSONTyped(value?: PutLearnerExperienceDraft | null, ignoreDiscriminator?: boolean): any;